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_BYPASS = 0x19
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_HYLINK = 0xf
24 AF_IMPLINK = 0x3
25 AF_INET = 0x2
26 AF_INET6 = 0x18
27 AF_INTF = 0x14
28 AF_ISO = 0x7
29 AF_LAT = 0xe
30 AF_LINK = 0x12
31 AF_LOCAL = 0x1
32 AF_MAX = 0x1e
33 AF_NDD = 0x17
34 AF_NETWARE = 0x16
35 AF_NS = 0x6
36 AF_OSI = 0x7
37 AF_PUP = 0x4
38 AF_RIF = 0x15
39 AF_ROUTE = 0x11
40 AF_SNA = 0xb
41 AF_UNIX = 0x1
42 AF_UNSPEC = 0x0
43 ALTWERASE = 0x400000
44 ARPHRD_802_3 = 0x6
45 ARPHRD_802_5 = 0x6
46 ARPHRD_ETHER = 0x1
47 ARPHRD_FDDI = 0x1
48 B0 = 0x0
49 B110 = 0x3
50 B1200 = 0x9
51 B134 = 0x4
52 B150 = 0x5
53 B1800 = 0xa
54 B19200 = 0xe
55 B200 = 0x6
56 B2400 = 0xb
57 B300 = 0x7
58 B38400 = 0xf
59 B4800 = 0xc
60 B50 = 0x1
61 B600 = 0x8
62 B75 = 0x2
63 B9600 = 0xd
64 BRKINT = 0x2
65 BS0 = 0x0
66 BS1 = 0x1000
67 BSDLY = 0x1000
68 CAP_AACCT = 0x6
69 CAP_ARM_APPLICATION = 0x5
70 CAP_BYPASS_RAC_VMM = 0x3
71 CAP_CLEAR = 0x0
72 CAP_CREDENTIALS = 0x7
73 CAP_EFFECTIVE = 0x1
74 CAP_EWLM_AGENT = 0x4
75 CAP_INHERITABLE = 0x2
76 CAP_MAXIMUM = 0x7
77 CAP_NUMA_ATTACH = 0x2
78 CAP_PERMITTED = 0x3
79 CAP_PROPAGATE = 0x1
80 CAP_PROPOGATE = 0x1
81 CAP_SET = 0x1
82 CBAUD = 0xf
83 CFLUSH = 0xf
84 CIBAUD = 0xf0000
85 CLOCAL = 0x800
86 CLOCK_MONOTONIC = 0xa
87 CLOCK_PROCESS_CPUTIME_ID = 0xb
88 CLOCK_REALTIME = 0x9
89 CLOCK_THREAD_CPUTIME_ID = 0xc
90 CR0 = 0x0
91 CR1 = 0x100
92 CR2 = 0x200
93 CR3 = 0x300
94 CRDLY = 0x300
95 CREAD = 0x80
96 CS5 = 0x0
97 CS6 = 0x10
98 CS7 = 0x20
99 CS8 = 0x30
100 CSIOCGIFCONF = -0x3fef96dc
101 CSIZE = 0x30
102 CSMAP_DIR = "/usr/lib/nls/csmap/"
103 CSTART = '\021'
104 CSTOP = '\023'
105 CSTOPB = 0x40
106 CSUSP = 0x1a
107 ECHO = 0x8
108 ECHOCTL = 0x20000
109 ECHOE = 0x10
110 ECHOK = 0x20
111 ECHOKE = 0x80000
112 ECHONL = 0x40
113 ECHOPRT = 0x40000
114 ECH_ICMPID = 0x2
115 ETHERNET_CSMACD = 0x6
116 EVENP = 0x80
117 EXCONTINUE = 0x0
118 EXDLOK = 0x3
119 EXIO = 0x2
120 EXPGIO = 0x0
121 EXRESUME = 0x2
122 EXRETURN = 0x1
123 EXSIG = 0x4
124 EXTA = 0xe
125 EXTB = 0xf
126 EXTRAP = 0x1
127 EYEC_RTENTRYA = 0x257274656e747241
128 EYEC_RTENTRYF = 0x257274656e747246
129 E_ACC = 0x0
130 FD_CLOEXEC = 0x1
131 FD_SETSIZE = 0xfffe
132 FF0 = 0x0
133 FF1 = 0x2000
134 FFDLY = 0x2000
135 FLUSHBAND = 0x40
136 FLUSHLOW = 0x8
137 FLUSHO = 0x100000
138 FLUSHR = 0x1
139 FLUSHRW = 0x3
140 FLUSHW = 0x2
141 F_CLOSEM = 0xa
142 F_DUP2FD = 0xe
143 F_DUPFD = 0x0
144 F_GETFD = 0x1
145 F_GETFL = 0x3
146 F_GETLK = 0xb
147 F_GETLK64 = 0xb
148 F_GETOWN = 0x8
149 F_LOCK = 0x1
150 F_OK = 0x0
151 F_RDLCK = 0x1
152 F_SETFD = 0x2
153 F_SETFL = 0x4
154 F_SETLK = 0xc
155 F_SETLK64 = 0xc
156 F_SETLKW = 0xd
157 F_SETLKW64 = 0xd
158 F_SETOWN = 0x9
159 F_TEST = 0x3
160 F_TLOCK = 0x2
161 F_TSTLK = 0xf
162 F_ULOCK = 0x0
163 F_UNLCK = 0x3
164 F_WRLCK = 0x2
165 HUPCL = 0x400
166 IBSHIFT = 0x10
167 ICANON = 0x2
168 ICMP6_FILTER = 0x26
169 ICMP6_SEC_SEND_DEL = 0x46
170 ICMP6_SEC_SEND_GET = 0x47
171 ICMP6_SEC_SEND_SET = 0x44
172 ICMP6_SEC_SEND_SET_CGA_ADDR = 0x45
173 ICRNL = 0x100
174 IEXTEN = 0x200000
175 IFA_FIRSTALIAS = 0x2000
176 IFA_ROUTE = 0x1
177 IFF_64BIT = 0x4000000
178 IFF_ALLCAST = 0x20000
179 IFF_ALLMULTI = 0x200
180 IFF_BPF = 0x8000000
181 IFF_BRIDGE = 0x40000
182 IFF_BROADCAST = 0x2
183 IFF_CANTCHANGE = 0x80c52
184 IFF_CHECKSUM_OFFLOAD = 0x10000000
185 IFF_D1 = 0x8000
186 IFF_D2 = 0x4000
187 IFF_D3 = 0x2000
188 IFF_D4 = 0x1000
189 IFF_DEBUG = 0x4
190 IFF_DEVHEALTH = 0x4000
191 IFF_DO_HW_LOOPBACK = 0x10000
192 IFF_GROUP_ROUTING = 0x2000000
193 IFF_IFBUFMGT = 0x800000
194 IFF_LINK0 = 0x100000
195 IFF_LINK1 = 0x200000
196 IFF_LINK2 = 0x400000
197 IFF_LOOPBACK = 0x8
198 IFF_MULTICAST = 0x80000
199 IFF_NOARP = 0x80
200 IFF_NOECHO = 0x800
201 IFF_NOTRAILERS = 0x20
202 IFF_OACTIVE = 0x400
203 IFF_POINTOPOINT = 0x10
204 IFF_PROMISC = 0x100
205 IFF_PSEG = 0x40000000
206 IFF_RUNNING = 0x40
207 IFF_SIMPLEX = 0x800
208 IFF_SNAP = 0x8000
209 IFF_TCP_DISABLE_CKSUM = 0x20000000
210 IFF_TCP_NOCKSUM = 0x1000000
211 IFF_UP = 0x1
212 IFF_VIPA = 0x80000000
213 IFNAMSIZ = 0x10
214 IFO_FLUSH = 0x1
215 IFT_1822 = 0x2
216 IFT_AAL5 = 0x31
217 IFT_ARCNET = 0x23
218 IFT_ARCNETPLUS = 0x24
219 IFT_ATM = 0x25
220 IFT_CEPT = 0x13
221 IFT_CLUSTER = 0x3e
222 IFT_DS3 = 0x1e
223 IFT_EON = 0x19
224 IFT_ETHER = 0x6
225 IFT_FCS = 0x3a
226 IFT_FDDI = 0xf
227 IFT_FRELAY = 0x20
228 IFT_FRELAYDCE = 0x2c
229 IFT_GIFTUNNEL = 0x3c
230 IFT_HDH1822 = 0x3
231 IFT_HF = 0x3d
232 IFT_HIPPI = 0x2f
233 IFT_HSSI = 0x2e
234 IFT_HY = 0xe
235 IFT_IB = 0xc7
236 IFT_ISDNBASIC = 0x14
237 IFT_ISDNPRIMARY = 0x15
238 IFT_ISO88022LLC = 0x29
239 IFT_ISO88023 = 0x7
240 IFT_ISO88024 = 0x8
241 IFT_ISO88025 = 0x9
242 IFT_ISO88026 = 0xa
243 IFT_LAPB = 0x10
244 IFT_LOCALTALK = 0x2a
245 IFT_LOOP = 0x18
246 IFT_MIOX25 = 0x26
247 IFT_MODEM = 0x30
248 IFT_NSIP = 0x1b
249 IFT_OTHER = 0x1
250 IFT_P10 = 0xc
251 IFT_P80 = 0xd
252 IFT_PARA = 0x22
253 IFT_PPP = 0x17
254 IFT_PROPMUX = 0x36
255 IFT_PROPVIRTUAL = 0x35
256 IFT_PTPSERIAL = 0x16
257 IFT_RS232 = 0x21
258 IFT_SDLC = 0x11
259 IFT_SIP = 0x1f
260 IFT_SLIP = 0x1c
261 IFT_SMDSDXI = 0x2b
262 IFT_SMDSICIP = 0x34
263 IFT_SN = 0x38
264 IFT_SONET = 0x27
265 IFT_SONETPATH = 0x32
266 IFT_SONETVT = 0x33
267 IFT_SP = 0x39
268 IFT_STARLAN = 0xb
269 IFT_T1 = 0x12
270 IFT_TUNNEL = 0x3b
271 IFT_ULTRA = 0x1d
272 IFT_V35 = 0x2d
273 IFT_VIPA = 0x37
274 IFT_X25 = 0x5
275 IFT_X25DDN = 0x4
276 IFT_X25PLE = 0x28
277 IFT_XETHER = 0x1a
278 IGNBRK = 0x1
279 IGNCR = 0x80
280 IGNPAR = 0x4
281 IMAXBEL = 0x10000
282 INLCR = 0x40
283 INPCK = 0x10
284 IN_CLASSA_HOST = 0xffffff
285 IN_CLASSA_MAX = 0x80
286 IN_CLASSA_NET = 0xff000000
287 IN_CLASSA_NSHIFT = 0x18
288 IN_CLASSB_HOST = 0xffff
289 IN_CLASSB_MAX = 0x10000
290 IN_CLASSB_NET = 0xffff0000
291 IN_CLASSB_NSHIFT = 0x10
292 IN_CLASSC_HOST = 0xff
293 IN_CLASSC_NET = 0xffffff00
294 IN_CLASSC_NSHIFT = 0x8
295 IN_CLASSD_HOST = 0xfffffff
296 IN_CLASSD_NET = 0xf0000000
297 IN_CLASSD_NSHIFT = 0x1c
298 IN_LOOPBACKNET = 0x7f
299 IN_USE = 0x1
300 IPPROTO_AH = 0x33
301 IPPROTO_BIP = 0x53
302 IPPROTO_DSTOPTS = 0x3c
303 IPPROTO_EGP = 0x8
304 IPPROTO_EON = 0x50
305 IPPROTO_ESP = 0x32
306 IPPROTO_FRAGMENT = 0x2c
307 IPPROTO_GGP = 0x3
308 IPPROTO_GIF = 0x8c
309 IPPROTO_GRE = 0x2f
310 IPPROTO_HOPOPTS = 0x0
311 IPPROTO_ICMP = 0x1
312 IPPROTO_ICMPV6 = 0x3a
313 IPPROTO_IDP = 0x16
314 IPPROTO_IGMP = 0x2
315 IPPROTO_IP = 0x0
316 IPPROTO_IPIP = 0x4
317 IPPROTO_IPV6 = 0x29
318 IPPROTO_LOCAL = 0x3f
319 IPPROTO_MAX = 0x100
320 IPPROTO_MH = 0x87
321 IPPROTO_NONE = 0x3b
322 IPPROTO_PUP = 0xc
323 IPPROTO_QOS = 0x2d
324 IPPROTO_RAW = 0xff
325 IPPROTO_ROUTING = 0x2b
326 IPPROTO_RSVP = 0x2e
327 IPPROTO_SCTP = 0x84
328 IPPROTO_TCP = 0x6
329 IPPROTO_TP = 0x1d
330 IPPROTO_UDP = 0x11
331 IPV6_ADDRFORM = 0x16
332 IPV6_ADDR_PREFERENCES = 0x4a
333 IPV6_ADD_MEMBERSHIP = 0xc
334 IPV6_AIXRAWSOCKET = 0x39
335 IPV6_CHECKSUM = 0x27
336 IPV6_DONTFRAG = 0x2d
337 IPV6_DROP_MEMBERSHIP = 0xd
338 IPV6_DSTOPTS = 0x36
339 IPV6_FLOWINFO_FLOWLABEL = 0xffffff
340 IPV6_FLOWINFO_PRIFLOW = 0xfffffff
341 IPV6_FLOWINFO_PRIORITY = 0xf000000
342 IPV6_FLOWINFO_SRFLAG = 0x10000000
343 IPV6_FLOWINFO_VERSION = 0xf0000000
344 IPV6_HOPLIMIT = 0x28
345 IPV6_HOPOPTS = 0x34
346 IPV6_JOIN_GROUP = 0xc
347 IPV6_LEAVE_GROUP = 0xd
348 IPV6_MIPDSTOPTS = 0x36
349 IPV6_MULTICAST_HOPS = 0xa
350 IPV6_MULTICAST_IF = 0x9
351 IPV6_MULTICAST_LOOP = 0xb
352 IPV6_NEXTHOP = 0x30
353 IPV6_NOPROBE = 0x1c
354 IPV6_PATHMTU = 0x2e
355 IPV6_PKTINFO = 0x21
356 IPV6_PKTOPTIONS = 0x24
357 IPV6_PRIORITY_10 = 0xa000000
358 IPV6_PRIORITY_11 = 0xb000000
359 IPV6_PRIORITY_12 = 0xc000000
360 IPV6_PRIORITY_13 = 0xd000000
361 IPV6_PRIORITY_14 = 0xe000000
362 IPV6_PRIORITY_15 = 0xf000000
363 IPV6_PRIORITY_8 = 0x8000000
364 IPV6_PRIORITY_9 = 0x9000000
365 IPV6_PRIORITY_BULK = 0x4000000
366 IPV6_PRIORITY_CONTROL = 0x7000000
367 IPV6_PRIORITY_FILLER = 0x1000000
368 IPV6_PRIORITY_INTERACTIVE = 0x6000000
369 IPV6_PRIORITY_RESERVED1 = 0x3000000
370 IPV6_PRIORITY_RESERVED2 = 0x5000000
371 IPV6_PRIORITY_UNATTENDED = 0x2000000
372 IPV6_PRIORITY_UNCHARACTERIZED = 0x0
373 IPV6_RECVDSTOPTS = 0x38
374 IPV6_RECVHOPLIMIT = 0x29
375 IPV6_RECVHOPOPTS = 0x35
376 IPV6_RECVHOPS = 0x22
377 IPV6_RECVIF = 0x1e
378 IPV6_RECVPATHMTU = 0x2f
379 IPV6_RECVPKTINFO = 0x23
380 IPV6_RECVRTHDR = 0x33
381 IPV6_RECVSRCRT = 0x1d
382 IPV6_RECVTCLASS = 0x2a
383 IPV6_RTHDR = 0x32
384 IPV6_RTHDRDSTOPTS = 0x37
385 IPV6_RTHDR_TYPE_0 = 0x0
386 IPV6_RTHDR_TYPE_2 = 0x2
387 IPV6_SENDIF = 0x1f
388 IPV6_SRFLAG_LOOSE = 0x0
389 IPV6_SRFLAG_STRICT = 0x10000000
390 IPV6_TCLASS = 0x2b
391 IPV6_TOKEN_LENGTH = 0x40
392 IPV6_UNICAST_HOPS = 0x4
393 IPV6_USE_MIN_MTU = 0x2c
394 IPV6_V6ONLY = 0x25
395 IPV6_VERSION = 0x60000000
396 IP_ADDRFORM = 0x16
397 IP_ADD_MEMBERSHIP = 0xc
398 IP_ADD_SOURCE_MEMBERSHIP = 0x3c
399 IP_BLOCK_SOURCE = 0x3a
400 IP_BROADCAST_IF = 0x10
401 IP_CACHE_LINE_SIZE = 0x80
402 IP_DEFAULT_MULTICAST_LOOP = 0x1
403 IP_DEFAULT_MULTICAST_TTL = 0x1
404 IP_DF = 0x4000
405 IP_DHCPMODE = 0x11
406 IP_DONTFRAG = 0x19
407 IP_DROP_MEMBERSHIP = 0xd
408 IP_DROP_SOURCE_MEMBERSHIP = 0x3d
409 IP_FINDPMTU = 0x1a
410 IP_HDRINCL = 0x2
411 IP_INC_MEMBERSHIPS = 0x14
412 IP_INIT_MEMBERSHIP = 0x14
413 IP_MAXPACKET = 0xffff
414 IP_MF = 0x2000
415 IP_MSS = 0x240
416 IP_MULTICAST_HOPS = 0xa
417 IP_MULTICAST_IF = 0x9
418 IP_MULTICAST_LOOP = 0xb
419 IP_MULTICAST_TTL = 0xa
420 IP_OPT = 0x1b
421 IP_OPTIONS = 0x1
422 IP_PMTUAGE = 0x1b
423 IP_RECVDSTADDR = 0x7
424 IP_RECVIF = 0x14
425 IP_RECVIFINFO = 0xf
426 IP_RECVINTERFACE = 0x20
427 IP_RECVMACHDR = 0xe
428 IP_RECVOPTS = 0x5
429 IP_RECVRETOPTS = 0x6
430 IP_RECVTTL = 0x22
431 IP_RETOPTS = 0x8
432 IP_SOURCE_FILTER = 0x48
433 IP_TOS = 0x3
434 IP_TTL = 0x4
435 IP_UNBLOCK_SOURCE = 0x3b
436 IP_UNICAST_HOPS = 0x4
437 ISIG = 0x1
438 ISTRIP = 0x20
439 IUCLC = 0x800
440 IXANY = 0x1000
441 IXOFF = 0x400
442 IXON = 0x200
443 I_FLUSH = 0x20005305
444 LNOFLSH = 0x8000
445 LOCK_EX = 0x2
446 LOCK_NB = 0x4
447 LOCK_SH = 0x1
448 LOCK_UN = 0x8
449 MADV_DONTNEED = 0x4
450 MADV_NORMAL = 0x0
451 MADV_RANDOM = 0x1
452 MADV_SEQUENTIAL = 0x2
453 MADV_SPACEAVAIL = 0x5
454 MADV_WILLNEED = 0x3
455 MAP_ANON = 0x10
456 MAP_ANONYMOUS = 0x10
457 MAP_FILE = 0x0
458 MAP_FIXED = 0x100
459 MAP_PRIVATE = 0x2
460 MAP_SHARED = 0x1
461 MAP_TYPE = 0xf0
462 MAP_VARIABLE = 0x0
463 MCAST_BLOCK_SOURCE = 0x40
464 MCAST_EXCLUDE = 0x2
465 MCAST_INCLUDE = 0x1
466 MCAST_JOIN_GROUP = 0x3e
467 MCAST_JOIN_SOURCE_GROUP = 0x42
468 MCAST_LEAVE_GROUP = 0x3f
469 MCAST_LEAVE_SOURCE_GROUP = 0x43
470 MCAST_SOURCE_FILTER = 0x49
471 MCAST_UNBLOCK_SOURCE = 0x41
472 MCL_CURRENT = 0x100
473 MCL_FUTURE = 0x200
474 MSG_ANY = 0x4
475 MSG_ARGEXT = 0x400
476 MSG_BAND = 0x2
477 MSG_COMPAT = 0x8000
478 MSG_CTRUNC = 0x20
479 MSG_DONTROUTE = 0x4
480 MSG_EOR = 0x8
481 MSG_HIPRI = 0x1
482 MSG_MAXIOVLEN = 0x10
483 MSG_MPEG2 = 0x80
484 MSG_NONBLOCK = 0x4000
485 MSG_NOSIGNAL = 0x100
486 MSG_OOB = 0x1
487 MSG_PEEK = 0x2
488 MSG_TRUNC = 0x10
489 MSG_WAITALL = 0x40
490 MSG_WAITFORONE = 0x200
491 MS_ASYNC = 0x10
492 MS_EINTR = 0x80
493 MS_INVALIDATE = 0x40
494 MS_PER_SEC = 0x3e8
495 MS_SYNC = 0x20
496 NFDBITS = 0x40
497 NL0 = 0x0
498 NL1 = 0x4000
499 NL2 = 0x8000
500 NL3 = 0xc000
501 NLDLY = 0x4000
502 NOFLSH = 0x80
503 NOFLUSH = 0x80000000
504 OCRNL = 0x8
505 OFDEL = 0x80
506 OFILL = 0x40
507 OLCUC = 0x2
508 ONLCR = 0x4
509 ONLRET = 0x20
510 ONOCR = 0x10
511 ONOEOT = 0x80000
512 OPOST = 0x1
513 OXTABS = 0x40000
514 O_ACCMODE = 0x23
515 O_APPEND = 0x8
516 O_CIO = 0x80
517 O_CIOR = 0x800000000
518 O_CLOEXEC = 0x800000
519 O_CREAT = 0x100
520 O_DEFER = 0x2000
521 O_DELAY = 0x4000
522 O_DIRECT = 0x8000000
523 O_DIRECTORY = 0x80000
524 O_DSYNC = 0x400000
525 O_EFSOFF = 0x400000000
526 O_EFSON = 0x200000000
527 O_EXCL = 0x400
528 O_EXEC = 0x20
529 O_LARGEFILE = 0x4000000
530 O_NDELAY = 0x8000
531 O_NOCACHE = 0x100000
532 O_NOCTTY = 0x800
533 O_NOFOLLOW = 0x1000000
534 O_NONBLOCK = 0x4
535 O_NONE = 0x3
536 O_NSHARE = 0x10000
537 O_RAW = 0x100000000
538 O_RDONLY = 0x0
539 O_RDWR = 0x2
540 O_RSHARE = 0x1000
541 O_RSYNC = 0x200000
542 O_SEARCH = 0x20
543 O_SNAPSHOT = 0x40
544 O_SYNC = 0x10
545 O_TRUNC = 0x200
546 O_TTY_INIT = 0x0
547 O_WRONLY = 0x1
548 PARENB = 0x100
549 PAREXT = 0x100000
550 PARMRK = 0x8
551 PARODD = 0x200
552 PENDIN = 0x20000000
553 PRIO_PGRP = 0x1
554 PRIO_PROCESS = 0x0
555 PRIO_USER = 0x2
556 PROT_EXEC = 0x4
557 PROT_NONE = 0x0
558 PROT_READ = 0x1
559 PROT_WRITE = 0x2
560 PR_64BIT = 0x20
561 PR_ADDR = 0x2
562 PR_ARGEXT = 0x400
563 PR_ATOMIC = 0x1
564 PR_CONNREQUIRED = 0x4
565 PR_FASTHZ = 0x5
566 PR_INP = 0x40
567 PR_INTRLEVEL = 0x8000
568 PR_MLS = 0x100
569 PR_MLS_1_LABEL = 0x200
570 PR_NOEOR = 0x4000
571 PR_RIGHTS = 0x10
572 PR_SLOWHZ = 0x2
573 PR_WANTRCVD = 0x8
574 RLIMIT_AS = 0x6
575 RLIMIT_CORE = 0x4
576 RLIMIT_CPU = 0x0
577 RLIMIT_DATA = 0x2
578 RLIMIT_FSIZE = 0x1
579 RLIMIT_NOFILE = 0x7
580 RLIMIT_NPROC = 0x9
581 RLIMIT_RSS = 0x5
582 RLIMIT_STACK = 0x3
583 RLIM_INFINITY = 0x7fffffffffffffff
584 RTAX_AUTHOR = 0x6
585 RTAX_BRD = 0x7
586 RTAX_DST = 0x0
587 RTAX_GATEWAY = 0x1
588 RTAX_GENMASK = 0x3
589 RTAX_IFA = 0x5
590 RTAX_IFP = 0x4
591 RTAX_MAX = 0x8
592 RTAX_NETMASK = 0x2
593 RTA_AUTHOR = 0x40
594 RTA_BRD = 0x80
595 RTA_DOWNSTREAM = 0x100
596 RTA_DST = 0x1
597 RTA_GATEWAY = 0x2
598 RTA_GENMASK = 0x8
599 RTA_IFA = 0x20
600 RTA_IFP = 0x10
601 RTA_NETMASK = 0x4
602 RTC_IA64 = 0x3
603 RTC_POWER = 0x1
604 RTC_POWER_PC = 0x2
605 RTF_ACTIVE_DGD = 0x1000000
606 RTF_BCE = 0x80000
607 RTF_BLACKHOLE = 0x1000
608 RTF_BROADCAST = 0x400000
609 RTF_BUL = 0x2000
610 RTF_CLONE = 0x10000
611 RTF_CLONED = 0x20000
612 RTF_CLONING = 0x100
613 RTF_DONE = 0x40
614 RTF_DYNAMIC = 0x10
615 RTF_FREE_IN_PROG = 0x4000000
616 RTF_GATEWAY = 0x2
617 RTF_HOST = 0x4
618 RTF_LLINFO = 0x400
619 RTF_LOCAL = 0x200000
620 RTF_MASK = 0x80
621 RTF_MODIFIED = 0x20
622 RTF_MULTICAST = 0x800000
623 RTF_PERMANENT6 = 0x8000000
624 RTF_PINNED = 0x100000
625 RTF_PROTO1 = 0x8000
626 RTF_PROTO2 = 0x4000
627 RTF_PROTO3 = 0x40000
628 RTF_REJECT = 0x8
629 RTF_SMALLMTU = 0x40000
630 RTF_STATIC = 0x800
631 RTF_STOPSRCH = 0x2000000
632 RTF_UNREACHABLE = 0x10000000
633 RTF_UP = 0x1
634 RTF_XRESOLVE = 0x200
635 RTM_ADD = 0x1
636 RTM_CHANGE = 0x3
637 RTM_DELADDR = 0xd
638 RTM_DELETE = 0x2
639 RTM_EXPIRE = 0xf
640 RTM_GET = 0x4
641 RTM_GETNEXT = 0x11
642 RTM_IFINFO = 0xe
643 RTM_LOCK = 0x8
644 RTM_LOSING = 0x5
645 RTM_MISS = 0x7
646 RTM_NEWADDR = 0xc
647 RTM_OLDADD = 0x9
648 RTM_OLDDEL = 0xa
649 RTM_REDIRECT = 0x6
650 RTM_RESOLVE = 0xb
651 RTM_RTLOST = 0x10
652 RTM_RTTUNIT = 0xf4240
653 RTM_SAMEADDR = 0x12
654 RTM_SET = 0x13
655 RTM_VERSION = 0x2
656 RTM_VERSION_GR = 0x4
657 RTM_VERSION_GR_COMPAT = 0x3
658 RTM_VERSION_POLICY = 0x5
659 RTM_VERSION_POLICY_EXT = 0x6
660 RTM_VERSION_POLICY_PRFN = 0x7
661 RTV_EXPIRE = 0x4
662 RTV_HOPCOUNT = 0x2
663 RTV_MTU = 0x1
664 RTV_RPIPE = 0x8
665 RTV_RTT = 0x40
666 RTV_RTTVAR = 0x80
667 RTV_SPIPE = 0x10
668 RTV_SSTHRESH = 0x20
669 RUSAGE_CHILDREN = -0x1
670 RUSAGE_SELF = 0x0
671 RUSAGE_THREAD = 0x1
672 SCM_RIGHTS = 0x1
673 SHUT_RD = 0x0
674 SHUT_RDWR = 0x2
675 SHUT_WR = 0x1
676 SIGMAX64 = 0xff
677 SIGQUEUE_MAX = 0x20
678 SIOCADDIFVIPA = 0x20006942
679 SIOCADDMTU = -0x7ffb9690
680 SIOCADDMULTI = -0x7fdf96cf
681 SIOCADDNETID = -0x7fd796a9
682 SIOCADDRT = -0x7fc78df6
683 SIOCAIFADDR = -0x7fbf96e6
684 SIOCATMARK = 0x40047307
685 SIOCDARP = -0x7fb396e0
686 SIOCDELIFVIPA = 0x20006943
687 SIOCDELMTU = -0x7ffb968f
688 SIOCDELMULTI = -0x7fdf96ce
689 SIOCDELPMTU = -0x7fd78ff6
690 SIOCDELRT = -0x7fc78df5
691 SIOCDIFADDR = -0x7fd796e7
692 SIOCDNETOPT = -0x3ffe9680
693 SIOCDX25XLATE = -0x7fd7969b
694 SIOCFIFADDR = -0x7fdf966d
695 SIOCGARP = -0x3fb396da
696 SIOCGETMTUS = 0x2000696f
697 SIOCGETSGCNT = -0x3feb8acc
698 SIOCGETVIFCNT = -0x3feb8acd
699 SIOCGHIWAT = 0x40047301
700 SIOCGIFADDR = -0x3fd796df
701 SIOCGIFADDRS = 0x2000698c
702 SIOCGIFBAUDRATE = -0x3fdf9669
703 SIOCGIFBRDADDR = -0x3fd796dd
704 SIOCGIFCONF = -0x3fef96bb
705 SIOCGIFCONFGLOB = -0x3fef9670
706 SIOCGIFDSTADDR = -0x3fd796de
707 SIOCGIFFLAGS = -0x3fd796ef
708 SIOCGIFGIDLIST = 0x20006968
709 SIOCGIFHWADDR = -0x3fab966b
710 SIOCGIFMETRIC = -0x3fd796e9
711 SIOCGIFMTU = -0x3fd796aa
712 SIOCGIFNETMASK = -0x3fd796db
713 SIOCGIFOPTIONS = -0x3fd796d6
714 SIOCGISNO = -0x3fd79695
715 SIOCGLOADF = -0x3ffb967e
716 SIOCGLOWAT = 0x40047303
717 SIOCGNETOPT = -0x3ffe96a5
718 SIOCGNETOPT1 = -0x3fdf967f
719 SIOCGNMTUS = 0x2000696e
720 SIOCGPGRP = 0x40047309
721 SIOCGSIZIFCONF = 0x4004696a
722 SIOCGSRCFILTER = -0x3fe796cb
723 SIOCGTUNEPHASE = -0x3ffb9676
724 SIOCGX25XLATE = -0x3fd7969c
725 SIOCIFATTACH = -0x7fdf9699
726 SIOCIFDETACH = -0x7fdf969a
727 SIOCIFGETPKEY = -0x7fdf969b
728 SIOCIF_ATM_DARP = -0x7fdf9683
729 SIOCIF_ATM_DUMPARP = -0x7fdf9685
730 SIOCIF_ATM_GARP = -0x7fdf9682
731 SIOCIF_ATM_IDLE = -0x7fdf9686
732 SIOCIF_ATM_SARP = -0x7fdf9681
733 SIOCIF_ATM_SNMPARP = -0x7fdf9687
734 SIOCIF_ATM_SVC = -0x7fdf9684
735 SIOCIF_ATM_UBR = -0x7fdf9688
736 SIOCIF_DEVHEALTH = -0x7ffb966c
737 SIOCIF_IB_ARP_INCOMP = -0x7fdf9677
738 SIOCIF_IB_ARP_TIMER = -0x7fdf9678
739 SIOCIF_IB_CLEAR_PINFO = -0x3fdf966f
740 SIOCIF_IB_DEL_ARP = -0x7fdf967f
741 SIOCIF_IB_DEL_PINFO = -0x3fdf9670
742 SIOCIF_IB_DUMP_ARP = -0x7fdf9680
743 SIOCIF_IB_GET_ARP = -0x7fdf967e
744 SIOCIF_IB_GET_INFO = -0x3f879675
745 SIOCIF_IB_GET_STATS = -0x3f879672
746 SIOCIF_IB_NOTIFY_ADDR_REM = -0x3f87966a
747 SIOCIF_IB_RESET_STATS = -0x3f879671
748 SIOCIF_IB_RESIZE_CQ = -0x7fdf9679
749 SIOCIF_IB_SET_ARP = -0x7fdf967d
750 SIOCIF_IB_SET_PKEY = -0x7fdf967c
751 SIOCIF_IB_SET_PORT = -0x7fdf967b
752 SIOCIF_IB_SET_QKEY = -0x7fdf9676
753 SIOCIF_IB_SET_QSIZE = -0x7fdf967a
754 SIOCLISTIFVIPA = 0x20006944
755 SIOCSARP = -0x7fb396e2
756 SIOCSHIWAT = 0xffffffff80047300
757 SIOCSIFADDR = -0x7fd796f4
758 SIOCSIFADDRORI = -0x7fdb9673
759 SIOCSIFBRDADDR = -0x7fd796ed
760 SIOCSIFDSTADDR = -0x7fd796f2
761 SIOCSIFFLAGS = -0x7fd796f0
762 SIOCSIFGIDLIST = 0x20006969
763 SIOCSIFMETRIC = -0x7fd796e8
764 SIOCSIFMTU = -0x7fd796a8
765 SIOCSIFNETDUMP = -0x7fd796e4
766 SIOCSIFNETMASK = -0x7fd796ea
767 SIOCSIFOPTIONS = -0x7fd796d7
768 SIOCSIFSUBCHAN = -0x7fd796e5
769 SIOCSISNO = -0x7fd79694
770 SIOCSLOADF = -0x3ffb967d
771 SIOCSLOWAT = 0xffffffff80047302
772 SIOCSNETOPT = -0x7ffe96a6
773 SIOCSPGRP = 0xffffffff80047308
774 SIOCSX25XLATE = -0x7fd7969d
775 SOCK_CONN_DGRAM = 0x6
776 SOCK_DGRAM = 0x2
777 SOCK_RAW = 0x3
778 SOCK_RDM = 0x4
779 SOCK_SEQPACKET = 0x5
780 SOCK_STREAM = 0x1
781 SOL_SOCKET = 0xffff
782 SOMAXCONN = 0x400
783 SO_ACCEPTCONN = 0x2
784 SO_AUDIT = 0x8000
785 SO_BROADCAST = 0x20
786 SO_CKSUMRECV = 0x800
787 SO_DEBUG = 0x1
788 SO_DONTROUTE = 0x10
789 SO_ERROR = 0x1007
790 SO_KEEPALIVE = 0x8
791 SO_KERNACCEPT = 0x2000
792 SO_LINGER = 0x80
793 SO_NOMULTIPATH = 0x4000
794 SO_NOREUSEADDR = 0x1000
795 SO_OOBINLINE = 0x100
796 SO_PEERID = 0x1009
797 SO_RCVBUF = 0x1002
798 SO_RCVLOWAT = 0x1004
799 SO_RCVTIMEO = 0x1006
800 SO_REUSEADDR = 0x4
801 SO_REUSEPORT = 0x200
802 SO_SNDBUF = 0x1001
803 SO_SNDLOWAT = 0x1003
804 SO_SNDTIMEO = 0x1005
805 SO_TIMESTAMPNS = 0x100a
806 SO_TYPE = 0x1008
807 SO_USELOOPBACK = 0x40
808 SO_USE_IFBUFS = 0x400
809 S_BANDURG = 0x400
810 S_EMODFMT = 0x3c000000
811 S_ENFMT = 0x400
812 S_ERROR = 0x100
813 S_HANGUP = 0x200
814 S_HIPRI = 0x2
815 S_ICRYPTO = 0x80000
816 S_IEXEC = 0x40
817 S_IFBLK = 0x6000
818 S_IFCHR = 0x2000
819 S_IFDIR = 0x4000
820 S_IFIFO = 0x1000
821 S_IFJOURNAL = 0x10000
822 S_IFLNK = 0xa000
823 S_IFMPX = 0x2200
824 S_IFMT = 0xf000
825 S_IFPDIR = 0x4000000
826 S_IFPSDIR = 0x8000000
827 S_IFPSSDIR = 0xc000000
828 S_IFREG = 0x8000
829 S_IFSOCK = 0xc000
830 S_IFSYSEA = 0x30000000
831 S_INPUT = 0x1
832 S_IREAD = 0x100
833 S_IRGRP = 0x20
834 S_IROTH = 0x4
835 S_IRUSR = 0x100
836 S_IRWXG = 0x38
837 S_IRWXO = 0x7
838 S_IRWXU = 0x1c0
839 S_ISGID = 0x400
840 S_ISUID = 0x800
841 S_ISVTX = 0x200
842 S_ITCB = 0x1000000
843 S_ITP = 0x800000
844 S_IWGRP = 0x10
845 S_IWOTH = 0x2
846 S_IWRITE = 0x80
847 S_IWUSR = 0x80
848 S_IXACL = 0x2000000
849 S_IXATTR = 0x40000
850 S_IXGRP = 0x8
851 S_IXINTERFACE = 0x100000
852 S_IXMOD = 0x40000000
853 S_IXOTH = 0x1
854 S_IXUSR = 0x40
855 S_MSG = 0x8
856 S_OUTPUT = 0x4
857 S_RDBAND = 0x20
858 S_RDNORM = 0x10
859 S_RESERVED1 = 0x20000
860 S_RESERVED2 = 0x200000
861 S_RESERVED3 = 0x400000
862 S_RESERVED4 = 0x80000000
863 S_RESFMT1 = 0x10000000
864 S_RESFMT10 = 0x34000000
865 S_RESFMT11 = 0x38000000
866 S_RESFMT12 = 0x3c000000
867 S_RESFMT2 = 0x14000000
868 S_RESFMT3 = 0x18000000
869 S_RESFMT4 = 0x1c000000
870 S_RESFMT5 = 0x20000000
871 S_RESFMT6 = 0x24000000
872 S_RESFMT7 = 0x28000000
873 S_RESFMT8 = 0x2c000000
874 S_WRBAND = 0x80
875 S_WRNORM = 0x40
876 TAB0 = 0x0
877 TAB1 = 0x400
878 TAB2 = 0x800
879 TAB3 = 0xc00
880 TABDLY = 0xc00
881 TCFLSH = 0x540c
882 TCGETA = 0x5405
883 TCGETS = 0x5401
884 TCIFLUSH = 0x0
885 TCIOFF = 0x2
886 TCIOFLUSH = 0x2
887 TCION = 0x3
888 TCOFLUSH = 0x1
889 TCOOFF = 0x0
890 TCOON = 0x1
891 TCP_24DAYS_WORTH_OF_SLOWTICKS = 0x3f4800
892 TCP_ACLADD = 0x23
893 TCP_ACLBIND = 0x26
894 TCP_ACLCLEAR = 0x22
895 TCP_ACLDEL = 0x24
896 TCP_ACLDENY = 0x8
897 TCP_ACLFLUSH = 0x21
898 TCP_ACLGID = 0x1
899 TCP_ACLLS = 0x25
900 TCP_ACLSUBNET = 0x4
901 TCP_ACLUID = 0x2
902 TCP_CWND_DF = 0x16
903 TCP_CWND_IF = 0x15
904 TCP_DELAY_ACK_FIN = 0x2
905 TCP_DELAY_ACK_SYN = 0x1
906 TCP_FASTNAME = 0x101080a
907 TCP_KEEPCNT = 0x13
908 TCP_KEEPIDLE = 0x11
909 TCP_KEEPINTVL = 0x12
910 TCP_LSPRIV = 0x29
911 TCP_LUID = 0x20
912 TCP_MAXBURST = 0x8
913 TCP_MAXDF = 0x64
914 TCP_MAXIF = 0x64
915 TCP_MAXSEG = 0x2
916 TCP_MAXWIN = 0xffff
917 TCP_MAXWINDOWSCALE = 0xe
918 TCP_MAX_SACK = 0x4
919 TCP_MSS = 0x5b4
920 TCP_NODELAY = 0x1
921 TCP_NODELAYACK = 0x14
922 TCP_NOREDUCE_CWND_EXIT_FRXMT = 0x19
923 TCP_NOREDUCE_CWND_IN_FRXMT = 0x18
924 TCP_NOTENTER_SSTART = 0x17
925 TCP_OPT = 0x19
926 TCP_RFC1323 = 0x4
927 TCP_SETPRIV = 0x27
928 TCP_STDURG = 0x10
929 TCP_TIMESTAMP_OPTLEN = 0xc
930 TCP_UNSETPRIV = 0x28
931 TCSAFLUSH = 0x2
932 TCSBRK = 0x5409
933 TCSETA = 0x5406
934 TCSETAF = 0x5408
935 TCSETAW = 0x5407
936 TCSETS = 0x5402
937 TCSETSF = 0x5404
938 TCSETSW = 0x5403
939 TCXONC = 0x540b
940 TIMER_ABSTIME = 0x3e7
941 TIMER_MAX = 0x20
942 TIOC = 0x5400
943 TIOCCBRK = 0x2000747a
944 TIOCCDTR = 0x20007478
945 TIOCCONS = 0xffffffff80047462
946 TIOCEXCL = 0x2000740d
947 TIOCFLUSH = 0xffffffff80047410
948 TIOCGETC = 0x40067412
949 TIOCGETD = 0x40047400
950 TIOCGETP = 0x40067408
951 TIOCGLTC = 0x40067474
952 TIOCGPGRP = 0x40047477
953 TIOCGSID = 0x40047448
954 TIOCGSIZE = 0x40087468
955 TIOCGWINSZ = 0x40087468
956 TIOCHPCL = 0x20007402
957 TIOCLBIC = 0xffffffff8004747e
958 TIOCLBIS = 0xffffffff8004747f
959 TIOCLGET = 0x4004747c
960 TIOCLSET = 0xffffffff8004747d
961 TIOCMBIC = 0xffffffff8004746b
962 TIOCMBIS = 0xffffffff8004746c
963 TIOCMGET = 0x4004746a
964 TIOCMIWAIT = 0xffffffff80047464
965 TIOCMODG = 0x40047403
966 TIOCMODS = 0xffffffff80047404
967 TIOCMSET = 0xffffffff8004746d
968 TIOCM_CAR = 0x40
969 TIOCM_CD = 0x40
970 TIOCM_CTS = 0x20
971 TIOCM_DSR = 0x100
972 TIOCM_DTR = 0x2
973 TIOCM_LE = 0x1
974 TIOCM_RI = 0x80
975 TIOCM_RNG = 0x80
976 TIOCM_RTS = 0x4
977 TIOCM_SR = 0x10
978 TIOCM_ST = 0x8
979 TIOCNOTTY = 0x20007471
980 TIOCNXCL = 0x2000740e
981 TIOCOUTQ = 0x40047473
982 TIOCPKT = 0xffffffff80047470
983 TIOCPKT_DATA = 0x0
984 TIOCPKT_DOSTOP = 0x20
985 TIOCPKT_FLUSHREAD = 0x1
986 TIOCPKT_FLUSHWRITE = 0x2
987 TIOCPKT_NOSTOP = 0x10
988 TIOCPKT_START = 0x8
989 TIOCPKT_STOP = 0x4
990 TIOCREMOTE = 0xffffffff80047469
991 TIOCSBRK = 0x2000747b
992 TIOCSDTR = 0x20007479
993 TIOCSETC = 0xffffffff80067411
994 TIOCSETD = 0xffffffff80047401
995 TIOCSETN = 0xffffffff8006740a
996 TIOCSETP = 0xffffffff80067409
997 TIOCSLTC = 0xffffffff80067475
998 TIOCSPGRP = 0xffffffff80047476
999 TIOCSSIZE = 0xffffffff80087467
1000 TIOCSTART = 0x2000746e
1001 TIOCSTI = 0xffffffff80017472
1002 TIOCSTOP = 0x2000746f
1003 TIOCSWINSZ = 0xffffffff80087467
1004 TIOCUCNTL = 0xffffffff80047466
1005 TOSTOP = 0x10000
1006 UTIME_NOW = -0x2
1007 UTIME_OMIT = -0x3
1008 VDISCRD = 0xc
1009 VDSUSP = 0xa
1010 VEOF = 0x4
1011 VEOL = 0x5
1012 VEOL2 = 0x6
1013 VERASE = 0x2
1014 VINTR = 0x0
1015 VKILL = 0x3
1016 VLNEXT = 0xe
1017 VMIN = 0x4
1018 VQUIT = 0x1
1019 VREPRINT = 0xb
1020 VSTART = 0x7
1021 VSTOP = 0x8
1022 VSTRT = 0x7
1023 VSUSP = 0x9
1024 VT0 = 0x0
1025 VT1 = 0x8000
1026 VTDELAY = 0x2000
1027 VTDLY = 0x8000
1028 VTIME = 0x5
1029 VWERSE = 0xd
1030 WPARSTART = 0x1
1031 WPARSTOP = 0x2
1032 WPARTTYNAME = "Global"
1033 XCASE = 0x4
1034 XTABS = 0xc00
1035 _FDATAFLUSH = 0x2000000000
1036 )
1037
1038
1039 const (
1040 E2BIG = syscall.Errno(0x7)
1041 EACCES = syscall.Errno(0xd)
1042 EADDRINUSE = syscall.Errno(0x43)
1043 EADDRNOTAVAIL = syscall.Errno(0x44)
1044 EAFNOSUPPORT = syscall.Errno(0x42)
1045 EAGAIN = syscall.Errno(0xb)
1046 EALREADY = syscall.Errno(0x38)
1047 EBADF = syscall.Errno(0x9)
1048 EBADMSG = syscall.Errno(0x78)
1049 EBUSY = syscall.Errno(0x10)
1050 ECANCELED = syscall.Errno(0x75)
1051 ECHILD = syscall.Errno(0xa)
1052 ECHRNG = syscall.Errno(0x25)
1053 ECLONEME = syscall.Errno(0x52)
1054 ECONNABORTED = syscall.Errno(0x48)
1055 ECONNREFUSED = syscall.Errno(0x4f)
1056 ECONNRESET = syscall.Errno(0x49)
1057 ECORRUPT = syscall.Errno(0x59)
1058 EDEADLK = syscall.Errno(0x2d)
1059 EDESTADDREQ = syscall.Errno(0x3a)
1060 EDESTADDRREQ = syscall.Errno(0x3a)
1061 EDIST = syscall.Errno(0x35)
1062 EDOM = syscall.Errno(0x21)
1063 EDQUOT = syscall.Errno(0x58)
1064 EEXIST = syscall.Errno(0x11)
1065 EFAULT = syscall.Errno(0xe)
1066 EFBIG = syscall.Errno(0x1b)
1067 EFORMAT = syscall.Errno(0x30)
1068 EHOSTDOWN = syscall.Errno(0x50)
1069 EHOSTUNREACH = syscall.Errno(0x51)
1070 EIDRM = syscall.Errno(0x24)
1071 EILSEQ = syscall.Errno(0x74)
1072 EINPROGRESS = syscall.Errno(0x37)
1073 EINTR = syscall.Errno(0x4)
1074 EINVAL = syscall.Errno(0x16)
1075 EIO = syscall.Errno(0x5)
1076 EISCONN = syscall.Errno(0x4b)
1077 EISDIR = syscall.Errno(0x15)
1078 EL2HLT = syscall.Errno(0x2c)
1079 EL2NSYNC = syscall.Errno(0x26)
1080 EL3HLT = syscall.Errno(0x27)
1081 EL3RST = syscall.Errno(0x28)
1082 ELNRNG = syscall.Errno(0x29)
1083 ELOOP = syscall.Errno(0x55)
1084 EMEDIA = syscall.Errno(0x6e)
1085 EMFILE = syscall.Errno(0x18)
1086 EMLINK = syscall.Errno(0x1f)
1087 EMSGSIZE = syscall.Errno(0x3b)
1088 EMULTIHOP = syscall.Errno(0x7d)
1089 ENAMETOOLONG = syscall.Errno(0x56)
1090 ENETDOWN = syscall.Errno(0x45)
1091 ENETRESET = syscall.Errno(0x47)
1092 ENETUNREACH = syscall.Errno(0x46)
1093 ENFILE = syscall.Errno(0x17)
1094 ENOATTR = syscall.Errno(0x70)
1095 ENOBUFS = syscall.Errno(0x4a)
1096 ENOCONNECT = syscall.Errno(0x32)
1097 ENOCSI = syscall.Errno(0x2b)
1098 ENODATA = syscall.Errno(0x7a)
1099 ENODEV = syscall.Errno(0x13)
1100 ENOENT = syscall.Errno(0x2)
1101 ENOEXEC = syscall.Errno(0x8)
1102 ENOLCK = syscall.Errno(0x31)
1103 ENOLINK = syscall.Errno(0x7e)
1104 ENOMEM = syscall.Errno(0xc)
1105 ENOMSG = syscall.Errno(0x23)
1106 ENOPROTOOPT = syscall.Errno(0x3d)
1107 ENOSPC = syscall.Errno(0x1c)
1108 ENOSR = syscall.Errno(0x76)
1109 ENOSTR = syscall.Errno(0x7b)
1110 ENOSYS = syscall.Errno(0x6d)
1111 ENOTBLK = syscall.Errno(0xf)
1112 ENOTCONN = syscall.Errno(0x4c)
1113 ENOTDIR = syscall.Errno(0x14)
1114 ENOTEMPTY = syscall.Errno(0x11)
1115 ENOTREADY = syscall.Errno(0x2e)
1116 ENOTRECOVERABLE = syscall.Errno(0x5e)
1117 ENOTRUST = syscall.Errno(0x72)
1118 ENOTSOCK = syscall.Errno(0x39)
1119 ENOTSUP = syscall.Errno(0x7c)
1120 ENOTTY = syscall.Errno(0x19)
1121 ENXIO = syscall.Errno(0x6)
1122 EOPNOTSUPP = syscall.Errno(0x40)
1123 EOVERFLOW = syscall.Errno(0x7f)
1124 EOWNERDEAD = syscall.Errno(0x5f)
1125 EPERM = syscall.Errno(0x1)
1126 EPFNOSUPPORT = syscall.Errno(0x41)
1127 EPIPE = syscall.Errno(0x20)
1128 EPROCLIM = syscall.Errno(0x53)
1129 EPROTO = syscall.Errno(0x79)
1130 EPROTONOSUPPORT = syscall.Errno(0x3e)
1131 EPROTOTYPE = syscall.Errno(0x3c)
1132 ERANGE = syscall.Errno(0x22)
1133 EREMOTE = syscall.Errno(0x5d)
1134 ERESTART = syscall.Errno(0x52)
1135 EROFS = syscall.Errno(0x1e)
1136 ESAD = syscall.Errno(0x71)
1137 ESHUTDOWN = syscall.Errno(0x4d)
1138 ESOCKTNOSUPPORT = syscall.Errno(0x3f)
1139 ESOFT = syscall.Errno(0x6f)
1140 ESPIPE = syscall.Errno(0x1d)
1141 ESRCH = syscall.Errno(0x3)
1142 ESTALE = syscall.Errno(0x34)
1143 ESYSERROR = syscall.Errno(0x5a)
1144 ETIME = syscall.Errno(0x77)
1145 ETIMEDOUT = syscall.Errno(0x4e)
1146 ETOOMANYREFS = syscall.Errno(0x73)
1147 ETXTBSY = syscall.Errno(0x1a)
1148 EUNATCH = syscall.Errno(0x2a)
1149 EUSERS = syscall.Errno(0x54)
1150 EWOULDBLOCK = syscall.Errno(0xb)
1151 EWRPROTECT = syscall.Errno(0x2f)
1152 EXDEV = syscall.Errno(0x12)
1153 )
1154
1155
1156 const (
1157 SIGABRT = syscall.Signal(0x6)
1158 SIGAIO = syscall.Signal(0x17)
1159 SIGALRM = syscall.Signal(0xe)
1160 SIGALRM1 = syscall.Signal(0x26)
1161 SIGBUS = syscall.Signal(0xa)
1162 SIGCAPI = syscall.Signal(0x31)
1163 SIGCHLD = syscall.Signal(0x14)
1164 SIGCLD = syscall.Signal(0x14)
1165 SIGCONT = syscall.Signal(0x13)
1166 SIGCPUFAIL = syscall.Signal(0x3b)
1167 SIGDANGER = syscall.Signal(0x21)
1168 SIGEMT = syscall.Signal(0x7)
1169 SIGFPE = syscall.Signal(0x8)
1170 SIGGRANT = syscall.Signal(0x3c)
1171 SIGHUP = syscall.Signal(0x1)
1172 SIGILL = syscall.Signal(0x4)
1173 SIGINT = syscall.Signal(0x2)
1174 SIGIO = syscall.Signal(0x17)
1175 SIGIOINT = syscall.Signal(0x10)
1176 SIGIOT = syscall.Signal(0x6)
1177 SIGKAP = syscall.Signal(0x3c)
1178 SIGKILL = syscall.Signal(0x9)
1179 SIGLOST = syscall.Signal(0x6)
1180 SIGMAX = syscall.Signal(0xff)
1181 SIGMAX32 = syscall.Signal(0x3f)
1182 SIGMIGRATE = syscall.Signal(0x23)
1183 SIGMSG = syscall.Signal(0x1b)
1184 SIGPIPE = syscall.Signal(0xd)
1185 SIGPOLL = syscall.Signal(0x17)
1186 SIGPRE = syscall.Signal(0x24)
1187 SIGPROF = syscall.Signal(0x20)
1188 SIGPTY = syscall.Signal(0x17)
1189 SIGPWR = syscall.Signal(0x1d)
1190 SIGQUIT = syscall.Signal(0x3)
1191 SIGRECONFIG = syscall.Signal(0x3a)
1192 SIGRETRACT = syscall.Signal(0x3d)
1193 SIGSAK = syscall.Signal(0x3f)
1194 SIGSEGV = syscall.Signal(0xb)
1195 SIGSOUND = syscall.Signal(0x3e)
1196 SIGSTOP = syscall.Signal(0x11)
1197 SIGSYS = syscall.Signal(0xc)
1198 SIGSYSERROR = syscall.Signal(0x30)
1199 SIGTALRM = syscall.Signal(0x26)
1200 SIGTERM = syscall.Signal(0xf)
1201 SIGTRAP = syscall.Signal(0x5)
1202 SIGTSTP = syscall.Signal(0x12)
1203 SIGTTIN = syscall.Signal(0x15)
1204 SIGTTOU = syscall.Signal(0x16)
1205 SIGURG = syscall.Signal(0x10)
1206 SIGUSR1 = syscall.Signal(0x1e)
1207 SIGUSR2 = syscall.Signal(0x1f)
1208 SIGVIRT = syscall.Signal(0x25)
1209 SIGVTALRM = syscall.Signal(0x22)
1210 SIGWAITING = syscall.Signal(0x27)
1211 SIGWINCH = syscall.Signal(0x1c)
1212 SIGXCPU = syscall.Signal(0x18)
1213 SIGXFSZ = syscall.Signal(0x19)
1214 )
1215
1216
1217 var errorList = [...]struct {
1218 num syscall.Errno
1219 name string
1220 desc string
1221 }{
1222 {1, "EPERM", "not owner"},
1223 {2, "ENOENT", "no such file or directory"},
1224 {3, "ESRCH", "no such process"},
1225 {4, "EINTR", "interrupted system call"},
1226 {5, "EIO", "I/O error"},
1227 {6, "ENXIO", "no such device or address"},
1228 {7, "E2BIG", "arg list too long"},
1229 {8, "ENOEXEC", "exec format error"},
1230 {9, "EBADF", "bad file number"},
1231 {10, "ECHILD", "no child processes"},
1232 {11, "EWOULDBLOCK", "resource temporarily unavailable"},
1233 {12, "ENOMEM", "not enough space"},
1234 {13, "EACCES", "permission denied"},
1235 {14, "EFAULT", "bad address"},
1236 {15, "ENOTBLK", "block device required"},
1237 {16, "EBUSY", "device busy"},
1238 {17, "ENOTEMPTY", "file exists"},
1239 {18, "EXDEV", "cross-device link"},
1240 {19, "ENODEV", "no such device"},
1241 {20, "ENOTDIR", "not a directory"},
1242 {21, "EISDIR", "is a directory"},
1243 {22, "EINVAL", "invalid argument"},
1244 {23, "ENFILE", "file table overflow"},
1245 {24, "EMFILE", "too many open files"},
1246 {25, "ENOTTY", "not a typewriter"},
1247 {26, "ETXTBSY", "text file busy"},
1248 {27, "EFBIG", "file too large"},
1249 {28, "ENOSPC", "no space left on device"},
1250 {29, "ESPIPE", "illegal seek"},
1251 {30, "EROFS", "read-only file system"},
1252 {31, "EMLINK", "too many links"},
1253 {32, "EPIPE", "broken pipe"},
1254 {33, "EDOM", "argument out of domain"},
1255 {34, "ERANGE", "result too large"},
1256 {35, "ENOMSG", "no message of desired type"},
1257 {36, "EIDRM", "identifier removed"},
1258 {37, "ECHRNG", "channel number out of range"},
1259 {38, "EL2NSYNC", "level 2 not synchronized"},
1260 {39, "EL3HLT", "level 3 halted"},
1261 {40, "EL3RST", "level 3 reset"},
1262 {41, "ELNRNG", "link number out of range"},
1263 {42, "EUNATCH", "protocol driver not attached"},
1264 {43, "ENOCSI", "no CSI structure available"},
1265 {44, "EL2HLT", "level 2 halted"},
1266 {45, "EDEADLK", "deadlock condition if locked"},
1267 {46, "ENOTREADY", "device not ready"},
1268 {47, "EWRPROTECT", "write-protected media"},
1269 {48, "EFORMAT", "unformatted or incompatible media"},
1270 {49, "ENOLCK", "no locks available"},
1271 {50, "ENOCONNECT", "cannot Establish Connection"},
1272 {52, "ESTALE", "missing file or filesystem"},
1273 {53, "EDIST", "requests blocked by Administrator"},
1274 {55, "EINPROGRESS", "operation now in progress"},
1275 {56, "EALREADY", "operation already in progress"},
1276 {57, "ENOTSOCK", "socket operation on non-socket"},
1277 {58, "EDESTADDREQ", "destination address required"},
1278 {59, "EMSGSIZE", "message too long"},
1279 {60, "EPROTOTYPE", "protocol wrong type for socket"},
1280 {61, "ENOPROTOOPT", "protocol not available"},
1281 {62, "EPROTONOSUPPORT", "protocol not supported"},
1282 {63, "ESOCKTNOSUPPORT", "socket type not supported"},
1283 {64, "EOPNOTSUPP", "operation not supported on socket"},
1284 {65, "EPFNOSUPPORT", "protocol family not supported"},
1285 {66, "EAFNOSUPPORT", "addr family not supported by protocol"},
1286 {67, "EADDRINUSE", "address already in use"},
1287 {68, "EADDRNOTAVAIL", "can't assign requested address"},
1288 {69, "ENETDOWN", "network is down"},
1289 {70, "ENETUNREACH", "network is unreachable"},
1290 {71, "ENETRESET", "network dropped connection on reset"},
1291 {72, "ECONNABORTED", "software caused connection abort"},
1292 {73, "ECONNRESET", "connection reset by peer"},
1293 {74, "ENOBUFS", "no buffer space available"},
1294 {75, "EISCONN", "socket is already connected"},
1295 {76, "ENOTCONN", "socket is not connected"},
1296 {77, "ESHUTDOWN", "can't send after socket shutdown"},
1297 {78, "ETIMEDOUT", "connection timed out"},
1298 {79, "ECONNREFUSED", "connection refused"},
1299 {80, "EHOSTDOWN", "host is down"},
1300 {81, "EHOSTUNREACH", "no route to host"},
1301 {82, "ERESTART", "restart the system call"},
1302 {83, "EPROCLIM", "too many processes"},
1303 {84, "EUSERS", "too many users"},
1304 {85, "ELOOP", "too many levels of symbolic links"},
1305 {86, "ENAMETOOLONG", "file name too long"},
1306 {88, "EDQUOT", "disk quota exceeded"},
1307 {89, "ECORRUPT", "invalid file system control data detected"},
1308 {90, "ESYSERROR", "for future use "},
1309 {93, "EREMOTE", "item is not local to host"},
1310 {94, "ENOTRECOVERABLE", "state not recoverable "},
1311 {95, "EOWNERDEAD", "previous owner died "},
1312 {109, "ENOSYS", "function not implemented"},
1313 {110, "EMEDIA", "media surface error"},
1314 {111, "ESOFT", "I/O completed, but needs relocation"},
1315 {112, "ENOATTR", "no attribute found"},
1316 {113, "ESAD", "security Authentication Denied"},
1317 {114, "ENOTRUST", "not a Trusted Program"},
1318 {115, "ETOOMANYREFS", "too many references: can't splice"},
1319 {116, "EILSEQ", "invalid wide character"},
1320 {117, "ECANCELED", "asynchronous I/O cancelled"},
1321 {118, "ENOSR", "out of STREAMS resources"},
1322 {119, "ETIME", "system call timed out"},
1323 {120, "EBADMSG", "next message has wrong type"},
1324 {121, "EPROTO", "error in protocol"},
1325 {122, "ENODATA", "no message on stream head read q"},
1326 {123, "ENOSTR", "fd not associated with a stream"},
1327 {124, "ENOTSUP", "unsupported attribute value"},
1328 {125, "EMULTIHOP", "multihop is not allowed"},
1329 {126, "ENOLINK", "the server link has been severed"},
1330 {127, "EOVERFLOW", "value too large to be stored in data type"},
1331 }
1332
1333
1334 var signalList = [...]struct {
1335 num syscall.Signal
1336 name string
1337 desc string
1338 }{
1339 {1, "SIGHUP", "hangup"},
1340 {2, "SIGINT", "interrupt"},
1341 {3, "SIGQUIT", "quit"},
1342 {4, "SIGILL", "illegal instruction"},
1343 {5, "SIGTRAP", "trace/BPT trap"},
1344 {6, "SIGIOT", "IOT/Abort trap"},
1345 {7, "SIGEMT", "EMT trap"},
1346 {8, "SIGFPE", "floating point exception"},
1347 {9, "SIGKILL", "killed"},
1348 {10, "SIGBUS", "bus error"},
1349 {11, "SIGSEGV", "segmentation fault"},
1350 {12, "SIGSYS", "bad system call"},
1351 {13, "SIGPIPE", "broken pipe"},
1352 {14, "SIGALRM", "alarm clock"},
1353 {15, "SIGTERM", "terminated"},
1354 {16, "SIGURG", "urgent I/O condition"},
1355 {17, "SIGSTOP", "stopped (signal)"},
1356 {18, "SIGTSTP", "stopped"},
1357 {19, "SIGCONT", "continued"},
1358 {20, "SIGCHLD", "child exited"},
1359 {21, "SIGTTIN", "stopped (tty input)"},
1360 {22, "SIGTTOU", "stopped (tty output)"},
1361 {23, "SIGIO", "I/O possible/complete"},
1362 {24, "SIGXCPU", "cputime limit exceeded"},
1363 {25, "SIGXFSZ", "filesize limit exceeded"},
1364 {27, "SIGMSG", "input device data"},
1365 {28, "SIGWINCH", "window size changes"},
1366 {29, "SIGPWR", "power-failure"},
1367 {30, "SIGUSR1", "user defined signal 1"},
1368 {31, "SIGUSR2", "user defined signal 2"},
1369 {32, "SIGPROF", "profiling timer expired"},
1370 {33, "SIGDANGER", "paging space low"},
1371 {34, "SIGVTALRM", "virtual timer expired"},
1372 {35, "SIGMIGRATE", "signal 35"},
1373 {36, "SIGPRE", "signal 36"},
1374 {37, "SIGVIRT", "signal 37"},
1375 {38, "SIGTALRM", "signal 38"},
1376 {39, "SIGWAITING", "signal 39"},
1377 {48, "SIGSYSERROR", "signal 48"},
1378 {49, "SIGCAPI", "signal 49"},
1379 {58, "SIGRECONFIG", "signal 58"},
1380 {59, "SIGCPUFAIL", "CPU Failure Predicted"},
1381 {60, "SIGGRANT", "monitor mode granted"},
1382 {61, "SIGRETRACT", "monitor mode retracted"},
1383 {62, "SIGSOUND", "sound completed"},
1384 {63, "SIGMAX32", "secure attention"},
1385 {255, "SIGMAX", "signal 255"},
1386 }
1387
View as plain text