sys: golang.org/x/sys/unix Index | Files

package unix

import "golang.org/x/sys/unix"

Package unix contains an interface to the low-level operating system primitives. OS details vary depending on the underlying system, and by default, godoc will display OS-specific documentation for the current system. If you want godoc to display OS documentation for another system, set $GOOS and $GOARCH to the desired system. For example, if you want to view documentation for freebsd/arm on linux/amd64, set $GOOS to freebsd and $GOARCH to arm. The primary use of this package is inside other packages that provide a more portable interface to the system, such as "os", "time" and "net". Use those packages rather than this one if you can. For details of the functions and data types in this package consult the manuals for the appropriate operating system. These calls return err == nil to indicate success; otherwise err represents an operating system error describing the failure and holds a value of type syscall.Errno.

Index

Package Files

bluetooth_linux.go constants.go dev_linux.go dirent.go endian_little.go env_unix.go env_unset.go file_unix.go flock.go pagesize_unix.go race0.go sockcmsg_linux.go sockcmsg_unix.go str.go syscall.go syscall_linux.go syscall_linux_amd64.go syscall_linux_amd64_gc.go syscall_unix.go syscall_unix_gc.go zerrors_linux_amd64.go zsyscall_linux_amd64.go zsysnum_linux_amd64.go ztypes_linux_amd64.go

Constants

const (
    BTPROTO_L2CAP  = 0
    BTPROTO_HCI    = 1
    BTPROTO_SCO    = 2
    BTPROTO_RFCOMM = 3
    BTPROTO_BNEP   = 4
    BTPROTO_CMTP   = 5
    BTPROTO_HIDP   = 6
    BTPROTO_AVDTP  = 7
)

Bluetooth Protocols

const (
    HCI_CHANNEL_RAW     = 0
    HCI_CHANNEL_USER    = 1
    HCI_CHANNEL_MONITOR = 2
    HCI_CHANNEL_CONTROL = 3
)
const (
    SOL_BLUETOOTH = 0x112
    SOL_HCI       = 0x0
    SOL_L2CAP     = 0x6
    SOL_RFCOMM    = 0x12
    SOL_SCO       = 0x11
)

Socketoption Level

const (
    R_OK = 0x4
    W_OK = 0x2
    X_OK = 0x1
)
const (
    AF_ALG                               = 0x26
    AF_APPLETALK                         = 0x5
    AF_ASH                               = 0x12
    AF_ATMPVC                            = 0x8
    AF_ATMSVC                            = 0x14
    AF_AX25                              = 0x3
    AF_BLUETOOTH                         = 0x1f
    AF_BRIDGE                            = 0x7
    AF_CAIF                              = 0x25
    AF_CAN                               = 0x1d
    AF_DECnet                            = 0xc
    AF_ECONET                            = 0x13
    AF_FILE                              = 0x1
    AF_IB                                = 0x1b
    AF_IEEE802154                        = 0x24
    AF_INET                              = 0x2
    AF_INET6                             = 0xa
    AF_IPX                               = 0x4
    AF_IRDA                              = 0x17
    AF_ISDN                              = 0x22
    AF_IUCV                              = 0x20
    AF_KCM                               = 0x29
    AF_KEY                               = 0xf
    AF_LLC                               = 0x1a
    AF_LOCAL                             = 0x1
    AF_MAX                               = 0x2c
    AF_MPLS                              = 0x1c
    AF_NETBEUI                           = 0xd
    AF_NETLINK                           = 0x10
    AF_NETROM                            = 0x6
    AF_NFC                               = 0x27
    AF_PACKET                            = 0x11
    AF_PHONET                            = 0x23
    AF_PPPOX                             = 0x18
    AF_QIPCRTR                           = 0x2a
    AF_RDS                               = 0x15
    AF_ROSE                              = 0xb
    AF_ROUTE                             = 0x10
    AF_RXRPC                             = 0x21
    AF_SECURITY                          = 0xe
    AF_SMC                               = 0x2b
    AF_SNA                               = 0x16
    AF_TIPC                              = 0x1e
    AF_UNIX                              = 0x1
    AF_UNSPEC                            = 0x0
    AF_VSOCK                             = 0x28
    AF_WANPIPE                           = 0x19
    AF_X25                               = 0x9
    ALG_OP_DECRYPT                       = 0x0
    ALG_OP_ENCRYPT                       = 0x1
    ALG_SET_AEAD_ASSOCLEN                = 0x4
    ALG_SET_AEAD_AUTHSIZE                = 0x5
    ALG_SET_IV                           = 0x2
    ALG_SET_KEY                          = 0x1
    ALG_SET_OP                           = 0x3
    ARPHRD_6LOWPAN                       = 0x339
    ARPHRD_ADAPT                         = 0x108
    ARPHRD_APPLETLK                      = 0x8
    ARPHRD_ARCNET                        = 0x7
    ARPHRD_ASH                           = 0x30d
    ARPHRD_ATM                           = 0x13
    ARPHRD_AX25                          = 0x3
    ARPHRD_BIF                           = 0x307
    ARPHRD_CAIF                          = 0x336
    ARPHRD_CAN                           = 0x118
    ARPHRD_CHAOS                         = 0x5
    ARPHRD_CISCO                         = 0x201
    ARPHRD_CSLIP                         = 0x101
    ARPHRD_CSLIP6                        = 0x103
    ARPHRD_DDCMP                         = 0x205
    ARPHRD_DLCI                          = 0xf
    ARPHRD_ECONET                        = 0x30e
    ARPHRD_EETHER                        = 0x2
    ARPHRD_ETHER                         = 0x1
    ARPHRD_EUI64                         = 0x1b
    ARPHRD_FCAL                          = 0x311
    ARPHRD_FCFABRIC                      = 0x313
    ARPHRD_FCPL                          = 0x312
    ARPHRD_FCPP                          = 0x310
    ARPHRD_FDDI                          = 0x306
    ARPHRD_FRAD                          = 0x302
    ARPHRD_HDLC                          = 0x201
    ARPHRD_HIPPI                         = 0x30c
    ARPHRD_HWX25                         = 0x110
    ARPHRD_IEEE1394                      = 0x18
    ARPHRD_IEEE802                       = 0x6
    ARPHRD_IEEE80211                     = 0x321
    ARPHRD_IEEE80211_PRISM               = 0x322
    ARPHRD_IEEE80211_RADIOTAP            = 0x323
    ARPHRD_IEEE802154                    = 0x324
    ARPHRD_IEEE802154_MONITOR            = 0x325
    ARPHRD_IEEE802_TR                    = 0x320
    ARPHRD_INFINIBAND                    = 0x20
    ARPHRD_IP6GRE                        = 0x337
    ARPHRD_IPDDP                         = 0x309
    ARPHRD_IPGRE                         = 0x30a
    ARPHRD_IRDA                          = 0x30f
    ARPHRD_LAPB                          = 0x204
    ARPHRD_LOCALTLK                      = 0x305
    ARPHRD_LOOPBACK                      = 0x304
    ARPHRD_METRICOM                      = 0x17
    ARPHRD_NETLINK                       = 0x338
    ARPHRD_NETROM                        = 0x0
    ARPHRD_NONE                          = 0xfffe
    ARPHRD_PHONET                        = 0x334
    ARPHRD_PHONET_PIPE                   = 0x335
    ARPHRD_PIMREG                        = 0x30b
    ARPHRD_PPP                           = 0x200
    ARPHRD_PRONET                        = 0x4
    ARPHRD_RAWHDLC                       = 0x206
    ARPHRD_ROSE                          = 0x10e
    ARPHRD_RSRVD                         = 0x104
    ARPHRD_SIT                           = 0x308
    ARPHRD_SKIP                          = 0x303
    ARPHRD_SLIP                          = 0x100
    ARPHRD_SLIP6                         = 0x102
    ARPHRD_TUNNEL                        = 0x300
    ARPHRD_TUNNEL6                       = 0x301
    ARPHRD_VOID                          = 0xffff
    ARPHRD_VSOCKMON                      = 0x33a
    ARPHRD_X25                           = 0x10f
    B0                                   = 0x0
    B1000000                             = 0x1008
    B110                                 = 0x3
    B115200                              = 0x1002
    B1152000                             = 0x1009
    B1200                                = 0x9
    B134                                 = 0x4
    B150                                 = 0x5
    B1500000                             = 0x100a
    B1800                                = 0xa
    B19200                               = 0xe
    B200                                 = 0x6
    B2000000                             = 0x100b
    B230400                              = 0x1003
    B2400                                = 0xb
    B2500000                             = 0x100c
    B300                                 = 0x7
    B3000000                             = 0x100d
    B3500000                             = 0x100e
    B38400                               = 0xf
    B4000000                             = 0x100f
    B460800                              = 0x1004
    B4800                                = 0xc
    B50                                  = 0x1
    B500000                              = 0x1005
    B57600                               = 0x1001
    B576000                              = 0x1006
    B600                                 = 0x8
    B75                                  = 0x2
    B921600                              = 0x1007
    B9600                                = 0xd
    BLKBSZGET                            = 0x80081270
    BLKBSZSET                            = 0x40081271
    BLKFLSBUF                            = 0x1261
    BLKFRAGET                            = 0x1265
    BLKFRASET                            = 0x1264
    BLKGETSIZE                           = 0x1260
    BLKGETSIZE64                         = 0x80081272
    BLKPBSZGET                           = 0x127b
    BLKRAGET                             = 0x1263
    BLKRASET                             = 0x1262
    BLKROGET                             = 0x125e
    BLKROSET                             = 0x125d
    BLKRRPART                            = 0x125f
    BLKSECTGET                           = 0x1267
    BLKSECTSET                           = 0x1266
    BLKSSZGET                            = 0x1268
    BOTHER                               = 0x1000
    BPF_A                                = 0x10
    BPF_ABS                              = 0x20
    BPF_ADD                              = 0x0
    BPF_ALU                              = 0x4
    BPF_AND                              = 0x50
    BPF_B                                = 0x10
    BPF_DIV                              = 0x30
    BPF_H                                = 0x8
    BPF_IMM                              = 0x0
    BPF_IND                              = 0x40
    BPF_JA                               = 0x0
    BPF_JEQ                              = 0x10
    BPF_JGE                              = 0x30
    BPF_JGT                              = 0x20
    BPF_JMP                              = 0x5
    BPF_JSET                             = 0x40
    BPF_K                                = 0x0
    BPF_LD                               = 0x0
    BPF_LDX                              = 0x1
    BPF_LEN                              = 0x80
    BPF_LL_OFF                           = -0x200000
    BPF_LSH                              = 0x60
    BPF_MAJOR_VERSION                    = 0x1
    BPF_MAXINSNS                         = 0x1000
    BPF_MEM                              = 0x60
    BPF_MEMWORDS                         = 0x10
    BPF_MINOR_VERSION                    = 0x1
    BPF_MISC                             = 0x7
    BPF_MOD                              = 0x90
    BPF_MSH                              = 0xa0
    BPF_MUL                              = 0x20
    BPF_NEG                              = 0x80
    BPF_NET_OFF                          = -0x100000
    BPF_OR                               = 0x40
    BPF_RET                              = 0x6
    BPF_RSH                              = 0x70
    BPF_ST                               = 0x2
    BPF_STX                              = 0x3
    BPF_SUB                              = 0x10
    BPF_TAX                              = 0x0
    BPF_TXA                              = 0x80
    BPF_W                                = 0x0
    BPF_X                                = 0x8
    BPF_XOR                              = 0xa0
    BRKINT                               = 0x2
    BS0                                  = 0x0
    BS1                                  = 0x2000
    BSDLY                                = 0x2000
    CAN_BCM                              = 0x2
    CAN_EFF_FLAG                         = 0x80000000
    CAN_EFF_ID_BITS                      = 0x1d
    CAN_EFF_MASK                         = 0x1fffffff
    CAN_ERR_FLAG                         = 0x20000000
    CAN_ERR_MASK                         = 0x1fffffff
    CAN_INV_FILTER                       = 0x20000000
    CAN_ISOTP                            = 0x6
    CAN_MAX_DLC                          = 0x8
    CAN_MAX_DLEN                         = 0x8
    CAN_MCNET                            = 0x5
    CAN_MTU                              = 0x10
    CAN_NPROTO                           = 0x7
    CAN_RAW                              = 0x1
    CAN_RAW_FILTER_MAX                   = 0x200
    CAN_RTR_FLAG                         = 0x40000000
    CAN_SFF_ID_BITS                      = 0xb
    CAN_SFF_MASK                         = 0x7ff
    CAN_TP16                             = 0x3
    CAN_TP20                             = 0x4
    CBAUD                                = 0x100f
    CBAUDEX                              = 0x1000
    CFLUSH                               = 0xf
    CIBAUD                               = 0x100f0000
    CLOCAL                               = 0x800
    CLOCK_BOOTTIME                       = 0x7
    CLOCK_BOOTTIME_ALARM                 = 0x9
    CLOCK_DEFAULT                        = 0x0
    CLOCK_EXT                            = 0x1
    CLOCK_INT                            = 0x2
    CLOCK_MONOTONIC                      = 0x1
    CLOCK_MONOTONIC_COARSE               = 0x6
    CLOCK_MONOTONIC_RAW                  = 0x4
    CLOCK_PROCESS_CPUTIME_ID             = 0x2
    CLOCK_REALTIME                       = 0x0
    CLOCK_REALTIME_ALARM                 = 0x8
    CLOCK_REALTIME_COARSE                = 0x5
    CLOCK_TAI                            = 0xb
    CLOCK_THREAD_CPUTIME_ID              = 0x3
    CLOCK_TXFROMRX                       = 0x4
    CLOCK_TXINT                          = 0x3
    CLONE_CHILD_CLEARTID                 = 0x200000
    CLONE_CHILD_SETTID                   = 0x1000000
    CLONE_DETACHED                       = 0x400000
    CLONE_FILES                          = 0x400
    CLONE_FS                             = 0x200
    CLONE_IO                             = 0x80000000
    CLONE_NEWCGROUP                      = 0x2000000
    CLONE_NEWIPC                         = 0x8000000
    CLONE_NEWNET                         = 0x40000000
    CLONE_NEWNS                          = 0x20000
    CLONE_NEWPID                         = 0x20000000
    CLONE_NEWUSER                        = 0x10000000
    CLONE_NEWUTS                         = 0x4000000
    CLONE_PARENT                         = 0x8000
    CLONE_PARENT_SETTID                  = 0x100000
    CLONE_PTRACE                         = 0x2000
    CLONE_SETTLS                         = 0x80000
    CLONE_SIGHAND                        = 0x800
    CLONE_SYSVSEM                        = 0x40000
    CLONE_THREAD                         = 0x10000
    CLONE_UNTRACED                       = 0x800000
    CLONE_VFORK                          = 0x4000
    CLONE_VM                             = 0x100
    CMSPAR                               = 0x40000000
    CR0                                  = 0x0
    CR1                                  = 0x200
    CR2                                  = 0x400
    CR3                                  = 0x600
    CRDLY                                = 0x600
    CREAD                                = 0x80
    CRTSCTS                              = 0x80000000
    CS5                                  = 0x0
    CS6                                  = 0x10
    CS7                                  = 0x20
    CS8                                  = 0x30
    CSIGNAL                              = 0xff
    CSIZE                                = 0x30
    CSTART                               = 0x11
    CSTATUS                              = 0x0
    CSTOP                                = 0x13
    CSTOPB                               = 0x40
    CSUSP                                = 0x1a
    DT_BLK                               = 0x6
    DT_CHR                               = 0x2
    DT_DIR                               = 0x4
    DT_FIFO                              = 0x1
    DT_LNK                               = 0xa
    DT_REG                               = 0x8
    DT_SOCK                              = 0xc
    DT_UNKNOWN                           = 0x0
    DT_WHT                               = 0xe
    ECHO                                 = 0x8
    ECHOCTL                              = 0x200
    ECHOE                                = 0x10
    ECHOK                                = 0x20
    ECHOKE                               = 0x800
    ECHONL                               = 0x40
    ECHOPRT                              = 0x400
    EFD_CLOEXEC                          = 0x80000
    EFD_NONBLOCK                         = 0x800
    EFD_SEMAPHORE                        = 0x1
    ENCODING_DEFAULT                     = 0x0
    ENCODING_FM_MARK                     = 0x3
    ENCODING_FM_SPACE                    = 0x4
    ENCODING_MANCHESTER                  = 0x5
    ENCODING_NRZ                         = 0x1
    ENCODING_NRZI                        = 0x2
    EPOLLERR                             = 0x8
    EPOLLET                              = 0x80000000
    EPOLLEXCLUSIVE                       = 0x10000000
    EPOLLHUP                             = 0x10
    EPOLLIN                              = 0x1
    EPOLLMSG                             = 0x400
    EPOLLONESHOT                         = 0x40000000
    EPOLLOUT                             = 0x4
    EPOLLPRI                             = 0x2
    EPOLLRDBAND                          = 0x80
    EPOLLRDHUP                           = 0x2000
    EPOLLRDNORM                          = 0x40
    EPOLLWAKEUP                          = 0x20000000
    EPOLLWRBAND                          = 0x200
    EPOLLWRNORM                          = 0x100
    EPOLL_CLOEXEC                        = 0x80000
    EPOLL_CTL_ADD                        = 0x1
    EPOLL_CTL_DEL                        = 0x2
    EPOLL_CTL_MOD                        = 0x3
    ETH_P_1588                           = 0x88f7
    ETH_P_8021AD                         = 0x88a8
    ETH_P_8021AH                         = 0x88e7
    ETH_P_8021Q                          = 0x8100
    ETH_P_80221                          = 0x8917
    ETH_P_802_2                          = 0x4
    ETH_P_802_3                          = 0x1
    ETH_P_802_3_MIN                      = 0x600
    ETH_P_802_EX1                        = 0x88b5
    ETH_P_AARP                           = 0x80f3
    ETH_P_AF_IUCV                        = 0xfbfb
    ETH_P_ALL                            = 0x3
    ETH_P_AOE                            = 0x88a2
    ETH_P_ARCNET                         = 0x1a
    ETH_P_ARP                            = 0x806
    ETH_P_ATALK                          = 0x809b
    ETH_P_ATMFATE                        = 0x8884
    ETH_P_ATMMPOA                        = 0x884c
    ETH_P_AX25                           = 0x2
    ETH_P_BATMAN                         = 0x4305
    ETH_P_BPQ                            = 0x8ff
    ETH_P_CAIF                           = 0xf7
    ETH_P_CAN                            = 0xc
    ETH_P_CANFD                          = 0xd
    ETH_P_CONTROL                        = 0x16
    ETH_P_CUST                           = 0x6006
    ETH_P_DDCMP                          = 0x6
    ETH_P_DEC                            = 0x6000
    ETH_P_DIAG                           = 0x6005
    ETH_P_DNA_DL                         = 0x6001
    ETH_P_DNA_RC                         = 0x6002
    ETH_P_DNA_RT                         = 0x6003
    ETH_P_DSA                            = 0x1b
    ETH_P_ECONET                         = 0x18
    ETH_P_EDSA                           = 0xdada
    ETH_P_FCOE                           = 0x8906
    ETH_P_FIP                            = 0x8914
    ETH_P_HDLC                           = 0x19
    ETH_P_HSR                            = 0x892f
    ETH_P_IBOE                           = 0x8915
    ETH_P_IEEE802154                     = 0xf6
    ETH_P_IEEEPUP                        = 0xa00
    ETH_P_IEEEPUPAT                      = 0xa01
    ETH_P_IP                             = 0x800
    ETH_P_IPV6                           = 0x86dd
    ETH_P_IPX                            = 0x8137
    ETH_P_IRDA                           = 0x17
    ETH_P_LAT                            = 0x6004
    ETH_P_LINK_CTL                       = 0x886c
    ETH_P_LOCALTALK                      = 0x9
    ETH_P_LOOP                           = 0x60
    ETH_P_LOOPBACK                       = 0x9000
    ETH_P_MACSEC                         = 0x88e5
    ETH_P_MOBITEX                        = 0x15
    ETH_P_MPLS_MC                        = 0x8848
    ETH_P_MPLS_UC                        = 0x8847
    ETH_P_MVRP                           = 0x88f5
    ETH_P_NCSI                           = 0x88f8
    ETH_P_PAE                            = 0x888e
    ETH_P_PAUSE                          = 0x8808
    ETH_P_PHONET                         = 0xf5
    ETH_P_PPPTALK                        = 0x10
    ETH_P_PPP_DISC                       = 0x8863
    ETH_P_PPP_MP                         = 0x8
    ETH_P_PPP_SES                        = 0x8864
    ETH_P_PRP                            = 0x88fb
    ETH_P_PUP                            = 0x200
    ETH_P_PUPAT                          = 0x201
    ETH_P_QINQ1                          = 0x9100
    ETH_P_QINQ2                          = 0x9200
    ETH_P_QINQ3                          = 0x9300
    ETH_P_RARP                           = 0x8035
    ETH_P_SCA                            = 0x6007
    ETH_P_SLOW                           = 0x8809
    ETH_P_SNAP                           = 0x5
    ETH_P_TDLS                           = 0x890d
    ETH_P_TEB                            = 0x6558
    ETH_P_TIPC                           = 0x88ca
    ETH_P_TRAILER                        = 0x1c
    ETH_P_TR_802_2                       = 0x11
    ETH_P_TSN                            = 0x22f0
    ETH_P_WAN_PPP                        = 0x7
    ETH_P_WCCP                           = 0x883e
    ETH_P_X25                            = 0x805
    ETH_P_XDSA                           = 0xf8
    EXTA                                 = 0xe
    EXTB                                 = 0xf
    EXTPROC                              = 0x10000
    FALLOC_FL_COLLAPSE_RANGE             = 0x8
    FALLOC_FL_INSERT_RANGE               = 0x20
    FALLOC_FL_KEEP_SIZE                  = 0x1
    FALLOC_FL_NO_HIDE_STALE              = 0x4
    FALLOC_FL_PUNCH_HOLE                 = 0x2
    FALLOC_FL_UNSHARE_RANGE              = 0x40
    FALLOC_FL_ZERO_RANGE                 = 0x10
    FD_CLOEXEC                           = 0x1
    FD_SETSIZE                           = 0x400
    FF0                                  = 0x0
    FF1                                  = 0x8000
    FFDLY                                = 0x8000
    FLUSHO                               = 0x1000
    FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
    FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
    FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
    FS_ENCRYPTION_MODE_AES_256_CTS       = 0x4
    FS_ENCRYPTION_MODE_AES_256_GCM       = 0x2
    FS_ENCRYPTION_MODE_AES_256_XTS       = 0x1
    FS_ENCRYPTION_MODE_INVALID           = 0x0
    FS_IOC_GET_ENCRYPTION_POLICY         = 0x400c6615
    FS_IOC_GET_ENCRYPTION_PWSALT         = 0x40106614
    FS_IOC_SET_ENCRYPTION_POLICY         = 0x800c6613
    FS_KEY_DESCRIPTOR_SIZE               = 0x8
    FS_KEY_DESC_PREFIX                   = "fscrypt:"
    FS_KEY_DESC_PREFIX_SIZE              = 0x8
    FS_MAX_KEY_SIZE                      = 0x40
    FS_POLICY_FLAGS_PAD_16               = 0x2
    FS_POLICY_FLAGS_PAD_32               = 0x3
    FS_POLICY_FLAGS_PAD_4                = 0x0
    FS_POLICY_FLAGS_PAD_8                = 0x1
    FS_POLICY_FLAGS_PAD_MASK             = 0x3
    FS_POLICY_FLAGS_VALID                = 0x3
    F_DUPFD                              = 0x0
    F_DUPFD_CLOEXEC                      = 0x406
    F_EXLCK                              = 0x4
    F_GETFD                              = 0x1
    F_GETFL                              = 0x3
    F_GETLEASE                           = 0x401
    F_GETLK                              = 0x5
    F_GETLK64                            = 0x5
    F_GETOWN                             = 0x9
    F_GETOWN_EX                          = 0x10
    F_GETPIPE_SZ                         = 0x408
    F_GETSIG                             = 0xb
    F_LOCK                               = 0x1
    F_NOTIFY                             = 0x402
    F_OFD_GETLK                          = 0x24
    F_OFD_SETLK                          = 0x25
    F_OFD_SETLKW                         = 0x26
    F_OK                                 = 0x0
    F_RDLCK                              = 0x0
    F_SETFD                              = 0x2
    F_SETFL                              = 0x4
    F_SETLEASE                           = 0x400
    F_SETLK                              = 0x6
    F_SETLK64                            = 0x6
    F_SETLKW                             = 0x7
    F_SETLKW64                           = 0x7
    F_SETOWN                             = 0x8
    F_SETOWN_EX                          = 0xf
    F_SETPIPE_SZ                         = 0x407
    F_SETSIG                             = 0xa
    F_SHLCK                              = 0x8
    F_TEST                               = 0x3
    F_TLOCK                              = 0x2
    F_ULOCK                              = 0x0
    F_UNLCK                              = 0x2
    F_WRLCK                              = 0x1
    GENL_ADMIN_PERM                      = 0x1
    GENL_CMD_CAP_DO                      = 0x2
    GENL_CMD_CAP_DUMP                    = 0x4
    GENL_CMD_CAP_HASPOL                  = 0x8
    GENL_HDRLEN                          = 0x4
    GENL_ID_CTRL                         = 0x10
    GENL_ID_PMCRAID                      = 0x12
    GENL_ID_VFS_DQUOT                    = 0x11
    GENL_MAX_ID                          = 0x3ff
    GENL_MIN_ID                          = 0x10
    GENL_NAMSIZ                          = 0x10
    GENL_START_ALLOC                     = 0x13
    GENL_UNS_ADMIN_PERM                  = 0x10
    GRND_NONBLOCK                        = 0x1
    GRND_RANDOM                          = 0x2
    HUPCL                                = 0x400
    IBSHIFT                              = 0x10
    ICANON                               = 0x2
    ICMPV6_FILTER                        = 0x1
    ICRNL                                = 0x100
    IEXTEN                               = 0x8000
    IFA_F_DADFAILED                      = 0x8
    IFA_F_DEPRECATED                     = 0x20
    IFA_F_HOMEADDRESS                    = 0x10
    IFA_F_MANAGETEMPADDR                 = 0x100
    IFA_F_MCAUTOJOIN                     = 0x400
    IFA_F_NODAD                          = 0x2
    IFA_F_NOPREFIXROUTE                  = 0x200
    IFA_F_OPTIMISTIC                     = 0x4
    IFA_F_PERMANENT                      = 0x80
    IFA_F_SECONDARY                      = 0x1
    IFA_F_STABLE_PRIVACY                 = 0x800
    IFA_F_TEMPORARY                      = 0x1
    IFA_F_TENTATIVE                      = 0x40
    IFA_MAX                              = 0x8
    IFF_ALLMULTI                         = 0x200
    IFF_ATTACH_QUEUE                     = 0x200
    IFF_AUTOMEDIA                        = 0x4000
    IFF_BROADCAST                        = 0x2
    IFF_DEBUG                            = 0x4
    IFF_DETACH_QUEUE                     = 0x400
    IFF_DORMANT                          = 0x20000
    IFF_DYNAMIC                          = 0x8000
    IFF_ECHO                             = 0x40000
    IFF_LOOPBACK                         = 0x8
    IFF_LOWER_UP                         = 0x10000
    IFF_MASTER                           = 0x400
    IFF_MULTICAST                        = 0x1000
    IFF_MULTI_QUEUE                      = 0x100
    IFF_NOARP                            = 0x80
    IFF_NOFILTER                         = 0x1000
    IFF_NOTRAILERS                       = 0x20
    IFF_NO_PI                            = 0x1000
    IFF_ONE_QUEUE                        = 0x2000
    IFF_PERSIST                          = 0x800
    IFF_POINTOPOINT                      = 0x10
    IFF_PORTSEL                          = 0x2000
    IFF_PROMISC                          = 0x100
    IFF_RUNNING                          = 0x40
    IFF_SLAVE                            = 0x800
    IFF_TAP                              = 0x2
    IFF_TUN                              = 0x1
    IFF_TUN_EXCL                         = 0x8000
    IFF_UP                               = 0x1
    IFF_VNET_HDR                         = 0x4000
    IFF_VOLATILE                         = 0x70c5a
    IFNAMSIZ                             = 0x10
    IGNBRK                               = 0x1
    IGNCR                                = 0x80
    IGNPAR                               = 0x4
    IMAXBEL                              = 0x2000
    INLCR                                = 0x40
    INPCK                                = 0x10
    IN_ACCESS                            = 0x1
    IN_ALL_EVENTS                        = 0xfff
    IN_ATTRIB                            = 0x4
    IN_CLASSA_HOST                       = 0xffffff
    IN_CLASSA_MAX                        = 0x80
    IN_CLASSA_NET                        = 0xff000000
    IN_CLASSA_NSHIFT                     = 0x18
    IN_CLASSB_HOST                       = 0xffff
    IN_CLASSB_MAX                        = 0x10000
    IN_CLASSB_NET                        = 0xffff0000
    IN_CLASSB_NSHIFT                     = 0x10
    IN_CLASSC_HOST                       = 0xff
    IN_CLASSC_NET                        = 0xffffff00
    IN_CLASSC_NSHIFT                     = 0x8
    IN_CLOEXEC                           = 0x80000
    IN_CLOSE                             = 0x18
    IN_CLOSE_NOWRITE                     = 0x10
    IN_CLOSE_WRITE                       = 0x8
    IN_CREATE                            = 0x100
    IN_DELETE                            = 0x200
    IN_DELETE_SELF                       = 0x400
    IN_DONT_FOLLOW                       = 0x2000000
    IN_EXCL_UNLINK                       = 0x4000000
    IN_IGNORED                           = 0x8000
    IN_ISDIR                             = 0x40000000
    IN_LOOPBACKNET                       = 0x7f
    IN_MASK_ADD                          = 0x20000000
    IN_MODIFY                            = 0x2
    IN_MOVE                              = 0xc0
    IN_MOVED_FROM                        = 0x40
    IN_MOVED_TO                          = 0x80
    IN_MOVE_SELF                         = 0x800
    IN_NONBLOCK                          = 0x800
    IN_ONESHOT                           = 0x80000000
    IN_ONLYDIR                           = 0x1000000
    IN_OPEN                              = 0x20
    IN_Q_OVERFLOW                        = 0x4000
    IN_UNMOUNT                           = 0x2000
    IPPROTO_AH                           = 0x33
    IPPROTO_BEETPH                       = 0x5e
    IPPROTO_COMP                         = 0x6c
    IPPROTO_DCCP                         = 0x21
    IPPROTO_DSTOPTS                      = 0x3c
    IPPROTO_EGP                          = 0x8
    IPPROTO_ENCAP                        = 0x62
    IPPROTO_ESP                          = 0x32
    IPPROTO_FRAGMENT                     = 0x2c
    IPPROTO_GRE                          = 0x2f
    IPPROTO_HOPOPTS                      = 0x0
    IPPROTO_ICMP                         = 0x1
    IPPROTO_ICMPV6                       = 0x3a
    IPPROTO_IDP                          = 0x16
    IPPROTO_IGMP                         = 0x2
    IPPROTO_IP                           = 0x0
    IPPROTO_IPIP                         = 0x4
    IPPROTO_IPV6                         = 0x29
    IPPROTO_MH                           = 0x87
    IPPROTO_MPLS                         = 0x89
    IPPROTO_MTP                          = 0x5c
    IPPROTO_NONE                         = 0x3b
    IPPROTO_PIM                          = 0x67
    IPPROTO_PUP                          = 0xc
    IPPROTO_RAW                          = 0xff
    IPPROTO_ROUTING                      = 0x2b
    IPPROTO_RSVP                         = 0x2e
    IPPROTO_SCTP                         = 0x84
    IPPROTO_TCP                          = 0x6
    IPPROTO_TP                           = 0x1d
    IPPROTO_UDP                          = 0x11
    IPPROTO_UDPLITE                      = 0x88
    IPV6_2292DSTOPTS                     = 0x4
    IPV6_2292HOPLIMIT                    = 0x8
    IPV6_2292HOPOPTS                     = 0x3
    IPV6_2292PKTINFO                     = 0x2
    IPV6_2292PKTOPTIONS                  = 0x6
    IPV6_2292RTHDR                       = 0x5
    IPV6_ADDRFORM                        = 0x1
    IPV6_ADDR_PREFERENCES                = 0x48
    IPV6_ADD_MEMBERSHIP                  = 0x14
    IPV6_AUTHHDR                         = 0xa
    IPV6_AUTOFLOWLABEL                   = 0x46
    IPV6_CHECKSUM                        = 0x7
    IPV6_DONTFRAG                        = 0x3e
    IPV6_DROP_MEMBERSHIP                 = 0x15
    IPV6_DSTOPTS                         = 0x3b
    IPV6_HDRINCL                         = 0x24
    IPV6_HOPLIMIT                        = 0x34
    IPV6_HOPOPTS                         = 0x36
    IPV6_IPSEC_POLICY                    = 0x22
    IPV6_JOIN_ANYCAST                    = 0x1b
    IPV6_JOIN_GROUP                      = 0x14
    IPV6_LEAVE_ANYCAST                   = 0x1c
    IPV6_LEAVE_GROUP                     = 0x15
    IPV6_MINHOPCOUNT                     = 0x49
    IPV6_MTU                             = 0x18
    IPV6_MTU_DISCOVER                    = 0x17
    IPV6_MULTICAST_HOPS                  = 0x12
    IPV6_MULTICAST_IF                    = 0x11
    IPV6_MULTICAST_LOOP                  = 0x13
    IPV6_NEXTHOP                         = 0x9
    IPV6_ORIGDSTADDR                     = 0x4a
    IPV6_PATHMTU                         = 0x3d
    IPV6_PKTINFO                         = 0x32
    IPV6_PMTUDISC_DO                     = 0x2
    IPV6_PMTUDISC_DONT                   = 0x0
    IPV6_PMTUDISC_INTERFACE              = 0x4
    IPV6_PMTUDISC_OMIT                   = 0x5
    IPV6_PMTUDISC_PROBE                  = 0x3
    IPV6_PMTUDISC_WANT                   = 0x1
    IPV6_RECVDSTOPTS                     = 0x3a
    IPV6_RECVERR                         = 0x19
    IPV6_RECVFRAGSIZE                    = 0x4d
    IPV6_RECVHOPLIMIT                    = 0x33
    IPV6_RECVHOPOPTS                     = 0x35
    IPV6_RECVORIGDSTADDR                 = 0x4a
    IPV6_RECVPATHMTU                     = 0x3c
    IPV6_RECVPKTINFO                     = 0x31
    IPV6_RECVRTHDR                       = 0x38
    IPV6_RECVTCLASS                      = 0x42
    IPV6_ROUTER_ALERT                    = 0x16
    IPV6_RTHDR                           = 0x39
    IPV6_RTHDRDSTOPTS                    = 0x37
    IPV6_RTHDR_LOOSE                     = 0x0
    IPV6_RTHDR_STRICT                    = 0x1
    IPV6_RTHDR_TYPE_0                    = 0x0
    IPV6_RXDSTOPTS                       = 0x3b
    IPV6_RXHOPOPTS                       = 0x36
    IPV6_TCLASS                          = 0x43
    IPV6_TRANSPARENT                     = 0x4b
    IPV6_UNICAST_HOPS                    = 0x10
    IPV6_UNICAST_IF                      = 0x4c
    IPV6_V6ONLY                          = 0x1a
    IPV6_XFRM_POLICY                     = 0x23
    IP_ADD_MEMBERSHIP                    = 0x23
    IP_ADD_SOURCE_MEMBERSHIP             = 0x27
    IP_BIND_ADDRESS_NO_PORT              = 0x18
    IP_BLOCK_SOURCE                      = 0x26
    IP_CHECKSUM                          = 0x17
    IP_DEFAULT_MULTICAST_LOOP            = 0x1
    IP_DEFAULT_MULTICAST_TTL             = 0x1
    IP_DF                                = 0x4000
    IP_DROP_MEMBERSHIP                   = 0x24
    IP_DROP_SOURCE_MEMBERSHIP            = 0x28
    IP_FREEBIND                          = 0xf
    IP_HDRINCL                           = 0x3
    IP_IPSEC_POLICY                      = 0x10
    IP_MAXPACKET                         = 0xffff
    IP_MAX_MEMBERSHIPS                   = 0x14
    IP_MF                                = 0x2000
    IP_MINTTL                            = 0x15
    IP_MSFILTER                          = 0x29
    IP_MSS                               = 0x240
    IP_MTU                               = 0xe
    IP_MTU_DISCOVER                      = 0xa
    IP_MULTICAST_ALL                     = 0x31
    IP_MULTICAST_IF                      = 0x20
    IP_MULTICAST_LOOP                    = 0x22
    IP_MULTICAST_TTL                     = 0x21
    IP_NODEFRAG                          = 0x16
    IP_OFFMASK                           = 0x1fff
    IP_OPTIONS                           = 0x4
    IP_ORIGDSTADDR                       = 0x14
    IP_PASSSEC                           = 0x12
    IP_PKTINFO                           = 0x8
    IP_PKTOPTIONS                        = 0x9
    IP_PMTUDISC                          = 0xa
    IP_PMTUDISC_DO                       = 0x2
    IP_PMTUDISC_DONT                     = 0x0
    IP_PMTUDISC_INTERFACE                = 0x4
    IP_PMTUDISC_OMIT                     = 0x5
    IP_PMTUDISC_PROBE                    = 0x3
    IP_PMTUDISC_WANT                     = 0x1
    IP_RECVERR                           = 0xb
    IP_RECVFRAGSIZE                      = 0x19
    IP_RECVOPTS                          = 0x6
    IP_RECVORIGDSTADDR                   = 0x14
    IP_RECVRETOPTS                       = 0x7
    IP_RECVTOS                           = 0xd
    IP_RECVTTL                           = 0xc
    IP_RETOPTS                           = 0x7
    IP_RF                                = 0x8000
    IP_ROUTER_ALERT                      = 0x5
    IP_TOS                               = 0x1
    IP_TRANSPARENT                       = 0x13
    IP_TTL                               = 0x2
    IP_UNBLOCK_SOURCE                    = 0x25
    IP_UNICAST_IF                        = 0x32
    IP_XFRM_POLICY                       = 0x11
    ISIG                                 = 0x1
    ISTRIP                               = 0x20
    IUCLC                                = 0x200
    IUTF8                                = 0x4000
    IXANY                                = 0x800
    IXOFF                                = 0x1000
    IXON                                 = 0x400
    KEYCTL_ASSUME_AUTHORITY              = 0x10
    KEYCTL_CHOWN                         = 0x4
    KEYCTL_CLEAR                         = 0x7
    KEYCTL_DESCRIBE                      = 0x6
    KEYCTL_DH_COMPUTE                    = 0x17
    KEYCTL_GET_KEYRING_ID                = 0x0
    KEYCTL_GET_PERSISTENT                = 0x16
    KEYCTL_GET_SECURITY                  = 0x11
    KEYCTL_INSTANTIATE                   = 0xc
    KEYCTL_INSTANTIATE_IOV               = 0x14
    KEYCTL_INVALIDATE                    = 0x15
    KEYCTL_JOIN_SESSION_KEYRING          = 0x1
    KEYCTL_LINK                          = 0x8
    KEYCTL_NEGATE                        = 0xd
    KEYCTL_READ                          = 0xb
    KEYCTL_REJECT                        = 0x13
    KEYCTL_RESTRICT_KEYRING              = 0x1d
    KEYCTL_REVOKE                        = 0x3
    KEYCTL_SEARCH                        = 0xa
    KEYCTL_SESSION_TO_PARENT             = 0x12
    KEYCTL_SETPERM                       = 0x5
    KEYCTL_SET_REQKEY_KEYRING            = 0xe
    KEYCTL_SET_TIMEOUT                   = 0xf
    KEYCTL_UNLINK                        = 0x9
    KEYCTL_UPDATE                        = 0x2
    KEY_REQKEY_DEFL_DEFAULT              = 0x0
    KEY_REQKEY_DEFL_GROUP_KEYRING        = 0x6
    KEY_REQKEY_DEFL_NO_CHANGE            = -0x1
    KEY_REQKEY_DEFL_PROCESS_KEYRING      = 0x2
    KEY_REQKEY_DEFL_REQUESTOR_KEYRING    = 0x7
    KEY_REQKEY_DEFL_SESSION_KEYRING      = 0x3
    KEY_REQKEY_DEFL_THREAD_KEYRING       = 0x1
    KEY_REQKEY_DEFL_USER_KEYRING         = 0x4
    KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
    KEY_SPEC_GROUP_KEYRING               = -0x6
    KEY_SPEC_PROCESS_KEYRING             = -0x2
    KEY_SPEC_REQKEY_AUTH_KEY             = -0x7
    KEY_SPEC_REQUESTOR_KEYRING           = -0x8
    KEY_SPEC_SESSION_KEYRING             = -0x3
    KEY_SPEC_THREAD_KEYRING              = -0x1
    KEY_SPEC_USER_KEYRING                = -0x4
    KEY_SPEC_USER_SESSION_KEYRING        = -0x5
    LINUX_REBOOT_CMD_CAD_OFF             = 0x0
    LINUX_REBOOT_CMD_CAD_ON              = 0x89abcdef
    LINUX_REBOOT_CMD_HALT                = 0xcdef0123
    LINUX_REBOOT_CMD_KEXEC               = 0x45584543
    LINUX_REBOOT_CMD_POWER_OFF           = 0x4321fedc
    LINUX_REBOOT_CMD_RESTART             = 0x1234567
    LINUX_REBOOT_CMD_RESTART2            = 0xa1b2c3d4
    LINUX_REBOOT_CMD_SW_SUSPEND          = 0xd000fce2
    LINUX_REBOOT_MAGIC1                  = 0xfee1dead
    LINUX_REBOOT_MAGIC2                  = 0x28121969
    LOCK_EX                              = 0x2
    LOCK_NB                              = 0x4
    LOCK_SH                              = 0x1
    LOCK_UN                              = 0x8
    MADV_DODUMP                          = 0x11
    MADV_DOFORK                          = 0xb
    MADV_DONTDUMP                        = 0x10
    MADV_DONTFORK                        = 0xa
    MADV_DONTNEED                        = 0x4
    MADV_FREE                            = 0x8
    MADV_HUGEPAGE                        = 0xe
    MADV_HWPOISON                        = 0x64
    MADV_MERGEABLE                       = 0xc
    MADV_NOHUGEPAGE                      = 0xf
    MADV_NORMAL                          = 0x0
    MADV_RANDOM                          = 0x1
    MADV_REMOVE                          = 0x9
    MADV_SEQUENTIAL                      = 0x2
    MADV_UNMERGEABLE                     = 0xd
    MADV_WILLNEED                        = 0x3
    MAP_32BIT                            = 0x40
    MAP_ANON                             = 0x20
    MAP_ANONYMOUS                        = 0x20
    MAP_DENYWRITE                        = 0x800
    MAP_EXECUTABLE                       = 0x1000
    MAP_FILE                             = 0x0
    MAP_FIXED                            = 0x10
    MAP_GROWSDOWN                        = 0x100
    MAP_HUGETLB                          = 0x40000
    MAP_HUGE_MASK                        = 0x3f
    MAP_HUGE_SHIFT                       = 0x1a
    MAP_LOCKED                           = 0x2000
    MAP_NONBLOCK                         = 0x10000
    MAP_NORESERVE                        = 0x4000
    MAP_POPULATE                         = 0x8000
    MAP_PRIVATE                          = 0x2
    MAP_SHARED                           = 0x1
    MAP_STACK                            = 0x20000
    MAP_TYPE                             = 0xf
    MCL_CURRENT                          = 0x1
    MCL_FUTURE                           = 0x2
    MCL_ONFAULT                          = 0x4
    MNT_DETACH                           = 0x2
    MNT_EXPIRE                           = 0x4
    MNT_FORCE                            = 0x1
    MSG_BATCH                            = 0x40000
    MSG_CMSG_CLOEXEC                     = 0x40000000
    MSG_CONFIRM                          = 0x800
    MSG_CTRUNC                           = 0x8
    MSG_DONTROUTE                        = 0x4
    MSG_DONTWAIT                         = 0x40
    MSG_EOR                              = 0x80
    MSG_ERRQUEUE                         = 0x2000
    MSG_FASTOPEN                         = 0x20000000
    MSG_FIN                              = 0x200
    MSG_MORE                             = 0x8000
    MSG_NOSIGNAL                         = 0x4000
    MSG_OOB                              = 0x1
    MSG_PEEK                             = 0x2
    MSG_PROXY                            = 0x10
    MSG_RST                              = 0x1000
    MSG_SYN                              = 0x400
    MSG_TRUNC                            = 0x20
    MSG_TRYHARD                          = 0x4
    MSG_WAITALL                          = 0x100
    MSG_WAITFORONE                       = 0x10000
    MS_ACTIVE                            = 0x40000000
    MS_ASYNC                             = 0x1
    MS_BIND                              = 0x1000
    MS_BORN                              = 0x20000000
    MS_DIRSYNC                           = 0x80
    MS_INVALIDATE                        = 0x2
    MS_I_VERSION                         = 0x800000
    MS_KERNMOUNT                         = 0x400000
    MS_LAZYTIME                          = 0x2000000
    MS_MANDLOCK                          = 0x40
    MS_MGC_MSK                           = 0xffff0000
    MS_MGC_VAL                           = 0xc0ed0000
    MS_MOVE                              = 0x2000
    MS_NOATIME                           = 0x400
    MS_NODEV                             = 0x4
    MS_NODIRATIME                        = 0x800
    MS_NOEXEC                            = 0x8
    MS_NOREMOTELOCK                      = 0x8000000
    MS_NOSEC                             = 0x10000000
    MS_NOSUID                            = 0x2
    MS_NOUSER                            = -0x80000000
    MS_POSIXACL                          = 0x10000
    MS_PRIVATE                           = 0x40000
    MS_RDONLY                            = 0x1
    MS_REC                               = 0x4000
    MS_RELATIME                          = 0x200000
    MS_REMOUNT                           = 0x20
    MS_RMT_MASK                          = 0x2800051
    MS_SHARED                            = 0x100000
    MS_SILENT                            = 0x8000
    MS_SLAVE                             = 0x80000
    MS_STRICTATIME                       = 0x1000000
    MS_SUBMOUNT                          = 0x4000000
    MS_SYNC                              = 0x4
    MS_SYNCHRONOUS                       = 0x10
    MS_UNBINDABLE                        = 0x20000
    MS_VERBOSE                           = 0x8000
    NAME_MAX                             = 0xff
    NETLINK_ADD_MEMBERSHIP               = 0x1
    NETLINK_AUDIT                        = 0x9
    NETLINK_BROADCAST_ERROR              = 0x4
    NETLINK_CAP_ACK                      = 0xa
    NETLINK_CONNECTOR                    = 0xb
    NETLINK_CRYPTO                       = 0x15
    NETLINK_DNRTMSG                      = 0xe
    NETLINK_DROP_MEMBERSHIP              = 0x2
    NETLINK_ECRYPTFS                     = 0x13
    NETLINK_EXT_ACK                      = 0xb
    NETLINK_FIB_LOOKUP                   = 0xa
    NETLINK_FIREWALL                     = 0x3
    NETLINK_GENERIC                      = 0x10
    NETLINK_INET_DIAG                    = 0x4
    NETLINK_IP6_FW                       = 0xd
    NETLINK_ISCSI                        = 0x8
    NETLINK_KOBJECT_UEVENT               = 0xf
    NETLINK_LISTEN_ALL_NSID              = 0x8
    NETLINK_LIST_MEMBERSHIPS             = 0x9
    NETLINK_NETFILTER                    = 0xc
    NETLINK_NFLOG                        = 0x5
    NETLINK_NO_ENOBUFS                   = 0x5
    NETLINK_PKTINFO                      = 0x3
    NETLINK_RDMA                         = 0x14
    NETLINK_ROUTE                        = 0x0
    NETLINK_RX_RING                      = 0x6
    NETLINK_SCSITRANSPORT                = 0x12
    NETLINK_SELINUX                      = 0x7
    NETLINK_SMC                          = 0x16
    NETLINK_SOCK_DIAG                    = 0x4
    NETLINK_TX_RING                      = 0x7
    NETLINK_UNUSED                       = 0x1
    NETLINK_USERSOCK                     = 0x2
    NETLINK_XFRM                         = 0x6
    NL0                                  = 0x0
    NL1                                  = 0x100
    NLA_ALIGNTO                          = 0x4
    NLA_F_NESTED                         = 0x8000
    NLA_F_NET_BYTEORDER                  = 0x4000
    NLA_HDRLEN                           = 0x4
    NLDLY                                = 0x100
    NLMSG_ALIGNTO                        = 0x4
    NLMSG_DONE                           = 0x3
    NLMSG_ERROR                          = 0x2
    NLMSG_HDRLEN                         = 0x10
    NLMSG_MIN_TYPE                       = 0x10
    NLMSG_NOOP                           = 0x1
    NLMSG_OVERRUN                        = 0x4
    NLM_F_ACK                            = 0x4
    NLM_F_ACK_TLVS                       = 0x200
    NLM_F_APPEND                         = 0x800
    NLM_F_ATOMIC                         = 0x400
    NLM_F_CAPPED                         = 0x100
    NLM_F_CREATE                         = 0x400
    NLM_F_DUMP                           = 0x300
    NLM_F_DUMP_FILTERED                  = 0x20
    NLM_F_DUMP_INTR                      = 0x10
    NLM_F_ECHO                           = 0x8
    NLM_F_EXCL                           = 0x200
    NLM_F_MATCH                          = 0x200
    NLM_F_MULTI                          = 0x2
    NLM_F_REPLACE                        = 0x100
    NLM_F_REQUEST                        = 0x1
    NLM_F_ROOT                           = 0x100
    NOFLSH                               = 0x80
    OCRNL                                = 0x8
    OFDEL                                = 0x80
    OFILL                                = 0x40
    OLCUC                                = 0x2
    ONLCR                                = 0x4
    ONLRET                               = 0x20
    ONOCR                                = 0x10
    OPOST                                = 0x1
    O_ACCMODE                            = 0x3
    O_APPEND                             = 0x400
    O_ASYNC                              = 0x2000
    O_CLOEXEC                            = 0x80000
    O_CREAT                              = 0x40
    O_DIRECT                             = 0x4000
    O_DIRECTORY                          = 0x10000
    O_DSYNC                              = 0x1000
    O_EXCL                               = 0x80
    O_FSYNC                              = 0x101000
    O_LARGEFILE                          = 0x0
    O_NDELAY                             = 0x800
    O_NOATIME                            = 0x40000
    O_NOCTTY                             = 0x100
    O_NOFOLLOW                           = 0x20000
    O_NONBLOCK                           = 0x800
    O_PATH                               = 0x200000
    O_RDONLY                             = 0x0
    O_RDWR                               = 0x2
    O_RSYNC                              = 0x101000
    O_SYNC                               = 0x101000
    O_TMPFILE                            = 0x410000
    O_TRUNC                              = 0x200
    O_WRONLY                             = 0x1
    PACKET_ADD_MEMBERSHIP                = 0x1
    PACKET_AUXDATA                       = 0x8
    PACKET_BROADCAST                     = 0x1
    PACKET_COPY_THRESH                   = 0x7
    PACKET_DROP_MEMBERSHIP               = 0x2
    PACKET_FANOUT                        = 0x12
    PACKET_FANOUT_CBPF                   = 0x6
    PACKET_FANOUT_CPU                    = 0x2
    PACKET_FANOUT_DATA                   = 0x16
    PACKET_FANOUT_EBPF                   = 0x7
    PACKET_FANOUT_FLAG_DEFRAG            = 0x8000
    PACKET_FANOUT_FLAG_ROLLOVER          = 0x1000
    PACKET_FANOUT_FLAG_UNIQUEID          = 0x2000
    PACKET_FANOUT_HASH                   = 0x0
    PACKET_FANOUT_LB                     = 0x1
    PACKET_FANOUT_QM                     = 0x5
    PACKET_FANOUT_RND                    = 0x4
    PACKET_FANOUT_ROLLOVER               = 0x3
    PACKET_FASTROUTE                     = 0x6
    PACKET_HDRLEN                        = 0xb
    PACKET_HOST                          = 0x0
    PACKET_KERNEL                        = 0x7
    PACKET_LOOPBACK                      = 0x5
    PACKET_LOSS                          = 0xe
    PACKET_MR_ALLMULTI                   = 0x2
    PACKET_MR_MULTICAST                  = 0x0
    PACKET_MR_PROMISC                    = 0x1
    PACKET_MR_UNICAST                    = 0x3
    PACKET_MULTICAST                     = 0x2
    PACKET_ORIGDEV                       = 0x9
    PACKET_OTHERHOST                     = 0x3
    PACKET_OUTGOING                      = 0x4
    PACKET_QDISC_BYPASS                  = 0x14
    PACKET_RECV_OUTPUT                   = 0x3
    PACKET_RESERVE                       = 0xc
    PACKET_ROLLOVER_STATS                = 0x15
    PACKET_RX_RING                       = 0x5
    PACKET_STATISTICS                    = 0x6
    PACKET_TIMESTAMP                     = 0x11
    PACKET_TX_HAS_OFF                    = 0x13
    PACKET_TX_RING                       = 0xd
    PACKET_TX_TIMESTAMP                  = 0x10
    PACKET_USER                          = 0x6
    PACKET_VERSION                       = 0xa
    PACKET_VNET_HDR                      = 0xf
    PARENB                               = 0x100
    PARITY_CRC16_PR0                     = 0x2
    PARITY_CRC16_PR0_CCITT               = 0x4
    PARITY_CRC16_PR1                     = 0x3
    PARITY_CRC16_PR1_CCITT               = 0x5
    PARITY_CRC32_PR0_CCITT               = 0x6
    PARITY_CRC32_PR1_CCITT               = 0x7
    PARITY_DEFAULT                       = 0x0
    PARITY_NONE                          = 0x1
    PARMRK                               = 0x8
    PARODD                               = 0x200
    PENDIN                               = 0x4000
    PERF_EVENT_IOC_DISABLE               = 0x2401
    PERF_EVENT_IOC_ENABLE                = 0x2400
    PERF_EVENT_IOC_ID                    = 0x80082407
    PERF_EVENT_IOC_PAUSE_OUTPUT          = 0x40042409
    PERF_EVENT_IOC_PERIOD                = 0x40082404
    PERF_EVENT_IOC_REFRESH               = 0x2402
    PERF_EVENT_IOC_RESET                 = 0x2403
    PERF_EVENT_IOC_SET_BPF               = 0x40042408
    PERF_EVENT_IOC_SET_FILTER            = 0x40082406
    PERF_EVENT_IOC_SET_OUTPUT            = 0x2405
    PRIO_PGRP                            = 0x1
    PRIO_PROCESS                         = 0x0
    PRIO_USER                            = 0x2
    PROT_EXEC                            = 0x4
    PROT_GROWSDOWN                       = 0x1000000
    PROT_GROWSUP                         = 0x2000000
    PROT_NONE                            = 0x0
    PROT_READ                            = 0x1
    PROT_WRITE                           = 0x2
    PR_CAPBSET_DROP                      = 0x18
    PR_CAPBSET_READ                      = 0x17
    PR_CAP_AMBIENT                       = 0x2f
    PR_CAP_AMBIENT_CLEAR_ALL             = 0x4
    PR_CAP_AMBIENT_IS_SET                = 0x1
    PR_CAP_AMBIENT_LOWER                 = 0x3
    PR_CAP_AMBIENT_RAISE                 = 0x2
    PR_ENDIAN_BIG                        = 0x0
    PR_ENDIAN_LITTLE                     = 0x1
    PR_ENDIAN_PPC_LITTLE                 = 0x2
    PR_FPEMU_NOPRINT                     = 0x1
    PR_FPEMU_SIGFPE                      = 0x2
    PR_FP_EXC_ASYNC                      = 0x2
    PR_FP_EXC_DISABLED                   = 0x0
    PR_FP_EXC_DIV                        = 0x10000
    PR_FP_EXC_INV                        = 0x100000
    PR_FP_EXC_NONRECOV                   = 0x1
    PR_FP_EXC_OVF                        = 0x20000
    PR_FP_EXC_PRECISE                    = 0x3
    PR_FP_EXC_RES                        = 0x80000
    PR_FP_EXC_SW_ENABLE                  = 0x80
    PR_FP_EXC_UND                        = 0x40000
    PR_FP_MODE_FR                        = 0x1
    PR_FP_MODE_FRE                       = 0x2
    PR_GET_CHILD_SUBREAPER               = 0x25
    PR_GET_DUMPABLE                      = 0x3
    PR_GET_ENDIAN                        = 0x13
    PR_GET_FPEMU                         = 0x9
    PR_GET_FPEXC                         = 0xb
    PR_GET_FP_MODE                       = 0x2e
    PR_GET_KEEPCAPS                      = 0x7
    PR_GET_NAME                          = 0x10
    PR_GET_NO_NEW_PRIVS                  = 0x27
    PR_GET_PDEATHSIG                     = 0x2
    PR_GET_SECCOMP                       = 0x15
    PR_GET_SECUREBITS                    = 0x1b
    PR_GET_THP_DISABLE                   = 0x2a
    PR_GET_TID_ADDRESS                   = 0x28
    PR_GET_TIMERSLACK                    = 0x1e
    PR_GET_TIMING                        = 0xd
    PR_GET_TSC                           = 0x19
    PR_GET_UNALIGN                       = 0x5
    PR_MCE_KILL                          = 0x21
    PR_MCE_KILL_CLEAR                    = 0x0
    PR_MCE_KILL_DEFAULT                  = 0x2
    PR_MCE_KILL_EARLY                    = 0x1
    PR_MCE_KILL_GET                      = 0x22
    PR_MCE_KILL_LATE                     = 0x0
    PR_MCE_KILL_SET                      = 0x1
    PR_MPX_DISABLE_MANAGEMENT            = 0x2c
    PR_MPX_ENABLE_MANAGEMENT             = 0x2b
    PR_SET_CHILD_SUBREAPER               = 0x24
    PR_SET_DUMPABLE                      = 0x4
    PR_SET_ENDIAN                        = 0x14
    PR_SET_FPEMU                         = 0xa
    PR_SET_FPEXC                         = 0xc
    PR_SET_FP_MODE                       = 0x2d
    PR_SET_KEEPCAPS                      = 0x8
    PR_SET_MM                            = 0x23
    PR_SET_MM_ARG_END                    = 0x9
    PR_SET_MM_ARG_START                  = 0x8
    PR_SET_MM_AUXV                       = 0xc
    PR_SET_MM_BRK                        = 0x7
    PR_SET_MM_END_CODE                   = 0x2
    PR_SET_MM_END_DATA                   = 0x4
    PR_SET_MM_ENV_END                    = 0xb
    PR_SET_MM_ENV_START                  = 0xa
    PR_SET_MM_EXE_FILE                   = 0xd
    PR_SET_MM_MAP                        = 0xe
    PR_SET_MM_MAP_SIZE                   = 0xf
    PR_SET_MM_START_BRK                  = 0x6
    PR_SET_MM_START_CODE                 = 0x1
    PR_SET_MM_START_DATA                 = 0x3
    PR_SET_MM_START_STACK                = 0x5
    PR_SET_NAME                          = 0xf
    PR_SET_NO_NEW_PRIVS                  = 0x26
    PR_SET_PDEATHSIG                     = 0x1
    PR_SET_PTRACER                       = 0x59616d61
    PR_SET_PTRACER_ANY                   = -0x1
    PR_SET_SECCOMP                       = 0x16
    PR_SET_SECUREBITS                    = 0x1c
    PR_SET_THP_DISABLE                   = 0x29
    PR_SET_TIMERSLACK                    = 0x1d
    PR_SET_TIMING                        = 0xe
    PR_SET_TSC                           = 0x1a
    PR_SET_UNALIGN                       = 0x6
    PR_TASK_PERF_EVENTS_DISABLE          = 0x1f
    PR_TASK_PERF_EVENTS_ENABLE           = 0x20
    PR_TIMING_STATISTICAL                = 0x0
    PR_TIMING_TIMESTAMP                  = 0x1
    PR_TSC_ENABLE                        = 0x1
    PR_TSC_SIGSEGV                       = 0x2
    PR_UNALIGN_NOPRINT                   = 0x1
    PR_UNALIGN_SIGBUS                    = 0x2
    PTRACE_ARCH_PRCTL                    = 0x1e
    PTRACE_ATTACH                        = 0x10
    PTRACE_CONT                          = 0x7
    PTRACE_DETACH                        = 0x11
    PTRACE_EVENT_CLONE                   = 0x3
    PTRACE_EVENT_EXEC                    = 0x4
    PTRACE_EVENT_EXIT                    = 0x6
    PTRACE_EVENT_FORK                    = 0x1
    PTRACE_EVENT_SECCOMP                 = 0x7
    PTRACE_EVENT_STOP                    = 0x80
    PTRACE_EVENT_VFORK                   = 0x2
    PTRACE_EVENT_VFORK_DONE              = 0x5
    PTRACE_GETEVENTMSG                   = 0x4201
    PTRACE_GETFPREGS                     = 0xe
    PTRACE_GETFPXREGS                    = 0x12
    PTRACE_GETREGS                       = 0xc
    PTRACE_GETREGSET                     = 0x4204
    PTRACE_GETSIGINFO                    = 0x4202
    PTRACE_GETSIGMASK                    = 0x420a
    PTRACE_GET_THREAD_AREA               = 0x19
    PTRACE_INTERRUPT                     = 0x4207
    PTRACE_KILL                          = 0x8
    PTRACE_LISTEN                        = 0x4208
    PTRACE_OLDSETOPTIONS                 = 0x15
    PTRACE_O_EXITKILL                    = 0x100000
    PTRACE_O_MASK                        = 0x3000ff
    PTRACE_O_SUSPEND_SECCOMP             = 0x200000
    PTRACE_O_TRACECLONE                  = 0x8
    PTRACE_O_TRACEEXEC                   = 0x10
    PTRACE_O_TRACEEXIT                   = 0x40
    PTRACE_O_TRACEFORK                   = 0x2
    PTRACE_O_TRACESECCOMP                = 0x80
    PTRACE_O_TRACESYSGOOD                = 0x1
    PTRACE_O_TRACEVFORK                  = 0x4
    PTRACE_O_TRACEVFORKDONE              = 0x20
    PTRACE_PEEKDATA                      = 0x2
    PTRACE_PEEKSIGINFO                   = 0x4209
    PTRACE_PEEKSIGINFO_SHARED            = 0x1
    PTRACE_PEEKTEXT                      = 0x1
    PTRACE_PEEKUSR                       = 0x3
    PTRACE_POKEDATA                      = 0x5
    PTRACE_POKETEXT                      = 0x4
    PTRACE_POKEUSR                       = 0x6
    PTRACE_SECCOMP_GET_FILTER            = 0x420c
    PTRACE_SEIZE                         = 0x4206
    PTRACE_SETFPREGS                     = 0xf
    PTRACE_SETFPXREGS                    = 0x13
    PTRACE_SETOPTIONS                    = 0x4200
    PTRACE_SETREGS                       = 0xd
    PTRACE_SETREGSET                     = 0x4205
    PTRACE_SETSIGINFO                    = 0x4203
    PTRACE_SETSIGMASK                    = 0x420b
    PTRACE_SET_THREAD_AREA               = 0x1a
    PTRACE_SINGLEBLOCK                   = 0x21
    PTRACE_SINGLESTEP                    = 0x9
    PTRACE_SYSCALL                       = 0x18
    PTRACE_SYSEMU                        = 0x1f
    PTRACE_SYSEMU_SINGLESTEP             = 0x20
    PTRACE_TRACEME                       = 0x0
    RLIMIT_AS                            = 0x9
    RLIMIT_CORE                          = 0x4
    RLIMIT_CPU                           = 0x0
    RLIMIT_DATA                          = 0x2
    RLIMIT_FSIZE                         = 0x1
    RLIMIT_LOCKS                         = 0xa
    RLIMIT_MEMLOCK                       = 0x8
    RLIMIT_MSGQUEUE                      = 0xc
    RLIMIT_NICE                          = 0xd
    RLIMIT_NOFILE                        = 0x7
    RLIMIT_NPROC                         = 0x6
    RLIMIT_RSS                           = 0x5
    RLIMIT_RTPRIO                        = 0xe
    RLIMIT_RTTIME                        = 0xf
    RLIMIT_SIGPENDING                    = 0xb
    RLIMIT_STACK                         = 0x3
    RLIM_INFINITY                        = -0x1
    RTAX_ADVMSS                          = 0x8
    RTAX_CC_ALGO                         = 0x10
    RTAX_CWND                            = 0x7
    RTAX_FEATURES                        = 0xc
    RTAX_FEATURE_ALLFRAG                 = 0x8
    RTAX_FEATURE_ECN                     = 0x1
    RTAX_FEATURE_MASK                    = 0xf
    RTAX_FEATURE_SACK                    = 0x2
    RTAX_FEATURE_TIMESTAMP               = 0x4
    RTAX_HOPLIMIT                        = 0xa
    RTAX_INITCWND                        = 0xb
    RTAX_INITRWND                        = 0xe
    RTAX_LOCK                            = 0x1
    RTAX_MAX                             = 0x10
    RTAX_MTU                             = 0x2
    RTAX_QUICKACK                        = 0xf
    RTAX_REORDERING                      = 0x9
    RTAX_RTO_MIN                         = 0xd
    RTAX_RTT                             = 0x4
    RTAX_RTTVAR                          = 0x5
    RTAX_SSTHRESH                        = 0x6
    RTAX_UNSPEC                          = 0x0
    RTAX_WINDOW                          = 0x3
    RTA_ALIGNTO                          = 0x4
    RTA_MAX                              = 0x1a
    RTCF_DIRECTSRC                       = 0x4000000
    RTCF_DOREDIRECT                      = 0x1000000
    RTCF_LOG                             = 0x2000000
    RTCF_MASQ                            = 0x400000
    RTCF_NAT                             = 0x800000
    RTCF_VALVE                           = 0x200000
    RTF_ADDRCLASSMASK                    = 0xf8000000
    RTF_ADDRCONF                         = 0x40000
    RTF_ALLONLINK                        = 0x20000
    RTF_BROADCAST                        = 0x10000000
    RTF_CACHE                            = 0x1000000
    RTF_DEFAULT                          = 0x10000
    RTF_DYNAMIC                          = 0x10
    RTF_FLOW                             = 0x2000000
    RTF_GATEWAY                          = 0x2
    RTF_HOST                             = 0x4
    RTF_INTERFACE                        = 0x40000000
    RTF_IRTT                             = 0x100
    RTF_LINKRT                           = 0x100000
    RTF_LOCAL                            = 0x80000000
    RTF_MODIFIED                         = 0x20
    RTF_MSS                              = 0x40
    RTF_MTU                              = 0x40
    RTF_MULTICAST                        = 0x20000000
    RTF_NAT                              = 0x8000000
    RTF_NOFORWARD                        = 0x1000
    RTF_NONEXTHOP                        = 0x200000
    RTF_NOPMTUDISC                       = 0x4000
    RTF_POLICY                           = 0x4000000
    RTF_REINSTATE                        = 0x8
    RTF_REJECT                           = 0x200
    RTF_STATIC                           = 0x400
    RTF_THROW                            = 0x2000
    RTF_UP                               = 0x1
    RTF_WINDOW                           = 0x80
    RTF_XRESOLVE                         = 0x800
    RTM_BASE                             = 0x10
    RTM_DELACTION                        = 0x31
    RTM_DELADDR                          = 0x15
    RTM_DELADDRLABEL                     = 0x49
    RTM_DELLINK                          = 0x11
    RTM_DELMDB                           = 0x55
    RTM_DELNEIGH                         = 0x1d
    RTM_DELNETCONF                       = 0x51
    RTM_DELNSID                          = 0x59
    RTM_DELQDISC                         = 0x25
    RTM_DELROUTE                         = 0x19
    RTM_DELRULE                          = 0x21
    RTM_DELTCLASS                        = 0x29
    RTM_DELTFILTER                       = 0x2d
    RTM_F_CLONED                         = 0x200
    RTM_F_EQUALIZE                       = 0x400
    RTM_F_FIB_MATCH                      = 0x2000
    RTM_F_LOOKUP_TABLE                   = 0x1000
    RTM_F_NOTIFY                         = 0x100
    RTM_F_PREFIX                         = 0x800
    RTM_GETACTION                        = 0x32
    RTM_GETADDR                          = 0x16
    RTM_GETADDRLABEL                     = 0x4a
    RTM_GETANYCAST                       = 0x3e
    RTM_GETDCB                           = 0x4e
    RTM_GETLINK                          = 0x12
    RTM_GETMDB                           = 0x56
    RTM_GETMULTICAST                     = 0x3a
    RTM_GETNEIGH                         = 0x1e
    RTM_GETNEIGHTBL                      = 0x42
    RTM_GETNETCONF                       = 0x52
    RTM_GETNSID                          = 0x5a
    RTM_GETQDISC                         = 0x26
    RTM_GETROUTE                         = 0x1a
    RTM_GETRULE                          = 0x22
    RTM_GETSTATS                         = 0x5e
    RTM_GETTCLASS                        = 0x2a
    RTM_GETTFILTER                       = 0x2e
    RTM_MAX                              = 0x63
    RTM_NEWACTION                        = 0x30
    RTM_NEWADDR                          = 0x14
    RTM_NEWADDRLABEL                     = 0x48
    RTM_NEWCACHEREPORT                   = 0x60
    RTM_NEWLINK                          = 0x10
    RTM_NEWMDB                           = 0x54
    RTM_NEWNDUSEROPT                     = 0x44
    RTM_NEWNEIGH                         = 0x1c
    RTM_NEWNEIGHTBL                      = 0x40
    RTM_NEWNETCONF                       = 0x50
    RTM_NEWNSID                          = 0x58
    RTM_NEWPREFIX                        = 0x34
    RTM_NEWQDISC                         = 0x24
    RTM_NEWROUTE                         = 0x18
    RTM_NEWRULE                          = 0x20
    RTM_NEWSTATS                         = 0x5c
    RTM_NEWTCLASS                        = 0x28
    RTM_NEWTFILTER                       = 0x2c
    RTM_NR_FAMILIES                      = 0x15
    RTM_NR_MSGTYPES                      = 0x54
    RTM_SETDCB                           = 0x4f
    RTM_SETLINK                          = 0x13
    RTM_SETNEIGHTBL                      = 0x43
    RTNH_ALIGNTO                         = 0x4
    RTNH_COMPARE_MASK                    = 0x19
    RTNH_F_DEAD                          = 0x1
    RTNH_F_LINKDOWN                      = 0x10
    RTNH_F_OFFLOAD                       = 0x8
    RTNH_F_ONLINK                        = 0x4
    RTNH_F_PERVASIVE                     = 0x2
    RTNH_F_UNRESOLVED                    = 0x20
    RTN_MAX                              = 0xb
    RTPROT_BABEL                         = 0x2a
    RTPROT_BIRD                          = 0xc
    RTPROT_BOOT                          = 0x3
    RTPROT_DHCP                          = 0x10
    RTPROT_DNROUTED                      = 0xd
    RTPROT_GATED                         = 0x8
    RTPROT_KERNEL                        = 0x2
    RTPROT_MROUTED                       = 0x11
    RTPROT_MRT                           = 0xa
    RTPROT_NTK                           = 0xf
    RTPROT_RA                            = 0x9
    RTPROT_REDIRECT                      = 0x1
    RTPROT_STATIC                        = 0x4
    RTPROT_UNSPEC                        = 0x0
    RTPROT_XORP                          = 0xe
    RTPROT_ZEBRA                         = 0xb
    RT_CLASS_DEFAULT                     = 0xfd
    RT_CLASS_LOCAL                       = 0xff
    RT_CLASS_MAIN                        = 0xfe
    RT_CLASS_MAX                         = 0xff
    RT_CLASS_UNSPEC                      = 0x0
    RUSAGE_CHILDREN                      = -0x1
    RUSAGE_SELF                          = 0x0
    RUSAGE_THREAD                        = 0x1
    SCM_CREDENTIALS                      = 0x2
    SCM_RIGHTS                           = 0x1
    SCM_TIMESTAMP                        = 0x1d
    SCM_TIMESTAMPING                     = 0x25
    SCM_TIMESTAMPING_OPT_STATS           = 0x36
    SCM_TIMESTAMPING_PKTINFO             = 0x3a
    SCM_TIMESTAMPNS                      = 0x23
    SCM_WIFI_STATUS                      = 0x29
    SECCOMP_MODE_DISABLED                = 0x0
    SECCOMP_MODE_FILTER                  = 0x2
    SECCOMP_MODE_STRICT                  = 0x1
    SHUT_RD                              = 0x0
    SHUT_RDWR                            = 0x2
    SHUT_WR                              = 0x1
    SIOCADDDLCI                          = 0x8980
    SIOCADDMULTI                         = 0x8931
    SIOCADDRT                            = 0x890b
    SIOCATMARK                           = 0x8905
    SIOCBONDCHANGEACTIVE                 = 0x8995
    SIOCBONDENSLAVE                      = 0x8990
    SIOCBONDINFOQUERY                    = 0x8994
    SIOCBONDRELEASE                      = 0x8991
    SIOCBONDSETHWADDR                    = 0x8992
    SIOCBONDSLAVEINFOQUERY               = 0x8993
    SIOCBRADDBR                          = 0x89a0
    SIOCBRADDIF                          = 0x89a2
    SIOCBRDELBR                          = 0x89a1
    SIOCBRDELIF                          = 0x89a3
    SIOCDARP                             = 0x8953
    SIOCDELDLCI                          = 0x8981
    SIOCDELMULTI                         = 0x8932
    SIOCDELRT                            = 0x890c
    SIOCDEVPRIVATE                       = 0x89f0
    SIOCDIFADDR                          = 0x8936
    SIOCDRARP                            = 0x8960
    SIOCETHTOOL                          = 0x8946
    SIOCGARP                             = 0x8954
    SIOCGHWTSTAMP                        = 0x89b1
    SIOCGIFADDR                          = 0x8915
    SIOCGIFBR                            = 0x8940
    SIOCGIFBRDADDR                       = 0x8919
    SIOCGIFCONF                          = 0x8912
    SIOCGIFCOUNT                         = 0x8938
    SIOCGIFDSTADDR                       = 0x8917
    SIOCGIFENCAP                         = 0x8925
    SIOCGIFFLAGS                         = 0x8913
    SIOCGIFHWADDR                        = 0x8927
    SIOCGIFINDEX                         = 0x8933
    SIOCGIFMAP                           = 0x8970
    SIOCGIFMEM                           = 0x891f
    SIOCGIFMETRIC                        = 0x891d
    SIOCGIFMTU                           = 0x8921
    SIOCGIFNAME                          = 0x8910
    SIOCGIFNETMASK                       = 0x891b
    SIOCGIFPFLAGS                        = 0x8935
    SIOCGIFSLAVE                         = 0x8929
    SIOCGIFTXQLEN                        = 0x8942
    SIOCGIFVLAN                          = 0x8982
    SIOCGMIIPHY                          = 0x8947
    SIOCGMIIREG                          = 0x8948
    SIOCGPGRP                            = 0x8904
    SIOCGRARP                            = 0x8961
    SIOCGSKNS                            = 0x894c
    SIOCGSTAMP                           = 0x8906
    SIOCGSTAMPNS                         = 0x8907
    SIOCINQ                              = 0x541b
    SIOCOUTQ                             = 0x5411
    SIOCOUTQNSD                          = 0x894b
    SIOCPROTOPRIVATE                     = 0x89e0
    SIOCRTMSG                            = 0x890d
    SIOCSARP                             = 0x8955
    SIOCSHWTSTAMP                        = 0x89b0
    SIOCSIFADDR                          = 0x8916
    SIOCSIFBR                            = 0x8941
    SIOCSIFBRDADDR                       = 0x891a
    SIOCSIFDSTADDR                       = 0x8918
    SIOCSIFENCAP                         = 0x8926
    SIOCSIFFLAGS                         = 0x8914
    SIOCSIFHWADDR                        = 0x8924
    SIOCSIFHWBROADCAST                   = 0x8937
    SIOCSIFLINK                          = 0x8911
    SIOCSIFMAP                           = 0x8971
    SIOCSIFMEM                           = 0x8920
    SIOCSIFMETRIC                        = 0x891e
    SIOCSIFMTU                           = 0x8922
    SIOCSIFNAME                          = 0x8923
    SIOCSIFNETMASK                       = 0x891c
    SIOCSIFPFLAGS                        = 0x8934
    SIOCSIFSLAVE                         = 0x8930
    SIOCSIFTXQLEN                        = 0x8943
    SIOCSIFVLAN                          = 0x8983
    SIOCSMIIREG                          = 0x8949
    SIOCSPGRP                            = 0x8902
    SIOCSRARP                            = 0x8962
    SIOCWANDEV                           = 0x894a
    SOCK_CLOEXEC                         = 0x80000
    SOCK_DCCP                            = 0x6
    SOCK_DGRAM                           = 0x2
    SOCK_IOC_TYPE                        = 0x89
    SOCK_NONBLOCK                        = 0x800
    SOCK_PACKET                          = 0xa
    SOCK_RAW                             = 0x3
    SOCK_RDM                             = 0x4
    SOCK_SEQPACKET                       = 0x5
    SOCK_STREAM                          = 0x1
    SOL_AAL                              = 0x109
    SOL_ALG                              = 0x117
    SOL_ATM                              = 0x108
    SOL_CAIF                             = 0x116
    SOL_CAN_BASE                         = 0x64
    SOL_DCCP                             = 0x10d
    SOL_DECNET                           = 0x105
    SOL_ICMPV6                           = 0x3a
    SOL_IP                               = 0x0
    SOL_IPV6                             = 0x29
    SOL_IRDA                             = 0x10a
    SOL_IUCV                             = 0x115
    SOL_KCM                              = 0x119
    SOL_LLC                              = 0x10c
    SOL_NETBEUI                          = 0x10b
    SOL_NETLINK                          = 0x10e
    SOL_NFC                              = 0x118
    SOL_PACKET                           = 0x107
    SOL_PNPIPE                           = 0x113
    SOL_PPPOL2TP                         = 0x111
    SOL_RAW                              = 0xff
    SOL_RDS                              = 0x114
    SOL_RXRPC                            = 0x110
    SOL_SOCKET                           = 0x1
    SOL_TCP                              = 0x6
    SOL_TIPC                             = 0x10f
    SOL_X25                              = 0x106
    SOMAXCONN                            = 0x80
    SO_ACCEPTCONN                        = 0x1e
    SO_ATTACH_BPF                        = 0x32
    SO_ATTACH_FILTER                     = 0x1a
    SO_ATTACH_REUSEPORT_CBPF             = 0x33
    SO_ATTACH_REUSEPORT_EBPF             = 0x34
    SO_BINDTODEVICE                      = 0x19
    SO_BPF_EXTENSIONS                    = 0x30
    SO_BROADCAST                         = 0x6
    SO_BSDCOMPAT                         = 0xe
    SO_BUSY_POLL                         = 0x2e
    SO_CNX_ADVICE                        = 0x35
    SO_COOKIE                            = 0x39
    SO_DEBUG                             = 0x1
    SO_DETACH_BPF                        = 0x1b
    SO_DETACH_FILTER                     = 0x1b
    SO_DOMAIN                            = 0x27
    SO_DONTROUTE                         = 0x5
    SO_ERROR                             = 0x4
    SO_GET_FILTER                        = 0x1a
    SO_INCOMING_CPU                      = 0x31
    SO_INCOMING_NAPI_ID                  = 0x38
    SO_KEEPALIVE                         = 0x9
    SO_LINGER                            = 0xd
    SO_LOCK_FILTER                       = 0x2c
    SO_MARK                              = 0x24
    SO_MAX_PACING_RATE                   = 0x2f
    SO_MEMINFO                           = 0x37
    SO_NOFCS                             = 0x2b
    SO_NO_CHECK                          = 0xb
    SO_OOBINLINE                         = 0xa
    SO_PASSCRED                          = 0x10
    SO_PASSSEC                           = 0x22
    SO_PEEK_OFF                          = 0x2a
    SO_PEERCRED                          = 0x11
    SO_PEERGROUPS                        = 0x3b
    SO_PEERNAME                          = 0x1c
    SO_PEERSEC                           = 0x1f
    SO_PRIORITY                          = 0xc
    SO_PROTOCOL                          = 0x26
    SO_RCVBUF                            = 0x8
    SO_RCVBUFFORCE                       = 0x21
    SO_RCVLOWAT                          = 0x12
    SO_RCVTIMEO                          = 0x14
    SO_REUSEADDR                         = 0x2
    SO_REUSEPORT                         = 0xf
    SO_RXQ_OVFL                          = 0x28
    SO_SECURITY_AUTHENTICATION           = 0x16
    SO_SECURITY_ENCRYPTION_NETWORK       = 0x18
    SO_SECURITY_ENCRYPTION_TRANSPORT     = 0x17
    SO_SELECT_ERR_QUEUE                  = 0x2d
    SO_SNDBUF                            = 0x7
    SO_SNDBUFFORCE                       = 0x20
    SO_SNDLOWAT                          = 0x13
    SO_SNDTIMEO                          = 0x15
    SO_TIMESTAMP                         = 0x1d
    SO_TIMESTAMPING                      = 0x25
    SO_TIMESTAMPNS                       = 0x23
    SO_TYPE                              = 0x3
    SO_VM_SOCKETS_BUFFER_MAX_SIZE        = 0x2
    SO_VM_SOCKETS_BUFFER_MIN_SIZE        = 0x1
    SO_VM_SOCKETS_BUFFER_SIZE            = 0x0
    SO_VM_SOCKETS_CONNECT_TIMEOUT        = 0x6
    SO_VM_SOCKETS_NONBLOCK_TXRX          = 0x7
    SO_VM_SOCKETS_PEER_HOST_VM_ID        = 0x3
    SO_VM_SOCKETS_TRUSTED                = 0x5
    SO_WIFI_STATUS                       = 0x29
    SPLICE_F_GIFT                        = 0x8
    SPLICE_F_MORE                        = 0x4
    SPLICE_F_MOVE                        = 0x1
    SPLICE_F_NONBLOCK                    = 0x2
    S_BLKSIZE                            = 0x200
    S_IEXEC                              = 0x40
    S_IFBLK                              = 0x6000
    S_IFCHR                              = 0x2000
    S_IFDIR                              = 0x4000
    S_IFIFO                              = 0x1000
    S_IFLNK                              = 0xa000
    S_IFMT                               = 0xf000
    S_IFREG                              = 0x8000
    S_IFSOCK                             = 0xc000
    S_IREAD                              = 0x100
    S_IRGRP                              = 0x20
    S_IROTH                              = 0x4
    S_IRUSR                              = 0x100
    S_IRWXG                              = 0x38
    S_IRWXO                              = 0x7
    S_IRWXU                              = 0x1c0
    S_ISGID                              = 0x400
    S_ISUID                              = 0x800
    S_ISVTX                              = 0x200
    S_IWGRP                              = 0x10
    S_IWOTH                              = 0x2
    S_IWRITE                             = 0x80
    S_IWUSR                              = 0x80
    S_IXGRP                              = 0x8
    S_IXOTH                              = 0x1
    S_IXUSR                              = 0x40
    TAB0                                 = 0x0
    TAB1                                 = 0x800
    TAB2                                 = 0x1000
    TAB3                                 = 0x1800
    TABDLY                               = 0x1800
    TASKSTATS_CMD_ATTR_MAX               = 0x4
    TASKSTATS_CMD_MAX                    = 0x2
    TASKSTATS_GENL_NAME                  = "TASKSTATS"
    TASKSTATS_GENL_VERSION               = 0x1
    TASKSTATS_TYPE_MAX                   = 0x6
    TASKSTATS_VERSION                    = 0x8
    TCFLSH                               = 0x540b
    TCGETA                               = 0x5405
    TCGETS                               = 0x5401
    TCGETS2                              = 0x802c542a
    TCGETX                               = 0x5432
    TCIFLUSH                             = 0x0
    TCIOFF                               = 0x2
    TCIOFLUSH                            = 0x2
    TCION                                = 0x3
    TCOFLUSH                             = 0x1
    TCOOFF                               = 0x0
    TCOON                                = 0x1
    TCP_CC_INFO                          = 0x1a
    TCP_CONGESTION                       = 0xd
    TCP_COOKIE_IN_ALWAYS                 = 0x1
    TCP_COOKIE_MAX                       = 0x10
    TCP_COOKIE_MIN                       = 0x8
    TCP_COOKIE_OUT_NEVER                 = 0x2
    TCP_COOKIE_PAIR_SIZE                 = 0x20
    TCP_COOKIE_TRANSACTIONS              = 0xf
    TCP_CORK                             = 0x3
    TCP_DEFER_ACCEPT                     = 0x9
    TCP_FASTOPEN                         = 0x17
    TCP_FASTOPEN_CONNECT                 = 0x1e
    TCP_INFO                             = 0xb
    TCP_KEEPCNT                          = 0x6
    TCP_KEEPIDLE                         = 0x4
    TCP_KEEPINTVL                        = 0x5
    TCP_LINGER2                          = 0x8
    TCP_MAXSEG                           = 0x2
    TCP_MAXWIN                           = 0xffff
    TCP_MAX_WINSHIFT                     = 0xe
    TCP_MD5SIG                           = 0xe
    TCP_MD5SIG_MAXKEYLEN                 = 0x50
    TCP_MSS                              = 0x200
    TCP_MSS_DEFAULT                      = 0x218
    TCP_MSS_DESIRED                      = 0x4c4
    TCP_NODELAY                          = 0x1
    TCP_NOTSENT_LOWAT                    = 0x19
    TCP_QUEUE_SEQ                        = 0x15
    TCP_QUICKACK                         = 0xc
    TCP_REPAIR                           = 0x13
    TCP_REPAIR_OPTIONS                   = 0x16
    TCP_REPAIR_QUEUE                     = 0x14
    TCP_REPAIR_WINDOW                    = 0x1d
    TCP_SAVED_SYN                        = 0x1c
    TCP_SAVE_SYN                         = 0x1b
    TCP_SYNCNT                           = 0x7
    TCP_S_DATA_IN                        = 0x4
    TCP_S_DATA_OUT                       = 0x8
    TCP_THIN_DUPACK                      = 0x11
    TCP_THIN_LINEAR_TIMEOUTS             = 0x10
    TCP_TIMESTAMP                        = 0x18
    TCP_USER_TIMEOUT                     = 0x12
    TCP_WINDOW_CLAMP                     = 0xa
    TCSAFLUSH                            = 0x2
    TCSBRK                               = 0x5409
    TCSBRKP                              = 0x5425
    TCSETA                               = 0x5406
    TCSETAF                              = 0x5408
    TCSETAW                              = 0x5407
    TCSETS                               = 0x5402
    TCSETS2                              = 0x402c542b
    TCSETSF                              = 0x5404
    TCSETSF2                             = 0x402c542d
    TCSETSW                              = 0x5403
    TCSETSW2                             = 0x402c542c
    TCSETX                               = 0x5433
    TCSETXF                              = 0x5434
    TCSETXW                              = 0x5435
    TCXONC                               = 0x540a
    TIOCCBRK                             = 0x5428
    TIOCCONS                             = 0x541d
    TIOCEXCL                             = 0x540c
    TIOCGDEV                             = 0x80045432
    TIOCGETD                             = 0x5424
    TIOCGEXCL                            = 0x80045440
    TIOCGICOUNT                          = 0x545d
    TIOCGLCKTRMIOS                       = 0x5456
    TIOCGPGRP                            = 0x540f
    TIOCGPKT                             = 0x80045438
    TIOCGPTLCK                           = 0x80045439
    TIOCGPTN                             = 0x80045430
    TIOCGPTPEER                          = 0x5441
    TIOCGRS485                           = 0x542e
    TIOCGSERIAL                          = 0x541e
    TIOCGSID                             = 0x5429
    TIOCGSOFTCAR                         = 0x5419
    TIOCGWINSZ                           = 0x5413
    TIOCINQ                              = 0x541b
    TIOCLINUX                            = 0x541c
    TIOCMBIC                             = 0x5417
    TIOCMBIS                             = 0x5416
    TIOCMGET                             = 0x5415
    TIOCMIWAIT                           = 0x545c
    TIOCMSET                             = 0x5418
    TIOCM_CAR                            = 0x40
    TIOCM_CD                             = 0x40
    TIOCM_CTS                            = 0x20
    TIOCM_DSR                            = 0x100
    TIOCM_DTR                            = 0x2
    TIOCM_LE                             = 0x1
    TIOCM_RI                             = 0x80
    TIOCM_RNG                            = 0x80
    TIOCM_RTS                            = 0x4
    TIOCM_SR                             = 0x10
    TIOCM_ST                             = 0x8
    TIOCNOTTY                            = 0x5422
    TIOCNXCL                             = 0x540d
    TIOCOUTQ                             = 0x5411
    TIOCPKT                              = 0x5420
    TIOCPKT_DATA                         = 0x0
    TIOCPKT_DOSTOP                       = 0x20
    TIOCPKT_FLUSHREAD                    = 0x1
    TIOCPKT_FLUSHWRITE                   = 0x2
    TIOCPKT_IOCTL                        = 0x40
    TIOCPKT_NOSTOP                       = 0x10
    TIOCPKT_START                        = 0x8
    TIOCPKT_STOP                         = 0x4
    TIOCSBRK                             = 0x5427
    TIOCSCTTY                            = 0x540e
    TIOCSERCONFIG                        = 0x5453
    TIOCSERGETLSR                        = 0x5459
    TIOCSERGETMULTI                      = 0x545a
    TIOCSERGSTRUCT                       = 0x5458
    TIOCSERGWILD                         = 0x5454
    TIOCSERSETMULTI                      = 0x545b
    TIOCSERSWILD                         = 0x5455
    TIOCSER_TEMT                         = 0x1
    TIOCSETD                             = 0x5423
    TIOCSIG                              = 0x40045436
    TIOCSLCKTRMIOS                       = 0x5457
    TIOCSPGRP                            = 0x5410
    TIOCSPTLCK                           = 0x40045431
    TIOCSRS485                           = 0x542f
    TIOCSSERIAL                          = 0x541f
    TIOCSSOFTCAR                         = 0x541a
    TIOCSTI                              = 0x5412
    TIOCSWINSZ                           = 0x5414
    TIOCVHANGUP                          = 0x5437
    TOSTOP                               = 0x100
    TS_COMM_LEN                          = 0x20
    TUNATTACHFILTER                      = 0x401054d5
    TUNDETACHFILTER                      = 0x401054d6
    TUNGETFEATURES                       = 0x800454cf
    TUNGETFILTER                         = 0x801054db
    TUNGETIFF                            = 0x800454d2
    TUNGETSNDBUF                         = 0x800454d3
    TUNGETVNETBE                         = 0x800454df
    TUNGETVNETHDRSZ                      = 0x800454d7
    TUNGETVNETLE                         = 0x800454dd
    TUNSETDEBUG                          = 0x400454c9
    TUNSETGROUP                          = 0x400454ce
    TUNSETIFF                            = 0x400454ca
    TUNSETIFINDEX                        = 0x400454da
    TUNSETLINK                           = 0x400454cd
    TUNSETNOCSUM                         = 0x400454c8
    TUNSETOFFLOAD                        = 0x400454d0
    TUNSETOWNER                          = 0x400454cc
    TUNSETPERSIST                        = 0x400454cb
    TUNSETQUEUE                          = 0x400454d9
    TUNSETSNDBUF                         = 0x400454d4
    TUNSETTXFILTER                       = 0x400454d1
    TUNSETVNETBE                         = 0x400454de
    TUNSETVNETHDRSZ                      = 0x400454d8
    TUNSETVNETLE                         = 0x400454dc
    UMOUNT_NOFOLLOW                      = 0x8
    VDISCARD                             = 0xd
    VEOF                                 = 0x4
    VEOL                                 = 0xb
    VEOL2                                = 0x10
    VERASE                               = 0x2
    VINTR                                = 0x0
    VKILL                                = 0x3
    VLNEXT                               = 0xf
    VMADDR_CID_ANY                       = 0xffffffff
    VMADDR_CID_HOST                      = 0x2
    VMADDR_CID_HYPERVISOR                = 0x0
    VMADDR_CID_RESERVED                  = 0x1
    VMADDR_PORT_ANY                      = 0xffffffff
    VMIN                                 = 0x6
    VM_SOCKETS_INVALID_VERSION           = 0xffffffff
    VQUIT                                = 0x1
    VREPRINT                             = 0xc
    VSTART                               = 0x8
    VSTOP                                = 0x9
    VSUSP                                = 0xa
    VSWTC                                = 0x7
    VT0                                  = 0x0
    VT1                                  = 0x4000
    VTDLY                                = 0x4000
    VTIME                                = 0x5
    VWERASE                              = 0xe
    WALL                                 = 0x40000000
    WCLONE                               = 0x80000000
    WCONTINUED                           = 0x8
    WEXITED                              = 0x4
    WNOHANG                              = 0x1
    WNOTHREAD                            = 0x20000000
    WNOWAIT                              = 0x1000000
    WORDSIZE                             = 0x40
    WSTOPPED                             = 0x2
    WUNTRACED                            = 0x2
    XATTR_CREATE                         = 0x1
    XATTR_REPLACE                        = 0x2
    XCASE                                = 0x4
    XTABS                                = 0x1800
)
const (
    E2BIG           = syscall.Errno(0x7)
    EACCES          = syscall.Errno(0xd)
    EADDRINUSE      = syscall.Errno(0x62)
    EADDRNOTAVAIL   = syscall.Errno(0x63)
    EADV            = syscall.Errno(0x44)
    EAFNOSUPPORT    = syscall.Errno(0x61)
    EAGAIN          = syscall.Errno(0xb)
    EALREADY        = syscall.Errno(0x72)
    EBADE           = syscall.Errno(0x34)
    EBADF           = syscall.Errno(0x9)
    EBADFD          = syscall.Errno(0x4d)
    EBADMSG         = syscall.Errno(0x4a)
    EBADR           = syscall.Errno(0x35)
    EBADRQC         = syscall.Errno(0x38)
    EBADSLT         = syscall.Errno(0x39)
    EBFONT          = syscall.Errno(0x3b)
    EBUSY           = syscall.Errno(0x10)
    ECANCELED       = syscall.Errno(0x7d)
    ECHILD          = syscall.Errno(0xa)
    ECHRNG          = syscall.Errno(0x2c)
    ECOMM           = syscall.Errno(0x46)
    ECONNABORTED    = syscall.Errno(0x67)
    ECONNREFUSED    = syscall.Errno(0x6f)
    ECONNRESET      = syscall.Errno(0x68)
    EDEADLK         = syscall.Errno(0x23)
    EDEADLOCK       = syscall.Errno(0x23)
    EDESTADDRREQ    = syscall.Errno(0x59)
    EDOM            = syscall.Errno(0x21)
    EDOTDOT         = syscall.Errno(0x49)
    EDQUOT          = syscall.Errno(0x7a)
    EEXIST          = syscall.Errno(0x11)
    EFAULT          = syscall.Errno(0xe)
    EFBIG           = syscall.Errno(0x1b)
    EHOSTDOWN       = syscall.Errno(0x70)
    EHOSTUNREACH    = syscall.Errno(0x71)
    EHWPOISON       = syscall.Errno(0x85)
    EIDRM           = syscall.Errno(0x2b)
    EILSEQ          = syscall.Errno(0x54)
    EINPROGRESS     = syscall.Errno(0x73)
    EINTR           = syscall.Errno(0x4)
    EINVAL          = syscall.Errno(0x16)
    EIO             = syscall.Errno(0x5)
    EISCONN         = syscall.Errno(0x6a)
    EISDIR          = syscall.Errno(0x15)
    EISNAM          = syscall.Errno(0x78)
    EKEYEXPIRED     = syscall.Errno(0x7f)
    EKEYREJECTED    = syscall.Errno(0x81)
    EKEYREVOKED     = syscall.Errno(0x80)
    EL2HLT          = syscall.Errno(0x33)
    EL2NSYNC        = syscall.Errno(0x2d)
    EL3HLT          = syscall.Errno(0x2e)
    EL3RST          = syscall.Errno(0x2f)
    ELIBACC         = syscall.Errno(0x4f)
    ELIBBAD         = syscall.Errno(0x50)
    ELIBEXEC        = syscall.Errno(0x53)
    ELIBMAX         = syscall.Errno(0x52)
    ELIBSCN         = syscall.Errno(0x51)
    ELNRNG          = syscall.Errno(0x30)
    ELOOP           = syscall.Errno(0x28)
    EMEDIUMTYPE     = syscall.Errno(0x7c)
    EMFILE          = syscall.Errno(0x18)
    EMLINK          = syscall.Errno(0x1f)
    EMSGSIZE        = syscall.Errno(0x5a)
    EMULTIHOP       = syscall.Errno(0x48)
    ENAMETOOLONG    = syscall.Errno(0x24)
    ENAVAIL         = syscall.Errno(0x77)
    ENETDOWN        = syscall.Errno(0x64)
    ENETRESET       = syscall.Errno(0x66)
    ENETUNREACH     = syscall.Errno(0x65)
    ENFILE          = syscall.Errno(0x17)
    ENOANO          = syscall.Errno(0x37)
    ENOBUFS         = syscall.Errno(0x69)
    ENOCSI          = syscall.Errno(0x32)
    ENODATA         = syscall.Errno(0x3d)
    ENODEV          = syscall.Errno(0x13)
    ENOENT          = syscall.Errno(0x2)
    ENOEXEC         = syscall.Errno(0x8)
    ENOKEY          = syscall.Errno(0x7e)
    ENOLCK          = syscall.Errno(0x25)
    ENOLINK         = syscall.Errno(0x43)
    ENOMEDIUM       = syscall.Errno(0x7b)
    ENOMEM          = syscall.Errno(0xc)
    ENOMSG          = syscall.Errno(0x2a)
    ENONET          = syscall.Errno(0x40)
    ENOPKG          = syscall.Errno(0x41)
    ENOPROTOOPT     = syscall.Errno(0x5c)
    ENOSPC          = syscall.Errno(0x1c)
    ENOSR           = syscall.Errno(0x3f)
    ENOSTR          = syscall.Errno(0x3c)
    ENOSYS          = syscall.Errno(0x26)
    ENOTBLK         = syscall.Errno(0xf)
    ENOTCONN        = syscall.Errno(0x6b)
    ENOTDIR         = syscall.Errno(0x14)
    ENOTEMPTY       = syscall.Errno(0x27)
    ENOTNAM         = syscall.Errno(0x76)
    ENOTRECOVERABLE = syscall.Errno(0x83)
    ENOTSOCK        = syscall.Errno(0x58)
    ENOTSUP         = syscall.Errno(0x5f)
    ENOTTY          = syscall.Errno(0x19)
    ENOTUNIQ        = syscall.Errno(0x4c)
    ENXIO           = syscall.Errno(0x6)
    EOPNOTSUPP      = syscall.Errno(0x5f)
    EOVERFLOW       = syscall.Errno(0x4b)
    EOWNERDEAD      = syscall.Errno(0x82)
    EPERM           = syscall.Errno(0x1)
    EPFNOSUPPORT    = syscall.Errno(0x60)
    EPIPE           = syscall.Errno(0x20)
    EPROTO          = syscall.Errno(0x47)
    EPROTONOSUPPORT = syscall.Errno(0x5d)
    EPROTOTYPE      = syscall.Errno(0x5b)
    ERANGE          = syscall.Errno(0x22)
    EREMCHG         = syscall.Errno(0x4e)
    EREMOTE         = syscall.Errno(0x42)
    EREMOTEIO       = syscall.Errno(0x79)
    ERESTART        = syscall.Errno(0x55)
    ERFKILL         = syscall.Errno(0x84)
    EROFS           = syscall.Errno(0x1e)
    ESHUTDOWN       = syscall.Errno(0x6c)
    ESOCKTNOSUPPORT = syscall.Errno(0x5e)
    ESPIPE          = syscall.Errno(0x1d)
    ESRCH           = syscall.Errno(0x3)
    ESRMNT          = syscall.Errno(0x45)
    ESTALE          = syscall.Errno(0x74)
    ESTRPIPE        = syscall.Errno(0x56)
    ETIME           = syscall.Errno(0x3e)
    ETIMEDOUT       = syscall.Errno(0x6e)
    ETOOMANYREFS    = syscall.Errno(0x6d)
    ETXTBSY         = syscall.Errno(0x1a)
    EUCLEAN         = syscall.Errno(0x75)
    EUNATCH         = syscall.Errno(0x31)
    EUSERS          = syscall.Errno(0x57)
    EWOULDBLOCK     = syscall.Errno(0xb)
    EXDEV           = syscall.Errno(0x12)
    EXFULL          = syscall.Errno(0x36)
)

Errors

const (
    SIGABRT   = syscall.Signal(0x6)
    SIGALRM   = syscall.Signal(0xe)
    SIGBUS    = syscall.Signal(0x7)
    SIGCHLD   = syscall.Signal(0x11)
    SIGCLD    = syscall.Signal(0x11)
    SIGCONT   = syscall.Signal(0x12)
    SIGFPE    = syscall.Signal(0x8)
    SIGHUP    = syscall.Signal(0x1)
    SIGILL    = syscall.Signal(0x4)
    SIGINT    = syscall.Signal(0x2)
    SIGIO     = syscall.Signal(0x1d)
    SIGIOT    = syscall.Signal(0x6)
    SIGKILL   = syscall.Signal(0x9)
    SIGPIPE   = syscall.Signal(0xd)
    SIGPOLL   = syscall.Signal(0x1d)
    SIGPROF   = syscall.Signal(0x1b)
    SIGPWR    = syscall.Signal(0x1e)
    SIGQUIT   = syscall.Signal(0x3)
    SIGSEGV   = syscall.Signal(0xb)
    SIGSTKFLT = syscall.Signal(0x10)
    SIGSTOP   = syscall.Signal(0x13)
    SIGSYS    = syscall.Signal(0x1f)
    SIGTERM   = syscall.Signal(0xf)
    SIGTRAP   = syscall.Signal(0x5)
    SIGTSTP   = syscall.Signal(0x14)
    SIGTTIN   = syscall.Signal(0x15)
    SIGTTOU   = syscall.Signal(0x16)
    SIGURG    = syscall.Signal(0x17)
    SIGUSR1   = syscall.Signal(0xa)
    SIGUSR2   = syscall.Signal(0xc)
    SIGVTALRM = syscall.Signal(0x1a)
    SIGWINCH  = syscall.Signal(0x1c)
    SIGXCPU   = syscall.Signal(0x18)
    SIGXFSZ   = syscall.Signal(0x19)
)

Signals

const (
    SYS_READ                   = 0
    SYS_WRITE                  = 1
    SYS_OPEN                   = 2
    SYS_CLOSE                  = 3
    SYS_STAT                   = 4
    SYS_FSTAT                  = 5
    SYS_LSTAT                  = 6
    SYS_POLL                   = 7
    SYS_LSEEK                  = 8
    SYS_MMAP                   = 9
    SYS_MPROTECT               = 10
    SYS_MUNMAP                 = 11
    SYS_BRK                    = 12
    SYS_RT_SIGACTION           = 13
    SYS_RT_SIGPROCMASK         = 14
    SYS_RT_SIGRETURN           = 15
    SYS_IOCTL                  = 16
    SYS_PREAD64                = 17
    SYS_PWRITE64               = 18
    SYS_READV                  = 19
    SYS_WRITEV                 = 20
    SYS_ACCESS                 = 21
    SYS_PIPE                   = 22
    SYS_SELECT                 = 23
    SYS_SCHED_YIELD            = 24
    SYS_MREMAP                 = 25
    SYS_MSYNC                  = 26
    SYS_MINCORE                = 27
    SYS_MADVISE                = 28
    SYS_SHMGET                 = 29
    SYS_SHMAT                  = 30
    SYS_SHMCTL                 = 31
    SYS_DUP                    = 32
    SYS_DUP2                   = 33
    SYS_PAUSE                  = 34
    SYS_NANOSLEEP              = 35
    SYS_GETITIMER              = 36
    SYS_ALARM                  = 37
    SYS_SETITIMER              = 38
    SYS_GETPID                 = 39
    SYS_SENDFILE               = 40
    SYS_SOCKET                 = 41
    SYS_CONNECT                = 42
    SYS_ACCEPT                 = 43
    SYS_SENDTO                 = 44
    SYS_RECVFROM               = 45
    SYS_SENDMSG                = 46
    SYS_RECVMSG                = 47
    SYS_SHUTDOWN               = 48
    SYS_BIND                   = 49
    SYS_LISTEN                 = 50
    SYS_GETSOCKNAME            = 51
    SYS_GETPEERNAME            = 52
    SYS_SOCKETPAIR             = 53
    SYS_SETSOCKOPT             = 54
    SYS_GETSOCKOPT             = 55
    SYS_CLONE                  = 56
    SYS_FORK                   = 57
    SYS_VFORK                  = 58
    SYS_EXECVE                 = 59
    SYS_EXIT                   = 60
    SYS_WAIT4                  = 61
    SYS_KILL                   = 62
    SYS_UNAME                  = 63
    SYS_SEMGET                 = 64
    SYS_SEMOP                  = 65
    SYS_SEMCTL                 = 66
    SYS_SHMDT                  = 67
    SYS_MSGGET                 = 68
    SYS_MSGSND                 = 69
    SYS_MSGRCV                 = 70
    SYS_MSGCTL                 = 71
    SYS_FCNTL                  = 72
    SYS_FLOCK                  = 73
    SYS_FSYNC                  = 74
    SYS_FDATASYNC              = 75
    SYS_TRUNCATE               = 76
    SYS_FTRUNCATE              = 77
    SYS_GETDENTS               = 78
    SYS_GETCWD                 = 79
    SYS_CHDIR                  = 80
    SYS_FCHDIR                 = 81
    SYS_RENAME                 = 82
    SYS_MKDIR                  = 83
    SYS_RMDIR                  = 84
    SYS_CREAT                  = 85
    SYS_LINK                   = 86
    SYS_UNLINK                 = 87
    SYS_SYMLINK                = 88
    SYS_READLINK               = 89
    SYS_CHMOD                  = 90
    SYS_FCHMOD                 = 91
    SYS_CHOWN                  = 92
    SYS_FCHOWN                 = 93
    SYS_LCHOWN                 = 94
    SYS_UMASK                  = 95
    SYS_GETTIMEOFDAY           = 96
    SYS_GETRLIMIT              = 97
    SYS_GETRUSAGE              = 98
    SYS_SYSINFO                = 99
    SYS_TIMES                  = 100
    SYS_PTRACE                 = 101
    SYS_GETUID                 = 102
    SYS_SYSLOG                 = 103
    SYS_GETGID                 = 104
    SYS_SETUID                 = 105
    SYS_SETGID                 = 106
    SYS_GETEUID                = 107
    SYS_GETEGID                = 108
    SYS_SETPGID                = 109
    SYS_GETPPID                = 110
    SYS_GETPGRP                = 111
    SYS_SETSID                 = 112
    SYS_SETREUID               = 113
    SYS_SETREGID               = 114
    SYS_GETGROUPS              = 115
    SYS_SETGROUPS              = 116
    SYS_SETRESUID              = 117
    SYS_GETRESUID              = 118
    SYS_SETRESGID              = 119
    SYS_GETRESGID              = 120
    SYS_GETPGID                = 121
    SYS_SETFSUID               = 122
    SYS_SETFSGID               = 123
    SYS_GETSID                 = 124
    SYS_CAPGET                 = 125
    SYS_CAPSET                 = 126
    SYS_RT_SIGPENDING          = 127
    SYS_RT_SIGTIMEDWAIT        = 128
    SYS_RT_SIGQUEUEINFO        = 129
    SYS_RT_SIGSUSPEND          = 130
    SYS_SIGALTSTACK            = 131
    SYS_UTIME                  = 132
    SYS_MKNOD                  = 133
    SYS_USELIB                 = 134
    SYS_PERSONALITY            = 135
    SYS_USTAT                  = 136
    SYS_STATFS                 = 137
    SYS_FSTATFS                = 138
    SYS_SYSFS                  = 139
    SYS_GETPRIORITY            = 140
    SYS_SETPRIORITY            = 141
    SYS_SCHED_SETPARAM         = 142
    SYS_SCHED_GETPARAM         = 143
    SYS_SCHED_SETSCHEDULER     = 144
    SYS_SCHED_GETSCHEDULER     = 145
    SYS_SCHED_GET_PRIORITY_MAX = 146
    SYS_SCHED_GET_PRIORITY_MIN = 147
    SYS_SCHED_RR_GET_INTERVAL  = 148
    SYS_MLOCK                  = 149
    SYS_MUNLOCK                = 150
    SYS_MLOCKALL               = 151
    SYS_MUNLOCKALL             = 152
    SYS_VHANGUP                = 153
    SYS_MODIFY_LDT             = 154
    SYS_PIVOT_ROOT             = 155
    SYS__SYSCTL                = 156
    SYS_PRCTL                  = 157
    SYS_ARCH_PRCTL             = 158
    SYS_ADJTIMEX               = 159
    SYS_SETRLIMIT              = 160
    SYS_CHROOT                 = 161
    SYS_SYNC                   = 162
    SYS_ACCT                   = 163
    SYS_SETTIMEOFDAY           = 164
    SYS_MOUNT                  = 165
    SYS_UMOUNT2                = 166
    SYS_SWAPON                 = 167
    SYS_SWAPOFF                = 168
    SYS_REBOOT                 = 169
    SYS_SETHOSTNAME            = 170
    SYS_SETDOMAINNAME          = 171
    SYS_IOPL                   = 172
    SYS_IOPERM                 = 173
    SYS_CREATE_MODULE          = 174
    SYS_INIT_MODULE            = 175
    SYS_DELETE_MODULE          = 176
    SYS_GET_KERNEL_SYMS        = 177
    SYS_QUERY_MODULE           = 178
    SYS_QUOTACTL               = 179
    SYS_NFSSERVCTL             = 180
    SYS_GETPMSG                = 181
    SYS_PUTPMSG                = 182
    SYS_AFS_SYSCALL            = 183
    SYS_TUXCALL                = 184
    SYS_SECURITY               = 185
    SYS_GETTID                 = 186
    SYS_READAHEAD              = 187
    SYS_SETXATTR               = 188
    SYS_LSETXATTR              = 189
    SYS_FSETXATTR              = 190
    SYS_GETXATTR               = 191
    SYS_LGETXATTR              = 192
    SYS_FGETXATTR              = 193
    SYS_LISTXATTR              = 194
    SYS_LLISTXATTR             = 195
    SYS_FLISTXATTR             = 196
    SYS_REMOVEXATTR            = 197
    SYS_LREMOVEXATTR           = 198
    SYS_FREMOVEXATTR           = 199
    SYS_TKILL                  = 200
    SYS_TIME                   = 201
    SYS_FUTEX                  = 202
    SYS_SCHED_SETAFFINITY      = 203
    SYS_SCHED_GETAFFINITY      = 204
    SYS_SET_THREAD_AREA        = 205
    SYS_IO_SETUP               = 206
    SYS_IO_DESTROY             = 207
    SYS_IO_GETEVENTS           = 208
    SYS_IO_SUBMIT              = 209
    SYS_IO_CANCEL              = 210
    SYS_GET_THREAD_AREA        = 211
    SYS_LOOKUP_DCOOKIE         = 212
    SYS_EPOLL_CREATE           = 213
    SYS_EPOLL_CTL_OLD          = 214
    SYS_EPOLL_WAIT_OLD         = 215
    SYS_REMAP_FILE_PAGES       = 216
    SYS_GETDENTS64             = 217
    SYS_SET_TID_ADDRESS        = 218
    SYS_RESTART_SYSCALL        = 219
    SYS_SEMTIMEDOP             = 220
    SYS_FADVISE64              = 221
    SYS_TIMER_CREATE           = 222
    SYS_TIMER_SETTIME          = 223
    SYS_TIMER_GETTIME          = 224
    SYS_TIMER_GETOVERRUN       = 225
    SYS_TIMER_DELETE           = 226
    SYS_CLOCK_SETTIME          = 227
    SYS_CLOCK_GETTIME          = 228
    SYS_CLOCK_GETRES           = 229
    SYS_CLOCK_NANOSLEEP        = 230
    SYS_EXIT_GROUP             = 231
    SYS_EPOLL_WAIT             = 232
    SYS_EPOLL_CTL              = 233
    SYS_TGKILL                 = 234
    SYS_UTIMES                 = 235
    SYS_VSERVER                = 236
    SYS_MBIND                  = 237
    SYS_SET_MEMPOLICY          = 238
    SYS_GET_MEMPOLICY          = 239
    SYS_MQ_OPEN                = 240
    SYS_MQ_UNLINK              = 241
    SYS_MQ_TIMEDSEND           = 242
    SYS_MQ_TIMEDRECEIVE        = 243
    SYS_MQ_NOTIFY              = 244
    SYS_MQ_GETSETATTR          = 245
    SYS_KEXEC_LOAD             = 246
    SYS_WAITID                 = 247
    SYS_ADD_KEY                = 248
    SYS_REQUEST_KEY            = 249
    SYS_KEYCTL                 = 250
    SYS_IOPRIO_SET             = 251
    SYS_IOPRIO_GET             = 252
    SYS_INOTIFY_INIT           = 253
    SYS_INOTIFY_ADD_WATCH      = 254
    SYS_INOTIFY_RM_WATCH       = 255
    SYS_MIGRATE_PAGES          = 256
    SYS_OPENAT                 = 257
    SYS_MKDIRAT                = 258
    SYS_MKNODAT                = 259
    SYS_FCHOWNAT               = 260
    SYS_FUTIMESAT              = 261
    SYS_NEWFSTATAT             = 262
    SYS_UNLINKAT               = 263
    SYS_RENAMEAT               = 264
    SYS_LINKAT                 = 265
    SYS_SYMLINKAT              = 266
    SYS_READLINKAT             = 267
    SYS_FCHMODAT               = 268
    SYS_FACCESSAT              = 269
    SYS_PSELECT6               = 270
    SYS_PPOLL                  = 271
    SYS_UNSHARE                = 272
    SYS_SET_ROBUST_LIST        = 273
    SYS_GET_ROBUST_LIST        = 274
    SYS_SPLICE                 = 275
    SYS_TEE                    = 276
    SYS_SYNC_FILE_RANGE        = 277
    SYS_VMSPLICE               = 278
    SYS_MOVE_PAGES             = 279
    SYS_UTIMENSAT              = 280
    SYS_EPOLL_PWAIT            = 281
    SYS_SIGNALFD               = 282
    SYS_TIMERFD_CREATE         = 283
    SYS_EVENTFD                = 284
    SYS_FALLOCATE              = 285
    SYS_TIMERFD_SETTIME        = 286
    SYS_TIMERFD_GETTIME        = 287
    SYS_ACCEPT4                = 288
    SYS_SIGNALFD4              = 289
    SYS_EVENTFD2               = 290
    SYS_EPOLL_CREATE1          = 291
    SYS_DUP3                   = 292
    SYS_PIPE2                  = 293
    SYS_INOTIFY_INIT1          = 294
    SYS_PREADV                 = 295
    SYS_PWRITEV                = 296
    SYS_RT_TGSIGQUEUEINFO      = 297
    SYS_PERF_EVENT_OPEN        = 298
    SYS_RECVMMSG               = 299
    SYS_FANOTIFY_INIT          = 300
    SYS_FANOTIFY_MARK          = 301
    SYS_PRLIMIT64              = 302
    SYS_NAME_TO_HANDLE_AT      = 303
    SYS_OPEN_BY_HANDLE_AT      = 304
    SYS_CLOCK_ADJTIME          = 305
    SYS_SYNCFS                 = 306
    SYS_SENDMMSG               = 307
    SYS_SETNS                  = 308
    SYS_GETCPU                 = 309
    SYS_PROCESS_VM_READV       = 310
    SYS_PROCESS_VM_WRITEV      = 311
    SYS_KCMP                   = 312
    SYS_FINIT_MODULE           = 313
    SYS_SCHED_SETATTR          = 314
    SYS_SCHED_GETATTR          = 315
    SYS_RENAMEAT2              = 316
    SYS_SECCOMP                = 317
    SYS_GETRANDOM              = 318
    SYS_MEMFD_CREATE           = 319
    SYS_KEXEC_FILE_LOAD        = 320
    SYS_BPF                    = 321
    SYS_EXECVEAT               = 322
    SYS_USERFAULTFD            = 323
    SYS_MEMBARRIER             = 324
    SYS_MLOCK2                 = 325
    SYS_COPY_FILE_RANGE        = 326
    SYS_PREADV2                = 327
    SYS_PWRITEV2               = 328
    SYS_PKEY_MPROTECT          = 329
    SYS_PKEY_ALLOC             = 330
    SYS_PKEY_FREE              = 331
    SYS_STATX                  = 332
)
const (
    FADV_NORMAL     = 0x0
    FADV_RANDOM     = 0x1
    FADV_SEQUENTIAL = 0x2
    FADV_WILLNEED   = 0x3
    FADV_DONTNEED   = 0x4
    FADV_NOREUSE    = 0x5
)
const (
    SizeofSockaddrInet4     = 0x10
    SizeofSockaddrInet6     = 0x1c
    SizeofSockaddrAny       = 0x70
    SizeofSockaddrUnix      = 0x6e
    SizeofSockaddrLinklayer = 0x14
    SizeofSockaddrNetlink   = 0xc
    SizeofSockaddrHCI       = 0x6
    SizeofSockaddrCAN       = 0x10
    SizeofSockaddrALG       = 0x58
    SizeofSockaddrVM        = 0x10
    SizeofLinger            = 0x8
    SizeofIovec             = 0x10
    SizeofIPMreq            = 0x8
    SizeofIPMreqn           = 0xc
    SizeofIPv6Mreq          = 0x14
    SizeofPacketMreq        = 0x10
    SizeofMsghdr            = 0x38
    SizeofCmsghdr           = 0x10
    SizeofInet4Pktinfo      = 0xc
    SizeofInet6Pktinfo      = 0x14
    SizeofIPv6MTUInfo       = 0x20
    SizeofICMPv6Filter      = 0x20
    SizeofUcred             = 0xc
    SizeofTCPInfo           = 0x68
)
const (
    IFA_UNSPEC          = 0x0
    IFA_ADDRESS         = 0x1
    IFA_LOCAL           = 0x2
    IFA_LABEL           = 0x3
    IFA_BROADCAST       = 0x4
    IFA_ANYCAST         = 0x5
    IFA_CACHEINFO       = 0x6
    IFA_MULTICAST       = 0x7
    IFLA_UNSPEC         = 0x0
    IFLA_ADDRESS        = 0x1
    IFLA_BROADCAST      = 0x2
    IFLA_IFNAME         = 0x3
    IFLA_MTU            = 0x4
    IFLA_LINK           = 0x5
    IFLA_QDISC          = 0x6
    IFLA_STATS          = 0x7
    IFLA_COST           = 0x8
    IFLA_PRIORITY       = 0x9
    IFLA_MASTER         = 0xa
    IFLA_WIRELESS       = 0xb
    IFLA_PROTINFO       = 0xc
    IFLA_TXQLEN         = 0xd
    IFLA_MAP            = 0xe
    IFLA_WEIGHT         = 0xf
    IFLA_OPERSTATE      = 0x10
    IFLA_LINKMODE       = 0x11
    IFLA_LINKINFO       = 0x12
    IFLA_NET_NS_PID     = 0x13
    IFLA_IFALIAS        = 0x14
    IFLA_MAX            = 0x2c
    RT_SCOPE_UNIVERSE   = 0x0
    RT_SCOPE_SITE       = 0xc8
    RT_SCOPE_LINK       = 0xfd
    RT_SCOPE_HOST       = 0xfe
    RT_SCOPE_NOWHERE    = 0xff
    RT_TABLE_UNSPEC     = 0x0
    RT_TABLE_COMPAT     = 0xfc
    RT_TABLE_DEFAULT    = 0xfd
    RT_TABLE_MAIN       = 0xfe
    RT_TABLE_LOCAL      = 0xff
    RT_TABLE_MAX        = 0xffffffff
    RTA_UNSPEC          = 0x0
    RTA_DST             = 0x1
    RTA_SRC             = 0x2
    RTA_IIF             = 0x3
    RTA_OIF             = 0x4
    RTA_GATEWAY         = 0x5
    RTA_PRIORITY        = 0x6
    RTA_PREFSRC         = 0x7
    RTA_METRICS         = 0x8
    RTA_MULTIPATH       = 0x9
    RTA_FLOW            = 0xb
    RTA_CACHEINFO       = 0xc
    RTA_TABLE           = 0xf
    RTN_UNSPEC          = 0x0
    RTN_UNICAST         = 0x1
    RTN_LOCAL           = 0x2
    RTN_BROADCAST       = 0x3
    RTN_ANYCAST         = 0x4
    RTN_MULTICAST       = 0x5
    RTN_BLACKHOLE       = 0x6
    RTN_UNREACHABLE     = 0x7
    RTN_PROHIBIT        = 0x8
    RTN_THROW           = 0x9
    RTN_NAT             = 0xa
    RTN_XRESOLVE        = 0xb
    RTNLGRP_NONE        = 0x0
    RTNLGRP_LINK        = 0x1
    RTNLGRP_NOTIFY      = 0x2
    RTNLGRP_NEIGH       = 0x3
    RTNLGRP_TC          = 0x4
    RTNLGRP_IPV4_IFADDR = 0x5
    RTNLGRP_IPV4_MROUTE = 0x6
    RTNLGRP_IPV4_ROUTE  = 0x7
    RTNLGRP_IPV4_RULE   = 0x8
    RTNLGRP_IPV6_IFADDR = 0x9
    RTNLGRP_IPV6_MROUTE = 0xa
    RTNLGRP_IPV6_ROUTE  = 0xb
    RTNLGRP_IPV6_IFINFO = 0xc
    RTNLGRP_IPV6_PREFIX = 0x12
    RTNLGRP_IPV6_RULE   = 0x13
    RTNLGRP_ND_USEROPT  = 0x14
    SizeofNlMsghdr      = 0x10
    SizeofNlMsgerr      = 0x14
    SizeofRtGenmsg      = 0x1
    SizeofNlAttr        = 0x4
    SizeofRtAttr        = 0x4
    SizeofIfInfomsg     = 0x10
    SizeofIfAddrmsg     = 0x8
    SizeofRtMsg         = 0xc
    SizeofRtNexthop     = 0x8
)
const (
    SizeofSockFilter = 0x8
    SizeofSockFprog  = 0x10
)
const (
    AT_FDCWD            = -0x64
    AT_REMOVEDIR        = 0x200
    AT_SYMLINK_FOLLOW   = 0x400
    AT_SYMLINK_NOFOLLOW = 0x100
)
const (
    POLLIN    = 0x1
    POLLPRI   = 0x2
    POLLOUT   = 0x4
    POLLRDHUP = 0x2000
    POLLERR   = 0x8
    POLLHUP   = 0x10
    POLLNVAL  = 0x20
)
const (
    TASKSTATS_CMD_UNSPEC                  = 0x0
    TASKSTATS_CMD_GET                     = 0x1
    TASKSTATS_CMD_NEW                     = 0x2
    TASKSTATS_TYPE_UNSPEC                 = 0x0
    TASKSTATS_TYPE_PID                    = 0x1
    TASKSTATS_TYPE_TGID                   = 0x2
    TASKSTATS_TYPE_STATS                  = 0x3
    TASKSTATS_TYPE_AGGR_PID               = 0x4
    TASKSTATS_TYPE_AGGR_TGID              = 0x5
    TASKSTATS_TYPE_NULL                   = 0x6
    TASKSTATS_CMD_ATTR_UNSPEC             = 0x0
    TASKSTATS_CMD_ATTR_PID                = 0x1
    TASKSTATS_CMD_ATTR_TGID               = 0x2
    TASKSTATS_CMD_ATTR_REGISTER_CPUMASK   = 0x3
    TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4
)
const (
    CTRL_CMD_UNSPEC            = 0x0
    CTRL_CMD_NEWFAMILY         = 0x1
    CTRL_CMD_DELFAMILY         = 0x2
    CTRL_CMD_GETFAMILY         = 0x3
    CTRL_CMD_NEWOPS            = 0x4
    CTRL_CMD_DELOPS            = 0x5
    CTRL_CMD_GETOPS            = 0x6
    CTRL_CMD_NEWMCAST_GRP      = 0x7
    CTRL_CMD_DELMCAST_GRP      = 0x8
    CTRL_CMD_GETMCAST_GRP      = 0x9
    CTRL_ATTR_UNSPEC           = 0x0
    CTRL_ATTR_FAMILY_ID        = 0x1
    CTRL_ATTR_FAMILY_NAME      = 0x2
    CTRL_ATTR_VERSION          = 0x3
    CTRL_ATTR_HDRSIZE          = 0x4
    CTRL_ATTR_MAXATTR          = 0x5
    CTRL_ATTR_OPS              = 0x6
    CTRL_ATTR_MCAST_GROUPS     = 0x7
    CTRL_ATTR_OP_UNSPEC        = 0x0
    CTRL_ATTR_OP_ID            = 0x1
    CTRL_ATTR_OP_FLAGS         = 0x2
    CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0
    CTRL_ATTR_MCAST_GRP_NAME   = 0x1
    CTRL_ATTR_MCAST_GRP_ID     = 0x2
)
const ImplementsGetwd = true
const PERF_IOC_FLAG_GROUP = 0x1
const (
    PathMax = 0x1000
)
const RNDGETENTCNT = 0x80045200
const SizeofInotifyEvent = 0x10

Variables

var (
    Stdin  = 0
    Stdout = 1
    Stderr = 2
)
var SocketDisableIPv6 bool

For testing: clients can set this flag to force creation of IPv6 sockets to return EAFNOSUPPORT.

func Accept Uses

func Accept(fd int) (nfd int, sa Sockaddr, err error)

func Accept4 Uses

func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error)

func Access Uses

func Access(path string, mode uint32) (err error)

func Acct Uses

func Acct(path string) (err error)

func AddKey Uses

func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error)

func Adjtimex Uses

func Adjtimex(buf *Timex) (state int, err error)

func Bind Uses

func Bind(fd int, sa Sockaddr) (err error)

func BindToDevice Uses

func BindToDevice(fd int, device string) (err error)

BindToDevice binds the socket associated with fd to device.

func BytePtrFromString Uses

func BytePtrFromString(s string) (*byte, error)

BytePtrFromString returns a pointer to a NUL-terminated array of bytes containing the text of s. If s contains a NUL byte at any location, it returns (nil, EINVAL).

func ByteSliceFromString Uses

func ByteSliceFromString(s string) ([]byte, error)

ByteSliceFromString returns a NUL-terminated slice of bytes containing the text of s. If s contains a NUL byte at any location, it returns (nil, EINVAL).

func Chdir Uses

func Chdir(path string) (err error)

func Chmod Uses

func Chmod(path string, mode uint32) (err error)

func Chown Uses

func Chown(path string, uid int, gid int) (err error)

func Chroot Uses

func Chroot(path string) (err error)

func Clearenv Uses

func Clearenv()

func ClockGettime Uses

func ClockGettime(clockid int32, time *Timespec) (err error)

func Close Uses

func Close(fd int) (err error)

func CloseOnExec Uses

func CloseOnExec(fd int)

func CmsgLen Uses

func CmsgLen(datalen int) int

CmsgLen returns the value to store in the Len field of the Cmsghdr structure, taking into account any necessary alignment.

func CmsgSpace Uses

func CmsgSpace(datalen int) int

CmsgSpace returns the number of bytes an ancillary element with payload of the passed data length occupies.

func Connect Uses

func Connect(fd int, sa Sockaddr) (err error)

func CopyFileRange Uses

func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)

func Creat Uses

func Creat(path string, mode uint32) (fd int, err error)

func Dup Uses

func Dup(oldfd int) (fd int, err error)

func Dup2 Uses

func Dup2(oldfd int, newfd int) (err error)

func Dup3 Uses

func Dup3(oldfd int, newfd int, flags int) (err error)

func Environ Uses

func Environ() []string

func EpollCreate Uses

func EpollCreate(size int) (fd int, err error)

func EpollCreate1 Uses

func EpollCreate1(flag int) (fd int, err error)

func EpollCtl Uses

func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error)

func EpollWait Uses

func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)

func Eventfd Uses

func Eventfd(initval uint, flags int) (fd int, err error)

func Exit Uses

func Exit(code int)

func Faccessat Uses

func Faccessat(dirfd int, path string, mode uint32, flags int) (err error)

func Fadvise Uses

func Fadvise(fd int, offset int64, length int64, advice int) (err error)

func Fallocate Uses

func Fallocate(fd int, mode uint32, off int64, len int64) (err error)

func Fchdir Uses

func Fchdir(fd int) (err error)

func Fchmod Uses

func Fchmod(fd int, mode uint32) (err error)

func Fchmodat Uses

func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)

func Fchown Uses

func Fchown(fd int, uid int, gid int) (err error)

func Fchownat Uses

func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)

func FcntlFlock Uses

func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error

FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.

func Fdatasync Uses

func Fdatasync(fd int) (err error)

func Flock Uses

func Flock(fd int, how int) (err error)

func Fstat Uses

func Fstat(fd int, stat *Stat_t) (err error)

func Fstatfs Uses

func Fstatfs(fd int, buf *Statfs_t) (err error)

func Fsync Uses

func Fsync(fd int) (err error)

func Ftruncate Uses

func Ftruncate(fd int, length int64) (err error)

func Futimes Uses

func Futimes(fd int, tv []Timeval) (err error)

func Futimesat Uses

func Futimesat(dirfd int, path string, tv []Timeval) error

func Getcwd Uses

func Getcwd(buf []byte) (n int, err error)

func Getdents Uses

func Getdents(fd int, buf []byte) (n int, err error)

func Getegid Uses

func Getegid() (egid int)

func Getenv Uses

func Getenv(key string) (value string, found bool)

func Geteuid Uses

func Geteuid() (euid int)

func Getgid Uses

func Getgid() (gid int)

func Getgroups Uses

func Getgroups() (gids []int, err error)

func Getpagesize Uses

func Getpagesize() int

func Getpgid Uses

func Getpgid(pid int) (pgid int, err error)

func Getpgrp Uses

func Getpgrp() (pid int)

func Getpid Uses

func Getpid() (pid int)

func Getppid Uses

func Getppid() (ppid int)

func Getpriority Uses

func Getpriority(which int, who int) (prio int, err error)

func Getrandom Uses

func Getrandom(buf []byte, flags int) (n int, err error)

func Getrlimit Uses

func Getrlimit(resource int, rlim *Rlimit) (err error)

func Getrusage Uses

func Getrusage(who int, rusage *Rusage) (err error)

func Getsid Uses

func Getsid(pid int) (sid int, err error)

func GetsockoptInet4Addr Uses

func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error)

func GetsockoptInt Uses

func GetsockoptInt(fd, level, opt int) (value int, err error)

func Gettid Uses

func Gettid() (tid int)

func Gettimeofday Uses

func Gettimeofday(tv *Timeval) (err error)

func Getuid Uses

func Getuid() (uid int)

func Getwd Uses

func Getwd() (wd string, err error)

func Getxattr Uses

func Getxattr(path string, attr string, dest []byte) (sz int, err error)

func InotifyAddWatch Uses

func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error)

func InotifyInit Uses

func InotifyInit() (fd int, err error)

func InotifyInit1 Uses

func InotifyInit1(flags int) (fd int, err error)

func InotifyRmWatch Uses

func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error)

func IoctlGetInt Uses

func IoctlGetInt(fd int, req uint) (int, error)

IoctlGetInt performs an ioctl operation which gets an integer value from fd, using the specified request number.

func IoctlSetInt Uses

func IoctlSetInt(fd int, req uint, value int) error

IoctlSetInt performs an ioctl operation which sets an integer value on fd, using the specified request number.

func IoctlSetTermios Uses

func IoctlSetTermios(fd int, req uint, value *Termios) error

func IoctlSetWinsize Uses

func IoctlSetWinsize(fd int, req uint, value *Winsize) error

func Ioperm Uses

func Ioperm(from int, num int, on int) (err error)

func Iopl Uses

func Iopl(level int) (err error)

func KeyctlBuffer Uses

func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error)

func KeyctlDHCompute Uses

func KeyctlDHCompute(params *KeyctlDHParams, buffer []byte) (size int, err error)

KeyctlDHCompute implements the KEYCTL_DH_COMPUTE command. This command computes a Diffie-Hellman shared secret based on the provide params. The secret is written to the provided buffer and the returned size is the number of bytes written (returning an error if there is insufficient space in the buffer). If a nil buffer is passed in, this function returns the minimum buffer length needed to store the appropriate data. Note that this differs from KEYCTL_READ's behavior which always returns the requested payload size. See the full documentation at: http://man7.org/linux/man-pages/man3/keyctl_dh_compute.3.html

func KeyctlGetKeyringID Uses

func KeyctlGetKeyringID(id int, create bool) (ringid int, err error)

KeyctlGetKeyringID implements the KEYCTL_GET_KEYRING_ID command. See the full documentation at: http://man7.org/linux/man-pages/man3/keyctl_get_keyring_ID.3.html

func KeyctlInstantiateIOV Uses

func KeyctlInstantiateIOV(id int, payload []Iovec, ringid int) error

KeyctlInstantiateIOV implements the KEYCTL_INSTANTIATE_IOV command. This command is similar to KEYCTL_INSTANTIATE, except that the payload is a slice of Iovec (each of which represents a buffer) instead of a single buffer. See the full documentation at: http://man7.org/linux/man-pages/man3/keyctl_instantiate_iov.3.html

func KeyctlInt Uses

func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error)

func KeyctlJoinSessionKeyring Uses

func KeyctlJoinSessionKeyring(name string) (ringid int, err error)

KeyctlJoinSessionKeyring implements the KEYCTL_JOIN_SESSION_KEYRING command. See the full documentation at: http://man7.org/linux/man-pages/man3/keyctl_join_session_keyring.3.html

func KeyctlSearch Uses

func KeyctlSearch(ringid int, keyType, description string, destRingid int) (id int, err error)

KeyctlSearch implements the KEYCTL_SEARCH command. See the full documentation at: http://man7.org/linux/man-pages/man3/keyctl_search.3.html

func KeyctlSetperm Uses

func KeyctlSetperm(id int, perm uint32) error

KeyctlSetperm implements the KEYCTL_SETPERM command. The perm value is the key handle permission mask as described in the "keyctl setperm" section of http://man7.org/linux/man-pages/man1/keyctl.1.html. See the full documentation at: http://man7.org/linux/man-pages/man3/keyctl_setperm.3.html

func KeyctlString Uses

func KeyctlString(cmd int, id int) (string, error)

KeyctlString calls keyctl commands which return a string. These commands are KEYCTL_DESCRIBE and KEYCTL_GET_SECURITY.

func Kill Uses

func Kill(pid int, sig syscall.Signal) (err error)

func Klogctl Uses

func Klogctl(typ int, buf []byte) (n int, err error)

func Lchown Uses

func Lchown(path string, uid int, gid int) (err error)

func Lgetxattr Uses

func Lgetxattr(path string, attr string, dest []byte) (sz int, err error)
func Link(oldpath string, newpath string) (err error)

func Linkat Uses

func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error)

func Listen Uses

func Listen(s int, n int) (err error)

func Listxattr Uses

func Listxattr(path string, dest []byte) (sz int, err error)

func Llistxattr Uses

func Llistxattr(path string, dest []byte) (sz int, err error)

func Lremovexattr Uses

func Lremovexattr(path string, attr string) (err error)

func Lsetxattr Uses

func Lsetxattr(path string, attr string, data []byte, flags int) (err error)

func Lstat Uses

func Lstat(path string, stat *Stat_t) (err error)

func Madvise Uses

func Madvise(b []byte, advice int) (err error)

func Major Uses

func Major(dev uint64) uint32

Major returns the major component of a Linux device number.

func Minor Uses

func Minor(dev uint64) uint32

Minor returns the minor component of a Linux device number.

func Mkdev Uses

func Mkdev(major, minor uint32) uint64

Mkdev returns a Linux device number generated from the given major and minor components.

func Mkdir Uses

func Mkdir(path string, mode uint32) (err error)

func Mkdirat Uses

func Mkdirat(dirfd int, path string, mode uint32) (err error)

func Mkfifo Uses

func Mkfifo(path string, mode uint32) error

func Mkfifoat Uses

func Mkfifoat(dirfd int, path string, mode uint32) error

func Mknod Uses

func Mknod(path string, mode uint32, dev int) (err error)

func Mknodat Uses

func Mknodat(dirfd int, path string, mode uint32, dev int) (err error)

func Mlock Uses

func Mlock(b []byte) (err error)

func Mlockall Uses

func Mlockall(flags int) (err error)

func Mmap Uses

func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error)

func Mount Uses

func Mount(source string, target string, fstype string, flags uintptr, data string) (err error)

func Mprotect Uses

func Mprotect(b []byte, prot int) (err error)

func Msync Uses

func Msync(b []byte, flags int) (err error)

func Munlock Uses

func Munlock(b []byte) (err error)

func Munlockall Uses

func Munlockall() (err error)

func Munmap Uses

func Munmap(b []byte) (err error)

func Nanosleep Uses

func Nanosleep(time *Timespec, leftover *Timespec) (err error)

func Open Uses

func Open(path string, mode int, perm uint32) (fd int, err error)

func Openat Uses

func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error)

func ParseDirent Uses

func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string)

ParseDirent parses up to max directory entries in buf, appending the names to names. It returns the number of bytes consumed from buf, the number of entries added to names, and the new names slice.

func ParseSocketControlMessage Uses

func ParseSocketControlMessage(b []byte) ([]SocketControlMessage, error)

ParseSocketControlMessage parses b as an array of socket control messages.

func ParseUnixRights Uses

func ParseUnixRights(m *SocketControlMessage) ([]int, error)

ParseUnixRights decodes a socket control message that contains an integer array of open file descriptors from another process.

func Pause Uses

func Pause() (err error)

func Pipe Uses

func Pipe(p []int) (err error)

func Pipe2 Uses

func Pipe2(p []int, flags int) (err error)

func PivotRoot Uses

func PivotRoot(newroot string, putold string) (err error)

func Poll Uses

func Poll(fds []PollFd, timeout int) (n int, err error)

func Ppoll Uses

func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error)

func Prctl Uses

func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error)

func Pread Uses

func Pread(fd int, p []byte, offset int64) (n int, err error)

func PtraceAttach Uses

func PtraceAttach(pid int) (err error)

func PtraceCont Uses

func PtraceCont(pid int, signal int) (err error)

func PtraceDetach Uses

func PtraceDetach(pid int) (err error)

func PtraceGetEventMsg Uses

func PtraceGetEventMsg(pid int) (msg uint, err error)

func PtraceGetRegs Uses

func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error)

func PtracePeekData Uses

func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error)

func PtracePeekText Uses

func PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error)

func PtracePeekUser Uses

func PtracePeekUser(pid int, addr uintptr, out []byte) (count int, err error)

func PtracePokeData Uses

func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error)

func PtracePokeText Uses

func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error)

func PtraceSetOptions Uses

func PtraceSetOptions(pid int, options int) (err error)

func PtraceSetRegs Uses

func PtraceSetRegs(pid int, regs *PtraceRegs) (err error)

func PtraceSingleStep Uses

func PtraceSingleStep(pid int) (err error)

func PtraceSyscall Uses

func PtraceSyscall(pid int, signal int) (err error)

func Pwrite Uses

func Pwrite(fd int, p []byte, offset int64) (n int, err error)

func RawSyscall Uses

func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)

func RawSyscall6 Uses

func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)

func Read Uses

func Read(fd int, p []byte) (n int, err error)

func ReadDirent Uses

func ReadDirent(fd int, buf []byte) (n int, err error)
func Readlink(path string, buf []byte) (n int, err error)

func Readlinkat Uses

func Readlinkat(dirfd int, path string, buf []byte) (n int, err error)

func Reboot Uses

func Reboot(cmd int) (err error)

func Recvfrom Uses

func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error)

func Recvmsg Uses

func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error)

func Removexattr Uses

func Removexattr(path string, attr string) (err error)

func Rename Uses

func Rename(oldpath string, newpath string) (err error)

func Renameat Uses

func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)

func RequestKey Uses

func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error)

func Rmdir Uses

func Rmdir(path string) error

func Seek Uses

func Seek(fd int, offset int64, whence int) (off int64, err error)

func Select Uses

func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)

func Sendfile Uses

func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)

func Sendmsg Uses

func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error)

func SendmsgN Uses

func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)

func Sendto Uses

func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error)

func SetNonblock Uses

func SetNonblock(fd int, nonblocking bool) (err error)

func Setdomainname Uses

func Setdomainname(p []byte) (err error)

func Setenv Uses

func Setenv(key, value string) error

func Setfsgid Uses

func Setfsgid(gid int) (err error)

func Setfsuid Uses

func Setfsuid(uid int) (err error)

func Setgid Uses

func Setgid(uid int) (err error)

func Setgroups Uses

func Setgroups(gids []int) (err error)

func Sethostname Uses

func Sethostname(p []byte) (err error)

func Setns Uses

func Setns(fd int, nstype int) (err error)

func Setpgid Uses

func Setpgid(pid int, pgid int) (err error)

func Setpriority Uses

func Setpriority(which int, who int, prio int) (err error)

func Setregid Uses

func Setregid(rgid int, egid int) (err error)

func Setresgid Uses

func Setresgid(rgid int, egid int, sgid int) (err error)

func Setresuid Uses

func Setresuid(ruid int, euid int, suid int) (err error)

func Setreuid Uses

func Setreuid(ruid int, euid int) (err error)

func Setrlimit Uses

func Setrlimit(resource int, rlim *Rlimit) (err error)

func Setsid Uses

func Setsid() (pid int, err error)

func SetsockoptByte Uses

func SetsockoptByte(fd, level, opt int, value byte) (err error)

func SetsockoptICMPv6Filter Uses

func SetsockoptICMPv6Filter(fd, level, opt int, filter *ICMPv6Filter) error

func SetsockoptIPMreq Uses

func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error)

func SetsockoptIPMreqn Uses

func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error)

func SetsockoptIPv6Mreq Uses

func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error)

func SetsockoptInet4Addr Uses

func SetsockoptInet4Addr(fd, level, opt int, value [4]byte) (err error)

func SetsockoptInt Uses

func SetsockoptInt(fd, level, opt int, value int) (err error)

func SetsockoptLinger Uses

func SetsockoptLinger(fd, level, opt int, l *Linger) (err error)

func SetsockoptString Uses

func SetsockoptString(fd, level, opt int, s string) (err error)

func SetsockoptTimeval Uses

func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error)

func Settimeofday Uses

func Settimeofday(tv *Timeval) (err error)

func Setuid Uses

func Setuid(uid int) (err error)

func Setxattr Uses

func Setxattr(path string, attr string, data []byte, flags int) (err error)

func Shutdown Uses

func Shutdown(fd int, how int) (err error)

func Socket Uses

func Socket(domain, typ, proto int) (fd int, err error)

func Socketpair Uses

func Socketpair(domain, typ, proto int) (fd [2]int, err error)

func Splice Uses

func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)

func Stat Uses

func Stat(path string, stat *Stat_t) (err error)

func Statfs Uses

func Statfs(path string, buf *Statfs_t) (err error)
func Symlink(oldpath string, newpath string) (err error)

func Symlinkat Uses

func Symlinkat(oldpath string, newdirfd int, newpath string) (err error)

func Sync Uses

func Sync()

func SyncFileRange Uses

func SyncFileRange(fd int, off int64, n int64, flags int) (err error)

func Syncfs Uses

func Syncfs(fd int) (err error)

func Syscall Uses

func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)

func Syscall6 Uses

func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)

func Sysinfo Uses

func Sysinfo(info *Sysinfo_t) (err error)

func Tee Uses

func Tee(rfd int, wfd int, len int, flags int) (n int64, err error)

func Tgkill Uses

func Tgkill(tgid int, tid int, sig syscall.Signal) (err error)

func Times Uses

func Times(tms *Tms) (ticks uintptr, err error)

func TimespecToNsec Uses

func TimespecToNsec(ts Timespec) int64

func TimevalToNsec Uses

func TimevalToNsec(tv Timeval) int64

func Truncate Uses

func Truncate(path string, length int64) (err error)

func Umask Uses

func Umask(mask int) (oldmask int)

func Uname Uses

func Uname(buf *Utsname) (err error)

func UnixCredentials Uses

func UnixCredentials(ucred *Ucred) []byte

UnixCredentials encodes credentials into a socket control message for sending to another process. This can be used for authentication.

func UnixRights Uses

func UnixRights(fds ...int) []byte

UnixRights encodes a set of open file descriptors into a socket control message for sending to another process.

func Unlink(path string) error

func Unlinkat Uses

func Unlinkat(dirfd int, path string, flags int) (err error)

func Unmount Uses

func Unmount(target string, flags int) (err error)

func Unsetenv Uses

func Unsetenv(key string) error

func Unshare Uses

func Unshare(flags int) (err error)

func Ustat Uses

func Ustat(dev int, ubuf *Ustat_t) (err error)

func Utime Uses

func Utime(path string, buf *Utimbuf) (err error)

func Utimes Uses

func Utimes(path string, tv []Timeval) error

func UtimesNano Uses

func UtimesNano(path string, ts []Timespec) error

func UtimesNanoAt Uses

func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error

func Vmsplice Uses

func Vmsplice(fd int, iovs []Iovec, flags int) (int, error)

Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd, using the specified flags.

func Wait4 Uses

func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error)

func Write Uses

func Write(fd int, p []byte) (n int, err error)

type Cmsghdr Uses

type Cmsghdr struct {
    Len   uint64
    Level int32
    Type  int32
}

func (*Cmsghdr) SetLen Uses

func (cmsg *Cmsghdr) SetLen(length int)

type Dirent Uses

type Dirent struct {
    Ino       uint64
    Off       int64
    Reclen    uint16
    Type      uint8
    Name      [256]int8
    Pad_cgo_0 [5]byte
}

type EpollEvent Uses

type EpollEvent struct {
    Events uint32
    Fd     int32
    Pad    int32
}

type FdSet Uses

type FdSet struct {
    Bits [16]int64
}

type Flock_t Uses

type Flock_t struct {
    Type      int16
    Whence    int16
    Pad_cgo_0 [4]byte
    Start     int64
    Len       int64
    Pid       int32
    Pad_cgo_1 [4]byte
}

type FscryptKey Uses

type FscryptKey struct {
    Mode uint32
    Raw  [64]uint8
    Size uint32
}

type FscryptPolicy Uses

type FscryptPolicy struct {
    Version                   uint8
    Contents_encryption_mode  uint8
    Filenames_encryption_mode uint8
    Flags                     uint8
    Master_key_descriptor     [8]uint8
}

type Fsid Uses

type Fsid struct {
    X__val [2]int32
}

type Genlmsghdr Uses

type Genlmsghdr struct {
    Cmd      uint8
    Version  uint8
    Reserved uint16
}

type ICMPv6Filter Uses

type ICMPv6Filter struct {
    Data [8]uint32
}

func GetsockoptICMPv6Filter Uses

func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error)

type IPMreq Uses

type IPMreq struct {
    Multiaddr [4]byte /* in_addr */
    Interface [4]byte /* in_addr */
}

func GetsockoptIPMreq Uses

func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error)

type IPMreqn Uses

type IPMreqn struct {
    Multiaddr [4]byte /* in_addr */
    Address   [4]byte /* in_addr */
    Ifindex   int32
}

func GetsockoptIPMreqn Uses

func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error)

type IPv6MTUInfo Uses

type IPv6MTUInfo struct {
    Addr RawSockaddrInet6
    Mtu  uint32
}

func GetsockoptIPv6MTUInfo Uses

func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error)

type IPv6Mreq Uses

type IPv6Mreq struct {
    Multiaddr [16]byte /* in6_addr */
    Interface uint32
}

func GetsockoptIPv6Mreq Uses

func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error)

type IfAddrmsg Uses

type IfAddrmsg struct {
    Family    uint8
    Prefixlen uint8
    Flags     uint8
    Scope     uint8
    Index     uint32
}

type IfInfomsg Uses

type IfInfomsg struct {
    Family     uint8
    X__ifi_pad uint8
    Type       uint16
    Index      int32
    Flags      uint32
    Change     uint32
}

type Inet4Pktinfo Uses

type Inet4Pktinfo struct {
    Ifindex  int32
    Spec_dst [4]byte /* in_addr */
    Addr     [4]byte /* in_addr */
}

type Inet6Pktinfo Uses

type Inet6Pktinfo struct {
    Addr    [16]byte /* in6_addr */
    Ifindex uint32
}

type InotifyEvent Uses

type InotifyEvent struct {
    Wd     int32
    Mask   uint32
    Cookie uint32
    Len    uint32
}

type Iovec Uses

type Iovec struct {
    Base *byte
    Len  uint64
}

func (*Iovec) SetLen Uses

func (iov *Iovec) SetLen(length int)

type KeyctlDHParams Uses

type KeyctlDHParams struct {
    Private int32
    Prime   int32
    Base    int32
}

type Linger Uses

type Linger struct {
    Onoff  int32
    Linger int32
}

type Msghdr Uses

type Msghdr struct {
    Name       *byte
    Namelen    uint32
    Pad_cgo_0  [4]byte
    Iov        *Iovec
    Iovlen     uint64
    Control    *byte
    Controllen uint64
    Flags      int32
    Pad_cgo_1  [4]byte
}

func (*Msghdr) SetControllen Uses

func (msghdr *Msghdr) SetControllen(length int)

type NlAttr Uses

type NlAttr struct {
    Len  uint16
    Type uint16
}

type NlMsgerr Uses

type NlMsgerr struct {
    Error int32
    Msg   NlMsghdr
}

type NlMsghdr Uses

type NlMsghdr struct {
    Len   uint32
    Type  uint16
    Flags uint16
    Seq   uint32
    Pid   uint32
}

type PacketMreq Uses

type PacketMreq struct {
    Ifindex int32
    Type    uint16
    Alen    uint16
    Address [8]uint8
}

type PollFd Uses

type PollFd struct {
    Fd      int32
    Events  int16
    Revents int16
}

type PtraceRegs Uses

type PtraceRegs struct {
    R15      uint64
    R14      uint64
    R13      uint64
    R12      uint64
    Rbp      uint64
    Rbx      uint64
    R11      uint64
    R10      uint64
    R9       uint64
    R8       uint64
    Rax      uint64
    Rcx      uint64
    Rdx      uint64
    Rsi      uint64
    Rdi      uint64
    Orig_rax uint64
    Rip      uint64
    Cs       uint64
    Eflags   uint64
    Rsp      uint64
    Ss       uint64
    Fs_base  uint64
    Gs_base  uint64
    Ds       uint64
    Es       uint64
    Fs       uint64
    Gs       uint64
}

func (*PtraceRegs) PC Uses

func (r *PtraceRegs) PC() uint64

func (*PtraceRegs) SetPC Uses

func (r *PtraceRegs) SetPC(pc uint64)

type RawSockaddr Uses

type RawSockaddr struct {
    Family uint16
    Data   [14]int8
}

type RawSockaddrALG Uses

type RawSockaddrALG struct {
    Family uint16
    Type   [14]uint8
    Feat   uint32
    Mask   uint32
    Name   [64]uint8
}

type RawSockaddrAny Uses

type RawSockaddrAny struct {
    Addr RawSockaddr
    Pad  [96]int8
}

type RawSockaddrCAN Uses

type RawSockaddrCAN struct {
    Family    uint16
    Pad_cgo_0 [2]byte
    Ifindex   int32
    Addr      [8]byte
}

type RawSockaddrHCI Uses

type RawSockaddrHCI struct {
    Family  uint16
    Dev     uint16
    Channel uint16
}

type RawSockaddrInet4 Uses

type RawSockaddrInet4 struct {
    Family uint16
    Port   uint16
    Addr   [4]byte /* in_addr */
    Zero   [8]uint8
}

type RawSockaddrInet6 Uses

type RawSockaddrInet6 struct {
    Family   uint16
    Port     uint16
    Flowinfo uint32
    Addr     [16]byte /* in6_addr */
    Scope_id uint32
}

type RawSockaddrLinklayer Uses

type RawSockaddrLinklayer struct {
    Family   uint16
    Protocol uint16
    Ifindex  int32
    Hatype   uint16
    Pkttype  uint8
    Halen    uint8
    Addr     [8]uint8
}
type RawSockaddrNetlink struct {
    Family uint16
    Pad    uint16
    Pid    uint32
    Groups uint32
}

type RawSockaddrUnix Uses

type RawSockaddrUnix struct {
    Family uint16
    Path   [108]int8
}

type RawSockaddrVM Uses

type RawSockaddrVM struct {
    Family    uint16
    Reserved1 uint16
    Port      uint32
    Cid       uint32
    Zero      [4]uint8
}

type Rlimit Uses

type Rlimit struct {
    Cur uint64
    Max uint64
}

type RtAttr Uses

type RtAttr struct {
    Len  uint16
    Type uint16
}

type RtGenmsg Uses

type RtGenmsg struct {
    Family uint8
}

type RtMsg Uses

type RtMsg struct {
    Family   uint8
    Dst_len  uint8
    Src_len  uint8
    Tos      uint8
    Table    uint8
    Protocol uint8
    Scope    uint8
    Type     uint8
    Flags    uint32
}

type RtNexthop Uses

type RtNexthop struct {
    Len     uint16
    Flags   uint8
    Hops    uint8
    Ifindex int32
}

type Rusage Uses

type Rusage struct {
    Utime    Timeval
    Stime    Timeval
    Maxrss   int64
    Ixrss    int64
    Idrss    int64
    Isrss    int64
    Minflt   int64
    Majflt   int64
    Nswap    int64
    Inblock  int64
    Oublock  int64
    Msgsnd   int64
    Msgrcv   int64
    Nsignals int64
    Nvcsw    int64
    Nivcsw   int64
}

type Sigset_t Uses

type Sigset_t struct {
    X__val [16]uint64
}

type SockFilter Uses

type SockFilter struct {
    Code uint16
    Jt   uint8
    Jf   uint8
    K    uint32
}

type SockFprog Uses

type SockFprog struct {
    Len       uint16
    Pad_cgo_0 [6]byte
    Filter    *SockFilter
}

type Sockaddr Uses

type Sockaddr interface {
    // contains filtered or unexported methods
}

func Getpeername Uses

func Getpeername(fd int) (sa Sockaddr, err error)

func Getsockname Uses

func Getsockname(fd int) (sa Sockaddr, err error)

type SockaddrALG Uses

type SockaddrALG struct {
    Type    string
    Name    string
    Feature uint32
    Mask    uint32
    // contains filtered or unexported fields
}

SockaddrALG implements the Sockaddr interface for AF_ALG type sockets. SockaddrALG enables userspace access to the Linux kernel's cryptography subsystem. The Type and Name fields specify which type of hash or cipher should be used with a given socket.

To create a file descriptor that provides access to a hash or cipher, both Bind and Accept must be used. Once the setup process is complete, input data can be written to the socket, processed by the kernel, and then read back as hash output or ciphertext.

Here is an example of using an AF_ALG socket with SHA1 hashing. The initial socket setup process is as follows:

// Open a socket to perform SHA1 hashing.
fd, _ := unix.Socket(unix.AF_ALG, unix.SOCK_SEQPACKET, 0)
addr := &unix.SockaddrALG{Type: "hash", Name: "sha1"}
unix.Bind(fd, addr)
// Note: unix.Accept does not work at this time; must invoke accept()
// manually using unix.Syscall.
hashfd, _, _ := unix.Syscall(unix.SYS_ACCEPT, uintptr(fd), 0, 0)

Once a file descriptor has been returned from Accept, it may be used to perform SHA1 hashing. The descriptor is not safe for concurrent use, but may be re-used repeatedly with subsequent Write and Read operations.

When hashing a small byte slice or string, a single Write and Read may be used:

// Assume hashfd is already configured using the setup process.
hash := os.NewFile(hashfd, "sha1")
// Hash an input string and read the results. Each Write discards
// previous hash state. Read always reads the current state.
b := make([]byte, 20)
for i := 0; i < 2; i++ {
    io.WriteString(hash, "Hello, world.")
    hash.Read(b)
    fmt.Println(hex.EncodeToString(b))
}
// Output:
// 2ae01472317d1935a84797ec1983ae243fc6aa28
// 2ae01472317d1935a84797ec1983ae243fc6aa28

For hashing larger byte slices, or byte streams such as those read from a file or socket, use Sendto with MSG_MORE to instruct the kernel to update the hash digest instead of creating a new one for a given chunk and finalizing it.

// Assume hashfd and addr are already configured using the setup process.
hash := os.NewFile(hashfd, "sha1")
// Hash the contents of a file.
f, _ := os.Open("/tmp/linux-4.10-rc7.tar.xz")
b := make([]byte, 4096)
for {
    n, err := f.Read(b)
    if err == io.EOF {
        break
    }
    unix.Sendto(hashfd, b[:n], unix.MSG_MORE, addr)
}
hash.Read(b)
fmt.Println(hex.EncodeToString(b))
// Output: 85cdcad0c06eef66f805ecce353bec9accbeecc5

For more information, see: http://www.chronox.de/crypto-API/crypto/userspace-if.html.

type SockaddrCAN Uses

type SockaddrCAN struct {
    Ifindex int
    RxID    uint32
    TxID    uint32
    // contains filtered or unexported fields
}

SockaddrCAN implements the Sockaddr interface for AF_CAN type sockets. The RxID and TxID fields are used for transport protocol addressing in (CAN_TP16, CAN_TP20, CAN_MCNET, and CAN_ISOTP), they can be left with zero values for CAN_RAW and CAN_BCM sockets as they have no meaning.

The SockaddrCAN struct must be bound to the socket file descriptor using Bind before the CAN socket can be used.

// Read one raw CAN frame
fd, _ := Socket(AF_CAN, SOCK_RAW, CAN_RAW)
addr := &SockaddrCAN{Ifindex: index}
Bind(fd, addr)
frame := make([]byte, 16)
Read(fd, frame)

The full SocketCAN documentation can be found in the linux kernel archives at: https://www.kernel.org/doc/Documentation/networking/can.txt

type SockaddrHCI Uses

type SockaddrHCI struct {
    Dev     uint16
    Channel uint16
    // contains filtered or unexported fields
}

type SockaddrInet4 Uses

type SockaddrInet4 struct {
    Port int
    Addr [4]byte
    // contains filtered or unexported fields
}

type SockaddrInet6 Uses

type SockaddrInet6 struct {
    Port   int
    ZoneId uint32
    Addr   [16]byte
    // contains filtered or unexported fields
}

type SockaddrLinklayer Uses

type SockaddrLinklayer struct {
    Protocol uint16
    Ifindex  int
    Hatype   uint16
    Pkttype  uint8
    Halen    uint8
    Addr     [8]byte
    // contains filtered or unexported fields
}
type SockaddrNetlink struct {
    Family uint16
    Pad    uint16
    Pid    uint32
    Groups uint32
    // contains filtered or unexported fields
}

type SockaddrUnix Uses

type SockaddrUnix struct {
    Name string
    // contains filtered or unexported fields
}

type SockaddrVM Uses

type SockaddrVM struct {
    // CID and Port specify a context ID and port address for a VM socket.
    // Guests have a unique CID, and hosts may have a well-known CID of:
    //  - VMADDR_CID_HYPERVISOR: refers to the hypervisor process.
    //  - VMADDR_CID_HOST: refers to other processes on the host.
    CID  uint32
    Port uint32
    // contains filtered or unexported fields
}

SockaddrVM implements the Sockaddr interface for AF_VSOCK type sockets. SockaddrVM provides access to Linux VM sockets: a mechanism that enables bidirectional communication between a hypervisor and its guest virtual machines.

type SocketControlMessage Uses

type SocketControlMessage struct {
    Header Cmsghdr
    Data   []byte
}

SocketControlMessage represents a socket control message.

type Stat_t Uses

type Stat_t struct {
    Dev     uint64
    Ino     uint64
    Nlink   uint64
    Mode    uint32
    Uid     uint32
    Gid     uint32
    X__pad0 int32
    Rdev    uint64
    Size    int64
    Blksize int64
    Blocks  int64
    Atim    Timespec
    Mtim    Timespec
    Ctim    Timespec
    // contains filtered or unexported fields
}

type Statfs_t Uses

type Statfs_t struct {
    Type    int64
    Bsize   int64
    Blocks  uint64
    Bfree   uint64
    Bavail  uint64
    Files   uint64
    Ffree   uint64
    Fsid    Fsid
    Namelen int64
    Frsize  int64
    Flags   int64
    Spare   [4]int64
}

type Sysinfo_t Uses

type Sysinfo_t struct {
    Uptime    int64
    Loads     [3]uint64
    Totalram  uint64
    Freeram   uint64
    Sharedram uint64
    Bufferram uint64
    Totalswap uint64
    Freeswap  uint64
    Procs     uint16
    Pad       uint16
    Pad_cgo_0 [4]byte
    Totalhigh uint64
    Freehigh  uint64
    Unit      uint32
    X_f       [0]int8
    Pad_cgo_1 [4]byte
}

type TCPInfo Uses

type TCPInfo struct {
    State          uint8
    Ca_state       uint8
    Retransmits    uint8
    Probes         uint8
    Backoff        uint8
    Options        uint8
    Pad_cgo_0      [2]byte
    Rto            uint32
    Ato            uint32
    Snd_mss        uint32
    Rcv_mss        uint32
    Unacked        uint32
    Sacked         uint32
    Lost           uint32
    Retrans        uint32
    Fackets        uint32
    Last_data_sent uint32
    Last_ack_sent  uint32
    Last_data_recv uint32
    Last_ack_recv  uint32
    Pmtu           uint32
    Rcv_ssthresh   uint32
    Rtt            uint32
    Rttvar         uint32
    Snd_ssthresh   uint32
    Snd_cwnd       uint32
    Advmss         uint32
    Reordering     uint32
    Rcv_rtt        uint32
    Rcv_space      uint32
    Total_retrans  uint32
}

func GetsockoptTCPInfo Uses

func GetsockoptTCPInfo(fd, level, opt int) (*TCPInfo, error)

type Taskstats Uses

type Taskstats struct {
    Version                   uint16
    Pad_cgo_0                 [2]byte
    Ac_exitcode               uint32
    Ac_flag                   uint8
    Ac_nice                   uint8
    Pad_cgo_1                 [6]byte
    Cpu_count                 uint64
    Cpu_delay_total           uint64
    Blkio_count               uint64
    Blkio_delay_total         uint64
    Swapin_count              uint64
    Swapin_delay_total        uint64
    Cpu_run_real_total        uint64
    Cpu_run_virtual_total     uint64
    Ac_comm                   [32]int8
    Ac_sched                  uint8
    Ac_pad                    [3]uint8
    Pad_cgo_2                 [4]byte
    Ac_uid                    uint32
    Ac_gid                    uint32
    Ac_pid                    uint32
    Ac_ppid                   uint32
    Ac_btime                  uint32
    Pad_cgo_3                 [4]byte
    Ac_etime                  uint64
    Ac_utime                  uint64
    Ac_stime                  uint64
    Ac_minflt                 uint64
    Ac_majflt                 uint64
    Coremem                   uint64
    Virtmem                   uint64
    Hiwater_rss               uint64
    Hiwater_vm                uint64
    Read_char                 uint64
    Write_char                uint64
    Read_syscalls             uint64
    Write_syscalls            uint64
    Read_bytes                uint64
    Write_bytes               uint64
    Cancelled_write_bytes     uint64
    Nvcsw                     uint64
    Nivcsw                    uint64
    Ac_utimescaled            uint64
    Ac_stimescaled            uint64
    Cpu_scaled_run_real_total uint64
    Freepages_count           uint64
    Freepages_delay_total     uint64
}

type Termios Uses

type Termios struct {
    Iflag  uint32
    Oflag  uint32
    Cflag  uint32
    Lflag  uint32
    Line   uint8
    Cc     [19]uint8
    Ispeed uint32
    Ospeed uint32
}

func IoctlGetTermios Uses

func IoctlGetTermios(fd int, req uint) (*Termios, error)

type Time_t Uses

type Time_t int64

func Time Uses

func Time(t *Time_t) (tt Time_t, err error)

type Timespec Uses

type Timespec struct {
    Sec  int64
    Nsec int64
}

func NsecToTimespec Uses

func NsecToTimespec(nsec int64) (ts Timespec)

func (*Timespec) Nano Uses

func (ts *Timespec) Nano() int64

func (*Timespec) Unix Uses

func (ts *Timespec) Unix() (sec int64, nsec int64)

type Timeval Uses

type Timeval struct {
    Sec  int64
    Usec int64
}

func NsecToTimeval Uses

func NsecToTimeval(nsec int64) (tv Timeval)

func (*Timeval) Nano Uses

func (tv *Timeval) Nano() int64

func (*Timeval) Unix Uses

func (tv *Timeval) Unix() (sec int64, nsec int64)

type Timex Uses

type Timex struct {
    Modes     uint32
    Pad_cgo_0 [4]byte
    Offset    int64
    Freq      int64
    Maxerror  int64
    Esterror  int64
    Status    int32
    Pad_cgo_1 [4]byte
    Constant  int64
    Precision int64
    Tolerance int64
    Time      Timeval
    Tick      int64
    Ppsfreq   int64
    Jitter    int64
    Shift     int32
    Pad_cgo_2 [4]byte
    Stabil    int64
    Jitcnt    int64
    Calcnt    int64
    Errcnt    int64
    Stbcnt    int64
    Tai       int32
    Pad_cgo_3 [44]byte
}

type Tms Uses

type Tms struct {
    Utime  int64
    Stime  int64
    Cutime int64
    Cstime int64
}

type Ucred Uses

type Ucred struct {
    Pid int32
    Uid uint32
    Gid uint32
}

func GetsockoptUcred Uses

func GetsockoptUcred(fd, level, opt int) (*Ucred, error)

func ParseUnixCredentials Uses

func ParseUnixCredentials(m *SocketControlMessage) (*Ucred, error)

ParseUnixCredentials decodes a socket control message that contains credentials in a Ucred structure. To receive such a message, the SO_PASSCRED option must be enabled on the socket.

type Ustat_t Uses

type Ustat_t struct {
    Tfree     int32
    Pad_cgo_0 [4]byte
    Tinode    uint64
    Fname     [6]int8
    Fpack     [6]int8
    Pad_cgo_1 [4]byte
}

type Utimbuf Uses

type Utimbuf struct {
    Actime  int64
    Modtime int64
}

type Utsname Uses

type Utsname struct {
    Sysname    [65]int8
    Nodename   [65]int8
    Release    [65]int8
    Version    [65]int8
    Machine    [65]int8
    Domainname [65]int8
}

type WaitStatus Uses

type WaitStatus uint32

func (WaitStatus) Continued Uses

func (w WaitStatus) Continued() bool

func (WaitStatus) CoreDump Uses

func (w WaitStatus) CoreDump() bool

func (WaitStatus) ExitStatus Uses

func (w WaitStatus) ExitStatus() int

func (WaitStatus) Exited Uses

func (w WaitStatus) Exited() bool

func (WaitStatus) Signal Uses

func (w WaitStatus) Signal() syscall.Signal

func (WaitStatus) Signaled Uses

func (w WaitStatus) Signaled() bool

func (WaitStatus) StopSignal Uses

func (w WaitStatus) StopSignal() syscall.Signal

func (WaitStatus) Stopped Uses

func (w WaitStatus) Stopped() bool

func (WaitStatus) TrapCause Uses

func (w WaitStatus) TrapCause() int

type Winsize Uses

type Winsize struct {
    Row    uint16
    Col    uint16
    Xpixel uint16
    Ypixel uint16
}

func IoctlGetWinsize Uses

func IoctlGetWinsize(fd int, req uint) (*Winsize, error)

Package unix imports 5 packages (graph) and is imported by 761 packages. Updated 2017-09-19. Refresh now. Tools for package owners.