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