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   0x0200 /* Create file if it doesn't exist. */
#define O_EXCL   0x0800 /* Fail if file already exists. */
#define O_TRUNC   0x0400 /* Truncate file to zero length. */
#define O_NOCTTY   0 /* Don't assign a controlling terminal. */
#define O_APPEND   0x0008 /* Writes append to the file. */
#define O_NONBLOCK   0x0004 /* Non-blocking I/O. */
#define O_ACCMODE   (O_RDONLY|O_WRONLY|O_RDWR)
#define O_LARGEFILE   0
#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   7 /* Get record locking info. */
#define F_SETLK64   8 /* Set record locking info (non-blocking). */
#define F_SETLKW64   9 /* Set record locking info (blocking). */
#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 83 of file fcntl.h.

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

Definition at line 84 of file fcntl.h.

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

Definition at line 86 of file fcntl.h.

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

Definition at line 92 of file fcntl.h.

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

Definition at line 97 of file fcntl.h.

#define F_RDLCK   1 /* Read lock. */

Definition at line 137 of file fcntl.h.

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

Definition at line 85 of file fcntl.h.

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

Definition at line 87 of file fcntl.h.

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

Definition at line 93 of file fcntl.h.

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

Definition at line 98 of file fcntl.h.

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

Definition at line 94 of file fcntl.h.

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

Definition at line 99 of file fcntl.h.

#define F_UNLCK   3 /* Remove lock. */

Definition at line 139 of file fcntl.h.

#define F_WRLCK   2 /* Write lock. */

Definition at line 138 of file fcntl.h.

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

Definition at line 102 of file fcntl.h.

Definition at line 77 of file fcntl.h.

#define O_APPEND   0x0008 /* Writes append to the file. */

Definition at line 45 of file fcntl.h.

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

Definition at line 32 of file fcntl.h.

#define O_EXCL   0x0800 /* Fail if file already exists. */

Definition at line 33 of file fcntl.h.

#define O_LARGEFILE   0

Definition at line 80 of file fcntl.h.

#define O_NOCTTY   0 /* Don't assign a controlling terminal. */

Definition at line 37 of file fcntl.h.

#define O_NONBLOCK   0x0004 /* 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   0x0400 /* 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.