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_ACCMODE   0003
#define O_RDONLY   00
#define O_WRONLY   01
#define O_RDWR   02
#define O_CREAT   0100 /* not fcntl */
#define O_EXCL   0200 /* not fcntl */
#define O_NOCTTY   0400 /* not fcntl */
#define O_TRUNC   01000 /* not fcntl */
#define O_APPEND   02000
#define O_NONBLOCK   04000
#define O_NDELAY   O_NONBLOCK
#define O_SYNC   010000
#define O_FSYNC   O_SYNC
#define O_ASYNC   020000
#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   12 /* Get record locking info. */
#define F_SETLK64   13 /* Set record locking info (non-blocking). */
#define F_SETLKW64   14 /* Set record locking info (blocking). */
#define FD_CLOEXEC   1 /* actually anything with low bit set goes */
#define F_RDLCK   0 /* Read lock. */
#define F_WRLCK   1 /* Write lock. */
#define F_UNLCK   2 /* 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 68 of file fcntl.h.

#define F_EXLCK   4 /* or 3 */

Definition at line 113 of file fcntl.h.

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

Definition at line 69 of file fcntl.h.

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

Definition at line 71 of file fcntl.h.

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

Definition at line 74 of file fcntl.h.

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

Definition at line 82 of file fcntl.h.

#define F_RDLCK   0 /* Read lock. */

Definition at line 108 of file fcntl.h.

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

Definition at line 70 of file fcntl.h.

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

Definition at line 72 of file fcntl.h.

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

Definition at line 75 of file fcntl.h.

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

Definition at line 83 of file fcntl.h.

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

Definition at line 76 of file fcntl.h.

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

Definition at line 84 of file fcntl.h.

#define F_SHLCK   8 /* or 4 */

Definition at line 114 of file fcntl.h.

#define F_UNLCK   2 /* Remove lock. */

Definition at line 110 of file fcntl.h.

#define F_WRLCK   1 /* Write lock. */

Definition at line 109 of file fcntl.h.

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

Definition at line 105 of file fcntl.h.

#define O_ACCMODE   0003

Definition at line 32 of file fcntl.h.

#define O_APPEND   02000

Definition at line 40 of file fcntl.h.

#define O_ASYNC   020000

Definition at line 45 of file fcntl.h.

#define O_CREAT   0100 /* not fcntl */

Definition at line 36 of file fcntl.h.

#define O_EXCL   0200 /* not fcntl */

Definition at line 37 of file fcntl.h.

#define O_FSYNC   O_SYNC

Definition at line 44 of file fcntl.h.

#define O_NDELAY   O_NONBLOCK

Definition at line 42 of file fcntl.h.

#define O_NOCTTY   0400 /* not fcntl */

Definition at line 38 of file fcntl.h.

#define O_NONBLOCK   04000

Definition at line 41 of file fcntl.h.

#define O_RDONLY   00

Definition at line 33 of file fcntl.h.

#define O_RDWR   02

Definition at line 35 of file fcntl.h.

#define O_SYNC   010000

Definition at line 43 of file fcntl.h.

#define O_TRUNC   01000 /* not fcntl */

Definition at line 39 of file fcntl.h.

#define O_WRONLY   01

Definition at line 34 of file fcntl.h.