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