1
2
3
4
5
6
7
8
9
10 package unix
11
12 import "syscall"
13
14 const (
15 B1000000 = 0x1008
16 B115200 = 0x1002
17 B1152000 = 0x1009
18 B1500000 = 0x100a
19 B2000000 = 0x100b
20 B230400 = 0x1003
21 B2500000 = 0x100c
22 B3000000 = 0x100d
23 B3500000 = 0x100e
24 B4000000 = 0x100f
25 B460800 = 0x1004
26 B500000 = 0x1005
27 B57600 = 0x1001
28 B576000 = 0x1006
29 B921600 = 0x1007
30 BLKBSZGET = 0x80081270
31 BLKBSZSET = 0x40081271
32 BLKFLSBUF = 0x1261
33 BLKFRAGET = 0x1265
34 BLKFRASET = 0x1264
35 BLKGETSIZE = 0x1260
36 BLKGETSIZE64 = 0x80081272
37 BLKPBSZGET = 0x127b
38 BLKRAGET = 0x1263
39 BLKRASET = 0x1262
40 BLKROGET = 0x125e
41 BLKROSET = 0x125d
42 BLKRRPART = 0x125f
43 BLKSECTGET = 0x1267
44 BLKSECTSET = 0x1266
45 BLKSSZGET = 0x1268
46 BOTHER = 0x1000
47 BS1 = 0x2000
48 BSDLY = 0x2000
49 CBAUD = 0x100f
50 CBAUDEX = 0x1000
51 CIBAUD = 0x100f0000
52 CLOCAL = 0x800
53 CR1 = 0x200
54 CR2 = 0x400
55 CR3 = 0x600
56 CRDLY = 0x600
57 CREAD = 0x80
58 CS6 = 0x10
59 CS7 = 0x20
60 CS8 = 0x30
61 CSIZE = 0x30
62 CSTOPB = 0x40
63 ECCGETLAYOUT = 0x81484d11
64 ECCGETSTATS = 0x80104d12
65 ECHOCTL = 0x200
66 ECHOE = 0x10
67 ECHOK = 0x20
68 ECHOKE = 0x800
69 ECHONL = 0x40
70 ECHOPRT = 0x400
71 EFD_CLOEXEC = 0x80000
72 EFD_NONBLOCK = 0x800
73 EPOLL_CLOEXEC = 0x80000
74 EXTPROC = 0x10000
75 FF1 = 0x8000
76 FFDLY = 0x8000
77 FICLONE = 0x40049409
78 FICLONERANGE = 0x4020940d
79 FLUSHO = 0x1000
80 FS_IOC_ENABLE_VERITY = 0x40806685
81 FS_IOC_GETFLAGS = 0x80086601
82 FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b
83 FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
84 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
85 FS_IOC_SETFLAGS = 0x40086602
86 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
87 F_GETLK = 0x5
88 F_GETLK64 = 0x5
89 F_GETOWN = 0x9
90 F_RDLCK = 0x0
91 F_SETLK = 0x6
92 F_SETLK64 = 0x6
93 F_SETLKW = 0x7
94 F_SETLKW64 = 0x7
95 F_SETOWN = 0x8
96 F_UNLCK = 0x2
97 F_WRLCK = 0x1
98 HIDIOCGRAWINFO = 0x80084803
99 HIDIOCGRDESC = 0x90044802
100 HIDIOCGRDESCSIZE = 0x80044801
101 HUPCL = 0x400
102 ICANON = 0x2
103 IEXTEN = 0x8000
104 IN_CLOEXEC = 0x80000
105 IN_NONBLOCK = 0x800
106 IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9
107 ISIG = 0x1
108 IUCLC = 0x200
109 IXOFF = 0x1000
110 IXON = 0x400
111 MAP_ANON = 0x20
112 MAP_ANONYMOUS = 0x20
113 MAP_DENYWRITE = 0x800
114 MAP_EXECUTABLE = 0x1000
115 MAP_GROWSDOWN = 0x100
116 MAP_HUGETLB = 0x40000
117 MAP_LOCKED = 0x2000
118 MAP_NONBLOCK = 0x10000
119 MAP_NORESERVE = 0x4000
120 MAP_POPULATE = 0x8000
121 MAP_STACK = 0x20000
122 MAP_SYNC = 0x80000
123 MCL_CURRENT = 0x1
124 MCL_FUTURE = 0x2
125 MCL_ONFAULT = 0x4
126 MEMERASE = 0x40084d02
127 MEMERASE64 = 0x40104d14
128 MEMGETBADBLOCK = 0x40084d0b
129 MEMGETINFO = 0x80204d01
130 MEMGETOOBSEL = 0x80c84d0a
131 MEMGETREGIONCOUNT = 0x80044d07
132 MEMISLOCKED = 0x80084d17
133 MEMLOCK = 0x40084d05
134 MEMREADOOB = 0xc0104d04
135 MEMSETBADBLOCK = 0x40084d0c
136 MEMUNLOCK = 0x40084d06
137 MEMWRITEOOB = 0xc0104d03
138 MTDFILEMODE = 0x4d13
139 NFDBITS = 0x40
140 NLDLY = 0x100
141 NOFLSH = 0x80
142 NS_GET_NSTYPE = 0xb703
143 NS_GET_OWNER_UID = 0xb704
144 NS_GET_PARENT = 0xb702
145 NS_GET_USERNS = 0xb701
146 OLCUC = 0x2
147 ONLCR = 0x4
148 OTPERASE = 0x400c4d19
149 OTPGETREGIONCOUNT = 0x40044d0e
150 OTPGETREGIONINFO = 0x400c4d0f
151 OTPLOCK = 0x800c4d10
152 OTPSELECT = 0x80044d0d
153 O_APPEND = 0x400
154 O_ASYNC = 0x2000
155 O_CLOEXEC = 0x80000
156 O_CREAT = 0x40
157 O_DIRECT = 0x4000
158 O_DIRECTORY = 0x10000
159 O_DSYNC = 0x1000
160 O_EXCL = 0x80
161 O_FSYNC = 0x101000
162 O_LARGEFILE = 0x0
163 O_NDELAY = 0x800
164 O_NOATIME = 0x40000
165 O_NOCTTY = 0x100
166 O_NOFOLLOW = 0x20000
167 O_NONBLOCK = 0x800
168 O_PATH = 0x200000
169 O_RSYNC = 0x101000
170 O_SYNC = 0x101000
171 O_TMPFILE = 0x410000
172 O_TRUNC = 0x200
173 PARENB = 0x100
174 PARODD = 0x200
175 PENDIN = 0x4000
176 PERF_EVENT_IOC_DISABLE = 0x2401
177 PERF_EVENT_IOC_ENABLE = 0x2400
178 PERF_EVENT_IOC_ID = 0x80082407
179 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b
180 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
181 PERF_EVENT_IOC_PERIOD = 0x40082404
182 PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
183 PERF_EVENT_IOC_REFRESH = 0x2402
184 PERF_EVENT_IOC_RESET = 0x2403
185 PERF_EVENT_IOC_SET_BPF = 0x40042408
186 PERF_EVENT_IOC_SET_FILTER = 0x40082406
187 PERF_EVENT_IOC_SET_OUTPUT = 0x2405
188 PPPIOCATTACH = 0x4004743d
189 PPPIOCATTCHAN = 0x40047438
190 PPPIOCBRIDGECHAN = 0x40047435
191 PPPIOCCONNECT = 0x4004743a
192 PPPIOCDETACH = 0x4004743c
193 PPPIOCDISCONN = 0x7439
194 PPPIOCGASYNCMAP = 0x80047458
195 PPPIOCGCHAN = 0x80047437
196 PPPIOCGDEBUG = 0x80047441
197 PPPIOCGFLAGS = 0x8004745a
198 PPPIOCGIDLE = 0x8010743f
199 PPPIOCGIDLE32 = 0x8008743f
200 PPPIOCGIDLE64 = 0x8010743f
201 PPPIOCGL2TPSTATS = 0x80487436
202 PPPIOCGMRU = 0x80047453
203 PPPIOCGRASYNCMAP = 0x80047455
204 PPPIOCGUNIT = 0x80047456
205 PPPIOCGXASYNCMAP = 0x80207450
206 PPPIOCSACTIVE = 0x40107446
207 PPPIOCSASYNCMAP = 0x40047457
208 PPPIOCSCOMPRESS = 0x4010744d
209 PPPIOCSDEBUG = 0x40047440
210 PPPIOCSFLAGS = 0x40047459
211 PPPIOCSMAXCID = 0x40047451
212 PPPIOCSMRRU = 0x4004743b
213 PPPIOCSMRU = 0x40047452
214 PPPIOCSNPMODE = 0x4008744b
215 PPPIOCSPASS = 0x40107447
216 PPPIOCSRASYNCMAP = 0x40047454
217 PPPIOCSXASYNCMAP = 0x4020744f
218 PPPIOCUNBRIDGECHAN = 0x7434
219 PPPIOCXFERUNIT = 0x744e
220 PR_SET_PTRACER_ANY = 0xffffffffffffffff
221 RLIMIT_AS = 0x9
222 RLIMIT_MEMLOCK = 0x8
223 RLIMIT_NOFILE = 0x7
224 RLIMIT_NPROC = 0x6
225 RLIMIT_RSS = 0x5
226 RNDADDENTROPY = 0x40085203
227 RNDADDTOENTCNT = 0x40045201
228 RNDCLEARPOOL = 0x5206
229 RNDGETENTCNT = 0x80045200
230 RNDGETPOOL = 0x80085202
231 RNDRESEEDCRNG = 0x5207
232 RNDZAPENTCNT = 0x5204
233 RTC_AIE_OFF = 0x7002
234 RTC_AIE_ON = 0x7001
235 RTC_ALM_READ = 0x80247008
236 RTC_ALM_SET = 0x40247007
237 RTC_EPOCH_READ = 0x8008700d
238 RTC_EPOCH_SET = 0x4008700e
239 RTC_IRQP_READ = 0x8008700b
240 RTC_IRQP_SET = 0x4008700c
241 RTC_PIE_OFF = 0x7006
242 RTC_PIE_ON = 0x7005
243 RTC_PLL_GET = 0x80207011
244 RTC_PLL_SET = 0x40207012
245 RTC_RD_TIME = 0x80247009
246 RTC_SET_TIME = 0x4024700a
247 RTC_UIE_OFF = 0x7004
248 RTC_UIE_ON = 0x7003
249 RTC_VL_CLR = 0x7014
250 RTC_VL_READ = 0x80047013
251 RTC_WIE_OFF = 0x7010
252 RTC_WIE_ON = 0x700f
253 RTC_WKALM_RD = 0x80287010
254 RTC_WKALM_SET = 0x4028700f
255 SCM_TIMESTAMPING = 0x25
256 SCM_TIMESTAMPING_OPT_STATS = 0x36
257 SCM_TIMESTAMPING_PKTINFO = 0x3a
258 SCM_TIMESTAMPNS = 0x23
259 SCM_TXTIME = 0x3d
260 SCM_WIFI_STATUS = 0x29
261 SFD_CLOEXEC = 0x80000
262 SFD_NONBLOCK = 0x800
263 SIOCATMARK = 0x8905
264 SIOCGPGRP = 0x8904
265 SIOCGSTAMPNS_NEW = 0x80108907
266 SIOCGSTAMP_NEW = 0x80108906
267 SIOCINQ = 0x541b
268 SIOCOUTQ = 0x5411
269 SIOCSPGRP = 0x8902
270 SOCK_CLOEXEC = 0x80000
271 SOCK_DGRAM = 0x2
272 SOCK_NONBLOCK = 0x800
273 SOCK_STREAM = 0x1
274 SOL_SOCKET = 0x1
275 SO_ACCEPTCONN = 0x1e
276 SO_ATTACH_BPF = 0x32
277 SO_ATTACH_REUSEPORT_CBPF = 0x33
278 SO_ATTACH_REUSEPORT_EBPF = 0x34
279 SO_BINDTODEVICE = 0x19
280 SO_BINDTOIFINDEX = 0x3e
281 SO_BPF_EXTENSIONS = 0x30
282 SO_BROADCAST = 0x6
283 SO_BSDCOMPAT = 0xe
284 SO_BUF_LOCK = 0x48
285 SO_BUSY_POLL = 0x2e
286 SO_BUSY_POLL_BUDGET = 0x46
287 SO_CNX_ADVICE = 0x35
288 SO_COOKIE = 0x39
289 SO_DETACH_REUSEPORT_BPF = 0x44
290 SO_DOMAIN = 0x27
291 SO_DONTROUTE = 0x5
292 SO_ERROR = 0x4
293 SO_INCOMING_CPU = 0x31
294 SO_INCOMING_NAPI_ID = 0x38
295 SO_KEEPALIVE = 0x9
296 SO_LINGER = 0xd
297 SO_LOCK_FILTER = 0x2c
298 SO_MARK = 0x24
299 SO_MAX_PACING_RATE = 0x2f
300 SO_MEMINFO = 0x37
301 SO_NETNS_COOKIE = 0x47
302 SO_NOFCS = 0x2b
303 SO_OOBINLINE = 0xa
304 SO_PASSCRED = 0x10
305 SO_PASSSEC = 0x22
306 SO_PEEK_OFF = 0x2a
307 SO_PEERCRED = 0x11
308 SO_PEERGROUPS = 0x3b
309 SO_PEERSEC = 0x1f
310 SO_PREFER_BUSY_POLL = 0x45
311 SO_PROTOCOL = 0x26
312 SO_RCVBUF = 0x8
313 SO_RCVBUFFORCE = 0x21
314 SO_RCVLOWAT = 0x12
315 SO_RCVTIMEO = 0x14
316 SO_RCVTIMEO_NEW = 0x42
317 SO_RCVTIMEO_OLD = 0x14
318 SO_REUSEADDR = 0x2
319 SO_REUSEPORT = 0xf
320 SO_RXQ_OVFL = 0x28
321 SO_SECURITY_AUTHENTICATION = 0x16
322 SO_SECURITY_ENCRYPTION_NETWORK = 0x18
323 SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
324 SO_SELECT_ERR_QUEUE = 0x2d
325 SO_SNDBUF = 0x7
326 SO_SNDBUFFORCE = 0x20
327 SO_SNDLOWAT = 0x13
328 SO_SNDTIMEO = 0x15
329 SO_SNDTIMEO_NEW = 0x43
330 SO_SNDTIMEO_OLD = 0x15
331 SO_TIMESTAMPING = 0x25
332 SO_TIMESTAMPING_NEW = 0x41
333 SO_TIMESTAMPING_OLD = 0x25
334 SO_TIMESTAMPNS = 0x23
335 SO_TIMESTAMPNS_NEW = 0x40
336 SO_TIMESTAMPNS_OLD = 0x23
337 SO_TIMESTAMP_NEW = 0x3f
338 SO_TXTIME = 0x3d
339 SO_TYPE = 0x3
340 SO_WIFI_STATUS = 0x29
341 SO_ZEROCOPY = 0x3c
342 TAB1 = 0x800
343 TAB2 = 0x1000
344 TAB3 = 0x1800
345 TABDLY = 0x1800
346 TCFLSH = 0x540b
347 TCGETA = 0x5405
348 TCGETS = 0x5401
349 TCGETS2 = 0x802c542a
350 TCGETX = 0x5432
351 TCSAFLUSH = 0x2
352 TCSBRK = 0x5409
353 TCSBRKP = 0x5425
354 TCSETA = 0x5406
355 TCSETAF = 0x5408
356 TCSETAW = 0x5407
357 TCSETS = 0x5402
358 TCSETS2 = 0x402c542b
359 TCSETSF = 0x5404
360 TCSETSF2 = 0x402c542d
361 TCSETSW = 0x5403
362 TCSETSW2 = 0x402c542c
363 TCSETX = 0x5433
364 TCSETXF = 0x5434
365 TCSETXW = 0x5435
366 TCXONC = 0x540a
367 TFD_CLOEXEC = 0x80000
368 TFD_NONBLOCK = 0x800
369 TIOCCBRK = 0x5428
370 TIOCCONS = 0x541d
371 TIOCEXCL = 0x540c
372 TIOCGDEV = 0x80045432
373 TIOCGETD = 0x5424
374 TIOCGEXCL = 0x80045440
375 TIOCGICOUNT = 0x545d
376 TIOCGISO7816 = 0x80285442
377 TIOCGLCKTRMIOS = 0x5456
378 TIOCGPGRP = 0x540f
379 TIOCGPKT = 0x80045438
380 TIOCGPTLCK = 0x80045439
381 TIOCGPTN = 0x80045430
382 TIOCGPTPEER = 0x5441
383 TIOCGRS485 = 0x542e
384 TIOCGSERIAL = 0x541e
385 TIOCGSID = 0x5429
386 TIOCGSOFTCAR = 0x5419
387 TIOCGWINSZ = 0x5413
388 TIOCINQ = 0x541b
389 TIOCLINUX = 0x541c
390 TIOCMBIC = 0x5417
391 TIOCMBIS = 0x5416
392 TIOCMGET = 0x5415
393 TIOCMIWAIT = 0x545c
394 TIOCMSET = 0x5418
395 TIOCM_CAR = 0x40
396 TIOCM_CD = 0x40
397 TIOCM_CTS = 0x20
398 TIOCM_DSR = 0x100
399 TIOCM_RI = 0x80
400 TIOCM_RNG = 0x80
401 TIOCM_SR = 0x10
402 TIOCM_ST = 0x8
403 TIOCNOTTY = 0x5422
404 TIOCNXCL = 0x540d
405 TIOCOUTQ = 0x5411
406 TIOCPKT = 0x5420
407 TIOCSBRK = 0x5427
408 TIOCSCTTY = 0x540e
409 TIOCSERCONFIG = 0x5453
410 TIOCSERGETLSR = 0x5459
411 TIOCSERGETMULTI = 0x545a
412 TIOCSERGSTRUCT = 0x5458
413 TIOCSERGWILD = 0x5454
414 TIOCSERSETMULTI = 0x545b
415 TIOCSERSWILD = 0x5455
416 TIOCSER_TEMT = 0x1
417 TIOCSETD = 0x5423
418 TIOCSIG = 0x40045436
419 TIOCSISO7816 = 0xc0285443
420 TIOCSLCKTRMIOS = 0x5457
421 TIOCSPGRP = 0x5410
422 TIOCSPTLCK = 0x40045431
423 TIOCSRS485 = 0x542f
424 TIOCSSERIAL = 0x541f
425 TIOCSSOFTCAR = 0x541a
426 TIOCSTI = 0x5412
427 TIOCSWINSZ = 0x5414
428 TIOCVHANGUP = 0x5437
429 TOSTOP = 0x100
430 TUNATTACHFILTER = 0x401054d5
431 TUNDETACHFILTER = 0x401054d6
432 TUNGETDEVNETNS = 0x54e3
433 TUNGETFEATURES = 0x800454cf
434 TUNGETFILTER = 0x801054db
435 TUNGETIFF = 0x800454d2
436 TUNGETSNDBUF = 0x800454d3
437 TUNGETVNETBE = 0x800454df
438 TUNGETVNETHDRSZ = 0x800454d7
439 TUNGETVNETLE = 0x800454dd
440 TUNSETCARRIER = 0x400454e2
441 TUNSETDEBUG = 0x400454c9
442 TUNSETFILTEREBPF = 0x800454e1
443 TUNSETGROUP = 0x400454ce
444 TUNSETIFF = 0x400454ca
445 TUNSETIFINDEX = 0x400454da
446 TUNSETLINK = 0x400454cd
447 TUNSETNOCSUM = 0x400454c8
448 TUNSETOFFLOAD = 0x400454d0
449 TUNSETOWNER = 0x400454cc
450 TUNSETPERSIST = 0x400454cb
451 TUNSETQUEUE = 0x400454d9
452 TUNSETSNDBUF = 0x400454d4
453 TUNSETSTEERINGEBPF = 0x800454e0
454 TUNSETTXFILTER = 0x400454d1
455 TUNSETVNETBE = 0x400454de
456 TUNSETVNETHDRSZ = 0x400454d8
457 TUNSETVNETLE = 0x400454dc
458 UBI_IOCATT = 0x40186f40
459 UBI_IOCDET = 0x40046f41
460 UBI_IOCEBCH = 0x40044f02
461 UBI_IOCEBER = 0x40044f01
462 UBI_IOCEBISMAP = 0x80044f05
463 UBI_IOCEBMAP = 0x40084f03
464 UBI_IOCEBUNMAP = 0x40044f04
465 UBI_IOCMKVOL = 0x40986f00
466 UBI_IOCRMVOL = 0x40046f01
467 UBI_IOCRNVOL = 0x51106f03
468 UBI_IOCRPEB = 0x40046f04
469 UBI_IOCRSVOL = 0x400c6f02
470 UBI_IOCSETVOLPROP = 0x40104f06
471 UBI_IOCSPEB = 0x40046f05
472 UBI_IOCVOLCRBLK = 0x40804f07
473 UBI_IOCVOLRMBLK = 0x4f08
474 UBI_IOCVOLUP = 0x40084f00
475 VDISCARD = 0xd
476 VEOF = 0x4
477 VEOL = 0xb
478 VEOL2 = 0x10
479 VMIN = 0x6
480 VREPRINT = 0xc
481 VSTART = 0x8
482 VSTOP = 0x9
483 VSUSP = 0xa
484 VSWTC = 0x7
485 VT1 = 0x4000
486 VTDLY = 0x4000
487 VTIME = 0x5
488 VWERASE = 0xe
489 WDIOC_GETBOOTSTATUS = 0x80045702
490 WDIOC_GETPRETIMEOUT = 0x80045709
491 WDIOC_GETSTATUS = 0x80045701
492 WDIOC_GETSUPPORT = 0x80285700
493 WDIOC_GETTEMP = 0x80045703
494 WDIOC_GETTIMELEFT = 0x8004570a
495 WDIOC_GETTIMEOUT = 0x80045707
496 WDIOC_KEEPALIVE = 0x80045705
497 WDIOC_SETOPTIONS = 0x80045704
498 WORDSIZE = 0x40
499 XCASE = 0x4
500 XTABS = 0x1800
501 _HIDIOCGRAWNAME = 0x80804804
502 _HIDIOCGRAWPHYS = 0x80404805
503 _HIDIOCGRAWUNIQ = 0x80404808
504 )
505
506
507 const (
508 EADDRINUSE = syscall.Errno(0x62)
509 EADDRNOTAVAIL = syscall.Errno(0x63)
510 EADV = syscall.Errno(0x44)
511 EAFNOSUPPORT = syscall.Errno(0x61)
512 EALREADY = syscall.Errno(0x72)
513 EBADE = syscall.Errno(0x34)
514 EBADFD = syscall.Errno(0x4d)
515 EBADMSG = syscall.Errno(0x4a)
516 EBADR = syscall.Errno(0x35)
517 EBADRQC = syscall.Errno(0x38)
518 EBADSLT = syscall.Errno(0x39)
519 EBFONT = syscall.Errno(0x3b)
520 ECANCELED = syscall.Errno(0x7d)
521 ECHRNG = syscall.Errno(0x2c)
522 ECOMM = syscall.Errno(0x46)
523 ECONNABORTED = syscall.Errno(0x67)
524 ECONNREFUSED = syscall.Errno(0x6f)
525 ECONNRESET = syscall.Errno(0x68)
526 EDEADLK = syscall.Errno(0x23)
527 EDEADLOCK = syscall.Errno(0x23)
528 EDESTADDRREQ = syscall.Errno(0x59)
529 EDOTDOT = syscall.Errno(0x49)
530 EDQUOT = syscall.Errno(0x7a)
531 EHOSTDOWN = syscall.Errno(0x70)
532 EHOSTUNREACH = syscall.Errno(0x71)
533 EHWPOISON = syscall.Errno(0x85)
534 EIDRM = syscall.Errno(0x2b)
535 EILSEQ = syscall.Errno(0x54)
536 EINPROGRESS = syscall.Errno(0x73)
537 EISCONN = syscall.Errno(0x6a)
538 EISNAM = syscall.Errno(0x78)
539 EKEYEXPIRED = syscall.Errno(0x7f)
540 EKEYREJECTED = syscall.Errno(0x81)
541 EKEYREVOKED = syscall.Errno(0x80)
542 EL2HLT = syscall.Errno(0x33)
543 EL2NSYNC = syscall.Errno(0x2d)
544 EL3HLT = syscall.Errno(0x2e)
545 EL3RST = syscall.Errno(0x2f)
546 ELIBACC = syscall.Errno(0x4f)
547 ELIBBAD = syscall.Errno(0x50)
548 ELIBEXEC = syscall.Errno(0x53)
549 ELIBMAX = syscall.Errno(0x52)
550 ELIBSCN = syscall.Errno(0x51)
551 ELNRNG = syscall.Errno(0x30)
552 ELOOP = syscall.Errno(0x28)
553 EMEDIUMTYPE = syscall.Errno(0x7c)
554 EMSGSIZE = syscall.Errno(0x5a)
555 EMULTIHOP = syscall.Errno(0x48)
556 ENAMETOOLONG = syscall.Errno(0x24)
557 ENAVAIL = syscall.Errno(0x77)
558 ENETDOWN = syscall.Errno(0x64)
559 ENETRESET = syscall.Errno(0x66)
560 ENETUNREACH = syscall.Errno(0x65)
561 ENOANO = syscall.Errno(0x37)
562 ENOBUFS = syscall.Errno(0x69)
563 ENOCSI = syscall.Errno(0x32)
564 ENODATA = syscall.Errno(0x3d)
565 ENOKEY = syscall.Errno(0x7e)
566 ENOLCK = syscall.Errno(0x25)
567 ENOLINK = syscall.Errno(0x43)
568 ENOMEDIUM = syscall.Errno(0x7b)
569 ENOMSG = syscall.Errno(0x2a)
570 ENONET = syscall.Errno(0x40)
571 ENOPKG = syscall.Errno(0x41)
572 ENOPROTOOPT = syscall.Errno(0x5c)
573 ENOSR = syscall.Errno(0x3f)
574 ENOSTR = syscall.Errno(0x3c)
575 ENOSYS = syscall.Errno(0x26)
576 ENOTCONN = syscall.Errno(0x6b)
577 ENOTEMPTY = syscall.Errno(0x27)
578 ENOTNAM = syscall.Errno(0x76)
579 ENOTRECOVERABLE = syscall.Errno(0x83)
580 ENOTSOCK = syscall.Errno(0x58)
581 ENOTSUP = syscall.Errno(0x5f)
582 ENOTUNIQ = syscall.Errno(0x4c)
583 EOPNOTSUPP = syscall.Errno(0x5f)
584 EOVERFLOW = syscall.Errno(0x4b)
585 EOWNERDEAD = syscall.Errno(0x82)
586 EPFNOSUPPORT = syscall.Errno(0x60)
587 EPROTO = syscall.Errno(0x47)
588 EPROTONOSUPPORT = syscall.Errno(0x5d)
589 EPROTOTYPE = syscall.Errno(0x5b)
590 EREMCHG = syscall.Errno(0x4e)
591 EREMOTE = syscall.Errno(0x42)
592 EREMOTEIO = syscall.Errno(0x79)
593 ERESTART = syscall.Errno(0x55)
594 ERFKILL = syscall.Errno(0x84)
595 ESHUTDOWN = syscall.Errno(0x6c)
596 ESOCKTNOSUPPORT = syscall.Errno(0x5e)
597 ESRMNT = syscall.Errno(0x45)
598 ESTALE = syscall.Errno(0x74)
599 ESTRPIPE = syscall.Errno(0x56)
600 ETIME = syscall.Errno(0x3e)
601 ETIMEDOUT = syscall.Errno(0x6e)
602 ETOOMANYREFS = syscall.Errno(0x6d)
603 EUCLEAN = syscall.Errno(0x75)
604 EUNATCH = syscall.Errno(0x31)
605 EUSERS = syscall.Errno(0x57)
606 EXFULL = syscall.Errno(0x36)
607 )
608
609
610 const (
611 SIGBUS = syscall.Signal(0x7)
612 SIGCHLD = syscall.Signal(0x11)
613 SIGCLD = syscall.Signal(0x11)
614 SIGCONT = syscall.Signal(0x12)
615 SIGIO = syscall.Signal(0x1d)
616 SIGPOLL = syscall.Signal(0x1d)
617 SIGPROF = syscall.Signal(0x1b)
618 SIGPWR = syscall.Signal(0x1e)
619 SIGSTKFLT = syscall.Signal(0x10)
620 SIGSTOP = syscall.Signal(0x13)
621 SIGSYS = syscall.Signal(0x1f)
622 SIGTSTP = syscall.Signal(0x14)
623 SIGTTIN = syscall.Signal(0x15)
624 SIGTTOU = syscall.Signal(0x16)
625 SIGURG = syscall.Signal(0x17)
626 SIGUSR1 = syscall.Signal(0xa)
627 SIGUSR2 = syscall.Signal(0xc)
628 SIGVTALRM = syscall.Signal(0x1a)
629 SIGWINCH = syscall.Signal(0x1c)
630 SIGXCPU = syscall.Signal(0x18)
631 SIGXFSZ = syscall.Signal(0x19)
632 )
633
634
635 var errorList = [...]struct {
636 num syscall.Errno
637 name string
638 desc string
639 }{
640 {1, "EPERM", "operation not permitted"},
641 {2, "ENOENT", "no such file or directory"},
642 {3, "ESRCH", "no such process"},
643 {4, "EINTR", "interrupted system call"},
644 {5, "EIO", "input/output error"},
645 {6, "ENXIO", "no such device or address"},
646 {7, "E2BIG", "argument list too long"},
647 {8, "ENOEXEC", "exec format error"},
648 {9, "EBADF", "bad file descriptor"},
649 {10, "ECHILD", "no child processes"},
650 {11, "EAGAIN", "resource temporarily unavailable"},
651 {12, "ENOMEM", "cannot allocate memory"},
652 {13, "EACCES", "permission denied"},
653 {14, "EFAULT", "bad address"},
654 {15, "ENOTBLK", "block device required"},
655 {16, "EBUSY", "device or resource busy"},
656 {17, "EEXIST", "file exists"},
657 {18, "EXDEV", "invalid cross-device link"},
658 {19, "ENODEV", "no such device"},
659 {20, "ENOTDIR", "not a directory"},
660 {21, "EISDIR", "is a directory"},
661 {22, "EINVAL", "invalid argument"},
662 {23, "ENFILE", "too many open files in system"},
663 {24, "EMFILE", "too many open files"},
664 {25, "ENOTTY", "inappropriate ioctl for device"},
665 {26, "ETXTBSY", "text file busy"},
666 {27, "EFBIG", "file too large"},
667 {28, "ENOSPC", "no space left on device"},
668 {29, "ESPIPE", "illegal seek"},
669 {30, "EROFS", "read-only file system"},
670 {31, "EMLINK", "too many links"},
671 {32, "EPIPE", "broken pipe"},
672 {33, "EDOM", "numerical argument out of domain"},
673 {34, "ERANGE", "numerical result out of range"},
674 {35, "EDEADLK", "resource deadlock avoided"},
675 {36, "ENAMETOOLONG", "file name too long"},
676 {37, "ENOLCK", "no locks available"},
677 {38, "ENOSYS", "function not implemented"},
678 {39, "ENOTEMPTY", "directory not empty"},
679 {40, "ELOOP", "too many levels of symbolic links"},
680 {42, "ENOMSG", "no message of desired type"},
681 {43, "EIDRM", "identifier removed"},
682 {44, "ECHRNG", "channel number out of range"},
683 {45, "EL2NSYNC", "level 2 not synchronized"},
684 {46, "EL3HLT", "level 3 halted"},
685 {47, "EL3RST", "level 3 reset"},
686 {48, "ELNRNG", "link number out of range"},
687 {49, "EUNATCH", "protocol driver not attached"},
688 {50, "ENOCSI", "no CSI structure available"},
689 {51, "EL2HLT", "level 2 halted"},
690 {52, "EBADE", "invalid exchange"},
691 {53, "EBADR", "invalid request descriptor"},
692 {54, "EXFULL", "exchange full"},
693 {55, "ENOANO", "no anode"},
694 {56, "EBADRQC", "invalid request code"},
695 {57, "EBADSLT", "invalid slot"},
696 {59, "EBFONT", "bad font file format"},
697 {60, "ENOSTR", "device not a stream"},
698 {61, "ENODATA", "no data available"},
699 {62, "ETIME", "timer expired"},
700 {63, "ENOSR", "out of streams resources"},
701 {64, "ENONET", "machine is not on the network"},
702 {65, "ENOPKG", "package not installed"},
703 {66, "EREMOTE", "object is remote"},
704 {67, "ENOLINK", "link has been severed"},
705 {68, "EADV", "advertise error"},
706 {69, "ESRMNT", "srmount error"},
707 {70, "ECOMM", "communication error on send"},
708 {71, "EPROTO", "protocol error"},
709 {72, "EMULTIHOP", "multihop attempted"},
710 {73, "EDOTDOT", "RFS specific error"},
711 {74, "EBADMSG", "bad message"},
712 {75, "EOVERFLOW", "value too large for defined data type"},
713 {76, "ENOTUNIQ", "name not unique on network"},
714 {77, "EBADFD", "file descriptor in bad state"},
715 {78, "EREMCHG", "remote address changed"},
716 {79, "ELIBACC", "can not access a needed shared library"},
717 {80, "ELIBBAD", "accessing a corrupted shared library"},
718 {81, "ELIBSCN", ".lib section in a.out corrupted"},
719 {82, "ELIBMAX", "attempting to link in too many shared libraries"},
720 {83, "ELIBEXEC", "cannot exec a shared library directly"},
721 {84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
722 {85, "ERESTART", "interrupted system call should be restarted"},
723 {86, "ESTRPIPE", "streams pipe error"},
724 {87, "EUSERS", "too many users"},
725 {88, "ENOTSOCK", "socket operation on non-socket"},
726 {89, "EDESTADDRREQ", "destination address required"},
727 {90, "EMSGSIZE", "message too long"},
728 {91, "EPROTOTYPE", "protocol wrong type for socket"},
729 {92, "ENOPROTOOPT", "protocol not available"},
730 {93, "EPROTONOSUPPORT", "protocol not supported"},
731 {94, "ESOCKTNOSUPPORT", "socket type not supported"},
732 {95, "ENOTSUP", "operation not supported"},
733 {96, "EPFNOSUPPORT", "protocol family not supported"},
734 {97, "EAFNOSUPPORT", "address family not supported by protocol"},
735 {98, "EADDRINUSE", "address already in use"},
736 {99, "EADDRNOTAVAIL", "cannot assign requested address"},
737 {100, "ENETDOWN", "network is down"},
738 {101, "ENETUNREACH", "network is unreachable"},
739 {102, "ENETRESET", "network dropped connection on reset"},
740 {103, "ECONNABORTED", "software caused connection abort"},
741 {104, "ECONNRESET", "connection reset by peer"},
742 {105, "ENOBUFS", "no buffer space available"},
743 {106, "EISCONN", "transport endpoint is already connected"},
744 {107, "ENOTCONN", "transport endpoint is not connected"},
745 {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
746 {109, "ETOOMANYREFS", "too many references: cannot splice"},
747 {110, "ETIMEDOUT", "connection timed out"},
748 {111, "ECONNREFUSED", "connection refused"},
749 {112, "EHOSTDOWN", "host is down"},
750 {113, "EHOSTUNREACH", "no route to host"},
751 {114, "EALREADY", "operation already in progress"},
752 {115, "EINPROGRESS", "operation now in progress"},
753 {116, "ESTALE", "stale file handle"},
754 {117, "EUCLEAN", "structure needs cleaning"},
755 {118, "ENOTNAM", "not a XENIX named type file"},
756 {119, "ENAVAIL", "no XENIX semaphores available"},
757 {120, "EISNAM", "is a named type file"},
758 {121, "EREMOTEIO", "remote I/O error"},
759 {122, "EDQUOT", "disk quota exceeded"},
760 {123, "ENOMEDIUM", "no medium found"},
761 {124, "EMEDIUMTYPE", "wrong medium type"},
762 {125, "ECANCELED", "operation canceled"},
763 {126, "ENOKEY", "required key not available"},
764 {127, "EKEYEXPIRED", "key has expired"},
765 {128, "EKEYREVOKED", "key has been revoked"},
766 {129, "EKEYREJECTED", "key was rejected by service"},
767 {130, "EOWNERDEAD", "owner died"},
768 {131, "ENOTRECOVERABLE", "state not recoverable"},
769 {132, "ERFKILL", "operation not possible due to RF-kill"},
770 {133, "EHWPOISON", "memory page has hardware error"},
771 }
772
773
774 var signalList = [...]struct {
775 num syscall.Signal
776 name string
777 desc string
778 }{
779 {1, "SIGHUP", "hangup"},
780 {2, "SIGINT", "interrupt"},
781 {3, "SIGQUIT", "quit"},
782 {4, "SIGILL", "illegal instruction"},
783 {5, "SIGTRAP", "trace/breakpoint trap"},
784 {6, "SIGABRT", "aborted"},
785 {7, "SIGBUS", "bus error"},
786 {8, "SIGFPE", "floating point exception"},
787 {9, "SIGKILL", "killed"},
788 {10, "SIGUSR1", "user defined signal 1"},
789 {11, "SIGSEGV", "segmentation fault"},
790 {12, "SIGUSR2", "user defined signal 2"},
791 {13, "SIGPIPE", "broken pipe"},
792 {14, "SIGALRM", "alarm clock"},
793 {15, "SIGTERM", "terminated"},
794 {16, "SIGSTKFLT", "stack fault"},
795 {17, "SIGCHLD", "child exited"},
796 {18, "SIGCONT", "continued"},
797 {19, "SIGSTOP", "stopped (signal)"},
798 {20, "SIGTSTP", "stopped"},
799 {21, "SIGTTIN", "stopped (tty input)"},
800 {22, "SIGTTOU", "stopped (tty output)"},
801 {23, "SIGURG", "urgent I/O condition"},
802 {24, "SIGXCPU", "CPU time limit exceeded"},
803 {25, "SIGXFSZ", "file size limit exceeded"},
804 {26, "SIGVTALRM", "virtual timer expired"},
805 {27, "SIGPROF", "profiling timer expired"},
806 {28, "SIGWINCH", "window changed"},
807 {29, "SIGIO", "I/O possible"},
808 {30, "SIGPWR", "power failure"},
809 {31, "SIGSYS", "bad system call"},
810 }
811
View as plain text