Source file src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go

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

View as plain text