1 # Generated by h2py from /usr/include/sys/types.h
3 # Included from sys/isa_defs.h
8 _LONG_LONG_ALIGNMENT = 8
10 _LONG_DOUBLE_ALIGNMENT = 16
11 _POINTER_ALIGNMENT = 8
13 _ALIGNMENT_REQUIRED = 1
18 _LONG_LONG_ALIGNMENT = 4
20 _LONG_DOUBLE_ALIGNMENT = 4
21 _POINTER_ALIGNMENT = 4
23 _ALIGNMENT_REQUIRED = 0
27 _LONG_LONG_ALIGNMENT = 8
29 _ALIGNMENT_REQUIRED = 1
31 _LONG_DOUBLE_ALIGNMENT = 8
32 _POINTER_ALIGNMENT = 4
35 _LONG_DOUBLE_ALIGNMENT = 16
36 _POINTER_ALIGNMENT = 8
39 # Included from sys/feature_tests.h
41 _LARGEFILE64_SOURCE = 1
43 _FILE_OFFSET_BITS = 64
44 _FILE_OFFSET_BITS = 32
45 _POSIX_C_SOURCE = 199506L
46 _POSIX_PTHREAD_SEMANTICS = 1
51 # Included from sys/machtypes.h
53 # Included from sys/inttypes.h
55 # Included from sys/int_types.h
57 # Included from sys/int_limits.h
60 INT32_MAX = (2147483647)
61 INTMAX_MAX = INT32_MAX
62 INT_LEAST8_MAX = INT8_MAX
63 INT_LEAST16_MAX = INT16_MAX
64 INT_LEAST32_MAX = INT32_MAX
66 INT16_MIN = (-32767-1)
67 INT32_MIN = (-2147483647-1)
68 INTMAX_MIN = INT32_MIN
69 INT_LEAST8_MIN = INT8_MIN
70 INT_LEAST16_MIN = INT16_MIN
71 INT_LEAST32_MIN = INT32_MIN
73 # Included from sys/int_const.h
74 def INT8_C(c): return (c)
76 def INT16_C(c): return (c)
78 def INT32_C(c): return (c)
80 def INT64_C(c): return __CONCAT__(c,l)
82 def INT64_C(c): return __CONCAT__(c,ll)
84 def UINT8_C(c): return __CONCAT__(c,u)
86 def UINT16_C(c): return __CONCAT__(c,u)
88 def UINT32_C(c): return __CONCAT__(c,u)
90 def UINT64_C(c): return __CONCAT__(c,ul)
92 def UINT64_C(c): return __CONCAT__(c,ull)
94 def INTMAX_C(c): return __CONCAT__(c,l)
96 def UINTMAX_C(c): return __CONCAT__(c,ul)
98 def INTMAX_C(c): return __CONCAT__(c,ll)
100 def UINTMAX_C(c): return __CONCAT__(c,ull)
102 def INTMAX_C(c): return (c)
104 def UINTMAX_C(c): return (c)
107 # Included from sys/int_fmtio.h
213 # Included from sys/types32.h
217 INT_MIN = (-2147483647-1)
219 LONG_MIN = (-9223372036854775807L-1L)
220 LONG_MAX = 9223372036854775807L
221 LONG_MIN = (-2147483647L-1L)
222 LONG_MAX = 2147483647L
225 # Included from sys/select.h
227 # Included from sys/time.h
228 TIME32_MAX = INT32_MAX
229 TIME32_MIN = INT32_MIN
230 def TIMEVAL_OVERFLOW(tv): return \
248 def ITIMERVAL_OVERFLOW(itv): return \
255 # Included from sys/time_impl.h
256 def TIMESPEC_OVERFLOW(ts): return \
258 def ITIMERSPEC_OVERFLOW(it): return \
260 __CLOCK_REALTIME0 = 0
263 __CLOCK_REALTIME3 = 3
266 CLOCK_REALTIME = __CLOCK_REALTIME3
267 CLOCK_REALTIME = __CLOCK_REALTIME0
271 # Included from sys/mutex.h
273 def MUTEX_HELD(x): return (mutex_owned(x))
275 def TICK_TO_SEC(tick): return ((tick) / hz)
277 def SEC_TO_TICK(sec): return ((sec) * hz)
279 def TICK_TO_MSEC(tick): return \
281 def MSEC_TO_TICK(msec): return \
283 def MSEC_TO_TICK_ROUNDUP(msec): return \
285 def TICK_TO_USEC(tick): return ((tick) * usec_per_tick)
287 def USEC_TO_TICK(usec): return ((usec) / usec_per_tick)
289 def USEC_TO_TICK_ROUNDUP(usec): return \
291 def TICK_TO_NSEC(tick): return ((tick) * nsec_per_tick)
293 def NSEC_TO_TICK(nsec): return ((nsec) / nsec_per_tick)
295 def NSEC_TO_TICK_ROUNDUP(nsec): return \
297 def TIMEVAL_TO_TICK(tvp): return \
299 def TIMESTRUC_TO_TICK(tsp): return \
302 # Included from time.h
305 # Included from iso/time_iso.h
308 CLOCKS_PER_SEC = 1000000
313 def FD_ZERO(p): return bzero((p), sizeof (*(p)))