Back to index

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

Go to the source code of this file.

Classes

struct  flock

Defines

#define O_RDONLY   0x0001 /* Open read-only. */
#define O_WRONLY   0x0002 /* Open write-only. */
#define O_RDWR   (O_RDONLY|O_WRONLY) /* Open for reading and writing. */
#define O_ACCMODE   O_RDWR /* Mask for file access modes. */
#define O_LARGEFILE   0
#define O_CREAT   0x0010 /* Create file if it doesn't exist. */
#define O_EXCL   0x0020 /* Fail if file already exists. */
#define O_APPEND   0x0100 /* Writes always append to the file. */
#define O_ASYNC   0x0200 /* Send SIGIO to owner when data is ready. */
#define O_FSYNC   0x0400 /* Synchronous writes. */
#define O_SYNC   O_FSYNC
#define O_NONBLOCK   0x0008 /* Non-blocking open or non-blocking I/O. */
#define O_TRUNC   0x00010000 /* Truncate file to zero length. */
#define O_NOCTTY   0 /* Don't assign a controlling terminal. */
#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 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 157 of file fcntl.h.

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

Definition at line 158 of file fcntl.h.

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

Definition at line 160 of file fcntl.h.

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

Definition at line 166 of file fcntl.h.

#define F_RDLCK   1 /* Read lock. */

Definition at line 209 of file fcntl.h.

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

Definition at line 159 of file fcntl.h.

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

Definition at line 161 of file fcntl.h.

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

Definition at line 167 of file fcntl.h.

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

Definition at line 168 of file fcntl.h.

#define F_UNLCK   3 /* Remove lock. */

Definition at line 211 of file fcntl.h.

#define F_WRLCK   2 /* Write lock. */

Definition at line 210 of file fcntl.h.

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

Definition at line 176 of file fcntl.h.

#define O_ACCMODE   O_RDWR /* Mask for file access modes. */

Definition at line 44 of file fcntl.h.

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

Definition at line 70 of file fcntl.h.

#define O_ASYNC   0x0200 /* Send SIGIO to owner when data is ready. */

Definition at line 71 of file fcntl.h.

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

Definition at line 53 of file fcntl.h.

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

Definition at line 54 of file fcntl.h.

#define O_FSYNC   0x0400 /* Synchronous writes. */

Definition at line 72 of file fcntl.h.

#define O_LARGEFILE   0

Definition at line 46 of file fcntl.h.

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

Definition at line 134 of file fcntl.h.

#define O_NONBLOCK   0x0008 /* Non-blocking open or non-blocking I/O. */

Definition at line 105 of file fcntl.h.

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

Definition at line 41 of file fcntl.h.

#define O_RDWR   (O_RDONLY|O_WRONLY) /* Open for reading and writing. */

Definition at line 43 of file fcntl.h.

#define O_SYNC   O_FSYNC

Definition at line 73 of file fcntl.h.

#define O_TRUNC   0x00010000 /* Truncate file to zero length. */

Definition at line 121 of file fcntl.h.

#define O_WRONLY   0x0002 /* Open write-only. */

Definition at line 42 of file fcntl.h.