The 0.5 release happened on 2/15, not on 2/14. :-)
[python/dscho.git] / Lib / plat-freebsd3 / FCNTL.py
blobd2220e88fa656f505c9c5762cf9b4bd2ecc40607
1 # Generated by h2py from /usr/include/fcntl.h
3 # Included from sys/types.h
5 # Included from sys/cdefs.h
6 def __P(protos): return protos
8 def __STRING(x): return #x
10 def __XSTRING(x): return __STRING(x)
12 def __P(protos): return ()
14 def __STRING(x): return "x"
16 def __RCSID(s): return __IDSTRING(rcsid,s)
18 def __RCSID_SOURCE(s): return __IDSTRING(rcsid_source,s)
20 def __COPYRIGHT(s): return __IDSTRING(copyright,s)
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
34 # Included from machine/types.h
35 def major(x): return ((int)(((u_int)(x) >> 8)&0xff))
37 def minor(x): return ((int)((x)&0xffff00ff))
40 # Included from machine/endian.h
41 _QUAD_HIGHWORD = 1
42 _QUAD_LOWWORD = 0
43 LITTLE_ENDIAN = 1234
44 BIG_ENDIAN = 4321
45 PDP_ENDIAN = 3412
46 BYTE_ORDER = LITTLE_ENDIAN
47 def __word_swap_long(x): return \
49 def __byte_swap_long(x): return \
51 def __byte_swap_long(x): return \
53 def __byte_swap_word(x): return \
55 ntohl = __byte_swap_long
56 ntohs = __byte_swap_word
57 htonl = __byte_swap_long
58 htons = __byte_swap_word
59 NBBY = 8
60 FD_SETSIZE = 1024
61 O_RDONLY = 0x0000
62 O_WRONLY = 0x0001
63 O_RDWR = 0x0002
64 O_ACCMODE = 0x0003
65 FREAD = 0x0001
66 FWRITE = 0x0002
67 O_NONBLOCK = 0x0004
68 O_APPEND = 0x0008
69 O_SHLOCK = 0x0010
70 O_EXLOCK = 0x0020
71 O_ASYNC = 0x0040
72 O_FSYNC = 0x0080
73 O_NOFOLLOW = 0x0100
74 O_CREAT = 0x0200
75 O_TRUNC = 0x0400
76 O_EXCL = 0x0800
77 FMARK = 0x1000
78 FDEFER = 0x2000
79 FHASLOCK = 0x4000
80 O_NOCTTY = 0x8000
81 def FFLAGS(oflags): return ((oflags) + 1)
83 def OFLAGS(fflags): return ((fflags) - 1)
85 FAPPEND = O_APPEND
86 FASYNC = O_ASYNC
87 FFSYNC = O_FSYNC
88 FNONBLOCK = O_NONBLOCK
89 FNDELAY = O_NONBLOCK
90 O_NDELAY = O_NONBLOCK
91 F_DUPFD = 0
92 F_GETFD = 1
93 F_SETFD = 2
94 F_GETFL = 3
95 F_SETFL = 4
96 F_GETOWN = 5
97 F_SETOWN = 6
98 F_GETLK = 7
99 F_SETLK = 8
100 F_SETLKW = 9
101 FD_CLOEXEC = 1
102 F_RDLCK = 1
103 F_UNLCK = 2
104 F_WRLCK = 3
105 F_WAIT = 0x010
106 F_FLOCK = 0x020
107 F_POSIX = 0x040
108 LOCK_SH = 0x01
109 LOCK_EX = 0x02
110 LOCK_NB = 0x04
111 LOCK_UN = 0x08