1
2
3
4
5
6
7
8
9 package unix
10
11 import "syscall"
12
13 const (
14 B1000000 = 0x1008
15 B115200 = 0x1002
16 B1152000 = 0x1009
17 B1500000 = 0x100a
18 B2000000 = 0x100b
19 B230400 = 0x1003
20 B2500000 = 0x100c
21 B3000000 = 0x100d
22 B3500000 = 0x100e
23 B4000000 = 0x100f
24 B460800 = 0x1004
25 B500000 = 0x1005
26 B57600 = 0x1001
27 B576000 = 0x1006
28 B921600 = 0x1007
29 BLKALIGNOFF = 0x2000127a
30 BLKBSZGET = 0x40081270
31 BLKBSZSET = 0x80081271
32 BLKDISCARD = 0x20001277
33 BLKDISCARDZEROES = 0x2000127c
34 BLKFLSBUF = 0x20001261
35 BLKFRAGET = 0x20001265
36 BLKFRASET = 0x20001264
37 BLKGETDISKSEQ = 0x40081280
38 BLKGETSIZE = 0x20001260
39 BLKGETSIZE64 = 0x40081272
40 BLKIOMIN = 0x20001278
41 BLKIOOPT = 0x20001279
42 BLKPBSZGET = 0x2000127b
43 BLKRAGET = 0x20001263
44 BLKRASET = 0x20001262
45 BLKROGET = 0x2000125e
46 BLKROSET = 0x2000125d
47 BLKROTATIONAL = 0x2000127e
48 BLKRRPART = 0x2000125f
49 BLKSECDISCARD = 0x2000127d
50 BLKSECTGET = 0x20001267
51 BLKSECTSET = 0x20001266
52 BLKSSZGET = 0x20001268
53 BLKZEROOUT = 0x2000127f
54 BOTHER = 0x1000
55 BS1 = 0x2000
56 BSDLY = 0x2000
57 CBAUD = 0x100f
58 CBAUDEX = 0x1000
59 CIBAUD = 0x100f0000
60 CLOCAL = 0x800
61 CR1 = 0x200
62 CR2 = 0x400
63 CR3 = 0x600
64 CRDLY = 0x600
65 CREAD = 0x80
66 CS6 = 0x10
67 CS7 = 0x20
68 CS8 = 0x30
69 CSIZE = 0x30
70 CSTOPB = 0x40
71 ECCGETLAYOUT = 0x41484d11
72 ECCGETSTATS = 0x40104d12
73 ECHOCTL = 0x200
74 ECHOE = 0x10
75 ECHOK = 0x20
76 ECHOKE = 0x800
77 ECHONL = 0x40
78 ECHOPRT = 0x400
79 EFD_CLOEXEC = 0x80000
80 EFD_NONBLOCK = 0x80
81 EPOLL_CLOEXEC = 0x80000
82 EXTPROC = 0x10000
83 FF1 = 0x8000
84 FFDLY = 0x8000
85 FICLONE = 0x80049409
86 FICLONERANGE = 0x8020940d
87 FLUSHO = 0x2000
88 FS_IOC_ENABLE_VERITY = 0x80806685
89 FS_IOC_GETFLAGS = 0x40086601
90 FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b
91 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
92 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
93 FS_IOC_SETFLAGS = 0x80086602
94 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
95 F_GETLK = 0xe
96 F_GETLK64 = 0xe
97 F_GETOWN = 0x17
98 F_RDLCK = 0x0
99 F_SETLK = 0x6
100 F_SETLK64 = 0x6
101 F_SETLKW = 0x7
102 F_SETLKW64 = 0x7
103 F_SETOWN = 0x18
104 F_UNLCK = 0x2
105 F_WRLCK = 0x1
106 HIDIOCGRAWINFO = 0x40084803
107 HIDIOCGRDESC = 0x50044802
108 HIDIOCGRDESCSIZE = 0x40044801
109 HUPCL = 0x400
110 ICANON = 0x2
111 IEXTEN = 0x100
112 IN_CLOEXEC = 0x80000
113 IN_NONBLOCK = 0x80
114 IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9
115 ISIG = 0x1
116 IUCLC = 0x200
117 IXOFF = 0x1000
118 IXON = 0x400
119 MAP_ANON = 0x800
120 MAP_ANONYMOUS = 0x800
121 MAP_DENYWRITE = 0x2000
122 MAP_EXECUTABLE = 0x4000
123 MAP_GROWSDOWN = 0x1000
124 MAP_HUGETLB = 0x80000
125 MAP_LOCKED = 0x8000
126 MAP_NONBLOCK = 0x20000
127 MAP_NORESERVE = 0x400
128 MAP_POPULATE = 0x10000
129 MAP_RENAME = 0x800
130 MAP_STACK = 0x40000
131 MCL_CURRENT = 0x1
132 MCL_FUTURE = 0x2
133 MCL_ONFAULT = 0x4
134 MEMERASE = 0x80084d02
135 MEMERASE64 = 0x80104d14
136 MEMGETBADBLOCK = 0x80084d0b
137 MEMGETINFO = 0x40204d01
138 MEMGETOOBSEL = 0x40c84d0a
139 MEMGETREGIONCOUNT = 0x40044d07
140 MEMISLOCKED = 0x40084d17
141 MEMLOCK = 0x80084d05
142 MEMREAD = 0xc0404d1a
143 MEMREADOOB = 0xc0104d04
144 MEMSETBADBLOCK = 0x80084d0c
145 MEMUNLOCK = 0x80084d06
146 MEMWRITEOOB = 0xc0104d03
147 MTDFILEMODE = 0x20004d13
148 NFDBITS = 0x40
149 NLDLY = 0x100
150 NOFLSH = 0x80
151 NS_GET_NSTYPE = 0x2000b703
152 NS_GET_OWNER_UID = 0x2000b704
153 NS_GET_PARENT = 0x2000b702
154 NS_GET_USERNS = 0x2000b701
155 OLCUC = 0x2
156 ONLCR = 0x4
157 OTPERASE = 0x800c4d19
158 OTPGETREGIONCOUNT = 0x80044d0e
159 OTPGETREGIONINFO = 0x800c4d0f
160 OTPLOCK = 0x400c4d10
161 OTPSELECT = 0x40044d0d
162 O_APPEND = 0x8
163 O_ASYNC = 0x1000
164 O_CLOEXEC = 0x80000
165 O_CREAT = 0x100
166 O_DIRECT = 0x8000
167 O_DIRECTORY = 0x10000
168 O_DSYNC = 0x10
169 O_EXCL = 0x400
170 O_FSYNC = 0x4010
171 O_LARGEFILE = 0x0
172 O_NDELAY = 0x80
173 O_NOATIME = 0x40000
174 O_NOCTTY = 0x800
175 O_NOFOLLOW = 0x20000
176 O_NONBLOCK = 0x80
177 O_PATH = 0x200000
178 O_RSYNC = 0x4010
179 O_SYNC = 0x4010
180 O_TMPFILE = 0x410000
181 O_TRUNC = 0x200
182 PARENB = 0x100
183 PARODD = 0x200
184 PENDIN = 0x4000
185 PERF_EVENT_IOC_DISABLE = 0x20002401
186 PERF_EVENT_IOC_ENABLE = 0x20002400
187 PERF_EVENT_IOC_ID = 0x40082407
188 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
189 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
190 PERF_EVENT_IOC_PERIOD = 0x80082404
191 PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
192 PERF_EVENT_IOC_REFRESH = 0x20002402
193 PERF_EVENT_IOC_RESET = 0x20002403
194 PERF_EVENT_IOC_SET_BPF = 0x80042408
195 PERF_EVENT_IOC_SET_FILTER = 0x80082406
196 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
197 PPPIOCATTACH = 0x8004743d
198 PPPIOCATTCHAN = 0x80047438
199 PPPIOCBRIDGECHAN = 0x80047435
200 PPPIOCCONNECT = 0x8004743a
201 PPPIOCDETACH = 0x8004743c
202 PPPIOCDISCONN = 0x20007439
203 PPPIOCGASYNCMAP = 0x40047458
204 PPPIOCGCHAN = 0x40047437
205 PPPIOCGDEBUG = 0x40047441
206 PPPIOCGFLAGS = 0x4004745a
207 PPPIOCGIDLE = 0x4010743f
208 PPPIOCGIDLE32 = 0x4008743f
209 PPPIOCGIDLE64 = 0x4010743f
210 PPPIOCGL2TPSTATS = 0x40487436
211 PPPIOCGMRU = 0x40047453
212 PPPIOCGRASYNCMAP = 0x40047455
213 PPPIOCGUNIT = 0x40047456
214 PPPIOCGXASYNCMAP = 0x40207450
215 PPPIOCSACTIVE = 0x80107446
216 PPPIOCSASYNCMAP = 0x80047457
217 PPPIOCSCOMPRESS = 0x8010744d
218 PPPIOCSDEBUG = 0x80047440
219 PPPIOCSFLAGS = 0x80047459
220 PPPIOCSMAXCID = 0x80047451
221 PPPIOCSMRRU = 0x8004743b
222 PPPIOCSMRU = 0x80047452
223 PPPIOCSNPMODE = 0x8008744b
224 PPPIOCSPASS = 0x80107447
225 PPPIOCSRASYNCMAP = 0x80047454
226 PPPIOCSXASYNCMAP = 0x8020744f
227 PPPIOCUNBRIDGECHAN = 0x20007434
228 PPPIOCXFERUNIT = 0x2000744e
229 PR_SET_PTRACER_ANY = 0xffffffffffffffff
230 PTRACE_GETFPREGS = 0xe
231 PTRACE_GET_THREAD_AREA = 0x19
232 PTRACE_GET_THREAD_AREA_3264 = 0xc4
233 PTRACE_GET_WATCH_REGS = 0xd0
234 PTRACE_OLDSETOPTIONS = 0x15
235 PTRACE_PEEKDATA_3264 = 0xc1
236 PTRACE_PEEKTEXT_3264 = 0xc0
237 PTRACE_POKEDATA_3264 = 0xc3
238 PTRACE_POKETEXT_3264 = 0xc2
239 PTRACE_SETFPREGS = 0xf
240 PTRACE_SET_THREAD_AREA = 0x1a
241 PTRACE_SET_WATCH_REGS = 0xd1
242 RLIMIT_AS = 0x6
243 RLIMIT_MEMLOCK = 0x9
244 RLIMIT_NOFILE = 0x5
245 RLIMIT_NPROC = 0x8
246 RLIMIT_RSS = 0x7
247 RNDADDENTROPY = 0x80085203
248 RNDADDTOENTCNT = 0x80045201
249 RNDCLEARPOOL = 0x20005206
250 RNDGETENTCNT = 0x40045200
251 RNDGETPOOL = 0x40085202
252 RNDRESEEDCRNG = 0x20005207
253 RNDZAPENTCNT = 0x20005204
254 RTC_AIE_OFF = 0x20007002
255 RTC_AIE_ON = 0x20007001
256 RTC_ALM_READ = 0x40247008
257 RTC_ALM_SET = 0x80247007
258 RTC_EPOCH_READ = 0x4008700d
259 RTC_EPOCH_SET = 0x8008700e
260 RTC_IRQP_READ = 0x4008700b
261 RTC_IRQP_SET = 0x8008700c
262 RTC_PARAM_GET = 0x80187013
263 RTC_PARAM_SET = 0x80187014
264 RTC_PIE_OFF = 0x20007006
265 RTC_PIE_ON = 0x20007005
266 RTC_PLL_GET = 0x40207011
267 RTC_PLL_SET = 0x80207012
268 RTC_RD_TIME = 0x40247009
269 RTC_SET_TIME = 0x8024700a
270 RTC_UIE_OFF = 0x20007004
271 RTC_UIE_ON = 0x20007003
272 RTC_VL_CLR = 0x20007014
273 RTC_VL_READ = 0x40047013
274 RTC_WIE_OFF = 0x20007010
275 RTC_WIE_ON = 0x2000700f
276 RTC_WKALM_RD = 0x40287010
277 RTC_WKALM_SET = 0x8028700f
278 SCM_TIMESTAMPING = 0x25
279 SCM_TIMESTAMPING_OPT_STATS = 0x36
280 SCM_TIMESTAMPING_PKTINFO = 0x3a
281 SCM_TIMESTAMPNS = 0x23
282 SCM_TXTIME = 0x3d
283 SCM_WIFI_STATUS = 0x29
284 SFD_CLOEXEC = 0x80000
285 SFD_NONBLOCK = 0x80
286 SIOCATMARK = 0x40047307
287 SIOCGPGRP = 0x40047309
288 SIOCGSTAMPNS_NEW = 0x40108907
289 SIOCGSTAMP_NEW = 0x40108906
290 SIOCINQ = 0x467f
291 SIOCOUTQ = 0x7472
292 SIOCSPGRP = 0x80047308
293 SOCK_CLOEXEC = 0x80000
294 SOCK_DGRAM = 0x1
295 SOCK_NONBLOCK = 0x80
296 SOCK_STREAM = 0x2
297 SOL_SOCKET = 0xffff
298 SO_ACCEPTCONN = 0x1009
299 SO_ATTACH_BPF = 0x32
300 SO_ATTACH_REUSEPORT_CBPF = 0x33
301 SO_ATTACH_REUSEPORT_EBPF = 0x34
302 SO_BINDTODEVICE = 0x19
303 SO_BINDTOIFINDEX = 0x3e
304 SO_BPF_EXTENSIONS = 0x30
305 SO_BROADCAST = 0x20
306 SO_BSDCOMPAT = 0xe
307 SO_BUF_LOCK = 0x48
308 SO_BUSY_POLL = 0x2e
309 SO_BUSY_POLL_BUDGET = 0x46
310 SO_CNX_ADVICE = 0x35
311 SO_COOKIE = 0x39
312 SO_DETACH_REUSEPORT_BPF = 0x44
313 SO_DOMAIN = 0x1029
314 SO_DONTROUTE = 0x10
315 SO_ERROR = 0x1007
316 SO_INCOMING_CPU = 0x31
317 SO_INCOMING_NAPI_ID = 0x38
318 SO_KEEPALIVE = 0x8
319 SO_LINGER = 0x80
320 SO_LOCK_FILTER = 0x2c
321 SO_MARK = 0x24
322 SO_MAX_PACING_RATE = 0x2f
323 SO_MEMINFO = 0x37
324 SO_NETNS_COOKIE = 0x47
325 SO_NOFCS = 0x2b
326 SO_OOBINLINE = 0x100
327 SO_PASSCRED = 0x11
328 SO_PASSPIDFD = 0x4c
329 SO_PASSSEC = 0x22
330 SO_PEEK_OFF = 0x2a
331 SO_PEERCRED = 0x12
332 SO_PEERGROUPS = 0x3b
333 SO_PEERPIDFD = 0x4d
334 SO_PEERSEC = 0x1e
335 SO_PREFER_BUSY_POLL = 0x45
336 SO_PROTOCOL = 0x1028
337 SO_RCVBUF = 0x1002
338 SO_RCVBUFFORCE = 0x21
339 SO_RCVLOWAT = 0x1004
340 SO_RCVMARK = 0x4b
341 SO_RCVTIMEO = 0x1006
342 SO_RCVTIMEO_NEW = 0x42
343 SO_RCVTIMEO_OLD = 0x1006
344 SO_RESERVE_MEM = 0x49
345 SO_REUSEADDR = 0x4
346 SO_REUSEPORT = 0x200
347 SO_RXQ_OVFL = 0x28
348 SO_SECURITY_AUTHENTICATION = 0x16
349 SO_SECURITY_ENCRYPTION_NETWORK = 0x18
350 SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
351 SO_SELECT_ERR_QUEUE = 0x2d
352 SO_SNDBUF = 0x1001
353 SO_SNDBUFFORCE = 0x1f
354 SO_SNDLOWAT = 0x1003
355 SO_SNDTIMEO = 0x1005
356 SO_SNDTIMEO_NEW = 0x43
357 SO_SNDTIMEO_OLD = 0x1005
358 SO_STYLE = 0x1008
359 SO_TIMESTAMPING = 0x25
360 SO_TIMESTAMPING_NEW = 0x41
361 SO_TIMESTAMPING_OLD = 0x25
362 SO_TIMESTAMPNS = 0x23
363 SO_TIMESTAMPNS_NEW = 0x40
364 SO_TIMESTAMPNS_OLD = 0x23
365 SO_TIMESTAMP_NEW = 0x3f
366 SO_TXREHASH = 0x4a
367 SO_TXTIME = 0x3d
368 SO_TYPE = 0x1008
369 SO_WIFI_STATUS = 0x29
370 SO_ZEROCOPY = 0x3c
371 TAB1 = 0x800
372 TAB2 = 0x1000
373 TAB3 = 0x1800
374 TABDLY = 0x1800
375 TCFLSH = 0x5407
376 TCGETA = 0x5401
377 TCGETS = 0x540d
378 TCGETS2 = 0x4030542a
379 TCSAFLUSH = 0x5410
380 TCSBRK = 0x5405
381 TCSBRKP = 0x5486
382 TCSETA = 0x5402
383 TCSETAF = 0x5404
384 TCSETAW = 0x5403
385 TCSETS = 0x540e
386 TCSETS2 = 0x8030542b
387 TCSETSF = 0x5410
388 TCSETSF2 = 0x8030542d
389 TCSETSW = 0x540f
390 TCSETSW2 = 0x8030542c
391 TCXONC = 0x5406
392 TFD_CLOEXEC = 0x80000
393 TFD_NONBLOCK = 0x80
394 TIOCCBRK = 0x5428
395 TIOCCONS = 0x80047478
396 TIOCEXCL = 0x740d
397 TIOCGDEV = 0x40045432
398 TIOCGETD = 0x7400
399 TIOCGETP = 0x7408
400 TIOCGEXCL = 0x40045440
401 TIOCGICOUNT = 0x5492
402 TIOCGISO7816 = 0x40285442
403 TIOCGLCKTRMIOS = 0x548b
404 TIOCGLTC = 0x7474
405 TIOCGPGRP = 0x40047477
406 TIOCGPKT = 0x40045438
407 TIOCGPTLCK = 0x40045439
408 TIOCGPTN = 0x40045430
409 TIOCGPTPEER = 0x20005441
410 TIOCGRS485 = 0x4020542e
411 TIOCGSERIAL = 0x5484
412 TIOCGSID = 0x7416
413 TIOCGSOFTCAR = 0x5481
414 TIOCGWINSZ = 0x40087468
415 TIOCINQ = 0x467f
416 TIOCLINUX = 0x5483
417 TIOCMBIC = 0x741c
418 TIOCMBIS = 0x741b
419 TIOCMGET = 0x741d
420 TIOCMIWAIT = 0x5491
421 TIOCMSET = 0x741a
422 TIOCM_CAR = 0x100
423 TIOCM_CD = 0x100
424 TIOCM_CTS = 0x40
425 TIOCM_DSR = 0x400
426 TIOCM_RI = 0x200
427 TIOCM_RNG = 0x200
428 TIOCM_SR = 0x20
429 TIOCM_ST = 0x10
430 TIOCNOTTY = 0x5471
431 TIOCNXCL = 0x740e
432 TIOCOUTQ = 0x7472
433 TIOCPKT = 0x5470
434 TIOCSBRK = 0x5427
435 TIOCSCTTY = 0x5480
436 TIOCSERCONFIG = 0x5488
437 TIOCSERGETLSR = 0x548e
438 TIOCSERGETMULTI = 0x548f
439 TIOCSERGSTRUCT = 0x548d
440 TIOCSERGWILD = 0x5489
441 TIOCSERSETMULTI = 0x5490
442 TIOCSERSWILD = 0x548a
443 TIOCSER_TEMT = 0x1
444 TIOCSETD = 0x7401
445 TIOCSETN = 0x740a
446 TIOCSETP = 0x7409
447 TIOCSIG = 0x80045436
448 TIOCSISO7816 = 0xc0285443
449 TIOCSLCKTRMIOS = 0x548c
450 TIOCSLTC = 0x7475
451 TIOCSPGRP = 0x80047476
452 TIOCSPTLCK = 0x80045431
453 TIOCSRS485 = 0xc020542f
454 TIOCSSERIAL = 0x5485
455 TIOCSSOFTCAR = 0x5482
456 TIOCSTI = 0x5472
457 TIOCSWINSZ = 0x80087467
458 TIOCVHANGUP = 0x5437
459 TOSTOP = 0x8000
460 TUNATTACHFILTER = 0x801054d5
461 TUNDETACHFILTER = 0x801054d6
462 TUNGETDEVNETNS = 0x200054e3
463 TUNGETFEATURES = 0x400454cf
464 TUNGETFILTER = 0x401054db
465 TUNGETIFF = 0x400454d2
466 TUNGETSNDBUF = 0x400454d3
467 TUNGETVNETBE = 0x400454df
468 TUNGETVNETHDRSZ = 0x400454d7
469 TUNGETVNETLE = 0x400454dd
470 TUNSETCARRIER = 0x800454e2
471 TUNSETDEBUG = 0x800454c9
472 TUNSETFILTEREBPF = 0x400454e1
473 TUNSETGROUP = 0x800454ce
474 TUNSETIFF = 0x800454ca
475 TUNSETIFINDEX = 0x800454da
476 TUNSETLINK = 0x800454cd
477 TUNSETNOCSUM = 0x800454c8
478 TUNSETOFFLOAD = 0x800454d0
479 TUNSETOWNER = 0x800454cc
480 TUNSETPERSIST = 0x800454cb
481 TUNSETQUEUE = 0x800454d9
482 TUNSETSNDBUF = 0x800454d4
483 TUNSETSTEERINGEBPF = 0x400454e0
484 TUNSETTXFILTER = 0x800454d1
485 TUNSETVNETBE = 0x800454de
486 TUNSETVNETHDRSZ = 0x800454d8
487 TUNSETVNETLE = 0x800454dc
488 UBI_IOCATT = 0x80186f40
489 UBI_IOCDET = 0x80046f41
490 UBI_IOCEBCH = 0x80044f02
491 UBI_IOCEBER = 0x80044f01
492 UBI_IOCEBISMAP = 0x40044f05
493 UBI_IOCEBMAP = 0x80084f03
494 UBI_IOCEBUNMAP = 0x80044f04
495 UBI_IOCMKVOL = 0x80986f00
496 UBI_IOCRMVOL = 0x80046f01
497 UBI_IOCRNVOL = 0x91106f03
498 UBI_IOCRPEB = 0x80046f04
499 UBI_IOCRSVOL = 0x800c6f02
500 UBI_IOCSETVOLPROP = 0x80104f06
501 UBI_IOCSPEB = 0x80046f05
502 UBI_IOCVOLCRBLK = 0x80804f07
503 UBI_IOCVOLRMBLK = 0x20004f08
504 UBI_IOCVOLUP = 0x80084f00
505 VDISCARD = 0xd
506 VEOF = 0x10
507 VEOL = 0x11
508 VEOL2 = 0x6
509 VMIN = 0x4
510 VREPRINT = 0xc
511 VSTART = 0x8
512 VSTOP = 0x9
513 VSUSP = 0xa
514 VSWTC = 0x7
515 VSWTCH = 0x7
516 VT1 = 0x4000
517 VTDLY = 0x4000
518 VTIME = 0x5
519 VWERASE = 0xe
520 WDIOC_GETBOOTSTATUS = 0x40045702
521 WDIOC_GETPRETIMEOUT = 0x40045709
522 WDIOC_GETSTATUS = 0x40045701
523 WDIOC_GETSUPPORT = 0x40285700
524 WDIOC_GETTEMP = 0x40045703
525 WDIOC_GETTIMELEFT = 0x4004570a
526 WDIOC_GETTIMEOUT = 0x40045707
527 WDIOC_KEEPALIVE = 0x40045705
528 WDIOC_SETOPTIONS = 0x40045704
529 WORDSIZE = 0x40
530 XCASE = 0x4
531 XTABS = 0x1800
532 _HIDIOCGRAWNAME = 0x40804804
533 _HIDIOCGRAWPHYS = 0x40404805
534 _HIDIOCGRAWUNIQ = 0x40404808
535 )
536
537
538 const (
539 EADDRINUSE = syscall.Errno(0x7d)
540 EADDRNOTAVAIL = syscall.Errno(0x7e)
541 EADV = syscall.Errno(0x44)
542 EAFNOSUPPORT = syscall.Errno(0x7c)
543 EALREADY = syscall.Errno(0x95)
544 EBADE = syscall.Errno(0x32)
545 EBADFD = syscall.Errno(0x51)
546 EBADMSG = syscall.Errno(0x4d)
547 EBADR = syscall.Errno(0x33)
548 EBADRQC = syscall.Errno(0x36)
549 EBADSLT = syscall.Errno(0x37)
550 EBFONT = syscall.Errno(0x3b)
551 ECANCELED = syscall.Errno(0x9e)
552 ECHRNG = syscall.Errno(0x25)
553 ECOMM = syscall.Errno(0x46)
554 ECONNABORTED = syscall.Errno(0x82)
555 ECONNREFUSED = syscall.Errno(0x92)
556 ECONNRESET = syscall.Errno(0x83)
557 EDEADLK = syscall.Errno(0x2d)
558 EDEADLOCK = syscall.Errno(0x38)
559 EDESTADDRREQ = syscall.Errno(0x60)
560 EDOTDOT = syscall.Errno(0x49)
561 EDQUOT = syscall.Errno(0x46d)
562 EHOSTDOWN = syscall.Errno(0x93)
563 EHOSTUNREACH = syscall.Errno(0x94)
564 EHWPOISON = syscall.Errno(0xa8)
565 EIDRM = syscall.Errno(0x24)
566 EILSEQ = syscall.Errno(0x58)
567 EINIT = syscall.Errno(0x8d)
568 EINPROGRESS = syscall.Errno(0x96)
569 EISCONN = syscall.Errno(0x85)
570 EISNAM = syscall.Errno(0x8b)
571 EKEYEXPIRED = syscall.Errno(0xa2)
572 EKEYREJECTED = syscall.Errno(0xa4)
573 EKEYREVOKED = syscall.Errno(0xa3)
574 EL2HLT = syscall.Errno(0x2c)
575 EL2NSYNC = syscall.Errno(0x26)
576 EL3HLT = syscall.Errno(0x27)
577 EL3RST = syscall.Errno(0x28)
578 ELIBACC = syscall.Errno(0x53)
579 ELIBBAD = syscall.Errno(0x54)
580 ELIBEXEC = syscall.Errno(0x57)
581 ELIBMAX = syscall.Errno(0x56)
582 ELIBSCN = syscall.Errno(0x55)
583 ELNRNG = syscall.Errno(0x29)
584 ELOOP = syscall.Errno(0x5a)
585 EMEDIUMTYPE = syscall.Errno(0xa0)
586 EMSGSIZE = syscall.Errno(0x61)
587 EMULTIHOP = syscall.Errno(0x4a)
588 ENAMETOOLONG = syscall.Errno(0x4e)
589 ENAVAIL = syscall.Errno(0x8a)
590 ENETDOWN = syscall.Errno(0x7f)
591 ENETRESET = syscall.Errno(0x81)
592 ENETUNREACH = syscall.Errno(0x80)
593 ENOANO = syscall.Errno(0x35)
594 ENOBUFS = syscall.Errno(0x84)
595 ENOCSI = syscall.Errno(0x2b)
596 ENODATA = syscall.Errno(0x3d)
597 ENOKEY = syscall.Errno(0xa1)
598 ENOLCK = syscall.Errno(0x2e)
599 ENOLINK = syscall.Errno(0x43)
600 ENOMEDIUM = syscall.Errno(0x9f)
601 ENOMSG = syscall.Errno(0x23)
602 ENONET = syscall.Errno(0x40)
603 ENOPKG = syscall.Errno(0x41)
604 ENOPROTOOPT = syscall.Errno(0x63)
605 ENOSR = syscall.Errno(0x3f)
606 ENOSTR = syscall.Errno(0x3c)
607 ENOSYS = syscall.Errno(0x59)
608 ENOTCONN = syscall.Errno(0x86)
609 ENOTEMPTY = syscall.Errno(0x5d)
610 ENOTNAM = syscall.Errno(0x89)
611 ENOTRECOVERABLE = syscall.Errno(0xa6)
612 ENOTSOCK = syscall.Errno(0x5f)
613 ENOTSUP = syscall.Errno(0x7a)
614 ENOTUNIQ = syscall.Errno(0x50)
615 EOPNOTSUPP = syscall.Errno(0x7a)
616 EOVERFLOW = syscall.Errno(0x4f)
617 EOWNERDEAD = syscall.Errno(0xa5)
618 EPFNOSUPPORT = syscall.Errno(0x7b)
619 EPROTO = syscall.Errno(0x47)
620 EPROTONOSUPPORT = syscall.Errno(0x78)
621 EPROTOTYPE = syscall.Errno(0x62)
622 EREMCHG = syscall.Errno(0x52)
623 EREMDEV = syscall.Errno(0x8e)
624 EREMOTE = syscall.Errno(0x42)
625 EREMOTEIO = syscall.Errno(0x8c)
626 ERESTART = syscall.Errno(0x5b)
627 ERFKILL = syscall.Errno(0xa7)
628 ESHUTDOWN = syscall.Errno(0x8f)
629 ESOCKTNOSUPPORT = syscall.Errno(0x79)
630 ESRMNT = syscall.Errno(0x45)
631 ESTALE = syscall.Errno(0x97)
632 ESTRPIPE = syscall.Errno(0x5c)
633 ETIME = syscall.Errno(0x3e)
634 ETIMEDOUT = syscall.Errno(0x91)
635 ETOOMANYREFS = syscall.Errno(0x90)
636 EUCLEAN = syscall.Errno(0x87)
637 EUNATCH = syscall.Errno(0x2a)
638 EUSERS = syscall.Errno(0x5e)
639 EXFULL = syscall.Errno(0x34)
640 )
641
642
643 const (
644 SIGBUS = syscall.Signal(0xa)
645 SIGCHLD = syscall.Signal(0x12)
646 SIGCLD = syscall.Signal(0x12)
647 SIGCONT = syscall.Signal(0x19)
648 SIGEMT = syscall.Signal(0x7)
649 SIGIO = syscall.Signal(0x16)
650 SIGPOLL = syscall.Signal(0x16)
651 SIGPROF = syscall.Signal(0x1d)
652 SIGPWR = syscall.Signal(0x13)
653 SIGSTOP = syscall.Signal(0x17)
654 SIGSYS = syscall.Signal(0xc)
655 SIGTSTP = syscall.Signal(0x18)
656 SIGTTIN = syscall.Signal(0x1a)
657 SIGTTOU = syscall.Signal(0x1b)
658 SIGURG = syscall.Signal(0x15)
659 SIGUSR1 = syscall.Signal(0x10)
660 SIGUSR2 = syscall.Signal(0x11)
661 SIGVTALRM = syscall.Signal(0x1c)
662 SIGWINCH = syscall.Signal(0x14)
663 SIGXCPU = syscall.Signal(0x1e)
664 SIGXFSZ = syscall.Signal(0x1f)
665 )
666
667
668 var errorList = [...]struct {
669 num syscall.Errno
670 name string
671 desc string
672 }{
673 {1, "EPERM", "operation not permitted"},
674 {2, "ENOENT", "no such file or directory"},
675 {3, "ESRCH", "no such process"},
676 {4, "EINTR", "interrupted system call"},
677 {5, "EIO", "input/output error"},
678 {6, "ENXIO", "no such device or address"},
679 {7, "E2BIG", "argument list too long"},
680 {8, "ENOEXEC", "exec format error"},
681 {9, "EBADF", "bad file descriptor"},
682 {10, "ECHILD", "no child processes"},
683 {11, "EAGAIN", "resource temporarily unavailable"},
684 {12, "ENOMEM", "cannot allocate memory"},
685 {13, "EACCES", "permission denied"},
686 {14, "EFAULT", "bad address"},
687 {15, "ENOTBLK", "block device required"},
688 {16, "EBUSY", "device or resource busy"},
689 {17, "EEXIST", "file exists"},
690 {18, "EXDEV", "invalid cross-device link"},
691 {19, "ENODEV", "no such device"},
692 {20, "ENOTDIR", "not a directory"},
693 {21, "EISDIR", "is a directory"},
694 {22, "EINVAL", "invalid argument"},
695 {23, "ENFILE", "too many open files in system"},
696 {24, "EMFILE", "too many open files"},
697 {25, "ENOTTY", "inappropriate ioctl for device"},
698 {26, "ETXTBSY", "text file busy"},
699 {27, "EFBIG", "file too large"},
700 {28, "ENOSPC", "no space left on device"},
701 {29, "ESPIPE", "illegal seek"},
702 {30, "EROFS", "read-only file system"},
703 {31, "EMLINK", "too many links"},
704 {32, "EPIPE", "broken pipe"},
705 {33, "EDOM", "numerical argument out of domain"},
706 {34, "ERANGE", "numerical result out of range"},
707 {35, "ENOMSG", "no message of desired type"},
708 {36, "EIDRM", "identifier removed"},
709 {37, "ECHRNG", "channel number out of range"},
710 {38, "EL2NSYNC", "level 2 not synchronized"},
711 {39, "EL3HLT", "level 3 halted"},
712 {40, "EL3RST", "level 3 reset"},
713 {41, "ELNRNG", "link number out of range"},
714 {42, "EUNATCH", "protocol driver not attached"},
715 {43, "ENOCSI", "no CSI structure available"},
716 {44, "EL2HLT", "level 2 halted"},
717 {45, "EDEADLK", "resource deadlock avoided"},
718 {46, "ENOLCK", "no locks available"},
719 {50, "EBADE", "invalid exchange"},
720 {51, "EBADR", "invalid request descriptor"},
721 {52, "EXFULL", "exchange full"},
722 {53, "ENOANO", "no anode"},
723 {54, "EBADRQC", "invalid request code"},
724 {55, "EBADSLT", "invalid slot"},
725 {56, "EDEADLOCK", "file locking deadlock error"},
726 {59, "EBFONT", "bad font file format"},
727 {60, "ENOSTR", "device not a stream"},
728 {61, "ENODATA", "no data available"},
729 {62, "ETIME", "timer expired"},
730 {63, "ENOSR", "out of streams resources"},
731 {64, "ENONET", "machine is not on the network"},
732 {65, "ENOPKG", "package not installed"},
733 {66, "EREMOTE", "object is remote"},
734 {67, "ENOLINK", "link has been severed"},
735 {68, "EADV", "advertise error"},
736 {69, "ESRMNT", "srmount error"},
737 {70, "ECOMM", "communication error on send"},
738 {71, "EPROTO", "protocol error"},
739 {73, "EDOTDOT", "RFS specific error"},
740 {74, "EMULTIHOP", "multihop attempted"},
741 {77, "EBADMSG", "bad message"},
742 {78, "ENAMETOOLONG", "file name too long"},
743 {79, "EOVERFLOW", "value too large for defined data type"},
744 {80, "ENOTUNIQ", "name not unique on network"},
745 {81, "EBADFD", "file descriptor in bad state"},
746 {82, "EREMCHG", "remote address changed"},
747 {83, "ELIBACC", "can not access a needed shared library"},
748 {84, "ELIBBAD", "accessing a corrupted shared library"},
749 {85, "ELIBSCN", ".lib section in a.out corrupted"},
750 {86, "ELIBMAX", "attempting to link in too many shared libraries"},
751 {87, "ELIBEXEC", "cannot exec a shared library directly"},
752 {88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
753 {89, "ENOSYS", "function not implemented"},
754 {90, "ELOOP", "too many levels of symbolic links"},
755 {91, "ERESTART", "interrupted system call should be restarted"},
756 {92, "ESTRPIPE", "streams pipe error"},
757 {93, "ENOTEMPTY", "directory not empty"},
758 {94, "EUSERS", "too many users"},
759 {95, "ENOTSOCK", "socket operation on non-socket"},
760 {96, "EDESTADDRREQ", "destination address required"},
761 {97, "EMSGSIZE", "message too long"},
762 {98, "EPROTOTYPE", "protocol wrong type for socket"},
763 {99, "ENOPROTOOPT", "protocol not available"},
764 {120, "EPROTONOSUPPORT", "protocol not supported"},
765 {121, "ESOCKTNOSUPPORT", "socket type not supported"},
766 {122, "ENOTSUP", "operation not supported"},
767 {123, "EPFNOSUPPORT", "protocol family not supported"},
768 {124, "EAFNOSUPPORT", "address family not supported by protocol"},
769 {125, "EADDRINUSE", "address already in use"},
770 {126, "EADDRNOTAVAIL", "cannot assign requested address"},
771 {127, "ENETDOWN", "network is down"},
772 {128, "ENETUNREACH", "network is unreachable"},
773 {129, "ENETRESET", "network dropped connection on reset"},
774 {130, "ECONNABORTED", "software caused connection abort"},
775 {131, "ECONNRESET", "connection reset by peer"},
776 {132, "ENOBUFS", "no buffer space available"},
777 {133, "EISCONN", "transport endpoint is already connected"},
778 {134, "ENOTCONN", "transport endpoint is not connected"},
779 {135, "EUCLEAN", "structure needs cleaning"},
780 {137, "ENOTNAM", "not a XENIX named type file"},
781 {138, "ENAVAIL", "no XENIX semaphores available"},
782 {139, "EISNAM", "is a named type file"},
783 {140, "EREMOTEIO", "remote I/O error"},
784 {141, "EINIT", "unknown error 141"},
785 {142, "EREMDEV", "unknown error 142"},
786 {143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
787 {144, "ETOOMANYREFS", "too many references: cannot splice"},
788 {145, "ETIMEDOUT", "connection timed out"},
789 {146, "ECONNREFUSED", "connection refused"},
790 {147, "EHOSTDOWN", "host is down"},
791 {148, "EHOSTUNREACH", "no route to host"},
792 {149, "EALREADY", "operation already in progress"},
793 {150, "EINPROGRESS", "operation now in progress"},
794 {151, "ESTALE", "stale file handle"},
795 {158, "ECANCELED", "operation canceled"},
796 {159, "ENOMEDIUM", "no medium found"},
797 {160, "EMEDIUMTYPE", "wrong medium type"},
798 {161, "ENOKEY", "required key not available"},
799 {162, "EKEYEXPIRED", "key has expired"},
800 {163, "EKEYREVOKED", "key has been revoked"},
801 {164, "EKEYREJECTED", "key was rejected by service"},
802 {165, "EOWNERDEAD", "owner died"},
803 {166, "ENOTRECOVERABLE", "state not recoverable"},
804 {167, "ERFKILL", "operation not possible due to RF-kill"},
805 {168, "EHWPOISON", "memory page has hardware error"},
806 {1133, "EDQUOT", "disk quota exceeded"},
807 }
808
809
810 var signalList = [...]struct {
811 num syscall.Signal
812 name string
813 desc string
814 }{
815 {1, "SIGHUP", "hangup"},
816 {2, "SIGINT", "interrupt"},
817 {3, "SIGQUIT", "quit"},
818 {4, "SIGILL", "illegal instruction"},
819 {5, "SIGTRAP", "trace/breakpoint trap"},
820 {6, "SIGABRT", "aborted"},
821 {7, "SIGEMT", "EMT trap"},
822 {8, "SIGFPE", "floating point exception"},
823 {9, "SIGKILL", "killed"},
824 {10, "SIGBUS", "bus error"},
825 {11, "SIGSEGV", "segmentation fault"},
826 {12, "SIGSYS", "bad system call"},
827 {13, "SIGPIPE", "broken pipe"},
828 {14, "SIGALRM", "alarm clock"},
829 {15, "SIGTERM", "terminated"},
830 {16, "SIGUSR1", "user defined signal 1"},
831 {17, "SIGUSR2", "user defined signal 2"},
832 {18, "SIGCHLD", "child exited"},
833 {19, "SIGPWR", "power failure"},
834 {20, "SIGWINCH", "window changed"},
835 {21, "SIGURG", "urgent I/O condition"},
836 {22, "SIGIO", "I/O possible"},
837 {23, "SIGSTOP", "stopped (signal)"},
838 {24, "SIGTSTP", "stopped"},
839 {25, "SIGCONT", "continued"},
840 {26, "SIGTTIN", "stopped (tty input)"},
841 {27, "SIGTTOU", "stopped (tty output)"},
842 {28, "SIGVTALRM", "virtual timer expired"},
843 {29, "SIGPROF", "profiling timer expired"},
844 {30, "SIGXCPU", "CPU time limit exceeded"},
845 {31, "SIGXFSZ", "file size limit exceeded"},
846 }
847
View as plain text