Back to index

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

Go to the source code of this file.

Classes

struct  flock

Defines

#define O_RDONLY   0x0000
#define O_WRONLY   0x0001
#define O_RDWR   0x0002
#define O_ACCMODE   0x0003
#define O_APPEND   0x0008
#define O_ASYNC   0x0040
#define O_CREAT   0x0200 /* not fcntl */
#define O_TRUNC   0x0400 /* not fcntl */
#define O_EXCL   0x0800 /* not fcntl */
#define O_SYNC   0x2000
#define O_NONBLOCK   0x4000
#define O_NDELAY   (0x0004 | O_NONBLOCK)
#define O_NOCTTY   0x8000 /* 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   7 /* Get record locking info. */
#define F_SETLK   8 /* Set record locking info (non-blocking). */
#define F_SETLKW   9 /* 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   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 80 of file fcntl.h.

#define F_EXLCK   4 /* or 3 */

Definition at line 131 of file fcntl.h.

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

Definition at line 81 of file fcntl.h.

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

Definition at line 83 of file fcntl.h.

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

Definition at line 90 of file fcntl.h.

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

Definition at line 117 of file fcntl.h.

#define F_RDLCK   1 /* Read lock. */

Definition at line 126 of file fcntl.h.

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

Definition at line 82 of file fcntl.h.

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

Definition at line 84 of file fcntl.h.

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

Definition at line 91 of file fcntl.h.

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

Definition at line 118 of file fcntl.h.

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

Definition at line 92 of file fcntl.h.

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

Definition at line 119 of file fcntl.h.

#define F_SHLCK   8 /* or 4 */

Definition at line 132 of file fcntl.h.

#define F_UNLCK   3 /* Remove lock. */

Definition at line 128 of file fcntl.h.

#define F_WRLCK   2 /* Write lock. */

Definition at line 127 of file fcntl.h.

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

Definition at line 123 of file fcntl.h.

#define O_ACCMODE   0x0003

Definition at line 36 of file fcntl.h.

#define O_APPEND   0x0008

Definition at line 37 of file fcntl.h.

#define O_ASYNC   0x0040

Definition at line 38 of file fcntl.h.

#define O_CREAT   0x0200 /* not fcntl */

Definition at line 39 of file fcntl.h.

#define O_EXCL   0x0800 /* not fcntl */

Definition at line 41 of file fcntl.h.

#define O_NDELAY   (0x0004 | O_NONBLOCK)

Definition at line 44 of file fcntl.h.

#define O_NOCTTY   0x8000 /* not fcntl */

Definition at line 45 of file fcntl.h.

#define O_NONBLOCK   0x4000

Definition at line 43 of file fcntl.h.

#define O_RDONLY   0x0000

Definition at line 33 of file fcntl.h.

#define O_RDWR   0x0002

Definition at line 35 of file fcntl.h.

#define O_SYNC   0x2000

Definition at line 42 of file fcntl.h.

#define O_TRUNC   0x0400 /* not fcntl */

Definition at line 40 of file fcntl.h.

#define O_WRONLY   0x0001

Definition at line 34 of file fcntl.h.