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