FCNTL(5) — System Interface Manual — File Formats
NAME
fcntl − file control options
DESCRIPTION
#include <fcntl.h>
DESCRIPTION
The fcntl(2) function provides for control over open files. This include file describes requests and arguments to fcntl and open(2) as shown below:
/∗@(#)fcntl.h 1.1 83/08/01 SMI; from UCB 4.1 83/07/03∗/
/∗
∗ Flag values accessible to open(2) and fcntl(2)
∗ (The first three can only be set by open)
∗/
#defineO_RDONLY0
#defineO_WRONLY1
#defineO_RDWR2
#defineO_NDELAY04/∗ Non-blocking I/O ∗/
#defineO_APPEND010/∗ append (writes guaranteed at the end) ∗/
/∗ fcntl(2) requests ∗/
#defineF_DUPFD0/∗ Duplicate fildes ∗/
#defineF_GETFD1/∗ Get fildes flags ∗/
#defineF_SETFD2/∗ Set fildes flags ∗/
#defineF_GETFL3/∗ Get file flags ∗/
#defineF_SETFL4/∗ Set file flags ∗/
#defineF_GETOWN5/∗ Get owner ∗/
#define F_SETOWN6/∗ Set owner ∗/
SEE ALSO
Sun System Release 1.0 — 1 September 1983