This should finally fix #6896. Let's watch the buildbots.
[python.git] / Lib / plat-atheos / IN.py
blob6588d65112076f4a2a16751a118a77355d1058b2
1 # Generated by h2py from /include/netinet/in.h
2 _NETINET_IN_H = 1
4 # Included from features.h
5 _FEATURES_H = 1
6 __USE_ANSI = 1
7 __FAVOR_BSD = 1
8 _ISOC9X_SOURCE = 1
9 _POSIX_SOURCE = 1
10 _POSIX_C_SOURCE = 199506L
11 _XOPEN_SOURCE = 500
12 _XOPEN_SOURCE_EXTENDED = 1
13 _LARGEFILE64_SOURCE = 1
14 _BSD_SOURCE = 1
15 _SVID_SOURCE = 1
16 _BSD_SOURCE = 1
17 _SVID_SOURCE = 1
18 __USE_ISOC9X = 1
19 _POSIX_SOURCE = 1
20 _POSIX_C_SOURCE = 2
21 _POSIX_C_SOURCE = 199506L
22 __USE_POSIX = 1
23 __USE_POSIX2 = 1
24 __USE_POSIX199309 = 1
25 __USE_POSIX199506 = 1
26 __USE_XOPEN = 1
27 __USE_XOPEN_EXTENDED = 1
28 __USE_UNIX98 = 1
29 _LARGEFILE_SOURCE = 1
30 __USE_XOPEN_EXTENDED = 1
31 __USE_LARGEFILE = 1
32 __USE_LARGEFILE64 = 1
33 __USE_FILE_OFFSET64 = 1
34 __USE_MISC = 1
35 __USE_BSD = 1
36 __USE_SVID = 1
37 __USE_GNU = 1
38 __USE_REENTRANT = 1
39 __STDC_IEC_559__ = 1
40 __STDC_IEC_559_COMPLEX__ = 1
41 __GNU_LIBRARY__ = 6
42 __GLIBC__ = 2
43 __GLIBC_MINOR__ = 1
45 # Included from sys/cdefs.h
46 _SYS_CDEFS_H = 1
47 def __PMT(args): return args
49 def __P(args): return args
51 def __PMT(args): return args
53 def __P(args): return ()
55 def __PMT(args): return ()
57 def __STRING(x): return #x
59 def __STRING(x): return "x"
61 def __ASMNAME(cname): return __ASMNAME2 (__USER_LABEL_PREFIX__, cname)
63 def __attribute__(xyz): return
65 __USE_EXTERN_INLINES = 1
67 # Included from gnu/stubs.h
69 # Included from limits.h
70 _LIBC_LIMITS_H_ = 1
72 # Included from bits/posix1_lim.h
73 _BITS_POSIX1_LIM_H = 1
74 _POSIX_AIO_LISTIO_MAX = 2
75 _POSIX_AIO_MAX = 1
76 _POSIX_ARG_MAX = 4096
77 _POSIX_CHILD_MAX = 6
78 _POSIX_DELAYTIMER_MAX = 32
79 _POSIX_LINK_MAX = 8
80 _POSIX_MAX_CANON = 255
81 _POSIX_MAX_INPUT = 255
82 _POSIX_MQ_OPEN_MAX = 8
83 _POSIX_MQ_PRIO_MAX = 32
84 _POSIX_NGROUPS_MAX = 0
85 _POSIX_OPEN_MAX = 16
86 _POSIX_FD_SETSIZE = _POSIX_OPEN_MAX
87 _POSIX_NAME_MAX = 14
88 _POSIX_PATH_MAX = 255
89 _POSIX_PIPE_BUF = 512
90 _POSIX_RTSIG_MAX = 8
91 _POSIX_SEM_NSEMS_MAX = 256
92 _POSIX_SEM_VALUE_MAX = 32767
93 _POSIX_SIGQUEUE_MAX = 32
94 _POSIX_SSIZE_MAX = 32767
95 _POSIX_STREAM_MAX = 8
96 _POSIX_TZNAME_MAX = 3
97 _POSIX_QLIMIT = 1
98 _POSIX_HIWAT = _POSIX_PIPE_BUF
99 _POSIX_UIO_MAXIOV = 16
100 _POSIX_TTY_NAME_MAX = 9
101 _POSIX_TIMER_MAX = 32
102 _POSIX_LOGIN_NAME_MAX = 9
103 _POSIX_CLOCKRES_MIN = 20000000
105 # Included from bits/local_lim.h
107 # Included from posix/limits.h
108 CHAR_BIT = 8
109 CHAR_MAX = 127
110 CHAR_MIN = (-128)
111 INT_MAX = 2147483647
112 INT_MIN = (-2147483647-1)
113 LONG_MAX = 2147483647L
114 LONG_MIN = (-2147483647L-1L)
115 SCHAR_MAX = 127
116 SCHAR_MIN = (-128)
117 SHRT_MAX = 32767
118 SHRT_MIN = (-32768)
119 UCHAR_MAX = 255
120 USHRT_MAX = 65535
121 _POSIX_ARG_MAX = 131072
122 _POSIX_CHILD_MAX = 4096
123 _POSIX_LINK_MAX = 1
124 _POSIX_MAX_CANON = 126
125 _POSIX_MAX_INPUT = 126
126 _POSIX_NAME_MAX = 256
127 _POSIX_NGROUPS_MAX = 32
128 _POSIX_OPEN_MAX = 256
129 _POSIX_PATH_MAX = 255
130 _POSIX_PIPE_BUF = 512
131 _POSIX_SSIZE_MAX = 2147483647
132 _POSIX_STREAM_MAX = 256
133 _POSIX_TZNAME_MAX = 5
134 NGROUPS_MAX = 32
135 ARG_MAX = 131072
136 CHILD_MAX = 4096
137 OPEN_MAX = 256
138 LINK_MAX = 1
139 MAX_CANON = 126
140 MAX_INPUT = 126
141 NAME_MAX = 255
142 PATH_MAX = 4096
143 PIPE_BUF = 4096
144 SSIZE_MAX = 2147483647
145 MAXSYMLINKS = 16
146 AIO_PRIO_DELTA_MAX = 20
147 SSIZE_MAX = INT_MAX
148 NGROUPS_MAX = _POSIX_NGROUPS_MAX
150 # Included from bits/posix2_lim.h
151 _BITS_POSIX2_LIM_H = 1
152 _POSIX2_BC_BASE_MAX = 99
153 _POSIX2_BC_DIM_MAX = 2048
154 _POSIX2_BC_SCALE_MAX = 99
155 _POSIX2_BC_STRING_MAX = 1000
156 _POSIX2_COLL_WEIGHTS_MAX = 255
157 _POSIX2_EQUIV_CLASS_MAX = 255
158 _POSIX2_EXPR_NEST_MAX = 32
159 _POSIX2_LINE_MAX = 2048
160 _POSIX2_RE_DUP_MAX = 255
161 _POSIX2_CHARCLASS_NAME_MAX = 2048
162 BC_BASE_MAX = _POSIX2_BC_BASE_MAX
163 BC_DIM_MAX = _POSIX2_BC_DIM_MAX
164 BC_SCALE_MAX = _POSIX2_BC_SCALE_MAX
165 BC_STRING_MAX = _POSIX2_BC_STRING_MAX
166 COLL_WEIGHTS_MAX = _POSIX2_COLL_WEIGHTS_MAX
167 EQUIV_CLASS_MAX = _POSIX2_EQUIV_CLASS_MAX
168 EXPR_NEST_MAX = _POSIX2_EXPR_NEST_MAX
169 LINE_MAX = _POSIX2_LINE_MAX
170 RE_DUP_MAX = _POSIX2_RE_DUP_MAX
171 CHARCLASS_NAME_MAX = _POSIX2_CHARCLASS_NAME_MAX
173 # Included from bits/xopen_lim.h
174 _XOPEN_LIM_H = 1
176 # Included from bits/stdio_lim.h
177 L_tmpnam = 20
178 TMP_MAX = 238328
179 FILENAME_MAX = 4096
180 L_ctermid = 9
181 L_cuserid = 9
182 FOPEN_MAX = 256
183 STREAM_MAX = FOPEN_MAX
184 TZNAME_MAX = _POSIX_TZNAME_MAX
185 _XOPEN_IOV_MAX = _POSIX_UIO_MAXIOV
186 NL_ARGMAX = _POSIX_ARG_MAX
187 NL_LANGMAX = _POSIX2_LINE_MAX
188 NL_MSGMAX = INT_MAX
189 NL_NMAX = INT_MAX
190 NL_SETMAX = INT_MAX
191 NL_TEXTMAX = INT_MAX
192 NZERO = 20
193 MB_LEN_MAX = 6
194 _LIMITS_H = 1
195 CHAR_BIT = 8
196 SCHAR_MIN = (-128)
197 SCHAR_MAX = 127
198 UCHAR_MAX = 255
199 CHAR_MIN = 0
200 CHAR_MAX = UCHAR_MAX
201 CHAR_MIN = SCHAR_MIN
202 CHAR_MAX = SCHAR_MAX
203 SHRT_MIN = (-32768)
204 SHRT_MAX = 32767
205 USHRT_MAX = 65535
206 INT_MIN = (-INT_MAX - 1)
207 INT_MAX = 2147483647
208 UINT_MAX = 4294967295
209 LONG_MAX = 9223372036854775807L
210 LONG_MAX = 2147483647L
211 LONG_MIN = (-LONG_MAX - 1L)
212 ULONG_MAX = 4294967295L
214 # Included from stdint.h
215 _STDINT_H = 1
217 # Included from bits/wordsize.h
218 __WORDSIZE = 32
219 def __INT64_C(c): return c ## L
221 def __UINT64_C(c): return c ## UL
223 def __INT64_C(c): return c ## LL
225 def __UINT64_C(c): return c ## ULL
227 INT8_MIN = (-128)
228 INT16_MIN = (-32767-1)
229 INT32_MIN = (-2147483647-1)
230 INT64_MIN = (-__INT64_C(9223372036854775807)-1)
231 INT8_MAX = (127)
232 INT16_MAX = (32767)
233 INT32_MAX = (2147483647)
234 INT64_MAX = (__INT64_C(9223372036854775807))
235 UINT64_MAX = (__UINT64_C(18446744073709551615))
236 INT_LEAST8_MIN = (-128)
237 INT_LEAST16_MIN = (-32767-1)
238 INT_LEAST32_MIN = (-2147483647-1)
239 INT_LEAST64_MIN = (-__INT64_C(9223372036854775807)-1)
240 INT_LEAST8_MAX = (127)
241 INT_LEAST16_MAX = (32767)
242 INT_LEAST32_MAX = (2147483647)
243 INT_LEAST64_MAX = (__INT64_C(9223372036854775807))
244 UINT_LEAST64_MAX = (__UINT64_C(18446744073709551615))
245 INT_FAST8_MIN = (-128)
246 INT_FAST16_MIN = (-9223372036854775807L-1)
247 INT_FAST32_MIN = (-9223372036854775807L-1)
248 INT_FAST16_MIN = (-2147483647-1)
249 INT_FAST32_MIN = (-2147483647-1)
250 INT_FAST64_MIN = (-__INT64_C(9223372036854775807)-1)
251 INT_FAST8_MAX = (127)
252 INT_FAST16_MAX = (9223372036854775807L)
253 INT_FAST32_MAX = (9223372036854775807L)
254 INT_FAST16_MAX = (2147483647)
255 INT_FAST32_MAX = (2147483647)
256 INT_FAST64_MAX = (__INT64_C(9223372036854775807))
257 UINT_FAST64_MAX = (__UINT64_C(18446744073709551615))
258 INTPTR_MIN = (-9223372036854775807L-1)
259 INTPTR_MAX = (9223372036854775807L)
260 INTPTR_MIN = (-2147483647-1)
261 INTPTR_MAX = (2147483647)
262 INTMAX_MIN = (-__INT64_C(9223372036854775807)-1)
263 INTMAX_MAX = (__INT64_C(9223372036854775807))
264 UINTMAX_MAX = (__UINT64_C(18446744073709551615))
265 PTRDIFF_MIN = (-9223372036854775807L-1)
266 PTRDIFF_MAX = (9223372036854775807L)
267 PTRDIFF_MIN = (-2147483647-1)
268 PTRDIFF_MAX = (2147483647)
269 SIG_ATOMIC_MIN = (-2147483647-1)
270 SIG_ATOMIC_MAX = (2147483647)
271 WCHAR_MIN = (-2147483647-1)
272 WCHAR_MAX = (2147483647)
273 WINT_MIN = (0)
274 def INT8_C(c): return c
276 def INT16_C(c): return c
278 def INT32_C(c): return c
280 def INT64_C(c): return c ## L
282 def INT64_C(c): return c ## LL
284 def UINT8_C(c): return c ## U
286 def UINT16_C(c): return c ## U
288 def UINT32_C(c): return c ## U
290 def UINT64_C(c): return c ## UL
292 def UINT64_C(c): return c ## ULL
294 def INTMAX_C(c): return c ## L
296 def UINTMAX_C(c): return c ## UL
298 def INTMAX_C(c): return c ## LL
300 def UINTMAX_C(c): return c ## ULL
303 # Included from sys/types.h
304 _SYS_TYPES_H = 1
306 # Included from bits/types.h
307 _BITS_TYPES_H = 1
308 __FD_SETSIZE = 1024
309 def __FDELT(d): return ((d) / __NFDBITS)
312 # Included from bits/pthreadtypes.h
314 # Included from time.h
315 _TIME_H = 1
317 # Included from bits/time.h
319 # Included from posix/time.h
321 # Included from posix/types.h
322 MAXHOSTNAMELEN = 64
323 FD_SETSIZE = 1024
324 CLOCKS_PER_SEC = 1000000
325 _BITS_TIME_H = 1
326 CLOCKS_PER_SEC = 1000000
327 CLK_TCK = 100
328 _STRUCT_TIMEVAL = 1
329 CLK_TCK = CLOCKS_PER_SEC
330 __clock_t_defined = 1
331 __time_t_defined = 1
332 __timespec_defined = 1
333 def __isleap(year): return \
335 __BIT_TYPES_DEFINED__ = 1
337 # Included from endian.h
338 _ENDIAN_H = 1
339 __LITTLE_ENDIAN = 1234
340 __BIG_ENDIAN = 4321
341 __PDP_ENDIAN = 3412
343 # Included from bits/endian.h
344 __BYTE_ORDER = __LITTLE_ENDIAN
345 __FLOAT_WORD_ORDER = __BYTE_ORDER
346 LITTLE_ENDIAN = __LITTLE_ENDIAN
347 BIG_ENDIAN = __BIG_ENDIAN
348 PDP_ENDIAN = __PDP_ENDIAN
349 BYTE_ORDER = __BYTE_ORDER
351 # Included from sys/select.h
352 _SYS_SELECT_H = 1
354 # Included from bits/select.h
355 def __FD_ZERO(fdsp): return \
357 def __FD_ZERO(set): return \
360 # Included from bits/sigset.h
361 _SIGSET_H_types = 1
362 _SIGSET_H_fns = 1
363 def __sigmask(sig): return \
365 def __sigemptyset(set): return \
367 def __sigfillset(set): return \
369 def __sigisemptyset(set): return \
371 FD_SETSIZE = __FD_SETSIZE
372 def FD_ZERO(fdsetp): return __FD_ZERO (fdsetp)
375 # Included from sys/sysmacros.h
376 _SYS_SYSMACROS_H = 1
377 def major(dev): return ( (( (dev) >> 8) & 0xff))
379 def minor(dev): return ( ((dev) & 0xff))
382 # Included from bits/socket.h
383 PF_UNSPEC = 0
384 PF_LOCAL = 1
385 PF_UNIX = PF_LOCAL
386 PF_FILE = PF_LOCAL
387 PF_INET = 2
388 PF_AX25 = 3
389 PF_IPX = 4
390 PF_APPLETALK = 5
391 PF_NETROM = 6
392 PF_BRIDGE = 7
393 PF_ATMPVC = 8
394 PF_X25 = 9
395 PF_INET6 = 10
396 PF_ROSE = 11
397 PF_DECnet = 12
398 PF_NETBEUI = 13
399 PF_SECURITY = 14
400 PF_KEY = 15
401 PF_NETLINK = 16
402 PF_ROUTE = PF_NETLINK
403 PF_PACKET = 17
404 PF_ASH = 18
405 PF_ECONET = 19
406 PF_ATMSVC = 20
407 PF_SNA = 22
408 PF_IRDA = 23
409 PF_MAX = 32
410 AF_UNSPEC = PF_UNSPEC
411 AF_LOCAL = PF_LOCAL
412 AF_UNIX = PF_UNIX
413 AF_FILE = PF_FILE
414 AF_INET = PF_INET
415 AF_AX25 = PF_AX25
416 AF_IPX = PF_IPX
417 AF_APPLETALK = PF_APPLETALK
418 AF_NETROM = PF_NETROM
419 AF_BRIDGE = PF_BRIDGE
420 AF_ATMPVC = PF_ATMPVC
421 AF_X25 = PF_X25
422 AF_INET6 = PF_INET6
423 AF_ROSE = PF_ROSE
424 AF_DECnet = PF_DECnet
425 AF_NETBEUI = PF_NETBEUI
426 AF_SECURITY = PF_SECURITY
427 AF_KEY = PF_KEY
428 AF_NETLINK = PF_NETLINK
429 AF_ROUTE = PF_ROUTE
430 AF_PACKET = PF_PACKET
431 AF_ASH = PF_ASH
432 AF_ECONET = PF_ECONET
433 AF_ATMSVC = PF_ATMSVC
434 AF_SNA = PF_SNA
435 AF_IRDA = PF_IRDA
436 AF_MAX = PF_MAX
437 SOL_RAW = 255
438 SOL_DECNET = 261
439 SOL_X25 = 262
440 SOL_PACKET = 263
441 SOL_ATM = 264
442 SOL_AAL = 265
443 SOL_IRDA = 266
444 SOMAXCONN = 128
446 # Included from bits/sockaddr.h
447 _BITS_SOCKADDR_H = 1
448 def __SOCKADDR_COMMON(sa_prefix): return \
450 _SS_SIZE = 128
451 def CMSG_FIRSTHDR(mhdr): return \
454 # Included from atheos/socket.h
456 # Included from atheos/types.h
457 OS_NAME_LENGTH = 64
458 TRUE = 1
459 FALSE = 0
461 # Included from atheos/filesystem.h
463 # Included from atheos/atomic.h
465 # Included from atheos/typedefs.h
467 # Included from atheos/fs_attribs.h
469 # Included from atheos/kernel.h
471 # Included from atheos/kdebug.h
473 # Included from atheos/threads.h
474 TF_DEADLOCK = 0x0001
475 DB_PACKET_SIZE = 128
476 DB_PORT_COUNT = 16
477 DBP_PRINTK = 0
478 DBP_DEBUGGER = 2
480 # Included from atheos/stdlib.h
482 # Included from atheos/string.h
483 def COMMON(x): return \
485 def COMMON(x): return \
488 # Included from atheos/schedule.h
490 # Included from atheos/timer.h
492 # Included from posix/resource.h
493 RUSAGE_SELF = 0
494 RUSAGE_CHILDREN = -1
495 RLIMIT_CPU = 0
496 RLIMIT_FSIZE = 1
497 RLIMIT_DATA = 2
498 RLIMIT_STACK = 3
499 RLIMIT_CORE = 4
500 RLIMIT_RSS = 5
501 RLIMIT_MEMLOCK = 6
502 RLIMIT_NPROC = 7
503 RLIMIT_NOFILE = 8
504 RLIMIT_AS = 9
505 RLIM_NLIMITS = 10
507 # Included from atheos/v86.h
509 # Included from atheos/areas.h
510 MEMF_REAL = 0x00000002
511 MEMF_USER = 0x00000004
512 MEMF_BUFFER = 0x00000008
513 MEMF_KERNEL = 0x00000010
514 MEMF_OKTOFAILHACK = 0x00000020
515 MEMF_PRI_MASK = 0x000000ff
516 MEMF_NOBLOCK = 0x00000100
517 MEMF_CLEAR = 0x00010000
518 MEMF_LOCKED = 0x10000000
519 PAGE_SHIFT = 12
520 PGDIR_SHIFT = 22
521 def PAGE_ALIGN(addr): return (((addr)+PAGE_SIZE-1)&PAGE_MASK)
523 AREA_NO_LOCK = 0
524 AREA_LAZY_LOCK = 1
525 AREA_FULL_LOCK = 2
526 AREA_CONTIGUOUS = 3
527 AREA_READ = 0x00000001
528 AREA_WRITE = 0x00000002
529 AREA_EXEC = 0x00000004
530 AREA_FULL_ACCESS = (AREA_READ | AREA_WRITE | AREA_EXEC)
531 AREA_KERNEL = 0x00000008
532 AREA_UNMAP_PHYS = 0x00000010
533 AREA_ANY_ADDRESS = 0x00000000
534 AREA_EXACT_ADDRESS = 0x00000100
535 AREA_BASE_ADDRESS = 0x00000200
536 AREA_CLONE_ADDRESS = 0x00000300
537 AREA_ADDR_SPEC_MASK = 0x00000f00
538 AREA_TOP_DOWN = 0x00001000
539 AREA_REMAPPED = 0x0020
540 AREA_SHARED = 0x0040
541 AREA_GROWSDOWN = 0x0080
542 AREA_FIRST_KERNEL_ADDRESS = 0x00100000
543 AREA_LAST_KERNEL_ADDRESS = 0x7fffffff
544 AREA_FIRST_USER_ADDRESS = 0x80000000
545 AREA_LAST_USER_ADDRESS = 0xffffffff
546 MAX_CPU_COUNT = 16
547 def kfree(p): return kassertw( __kfree(p) == 0 )
550 # Included from posix/dirent.h
551 MAXNAMLEN = NAME_MAX
552 MAXNAMLEN = 255
554 # Included from dirent.h
555 _DIRENT_H = 1
557 # Included from bits/dirent.h
558 def _D_ALLOC_NAMLEN(d): return (_D_EXACT_NAMLEN (d) + 1)
560 def IFTODT(mode): return (((mode) & 0170000) >> 12)
562 def DTTOIF(dirtype): return ((dirtype) << 12)
564 def dirfd(dirp): return _DIR_dirfd (dirp)
566 MAXNAMLEN = NAME_MAX
567 MAXNAMLEN = 255
569 # Included from posix/stat.h
570 S_IFMT = 00170000
571 S_IFSOCK = 0140000
572 S_IFLNK = 0120000
573 S_IFREG = 0100000
574 S_IFBLK = 0060000
575 S_IFDIR = 0040000
576 S_IFCHR = 0020000
577 S_IFIFO = 0010000
578 S_ISUID = 0004000
579 S_ISGID = 0002000
580 S_ISVTX = 0001000
581 def S_ISLNK(m): return (((m) & S_IFMT) == S_IFLNK)
583 def S_ISREG(m): return (((m) & S_IFMT) == S_IFREG)
585 def S_ISDIR(m): return (((m) & S_IFMT) == S_IFDIR)
587 def S_ISCHR(m): return (((m) & S_IFMT) == S_IFCHR)
589 def S_ISBLK(m): return (((m) & S_IFMT) == S_IFBLK)
591 def S_ISFIFO(m): return (((m) & S_IFMT) == S_IFIFO)
593 def S_ISSOCK(m): return (((m) & S_IFMT) == S_IFSOCK)
595 S_IRWXU = 00700
596 S_IRUSR = 00400
597 S_IWUSR = 00200
598 S_IXUSR = 00100
599 S_IRWXG = 00070
600 S_IRGRP = 00040
601 S_IWGRP = 00020
602 S_IXGRP = 00010
603 S_IRWXO = 00007
604 S_IROTH = 00004
605 S_IWOTH = 00002
606 S_IXOTH = 00001
607 S_IRWXUGO = (S_IRWXU|S_IRWXG|S_IRWXO)
608 S_IALLUGO = (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
609 S_IRUGO = (S_IRUSR|S_IRGRP|S_IROTH)
610 S_IWUGO = (S_IWUSR|S_IWGRP|S_IWOTH)
611 S_IXUGO = (S_IXUSR|S_IXGRP|S_IXOTH)
612 _STAT_VER_KERNEL = 0
614 # Included from posix/fcntl.h
615 O_ACCMODE = 0003
616 O_RWMASK = O_ACCMODE
617 O_RDONLY = 00
618 O_WRONLY = 01
619 O_RDWR = 02
620 O_CREAT = 0100
621 O_EXCL = 0200
622 O_NOCTTY = 0400
623 O_TRUNC = 01000
624 O_APPEND = 02000
625 O_NONBLOCK = 04000
626 O_NDELAY = O_NONBLOCK
627 O_SYNC = 010000
628 O_FSYNC = O_SYNC
629 O_ASYNC = 020000
630 FASYNC = O_ASYNC
631 O_DIRECTORY = 040000
632 O_NOTRAVERSE = 0100000
633 O_NOFOLLOW = O_NOTRAVERSE
634 F_DUPFD = 0
635 F_GETFD = 1
636 F_SETFD = 2
637 F_GETFL = 3
638 F_SETFL = 4
639 F_GETLK = 5
640 F_SETLK = 6
641 F_SETLKW = 7
642 F_SETOWN = 8
643 F_GETOWN = 9
644 F_SETSIG = 10
645 F_GETSIG = 11
646 F_COPYFD = 12
647 FD_CLOEXEC = 1
648 F_RDLCK = 0
649 F_WRLCK = 1
650 F_UNLCK = 2
651 F_EXLCK = 4
652 F_SHLCK = 8
653 LOCK_SH = 1
654 LOCK_EX = 2
655 LOCK_NB = 4
656 LOCK_UN = 8
658 # Included from posix/uio.h
659 UIO_FASTIOV = 8
660 UIO_MAXIOV = 1024
661 MNTF_READONLY = 0x0001
662 FS_IS_READONLY = 0x00000001
663 FS_IS_REMOVABLE = 0x00000002
664 FS_IS_PERSISTENT = 0x00000004
665 FS_IS_SHARED = 0x00000008
666 FS_IS_BLOCKBASED = 0x00000010
667 FS_CAN_MOUNT = 0x00000020
668 FS_HAS_MIME = 0x00010000
669 FS_HAS_ATTR = 0x00020000
670 FS_HAS_QUERY = 0x00040000
671 FSINFO_VERSION = 1
672 WSTAT_MODE = 0x0001
673 WSTAT_UID = 0x0002
674 WSTAT_GID = 0x0004
675 WSTAT_SIZE = 0x0008
676 WSTAT_ATIME = 0x0010
677 WSTAT_MTIME = 0x0020
678 WSTAT_CTIME = 0x0040
679 WFSSTAT_NAME = 0x0001
680 FSDRIVER_API_VERSION = 1
682 # Included from net/nettypes.h
683 IP_ADR_LEN = 4
684 INADDR_ANY = 0x00000000
685 INADDR_BROADCAST = 0xffffffff
686 INADDR_LOOPBACK = 0x7f000001
687 def CMSG_ALIGN(len): return ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) )
689 PROT_SOCK = 1024
690 SHUTDOWN_MASK = 3
691 RCV_SHUTDOWN = 1
692 SEND_SHUTDOWN = 2
693 SOCK_STREAM = 1
694 SOCK_DGRAM = 2
695 SOCK_RAW = 3
696 SOCK_RDM = 4
697 SOCK_SEQPACKET = 5
698 SOCK_PACKET = 10
699 PF_UNSPEC = 0
700 PF_LOCAL = 1
701 PF_UNIX = PF_LOCAL
702 PF_FILE = PF_LOCAL
703 PF_INET = 2
704 PF_AX25 = 3
705 PF_IPX = 4
706 PF_APPLETALK = 5
707 PF_NETROM = 6
708 PF_BRIDGE = 7
709 PF_ATMPVC = 8
710 PF_X25 = 9
711 PF_INET6 = 10
712 PF_ROSE = 11
713 PF_DECnet = 12
714 PF_NETBEUI = 13
715 PF_SECURITY = 14
716 PF_KEY = 15
717 PF_NETLINK = 16
718 PF_ROUTE = PF_NETLINK
719 PF_PACKET = 17
720 PF_ASH = 18
721 PF_ECONET = 19
722 PF_ATMSVC = 20
723 PF_SNA = 22
724 PF_IRDA = 23
725 PF_MAX = 32
726 AF_UNSPEC = PF_UNSPEC
727 AF_LOCAL = PF_LOCAL
728 AF_UNIX = PF_UNIX
729 AF_FILE = PF_FILE
730 AF_INET = PF_INET
731 AF_AX25 = PF_AX25
732 AF_IPX = PF_IPX
733 AF_APPLETALK = PF_APPLETALK
734 AF_NETROM = PF_NETROM
735 AF_BRIDGE = PF_BRIDGE
736 AF_ATMPVC = PF_ATMPVC
737 AF_X25 = PF_X25
738 AF_INET6 = PF_INET6
739 AF_ROSE = PF_ROSE
740 AF_DECnet = PF_DECnet
741 AF_NETBEUI = PF_NETBEUI
742 AF_SECURITY = PF_SECURITY
743 AF_KEY = PF_KEY
744 AF_NETLINK = PF_NETLINK
745 AF_ROUTE = PF_ROUTE
746 AF_PACKET = PF_PACKET
747 AF_ASH = PF_ASH
748 AF_ECONET = PF_ECONET
749 AF_ATMSVC = PF_ATMSVC
750 AF_SNA = PF_SNA
751 AF_IRDA = PF_IRDA
752 AF_MAX = PF_MAX
753 PF_UNIX = 1
754 AF_UNIX = PF_UNIX
755 PF_INET = 2
756 AF_INET = PF_INET
757 SOMAXCONN = 128
758 MSG_OOB = 1
759 MSG_PEEK = 2
760 MSG_DONTROUTE = 4
761 MSG_PROXY = 16
762 SOL_SOCKET = 1
763 SO_DEBUG = 1
764 SO_REUSEADDR = 2
765 SO_TYPE = 3
766 SO_ERROR = 4
767 SO_DONTROUTE = 5
768 SO_BROADCAST = 6
769 SO_SNDBUF = 7
770 SO_RCVBUF = 8
771 SO_KEEPALIVE = 9
772 SO_OOBINLINE = 10
773 SO_NO_CHECK = 11
774 SO_PRIORITY = 12
775 SO_LINGER = 13
776 SO_BSDCOMPAT = 14
777 SOL_IP = 0
778 SOL_IPX = 256
779 SOL_AX25 = 257
780 SOL_ATALK = 258
781 SOL_NETROM = 259
782 SOL_TCP = 6
783 SOL_UDP = 17
784 IP_TOS = 1
785 IPTOS_LOWDELAY = 0x10
786 IPTOS_THROUGHPUT = 0x08
787 IPTOS_RELIABILITY = 0x04
788 IPTOS_MINCOST = 0x02
789 IP_TTL = 2
790 IP_HDRINCL = 3
791 IP_OPTIONS = 4
792 IP_MULTICAST_IF = 32
793 IP_MULTICAST_TTL = 33
794 IP_MULTICAST_LOOP = 34
795 IP_ADD_MEMBERSHIP = 35
796 IP_DROP_MEMBERSHIP = 36
797 TCP_NODELAY = 0x01
798 TCP_MAXSEG = 0x02
799 def IN_CLASSA(a): return ((( (a)) & 0x80000000) == 0)
801 IN_CLASSA_NET = 0xff000000
802 IN_CLASSA_NSHIFT = 24
803 IN_CLASSA_HOST = (0xffffffff & ~IN_CLASSA_NET)
804 IN_CLASSA_MAX = 128
805 def IN_CLASSB(a): return ((( (a)) & 0xc0000000) == 0x80000000)
807 IN_CLASSB_NET = 0xffff0000
808 IN_CLASSB_NSHIFT = 16
809 IN_CLASSB_HOST = (0xffffffff & ~IN_CLASSB_NET)
810 IN_CLASSB_MAX = 65536
811 def IN_CLASSC(a): return ((( (a)) & 0xe0000000) == 0xc0000000)
813 IN_CLASSC_NET = 0xffffff00
814 IN_CLASSC_NSHIFT = 8
815 IN_CLASSC_HOST = (0xffffffff & ~IN_CLASSC_NET)
816 def IN_CLASSD(a): return ((( (a)) & 0xf0000000) == 0xe0000000)
818 def IN_MULTICAST(a): return IN_CLASSD(a)
820 def IN_EXPERIMENTAL(a): return ((( (a)) & 0xe0000000) == 0xe0000000)
822 def IN_BADCLASS(a): return ((( (a)) & 0xf0000000) == 0xf0000000)
824 INADDR_ANY = ( 0x00000000)
825 INADDR_BROADCAST = ( 0xffffffff)
826 INADDR_NONE = ( 0xffffffff)
827 IN_LOOPBACKNET = 127
828 INADDR_LOOPBACK = ( 0x7f000001)
829 INADDR_UNSPEC_GROUP = ( 0xe0000000)
830 INADDR_ALLHOSTS_GROUP = ( 0xe0000001)
831 INADDR_ALLRTRS_GROUP = ( 0xe0000002)
832 INADDR_MAX_LOCAL_GROUP = ( 0xe00000ff)
833 INET_ADDRSTRLEN = 16
834 INET6_ADDRSTRLEN = 46
836 # Included from bits/in.h
837 IP_TOS = 1
838 IP_TTL = 2
839 IP_HDRINCL = 3
840 IP_OPTIONS = 4
841 IP_ROUTER_ALERT = 5
842 IP_RECVOPTS = 6
843 IP_RETOPTS = 7
844 IP_PKTINFO = 8
845 IP_PKTOPTIONS = 9
846 IP_PMTUDISC = 10
847 IP_MTU_DISCOVER = 10
848 IP_RECVERR = 11
849 IP_RECVTTL = 12
850 IP_RECVTOS = 13
851 IP_MULTICAST_IF = 32
852 IP_MULTICAST_TTL = 33
853 IP_MULTICAST_LOOP = 34
854 IP_ADD_MEMBERSHIP = 35
855 IP_DROP_MEMBERSHIP = 36
856 IP_RECVRETOPTS = IP_RETOPTS
857 IP_PMTUDISC_DONT = 0
858 IP_PMTUDISC_WANT = 1
859 IP_PMTUDISC_DO = 2
860 SOL_IP = 0
861 SOL_SOCKET = 1
862 IP_DEFAULT_MULTICAST_TTL = 1
863 IP_DEFAULT_MULTICAST_LOOP = 1
864 IP_MAX_MEMBERSHIPS = 20
865 IPV6_ADDRFORM = 1
866 IPV6_PKTINFO = 2
867 IPV6_HOPOPTS = 3
868 IPV6_DSTOPTS = 4
869 IPV6_RXSRCRT = 5
870 IPV6_PKTOPTIONS = 6
871 IPV6_CHECKSUM = 7
872 IPV6_HOPLIMIT = 8
873 IPV6_NEXTHOP = 9
874 IPV6_AUTHHDR = 10
875 IPV6_UNICAST_HOPS = 16
876 IPV6_MULTICAST_IF = 17
877 IPV6_MULTICAST_HOPS = 18
878 IPV6_MULTICAST_LOOP = 19
879 IPV6_ADD_MEMBERSHIP = 20
880 IPV6_DROP_MEMBERSHIP = 21
881 IPV6_ROUTER_ALERT = 22
882 SCM_SRCRT = IPV6_RXSRCRT
883 IPV6_RXHOPOPTS = IPV6_HOPOPTS
884 IPV6_RXDSTOPTS = IPV6_DSTOPTS
885 IPV6_PMTUDISC_DONT = 0
886 IPV6_PMTUDISC_WANT = 1
887 IPV6_PMTUDISC_DO = 2
888 SOL_IPV6 = 41
889 SOL_ICMPV6 = 58
891 # Included from bits/byteswap.h
892 def __bswap_constant_16(x): return \
894 def __bswap_16(x): return \
896 def __bswap_16(x): return __bswap_constant_16 (x)
898 def __bswap_constant_32(x): return \
900 def __bswap_32(x): return \
902 def __bswap_32(x): return \
904 def __bswap_32(x): return __bswap_constant_32 (x)
906 def __bswap_64(x): return \
908 def ntohl(x): return (x)
910 def ntohs(x): return (x)
912 def htonl(x): return (x)
914 def htons(x): return (x)
916 def ntohl(x): return __bswap_32 (x)
918 def ntohs(x): return __bswap_16 (x)
920 def htonl(x): return __bswap_32 (x)
922 def htons(x): return __bswap_16 (x)
924 def IN6_IS_ADDR_UNSPECIFIED(a): return \
926 def IN6_IS_ADDR_LOOPBACK(a): return \
928 def IN6_IS_ADDR_LINKLOCAL(a): return \
930 def IN6_IS_ADDR_SITELOCAL(a): return \
932 def IN6_IS_ADDR_V4MAPPED(a): return \
934 def IN6_IS_ADDR_V4COMPAT(a): return \
936 def IN6_IS_ADDR_MC_NODELOCAL(a): return \
938 def IN6_IS_ADDR_MC_LINKLOCAL(a): return \
940 def IN6_IS_ADDR_MC_SITELOCAL(a): return \
942 def IN6_IS_ADDR_MC_ORGLOCAL(a): return \
944 def IN6_IS_ADDR_MC_GLOBAL(a): return