Added 'description' class attribute to every command class (to help the
[python/dscho.git] / Lib / plat-linux2 / FCNTL.py
blob0058abae11a2987407e2f8e0b23f16219aa7d576
1 # Generated by h2py from /usr/include/sys/fcntl.h
3 # Included from fcntl.h
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
22 # Included from sys/cdefs.h
23 _SYS_CDEFS_H = 1
24 def __P(args): return args
26 def __P(args): return args
28 def __P(args): return ()
30 def __STRING(x): return #x
32 def __STRING(x): return "x"
35 # Included from sys/types.h
37 # Included from linux/types.h
39 # Included from linux/posix_types.h
40 __FD_SETSIZE = 1024
41 def __FDELT(d): return ((d) / __NFDBITS)
44 # Included from asm/posix_types.h
45 def __FD_ZERO(fdsetp): return \
48 # Included from asm/types.h
50 # Included from sys/bitypes.h
52 # Included from gnu/types.h
53 _GNU_TYPES_H = 1
54 __FDSET_LONGS = 8
55 def __FD_ZERO(fdsetp): return \
57 __FD_SETSIZE = 256
58 def __FDELT(d): return ((d) / __NFDBITS)
60 def __FDMASK(d): return (1 << ((d) % __NFDBITS))
62 def __FD_ZERO(set): return \
65 # Included from linux/fcntl.h
67 # Included from asm/fcntl.h
68 O_ACCMODE = 0003
69 O_RDONLY = 00
70 O_WRONLY = 01
71 O_RDWR = 02
72 O_CREAT = 0100
73 O_EXCL = 0200
74 O_NOCTTY = 0400
75 O_TRUNC = 01000
76 O_APPEND = 02000
77 O_NONBLOCK = 04000
78 O_NDELAY = O_NONBLOCK
79 O_SYNC = 010000
80 FASYNC = 020000
81 F_DUPFD = 0
82 F_GETFD = 1
83 F_SETFD = 2
84 F_GETFL = 3
85 F_SETFL = 4
86 F_GETLK = 5
87 F_SETLK = 6
88 F_SETLKW = 7
89 F_SETOWN = 8
90 F_GETOWN = 9
91 FD_CLOEXEC = 1
92 F_RDLCK = 0
93 F_WRLCK = 1
94 F_UNLCK = 2
95 F_EXLCK = 4
96 F_SHLCK = 8
97 LOCK_SH = 1
98 LOCK_EX = 2
99 LOCK_NB = 4
100 LOCK_UN = 8
101 F_POSIX = 1
102 F_FLOCK = 2
103 F_BROKEN = 4
104 FNDELAY = O_NDELAY
105 F_ULOCK = 0
106 F_LOCK = 1
107 F_TLOCK = 2
108 F_TEST = 3