1
2
3
4
5
6
7
8
9
10 package unix
11
12 const (
13 BRKINT = 0x0001
14 CLOCK_MONOTONIC = 0x1
15 CLOCK_PROCESS_CPUTIME_ID = 0x2
16 CLOCK_REALTIME = 0x0
17 CLOCK_THREAD_CPUTIME_ID = 0x3
18 CS8 = 0x0030
19 CSIZE = 0x0030
20 ECHO = 0x00000008
21 ECHONL = 0x00000001
22 FD_CLOEXEC = 0x01
23 FD_CLOFORK = 0x02
24 FNDELAY = 0x04
25 F_CLOSFD = 9
26 F_CONTROL_CVT = 13
27 F_DUPFD = 0
28 F_DUPFD2 = 8
29 F_GETFD = 1
30 F_GETFL = 259
31 F_GETLK = 5
32 F_GETOWN = 10
33 F_OK = 0x0
34 F_RDLCK = 1
35 F_SETFD = 2
36 F_SETFL = 4
37 F_SETLK = 6
38 F_SETLKW = 7
39 F_SETOWN = 11
40 F_SETTAG = 12
41 F_UNLCK = 3
42 F_WRLCK = 2
43 FSTYPE_ZFS = 0xe9
44 FSTYPE_HFS = 0xc8
45 FSTYPE_NFS = 0xd5
46 FSTYPE_TFS = 0xe3
47 FSTYPE_AUTOMOUNT = 0xc1
48 IP6F_MORE_FRAG = 0x0001
49 IP6F_OFF_MASK = 0xfff8
50 IP6F_RESERVED_MASK = 0x0006
51 IP6OPT_JUMBO = 0xc2
52 IP6OPT_JUMBO_LEN = 6
53 IP6OPT_MUTABLE = 0x20
54 IP6OPT_NSAP_ADDR = 0xc3
55 IP6OPT_PAD1 = 0x00
56 IP6OPT_PADN = 0x01
57 IP6OPT_ROUTER_ALERT = 0x05
58 IP6OPT_TUNNEL_LIMIT = 0x04
59 IP6OPT_TYPE_DISCARD = 0x40
60 IP6OPT_TYPE_FORCEICMP = 0x80
61 IP6OPT_TYPE_ICMP = 0xc0
62 IP6OPT_TYPE_SKIP = 0x00
63 IP6_ALERT_AN = 0x0002
64 IP6_ALERT_MLD = 0x0000
65 IP6_ALERT_RSVP = 0x0001
66 IPPORT_RESERVED = 1024
67 IPPORT_USERRESERVED = 5000
68 IPPROTO_AH = 51
69 SOL_AH = 51
70 IPPROTO_DSTOPTS = 60
71 SOL_DSTOPTS = 60
72 IPPROTO_EGP = 8
73 SOL_EGP = 8
74 IPPROTO_ESP = 50
75 SOL_ESP = 50
76 IPPROTO_FRAGMENT = 44
77 SOL_FRAGMENT = 44
78 IPPROTO_GGP = 2
79 SOL_GGP = 2
80 IPPROTO_HOPOPTS = 0
81 SOL_HOPOPTS = 0
82 IPPROTO_ICMP = 1
83 SOL_ICMP = 1
84 IPPROTO_ICMPV6 = 58
85 SOL_ICMPV6 = 58
86 IPPROTO_IDP = 22
87 SOL_IDP = 22
88 IPPROTO_IP = 0
89 SOL_IP = 0
90 IPPROTO_IPV6 = 41
91 SOL_IPV6 = 41
92 IPPROTO_MAX = 256
93 SOL_MAX = 256
94 IPPROTO_NONE = 59
95 SOL_NONE = 59
96 IPPROTO_PUP = 12
97 SOL_PUP = 12
98 IPPROTO_RAW = 255
99 SOL_RAW = 255
100 IPPROTO_ROUTING = 43
101 SOL_ROUTING = 43
102 IPPROTO_TCP = 6
103 SOL_TCP = 6
104 IPPROTO_UDP = 17
105 SOL_UDP = 17
106 IPV6_ADDR_PREFERENCES = 32
107 IPV6_CHECKSUM = 19
108 IPV6_DONTFRAG = 29
109 IPV6_DSTOPTS = 23
110 IPV6_HOPLIMIT = 11
111 IPV6_HOPOPTS = 22
112 IPV6_JOIN_GROUP = 5
113 IPV6_LEAVE_GROUP = 6
114 IPV6_MULTICAST_HOPS = 9
115 IPV6_MULTICAST_IF = 7
116 IPV6_MULTICAST_LOOP = 4
117 IPV6_NEXTHOP = 20
118 IPV6_PATHMTU = 12
119 IPV6_PKTINFO = 13
120 IPV6_PREFER_SRC_CGA = 0x10
121 IPV6_PREFER_SRC_COA = 0x02
122 IPV6_PREFER_SRC_HOME = 0x01
123 IPV6_PREFER_SRC_NONCGA = 0x20
124 IPV6_PREFER_SRC_PUBLIC = 0x08
125 IPV6_PREFER_SRC_TMP = 0x04
126 IPV6_RECVDSTOPTS = 28
127 IPV6_RECVHOPLIMIT = 14
128 IPV6_RECVHOPOPTS = 26
129 IPV6_RECVPATHMTU = 16
130 IPV6_RECVPKTINFO = 15
131 IPV6_RECVRTHDR = 25
132 IPV6_RECVTCLASS = 31
133 IPV6_RTHDR = 21
134 IPV6_RTHDRDSTOPTS = 24
135 IPV6_RTHDR_TYPE_0 = 0
136 IPV6_TCLASS = 30
137 IPV6_UNICAST_HOPS = 3
138 IPV6_USE_MIN_MTU = 18
139 IPV6_V6ONLY = 10
140 IP_ADD_MEMBERSHIP = 5
141 IP_ADD_SOURCE_MEMBERSHIP = 12
142 IP_BLOCK_SOURCE = 10
143 IP_DEFAULT_MULTICAST_LOOP = 1
144 IP_DEFAULT_MULTICAST_TTL = 1
145 IP_DROP_MEMBERSHIP = 6
146 IP_DROP_SOURCE_MEMBERSHIP = 13
147 IP_MAX_MEMBERSHIPS = 20
148 IP_MULTICAST_IF = 7
149 IP_MULTICAST_LOOP = 4
150 IP_MULTICAST_TTL = 3
151 IP_OPTIONS = 1
152 IP_PKTINFO = 101
153 IP_RECVPKTINFO = 102
154 IP_TOS = 2
155 IP_TTL = 3
156 IP_UNBLOCK_SOURCE = 11
157 ICANON = 0x0010
158 ICMP6_FILTER = 0x26
159 ICRNL = 0x0002
160 IEXTEN = 0x0020
161 IGNBRK = 0x0004
162 IGNCR = 0x0008
163 INLCR = 0x0020
164 ISIG = 0x0040
165 ISTRIP = 0x0080
166 IXON = 0x0200
167 IXOFF = 0x0100
168 LOCK_SH = 0x1
169 LOCK_EX = 0x2
170 LOCK_NB = 0x4
171 LOCK_UN = 0x8
172 POLLIN = 0x0003
173 POLLOUT = 0x0004
174 POLLPRI = 0x0010
175 POLLERR = 0x0020
176 POLLHUP = 0x0040
177 POLLNVAL = 0x0080
178 PROT_READ = 0x1
179 PROT_WRITE = 0x2
180 PROT_NONE = 0x4
181 PROT_EXEC = 0x8
182 MAP_PRIVATE = 0x1
183 MAP_SHARED = 0x2
184 MAP_FIXED = 0x4
185 MCAST_JOIN_GROUP = 40
186 MCAST_LEAVE_GROUP = 41
187 MCAST_JOIN_SOURCE_GROUP = 42
188 MCAST_LEAVE_SOURCE_GROUP = 43
189 MCAST_BLOCK_SOURCE = 44
190 MCAST_UNBLOCK_SOURCE = 45
191 MS_SYNC = 0x1
192 MS_ASYNC = 0x2
193 MS_INVALIDATE = 0x4
194 MTM_RDONLY = 0x80000000
195 MTM_RDWR = 0x40000000
196 MTM_UMOUNT = 0x10000000
197 MTM_IMMED = 0x08000000
198 MTM_FORCE = 0x04000000
199 MTM_DRAIN = 0x02000000
200 MTM_RESET = 0x01000000
201 MTM_SAMEMODE = 0x00100000
202 MTM_UNQSEFORCE = 0x00040000
203 MTM_NOSUID = 0x00000400
204 MTM_SYNCHONLY = 0x00000200
205 MTM_REMOUNT = 0x00000100
206 MTM_NOSECURITY = 0x00000080
207 NFDBITS = 0x20
208 O_ACCMODE = 0x03
209 O_APPEND = 0x08
210 O_ASYNCSIG = 0x0200
211 O_CREAT = 0x80
212 O_EXCL = 0x40
213 O_GETFL = 0x0F
214 O_LARGEFILE = 0x0400
215 O_NONBLOCK = 0x04
216 O_RDONLY = 0x02
217 O_RDWR = 0x03
218 O_SYNC = 0x0100
219 O_TRUNC = 0x10
220 O_WRONLY = 0x01
221 O_NOCTTY = 0x20
222 OPOST = 0x0001
223 ONLCR = 0x0004
224 PARENB = 0x0200
225 PARMRK = 0x0400
226 QUERYCVT = 3
227 RUSAGE_CHILDREN = -0x1
228 RUSAGE_SELF = 0x0
229 SEEK_CUR = 1
230 SEEK_END = 2
231 SEEK_SET = 0
232 SETAUTOCVTALL = 5
233 SETAUTOCVTON = 2
234 SETCVTALL = 4
235 SETCVTOFF = 0
236 SETCVTON = 1
237 AF_APPLETALK = 16
238 AF_CCITT = 10
239 AF_CHAOS = 5
240 AF_DATAKIT = 9
241 AF_DLI = 13
242 AF_ECMA = 8
243 AF_HYLINK = 15
244 AF_IMPLINK = 3
245 AF_INET = 2
246 AF_INET6 = 19
247 AF_INTF = 20
248 AF_IUCV = 17
249 AF_LAT = 14
250 AF_LINK = 18
251 AF_MAX = 30
252 AF_NBS = 7
253 AF_NDD = 23
254 AF_NETWARE = 22
255 AF_NS = 6
256 AF_PUP = 4
257 AF_RIF = 21
258 AF_ROUTE = 20
259 AF_SNA = 11
260 AF_UNIX = 1
261 AF_UNSPEC = 0
262 IBMTCP_IMAGE = 1
263 MSG_ACK_EXPECTED = 0x10
264 MSG_ACK_GEN = 0x40
265 MSG_ACK_TIMEOUT = 0x20
266 MSG_CONNTERM = 0x80
267 MSG_CTRUNC = 0x20
268 MSG_DONTROUTE = 0x4
269 MSG_EOF = 0x8000
270 MSG_EOR = 0x8
271 MSG_MAXIOVLEN = 16
272 MSG_NONBLOCK = 0x4000
273 MSG_OOB = 0x1
274 MSG_PEEK = 0x2
275 MSG_TRUNC = 0x10
276 MSG_WAITALL = 0x40
277 PRIO_PROCESS = 1
278 PRIO_PGRP = 2
279 PRIO_USER = 3
280 RLIMIT_CPU = 0
281 RLIMIT_FSIZE = 1
282 RLIMIT_DATA = 2
283 RLIMIT_STACK = 3
284 RLIMIT_CORE = 4
285 RLIMIT_AS = 5
286 RLIMIT_NOFILE = 6
287 RLIMIT_MEMLIMIT = 7
288 RLIM_INFINITY = 2147483647
289 SCM_RIGHTS = 0x01
290 SF_CLOSE = 0x00000002
291 SF_REUSE = 0x00000001
292 SHUT_RD = 0
293 SHUT_RDWR = 2
294 SHUT_WR = 1
295 SOCK_CONN_DGRAM = 6
296 SOCK_DGRAM = 2
297 SOCK_RAW = 3
298 SOCK_RDM = 4
299 SOCK_SEQPACKET = 5
300 SOCK_STREAM = 1
301 SOL_SOCKET = 0xffff
302 SOMAXCONN = 10
303 SO_ACCEPTCONN = 0x0002
304 SO_ACCEPTECONNABORTED = 0x0006
305 SO_ACKNOW = 0x7700
306 SO_BROADCAST = 0x0020
307 SO_BULKMODE = 0x8000
308 SO_CKSUMRECV = 0x0800
309 SO_CLOSE = 0x01
310 SO_CLUSTERCONNTYPE = 0x00004001
311 SO_CLUSTERCONNTYPE_INTERNAL = 8
312 SO_CLUSTERCONNTYPE_NOCONN = 0
313 SO_CLUSTERCONNTYPE_NONE = 1
314 SO_CLUSTERCONNTYPE_SAME_CLUSTER = 2
315 SO_CLUSTERCONNTYPE_SAME_IMAGE = 4
316 SO_DEBUG = 0x0001
317 SO_DONTROUTE = 0x0010
318 SO_ERROR = 0x1007
319 SO_IGNOREINCOMINGPUSH = 0x1
320 SO_IGNORESOURCEVIPA = 0x0002
321 SO_KEEPALIVE = 0x0008
322 SO_LINGER = 0x0080
323 SO_NONBLOCKLOCAL = 0x8001
324 SO_NOREUSEADDR = 0x1000
325 SO_OOBINLINE = 0x0100
326 SO_OPTACK = 0x8004
327 SO_OPTMSS = 0x8003
328 SO_RCVBUF = 0x1002
329 SO_RCVLOWAT = 0x1004
330 SO_RCVTIMEO = 0x1006
331 SO_REUSEADDR = 0x0004
332 SO_REUSEPORT = 0x0200
333 SO_SECINFO = 0x00004002
334 SO_SET = 0x0200
335 SO_SNDBUF = 0x1001
336 SO_SNDLOWAT = 0x1003
337 SO_SNDTIMEO = 0x1005
338 SO_TYPE = 0x1008
339 SO_UNSET = 0x0400
340 SO_USELOOPBACK = 0x0040
341 SO_USE_IFBUFS = 0x0400
342 S_ISUID = 0x0800
343 S_ISGID = 0x0400
344 S_ISVTX = 0x0200
345 S_IRUSR = 0x0100
346 S_IWUSR = 0x0080
347 S_IXUSR = 0x0040
348 S_IRWXU = 0x01C0
349 S_IRGRP = 0x0020
350 S_IWGRP = 0x0010
351 S_IXGRP = 0x0008
352 S_IRWXG = 0x0038
353 S_IROTH = 0x0004
354 S_IWOTH = 0x0002
355 S_IXOTH = 0x0001
356 S_IRWXO = 0x0007
357 S_IREAD = S_IRUSR
358 S_IWRITE = S_IWUSR
359 S_IEXEC = S_IXUSR
360 S_IFDIR = 0x01000000
361 S_IFCHR = 0x02000000
362 S_IFREG = 0x03000000
363 S_IFFIFO = 0x04000000
364 S_IFIFO = 0x04000000
365 S_IFLNK = 0x05000000
366 S_IFBLK = 0x06000000
367 S_IFSOCK = 0x07000000
368 S_IFVMEXTL = 0xFE000000
369 S_IFVMEXTL_EXEC = 0x00010000
370 S_IFVMEXTL_DATA = 0x00020000
371 S_IFVMEXTL_MEL = 0x00030000
372 S_IFEXTL = 0x00000001
373 S_IFPROGCTL = 0x00000002
374 S_IFAPFCTL = 0x00000004
375 S_IFNOSHARE = 0x00000008
376 S_IFSHARELIB = 0x00000010
377 S_IFMT = 0xFF000000
378 S_IFMST = 0x00FF0000
379 TCP_KEEPALIVE = 0x8
380 TCP_NODELAY = 0x1
381 TCP_INFO = 0xb
382 TCP_USER_TIMEOUT = 0x1
383 TIOCGWINSZ = 0x4008a368
384 TIOCSWINSZ = 0x8008a367
385 TIOCSBRK = 0x2000a77b
386 TIOCCBRK = 0x2000a77a
387 TIOCSTI = 0x8001a772
388 TIOCGPGRP = 0x4004a777
389 TCSANOW = 0
390 TCSETS = 0
391 TCSADRAIN = 1
392 TCSETSW = 1
393 TCSAFLUSH = 2
394 TCSETSF = 2
395 TCGETS = 3
396 TCIFLUSH = 0
397 TCOFLUSH = 1
398 TCIOFLUSH = 2
399 TCOOFF = 0
400 TCOON = 1
401 TCIOFF = 2
402 TCION = 3
403 TIOCSPGRP = 0x8004a776
404 TIOCNOTTY = 0x2000a771
405 TIOCEXCL = 0x2000a70d
406 TIOCNXCL = 0x2000a70e
407 TIOCGETD = 0x4004a700
408 TIOCSETD = 0x8004a701
409 TIOCPKT = 0x8004a770
410 TIOCSTOP = 0x2000a76f
411 TIOCSTART = 0x2000a76e
412 TIOCUCNTL = 0x8004a766
413 TIOCREMOTE = 0x8004a769
414 TIOCMGET = 0x4004a76a
415 TIOCMSET = 0x8004a76d
416 TIOCMBIC = 0x8004a76b
417 TIOCMBIS = 0x8004a76c
418 VINTR = 0
419 VQUIT = 1
420 VERASE = 2
421 VKILL = 3
422 VEOF = 4
423 VEOL = 5
424 VMIN = 6
425 VSTART = 7
426 VSTOP = 8
427 VSUSP = 9
428 VTIME = 10
429 WCONTINUED = 0x4
430 WNOHANG = 0x1
431 WUNTRACED = 0x2
432 _BPX_SWAP = 1
433 _BPX_NONSWAP = 2
434 MCL_CURRENT = 1
435 MCL_FUTURE = 2
436 MCL_ONFAULT = 3
437 MADV_NORMAL = 0
438 MADV_RANDOM = 1
439 MADV_SEQUENTIAL = 2
440 MADV_WILLNEED = 3
441 MADV_REMOVE = 4
442 MADV_DONTFORK = 5
443 MADV_DOFORK = 6
444 MADV_HWPOISON = 7
445 MADV_MERGEABLE = 8
446 MADV_UNMERGEABLE = 9
447 MADV_SOFT_OFFLINE = 10
448 MADV_HUGEPAGE = 11
449 MADV_NOHUGEPAGE = 12
450 MADV_DONTDUMP = 13
451 MADV_DODUMP = 14
452 MADV_FREE = 15
453 MADV_WIPEONFORK = 16
454 MADV_KEEPONFORK = 17
455 AT_SYMLINK_NOFOLLOW = 1
456 AT_FDCWD = 2
457 )
458
459 const (
460 EDOM = Errno(1)
461 ERANGE = Errno(2)
462 EACCES = Errno(111)
463 EAGAIN = Errno(112)
464 EBADF = Errno(113)
465 EBUSY = Errno(114)
466 ECHILD = Errno(115)
467 EDEADLK = Errno(116)
468 EEXIST = Errno(117)
469 EFAULT = Errno(118)
470 EFBIG = Errno(119)
471 EINTR = Errno(120)
472 EINVAL = Errno(121)
473 EIO = Errno(122)
474 EISDIR = Errno(123)
475 EMFILE = Errno(124)
476 EMLINK = Errno(125)
477 ENAMETOOLONG = Errno(126)
478 ENFILE = Errno(127)
479 ENODEV = Errno(128)
480 ENOENT = Errno(129)
481 ENOEXEC = Errno(130)
482 ENOLCK = Errno(131)
483 ENOMEM = Errno(132)
484 ENOSPC = Errno(133)
485 ENOSYS = Errno(134)
486 ENOTDIR = Errno(135)
487 ENOTEMPTY = Errno(136)
488 ENOTTY = Errno(137)
489 ENXIO = Errno(138)
490 EPERM = Errno(139)
491 EPIPE = Errno(140)
492 EROFS = Errno(141)
493 ESPIPE = Errno(142)
494 ESRCH = Errno(143)
495 EXDEV = Errno(144)
496 E2BIG = Errno(145)
497 ELOOP = Errno(146)
498 EILSEQ = Errno(147)
499 ENODATA = Errno(148)
500 EOVERFLOW = Errno(149)
501 EMVSNOTUP = Errno(150)
502 ECMSSTORAGE = Errno(151)
503 EMVSDYNALC = Errno(151)
504 EMVSCVAF = Errno(152)
505 EMVSCATLG = Errno(153)
506 ECMSINITIAL = Errno(156)
507 EMVSINITIAL = Errno(156)
508 ECMSERR = Errno(157)
509 EMVSERR = Errno(157)
510 EMVSPARM = Errno(158)
511 ECMSPFSFILE = Errno(159)
512 EMVSPFSFILE = Errno(159)
513 EMVSBADCHAR = Errno(160)
514 ECMSPFSPERM = Errno(162)
515 EMVSPFSPERM = Errno(162)
516 EMVSSAFEXTRERR = Errno(163)
517 EMVSSAF2ERR = Errno(164)
518 EMVSTODNOTSET = Errno(165)
519 EMVSPATHOPTS = Errno(166)
520 EMVSNORTL = Errno(167)
521 EMVSEXPIRE = Errno(168)
522 EMVSPASSWORD = Errno(169)
523 EMVSWLMERROR = Errno(170)
524 EMVSCPLERROR = Errno(171)
525 EMVSARMERROR = Errno(172)
526 ELENOFORK = Errno(200)
527 ELEMSGERR = Errno(201)
528 EFPMASKINV = Errno(202)
529 EFPMODEINV = Errno(203)
530 EBUFLEN = Errno(227)
531 EEXTLINK = Errno(228)
532 ENODD = Errno(229)
533 ECMSESMERR = Errno(230)
534 ECPERR = Errno(231)
535 ELEMULTITHREAD = Errno(232)
536 ELEFENCE = Errno(244)
537 EBADDATA = Errno(245)
538 EUNKNOWN = Errno(246)
539 ENOTSUP = Errno(247)
540 EBADNAME = Errno(248)
541 ENOTSAFE = Errno(249)
542 ELEMULTITHREADFORK = Errno(257)
543 ECUNNOENV = Errno(258)
544 ECUNNOCONV = Errno(259)
545 ECUNNOTALIGNED = Errno(260)
546 ECUNERR = Errno(262)
547 EIBMBADCALL = Errno(1000)
548 EIBMBADPARM = Errno(1001)
549 EIBMSOCKOUTOFRANGE = Errno(1002)
550 EIBMSOCKINUSE = Errno(1003)
551 EIBMIUCVERR = Errno(1004)
552 EOFFLOADboxERROR = Errno(1005)
553 EOFFLOADboxRESTART = Errno(1006)
554 EOFFLOADboxDOWN = Errno(1007)
555 EIBMCONFLICT = Errno(1008)
556 EIBMCANCELLED = Errno(1009)
557 EIBMBADTCPNAME = Errno(1011)
558 ENOTBLK = Errno(1100)
559 ETXTBSY = Errno(1101)
560 EWOULDBLOCK = Errno(1102)
561 EINPROGRESS = Errno(1103)
562 EALREADY = Errno(1104)
563 ENOTSOCK = Errno(1105)
564 EDESTADDRREQ = Errno(1106)
565 EMSGSIZE = Errno(1107)
566 EPROTOTYPE = Errno(1108)
567 ENOPROTOOPT = Errno(1109)
568 EPROTONOSUPPORT = Errno(1110)
569 ESOCKTNOSUPPORT = Errno(1111)
570 EOPNOTSUPP = Errno(1112)
571 EPFNOSUPPORT = Errno(1113)
572 EAFNOSUPPORT = Errno(1114)
573 EADDRINUSE = Errno(1115)
574 EADDRNOTAVAIL = Errno(1116)
575 ENETDOWN = Errno(1117)
576 ENETUNREACH = Errno(1118)
577 ENETRESET = Errno(1119)
578 ECONNABORTED = Errno(1120)
579 ECONNRESET = Errno(1121)
580 ENOBUFS = Errno(1122)
581 EISCONN = Errno(1123)
582 ENOTCONN = Errno(1124)
583 ESHUTDOWN = Errno(1125)
584 ETOOMANYREFS = Errno(1126)
585 ETIMEDOUT = Errno(1127)
586 ECONNREFUSED = Errno(1128)
587 EHOSTDOWN = Errno(1129)
588 EHOSTUNREACH = Errno(1130)
589 EPROCLIM = Errno(1131)
590 EUSERS = Errno(1132)
591 EDQUOT = Errno(1133)
592 ESTALE = Errno(1134)
593 EREMOTE = Errno(1135)
594 ENOSTR = Errno(1136)
595 ETIME = Errno(1137)
596 ENOSR = Errno(1138)
597 ENOMSG = Errno(1139)
598 EBADMSG = Errno(1140)
599 EIDRM = Errno(1141)
600 ENONET = Errno(1142)
601 ERREMOTE = Errno(1143)
602 ENOLINK = Errno(1144)
603 EADV = Errno(1145)
604 ESRMNT = Errno(1146)
605 ECOMM = Errno(1147)
606 EPROTO = Errno(1148)
607 EMULTIHOP = Errno(1149)
608 EDOTDOT = Errno(1150)
609 EREMCHG = Errno(1151)
610 ECANCELED = Errno(1152)
611 EINTRNODATA = Errno(1159)
612 ENOREUSE = Errno(1160)
613 ENOMOVE = Errno(1161)
614 )
615
616
617 const (
618 SIGHUP = Signal(1)
619 SIGINT = Signal(2)
620 SIGABRT = Signal(3)
621 SIGILL = Signal(4)
622 SIGPOLL = Signal(5)
623 SIGURG = Signal(6)
624 SIGSTOP = Signal(7)
625 SIGFPE = Signal(8)
626 SIGKILL = Signal(9)
627 SIGBUS = Signal(10)
628 SIGSEGV = Signal(11)
629 SIGSYS = Signal(12)
630 SIGPIPE = Signal(13)
631 SIGALRM = Signal(14)
632 SIGTERM = Signal(15)
633 SIGUSR1 = Signal(16)
634 SIGUSR2 = Signal(17)
635 SIGABND = Signal(18)
636 SIGCONT = Signal(19)
637 SIGCHLD = Signal(20)
638 SIGTTIN = Signal(21)
639 SIGTTOU = Signal(22)
640 SIGIO = Signal(23)
641 SIGQUIT = Signal(24)
642 SIGTSTP = Signal(25)
643 SIGTRAP = Signal(26)
644 SIGIOERR = Signal(27)
645 SIGWINCH = Signal(28)
646 SIGXCPU = Signal(29)
647 SIGXFSZ = Signal(30)
648 SIGVTALRM = Signal(31)
649 SIGPROF = Signal(32)
650 SIGDANGER = Signal(33)
651 SIGTHSTOP = Signal(34)
652 SIGTHCONT = Signal(35)
653 SIGTRACE = Signal(37)
654 SIGDCE = Signal(38)
655 SIGDUMP = Signal(39)
656 )
657
658
659 var errorList = [...]struct {
660 num Errno
661 name string
662 desc string
663 }{
664 {1, "EDC5001I", "A domain error occurred."},
665 {2, "EDC5002I", "A range error occurred."},
666 {111, "EDC5111I", "Permission denied."},
667 {112, "EDC5112I", "Resource temporarily unavailable."},
668 {113, "EDC5113I", "Bad file descriptor."},
669 {114, "EDC5114I", "Resource busy."},
670 {115, "EDC5115I", "No child processes."},
671 {116, "EDC5116I", "Resource deadlock avoided."},
672 {117, "EDC5117I", "File exists."},
673 {118, "EDC5118I", "Incorrect address."},
674 {119, "EDC5119I", "File too large."},
675 {120, "EDC5120I", "Interrupted function call."},
676 {121, "EDC5121I", "Invalid argument."},
677 {122, "EDC5122I", "Input/output error."},
678 {123, "EDC5123I", "Is a directory."},
679 {124, "EDC5124I", "Too many open files."},
680 {125, "EDC5125I", "Too many links."},
681 {126, "EDC5126I", "Filename too long."},
682 {127, "EDC5127I", "Too many open files in system."},
683 {128, "EDC5128I", "No such device."},
684 {129, "EDC5129I", "No such file or directory."},
685 {130, "EDC5130I", "Exec format error."},
686 {131, "EDC5131I", "No locks available."},
687 {132, "EDC5132I", "Not enough memory."},
688 {133, "EDC5133I", "No space left on device."},
689 {134, "EDC5134I", "Function not implemented."},
690 {135, "EDC5135I", "Not a directory."},
691 {136, "EDC5136I", "Directory not empty."},
692 {137, "EDC5137I", "Inappropriate I/O control operation."},
693 {138, "EDC5138I", "No such device or address."},
694 {139, "EDC5139I", "Operation not permitted."},
695 {140, "EDC5140I", "Broken pipe."},
696 {141, "EDC5141I", "Read-only file system."},
697 {142, "EDC5142I", "Invalid seek."},
698 {143, "EDC5143I", "No such process."},
699 {144, "EDC5144I", "Improper link."},
700 {145, "EDC5145I", "The parameter list is too long, or the message to receive was too large for the buffer."},
701 {146, "EDC5146I", "Too many levels of symbolic links."},
702 {147, "EDC5147I", "Illegal byte sequence."},
703 {148, "", ""},
704 {149, "EDC5149I", "Value Overflow Error."},
705 {150, "EDC5150I", "UNIX System Services is not active."},
706 {151, "EDC5151I", "Dynamic allocation error."},
707 {152, "EDC5152I", "Common VTOC access facility (CVAF) error."},
708 {153, "EDC5153I", "Catalog obtain error."},
709 {156, "EDC5156I", "Process initialization error."},
710 {157, "EDC5157I", "An internal error has occurred."},
711 {158, "EDC5158I", "Bad parameters were passed to the service."},
712 {159, "EDC5159I", "The Physical File System encountered a permanent file error."},
713 {160, "EDC5160I", "Bad character in environment variable name."},
714 {162, "EDC5162I", "The Physical File System encountered a system error."},
715 {163, "EDC5163I", "SAF/RACF extract error."},
716 {164, "EDC5164I", "SAF/RACF error."},
717 {165, "EDC5165I", "System TOD clock not set."},
718 {166, "EDC5166I", "Access mode argument on function call conflicts with PATHOPTS parameter on JCL DD statement."},
719 {167, "EDC5167I", "Access to the UNIX System Services version of the C RTL is denied."},
720 {168, "EDC5168I", "Password has expired."},
721 {169, "EDC5169I", "Password is invalid."},
722 {170, "EDC5170I", "An error was encountered with WLM."},
723 {171, "EDC5171I", "An error was encountered with CPL."},
724 {172, "EDC5172I", "An error was encountered with Application Response Measurement (ARM) component."},
725 {200, "EDC5200I", "The application contains a Language Environment member language that cannot tolerate a fork()."},
726 {201, "EDC5201I", "The Language Environment message file was not found in the hierarchical file system."},
727 {202, "EDC5202E", "DLL facilities are not supported under SPC environment."},
728 {203, "EDC5203E", "DLL facilities are not supported under POSIX environment."},
729 {227, "EDC5227I", "Buffer is not long enough to contain a path definition"},
730 {228, "EDC5228I", "The file referred to is an external link"},
731 {229, "EDC5229I", "No path definition for ddname in effect"},
732 {230, "EDC5230I", "ESM error."},
733 {231, "EDC5231I", "CP or the external security manager had an error"},
734 {232, "EDC5232I", "The function failed because it was invoked from a multithread environment."},
735 {244, "EDC5244I", "The program, module or DLL is not supported in this environment."},
736 {245, "EDC5245I", "Data is not valid."},
737 {246, "EDC5246I", "Unknown system state."},
738 {247, "EDC5247I", "Operation not supported."},
739 {248, "EDC5248I", "The object name specified is not correct."},
740 {249, "EDC5249I", "The function is not allowed."},
741 {257, "EDC5257I", "Function cannot be called in the child process of a fork() from a multithreaded process until exec() is called."},
742 {258, "EDC5258I", "A CUN_RS_NO_UNI_ENV error was issued by Unicode Services."},
743 {259, "EDC5259I", "A CUN_RS_NO_CONVERSION error was issued by Unicode Services."},
744 {260, "EDC5260I", "A CUN_RS_TABLE_NOT_ALIGNED error was issued by Unicode Services."},
745 {262, "EDC5262I", "An iconv() function encountered an unexpected error while using Unicode Services."},
746 {1000, "EDC8000I", "A bad socket-call constant was found in the IUCV header."},
747 {1001, "EDC8001I", "An error was found in the IUCV header."},
748 {1002, "EDC8002I", "A socket descriptor is out of range."},
749 {1003, "EDC8003I", "A socket descriptor is in use."},
750 {1004, "EDC8004I", "Request failed because of an IUCV error."},
751 {1005, "EDC8005I", "Offload box error."},
752 {1006, "EDC8006I", "Offload box restarted."},
753 {1007, "EDC8007I", "Offload box down."},
754 {1008, "EDC8008I", "Already a conflicting call outstanding on socket."},
755 {1009, "EDC8009I", "Request cancelled using a SOCKcallCANCEL request."},
756 {1011, "EDC8011I", "A name of a PFS was specified that either is not configured or is not a Sockets PFS."},
757 {1100, "EDC8100I", "Block device required."},
758 {1101, "EDC8101I", "Text file busy."},
759 {1102, "EDC8102I", "Operation would block."},
760 {1103, "EDC8103I", "Operation now in progress."},
761 {1104, "EDC8104I", "Connection already in progress."},
762 {1105, "EDC8105I", "Socket operation on non-socket."},
763 {1106, "EDC8106I", "Destination address required."},
764 {1107, "EDC8107I", "Message too long."},
765 {1108, "EDC8108I", "Protocol wrong type for socket."},
766 {1109, "EDC8109I", "Protocol not available."},
767 {1110, "EDC8110I", "Protocol not supported."},
768 {1111, "EDC8111I", "Socket type not supported."},
769 {1112, "EDC8112I", "Operation not supported on socket."},
770 {1113, "EDC8113I", "Protocol family not supported."},
771 {1114, "EDC8114I", "Address family not supported."},
772 {1115, "EDC8115I", "Address already in use."},
773 {1116, "EDC8116I", "Address not available."},
774 {1117, "EDC8117I", "Network is down."},
775 {1118, "EDC8118I", "Network is unreachable."},
776 {1119, "EDC8119I", "Network dropped connection on reset."},
777 {1120, "EDC8120I", "Connection ended abnormally."},
778 {1121, "EDC8121I", "Connection reset."},
779 {1122, "EDC8122I", "No buffer space available."},
780 {1123, "EDC8123I", "Socket already connected."},
781 {1124, "EDC8124I", "Socket not connected."},
782 {1125, "EDC8125I", "Can't send after socket shutdown."},
783 {1126, "EDC8126I", "Too many references; can't splice."},
784 {1127, "EDC8127I", "Connection timed out."},
785 {1128, "EDC8128I", "Connection refused."},
786 {1129, "EDC8129I", "Host is not available."},
787 {1130, "EDC8130I", "Host cannot be reached."},
788 {1131, "EDC8131I", "Too many processes."},
789 {1132, "EDC8132I", "Too many users."},
790 {1133, "EDC8133I", "Disk quota exceeded."},
791 {1134, "EDC8134I", "Stale file handle."},
792 {1135, "", ""},
793 {1136, "EDC8136I", "File is not a STREAM."},
794 {1137, "EDC8137I", "STREAMS ioctl() timeout."},
795 {1138, "EDC8138I", "No STREAMS resources."},
796 {1139, "EDC8139I", "The message identified by set_id and msg_id is not in the message catalog."},
797 {1140, "EDC8140I", "Bad message."},
798 {1141, "EDC8141I", "Identifier removed."},
799 {1142, "", ""},
800 {1143, "", ""},
801 {1144, "EDC8144I", "The link has been severed."},
802 {1145, "", ""},
803 {1146, "", ""},
804 {1147, "", ""},
805 {1148, "EDC8148I", "Protocol error."},
806 {1149, "EDC8149I", "Multihop not allowed."},
807 {1150, "", ""},
808 {1151, "", ""},
809 {1152, "EDC8152I", "The asynchronous I/O request has been canceled."},
810 {1159, "EDC8159I", "Function call was interrupted before any data was received."},
811 {1160, "EDC8160I", "Socket reuse is not supported."},
812 {1161, "EDC8161I", "The file system cannot currently be moved."},
813 }
814
815
816 var signalList = [...]struct {
817 num Signal
818 name string
819 desc string
820 }{
821 {1, "SIGHUP", "hangup"},
822 {2, "SIGINT", "interrupt"},
823 {3, "SIGABT", "aborted"},
824 {4, "SIGILL", "illegal instruction"},
825 {5, "SIGPOLL", "pollable event"},
826 {6, "SIGURG", "urgent I/O condition"},
827 {7, "SIGSTOP", "stop process"},
828 {8, "SIGFPE", "floating point exception"},
829 {9, "SIGKILL", "killed"},
830 {10, "SIGBUS", "bus error"},
831 {11, "SIGSEGV", "segmentation fault"},
832 {12, "SIGSYS", "bad argument to routine"},
833 {13, "SIGPIPE", "broken pipe"},
834 {14, "SIGALRM", "alarm clock"},
835 {15, "SIGTERM", "terminated"},
836 {16, "SIGUSR1", "user defined signal 1"},
837 {17, "SIGUSR2", "user defined signal 2"},
838 {18, "SIGABND", "abend"},
839 {19, "SIGCONT", "continued"},
840 {20, "SIGCHLD", "child exited"},
841 {21, "SIGTTIN", "stopped (tty input)"},
842 {22, "SIGTTOU", "stopped (tty output)"},
843 {23, "SIGIO", "I/O possible"},
844 {24, "SIGQUIT", "quit"},
845 {25, "SIGTSTP", "stopped"},
846 {26, "SIGTRAP", "trace/breakpoint trap"},
847 {27, "SIGIOER", "I/O error"},
848 {28, "SIGWINCH", "window changed"},
849 {29, "SIGXCPU", "CPU time limit exceeded"},
850 {30, "SIGXFSZ", "file size limit exceeded"},
851 {31, "SIGVTALRM", "virtual timer expired"},
852 {32, "SIGPROF", "profiling timer expired"},
853 {33, "SIGDANGER", "danger"},
854 {34, "SIGTHSTOP", "stop thread"},
855 {35, "SIGTHCONT", "continue thread"},
856 {37, "SIGTRACE", "trace"},
857 {38, "", "DCE"},
858 {39, "SIGDUMP", "dump"},
859 }
860
View as plain text