---
name: "ndelay_on"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ndelay_on"
---

# ndelay\_on(3)

put file descriptor in non-blocking mode

## NAME

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

## SYNTAX

**#include \<libowfat/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)
