1
2
3
4
5
6
7
8
9 package unix
10
11 import "syscall"
12
13 const (
14 AF_802 = 0x12
15 AF_APPLETALK = 0x10
16 AF_CCITT = 0xa
17 AF_CHAOS = 0x5
18 AF_DATAKIT = 0x9
19 AF_DECnet = 0xc
20 AF_DLI = 0xd
21 AF_ECMA = 0x8
22 AF_FILE = 0x1
23 AF_GOSIP = 0x16
24 AF_HYLINK = 0xf
25 AF_IMPLINK = 0x3
26 AF_INET = 0x2
27 AF_INET6 = 0x1a
28 AF_INET_OFFLOAD = 0x1e
29 AF_IPX = 0x17
30 AF_KEY = 0x1b
31 AF_LAT = 0xe
32 AF_LINK = 0x19
33 AF_LOCAL = 0x1
34 AF_MAX = 0x20
35 AF_NBS = 0x7
36 AF_NCA = 0x1c
37 AF_NIT = 0x11
38 AF_NS = 0x6
39 AF_OSI = 0x13
40 AF_OSINET = 0x15
41 AF_PACKET = 0x20
42 AF_POLICY = 0x1d
43 AF_PUP = 0x4
44 AF_ROUTE = 0x18
45 AF_SNA = 0xb
46 AF_TRILL = 0x1f
47 AF_UNIX = 0x1
48 AF_UNSPEC = 0x0
49 AF_X25 = 0x14
50 ARPHRD_ARCNET = 0x7
51 ARPHRD_ATM = 0x10
52 ARPHRD_AX25 = 0x3
53 ARPHRD_CHAOS = 0x5
54 ARPHRD_EETHER = 0x2
55 ARPHRD_ETHER = 0x1
56 ARPHRD_FC = 0x12
57 ARPHRD_FRAME = 0xf
58 ARPHRD_HDLC = 0x11
59 ARPHRD_IB = 0x20
60 ARPHRD_IEEE802 = 0x6
61 ARPHRD_IPATM = 0x13
62 ARPHRD_METRICOM = 0x17
63 ARPHRD_TUNNEL = 0x1f
64 B0 = 0x0
65 B110 = 0x3
66 B115200 = 0x12
67 B1200 = 0x9
68 B134 = 0x4
69 B150 = 0x5
70 B153600 = 0x13
71 B1800 = 0xa
72 B19200 = 0xe
73 B200 = 0x6
74 B230400 = 0x14
75 B2400 = 0xb
76 B300 = 0x7
77 B307200 = 0x15
78 B38400 = 0xf
79 B460800 = 0x16
80 B4800 = 0xc
81 B50 = 0x1
82 B57600 = 0x10
83 B600 = 0x8
84 B75 = 0x2
85 B76800 = 0x11
86 B921600 = 0x17
87 B9600 = 0xd
88 BIOCFLUSH = 0x20004268
89 BIOCGBLEN = 0x40044266
90 BIOCGDLT = 0x4004426a
91 BIOCGDLTLIST = -0x3fefbd89
92 BIOCGDLTLIST32 = -0x3ff7bd89
93 BIOCGETIF = 0x4020426b
94 BIOCGETLIF = 0x4078426b
95 BIOCGHDRCMPLT = 0x40044274
96 BIOCGRTIMEOUT = 0x4010427b
97 BIOCGRTIMEOUT32 = 0x4008427b
98 BIOCGSEESENT = 0x40044278
99 BIOCGSTATS = 0x4080426f
100 BIOCGSTATSOLD = 0x4008426f
101 BIOCIMMEDIATE = -0x7ffbbd90
102 BIOCPROMISC = 0x20004269
103 BIOCSBLEN = -0x3ffbbd9a
104 BIOCSDLT = -0x7ffbbd8a
105 BIOCSETF = -0x7fefbd99
106 BIOCSETF32 = -0x7ff7bd99
107 BIOCSETIF = -0x7fdfbd94
108 BIOCSETLIF = -0x7f87bd94
109 BIOCSHDRCMPLT = -0x7ffbbd8b
110 BIOCSRTIMEOUT = -0x7fefbd86
111 BIOCSRTIMEOUT32 = -0x7ff7bd86
112 BIOCSSEESENT = -0x7ffbbd87
113 BIOCSTCPF = -0x7fefbd8e
114 BIOCSUDPF = -0x7fefbd8d
115 BIOCVERSION = 0x40044271
116 BPF_A = 0x10
117 BPF_ABS = 0x20
118 BPF_ADD = 0x0
119 BPF_ALIGNMENT = 0x4
120 BPF_ALU = 0x4
121 BPF_AND = 0x50
122 BPF_B = 0x10
123 BPF_DFLTBUFSIZE = 0x100000
124 BPF_DIV = 0x30
125 BPF_H = 0x8
126 BPF_IMM = 0x0
127 BPF_IND = 0x40
128 BPF_JA = 0x0
129 BPF_JEQ = 0x10
130 BPF_JGE = 0x30
131 BPF_JGT = 0x20
132 BPF_JMP = 0x5
133 BPF_JSET = 0x40
134 BPF_K = 0x0
135 BPF_LD = 0x0
136 BPF_LDX = 0x1
137 BPF_LEN = 0x80
138 BPF_LSH = 0x60
139 BPF_MAJOR_VERSION = 0x1
140 BPF_MAXBUFSIZE = 0x1000000
141 BPF_MAXINSNS = 0x200
142 BPF_MEM = 0x60
143 BPF_MEMWORDS = 0x10
144 BPF_MINBUFSIZE = 0x20
145 BPF_MINOR_VERSION = 0x1
146 BPF_MISC = 0x7
147 BPF_MSH = 0xa0
148 BPF_MUL = 0x20
149 BPF_NEG = 0x80
150 BPF_OR = 0x40
151 BPF_RELEASE = 0x30bb6
152 BPF_RET = 0x6
153 BPF_RSH = 0x70
154 BPF_ST = 0x2
155 BPF_STX = 0x3
156 BPF_SUB = 0x10
157 BPF_TAX = 0x0
158 BPF_TXA = 0x80
159 BPF_W = 0x0
160 BPF_X = 0x8
161 BRKINT = 0x2
162 BS0 = 0x0
163 BS1 = 0x2000
164 BSDLY = 0x2000
165 CBAUD = 0xf
166 CFLUSH = 0xf
167 CIBAUD = 0xf0000
168 CLOCAL = 0x800
169 CLOCK_HIGHRES = 0x4
170 CLOCK_LEVEL = 0xa
171 CLOCK_MONOTONIC = 0x4
172 CLOCK_PROCESS_CPUTIME_ID = 0x5
173 CLOCK_PROF = 0x2
174 CLOCK_REALTIME = 0x3
175 CLOCK_THREAD_CPUTIME_ID = 0x2
176 CLOCK_VIRTUAL = 0x1
177 CR0 = 0x0
178 CR1 = 0x200
179 CR2 = 0x400
180 CR3 = 0x600
181 CRDLY = 0x600
182 CREAD = 0x80
183 CRTSCTS = 0x80000000
184 CS5 = 0x0
185 CS6 = 0x10
186 CS7 = 0x20
187 CS8 = 0x30
188 CSIZE = 0x30
189 CSTART = 0x11
190 CSTATUS = 0x14
191 CSTOP = 0x13
192 CSTOPB = 0x40
193 CSUSP = 0x1a
194 CSWTCH = 0x1a
195 DIOC = 0x6400
196 DIOCGETB = 0x6402
197 DIOCGETC = 0x6401
198 DIOCGETP = 0x6408
199 DIOCSETE = 0x6403
200 DIOCSETP = 0x6409
201 DLT_AIRONET_HEADER = 0x78
202 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
203 DLT_ARCNET = 0x7
204 DLT_ARCNET_LINUX = 0x81
205 DLT_ATM_CLIP = 0x13
206 DLT_ATM_RFC1483 = 0xb
207 DLT_AURORA = 0x7e
208 DLT_AX25 = 0x3
209 DLT_BACNET_MS_TP = 0xa5
210 DLT_CHAOS = 0x5
211 DLT_CISCO_IOS = 0x76
212 DLT_C_HDLC = 0x68
213 DLT_DOCSIS = 0x8f
214 DLT_ECONET = 0x73
215 DLT_EN10MB = 0x1
216 DLT_EN3MB = 0x2
217 DLT_ENC = 0x6d
218 DLT_ERF_ETH = 0xaf
219 DLT_ERF_POS = 0xb0
220 DLT_FDDI = 0xa
221 DLT_FRELAY = 0x6b
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_HDLC = 0x10
228 DLT_HHDLC = 0x79
229 DLT_HIPPI = 0xf
230 DLT_IBM_SN = 0x92
231 DLT_IBM_SP = 0x91
232 DLT_IEEE802 = 0x6
233 DLT_IEEE802_11 = 0x69
234 DLT_IEEE802_11_RADIO = 0x7f
235 DLT_IEEE802_11_RADIO_AVS = 0xa3
236 DLT_IPNET = 0xe2
237 DLT_IPOIB = 0xa2
238 DLT_IP_OVER_FC = 0x7a
239 DLT_JUNIPER_ATM1 = 0x89
240 DLT_JUNIPER_ATM2 = 0x87
241 DLT_JUNIPER_CHDLC = 0xb5
242 DLT_JUNIPER_ES = 0x84
243 DLT_JUNIPER_ETHER = 0xb2
244 DLT_JUNIPER_FRELAY = 0xb4
245 DLT_JUNIPER_GGSN = 0x85
246 DLT_JUNIPER_MFR = 0x86
247 DLT_JUNIPER_MLFR = 0x83
248 DLT_JUNIPER_MLPPP = 0x82
249 DLT_JUNIPER_MONITOR = 0xa4
250 DLT_JUNIPER_PIC_PEER = 0xae
251 DLT_JUNIPER_PPP = 0xb3
252 DLT_JUNIPER_PPPOE = 0xa7
253 DLT_JUNIPER_PPPOE_ATM = 0xa8
254 DLT_JUNIPER_SERVICES = 0x88
255 DLT_LINUX_IRDA = 0x90
256 DLT_LINUX_LAPD = 0xb1
257 DLT_LINUX_SLL = 0x71
258 DLT_LOOP = 0x6c
259 DLT_LTALK = 0x72
260 DLT_MTP2 = 0x8c
261 DLT_MTP2_WITH_PHDR = 0x8b
262 DLT_MTP3 = 0x8d
263 DLT_NULL = 0x0
264 DLT_PCI_EXP = 0x7d
265 DLT_PFLOG = 0x75
266 DLT_PFSYNC = 0x12
267 DLT_PPP = 0x9
268 DLT_PPP_BSDOS = 0xe
269 DLT_PPP_PPPD = 0xa6
270 DLT_PRISM_HEADER = 0x77
271 DLT_PRONET = 0x4
272 DLT_RAW = 0xc
273 DLT_RAWAF_MASK = 0x2240000
274 DLT_RIO = 0x7c
275 DLT_SCCP = 0x8e
276 DLT_SLIP = 0x8
277 DLT_SLIP_BSDOS = 0xd
278 DLT_SUNATM = 0x7b
279 DLT_SYMANTEC_FIREWALL = 0x63
280 DLT_TZSP = 0x80
281 ECHO = 0x8
282 ECHOCTL = 0x200
283 ECHOE = 0x10
284 ECHOK = 0x20
285 ECHOKE = 0x800
286 ECHONL = 0x40
287 ECHOPRT = 0x400
288 EMPTY_SET = 0x0
289 EMT_CPCOVF = 0x1
290 EQUALITY_CHECK = 0x0
291 EXTA = 0xe
292 EXTB = 0xf
293 FD_CLOEXEC = 0x1
294 FD_NFDBITS = 0x40
295 FD_SETSIZE = 0x10000
296 FF0 = 0x0
297 FF1 = 0x8000
298 FFDLY = 0x8000
299 FIORDCHK = 0x6603
300 FLUSHALL = 0x1
301 FLUSHDATA = 0x0
302 FLUSHO = 0x2000
303 F_ALLOCSP = 0xa
304 F_ALLOCSP64 = 0xa
305 F_BADFD = 0x2e
306 F_BLKSIZE = 0x13
307 F_BLOCKS = 0x12
308 F_CHKFL = 0x8
309 F_COMPAT = 0x8
310 F_DUP2FD = 0x9
311 F_DUP2FD_CLOEXEC = 0x24
312 F_DUPFD = 0x0
313 F_DUPFD_CLOEXEC = 0x25
314 F_FLOCK = 0x35
315 F_FLOCK64 = 0x35
316 F_FLOCKW = 0x36
317 F_FLOCKW64 = 0x36
318 F_FREESP = 0xb
319 F_FREESP64 = 0xb
320 F_GETFD = 0x1
321 F_GETFL = 0x3
322 F_GETLK = 0xe
323 F_GETLK64 = 0xe
324 F_GETOWN = 0x17
325 F_GETXFL = 0x2d
326 F_HASREMOTELOCKS = 0x1a
327 F_ISSTREAM = 0xd
328 F_MANDDNY = 0x10
329 F_MDACC = 0x20
330 F_NODNY = 0x0
331 F_NPRIV = 0x10
332 F_OFD_GETLK = 0x2f
333 F_OFD_GETLK64 = 0x2f
334 F_OFD_SETLK = 0x30
335 F_OFD_SETLK64 = 0x30
336 F_OFD_SETLKW = 0x31
337 F_OFD_SETLKW64 = 0x31
338 F_PRIV = 0xf
339 F_QUOTACTL = 0x11
340 F_RDACC = 0x1
341 F_RDDNY = 0x1
342 F_RDLCK = 0x1
343 F_REVOKE = 0x19
344 F_RMACC = 0x4
345 F_RMDNY = 0x4
346 F_RWACC = 0x3
347 F_RWDNY = 0x3
348 F_SETFD = 0x2
349 F_SETFL = 0x4
350 F_SETLK = 0x6
351 F_SETLK64 = 0x6
352 F_SETLK64_NBMAND = 0x2a
353 F_SETLKW = 0x7
354 F_SETLKW64 = 0x7
355 F_SETLK_NBMAND = 0x2a
356 F_SETOWN = 0x18
357 F_SHARE = 0x28
358 F_SHARE_NBMAND = 0x2b
359 F_UNLCK = 0x3
360 F_UNLKSYS = 0x4
361 F_UNSHARE = 0x29
362 F_WRACC = 0x2
363 F_WRDNY = 0x2
364 F_WRLCK = 0x2
365 HUPCL = 0x400
366 IBSHIFT = 0x10
367 ICANON = 0x2
368 ICMP6_FILTER = 0x1
369 ICRNL = 0x100
370 IEXTEN = 0x8000
371 IFF_ADDRCONF = 0x80000
372 IFF_ALLMULTI = 0x200
373 IFF_ANYCAST = 0x400000
374 IFF_BROADCAST = 0x2
375 IFF_CANTCHANGE = 0x7f203003b5a
376 IFF_COS_ENABLED = 0x200000000
377 IFF_DEBUG = 0x4
378 IFF_DEPRECATED = 0x40000
379 IFF_DHCPRUNNING = 0x4000
380 IFF_DUPLICATE = 0x4000000000
381 IFF_FAILED = 0x10000000
382 IFF_FIXEDMTU = 0x1000000000
383 IFF_INACTIVE = 0x40000000
384 IFF_INTELLIGENT = 0x400
385 IFF_IPMP = 0x8000000000
386 IFF_IPMP_CANTCHANGE = 0x10000000
387 IFF_IPMP_INVALID = 0x1ec200080
388 IFF_IPV4 = 0x1000000
389 IFF_IPV6 = 0x2000000
390 IFF_L3PROTECT = 0x40000000000
391 IFF_LOOPBACK = 0x8
392 IFF_MULTICAST = 0x800
393 IFF_MULTI_BCAST = 0x1000
394 IFF_NOACCEPT = 0x4000000
395 IFF_NOARP = 0x80
396 IFF_NOFAILOVER = 0x8000000
397 IFF_NOLINKLOCAL = 0x20000000000
398 IFF_NOLOCAL = 0x20000
399 IFF_NONUD = 0x200000
400 IFF_NORTEXCH = 0x800000
401 IFF_NOTRAILERS = 0x20
402 IFF_NOXMIT = 0x10000
403 IFF_OFFLINE = 0x80000000
404 IFF_POINTOPOINT = 0x10
405 IFF_PREFERRED = 0x400000000
406 IFF_PRIVATE = 0x8000
407 IFF_PROMISC = 0x100
408 IFF_ROUTER = 0x100000
409 IFF_RUNNING = 0x40
410 IFF_STANDBY = 0x20000000
411 IFF_TEMPORARY = 0x800000000
412 IFF_UNNUMBERED = 0x2000
413 IFF_UP = 0x1
414 IFF_VIRTUAL = 0x2000000000
415 IFF_VRRP = 0x10000000000
416 IFF_XRESOLV = 0x100000000
417 IFNAMSIZ = 0x10
418 IFT_1822 = 0x2
419 IFT_6TO4 = 0xca
420 IFT_AAL5 = 0x31
421 IFT_ARCNET = 0x23
422 IFT_ARCNETPLUS = 0x24
423 IFT_ATM = 0x25
424 IFT_CEPT = 0x13
425 IFT_DS3 = 0x1e
426 IFT_EON = 0x19
427 IFT_ETHER = 0x6
428 IFT_FDDI = 0xf
429 IFT_FRELAY = 0x20
430 IFT_FRELAYDCE = 0x2c
431 IFT_HDH1822 = 0x3
432 IFT_HIPPI = 0x2f
433 IFT_HSSI = 0x2e
434 IFT_HY = 0xe
435 IFT_IB = 0xc7
436 IFT_IPV4 = 0xc8
437 IFT_IPV6 = 0xc9
438 IFT_ISDNBASIC = 0x14
439 IFT_ISDNPRIMARY = 0x15
440 IFT_ISO88022LLC = 0x29
441 IFT_ISO88023 = 0x7
442 IFT_ISO88024 = 0x8
443 IFT_ISO88025 = 0x9
444 IFT_ISO88026 = 0xa
445 IFT_LAPB = 0x10
446 IFT_LOCALTALK = 0x2a
447 IFT_LOOP = 0x18
448 IFT_MIOX25 = 0x26
449 IFT_MODEM = 0x30
450 IFT_NSIP = 0x1b
451 IFT_OTHER = 0x1
452 IFT_P10 = 0xc
453 IFT_P80 = 0xd
454 IFT_PARA = 0x22
455 IFT_PPP = 0x17
456 IFT_PROPMUX = 0x36
457 IFT_PROPVIRTUAL = 0x35
458 IFT_PTPSERIAL = 0x16
459 IFT_RS232 = 0x21
460 IFT_SDLC = 0x11
461 IFT_SIP = 0x1f
462 IFT_SLIP = 0x1c
463 IFT_SMDSDXI = 0x2b
464 IFT_SMDSICIP = 0x34
465 IFT_SONET = 0x27
466 IFT_SONETPATH = 0x32
467 IFT_SONETVT = 0x33
468 IFT_STARLAN = 0xb
469 IFT_T1 = 0x12
470 IFT_ULTRA = 0x1d
471 IFT_V35 = 0x2d
472 IFT_X25 = 0x5
473 IFT_X25DDN = 0x4
474 IFT_X25PLE = 0x28
475 IFT_XETHER = 0x1a
476 IGNBRK = 0x1
477 IGNCR = 0x80
478 IGNPAR = 0x4
479 IMAXBEL = 0x2000
480 INLCR = 0x40
481 INPCK = 0x10
482 IN_AUTOCONF_MASK = 0xffff0000
483 IN_AUTOCONF_NET = 0xa9fe0000
484 IN_CLASSA_HOST = 0xffffff
485 IN_CLASSA_MAX = 0x80
486 IN_CLASSA_NET = 0xff000000
487 IN_CLASSA_NSHIFT = 0x18
488 IN_CLASSB_HOST = 0xffff
489 IN_CLASSB_MAX = 0x10000
490 IN_CLASSB_NET = 0xffff0000
491 IN_CLASSB_NSHIFT = 0x10
492 IN_CLASSC_HOST = 0xff
493 IN_CLASSC_NET = 0xffffff00
494 IN_CLASSC_NSHIFT = 0x8
495 IN_CLASSD_HOST = 0xfffffff
496 IN_CLASSD_NET = 0xf0000000
497 IN_CLASSD_NSHIFT = 0x1c
498 IN_CLASSE_NET = 0xffffffff
499 IN_LOOPBACKNET = 0x7f
500 IN_PRIVATE12_MASK = 0xfff00000
501 IN_PRIVATE12_NET = 0xac100000
502 IN_PRIVATE16_MASK = 0xffff0000
503 IN_PRIVATE16_NET = 0xc0a80000
504 IN_PRIVATE8_MASK = 0xff000000
505 IN_PRIVATE8_NET = 0xa000000
506 IPPROTO_AH = 0x33
507 IPPROTO_DSTOPTS = 0x3c
508 IPPROTO_EGP = 0x8
509 IPPROTO_ENCAP = 0x4
510 IPPROTO_EON = 0x50
511 IPPROTO_ESP = 0x32
512 IPPROTO_FRAGMENT = 0x2c
513 IPPROTO_GGP = 0x3
514 IPPROTO_HELLO = 0x3f
515 IPPROTO_HOPOPTS = 0x0
516 IPPROTO_ICMP = 0x1
517 IPPROTO_ICMPV6 = 0x3a
518 IPPROTO_IDP = 0x16
519 IPPROTO_IGMP = 0x2
520 IPPROTO_IP = 0x0
521 IPPROTO_IPV6 = 0x29
522 IPPROTO_MAX = 0x100
523 IPPROTO_ND = 0x4d
524 IPPROTO_NONE = 0x3b
525 IPPROTO_OSPF = 0x59
526 IPPROTO_PIM = 0x67
527 IPPROTO_PUP = 0xc
528 IPPROTO_RAW = 0xff
529 IPPROTO_ROUTING = 0x2b
530 IPPROTO_RSVP = 0x2e
531 IPPROTO_SCTP = 0x84
532 IPPROTO_TCP = 0x6
533 IPPROTO_UDP = 0x11
534 IPV6_ADD_MEMBERSHIP = 0x9
535 IPV6_BOUND_IF = 0x41
536 IPV6_CHECKSUM = 0x18
537 IPV6_DONTFRAG = 0x21
538 IPV6_DROP_MEMBERSHIP = 0xa
539 IPV6_DSTOPTS = 0xf
540 IPV6_FLOWINFO_FLOWLABEL = 0xffff0f00
541 IPV6_FLOWINFO_TCLASS = 0xf00f
542 IPV6_HOPLIMIT = 0xc
543 IPV6_HOPOPTS = 0xe
544 IPV6_JOIN_GROUP = 0x9
545 IPV6_LEAVE_GROUP = 0xa
546 IPV6_MULTICAST_HOPS = 0x7
547 IPV6_MULTICAST_IF = 0x6
548 IPV6_MULTICAST_LOOP = 0x8
549 IPV6_NEXTHOP = 0xd
550 IPV6_PAD1_OPT = 0x0
551 IPV6_PATHMTU = 0x25
552 IPV6_PKTINFO = 0xb
553 IPV6_PREFER_SRC_CGA = 0x20
554 IPV6_PREFER_SRC_CGADEFAULT = 0x10
555 IPV6_PREFER_SRC_CGAMASK = 0x30
556 IPV6_PREFER_SRC_COA = 0x2
557 IPV6_PREFER_SRC_DEFAULT = 0x15
558 IPV6_PREFER_SRC_HOME = 0x1
559 IPV6_PREFER_SRC_MASK = 0x3f
560 IPV6_PREFER_SRC_MIPDEFAULT = 0x1
561 IPV6_PREFER_SRC_MIPMASK = 0x3
562 IPV6_PREFER_SRC_NONCGA = 0x10
563 IPV6_PREFER_SRC_PUBLIC = 0x4
564 IPV6_PREFER_SRC_TMP = 0x8
565 IPV6_PREFER_SRC_TMPDEFAULT = 0x4
566 IPV6_PREFER_SRC_TMPMASK = 0xc
567 IPV6_RECVDSTOPTS = 0x28
568 IPV6_RECVHOPLIMIT = 0x13
569 IPV6_RECVHOPOPTS = 0x14
570 IPV6_RECVPATHMTU = 0x24
571 IPV6_RECVPKTINFO = 0x12
572 IPV6_RECVRTHDR = 0x16
573 IPV6_RECVRTHDRDSTOPTS = 0x17
574 IPV6_RECVTCLASS = 0x19
575 IPV6_RTHDR = 0x10
576 IPV6_RTHDRDSTOPTS = 0x11
577 IPV6_RTHDR_TYPE_0 = 0x0
578 IPV6_SEC_OPT = 0x22
579 IPV6_SRC_PREFERENCES = 0x23
580 IPV6_TCLASS = 0x26
581 IPV6_UNICAST_HOPS = 0x5
582 IPV6_UNSPEC_SRC = 0x42
583 IPV6_USE_MIN_MTU = 0x20
584 IPV6_V6ONLY = 0x27
585 IP_ADD_MEMBERSHIP = 0x13
586 IP_ADD_SOURCE_MEMBERSHIP = 0x17
587 IP_BLOCK_SOURCE = 0x15
588 IP_BOUND_IF = 0x41
589 IP_BROADCAST = 0x106
590 IP_BROADCAST_TTL = 0x43
591 IP_DEFAULT_MULTICAST_LOOP = 0x1
592 IP_DEFAULT_MULTICAST_TTL = 0x1
593 IP_DF = 0x4000
594 IP_DHCPINIT_IF = 0x45
595 IP_DONTFRAG = 0x1b
596 IP_DONTROUTE = 0x105
597 IP_DROP_MEMBERSHIP = 0x14
598 IP_DROP_SOURCE_MEMBERSHIP = 0x18
599 IP_HDRINCL = 0x2
600 IP_MAXPACKET = 0xffff
601 IP_MF = 0x2000
602 IP_MSS = 0x240
603 IP_MULTICAST_IF = 0x10
604 IP_MULTICAST_LOOP = 0x12
605 IP_MULTICAST_TTL = 0x11
606 IP_NEXTHOP = 0x19
607 IP_OPTIONS = 0x1
608 IP_PKTINFO = 0x1a
609 IP_RECVDSTADDR = 0x7
610 IP_RECVIF = 0x9
611 IP_RECVOPTS = 0x5
612 IP_RECVPKTINFO = 0x1a
613 IP_RECVRETOPTS = 0x6
614 IP_RECVSLLA = 0xa
615 IP_RECVTOS = 0xc
616 IP_RECVTTL = 0xb
617 IP_RETOPTS = 0x8
618 IP_REUSEADDR = 0x104
619 IP_SEC_OPT = 0x22
620 IP_TOS = 0x3
621 IP_TTL = 0x4
622 IP_UNBLOCK_SOURCE = 0x16
623 IP_UNSPEC_SRC = 0x42
624 ISIG = 0x1
625 ISTRIP = 0x20
626 IUCLC = 0x200
627 IXANY = 0x800
628 IXOFF = 0x1000
629 IXON = 0x400
630 LOCK_EX = 0x2
631 LOCK_NB = 0x4
632 LOCK_SH = 0x1
633 LOCK_UN = 0x8
634 MADV_ACCESS_DEFAULT = 0x6
635 MADV_ACCESS_LWP = 0x7
636 MADV_ACCESS_MANY = 0x8
637 MADV_DONTNEED = 0x4
638 MADV_FREE = 0x5
639 MADV_NORMAL = 0x0
640 MADV_PURGE = 0x9
641 MADV_RANDOM = 0x1
642 MADV_SEQUENTIAL = 0x2
643 MADV_WILLNEED = 0x3
644 MAP_32BIT = 0x80
645 MAP_ALIGN = 0x200
646 MAP_ANON = 0x100
647 MAP_ANONYMOUS = 0x100
648 MAP_FILE = 0x0
649 MAP_FIXED = 0x10
650 MAP_INITDATA = 0x800
651 MAP_NORESERVE = 0x40
652 MAP_PRIVATE = 0x2
653 MAP_RENAME = 0x20
654 MAP_SHARED = 0x1
655 MAP_TEXT = 0x400
656 MAP_TYPE = 0xf
657 MCAST_BLOCK_SOURCE = 0x2b
658 MCAST_EXCLUDE = 0x2
659 MCAST_INCLUDE = 0x1
660 MCAST_JOIN_GROUP = 0x29
661 MCAST_JOIN_SOURCE_GROUP = 0x2d
662 MCAST_LEAVE_GROUP = 0x2a
663 MCAST_LEAVE_SOURCE_GROUP = 0x2e
664 MCAST_UNBLOCK_SOURCE = 0x2c
665 MCL_CURRENT = 0x1
666 MCL_FUTURE = 0x2
667 MSG_CTRUNC = 0x10
668 MSG_DONTROUTE = 0x4
669 MSG_DONTWAIT = 0x80
670 MSG_DUPCTRL = 0x800
671 MSG_EOR = 0x8
672 MSG_MAXIOVLEN = 0x10
673 MSG_NOSIGNAL = 0x200
674 MSG_NOTIFICATION = 0x100
675 MSG_OOB = 0x1
676 MSG_PEEK = 0x2
677 MSG_TRUNC = 0x20
678 MSG_WAITALL = 0x40
679 MSG_XPG4_2 = 0x8000
680 MS_ASYNC = 0x1
681 MS_INVALIDATE = 0x2
682 MS_OLDSYNC = 0x0
683 MS_SYNC = 0x4
684 M_FLUSH = 0x86
685 NAME_MAX = 0xff
686 NEWDEV = 0x1
687 NFDBITS = 0x40
688 NL0 = 0x0
689 NL1 = 0x100
690 NLDLY = 0x100
691 NOFLSH = 0x80
692 OCRNL = 0x8
693 OFDEL = 0x80
694 OFILL = 0x40
695 OLCUC = 0x2
696 OLDDEV = 0x0
697 ONBITSMAJOR = 0x7
698 ONBITSMINOR = 0x8
699 ONLCR = 0x4
700 ONLRET = 0x20
701 ONOCR = 0x10
702 OPENFAIL = -0x1
703 OPOST = 0x1
704 O_ACCMODE = 0x600003
705 O_APPEND = 0x8
706 O_CLOEXEC = 0x800000
707 O_CREAT = 0x100
708 O_DIRECT = 0x2000000
709 O_DIRECTORY = 0x1000000
710 O_DSYNC = 0x40
711 O_EXCL = 0x400
712 O_EXEC = 0x400000
713 O_LARGEFILE = 0x2000
714 O_NDELAY = 0x4
715 O_NOCTTY = 0x800
716 O_NOFOLLOW = 0x20000
717 O_NOLINKS = 0x40000
718 O_NONBLOCK = 0x80
719 O_RDONLY = 0x0
720 O_RDWR = 0x2
721 O_RSYNC = 0x8000
722 O_SEARCH = 0x200000
723 O_SIOCGIFCONF = -0x3ff796ec
724 O_SIOCGLIFCONF = -0x3fef9688
725 O_SYNC = 0x10
726 O_TRUNC = 0x200
727 O_WRONLY = 0x1
728 O_XATTR = 0x4000
729 PARENB = 0x100
730 PAREXT = 0x100000
731 PARMRK = 0x8
732 PARODD = 0x200
733 PENDIN = 0x4000
734 PRIO_PGRP = 0x1
735 PRIO_PROCESS = 0x0
736 PRIO_USER = 0x2
737 PROT_EXEC = 0x4
738 PROT_NONE = 0x0
739 PROT_READ = 0x1
740 PROT_WRITE = 0x2
741 RLIMIT_AS = 0x6
742 RLIMIT_CORE = 0x4
743 RLIMIT_CPU = 0x0
744 RLIMIT_DATA = 0x2
745 RLIMIT_FSIZE = 0x1
746 RLIMIT_NOFILE = 0x5
747 RLIMIT_STACK = 0x3
748 RLIM_INFINITY = 0xfffffffffffffffd
749 RTAX_AUTHOR = 0x6
750 RTAX_BRD = 0x7
751 RTAX_DST = 0x0
752 RTAX_GATEWAY = 0x1
753 RTAX_GENMASK = 0x3
754 RTAX_IFA = 0x5
755 RTAX_IFP = 0x4
756 RTAX_MAX = 0x9
757 RTAX_NETMASK = 0x2
758 RTAX_SRC = 0x8
759 RTA_AUTHOR = 0x40
760 RTA_BRD = 0x80
761 RTA_DST = 0x1
762 RTA_GATEWAY = 0x2
763 RTA_GENMASK = 0x8
764 RTA_IFA = 0x20
765 RTA_IFP = 0x10
766 RTA_NETMASK = 0x4
767 RTA_NUMBITS = 0x9
768 RTA_SRC = 0x100
769 RTF_BLACKHOLE = 0x1000
770 RTF_CLONING = 0x100
771 RTF_DONE = 0x40
772 RTF_DYNAMIC = 0x10
773 RTF_GATEWAY = 0x2
774 RTF_HOST = 0x4
775 RTF_INDIRECT = 0x40000
776 RTF_KERNEL = 0x80000
777 RTF_LLINFO = 0x400
778 RTF_MASK = 0x80
779 RTF_MODIFIED = 0x20
780 RTF_MULTIRT = 0x10000
781 RTF_PRIVATE = 0x2000
782 RTF_PROTO1 = 0x8000
783 RTF_PROTO2 = 0x4000
784 RTF_REJECT = 0x8
785 RTF_SETSRC = 0x20000
786 RTF_STATIC = 0x800
787 RTF_UP = 0x1
788 RTF_XRESOLVE = 0x200
789 RTF_ZONE = 0x100000
790 RTM_ADD = 0x1
791 RTM_CHANGE = 0x3
792 RTM_CHGADDR = 0xf
793 RTM_DELADDR = 0xd
794 RTM_DELETE = 0x2
795 RTM_FREEADDR = 0x10
796 RTM_GET = 0x4
797 RTM_IFINFO = 0xe
798 RTM_LOCK = 0x8
799 RTM_LOSING = 0x5
800 RTM_MISS = 0x7
801 RTM_NEWADDR = 0xc
802 RTM_OLDADD = 0x9
803 RTM_OLDDEL = 0xa
804 RTM_REDIRECT = 0x6
805 RTM_RESOLVE = 0xb
806 RTM_VERSION = 0x3
807 RTV_EXPIRE = 0x4
808 RTV_HOPCOUNT = 0x2
809 RTV_MTU = 0x1
810 RTV_RPIPE = 0x8
811 RTV_RTT = 0x40
812 RTV_RTTVAR = 0x80
813 RTV_SPIPE = 0x10
814 RTV_SSTHRESH = 0x20
815 RT_AWARE = 0x1
816 RUSAGE_CHILDREN = -0x1
817 RUSAGE_SELF = 0x0
818 SCM_RIGHTS = 0x1010
819 SCM_TIMESTAMP = 0x1013
820 SCM_UCRED = 0x1012
821 SHUT_RD = 0x0
822 SHUT_RDWR = 0x2
823 SHUT_WR = 0x1
824 SIG2STR_MAX = 0x20
825 SIOCADDMULTI = -0x7fdf96cf
826 SIOCADDRT = -0x7fcf8df6
827 SIOCATMARK = 0x40047307
828 SIOCDARP = -0x7fdb96e0
829 SIOCDELMULTI = -0x7fdf96ce
830 SIOCDELRT = -0x7fcf8df5
831 SIOCDXARP = -0x7fff9658
832 SIOCGARP = -0x3fdb96e1
833 SIOCGDSTINFO = -0x3fff965c
834 SIOCGENADDR = -0x3fdf96ab
835 SIOCGENPSTATS = -0x3fdf96c7
836 SIOCGETLSGCNT = -0x3fef8deb
837 SIOCGETNAME = 0x40107334
838 SIOCGETPEER = 0x40107335
839 SIOCGETPROP = -0x3fff8f44
840 SIOCGETSGCNT = -0x3feb8deb
841 SIOCGETSYNC = -0x3fdf96d3
842 SIOCGETVIFCNT = -0x3feb8dec
843 SIOCGHIWAT = 0x40047301
844 SIOCGIFADDR = -0x3fdf96f3
845 SIOCGIFBRDADDR = -0x3fdf96e9
846 SIOCGIFCONF = -0x3ff796a4
847 SIOCGIFDSTADDR = -0x3fdf96f1
848 SIOCGIFFLAGS = -0x3fdf96ef
849 SIOCGIFHWADDR = -0x3fdf9647
850 SIOCGIFINDEX = -0x3fdf96a6
851 SIOCGIFMEM = -0x3fdf96ed
852 SIOCGIFMETRIC = -0x3fdf96e5
853 SIOCGIFMTU = -0x3fdf96ea
854 SIOCGIFMUXID = -0x3fdf96a8
855 SIOCGIFNETMASK = -0x3fdf96e7
856 SIOCGIFNUM = 0x40046957
857 SIOCGIP6ADDRPOLICY = -0x3fff965e
858 SIOCGIPMSFILTER = -0x3ffb964c
859 SIOCGLIFADDR = -0x3f87968f
860 SIOCGLIFBINDING = -0x3f879666
861 SIOCGLIFBRDADDR = -0x3f879685
862 SIOCGLIFCONF = -0x3fef965b
863 SIOCGLIFDADSTATE = -0x3f879642
864 SIOCGLIFDSTADDR = -0x3f87968d
865 SIOCGLIFFLAGS = -0x3f87968b
866 SIOCGLIFGROUPINFO = -0x3f4b9663
867 SIOCGLIFGROUPNAME = -0x3f879664
868 SIOCGLIFHWADDR = -0x3f879640
869 SIOCGLIFINDEX = -0x3f87967b
870 SIOCGLIFLNKINFO = -0x3f879674
871 SIOCGLIFMETRIC = -0x3f879681
872 SIOCGLIFMTU = -0x3f879686
873 SIOCGLIFMUXID = -0x3f87967d
874 SIOCGLIFNETMASK = -0x3f879683
875 SIOCGLIFNUM = -0x3ff3967e
876 SIOCGLIFSRCOF = -0x3fef964f
877 SIOCGLIFSUBNET = -0x3f879676
878 SIOCGLIFTOKEN = -0x3f879678
879 SIOCGLIFUSESRC = -0x3f879651
880 SIOCGLIFZONE = -0x3f879656
881 SIOCGLOWAT = 0x40047303
882 SIOCGMSFILTER = -0x3ffb964e
883 SIOCGPGRP = 0x40047309
884 SIOCGSTAMP = -0x3fef9646
885 SIOCGXARP = -0x3fff9659
886 SIOCIFDETACH = -0x7fdf96c8
887 SIOCILB = -0x3ffb9645
888 SIOCLIFADDIF = -0x3f879691
889 SIOCLIFDELND = -0x7f879673
890 SIOCLIFGETND = -0x3f879672
891 SIOCLIFREMOVEIF = -0x7f879692
892 SIOCLIFSETND = -0x7f879671
893 SIOCLOWER = -0x7fdf96d7
894 SIOCSARP = -0x7fdb96e2
895 SIOCSCTPGOPT = -0x3fef9653
896 SIOCSCTPPEELOFF = -0x3ffb9652
897 SIOCSCTPSOPT = -0x7fef9654
898 SIOCSENABLESDP = -0x3ffb9649
899 SIOCSETPROP = -0x7ffb8f43
900 SIOCSETSYNC = -0x7fdf96d4
901 SIOCSHIWAT = -0x7ffb8d00
902 SIOCSIFADDR = -0x7fdf96f4
903 SIOCSIFBRDADDR = -0x7fdf96e8
904 SIOCSIFDSTADDR = -0x7fdf96f2
905 SIOCSIFFLAGS = -0x7fdf96f0
906 SIOCSIFINDEX = -0x7fdf96a5
907 SIOCSIFMEM = -0x7fdf96ee
908 SIOCSIFMETRIC = -0x7fdf96e4
909 SIOCSIFMTU = -0x7fdf96eb
910 SIOCSIFMUXID = -0x7fdf96a7
911 SIOCSIFNAME = -0x7fdf96b7
912 SIOCSIFNETMASK = -0x7fdf96e6
913 SIOCSIP6ADDRPOLICY = -0x7fff965d
914 SIOCSIPMSFILTER = -0x7ffb964b
915 SIOCSLGETREQ = -0x3fdf96b9
916 SIOCSLIFADDR = -0x7f879690
917 SIOCSLIFBRDADDR = -0x7f879684
918 SIOCSLIFDSTADDR = -0x7f87968e
919 SIOCSLIFFLAGS = -0x7f87968c
920 SIOCSLIFGROUPNAME = -0x7f879665
921 SIOCSLIFINDEX = -0x7f87967a
922 SIOCSLIFLNKINFO = -0x7f879675
923 SIOCSLIFMETRIC = -0x7f879680
924 SIOCSLIFMTU = -0x7f879687
925 SIOCSLIFMUXID = -0x7f87967c
926 SIOCSLIFNAME = -0x3f87967f
927 SIOCSLIFNETMASK = -0x7f879682
928 SIOCSLIFPREFIX = -0x3f879641
929 SIOCSLIFSUBNET = -0x7f879677
930 SIOCSLIFTOKEN = -0x7f879679
931 SIOCSLIFUSESRC = -0x7f879650
932 SIOCSLIFZONE = -0x7f879655
933 SIOCSLOWAT = -0x7ffb8cfe
934 SIOCSLSTAT = -0x7fdf96b8
935 SIOCSMSFILTER = -0x7ffb964d
936 SIOCSPGRP = -0x7ffb8cf8
937 SIOCSPROMISC = -0x7ffb96d0
938 SIOCSQPTR = -0x3ffb9648
939 SIOCSSDSTATS = -0x3fdf96d2
940 SIOCSSESTATS = -0x3fdf96d1
941 SIOCSXARP = -0x7fff965a
942 SIOCTMYADDR = -0x3ff79670
943 SIOCTMYSITE = -0x3ff7966e
944 SIOCTONLINK = -0x3ff7966f
945 SIOCUPPER = -0x7fdf96d8
946 SIOCX25RCV = -0x3fdf96c4
947 SIOCX25TBL = -0x3fdf96c3
948 SIOCX25XMT = -0x3fdf96c5
949 SIOCXPROTO = 0x20007337
950 SOCK_CLOEXEC = 0x80000
951 SOCK_DGRAM = 0x1
952 SOCK_NDELAY = 0x200000
953 SOCK_NONBLOCK = 0x100000
954 SOCK_RAW = 0x4
955 SOCK_RDM = 0x5
956 SOCK_SEQPACKET = 0x6
957 SOCK_STREAM = 0x2
958 SOCK_TYPE_MASK = 0xffff
959 SOL_FILTER = 0xfffc
960 SOL_PACKET = 0xfffd
961 SOL_ROUTE = 0xfffe
962 SOL_SOCKET = 0xffff
963 SOMAXCONN = 0x80
964 SO_ACCEPTCONN = 0x2
965 SO_ALL = 0x3f
966 SO_ALLZONES = 0x1014
967 SO_ANON_MLP = 0x100a
968 SO_ATTACH_FILTER = 0x40000001
969 SO_BAND = 0x4000
970 SO_BROADCAST = 0x20
971 SO_COPYOPT = 0x80000
972 SO_DEBUG = 0x1
973 SO_DELIM = 0x8000
974 SO_DETACH_FILTER = 0x40000002
975 SO_DGRAM_ERRIND = 0x200
976 SO_DOMAIN = 0x100c
977 SO_DONTLINGER = -0x81
978 SO_DONTROUTE = 0x10
979 SO_ERROPT = 0x40000
980 SO_ERROR = 0x1007
981 SO_EXCLBIND = 0x1015
982 SO_HIWAT = 0x10
983 SO_ISNTTY = 0x800
984 SO_ISTTY = 0x400
985 SO_KEEPALIVE = 0x8
986 SO_LINGER = 0x80
987 SO_LOWAT = 0x20
988 SO_MAC_EXEMPT = 0x100b
989 SO_MAC_IMPLICIT = 0x1016
990 SO_MAXBLK = 0x100000
991 SO_MAXPSZ = 0x8
992 SO_MINPSZ = 0x4
993 SO_MREADOFF = 0x80
994 SO_MREADON = 0x40
995 SO_NDELOFF = 0x200
996 SO_NDELON = 0x100
997 SO_NODELIM = 0x10000
998 SO_OOBINLINE = 0x100
999 SO_PROTOTYPE = 0x1009
1000 SO_RCVBUF = 0x1002
1001 SO_RCVLOWAT = 0x1004
1002 SO_RCVPSH = 0x100d
1003 SO_RCVTIMEO = 0x1006
1004 SO_READOPT = 0x1
1005 SO_RECVUCRED = 0x400
1006 SO_REUSEADDR = 0x4
1007 SO_SECATTR = 0x1011
1008 SO_SNDBUF = 0x1001
1009 SO_SNDLOWAT = 0x1003
1010 SO_SNDTIMEO = 0x1005
1011 SO_STRHOLD = 0x20000
1012 SO_TAIL = 0x200000
1013 SO_TIMESTAMP = 0x1013
1014 SO_TONSTOP = 0x2000
1015 SO_TOSTOP = 0x1000
1016 SO_TYPE = 0x1008
1017 SO_USELOOPBACK = 0x40
1018 SO_VRRP = 0x1017
1019 SO_WROFF = 0x2
1020 S_ENFMT = 0x400
1021 S_IAMB = 0x1ff
1022 S_IEXEC = 0x40
1023 S_IFBLK = 0x6000
1024 S_IFCHR = 0x2000
1025 S_IFDIR = 0x4000
1026 S_IFDOOR = 0xd000
1027 S_IFIFO = 0x1000
1028 S_IFLNK = 0xa000
1029 S_IFMT = 0xf000
1030 S_IFNAM = 0x5000
1031 S_IFPORT = 0xe000
1032 S_IFREG = 0x8000
1033 S_IFSOCK = 0xc000
1034 S_INSEM = 0x1
1035 S_INSHD = 0x2
1036 S_IREAD = 0x100
1037 S_IRGRP = 0x20
1038 S_IROTH = 0x4
1039 S_IRUSR = 0x100
1040 S_IRWXG = 0x38
1041 S_IRWXO = 0x7
1042 S_IRWXU = 0x1c0
1043 S_ISGID = 0x400
1044 S_ISUID = 0x800
1045 S_ISVTX = 0x200
1046 S_IWGRP = 0x10
1047 S_IWOTH = 0x2
1048 S_IWRITE = 0x80
1049 S_IWUSR = 0x80
1050 S_IXGRP = 0x8
1051 S_IXOTH = 0x1
1052 S_IXUSR = 0x40
1053 TAB0 = 0x0
1054 TAB1 = 0x800
1055 TAB2 = 0x1000
1056 TAB3 = 0x1800
1057 TABDLY = 0x1800
1058 TCFLSH = 0x5407
1059 TCGETA = 0x5401
1060 TCGETS = 0x540d
1061 TCIFLUSH = 0x0
1062 TCIOFF = 0x2
1063 TCIOFLUSH = 0x2
1064 TCION = 0x3
1065 TCOFLUSH = 0x1
1066 TCOOFF = 0x0
1067 TCOON = 0x1
1068 TCP_ABORT_THRESHOLD = 0x11
1069 TCP_ANONPRIVBIND = 0x20
1070 TCP_CONGESTION = 0x25
1071 TCP_CONN_ABORT_THRESHOLD = 0x13
1072 TCP_CONN_NOTIFY_THRESHOLD = 0x12
1073 TCP_CORK = 0x18
1074 TCP_EXCLBIND = 0x21
1075 TCP_INIT_CWND = 0x15
1076 TCP_KEEPALIVE = 0x8
1077 TCP_KEEPALIVE_ABORT_THRESHOLD = 0x17
1078 TCP_KEEPALIVE_THRESHOLD = 0x16
1079 TCP_KEEPCNT = 0x23
1080 TCP_KEEPIDLE = 0x22
1081 TCP_KEEPINTVL = 0x24
1082 TCP_LINGER2 = 0x1c
1083 TCP_MAXSEG = 0x2
1084 TCP_MSS = 0x218
1085 TCP_NODELAY = 0x1
1086 TCP_NOTIFY_THRESHOLD = 0x10
1087 TCP_RECVDSTADDR = 0x14
1088 TCP_RTO_INITIAL = 0x19
1089 TCP_RTO_MAX = 0x1b
1090 TCP_RTO_MIN = 0x1a
1091 TCSAFLUSH = 0x5410
1092 TCSBRK = 0x5405
1093 TCSETA = 0x5402
1094 TCSETAF = 0x5404
1095 TCSETAW = 0x5403
1096 TCSETS = 0x540e
1097 TCSETSF = 0x5410
1098 TCSETSW = 0x540f
1099 TCXONC = 0x5406
1100 TIMER_ABSTIME = 0x1
1101 TIMER_RELTIME = 0x0
1102 TIOC = 0x5400
1103 TIOCCBRK = 0x747a
1104 TIOCCDTR = 0x7478
1105 TIOCCILOOP = 0x746c
1106 TIOCEXCL = 0x740d
1107 TIOCFLUSH = 0x7410
1108 TIOCGETC = 0x7412
1109 TIOCGETD = 0x7400
1110 TIOCGETP = 0x7408
1111 TIOCGLTC = 0x7474
1112 TIOCGPGRP = 0x7414
1113 TIOCGPPS = 0x547d
1114 TIOCGPPSEV = 0x547f
1115 TIOCGSID = 0x7416
1116 TIOCGSOFTCAR = 0x5469
1117 TIOCGWINSZ = 0x5468
1118 TIOCHPCL = 0x7402
1119 TIOCKBOF = 0x5409
1120 TIOCKBON = 0x5408
1121 TIOCLBIC = 0x747e
1122 TIOCLBIS = 0x747f
1123 TIOCLGET = 0x747c
1124 TIOCLSET = 0x747d
1125 TIOCMBIC = 0x741c
1126 TIOCMBIS = 0x741b
1127 TIOCMGET = 0x741d
1128 TIOCMSET = 0x741a
1129 TIOCM_CAR = 0x40
1130 TIOCM_CD = 0x40
1131 TIOCM_CTS = 0x20
1132 TIOCM_DSR = 0x100
1133 TIOCM_DTR = 0x2
1134 TIOCM_LE = 0x1
1135 TIOCM_RI = 0x80
1136 TIOCM_RNG = 0x80
1137 TIOCM_RTS = 0x4
1138 TIOCM_SR = 0x10
1139 TIOCM_ST = 0x8
1140 TIOCNOTTY = 0x7471
1141 TIOCNXCL = 0x740e
1142 TIOCOUTQ = 0x7473
1143 TIOCREMOTE = 0x741e
1144 TIOCSBRK = 0x747b
1145 TIOCSCTTY = 0x7484
1146 TIOCSDTR = 0x7479
1147 TIOCSETC = 0x7411
1148 TIOCSETD = 0x7401
1149 TIOCSETN = 0x740a
1150 TIOCSETP = 0x7409
1151 TIOCSIGNAL = 0x741f
1152 TIOCSILOOP = 0x746d
1153 TIOCSLTC = 0x7475
1154 TIOCSPGRP = 0x7415
1155 TIOCSPPS = 0x547e
1156 TIOCSSOFTCAR = 0x546a
1157 TIOCSTART = 0x746e
1158 TIOCSTI = 0x7417
1159 TIOCSTOP = 0x746f
1160 TIOCSWINSZ = 0x5467
1161 TOSTOP = 0x100
1162 UTIME_NOW = -0x1
1163 UTIME_OMIT = -0x2
1164 VCEOF = 0x8
1165 VCEOL = 0x9
1166 VDISCARD = 0xd
1167 VDSUSP = 0xb
1168 VEOF = 0x4
1169 VEOL = 0x5
1170 VEOL2 = 0x6
1171 VERASE = 0x2
1172 VERASE2 = 0x11
1173 VINTR = 0x0
1174 VKILL = 0x3
1175 VLNEXT = 0xf
1176 VMIN = 0x4
1177 VQUIT = 0x1
1178 VREPRINT = 0xc
1179 VSTART = 0x8
1180 VSTATUS = 0x10
1181 VSTOP = 0x9
1182 VSUSP = 0xa
1183 VSWTCH = 0x7
1184 VT0 = 0x0
1185 VT1 = 0x4000
1186 VTDLY = 0x4000
1187 VTIME = 0x5
1188 VWERASE = 0xe
1189 WCONTFLG = 0xffff
1190 WCONTINUED = 0x8
1191 WCOREFLG = 0x80
1192 WEXITED = 0x1
1193 WNOHANG = 0x40
1194 WNOWAIT = 0x80
1195 WOPTMASK = 0xcf
1196 WRAP = 0x20000
1197 WSIGMASK = 0x7f
1198 WSTOPFLG = 0x7f
1199 WSTOPPED = 0x4
1200 WTRAPPED = 0x2
1201 WUNTRACED = 0x4
1202 XCASE = 0x4
1203 XTABS = 0x1800
1204 )
1205
1206
1207 const (
1208 E2BIG = syscall.Errno(0x7)
1209 EACCES = syscall.Errno(0xd)
1210 EADDRINUSE = syscall.Errno(0x7d)
1211 EADDRNOTAVAIL = syscall.Errno(0x7e)
1212 EADV = syscall.Errno(0x44)
1213 EAFNOSUPPORT = syscall.Errno(0x7c)
1214 EAGAIN = syscall.Errno(0xb)
1215 EALREADY = syscall.Errno(0x95)
1216 EBADE = syscall.Errno(0x32)
1217 EBADF = syscall.Errno(0x9)
1218 EBADFD = syscall.Errno(0x51)
1219 EBADMSG = syscall.Errno(0x4d)
1220 EBADR = syscall.Errno(0x33)
1221 EBADRQC = syscall.Errno(0x36)
1222 EBADSLT = syscall.Errno(0x37)
1223 EBFONT = syscall.Errno(0x39)
1224 EBUSY = syscall.Errno(0x10)
1225 ECANCELED = syscall.Errno(0x2f)
1226 ECHILD = syscall.Errno(0xa)
1227 ECHRNG = syscall.Errno(0x25)
1228 ECOMM = syscall.Errno(0x46)
1229 ECONNABORTED = syscall.Errno(0x82)
1230 ECONNREFUSED = syscall.Errno(0x92)
1231 ECONNRESET = syscall.Errno(0x83)
1232 EDEADLK = syscall.Errno(0x2d)
1233 EDEADLOCK = syscall.Errno(0x38)
1234 EDESTADDRREQ = syscall.Errno(0x60)
1235 EDOM = syscall.Errno(0x21)
1236 EDQUOT = syscall.Errno(0x31)
1237 EEXIST = syscall.Errno(0x11)
1238 EFAULT = syscall.Errno(0xe)
1239 EFBIG = syscall.Errno(0x1b)
1240 EHOSTDOWN = syscall.Errno(0x93)
1241 EHOSTUNREACH = syscall.Errno(0x94)
1242 EIDRM = syscall.Errno(0x24)
1243 EILSEQ = syscall.Errno(0x58)
1244 EINPROGRESS = syscall.Errno(0x96)
1245 EINTR = syscall.Errno(0x4)
1246 EINVAL = syscall.Errno(0x16)
1247 EIO = syscall.Errno(0x5)
1248 EISCONN = syscall.Errno(0x85)
1249 EISDIR = syscall.Errno(0x15)
1250 EL2HLT = syscall.Errno(0x2c)
1251 EL2NSYNC = syscall.Errno(0x26)
1252 EL3HLT = syscall.Errno(0x27)
1253 EL3RST = syscall.Errno(0x28)
1254 ELIBACC = syscall.Errno(0x53)
1255 ELIBBAD = syscall.Errno(0x54)
1256 ELIBEXEC = syscall.Errno(0x57)
1257 ELIBMAX = syscall.Errno(0x56)
1258 ELIBSCN = syscall.Errno(0x55)
1259 ELNRNG = syscall.Errno(0x29)
1260 ELOCKUNMAPPED = syscall.Errno(0x48)
1261 ELOOP = syscall.Errno(0x5a)
1262 EMFILE = syscall.Errno(0x18)
1263 EMLINK = syscall.Errno(0x1f)
1264 EMSGSIZE = syscall.Errno(0x61)
1265 EMULTIHOP = syscall.Errno(0x4a)
1266 ENAMETOOLONG = syscall.Errno(0x4e)
1267 ENETDOWN = syscall.Errno(0x7f)
1268 ENETRESET = syscall.Errno(0x81)
1269 ENETUNREACH = syscall.Errno(0x80)
1270 ENFILE = syscall.Errno(0x17)
1271 ENOANO = syscall.Errno(0x35)
1272 ENOBUFS = syscall.Errno(0x84)
1273 ENOCSI = syscall.Errno(0x2b)
1274 ENODATA = syscall.Errno(0x3d)
1275 ENODEV = syscall.Errno(0x13)
1276 ENOENT = syscall.Errno(0x2)
1277 ENOEXEC = syscall.Errno(0x8)
1278 ENOLCK = syscall.Errno(0x2e)
1279 ENOLINK = syscall.Errno(0x43)
1280 ENOMEM = syscall.Errno(0xc)
1281 ENOMSG = syscall.Errno(0x23)
1282 ENONET = syscall.Errno(0x40)
1283 ENOPKG = syscall.Errno(0x41)
1284 ENOPROTOOPT = syscall.Errno(0x63)
1285 ENOSPC = syscall.Errno(0x1c)
1286 ENOSR = syscall.Errno(0x3f)
1287 ENOSTR = syscall.Errno(0x3c)
1288 ENOSYS = syscall.Errno(0x59)
1289 ENOTACTIVE = syscall.Errno(0x49)
1290 ENOTBLK = syscall.Errno(0xf)
1291 ENOTCONN = syscall.Errno(0x86)
1292 ENOTDIR = syscall.Errno(0x14)
1293 ENOTEMPTY = syscall.Errno(0x5d)
1294 ENOTRECOVERABLE = syscall.Errno(0x3b)
1295 ENOTSOCK = syscall.Errno(0x5f)
1296 ENOTSUP = syscall.Errno(0x30)
1297 ENOTTY = syscall.Errno(0x19)
1298 ENOTUNIQ = syscall.Errno(0x50)
1299 ENXIO = syscall.Errno(0x6)
1300 EOPNOTSUPP = syscall.Errno(0x7a)
1301 EOVERFLOW = syscall.Errno(0x4f)
1302 EOWNERDEAD = syscall.Errno(0x3a)
1303 EPERM = syscall.Errno(0x1)
1304 EPFNOSUPPORT = syscall.Errno(0x7b)
1305 EPIPE = syscall.Errno(0x20)
1306 EPROTO = syscall.Errno(0x47)
1307 EPROTONOSUPPORT = syscall.Errno(0x78)
1308 EPROTOTYPE = syscall.Errno(0x62)
1309 ERANGE = syscall.Errno(0x22)
1310 EREMCHG = syscall.Errno(0x52)
1311 EREMOTE = syscall.Errno(0x42)
1312 ERESTART = syscall.Errno(0x5b)
1313 EROFS = syscall.Errno(0x1e)
1314 ESHUTDOWN = syscall.Errno(0x8f)
1315 ESOCKTNOSUPPORT = syscall.Errno(0x79)
1316 ESPIPE = syscall.Errno(0x1d)
1317 ESRCH = syscall.Errno(0x3)
1318 ESRMNT = syscall.Errno(0x45)
1319 ESTALE = syscall.Errno(0x97)
1320 ESTRPIPE = syscall.Errno(0x5c)
1321 ETIME = syscall.Errno(0x3e)
1322 ETIMEDOUT = syscall.Errno(0x91)
1323 ETOOMANYREFS = syscall.Errno(0x90)
1324 ETXTBSY = syscall.Errno(0x1a)
1325 EUNATCH = syscall.Errno(0x2a)
1326 EUSERS = syscall.Errno(0x5e)
1327 EWOULDBLOCK = syscall.Errno(0xb)
1328 EXDEV = syscall.Errno(0x12)
1329 EXFULL = syscall.Errno(0x34)
1330 )
1331
1332
1333 const (
1334 SIGABRT = syscall.Signal(0x6)
1335 SIGALRM = syscall.Signal(0xe)
1336 SIGBUS = syscall.Signal(0xa)
1337 SIGCANCEL = syscall.Signal(0x24)
1338 SIGCHLD = syscall.Signal(0x12)
1339 SIGCLD = syscall.Signal(0x12)
1340 SIGCONT = syscall.Signal(0x19)
1341 SIGEMT = syscall.Signal(0x7)
1342 SIGFPE = syscall.Signal(0x8)
1343 SIGFREEZE = syscall.Signal(0x22)
1344 SIGHUP = syscall.Signal(0x1)
1345 SIGILL = syscall.Signal(0x4)
1346 SIGINFO = syscall.Signal(0x29)
1347 SIGINT = syscall.Signal(0x2)
1348 SIGIO = syscall.Signal(0x16)
1349 SIGIOT = syscall.Signal(0x6)
1350 SIGJVM1 = syscall.Signal(0x27)
1351 SIGJVM2 = syscall.Signal(0x28)
1352 SIGKILL = syscall.Signal(0x9)
1353 SIGLOST = syscall.Signal(0x25)
1354 SIGLWP = syscall.Signal(0x21)
1355 SIGPIPE = syscall.Signal(0xd)
1356 SIGPOLL = syscall.Signal(0x16)
1357 SIGPROF = syscall.Signal(0x1d)
1358 SIGPWR = syscall.Signal(0x13)
1359 SIGQUIT = syscall.Signal(0x3)
1360 SIGSEGV = syscall.Signal(0xb)
1361 SIGSTOP = syscall.Signal(0x17)
1362 SIGSYS = syscall.Signal(0xc)
1363 SIGTERM = syscall.Signal(0xf)
1364 SIGTHAW = syscall.Signal(0x23)
1365 SIGTRAP = syscall.Signal(0x5)
1366 SIGTSTP = syscall.Signal(0x18)
1367 SIGTTIN = syscall.Signal(0x1a)
1368 SIGTTOU = syscall.Signal(0x1b)
1369 SIGURG = syscall.Signal(0x15)
1370 SIGUSR1 = syscall.Signal(0x10)
1371 SIGUSR2 = syscall.Signal(0x11)
1372 SIGVTALRM = syscall.Signal(0x1c)
1373 SIGWAITING = syscall.Signal(0x20)
1374 SIGWINCH = syscall.Signal(0x14)
1375 SIGXCPU = syscall.Signal(0x1e)
1376 SIGXFSZ = syscall.Signal(0x1f)
1377 SIGXRES = syscall.Signal(0x26)
1378 )
1379
1380
1381 var errorList = [...]struct {
1382 num syscall.Errno
1383 name string
1384 desc string
1385 }{
1386 {1, "EPERM", "not owner"},
1387 {2, "ENOENT", "no such file or directory"},
1388 {3, "ESRCH", "no such process"},
1389 {4, "EINTR", "interrupted system call"},
1390 {5, "EIO", "I/O error"},
1391 {6, "ENXIO", "no such device or address"},
1392 {7, "E2BIG", "arg list too long"},
1393 {8, "ENOEXEC", "exec format error"},
1394 {9, "EBADF", "bad file number"},
1395 {10, "ECHILD", "no child processes"},
1396 {11, "EAGAIN", "resource temporarily unavailable"},
1397 {12, "ENOMEM", "not enough space"},
1398 {13, "EACCES", "permission denied"},
1399 {14, "EFAULT", "bad address"},
1400 {15, "ENOTBLK", "block device required"},
1401 {16, "EBUSY", "device busy"},
1402 {17, "EEXIST", "file exists"},
1403 {18, "EXDEV", "cross-device link"},
1404 {19, "ENODEV", "no such device"},
1405 {20, "ENOTDIR", "not a directory"},
1406 {21, "EISDIR", "is a directory"},
1407 {22, "EINVAL", "invalid argument"},
1408 {23, "ENFILE", "file table overflow"},
1409 {24, "EMFILE", "too many open files"},
1410 {25, "ENOTTY", "inappropriate ioctl for device"},
1411 {26, "ETXTBSY", "text file busy"},
1412 {27, "EFBIG", "file too large"},
1413 {28, "ENOSPC", "no space left on device"},
1414 {29, "ESPIPE", "illegal seek"},
1415 {30, "EROFS", "read-only file system"},
1416 {31, "EMLINK", "too many links"},
1417 {32, "EPIPE", "broken pipe"},
1418 {33, "EDOM", "argument out of domain"},
1419 {34, "ERANGE", "result too large"},
1420 {35, "ENOMSG", "no message of desired type"},
1421 {36, "EIDRM", "identifier removed"},
1422 {37, "ECHRNG", "channel number out of range"},
1423 {38, "EL2NSYNC", "level 2 not synchronized"},
1424 {39, "EL3HLT", "level 3 halted"},
1425 {40, "EL3RST", "level 3 reset"},
1426 {41, "ELNRNG", "link number out of range"},
1427 {42, "EUNATCH", "protocol driver not attached"},
1428 {43, "ENOCSI", "no CSI structure available"},
1429 {44, "EL2HLT", "level 2 halted"},
1430 {45, "EDEADLK", "deadlock situation detected/avoided"},
1431 {46, "ENOLCK", "no record locks available"},
1432 {47, "ECANCELED", "operation canceled"},
1433 {48, "ENOTSUP", "operation not supported"},
1434 {49, "EDQUOT", "disc quota exceeded"},
1435 {50, "EBADE", "bad exchange descriptor"},
1436 {51, "EBADR", "bad request descriptor"},
1437 {52, "EXFULL", "message tables full"},
1438 {53, "ENOANO", "anode table overflow"},
1439 {54, "EBADRQC", "bad request code"},
1440 {55, "EBADSLT", "invalid slot"},
1441 {56, "EDEADLOCK", "file locking deadlock"},
1442 {57, "EBFONT", "bad font file format"},
1443 {58, "EOWNERDEAD", "owner of the lock died"},
1444 {59, "ENOTRECOVERABLE", "lock is not recoverable"},
1445 {60, "ENOSTR", "not a stream device"},
1446 {61, "ENODATA", "no data available"},
1447 {62, "ETIME", "timer expired"},
1448 {63, "ENOSR", "out of stream resources"},
1449 {64, "ENONET", "machine is not on the network"},
1450 {65, "ENOPKG", "package not installed"},
1451 {66, "EREMOTE", "object is remote"},
1452 {67, "ENOLINK", "link has been severed"},
1453 {68, "EADV", "advertise error"},
1454 {69, "ESRMNT", "srmount error"},
1455 {70, "ECOMM", "communication error on send"},
1456 {71, "EPROTO", "protocol error"},
1457 {72, "ELOCKUNMAPPED", "locked lock was unmapped "},
1458 {73, "ENOTACTIVE", "facility is not active"},
1459 {74, "EMULTIHOP", "multihop attempted"},
1460 {77, "EBADMSG", "not a data message"},
1461 {78, "ENAMETOOLONG", "file name too long"},
1462 {79, "EOVERFLOW", "value too large for defined data type"},
1463 {80, "ENOTUNIQ", "name not unique on network"},
1464 {81, "EBADFD", "file descriptor in bad state"},
1465 {82, "EREMCHG", "remote address changed"},
1466 {83, "ELIBACC", "can not access a needed shared library"},
1467 {84, "ELIBBAD", "accessing a corrupted shared library"},
1468 {85, "ELIBSCN", ".lib section in a.out corrupted"},
1469 {86, "ELIBMAX", "attempting to link in more shared libraries than system limit"},
1470 {87, "ELIBEXEC", "can not exec a shared library directly"},
1471 {88, "EILSEQ", "illegal byte sequence"},
1472 {89, "ENOSYS", "operation not applicable"},
1473 {90, "ELOOP", "number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS"},
1474 {91, "ERESTART", "error 91"},
1475 {92, "ESTRPIPE", "error 92"},
1476 {93, "ENOTEMPTY", "directory not empty"},
1477 {94, "EUSERS", "too many users"},
1478 {95, "ENOTSOCK", "socket operation on non-socket"},
1479 {96, "EDESTADDRREQ", "destination address required"},
1480 {97, "EMSGSIZE", "message too long"},
1481 {98, "EPROTOTYPE", "protocol wrong type for socket"},
1482 {99, "ENOPROTOOPT", "option not supported by protocol"},
1483 {120, "EPROTONOSUPPORT", "protocol not supported"},
1484 {121, "ESOCKTNOSUPPORT", "socket type not supported"},
1485 {122, "EOPNOTSUPP", "operation not supported on transport endpoint"},
1486 {123, "EPFNOSUPPORT", "protocol family not supported"},
1487 {124, "EAFNOSUPPORT", "address family not supported by protocol family"},
1488 {125, "EADDRINUSE", "address already in use"},
1489 {126, "EADDRNOTAVAIL", "cannot assign requested address"},
1490 {127, "ENETDOWN", "network is down"},
1491 {128, "ENETUNREACH", "network is unreachable"},
1492 {129, "ENETRESET", "network dropped connection because of reset"},
1493 {130, "ECONNABORTED", "software caused connection abort"},
1494 {131, "ECONNRESET", "connection reset by peer"},
1495 {132, "ENOBUFS", "no buffer space available"},
1496 {133, "EISCONN", "transport endpoint is already connected"},
1497 {134, "ENOTCONN", "transport endpoint is not connected"},
1498 {143, "ESHUTDOWN", "cannot send after socket shutdown"},
1499 {144, "ETOOMANYREFS", "too many references: cannot splice"},
1500 {145, "ETIMEDOUT", "connection timed out"},
1501 {146, "ECONNREFUSED", "connection refused"},
1502 {147, "EHOSTDOWN", "host is down"},
1503 {148, "EHOSTUNREACH", "no route to host"},
1504 {149, "EALREADY", "operation already in progress"},
1505 {150, "EINPROGRESS", "operation now in progress"},
1506 {151, "ESTALE", "stale NFS file handle"},
1507 }
1508
1509
1510 var signalList = [...]struct {
1511 num syscall.Signal
1512 name string
1513 desc string
1514 }{
1515 {1, "SIGHUP", "hangup"},
1516 {2, "SIGINT", "interrupt"},
1517 {3, "SIGQUIT", "quit"},
1518 {4, "SIGILL", "illegal Instruction"},
1519 {5, "SIGTRAP", "trace/Breakpoint Trap"},
1520 {6, "SIGABRT", "abort"},
1521 {7, "SIGEMT", "emulation Trap"},
1522 {8, "SIGFPE", "arithmetic Exception"},
1523 {9, "SIGKILL", "killed"},
1524 {10, "SIGBUS", "bus Error"},
1525 {11, "SIGSEGV", "segmentation Fault"},
1526 {12, "SIGSYS", "bad System Call"},
1527 {13, "SIGPIPE", "broken Pipe"},
1528 {14, "SIGALRM", "alarm Clock"},
1529 {15, "SIGTERM", "terminated"},
1530 {16, "SIGUSR1", "user Signal 1"},
1531 {17, "SIGUSR2", "user Signal 2"},
1532 {18, "SIGCHLD", "child Status Changed"},
1533 {19, "SIGPWR", "power-Fail/Restart"},
1534 {20, "SIGWINCH", "window Size Change"},
1535 {21, "SIGURG", "urgent Socket Condition"},
1536 {22, "SIGIO", "pollable Event"},
1537 {23, "SIGSTOP", "stopped (signal)"},
1538 {24, "SIGTSTP", "stopped (user)"},
1539 {25, "SIGCONT", "continued"},
1540 {26, "SIGTTIN", "stopped (tty input)"},
1541 {27, "SIGTTOU", "stopped (tty output)"},
1542 {28, "SIGVTALRM", "virtual Timer Expired"},
1543 {29, "SIGPROF", "profiling Timer Expired"},
1544 {30, "SIGXCPU", "cpu Limit Exceeded"},
1545 {31, "SIGXFSZ", "file Size Limit Exceeded"},
1546 {32, "SIGWAITING", "no runnable lwp"},
1547 {33, "SIGLWP", "inter-lwp signal"},
1548 {34, "SIGFREEZE", "checkpoint Freeze"},
1549 {35, "SIGTHAW", "checkpoint Thaw"},
1550 {36, "SIGCANCEL", "thread Cancellation"},
1551 {37, "SIGLOST", "resource Lost"},
1552 {38, "SIGXRES", "resource Control Exceeded"},
1553 {39, "SIGJVM1", "reserved for JVM 1"},
1554 {40, "SIGJVM2", "reserved for JVM 2"},
1555 {41, "SIGINFO", "information Request"},
1556 }
1557
View as plain text