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