Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>fcntl</b> http://www.ousob.com [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
fcntl
=====

Syntax
------

     #include <fcntl.h>
     
     int fcntl (int fd, int cmd, ...);

Description
-----------

This function performs the operation specified by CMD on FD.  Note that
it only supports `F_DUPFD' which acts like `dup(fd)' (dup:.) but   
searches empty descriptor from additional argument.

Return Value
------------

If invalid CMD or FD was passed, it returns -1.  In case F_DUPFD, it
returns new descriptor or -1 for error.


See Also: dup

Online resources provided by: http://www.ousob.com --- NG 2 HTML conversion by Dave Pearson