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