---
name: "dnonblock.h"
section: "3"
platform: "linux"
package: "libdaemon-doc"
version: "0.14-7.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dnonblock.h"
---

# dnonblock.h(3)

Contains a single function used to change a file descriptor to non-blocking mode using fcntl().

## NAME

dnonblock.h - Contains a single function used to change a file descriptor to non-blocking mode using fcntl().

## SYNOPSIS

### Functions

int **daemon\_nonblock** (int fd, int b)\
 Change the passed file descriptor to non-blocking or blocking mode, depending on b.

## Detailed Description

Contains a single function used to change a file descriptor to non-blocking mode using fcntl().

Definition in file **dnonblock.h**.

## Function Documentation

### int daemon\_nonblock (int fd, int b)

Change the passed file descriptor to non-blocking or blocking mode, depending on b.

**Parameters**

*fd* The file descriptor to manipulation \
 *b* TRUE if non-blocking mode should be enabled, FALSE if it should be disabled

**Returns**

Zero on success, nonzero on failure.

## Author

Generated automatically by Doxygen for libdaemon from the source code.
