FCNTL(5) — FILE FORMATS
NAME
fcntl − file control options
SYNOPSIS
#include <fcntl.h>
DESCRIPTION
The fcntl(2V) function provides for control over open files. This include file describes requests and arguments to fcntl and open(2V) as shown below:
/∗@ (#)fcntl.h 1.2 83/12/08 SMI; from UCB 4.2 83/09/25 ∗/
/∗
∗ Flag values accessible to open(2V) and fcntl(2)
∗ (The first three can only be set by open)
∗/
#defineO_RDONLY0
#defineO_WRONLY1
#defineO_RDWR2
#defineO_NDELAYFNDELAY/∗ Non-blocking I/O ∗/
#defineO_APPENDFAPPEND/∗ append (writes guaranteed at the end) ∗/
#ifndefF_DUPFD
/∗ 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 ∗/
#defineF_SETOWN6/∗ Set owner ∗/
/∗ flags for F_GETFL, F_SETFL— copied from <sys/file.h> ∗/
#defineFNDELAY00004 /∗ non-blocking reads ∗/
#defineFAPPEND00010 /∗ append on each write ∗/
#defineFASYNC00100 /∗ signal pgrp when data ready ∗/
#endif
SEE ALSO
Solbourne Computer, Inc. — 19 October 1987