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