blob: e3393b6f17e7df6487f737e7ec70029c61940b59 [file] [log] [blame]
Guido van Rossum1ce7c6f1997-01-15 19:19:19 +00001# Generated by h2py from /usr/include/sys/file.h
2
3# Included from standards.h
4
5# Included from sys/types.h
6
7# Included from sgidefs.h
8_MIPS_ISA_MIPS1 = 1
9_MIPS_ISA_MIPS2 = 2
10_MIPS_ISA_MIPS3 = 3
11_MIPS_ISA_MIPS4 = 4
12_MIPS_SIM_ABI32 = 1
13_MIPS_SIM_NABI32 = 2
14_MIPS_SIM_ABI64 = 3
15P_MYID = (-1)
16P_MYHOSTID = (-1)
17
18# Included from sys/bsd_types.h
19
20# Included from sys/mkdev.h
21ONBITSMAJOR = 7
22ONBITSMINOR = 8
23OMAXMAJ = 0x7f
24OMAXMIN = 0xff
25NBITSMAJOR = 14
26NBITSMINOR = 18
27MAXMAJ = 0x1ff
28MAXMIN = 0x3ffff
29OLDDEV = 0
30NEWDEV = 1
31MKDEV_VER = NEWDEV
32def major(dev): return __major(MKDEV_VER, dev)
33
34def minor(dev): return __minor(MKDEV_VER, dev)
35
36
37# Included from sys/select.h
38FD_SETSIZE = 1024
39__NBBY = 8
40
41# Included from string.h
42NULL = 0L
43NBBY = 8
44
45# Included from sys/sema.h
46MUTEX_DEFAULT = 0x0
47METER_NAMSZ = 8
48def mutex_spinlock(l): return splhi()
49
50def mutex_spintrylock(l): return splhi()
51
52def spinlock_islocked(l): return issplhi(getsr())
53
54def spinlock_initialized(l): return 1
55
56SV_FIFO = 0x0
57SV_LIFO = 0x2
58SV_PRIO = 0x4
59SV_DEFAULT = SV_FIFO
60SEMA_NOHIST = 0x0001
61SEMA_LOCK = 0x0004
62SEMA_METER = 0x0008
63SEMA_NAMSZ = METER_NAMSZ
64MR_ACCESS = 0x1
65MR_UPDATE = 0x2
66def mp_mutex_unlock(m): return mutex_unlock(m)
67
68def mp_mutex_trylock(m): return mutex_trylock(m)
69
70def mp_mutex_spinlock(m): return mutex_spinlock(m)
71
72def mp_mutex_trylock(m): return 1
73
74def mp_mutex_spinlock(m): return 1
75
76def nested_spintrylock(m): return 1
77
78def mp_mrunlock(a): return mrunlock(a)
79
80def mp_cpsema(x): return cpsema(x)
81
82def mp_cvsema(x): return cvsema(x)
83
84def mp_cpsema(x): return 1
85
86def mp_cvsema(x): return 0
87
88MON_LOCKED = 0x01
89MON_WAITING = 0x02
90MON_TIMEOUT = 0x04
91def initlock(l): return spinlock_init(l,0)
92
93def ownlock(x): return 1
94
95def splock(x): return 1
96
97def io_splock(x): return 1
98
99def mutex_enter(m): return mutex_lock(m, PZERO)
100
101def mutex_tryenter(m): return mutex_trylock(m)
102
103def mutex_exit(m): return mutex_unlock(m)
104
105def cv_signal(cv): return sv_signal(cv)
106
107def cv_broadcast(cv): return sv_broadcast(cv)
108
109def cv_destroy(cv): return sv_destroy(cv)
110
111RW_READER = MR_ACCESS
112RW_WRITER = MR_UPDATE
113def rw_exit(r): return mrunlock(r)
114
115def rw_tryupgrade(r): return cmrpromote(r)
116
117def rw_downgrade(r): return mrdemote(r)
118
119def rw_destroy(r): return mrfree(r)
120
121def RW_WRITE_HELD(r): return ismrlocked(r, MR_UPDATE)
122
123def RW_READ_HELD(r): return ismrlocked(r, MR_ACCESS)
124
125
126# Included from sys/fcntl.h
127FNDELAY = 0x04
128FAPPEND = 0x08
129FSYNC = 0x10
130FDSYNC = 0x20
131FRSYNC = 0x40
132FNONBLOCK = 0x80
133FASYNC = 0x1000
134FLARGEFILE = 0x2000
135FNONBLK = FNONBLOCK
136FDIRECT = 0x8000
137FDIRENT64 = 0x8000
138FCREAT = 0x0100
139FTRUNC = 0x0200
140FEXCL = 0x0400
141FNOCTTY = 0x0800
142O_RDONLY = 0
143O_WRONLY = 1
144O_RDWR = 2
145O_NDELAY = 0x04
146O_APPEND = 0x08
147O_SYNC = 0x10
148O_DSYNC = 0x20
149O_RSYNC = 0x40
150O_NONBLOCK = 0x80
151O_LARGEFILE = 0x2000
152O_DIRECT = 0x8000
153O_CREAT = 0x100
154O_TRUNC = 0x200
155O_EXCL = 0x400
156O_NOCTTY = 0x800
157F_DUPFD = 0
158F_GETFD = 1
159F_SETFD = 2
160F_GETFL = 3
161F_SETFL = 4
162F_GETLK = 14
163F_SETLK = 6
164F_SETLKW = 7
165F_CHKFL = 8
166F_ALLOCSP = 10
167F_FREESP = 11
168F_SETBSDLK = 12
169F_SETBSDLKW = 13
170F_DIOINFO = 30
171F_FSGETXATTR = 31
172F_FSSETXATTR = 32
173F_GETLK64 = 33
174F_SETLK64 = 34
175F_SETLKW64 = 35
176F_ALLOCSP64 = 36
177F_FREESP64 = 37
178F_GETBMAP = 38
179F_FSSETDM = 39
180F_RESVSP = 40
181F_UNRESVSP = 41
182F_RESVSP64 = 42
183F_UNRESVSP64 = 43
184F_GETBMAPA = 44
185F_FSGETXATTRA = 45
186F_GETALLLK = 46
187F_RSETLK = 20
188F_RGETLK = 21
189F_RSETLKW = 22
190F_GETOWN = 23
191F_SETOWN = 24
192F_RDLCK = 01
193F_WRLCK = 02
194F_UNLCK = 03
195O_ACCMODE = 3
196FD_CLOEXEC = 1
197FD_NODUP_FORK = 4
198FMASK = 0x90FF
199FOPEN = 0xFFFFFFFF
200FREAD = 0x01
201FWRITE = 0x02
202FNDELAY = 0x04
203FAPPEND = 0x08
204FSYNC = 0x10
205FDSYNC = 0x20
206FRSYNC = 0x40
207FNONBLOCK = 0x80
208FASYNC = 0x1000
209FNONBLK = FNONBLOCK
210FLARGEFILE = 0x2000
211FDIRECT = 0x8000
212FCREAT = 0x0100
213FTRUNC = 0x0200
214FEXCL = 0x0400
215FNOCTTY = 0x0800
216FMARK = 0x4000
217FDEFER = 0x2000
218FINPROGRESS = 0x0400
219FINVIS = 0x0100
220FNMFS = 0x2000
221FDIRENT64 = 0x8000
222FCLOSEXEC = 001
223FDSHD = 0x0001
224FDNOMARK = 0x0002
225FDIGNPROGRESS = 0x0004
226LOCK_SH = 1
227LOCK_EX = 2
228LOCK_NB = 4
229LOCK_UN = 8
230F_OK = 0
231X_OK = 1
232W_OK = 2
233R_OK = 4
234L_SET = 0
235L_INCR = 1
236L_XTND = 2