---
name: "ndelay_on"
section: "3diet"
platform: "linux"
package: "libowfat-dev"
version: "0.28-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/ndelay_on/3diet"
---

# ndelay\_on(3diet)

put file descriptor in non-blocking mode

## NAME

ndelay\_on - put file descriptor in non-blocking mode

## SYNTAX

**#include \<ndelay.h\>**

extern int **ndelay\_on**(int *fd*);

## DESCRIPTION

ndelay\_on puts a file descriptor in non-blocking mode.  Reading from and writing to non-blocking network sockets, FIFOs or device files will return immediately, even if not as many bytes have been processed as were specified.

If an error occurred, ndelay\_on will return nonzero and set *errno* accordingly.

## SEE ALSO

[fcntl(2)](/fcntl/2.md), [ndelay\_off(3)](/ndelay_off/3.md)
