summaryrefslogtreecommitdiffstats
path: root/Lib/linux2/FCNTL.py
blob: f65c4fa389e59cf9e1a3c80a61f361558d4531f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Generated by h2py from /usr/include/sys/fcntl.h

# Included from fcntl.h

# Included from features.h
_FEATURES_H = 1
_GNU_SOURCE = 1
__USE_ANSI = 1
__FAVOR_BSD = 1
_BSD_SOURCE = 1
_SVID_SOURCE = 1
_POSIX_SOURCE = 1
_POSIX_C_SOURCE = 2
__USE_POSIX = 1
__USE_POSIX2 = 1
__USE_MISC = 1
__USE_BSD = 1
__USE_SVID = 1
__USE_GNU = 1
__GNU_LIBRARY__ = 1

# Included from sys/cdefs.h
_SYS_CDEFS_H = 1
def __P(args): return args	 

def __P(args): return args

def __P(args): return ()	 

def __STRING(x): return #x

def __STRING(x): return "x"


# Included from sys/types.h

# Included from linux/types.h
__FD_SETSIZE = 256

# Included from asm/types.h
def __FD_ZERO(fdsetp): return \


# Included from sys/bitypes.h

# Included from gnu/types.h
_GNU_TYPES_H = 1
__FDSET_LONGS = 8
def __FD_ZERO(fdsetp): return \

__FD_SETSIZE = 256
def __FDELT(d): return ((d) / __NFDBITS)

def __FDMASK(d): return (1 << ((d) % __NFDBITS))

def __FD_ZERO(set): return \


# Included from linux/fcntl.h

# Included from asm/fcntl.h
O_ACCMODE = 0003
O_RDONLY = 00
O_WRONLY = 01
O_RDWR = 02
O_CREAT = 0100
O_EXCL = 0200
O_NOCTTY = 0400
O_TRUNC = 01000
O_APPEND = 02000
O_NONBLOCK = 04000
O_NDELAY = O_NONBLOCK
O_SYNC = 010000
FASYNC = 020000
F_DUPFD = 0
F_GETFD = 1
F_SETFD = 2
F_GETFL = 3
F_SETFL = 4
F_GETLK = 5
F_SETLK = 6
F_SETLKW = 7
F_SETOWN = 8
F_GETOWN = 9
FD_CLOEXEC = 1
F_RDLCK = 0
F_WRLCK = 1
F_UNLCK = 2
F_EXLCK = 4
F_SHLCK = 8
LOCK_SH = 1
LOCK_EX = 2
LOCK_NB = 4
LOCK_UN = 8
F_POSIX = 1
F_FLOCK = 2
FNDELAY = O_NDELAY
F_ULOCK = 0
F_LOCK = 1
F_TLOCK = 2
F_TEST = 3