blob: d2220e88fa656f505c9c5762cf9b4bd2ecc40607 [file] [log] [blame]
Guido van Rossume7b6e391998-05-06 15:14:36 +00001# Generated by h2py from /usr/include/fcntl.h
2
3# Included from sys/types.h
4
5# Included from sys/cdefs.h
6def __P(protos): return protos
7
8def __STRING(x): return #x
9
10def __XSTRING(x): return __STRING(x)
11
12def __P(protos): return ()
13
14def __STRING(x): return "x"
15
16def __RCSID(s): return __IDSTRING(rcsid,s)
17
18def __RCSID_SOURCE(s): return __IDSTRING(rcsid_source,s)
19
20def __COPYRIGHT(s): return __IDSTRING(copyright,s)
21
22
23# Included from machine/ansi.h
24_BSD_PTRDIFF_T_ = int
25_BSD_SSIZE_T_ = int
26_BSD_TIME_T_ = long
27_BSD_CLOCKID_T_ = int
28_BSD_TIMER_T_ = int
29_BSD_CT_RUNE_T_ = int
30_BSD_PID_T_ = int
31_BSD_CLK_TCK_ = 128
32_BSD_CLOCKS_PER_SEC_ = 128
33
34# Included from machine/types.h
35def major(x): return ((int)(((u_int)(x) >> 8)&0xff))
36
37def minor(x): return ((int)((x)&0xffff00ff))
38
39
40# Included from machine/endian.h
41_QUAD_HIGHWORD = 1
42_QUAD_LOWWORD = 0
43LITTLE_ENDIAN = 1234
44BIG_ENDIAN = 4321
45PDP_ENDIAN = 3412
46BYTE_ORDER = LITTLE_ENDIAN
47def __word_swap_long(x): return \
48
49def __byte_swap_long(x): return \
50
51def __byte_swap_long(x): return \
52
53def __byte_swap_word(x): return \
54
55ntohl = __byte_swap_long
56ntohs = __byte_swap_word
57htonl = __byte_swap_long
58htons = __byte_swap_word
59NBBY = 8
60FD_SETSIZE = 1024
61O_RDONLY = 0x0000
62O_WRONLY = 0x0001
63O_RDWR = 0x0002
64O_ACCMODE = 0x0003
65FREAD = 0x0001
66FWRITE = 0x0002
67O_NONBLOCK = 0x0004
68O_APPEND = 0x0008
69O_SHLOCK = 0x0010
70O_EXLOCK = 0x0020
71O_ASYNC = 0x0040
72O_FSYNC = 0x0080
73O_NOFOLLOW = 0x0100
74O_CREAT = 0x0200
75O_TRUNC = 0x0400
76O_EXCL = 0x0800
77FMARK = 0x1000
78FDEFER = 0x2000
79FHASLOCK = 0x4000
80O_NOCTTY = 0x8000
81def FFLAGS(oflags): return ((oflags) + 1)
82
83def OFLAGS(fflags): return ((fflags) - 1)
84
85FAPPEND = O_APPEND
86FASYNC = O_ASYNC
87FFSYNC = O_FSYNC
88FNONBLOCK = O_NONBLOCK
89FNDELAY = O_NONBLOCK
90O_NDELAY = O_NONBLOCK
91F_DUPFD = 0
92F_GETFD = 1
93F_SETFD = 2
94F_GETFL = 3
95F_SETFL = 4
96F_GETOWN = 5
97F_SETOWN = 6
98F_GETLK = 7
99F_SETLK = 8
100F_SETLKW = 9
101FD_CLOEXEC = 1
102F_RDLCK = 1
103F_UNLCK = 2
104F_WRLCK = 3
105F_WAIT = 0x010
106F_FLOCK = 0x020
107F_POSIX = 0x040
108LOCK_SH = 0x01
109LOCK_EX = 0x02
110LOCK_NB = 0x04
111LOCK_UN = 0x08