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