source: trunk/essentials/dev-lang/python/Lib/plat-freebsd6/IN.py@ 3326

Last change on this file since 3326 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 11.2 KB
Line 
1# Generated by h2py from /usr/include/netinet/in.h
2
3# Included from sys/cdefs.h
4def __P(protos): return protos
5
6def __STRING(x): return #x
7
8def __XSTRING(x): return __STRING(x)
9
10def __P(protos): return ()
11
12def __STRING(x): return "x"
13
14def __aligned(x): return __attribute__((__aligned__(x)))
15
16def __section(x): return __attribute__((__section__(x)))
17
18def __aligned(x): return __attribute__((__aligned__(x)))
19
20def __section(x): return __attribute__((__section__(x)))
21
22def __nonnull(x): return __attribute__((__nonnull__(x)))
23
24def __predict_true(exp): return __builtin_expect((exp), 1)
25
26def __predict_false(exp): return __builtin_expect((exp), 0)
27
28def __predict_true(exp): return (exp)
29
30def __predict_false(exp): return (exp)
31
32def __FBSDID(s): return __IDSTRING(__CONCAT(__rcsid_,__LINE__),s)
33
34def __RCSID(s): return __IDSTRING(__CONCAT(__rcsid_,__LINE__),s)
35
36def __RCSID_SOURCE(s): return __IDSTRING(__CONCAT(__rcsid_source_,__LINE__),s)
37
38def __SCCSID(s): return __IDSTRING(__CONCAT(__sccsid_,__LINE__),s)
39
40def __COPYRIGHT(s): return __IDSTRING(__CONCAT(__copyright_,__LINE__),s)
41
42_POSIX_C_SOURCE = 199009
43_POSIX_C_SOURCE = 199209
44__XSI_VISIBLE = 600
45_POSIX_C_SOURCE = 200112
46__XSI_VISIBLE = 500
47_POSIX_C_SOURCE = 199506
48_POSIX_C_SOURCE = 198808
49__POSIX_VISIBLE = 200112
50__ISO_C_VISIBLE = 1999
51__POSIX_VISIBLE = 199506
52__ISO_C_VISIBLE = 1990
53__POSIX_VISIBLE = 199309
54__ISO_C_VISIBLE = 1990
55__POSIX_VISIBLE = 199209
56__ISO_C_VISIBLE = 1990
57__POSIX_VISIBLE = 199009
58__ISO_C_VISIBLE = 1990
59__POSIX_VISIBLE = 198808
60__ISO_C_VISIBLE = 0
61__POSIX_VISIBLE = 0
62__XSI_VISIBLE = 0
63__BSD_VISIBLE = 0
64__ISO_C_VISIBLE = 1990
65__POSIX_VISIBLE = 0
66__XSI_VISIBLE = 0
67__BSD_VISIBLE = 0
68__ISO_C_VISIBLE = 1999
69__POSIX_VISIBLE = 200112
70__XSI_VISIBLE = 600
71__BSD_VISIBLE = 1
72__ISO_C_VISIBLE = 1999
73
74# Included from sys/_types.h
75
76# Included from machine/_types.h
77
78# Included from machine/endian.h
79_QUAD_HIGHWORD = 1
80_QUAD_LOWWORD = 0
81_LITTLE_ENDIAN = 1234
82_BIG_ENDIAN = 4321
83_PDP_ENDIAN = 3412
84_BYTE_ORDER = _LITTLE_ENDIAN
85LITTLE_ENDIAN = _LITTLE_ENDIAN
86BIG_ENDIAN = _BIG_ENDIAN
87PDP_ENDIAN = _PDP_ENDIAN
88BYTE_ORDER = _BYTE_ORDER
89__INTEL_COMPILER_with_FreeBSD_endian = 1
90__INTEL_COMPILER_with_FreeBSD_endian = 1
91def __word_swap_int_var(x): return \
92
93def __word_swap_int_const(x): return \
94
95def __word_swap_int(x): return __word_swap_int_var(x)
96
97def __byte_swap_int_var(x): return \
98
99def __byte_swap_int_var(x): return \
100
101def __byte_swap_int_const(x): return \
102
103def __byte_swap_int(x): return __byte_swap_int_var(x)
104
105def __byte_swap_word_var(x): return \
106
107def __byte_swap_word_const(x): return \
108
109def __byte_swap_word(x): return __byte_swap_word_var(x)
110
111def __htonl(x): return __bswap32(x)
112
113def __htons(x): return __bswap16(x)
114
115def __ntohl(x): return __bswap32(x)
116
117def __ntohs(x): return __bswap16(x)
118
119IPPROTO_IP = 0
120IPPROTO_ICMP = 1
121IPPROTO_TCP = 6
122IPPROTO_UDP = 17
123def htonl(x): return __htonl(x)
124
125def htons(x): return __htons(x)
126
127def ntohl(x): return __ntohl(x)
128
129def ntohs(x): return __ntohs(x)
130
131IPPROTO_RAW = 255
132INET_ADDRSTRLEN = 16
133IPPROTO_HOPOPTS = 0
134IPPROTO_IGMP = 2
135IPPROTO_GGP = 3
136IPPROTO_IPV4 = 4
137IPPROTO_IPIP = IPPROTO_IPV4
138IPPROTO_ST = 7
139IPPROTO_EGP = 8
140IPPROTO_PIGP = 9
141IPPROTO_RCCMON = 10
142IPPROTO_NVPII = 11
143IPPROTO_PUP = 12
144IPPROTO_ARGUS = 13
145IPPROTO_EMCON = 14
146IPPROTO_XNET = 15
147IPPROTO_CHAOS = 16
148IPPROTO_MUX = 18
149IPPROTO_MEAS = 19
150IPPROTO_HMP = 20
151IPPROTO_PRM = 21
152IPPROTO_IDP = 22
153IPPROTO_TRUNK1 = 23
154IPPROTO_TRUNK2 = 24
155IPPROTO_LEAF1 = 25
156IPPROTO_LEAF2 = 26
157IPPROTO_RDP = 27
158IPPROTO_IRTP = 28
159IPPROTO_TP = 29
160IPPROTO_BLT = 30
161IPPROTO_NSP = 31
162IPPROTO_INP = 32
163IPPROTO_SEP = 33
164IPPROTO_3PC = 34
165IPPROTO_IDPR = 35
166IPPROTO_XTP = 36
167IPPROTO_DDP = 37
168IPPROTO_CMTP = 38
169IPPROTO_TPXX = 39
170IPPROTO_IL = 40
171IPPROTO_IPV6 = 41
172IPPROTO_SDRP = 42
173IPPROTO_ROUTING = 43
174IPPROTO_FRAGMENT = 44
175IPPROTO_IDRP = 45
176IPPROTO_RSVP = 46