Main Page   File List   Globals   Examples  

dnonblock.h File Reference

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

Go to the source code of this file.

Functions

int daemon_nonblock (int fd, int b)
 Change the passed file descriptor to non-blocking or blocking mode, depending on b. More...


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.


Generated at Sun Apr 18 04:36:59 2004 for libdaemon by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001