Back to index

glibc  2.9
Classes | Defines
fcntl.h File Reference
#include <sys/types.h>

Go to the source code of this file.

Classes

struct  flock

Defines

#define O_RDONLY   00000000
#define O_WRONLY   00000001
#define O_RDWR   00000002
#define O_ACCMODE   00000003
#define O_APPEND   00000010
#define O_BLKSEEK   00000100 /* HPUX only */
#define O_CREAT   00000400 /* not fcntl */
#define O_TRUNC   00001000 /* not fcntl */
#define O_EXCL   00002000 /* not fcntl */
#define O_ASYNC   00020000
#define O_SYNC   00100000
#define O_NONBLOCK   00200004 /* HPUX has separate NDELAY & NONBLOCK */
#define O_NDELAY   O_NONBLOCK
#define O_NOCTTY   00400000 /* not fcntl */
#define F_DUPFD   0 /* Duplicate file descriptor. */
#define F_GETFD   1 /* Get file descriptor flags. */
#define F_SETFD   2 /* Set file descriptor flags. */
#define F_GETFL   3 /* Get file status flags. */
#define F_SETFL   4 /* Set file status flags. */
#define F_GETLK   5 /* Get record locking info. */
#define F_SETLK   6 /* Set record locking info (non-blocking). */
#define F_SETLKW   7 /* Set record locking info (blocking). */
#define F_GETLK64   8 /* Get record locking info. */
#define F_SETLK64   9 /* Set record locking info (non-blocking). */
#define F_SETLKW64   10 /* Set record locking info (blocking). */
#define FD_CLOEXEC   1 /* actually anything with low bit set goes */
#define F_RDLCK   1 /* Read lock. */
#define F_WRLCK   2 /* Write lock. */
#define F_UNLCK   3 /* Remove lock. */
#define F_EXLCK   4 /* or 3 */
#define F_SHLCK   8 /* or 4 */

Class Documentation

struct flock

Definition at line 73 of file fcntl.h.

Class Members
short int __unused
__off_t l_len
__pid_t l_pid
short int l_pid
__off_t l_start
short int l_sysid
unsigned int l_sysid
long int l_sysid
short int l_type
int l_type
int l_vfs
short int l_whence
int l_whence
short int l_xxx
long int pad

Define Documentation

#define F_DUPFD   0 /* Duplicate file descriptor. */

Definition at line 66 of file fcntl.h.

#define F_EXLCK   4 /* or 3 */

Definition at line 111 of file fcntl.h.

#define F_GETFD   1 /* Get file descriptor flags. */

Definition at line 67 of file fcntl.h.

#define F_GETFL   3 /* Get file status flags. */

Definition at line 69 of file fcntl.h.

#define F_GETLK   5 /* Get record locking info. */

Definition at line 72 of file fcntl.h.

#define F_GETLK64   8 /* Get record locking info. */

Definition at line 80 of file fcntl.h.

#define F_RDLCK   1 /* Read lock. */

Definition at line 106 of file fcntl.h.

#define F_SETFD   2 /* Set file descriptor flags. */

Definition at line 68 of file fcntl.h.

#define F_SETFL   4 /* Set file status flags. */

Definition at line 70 of file fcntl.h.

#define F_SETLK   6 /* Set record locking info (non-blocking). */

Definition at line 73 of file fcntl.h.

#define F_SETLK64   9 /* Set record locking info (non-blocking). */

Definition at line 81 of file fcntl.h.

#define F_SETLKW   7 /* Set record locking info (blocking). */

Definition at line 74 of file fcntl.h.

#define F_SETLKW64   10 /* Set record locking info (blocking). */

Definition at line 82 of file fcntl.h.

#define F_SHLCK   8 /* or 4 */

Definition at line 112 of file fcntl.h.

#define F_UNLCK   3 /* Remove lock. */

Definition at line 108 of file fcntl.h.

#define F_WRLCK   2 /* Write lock. */

Definition at line 107 of file fcntl.h.

#define FD_CLOEXEC   1 /* actually anything with low bit set goes */

Definition at line 103 of file fcntl.h.

#define O_ACCMODE   00000003

Definition at line 35 of file fcntl.h.

#define O_APPEND   00000010

Definition at line 36 of file fcntl.h.

#define O_ASYNC   00020000

Definition at line 41 of file fcntl.h.

#define O_BLKSEEK   00000100 /* HPUX only */

Definition at line 37 of file fcntl.h.

#define O_CREAT   00000400 /* not fcntl */

Definition at line 38 of file fcntl.h.

#define O_EXCL   00002000 /* not fcntl */

Definition at line 40 of file fcntl.h.

#define O_NDELAY   O_NONBLOCK

Definition at line 44 of file fcntl.h.

#define O_NOCTTY   00400000 /* not fcntl */

Definition at line 45 of file fcntl.h.

#define O_NONBLOCK   00200004 /* HPUX has separate NDELAY & NONBLOCK */

Definition at line 43 of file fcntl.h.

#define O_RDONLY   00000000

Definition at line 32 of file fcntl.h.

#define O_RDWR   00000002

Definition at line 34 of file fcntl.h.

#define O_SYNC   00100000

Definition at line 42 of file fcntl.h.

#define O_TRUNC   00001000 /* not fcntl */

Definition at line 39 of file fcntl.h.

#define O_WRONLY   00000001

Definition at line 33 of file fcntl.h.