1
2
3
4
5
6
7
8
9
10 package unix
11
12 import "syscall"
13
14 const (
15 AF_APPLETALK = 0x10
16 AF_ARP = 0x1c
17 AF_BLUETOOTH = 0x1f
18 AF_CCITT = 0xa
19 AF_CHAOS = 0x5
20 AF_CNT = 0x15
21 AF_COIP = 0x14
22 AF_DATAKIT = 0x9
23 AF_DECnet = 0xc
24 AF_DLI = 0xd
25 AF_E164 = 0x1a
26 AF_ECMA = 0x8
27 AF_HYLINK = 0xf
28 AF_IEEE80211 = 0x20
29 AF_IMPLINK = 0x3
30 AF_INET = 0x2
31 AF_INET6 = 0x18
32 AF_IPX = 0x17
33 AF_ISDN = 0x1a
34 AF_ISO = 0x7
35 AF_LAT = 0xe
36 AF_LINK = 0x12
37 AF_LOCAL = 0x1
38 AF_MAX = 0x23
39 AF_MPLS = 0x21
40 AF_NATM = 0x1b
41 AF_NS = 0x6
42 AF_OROUTE = 0x11
43 AF_OSI = 0x7
44 AF_PUP = 0x4
45 AF_ROUTE = 0x22
46 AF_SNA = 0xb
47 AF_UNIX = 0x1
48 AF_UNSPEC = 0x0
49 ARPHRD_ARCNET = 0x7
50 ARPHRD_ETHER = 0x1
51 ARPHRD_FRELAY = 0xf
52 ARPHRD_IEEE1394 = 0x18
53 ARPHRD_IEEE802 = 0x6
54 ARPHRD_STRIP = 0x17
55 B0 = 0x0
56 B110 = 0x6e
57 B115200 = 0x1c200
58 B1200 = 0x4b0
59 B134 = 0x86
60 B14400 = 0x3840
61 B150 = 0x96
62 B1800 = 0x708
63 B19200 = 0x4b00
64 B200 = 0xc8
65 B230400 = 0x38400
66 B2400 = 0x960
67 B28800 = 0x7080
68 B300 = 0x12c
69 B38400 = 0x9600
70 B460800 = 0x70800
71 B4800 = 0x12c0
72 B50 = 0x32
73 B57600 = 0xe100
74 B600 = 0x258
75 B7200 = 0x1c20
76 B75 = 0x4b
77 B76800 = 0x12c00
78 B921600 = 0xe1000
79 B9600 = 0x2580
80 BIOCFEEDBACK = 0x8004427d
81 BIOCFLUSH = 0x20004268
82 BIOCGBLEN = 0x40044266
83 BIOCGDLT = 0x4004426a
84 BIOCGDLTLIST = 0xc0104277
85 BIOCGETIF = 0x4090426b
86 BIOCGFEEDBACK = 0x4004427c
87 BIOCGHDRCMPLT = 0x40044274
88 BIOCGRTIMEOUT = 0x4010427b
89 BIOCGSEESENT = 0x40044278
90 BIOCGSTATS = 0x4080426f
91 BIOCGSTATSOLD = 0x4008426f
92 BIOCIMMEDIATE = 0x80044270
93 BIOCPROMISC = 0x20004269
94 BIOCSBLEN = 0xc0044266
95 BIOCSDLT = 0x80044276
96 BIOCSETF = 0x80104267
97 BIOCSETIF = 0x8090426c
98 BIOCSFEEDBACK = 0x8004427d
99 BIOCSHDRCMPLT = 0x80044275
100 BIOCSRTIMEOUT = 0x8010427a
101 BIOCSSEESENT = 0x80044279
102 BIOCSTCPF = 0x80104272
103 BIOCSUDPF = 0x80104273
104 BIOCVERSION = 0x40044271
105 BPF_A = 0x10
106 BPF_ABS = 0x20
107 BPF_ADD = 0x0
108 BPF_ALIGNMENT = 0x8
109 BPF_ALIGNMENT32 = 0x4
110 BPF_ALU = 0x4
111 BPF_AND = 0x50
112 BPF_B = 0x10
113 BPF_DFLTBUFSIZE = 0x100000
114 BPF_DIV = 0x30
115 BPF_H = 0x8
116 BPF_IMM = 0x0
117 BPF_IND = 0x40
118 BPF_JA = 0x0
119 BPF_JEQ = 0x10
120 BPF_JGE = 0x30
121 BPF_JGT = 0x20
122 BPF_JMP = 0x5
123 BPF_JSET = 0x40
124 BPF_K = 0x0
125 BPF_LD = 0x0
126 BPF_LDX = 0x1
127 BPF_LEN = 0x80
128 BPF_LSH = 0x60
129 BPF_MAJOR_VERSION = 0x1
130 BPF_MAXBUFSIZE = 0x1000000
131 BPF_MAXINSNS = 0x200
132 BPF_MEM = 0x60
133 BPF_MEMWORDS = 0x10
134 BPF_MINBUFSIZE = 0x20
135 BPF_MINOR_VERSION = 0x1
136 BPF_MISC = 0x7
137 BPF_MSH = 0xa0
138 BPF_MUL = 0x20
139 BPF_NEG = 0x80
140 BPF_OR = 0x40
141 BPF_RELEASE = 0x30bb6
142 BPF_RET = 0x6
143 BPF_RSH = 0x70
144 BPF_ST = 0x2
145 BPF_STX = 0x3
146 BPF_SUB = 0x10
147 BPF_TAX = 0x0
148 BPF_TXA = 0x80
149 BPF_W = 0x0
150 BPF_X = 0x8
151 BRKINT = 0x2
152 CFLUSH = 0xf
153 CLOCAL = 0x8000
154 CLONE_CSIGNAL = 0xff
155 CLONE_FILES = 0x400
156 CLONE_FS = 0x200
157 CLONE_PID = 0x1000
158 CLONE_PTRACE = 0x2000
159 CLONE_SIGHAND = 0x800
160 CLONE_VFORK = 0x4000
161 CLONE_VM = 0x100
162 CPUSTATES = 0x5
163 CP_IDLE = 0x4
164 CP_INTR = 0x3
165 CP_NICE = 0x1
166 CP_SYS = 0x2
167 CP_USER = 0x0
168 CREAD = 0x800
169 CRTSCTS = 0x10000
170 CS5 = 0x0
171 CS6 = 0x100
172 CS7 = 0x200
173 CS8 = 0x300
174 CSIZE = 0x300
175 CSTART = 0x11
176 CSTATUS = 0x14
177 CSTOP = 0x13
178 CSTOPB = 0x400
179 CSUSP = 0x1a
180 CTL_HW = 0x6
181 CTL_KERN = 0x1
182 CTL_MAXNAME = 0xc
183 CTL_NET = 0x4
184 CTL_QUERY = -0x2
185 DIOCBSFLUSH = 0x20006478
186 DLT_A429 = 0xb8
187 DLT_A653_ICM = 0xb9
188 DLT_AIRONET_HEADER = 0x78
189 DLT_AOS = 0xde
190 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
191 DLT_ARCNET = 0x7
192 DLT_ARCNET_LINUX = 0x81
193 DLT_ATM_CLIP = 0x13
194 DLT_ATM_RFC1483 = 0xb
195 DLT_AURORA = 0x7e
196 DLT_AX25 = 0x3
197 DLT_AX25_KISS = 0xca
198 DLT_BACNET_MS_TP = 0xa5
199 DLT_BLUETOOTH_HCI_H4 = 0xbb
200 DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
201 DLT_CAN20B = 0xbe
202 DLT_CAN_SOCKETCAN = 0xe3
203 DLT_CHAOS = 0x5
204 DLT_CISCO_IOS = 0x76
205 DLT_C_HDLC = 0x68
206 DLT_C_HDLC_WITH_DIR = 0xcd
207 DLT_DECT = 0xdd
208 DLT_DOCSIS = 0x8f
209 DLT_ECONET = 0x73
210 DLT_EN10MB = 0x1
211 DLT_EN3MB = 0x2
212 DLT_ENC = 0x6d
213 DLT_ERF = 0xc5
214 DLT_ERF_ETH = 0xaf
215 DLT_ERF_POS = 0xb0
216 DLT_FC_2 = 0xe0
217 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
218 DLT_FDDI = 0xa
219 DLT_FLEXRAY = 0xd2
220 DLT_FRELAY = 0x6b
221 DLT_FRELAY_WITH_DIR = 0xce
222 DLT_GCOM_SERIAL = 0xad
223 DLT_GCOM_T1E1 = 0xac
224 DLT_GPF_F = 0xab
225 DLT_GPF_T = 0xaa
226 DLT_GPRS_LLC = 0xa9
227 DLT_GSMTAP_ABIS = 0xda
228 DLT_GSMTAP_UM = 0xd9
229 DLT_HDLC = 0x10
230 DLT_HHDLC = 0x79
231 DLT_HIPPI = 0xf
232 DLT_IBM_SN = 0x92
233 DLT_IBM_SP = 0x91
234 DLT_IEEE802 = 0x6
235 DLT_IEEE802_11 = 0x69
236 DLT_IEEE802_11_RADIO = 0x7f
237 DLT_IEEE802_11_RADIO_AVS = 0xa3
238 DLT_IEEE802_15_4 = 0xc3
239 DLT_IEEE802_15_4_LINUX = 0xbf
240 DLT_IEEE802_15_4_NONASK_PHY = 0xd7
241 DLT_IEEE802_16_MAC_CPS = 0xbc
242 DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
243 DLT_IPMB = 0xc7
244 DLT_IPMB_LINUX = 0xd1
245 DLT_IPNET = 0xe2
246 DLT_IPV4 = 0xe4
247 DLT_IPV6 = 0xe5
248 DLT_IP_OVER_FC = 0x7a
249 DLT_JUNIPER_ATM1 = 0x89
250 DLT_JUNIPER_ATM2 = 0x87
251 DLT_JUNIPER_CHDLC = 0xb5
252 DLT_JUNIPER_ES = 0x84
253 DLT_JUNIPER_ETHER = 0xb2
254 DLT_JUNIPER_FRELAY = 0xb4
255 DLT_JUNIPER_GGSN = 0x85
256 DLT_JUNIPER_ISM = 0xc2
257 DLT_JUNIPER_MFR = 0x86
258 DLT_JUNIPER_MLFR = 0x83
259 DLT_JUNIPER_MLPPP = 0x82
260 DLT_JUNIPER_MONITOR = 0xa4
261 DLT_JUNIPER_PIC_PEER = 0xae
262 DLT_JUNIPER_PPP = 0xb3
263 DLT_JUNIPER_PPPOE = 0xa7
264 DLT_JUNIPER_PPPOE_ATM = 0xa8
265 DLT_JUNIPER_SERVICES = 0x88
266 DLT_JUNIPER_ST = 0xc8
267 DLT_JUNIPER_VP = 0xb7
268 DLT_LAPB_WITH_DIR = 0xcf
269 DLT_LAPD = 0xcb
270 DLT_LIN = 0xd4
271 DLT_LINUX_EVDEV = 0xd8
272 DLT_LINUX_IRDA = 0x90
273 DLT_LINUX_LAPD = 0xb1
274 DLT_LINUX_SLL = 0x71
275 DLT_LOOP = 0x6c
276 DLT_LTALK = 0x72
277 DLT_MFR = 0xb6
278 DLT_MOST = 0xd3
279 DLT_MPLS = 0xdb
280 DLT_MTP2 = 0x8c
281 DLT_MTP2_WITH_PHDR = 0x8b
282 DLT_MTP3 = 0x8d
283 DLT_NULL = 0x0
284 DLT_PCI_EXP = 0x7d
285 DLT_PFLOG = 0x75
286 DLT_PFSYNC = 0x12
287 DLT_PPI = 0xc0
288 DLT_PPP = 0x9
289 DLT_PPP_BSDOS = 0xe
290 DLT_PPP_ETHER = 0x33
291 DLT_PPP_PPPD = 0xa6
292 DLT_PPP_SERIAL = 0x32
293 DLT_PPP_WITH_DIR = 0xcc
294 DLT_PRISM_HEADER = 0x77
295 DLT_PRONET = 0x4
296 DLT_RAIF1 = 0xc6
297 DLT_RAW = 0xc
298 DLT_RAWAF_MASK = 0x2240000
299 DLT_RIO = 0x7c
300 DLT_SCCP = 0x8e
301 DLT_SITA = 0xc4
302 DLT_SLIP = 0x8
303 DLT_SLIP_BSDOS = 0xd
304 DLT_SUNATM = 0x7b
305 DLT_SYMANTEC_FIREWALL = 0x63
306 DLT_TZSP = 0x80
307 DLT_USB = 0xba
308 DLT_USB_LINUX = 0xbd
309 DLT_USB_LINUX_MMAPPED = 0xdc
310 DLT_WIHART = 0xdf
311 DLT_X2E_SERIAL = 0xd5
312 DLT_X2E_XORAYA = 0xd6
313 DT_BLK = 0x6
314 DT_CHR = 0x2
315 DT_DIR = 0x4
316 DT_FIFO = 0x1
317 DT_LNK = 0xa
318 DT_REG = 0x8
319 DT_SOCK = 0xc
320 DT_UNKNOWN = 0x0
321 DT_WHT = 0xe
322 ECHO = 0x8
323 ECHOCTL = 0x40
324 ECHOE = 0x2
325 ECHOK = 0x4
326 ECHOKE = 0x1
327 ECHONL = 0x10
328 ECHOPRT = 0x20
329 EMUL_LINUX = 0x1
330 EMUL_LINUX32 = 0x5
331 EMUL_MAXID = 0x6
332 ETHERCAP_JUMBO_MTU = 0x4
333 ETHERCAP_VLAN_HWTAGGING = 0x2
334 ETHERCAP_VLAN_MTU = 0x1
335 ETHERMIN = 0x2e
336 ETHERMTU = 0x5dc
337 ETHERMTU_JUMBO = 0x2328
338 ETHERTYPE_8023 = 0x4
339 ETHERTYPE_AARP = 0x80f3
340 ETHERTYPE_ACCTON = 0x8390
341 ETHERTYPE_AEONIC = 0x8036
342 ETHERTYPE_ALPHA = 0x814a
343 ETHERTYPE_AMBER = 0x6008
344 ETHERTYPE_AMOEBA = 0x8145
345 ETHERTYPE_APOLLO = 0x80f7
346 ETHERTYPE_APOLLODOMAIN = 0x8019
347 ETHERTYPE_APPLETALK = 0x809b
348 ETHERTYPE_APPLITEK = 0x80c7
349 ETHERTYPE_ARGONAUT = 0x803a
350 ETHERTYPE_ARP = 0x806
351 ETHERTYPE_AT = 0x809b
352 ETHERTYPE_ATALK = 0x809b
353 ETHERTYPE_ATOMIC = 0x86df
354 ETHERTYPE_ATT = 0x8069
355 ETHERTYPE_ATTSTANFORD = 0x8008
356 ETHERTYPE_AUTOPHON = 0x806a
357 ETHERTYPE_AXIS = 0x8856
358 ETHERTYPE_BCLOOP = 0x9003
359 ETHERTYPE_BOFL = 0x8102
360 ETHERTYPE_CABLETRON = 0x7034
361 ETHERTYPE_CHAOS = 0x804
362 ETHERTYPE_COMDESIGN = 0x806c
363 ETHERTYPE_COMPUGRAPHIC = 0x806d
364 ETHERTYPE_COUNTERPOINT = 0x8062
365 ETHERTYPE_CRONUS = 0x8004
366 ETHERTYPE_CRONUSVLN = 0x8003
367 ETHERTYPE_DCA = 0x1234
368 ETHERTYPE_DDE = 0x807b
369 ETHERTYPE_DEBNI = 0xaaaa
370 ETHERTYPE_DECAM = 0x8048
371 ETHERTYPE_DECCUST = 0x6006
372 ETHERTYPE_DECDIAG = 0x6005
373 ETHERTYPE_DECDNS = 0x803c
374 ETHERTYPE_DECDTS = 0x803e
375 ETHERTYPE_DECEXPER = 0x6000
376 ETHERTYPE_DECLAST = 0x8041
377 ETHERTYPE_DECLTM = 0x803f
378 ETHERTYPE_DECMUMPS = 0x6009
379 ETHERTYPE_DECNETBIOS = 0x8040
380 ETHERTYPE_DELTACON = 0x86de
381 ETHERTYPE_DIDDLE = 0x4321
382 ETHERTYPE_DLOG1 = 0x660
383 ETHERTYPE_DLOG2 = 0x661
384 ETHERTYPE_DN = 0x6003
385 ETHERTYPE_DOGFIGHT = 0x1989
386 ETHERTYPE_DSMD = 0x8039
387 ETHERTYPE_ECMA = 0x803
388 ETHERTYPE_ENCRYPT = 0x803d
389 ETHERTYPE_ES = 0x805d
390 ETHERTYPE_EXCELAN = 0x8010
391 ETHERTYPE_EXPERDATA = 0x8049
392 ETHERTYPE_FLIP = 0x8146
393 ETHERTYPE_FLOWCONTROL = 0x8808
394 ETHERTYPE_FRARP = 0x808
395 ETHERTYPE_GENDYN = 0x8068
396 ETHERTYPE_HAYES = 0x8130
397 ETHERTYPE_HIPPI_FP = 0x8180
398 ETHERTYPE_HITACHI = 0x8820
399 ETHERTYPE_HP = 0x8005
400 ETHERTYPE_IEEEPUP = 0xa00
401 ETHERTYPE_IEEEPUPAT = 0xa01
402 ETHERTYPE_IMLBL = 0x4c42
403 ETHERTYPE_IMLBLDIAG = 0x424c
404 ETHERTYPE_IP = 0x800
405 ETHERTYPE_IPAS = 0x876c
406 ETHERTYPE_IPV6 = 0x86dd
407 ETHERTYPE_IPX = 0x8137
408 ETHERTYPE_IPXNEW = 0x8037
409 ETHERTYPE_KALPANA = 0x8582
410 ETHERTYPE_LANBRIDGE = 0x8038
411 ETHERTYPE_LANPROBE = 0x8888
412 ETHERTYPE_LAT = 0x6004
413 ETHERTYPE_LBACK = 0x9000
414 ETHERTYPE_LITTLE = 0x8060
415 ETHERTYPE_LOGICRAFT = 0x8148
416 ETHERTYPE_LOOPBACK = 0x9000
417 ETHERTYPE_MATRA = 0x807a
418 ETHERTYPE_MAX = 0xffff
419 ETHERTYPE_MERIT = 0x807c
420 ETHERTYPE_MICP = 0x873a
421 ETHERTYPE_MOPDL = 0x6001
422 ETHERTYPE_MOPRC = 0x6002
423 ETHERTYPE_MOTOROLA = 0x818d
424 ETHERTYPE_MPLS = 0x8847
425 ETHERTYPE_MPLS_MCAST = 0x8848
426 ETHERTYPE_MUMPS = 0x813f
427 ETHERTYPE_NBPCC = 0x3c04
428 ETHERTYPE_NBPCLAIM = 0x3c09
429 ETHERTYPE_NBPCLREQ = 0x3c05
430 ETHERTYPE_NBPCLRSP = 0x3c06
431 ETHERTYPE_NBPCREQ = 0x3c02
432 ETHERTYPE_NBPCRSP = 0x3c03
433 ETHERTYPE_NBPDG = 0x3c07
434 ETHERTYPE_NBPDGB = 0x3c08
435 ETHERTYPE_NBPDLTE = 0x3c0a
436 ETHERTYPE_NBPRAR = 0x3c0c
437 ETHERTYPE_NBPRAS = 0x3c0b
438 ETHERTYPE_NBPRST = 0x3c0d
439 ETHERTYPE_NBPSCD = 0x3c01
440 ETHERTYPE_NBPVCD = 0x3c00
441 ETHERTYPE_NBS = 0x802
442 ETHERTYPE_NCD = 0x8149
443 ETHERTYPE_NESTAR = 0x8006
444 ETHERTYPE_NETBEUI = 0x8191
445 ETHERTYPE_NOVELL = 0x8138
446 ETHERTYPE_NS = 0x600
447 ETHERTYPE_NSAT = 0x601
448 ETHERTYPE_NSCOMPAT = 0x807
449 ETHERTYPE_NTRAILER = 0x10
450 ETHERTYPE_OS9 = 0x7007
451 ETHERTYPE_OS9NET = 0x7009
452 ETHERTYPE_PACER = 0x80c6
453 ETHERTYPE_PAE = 0x888e
454 ETHERTYPE_PCS = 0x4242
455 ETHERTYPE_PLANNING = 0x8044
456 ETHERTYPE_PPP = 0x880b
457 ETHERTYPE_PPPOE = 0x8864
458 ETHERTYPE_PPPOEDISC = 0x8863
459 ETHERTYPE_PRIMENTS = 0x7031
460 ETHERTYPE_PUP = 0x200
461 ETHERTYPE_PUPAT = 0x200
462 ETHERTYPE_RACAL = 0x7030
463 ETHERTYPE_RATIONAL = 0x8150
464 ETHERTYPE_RAWFR = 0x6559
465 ETHERTYPE_RCL = 0x1995
466 ETHERTYPE_RDP = 0x8739
467 ETHERTYPE_RETIX = 0x80f2
468 ETHERTYPE_REVARP = 0x8035
469 ETHERTYPE_SCA = 0x6007
470 ETHERTYPE_SECTRA = 0x86db
471 ETHERTYPE_SECUREDATA = 0x876d
472 ETHERTYPE_SGITW = 0x817e
473 ETHERTYPE_SG_BOUNCE = 0x8016
474 ETHERTYPE_SG_DIAG = 0x8013
475 ETHERTYPE_SG_NETGAMES = 0x8014
476 ETHERTYPE_SG_RESV = 0x8015
477 ETHERTYPE_SIMNET = 0x5208
478 ETHERTYPE_SLOWPROTOCOLS = 0x8809
479 ETHERTYPE_SNA = 0x80d5
480 ETHERTYPE_SNMP = 0x814c
481 ETHERTYPE_SONIX = 0xfaf5
482 ETHERTYPE_SPIDER = 0x809f
483 ETHERTYPE_SPRITE = 0x500
484 ETHERTYPE_STP = 0x8181
485 ETHERTYPE_TALARIS = 0x812b
486 ETHERTYPE_TALARISMC = 0x852b
487 ETHERTYPE_TCPCOMP = 0x876b
488 ETHERTYPE_TCPSM = 0x9002
489 ETHERTYPE_TEC = 0x814f
490 ETHERTYPE_TIGAN = 0x802f
491 ETHERTYPE_TRAIL = 0x1000
492 ETHERTYPE_TRANSETHER = 0x6558
493 ETHERTYPE_TYMSHARE = 0x802e
494 ETHERTYPE_UBBST = 0x7005
495 ETHERTYPE_UBDEBUG = 0x900
496 ETHERTYPE_UBDIAGLOOP = 0x7002
497 ETHERTYPE_UBDL = 0x7000
498 ETHERTYPE_UBNIU = 0x7001
499 ETHERTYPE_UBNMC = 0x7003
500 ETHERTYPE_VALID = 0x1600
501 ETHERTYPE_VARIAN = 0x80dd
502 ETHERTYPE_VAXELN = 0x803b
503 ETHERTYPE_VEECO = 0x8067
504 ETHERTYPE_VEXP = 0x805b
505 ETHERTYPE_VGLAB = 0x8131
506 ETHERTYPE_VINES = 0xbad
507 ETHERTYPE_VINESECHO = 0xbaf
508 ETHERTYPE_VINESLOOP = 0xbae
509 ETHERTYPE_VITAL = 0xff00
510 ETHERTYPE_VLAN = 0x8100
511 ETHERTYPE_VLTLMAN = 0x8080
512 ETHERTYPE_VPROD = 0x805c
513 ETHERTYPE_VURESERVED = 0x8147
514 ETHERTYPE_WATERLOO = 0x8130
515 ETHERTYPE_WELLFLEET = 0x8103
516 ETHERTYPE_X25 = 0x805
517 ETHERTYPE_X75 = 0x801
518 ETHERTYPE_XNSSM = 0x9001
519 ETHERTYPE_XTP = 0x817d
520 ETHER_ADDR_LEN = 0x6
521 ETHER_CRC_LEN = 0x4
522 ETHER_CRC_POLY_BE = 0x4c11db6
523 ETHER_CRC_POLY_LE = 0xedb88320
524 ETHER_HDR_LEN = 0xe
525 ETHER_MAX_LEN = 0x5ee
526 ETHER_MAX_LEN_JUMBO = 0x233a
527 ETHER_MIN_LEN = 0x40
528 ETHER_PPPOE_ENCAP_LEN = 0x8
529 ETHER_TYPE_LEN = 0x2
530 ETHER_VLAN_ENCAP_LEN = 0x4
531 EVFILT_AIO = 0x2
532 EVFILT_PROC = 0x4
533 EVFILT_READ = 0x0
534 EVFILT_SIGNAL = 0x5
535 EVFILT_SYSCOUNT = 0x7
536 EVFILT_TIMER = 0x6
537 EVFILT_VNODE = 0x3
538 EVFILT_WRITE = 0x1
539 EV_ADD = 0x1
540 EV_CLEAR = 0x20
541 EV_DELETE = 0x2
542 EV_DISABLE = 0x8
543 EV_ENABLE = 0x4
544 EV_EOF = 0x8000
545 EV_ERROR = 0x4000
546 EV_FLAG1 = 0x2000
547 EV_ONESHOT = 0x10
548 EV_SYSFLAGS = 0xf000
549 EXTA = 0x4b00
550 EXTATTR_CMD_START = 0x1
551 EXTATTR_CMD_STOP = 0x2
552 EXTATTR_NAMESPACE_SYSTEM = 0x2
553 EXTATTR_NAMESPACE_USER = 0x1
554 EXTB = 0x9600
555 EXTPROC = 0x800
556 FD_CLOEXEC = 0x1
557 FD_SETSIZE = 0x100
558 FLUSHO = 0x800000
559 F_CLOSEM = 0xa
560 F_DUPFD = 0x0
561 F_DUPFD_CLOEXEC = 0xc
562 F_FSCTL = -0x80000000
563 F_FSDIRMASK = 0x70000000
564 F_FSIN = 0x10000000
565 F_FSINOUT = 0x30000000
566 F_FSOUT = 0x20000000
567 F_FSPRIV = 0x8000
568 F_FSVOID = 0x40000000
569 F_GETFD = 0x1
570 F_GETFL = 0x3
571 F_GETLK = 0x7
572 F_GETNOSIGPIPE = 0xd
573 F_GETOWN = 0x5
574 F_MAXFD = 0xb
575 F_OK = 0x0
576 F_PARAM_MASK = 0xfff
577 F_PARAM_MAX = 0xfff
578 F_RDLCK = 0x1
579 F_SETFD = 0x2
580 F_SETFL = 0x4
581 F_SETLK = 0x8
582 F_SETLKW = 0x9
583 F_SETNOSIGPIPE = 0xe
584 F_SETOWN = 0x6
585 F_UNLCK = 0x2
586 F_WRLCK = 0x3
587 HUPCL = 0x4000
588 HW_MACHINE = 0x1
589 ICANON = 0x100
590 ICMP6_FILTER = 0x12
591 ICRNL = 0x100
592 IEXTEN = 0x400
593 IFAN_ARRIVAL = 0x0
594 IFAN_DEPARTURE = 0x1
595 IFA_ROUTE = 0x1
596 IFF_ALLMULTI = 0x200
597 IFF_BROADCAST = 0x2
598 IFF_CANTCHANGE = 0x8f52
599 IFF_DEBUG = 0x4
600 IFF_LINK0 = 0x1000
601 IFF_LINK1 = 0x2000
602 IFF_LINK2 = 0x4000
603 IFF_LOOPBACK = 0x8
604 IFF_MULTICAST = 0x8000
605 IFF_NOARP = 0x80
606 IFF_NOTRAILERS = 0x20
607 IFF_OACTIVE = 0x400
608 IFF_POINTOPOINT = 0x10
609 IFF_PROMISC = 0x100
610 IFF_RUNNING = 0x40
611 IFF_SIMPLEX = 0x800
612 IFF_UP = 0x1
613 IFNAMSIZ = 0x10
614 IFT_1822 = 0x2
615 IFT_A12MPPSWITCH = 0x82
616 IFT_AAL2 = 0xbb
617 IFT_AAL5 = 0x31
618 IFT_ADSL = 0x5e
619 IFT_AFLANE8023 = 0x3b
620 IFT_AFLANE8025 = 0x3c
621 IFT_ARAP = 0x58
622 IFT_ARCNET = 0x23
623 IFT_ARCNETPLUS = 0x24
624 IFT_ASYNC = 0x54
625 IFT_ATM = 0x25
626 IFT_ATMDXI = 0x69
627 IFT_ATMFUNI = 0x6a
628 IFT_ATMIMA = 0x6b
629 IFT_ATMLOGICAL = 0x50
630 IFT_ATMRADIO = 0xbd
631 IFT_ATMSUBINTERFACE = 0x86
632 IFT_ATMVCIENDPT = 0xc2
633 IFT_ATMVIRTUAL = 0x95
634 IFT_BGPPOLICYACCOUNTING = 0xa2
635 IFT_BRIDGE = 0xd1
636 IFT_BSC = 0x53
637 IFT_CARP = 0xf8
638 IFT_CCTEMUL = 0x3d
639 IFT_CEPT = 0x13
640 IFT_CES = 0x85
641 IFT_CHANNEL = 0x46
642 IFT_CNR = 0x55
643 IFT_COFFEE = 0x84
644 IFT_COMPOSITELINK = 0x9b
645 IFT_DCN = 0x8d
646 IFT_DIGITALPOWERLINE = 0x8a
647 IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
648 IFT_DLSW = 0x4a
649 IFT_DOCSCABLEDOWNSTREAM = 0x80
650 IFT_DOCSCABLEMACLAYER = 0x7f
651 IFT_DOCSCABLEUPSTREAM = 0x81
652 IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd
653 IFT_DS0 = 0x51
654 IFT_DS0BUNDLE = 0x52
655 IFT_DS1FDL = 0xaa
656 IFT_DS3 = 0x1e
657 IFT_DTM = 0x8c
658 IFT_DVBASILN = 0xac
659 IFT_DVBASIOUT = 0xad
660 IFT_DVBRCCDOWNSTREAM = 0x93
661 IFT_DVBRCCMACLAYER = 0x92
662 IFT_DVBRCCUPSTREAM = 0x94
663 IFT_ECONET = 0xce
664 IFT_EON = 0x19
665 IFT_EPLRS = 0x57
666 IFT_ESCON = 0x49
667 IFT_ETHER = 0x6
668 IFT_FAITH = 0xf2
669 IFT_FAST = 0x7d
670 IFT_FASTETHER = 0x3e
671 IFT_FASTETHERFX = 0x45
672 IFT_FDDI = 0xf
673 IFT_FIBRECHANNEL = 0x38
674 IFT_FRAMERELAYINTERCONNECT = 0x3a
675 IFT_FRAMERELAYMPI = 0x5c
676 IFT_FRDLCIENDPT = 0xc1
677 IFT_FRELAY = 0x20
678 IFT_FRELAYDCE = 0x2c
679 IFT_FRF16MFRBUNDLE = 0xa3
680 IFT_FRFORWARD = 0x9e
681 IFT_G703AT2MB = 0x43
682 IFT_G703AT64K = 0x42
683 IFT_GIF = 0xf0
684 IFT_GIGABITETHERNET = 0x75
685 IFT_GR303IDT = 0xb2
686 IFT_GR303RDT = 0xb1
687 IFT_H323GATEKEEPER = 0xa4
688 IFT_H323PROXY = 0xa5
689 IFT_HDH1822 = 0x3
690 IFT_HDLC = 0x76
691 IFT_HDSL2 = 0xa8
692 IFT_HIPERLAN2 = 0xb7
693 IFT_HIPPI = 0x2f
694 IFT_HIPPIINTERFACE = 0x39
695 IFT_HOSTPAD = 0x5a
696 IFT_HSSI = 0x2e
697 IFT_HY = 0xe
698 IFT_IBM370PARCHAN = 0x48
699 IFT_IDSL = 0x9a
700 IFT_IEEE1394 = 0x90
701 IFT_IEEE80211 = 0x47
702 IFT_IEEE80212 = 0x37
703 IFT_IEEE8023ADLAG = 0xa1
704 IFT_IFGSN = 0x91
705 IFT_IMT = 0xbe
706 IFT_INFINIBAND = 0xc7
707 IFT_INTERLEAVE = 0x7c
708 IFT_IP = 0x7e
709 IFT_IPFORWARD = 0x8e
710 IFT_IPOVERATM = 0x72
711 IFT_IPOVERCDLC = 0x6d
712 IFT_IPOVERCLAW = 0x6e
713 IFT_IPSWITCH = 0x4e
714 IFT_ISDN = 0x3f
715 IFT_ISDNBASIC = 0x14
716 IFT_ISDNPRIMARY = 0x15
717 IFT_ISDNS = 0x4b
718 IFT_ISDNU = 0x4c
719 IFT_ISO88022LLC = 0x29
720 IFT_ISO88023 = 0x7
721 IFT_ISO88024 = 0x8
722 IFT_ISO88025 = 0x9
723 IFT_ISO88025CRFPINT = 0x62
724 IFT_ISO88025DTR = 0x56
725 IFT_ISO88025FIBER = 0x73
726 IFT_ISO88026 = 0xa
727 IFT_ISUP = 0xb3
728 IFT_L2VLAN = 0x87
729 IFT_L3IPVLAN = 0x88
730 IFT_L3IPXVLAN = 0x89
731 IFT_LAPB = 0x10
732 IFT_LAPD = 0x4d
733 IFT_LAPF = 0x77
734 IFT_LINEGROUP = 0xd2
735 IFT_LOCALTALK = 0x2a
736 IFT_LOOP = 0x18
737 IFT_MEDIAMAILOVERIP = 0x8b
738 IFT_MFSIGLINK = 0xa7
739 IFT_MIOX25 = 0x26
740 IFT_MODEM = 0x30
741 IFT_MPC = 0x71
742 IFT_MPLS = 0xa6
743 IFT_MPLSTUNNEL = 0x96
744 IFT_MSDSL = 0x8f
745 IFT_MVL = 0xbf
746 IFT_MYRINET = 0x63
747 IFT_NFAS = 0xaf
748 IFT_NSIP = 0x1b
749 IFT_OPTICALCHANNEL = 0xc3
750 IFT_OPTICALTRANSPORT = 0xc4
751 IFT_OTHER = 0x1
752 IFT_P10 = 0xc
753 IFT_P80 = 0xd
754 IFT_PARA = 0x22
755 IFT_PFLOG = 0xf5
756 IFT_PFSYNC = 0xf6
757 IFT_PLC = 0xae
758 IFT_PON155 = 0xcf
759 IFT_PON622 = 0xd0
760 IFT_POS = 0xab
761 IFT_PPP = 0x17
762 IFT_PPPMULTILINKBUNDLE = 0x6c
763 IFT_PROPATM = 0xc5
764 IFT_PROPBWAP2MP = 0xb8
765 IFT_PROPCNLS = 0x59
766 IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
767 IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
768 IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
769 IFT_PROPMUX = 0x36
770 IFT_PROPVIRTUAL = 0x35
771 IFT_PROPWIRELESSP2P = 0x9d
772 IFT_PTPSERIAL = 0x16
773 IFT_PVC = 0xf1
774 IFT_Q2931 = 0xc9
775 IFT_QLLC = 0x44
776 IFT_RADIOMAC = 0xbc
777 IFT_RADSL = 0x5f
778 IFT_REACHDSL = 0xc0
779 IFT_RFC1483 = 0x9f
780 IFT_RS232 = 0x21
781 IFT_RSRB = 0x4f
782 IFT_SDLC = 0x11
783 IFT_SDSL = 0x60
784 IFT_SHDSL = 0xa9
785 IFT_SIP = 0x1f
786 IFT_SIPSIG = 0xcc
787 IFT_SIPTG = 0xcb
788 IFT_SLIP = 0x1c
789 IFT_SMDSDXI = 0x2b
790 IFT_SMDSICIP = 0x34
791 IFT_SONET = 0x27
792 IFT_SONETOVERHEADCHANNEL = 0xb9
793 IFT_SONETPATH = 0x32
794 IFT_SONETVT = 0x33
795 IFT_SRP = 0x97
796 IFT_SS7SIGLINK = 0x9c
797 IFT_STACKTOSTACK = 0x6f
798 IFT_STARLAN = 0xb
799 IFT_STF = 0xd7
800 IFT_T1 = 0x12
801 IFT_TDLC = 0x74
802 IFT_TELINK = 0xc8
803 IFT_TERMPAD = 0x5b
804 IFT_TR008 = 0xb0
805 IFT_TRANSPHDLC = 0x7b
806 IFT_TUNNEL = 0x83
807 IFT_ULTRA = 0x1d
808 IFT_USB = 0xa0
809 IFT_V11 = 0x40
810 IFT_V35 = 0x2d
811 IFT_V36 = 0x41
812 IFT_V37 = 0x78
813 IFT_VDSL = 0x61
814 IFT_VIRTUALIPADDRESS = 0x70
815 IFT_VIRTUALTG = 0xca
816 IFT_VOICEDID = 0xd5
817 IFT_VOICEEM = 0x64
818 IFT_VOICEEMFGD = 0xd3
819 IFT_VOICEENCAP = 0x67
820 IFT_VOICEFGDEANA = 0xd4
821 IFT_VOICEFXO = 0x65
822 IFT_VOICEFXS = 0x66
823 IFT_VOICEOVERATM = 0x98
824 IFT_VOICEOVERCABLE = 0xc6
825 IFT_VOICEOVERFRAMERELAY = 0x99
826 IFT_VOICEOVERIP = 0x68
827 IFT_X213 = 0x5d
828 IFT_X25 = 0x5
829 IFT_X25DDN = 0x4
830 IFT_X25HUNTGROUP = 0x7a
831 IFT_X25MLP = 0x79
832 IFT_X25PLE = 0x28
833 IFT_XETHER = 0x1a
834 IGNBRK = 0x1
835 IGNCR = 0x80
836 IGNPAR = 0x4
837 IMAXBEL = 0x2000
838 INLCR = 0x40
839 INPCK = 0x10
840 IN_CLASSA_HOST = 0xffffff
841 IN_CLASSA_MAX = 0x80
842 IN_CLASSA_NET = 0xff000000
843 IN_CLASSA_NSHIFT = 0x18
844 IN_CLASSB_HOST = 0xffff
845 IN_CLASSB_MAX = 0x10000
846 IN_CLASSB_NET = 0xffff0000
847 IN_CLASSB_NSHIFT = 0x10
848 IN_CLASSC_HOST = 0xff
849 IN_CLASSC_NET = 0xffffff00
850 IN_CLASSC_NSHIFT = 0x8
851 IN_CLASSD_HOST = 0xfffffff
852 IN_CLASSD_NET = 0xf0000000
853 IN_CLASSD_NSHIFT = 0x1c
854 IN_LOOPBACKNET = 0x7f
855 IPPROTO_AH = 0x33
856 IPPROTO_CARP = 0x70
857 IPPROTO_DONE = 0x101
858 IPPROTO_DSTOPTS = 0x3c
859 IPPROTO_EGP = 0x8
860 IPPROTO_ENCAP = 0x62
861 IPPROTO_EON = 0x50
862 IPPROTO_ESP = 0x32
863 IPPROTO_ETHERIP = 0x61
864 IPPROTO_FRAGMENT = 0x2c
865 IPPROTO_GGP = 0x3
866 IPPROTO_GRE = 0x2f
867 IPPROTO_HOPOPTS = 0x0
868 IPPROTO_ICMP = 0x1
869 IPPROTO_ICMPV6 = 0x3a
870 IPPROTO_IDP = 0x16
871 IPPROTO_IGMP = 0x2
872 IPPROTO_IP = 0x0
873 IPPROTO_IPCOMP = 0x6c
874 IPPROTO_IPIP = 0x4
875 IPPROTO_IPV4 = 0x4
876 IPPROTO_IPV6 = 0x29
877 IPPROTO_IPV6_ICMP = 0x3a
878 IPPROTO_MAX = 0x100
879 IPPROTO_MAXID = 0x34
880 IPPROTO_MOBILE = 0x37
881 IPPROTO_NONE = 0x3b
882 IPPROTO_PFSYNC = 0xf0
883 IPPROTO_PIM = 0x67
884 IPPROTO_PUP = 0xc
885 IPPROTO_RAW = 0xff
886 IPPROTO_ROUTING = 0x2b
887 IPPROTO_RSVP = 0x2e
888 IPPROTO_TCP = 0x6
889 IPPROTO_TP = 0x1d
890 IPPROTO_UDP = 0x11
891 IPPROTO_VRRP = 0x70
892 IPV6_CHECKSUM = 0x1a
893 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
894 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
895 IPV6_DEFHLIM = 0x40
896 IPV6_DONTFRAG = 0x3e
897 IPV6_DSTOPTS = 0x32
898 IPV6_FAITH = 0x1d
899 IPV6_FLOWINFO_MASK = 0xffffff0f
900 IPV6_FLOWLABEL_MASK = 0xffff0f00
901 IPV6_FRAGTTL = 0x78
902 IPV6_HLIMDEC = 0x1
903 IPV6_HOPLIMIT = 0x2f
904 IPV6_HOPOPTS = 0x31
905 IPV6_IPSEC_POLICY = 0x1c
906 IPV6_JOIN_GROUP = 0xc
907 IPV6_LEAVE_GROUP = 0xd
908 IPV6_MAXHLIM = 0xff
909 IPV6_MAXPACKET = 0xffff
910 IPV6_MMTU = 0x500
911 IPV6_MULTICAST_HOPS = 0xa
912 IPV6_MULTICAST_IF = 0x9
913 IPV6_MULTICAST_LOOP = 0xb
914 IPV6_NEXTHOP = 0x30
915 IPV6_PATHMTU = 0x2c
916 IPV6_PKTINFO = 0x2e
917 IPV6_PORTRANGE = 0xe
918 IPV6_PORTRANGE_DEFAULT = 0x0
919 IPV6_PORTRANGE_HIGH = 0x1
920 IPV6_PORTRANGE_LOW = 0x2
921 IPV6_RECVDSTOPTS = 0x28
922 IPV6_RECVHOPLIMIT = 0x25
923 IPV6_RECVHOPOPTS = 0x27
924 IPV6_RECVPATHMTU = 0x2b
925 IPV6_RECVPKTINFO = 0x24
926 IPV6_RECVRTHDR = 0x26
927 IPV6_RECVTCLASS = 0x39
928 IPV6_RTHDR = 0x33
929 IPV6_RTHDRDSTOPTS = 0x23
930 IPV6_RTHDR_LOOSE = 0x0
931 IPV6_RTHDR_STRICT = 0x1
932 IPV6_RTHDR_TYPE_0 = 0x0
933 IPV6_SOCKOPT_RESERVED1 = 0x3
934 IPV6_TCLASS = 0x3d
935 IPV6_UNICAST_HOPS = 0x4
936 IPV6_USE_MIN_MTU = 0x2a
937 IPV6_V6ONLY = 0x1b
938 IPV6_VERSION = 0x60
939 IPV6_VERSION_MASK = 0xf0
940 IP_ADD_MEMBERSHIP = 0xc
941 IP_DEFAULT_MULTICAST_LOOP = 0x1
942 IP_DEFAULT_MULTICAST_TTL = 0x1
943 IP_DF = 0x4000
944 IP_DROP_MEMBERSHIP = 0xd
945 IP_EF = 0x8000
946 IP_ERRORMTU = 0x15
947 IP_HDRINCL = 0x2
948 IP_IPSEC_POLICY = 0x16
949 IP_MAXPACKET = 0xffff
950 IP_MAX_MEMBERSHIPS = 0x14
951 IP_MF = 0x2000
952 IP_MINFRAGSIZE = 0x45
953 IP_MINTTL = 0x18
954 IP_MSS = 0x240
955 IP_MULTICAST_IF = 0x9
956 IP_MULTICAST_LOOP = 0xb
957 IP_MULTICAST_TTL = 0xa
958 IP_OFFMASK = 0x1fff
959 IP_OPTIONS = 0x1
960 IP_PORTRANGE = 0x13
961 IP_PORTRANGE_DEFAULT = 0x0
962 IP_PORTRANGE_HIGH = 0x1
963 IP_PORTRANGE_LOW = 0x2
964 IP_RECVDSTADDR = 0x7
965 IP_RECVIF = 0x14
966 IP_RECVOPTS = 0x5
967 IP_RECVRETOPTS = 0x6
968 IP_RECVTTL = 0x17
969 IP_RETOPTS = 0x8
970 IP_RF = 0x8000
971 IP_TOS = 0x3
972 IP_TTL = 0x4
973 ISIG = 0x80
974 ISTRIP = 0x20
975 IXANY = 0x800
976 IXOFF = 0x400
977 IXON = 0x200
978 KERN_HOSTNAME = 0xa
979 KERN_OSRELEASE = 0x2
980 KERN_OSTYPE = 0x1
981 KERN_VERSION = 0x4
982 LOCK_EX = 0x2
983 LOCK_NB = 0x4
984 LOCK_SH = 0x1
985 LOCK_UN = 0x8
986 MADV_DONTNEED = 0x4
987 MADV_FREE = 0x6
988 MADV_NORMAL = 0x0
989 MADV_RANDOM = 0x1
990 MADV_SEQUENTIAL = 0x2
991 MADV_SPACEAVAIL = 0x5
992 MADV_WILLNEED = 0x3
993 MAP_ALIGNMENT_16MB = 0x18000000
994 MAP_ALIGNMENT_1TB = 0x28000000
995 MAP_ALIGNMENT_256TB = 0x30000000
996 MAP_ALIGNMENT_4GB = 0x20000000
997 MAP_ALIGNMENT_64KB = 0x10000000
998 MAP_ALIGNMENT_64PB = 0x38000000
999 MAP_ALIGNMENT_MASK = -0x1000000
1000 MAP_ALIGNMENT_SHIFT = 0x18
1001 MAP_ANON = 0x1000
1002 MAP_FILE = 0x0
1003 MAP_FIXED = 0x10
1004 MAP_HASSEMAPHORE = 0x200
1005 MAP_INHERIT = 0x80
1006 MAP_INHERIT_COPY = 0x1
1007 MAP_INHERIT_DEFAULT = 0x1
1008 MAP_INHERIT_DONATE_COPY = 0x3
1009 MAP_INHERIT_NONE = 0x2
1010 MAP_INHERIT_SHARE = 0x0
1011 MAP_NORESERVE = 0x40
1012 MAP_PRIVATE = 0x2
1013 MAP_RENAME = 0x20
1014 MAP_SHARED = 0x1
1015 MAP_STACK = 0x2000
1016 MAP_TRYFIXED = 0x400
1017 MAP_WIRED = 0x800
1018 MCL_CURRENT = 0x1
1019 MCL_FUTURE = 0x2
1020 MNT_ASYNC = 0x40
1021 MNT_BASIC_FLAGS = 0xe782807f
1022 MNT_DEFEXPORTED = 0x200
1023 MNT_DISCARD = 0x800000
1024 MNT_EXKERB = 0x800
1025 MNT_EXNORESPORT = 0x8000000
1026 MNT_EXPORTANON = 0x400
1027 MNT_EXPORTED = 0x100
1028 MNT_EXPUBLIC = 0x10000000
1029 MNT_EXRDONLY = 0x80
1030 MNT_EXTATTR = 0x1000000
1031 MNT_FORCE = 0x80000
1032 MNT_GETARGS = 0x400000
1033 MNT_IGNORE = 0x100000
1034 MNT_LAZY = 0x3
1035 MNT_LOCAL = 0x1000
1036 MNT_LOG = 0x2000000
1037 MNT_NOATIME = 0x4000000
1038 MNT_NOCOREDUMP = 0x8000
1039 MNT_NODEV = 0x10
1040 MNT_NODEVMTIME = 0x40000000
1041 MNT_NOEXEC = 0x4
1042 MNT_NOSUID = 0x8
1043 MNT_NOWAIT = 0x2
1044 MNT_OP_FLAGS = 0x4d0000
1045 MNT_QUOTA = 0x2000
1046 MNT_RDONLY = 0x1
1047 MNT_RELATIME = 0x20000
1048 MNT_RELOAD = 0x40000
1049 MNT_ROOTFS = 0x4000
1050 MNT_SOFTDEP = 0x80000000
1051 MNT_SYMPERM = 0x20000000
1052 MNT_SYNCHRONOUS = 0x2
1053 MNT_UNION = 0x20
1054 MNT_UPDATE = 0x10000
1055 MNT_VISFLAGMASK = 0xff90ffff
1056 MNT_WAIT = 0x1
1057 MSG_BCAST = 0x100
1058 MSG_CMSG_CLOEXEC = 0x800
1059 MSG_CONTROLMBUF = 0x2000000
1060 MSG_CTRUNC = 0x20
1061 MSG_DONTROUTE = 0x4
1062 MSG_DONTWAIT = 0x80
1063 MSG_EOR = 0x8
1064 MSG_IOVUSRSPACE = 0x4000000
1065 MSG_LENUSRSPACE = 0x8000000
1066 MSG_MCAST = 0x200
1067 MSG_NAMEMBUF = 0x1000000
1068 MSG_NBIO = 0x1000
1069 MSG_NOSIGNAL = 0x400
1070 MSG_OOB = 0x1
1071 MSG_PEEK = 0x2
1072 MSG_TRUNC = 0x10
1073 MSG_USERFLAGS = 0xffffff
1074 MSG_WAITALL = 0x40
1075 MS_ASYNC = 0x1
1076 MS_INVALIDATE = 0x2
1077 MS_SYNC = 0x4
1078 NAME_MAX = 0x1ff
1079 NET_RT_DUMP = 0x1
1080 NET_RT_FLAGS = 0x2
1081 NET_RT_IFLIST = 0x5
1082 NET_RT_MAXID = 0x6
1083 NET_RT_OIFLIST = 0x4
1084 NET_RT_OOIFLIST = 0x3
1085 NFDBITS = 0x20
1086 NOFLSH = 0x80000000
1087 NOTE_ATTRIB = 0x8
1088 NOTE_CHILD = 0x4
1089 NOTE_DELETE = 0x1
1090 NOTE_EXEC = 0x20000000
1091 NOTE_EXIT = 0x80000000
1092 NOTE_EXTEND = 0x4
1093 NOTE_FORK = 0x40000000
1094 NOTE_LINK = 0x10
1095 NOTE_LOWAT = 0x1
1096 NOTE_PCTRLMASK = 0xf0000000
1097 NOTE_PDATAMASK = 0xfffff
1098 NOTE_RENAME = 0x20
1099 NOTE_REVOKE = 0x40
1100 NOTE_TRACK = 0x1
1101 NOTE_TRACKERR = 0x2
1102 NOTE_WRITE = 0x2
1103 OCRNL = 0x10
1104 OFIOGETBMAP = 0xc004667a
1105 ONLCR = 0x2
1106 ONLRET = 0x40
1107 ONOCR = 0x20
1108 ONOEOT = 0x8
1109 OPOST = 0x1
1110 O_ACCMODE = 0x3
1111 O_ALT_IO = 0x40000
1112 O_APPEND = 0x8
1113 O_ASYNC = 0x40
1114 O_CLOEXEC = 0x400000
1115 O_CREAT = 0x200
1116 O_DIRECT = 0x80000
1117 O_DIRECTORY = 0x200000
1118 O_DSYNC = 0x10000
1119 O_EXCL = 0x800
1120 O_EXLOCK = 0x20
1121 O_FSYNC = 0x80
1122 O_NDELAY = 0x4
1123 O_NOCTTY = 0x8000
1124 O_NOFOLLOW = 0x100
1125 O_NONBLOCK = 0x4
1126 O_NOSIGPIPE = 0x1000000
1127 O_RDONLY = 0x0
1128 O_RDWR = 0x2
1129 O_RSYNC = 0x20000
1130 O_SHLOCK = 0x10
1131 O_SYNC = 0x80
1132 O_TRUNC = 0x400
1133 O_WRONLY = 0x1
1134 PARENB = 0x1000
1135 PARMRK = 0x8
1136 PARODD = 0x2000
1137 PENDIN = 0x20000000
1138 PRIO_PGRP = 0x1
1139 PRIO_PROCESS = 0x0
1140 PRIO_USER = 0x2
1141 PRI_IOFLUSH = 0x7c
1142 PROT_EXEC = 0x4
1143 PROT_NONE = 0x0
1144 PROT_READ = 0x1
1145 PROT_WRITE = 0x2
1146 RLIMIT_AS = 0xa
1147 RLIMIT_CORE = 0x4
1148 RLIMIT_CPU = 0x0
1149 RLIMIT_DATA = 0x2
1150 RLIMIT_FSIZE = 0x1
1151 RLIMIT_MEMLOCK = 0x6
1152 RLIMIT_NOFILE = 0x8
1153 RLIMIT_NPROC = 0x7
1154 RLIMIT_RSS = 0x5
1155 RLIMIT_STACK = 0x3
1156 RLIM_INFINITY = 0x7fffffffffffffff
1157 RTAX_AUTHOR = 0x6
1158 RTAX_BRD = 0x7
1159 RTAX_DST = 0x0
1160 RTAX_GATEWAY = 0x1
1161 RTAX_GENMASK = 0x3
1162 RTAX_IFA = 0x5
1163 RTAX_IFP = 0x4
1164 RTAX_MAX = 0x9
1165 RTAX_NETMASK = 0x2
1166 RTAX_TAG = 0x8
1167 RTA_AUTHOR = 0x40
1168 RTA_BRD = 0x80
1169 RTA_DST = 0x1
1170 RTA_GATEWAY = 0x2
1171 RTA_GENMASK = 0x8
1172 RTA_IFA = 0x20
1173 RTA_IFP = 0x10
1174 RTA_NETMASK = 0x4
1175 RTA_TAG = 0x100
1176 RTF_ANNOUNCE = 0x20000
1177 RTF_BLACKHOLE = 0x1000
1178 RTF_CLONED = 0x2000
1179 RTF_CLONING = 0x100
1180 RTF_DONE = 0x40
1181 RTF_DYNAMIC = 0x10
1182 RTF_GATEWAY = 0x2
1183 RTF_HOST = 0x4
1184 RTF_LLINFO = 0x400
1185 RTF_MASK = 0x80
1186 RTF_MODIFIED = 0x20
1187 RTF_PROTO1 = 0x8000
1188 RTF_PROTO2 = 0x4000
1189 RTF_REJECT = 0x8
1190 RTF_SRC = 0x10000
1191 RTF_STATIC = 0x800
1192 RTF_UP = 0x1
1193 RTF_XRESOLVE = 0x200
1194 RTM_ADD = 0x1
1195 RTM_CHANGE = 0x3
1196 RTM_CHGADDR = 0x15
1197 RTM_DELADDR = 0xd
1198 RTM_DELETE = 0x2
1199 RTM_GET = 0x4
1200 RTM_IEEE80211 = 0x11
1201 RTM_IFANNOUNCE = 0x10
1202 RTM_IFINFO = 0x14
1203 RTM_LLINFO_UPD = 0x13
1204 RTM_LOCK = 0x8
1205 RTM_LOSING = 0x5
1206 RTM_MISS = 0x7
1207 RTM_NEWADDR = 0xc
1208 RTM_OIFINFO = 0xf
1209 RTM_OLDADD = 0x9
1210 RTM_OLDDEL = 0xa
1211 RTM_OOIFINFO = 0xe
1212 RTM_REDIRECT = 0x6
1213 RTM_RESOLVE = 0xb
1214 RTM_RTTUNIT = 0xf4240
1215 RTM_SETGATE = 0x12
1216 RTM_VERSION = 0x4
1217 RTV_EXPIRE = 0x4
1218 RTV_HOPCOUNT = 0x2
1219 RTV_MTU = 0x1
1220 RTV_RPIPE = 0x8
1221 RTV_RTT = 0x40
1222 RTV_RTTVAR = 0x80
1223 RTV_SPIPE = 0x10
1224 RTV_SSTHRESH = 0x20
1225 RUSAGE_CHILDREN = -0x1
1226 RUSAGE_SELF = 0x0
1227 SCM_CREDS = 0x4
1228 SCM_RIGHTS = 0x1
1229 SCM_TIMESTAMP = 0x8
1230 SHUT_RD = 0x0
1231 SHUT_RDWR = 0x2
1232 SHUT_WR = 0x1
1233 SIOCADDMULTI = 0x80906931
1234 SIOCADDRT = 0x8038720a
1235 SIOCAIFADDR = 0x8040691a
1236 SIOCALIFADDR = 0x8118691c
1237 SIOCATMARK = 0x40047307
1238 SIOCDELMULTI = 0x80906932
1239 SIOCDELRT = 0x8038720b
1240 SIOCDIFADDR = 0x80906919
1241 SIOCDIFPHYADDR = 0x80906949
1242 SIOCDLIFADDR = 0x8118691e
1243 SIOCGDRVSPEC = 0xc028697b
1244 SIOCGETPFSYNC = 0xc09069f8
1245 SIOCGETSGCNT = 0xc0207534
1246 SIOCGETVIFCNT = 0xc0287533
1247 SIOCGHIWAT = 0x40047301
1248 SIOCGIFADDR = 0xc0906921
1249 SIOCGIFADDRPREF = 0xc0986920
1250 SIOCGIFALIAS = 0xc040691b
1251 SIOCGIFBRDADDR = 0xc0906923
1252 SIOCGIFCAP = 0xc0206976
1253 SIOCGIFCONF = 0xc0106926
1254 SIOCGIFDATA = 0xc0986985
1255 SIOCGIFDLT = 0xc0906977
1256 SIOCGIFDSTADDR = 0xc0906922
1257 SIOCGIFFLAGS = 0xc0906911
1258 SIOCGIFGENERIC = 0xc090693a
1259 SIOCGIFMEDIA = 0xc0306936
1260 SIOCGIFMETRIC = 0xc0906917
1261 SIOCGIFMTU = 0xc090697e
1262 SIOCGIFNETMASK = 0xc0906925
1263 SIOCGIFPDSTADDR = 0xc0906948
1264 SIOCGIFPSRCADDR = 0xc0906947
1265 SIOCGLIFADDR = 0xc118691d
1266 SIOCGLIFPHYADDR = 0xc118694b
1267 SIOCGLINKSTR = 0xc0286987
1268 SIOCGLOWAT = 0x40047303
1269 SIOCGPGRP = 0x40047309
1270 SIOCGVH = 0xc0906983
1271 SIOCIFCREATE = 0x8090697a
1272 SIOCIFDESTROY = 0x80906979
1273 SIOCIFGCLONERS = 0xc0106978
1274 SIOCINITIFADDR = 0xc0706984
1275 SIOCSDRVSPEC = 0x8028697b
1276 SIOCSETPFSYNC = 0x809069f7
1277 SIOCSHIWAT = 0x80047300
1278 SIOCSIFADDR = 0x8090690c
1279 SIOCSIFADDRPREF = 0x8098691f
1280 SIOCSIFBRDADDR = 0x80906913
1281 SIOCSIFCAP = 0x80206975
1282 SIOCSIFDSTADDR = 0x8090690e
1283 SIOCSIFFLAGS = 0x80906910
1284 SIOCSIFGENERIC = 0x80906939
1285 SIOCSIFMEDIA = 0xc0906935
1286 SIOCSIFMETRIC = 0x80906918
1287 SIOCSIFMTU = 0x8090697f
1288 SIOCSIFNETMASK = 0x80906916
1289 SIOCSIFPHYADDR = 0x80406946
1290 SIOCSLIFPHYADDR = 0x8118694a
1291 SIOCSLINKSTR = 0x80286988
1292 SIOCSLOWAT = 0x80047302
1293 SIOCSPGRP = 0x80047308
1294 SIOCSVH = 0xc0906982
1295 SIOCZIFDATA = 0xc0986986
1296 SOCK_CLOEXEC = 0x10000000
1297 SOCK_DGRAM = 0x2
1298 SOCK_FLAGS_MASK = 0xf0000000
1299 SOCK_NONBLOCK = 0x20000000
1300 SOCK_NOSIGPIPE = 0x40000000
1301 SOCK_RAW = 0x3
1302 SOCK_RDM = 0x4
1303 SOCK_SEQPACKET = 0x5
1304 SOCK_STREAM = 0x1
1305 SOL_SOCKET = 0xffff
1306 SOMAXCONN = 0x80
1307 SO_ACCEPTCONN = 0x2
1308 SO_ACCEPTFILTER = 0x1000
1309 SO_BROADCAST = 0x20
1310 SO_DEBUG = 0x1
1311 SO_DONTROUTE = 0x10
1312 SO_ERROR = 0x1007
1313 SO_KEEPALIVE = 0x8
1314 SO_LINGER = 0x80
1315 SO_NOHEADER = 0x100a
1316 SO_NOSIGPIPE = 0x800
1317 SO_OOBINLINE = 0x100
1318 SO_OVERFLOWED = 0x1009
1319 SO_RCVBUF = 0x1002
1320 SO_RCVLOWAT = 0x1004
1321 SO_RCVTIMEO = 0x100c
1322 SO_REUSEADDR = 0x4
1323 SO_REUSEPORT = 0x200
1324 SO_SNDBUF = 0x1001
1325 SO_SNDLOWAT = 0x1003
1326 SO_SNDTIMEO = 0x100b
1327 SO_TIMESTAMP = 0x2000
1328 SO_TYPE = 0x1008
1329 SO_USELOOPBACK = 0x40
1330 SYSCTL_VERSION = 0x1000000
1331 SYSCTL_VERS_0 = 0x0
1332 SYSCTL_VERS_1 = 0x1000000
1333 SYSCTL_VERS_MASK = 0xff000000
1334 S_ARCH1 = 0x10000
1335 S_ARCH2 = 0x20000
1336 S_BLKSIZE = 0x200
1337 S_IEXEC = 0x40
1338 S_IFBLK = 0x6000
1339 S_IFCHR = 0x2000
1340 S_IFDIR = 0x4000
1341 S_IFIFO = 0x1000
1342 S_IFLNK = 0xa000
1343 S_IFMT = 0xf000
1344 S_IFREG = 0x8000
1345 S_IFSOCK = 0xc000
1346 S_IFWHT = 0xe000
1347 S_IREAD = 0x100
1348 S_IRGRP = 0x20
1349 S_IROTH = 0x4
1350 S_IRUSR = 0x100
1351 S_IRWXG = 0x38
1352 S_IRWXO = 0x7
1353 S_IRWXU = 0x1c0
1354 S_ISGID = 0x400
1355 S_ISTXT = 0x200
1356 S_ISUID = 0x800
1357 S_ISVTX = 0x200
1358 S_IWGRP = 0x10
1359 S_IWOTH = 0x2
1360 S_IWRITE = 0x80
1361 S_IWUSR = 0x80
1362 S_IXGRP = 0x8
1363 S_IXOTH = 0x1
1364 S_IXUSR = 0x40
1365 S_LOGIN_SET = 0x1
1366 TCIFLUSH = 0x1
1367 TCIOFLUSH = 0x3
1368 TCOFLUSH = 0x2
1369 TCP_CONGCTL = 0x20
1370 TCP_KEEPCNT = 0x6
1371 TCP_KEEPIDLE = 0x3
1372 TCP_KEEPINIT = 0x7
1373 TCP_KEEPINTVL = 0x5
1374 TCP_MAXBURST = 0x4
1375 TCP_MAXSEG = 0x2
1376 TCP_MAXWIN = 0xffff
1377 TCP_MAX_WINSHIFT = 0xe
1378 TCP_MD5SIG = 0x10
1379 TCP_MINMSS = 0xd8
1380 TCP_MSS = 0x218
1381 TCP_NODELAY = 0x1
1382 TCSAFLUSH = 0x2
1383 TIOCCBRK = 0x2000747a
1384 TIOCCDTR = 0x20007478
1385 TIOCCONS = 0x80047462
1386 TIOCDCDTIMESTAMP = 0x40107458
1387 TIOCDRAIN = 0x2000745e
1388 TIOCEXCL = 0x2000740d
1389 TIOCEXT = 0x80047460
1390 TIOCFLAG_CDTRCTS = 0x10
1391 TIOCFLAG_CLOCAL = 0x2
1392 TIOCFLAG_CRTSCTS = 0x4
1393 TIOCFLAG_MDMBUF = 0x8
1394 TIOCFLAG_SOFTCAR = 0x1
1395 TIOCFLUSH = 0x80047410
1396 TIOCGETA = 0x402c7413
1397 TIOCGETD = 0x4004741a
1398 TIOCGFLAGS = 0x4004745d
1399 TIOCGLINED = 0x40207442
1400 TIOCGPGRP = 0x40047477
1401 TIOCGQSIZE = 0x40047481
1402 TIOCGRANTPT = 0x20007447
1403 TIOCGSID = 0x40047463
1404 TIOCGSIZE = 0x40087468
1405 TIOCGWINSZ = 0x40087468
1406 TIOCMBIC = 0x8004746b
1407 TIOCMBIS = 0x8004746c
1408 TIOCMGET = 0x4004746a
1409 TIOCMSET = 0x8004746d
1410 TIOCM_CAR = 0x40
1411 TIOCM_CD = 0x40
1412 TIOCM_CTS = 0x20
1413 TIOCM_DSR = 0x100
1414 TIOCM_DTR = 0x2
1415 TIOCM_LE = 0x1
1416 TIOCM_RI = 0x80
1417 TIOCM_RNG = 0x80
1418 TIOCM_RTS = 0x4
1419 TIOCM_SR = 0x10
1420 TIOCM_ST = 0x8
1421 TIOCNOTTY = 0x20007471
1422 TIOCNXCL = 0x2000740e
1423 TIOCOUTQ = 0x40047473
1424 TIOCPKT = 0x80047470
1425 TIOCPKT_DATA = 0x0
1426 TIOCPKT_DOSTOP = 0x20
1427 TIOCPKT_FLUSHREAD = 0x1
1428 TIOCPKT_FLUSHWRITE = 0x2
1429 TIOCPKT_IOCTL = 0x40
1430 TIOCPKT_NOSTOP = 0x10
1431 TIOCPKT_START = 0x8
1432 TIOCPKT_STOP = 0x4
1433 TIOCPTMGET = 0x40287446
1434 TIOCPTSNAME = 0x40287448
1435 TIOCRCVFRAME = 0x80087445
1436 TIOCREMOTE = 0x80047469
1437 TIOCSBRK = 0x2000747b
1438 TIOCSCTTY = 0x20007461
1439 TIOCSDTR = 0x20007479
1440 TIOCSETA = 0x802c7414
1441 TIOCSETAF = 0x802c7416
1442 TIOCSETAW = 0x802c7415
1443 TIOCSETD = 0x8004741b
1444 TIOCSFLAGS = 0x8004745c
1445 TIOCSIG = 0x2000745f
1446 TIOCSLINED = 0x80207443
1447 TIOCSPGRP = 0x80047476
1448 TIOCSQSIZE = 0x80047480
1449 TIOCSSIZE = 0x80087467
1450 TIOCSTART = 0x2000746e
1451 TIOCSTAT = 0x80047465
1452 TIOCSTI = 0x80017472
1453 TIOCSTOP = 0x2000746f
1454 TIOCSWINSZ = 0x80087467
1455 TIOCUCNTL = 0x80047466
1456 TIOCXMTFRAME = 0x80087444
1457 TOSTOP = 0x400000
1458 VDISCARD = 0xf
1459 VDSUSP = 0xb
1460 VEOF = 0x0
1461 VEOL = 0x1
1462 VEOL2 = 0x2
1463 VERASE = 0x3
1464 VINTR = 0x8
1465 VKILL = 0x5
1466 VLNEXT = 0xe
1467 VMIN = 0x10
1468 VQUIT = 0x9
1469 VREPRINT = 0x6
1470 VSTART = 0xc
1471 VSTATUS = 0x12
1472 VSTOP = 0xd
1473 VSUSP = 0xa
1474 VTIME = 0x11
1475 VWERASE = 0x4
1476 WALL = 0x8
1477 WALLSIG = 0x8
1478 WALTSIG = 0x4
1479 WCLONE = 0x4
1480 WCOREFLAG = 0x80
1481 WNOHANG = 0x1
1482 WNOWAIT = 0x10000
1483 WNOZOMBIE = 0x20000
1484 WOPTSCHECKED = 0x40000
1485 WSTOPPED = 0x7f
1486 WUNTRACED = 0x2
1487 )
1488
1489
1490 const (
1491 E2BIG = syscall.Errno(0x7)
1492 EACCES = syscall.Errno(0xd)
1493 EADDRINUSE = syscall.Errno(0x30)
1494 EADDRNOTAVAIL = syscall.Errno(0x31)
1495 EAFNOSUPPORT = syscall.Errno(0x2f)
1496 EAGAIN = syscall.Errno(0x23)
1497 EALREADY = syscall.Errno(0x25)
1498 EAUTH = syscall.Errno(0x50)
1499 EBADF = syscall.Errno(0x9)
1500 EBADMSG = syscall.Errno(0x58)
1501 EBADRPC = syscall.Errno(0x48)
1502 EBUSY = syscall.Errno(0x10)
1503 ECANCELED = syscall.Errno(0x57)
1504 ECHILD = syscall.Errno(0xa)
1505 ECONNABORTED = syscall.Errno(0x35)
1506 ECONNREFUSED = syscall.Errno(0x3d)
1507 ECONNRESET = syscall.Errno(0x36)
1508 EDEADLK = syscall.Errno(0xb)
1509 EDESTADDRREQ = syscall.Errno(0x27)
1510 EDOM = syscall.Errno(0x21)
1511 EDQUOT = syscall.Errno(0x45)
1512 EEXIST = syscall.Errno(0x11)
1513 EFAULT = syscall.Errno(0xe)
1514 EFBIG = syscall.Errno(0x1b)
1515 EFTYPE = syscall.Errno(0x4f)
1516 EHOSTDOWN = syscall.Errno(0x40)
1517 EHOSTUNREACH = syscall.Errno(0x41)
1518 EIDRM = syscall.Errno(0x52)
1519 EILSEQ = syscall.Errno(0x55)
1520 EINPROGRESS = syscall.Errno(0x24)
1521 EINTR = syscall.Errno(0x4)
1522 EINVAL = syscall.Errno(0x16)
1523 EIO = syscall.Errno(0x5)
1524 EISCONN = syscall.Errno(0x38)
1525 EISDIR = syscall.Errno(0x15)
1526 ELAST = syscall.Errno(0x60)
1527 ELOOP = syscall.Errno(0x3e)
1528 EMFILE = syscall.Errno(0x18)
1529 EMLINK = syscall.Errno(0x1f)
1530 EMSGSIZE = syscall.Errno(0x28)
1531 EMULTIHOP = syscall.Errno(0x5e)
1532 ENAMETOOLONG = syscall.Errno(0x3f)
1533 ENEEDAUTH = syscall.Errno(0x51)
1534 ENETDOWN = syscall.Errno(0x32)
1535 ENETRESET = syscall.Errno(0x34)
1536 ENETUNREACH = syscall.Errno(0x33)
1537 ENFILE = syscall.Errno(0x17)
1538 ENOATTR = syscall.Errno(0x5d)
1539 ENOBUFS = syscall.Errno(0x37)
1540 ENODATA = syscall.Errno(0x59)
1541 ENODEV = syscall.Errno(0x13)
1542 ENOENT = syscall.Errno(0x2)
1543 ENOEXEC = syscall.Errno(0x8)
1544 ENOLCK = syscall.Errno(0x4d)
1545 ENOLINK = syscall.Errno(0x5f)
1546 ENOMEM = syscall.Errno(0xc)
1547 ENOMSG = syscall.Errno(0x53)
1548 ENOPROTOOPT = syscall.Errno(0x2a)
1549 ENOSPC = syscall.Errno(0x1c)
1550 ENOSR = syscall.Errno(0x5a)
1551 ENOSTR = syscall.Errno(0x5b)
1552 ENOSYS = syscall.Errno(0x4e)
1553 ENOTBLK = syscall.Errno(0xf)
1554 ENOTCONN = syscall.Errno(0x39)
1555 ENOTDIR = syscall.Errno(0x14)
1556 ENOTEMPTY = syscall.Errno(0x42)
1557 ENOTSOCK = syscall.Errno(0x26)
1558 ENOTSUP = syscall.Errno(0x56)
1559 ENOTTY = syscall.Errno(0x19)
1560 ENXIO = syscall.Errno(0x6)
1561 EOPNOTSUPP = syscall.Errno(0x2d)
1562 EOVERFLOW = syscall.Errno(0x54)
1563 EPERM = syscall.Errno(0x1)
1564 EPFNOSUPPORT = syscall.Errno(0x2e)
1565 EPIPE = syscall.Errno(0x20)
1566 EPROCLIM = syscall.Errno(0x43)
1567 EPROCUNAVAIL = syscall.Errno(0x4c)
1568 EPROGMISMATCH = syscall.Errno(0x4b)
1569 EPROGUNAVAIL = syscall.Errno(0x4a)
1570 EPROTO = syscall.Errno(0x60)
1571 EPROTONOSUPPORT = syscall.Errno(0x2b)
1572 EPROTOTYPE = syscall.Errno(0x29)
1573 ERANGE = syscall.Errno(0x22)
1574 EREMOTE = syscall.Errno(0x47)
1575 EROFS = syscall.Errno(0x1e)
1576 ERPCMISMATCH = syscall.Errno(0x49)
1577 ESHUTDOWN = syscall.Errno(0x3a)
1578 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1579 ESPIPE = syscall.Errno(0x1d)
1580 ESRCH = syscall.Errno(0x3)
1581 ESTALE = syscall.Errno(0x46)
1582 ETIME = syscall.Errno(0x5c)
1583 ETIMEDOUT = syscall.Errno(0x3c)
1584 ETOOMANYREFS = syscall.Errno(0x3b)
1585 ETXTBSY = syscall.Errno(0x1a)
1586 EUSERS = syscall.Errno(0x44)
1587 EWOULDBLOCK = syscall.Errno(0x23)
1588 EXDEV = syscall.Errno(0x12)
1589 )
1590
1591
1592 const (
1593 SIGABRT = syscall.Signal(0x6)
1594 SIGALRM = syscall.Signal(0xe)
1595 SIGBUS = syscall.Signal(0xa)
1596 SIGCHLD = syscall.Signal(0x14)
1597 SIGCONT = syscall.Signal(0x13)
1598 SIGEMT = syscall.Signal(0x7)
1599 SIGFPE = syscall.Signal(0x8)
1600 SIGHUP = syscall.Signal(0x1)
1601 SIGILL = syscall.Signal(0x4)
1602 SIGINFO = syscall.Signal(0x1d)
1603 SIGINT = syscall.Signal(0x2)
1604 SIGIO = syscall.Signal(0x17)
1605 SIGIOT = syscall.Signal(0x6)
1606 SIGKILL = syscall.Signal(0x9)
1607 SIGPIPE = syscall.Signal(0xd)
1608 SIGPROF = syscall.Signal(0x1b)
1609 SIGPWR = syscall.Signal(0x20)
1610 SIGQUIT = syscall.Signal(0x3)
1611 SIGSEGV = syscall.Signal(0xb)
1612 SIGSTOP = syscall.Signal(0x11)
1613 SIGSYS = syscall.Signal(0xc)
1614 SIGTERM = syscall.Signal(0xf)
1615 SIGTRAP = syscall.Signal(0x5)
1616 SIGTSTP = syscall.Signal(0x12)
1617 SIGTTIN = syscall.Signal(0x15)
1618 SIGTTOU = syscall.Signal(0x16)
1619 SIGURG = syscall.Signal(0x10)
1620 SIGUSR1 = syscall.Signal(0x1e)
1621 SIGUSR2 = syscall.Signal(0x1f)
1622 SIGVTALRM = syscall.Signal(0x1a)
1623 SIGWINCH = syscall.Signal(0x1c)
1624 SIGXCPU = syscall.Signal(0x18)
1625 SIGXFSZ = syscall.Signal(0x19)
1626 )
1627
1628
1629 var errorList = [...]struct {
1630 num syscall.Errno
1631 name string
1632 desc string
1633 }{
1634 {1, "EPERM", "operation not permitted"},
1635 {2, "ENOENT", "no such file or directory"},
1636 {3, "ESRCH", "no such process"},
1637 {4, "EINTR", "interrupted system call"},
1638 {5, "EIO", "input/output error"},
1639 {6, "ENXIO", "device not configured"},
1640 {7, "E2BIG", "argument list too long"},
1641 {8, "ENOEXEC", "exec format error"},
1642 {9, "EBADF", "bad file descriptor"},
1643 {10, "ECHILD", "no child processes"},
1644 {11, "EDEADLK", "resource deadlock avoided"},
1645 {12, "ENOMEM", "cannot allocate memory"},
1646 {13, "EACCES", "permission denied"},
1647 {14, "EFAULT", "bad address"},
1648 {15, "ENOTBLK", "block device required"},
1649 {16, "EBUSY", "device busy"},
1650 {17, "EEXIST", "file exists"},
1651 {18, "EXDEV", "cross-device link"},
1652 {19, "ENODEV", "operation not supported by device"},
1653 {20, "ENOTDIR", "not a directory"},
1654 {21, "EISDIR", "is a directory"},
1655 {22, "EINVAL", "invalid argument"},
1656 {23, "ENFILE", "too many open files in system"},
1657 {24, "EMFILE", "too many open files"},
1658 {25, "ENOTTY", "inappropriate ioctl for device"},
1659 {26, "ETXTBSY", "text file busy"},
1660 {27, "EFBIG", "file too large"},
1661 {28, "ENOSPC", "no space left on device"},
1662 {29, "ESPIPE", "illegal seek"},
1663 {30, "EROFS", "read-only file system"},
1664 {31, "EMLINK", "too many links"},
1665 {32, "EPIPE", "broken pipe"},
1666 {33, "EDOM", "numerical argument out of domain"},
1667 {34, "ERANGE", "result too large or too small"},
1668 {35, "EAGAIN", "resource temporarily unavailable"},
1669 {36, "EINPROGRESS", "operation now in progress"},
1670 {37, "EALREADY", "operation already in progress"},
1671 {38, "ENOTSOCK", "socket operation on non-socket"},
1672 {39, "EDESTADDRREQ", "destination address required"},
1673 {40, "EMSGSIZE", "message too long"},
1674 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1675 {42, "ENOPROTOOPT", "protocol option not available"},
1676 {43, "EPROTONOSUPPORT", "protocol not supported"},
1677 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1678 {45, "EOPNOTSUPP", "operation not supported"},
1679 {46, "EPFNOSUPPORT", "protocol family not supported"},
1680 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1681 {48, "EADDRINUSE", "address already in use"},
1682 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1683 {50, "ENETDOWN", "network is down"},
1684 {51, "ENETUNREACH", "network is unreachable"},
1685 {52, "ENETRESET", "network dropped connection on reset"},
1686 {53, "ECONNABORTED", "software caused connection abort"},
1687 {54, "ECONNRESET", "connection reset by peer"},
1688 {55, "ENOBUFS", "no buffer space available"},
1689 {56, "EISCONN", "socket is already connected"},
1690 {57, "ENOTCONN", "socket is not connected"},
1691 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1692 {59, "ETOOMANYREFS", "too many references: can't splice"},
1693 {60, "ETIMEDOUT", "connection timed out"},
1694 {61, "ECONNREFUSED", "connection refused"},
1695 {62, "ELOOP", "too many levels of symbolic links"},
1696 {63, "ENAMETOOLONG", "file name too long"},
1697 {64, "EHOSTDOWN", "host is down"},
1698 {65, "EHOSTUNREACH", "no route to host"},
1699 {66, "ENOTEMPTY", "directory not empty"},
1700 {67, "EPROCLIM", "too many processes"},
1701 {68, "EUSERS", "too many users"},
1702 {69, "EDQUOT", "disc quota exceeded"},
1703 {70, "ESTALE", "stale NFS file handle"},
1704 {71, "EREMOTE", "too many levels of remote in path"},
1705 {72, "EBADRPC", "RPC struct is bad"},
1706 {73, "ERPCMISMATCH", "RPC version wrong"},
1707 {74, "EPROGUNAVAIL", "RPC prog. not avail"},
1708 {75, "EPROGMISMATCH", "program version wrong"},
1709 {76, "EPROCUNAVAIL", "bad procedure for program"},
1710 {77, "ENOLCK", "no locks available"},
1711 {78, "ENOSYS", "function not implemented"},
1712 {79, "EFTYPE", "inappropriate file type or format"},
1713 {80, "EAUTH", "authentication error"},
1714 {81, "ENEEDAUTH", "need authenticator"},
1715 {82, "EIDRM", "identifier removed"},
1716 {83, "ENOMSG", "no message of desired type"},
1717 {84, "EOVERFLOW", "value too large to be stored in data type"},
1718 {85, "EILSEQ", "illegal byte sequence"},
1719 {86, "ENOTSUP", "not supported"},
1720 {87, "ECANCELED", "operation Canceled"},
1721 {88, "EBADMSG", "bad or Corrupt message"},
1722 {89, "ENODATA", "no message available"},
1723 {90, "ENOSR", "no STREAM resources"},
1724 {91, "ENOSTR", "not a STREAM"},
1725 {92, "ETIME", "STREAM ioctl timeout"},
1726 {93, "ENOATTR", "attribute not found"},
1727 {94, "EMULTIHOP", "multihop attempted"},
1728 {95, "ENOLINK", "link has been severed"},
1729 {96, "ELAST", "protocol error"},
1730 }
1731
1732
1733 var signalList = [...]struct {
1734 num syscall.Signal
1735 name string
1736 desc string
1737 }{
1738 {1, "SIGHUP", "hangup"},
1739 {2, "SIGINT", "interrupt"},
1740 {3, "SIGQUIT", "quit"},
1741 {4, "SIGILL", "illegal instruction"},
1742 {5, "SIGTRAP", "trace/BPT trap"},
1743 {6, "SIGIOT", "abort trap"},
1744 {7, "SIGEMT", "EMT trap"},
1745 {8, "SIGFPE", "floating point exception"},
1746 {9, "SIGKILL", "killed"},
1747 {10, "SIGBUS", "bus error"},
1748 {11, "SIGSEGV", "segmentation fault"},
1749 {12, "SIGSYS", "bad system call"},
1750 {13, "SIGPIPE", "broken pipe"},
1751 {14, "SIGALRM", "alarm clock"},
1752 {15, "SIGTERM", "terminated"},
1753 {16, "SIGURG", "urgent I/O condition"},
1754 {17, "SIGSTOP", "stopped (signal)"},
1755 {18, "SIGTSTP", "stopped"},
1756 {19, "SIGCONT", "continued"},
1757 {20, "SIGCHLD", "child exited"},
1758 {21, "SIGTTIN", "stopped (tty input)"},
1759 {22, "SIGTTOU", "stopped (tty output)"},
1760 {23, "SIGIO", "I/O possible"},
1761 {24, "SIGXCPU", "cputime limit exceeded"},
1762 {25, "SIGXFSZ", "filesize limit exceeded"},
1763 {26, "SIGVTALRM", "virtual timer expired"},
1764 {27, "SIGPROF", "profiling timer expired"},
1765 {28, "SIGWINCH", "window size changes"},
1766 {29, "SIGINFO", "information request"},
1767 {30, "SIGUSR1", "user defined signal 1"},
1768 {31, "SIGUSR2", "user defined signal 2"},
1769 {32, "SIGPWR", "power fail/restart"},
1770 }
1771
View as plain text