github.com/tristanisham/sys@v0.0.0-20240326010300-a16cbabb7555/unix/zerrors_linux_386.go (about)

     1  // mkerrors.sh -Wall -Werror -static -I/tmp/386/include -m32
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  //go:build 386 && linux
     5  
     6  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     7  // cgo -godefs -- -Wall -Werror -static -I/tmp/386/include -m32 _const.go
     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                        = 0x80041270
    31  	BLKBSZSET                        = 0x40041271
    32  	BLKDISCARD                       = 0x1277
    33  	BLKDISCARDZEROES                 = 0x127c
    34  	BLKFLSBUF                        = 0x1261
    35  	BLKFRAGET                        = 0x1265
    36  	BLKFRASET                        = 0x1264
    37  	BLKGETDISKSEQ                    = 0x80081280
    38  	BLKGETSIZE                       = 0x1260
    39  	BLKGETSIZE64                     = 0x80041272
    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  	FP_XSTATE_MAGIC2                 = 0x46505845
    89  	FS_IOC_ENABLE_VERITY             = 0x40806685
    90  	FS_IOC_GETFLAGS                  = 0x80046601
    91  	FS_IOC_GET_ENCRYPTION_NONCE      = 0x8010661b
    92  	FS_IOC_GET_ENCRYPTION_POLICY     = 0x400c6615
    93  	FS_IOC_GET_ENCRYPTION_PWSALT     = 0x40106614
    94  	FS_IOC_SETFLAGS                  = 0x40046602
    95  	FS_IOC_SET_ENCRYPTION_POLICY     = 0x800c6613
    96  	F_GETLK                          = 0xc
    97  	F_GETLK64                        = 0xc
    98  	F_GETOWN                         = 0x9
    99  	F_RDLCK                          = 0x0
   100  	F_SETLK                          = 0xd
   101  	F_SETLK64                        = 0xd
   102  	F_SETLKW                         = 0xe
   103  	F_SETLKW64                       = 0xe
   104  	F_SETOWN                         = 0x8
   105  	F_UNLCK                          = 0x2
   106  	F_WRLCK                          = 0x1
   107  	HIDIOCGRAWINFO                   = 0x80084803
   108  	HIDIOCGRDESC                     = 0x90044802
   109  	HIDIOCGRDESCSIZE                 = 0x80044801
   110  	HUPCL                            = 0x400
   111  	ICANON                           = 0x2
   112  	IEXTEN                           = 0x8000
   113  	IN_CLOEXEC                       = 0x80000
   114  	IN_NONBLOCK                      = 0x800
   115  	IOCTL_VM_SOCKETS_GET_LOCAL_CID   = 0x7b9
   116  	ISIG                             = 0x1
   117  	IUCLC                            = 0x200
   118  	IXOFF                            = 0x1000
   119  	IXON                             = 0x400
   120  	MAP_32BIT                        = 0x40
   121  	MAP_ANON                         = 0x20
   122  	MAP_ANONYMOUS                    = 0x20
   123  	MAP_DENYWRITE                    = 0x800
   124  	MAP_EXECUTABLE                   = 0x1000
   125  	MAP_GROWSDOWN                    = 0x100
   126  	MAP_HUGETLB                      = 0x40000
   127  	MAP_LOCKED                       = 0x2000
   128  	MAP_NONBLOCK                     = 0x10000
   129  	MAP_NORESERVE                    = 0x4000
   130  	MAP_POPULATE                     = 0x8000
   131  	MAP_STACK                        = 0x20000
   132  	MAP_SYNC                         = 0x80000
   133  	MCL_CURRENT                      = 0x1
   134  	MCL_FUTURE                       = 0x2
   135  	MCL_ONFAULT                      = 0x4
   136  	MEMERASE                         = 0x40084d02
   137  	MEMERASE64                       = 0x40104d14
   138  	MEMGETBADBLOCK                   = 0x40084d0b
   139  	MEMGETINFO                       = 0x80204d01
   140  	MEMGETOOBSEL                     = 0x80c84d0a
   141  	MEMGETREGIONCOUNT                = 0x80044d07
   142  	MEMISLOCKED                      = 0x80084d17
   143  	MEMLOCK                          = 0x40084d05
   144  	MEMREAD                          = 0xc03c4d1a
   145  	MEMREADOOB                       = 0xc00c4d04
   146  	MEMSETBADBLOCK                   = 0x40084d0c
   147  	MEMUNLOCK                        = 0x40084d06
   148  	MEMWRITEOOB                      = 0xc00c4d03
   149  	MTDFILEMODE                      = 0x4d13
   150  	NFDBITS                          = 0x20
   151  	NLDLY                            = 0x100
   152  	NOFLSH                           = 0x80
   153  	NS_GET_NSTYPE                    = 0xb703
   154  	NS_GET_OWNER_UID                 = 0xb704
   155  	NS_GET_PARENT                    = 0xb702
   156  	NS_GET_USERNS                    = 0xb701
   157  	OLCUC                            = 0x2
   158  	ONLCR                            = 0x4
   159  	OTPERASE                         = 0x400c4d19
   160  	OTPGETREGIONCOUNT                = 0x40044d0e
   161  	OTPGETREGIONINFO                 = 0x400c4d0f
   162  	OTPLOCK                          = 0x800c4d10
   163  	OTPSELECT                        = 0x80044d0d
   164  	O_APPEND                         = 0x400
   165  	O_ASYNC                          = 0x2000
   166  	O_CLOEXEC                        = 0x80000
   167  	O_CREAT                          = 0x40
   168  	O_DIRECT                         = 0x4000
   169  	O_DIRECTORY                      = 0x10000
   170  	O_DSYNC                          = 0x1000
   171  	O_EXCL                           = 0x80
   172  	O_FSYNC                          = 0x101000
   173  	O_LARGEFILE                      = 0x8000
   174  	O_NDELAY                         = 0x800
   175  	O_NOATIME                        = 0x40000
   176  	O_NOCTTY                         = 0x100
   177  	O_NOFOLLOW                       = 0x20000
   178  	O_NONBLOCK                       = 0x800
   179  	O_PATH                           = 0x200000
   180  	O_RSYNC                          = 0x101000
   181  	O_SYNC                           = 0x101000
   182  	O_TMPFILE                        = 0x410000
   183  	O_TRUNC                          = 0x200
   184  	PARENB                           = 0x100
   185  	PARODD                           = 0x200
   186  	PENDIN                           = 0x4000
   187  	PERF_EVENT_IOC_DISABLE           = 0x2401
   188  	PERF_EVENT_IOC_ENABLE            = 0x2400
   189  	PERF_EVENT_IOC_ID                = 0x80042407
   190  	PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b
   191  	PERF_EVENT_IOC_PAUSE_OUTPUT      = 0x40042409
   192  	PERF_EVENT_IOC_PERIOD            = 0x40082404
   193  	PERF_EVENT_IOC_QUERY_BPF         = 0xc004240a
   194  	PERF_EVENT_IOC_REFRESH           = 0x2402
   195  	PERF_EVENT_IOC_RESET             = 0x2403
   196  	PERF_EVENT_IOC_SET_BPF           = 0x40042408
   197  	PERF_EVENT_IOC_SET_FILTER        = 0x40042406
   198  	PERF_EVENT_IOC_SET_OUTPUT        = 0x2405
   199  	PPPIOCATTACH                     = 0x4004743d
   200  	PPPIOCATTCHAN                    = 0x40047438
   201  	PPPIOCBRIDGECHAN                 = 0x40047435
   202  	PPPIOCCONNECT                    = 0x4004743a
   203  	PPPIOCDETACH                     = 0x4004743c
   204  	PPPIOCDISCONN                    = 0x7439
   205  	PPPIOCGASYNCMAP                  = 0x80047458
   206  	PPPIOCGCHAN                      = 0x80047437
   207  	PPPIOCGDEBUG                     = 0x80047441
   208  	PPPIOCGFLAGS                     = 0x8004745a
   209  	PPPIOCGIDLE                      = 0x8008743f
   210  	PPPIOCGIDLE32                    = 0x8008743f
   211  	PPPIOCGIDLE64                    = 0x8010743f
   212  	PPPIOCGL2TPSTATS                 = 0x80487436
   213  	PPPIOCGMRU                       = 0x80047453
   214  	PPPIOCGRASYNCMAP                 = 0x80047455
   215  	PPPIOCGUNIT                      = 0x80047456
   216  	PPPIOCGXASYNCMAP                 = 0x80207450
   217  	PPPIOCSACTIVE                    = 0x40087446
   218  	PPPIOCSASYNCMAP                  = 0x40047457
   219  	PPPIOCSCOMPRESS                  = 0x400c744d
   220  	PPPIOCSDEBUG                     = 0x40047440
   221  	PPPIOCSFLAGS                     = 0x40047459
   222  	PPPIOCSMAXCID                    = 0x40047451
   223  	PPPIOCSMRRU                      = 0x4004743b
   224  	PPPIOCSMRU                       = 0x40047452
   225  	PPPIOCSNPMODE                    = 0x4008744b
   226  	PPPIOCSPASS                      = 0x40087447
   227  	PPPIOCSRASYNCMAP                 = 0x40047454
   228  	PPPIOCSXASYNCMAP                 = 0x4020744f
   229  	PPPIOCUNBRIDGECHAN               = 0x7434
   230  	PPPIOCXFERUNIT                   = 0x744e
   231  	PR_SET_PTRACER_ANY               = 0xffffffff
   232  	PTRACE_GETFPREGS                 = 0xe
   233  	PTRACE_GETFPXREGS                = 0x12
   234  	PTRACE_GET_THREAD_AREA           = 0x19
   235  	PTRACE_OLDSETOPTIONS             = 0x15
   236  	PTRACE_SETFPREGS                 = 0xf
   237  	PTRACE_SETFPXREGS                = 0x13
   238  	PTRACE_SET_THREAD_AREA           = 0x1a
   239  	PTRACE_SINGLEBLOCK               = 0x21
   240  	PTRACE_SYSEMU                    = 0x1f
   241  	PTRACE_SYSEMU_SINGLESTEP         = 0x20
   242  	RLIMIT_AS                        = 0x9
   243  	RLIMIT_MEMLOCK                   = 0x8
   244  	RLIMIT_NOFILE                    = 0x7
   245  	RLIMIT_NPROC                     = 0x6
   246  	RLIMIT_RSS                       = 0x5
   247  	RNDADDENTROPY                    = 0x40085203
   248  	RNDADDTOENTCNT                   = 0x40045201
   249  	RNDCLEARPOOL                     = 0x5206
   250  	RNDGETENTCNT                     = 0x80045200
   251  	RNDGETPOOL                       = 0x80085202
   252  	RNDRESEEDCRNG                    = 0x5207
   253  	RNDZAPENTCNT                     = 0x5204
   254  	RTC_AIE_OFF                      = 0x7002
   255  	RTC_AIE_ON                       = 0x7001
   256  	RTC_ALM_READ                     = 0x80247008
   257  	RTC_ALM_SET                      = 0x40247007
   258  	RTC_EPOCH_READ                   = 0x8004700d
   259  	RTC_EPOCH_SET                    = 0x4004700e
   260  	RTC_IRQP_READ                    = 0x8004700b
   261  	RTC_IRQP_SET                     = 0x4004700c
   262  	RTC_PARAM_GET                    = 0x40187013
   263  	RTC_PARAM_SET                    = 0x40187014
   264  	RTC_PIE_OFF                      = 0x7006
   265  	RTC_PIE_ON                       = 0x7005
   266  	RTC_PLL_GET                      = 0x801c7011
   267  	RTC_PLL_SET                      = 0x401c7012
   268  	RTC_RD_TIME                      = 0x80247009
   269  	RTC_SET_TIME                     = 0x4024700a
   270  	RTC_UIE_OFF                      = 0x7004
   271  	RTC_UIE_ON                       = 0x7003
   272  	RTC_VL_CLR                       = 0x7014
   273  	RTC_VL_READ                      = 0x80047013
   274  	RTC_WIE_OFF                      = 0x7010
   275  	RTC_WIE_ON                       = 0x700f
   276  	RTC_WKALM_RD                     = 0x80287010
   277  	RTC_WKALM_SET                    = 0x4028700f
   278  	SCM_TIMESTAMPING                 = 0x25
   279  	SCM_TIMESTAMPING_OPT_STATS       = 0x36
   280  	SCM_TIMESTAMPING_PKTINFO         = 0x3a
   281  	SCM_TIMESTAMPNS                  = 0x23
   282  	SCM_TXTIME                       = 0x3d
   283  	SCM_WIFI_STATUS                  = 0x29
   284  	SECCOMP_IOCTL_NOTIF_ADDFD        = 0x40182103
   285  	SECCOMP_IOCTL_NOTIF_ID_VALID     = 0x40082102
   286  	SECCOMP_IOCTL_NOTIF_SET_FLAGS    = 0x40082104
   287  	SFD_CLOEXEC                      = 0x80000
   288  	SFD_NONBLOCK                     = 0x800
   289  	SIOCATMARK                       = 0x8905
   290  	SIOCGPGRP                        = 0x8904
   291  	SIOCGSTAMPNS_NEW                 = 0x80108907
   292  	SIOCGSTAMP_NEW                   = 0x80108906
   293  	SIOCINQ                          = 0x541b
   294  	SIOCOUTQ                         = 0x5411
   295  	SIOCSPGRP                        = 0x8902
   296  	SOCK_CLOEXEC                     = 0x80000
   297  	SOCK_DGRAM                       = 0x2
   298  	SOCK_NONBLOCK                    = 0x800
   299  	SOCK_STREAM                      = 0x1
   300  	SOL_SOCKET                       = 0x1
   301  	SO_ACCEPTCONN                    = 0x1e
   302  	SO_ATTACH_BPF                    = 0x32
   303  	SO_ATTACH_REUSEPORT_CBPF         = 0x33
   304  	SO_ATTACH_REUSEPORT_EBPF         = 0x34
   305  	SO_BINDTODEVICE                  = 0x19
   306  	SO_BINDTOIFINDEX                 = 0x3e
   307  	SO_BPF_EXTENSIONS                = 0x30
   308  	SO_BROADCAST                     = 0x6
   309  	SO_BSDCOMPAT                     = 0xe
   310  	SO_BUF_LOCK                      = 0x48
   311  	SO_BUSY_POLL                     = 0x2e
   312  	SO_BUSY_POLL_BUDGET              = 0x46
   313  	SO_CNX_ADVICE                    = 0x35
   314  	SO_COOKIE                        = 0x39
   315  	SO_DETACH_REUSEPORT_BPF          = 0x44
   316  	SO_DOMAIN                        = 0x27
   317  	SO_DONTROUTE                     = 0x5
   318  	SO_ERROR                         = 0x4
   319  	SO_INCOMING_CPU                  = 0x31
   320  	SO_INCOMING_NAPI_ID              = 0x38
   321  	SO_KEEPALIVE                     = 0x9
   322  	SO_LINGER                        = 0xd
   323  	SO_LOCK_FILTER                   = 0x2c
   324  	SO_MARK                          = 0x24
   325  	SO_MAX_PACING_RATE               = 0x2f
   326  	SO_MEMINFO                       = 0x37
   327  	SO_NETNS_COOKIE                  = 0x47
   328  	SO_NOFCS                         = 0x2b
   329  	SO_OOBINLINE                     = 0xa
   330  	SO_PASSCRED                      = 0x10
   331  	SO_PASSPIDFD                     = 0x4c
   332  	SO_PASSSEC                       = 0x22
   333  	SO_PEEK_OFF                      = 0x2a
   334  	SO_PEERCRED                      = 0x11
   335  	SO_PEERGROUPS                    = 0x3b
   336  	SO_PEERPIDFD                     = 0x4d
   337  	SO_PEERSEC                       = 0x1f
   338  	SO_PREFER_BUSY_POLL              = 0x45
   339  	SO_PROTOCOL                      = 0x26
   340  	SO_RCVBUF                        = 0x8
   341  	SO_RCVBUFFORCE                   = 0x21
   342  	SO_RCVLOWAT                      = 0x12
   343  	SO_RCVMARK                       = 0x4b
   344  	SO_RCVTIMEO                      = 0x14
   345  	SO_RCVTIMEO_NEW                  = 0x42
   346  	SO_RCVTIMEO_OLD                  = 0x14
   347  	SO_RESERVE_MEM                   = 0x49
   348  	SO_REUSEADDR                     = 0x2
   349  	SO_REUSEPORT                     = 0xf
   350  	SO_RXQ_OVFL                      = 0x28
   351  	SO_SECURITY_AUTHENTICATION       = 0x16
   352  	SO_SECURITY_ENCRYPTION_NETWORK   = 0x18
   353  	SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
   354  	SO_SELECT_ERR_QUEUE              = 0x2d
   355  	SO_SNDBUF                        = 0x7
   356  	SO_SNDBUFFORCE                   = 0x20
   357  	SO_SNDLOWAT                      = 0x13
   358  	SO_SNDTIMEO                      = 0x15
   359  	SO_SNDTIMEO_NEW                  = 0x43
   360  	SO_SNDTIMEO_OLD                  = 0x15
   361  	SO_TIMESTAMPING                  = 0x25
   362  	SO_TIMESTAMPING_NEW              = 0x41
   363  	SO_TIMESTAMPING_OLD              = 0x25
   364  	SO_TIMESTAMPNS                   = 0x23
   365  	SO_TIMESTAMPNS_NEW               = 0x40
   366  	SO_TIMESTAMPNS_OLD               = 0x23
   367  	SO_TIMESTAMP_NEW                 = 0x3f
   368  	SO_TXREHASH                      = 0x4a
   369  	SO_TXTIME                        = 0x3d
   370  	SO_TYPE                          = 0x3
   371  	SO_WIFI_STATUS                   = 0x29
   372  	SO_ZEROCOPY                      = 0x3c
   373  	TAB1                             = 0x800
   374  	TAB2                             = 0x1000
   375  	TAB3                             = 0x1800
   376  	TABDLY                           = 0x1800
   377  	TCFLSH                           = 0x540b
   378  	TCGETA                           = 0x5405
   379  	TCGETS                           = 0x5401
   380  	TCGETS2                          = 0x802c542a
   381  	TCGETX                           = 0x5432
   382  	TCSAFLUSH                        = 0x2
   383  	TCSBRK                           = 0x5409
   384  	TCSBRKP                          = 0x5425
   385  	TCSETA                           = 0x5406
   386  	TCSETAF                          = 0x5408
   387  	TCSETAW                          = 0x5407
   388  	TCSETS                           = 0x5402
   389  	TCSETS2                          = 0x402c542b
   390  	TCSETSF                          = 0x5404
   391  	TCSETSF2                         = 0x402c542d
   392  	TCSETSW                          = 0x5403
   393  	TCSETSW2                         = 0x402c542c
   394  	TCSETX                           = 0x5433
   395  	TCSETXF                          = 0x5434
   396  	TCSETXW                          = 0x5435
   397  	TCXONC                           = 0x540a
   398  	TFD_CLOEXEC                      = 0x80000
   399  	TFD_NONBLOCK                     = 0x800
   400  	TIOCCBRK                         = 0x5428
   401  	TIOCCONS                         = 0x541d
   402  	TIOCEXCL                         = 0x540c
   403  	TIOCGDEV                         = 0x80045432
   404  	TIOCGETD                         = 0x5424
   405  	TIOCGEXCL                        = 0x80045440
   406  	TIOCGICOUNT                      = 0x545d
   407  	TIOCGISO7816                     = 0x80285442
   408  	TIOCGLCKTRMIOS                   = 0x5456
   409  	TIOCGPGRP                        = 0x540f
   410  	TIOCGPKT                         = 0x80045438
   411  	TIOCGPTLCK                       = 0x80045439
   412  	TIOCGPTN                         = 0x80045430
   413  	TIOCGPTPEER                      = 0x5441
   414  	TIOCGRS485                       = 0x542e
   415  	TIOCGSERIAL                      = 0x541e
   416  	TIOCGSID                         = 0x5429
   417  	TIOCGSOFTCAR                     = 0x5419
   418  	TIOCGWINSZ                       = 0x5413
   419  	TIOCINQ                          = 0x541b
   420  	TIOCLINUX                        = 0x541c
   421  	TIOCMBIC                         = 0x5417
   422  	TIOCMBIS                         = 0x5416
   423  	TIOCMGET                         = 0x5415
   424  	TIOCMIWAIT                       = 0x545c
   425  	TIOCMSET                         = 0x5418
   426  	TIOCM_CAR                        = 0x40
   427  	TIOCM_CD                         = 0x40
   428  	TIOCM_CTS                        = 0x20
   429  	TIOCM_DSR                        = 0x100
   430  	TIOCM_RI                         = 0x80
   431  	TIOCM_RNG                        = 0x80
   432  	TIOCM_SR                         = 0x10
   433  	TIOCM_ST                         = 0x8
   434  	TIOCNOTTY                        = 0x5422
   435  	TIOCNXCL                         = 0x540d
   436  	TIOCOUTQ                         = 0x5411
   437  	TIOCPKT                          = 0x5420
   438  	TIOCSBRK                         = 0x5427
   439  	TIOCSCTTY                        = 0x540e
   440  	TIOCSERCONFIG                    = 0x5453
   441  	TIOCSERGETLSR                    = 0x5459
   442  	TIOCSERGETMULTI                  = 0x545a
   443  	TIOCSERGSTRUCT                   = 0x5458
   444  	TIOCSERGWILD                     = 0x5454
   445  	TIOCSERSETMULTI                  = 0x545b
   446  	TIOCSERSWILD                     = 0x5455
   447  	TIOCSER_TEMT                     = 0x1
   448  	TIOCSETD                         = 0x5423
   449  	TIOCSIG                          = 0x40045436
   450  	TIOCSISO7816                     = 0xc0285443
   451  	TIOCSLCKTRMIOS                   = 0x5457
   452  	TIOCSPGRP                        = 0x5410
   453  	TIOCSPTLCK                       = 0x40045431
   454  	TIOCSRS485                       = 0x542f
   455  	TIOCSSERIAL                      = 0x541f
   456  	TIOCSSOFTCAR                     = 0x541a
   457  	TIOCSTI                          = 0x5412
   458  	TIOCSWINSZ                       = 0x5414
   459  	TIOCVHANGUP                      = 0x5437
   460  	TOSTOP                           = 0x100
   461  	TUNATTACHFILTER                  = 0x400854d5
   462  	TUNDETACHFILTER                  = 0x400854d6
   463  	TUNGETDEVNETNS                   = 0x54e3
   464  	TUNGETFEATURES                   = 0x800454cf
   465  	TUNGETFILTER                     = 0x800854db
   466  	TUNGETIFF                        = 0x800454d2
   467  	TUNGETSNDBUF                     = 0x800454d3
   468  	TUNGETVNETBE                     = 0x800454df
   469  	TUNGETVNETHDRSZ                  = 0x800454d7
   470  	TUNGETVNETLE                     = 0x800454dd
   471  	TUNSETCARRIER                    = 0x400454e2
   472  	TUNSETDEBUG                      = 0x400454c9
   473  	TUNSETFILTEREBPF                 = 0x800454e1
   474  	TUNSETGROUP                      = 0x400454ce
   475  	TUNSETIFF                        = 0x400454ca
   476  	TUNSETIFINDEX                    = 0x400454da
   477  	TUNSETLINK                       = 0x400454cd
   478  	TUNSETNOCSUM                     = 0x400454c8
   479  	TUNSETOFFLOAD                    = 0x400454d0
   480  	TUNSETOWNER                      = 0x400454cc
   481  	TUNSETPERSIST                    = 0x400454cb
   482  	TUNSETQUEUE                      = 0x400454d9
   483  	TUNSETSNDBUF                     = 0x400454d4
   484  	TUNSETSTEERINGEBPF               = 0x800454e0
   485  	TUNSETTXFILTER                   = 0x400454d1
   486  	TUNSETVNETBE                     = 0x400454de
   487  	TUNSETVNETHDRSZ                  = 0x400454d8
   488  	TUNSETVNETLE                     = 0x400454dc
   489  	UBI_IOCATT                       = 0x40186f40
   490  	UBI_IOCDET                       = 0x40046f41
   491  	UBI_IOCEBCH                      = 0x40044f02
   492  	UBI_IOCEBER                      = 0x40044f01
   493  	UBI_IOCEBISMAP                   = 0x80044f05
   494  	UBI_IOCEBMAP                     = 0x40084f03
   495  	UBI_IOCEBUNMAP                   = 0x40044f04
   496  	UBI_IOCMKVOL                     = 0x40986f00
   497  	UBI_IOCRMVOL                     = 0x40046f01
   498  	UBI_IOCRNVOL                     = 0x51106f03
   499  	UBI_IOCRPEB                      = 0x40046f04
   500  	UBI_IOCRSVOL                     = 0x400c6f02
   501  	UBI_IOCSETVOLPROP                = 0x40104f06
   502  	UBI_IOCSPEB                      = 0x40046f05
   503  	UBI_IOCVOLCRBLK                  = 0x40804f07
   504  	UBI_IOCVOLRMBLK                  = 0x4f08
   505  	UBI_IOCVOLUP                     = 0x40084f00
   506  	VDISCARD                         = 0xd
   507  	VEOF                             = 0x4
   508  	VEOL                             = 0xb
   509  	VEOL2                            = 0x10
   510  	VMIN                             = 0x6
   511  	VREPRINT                         = 0xc
   512  	VSTART                           = 0x8
   513  	VSTOP                            = 0x9
   514  	VSUSP                            = 0xa
   515  	VSWTC                            = 0x7
   516  	VT1                              = 0x4000
   517  	VTDLY                            = 0x4000
   518  	VTIME                            = 0x5
   519  	VWERASE                          = 0xe
   520  	WDIOC_GETBOOTSTATUS              = 0x80045702
   521  	WDIOC_GETPRETIMEOUT              = 0x80045709
   522  	WDIOC_GETSTATUS                  = 0x80045701
   523  	WDIOC_GETSUPPORT                 = 0x80285700
   524  	WDIOC_GETTEMP                    = 0x80045703
   525  	WDIOC_GETTIMELEFT                = 0x8004570a
   526  	WDIOC_GETTIMEOUT                 = 0x80045707
   527  	WDIOC_KEEPALIVE                  = 0x80045705
   528  	WDIOC_SETOPTIONS                 = 0x80045704
   529  	WORDSIZE                         = 0x20
   530  	X86_FXSR_MAGIC                   = 0x0
   531  	XCASE                            = 0x4
   532  	XTABS                            = 0x1800
   533  	_HIDIOCGRAWNAME                  = 0x80804804
   534  	_HIDIOCGRAWPHYS                  = 0x80404805
   535  	_HIDIOCGRAWUNIQ                  = 0x80404808
   536  )
   537  
   538  // Errors
   539  const (
   540  	EADDRINUSE      = syscall.Errno(0x62)
   541  	EADDRNOTAVAIL   = syscall.Errno(0x63)
   542  	EADV            = syscall.Errno(0x44)
   543  	EAFNOSUPPORT    = syscall.Errno(0x61)
   544  	EALREADY        = syscall.Errno(0x72)
   545  	EBADE           = syscall.Errno(0x34)
   546  	EBADFD          = syscall.Errno(0x4d)
   547  	EBADMSG         = syscall.Errno(0x4a)
   548  	EBADR           = syscall.Errno(0x35)
   549  	EBADRQC         = syscall.Errno(0x38)
   550  	EBADSLT         = syscall.Errno(0x39)
   551  	EBFONT          = syscall.Errno(0x3b)
   552  	ECANCELED       = syscall.Errno(0x7d)
   553  	ECHRNG          = syscall.Errno(0x2c)
   554  	ECOMM           = syscall.Errno(0x46)
   555  	ECONNABORTED    = syscall.Errno(0x67)
   556  	ECONNREFUSED    = syscall.Errno(0x6f)
   557  	ECONNRESET      = syscall.Errno(0x68)
   558  	EDEADLK         = syscall.Errno(0x23)
   559  	EDEADLOCK       = syscall.Errno(0x23)
   560  	EDESTADDRREQ    = syscall.Errno(0x59)
   561  	EDOTDOT         = syscall.Errno(0x49)
   562  	EDQUOT          = syscall.Errno(0x7a)
   563  	EHOSTDOWN       = syscall.Errno(0x70)
   564  	EHOSTUNREACH    = syscall.Errno(0x71)
   565  	EHWPOISON       = syscall.Errno(0x85)
   566  	EIDRM           = syscall.Errno(0x2b)
   567  	EILSEQ          = syscall.Errno(0x54)
   568  	EINPROGRESS     = syscall.Errno(0x73)
   569  	EISCONN         = syscall.Errno(0x6a)
   570  	EISNAM          = syscall.Errno(0x78)
   571  	EKEYEXPIRED     = syscall.Errno(0x7f)
   572  	EKEYREJECTED    = syscall.Errno(0x81)
   573  	EKEYREVOKED     = syscall.Errno(0x80)
   574  	EL2HLT          = syscall.Errno(0x33)
   575  	EL2NSYNC        = syscall.Errno(0x2d)
   576  	EL3HLT          = syscall.Errno(0x2e)
   577  	EL3RST          = syscall.Errno(0x2f)
   578  	ELIBACC         = syscall.Errno(0x4f)
   579  	ELIBBAD         = syscall.Errno(0x50)
   580  	ELIBEXEC        = syscall.Errno(0x53)
   581  	ELIBMAX         = syscall.Errno(0x52)
   582  	ELIBSCN         = syscall.Errno(0x51)
   583  	ELNRNG          = syscall.Errno(0x30)
   584  	ELOOP           = syscall.Errno(0x28)
   585  	EMEDIUMTYPE     = syscall.Errno(0x7c)
   586  	EMSGSIZE        = syscall.Errno(0x5a)
   587  	EMULTIHOP       = syscall.Errno(0x48)
   588  	ENAMETOOLONG    = syscall.Errno(0x24)
   589  	ENAVAIL         = syscall.Errno(0x77)
   590  	ENETDOWN        = syscall.Errno(0x64)
   591  	ENETRESET       = syscall.Errno(0x66)
   592  	ENETUNREACH     = syscall.Errno(0x65)
   593  	ENOANO          = syscall.Errno(0x37)
   594  	ENOBUFS         = syscall.Errno(0x69)
   595  	ENOCSI          = syscall.Errno(0x32)
   596  	ENODATA         = syscall.Errno(0x3d)
   597  	ENOKEY          = syscall.Errno(0x7e)
   598  	ENOLCK          = syscall.Errno(0x25)
   599  	ENOLINK         = syscall.Errno(0x43)
   600  	ENOMEDIUM       = syscall.Errno(0x7b)
   601  	ENOMSG          = syscall.Errno(0x2a)
   602  	ENONET          = syscall.Errno(0x40)
   603  	ENOPKG          = syscall.Errno(0x41)
   604  	ENOPROTOOPT     = syscall.Errno(0x5c)
   605  	ENOSR           = syscall.Errno(0x3f)
   606  	ENOSTR          = syscall.Errno(0x3c)
   607  	ENOSYS          = syscall.Errno(0x26)
   608  	ENOTCONN        = syscall.Errno(0x6b)
   609  	ENOTEMPTY       = syscall.Errno(0x27)
   610  	ENOTNAM         = syscall.Errno(0x76)
   611  	ENOTRECOVERABLE = syscall.Errno(0x83)
   612  	ENOTSOCK        = syscall.Errno(0x58)
   613  	ENOTSUP         = syscall.Errno(0x5f)
   614  	ENOTUNIQ        = syscall.Errno(0x4c)
   615  	EOPNOTSUPP      = syscall.Errno(0x5f)
   616  	EOVERFLOW       = syscall.Errno(0x4b)
   617  	EOWNERDEAD      = syscall.Errno(0x82)
   618  	EPFNOSUPPORT    = syscall.Errno(0x60)
   619  	EPROTO          = syscall.Errno(0x47)
   620  	EPROTONOSUPPORT = syscall.Errno(0x5d)
   621  	EPROTOTYPE      = syscall.Errno(0x5b)
   622  	EREMCHG         = syscall.Errno(0x4e)
   623  	EREMOTE         = syscall.Errno(0x42)
   624  	EREMOTEIO       = syscall.Errno(0x79)
   625  	ERESTART        = syscall.Errno(0x55)
   626  	ERFKILL         = syscall.Errno(0x84)
   627  	ESHUTDOWN       = syscall.Errno(0x6c)
   628  	ESOCKTNOSUPPORT = syscall.Errno(0x5e)
   629  	ESRMNT          = syscall.Errno(0x45)
   630  	ESTALE          = syscall.Errno(0x74)
   631  	ESTRPIPE        = syscall.Errno(0x56)
   632  	ETIME           = syscall.Errno(0x3e)
   633  	ETIMEDOUT       = syscall.Errno(0x6e)
   634  	ETOOMANYREFS    = syscall.Errno(0x6d)
   635  	EUCLEAN         = syscall.Errno(0x75)
   636  	EUNATCH         = syscall.Errno(0x31)
   637  	EUSERS          = syscall.Errno(0x57)
   638  	EXFULL          = syscall.Errno(0x36)
   639  )
   640  
   641  // Signals
   642  const (
   643  	SIGBUS    = syscall.Signal(0x7)
   644  	SIGCHLD   = syscall.Signal(0x11)
   645  	SIGCLD    = syscall.Signal(0x11)
   646  	SIGCONT   = syscall.Signal(0x12)
   647  	SIGIO     = syscall.Signal(0x1d)
   648  	SIGPOLL   = syscall.Signal(0x1d)
   649  	SIGPROF   = syscall.Signal(0x1b)
   650  	SIGPWR    = syscall.Signal(0x1e)
   651  	SIGSTKFLT = syscall.Signal(0x10)
   652  	SIGSTOP   = syscall.Signal(0x13)
   653  	SIGSYS    = syscall.Signal(0x1f)
   654  	SIGTSTP   = syscall.Signal(0x14)
   655  	SIGTTIN   = syscall.Signal(0x15)
   656  	SIGTTOU   = syscall.Signal(0x16)
   657  	SIGURG    = syscall.Signal(0x17)
   658  	SIGUSR1   = syscall.Signal(0xa)
   659  	SIGUSR2   = syscall.Signal(0xc)
   660  	SIGVTALRM = syscall.Signal(0x1a)
   661  	SIGWINCH  = syscall.Signal(0x1c)
   662  	SIGXCPU   = syscall.Signal(0x18)
   663  	SIGXFSZ   = syscall.Signal(0x19)
   664  )
   665  
   666  // Error table
   667  var errorList = [...]struct {
   668  	num  syscall.Errno
   669  	name string
   670  	desc string
   671  }{
   672  	{1, "EPERM", "operation not permitted"},
   673  	{2, "ENOENT", "no such file or directory"},
   674  	{3, "ESRCH", "no such process"},
   675  	{4, "EINTR", "interrupted system call"},
   676  	{5, "EIO", "input/output error"},
   677  	{6, "ENXIO", "no such device or address"},
   678  	{7, "E2BIG", "argument list too long"},
   679  	{8, "ENOEXEC", "exec format error"},
   680  	{9, "EBADF", "bad file descriptor"},
   681  	{10, "ECHILD", "no child processes"},
   682  	{11, "EAGAIN", "resource temporarily unavailable"},
   683  	{12, "ENOMEM", "cannot allocate memory"},
   684  	{13, "EACCES", "permission denied"},
   685  	{14, "EFAULT", "bad address"},
   686  	{15, "ENOTBLK", "block device required"},
   687  	{16, "EBUSY", "device or resource busy"},
   688  	{17, "EEXIST", "file exists"},
   689  	{18, "EXDEV", "invalid cross-device link"},
   690  	{19, "ENODEV", "no such device"},
   691  	{20, "ENOTDIR", "not a directory"},
   692  	{21, "EISDIR", "is a directory"},
   693  	{22, "EINVAL", "invalid argument"},
   694  	{23, "ENFILE", "too many open files in system"},
   695  	{24, "EMFILE", "too many open files"},
   696  	{25, "ENOTTY", "inappropriate ioctl for device"},
   697  	{26, "ETXTBSY", "text file busy"},
   698  	{27, "EFBIG", "file too large"},
   699  	{28, "ENOSPC", "no space left on device"},
   700  	{29, "ESPIPE", "illegal seek"},
   701  	{30, "EROFS", "read-only file system"},
   702  	{31, "EMLINK", "too many links"},
   703  	{32, "EPIPE", "broken pipe"},
   704  	{33, "EDOM", "numerical argument out of domain"},
   705  	{34, "ERANGE", "numerical result out of range"},
   706  	{35, "EDEADLK", "resource deadlock avoided"},
   707  	{36, "ENAMETOOLONG", "file name too long"},
   708  	{37, "ENOLCK", "no locks available"},
   709  	{38, "ENOSYS", "function not implemented"},
   710  	{39, "ENOTEMPTY", "directory not empty"},
   711  	{40, "ELOOP", "too many levels of symbolic links"},
   712  	{42, "ENOMSG", "no message of desired type"},
   713  	{43, "EIDRM", "identifier removed"},
   714  	{44, "ECHRNG", "channel number out of range"},
   715  	{45, "EL2NSYNC", "level 2 not synchronized"},
   716  	{46, "EL3HLT", "level 3 halted"},
   717  	{47, "EL3RST", "level 3 reset"},
   718  	{48, "ELNRNG", "link number out of range"},
   719  	{49, "EUNATCH", "protocol driver not attached"},
   720  	{50, "ENOCSI", "no CSI structure available"},
   721  	{51, "EL2HLT", "level 2 halted"},
   722  	{52, "EBADE", "invalid exchange"},
   723  	{53, "EBADR", "invalid request descriptor"},
   724  	{54, "EXFULL", "exchange full"},
   725  	{55, "ENOANO", "no anode"},
   726  	{56, "EBADRQC", "invalid request code"},
   727  	{57, "EBADSLT", "invalid slot"},
   728  	{59, "EBFONT", "bad font file format"},
   729  	{60, "ENOSTR", "device not a stream"},
   730  	{61, "ENODATA", "no data available"},
   731  	{62, "ETIME", "timer expired"},
   732  	{63, "ENOSR", "out of streams resources"},
   733  	{64, "ENONET", "machine is not on the network"},
   734  	{65, "ENOPKG", "package not installed"},
   735  	{66, "EREMOTE", "object is remote"},
   736  	{67, "ENOLINK", "link has been severed"},
   737  	{68, "EADV", "advertise error"},
   738  	{69, "ESRMNT", "srmount error"},
   739  	{70, "ECOMM", "communication error on send"},
   740  	{71, "EPROTO", "protocol error"},
   741  	{72, "EMULTIHOP", "multihop attempted"},
   742  	{73, "EDOTDOT", "RFS specific error"},
   743  	{74, "EBADMSG", "bad message"},
   744  	{75, "EOVERFLOW", "value too large for defined data type"},
   745  	{76, "ENOTUNIQ", "name not unique on network"},
   746  	{77, "EBADFD", "file descriptor in bad state"},
   747  	{78, "EREMCHG", "remote address changed"},
   748  	{79, "ELIBACC", "can not access a needed shared library"},
   749  	{80, "ELIBBAD", "accessing a corrupted shared library"},
   750  	{81, "ELIBSCN", ".lib section in a.out corrupted"},
   751  	{82, "ELIBMAX", "attempting to link in too many shared libraries"},
   752  	{83, "ELIBEXEC", "cannot exec a shared library directly"},
   753  	{84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
   754  	{85, "ERESTART", "interrupted system call should be restarted"},
   755  	{86, "ESTRPIPE", "streams pipe error"},
   756  	{87, "EUSERS", "too many users"},
   757  	{88, "ENOTSOCK", "socket operation on non-socket"},
   758  	{89, "EDESTADDRREQ", "destination address required"},
   759  	{90, "EMSGSIZE", "message too long"},
   760  	{91, "EPROTOTYPE", "protocol wrong type for socket"},
   761  	{92, "ENOPROTOOPT", "protocol not available"},
   762  	{93, "EPROTONOSUPPORT", "protocol not supported"},
   763  	{94, "ESOCKTNOSUPPORT", "socket type not supported"},
   764  	{95, "ENOTSUP", "operation not supported"},
   765  	{96, "EPFNOSUPPORT", "protocol family not supported"},
   766  	{97, "EAFNOSUPPORT", "address family not supported by protocol"},
   767  	{98, "EADDRINUSE", "address already in use"},
   768  	{99, "EADDRNOTAVAIL", "cannot assign requested address"},
   769  	{100, "ENETDOWN", "network is down"},
   770  	{101, "ENETUNREACH", "network is unreachable"},
   771  	{102, "ENETRESET", "network dropped connection on reset"},
   772  	{103, "ECONNABORTED", "software caused connection abort"},
   773  	{104, "ECONNRESET", "connection reset by peer"},
   774  	{105, "ENOBUFS", "no buffer space available"},
   775  	{106, "EISCONN", "transport endpoint is already connected"},
   776  	{107, "ENOTCONN", "transport endpoint is not connected"},
   777  	{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
   778  	{109, "ETOOMANYREFS", "too many references: cannot splice"},
   779  	{110, "ETIMEDOUT", "connection timed out"},
   780  	{111, "ECONNREFUSED", "connection refused"},
   781  	{112, "EHOSTDOWN", "host is down"},
   782  	{113, "EHOSTUNREACH", "no route to host"},
   783  	{114, "EALREADY", "operation already in progress"},
   784  	{115, "EINPROGRESS", "operation now in progress"},
   785  	{116, "ESTALE", "stale file handle"},
   786  	{117, "EUCLEAN", "structure needs cleaning"},
   787  	{118, "ENOTNAM", "not a XENIX named type file"},
   788  	{119, "ENAVAIL", "no XENIX semaphores available"},
   789  	{120, "EISNAM", "is a named type file"},
   790  	{121, "EREMOTEIO", "remote I/O error"},
   791  	{122, "EDQUOT", "disk quota exceeded"},
   792  	{123, "ENOMEDIUM", "no medium found"},
   793  	{124, "EMEDIUMTYPE", "wrong medium type"},
   794  	{125, "ECANCELED", "operation canceled"},
   795  	{126, "ENOKEY", "required key not available"},
   796  	{127, "EKEYEXPIRED", "key has expired"},
   797  	{128, "EKEYREVOKED", "key has been revoked"},
   798  	{129, "EKEYREJECTED", "key was rejected by service"},
   799  	{130, "EOWNERDEAD", "owner died"},
   800  	{131, "ENOTRECOVERABLE", "state not recoverable"},
   801  	{132, "ERFKILL", "operation not possible due to RF-kill"},
   802  	{133, "EHWPOISON", "memory page has hardware error"},
   803  }
   804  
   805  // Signal table
   806  var signalList = [...]struct {
   807  	num  syscall.Signal
   808  	name string
   809  	desc string
   810  }{
   811  	{1, "SIGHUP", "hangup"},
   812  	{2, "SIGINT", "interrupt"},
   813  	{3, "SIGQUIT", "quit"},
   814  	{4, "SIGILL", "illegal instruction"},
   815  	{5, "SIGTRAP", "trace/breakpoint trap"},
   816  	{6, "SIGABRT", "aborted"},
   817  	{7, "SIGBUS", "bus error"},
   818  	{8, "SIGFPE", "floating point exception"},
   819  	{9, "SIGKILL", "killed"},
   820  	{10, "SIGUSR1", "user defined signal 1"},
   821  	{11, "SIGSEGV", "segmentation fault"},
   822  	{12, "SIGUSR2", "user defined signal 2"},
   823  	{13, "SIGPIPE", "broken pipe"},
   824  	{14, "SIGALRM", "alarm clock"},
   825  	{15, "SIGTERM", "terminated"},
   826  	{16, "SIGSTKFLT", "stack fault"},
   827  	{17, "SIGCHLD", "child exited"},
   828  	{18, "SIGCONT", "continued"},
   829  	{19, "SIGSTOP", "stopped (signal)"},
   830  	{20, "SIGTSTP", "stopped"},
   831  	{21, "SIGTTIN", "stopped (tty input)"},
   832  	{22, "SIGTTOU", "stopped (tty output)"},
   833  	{23, "SIGURG", "urgent I/O condition"},
   834  	{24, "SIGXCPU", "CPU time limit exceeded"},
   835  	{25, "SIGXFSZ", "file size limit exceeded"},
   836  	{26, "SIGVTALRM", "virtual timer expired"},
   837  	{27, "SIGPROF", "profiling timer expired"},
   838  	{28, "SIGWINCH", "window changed"},
   839  	{29, "SIGIO", "I/O possible"},
   840  	{30, "SIGPWR", "power failure"},
   841  	{31, "SIGSYS", "bad system call"},
   842  }