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