United States-English |
|
|
HP-UX Reference > Ffcntl(5)HP-UX 11i Version 3: February 2007 |
|
NAMEfcntl — file control options DESCRIPTIONThe fcntl() function provides for control over open files. The <fcntl.h> include file describes requests and arguments to fcntl() and open(). See fcntl(2) and open(2). The access modes set by open() and accessed by fcntl() are:
The mask for file access modes is:
The file status flags set by open() or fcntl() and accessed by fcntl() are:
The flag O_SYNCIO is a synonym for O_SYNC and is defined for backward compatibility in <fcntl.h>. The flag values accessible only to open() are:
The requests for fcntl() are:
The file descriptor flag for F_GETFD, F_SETFD is:
The file segment locking control structure struct flock, includes the following members: short l_type; /* F_RDLCK, F_WRLCK or F_UNLCK */ short l_whence; /* Flag - see lseek(2) */ off_t l_start; /* Relative offset in bytes */ off_t l_len; /* Size; if 0 then until EOF */ pid_t l_pid; /* By F_GETLK - process holding lock */ The file segment locking types are: F_RDLCK Read lock. F_WRLCK Write lock. F_UNLCK Remove locks. |
Printable version | ||
|