blob: 3fe26ce5e76b564023fb5f34654119f9b4499085 [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
93F_DUPFD = 0
94F_GETFD = 1
95F_SETFD = 2
96F_GETFL = 3
97F_SETFL = 4
98F_GETOWN = 5
99F_SETOWN = 6
100F_GETLK = 7
101F_SETLK = 8
102F_SETLKW = 9
103FD_CLOEXEC = 1
104F_RDLCK = 1
105F_UNLCK = 2
106F_WRLCK = 3
107F_WAIT = 0x010
108F_FLOCK = 0x020
109F_POSIX = 0x040
110LOCK_SH = 0x01
111LOCK_EX = 0x02
112LOCK_NB = 0x04
113LOCK_UN = 0x08