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 EXTPROC = 0x10000
75 FF1 = 0x8000
76 FFDLY = 0x8000
77 FICLONE = 0x40049409
78 FICLONERANGE = 0x4020940d
79 FLUSHO = 0x1000
80 FS_IOC_ENABLE_VERITY = 0x40806685
81 FS_IOC_GETFLAGS = 0x80086601
82 FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b
83 FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
84 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
85 FS_IOC_SETFLAGS = 0x40086602
86 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
87 F_GETLK = 0x5
88 F_GETLK64 = 0x5
89 F_GETOWN = 0x9
90 F_RDLCK = 0x0
91 F_SETLK = 0x6
92 F_SETLK64 = 0x6
93 F_SETLKW = 0x7
94 F_SETLKW64 = 0x7
95 F_SETOWN = 0x8
96 F_UNLCK = 0x2
97 F_WRLCK = 0x1
98 HIDIOCGRAWINFO = 0x80084803
99 HIDIOCGRDESC = 0x90044802
100 HIDIOCGRDESCSIZE = 0x80044801
101 HUPCL = 0x400
102 ICANON = 0x2
103 IEXTEN = 0x8000
104 IN_CLOEXEC = 0x80000
105 IN_NONBLOCK = 0x800
106 IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9
107 ISIG = 0x1
108 IUCLC = 0x200
109 IXOFF = 0x1000
110 IXON = 0x400
111 MAP_ANON = 0x20
112 MAP_ANONYMOUS = 0x20
113 MAP_DENYWRITE = 0x800
114 MAP_EXECUTABLE = 0x1000
115 MAP_GROWSDOWN = 0x100
116 MAP_HUGETLB = 0x40000
117 MAP_LOCKED = 0x2000
118 MAP_NONBLOCK = 0x10000
119 MAP_NORESERVE = 0x4000
120 MAP_POPULATE = 0x8000
121 MAP_STACK = 0x20000
122 MAP_SYNC = 0x80000
123 MCL_CURRENT = 0x1
124 MCL_FUTURE = 0x2
125 MCL_ONFAULT = 0x4
126 MEMERASE = 0x40084d02
127 MEMERASE64 = 0x40104d14
128 MEMGETBADBLOCK = 0x40084d0b
129 MEMGETINFO = 0x80204d01
130 MEMGETOOBSEL = 0x80c84d0a
131 MEMGETREGIONCOUNT = 0x80044d07
132 MEMISLOCKED = 0x80084d17
133 MEMLOCK = 0x40084d05
134 MEMREADOOB = 0xc0104d04
135 MEMSETBADBLOCK = 0x40084d0c
136 MEMUNLOCK = 0x40084d06
137 MEMWRITEOOB = 0xc0104d03
138 MTDFILEMODE = 0x4d13
139 NFDBITS = 0x40
140 NLDLY = 0x100
141 NOFLSH = 0x80
142 NS_GET_NSTYPE = 0xb703
143 NS_GET_OWNER_UID = 0xb704
144 NS_GET_PARENT = 0xb702
145 NS_GET_USERNS = 0xb701
146 OLCUC = 0x2
147 ONLCR = 0x4
148 OTPERASE = 0x400c4d19
149 OTPGETREGIONCOUNT = 0x40044d0e
150 OTPGETREGIONINFO = 0x400c4d0f
151 OTPLOCK = 0x800c4d10
152 OTPSELECT = 0x80044d0d
153 O_APPEND = 0x400
154 O_ASYNC = 0x2000
155 O_CLOEXEC = 0x80000
156 O_CREAT = 0x40
157 O_DIRECT = 0x4000
158 O_DIRECTORY = 0x10000
159 O_DSYNC = 0x1000
160 O_EXCL = 0x80
161 O_FSYNC = 0x101000
162 O_LARGEFILE = 0x0
163 O_NDELAY = 0x800
164 O_NOATIME = 0x40000
165 O_NOCTTY = 0x100
166 O_NOFOLLOW = 0x20000
167 O_NONBLOCK = 0x800
168 O_PATH = 0x200000
169 O_RSYNC = 0x101000
170 O_SYNC = 0x101000
171 O_TMPFILE = 0x410000
172 O_TRUNC = 0x200
173 PARENB = 0x100
174 PARODD = 0x200
175 PENDIN = 0x4000
176 PERF_EVENT_IOC_DISABLE = 0x2401
177 PERF_EVENT_IOC_ENABLE = 0x2400
178 PERF_EVENT_IOC_ID = 0x80082407
179 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b
180 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
181 PERF_EVENT_IOC_PERIOD = 0x40082404
182 PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
183 PERF_EVENT_IOC_REFRESH = 0x2402
184 PERF_EVENT_IOC_RESET = 0x2403
185 PERF_EVENT_IOC_SET_BPF = 0x40042408
186 PERF_EVENT_IOC_SET_FILTER = 0x40082406
187 PERF_EVENT_IOC_SET_OUTPUT = 0x2405
188 PPPIOCATTACH = 0x4004743d
189 PPPIOCATTCHAN = 0x40047438
190 PPPIOCBRIDGECHAN = 0x40047435
191 PPPIOCCONNECT = 0x4004743a
192 PPPIOCDETACH = 0x4004743c
193 PPPIOCDISCONN = 0x7439
194 PPPIOCGASYNCMAP = 0x80047458
195 PPPIOCGCHAN = 0x80047437
196 PPPIOCGDEBUG = 0x80047441
197 PPPIOCGFLAGS = 0x8004745a
198 PPPIOCGIDLE = 0x8010743f
199 PPPIOCGIDLE32 = 0x8008743f
200 PPPIOCGIDLE64 = 0x8010743f
201 PPPIOCGL2TPSTATS = 0x80487436
202 PPPIOCGMRU = 0x80047453
203 PPPIOCGRASYNCMAP = 0x80047455
204 PPPIOCGUNIT = 0x80047456
205 PPPIOCGXASYNCMAP = 0x80207450
206 PPPIOCSACTIVE = 0x40107446
207 PPPIOCSASYNCMAP = 0x40047457
208 PPPIOCSCOMPRESS = 0x4010744d
209 PPPIOCSDEBUG = 0x40047440
210 PPPIOCSFLAGS = 0x40047459
211 PPPIOCSMAXCID = 0x40047451
212 PPPIOCSMRRU = 0x4004743b
213 PPPIOCSMRU = 0x40047452
214 PPPIOCSNPMODE = 0x4008744b
215 PPPIOCSPASS = 0x40107447
216 PPPIOCSRASYNCMAP = 0x40047454
217 PPPIOCSXASYNCMAP = 0x4020744f
218 PPPIOCUNBRIDGECHAN = 0x7434
219 PPPIOCXFERUNIT = 0x744e
220 PR_SET_PTRACER_ANY = 0xffffffffffffffff
221 PTRACE_DISABLE_TE = 0x5010
222 PTRACE_ENABLE_TE = 0x5009
223 PTRACE_GET_LAST_BREAK = 0x5006
224 PTRACE_OLDSETOPTIONS = 0x15
225 PTRACE_PEEKDATA_AREA = 0x5003
226 PTRACE_PEEKTEXT_AREA = 0x5002
227 PTRACE_PEEKUSR_AREA = 0x5000
228 PTRACE_PEEK_SYSTEM_CALL = 0x5007
229 PTRACE_POKEDATA_AREA = 0x5005
230 PTRACE_POKETEXT_AREA = 0x5004
231 PTRACE_POKEUSR_AREA = 0x5001
232 PTRACE_POKE_SYSTEM_CALL = 0x5008
233 PTRACE_PROT = 0x15
234 PTRACE_SINGLEBLOCK = 0xc
235 PTRACE_SYSEMU = 0x1f
236 PTRACE_SYSEMU_SINGLESTEP = 0x20
237 PTRACE_TE_ABORT_RAND = 0x5011
238 PT_ACR0 = 0x90
239 PT_ACR1 = 0x94
240 PT_ACR10 = 0xb8
241 PT_ACR11 = 0xbc
242 PT_ACR12 = 0xc0
243 PT_ACR13 = 0xc4
244 PT_ACR14 = 0xc8
245 PT_ACR15 = 0xcc
246 PT_ACR2 = 0x98
247 PT_ACR3 = 0x9c
248 PT_ACR4 = 0xa0
249 PT_ACR5 = 0xa4
250 PT_ACR6 = 0xa8
251 PT_ACR7 = 0xac
252 PT_ACR8 = 0xb0
253 PT_ACR9 = 0xb4
254 PT_CR_10 = 0x168
255 PT_CR_11 = 0x170
256 PT_CR_9 = 0x160
257 PT_ENDREGS = 0x1af
258 PT_FPC = 0xd8
259 PT_FPR0 = 0xe0
260 PT_FPR1 = 0xe8
261 PT_FPR10 = 0x130
262 PT_FPR11 = 0x138
263 PT_FPR12 = 0x140
264 PT_FPR13 = 0x148
265 PT_FPR14 = 0x150
266 PT_FPR15 = 0x158
267 PT_FPR2 = 0xf0
268 PT_FPR3 = 0xf8
269 PT_FPR4 = 0x100
270 PT_FPR5 = 0x108
271 PT_FPR6 = 0x110
272 PT_FPR7 = 0x118
273 PT_FPR8 = 0x120
274 PT_FPR9 = 0x128
275 PT_GPR0 = 0x10
276 PT_GPR1 = 0x18
277 PT_GPR10 = 0x60
278 PT_GPR11 = 0x68
279 PT_GPR12 = 0x70
280 PT_GPR13 = 0x78
281 PT_GPR14 = 0x80
282 PT_GPR15 = 0x88
283 PT_GPR2 = 0x20
284 PT_GPR3 = 0x28
285 PT_GPR4 = 0x30
286 PT_GPR5 = 0x38
287 PT_GPR6 = 0x40
288 PT_GPR7 = 0x48
289 PT_GPR8 = 0x50
290 PT_GPR9 = 0x58
291 PT_IEEE_IP = 0x1a8
292 PT_LASTOFF = 0x1a8
293 PT_ORIGGPR2 = 0xd0
294 PT_PSWADDR = 0x8
295 PT_PSWMASK = 0x0
296 RLIMIT_AS = 0x9
297 RLIMIT_MEMLOCK = 0x8
298 RLIMIT_NOFILE = 0x7
299 RLIMIT_NPROC = 0x6
300 RLIMIT_RSS = 0x5
301 RNDADDENTROPY = 0x40085203
302 RNDADDTOENTCNT = 0x40045201
303 RNDCLEARPOOL = 0x5206
304 RNDGETENTCNT = 0x80045200
305 RNDGETPOOL = 0x80085202
306 RNDRESEEDCRNG = 0x5207
307 RNDZAPENTCNT = 0x5204
308 RTC_AIE_OFF = 0x7002
309 RTC_AIE_ON = 0x7001
310 RTC_ALM_READ = 0x80247008
311 RTC_ALM_SET = 0x40247007
312 RTC_EPOCH_READ = 0x8008700d
313 RTC_EPOCH_SET = 0x4008700e
314 RTC_IRQP_READ = 0x8008700b
315 RTC_IRQP_SET = 0x4008700c
316 RTC_PIE_OFF = 0x7006
317 RTC_PIE_ON = 0x7005
318 RTC_PLL_GET = 0x80207011
319 RTC_PLL_SET = 0x40207012
320 RTC_RD_TIME = 0x80247009
321 RTC_SET_TIME = 0x4024700a
322 RTC_UIE_OFF = 0x7004
323 RTC_UIE_ON = 0x7003
324 RTC_VL_CLR = 0x7014
325 RTC_VL_READ = 0x80047013
326 RTC_WIE_OFF = 0x7010
327 RTC_WIE_ON = 0x700f
328 RTC_WKALM_RD = 0x80287010
329 RTC_WKALM_SET = 0x4028700f
330 SCM_TIMESTAMPING = 0x25
331 SCM_TIMESTAMPING_OPT_STATS = 0x36
332 SCM_TIMESTAMPING_PKTINFO = 0x3a
333 SCM_TIMESTAMPNS = 0x23
334 SCM_TXTIME = 0x3d
335 SCM_WIFI_STATUS = 0x29
336 SFD_CLOEXEC = 0x80000
337 SFD_NONBLOCK = 0x800
338 SIOCATMARK = 0x8905
339 SIOCGPGRP = 0x8904
340 SIOCGSTAMPNS_NEW = 0x80108907
341 SIOCGSTAMP_NEW = 0x80108906
342 SIOCINQ = 0x541b
343 SIOCOUTQ = 0x5411
344 SIOCSPGRP = 0x8902
345 SOCK_CLOEXEC = 0x80000
346 SOCK_DGRAM = 0x2
347 SOCK_NONBLOCK = 0x800
348 SOCK_STREAM = 0x1
349 SOL_SOCKET = 0x1
350 SO_ACCEPTCONN = 0x1e
351 SO_ATTACH_BPF = 0x32
352 SO_ATTACH_REUSEPORT_CBPF = 0x33
353 SO_ATTACH_REUSEPORT_EBPF = 0x34
354 SO_BINDTODEVICE = 0x19
355 SO_BINDTOIFINDEX = 0x3e
356 SO_BPF_EXTENSIONS = 0x30
357 SO_BROADCAST = 0x6
358 SO_BSDCOMPAT = 0xe
359 SO_BUF_LOCK = 0x48
360 SO_BUSY_POLL = 0x2e
361 SO_BUSY_POLL_BUDGET = 0x46
362 SO_CNX_ADVICE = 0x35
363 SO_COOKIE = 0x39
364 SO_DETACH_REUSEPORT_BPF = 0x44
365 SO_DOMAIN = 0x27
366 SO_DONTROUTE = 0x5
367 SO_ERROR = 0x4
368 SO_INCOMING_CPU = 0x31
369 SO_INCOMING_NAPI_ID = 0x38
370 SO_KEEPALIVE = 0x9
371 SO_LINGER = 0xd
372 SO_LOCK_FILTER = 0x2c
373 SO_MARK = 0x24
374 SO_MAX_PACING_RATE = 0x2f
375 SO_MEMINFO = 0x37
376 SO_NETNS_COOKIE = 0x47
377 SO_NOFCS = 0x2b
378 SO_OOBINLINE = 0xa
379 SO_PASSCRED = 0x10
380 SO_PASSSEC = 0x22
381 SO_PEEK_OFF = 0x2a
382 SO_PEERCRED = 0x11
383 SO_PEERGROUPS = 0x3b
384 SO_PEERSEC = 0x1f
385 SO_PREFER_BUSY_POLL = 0x45
386 SO_PROTOCOL = 0x26
387 SO_RCVBUF = 0x8
388 SO_RCVBUFFORCE = 0x21
389 SO_RCVLOWAT = 0x12
390 SO_RCVTIMEO = 0x14
391 SO_RCVTIMEO_NEW = 0x42
392 SO_RCVTIMEO_OLD = 0x14
393 SO_REUSEADDR = 0x2
394 SO_REUSEPORT = 0xf
395 SO_RXQ_OVFL = 0x28
396 SO_SECURITY_AUTHENTICATION = 0x16
397 SO_SECURITY_ENCRYPTION_NETWORK = 0x18
398 SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
399 SO_SELECT_ERR_QUEUE = 0x2d
400 SO_SNDBUF = 0x7
401 SO_SNDBUFFORCE = 0x20
402 SO_SNDLOWAT = 0x13
403 SO_SNDTIMEO = 0x15
404 SO_SNDTIMEO_NEW = 0x43
405 SO_SNDTIMEO_OLD = 0x15
406 SO_TIMESTAMPING = 0x25
407 SO_TIMESTAMPING_NEW = 0x41
408 SO_TIMESTAMPING_OLD = 0x25
409 SO_TIMESTAMPNS = 0x23
410 SO_TIMESTAMPNS_NEW = 0x40
411 SO_TIMESTAMPNS_OLD = 0x23
412 SO_TIMESTAMP_NEW = 0x3f
413 SO_TXTIME = 0x3d
414 SO_TYPE = 0x3
415 SO_WIFI_STATUS = 0x29
416 SO_ZEROCOPY = 0x3c
417 TAB1 = 0x800
418 TAB2 = 0x1000
419 TAB3 = 0x1800
420 TABDLY = 0x1800
421 TCFLSH = 0x540b
422 TCGETA = 0x5405
423 TCGETS = 0x5401
424 TCGETS2 = 0x802c542a
425 TCGETX = 0x5432
426 TCSAFLUSH = 0x2
427 TCSBRK = 0x5409
428 TCSBRKP = 0x5425
429 TCSETA = 0x5406
430 TCSETAF = 0x5408
431 TCSETAW = 0x5407
432 TCSETS = 0x5402
433 TCSETS2 = 0x402c542b
434 TCSETSF = 0x5404
435 TCSETSF2 = 0x402c542d
436 TCSETSW = 0x5403
437 TCSETSW2 = 0x402c542c
438 TCSETX = 0x5433
439 TCSETXF = 0x5434
440 TCSETXW = 0x5435
441 TCXONC = 0x540a
442 TFD_CLOEXEC = 0x80000
443 TFD_NONBLOCK = 0x800
444 TIOCCBRK = 0x5428
445 TIOCCONS = 0x541d
446 TIOCEXCL = 0x540c
447 TIOCGDEV = 0x80045432
448 TIOCGETD = 0x5424
449 TIOCGEXCL = 0x80045440
450 TIOCGICOUNT = 0x545d
451 TIOCGISO7816 = 0x80285442
452 TIOCGLCKTRMIOS = 0x5456
453 TIOCGPGRP = 0x540f
454 TIOCGPKT = 0x80045438
455 TIOCGPTLCK = 0x80045439
456 TIOCGPTN = 0x80045430
457 TIOCGPTPEER = 0x5441
458 TIOCGRS485 = 0x542e
459 TIOCGSERIAL = 0x541e
460 TIOCGSID = 0x5429
461 TIOCGSOFTCAR = 0x5419
462 TIOCGWINSZ = 0x5413
463 TIOCINQ = 0x541b
464 TIOCLINUX = 0x541c
465 TIOCMBIC = 0x5417
466 TIOCMBIS = 0x5416
467 TIOCMGET = 0x5415
468 TIOCMIWAIT = 0x545c
469 TIOCMSET = 0x5418
470 TIOCM_CAR = 0x40
471 TIOCM_CD = 0x40
472 TIOCM_CTS = 0x20
473 TIOCM_DSR = 0x100
474 TIOCM_RI = 0x80
475 TIOCM_RNG = 0x80
476 TIOCM_SR = 0x10
477 TIOCM_ST = 0x8
478 TIOCNOTTY = 0x5422
479 TIOCNXCL = 0x540d
480 TIOCOUTQ = 0x5411
481 TIOCPKT = 0x5420
482 TIOCSBRK = 0x5427
483 TIOCSCTTY = 0x540e
484 TIOCSERCONFIG = 0x5453
485 TIOCSERGETLSR = 0x5459
486 TIOCSERGETMULTI = 0x545a
487 TIOCSERGSTRUCT = 0x5458
488 TIOCSERGWILD = 0x5454
489 TIOCSERSETMULTI = 0x545b
490 TIOCSERSWILD = 0x5455
491 TIOCSER_TEMT = 0x1
492 TIOCSETD = 0x5423
493 TIOCSIG = 0x40045436
494 TIOCSISO7816 = 0xc0285443
495 TIOCSLCKTRMIOS = 0x5457
496 TIOCSPGRP = 0x5410
497 TIOCSPTLCK = 0x40045431
498 TIOCSRS485 = 0x542f
499 TIOCSSERIAL = 0x541f
500 TIOCSSOFTCAR = 0x541a
501 TIOCSTI = 0x5412
502 TIOCSWINSZ = 0x5414
503 TIOCVHANGUP = 0x5437
504 TOSTOP = 0x100
505 TUNATTACHFILTER = 0x401054d5
506 TUNDETACHFILTER = 0x401054d6
507 TUNGETDEVNETNS = 0x54e3
508 TUNGETFEATURES = 0x800454cf
509 TUNGETFILTER = 0x801054db
510 TUNGETIFF = 0x800454d2
511 TUNGETSNDBUF = 0x800454d3
512 TUNGETVNETBE = 0x800454df
513 TUNGETVNETHDRSZ = 0x800454d7
514 TUNGETVNETLE = 0x800454dd
515 TUNSETCARRIER = 0x400454e2
516 TUNSETDEBUG = 0x400454c9
517 TUNSETFILTEREBPF = 0x800454e1
518 TUNSETGROUP = 0x400454ce
519 TUNSETIFF = 0x400454ca
520 TUNSETIFINDEX = 0x400454da
521 TUNSETLINK = 0x400454cd
522 TUNSETNOCSUM = 0x400454c8
523 TUNSETOFFLOAD = 0x400454d0
524 TUNSETOWNER = 0x400454cc
525 TUNSETPERSIST = 0x400454cb
526 TUNSETQUEUE = 0x400454d9
527 TUNSETSNDBUF = 0x400454d4
528 TUNSETSTEERINGEBPF = 0x800454e0
529 TUNSETTXFILTER = 0x400454d1
530 TUNSETVNETBE = 0x400454de
531 TUNSETVNETHDRSZ = 0x400454d8
532 TUNSETVNETLE = 0x400454dc
533 UBI_IOCATT = 0x40186f40
534 UBI_IOCDET = 0x40046f41
535 UBI_IOCEBCH = 0x40044f02
536 UBI_IOCEBER = 0x40044f01
537 UBI_IOCEBISMAP = 0x80044f05
538 UBI_IOCEBMAP = 0x40084f03
539 UBI_IOCEBUNMAP = 0x40044f04
540 UBI_IOCMKVOL = 0x40986f00
541 UBI_IOCRMVOL = 0x40046f01
542 UBI_IOCRNVOL = 0x51106f03
543 UBI_IOCRPEB = 0x40046f04
544 UBI_IOCRSVOL = 0x400c6f02
545 UBI_IOCSETVOLPROP = 0x40104f06
546 UBI_IOCSPEB = 0x40046f05
547 UBI_IOCVOLCRBLK = 0x40804f07
548 UBI_IOCVOLRMBLK = 0x4f08
549 UBI_IOCVOLUP = 0x40084f00
550 VDISCARD = 0xd
551 VEOF = 0x4
552 VEOL = 0xb
553 VEOL2 = 0x10
554 VMIN = 0x6
555 VREPRINT = 0xc
556 VSTART = 0x8
557 VSTOP = 0x9
558 VSUSP = 0xa
559 VSWTC = 0x7
560 VT1 = 0x4000
561 VTDLY = 0x4000
562 VTIME = 0x5
563 VWERASE = 0xe
564 WDIOC_GETBOOTSTATUS = 0x80045702
565 WDIOC_GETPRETIMEOUT = 0x80045709
566 WDIOC_GETSTATUS = 0x80045701
567 WDIOC_GETSUPPORT = 0x80285700
568 WDIOC_GETTEMP = 0x80045703
569 WDIOC_GETTIMELEFT = 0x8004570a
570 WDIOC_GETTIMEOUT = 0x80045707
571 WDIOC_KEEPALIVE = 0x80045705
572 WDIOC_SETOPTIONS = 0x80045704
573 WORDSIZE = 0x40
574 XCASE = 0x4
575 XTABS = 0x1800
576 _HIDIOCGRAWNAME = 0x80804804
577 _HIDIOCGRAWPHYS = 0x80404805
578 _HIDIOCGRAWUNIQ = 0x80404808
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(0x23)
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 {59, "EBFONT", "bad font file format"},
772 {60, "ENOSTR", "device not a stream"},
773 {61, "ENODATA", "no data available"},
774 {62, "ETIME", "timer expired"},
775 {63, "ENOSR", "out of streams resources"},
776 {64, "ENONET", "machine is not on the network"},
777 {65, "ENOPKG", "package not installed"},
778 {66, "EREMOTE", "object is remote"},
779 {67, "ENOLINK", "link has been severed"},
780 {68, "EADV", "advertise error"},
781 {69, "ESRMNT", "srmount error"},
782 {70, "ECOMM", "communication error on send"},
783 {71, "EPROTO", "protocol error"},
784 {72, "EMULTIHOP", "multihop attempted"},
785 {73, "EDOTDOT", "RFS specific error"},
786 {74, "EBADMSG", "bad message"},
787 {75, "EOVERFLOW", "value too large for defined data type"},
788 {76, "ENOTUNIQ", "name not unique on network"},
789 {77, "EBADFD", "file descriptor in bad state"},
790 {78, "EREMCHG", "remote address changed"},
791 {79, "ELIBACC", "can not access a needed shared library"},
792 {80, "ELIBBAD", "accessing a corrupted shared library"},
793 {81, "ELIBSCN", ".lib section in a.out corrupted"},
794 {82, "ELIBMAX", "attempting to link in too many shared libraries"},
795 {83, "ELIBEXEC", "cannot exec a shared library directly"},
796 {84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
797 {85, "ERESTART", "interrupted system call should be restarted"},
798 {86, "ESTRPIPE", "streams pipe error"},
799 {87, "EUSERS", "too many users"},
800 {88, "ENOTSOCK", "socket operation on non-socket"},
801 {89, "EDESTADDRREQ", "destination address required"},
802 {90, "EMSGSIZE", "message too long"},
803 {91, "EPROTOTYPE", "protocol wrong type for socket"},
804 {92, "ENOPROTOOPT", "protocol not available"},
805 {93, "EPROTONOSUPPORT", "protocol not supported"},
806 {94, "ESOCKTNOSUPPORT", "socket type not supported"},
807 {95, "ENOTSUP", "operation not supported"},
808 {96, "EPFNOSUPPORT", "protocol family not supported"},
809 {97, "EAFNOSUPPORT", "address family not supported by protocol"},
810 {98, "EADDRINUSE", "address already in use"},
811 {99, "EADDRNOTAVAIL", "cannot assign requested address"},
812 {100, "ENETDOWN", "network is down"},
813 {101, "ENETUNREACH", "network is unreachable"},
814 {102, "ENETRESET", "network dropped connection on reset"},
815 {103, "ECONNABORTED", "software caused connection abort"},
816 {104, "ECONNRESET", "connection reset by peer"},
817 {105, "ENOBUFS", "no buffer space available"},
818 {106, "EISCONN", "transport endpoint is already connected"},
819 {107, "ENOTCONN", "transport endpoint is not connected"},
820 {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
821 {109, "ETOOMANYREFS", "too many references: cannot splice"},
822 {110, "ETIMEDOUT", "connection timed out"},
823 {111, "ECONNREFUSED", "connection refused"},
824 {112, "EHOSTDOWN", "host is down"},
825 {113, "EHOSTUNREACH", "no route to host"},
826 {114, "EALREADY", "operation already in progress"},
827 {115, "EINPROGRESS", "operation now in progress"},
828 {116, "ESTALE", "stale file handle"},
829 {117, "EUCLEAN", "structure needs cleaning"},
830 {118, "ENOTNAM", "not a XENIX named type file"},
831 {119, "ENAVAIL", "no XENIX semaphores available"},
832 {120, "EISNAM", "is a named type file"},
833 {121, "EREMOTEIO", "remote I/O error"},
834 {122, "EDQUOT", "disk quota exceeded"},
835 {123, "ENOMEDIUM", "no medium found"},
836 {124, "EMEDIUMTYPE", "wrong medium type"},
837 {125, "ECANCELED", "operation canceled"},
838 {126, "ENOKEY", "required key not available"},
839 {127, "EKEYEXPIRED", "key has expired"},
840 {128, "EKEYREVOKED", "key has been revoked"},
841 {129, "EKEYREJECTED", "key was rejected by service"},
842 {130, "EOWNERDEAD", "owner died"},
843 {131, "ENOTRECOVERABLE", "state not recoverable"},
844 {132, "ERFKILL", "operation not possible due to RF-kill"},
845 {133, "EHWPOISON", "memory page has hardware error"},
846 }
847
848
849 var signalList = [...]struct {
850 num syscall.Signal
851 name string
852 desc string
853 }{
854 {1, "SIGHUP", "hangup"},
855 {2, "SIGINT", "interrupt"},
856 {3, "SIGQUIT", "quit"},
857 {4, "SIGILL", "illegal instruction"},
858 {5, "SIGTRAP", "trace/breakpoint trap"},
859 {6, "SIGABRT", "aborted"},
860 {7, "SIGBUS", "bus error"},
861 {8, "SIGFPE", "floating point exception"},
862 {9, "SIGKILL", "killed"},
863 {10, "SIGUSR1", "user defined signal 1"},
864 {11, "SIGSEGV", "segmentation fault"},
865 {12, "SIGUSR2", "user defined signal 2"},
866 {13, "SIGPIPE", "broken pipe"},
867 {14, "SIGALRM", "alarm clock"},
868 {15, "SIGTERM", "terminated"},
869 {16, "SIGSTKFLT", "stack fault"},
870 {17, "SIGCHLD", "child exited"},
871 {18, "SIGCONT", "continued"},
872 {19, "SIGSTOP", "stopped (signal)"},
873 {20, "SIGTSTP", "stopped"},
874 {21, "SIGTTIN", "stopped (tty input)"},
875 {22, "SIGTTOU", "stopped (tty output)"},
876 {23, "SIGURG", "urgent I/O condition"},
877 {24, "SIGXCPU", "CPU time limit exceeded"},
878 {25, "SIGXFSZ", "file size limit exceeded"},
879 {26, "SIGVTALRM", "virtual timer expired"},
880 {27, "SIGPROF", "profiling timer expired"},
881 {28, "SIGWINCH", "window changed"},
882 {29, "SIGIO", "I/O possible"},
883 {30, "SIGPWR", "power failure"},
884 {31, "SIGSYS", "bad system call"},
885 }
886
View as plain text