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