PageRenderTime 417ms CodeModel.GetById 141ms app.highlight 99ms RepoModel.GetById 174ms app.codeStats 0ms

/Lib/plat-sunos5/TYPES.py

http://unladen-swallow.googlecode.com/
Python | 313 lines | 248 code | 49 blank | 16 comment | 0 complexity | 547bd82b279ac2d0eb17f6655f8400e8 MD5 | raw file
  1# Generated by h2py from /usr/include/sys/types.h
  2
  3# Included from sys/isa_defs.h
  4_CHAR_ALIGNMENT = 1
  5_SHORT_ALIGNMENT = 2
  6_INT_ALIGNMENT = 4
  7_LONG_ALIGNMENT = 8
  8_LONG_LONG_ALIGNMENT = 8
  9_DOUBLE_ALIGNMENT = 8
 10_LONG_DOUBLE_ALIGNMENT = 16
 11_POINTER_ALIGNMENT = 8
 12_MAX_ALIGNMENT = 16
 13_ALIGNMENT_REQUIRED = 1
 14_CHAR_ALIGNMENT = 1
 15_SHORT_ALIGNMENT = 2
 16_INT_ALIGNMENT = 4
 17_LONG_ALIGNMENT = 4
 18_LONG_LONG_ALIGNMENT = 4
 19_DOUBLE_ALIGNMENT = 4
 20_LONG_DOUBLE_ALIGNMENT = 4
 21_POINTER_ALIGNMENT = 4
 22_MAX_ALIGNMENT = 4
 23_ALIGNMENT_REQUIRED = 0
 24_CHAR_ALIGNMENT = 1
 25_SHORT_ALIGNMENT = 2
 26_INT_ALIGNMENT = 4
 27_LONG_LONG_ALIGNMENT = 8
 28_DOUBLE_ALIGNMENT = 8
 29_ALIGNMENT_REQUIRED = 1
 30_LONG_ALIGNMENT = 4
 31_LONG_DOUBLE_ALIGNMENT = 8
 32_POINTER_ALIGNMENT = 4
 33_MAX_ALIGNMENT = 8
 34_LONG_ALIGNMENT = 8
 35_LONG_DOUBLE_ALIGNMENT = 16
 36_POINTER_ALIGNMENT = 8
 37_MAX_ALIGNMENT = 16
 38
 39# Included from sys/feature_tests.h
 40_POSIX_C_SOURCE = 1
 41_LARGEFILE64_SOURCE = 1
 42_LARGEFILE_SOURCE = 1
 43_FILE_OFFSET_BITS = 64
 44_FILE_OFFSET_BITS = 32
 45_POSIX_C_SOURCE = 199506L
 46_POSIX_PTHREAD_SEMANTICS = 1
 47_XOPEN_VERSION = 500
 48_XOPEN_VERSION = 4
 49_XOPEN_VERSION = 3
 50
 51# Included from sys/machtypes.h
 52
 53# Included from sys/inttypes.h
 54
 55# Included from sys/int_types.h
 56
 57# Included from sys/int_limits.h
 58INT8_MAX = (127)
 59INT16_MAX = (32767)
 60INT32_MAX = (2147483647)
 61INTMAX_MAX = INT32_MAX
 62INT_LEAST8_MAX = INT8_MAX
 63INT_LEAST16_MAX = INT16_MAX
 64INT_LEAST32_MAX = INT32_MAX
 65INT8_MIN = (-128)
 66INT16_MIN = (-32767-1)
 67INT32_MIN = (-2147483647-1)
 68INTMAX_MIN = INT32_MIN
 69INT_LEAST8_MIN = INT8_MIN
 70INT_LEAST16_MIN = INT16_MIN
 71INT_LEAST32_MIN = INT32_MIN
 72
 73# Included from sys/int_const.h
 74def INT8_C(c): return (c)
 75
 76def INT16_C(c): return (c)
 77
 78def INT32_C(c): return (c)
 79
 80def INT64_C(c): return __CONCAT__(c,l)
 81
 82def INT64_C(c): return __CONCAT__(c,ll)
 83
 84def UINT8_C(c): return __CONCAT__(c,u)
 85
 86def UINT16_C(c): return __CONCAT__(c,u)
 87
 88def UINT32_C(c): return __CONCAT__(c,u)
 89
 90def UINT64_C(c): return __CONCAT__(c,ul)
 91
 92def UINT64_C(c): return __CONCAT__(c,ull)
 93
 94def INTMAX_C(c): return __CONCAT__(c,l)
 95
 96def UINTMAX_C(c): return __CONCAT__(c,ul)
 97
 98def INTMAX_C(c): return __CONCAT__(c,ll)
 99
100def UINTMAX_C(c): return __CONCAT__(c,ull)
101
102def INTMAX_C(c): return (c)
103
104def UINTMAX_C(c): return (c)
105
106
107# Included from sys/int_fmtio.h
108PRId8 = "d"
109PRId16 = "d"
110PRId32 = "d"
111PRId64 = "ld"
112PRId64 = "lld"
113PRIdLEAST8 = "d"
114PRIdLEAST16 = "d"
115PRIdLEAST32 = "d"
116PRIdLEAST64 = "ld"
117PRIdLEAST64 = "lld"
118PRIi8 = "i"
119PRIi16 = "i"
120PRIi32 = "i"
121PRIi64 = "li"
122PRIi64 = "lli"
123PRIiLEAST8 = "i"
124PRIiLEAST16 = "i"
125PRIiLEAST32 = "i"
126PRIiLEAST64 = "li"
127PRIiLEAST64 = "lli"
128PRIo8 = "o"
129PRIo16 = "o"
130PRIo32 = "o"
131PRIo64 = "lo"
132PRIo64 = "llo"
133PRIoLEAST8 = "o"
134PRIoLEAST16 = "o"
135PRIoLEAST32 = "o"
136PRIoLEAST64 = "lo"
137PRIoLEAST64 = "llo"
138PRIx8 = "x"
139PRIx16 = "x"
140PRIx32 = "x"
141PRIx64 = "lx"
142PRIx64 = "llx"
143PRIxLEAST8 = "x"
144PRIxLEAST16 = "x"
145PRIxLEAST32 = "x"
146PRIxLEAST64 = "lx"
147PRIxLEAST64 = "llx"
148PRIX8 = "X"
149PRIX16 = "X"
150PRIX32 = "X"
151PRIX64 = "lX"
152PRIX64 = "llX"
153PRIXLEAST8 = "X"
154PRIXLEAST16 = "X"
155PRIXLEAST32 = "X"
156PRIXLEAST64 = "lX"
157PRIXLEAST64 = "llX"
158PRIu8 = "u"
159PRIu16 = "u"
160PRIu32 = "u"
161PRIu64 = "lu"
162PRIu64 = "llu"
163PRIuLEAST8 = "u"
164PRIuLEAST16 = "u"
165PRIuLEAST32 = "u"
166PRIuLEAST64 = "lu"
167PRIuLEAST64 = "llu"
168SCNd16 = "hd"
169SCNd32 = "d"
170SCNd64 = "ld"
171SCNd64 = "lld"
172SCNi16 = "hi"
173SCNi32 = "i"
174SCNi64 = "li"
175SCNi64 = "lli"
176SCNo16 = "ho"
177SCNo32 = "o"
178SCNo64 = "lo"
179SCNo64 = "llo"
180SCNu16 = "hu"
181SCNu32 = "u"
182SCNu64 = "lu"
183SCNu64 = "llu"
184SCNx16 = "hx"
185SCNx32 = "x"
186SCNx64 = "lx"
187SCNx64 = "llx"
188PRIdMAX = "ld"
189PRIoMAX = "lo"
190PRIxMAX = "lx"
191PRIuMAX = "lu"
192PRIdMAX = "lld"
193PRIoMAX = "llo"
194PRIxMAX = "llx"
195PRIuMAX = "llu"
196PRIdMAX = "d"
197PRIoMAX = "o"
198PRIxMAX = "x"
199PRIuMAX = "u"
200SCNiMAX = "li"
201SCNdMAX = "ld"
202SCNoMAX = "lo"
203SCNxMAX = "lx"
204SCNiMAX = "lli"
205SCNdMAX = "lld"
206SCNoMAX = "llo"
207SCNxMAX = "llx"
208SCNiMAX = "i"
209SCNdMAX = "d"
210SCNoMAX = "o"
211SCNxMAX = "x"
212
213# Included from sys/types32.h
214SHRT_MIN = (-32768)
215SHRT_MAX = 32767
216USHRT_MAX = 65535
217INT_MIN = (-2147483647-1)
218INT_MAX = 2147483647
219LONG_MIN = (-9223372036854775807L-1L)
220LONG_MAX = 9223372036854775807L
221LONG_MIN = (-2147483647L-1L)
222LONG_MAX = 2147483647L
223P_MYID = (-1)
224
225# Included from sys/select.h
226
227# Included from sys/time.h
228TIME32_MAX = INT32_MAX
229TIME32_MIN = INT32_MIN
230def TIMEVAL_OVERFLOW(tv): return \
231
232from TYPES import *
233DST_NONE = 0
234DST_USA = 1
235DST_AUST = 2
236DST_WET = 3
237DST_MET = 4
238DST_EET = 5
239DST_CAN = 6
240DST_GB = 7
241DST_RUM = 8
242DST_TUR = 9
243DST_AUSTALT = 10
244ITIMER_REAL = 0
245ITIMER_VIRTUAL = 1
246ITIMER_PROF = 2
247ITIMER_REALPROF = 3
248def ITIMERVAL_OVERFLOW(itv): return \
249
250SEC = 1
251MILLISEC = 1000
252MICROSEC = 1000000
253NANOSEC = 1000000000
254
255# Included from sys/time_impl.h
256def TIMESPEC_OVERFLOW(ts): return \
257
258def ITIMERSPEC_OVERFLOW(it): return \
259
260__CLOCK_REALTIME0 = 0
261CLOCK_VIRTUAL = 1
262CLOCK_PROF = 2
263__CLOCK_REALTIME3 = 3
264CLOCK_HIGHRES = 4
265CLOCK_MAX = 5
266CLOCK_REALTIME = __CLOCK_REALTIME3
267CLOCK_REALTIME = __CLOCK_REALTIME0
268TIMER_RELTIME = 0x0
269TIMER_ABSTIME = 0x1
270
271# Included from sys/mutex.h
272from TYPES import *
273def MUTEX_HELD(x): return (mutex_owned(x))
274
275def TICK_TO_SEC(tick): return ((tick) / hz)
276
277def SEC_TO_TICK(sec): return ((sec) * hz)
278
279def TICK_TO_MSEC(tick): return \
280
281def MSEC_TO_TICK(msec): return \
282
283def MSEC_TO_TICK_ROUNDUP(msec): return \
284
285def TICK_TO_USEC(tick): return ((tick) * usec_per_tick)
286
287def USEC_TO_TICK(usec): return ((usec) / usec_per_tick)
288
289def USEC_TO_TICK_ROUNDUP(usec): return \
290
291def TICK_TO_NSEC(tick): return ((tick) * nsec_per_tick)
292
293def NSEC_TO_TICK(nsec): return ((nsec) / nsec_per_tick)
294
295def NSEC_TO_TICK_ROUNDUP(nsec): return \
296
297def TIMEVAL_TO_TICK(tvp): return \
298
299def TIMESTRUC_TO_TICK(tsp): return \
300
301
302# Included from time.h
303from TYPES import *
304
305# Included from iso/time_iso.h
306NULL = 0L
307NULL = 0
308CLOCKS_PER_SEC = 1000000
309FD_SETSIZE = 65536
310FD_SETSIZE = 1024
311_NBBY = 8
312NBBY = _NBBY
313def FD_ZERO(p): return bzero((p), sizeof (*(p)))