Back to index

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

Go to the source code of this file.

Classes

struct  flock

Defines

#define O_RDONLY   0 /* Open read-only. */
#define O_WRONLY   1 /* Open write-only. */
#define O_RDWR   2 /* Open read/write. */
#define O_CREAT   00400 /* Create file if it doesn't exist. */
#define O_EXCL   02000 /* Fail if file already exists. */
#define O_TRUNC   01000 /* Truncate file to zero length. */
#define O_APPEND   000010 /* Writes append to the file. */
#define O_NONBLOCK   000200 /* POSIX.1 non-blocking I/O. */
#define O_ACCMODE   (O_RDONLY|O_WRONLY|O_RDWR)
#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. */
#define F_SETLKW   7 /* Set record locking info, wait. */
#define FD_CLOEXEC   1 /* Close on exec. */
#define F_RDLCK   1 /* Read lock. */
#define F_WRLCK   2 /* Write lock. */
#define F_UNLCK   3 /* Remove lock. */

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 53 of file fcntl.h.

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

Definition at line 54 of file fcntl.h.

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

Definition at line 56 of file fcntl.h.

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

Definition at line 58 of file fcntl.h.

#define F_RDLCK   1 /* Read lock. */

Definition at line 96 of file fcntl.h.

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

Definition at line 55 of file fcntl.h.

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

Definition at line 57 of file fcntl.h.

#define F_SETLK   6 /* Set record locking info. */

Definition at line 59 of file fcntl.h.

#define F_SETLKW   7 /* Set record locking info, wait. */

Definition at line 60 of file fcntl.h.

#define F_UNLCK   3 /* Remove lock. */

Definition at line 98 of file fcntl.h.

#define F_WRLCK   2 /* Write lock. */

Definition at line 97 of file fcntl.h.

#define FD_CLOEXEC   1 /* Close on exec. */

Definition at line 78 of file fcntl.h.

Definition at line 50 of file fcntl.h.

#define O_APPEND   000010 /* Writes append to the file. */

Definition at line 42 of file fcntl.h.

#define O_CREAT   00400 /* Create file if it doesn't exist. */

Definition at line 32 of file fcntl.h.

#define O_EXCL   02000 /* Fail if file already exists. */

Definition at line 33 of file fcntl.h.

#define O_NONBLOCK   000200 /* POSIX.1 non-blocking I/O. */

Definition at line 46 of file fcntl.h.

#define O_RDONLY   0 /* Open read-only. */

Definition at line 26 of file fcntl.h.

#define O_RDWR   2 /* Open read/write. */

Definition at line 28 of file fcntl.h.

#define O_TRUNC   01000 /* Truncate file to zero length. */

Definition at line 34 of file fcntl.h.

#define O_WRONLY   1 /* Open write-only. */

Definition at line 27 of file fcntl.h.