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