fcntl(5) DG/UX 5.4R3.00 fcntl(5)
NAME
fcntl - file control options
SYNOPSIS
#include <fcntl.h>
DESCRIPTION
The fcntl(2) function helps you control open files. This include
file describes commands and arguments to fcntl and open(2).
/* Flag values accessible to open(2) and fcntl(2) */
/* (The first three can only be set by open) */
#define ORDONLY 0
#define OWRONLY 1
#define ORDWR 2
#define ONDELAY 04 /* Non-blocking I/O */
#define OAPPEND 010 /* append (writes guaranteed at the end) */
/* Flag values accessible only to open(2) */
#define OCREAT 00400 /* open with file create (uses 3rd open arg)*/
#define OTRUNC 01000 /* open with truncation */
#define OEXCL 02000 /* exclusive open */
/* fcntl(2) commands */
#define FDUPFD 0 /* Duplicate fildes */
#define FGETFD 1 /* Get the `close-on-exec' flag */
#define FSETFD 2 /* Set the `close-on-exec' flag */
#define FGETFL 3 /* Get file flags */
#define FSETFL 4 /* Set file flags */
#define FGETLK 5 /* Get record lock status */
#define FSETLK 6 /* Set record lock or fail */
#define FSETLKW 7 /* Set record lock or pend */
#define FCHKFL 8 /* Check flags for validity */
#define FFREESP 11 /* Free up file space */
#define FGETOWN 65536 /* Get owner of fildes */
#define FSETOWN 65537 /* Set owner of fildes */
SEE ALSO
fcntl(2), open(2).
Licensed material--property of copyright holder(s) 1