Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
fcntl.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  f_owner_ex
 
struct  flock
 
struct  flock64
 

Macros

#define O_ACCMODE   00000003
 
#define O_RDONLY   00000000
 
#define O_WRONLY   00000001
 
#define O_RDWR   00000002
 
#define O_CREAT   00000100 /* not fcntl */
 
#define O_EXCL   00000200 /* not fcntl */
 
#define O_NOCTTY   00000400 /* not fcntl */
 
#define O_TRUNC   00001000 /* not fcntl */
 
#define O_APPEND   00002000
 
#define O_NONBLOCK   00004000
 
#define O_DSYNC   00010000 /* used to be O_SYNC, see below */
 
#define FASYNC   00020000 /* fcntl, for BSD compatibility */
 
#define O_DIRECT   00040000 /* direct disk access hint */
 
#define O_LARGEFILE   00100000
 
#define O_DIRECTORY   00200000 /* must be a directory */
 
#define O_NOFOLLOW   00400000 /* don't follow links */
 
#define O_NOATIME   01000000
 
#define O_CLOEXEC   02000000 /* set close_on_exec */
 
#define __O_SYNC   04000000
 
#define O_SYNC   (__O_SYNC|O_DSYNC)
 
#define O_PATH   010000000
 
#define O_NDELAY   O_NONBLOCK
 
#define F_DUPFD   0 /* dup */
 
#define F_GETFD   1 /* get close_on_exec */
 
#define F_SETFD   2 /* set/clear close_on_exec */
 
#define F_GETFL   3 /* get file->f_flags */
 
#define F_SETFL   4 /* set file->f_flags */
 
#define F_GETLK   5
 
#define F_SETLK   6
 
#define F_SETLKW   7
 
#define F_SETOWN   8 /* for sockets. */
 
#define F_GETOWN   9 /* for sockets. */
 
#define F_SETSIG   10 /* for sockets. */
 
#define F_GETSIG   11 /* for sockets. */
 
#define F_GETLK64   12 /* using 'struct flock64' */
 
#define F_SETLK64   13
 
#define F_SETLKW64   14
 
#define F_SETOWN_EX   15
 
#define F_GETOWN_EX   16
 
#define F_GETOWNER_UIDS   17
 
#define F_OWNER_TID   0
 
#define F_OWNER_PID   1
 
#define F_OWNER_PGRP   2
 
#define FD_CLOEXEC   1 /* actually anything with low bit set goes */
 
#define F_RDLCK   0
 
#define F_WRLCK   1
 
#define F_UNLCK   2
 
#define F_EXLCK   4 /* or 3 */
 
#define F_SHLCK   8 /* or 4 */
 
#define LOCK_SH   1 /* shared lock */
 
#define LOCK_EX   2 /* exclusive lock */
 
#define LOCK_NB
 
#define LOCK_UN   8 /* remove lock */
 
#define LOCK_MAND   32 /* This is a mandatory flock ... */
 
#define LOCK_READ   64 /* which allows concurrent read operations */
 
#define LOCK_WRITE   128 /* which allows concurrent write operations */
 
#define LOCK_RW   192 /* which allows concurrent read & write ops */
 
#define F_LINUX_SPECIFIC_BASE   1024
 
#define __ARCH_FLOCK_PAD
 
#define __ARCH_FLOCK64_PAD
 

Macro Definition Documentation

#define __ARCH_FLOCK64_PAD

Definition at line 184 of file fcntl.h.

#define __ARCH_FLOCK_PAD

Definition at line 167 of file fcntl.h.

#define __O_SYNC   04000000

Definition at line 79 of file fcntl.h.

#define F_DUPFD   0 /* dup */

Definition at line 91 of file fcntl.h.

#define F_EXLCK   4 /* or 3 */

Definition at line 148 of file fcntl.h.

#define F_GETFD   1 /* get close_on_exec */

Definition at line 92 of file fcntl.h.

#define F_GETFL   3 /* get file->f_flags */

Definition at line 94 of file fcntl.h.

#define F_GETLK   5

Definition at line 97 of file fcntl.h.

#define F_GETLK64   12 /* using 'struct flock64' */

Definition at line 112 of file fcntl.h.

#define F_GETOWN   9 /* for sockets. */

Definition at line 103 of file fcntl.h.

#define F_GETOWN_EX   16

Definition at line 120 of file fcntl.h.

#define F_GETOWNER_UIDS   17

Definition at line 124 of file fcntl.h.

#define F_GETSIG   11 /* for sockets. */

Definition at line 107 of file fcntl.h.

#define F_LINUX_SPECIFIC_BASE   1024

Definition at line 163 of file fcntl.h.

#define F_OWNER_PGRP   2

Definition at line 129 of file fcntl.h.

#define F_OWNER_PID   1

Definition at line 128 of file fcntl.h.

#define F_OWNER_TID   0

Definition at line 127 of file fcntl.h.

#define F_RDLCK   0

Definition at line 141 of file fcntl.h.

#define F_SETFD   2 /* set/clear close_on_exec */

Definition at line 93 of file fcntl.h.

#define F_SETFL   4 /* set file->f_flags */

Definition at line 95 of file fcntl.h.

#define F_SETLK   6

Definition at line 98 of file fcntl.h.

#define F_SETLK64   13

Definition at line 113 of file fcntl.h.

#define F_SETLKW   7

Definition at line 99 of file fcntl.h.

#define F_SETLKW64   14

Definition at line 114 of file fcntl.h.

#define F_SETOWN   8 /* for sockets. */

Definition at line 102 of file fcntl.h.

#define F_SETOWN_EX   15

Definition at line 119 of file fcntl.h.

#define F_SETSIG   10 /* for sockets. */

Definition at line 106 of file fcntl.h.

#define F_SHLCK   8 /* or 4 */

Definition at line 149 of file fcntl.h.

#define F_UNLCK   2

Definition at line 143 of file fcntl.h.

#define F_WRLCK   1

Definition at line 142 of file fcntl.h.

#define FASYNC   00020000 /* fcntl, for BSD compatibility */

Definition at line 44 of file fcntl.h.

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

Definition at line 137 of file fcntl.h.

#define LOCK_EX   2 /* exclusive lock */

Definition at line 154 of file fcntl.h.

#define LOCK_MAND   32 /* This is a mandatory flock ... */

Definition at line 158 of file fcntl.h.

#define LOCK_NB
Value:
4 /* or'd with one of the above to prevent
blocking */

Definition at line 155 of file fcntl.h.

#define LOCK_READ   64 /* which allows concurrent read operations */

Definition at line 159 of file fcntl.h.

#define LOCK_RW   192 /* which allows concurrent read & write ops */

Definition at line 161 of file fcntl.h.

#define LOCK_SH   1 /* shared lock */

Definition at line 153 of file fcntl.h.

#define LOCK_UN   8 /* remove lock */

Definition at line 156 of file fcntl.h.

#define LOCK_WRITE   128 /* which allows concurrent write operations */

Definition at line 160 of file fcntl.h.

#define O_ACCMODE   00000003

Definition at line 18 of file fcntl.h.

#define O_APPEND   00002000

Definition at line 35 of file fcntl.h.

#define O_CLOEXEC   02000000 /* set close_on_exec */

Definition at line 62 of file fcntl.h.

#define O_CREAT   00000100 /* not fcntl */

Definition at line 23 of file fcntl.h.

#define O_DIRECT   00040000 /* direct disk access hint */

Definition at line 47 of file fcntl.h.

#define O_DIRECTORY   00200000 /* must be a directory */

Definition at line 53 of file fcntl.h.

#define O_DSYNC   00010000 /* used to be O_SYNC, see below */

Definition at line 41 of file fcntl.h.

#define O_EXCL   00000200 /* not fcntl */

Definition at line 26 of file fcntl.h.

#define O_LARGEFILE   00100000

Definition at line 50 of file fcntl.h.

#define O_NDELAY   O_NONBLOCK

Definition at line 88 of file fcntl.h.

#define O_NOATIME   01000000

Definition at line 59 of file fcntl.h.

#define O_NOCTTY   00000400 /* not fcntl */

Definition at line 29 of file fcntl.h.

#define O_NOFOLLOW   00400000 /* don't follow links */

Definition at line 56 of file fcntl.h.

#define O_NONBLOCK   00004000

Definition at line 38 of file fcntl.h.

#define O_PATH   010000000

Definition at line 84 of file fcntl.h.

#define O_RDONLY   00000000

Definition at line 19 of file fcntl.h.

#define O_RDWR   00000002

Definition at line 21 of file fcntl.h.

#define O_SYNC   (__O_SYNC|O_DSYNC)

Definition at line 80 of file fcntl.h.

#define O_TRUNC   00001000 /* not fcntl */

Definition at line 32 of file fcntl.h.

#define O_WRONLY   00000001

Definition at line 20 of file fcntl.h.