blob: f65c4fa389e59cf9e1a3c80a61f361558d4531f8 [file] [log] [blame]
Guido van Rossum9a707e81995-04-05 09:44:56 +00001# Generated by h2py from /usr/include/sys/fcntl.h
2
3# Included from fcntl.h
4
5# Included from features.h
6_FEATURES_H = 1
7_GNU_SOURCE = 1
8__USE_ANSI = 1
9__FAVOR_BSD = 1
10_BSD_SOURCE = 1
11_SVID_SOURCE = 1
12_POSIX_SOURCE = 1
13_POSIX_C_SOURCE = 2
14__USE_POSIX = 1
15__USE_POSIX2 = 1
16__USE_MISC = 1
17__USE_BSD = 1
18__USE_SVID = 1
19__USE_GNU = 1
20__GNU_LIBRARY__ = 1
21
22# Included from sys/cdefs.h
23_SYS_CDEFS_H = 1
24def __P(args): return args
25
26def __P(args): return args
27
28def __P(args): return ()
29
30def __STRING(x): return #x
31
32def __STRING(x): return "x"
33
34
35# Included from sys/types.h
36
37# Included from linux/types.h
Guido van Rossum15c4fec1996-01-26 17:43:46 +000038__FD_SETSIZE = 256
Guido van Rossum9a707e81995-04-05 09:44:56 +000039
40# Included from asm/types.h
Guido van Rossum9a707e81995-04-05 09:44:56 +000041def __FD_ZERO(fdsetp): return \
42
43
Guido van Rossum15c4fec1996-01-26 17:43:46 +000044# Included from sys/bitypes.h
45
Guido van Rossum9a707e81995-04-05 09:44:56 +000046# Included from gnu/types.h
47_GNU_TYPES_H = 1
48__FDSET_LONGS = 8
49def __FD_ZERO(fdsetp): return \
50
51__FD_SETSIZE = 256
52def __FDELT(d): return ((d) / __NFDBITS)
53
54def __FDMASK(d): return (1 << ((d) % __NFDBITS))
55
56def __FD_ZERO(set): return \
57
58
59# Included from linux/fcntl.h
Guido van Rossum15c4fec1996-01-26 17:43:46 +000060
61# Included from asm/fcntl.h
Guido van Rossum9a707e81995-04-05 09:44:56 +000062O_ACCMODE = 0003
63O_RDONLY = 00
64O_WRONLY = 01
65O_RDWR = 02
66O_CREAT = 0100
67O_EXCL = 0200
68O_NOCTTY = 0400
69O_TRUNC = 01000
70O_APPEND = 02000
71O_NONBLOCK = 04000
72O_NDELAY = O_NONBLOCK
73O_SYNC = 010000
74FASYNC = 020000
75F_DUPFD = 0
76F_GETFD = 1
77F_SETFD = 2
78F_GETFL = 3
79F_SETFL = 4
80F_GETLK = 5
81F_SETLK = 6
82F_SETLKW = 7
83F_SETOWN = 8
84F_GETOWN = 9
85FD_CLOEXEC = 1
86F_RDLCK = 0
87F_WRLCK = 1
88F_UNLCK = 2
89F_EXLCK = 4
90F_SHLCK = 8
Guido van Rossum15c4fec1996-01-26 17:43:46 +000091LOCK_SH = 1
92LOCK_EX = 2
93LOCK_NB = 4
94LOCK_UN = 8
95F_POSIX = 1
96F_FLOCK = 2
Guido van Rossum9a707e81995-04-05 09:44:56 +000097FNDELAY = O_NDELAY
98F_ULOCK = 0
99F_LOCK = 1
100F_TLOCK = 2
101F_TEST = 3