import "syscall"

このパッケージでは、低レベルのオペレーティングシステムプリミティブのインタフェースを扱っています。細部は根底にあるシステムに深く依存しています。このパッケージは主に、より汎用性の高いインタフェースを提供している「os」、「time」、「net」などの他のパッケージ内で使用されます。できるだけこのパッケージではなくそれらを使用するようにしてください。このパッケージ内の関数やデータがの詳細については、オペレーティングシステムのマニュアルを参照してください。これらの関数の呼び出しがerrno == 0を返すときは、成功したことを表します。それ以外の値のときは、errnoはオペレーティングシステムのエラー番号で、発生したエラーを表します。

パッケージファイル

exec_unix.go exec_windows.go str.go syscall.go syscall_386.go syscall_amd64.go syscall_arm.go syscall_bsd.go syscall_darwin.go syscall_darwin_386.go syscall_darwin_amd64.go syscall_freebsd.go syscall_freebsd_386.go syscall_freebsd_amd64.go syscall_linux.go syscall_linux_386.go syscall_linux_amd64.go syscall_linux_arm.go syscall_nacl.go syscall_nacl_386.go syscall_unix.go syscall_windows.go syscall_windows_386.go zerrors_darwin_386.go zerrors_darwin_amd64.go zerrors_freebsd_386.go zerrors_freebsd_amd64.go zerrors_linux_386.go zerrors_linux_amd64.go zerrors_linux_arm.go zerrors_nacl_386.go zerrors_windows_386.go zsyscall_darwin_386.go zsyscall_darwin_amd64.go zsyscall_freebsd_386.go zsyscall_freebsd_amd64.go zsyscall_linux_386.go zsyscall_linux_amd64.go zsyscall_linux_arm.go zsyscall_nacl_386.go zsyscall_windows_386.go zsysnum_darwin_386.go zsysnum_darwin_amd64.go zsysnum_freebsd_386.go zsysnum_freebsd_amd64.go zsysnum_linux_386.go zsysnum_linux_amd64.go zsysnum_linux_arm.go zsysnum_nacl_386.go zsysnum_windows_386.go ztypes_darwin_386.go ztypes_darwin_amd64.go ztypes_freebsd_386.go ztypes_freebsd_amd64.go ztypes_linux_386.go ztypes_linux_amd64.go ztypes_linux_arm.go ztypes_nacl.go ztypes_nacl_386.go ztypes_windows_386.go

定数

Constants

const (
    AF_APPLETALK                = 0x10
    AF_ARP                      = 0x23
    AF_ATM                      = 0x1e
    AF_BLUETOOTH                = 0x24
    AF_CCITT                    = 0xa
    AF_CHAOS                    = 0x5
    AF_CNT                      = 0x15
    AF_COIP                     = 0x14
    AF_DATAKIT                  = 0x9
    AF_DECnet                   = 0xc
    AF_DLI                      = 0xd
    AF_E164                     = 0x1a
    AF_ECMA                     = 0x8
    AF_HYLINK                   = 0xf
    AF_IEEE80211                = 0x25
    AF_IMPLINK                  = 0x3
    AF_INET                     = 0x2
    AF_INET6                    = 0x1c
    AF_IPX                      = 0x17
    AF_ISDN                     = 0x1a
    AF_ISO                      = 0x7
    AF_LAT                      = 0xe
    AF_LINK                     = 0x12
    AF_LOCAL                    = 0x1
    AF_MAX                      = 0x26
    AF_NATM                     = 0x1d
    AF_NETBIOS                  = 0x6
    AF_NETGRAPH                 = 0x20
    AF_OSI                      = 0x7
    AF_PUP                      = 0x4
    AF_ROUTE                    = 0x11
    AF_SCLUSTER                 = 0x22
    AF_SIP                      = 0x18
    AF_SLOW                     = 0x21
    AF_SNA                      = 0xb
    AF_UNIX                     = 0x1
    AF_UNSPEC                   = 0
    AF_VENDOR00                 = 0x27
    AF_VENDOR01                 = 0x29
    AF_VENDOR02                 = 0x2b
    AF_VENDOR03                 = 0x2d
    AF_VENDOR04                 = 0x2f
    AF_VENDOR05                 = 0x31
    AF_VENDOR06                 = 0x33
    AF_VENDOR07                 = 0x35
    AF_VENDOR08                 = 0x37
    AF_VENDOR09                 = 0x39
    AF_VENDOR10                 = 0x3b
    AF_VENDOR11                 = 0x3d
    AF_VENDOR12                 = 0x3f
    AF_VENDOR13                 = 0x41
    AF_VENDOR14                 = 0x43
    AF_VENDOR15                 = 0x45
    AF_VENDOR16                 = 0x47
    AF_VENDOR17                 = 0x49
    AF_VENDOR18                 = 0x4b
    AF_VENDOR19                 = 0x4d
    AF_VENDOR20                 = 0x4f
    AF_VENDOR21                 = 0x51
    AF_VENDOR22                 = 0x53
    AF_VENDOR23                 = 0x55
    AF_VENDOR24                 = 0x57
    AF_VENDOR25                 = 0x59
    AF_VENDOR26                 = 0x5b
    AF_VENDOR27                 = 0x5d
    AF_VENDOR28                 = 0x5f
    AF_VENDOR29                 = 0x61
    AF_VENDOR30                 = 0x63
    AF_VENDOR31                 = 0x65
    AF_VENDOR32                 = 0x67
    AF_VENDOR33                 = 0x69
    AF_VENDOR34                 = 0x6b
    AF_VENDOR35                 = 0x6d
    AF_VENDOR36                 = 0x6f
    AF_VENDOR37                 = 0x71
    AF_VENDOR38                 = 0x73
    AF_VENDOR39                 = 0x75
    AF_VENDOR40                 = 0x77
    AF_VENDOR41                 = 0x79
    AF_VENDOR42                 = 0x7b
    AF_VENDOR43                 = 0x7d
    AF_VENDOR44                 = 0x7f
    AF_VENDOR45                 = 0x81
    AF_VENDOR46                 = 0x83
    AF_VENDOR47                 = 0x85
    E2BIG                       = 0x7
    EACCES                      = 0xd
    EADDRINUSE                  = 0x30
    EADDRNOTAVAIL               = 0x31
    EAFNOSUPPORT                = 0x2f
    EAGAIN                      = 0x23
    EALREADY                    = 0x25
    EAUTH                       = 0x50
    EBADF                       = 0x9
    EBADMSG                     = 0x59
    EBADRPC                     = 0x48
    EBUSY                       = 0x10
    ECANCELED                   = 0x55
    ECHILD                      = 0xa
    ECONNABORTED                = 0x35
    ECONNREFUSED                = 0x3d
    ECONNRESET                  = 0x36
    EDEADLK                     = 0xb
    EDESTADDRREQ                = 0x27
    EDOM                        = 0x21
    EDOOFUS                     = 0x58
    EDQUOT                      = 0x45
    EEXIST                      = 0x11
    EFAULT                      = 0xe
    EFBIG                       = 0x1b
    EFTYPE                      = 0x4f
    EHOSTDOWN                   = 0x40
    EHOSTUNREACH                = 0x41
    EIDRM                       = 0x52
    EILSEQ                      = 0x56
    EINPROGRESS                 = 0x24
    EINTR                       = 0x4
    EINVAL                      = 0x16
    EIO                         = 0x5
    EISCONN                     = 0x38
    EISDIR                      = 0x15
    ELAST                       = 0x5c
    ELOOP                       = 0x3e
    EMFILE                      = 0x18
    EMLINK                      = 0x1f
    EMSGSIZE                    = 0x28
    EMULTIHOP                   = 0x5a
    ENAMETOOLONG                = 0x3f
    ENEEDAUTH                   = 0x51
    ENETDOWN                    = 0x32
    ENETRESET                   = 0x34
    ENETUNREACH                 = 0x33
    ENFILE                      = 0x17
    ENOATTR                     = 0x57
    ENOBUFS                     = 0x37
    ENODEV                      = 0x13
    ENOENT                      = 0x2
    ENOEXEC                     = 0x8
    ENOLCK                      = 0x4d
    ENOLINK                     = 0x5b
    ENOMEM                      = 0xc
    ENOMSG                      = 0x53
    ENOPROTOOPT                 = 0x2a
    ENOSPC                      = 0x1c
    ENOSYS                      = 0x4e
    ENOTBLK                     = 0xf
    ENOTCONN                    = 0x39
    ENOTDIR                     = 0x14
    ENOTEMPTY                   = 0x42
    ENOTSOCK                    = 0x26
    ENOTSUP                     = 0x2d
    ENOTTY                      = 0x19
    ENXIO                       = 0x6
    EOPNOTSUPP                  = 0x2d
    EOVERFLOW                   = 0x54
    EPERM                       = 0x1
    EPFNOSUPPORT                = 0x2e
    EPIPE                       = 0x20
    EPROCLIM                    = 0x43
    EPROCUNAVAIL                = 0x4c
    EPROGMISMATCH               = 0x4b
    EPROGUNAVAIL                = 0x4a
    EPROTO                      = 0x5c
    EPROTONOSUPPORT             = 0x2b
    EPROTOTYPE                  = 0x29
    ERANGE                      = 0x22
    EREMOTE                     = 0x47
    EROFS                       = 0x1e
    ERPCMISMATCH                = 0x49
    ESHUTDOWN                   = 0x3a
    ESOCKTNOSUPPORT             = 0x2c
    ESPIPE                      = 0x1d
    ESRCH                       = 0x3
    ESTALE                      = 0x46
    ETIMEDOUT                   = 0x3c
    ETOOMANYREFS                = 0x3b
    ETXTBSY                     = 0x1a
    EUSERS                      = 0x44
    EVFILT_AIO                  = -0x3
    EVFILT_FS                   = -0x9
    EVFILT_LIO                  = -0xa
    EVFILT_NETDEV               = -0x8
    EVFILT_PROC                 = -0x5
    EVFILT_READ                 = -0x1
    EVFILT_SIGNAL               = -0x6
    EVFILT_SYSCOUNT             = 0xa
    EVFILT_TIMER                = -0x7
    EVFILT_VNODE                = -0x4
    EVFILT_WRITE                = -0x2
    EV_ADD                      = 0x1
    EV_CLEAR                    = 0x20
    EV_DELETE                   = 0x2
    EV_DISABLE                  = 0x8
    EV_ENABLE                   = 0x4
    EV_EOF                      = 0x8000
    EV_ERROR                    = 0x4000
    EV_FLAG1                    = 0x2000
    EV_ONESHOT                  = 0x10
    EV_SYSFLAGS                 = 0xf000
    EWOULDBLOCK                 = 0x23
    EXDEV                       = 0x12
    FD_CLOEXEC                  = 0x1
    FD_SETSIZE                  = 0x400
    F_CANCEL                    = 0x5
    F_DUP2FD                    = 0xa
    F_DUPFD                     = 0
    F_GETFD                     = 0x1
    F_GETFL                     = 0x3
    F_GETLK                     = 0xb
    F_GETOWN                    = 0x5
    F_OGETLK                    = 0x7
    F_OSETLK                    = 0x8
    F_OSETLKW                   = 0x9
    F_RDLCK                     = 0x1
    F_SETFD                     = 0x2
    F_SETFL                     = 0x4
    F_SETLK                     = 0xc
    F_SETLKW                    = 0xd
    F_SETLK_REMOTE              = 0xe
    F_SETOWN                    = 0x6
    F_UNLCK                     = 0x2
    F_UNLCKSYS                  = 0x4
    F_WRLCK                     = 0x3
    IPPROTO_3PC                 = 0x22
    IPPROTO_ADFS                = 0x44
    IPPROTO_AH                  = 0x33
    IPPROTO_AHIP                = 0x3d
    IPPROTO_APES                = 0x63
    IPPROTO_ARGUS               = 0xd
    IPPROTO_AX25                = 0x5d
    IPPROTO_BHA                 = 0x31
    IPPROTO_BLT                 = 0x1e
    IPPROTO_BRSATMON            = 0x4c
    IPPROTO_CARP                = 0x70
    IPPROTO_CFTP                = 0x3e
    IPPROTO_CHAOS               = 0x10
    IPPROTO_CMTP                = 0x26
    IPPROTO_CPHB                = 0x49
    IPPROTO_CPNX                = 0x48
    IPPROTO_DDP                 = 0x25
    IPPROTO_DGP                 = 0x56
    IPPROTO_DIVERT              = 0x102
    IPPROTO_DONE                = 0x101
    IPPROTO_DSTOPTS             = 0x3c
    IPPROTO_EGP                 = 0x8
    IPPROTO_EMCON               = 0xe
    IPPROTO_ENCAP               = 0x62
    IPPROTO_EON                 = 0x50
    IPPROTO_ESP                 = 0x32
    IPPROTO_ETHERIP             = 0x61
    IPPROTO_FRAGMENT            = 0x2c
    IPPROTO_GGP                 = 0x3
    IPPROTO_GMTP                = 0x64
    IPPROTO_GRE                 = 0x2f
    IPPROTO_HELLO               = 0x3f
    IPPROTO_HMP                 = 0x14
    IPPROTO_HOPOPTS             = 0
    IPPROTO_ICMP                = 0x1
    IPPROTO_ICMPV6              = 0x3a
    IPPROTO_IDP                 = 0x16
    IPPROTO_IDPR                = 0x23
    IPPROTO_IDRP                = 0x2d
    IPPROTO_IGMP                = 0x2
    IPPROTO_IGP                 = 0x55
    IPPROTO_IGRP                = 0x58
    IPPROTO_IL                  = 0x28
    IPPROTO_INLSP               = 0x34
    IPPROTO_INP                 = 0x20
    IPPROTO_IP                  = 0
    IPPROTO_IPCOMP              = 0x6c
    IPPROTO_IPCV                = 0x47
    IPPROTO_IPEIP               = 0x5e
    IPPROTO_IPIP                = 0x4
    IPPROTO_IPPC                = 0x43
    IPPROTO_IPV4                = 0x4
    IPPROTO_IPV6                = 0x29
    IPPROTO_IRTP                = 0x1c
    IPPROTO_KRYPTOLAN           = 0x41
    IPPROTO_LARP                = 0x5b
    IPPROTO_LEAF1               = 0x19
    IPPROTO_LEAF2               = 0x1a
    IPPROTO_MAX                 = 0x100
    IPPROTO_MAXID               = 0x34
    IPPROTO_MEAS                = 0x13
    IPPROTO_MHRP                = 0x30
    IPPROTO_MICP                = 0x5f
    IPPROTO_MOBILE              = 0x37
    IPPROTO_MTP                 = 0x5c
    IPPROTO_MUX                 = 0x12
    IPPROTO_ND                  = 0x4d
    IPPROTO_NHRP                = 0x36
    IPPROTO_NONE                = 0x3b
    IPPROTO_NSP                 = 0x1f
    IPPROTO_NVPII               = 0xb
    IPPROTO_OLD_DIVERT          = 0xfe
    IPPROTO_OSPFIGP             = 0x59
    IPPROTO_PFSYNC              = 0xf0
    IPPROTO_PGM                 = 0x71
    IPPROTO_PIGP                = 0x9
    IPPROTO_PIM                 = 0x67
    IPPROTO_PRM                 = 0x15
    IPPROTO_PUP                 = 0xc
    IPPROTO_PVP                 = 0x4b
    IPPROTO_RAW                 = 0xff
    IPPROTO_RCCMON              = 0xa
    IPPROTO_RDP                 = 0x1b
    IPPROTO_ROUTING             = 0x2b
    IPPROTO_RSVP                = 0x2e
    IPPROTO_RVD                 = 0x42
    IPPROTO_SATEXPAK            = 0x40
    IPPROTO_SATMON              = 0x45
    IPPROTO_SCCSP               = 0x60
    IPPROTO_SCTP                = 0x84
    IPPROTO_SDRP                = 0x2a
    IPPROTO_SEP                 = 0x21
    IPPROTO_SKIP                = 0x39
    IPPROTO_SPACER              = 0x7fff
    IPPROTO_SRPC                = 0x5a
    IPPROTO_ST                  = 0x7
    IPPROTO_SVMTP               = 0x52
    IPPROTO_SWIPE               = 0x35
    IPPROTO_TCF                 = 0x57
    IPPROTO_TCP                 = 0x6
    IPPROTO_TLSP                = 0x38
    IPPROTO_TP                  = 0x1d
    IPPROTO_TPXX                = 0x27
    IPPROTO_TRUNK1              = 0x17
    IPPROTO_TRUNK2              = 0x18
    IPPROTO_TTP                 = 0x54
    IPPROTO_UDP                 = 0x11
    IPPROTO_VINES               = 0x53
    IPPROTO_VISA                = 0x46
    IPPROTO_VMTP                = 0x51
    IPPROTO_WBEXPAK             = 0x4f
    IPPROTO_WBMON               = 0x4e
    IPPROTO_WSN                 = 0x4a
    IPPROTO_XNET                = 0xf
    IPPROTO_XTP                 = 0x24
    IPV6_AUTOFLOWLABEL          = 0x3b
    IPV6_BINDANY                = 0x40
    IPV6_BINDV6ONLY             = 0x1b
    IPV6_CHECKSUM               = 0x1a
    IPV6_DEFAULT_MULTICAST_HOPS = 0x1
    IPV6_DEFAULT_MULTICAST_LOOP = 0x1
    IPV6_DEFHLIM                = 0x40
    IPV6_DONTFRAG               = 0x3e
    IPV6_DSTOPTS                = 0x32
    IPV6_FAITH                  = 0x1d
    IPV6_FLOWINFO_MASK          = 0xffffff0f
    IPV6_FLOWLABEL_MASK         = 0xffff0f00
    IPV6_FRAGTTL                = 0x78
    IPV6_FW_ADD                 = 0x1e
    IPV6_FW_DEL                 = 0x1f
    IPV6_FW_FLUSH               = 0x20
    IPV6_FW_GET                 = 0x22
    IPV6_FW_ZERO                = 0x21
    IPV6_HLIMDEC                = 0x1
    IPV6_HOPLIMIT               = 0x2f
    IPV6_HOPOPTS                = 0x31
    IPV6_IPSEC_POLICY           = 0x1c
    IPV6_JOIN_GROUP             = 0xc
    IPV6_LEAVE_GROUP            = 0xd
    IPV6_MAXHLIM                = 0xff
    IPV6_MAXOPTHDR              = 0x800
    IPV6_MAXPACKET              = 0xffff
    IPV6_MAX_GROUP_SRC_FILTER   = 0x200
    IPV6_MAX_MEMBERSHIPS        = 0xfff
    IPV6_MAX_SOCK_SRC_FILTER    = 0x80
    IPV6_MIN_MEMBERSHIPS        = 0x1f
    IPV6_MMTU                   = 0x500
    IPV6_MSFILTER               = 0x4a
    IPV6_MULTICAST_HOPS         = 0xa
    IPV6_MULTICAST_IF           = 0x9
    IPV6_MULTICAST_LOOP         = 0xb
    IPV6_NEXTHOP                = 0x30
    IPV6_PATHMTU                = 0x2c
    IPV6_PKTINFO                = 0x2e
    IPV6_PORTRANGE              = 0xe
    IPV6_PORTRANGE_DEFAULT      = 0
    IPV6_PORTRANGE_HIGH         = 0x1
    IPV6_PORTRANGE_LOW          = 0x2
    IPV6_PREFER_TEMPADDR        = 0x3f
    IPV6_RECVDSTOPTS            = 0x28
    IPV6_RECVHOPLIMIT           = 0x25
    IPV6_RECVHOPOPTS            = 0x27
    IPV6_RECVPATHMTU            = 0x2b
    IPV6_RECVPKTINFO            = 0x24
    IPV6_RECVRTHDR              = 0x26
    IPV6_RECVTCLASS             = 0x39
    IPV6_RTHDR                  = 0x33
    IPV6_RTHDRDSTOPTS           = 0x23
    IPV6_RTHDR_LOOSE            = 0
    IPV6_RTHDR_STRICT           = 0x1
    IPV6_RTHDR_TYPE_0           = 0
    IPV6_SOCKOPT_RESERVED1      = 0x3
    IPV6_TCLASS                 = 0x3d
    IPV6_UNICAST_HOPS           = 0x4
    IPV6_USE_MIN_MTU            = 0x2a
    IPV6_V6ONLY                 = 0x1b
    IPV6_VERSION                = 0x60
    IPV6_VERSION_MASK           = 0xf0
    IP_ADD_MEMBERSHIP           = 0xc
    IP_ADD_SOURCE_MEMBERSHIP    = 0x46
    IP_BINDANY                  = 0x18
    IP_BLOCK_SOURCE             = 0x48
    IP_DEFAULT_MULTICAST_LOOP   = 0x1
    IP_DEFAULT_MULTICAST_TTL    = 0x1
    IP_DF                       = 0x4000
    IP_DONTFRAG                 = 0x43
    IP_DROP_MEMBERSHIP          = 0xd
    IP_DROP_SOURCE_MEMBERSHIP   = 0x47
    IP_DUMMYNET_CONFIGURE       = 0x3c
    IP_DUMMYNET_DEL             = 0x3d
    IP_DUMMYNET_FLUSH           = 0x3e
    IP_DUMMYNET_GET             = 0x40
    IP_FAITH                    = 0x16
    IP_FW_ADD                   = 0x32
    IP_FW_DEL                   = 0x33
    IP_FW_FLUSH                 = 0x34
    IP_FW_GET                   = 0x36
    IP_FW_NAT_CFG               = 0x38
    IP_FW_NAT_DEL               = 0x39
    IP_FW_NAT_GET_CONFIG        = 0x3a
    IP_FW_NAT_GET_LOG           = 0x3b
    IP_FW_RESETLOG              = 0x37
    IP_FW_TABLE_ADD             = 0x28
    IP_FW_TABLE_DEL             = 0x29
    IP_FW_TABLE_FLUSH           = 0x2a
    IP_FW_TABLE_GETSIZE         = 0x2b
    IP_FW_TABLE_LIST            = 0x2c
    IP_FW_ZERO                  = 0x35
    IP_HDRINCL                  = 0x2
    IP_IPSEC_POLICY             = 0x15
    IP_MAXPACKET                = 0xffff
    IP_MAX_GROUP_SRC_FILTER     = 0x200
    IP_MAX_MEMBERSHIPS          = 0xfff
    IP_MAX_SOCK_MUTE_FILTER     = 0x80
    IP_MAX_SOCK_SRC_FILTER      = 0x80
    IP_MAX_SOURCE_FILTER        = 0x400
    IP_MF                       = 0x2000
    IP_MINTTL                   = 0x42
    IP_MIN_MEMBERSHIPS          = 0x1f
    IP_MSFILTER                 = 0x4a
    IP_MSS                      = 0x240
    IP_MULTICAST_IF             = 0x9
    IP_MULTICAST_LOOP           = 0xb
    IP_MULTICAST_TTL            = 0xa
    IP_MULTICAST_VIF            = 0xe
    IP_OFFMASK                  = 0x1fff
    IP_ONESBCAST                = 0x17
    IP_OPTIONS                  = 0x1
    IP_PORTRANGE                = 0x13
    IP_PORTRANGE_DEFAULT        = 0
    IP_PORTRANGE_HIGH           = 0x1
    IP_PORTRANGE_LOW            = 0x2
    IP_RECVDSTADDR              = 0x7
    IP_RECVIF                   = 0x14
    IP_RECVOPTS                 = 0x5
    IP_RECVRETOPTS              = 0x6
    IP_RECVTTL                  = 0x41
    IP_RETOPTS                  = 0x8
    IP_RF                       = 0x8000
    IP_RSVP_OFF                 = 0x10
    IP_RSVP_ON                  = 0xf
    IP_RSVP_VIF_OFF             = 0x12
    IP_RSVP_VIF_ON              = 0x11
    IP_SENDSRCADDR              = 0x7
    IP_TOS                      = 0x3
    IP_TTL                      = 0x4
    IP_UNBLOCK_SOURCE           = 0x49
    O_ACCMODE                   = 0x3
    O_APPEND                    = 0x8
    O_ASYNC                     = 0x40
    O_CREAT                     = 0x200
    O_DIRECT                    = 0x10000
    O_DIRECTORY                 = 0x20000
    O_EXCL                      = 0x800
    O_EXEC                      = 0x40000
    O_EXLOCK                    = 0x20
    O_FSYNC                     = 0x80
    O_NDELAY                    = 0x4
    O_NOCTTY                    = 0x8000
    O_NOFOLLOW                  = 0x100
    O_NONBLOCK                  = 0x4
    O_RDONLY                    = 0
    O_RDWR                      = 0x2
    O_SHLOCK                    = 0x10
    O_SYNC                      = 0x80
    O_TRUNC                     = 0x400
    O_TTY_INIT                  = 0x80000
    O_WRONLY                    = 0x1
    SHUT_RD                     = 0
    SHUT_RDWR                   = 0x2
    SHUT_WR                     = 0x1
    SIGABRT                     = 0x6
    SIGALRM                     = 0xe
    SIGBUS                      = 0xa
    SIGCHLD                     = 0x14
    SIGCONT                     = 0x13
    SIGEMT                      = 0x7
    SIGFPE                      = 0x8
    SIGHUP                      = 0x1
    SIGILL                      = 0x4
    SIGINFO                     = 0x1d
    SIGINT                      = 0x2
    SIGIO                       = 0x17
    SIGIOT                      = 0x6
    SIGKILL                     = 0x9
    SIGLWP                      = 0x20
    SIGPIPE                     = 0xd
    SIGPROF                     = 0x1b
    SIGQUIT                     = 0x3
    SIGSEGV                     = 0xb
    SIGSTOP                     = 0x11
    SIGSYS                      = 0xc
    SIGTERM                     = 0xf
    SIGTHR                      = 0x20
    SIGTRAP                     = 0x5
    SIGTSTP                     = 0x12
    SIGTTIN                     = 0x15
    SIGTTOU                     = 0x16
    SIGURG                      = 0x10
    SIGUSR1                     = 0x1e
    SIGUSR2                     = 0x1f
    SIGVTALRM                   = 0x1a
    SIGWINCH                    = 0x1c
    SIGXCPU                     = 0x18
    SIGXFSZ                     = 0x19
    SOCK_DGRAM                  = 0x2
    SOCK_MAXADDRLEN             = 0xff
    SOCK_RAW                    = 0x3
    SOCK_RDM                    = 0x4
    SOCK_SEQPACKET              = 0x5
    SOCK_STREAM                 = 0x1
    SOL_SOCKET                  = 0xffff
    SOMAXCONN                   = 0x80
    SO_ACCEPTCONN               = 0x2
    SO_ACCEPTFILTER             = 0x1000
    SO_BINTIME                  = 0x2000
    SO_BROADCAST                = 0x20
    SO_DEBUG                    = 0x1
    SO_DONTROUTE                = 0x10
    SO_ERROR                    = 0x1007
    SO_KEEPALIVE                = 0x8
    SO_LABEL                    = 0x1009
    SO_LINGER                   = 0x80
    SO_LISTENINCQLEN            = 0x1013
    SO_LISTENQLEN               = 0x1012
    SO_LISTENQLIMIT             = 0x1011
    SO_NOSIGPIPE                = 0x800
    SO_NO_DDP                   = 0x8000
    SO_NO_OFFLOAD               = 0x4000
    SO_OOBINLINE                = 0x100
    SO_PEERLABEL                = 0x1010
    SO_RCVBUF                   = 0x1002
    SO_RCVLOWAT                 = 0x1004
    SO_RCVTIMEO                 = 0x1006
    SO_REUSEADDR                = 0x4
    SO_REUSEPORT                = 0x200
    SO_SETFIB                   = 0x1014
    SO_SNDBUF                   = 0x1001
    SO_SNDLOWAT                 = 0x1003
    SO_SNDTIMEO                 = 0x1005
    SO_TIMESTAMP                = 0x400
    SO_TYPE                     = 0x1008
    SO_USELOOPBACK              = 0x40
    TCP_CA_NAME_MAX             = 0x10
    TCP_CONGESTION              = 0x40
    TCP_INFO                    = 0x20
    TCP_MAXBURST                = 0x4
    TCP_MAXHLEN                 = 0x3c
    TCP_MAXOLEN                 = 0x28
    TCP_MAXSEG                  = 0x2
    TCP_MAXWIN                  = 0xffff
    TCP_MAX_SACK                = 0x4
    TCP_MAX_WINSHIFT            = 0xe
    TCP_MD5SIG                  = 0x10
    TCP_MINMSS                  = 0xd8
    TCP_MSS                     = 0x200
    TCP_NODELAY                 = 0x1
    TCP_NOOPT                   = 0x8
    TCP_NOPUSH                  = 0x4
    WCONTINUED                  = 0x4
    WCOREFLAG                   = 0x80
    WLINUXCLONE                 = 0x80000000
    WNOHANG                     = 0x1
    WNOWAIT                     = 0x8
    WSTOPPED                    = 0x2
    WUNTRACED                   = 0x2
)
const (
    // SYS_NOSYS = 0;  // { int nosys(void); } syscall nosys_args int
    SYS_EXIT                     = 1   // { void sys_exit(int rval); } exit \
    SYS_FORK                     = 2   // { int fork(void); }
    SYS_READ                     = 3   // { ssize_t read(int fd, void *buf, \
    SYS_WRITE                    = 4   // { ssize_t write(int fd, const void *buf, \
    SYS_OPEN                     = 5   // { int open(char *path, int flags, int mode); }
    SYS_CLOSE                    = 6   // { int close(int fd); }
    SYS_WAIT4                    = 7   // { int wait4(int pid, int *status, \
    SYS_LINK                     = 9   // { int link(char *path, char *link); }
    SYS_UNLINK                   = 10  // { int unlink(char *path); }
    SYS_CHDIR                    = 12  // { int chdir(char *path); }
    SYS_FCHDIR                   = 13  // { int fchdir(int fd); }
    SYS_MKNOD                    = 14  // { int mknod(char *path, int mode, int dev); }
    SYS_CHMOD                    = 15  // { int chmod(char *path, int mode); }
    SYS_CHOWN                    = 16  // { int chown(char *path, int uid, int gid); }
    SYS_OBREAK                   = 17  // { int obreak(char *nsize); } break \
    SYS_GETPID                   = 20  // { pid_t getpid(void); }
    SYS_MOUNT                    = 21  // { int mount(char *type, char *path, \
    SYS_UNMOUNT                  = 22  // { int unmount(char *path, int flags); }
    SYS_SETUID                   = 23  // { int setuid(uid_t uid); }
    SYS_GETUID                   = 24  // { uid_t getuid(void); }
    SYS_GETEUID                  = 25  // { uid_t geteuid(void); }
    SYS_PTRACE                   = 26  // { int ptrace(int req, pid_t pid, \
    SYS_RECVMSG                  = 27  // { int recvmsg(int s, struct msghdr *msg, \
    SYS_SENDMSG                  = 28  // { int sendmsg(int s, struct msghdr *msg, \
    SYS_RECVFROM                 = 29  // { int recvfrom(int s, caddr_t buf, \
    SYS_ACCEPT                   = 30  // { int accept(int s, \
    SYS_GETPEERNAME              = 31  // { int getpeername(int fdes, \
    SYS_GETSOCKNAME              = 32  // { int getsockname(int fdes, \
    SYS_ACCESS                   = 33  // { int access(char *path, int flags); }
    SYS_CHFLAGS                  = 34  // { int chflags(char *path, int flags); }
    SYS_FCHFLAGS                 = 35  // { int fchflags(int fd, int flags); }
    SYS_SYNC                     = 36  // { int sync(void); }
    SYS_KILL                     = 37  // { int kill(int pid, int signum); }
    SYS_GETPPID                  = 39  // { pid_t getppid(void); }
    SYS_DUP                      = 41  // { int dup(u_int fd); }
    SYS_PIPE                     = 42  // { int pipe(void); }
    SYS_GETEGID                  = 43  // { gid_t getegid(void); }
    SYS_PROFIL                   = 44  // { int profil(caddr_t samples, size_t size, \
    SYS_KTRACE                   = 45  // { int ktrace(const char *fname, int ops, \
    SYS_GETGID                   = 47  // { gid_t getgid(void); }
    SYS_GETLOGIN                 = 49  // { int getlogin(char *namebuf, u_int \
    SYS_SETLOGIN                 = 50  // { int setlogin(char *namebuf); }
    SYS_ACCT                     = 51  // { int acct(char *path); }
    SYS_SIGALTSTACK              = 53  // { int sigaltstack(stack_t *ss, \
    SYS_IOCTL                    = 54  // { int ioctl(int fd, u_long com, \
    SYS_REBOOT                   = 55  // { int reboot(int opt); }
    SYS_REVOKE                   = 56  // { int revoke(char *path); }
    SYS_SYMLINK                  = 57  // { int symlink(char *path, char *link); }
    SYS_READLINK                 = 58  // { ssize_t readlink(char *path, char *buf, \
    SYS_EXECVE                   = 59  // { int execve(char *fname, char **argv, \
    SYS_UMASK                    = 60  // { int umask(int newmask); } umask umask_args \
    SYS_CHROOT                   = 61  // { int chroot(char *path); }
    SYS_MSYNC                    = 65  // { int msync(void *addr, size_t len, \
    SYS_VFORK                    = 66  // { int vfork(void); }
    SYS_SBRK                     = 69  // { int sbrk(int incr); }
    SYS_SSTK                     = 70  // { int sstk(int incr); }
    SYS_OVADVISE                 = 72  // { int ovadvise(int anom); } vadvise \
    SYS_MUNMAP                   = 73  // { int munmap(void *addr, size_t len); }
    SYS_MPROTECT                 = 74  // { int mprotect(const void *addr, size_t len, \
    SYS_MADVISE                  = 75  // { int madvise(void *addr, size_t len, \
    SYS_MINCORE                  = 78  // { int mincore(const void *addr, size_t len, \
    SYS_GETGROUPS                = 79  // { int getgroups(u_int gidsetsize, \
    SYS_SETGROUPS                = 80  // { int setgroups(u_int gidsetsize, \
    SYS_GETPGRP                  = 81  // { int getpgrp(void); }
    SYS_SETPGID                  = 82  // { int setpgid(int pid, int pgid); }
    SYS_SETITIMER                = 83  // { int setitimer(u_int which, struct \
    SYS_SWAPON                   = 85  // { int swapon(char *name); }
    SYS_GETITIMER                = 86  // { int getitimer(u_int which, \
    SYS_GETDTABLESIZE            = 89  // { int getdtablesize(void); }
    SYS_DUP2                     = 90  // { int dup2(u_int from, u_int to); }
    SYS_FCNTL                    = 92  // { int fcntl(int fd, int cmd, long arg); }
    SYS_SELECT                   = 93  // { int select(int nd, fd_set *in, fd_set *ou, \
    SYS_FSYNC                    = 95  // { int fsync(int fd); }
    SYS_SETPRIORITY              = 96  // { int setpriority(int which, int who, \
    SYS_SOCKET                   = 97  // { int socket(int domain, int type, \
    SYS_CONNECT                  = 98  // { int connect(int s, caddr_t name, \
    SYS_GETPRIORITY              = 100 // { int getpriority(int which, int who); }
    SYS_BIND                     = 104 // { int bind(int s, caddr_t name, \
    SYS_SETSOCKOPT               = 105 // { int setsockopt(int s, int level, int name, \
    SYS_LISTEN                   = 106 // { int listen(int s, int backlog); }
    SYS_GETTIMEOFDAY             = 116 // { int gettimeofday(struct timeval *tp, \
    SYS_GETRUSAGE                = 117 // { int getrusage(int who, \
    SYS_GETSOCKOPT               = 118 // { int getsockopt(int s, int level, int name, \
    SYS_READV                    = 120 // { int readv(int fd, struct iovec *iovp, \
    SYS_WRITEV                   = 121 // { int writev(int fd, struct iovec *iovp, \
    SYS_SETTIMEOFDAY             = 122 // { int settimeofday(struct timeval *tv, \
    SYS_FCHOWN                   = 123 // { int fchown(int fd, int uid, int gid); }
    SYS_FCHMOD                   = 124 // { int fchmod(int fd, int mode); }
    SYS_SETREUID                 = 126 // { int setreuid(int ruid, int euid); }
    SYS_SETREGID                 = 127 // { int setregid(int rgid, int egid); }
    SYS_RENAME                   = 128 // { int rename(char *from, char *to); }
    SYS_FLOCK                    = 131 // { int flock(int fd, int how); }
    SYS_MKFIFO                   = 132 // { int mkfifo(char *path, int mode); }
    SYS_SENDTO                   = 133 // { int sendto(int s, caddr_t buf, size_t len, \
    SYS_SHUTDOWN                 = 134 // { int shutdown(int s, int how); }
    SYS_SOCKETPAIR               = 135 // { int socketpair(int domain, int type, \
    SYS_MKDIR                    = 136 // { int mkdir(char *path, int mode); }
    SYS_RMDIR                    = 137 // { int rmdir(char *path); }
    SYS_UTIMES                   = 138 // { int utimes(char *path, \
    SYS_ADJTIME                  = 140 // { int adjtime(struct timeval *delta, \
    SYS_SETSID                   = 147 // { int setsid(void); }
    SYS_QUOTACTL                 = 148 // { int quotactl(char *path, int cmd, int uid, \
    SYS_LGETFH                   = 160 // { int lgetfh(char *fname, \
    SYS_GETFH                    = 161 // { int getfh(char *fname, \
    SYS_SYSARCH                  = 165 // { int sysarch(int op, char *parms); }
    SYS_RTPRIO                   = 166 // { int rtprio(int function, pid_t pid, \
    SYS_FREEBSD6_PREAD           = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
    SYS_FREEBSD6_PWRITE          = 174 // { ssize_t freebsd6_pwrite(int fd, \
    SYS_SETFIB                   = 175 // { int setfib(int fibnum); }
    SYS_NTP_ADJTIME              = 176 // { int ntp_adjtime(struct timex *tp); }
    SYS_SETGID                   = 181 // { int setgid(gid_t gid); }
    SYS_SETEGID                  = 182 // { int setegid(gid_t egid); }
    SYS_SETEUID                  = 183 // { int seteuid(uid_t euid); }
    SYS_STAT                     = 188 // { int stat(char *path, struct stat *ub); }
    SYS_FSTAT                    = 189 // { int fstat(int fd, struct stat *sb); }
    SYS_LSTAT                    = 190 // { int lstat(char *path, struct stat *ub); }
    SYS_PATHCONF                 = 191 // { int pathconf(char *path, int name); }
    SYS_FPATHCONF                = 192 // { int fpathconf(int fd, int name); }
    SYS_GETRLIMIT                = 194 // { int getrlimit(u_int which, \
    SYS_SETRLIMIT                = 195 // { int setrlimit(u_int which, \
    SYS_GETDIRENTRIES            = 196 // { int getdirentries(int fd, char *buf, \
    SYS_FREEBSD6_MMAP            = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \
    SYS_FREEBSD6_LSEEK           = 199 // { off_t freebsd6_lseek(int fd, int pad, \
    SYS_FREEBSD6_TRUNCATE        = 200 // { int freebsd6_truncate(char *path, int pad, \
    SYS_FREEBSD6_FTRUNCATE       = 201 // { int freebsd6_ftruncate(int fd, int pad, \
    SYS___SYSCTL                 = 202 // { int __sysctl(int *name, u_int namelen, \
    SYS_MLOCK                    = 203 // { int mlock(const void *addr, size_t len); }
    SYS_MUNLOCK                  = 204 // { int munlock(const void *addr, size_t len); }
    SYS_UNDELETE                 = 205 // { int undelete(char *path); }
    SYS_FUTIMES                  = 206 // { int futimes(int fd, struct timeval *tptr); }
    SYS_GETPGID                  = 207 // { int getpgid(pid_t pid); }
    SYS_POLL                     = 209 // { int poll(struct pollfd *fds, u_int nfds, \
    SYS_CLOCK_GETTIME            = 232 // { int clock_gettime(clockid_t clock_id, \
    SYS_CLOCK_SETTIME            = 233 // { int clock_settime( \
    SYS_CLOCK_GETRES             = 234 // { int clock_getres(clockid_t clock_id, \
    SYS_KTIMER_CREATE            = 235 // { int ktimer_create(clockid_t clock_id, \
    SYS_KTIMER_DELETE            = 236 // { int ktimer_delete(int timerid); }
    SYS_KTIMER_SETTIME           = 237 // { int ktimer_settime(int timerid, int flags, \
    SYS_KTIMER_GETTIME           = 238 // { int ktimer_gettime(int timerid, struct \
    SYS_KTIMER_GETOVERRUN        = 239 // { int ktimer_getoverrun(int timerid); }
    SYS_NANOSLEEP                = 240 // { int nanosleep(const struct timespec *rqtp, \
    SYS_NTP_GETTIME              = 248 // { int ntp_gettime(struct ntptimeval *ntvp); }
    SYS_MINHERIT                 = 250 // { int minherit(void *addr, size_t len, \
    SYS_RFORK                    = 251 // { int rfork(int flags); }
    SYS_OPENBSD_POLL             = 252 // { int openbsd_poll(struct pollfd *fds, \
    SYS_ISSETUGID                = 253 // { int issetugid(void); }
    SYS_LCHOWN                   = 254 // { int lchown(char *path, int uid, int gid); }
    SYS_GETDENTS                 = 272 // { int getdents(int fd, char *buf, \
    SYS_LCHMOD                   = 274 // { int lchmod(char *path, mode_t mode); }
    SYS_LUTIMES                  = 276 // { int lutimes(char *path, \
    SYS_NSTAT                    = 278 // { int nstat(char *path, struct nstat *ub); }
    SYS_NFSTAT                   = 279 // { int nfstat(int fd, struct nstat *sb); }
    SYS_NLSTAT                   = 280 // { int nlstat(char *path, struct nstat *ub); }
    SYS_PREADV                   = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \
    SYS_PWRITEV                  = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \
    SYS_FHOPEN                   = 298 // { int fhopen(const struct fhandle *u_fhp, \
    SYS_FHSTAT                   = 299 // { int fhstat(const struct fhandle *u_fhp, \
    SYS_MODNEXT                  = 300 // { int modnext(int modid); }
    SYS_MODSTAT                  = 301 // { int modstat(int modid, \
    SYS_MODFNEXT                 = 302 // { int modfnext(int modid); }
    SYS_MODFIND                  = 303 // { int modfind(const char *name); }
    SYS_KLDLOAD                  = 304 // { int kldload(const char *file); }
    SYS_KLDUNLOAD                = 305 // { int kldunload(int fileid); }
    SYS_KLDFIND                  = 306 // { int kldfind(const char *file); }
    SYS_KLDNEXT                  = 307 // { int kldnext(int fileid); }
    SYS_KLDSTAT                  = 308 // { int kldstat(int fileid, struct \
    SYS_KLDFIRSTMOD              = 309 // { int kldfirstmod(int fileid); }
    SYS_GETSID                   = 310 // { int getsid(pid_t pid); }
    SYS_SETRESUID                = 311 // { int setresuid(uid_t ruid, uid_t euid, \
    SYS_SETRESGID                = 312 // { int setresgid(gid_t rgid, gid_t egid, \
    SYS_YIELD                    = 321 // { int yield(void); }
    SYS_MLOCKALL                 = 324 // { int mlockall(int how); }
    SYS_MUNLOCKALL               = 325 // { int munlockall(void); }
    SYS___GETCWD                 = 326 // { int __getcwd(u_char *buf, u_int buflen); }
    SYS_SCHED_SETPARAM           = 327 // { int sched_setparam (pid_t pid, \
    SYS_SCHED_GETPARAM           = 328 // { int sched_getparam (pid_t pid, struct \
    SYS_SCHED_SETSCHEDULER       = 329 // { int sched_setscheduler (pid_t pid, int \
    SYS_SCHED_GETSCHEDULER       = 330 // { int sched_getscheduler (pid_t pid); }
    SYS_SCHED_YIELD              = 331 // { int sched_yield (void); }
    SYS_SCHED_GET_PRIORITY_MAX   = 332 // { int sched_get_priority_max (int policy); }
    SYS_SCHED_GET_PRIORITY_MIN   = 333 // { int sched_get_priority_min (int policy); }
    SYS_SCHED_RR_GET_INTERVAL    = 334 // { int sched_rr_get_interval (pid_t pid, \
    SYS_UTRACE                   = 335 // { int utrace(const void *addr, size_t len); }
    SYS_KLDSYM                   = 337 // { int kldsym(int fileid, int cmd, \
    SYS_JAIL                     = 338 // { int jail(struct jail *jail); }
    SYS_SIGPROCMASK              = 340 // { int sigprocmask(int how, \
    SYS_SIGSUSPEND               = 341 // { int sigsuspend(const sigset_t *sigmask); }
    SYS_SIGPENDING               = 343 // { int sigpending(sigset_t *set); }
    SYS_SIGTIMEDWAIT             = 345 // { int sigtimedwait(const sigset_t *set, \
    SYS_SIGWAITINFO              = 346 // { int sigwaitinfo(const sigset_t *set, \
    SYS___ACL_GET_FILE           = 347 // { int __acl_get_file(const char *path, \
    SYS___ACL_SET_FILE           = 348 // { int __acl_set_file(const char *path, \
    SYS___ACL_GET_FD             = 349 // { int __acl_get_fd(int filedes, \
    SYS___ACL_SET_FD             = 350 // { int __acl_set_fd(int filedes, \
    SYS___ACL_DELETE_FILE        = 351 // { int __acl_delete_file(const char *path, \
    SYS___ACL_DELETE_FD          = 352 // { int __acl_delete_fd(int filedes, \
    SYS___ACL_ACLCHECK_FILE      = 353 // { int __acl_aclcheck_file(const char *path, \
    SYS___ACL_ACLCHECK_FD        = 354 // { int __acl_aclcheck_fd(int filedes, \
    SYS_EXTATTRCTL               = 355 // { int extattrctl(const char *path, int cmd, \
    SYS_EXTATTR_SET_FILE         = 356 // { int extattr_set_file( \
    SYS_EXTATTR_GET_FILE         = 357 // { ssize_t extattr_get_file( \
    SYS_EXTATTR_DELETE_FILE      = 358 // { int extattr_delete_file(const char *path, \
    SYS_GETRESUID                = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
    SYS_GETRESGID                = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
    SYS_KQUEUE                   = 362 // { int kqueue(void); }
    SYS_KEVENT                   = 363 // { int kevent(int fd, \
    SYS_EXTATTR_SET_FD           = 371 // { int extattr_set_fd(int fd, \
    SYS_EXTATTR_GET_FD           = 372 // { ssize_t extattr_get_fd(int fd, \
    SYS_EXTATTR_DELETE_FD        = 373 // { int extattr_delete_fd(int fd, \
    SYS___SETUGID                = 374 // { int __setugid(int flag); }
    SYS_EACCESS                  = 376 // { int eaccess(char *path, int flags); }
    SYS_NMOUNT                   = 378 // { int nmount(struct iovec *iovp, \
    SYS___MAC_GET_PROC           = 384 // { int __mac_get_proc(struct mac *mac_p); }
    SYS___MAC_SET_PROC           = 385 // { int __mac_set_proc(struct mac *mac_p); }
    SYS___MAC_GET_FD             = 386 // { int __mac_get_fd(int fd, \
    SYS___MAC_GET_FILE           = 387 // { int __mac_get_file(const char *path_p, \
    SYS___MAC_SET_FD             = 388 // { int __mac_set_fd(int fd, \
    SYS___MAC_SET_FILE           = 389 // { int __mac_set_file(const char *path_p, \
    SYS_KENV                     = 390 // { int kenv(int what, const char *name, \
    SYS_LCHFLAGS                 = 391 // { int lchflags(const char *path, int flags); }
    SYS_UUIDGEN                  = 392 // { int uuidgen(struct uuid *store, \
    SYS_SENDFILE                 = 393 // { int sendfile(int fd, int s, off_t offset, \
    SYS_MAC_SYSCALL              = 394 // { int mac_syscall(const char *policy, \
    SYS_GETFSSTAT                = 395 // { int getfsstat(struct statfs *buf, \
    SYS_STATFS                   = 396 // { int statfs(char *path, \
    SYS_FSTATFS                  = 397 // { int fstatfs(int fd, struct statfs *buf); }
    SYS_FHSTATFS                 = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
    SYS___MAC_GET_PID            = 409 // { int __mac_get_pid(pid_t pid, \
    SYS___MAC_GET_LINK           = 410 // { int __mac_get_link(const char *path_p, \
    SYS___MAC_SET_LINK           = 411 // { int __mac_set_link(const char *path_p, \
    SYS_EXTATTR_SET_LINK         = 412 // { int extattr_set_link( \
    SYS_EXTATTR_GET_LINK         = 413 // { ssize_t extattr_get_link( \
    SYS_EXTATTR_DELETE_LINK      = 414 // { int extattr_delete_link( \
    SYS___MAC_EXECVE             = 415 // { int __mac_execve(char *fname, char **argv, \
    SYS_SIGACTION                = 416 // { int sigaction(int sig, \
    SYS_SIGRETURN                = 417 // { int sigreturn( \
    SYS_GETCONTEXT               = 421 // { int getcontext(struct __ucontext *ucp); }
    SYS_SETCONTEXT               = 422 // { int setcontext( \
    SYS_SWAPCONTEXT              = 423 // { int swapcontext(struct __ucontext *oucp, \
    SYS_SWAPOFF                  = 424 // { int swapoff(const char *name); }
    SYS___ACL_GET_LINK           = 425 // { int __acl_get_link(const char *path, \
    SYS___ACL_SET_LINK           = 426 // { int __acl_set_link(const char *path, \
    SYS___ACL_DELETE_LINK        = 427 // { int __acl_delete_link(const char *path, \
    SYS___ACL_ACLCHECK_LINK      = 428 // { int __acl_aclcheck_link(const char *path, \
    SYS_SIGWAIT                  = 429 // { int sigwait(const sigset_t *set, \
    SYS_THR_CREATE               = 430 // { int thr_create(ucontext_t *ctx, long *id, \
    SYS_THR_EXIT                 = 431 // { void thr_exit(long *state); }
    SYS_THR_SELF                 = 432 // { int thr_self(long *id); }
    SYS_THR_KILL                 = 433 // { int thr_kill(long id, int sig); }
    SYS__UMTX_LOCK               = 434 // { int _umtx_lock(struct umtx *umtx); }
    SYS__UMTX_UNLOCK             = 435 // { int _umtx_unlock(struct umtx *umtx); }
    SYS_JAIL_ATTACH              = 436 // { int jail_attach(int jid); }
    SYS_EXTATTR_LIST_FD          = 437 // { ssize_t extattr_list_fd(int fd, \
    SYS_EXTATTR_LIST_FILE        = 438 // { ssize_t extattr_list_file( \
    SYS_EXTATTR_LIST_LINK        = 439 // { ssize_t extattr_list_link( \
    SYS_THR_SUSPEND              = 442 // { int thr_suspend( \
    SYS_THR_WAKE                 = 443 // { int thr_wake(long id); }
    SYS_KLDUNLOADF               = 444 // { int kldunloadf(int fileid, int flags); }
    SYS_AUDIT                    = 445 // { int audit(const void *record, \
    SYS_AUDITON                  = 446 // { int auditon(int cmd, void *data, \
    SYS_GETAUID                  = 447 // { int getauid(uid_t *auid); }
    SYS_SETAUID                  = 448 // { int setauid(uid_t *auid); }
    SYS_GETAUDIT                 = 449 // { int getaudit(struct auditinfo *auditinfo); }
    SYS_SETAUDIT                 = 450 // { int setaudit(struct auditinfo *auditinfo); }
    SYS_GETAUDIT_ADDR            = 451 // { int getaudit_addr( \
    SYS_SETAUDIT_ADDR            = 452 // { int setaudit_addr( \
    SYS_AUDITCTL                 = 453 // { int auditctl(char *path); }
    SYS__UMTX_OP                 = 454 // { int _umtx_op(void *obj, int op, \
    SYS_THR_NEW                  = 455 // { int thr_new(struct thr_param *param, \
    SYS_SIGQUEUE                 = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
    SYS_ABORT2                   = 463 // { int abort2(const char *why, int nargs, void **args); }
    SYS_THR_SET_NAME             = 464 // { int thr_set_name(long id, const char *name); }
    SYS_RTPRIO_THREAD            = 466 // { int rtprio_thread(int function, \
    SYS_SCTP_PEELOFF             = 471 // { int sctp_peeloff(int sd, uint32_t name); }
    SYS_SCTP_GENERIC_SENDMSG     = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
    SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
    SYS_SCTP_GENERIC_RECVMSG     = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
    SYS_PREAD                    = 475 // { ssize_t pread(int fd, void *buf, \
    SYS_PWRITE                   = 476 // { ssize_t pwrite(int fd, const void *buf, \
    SYS_MMAP                     = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
    SYS_LSEEK                    = 478 // { off_t lseek(int fd, off_t offset, \
    SYS_TRUNCATE                 = 479 // { int truncate(char *path, off_t length); }
    SYS_FTRUNCATE                = 480 // { int ftruncate(int fd, off_t length); }
    SYS_THR_KILL2                = 481 // { int thr_kill2(pid_t pid, long id, int sig); }
    SYS_SHM_OPEN                 = 482 // { int shm_open(const char *path, int flags, \
    SYS_SHM_UNLINK               = 483 // { int shm_unlink(const char *path); }
    SYS_CPUSET                   = 484 // { int cpuset(cpusetid_t *setid); }
    SYS_CPUSET_SETID             = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \
    SYS_CPUSET_GETID             = 486 // { int cpuset_getid(cpulevel_t level, \
    SYS_CPUSET_GETAFFINITY       = 487 // { int cpuset_getaffinity(cpulevel_t level, \
    SYS_CPUSET_SETAFFINITY       = 488 // { int cpuset_setaffinity(cpulevel_t level, \
    SYS_FACCESSAT                = 489 // { int faccessat(int fd, char *path, int mode, \
    SYS_FCHMODAT                 = 490 // { int fchmodat(int fd, char *path, mode_t mode, \
    SYS_FCHOWNAT                 = 491 // { int fchownat(int fd, char *path, uid_t uid, \
    SYS_FEXECVE                  = 492 // { int fexecve(int fd, char **argv, \
    SYS_FSTATAT                  = 493 // { int fstatat(int fd, char *path, \
    SYS_FUTIMESAT                = 494 // { int futimesat(int fd, char *path, \
    SYS_LINKAT                   = 495 // { int linkat(int fd1, char *path1, int fd2, \
    SYS_MKDIRAT                  = 496 // { int mkdirat(int fd, char *path, mode_t mode); }
    SYS_MKFIFOAT                 = 497 // { int mkfifoat(int fd, char *path, mode_t mode); }
    SYS_MKNODAT                  = 498 // { int mknodat(int fd, char *path, mode_t mode, \
    SYS_OPENAT                   = 499 // { int openat(int fd, char *path, int flag, \
    SYS_READLINKAT               = 500 // { int readlinkat(int fd, char *path, char *buf, \
    SYS_RENAMEAT                 = 501 // { int renameat(int oldfd, char *old, int newfd, \
    SYS_SYMLINKAT                = 502 // { int symlinkat(char *path1, int fd, \
    SYS_UNLINKAT                 = 503 // { int unlinkat(int fd, char *path, int flag); }
    SYS_POSIX_OPENPT             = 504 // { int posix_openpt(int flags); }
    SYS_JAIL_GET                 = 506 // { int jail_get(struct iovec *iovp, \
    SYS_JAIL_SET                 = 507 // { int jail_set(struct iovec *iovp, \
    SYS_JAIL_REMOVE              = 508 // { int jail_remove(int jid); }
    SYS_CLOSEFROM                = 509 // { int closefrom(int lowfd); }
    SYS_LPATHCONF                = 513 // { int lpathconf(char *path, int name); }
    SYS_PSELECT                  = 522 // { int pselect(int nd, fd_set *in, \
)
const (
    SYS_NULL                = 1
    SYS_OPEN                = 10
    SYS_CLOSE               = 11
    SYS_READ                = 12
    SYS_WRITE               = 13
    SYS_LSEEK               = 14
    SYS_IOCTL               = 15
    SYS_STAT                = 16
    SYS_FSTAT               = 17
    SYS_CHMOD               = 18
    SYS_SYSBRK              = 20
    SYS_MMAP                = 21
    SYS_MUNMAP              = 22
    SYS_GETDENTS            = 23
    SYS_EXIT                = 30
    SYS_GETPID              = 31
    SYS_SCHED_YIELD         = 32
    SYS_SYSCONF             = 33
    SYS_GETTIMEOFDAY        = 40
    SYS_CLOCK               = 41
    SYS_NANOSLEEP           = 42
    SYS_MULTIMEDIA_INIT     = 50
    SYS_MULTIMEDIA_SHUTDOWN = 51
    SYS_VIDEO_INIT          = 52
    SYS_VIDEO_SHUTDOWN      = 53
    SYS_VIDEO_UPDATE        = 54
    SYS_VIDEO_POLL_EVENT    = 55
    SYS_AUDIO_INIT          = 56
    SYS_AUDIO_SHUTDOWN      = 57
    SYS_AUDIO_STREAM        = 58
    SYS_IMC_MAKEBOUNDSOCK   = 60
    SYS_IMC_ACCEPT          = 61
    SYS_IMC_CONNECT         = 62
    SYS_IMC_SENDMSG         = 63
    SYS_IMC_RECVMSG         = 64
    SYS_IMC_MEM_OBJ_CREATE  = 65
    SYS_IMC_SOCKETPAIR      = 66
    SYS_MUTEX_CREATE        = 70
    SYS_MUTEX_LOCK          = 71
    SYS_MUTEX_TRYLOCK       = 72
    SYS_MUTEX_UNLOCK        = 73
    SYS_COND_CREATE         = 74
    SYS_COND_WAIT           = 75
    SYS_COND_SIGNAL         = 76
    SYS_COND_BROADCAST      = 77
    SYS_COND_TIMED_WAIT_ABS = 79
    SYS_THREAD_CREATE       = 80
    SYS_THREAD_EXIT         = 81
    SYS_TLS_INIT            = 82
    SYS_THREAD_NICE         = 83
    SYS_TLS_GET             = 84
    SYS_SRPC_GET_FD         = 90
    SYS_SEM_CREATE          = 100
    SYS_SEM_WAIT            = 101
    SYS_SEM_POST            = 102
    SYS_SEM_GET_VALUE       = 103
    SYS_DYNCODE_COPY        = 104
)
const (
    // SYS_NOSYS = 0;  // { int nosys(void); }   { indirect syscall }
    SYS_EXIT  = 1 // { void exit(int rval); }
    SYS_FORK  = 2 // { int fork(void); }
    SYS_READ  = 3 // { user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); }
    SYS_WRITE = 4 // { user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); }
    SYS_OPEN  = 5 // { int open(user_addr_t path, int flags, int mode); }
    SYS_CLOSE = 6 // { int close(int fd); }
    SYS_WAIT4 = 7 // { int wait4(int pid, user_addr_t status, int options, user_addr_t rusage); }
    // SYS_NOSYS = 8;  // { int nosys(void); }   { old creat }
    SYS_LINK   = 9  // { int link(user_addr_t path, user_addr_t link); }
    SYS_UNLINK = 10 // { int unlink(user_addr_t path); }
    // SYS_NOSYS = 11;  // { int nosys(void); }   { old execv }
    SYS_CHDIR      = 12 // { int chdir(user_addr_t path); }
    SYS_FCHDIR     = 13 // { int fchdir(int fd); }
    SYS_MKNOD      = 14 // { int mknod(user_addr_t path, int mode, int dev); }
    SYS_CHMOD      = 15 // { int chmod(user_addr_t path, int mode); }
    SYS_CHOWN      = 16 // { int chown(user_addr_t path, int uid, int gid); }
    SYS_OGETFSSTAT = 18 // { int ogetfsstat(user_addr_t buf, int bufsize, int flags); }
    SYS_GETFSSTAT  = 18 // { int getfsstat(user_addr_t buf, int bufsize, int flags); }
    // SYS_NOSYS = 19;  // { int nosys(void); }   { old lseek }
    SYS_GETPID = 20 // { int getpid(void); }
    // SYS_NOSYS = 21;  // { int nosys(void); }   { old mount }
    // SYS_NOSYS = 22;  // { int nosys(void); }   { old umount }
    SYS_SETUID      = 23 // { int setuid(uid_t uid); }
    SYS_GETUID      = 24 // { int getuid(void); }
    SYS_GETEUID     = 25 // { int geteuid(void); }
    SYS_PTRACE      = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
    SYS_RECVMSG     = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); }
    SYS_SENDMSG     = 28 // { int sendmsg(int s, caddr_t msg, int flags); }
    SYS_RECVFROM    = 29 // { int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr); }
    SYS_ACCEPT      = 30 // { int accept(int s, caddr_t name, socklen_t	*anamelen); }
    SYS_GETPEERNAME = 31 // { int getpeername(int fdes, caddr_t asa, socklen_t *alen); }
    SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, caddr_t asa, socklen_t *alen); }
    // SYS_NOSYS = 27;  // { int nosys(void); }
    // SYS_NOSYS = 28;  // { int nosys(void); }
    // SYS_NOSYS = 29;  // { int nosys(void); }
    // SYS_NOSYS = 30;  // { int nosys(void); }
    // SYS_NOSYS = 31;  // { int nosys(void); }
    // SYS_NOSYS = 32;  // { int nosys(void); }
    SYS_ACCESS   = 33 // { int access(user_addr_t path, int flags); }
    SYS_CHFLAGS  = 34 // { int chflags(char *path, int flags); }
    SYS_FCHFLAGS = 35 // { int fchflags(int fd, int flags); }
    SYS_SYNC     = 36 // { int sync(void); }
    SYS_KILL     = 37 // { int kill(int pid, int signum, int posix); }
    // SYS_NOSYS = 38;  // { int nosys(void); }   { old stat  }
    SYS_GETPPID = 39 // { int getppid(void); }
    // SYS_NOSYS = 40;  // { int nosys(void); }   { old lstat }
    SYS_DUP     = 41 // { int dup(u_int fd); }
    SYS_PIPE    = 42 // { int pipe(void); }
    SYS_GETEGID = 43 // { int getegid(void); }
    SYS_PROFIL  = 44 // { int profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
    // SYS_NOSYS = 45;  // { int nosys(void); } { old ktrace }
    SYS_SIGACTION   = 46 // { int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa); }
    SYS_GETGID      = 47 // { int getgid(void); }
    SYS_SIGPROCMASK = 48 // { int sigprocmask(int how, user_addr_t mask, user_addr_t omask); }
    SYS_GETLOGIN    = 49 // { int getlogin(char *namebuf, u_int namelen); }
    SYS_SETLOGIN    = 50 // { int setlogin(char *namebuf); }
    SYS_ACCT        = 51 // { int acct(char *path); }
    SYS_SIGPENDING  = 52 // { int sigpending(struct sigvec *osv); }
    SYS_SIGALTSTACK = 53 // { int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss); }
    SYS_IOCTL       = 54 // { int ioctl(int fd, u_long com, caddr_t data); }
    SYS_REBOOT      = 55 // { int reboot(int opt, char *command); }
    SYS_REVOKE      = 56 // { int revoke(char *path); }
    SYS_SYMLINK     = 57 // { int symlink(char *path, char *link); }
    SYS_READLINK    = 58 // { int readlink(char *path, char *buf, int count); }
    SYS_EXECVE      = 59 // { int execve(char *fname, char **argp, char **envp); }
    SYS_UMASK       = 60 // { int umask(int newmask); }
    SYS_CHROOT      = 61 // { int chroot(user_addr_t path); }
    // SYS_NOSYS = 62;  // { int nosys(void); }   { old fstat }
    // SYS_NOSYS = 63;  // { int nosys(void); }   { used internally, reserved }
    // SYS_NOSYS = 64;  // { int nosys(void); }   { old getpagesize }
    SYS_MSYNC = 65 // { int msync(caddr_t addr, size_t len, int flags); }
    SYS_VFORK = 66 // { int vfork(void); }
    // SYS_NOSYS = 67;  // { int nosys(void); }   { old vread }
    // SYS_NOSYS = 68;  // { int nosys(void); }   { old vwrite }
    SYS_SBRK = 69 // { int sbrk(int incr) NO_SYSCALL_STUB; }
    SYS_SSTK = 70 // { int sstk(int incr) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 71;  // { int nosys(void); }   { old mmap }
    SYS_OVADVISE = 72 // { int ovadvise(void) NO_SYSCALL_STUB; }   { old vadvise }
    SYS_MUNMAP   = 73 // { int munmap(caddr_t addr, size_t len); }
    SYS_MPROTECT = 74 // { int mprotect(caddr_t addr, size_t len, int prot); }
    SYS_MADVISE  = 75 // { int madvise(caddr_t addr, size_t len, int behav); }
    // SYS_NOSYS = 76;  // { int nosys(void); }   { old vhangup }
    // SYS_NOSYS = 77;  // { int nosys(void); }   { old vlimit }
    SYS_MINCORE   = 78 // { int mincore(user_addr_t addr, user_size_t len, user_addr_t vec); }
    SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); }
    SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); }
    SYS_GETPGRP   = 81 // { int getpgrp(void); }
    SYS_SETPGID   = 82 // { int setpgid(int pid, int pgid); }
    SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
    // SYS_NOSYS = 84;  // { int nosys(void); }   { old wait }
    SYS_SWAPON    = 85 // { int swapon(void); }
    SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); }
    // SYS_NOSYS = 87;  // { int nosys(void); }   { old gethostname }
    // SYS_NOSYS = 88;  // { int nosys(void); }   { old sethostname }
    SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
    SYS_DUP2          = 90 // { int dup2(u_int from, u_int to); }
    // SYS_NOSYS = 91;  // { int nosys(void); }   { old getdopt }
    SYS_FCNTL  = 92 // { int fcntl(int fd, int cmd, long arg); }
    SYS_SELECT = 93 // { int select(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv); }
    // SYS_NOSYS = 94;  // { int nosys(void); }   { old setdopt }
    SYS_FSYNC       = 95 // { int fsync(int fd); }
    SYS_SETPRIORITY = 96 // { int setpriority(int which, id_t who, int prio); }
    SYS_SOCKET      = 97 // { int socket(int domain, int type, int protocol); }
    SYS_CONNECT     = 98 // { int connect(int s, caddr_t name, socklen_t namelen); }
    // SYS_NOSYS = 97;  // { int nosys(void); }
    // SYS_NOSYS = 98;  // { int nosys(void); }
    // SYS_NOSYS = 99;  // { int nosys(void); }   { old accept }
    SYS_GETPRIORITY = 100 // { int getpriority(int which, id_t who); }
    // SYS_NOSYS = 101;  // { int nosys(void); }   { old send }
    // SYS_NOSYS = 102;  // { int nosys(void); }   { old recv }
    // SYS_NOSYS = 103;  // { int nosys(void); }   { old sigreturn }
    SYS_BIND       = 104 // { int bind(int s, caddr_t name, socklen_t namelen); }
    SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); }
    SYS_LISTEN     = 106 // { int listen(int s, int backlog); }
    // SYS_NOSYS = 104;  // { int nosys(void); }
    // SYS_NOSYS = 105;  // { int nosys(void); }
    // SYS_NOSYS = 106;  // { int nosys(void); }
    // SYS_NOSYS = 107;  // { int nosys(void); }   { old vtimes }
    // SYS_NOSYS = 108;  // { int nosys(void); }   { old sigvec }
    // SYS_NOSYS = 109;  // { int nosys(void); }   { old sigblock }
    // SYS_NOSYS = 110;  // { int nosys(void); }   { old sigsetmask }
    SYS_SIGSUSPEND = 111 // { int sigsuspend(sigset_t mask); }
    // SYS_NOSYS = 112;  // { int nosys(void); }   { old sigstack }
    // SYS_NOSYS = 113;  // { int nosys(void); }   { old recvmsg }
    // SYS_NOSYS = 114;  // { int nosys(void); }   { old sendmsg }
    // SYS_NOSYS = 113;  // { int nosys(void); }
    // SYS_NOSYS = 114;  // { int nosys(void); }
    // SYS_NOSYS = 115;  // { int nosys(void); }   { old vtrace }
    SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
    SYS_GETRUSAGE    = 117 // { int getrusage(int who, struct rusage *rusage); }
    SYS_GETSOCKOPT   = 118 // { int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); }
    // SYS_NOSYS = 118;  // { int nosys(void); }
    // SYS_NOSYS = 119;  // { int nosys(void); }   { old resuba }
    SYS_READV        = 120 // { user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); }
    SYS_WRITEV       = 121 // { user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); }
    SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, struct timezone *tzp); }
    SYS_FCHOWN       = 123 // { int fchown(int fd, int uid, int gid); }
    SYS_FCHMOD       = 124 // { int fchmod(int fd, int mode); }
    // SYS_NOSYS = 125;  // { int nosys(void); }   { old recvfrom }
    SYS_SETREUID = 126 // { int setreuid(uid_t ruid, uid_t euid); }
    SYS_SETREGID = 127 // { int setregid(gid_t rgid, gid_t egid); }
    SYS_RENAME   = 128 // { int rename(char *from, char *to); }
    // SYS_NOSYS = 129;  // { int nosys(void); }   { old truncate }
    // SYS_NOSYS = 130;  // { int nosys(void); }   { old ftruncate }
    SYS_FLOCK      = 131 // { int flock(int fd, int how); }
    SYS_MKFIFO     = 132 // { int mkfifo(user_addr_t path, int mode); }
    SYS_SENDTO     = 133 // { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen); }
    SYS_SHUTDOWN   = 134 // { int shutdown(int s, int how); }
    SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, int *rsv); }
    // SYS_NOSYS = 133;  // { int nosys(void); }
    // SYS_NOSYS = 134;  // { int nosys(void); }
    // SYS_NOSYS = 135;  // { int nosys(void); }
    SYS_MKDIR   = 136 // { int mkdir(user_addr_t path, int mode); }
    SYS_RMDIR   = 137 // { int rmdir(char *path); }
    SYS_UTIMES  = 138 // { int utimes(char *path, struct timeval *tptr); }
    SYS_FUTIMES = 139 // { int futimes(int fd, struct timeval *tptr); }
    SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, struct timeval *olddelta); }
    // SYS_NOSYS = 141;  // { int nosys(void); }   { old getpeername }
    SYS_GETHOSTUUID = 142 // { int gethostuuid(unsigned char *uuid_buf, const struct timespec *timeoutp); }
    // SYS_NOSYS = 143;  // { int nosys(void); }   { old sethostid 	}
    // SYS_NOSYS = 144;  // { int nosys(void); }   { old getrlimit }
    // SYS_NOSYS = 145;  // { int nosys(void); }   { old setrlimit }
    // SYS_NOSYS = 146;  // { int nosys(void); }   { old killpg }
    SYS_SETSID = 147 // { int setsid(void); }
    // SYS_NOSYS = 148;  // { int nosys(void); }   { old setquota }
    // SYS_NOSYS = 149;  // { int nosys(void); }   { old qquota }
    // SYS_NOSYS = 150;  // { int nosys(void); }   { old getsockname }
    SYS_GETPGID     = 151 // { int getpgid(pid_t pid); }
    SYS_SETPRIVEXEC = 152 // { int setprivexec(int flag); }
    SYS_PREAD       = 153 // { user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
    SYS_PWRITE      = 154 // { user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
    SYS_NFSSVC      = 155 // { int nfssvc(int flag, caddr_t argp); }
    // SYS_NOSYS = 155;  // { int nosys(void); }
    // SYS_NOSYS = 156;  // { int nosys(void); }   { old getdirentries }
    SYS_STATFS  = 157 // { int statfs(char *path, struct statfs *buf); }
    SYS_FSTATFS = 158 // { int fstatfs(int fd, struct statfs *buf); }
    SYS_UNMOUNT = 159 // { int unmount(user_addr_t path, int flags); }
    // SYS_NOSYS = 160;  // { int nosys(void); }   { old async_daemon }
    SYS_GETFH = 161 // { int getfh(char *fname, fhandle_t *fhp); }
    // SYS_NOSYS = 161;  // { int nosys(void); }
    // SYS_NOSYS = 162;  // { int nosys(void); }   { old getdomainname }
    // SYS_NOSYS = 163;  // { int nosys(void); }   { old setdomainname }
    // SYS_NOSYS = 164;  // { int nosys(void); }
    SYS_QUOTACTL = 165 // { int quotactl(const char *path, int cmd, int uid, caddr_t arg); }
    // SYS_NOSYS = 166;  // { int nosys(void); }   { old exportfs }
    SYS_MOUNT = 167 // { int mount(char *type, char *path, int flags, caddr_t data); }
    // SYS_NOSYS = 168;  // { int nosys(void); }   { old ustat }
    SYS_CSOPS = 169 // { int csops(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize); }
    // SYS_NOSYS = 171;  // { int nosys(void); }   { old wait3 }
    // SYS_NOSYS = 172;  // { int nosys(void); }   { old rpause	}
    SYS_WAITID = 173 // { int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); }
    // SYS_NOSYS = 174;  // { int nosys(void); }   { old getdents }
    // SYS_NOSYS = 175;  // { int nosys(void); }   { old gc_control }
    SYS_ADD_PROFIL = 176 // { int add_profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
    // SYS_NOSYS = 177;  // { int nosys(void); }
    // SYS_NOSYS = 178;  // { int nosys(void); }
    // SYS_NOSYS = 179;  // { int nosys(void); }
    SYS_KDEBUG_TRACE = 180 // { int kdebug_trace(int code, int arg1, int arg2, int arg3, int arg4, int arg5) NO_SYSCALL_STUB; }
    SYS_SETGID       = 181 // { int setgid(gid_t gid); }
    SYS_SETEGID      = 182 // { int setegid(gid_t egid); }
    SYS_SETEUID      = 183 // { int seteuid(uid_t euid); }
    SYS_SIGRETURN    = 184 // { int sigreturn(struct ucontext *uctx, int infostyle); }
    // SYS_NOSYS = 186;  // { int nosys(void); }
    // SYS_NOSYS = 187;  // { int nosys(void); }
    SYS_STAT      = 188 // { int stat(user_addr_t path, user_addr_t ub); }
    SYS_FSTAT     = 189 // { int fstat(int fd, user_addr_t ub); }
    SYS_LSTAT     = 190 // { int lstat(user_addr_t path, user_addr_t ub); }
    SYS_PATHCONF  = 191 // { int pathconf(char *path, int name); }
    SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
    // SYS_NOSYS = 193;  // { int nosys(void); }
    SYS_GETRLIMIT     = 194 // { int getrlimit(u_int which, struct rlimit *rlp); }
    SYS_SETRLIMIT     = 195 // { int setrlimit(u_int which, struct rlimit *rlp); }
    SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, u_int count, long *basep); }
    SYS_MMAP          = 197 // { user_addr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); }
    // SYS_NOSYS = 198;  // { int nosys(void); } 	{ __syscall }
    SYS_LSEEK     = 199 // { off_t lseek(int fd, off_t offset, int whence); }
    SYS_TRUNCATE  = 200 // { int truncate(char *path, off_t length); }
    SYS_FTRUNCATE = 201 // { int ftruncate(int fd, off_t length); }
    SYS___SYSCTL  = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); }
    SYS_MLOCK     = 203 // { int mlock(caddr_t addr, size_t len); }
    SYS_MUNLOCK   = 204 // { int munlock(caddr_t addr, size_t len); }
    SYS_UNDELETE  = 205 // { int undelete(user_addr_t path); }
    SYS_ATSOCKET  = 206 // { int ATsocket(int proto); }
    // SYS_NOSYS = 213;  // { int nosys(void); } 	{ Reserved for AppleTalk }
    // SYS_NOSYS = 206;  // { int nosys(void); }
    // SYS_NOSYS = 207;  // { int nosys(void); }
    // SYS_NOSYS = 208;  // { int nosys(void); }
    // SYS_NOSYS = 209;  // { int nosys(void); }
    // SYS_NOSYS = 210;  // { int nosys(void); }
    // SYS_NOSYS = 211;  // { int nosys(void); }
    // SYS_NOSYS = 212;  // { int nosys(void); }
    // SYS_NOSYS = 213;  // { int nosys(void); } 	{ Reserved for AppleTalk }
    SYS_KQUEUE_FROM_PORTSET_NP = 214 // { int kqueue_from_portset_np(int portset); }
    SYS_KQUEUE_PORTSET_NP      = 215 // { int kqueue_portset_np(int fd); }
    SYS_GETATTRLIST            = 220 // { int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
    SYS_SETATTRLIST            = 221 // { int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
    SYS_GETDIRENTRIESATTR      = 222 // { int getdirentriesattr(int fd, struct attrlist *alist, void *buffer, size_t buffersize, u_long *count, u_long *basep, u_long *newstate, u_long options); }
    SYS_EXCHANGEDATA           = 223 // { int exchangedata(const char *path1, const char *path2, u_long options); }
    // SYS_NOSYS = 224;  // { int nosys(void); } { was checkuseraccess }
    SYS_SEARCHFS = 225 // { int searchfs(const char *path, struct fssearchblock *searchblock, u_long *nummatches, u_long scriptcode, u_long options, struct searchstate *state); }
    SYS_DELETE   = 226 // { int delete(user_addr_t path) NO_SYSCALL_STUB; }       { private delete (Carbon semantics) }
    SYS_COPYFILE = 227 // { int copyfile(char *from, char *to, int mode, int flags) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 228;  // { int nosys(void); }
    // SYS_NOSYS = 229;  // { int nosys(void); }
    SYS_POLL         = 230 // { int poll(struct pollfd *fds, u_int nfds, int timeout); }
    SYS_WATCHEVENT   = 231 // { int watchevent(struct eventreq *u_req, int u_eventmask); }
    SYS_WAITEVENT    = 232 // { int waitevent(struct eventreq *u_req, struct timeval *tv); }
    SYS_MODWATCH     = 233 // { int modwatch(struct eventreq *u_req, int u_eventmask); }
    SYS_GETXATTR     = 234 // { user_ssize_t getxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
    SYS_FGETXATTR    = 235 // { user_ssize_t fgetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
    SYS_SETXATTR     = 236 // { int setxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
    SYS_FSETXATTR    = 237 // { int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
    SYS_REMOVEXATTR  = 238 // { int removexattr(user_addr_t path, user_addr_t attrname, int options); }
    SYS_FREMOVEXATTR = 239 // { int fremovexattr(int fd, user_addr_t attrname, int options); }
    SYS_LISTXATTR    = 240 // { user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); }
    SYS_FLISTXATTR   = 241 // { user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); }
    SYS_FSCTL        = 242 // { int fsctl(const char *path, u_long cmd, caddr_t data, u_long options); }
    SYS_INITGROUPS   = 243 // { int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid); }
    SYS_POSIX_SPAWN  = 244 // { int posix_spawn(pid_t *pid, const char *path, const struct _posix_spawn_args_desc *adesc, char **argv, char **envp); }
    // SYS_NOSYS = 245;  // { int nosys(void); }
    // SYS_NOSYS = 246;  // { int nosys(void); }
    SYS_NFSCLNT = 247 // { int nfsclnt(int flag, caddr_t argp); }
    // SYS_NOSYS = 247;  // { int nosys(void); }
    SYS_FHOPEN = 248 // { int fhopen(const struct fhandle *u_fhp, int flags); }
    // SYS_NOSYS = 248;  // { int nosys(void); }
    // SYS_NOSYS = 249;  // { int nosys(void); }
    SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); }
    SYS_SEMSYS   = 251 // { int semsys(u_int which, int a2, int a3, int a4, int a5); }
    // SYS_NOSYS = 251;  // { int nosys(void); }
    SYS_MSGSYS = 252 // { int msgsys(u_int which, int a2, int a3, int a4, int a5); }
    // SYS_NOSYS = 252;  // { int nosys(void); }
    SYS_SHMSYS = 253 // { int shmsys(u_int which, int a2, int a3, int a4); }
    // SYS_NOSYS = 253;  // { int nosys(void); }
    SYS_SEMCTL = 254 // { int semctl(int semid, int semnum, int cmd, semun_t arg); }
    SYS_SEMGET = 255 // { int semget(key_t key, int	nsems, int semflg); }
    SYS_SEMOP  = 256 // { int semop(int semid, struct sembuf *sops, int nsops); }
    // SYS_NOSYS = 257;  // { int nosys(void); }
    // SYS_NOSYS = 254;  // { int nosys(void); }
    // SYS_NOSYS = 255;  // { int nosys(void); }
    // SYS_NOSYS = 256;  // { int nosys(void); }
    // SYS_NOSYS = 257;  // { int nosys(void); }
    SYS_MSGCTL = 258 // { int msgctl(int msqid, int cmd, struct	msqid_ds *buf); }
    SYS_MSGGET = 259 // { int msgget(key_t key, int msgflg); }
    SYS_MSGSND = 260 // { int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); }
    SYS_MSGRCV = 261 // { user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
    // SYS_NOSYS = 258;  // { int nosys(void); }
    // SYS_NOSYS = 259;  // { int nosys(void); }
    // SYS_NOSYS = 260;  // { int nosys(void); }
    // SYS_NOSYS = 261;  // { int nosys(void); }
    SYS_SHMAT  = 262 // { user_addr_t shmat(int shmid, void *shmaddr, int shmflg); }
    SYS_SHMCTL = 263 // { int shmctl(int shmid, int cmd, struct shmid_ds *buf); }
    SYS_SHMDT  = 264 // { int shmdt(void *shmaddr); }
    SYS_SHMGET = 265 // { int shmget(key_t key, size_t size, int shmflg); }
    // SYS_NOSYS = 262;  // { int nosys(void); }
    // SYS_NOSYS = 263;  // { int nosys(void); }
    // SYS_NOSYS = 264;  // { int nosys(void); }
    // SYS_NOSYS = 265;  // { int nosys(void); }
    SYS_SHM_OPEN               = 266 // { int shm_open(const char *name, int oflag, int mode); }
    SYS_SHM_UNLINK             = 267 // { int shm_unlink(const char *name); }
    SYS_SEM_OPEN               = 268 // { user_addr_t sem_open(const char *name, int oflag, int mode, int value); }
    SYS_SEM_CLOSE              = 269 // { int sem_close(sem_t *sem); }
    SYS_SEM_UNLINK             = 270 // { int sem_unlink(const char *name); }
    SYS_SEM_WAIT               = 271 // { int sem_wait(sem_t *sem); }
    SYS_SEM_TRYWAIT            = 272 // { int sem_trywait(sem_t *sem); }
    SYS_SEM_POST               = 273 // { int sem_post(sem_t *sem); }
    SYS_SEM_GETVALUE           = 274 // { int sem_getvalue(sem_t *sem, int *sval); }
    SYS_SEM_INIT               = 275 // { int sem_init(sem_t *sem, int phsared, u_int value); }
    SYS_SEM_DESTROY            = 276 // { int sem_destroy(sem_t *sem); }
    SYS_OPEN_EXTENDED          = 277 // { int open_extended(user_addr_t path, int flags, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
    SYS_UMASK_EXTENDED         = 278 // { int umask_extended(int newmask, user_addr_t xsecurity) NO_SYSCALL_STUB; }
    SYS_STAT_EXTENDED          = 279 // { int stat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
    SYS_LSTAT_EXTENDED         = 280 // { int lstat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
    SYS_FSTAT_EXTENDED         = 281 // { int fstat_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
    SYS_CHMOD_EXTENDED         = 282 // { int chmod_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
    SYS_FCHMOD_EXTENDED        = 283 // { int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
    SYS_ACCESS_EXTENDED        = 284 // { int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid) NO_SYSCALL_STUB; }
    SYS_SETTID                 = 285 // { int settid(uid_t uid, gid_t gid) NO_SYSCALL_STUB; }
    SYS_GETTID                 = 286 // { int gettid(uid_t *uidp, gid_t *gidp) NO_SYSCALL_STUB; }
    SYS_SETSGROUPS             = 287 // { int setsgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
    SYS_GETSGROUPS             = 288 // { int getsgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
    SYS_SETWGROUPS             = 289 // { int setwgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
    SYS_GETWGROUPS             = 290 // { int getwgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
    SYS_MKFIFO_EXTENDED        = 291 // { int mkfifo_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
    SYS_MKDIR_EXTENDED         = 292 // { int mkdir_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
    SYS_IDENTITYSVC            = 293 // { int identitysvc(int opcode, user_addr_t message) NO_SYSCALL_STUB; }
    SYS_SHARED_REGION_CHECK_NP = 294 // { int shared_region_check_np(uint64_t *start_address) NO_SYSCALL_STUB; }
    SYS_SHARED_REGION_MAP_NP   = 295 // { int shared_region_map_np(int fd, uint32_t count, const struct shared_file_mapping_np *mappings) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 296;  // { int nosys(void); } { old load_shared_file }
    // SYS_NOSYS = 297;  // { int nosys(void); } { old reset_shared_file }
    // SYS_NOSYS = 298;  // { int nosys(void); } { old new_system_shared_regions }
    // SYS_ENOSYS = 299;  // { int enosys(void); } { old shared_region_map_file_np }
    // SYS_ENOSYS = 300;  // { int enosys(void); } { old shared_region_make_private_np }
    SYS___PTHREAD_MUTEX_DESTROY  = 301 // { int __pthread_mutex_destroy(int mutexid); }
    SYS___PTHREAD_MUTEX_INIT     = 302 // { int __pthread_mutex_init(user_addr_t  mutex, user_addr_t attr); }
    SYS___PTHREAD_MUTEX_LOCK     = 303 // { int __pthread_mutex_lock(int mutexid); }
    SYS___PTHREAD_MUTEX_TRYLOCK  = 304 // { int __pthread_mutex_trylock(int mutexid); }
    SYS___PTHREAD_MUTEX_UNLOCK   = 305 // { int __pthread_mutex_unlock(int mutexid); }
    SYS___PTHREAD_COND_INIT      = 306 // { int __pthread_cond_init(user_addr_t cond, user_addr_t attr); }
    SYS___PTHREAD_COND_DESTROY   = 307 // { int __pthread_cond_destroy(int condid); }
    SYS___PTHREAD_COND_BROADCAST = 308 // { int __pthread_cond_broadcast(int condid); }
    SYS___PTHREAD_COND_SIGNAL    = 309 // { int __pthread_cond_signal(int condid); }
    SYS_GETSID                   = 310 // { int getsid(pid_t pid); }
    SYS_SETTID_WITH_PID          = 311 // { int settid_with_pid(pid_t pid, int assume) NO_SYSCALL_STUB; }
    SYS___PTHREAD_COND_TIMEDWAIT = 312 // { int __pthread_cond_timedwait(int condid, int mutexid, user_addr_t abstime); }
    SYS_AIO_FSYNC                = 313 // { int aio_fsync(int op, user_addr_t aiocbp); }
    SYS_AIO_RETURN               = 314 // { user_ssize_t aio_return(user_addr_t aiocbp); }
    SYS_AIO_SUSPEND              = 315 // { int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); }
    SYS_AIO_CANCEL               = 316 // { int aio_cancel(int fd, user_addr_t aiocbp); }
    SYS_AIO_ERROR                = 317 // { int aio_error(user_addr_t aiocbp); }
    SYS_AIO_READ                 = 318 // { int aio_read(user_addr_t aiocbp); }
    SYS_AIO_WRITE                = 319 // { int aio_write(user_addr_t aiocbp); }
    SYS_LIO_LISTIO               = 320 // { int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); }
    SYS___PTHREAD_COND_WAIT      = 321 // { int __pthread_cond_wait(int condid, int mutexid); }
    SYS_IOPOLICYSYS              = 322 // { int iopolicysys(int cmd, void *arg) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 323;  // { int nosys(void); }
    SYS_MLOCKALL   = 324 // { int mlockall(int how); }
    SYS_MUNLOCKALL = 325 // { int munlockall(int how); }
    // SYS_NOSYS = 326;  // { int nosys(void); }
    SYS_ISSETUGID              = 327 // { int issetugid(void); }
    SYS___PTHREAD_KILL         = 328 // { int __pthread_kill(int thread_port, int sig); }
    SYS___PTHREAD_SIGMASK      = 329 // { int __pthread_sigmask(int how, user_addr_t set, user_addr_t oset); }
    SYS___SIGWAIT              = 330 // { int __sigwait(user_addr_t set, user_addr_t sig); }
    SYS___DISABLE_THREADSIGNAL = 331 // { int __disable_threadsignal(int value); }
    SYS___PTHREAD_MARKCANCEL   = 332 // { int __pthread_markcancel(int thread_port); }
    SYS___PTHREAD_CANCELED     = 333 // { int __pthread_canceled(int  action); }
    SYS___SEMWAIT_SIGNAL       = 334 // { int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, time_t tv_sec, int32_t tv_nsec); }
    // SYS_NOSYS = 335;  // { int nosys(void); }   { old utrace }
    SYS_PROC_INFO = 336 // { int proc_info(int32_t callnum,int32_t pid,uint32_t flavor, uint64_t arg,user_addr_t buffer,int32_t buffersize) NO_SYSCALL_STUB; }
    SYS_SENDFILE  = 337 // { int sendfile(int fd, int s, off_t offset, off_t *nbytes, struct sf_hdtr *hdtr, int flags); }
    // SYS_NOSYS = 337;  // { int nosys(void); }
    SYS_STAT64           = 338 // { int stat64(user_addr_t path, user_addr_t ub); }
    SYS_FSTAT64          = 339 // { int fstat64(int fd, user_addr_t ub); }
    SYS_LSTAT64          = 340 // { int lstat64(user_addr_t path, user_addr_t ub); }
    SYS_STAT64_EXTENDED  = 341 // { int stat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
    SYS_LSTAT64_EXTENDED = 342 // { int lstat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
    SYS_FSTAT64_EXTENDED = 343 // { int fstat64_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
    SYS_GETDIRENTRIES64  = 344 // { user_ssize_t getdirentries64(int fd, void *buf, user_size_t bufsize, off_t *position) NO_SYSCALL_STUB; }
    SYS_STATFS64         = 345 // { int statfs64(char *path, struct statfs64 *buf); }
    SYS_FSTATFS64        = 346 // { int fstatfs64(int fd, struct statfs64 *buf); }
    SYS_GETFSSTAT64      = 347 // { int getfsstat64(user_addr_t buf, int bufsize, int flags); }
    SYS___PTHREAD_CHDIR  = 348 // { int __pthread_chdir(user_addr_t path); }
    SYS___PTHREAD_FCHDIR = 349 // { int __pthread_fchdir(int fd); }
    SYS_AUDIT            = 350 // { int audit(void *record, int length); }
    SYS_AUDITON          = 351 // { int auditon(int cmd, void *data, int length); }
    // SYS_NOSYS = 352;  // { int nosys(void); }
    SYS_GETAUID       = 353 // { int getauid(au_id_t *auid); }
    SYS_SETAUID       = 354 // { int setauid(au_id_t *auid); }
    SYS_GETAUDIT      = 355 // { int getaudit(struct auditinfo *auditinfo); }
    SYS_SETAUDIT      = 356 // { int setaudit(struct auditinfo *auditinfo); }
    SYS_GETAUDIT_ADDR = 357 // { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
    SYS_SETAUDIT_ADDR = 358 // { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
    SYS_AUDITCTL      = 359 // { int auditctl(char *path); }
    // SYS_NOSYS = 350;  // { int nosys(void); }
    // SYS_NOSYS = 351;  // { int nosys(void); }
    // SYS_NOSYS = 352;  // { int nosys(void); }
    // SYS_NOSYS = 353;  // { int nosys(void); }
    // SYS_NOSYS = 354;  // { int nosys(void); }
    // SYS_NOSYS = 355;  // { int nosys(void); }
    // SYS_NOSYS = 356;  // { int nosys(void); }
    // SYS_NOSYS = 357;  // { int nosys(void); }
    // SYS_NOSYS = 358;  // { int nosys(void); }
    // SYS_NOSYS = 359;  // { int nosys(void); }
    SYS_BSDTHREAD_CREATE    = 360 // { user_addr_t bsdthread_create(user_addr_t func, user_addr_t func_arg, user_addr_t stack, user_addr_t pthread, uint32_t flags) NO_SYSCALL_STUB; }
    SYS_BSDTHREAD_TERMINATE = 361 // { int bsdthread_terminate(user_addr_t stackaddr, size_t freesize, uint32_t port, uint32_t sem) NO_SYSCALL_STUB; }
    SYS_KQUEUE              = 362 // { int kqueue(void); }
    SYS_KEVENT              = 363 // { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
    SYS_LCHOWN              = 364 // { int lchown(user_addr_t path, uid_t owner, gid_t group); }
    SYS_STACK_SNAPSHOT      = 365 // { int stack_snapshot(pid_t pid, user_addr_t tracebuf, uint32_t tracebuf_size, uint32_t options) NO_SYSCALL_STUB; }
    SYS_BSDTHREAD_REGISTER  = 366 // { int bsdthread_register(user_addr_t threadstart, user_addr_t wqthread, int pthsize) NO_SYSCALL_STUB; }
    SYS_WORKQ_OPEN          = 367 // { int workq_open(void) NO_SYSCALL_STUB; }
    SYS_WORKQ_OPS           = 368 // { int workq_ops(int options, user_addr_t item, int prio) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 369;  // { int nosys(void); }
    // SYS_NOSYS = 370;  // { int nosys(void); }
    // SYS_NOSYS = 371;  // { int nosys(void); }
    // SYS_NOSYS = 372;  // { int nosys(void); }
    // SYS_NOSYS = 373;  // { int nosys(void); }
    // SYS_NOSYS = 374;  // { int nosys(void); }
    // SYS_NOSYS = 375;  // { int nosys(void); }
    // SYS_NOSYS = 376;  // { int nosys(void); }
    // SYS_NOSYS = 377;  // { int nosys(void); }
    // SYS_NOSYS = 378;  // { int nosys(void); }
    // SYS_NOSYS = 379;  // { int nosys(void); }
    SYS___MAC_EXECVE      = 380 // { int __mac_execve(char *fname, char **argp, char **envp, struct mac *mac_p); }
    SYS___MAC_SYSCALL     = 381 // { int __mac_syscall(char *policy, int call, user_addr_t arg); }
    SYS___MAC_GET_FILE    = 382 // { int __mac_get_file(char *path_p, struct mac *mac_p); }
    SYS___MAC_SET_FILE    = 383 // { int __mac_set_file(char *path_p, struct mac *mac_p); }
    SYS___MAC_GET_LINK    = 384 // { int __mac_get_link(char *path_p, struct mac *mac_p); }
    SYS___MAC_SET_LINK    = 385 // { int __mac_set_link(char *path_p, struct mac *mac_p); }
    SYS___MAC_GET_PROC    = 386 // { int __mac_get_proc(struct mac *mac_p); }
    SYS___MAC_SET_PROC    = 387 // { int __mac_set_proc(struct mac *mac_p); }
    SYS___MAC_GET_FD      = 388 // { int __mac_get_fd(int fd, struct mac *mac_p); }
    SYS___MAC_SET_FD      = 389 // { int __mac_set_fd(int fd, struct mac *mac_p); }
    SYS___MAC_GET_PID     = 390 // { int __mac_get_pid(pid_t pid, struct mac *mac_p); }
    SYS___MAC_GET_LCID    = 391 // { int __mac_get_lcid(pid_t lcid, struct mac *mac_p); }
    SYS___MAC_GET_LCTX    = 392 // { int __mac_get_lctx(struct mac *mac_p); }
    SYS___MAC_SET_LCTX    = 393 // { int __mac_set_lctx(struct mac *mac_p); }
    SYS_SETLCID           = 394 // { int setlcid(pid_t pid, pid_t lcid) NO_SYSCALL_STUB; }
    SYS_GETLCID           = 395 // { int getlcid(pid_t pid) NO_SYSCALL_STUB; }
    SYS_READ_NOCANCEL     = 396 // { user_ssize_t read_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
    SYS_WRITE_NOCANCEL    = 397 // { user_ssize_t write_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
    SYS_OPEN_NOCANCEL     = 398 // { int open_nocancel(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
    SYS_CLOSE_NOCANCEL    = 399 // { int close_nocancel(int fd) NO_SYSCALL_STUB; }
    SYS_WAIT4_NOCANCEL    = 400 // { int wait4_nocancel(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; }
    SYS_RECVMSG_NOCANCEL  = 401 // { int recvmsg_nocancel(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; }
    SYS_SENDMSG_NOCANCEL  = 402 // { int sendmsg_nocancel(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; }
    SYS_RECVFROM_NOCANCEL = 403 // { int recvfrom_nocancel(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; }
    SYS_ACCEPT_NOCANCEL   = 404 // { int accept_nocancel(int s, caddr_t name, socklen_t	*anamelen) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 401;  // { int nosys(void); }
    // SYS_NOSYS = 402;  // { int nosys(void); }
    // SYS_NOSYS = 403;  // { int nosys(void); }
    // SYS_NOSYS = 404;  // { int nosys(void); }
    SYS_MSYNC_NOCANCEL   = 405 // { int msync_nocancel(caddr_t addr, size_t len, int flags) NO_SYSCALL_STUB; }
    SYS_FCNTL_NOCANCEL   = 406 // { int fcntl_nocancel(int fd, int cmd, long arg) NO_SYSCALL_STUB; }
    SYS_SELECT_NOCANCEL  = 407 // { int select_nocancel(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv) NO_SYSCALL_STUB; }
    SYS_FSYNC_NOCANCEL   = 408 // { int fsync_nocancel(int fd) NO_SYSCALL_STUB; }
    SYS_CONNECT_NOCANCEL = 409 // { int connect_nocancel(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 409;  // { int nosys(void); }
    SYS_SIGSUSPEND_NOCANCEL = 410 // { int sigsuspend_nocancel(sigset_t mask) NO_SYSCALL_STUB; }
    SYS_READV_NOCANCEL      = 411 // { user_ssize_t readv_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
    SYS_WRITEV_NOCANCEL     = 412 // { user_ssize_t writev_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
    SYS_SENDTO_NOCANCEL     = 413 // { int sendto_nocancel(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 413;  // { int nosys(void); }
    SYS_PREAD_NOCANCEL  = 414 // { user_ssize_t pread_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
    SYS_PWRITE_NOCANCEL = 415 // { user_ssize_t pwrite_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
    SYS_WAITID_NOCANCEL = 416 // { int waitid_nocancel(idtype_t idtype, id_t id, siginfo_t *infop, int options) NO_SYSCALL_STUB; }
    SYS_POLL_NOCANCEL   = 417 // { int poll_nocancel(struct pollfd *fds, u_int nfds, int timeout) NO_SYSCALL_STUB; }
    SYS_MSGSND_NOCANCEL = 418 // { int msgsnd_nocancel(int msqid, void *msgp, size_t msgsz, int msgflg) NO_SYSCALL_STUB; }
    SYS_MSGRCV_NOCANCEL = 419 // { user_ssize_t msgrcv_nocancel(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 418;  // { int nosys(void); }
    // SYS_NOSYS = 419;  // { int nosys(void); }
    SYS_SEM_WAIT_NOCANCEL         = 420 // { int sem_wait_nocancel(sem_t *sem) NO_SYSCALL_STUB; }
    SYS_AIO_SUSPEND_NOCANCEL      = 421 // { int aio_suspend_nocancel(user_addr_t aiocblist, int nent, user_addr_t timeoutp) NO_SYSCALL_STUB; }
    SYS___SIGWAIT_NOCANCEL        = 422 // { int __sigwait_nocancel(user_addr_t set, user_addr_t sig) NO_SYSCALL_STUB; }
    SYS___SEMWAIT_SIGNAL_NOCANCEL = 423 // { int __semwait_signal_nocancel(int cond_sem, int mutex_sem, int timeout, int relative, time_t tv_sec, int32_t tv_nsec) NO_SYSCALL_STUB; }
    SYS___MAC_MOUNT               = 424 // { int __mac_mount(char *type, char *path, int flags, caddr_t data, struct mac *mac_p); }
    SYS___MAC_GET_MOUNT           = 425 // { int __mac_get_mount(char *path, struct mac *mac_p); }
    SYS___MAC_GETFSSTAT           = 426 // { int __mac_getfsstat(user_addr_t buf, int bufsize, user_addr_t mac, int macsize, int flags); }
)

Constants

const (
    AF_APPLETALK                     = 0x5
    AF_ASH                           = 0x12
    AF_ATMPVC                        = 0x8
    AF_ATMSVC                        = 0x14
    AF_AX25                          = 0x3
    AF_BLUETOOTH                     = 0x1f
    AF_BRIDGE                        = 0x7
    AF_DECnet                        = 0xc
    AF_ECONET                        = 0x13
    AF_FILE                          = 0x1
    AF_INET                          = 0x2
    AF_INET6                         = 0xa
    AF_IPX                           = 0x4
    AF_IRDA                          = 0x17
    AF_ISDN                          = 0x22
    AF_IUCV                          = 0x20
    AF_KEY                           = 0xf
    AF_LOCAL                         = 0x1
    AF_MAX                           = 0x23
    AF_NETBEUI                       = 0xd
    AF_NETLINK                       = 0x10
    AF_NETROM                        = 0x6
    AF_PACKET                        = 0x11
    AF_PPPOX                         = 0x18
    AF_ROSE                          = 0xb
    AF_ROUTE                         = 0x10
    AF_RXRPC                         = 0x21
    AF_SECURITY                      = 0xe
    AF_SNA                           = 0x16
    AF_UNIX                          = 0x1
    AF_UNSPEC                        = 0
    AF_WANPIPE                       = 0x19
    AF_X25                           = 0x9
    E2BIG                            = 0x7
    EACCES                           = 0xd
    EADDRINUSE                       = 0x62
    EADDRNOTAVAIL                    = 0x63
    EADV                             = 0x44
    EAFNOSUPPORT                     = 0x61
    EAGAIN                           = 0xb
    EALREADY                         = 0x72
    EBADE                            = 0x34
    EBADF                            = 0x9
    EBADFD                           = 0x4d
    EBADMSG                          = 0x4a
    EBADR                            = 0x35
    EBADRQC                          = 0x38
    EBADSLT                          = 0x39
    EBFONT                           = 0x3b
    EBUSY                            = 0x10
    ECANCELED                        = 0x7d
    ECHILD                           = 0xa
    ECHRNG                           = 0x2c
    ECOMM                            = 0x46
    ECONNABORTED                     = 0x67
    ECONNREFUSED                     = 0x6f
    ECONNRESET                       = 0x68
    EDEADLK                          = 0x23
    EDEADLOCK                        = 0x23
    EDESTADDRREQ                     = 0x59
    EDOM                             = 0x21
    EDOTDOT                          = 0x49
    EDQUOT                           = 0x7a
    EEXIST                           = 0x11
    EFAULT                           = 0xe
    EFBIG                            = 0x1b
    EHOSTDOWN                        = 0x70
    EHOSTUNREACH                     = 0x71
    EIDRM                            = 0x2b
    EILSEQ                           = 0x54
    EINPROGRESS                      = 0x73
    EINTR                            = 0x4
    EINVAL                           = 0x16
    EIO                              = 0x5
    EISCONN                          = 0x6a
    EISDIR                           = 0x15
    EISNAM                           = 0x78
    EKEYEXPIRED                      = 0x7f
    EKEYREJECTED                     = 0x81
    EKEYREVOKED                      = 0x80
    EL2HLT                           = 0x33
    EL2NSYNC                         = 0x2d
    EL3HLT                           = 0x2e
    EL3RST                           = 0x2f
    ELF_NGREG                        = 0x12
    ELF_PRARGSZ                      = 0x50
    ELIBACC                          = 0x4f
    ELIBBAD                          = 0x50
    ELIBEXEC                         = 0x53
    ELIBMAX                          = 0x52
    ELIBSCN                          = 0x51
    ELNRNG                           = 0x30
    ELOOP                            = 0x28
    EMEDIUMTYPE                      = 0x7c
    EMFILE                           = 0x18
    EMLINK                           = 0x1f
    EMSGSIZE                         = 0x5a
    EMULTIHOP                        = 0x48
    ENAMETOOLONG                     = 0x24
    ENAVAIL                          = 0x77
    ENETDOWN                         = 0x64
    ENETRESET                        = 0x66
    ENETUNREACH                      = 0x65
    ENFILE                           = 0x17
    ENOANO                           = 0x37
    ENOBUFS                          = 0x69
    ENOCSI                           = 0x32
    ENODATA                          = 0x3d
    ENODEV                           = 0x13
    ENOENT                           = 0x2
    ENOEXEC                          = 0x8
    ENOKEY                           = 0x7e
    ENOLCK                           = 0x25
    ENOLINK                          = 0x43
    ENOMEDIUM                        = 0x7b
    ENOMEM                           = 0xc
    ENOMSG                           = 0x2a
    ENONET                           = 0x40
    ENOPKG                           = 0x41
    ENOPROTOOPT                      = 0x5c
    ENOSPC                           = 0x1c
    ENOSR                            = 0x3f
    ENOSTR                           = 0x3c
    ENOSYS                           = 0x26
    ENOTBLK                          = 0xf
    ENOTCONN                         = 0x6b
    ENOTDIR                          = 0x14
    ENOTEMPTY                        = 0x27
    ENOTNAM                          = 0x76
    ENOTRECOVERABLE                  = 0x83
    ENOTSOCK                         = 0x58
    ENOTSUP                          = 0x5f
    ENOTTY                           = 0x19
    ENOTUNIQ                         = 0x4c
    ENXIO                            = 0x6
    EOPNOTSUPP                       = 0x5f
    EOVERFLOW                        = 0x4b
    EOWNERDEAD                       = 0x82
    EPERM                            = 0x1
    EPFNOSUPPORT                     = 0x60
    EPIPE                            = 0x20
    EPOLLERR                         = 0x8
    EPOLLET                          = -0x80000000
    EPOLLHUP                         = 0x10
    EPOLLIN                          = 0x1
    EPOLLMSG                         = 0x400
    EPOLLONESHOT                     = 0x40000000
    EPOLLOUT                         = 0x4
    EPOLLPRI                         = 0x2
    EPOLLRDBAND                      = 0x80
    EPOLLRDHUP                       = 0x2000
    EPOLLRDNORM                      = 0x40
    EPOLLWRBAND                      = 0x200
    EPOLLWRNORM                      = 0x100
    EPOLL_CLOEXEC                    = 0x80000
    EPOLL_CTL_ADD                    = 0x1
    EPOLL_CTL_DEL                    = 0x2
    EPOLL_CTL_MOD                    = 0x3
    EPOLL_NONBLOCK                   = 0x800
    EPROTO                           = 0x47
    EPROTONOSUPPORT                  = 0x5d
    EPROTOTYPE                       = 0x5b
    ERANGE                           = 0x22
    EREMCHG                          = 0x4e
    EREMOTE                          = 0x42
    EREMOTEIO                        = 0x79
    ERESTART                         = 0x55
    ERFKILL                          = 0x84
    EROFS                            = 0x1e
    ESHUTDOWN                        = 0x6c
    ESOCKTNOSUPPORT                  = 0x5e
    ESPIPE                           = 0x1d
    ESRCH                            = 0x3
    ESRMNT                           = 0x45
    ESTALE                           = 0x74
    ESTRPIPE                         = 0x56
    ETIME                            = 0x3e
    ETIMEDOUT                        = 0x6e
    ETOOMANYREFS                     = 0x6d
    ETXTBSY                          = 0x1a
    EUCLEAN                          = 0x75
    EUNATCH                          = 0x31
    EUSERS                           = 0x57
    EWOULDBLOCK                      = 0xb
    EXDEV                            = 0x12
    EXFULL                           = 0x36
    FD_CLOEXEC                       = 0x1
    FD_SETSIZE                       = 0x400
    F_DUPFD                          = 0
    F_DUPFD_CLOEXEC                  = 0x406
    F_EXLCK                          = 0x4
    F_GETFD                          = 0x1
    F_GETFL                          = 0x3
    F_GETLEASE                       = 0x401
    F_GETLK                          = 0xc
    F_GETLK64                        = 0xc
    F_GETOWN                         = 0x9
    F_GETSIG                         = 0xb
    F_LOCK                           = 0x1
    F_NOTIFY                         = 0x402
    F_OK                             = 0
    F_RDLCK                          = 0
    F_SETFD                          = 0x2
    F_SETFL                          = 0x4
    F_SETLEASE                       = 0x400
    F_SETLK                          = 0xd
    F_SETLK64                        = 0xd
    F_SETLKW                         = 0xe
    F_SETLKW64                       = 0xe
    F_SETOWN                         = 0x8
    F_SETSIG                         = 0xa
    F_SHLCK                          = 0x8
    F_TEST                           = 0x3
    F_TLOCK                          = 0x2
    F_ULOCK                          = 0
    F_UNLCK                          = 0x2
    F_WRLCK                          = 0x1
    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_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_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                  = 0
    IPPROTO_ICMP                     = 0x1
    IPPROTO_ICMPV6                   = 0x3a
    IPPROTO_IDP                      = 0x16
    IPPROTO_IGMP                     = 0x2
    IPPROTO_IP                       = 0
    IPPROTO_IPIP                     = 0x4
    IPPROTO_IPV6                     = 0x29
    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_ADD_MEMBERSHIP              = 0x14
    IPV6_AUTHHDR                     = 0xa
    IPV6_CHECKSUM                    = 0x7
    IPV6_DROP_MEMBERSHIP             = 0x15
    IPV6_DSTOPTS                     = 0x3b
    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_MTU                         = 0x18
    IPV6_MTU_DISCOVER                = 0x17
    IPV6_MULTICAST_HOPS              = 0x12
    IPV6_MULTICAST_IF                = 0x11
    IPV6_MULTICAST_LOOP              = 0x13
    IPV6_NEXTHOP                     = 0x9
    IPV6_PKTINFO                     = 0x32
    IPV6_PMTUDISC_DO                 = 0x2
    IPV6_PMTUDISC_DONT               = 0
    IPV6_PMTUDISC_PROBE              = 0x3
    IPV6_PMTUDISC_WANT               = 0x1
    IPV6_RECVDSTOPTS                 = 0x3a
    IPV6_RECVERR                     = 0x19
    IPV6_RECVHOPLIMIT                = 0x33
    IPV6_RECVHOPOPTS                 = 0x35
    IPV6_RECVPKTINFO                 = 0x31
    IPV6_RECVRTHDR                   = 0x38
    IPV6_RECVTCLASS                  = 0x42
    IPV6_ROUTER_ALERT                = 0x16
    IPV6_RTHDR                       = 0x39
    IPV6_RTHDRDSTOPTS                = 0x37
    IPV6_RTHDR_LOOSE                 = 0
    IPV6_RTHDR_STRICT                = 0x1
    IPV6_RTHDR_TYPE_0                = 0
    IPV6_RXDSTOPTS                   = 0x3b
    IPV6_RXHOPOPTS                   = 0x36
    IPV6_TCLASS                      = 0x43
    IPV6_UNICAST_HOPS                = 0x10
    IPV6_V6ONLY                      = 0x1a
    IPV6_XFRM_POLICY                 = 0x23
    IP_ADD_MEMBERSHIP                = 0x23
    IP_ADD_SOURCE_MEMBERSHIP         = 0x27
    IP_BLOCK_SOURCE                  = 0x26
    IP_DEFAULT_MULTICAST_LOOP        = 0x1
    IP_DEFAULT_MULTICAST_TTL         = 0x1
    IP_DF                            = 0x4000
    IP_DROP_MEMBERSHIP               = 0x24
    IP_DROP_SOURCE_MEMBERSHIP        = 0x28
    IP_HDRINCL                       = 0x3
    IP_MAXPACKET                     = 0xffff
    IP_MAX_MEMBERSHIPS               = 0x14
    IP_MF                            = 0x2000
    IP_MSFILTER                      = 0x29
    IP_MSS                           = 0x240
    IP_MTU_DISCOVER                  = 0xa
    IP_MULTICAST_IF                  = 0x20
    IP_MULTICAST_LOOP                = 0x22
    IP_MULTICAST_TTL                 = 0x21
    IP_OFFMASK                       = 0x1fff
    IP_OPTIONS                       = 0x4
    IP_PKTINFO                       = 0x8
    IP_PKTOPTIONS                    = 0x9
    IP_PMTUDISC                      = 0xa
    IP_PMTUDISC_DO                   = 0x2
    IP_PMTUDISC_DONT                 = 0
    IP_PMTUDISC_PROBE                = 0x3
    IP_PMTUDISC_WANT                 = 0x1
    IP_RECVERR                       = 0xb
    IP_RECVOPTS                      = 0x6
    IP_RECVRETOPTS                   = 0x7
    IP_RECVTOS                       = 0xd
    IP_RECVTTL                       = 0xc
    IP_RETOPTS                       = 0x7
    IP_RF                            = 0x8000
    IP_ROUTER_ALERT                  = 0x5
    IP_TOS                           = 0x1
    IP_TTL                           = 0x2
    IP_UNBLOCK_SOURCE                = 0x25
    NAME_MAX                         = 0xff
    O_ACCMODE                        = 0x3
    O_APPEND                         = 0x400
    O_ASYNC                          = 0x2000
    O_CLOEXEC                        = 0x80000
    O_CREAT                          = 0x40
    O_DIRECT                         = 0x10000
    O_DIRECTORY                      = 0x4000
    O_DSYNC                          = 0x1000
    O_EXCL                           = 0x80
    O_FSYNC                          = 0x1000
    O_LARGEFILE                      = 0x20000
    O_NDELAY                         = 0x800
    O_NOATIME                        = 0x40000
    O_NOCTTY                         = 0x100
    O_NOFOLLOW                       = 0x8000
    O_NONBLOCK                       = 0x800
    O_RDONLY                         = 0
    O_RDWR                           = 0x2
    O_RSYNC                          = 0x1000
    O_SYNC                           = 0x1000
    O_TRUNC                          = 0x200
    O_WRONLY                         = 0x1
    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_VFORK               = 0x2
    PTRACE_EVENT_VFORK_DONE          = 0x5
    PTRACE_GETCRUNCHREGS             = 0x19
    PTRACE_GETEVENTMSG               = 0x4201
    PTRACE_GETFPREGS                 = 0xe
    PTRACE_GETREGS                   = 0xc
    PTRACE_GETSIGINFO                = 0x4202
    PTRACE_GETVFPREGS                = 0x1b
    PTRACE_GETWMMXREGS               = 0x12
    PTRACE_GET_THREAD_AREA           = 0x16
    PTRACE_KILL                      = 0x8
    PTRACE_OLDSETOPTIONS             = 0x15
    PTRACE_O_MASK                    = 0x7f
    PTRACE_O_TRACECLONE              = 0x8
    PTRACE_O_TRACEEXEC               = 0x10
    PTRACE_O_TRACEEXIT               = 0x40
    PTRACE_O_TRACEFORK               = 0x2
    PTRACE_O_TRACESYSGOOD            = 0x1
    PTRACE_O_TRACEVFORK              = 0x4
    PTRACE_O_TRACEVFORKDONE          = 0x20
    PTRACE_PEEKDATA                  = 0x2
    PTRACE_PEEKTEXT                  = 0x1
    PTRACE_PEEKUSR                   = 0x3
    PTRACE_POKEDATA                  = 0x5
    PTRACE_POKETEXT                  = 0x4
    PTRACE_POKEUSR                   = 0x6
    PTRACE_SETCRUNCHREGS             = 0x1a
    PTRACE_SETFPREGS                 = 0xf
    PTRACE_SETOPTIONS                = 0x4200
    PTRACE_SETREGS                   = 0xd
    PTRACE_SETSIGINFO                = 0x4203
    PTRACE_SETVFPREGS                = 0x1c
    PTRACE_SETWMMXREGS               = 0x13
    PTRACE_SET_SYSCALL               = 0x17
    PTRACE_SINGLESTEP                = 0x9
    PTRACE_SYSCALL                   = 0x18
    PTRACE_TRACEME                   = 0
    SHUT_RD                          = 0
    SHUT_RDWR                        = 0x2
    SHUT_WR                          = 0x1
    SIGABRT                          = 0x6
    SIGALRM                          = 0xe
    SIGBUS                           = 0x7
    SIGCHLD                          = 0x11
    SIGCLD                           = 0x11
    SIGCONT                          = 0x12
    SIGFPE                           = 0x8
    SIGHUP                           = 0x1
    SIGILL                           = 0x4
    SIGINT                           = 0x2
    SIGIO                            = 0x1d
    SIGIOT                           = 0x6
    SIGKILL                          = 0x9
    SIGPIPE                          = 0xd
    SIGPOLL                          = 0x1d
    SIGPROF                          = 0x1b
    SIGPWR                           = 0x1e
    SIGQUIT                          = 0x3
    SIGSEGV                          = 0xb
    SIGSTKFLT                        = 0x10
    SIGSTOP                          = 0x13
    SIGSYS                           = 0x1f
    SIGTERM                          = 0xf
    SIGTRAP                          = 0x5
    SIGTSTP                          = 0x14
    SIGTTIN                          = 0x15
    SIGTTOU                          = 0x16
    SIGUNUSED                        = 0x1f
    SIGURG                           = 0x17
    SIGUSR1                          = 0xa
    SIGUSR2                          = 0xc
    SIGVTALRM                        = 0x1a
    SIGWINCH                         = 0x1c
    SIGXCPU                          = 0x18
    SIGXFSZ                          = 0x19
    SOCK_CLOEXEC                     = 0x80000
    SOCK_DCCP                        = 0x6
    SOCK_DGRAM                       = 0x2
    SOCK_NONBLOCK                    = 0x800
    SOCK_PACKET                      = 0xa
    SOCK_RAW                         = 0x3
    SOCK_RDM                         = 0x4
    SOCK_SEQPACKET                   = 0x5
    SOCK_STREAM                      = 0x1
    SOL_AAL                          = 0x109
    SOL_ATM                          = 0x108
    SOL_DECNET                       = 0x105
    SOL_ICMPV6                       = 0x3a
    SOL_IP                           = 0
    SOL_IPV6                         = 0x29
    SOL_IRDA                         = 0x10a
    SOL_PACKET                       = 0x107
    SOL_RAW                          = 0xff
    SOL_SOCKET                       = 0x1
    SOL_TCP                          = 0x6
    SOL_X25                          = 0x106
    SOMAXCONN                        = 0x80
    SO_ACCEPTCONN                    = 0x1e
    SO_ATTACH_FILTER                 = 0x1a
    SO_BINDTODEVICE                  = 0x19
    SO_BROADCAST                     = 0x6
    SO_BSDCOMPAT                     = 0xe
    SO_DEBUG                         = 0x1
    SO_DETACH_FILTER                 = 0x1b
    SO_DONTROUTE                     = 0x5
    SO_ERROR                         = 0x4
    SO_KEEPALIVE                     = 0x9
    SO_LINGER                        = 0xd
    SO_MARK                          = 0x24
    SO_NO_CHECK                      = 0xb
    SO_OOBINLINE                     = 0xa
    SO_PASSCRED                      = 0x10
    SO_PASSSEC                       = 0x22
    SO_PEERCRED                      = 0x11
    SO_PEERNAME                      = 0x1c
    SO_PEERSEC                       = 0x1f
    SO_PRIORITY                      = 0xc
    SO_RCVBUF                        = 0x8
    SO_RCVBUFFORCE                   = 0x21
    SO_RCVLOWAT                      = 0x12
    SO_RCVTIMEO                      = 0x14
    SO_REUSEADDR                     = 0x2
    SO_SECURITY_AUTHENTICATION       = 0x16
    SO_SECURITY_ENCRYPTION_NETWORK   = 0x18
    SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
    SO_SNDBUF                        = 0x7
    SO_SNDBUFFORCE                   = 0x20
    SO_SNDLOWAT                      = 0x13
    SO_SNDTIMEO                      = 0x15
    SO_TIMESTAMP                     = 0x1d
    SO_TIMESTAMPING                  = 0x25
    SO_TIMESTAMPNS                   = 0x23
    SO_TYPE                          = 0x3
    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
    TCP_CONGESTION                   = 0xd
    TCP_CORK                         = 0x3
    TCP_DEFER_ACCEPT                 = 0x9
    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_NODELAY                      = 0x1
    TCP_QUICKACK                     = 0xc
    TCP_SYNCNT                       = 0x7
    TCP_WINDOW_CLAMP                 = 0xa
    WALL                             = 0x40000000
    WCLONE                           = 0x80000000
    WCONTINUED                       = 0x8
    WEXITED                          = 0x4
    WNOHANG                          = 0x1
    WNOTHREAD                        = 0x20000000
    WNOWAIT                          = 0x1000000
    WORDSIZE                         = 0x20
    WSTOPPED                         = 0x2
    WUNTRACED                        = 0x2
)
const (
    SYS_RESTART_SYSCALL        = 0
    SYS_EXIT                   = 1
    SYS_FORK                   = 2
    SYS_READ                   = 3
    SYS_WRITE                  = 4
    SYS_OPEN                   = 5
    SYS_CLOSE                  = 6
    SYS_WAITPID                = 7
    SYS_CREAT                  = 8
    SYS_LINK                   = 9
    SYS_UNLINK                 = 10
    SYS_EXECVE                 = 11
    SYS_CHDIR                  = 12
    SYS_TIME                   = 13
    SYS_MKNOD                  = 14
    SYS_CHMOD                  = 15
    SYS_LCHOWN                 = 16
    SYS_BREAK                  = 17
    SYS_OLDSTAT                = 18
    SYS_LSEEK                  = 19
    SYS_GETPID                 = 20
    SYS_MOUNT                  = 21
    SYS_UMOUNT                 = 22
    SYS_SETUID                 = 23
    SYS_GETUID                 = 24
    SYS_STIME                  = 25
    SYS_PTRACE                 = 26
    SYS_ALARM                  = 27
    SYS_OLDFSTAT               = 28
    SYS_PAUSE                  = 29
    SYS_UTIME                  = 30
    SYS_STTY                   = 31
    SYS_GTTY                   = 32
    SYS_ACCESS                 = 33
    SYS_NICE                   = 34
    SYS_FTIME                  = 35
    SYS_SYNC                   = 36
    SYS_KILL                   = 37
    SYS_RENAME                 = 38
    SYS_MKDIR                  = 39
    SYS_RMDIR                  = 40
    SYS_DUP                    = 41
    SYS_PIPE                   = 42
    SYS_TIMES                  = 43
    SYS_PROF                   = 44
    SYS_BRK                    = 45
    SYS_SETGID                 = 46
    SYS_GETGID                 = 47
    SYS_SIGNAL                 = 48
    SYS_GETEUID                = 49
    SYS_GETEGID                = 50
    SYS_ACCT                   = 51
    SYS_UMOUNT2                = 52
    SYS_LOCK                   = 53
    SYS_IOCTL                  = 54
    SYS_FCNTL                  = 55
    SYS_MPX                    = 56
    SYS_SETPGID                = 57
    SYS_ULIMIT                 = 58
    SYS_OLDOLDUNAME            = 59
    SYS_UMASK                  = 60
    SYS_CHROOT                 = 61
    SYS_USTAT                  = 62
    SYS_DUP2                   = 63
    SYS_GETPPID                = 64
    SYS_GETPGRP                = 65
    SYS_SETSID                 = 66
    SYS_SIGACTION              = 67
    SYS_SGETMASK               = 68
    SYS_SSETMASK               = 69
    SYS_SETREUID               = 70
    SYS_SETREGID               = 71
    SYS_SIGSUSPEND             = 72
    SYS_SIGPENDING             = 73
    SYS_SETHOSTNAME            = 74
    SYS_SETRLIMIT              = 75
    SYS_GETRLIMIT              = 76
    SYS_GETRUSAGE              = 77
    SYS_GETTIMEOFDAY           = 78
    SYS_SETTIMEOFDAY           = 79
    SYS_GETGROUPS              = 80
    SYS_SETGROUPS              = 81
    SYS_SELECT                 = 82
    SYS_SYMLINK                = 83
    SYS_OLDLSTAT               = 84
    SYS_READLINK               = 85
    SYS_USELIB                 = 86
    SYS_SWAPON                 = 87
    SYS_REBOOT                 = 88
    SYS_READDIR                = 89
    SYS_MMAP                   = 90
    SYS_MUNMAP                 = 91
    SYS_TRUNCATE               = 92
    SYS_FTRUNCATE              = 93
    SYS_FCHMOD                 = 94
    SYS_FCHOWN                 = 95
    SYS_GETPRIORITY            = 96
    SYS_SETPRIORITY            = 97
    SYS_PROFIL                 = 98
    SYS_STATFS                 = 99
    SYS_FSTATFS                = 100
    SYS_IOPERM                 = 101
    SYS_SOCKETCALL             = 102
    SYS_SYSLOG                 = 103
    SYS_SETITIMER              = 104
    SYS_GETITIMER              = 105
    SYS_STAT                   = 106
    SYS_LSTAT                  = 107
    SYS_FSTAT                  = 108
    SYS_OLDUNAME               = 109
    SYS_IOPL                   = 110
    SYS_VHANGUP                = 111
    SYS_IDLE                   = 112
    SYS_VM86OLD                = 113
    SYS_WAIT4                  = 114
    SYS_SWAPOFF                = 115
    SYS_SYSINFO                = 116
    SYS_IPC                    = 117
    SYS_FSYNC                  = 118
    SYS_SIGRETURN              = 119
    SYS_CLONE                  = 120
    SYS_SETDOMAINNAME          = 121
    SYS_UNAME                  = 122
    SYS_MODIFY_LDT             = 123
    SYS_ADJTIMEX               = 124
    SYS_MPROTECT               = 125
    SYS_SIGPROCMASK            = 126
    SYS_CREATE_MODULE          = 127
    SYS_INIT_MODULE            = 128
    SYS_DELETE_MODULE          = 129
    SYS_GET_KERNEL_SYMS        = 130
    SYS_QUOTACTL               = 131
    SYS_GETPGID                = 132
    SYS_FCHDIR                 = 133
    SYS_BDFLUSH                = 134
    SYS_SYSFS                  = 135
    SYS_PERSONALITY            = 136
    SYS_AFS_SYSCALL            = 137
    SYS_SETFSUID               = 138
    SYS_SETFSGID               = 139
    SYS__LLSEEK                = 140
    SYS_GETDENTS               = 141
    SYS__NEWSELECT             = 142
    SYS_FLOCK                  = 143
    SYS_MSYNC                  = 144
    SYS_READV                  = 145
    SYS_WRITEV                 = 146
    SYS_GETSID                 = 147
    SYS_FDATASYNC              = 148
    SYS__SYSCTL                = 149
    SYS_MLOCK                  = 150
    SYS_MUNLOCK                = 151
    SYS_MLOCKALL               = 152
    SYS_MUNLOCKALL             = 153
    SYS_SCHED_SETPARAM         = 154
    SYS_SCHED_GETPARAM         = 155
    SYS_SCHED_SETSCHEDULER     = 156
    SYS_SCHED_GETSCHEDULER     = 157
    SYS_SCHED_YIELD            = 158
    SYS_SCHED_GET_PRIORITY_MAX = 159
    SYS_SCHED_GET_PRIORITY_MIN = 160
    SYS_SCHED_RR_GET_INTERVAL  = 161
    SYS_NANOSLEEP              = 162
    SYS_MREMAP                 = 163
    SYS_SETRESUID              = 164
    SYS_GETRESUID              = 165
    SYS_VM86                   = 166
    SYS_QUERY_MODULE           = 167
    SYS_POLL                   = 168
    SYS_NFSSERVCTL             = 169
    SYS_SETRESGID              = 170
    SYS_GETRESGID              = 171
    SYS_PRCTL                  = 172
    SYS_RT_SIGRETURN           = 173
    SYS_RT_SIGACTION           = 174
    SYS_RT_SIGPROCMASK         = 175
    SYS_RT_SIGPENDING          = 176
    SYS_RT_SIGTIMEDWAIT        = 177
    SYS_RT_SIGQUEUEINFO        = 178
    SYS_RT_SIGSUSPEND          = 179
    SYS_PREAD64                = 180
    SYS_PWRITE64               = 181
    SYS_CHOWN                  = 182
    SYS_GETCWD                 = 183
    SYS_CAPGET                 = 184
    SYS_CAPSET                 = 185
    SYS_SIGALTSTACK            = 186
    SYS_SENDFILE               = 187
    SYS_GETPMSG                = 188
    SYS_PUTPMSG                = 189
    SYS_VFORK                  = 190
    SYS_UGETRLIMIT             = 191
    SYS_MMAP2                  = 192
    SYS_TRUNCATE64             = 193
    SYS_FTRUNCATE64            = 194
    SYS_STAT64                 = 195
    SYS_LSTAT64                = 196
    SYS_FSTAT64                = 197
    SYS_LCHOWN32               = 198
    SYS_GETUID32               = 199
    SYS_GETGID32               = 200
    SYS_GETEUID32              = 201
    SYS_GETEGID32              = 202
    SYS_SETREUID32             = 203
    SYS_SETREGID32             = 204
    SYS_GETGROUPS32            = 205
    SYS_SETGROUPS32            = 206
    SYS_FCHOWN32               = 207
    SYS_SETRESUID32            = 208
    SYS_GETRESUID32            = 209
    SYS_SETRESGID32            = 210
    SYS_GETRESGID32            = 211
    SYS_CHOWN32                = 212
    SYS_SETUID32               = 213
    SYS_SETGID32               = 214
    SYS_SETFSUID32             = 215
    SYS_SETFSGID32             = 216
    SYS_PIVOT_ROOT             = 217
    SYS_MINCORE                = 218
    SYS_MADVISE                = 219
    SYS_MADVISE1               = 219
    SYS_GETDENTS64             = 220
    SYS_FCNTL64                = 221
    SYS_GETTID                 = 224
    SYS_READAHEAD              = 225
    SYS_SETXATTR               = 226
    SYS_LSETXATTR              = 227
    SYS_FSETXATTR              = 228
    SYS_GETXATTR               = 229
    SYS_LGETXATTR              = 230
    SYS_FGETXATTR              = 231
    SYS_LISTXATTR              = 232
    SYS_LLISTXATTR             = 233
    SYS_FLISTXATTR             = 234
    SYS_REMOVEXATTR            = 235
    SYS_LREMOVEXATTR           = 236
    SYS_FREMOVEXATTR           = 237
    SYS_TKILL                  = 238
    SYS_SENDFILE64             = 239
    SYS_FUTEX                  = 240
    SYS_SCHED_SETAFFINITY      = 241
    SYS_SCHED_GETAFFINITY      = 242
    SYS_SET_THREAD_AREA        = 243
    SYS_GET_THREAD_AREA        = 244
    SYS_IO_SETUP               = 245
    SYS_IO_DESTROY             = 246
    SYS_IO_GETEVENTS           = 247
    SYS_IO_SUBMIT              = 248
    SYS_IO_CANCEL              = 249
    SYS_FADVISE64              = 250
    SYS_EXIT_GROUP             = 252
    SYS_LOOKUP_DCOOKIE         = 253
    SYS_EPOLL_CREATE           = 254
    SYS_EPOLL_CTL              = 255
    SYS_EPOLL_WAIT             = 256
    SYS_REMAP_FILE_PAGES       = 257
    SYS_SET_TID_ADDRESS        = 258
    SYS_TIMER_CREATE           = 259
    SYS_STATFS64               = 268
    SYS_FSTATFS64              = 269
    SYS_TGKILL                 = 270
    SYS_UTIMES                 = 271
    SYS_FADVISE64_64           = 272
    SYS_VSERVER                = 273
    SYS_MBIND                  = 274
    SYS_GET_MEMPOLICY          = 275
    SYS_SET_MEMPOLICY          = 276
    SYS_MQ_OPEN                = 277
    SYS_KEXEC_LOAD             = 283
    SYS_WAITID                 = 284
    SYS_ADD_KEY                = 286
    SYS_REQUEST_KEY            = 287
    SYS_KEYCTL                 = 288
    SYS_IOPRIO_SET             = 289
    SYS_IOPRIO_GET             = 290
    SYS_INOTIFY_INIT           = 291
    SYS_INOTIFY_ADD_WATCH      = 292
    SYS_INOTIFY_RM_WATCH       = 293
    SYS_MIGRATE_PAGES          = 294
    SYS_OPENAT                 = 295
    SYS_MKDIRAT                = 296
    SYS_MKNODAT                = 297
    SYS_FCHOWNAT               = 298
    SYS_FUTIMESAT              = 299
    SYS_FSTATAT64              = 300
    SYS_UNLINKAT               = 301
    SYS_RENAMEAT               = 302
    SYS_LINKAT                 = 303
    SYS_SYMLINKAT              = 304
    SYS_READLINKAT             = 305
    SYS_FCHMODAT               = 306
    SYS_FACCESSAT              = 307
    SYS_PSELECT6               = 308
    SYS_PPOLL                  = 309
    SYS_UNSHARE                = 310
    SYS_SET_ROBUST_LIST        = 311
    SYS_GET_ROBUST_LIST        = 312
    SYS_SPLICE                 = 313
    SYS_SYNC_FILE_RANGE        = 314
    SYS_TEE                    = 315
    SYS_VMSPLICE               = 316
    SYS_MOVE_PAGES             = 317
    SYS_GETCPU                 = 318
    SYS_EPOLL_PWAIT            = 319
    SYS_UTIMENSAT              = 320
    SYS_SIGNALFD               = 321
    SYS_TIMERFD_CREATE         = 322
    SYS_EVENTFD                = 323
    SYS_FALLOCATE              = 324
    SYS_TIMERFD_SETTIME        = 325
    SYS_TIMERFD_GETTIME        = 326
    SYS_SIGNALFD4              = 327
    SYS_EVENTFD2               = 328
    SYS_EPOLL_CREATE1          = 329
    SYS_DUP3                   = 330
    SYS_PIPE2                  = 331
    SYS_INOTIFY_INIT1          = 332
    SYS_PREADV                 = 333
    SYS_PWRITEV                = 334
    SYS_RT_TGSIGQUEUEINFO      = 335
    SYS_PERF_EVENT_OPEN        = 336
)

Constants

const (
    PathMax                 = 0x1000
    SizeofSockaddrInet4     = 0x10
    SizeofSockaddrInet6     = 0x1c
    SizeofSockaddrAny       = 0x70
    SizeofSockaddrUnix      = 0x6e
    SizeofSockaddrLinklayer = 0x14
    SizeofLinger            = 0x8
    SizeofMsghdr            = 0x1c
    SizeofCmsghdr           = 0xc
    SizeofUcred             = 0xc
    SizeofInotifyEvent      = 0x10
)

Constants

const (
    PathMax                 = 0x1000
    SizeofSockaddrInet4     = 0x10
    SizeofSockaddrInet6     = 0x1c
    SizeofSockaddrAny       = 0x70
    SizeofSockaddrUnix      = 0x6e
    SizeofSockaddrLinklayer = 0x14
    SizeofLinger            = 0x8
    SizeofMsghdr            = 0x38
    SizeofCmsghdr           = 0x10
    SizeofUcred             = 0xc
    SizeofInotifyEvent      = 0x10
)

Constants

const (
    AF_APPLETALK                = 0x10
    AF_CCITT                    = 0xa
    AF_CHAOS                    = 0x5
    AF_CNT                      = 0x15
    AF_COIP                     = 0x14
    AF_DATAKIT                  = 0x9
    AF_DECnet                   = 0xc
    AF_DLI                      = 0xd
    AF_E164                     = 0x1c
    AF_ECMA                     = 0x8
    AF_HYLINK                   = 0xf
    AF_IEEE80211                = 0x25
    AF_IMPLINK                  = 0x3
    AF_INET                     = 0x2
    AF_INET6                    = 0x1e
    AF_IPX                      = 0x17
    AF_ISDN                     = 0x1c
    AF_ISO                      = 0x7
    AF_LAT                      = 0xe
    AF_LINK                     = 0x12
    AF_LOCAL                    = 0x1
    AF_MAX                      = 0x26
    AF_NATM                     = 0x1f
    AF_NDRV                     = 0x1b
    AF_NETBIOS                  = 0x21
    AF_NS                       = 0x6
    AF_OSI                      = 0x7
    AF_PPP                      = 0x22
    AF_PUP                      = 0x4
    AF_RESERVED_36              = 0x24
    AF_ROUTE                    = 0x11
    AF_SIP                      = 0x18
    AF_SNA                      = 0xb
    AF_SYSTEM                   = 0x20
    AF_UNIX                     = 0x1
    AF_UNSPEC                   = 0
    E2BIG                       = 0x7
    EACCES                      = 0xd
    EADDRINUSE                  = 0x30
    EADDRNOTAVAIL               = 0x31
    EAFNOSUPPORT                = 0x2f
    EAGAIN                      = 0x23
    EALREADY                    = 0x25
    EAUTH                       = 0x50
    EBADARCH                    = 0x56
    EBADEXEC                    = 0x55
    EBADF                       = 0x9
    EBADMACHO                   = 0x58
    EBADMSG                     = 0x5e
    EBADRPC                     = 0x48
    EBUSY                       = 0x10
    ECANCELED                   = 0x59
    ECHILD                      = 0xa
    ECONNABORTED                = 0x35
    ECONNREFUSED                = 0x3d
    ECONNRESET                  = 0x36
    EDEADLK                     = 0xb
    EDESTADDRREQ                = 0x27
    EDEVERR                     = 0x53
    EDOM                        = 0x21
    EDQUOT                      = 0x45
    EEXIST                      = 0x11
    EFAULT                      = 0xe
    EFBIG                       = 0x1b
    EFTYPE                      = 0x4f
    EHOSTDOWN                   = 0x40
    EHOSTUNREACH                = 0x41
    EIDRM                       = 0x5a
    EILSEQ                      = 0x5c
    EINPROGRESS                 = 0x24
    EINTR                       = 0x4
    EINVAL                      = 0x16
    EIO                         = 0x5
    EISCONN                     = 0x38
    EISDIR                      = 0x15
    ELAST                       = 0x67
    ELOOP                       = 0x3e
    EMFILE                      = 0x18
    EMLINK                      = 0x1f
    EMSGSIZE                    = 0x28
    EMULTIHOP                   = 0x5f
    ENAMETOOLONG                = 0x3f
    ENEEDAUTH                   = 0x51
    ENETDOWN                    = 0x32
    ENETRESET                   = 0x34
    ENETUNREACH                 = 0x33
    ENFILE                      = 0x17
    ENOATTR                     = 0x5d
    ENOBUFS                     = 0x37
    ENODATA                     = 0x60
    ENODEV                      = 0x13
    ENOENT                      = 0x2
    ENOEXEC                     = 0x8
    ENOLCK                      = 0x4d
    ENOLINK                     = 0x61
    ENOMEM                      = 0xc
    ENOMSG                      = 0x5b
    ENOPOLICY                   = 0x67
    ENOPROTOOPT                 = 0x2a
    ENOSPC                      = 0x1c
    ENOSR                       = 0x62
    ENOSTR                      = 0x63
    ENOSYS                      = 0x4e
    ENOTBLK                     = 0xf
    ENOTCONN                    = 0x39
    ENOTDIR                     = 0x14
    ENOTEMPTY                   = 0x42
    ENOTSOCK                    = 0x26
    ENOTSUP                     = 0x2d
    ENOTTY                      = 0x19
    ENXIO                       = 0x6
    EOPNOTSUPP                  = 0x66
    EOVERFLOW                   = 0x54
    EPERM                       = 0x1
    EPFNOSUPPORT                = 0x2e
    EPIPE                       = 0x20
    EPROCLIM                    = 0x43
    EPROCUNAVAIL                = 0x4c
    EPROGMISMATCH               = 0x4b
    EPROGUNAVAIL                = 0x4a
    EPROTO                      = 0x64
    EPROTONOSUPPORT             = 0x2b
    EPROTOTYPE                  = 0x29
    EPWROFF                     = 0x52
    ERANGE                      = 0x22
    EREMOTE                     = 0x47
    EROFS                       = 0x1e
    ERPCMISMATCH                = 0x49
    ESHLIBVERS                  = 0x57
    ESHUTDOWN                   = 0x3a
    ESOCKTNOSUPPORT             = 0x2c
    ESPIPE                      = 0x1d
    ESRCH                       = 0x3
    ESTALE                      = 0x46
    ETIME                       = 0x65
    ETIMEDOUT                   = 0x3c
    ETOOMANYREFS                = 0x3b
    ETXTBSY                     = 0x1a
    EUSERS                      = 0x44
    EVFILT_AIO                  = -0x3
    EVFILT_FS                   = -0x9
    EVFILT_MACHPORT             = -0x8
    EVFILT_PROC                 = -0x5
    EVFILT_READ                 = -0x1
    EVFILT_SESSION              = -0xb
    EVFILT_SIGNAL               = -0x6
    EVFILT_SYSCOUNT             = 0xb
    EVFILT_THREADMARKER         = 0xb
    EVFILT_TIMER                = -0x7
    EVFILT_USER                 = -0xa
    EVFILT_VNODE                = -0x4
    EVFILT_WRITE                = -0x2
    EV_ADD                      = 0x1
    EV_CLEAR                    = 0x20
    EV_DELETE                   = 0x2
    EV_DISABLE                  = 0x8
    EV_DISPATCH                 = 0x80
    EV_ENABLE                   = 0x4
    EV_EOF                      = 0x8000
    EV_ERROR                    = 0x4000
    EV_FLAG0                    = 0x1000
    EV_FLAG1                    = 0x2000
    EV_ONESHOT                  = 0x10
    EV_OOBAND                   = 0x2000
    EV_POLL                     = 0x1000
    EV_RECEIPT                  = 0x40
    EV_SYSFLAGS                 = 0xf000
    EV_TRIGGER                  = 0x100
    EWOULDBLOCK                 = 0x23
    EXDEV                       = 0x12
    FD_CLOEXEC                  = 0x1
    FD_SETSIZE                  = 0x400
    F_ADDFILESIGS               = 0x3d
    F_ADDSIGS                   = 0x3b
    F_ALLOCATEALL               = 0x4
    F_ALLOCATECONTIG            = 0x2
    F_CHKCLEAN                  = 0x29
    F_DUPFD                     = 0
    F_FREEZE_FS                 = 0x35
    F_FULLFSYNC                 = 0x33
    F_GETFD                     = 0x1
    F_GETFL                     = 0x3
    F_GETLK                     = 0x7
    F_GETOWN                    = 0x5
    F_GETPATH                   = 0x32
    F_GLOBAL_NOCACHE            = 0x37
    F_LOG2PHYS                  = 0x31
    F_MARKDEPENDENCY            = 0x3c
    F_NOCACHE                   = 0x30
    F_PATHPKG_CHECK             = 0x34
    F_PEOFPOSMODE               = 0x3
    F_PREALLOCATE               = 0x2a
    F_RDADVISE                  = 0x2c
    F_RDAHEAD                   = 0x2d
    F_RDLCK                     = 0x1
    F_READBOOTSTRAP             = 0x2e
    F_SETFD                     = 0x2
    F_SETFL                     = 0x4
    F_SETLK                     = 0x8
    F_SETLKW                    = 0x9
    F_SETOWN                    = 0x6
    F_SETSIZE                   = 0x2b
    F_THAW_FS                   = 0x36
    F_UNLCK                     = 0x2
    F_VOLPOSMODE                = 0x4
    F_WRITEBOOTSTRAP            = 0x2f
    F_WRLCK                     = 0x3
    IPPROTO_3PC                 = 0x22
    IPPROTO_ADFS                = 0x44
    IPPROTO_AH                  = 0x33
    IPPROTO_AHIP                = 0x3d
    IPPROTO_APES                = 0x63
    IPPROTO_ARGUS               = 0xd
    IPPROTO_AX25                = 0x5d
    IPPROTO_BHA                 = 0x31
    IPPROTO_BLT                 = 0x1e
    IPPROTO_BRSATMON            = 0x4c
    IPPROTO_CFTP                = 0x3e
    IPPROTO_CHAOS               = 0x10
    IPPROTO_CMTP                = 0x26
    IPPROTO_CPHB                = 0x49
    IPPROTO_CPNX                = 0x48
    IPPROTO_DDP                 = 0x25
    IPPROTO_DGP                 = 0x56
    IPPROTO_DIVERT              = 0xfe
    IPPROTO_DONE                = 0x101
    IPPROTO_DSTOPTS             = 0x3c
    IPPROTO_EGP                 = 0x8
    IPPROTO_EMCON               = 0xe
    IPPROTO_ENCAP               = 0x62
    IPPROTO_EON                 = 0x50
    IPPROTO_ESP                 = 0x32
    IPPROTO_ETHERIP             = 0x61
    IPPROTO_FRAGMENT            = 0x2c
    IPPROTO_GGP                 = 0x3
    IPPROTO_GMTP                = 0x64
    IPPROTO_GRE                 = 0x2f
    IPPROTO_HELLO               = 0x3f
    IPPROTO_HMP                 = 0x14
    IPPROTO_HOPOPTS             = 0
    IPPROTO_ICMP                = 0x1
    IPPROTO_ICMPV6              = 0x3a
    IPPROTO_IDP                 = 0x16
    IPPROTO_IDPR                = 0x23
    IPPROTO_IDRP                = 0x2d
    IPPROTO_IGMP                = 0x2
    IPPROTO_IGP                 = 0x55
    IPPROTO_IGRP                = 0x58
    IPPROTO_IL                  = 0x28
    IPPROTO_INLSP               = 0x34
    IPPROTO_INP                 = 0x20
    IPPROTO_IP                  = 0
    IPPROTO_IPCOMP              = 0x6c
    IPPROTO_IPCV                = 0x47
    IPPROTO_IPEIP               = 0x5e
    IPPROTO_IPIP                = 0x4
    IPPROTO_IPPC                = 0x43
    IPPROTO_IPV4                = 0x4
    IPPROTO_IPV6                = 0x29
    IPPROTO_IRTP                = 0x1c
    IPPROTO_KRYPTOLAN           = 0x41
    IPPROTO_LARP                = 0x5b
    IPPROTO_LEAF1               = 0x19
    IPPROTO_LEAF2               = 0x1a
    IPPROTO_MAX                 = 0x100
    IPPROTO_MAXID               = 0x34
    IPPROTO_MEAS                = 0x13
    IPPROTO_MHRP                = 0x30
    IPPROTO_MICP                = 0x5f
    IPPROTO_MTP                 = 0x5c
    IPPROTO_MUX                 = 0x12
    IPPROTO_ND                  = 0x4d
    IPPROTO_NHRP                = 0x36
    IPPROTO_NONE                = 0x3b
    IPPROTO_NSP                 = 0x1f
    IPPROTO_NVPII               = 0xb
    IPPROTO_OSPFIGP             = 0x59
    IPPROTO_PGM                 = 0x71
    IPPROTO_PIGP                = 0x9
    IPPROTO_PIM                 = 0x67
    IPPROTO_PRM                 = 0x15
    IPPROTO_PUP                 = 0xc
    IPPROTO_PVP                 = 0x4b
    IPPROTO_RAW                 = 0xff
    IPPROTO_RCCMON              = 0xa
    IPPROTO_RDP                 = 0x1b
    IPPROTO_ROUTING             = 0x2b
    IPPROTO_RSVP                = 0x2e
    IPPROTO_RVD                 = 0x42
    IPPROTO_SATEXPAK            = 0x40
    IPPROTO_SATMON              = 0x45
    IPPROTO_SCCSP               = 0x60
    IPPROTO_SDRP                = 0x2a
    IPPROTO_SEP                 = 0x21
    IPPROTO_SRPC                = 0x5a
    IPPROTO_ST                  = 0x7
    IPPROTO_SVMTP               = 0x52
    IPPROTO_SWIPE               = 0x35
    IPPROTO_TCF                 = 0x57
    IPPROTO_TCP                 = 0x6
    IPPROTO_TP                  = 0x1d
    IPPROTO_TPXX                = 0x27
    IPPROTO_TRUNK1              = 0x17
    IPPROTO_TRUNK2              = 0x18
    IPPROTO_TTP                 = 0x54
    IPPROTO_UDP                 = 0x11
    IPPROTO_VINES               = 0x53
    IPPROTO_VISA                = 0x46
    IPPROTO_VMTP                = 0x51
    IPPROTO_WBEXPAK             = 0x4f
    IPPROTO_WBMON               = 0x4e
    IPPROTO_WSN                 = 0x4a
    IPPROTO_XNET                = 0xf
    IPPROTO_XTP                 = 0x24
    IPV6_BINDV6ONLY             = 0x1b
    IPV6_CHECKSUM               = 0x1a
    IPV6_DEFAULT_MULTICAST_HOPS = 0x1
    IPV6_DEFAULT_MULTICAST_LOOP = 0x1
    IPV6_DEFHLIM                = 0x40
    IPV6_DSTOPTS                = 0x17
    IPV6_FAITH                  = 0x1d
    IPV6_FLOWINFO_MASK          = 0xffffff0f
    IPV6_FLOWLABEL_MASK         = 0xffff0f00
    IPV6_FRAGTTL                = 0x78
    IPV6_FW_ADD                 = 0x1e
    IPV6_FW_DEL                 = 0x1f
    IPV6_FW_FLUSH               = 0x20
    IPV6_FW_GET                 = 0x22
    IPV6_FW_ZERO                = 0x21
    IPV6_HLIMDEC                = 0x1
    IPV6_HOPLIMIT               = 0x14
    IPV6_HOPOPTS                = 0x16
    IPV6_IPSEC_POLICY           = 0x1c
    IPV6_JOIN_GROUP             = 0xc
    IPV6_LEAVE_GROUP            = 0xd
    IPV6_MAXHLIM                = 0xff
    IPV6_MAXPACKET              = 0xffff
    IPV6_MMTU                   = 0x500
    IPV6_MULTICAST_HOPS         = 0xa
    IPV6_MULTICAST_IF           = 0x9
    IPV6_MULTICAST_LOOP         = 0xb
    IPV6_NEXTHOP                = 0x15
    IPV6_PKTINFO                = 0x13
    IPV6_PKTOPTIONS             = 0x19
    IPV6_PORTRANGE              = 0xe
    IPV6_PORTRANGE_DEFAULT      = 0
    IPV6_PORTRANGE_HIGH         = 0x1
    IPV6_PORTRANGE_LOW          = 0x2
    IPV6_RECVTCLASS             = 0x23
    IPV6_RTHDR                  = 0x18
    IPV6_RTHDR_LOOSE            = 0
    IPV6_RTHDR_STRICT           = 0x1
    IPV6_RTHDR_TYPE_0           = 0
    IPV6_SOCKOPT_RESERVED1      = 0x3
    IPV6_TCLASS                 = 0x24
    IPV6_UNICAST_HOPS           = 0x4
    IPV6_V6ONLY                 = 0x1b
    IPV6_VERSION                = 0x60
    IPV6_VERSION_MASK           = 0xf0
    IP_ADD_MEMBERSHIP           = 0xc
    IP_BOUND_IF                 = 0x19
    IP_DEFAULT_MULTICAST_LOOP   = 0x1
    IP_DEFAULT_MULTICAST_TTL    = 0x1
    IP_DF                       = 0x4000
    IP_DROP_MEMBERSHIP          = 0xd
    IP_DUMMYNET_CONFIGURE       = 0x3c
    IP_DUMMYNET_DEL             = 0x3d
    IP_DUMMYNET_FLUSH           = 0x3e
    IP_DUMMYNET_GET             = 0x40
    IP_FAITH                    = 0x16
    IP_FW_ADD                   = 0x28
    IP_FW_DEL                   = 0x29
    IP_FW_FLUSH                 = 0x2a
    IP_FW_GET                   = 0x2c
    IP_FW_RESETLOG              = 0x2d
    IP_FW_ZERO                  = 0x2b
    IP_HDRINCL                  = 0x2
    IP_IPSEC_POLICY             = 0x15
    IP_MAXPACKET                = 0xffff
    IP_MAX_MEMBERSHIPS          = 0x14
    IP_MF                       = 0x2000
    IP_MSS                      = 0x240
    IP_MULTICAST_IF             = 0x9
    IP_MULTICAST_LOOP           = 0xb
    IP_MULTICAST_TTL            = 0xa
    IP_MULTICAST_VIF            = 0xe
    IP_NAT__XXX                 = 0x37
    IP_OFFMASK                  = 0x1fff
    IP_OLD_FW_ADD               = 0x32
    IP_OLD_FW_DEL               = 0x33
    IP_OLD_FW_FLUSH             = 0x34
    IP_OLD_FW_GET               = 0x36
    IP_OLD_FW_RESETLOG          = 0x38
    IP_OLD_FW_ZERO              = 0x35
    IP_OPTIONS                  = 0x1
    IP_PORTRANGE                = 0x13
    IP_PORTRANGE_DEFAULT        = 0
    IP_PORTRANGE_HIGH           = 0x1
    IP_PORTRANGE_LOW            = 0x2
    IP_RECVDSTADDR              = 0x7
    IP_RECVIF                   = 0x14
    IP_RECVOPTS                 = 0x5
    IP_RECVRETOPTS              = 0x6
    IP_RECVTTL                  = 0x18
    IP_RETOPTS                  = 0x8
    IP_RF                       = 0x8000
    IP_RSVP_OFF                 = 0x10
    IP_RSVP_ON                  = 0xf
    IP_RSVP_VIF_OFF             = 0x12
    IP_RSVP_VIF_ON              = 0x11
    IP_STRIPHDR                 = 0x17
    IP_TOS                      = 0x3
    IP_TRAFFIC_MGT_BACKGROUND   = 0x41
    IP_TTL                      = 0x4
    O_ACCMODE                   = 0x3
    O_ALERT                     = 0x20000000
    O_APPEND                    = 0x8
    O_ASYNC                     = 0x40
    O_CREAT                     = 0x200
    O_DIRECTORY                 = 0x100000
    O_DSYNC                     = 0x400000
    O_EVTONLY                   = 0x8000
    O_EXCL                      = 0x800
    O_EXLOCK                    = 0x20
    O_FSYNC                     = 0x80
    O_NDELAY                    = 0x4
    O_NOCTTY                    = 0x20000
    O_NOFOLLOW                  = 0x100
    O_NONBLOCK                  = 0x4
    O_POPUP                     = 0x80000000
    O_RDONLY                    = 0
    O_RDWR                      = 0x2
    O_SHLOCK                    = 0x10
    O_SYMLINK                   = 0x200000
    O_SYNC                      = 0x80
    O_TRUNC                     = 0x400
    O_WRONLY                    = 0x1
    SHUT_RD                     = 0
    SHUT_RDWR                   = 0x2
    SHUT_WR                     = 0x1
    SIGABRT                     = 0x6
    SIGALRM                     = 0xe
    SIGBUS                      = 0xa
    SIGCHLD                     = 0x14
    SIGCONT                     = 0x13
    SIGEMT                      = 0x7
    SIGFPE                      = 0x8
    SIGHUP                      = 0x1
    SIGILL                      = 0x4
    SIGINFO                     = 0x1d
    SIGINT                      = 0x2
    SIGIO                       = 0x17
    SIGIOT                      = 0x6
    SIGKILL                     = 0x9
    SIGPIPE                     = 0xd
    SIGPROF                     = 0x1b
    SIGQUIT                     = 0x3
    SIGSEGV                     = 0xb
    SIGSTOP                     = 0x11
    SIGSYS                      = 0xc
    SIGTERM                     = 0xf
    SIGTRAP                     = 0x5
    SIGTSTP                     = 0x12
    SIGTTIN                     = 0x15
    SIGTTOU                     = 0x16
    SIGURG                      = 0x10
    SIGUSR1                     = 0x1e
    SIGUSR2                     = 0x1f
    SIGVTALRM                   = 0x1a
    SIGWINCH                    = 0x1c
    SIGXCPU                     = 0x18
    SIGXFSZ                     = 0x19
    SOCK_DGRAM                  = 0x2
    SOCK_MAXADDRLEN             = 0xff
    SOCK_RAW                    = 0x3
    SOCK_RDM                    = 0x4
    SOCK_SEQPACKET              = 0x5
    SOCK_STREAM                 = 0x1
    SOL_SOCKET                  = 0xffff
    SOMAXCONN                   = 0x80
    SO_ACCEPTCONN               = 0x2
    SO_BROADCAST                = 0x20
    SO_DEBUG                    = 0x1
    SO_DONTROUTE                = 0x10
    SO_DONTTRUNC                = 0x2000
    SO_ERROR                    = 0x1007
    SO_KEEPALIVE                = 0x8
    SO_LABEL                    = 0x1010
    SO_LINGER                   = 0x80
    SO_LINGER_SEC               = 0x1080
    SO_NKE                      = 0x1021
    SO_NOADDRERR                = 0x1023
    SO_NOSIGPIPE                = 0x1022
    SO_NOTIFYCONFLICT           = 0x1026
    SO_NP_EXTENSIONS            = 0x1083
    SO_NREAD                    = 0x1020
    SO_NWRITE                   = 0x1024
    SO_OOBINLINE                = 0x100
    SO_PEERLABEL                = 0x1011
    SO_RANDOMPORT               = 0x1082
    SO_RCVBUF                   = 0x1002
    SO_RCVLOWAT                 = 0x1004
    SO_RCVTIMEO                 = 0x1006
    SO_RESTRICTIONS             = 0x1081
    SO_RESTRICT_DENYIN          = 0x1
    SO_RESTRICT_DENYOUT         = 0x2
    SO_RESTRICT_DENYSET         = 0x80000000
    SO_REUSEADDR                = 0x4
    SO_REUSEPORT                = 0x200
    SO_REUSESHAREUID            = 0x1025
    SO_SNDBUF                   = 0x1001
    SO_SNDLOWAT                 = 0x1003
    SO_SNDTIMEO                 = 0x1005
    SO_TIMESTAMP                = 0x400
    SO_TYPE                     = 0x1008
    SO_UPCALLCLOSEWAIT          = 0x1027
    SO_USELOOPBACK              = 0x40
    SO_WANTMORE                 = 0x4000
    SO_WANTOOBFLAG              = 0x8000
    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_IFWHT                     = 0xe000
    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_ISTXT                     = 0x200
    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
    TCP_CONNECTIONTIMEOUT       = 0x20
    TCP_KEEPALIVE               = 0x10
    TCP_MAXBURST                = 0x4
    TCP_MAXHLEN                 = 0x3c
    TCP_MAXOLEN                 = 0x28
    TCP_MAXSEG                  = 0x2
    TCP_MAXWIN                  = 0xffff
    TCP_MAX_SACK                = 0x3
    TCP_MAX_WINSHIFT            = 0xe
    TCP_MINMSS                  = 0xd8
    TCP_MINMSSOVERLOAD          = 0x3e8
    TCP_MSS                     = 0x200
    TCP_NODELAY                 = 0x1
    TCP_NOOPT                   = 0x8
    TCP_NOPUSH                  = 0x4
    WCONTINUED                  = 0x10
    WCOREFLAG                   = 0x80
    WEXITED                     = 0x4
    WNOHANG                     = 0x1
    WNOWAIT                     = 0x20
    WORDSIZE                    = 0x20
    WSTOPPED                    = 0x7f
    WUNTRACED                   = 0x2
)

Constants

const (
    O_CLOEXEC           = 0
    SizeofSockaddrInet4 = 0x10
    SizeofSockaddrInet6 = 0x1c
    SizeofSockaddrAny   = 0x6c
    SizeofSockaddrUnix  = 0x6a
    SizeofLinger        = 0x8
    SizeofMsghdr        = 0x30
    SizeofCmsghdr       = 0xc
    PTRACE_TRACEME      = 0
    PTRACE_CONT         = 0x7
    PTRACE_KILL         = 0x8
)

Windowsエラー用のGo名。

const (
    ENOENT  = ERROR_FILE_NOT_FOUND
    ENOTDIR = ERROR_DIRECTORY
)

osや他のパッケージに都合がよい値を定義。

const (
    E2BIG = APPLICATION_ERROR + iota
    EACCES
    EADDRINUSE
    EADDRNOTAVAIL
    EADV
    EAFNOSUPPORT
    EAGAIN
    EALREADY
    EBADE
    EBADF
    EBADFD
    EBADMSG
    EBADR
    EBADRQC
    EBADSLT
    EBFONT
    EBUSY
    ECANCELED
    ECHILD
    ECHRNG
    ECOMM
    ECONNABORTED
    ECONNREFUSED
    ECONNRESET
    EDEADLK
    EDEADLOCK
    EDESTADDRREQ
    EDOM
    EDOTDOT
    EDQUOT
    EEXIST
    EFAULT
    EFBIG
    EHOSTDOWN
    EHOSTUNREACH
    EIDRM
    EILSEQ
    EINPROGRESS
    EINTR
    EINVAL
    EIO
    EISCONN
    EISDIR
    EISNAM
    EKEYEXPIRED
    EKEYREJECTED
    EKEYREVOKED
    EL2HLT
    EL2NSYNC
    EL3HLT
    EL3RST
    ELIBACC
    ELIBBAD
    ELIBEXEC
    ELIBMAX
    ELIBSCN
    ELNRNG
    ELOOP
    EMEDIUMTYPE
    EMFILE
    EMLINK
    EMSGSIZE
    EMULTIHOP
    ENAMETOOLONG
    ENAVAIL
    ENETDOWN
    ENETRESET
    ENETUNREACH
    ENFILE
    ENOANO
    ENOBUFS
    ENOCSI
    ENODATA
    ENODEV
    ENOEXEC
    ENOKEY
    ENOLCK
    ENOLINK
    ENOMEDIUM
    ENOMEM
    ENOMSG
    ENONET
    ENOPKG
    ENOPROTOOPT
    ENOSPC
    ENOSR
    ENOSTR
    ENOSYS
    ENOTBLK
    ENOTCONN
    ENOTEMPTY
    ENOTNAM
    ENOTRECOVERABLE
    ENOTSOCK
    ENOTSUP
    ENOTTY
    ENOTUNIQ
    ENXIO
    EOPNOTSUPP
    EOVERFLOW
    EOWNERDEAD
    EPERM
    EPFNOSUPPORT
    EPIPE
    EPROTO
    EPROTONOSUPPORT
    EPROTOTYPE
    ERANGE
    EREMCHG
    EREMOTE
    EREMOTEIO
    ERESTART
    EROFS
    ESHUTDOWN
    ESOCKTNOSUPPORT
    ESPIPE
    ESRCH
    ESRMNT
    ESTALE
    ESTRPIPE
    ETIME
    ETIMEDOUT
    ETOOMANYREFS
    ETXTBSY
    EUCLEAN
    EUNATCH
    EUSERS
    EWOULDBLOCK
    EXDEV
    EXFULL
    EWINDOWS
)

Constants

const (
    O_CLOEXEC           = 0
    SizeofSockaddrInet4 = 0x10
    SizeofSockaddrInet6 = 0x1c
    SizeofSockaddrAny   = 0x6c
    SizeofSockaddrUnix  = 0x6a
    SizeofLinger        = 0x8
    SizeofMsghdr        = 0x1c
    SizeofCmsghdr       = 0xc
    PTRACE_TRACEME      = 0
    PTRACE_CONT         = 0x7
    PTRACE_KILL         = 0x8
)

Constants

const (
    PathMax       = 0x1000
    SizeofLinger  = 0x8
    SizeofMsghdr  = 0x1c
    SizeofCmsghdr = 0xc
)
const (
    // Windowsエラー。
    ERROR_FILE_NOT_FOUND      = 2
    ERROR_PATH_NOT_FOUND      = 3
    ERROR_NO_MORE_FILES       = 18
    ERROR_BROKEN_PIPE         = 109
    ERROR_INSUFFICIENT_BUFFER = 122
    ERROR_MOD_NOT_FOUND       = 126
    ERROR_PROC_NOT_FOUND      = 127
    ERROR_ENVVAR_NOT_FOUND    = 203
    ERROR_DIRECTORY           = 267
    ERROR_IO_PENDING          = 997
)
const (
    // osパッケージに都合がよい値を定義。
    O_RDONLY   = 0x00000
    O_WRONLY   = 0x00001
    O_RDWR     = 0x00002
    O_CREAT    = 0x00040
    O_EXCL     = 0x00080
    O_NOCTTY   = 0x00100
    O_TRUNC    = 0x00200
    O_NONBLOCK = 0x00800
    O_APPEND   = 0x00400
    O_SYNC     = 0x01000
    O_ASYNC    = 0x02000
    O_CLOEXEC  = 0x80000
)
const (
    GENERIC_READ    = 0x80000000
    GENERIC_WRITE   = 0x40000000
    GENERIC_EXECUTE = 0x20000000
    GENERIC_ALL     = 0x10000000
    FILE_APPEND_DATA      = 0x00000004
    FILE_WRITE_ATTRIBUTES = 0x00000100
    FILE_SHARE_READ          = 0x00000001
    FILE_SHARE_WRITE         = 0x00000002
    FILE_SHARE_DELETE        = 0x00000004
    FILE_ATTRIBUTE_READONLY  = 0x00000001
    FILE_ATTRIBUTE_HIDDEN    = 0x00000002
    FILE_ATTRIBUTE_SYSTEM    = 0x00000004
    FILE_ATTRIBUTE_DIRECTORY = 0x00000010
    FILE_ATTRIBUTE_ARCHIVE   = 0x00000020
    FILE_ATTRIBUTE_NORMAL    = 0x00000080
    INVALID_FILE_ATTRIBUTES = 0xffffffff
    CREATE_NEW        = 1
    CREATE_ALWAYS     = 2
    OPEN_EXISTING     = 3
    OPEN_ALWAYS       = 4
    TRUNCATE_EXISTING = 5
    STARTF_USESTDHANDLES   = 0x00000100
    DUPLICATE_CLOSE_SOURCE = 0x00000001
    DUPLICATE_SAME_ACCESS  = 0x00000002
    STD_INPUT_HANDLE  = -10
    STD_OUTPUT_HANDLE = -11
    STD_ERROR_HANDLE  = -12
    FILE_BEGIN   = 0
    FILE_CURRENT = 1
    FILE_END     = 2
    FORMAT_MESSAGE_ALLOCATE_BUFFER = 256
    FORMAT_MESSAGE_IGNORE_INSERTS  = 512
    FORMAT_MESSAGE_FROM_STRING     = 1024
    FORMAT_MESSAGE_FROM_HMODULE    = 2048
    FORMAT_MESSAGE_FROM_SYSTEM     = 4096
    FORMAT_MESSAGE_ARGUMENT_ARRAY  = 8192
    FORMAT_MESSAGE_MAX_WIDTH_MASK  = 255
    MAX_PATH      = 260
    MAX_LONG_PATH = 32768
    MAX_COMPUTERNAME_LENGTH = 15
    TIME_ZONE_ID_UNKNOWN  = 0
    TIME_ZONE_ID_STANDARD = 1
    TIME_ZONE_ID_DAYLIGHT = 2
    IGNORE                = 0
    INFINITE              = 0xffffffff
    WAIT_TIMEOUT   = 258
    WAIT_ABANDONED = 0x00000080
    WAIT_OBJECT_0  = 0x00000000
    WAIT_FAILED    = 0xFFFFFFFF
    CREATE_UNICODE_ENVIRONMENT = 0x00000400
)
const (
    // wincrypt.h
    PROV_RSA_FULL                    = 1
    PROV_RSA_SIG                     = 2
    PROV_DSS                         = 3
    PROV_FORTEZZA                    = 4
    PROV_MS_EXCHANGE                 = 5
    PROV_SSL                         = 6
    PROV_RSA_SCHANNEL                = 12
    PROV_DSS_DH                      = 13
    PROV_EC_ECDSA_SIG                = 14
    PROV_EC_ECNRA_SIG                = 15
    PROV_EC_ECDSA_FULL               = 16
    PROV_EC_ECNRA_FULL               = 17
    PROV_DH_SCHANNEL                 = 18
    PROV_SPYRUS_LYNKS                = 20
    PROV_RNG                         = 21
    PROV_INTEL_SEC                   = 22
    PROV_REPLACE_OWF                 = 23
    PROV_RSA_AES                     = 24
    CRYPT_VERIFYCONTEXT              = 0xF0000000
    CRYPT_NEWKEYSET                  = 0x00000008
    CRYPT_DELETEKEYSET               = 0x00000010
    CRYPT_MACHINE_KEYSET             = 0x00000020
    CRYPT_SILENT                     = 0x00000040
    CRYPT_DEFAULT_CONTAINER_OPTIONAL = 0x00000080
)
const (
    AF_UNIX    = 1
    AF_INET    = 2
    AF_INET6   = 23
    AF_NETBIOS = 17
    SOCK_STREAM = 1
    SOCK_DGRAM  = 2
    SOCK_RAW    = 3
    IPPROTO_IP  = 0
    IPPROTO_TCP = 6
    IPPROTO_UDP = 17
    SOL_SOCKET               = 0xffff
    SO_REUSEADDR             = 4
    SO_KEEPALIVE             = 8
    SO_DONTROUTE             = 16
    SO_BROADCAST             = 32
    SO_LINGER                = 128
    SO_RCVBUF                = 0x1002
    SO_SNDBUF                = 0x1001
    SO_UPDATE_ACCEPT_CONTEXT = 0x700b
    IPPROTO_IPV6 = 0x29
    IPV6_V6ONLY  = 0x1b
    SOMAXCONN = 5
    TCP_NODELAY = 1
    SHUT_RD   = 0
    SHUT_WR   = 1
    SHUT_RDWR = 2
    WSADESCRIPTION_LEN = 256
    WSASYS_STATUS_LEN  = 128
)
const (
    PROT_READ  = 0x1
    PROT_WRITE = 0x2
    MAP_SHARED = 0x1
    SYS_FORK   = 0
    SYS_PTRACE = 0
    SYS_CHDIR  = 0
    SYS_DUP2   = 0
    SYS_FCNTL  = 0
    SYS_EXECVE = 0
    F_GETFD    = 0x1
    F_SETFD    = 0x2
    F_GETFL    = 0x3
    F_SETFL    = 0x4
    FD_CLOEXEC = 0
    S_IFMT     = 0x1f000
    S_IFIFO    = 0x1000
    S_IFCHR    = 0x2000
    S_IFDIR    = 0x4000
    S_IFBLK    = 0x6000
    S_IFREG    = 0x8000
    S_IFLNK    = 0xa000
    S_IFSOCK   = 0xc000
    S_ISUID    = 0x800
    S_ISGID    = 0x400
    S_ISVTX    = 0x200
    S_IRUSR    = 0x100
    S_IWUSR    = 0x80
    S_IXUSR    = 0x40
)
const (
    FILE_TYPE_CHAR    = 0x0002
    FILE_TYPE_DISK    = 0x0001
    FILE_TYPE_PIPE    = 0x0003
    FILE_TYPE_REMOTE  = 0x8000
    FILE_TYPE_UNKNOWN = 0x0000
)
const (
    DNS_TYPE_A       = 0x0001
    DNS_TYPE_NS      = 0x0002
    DNS_TYPE_MD      = 0x0003
    DNS_TYPE_MF      = 0x0004
    DNS_TYPE_CNAME   = 0x0005
    DNS_TYPE_SOA     = 0x0006
    DNS_TYPE_MB      = 0x0007
    DNS_TYPE_MG      = 0x0008
    DNS_TYPE_MR      = 0x0009
    DNS_TYPE_NULL    = 0x000a
    DNS_TYPE_WKS     = 0x000b
    DNS_TYPE_PTR     = 0x000c
    DNS_TYPE_HINFO   = 0x000d
    DNS_TYPE_MINFO   = 0x000e
    DNS_TYPE_MX      = 0x000f
    DNS_TYPE_TEXT    = 0x0010
    DNS_TYPE_RP      = 0x0011
    DNS_TYPE_AFSDB   = 0x0012
    DNS_TYPE_X25     = 0x0013
    DNS_TYPE_ISDN    = 0x0014
    DNS_TYPE_RT      = 0x0015
    DNS_TYPE_NSAP    = 0x0016
    DNS_TYPE_NSAPPTR = 0x0017
    DNS_TYPE_SIG     = 0x0018
    DNS_TYPE_KEY     = 0x0019
    DNS_TYPE_PX      = 0x001a
    DNS_TYPE_GPOS    = 0x001b
    DNS_TYPE_AAAA    = 0x001c
    DNS_TYPE_LOC     = 0x001d
    DNS_TYPE_NXT     = 0x001e
    DNS_TYPE_EID     = 0x001f
    DNS_TYPE_NIMLOC  = 0x0020
    DNS_TYPE_SRV     = 0x0021
    DNS_TYPE_ATMA    = 0x0022
    DNS_TYPE_NAPTR   = 0x0023
    DNS_TYPE_KX      = 0x0024
    DNS_TYPE_CERT    = 0x0025
    DNS_TYPE_A6      = 0x0026
    DNS_TYPE_DNAME   = 0x0027
    DNS_TYPE_SINK    = 0x0028
    DNS_TYPE_OPT     = 0x0029
    DNS_TYPE_DS      = 0x002B
    DNS_TYPE_RRSIG   = 0x002E
    DNS_TYPE_NSEC    = 0x002F
    DNS_TYPE_DNSKEY  = 0x0030
    DNS_TYPE_DHCID   = 0x0031
    DNS_TYPE_UINFO   = 0x0064
    DNS_TYPE_UID     = 0x0065
    DNS_TYPE_GID     = 0x0066
    DNS_TYPE_UNSPEC  = 0x0067
    DNS_TYPE_ADDRS   = 0x00f8
    DNS_TYPE_TKEY    = 0x00f9
    DNS_TYPE_TSIG    = 0x00fa
    DNS_TYPE_IXFR    = 0x00fb
    DNS_TYPE_AXFR    = 0x00fc
    DNS_TYPE_MAILB   = 0x00fd
    DNS_TYPE_MAILA   = 0x00fe
    DNS_TYPE_ALL     = 0x00ff
    DNS_TYPE_ANY     = 0x00ff
    DNS_TYPE_WINS    = 0xff01
    DNS_TYPE_WINSR   = 0xff02
    DNS_TYPE_NBSTAT  = 0xff01
)
const (
    HANDLE_FLAG_INHERIT            = 0x00000001
    HANDLE_FLAG_PROTECT_FROM_CLOSE = 0x00000002
    PROCESS_ALL_ACCESS = 0x001fffff
)
const (
    AF_INET = 1 + iota
    AF_INET6
    AF_UNIX
    IPPROTO_TCP
    SOCK_DGRAM
    SOCK_STREAM
    SOCK_RAW
    SOL_SOCKET
    SOMAXCONN
    SO_DONTROUTE
    SO_KEEPALIVE
    SO_LINGER
    SO_RCVBUF
    SO_REUSEADDR
    SO_SNDBUF
    IPPROTO_IPV6
    IPV6_V6ONLY
    TCP_NODELAY
    WNOHANG
    WSTOPPED
    PTRACE_TRACEME
    SO_BROADCAST = 0
    SHUT_RDWR    = 0
)

Constants

const (
    PathMax                 = 0x1000
    SizeofSockaddrInet4     = 0x10
    SizeofSockaddrInet6     = 0x1c
    SizeofSockaddrAny       = 0x70
    SizeofSockaddrUnix      = 0x6e
    SizeofSockaddrLinklayer = 0x14
    SizeofLinger            = 0x8
    SizeofMsghdr            = 0x1c
    SizeofCmsghdr           = 0xc
    SizeofUcred             = 0xc
    SizeofInotifyEvent      = 0x10
)
const (
    SYS_SYSCALL_BASE = 0
    SYS_RESTART_SYSCALL        = (SYS_SYSCALL_BASE + 0)
    SYS_EXIT                   = (SYS_SYSCALL_BASE + 1)
    SYS_FORK                   = (SYS_SYSCALL_BASE + 2)
    SYS_READ                   = (SYS_SYSCALL_BASE + 3)
    SYS_WRITE                  = (SYS_SYSCALL_BASE + 4)
    SYS_OPEN                   = (SYS_SYSCALL_BASE + 5)
    SYS_CLOSE                  = (SYS_SYSCALL_BASE + 6)
    SYS_CREAT                  = (SYS_SYSCALL_BASE + 8)
    SYS_LINK                   = (SYS_SYSCALL_BASE + 9)
    SYS_UNLINK                 = (SYS_SYSCALL_BASE + 10)
    SYS_EXECVE                 = (SYS_SYSCALL_BASE + 11)
    SYS_CHDIR                  = (SYS_SYSCALL_BASE + 12)
    SYS_TIME                   = (SYS_SYSCALL_BASE + 13)
    SYS_MKNOD                  = (SYS_SYSCALL_BASE + 14)
    SYS_CHMOD                  = (SYS_SYSCALL_BASE + 15)
    SYS_LCHOWN                 = (SYS_SYSCALL_BASE + 16)
    SYS_LSEEK                  = (SYS_SYSCALL_BASE + 19)
    SYS_GETPID                 = (SYS_SYSCALL_BASE + 20)
    SYS_MOUNT                  = (SYS_SYSCALL_BASE + 21)
    SYS_UMOUNT                 = (SYS_SYSCALL_BASE + 22)
    SYS_SETUID                 = (SYS_SYSCALL_BASE + 23)
    SYS_GETUID                 = (SYS_SYSCALL_BASE + 24)
    SYS_STIME                  = (SYS_SYSCALL_BASE + 25)
    SYS_PTRACE                 = (SYS_SYSCALL_BASE + 26)
    SYS_ALARM                  = (SYS_SYSCALL_BASE + 27)
    SYS_PAUSE                  = (SYS_SYSCALL_BASE + 29)
    SYS_UTIME                  = (SYS_SYSCALL_BASE + 30)
    SYS_ACCESS                 = (SYS_SYSCALL_BASE + 33)
    SYS_NICE                   = (SYS_SYSCALL_BASE + 34)
    SYS_SYNC                   = (SYS_SYSCALL_BASE + 36)
    SYS_KILL                   = (SYS_SYSCALL_BASE + 37)
    SYS_RENAME                 = (SYS_SYSCALL_BASE + 38)
    SYS_MKDIR                  = (SYS_SYSCALL_BASE + 39)
    SYS_RMDIR                  = (SYS_SYSCALL_BASE + 40)
    SYS_DUP                    = (SYS_SYSCALL_BASE + 41)
    SYS_PIPE                   = (SYS_SYSCALL_BASE + 42)
    SYS_TIMES                  = (SYS_SYSCALL_BASE + 43)
    SYS_BRK                    = (SYS_SYSCALL_BASE + 45)
    SYS_SETGID                 = (SYS_SYSCALL_BASE + 46)
    SYS_GETGID                 = (SYS_SYSCALL_BASE + 47)
    SYS_GETEUID                = (SYS_SYSCALL_BASE + 49)
    SYS_GETEGID                = (SYS_SYSCALL_BASE + 50)
    SYS_ACCT                   = (SYS_SYSCALL_BASE + 51)
    SYS_UMOUNT2                = (SYS_SYSCALL_BASE + 52)
    SYS_IOCTL                  = (SYS_SYSCALL_BASE + 54)
    SYS_FCNTL                  = (SYS_SYSCALL_BASE + 55)
    SYS_SETPGID                = (SYS_SYSCALL_BASE + 57)
    SYS_UMASK                  = (SYS_SYSCALL_BASE + 60)
    SYS_CHROOT                 = (SYS_SYSCALL_BASE + 61)
    SYS_USTAT                  = (SYS_SYSCALL_BASE + 62)
    SYS_DUP2                   = (SYS_SYSCALL_BASE + 63)
    SYS_GETPPID                = (SYS_SYSCALL_BASE + 64)
    SYS_GETPGRP                = (SYS_SYSCALL_BASE + 65)
    SYS_SETSID                 = (SYS_SYSCALL_BASE + 66)
    SYS_SIGACTION              = (SYS_SYSCALL_BASE + 67)
    SYS_SETREUID               = (SYS_SYSCALL_BASE + 70)
    SYS_SETREGID               = (SYS_SYSCALL_BASE + 71)
    SYS_SIGSUSPEND             = (SYS_SYSCALL_BASE + 72)
    SYS_SIGPENDING             = (SYS_SYSCALL_BASE + 73)
    SYS_SETHOSTNAME            = (SYS_SYSCALL_BASE + 74)
    SYS_SETRLIMIT              = (SYS_SYSCALL_BASE + 75)
    SYS_GETRLIMIT              = (SYS_SYSCALL_BASE + 76)
    SYS_GETRUSAGE              = (SYS_SYSCALL_BASE + 77)
    SYS_GETTIMEOFDAY           = (SYS_SYSCALL_BASE + 78)
    SYS_SETTIMEOFDAY           = (SYS_SYSCALL_BASE + 79)
    SYS_GETGROUPS              = (SYS_SYSCALL_BASE + 80)
    SYS_SETGROUPS              = (SYS_SYSCALL_BASE + 81)
    SYS_SELECT                 = (SYS_SYSCALL_BASE + 82)
    SYS_SYMLINK                = (SYS_SYSCALL_BASE + 83)
    SYS_READLINK               = (SYS_SYSCALL_BASE + 85)
    SYS_USELIB                 = (SYS_SYSCALL_BASE + 86)
    SYS_SWAPON                 = (SYS_SYSCALL_BASE + 87)
    SYS_REBOOT                 = (SYS_SYSCALL_BASE + 88)
    SYS_READDIR                = (SYS_SYSCALL_BASE + 89)
    SYS_MMAP                   = (SYS_SYSCALL_BASE + 90)
    SYS_MUNMAP                 = (SYS_SYSCALL_BASE + 91)
    SYS_TRUNCATE               = (SYS_SYSCALL_BASE + 92)
    SYS_FTRUNCATE              = (SYS_SYSCALL_BASE + 93)
    SYS_FCHMOD                 = (SYS_SYSCALL_BASE + 94)
    SYS_FCHOWN                 = (SYS_SYSCALL_BASE + 95)
    SYS_GETPRIORITY            = (SYS_SYSCALL_BASE + 96)
    SYS_SETPRIORITY            = (SYS_SYSCALL_BASE + 97)
    SYS_STATFS                 = (SYS_SYSCALL_BASE + 99)
    SYS_FSTATFS                = (SYS_SYSCALL_BASE + 100)
    SYS_SOCKETCALL             = (SYS_SYSCALL_BASE + 102)
    SYS_SYSLOG                 = (SYS_SYSCALL_BASE + 103)
    SYS_SETITIMER              = (SYS_SYSCALL_BASE + 104)
    SYS_GETITIMER              = (SYS_SYSCALL_BASE + 105)
    SYS_STAT                   = (SYS_SYSCALL_BASE + 106)
    SYS_LSTAT                  = (SYS_SYSCALL_BASE + 107)
    SYS_FSTAT                  = (SYS_SYSCALL_BASE + 108)
    SYS_VHANGUP                = (SYS_SYSCALL_BASE + 111)
    SYS_SYSCALL                = (SYS_SYSCALL_BASE + 113)
    SYS_WAIT4                  = (SYS_SYSCALL_BASE + 114)
    SYS_SWAPOFF                = (SYS_SYSCALL_BASE + 115)
    SYS_SYSINFO                = (SYS_SYSCALL_BASE + 116)
    SYS_IPC                    = (SYS_SYSCALL_BASE + 117)
    SYS_FSYNC                  = (SYS_SYSCALL_BASE + 118)
    SYS_SIGRETURN              = (SYS_SYSCALL_BASE + 119)
    SYS_CLONE                  = (SYS_SYSCALL_BASE + 120)
    SYS_SETDOMAINNAME          = (SYS_SYSCALL_BASE + 121)
    SYS_UNAME                  = (SYS_SYSCALL_BASE + 122)
    SYS_ADJTIMEX               = (SYS_SYSCALL_BASE + 124)
    SYS_MPROTECT               = (SYS_SYSCALL_BASE + 125)
    SYS_SIGPROCMASK            = (SYS_SYSCALL_BASE + 126)
    SYS_INIT_MODULE            = (SYS_SYSCALL_BASE + 128)
    SYS_DELETE_MODULE          = (SYS_SYSCALL_BASE + 129)
    SYS_QUOTACTL               = (SYS_SYSCALL_BASE + 131)
    SYS_GETPGID                = (SYS_SYSCALL_BASE + 132)
    SYS_FCHDIR                 = (SYS_SYSCALL_BASE + 133)
    SYS_BDFLUSH                = (SYS_SYSCALL_BASE + 134)
    SYS_SYSFS                  = (SYS_SYSCALL_BASE + 135)
    SYS_PERSONALITY            = (SYS_SYSCALL_BASE + 136)
    SYS_SETFSUID               = (SYS_SYSCALL_BASE + 138)
    SYS_SETFSGID               = (SYS_SYSCALL_BASE + 139)
    SYS__LLSEEK                = (SYS_SYSCALL_BASE + 140)
    SYS_GETDENTS               = (SYS_SYSCALL_BASE + 141)
    SYS__NEWSELECT             = (SYS_SYSCALL_BASE + 142)
    SYS_FLOCK                  = (SYS_SYSCALL_BASE + 143)
    SYS_MSYNC                  = (SYS_SYSCALL_BASE + 144)
    SYS_READV                  = (SYS_SYSCALL_BASE + 145)
    SYS_WRITEV                 = (SYS_SYSCALL_BASE + 146)
    SYS_GETSID                 = (SYS_SYSCALL_BASE + 147)
    SYS_FDATASYNC              = (SYS_SYSCALL_BASE + 148)
    SYS__SYSCTL                = (SYS_SYSCALL_BASE + 149)
    SYS_MLOCK                  = (SYS_SYSCALL_BASE + 150)
    SYS_MUNLOCK                = (SYS_SYSCALL_BASE + 151)
    SYS_MLOCKALL               = (SYS_SYSCALL_BASE + 152)
    SYS_MUNLOCKALL             = (SYS_SYSCALL_BASE + 153)
    SYS_SCHED_SETPARAM         = (SYS_SYSCALL_BASE + 154)
    SYS_SCHED_GETPARAM         = (SYS_SYSCALL_BASE + 155)
    SYS_SCHED_SETSCHEDULER     = (SYS_SYSCALL_BASE + 156)
    SYS_SCHED_GETSCHEDULER     = (SYS_SYSCALL_BASE + 157)
    SYS_SCHED_YIELD            = (SYS_SYSCALL_BASE + 158)
    SYS_SCHED_GET_PRIORITY_MAX = (SYS_SYSCALL_BASE + 159)
    SYS_SCHED_GET_PRIORITY_MIN = (SYS_SYSCALL_BASE + 160)
    SYS_SCHED_RR_GET_INTERVAL  = (SYS_SYSCALL_BASE + 161)
    SYS_NANOSLEEP              = (SYS_SYSCALL_BASE + 162)
    SYS_MREMAP                 = (SYS_SYSCALL_BASE + 163)
    SYS_SETRESUID              = (SYS_SYSCALL_BASE + 164)
    SYS_GETRESUID              = (SYS_SYSCALL_BASE + 165)
    SYS_POLL                   = (SYS_SYSCALL_BASE + 168)
    SYS_NFSSERVCTL             = (SYS_SYSCALL_BASE + 169)
    SYS_SETRESGID              = (SYS_SYSCALL_BASE + 170)
    SYS_GETRESGID              = (SYS_SYSCALL_BASE + 171)
    SYS_PRCTL                  = (SYS_SYSCALL_BASE + 172)
    SYS_RT_SIGRETURN           = (SYS_SYSCALL_BASE + 173)
    SYS_RT_SIGACTION           = (SYS_SYSCALL_BASE + 174)
    SYS_RT_SIGPROCMASK         = (SYS_SYSCALL_BASE + 175)
    SYS_RT_SIGPENDING          = (SYS_SYSCALL_BASE + 176)
    SYS_RT_SIGTIMEDWAIT        = (SYS_SYSCALL_BASE + 177)
    SYS_RT_SIGQUEUEINFO        = (SYS_SYSCALL_BASE + 178)
    SYS_RT_SIGSUSPEND          = (SYS_SYSCALL_BASE + 179)
    SYS_PREAD64                = (SYS_SYSCALL_BASE + 180)
    SYS_PWRITE64               = (SYS_SYSCALL_BASE + 181)
    SYS_CHOWN                  = (SYS_SYSCALL_BASE + 182)
    SYS_GETCWD                 = (SYS_SYSCALL_BASE + 183)
    SYS_CAPGET                 = (SYS_SYSCALL_BASE + 184)
    SYS_CAPSET                 = (SYS_SYSCALL_BASE + 185)
    SYS_SIGALTSTACK            = (SYS_SYSCALL_BASE + 186)
    SYS_SENDFILE               = (SYS_SYSCALL_BASE + 187)
    SYS_VFORK                  = (SYS_SYSCALL_BASE + 190)
    SYS_UGETRLIMIT             = (SYS_SYSCALL_BASE + 191)
    SYS_MMAP2                  = (SYS_SYSCALL_BASE + 192)
    SYS_TRUNCATE64             = (SYS_SYSCALL_BASE + 193)
    SYS_FTRUNCATE64            = (SYS_SYSCALL_BASE + 194)
    SYS_STAT64                 = (SYS_SYSCALL_BASE + 195)
    SYS_LSTAT64                = (SYS_SYSCALL_BASE + 196)
    SYS_FSTAT64                = (SYS_SYSCALL_BASE + 197)
    SYS_LCHOWN32               = (SYS_SYSCALL_BASE + 198)
    SYS_GETUID32               = (SYS_SYSCALL_BASE + 199)
    SYS_GETGID32               = (SYS_SYSCALL_BASE + 200)
    SYS_GETEUID32              = (SYS_SYSCALL_BASE + 201)
    SYS_GETEGID32              = (SYS_SYSCALL_BASE + 202)
    SYS_SETREUID32             = (SYS_SYSCALL_BASE + 203)
    SYS_SETREGID32             = (SYS_SYSCALL_BASE + 204)
    SYS_GETGROUPS32            = (SYS_SYSCALL_BASE + 205)
    SYS_SETGROUPS32            = (SYS_SYSCALL_BASE + 206)
    SYS_FCHOWN32               = (SYS_SYSCALL_BASE + 207)
    SYS_SETRESUID32            = (SYS_SYSCALL_BASE + 208)
    SYS_GETRESUID32            = (SYS_SYSCALL_BASE + 209)
    SYS_SETRESGID32            = (SYS_SYSCALL_BASE + 210)
    SYS_GETRESGID32            = (SYS_SYSCALL_BASE + 211)
    SYS_CHOWN32                = (SYS_SYSCALL_BASE + 212)
    SYS_SETUID32               = (SYS_SYSCALL_BASE + 213)
    SYS_SETGID32               = (SYS_SYSCALL_BASE + 214)
    SYS_SETFSUID32             = (SYS_SYSCALL_BASE + 215)
    SYS_SETFSGID32             = (SYS_SYSCALL_BASE + 216)
    SYS_GETDENTS64             = (SYS_SYSCALL_BASE + 217)
    SYS_PIVOT_ROOT             = (SYS_SYSCALL_BASE + 218)
    SYS_MINCORE                = (SYS_SYSCALL_BASE + 219)
    SYS_MADVISE                = (SYS_SYSCALL_BASE + 220)
    SYS_FCNTL64                = (SYS_SYSCALL_BASE + 221)
    SYS_GETTID                 = (SYS_SYSCALL_BASE + 224)
    SYS_READAHEAD              = (SYS_SYSCALL_BASE + 225)
    SYS_SETXATTR               = (SYS_SYSCALL_BASE + 226)
    SYS_LSETXATTR              = (SYS_SYSCALL_BASE + 227)
    SYS_FSETXATTR              = (SYS_SYSCALL_BASE + 228)
    SYS_GETXATTR               = (SYS_SYSCALL_BASE + 229)
    SYS_LGETXATTR              = (SYS_SYSCALL_BASE + 230)
    SYS_FGETXATTR              = (SYS_SYSCALL_BASE + 231)
    SYS_LISTXATTR              = (SYS_SYSCALL_BASE + 232)
    SYS_LLISTXATTR             = (SYS_SYSCALL_BASE + 233)
    SYS_FLISTXATTR             = (SYS_SYSCALL_BASE + 234)
    SYS_REMOVEXATTR            = (SYS_SYSCALL_BASE + 235)
    SYS_LREMOVEXATTR           = (SYS_SYSCALL_BASE + 236)
    SYS_FREMOVEXATTR           = (SYS_SYSCALL_BASE + 237)
    SYS_TKILL                  = (SYS_SYSCALL_BASE + 238)
    SYS_SENDFILE64             = (SYS_SYSCALL_BASE + 239)
    SYS_FUTEX                  = (SYS_SYSCALL_BASE + 240)
    SYS_SCHED_SETAFFINITY      = (SYS_SYSCALL_BASE + 241)
    SYS_SCHED_GETAFFINITY      = (SYS_SYSCALL_BASE + 242)
    SYS_IO_SETUP               = (SYS_SYSCALL_BASE + 243)
    SYS_IO_DESTROY             = (SYS_SYSCALL_BASE + 244)
    SYS_IO_GETEVENTS           = (SYS_SYSCALL_BASE + 245)
    SYS_IO_SUBMIT              = (SYS_SYSCALL_BASE + 246)
    SYS_IO_CANCEL              = (SYS_SYSCALL_BASE + 247)
    SYS_EXIT_GROUP             = (SYS_SYSCALL_BASE + 248)
    SYS_LOOKUP_DCOOKIE         = (SYS_SYSCALL_BASE + 249)
    SYS_EPOLL_CREATE           = (SYS_SYSCALL_BASE + 250)
    SYS_EPOLL_CTL              = (SYS_SYSCALL_BASE + 251)
    SYS_EPOLL_WAIT             = (SYS_SYSCALL_BASE + 252)
    SYS_REMAP_FILE_PAGES       = (SYS_SYSCALL_BASE + 253)
    SYS_SET_TID_ADDRESS        = (SYS_SYSCALL_BASE + 256)
    SYS_TIMER_CREATE           = (SYS_SYSCALL_BASE + 257)
    SYS_TIMER_SETTIME          = (SYS_SYSCALL_BASE + 258)
    SYS_TIMER_GETTIME          = (SYS_SYSCALL_BASE + 259)
    SYS_TIMER_GETOVERRUN       = (SYS_SYSCALL_BASE + 260)
    SYS_TIMER_DELETE           = (SYS_SYSCALL_BASE + 261)
    SYS_CLOCK_SETTIME          = (SYS_SYSCALL_BASE + 262)
    SYS_CLOCK_GETTIME          = (SYS_SYSCALL_BASE + 263)
    SYS_CLOCK_GETRES           = (SYS_SYSCALL_BASE + 264)
    SYS_CLOCK_NANOSLEEP        = (SYS_SYSCALL_BASE + 265)
    SYS_STATFS64               = (SYS_SYSCALL_BASE + 266)
    SYS_FSTATFS64              = (SYS_SYSCALL_BASE + 267)
    SYS_TGKILL                 = (SYS_SYSCALL_BASE + 268)
    SYS_UTIMES                 = (SYS_SYSCALL_BASE + 269)
    SYS_ARM_FADVISE64_64       = (SYS_SYSCALL_BASE + 270)
    SYS_PCICONFIG_IOBASE       = (SYS_SYSCALL_BASE + 271)
    SYS_PCICONFIG_READ         = (SYS_SYSCALL_BASE + 272)
    SYS_PCICONFIG_WRITE        = (SYS_SYSCALL_BASE + 273)
    SYS_MQ_OPEN                = (SYS_SYSCALL_BASE + 274)
    SYS_MQ_UNLINK              = (SYS_SYSCALL_BASE + 275)
    SYS_MQ_TIMEDSEND           = (SYS_SYSCALL_BASE + 276)
    SYS_MQ_TIMEDRECEIVE        = (SYS_SYSCALL_BASE + 277)
    SYS_MQ_NOTIFY              = (SYS_SYSCALL_BASE + 278)
    SYS_MQ_GETSETATTR          = (SYS_SYSCALL_BASE + 279)
    SYS_WAITID                 = (SYS_SYSCALL_BASE + 280)
    SYS_SOCKET                 = (SYS_SYSCALL_BASE + 281)
    SYS_BIND                   = (SYS_SYSCALL_BASE + 282)
    SYS_CONNECT                = (SYS_SYSCALL_BASE + 283)
    SYS_LISTEN                 = (SYS_SYSCALL_BASE + 284)
    SYS_ACCEPT                 = (SYS_SYSCALL_BASE + 285)
    SYS_GETSOCKNAME            = (SYS_SYSCALL_BASE + 286)
    SYS_GETPEERNAME            = (SYS_SYSCALL_BASE + 287)
    SYS_SOCKETPAIR             = (SYS_SYSCALL_BASE + 288)
    SYS_SEND                   = (SYS_SYSCALL_BASE + 289)
    SYS_SENDTO                 = (SYS_SYSCALL_BASE + 290)
    SYS_RECV                   = (SYS_SYSCALL_BASE + 291)
    SYS_RECVFROM               = (SYS_SYSCALL_BASE + 292)
    SYS_SHUTDOWN               = (SYS_SYSCALL_BASE + 293)
    SYS_SETSOCKOPT             = (SYS_SYSCALL_BASE + 294)
    SYS_GETSOCKOPT             = (SYS_SYSCALL_BASE + 295)
    SYS_SENDMSG                = (SYS_SYSCALL_BASE + 296)
    SYS_RECVMSG                = (SYS_SYSCALL_BASE + 297)
    SYS_SEMOP                  = (SYS_SYSCALL_BASE + 298)
    SYS_SEMGET                 = (SYS_SYSCALL_BASE + 299)
    SYS_SEMCTL                 = (SYS_SYSCALL_BASE + 300)
    SYS_MSGSND                 = (SYS_SYSCALL_BASE + 301)
    SYS_MSGRCV                 = (SYS_SYSCALL_BASE + 302)
    SYS_MSGGET                 = (SYS_SYSCALL_BASE + 303)
    SYS_MSGCTL                 = (SYS_SYSCALL_BASE + 304)
    SYS_SHMAT                  = (SYS_SYSCALL_BASE + 305)
    SYS_SHMDT                  = (SYS_SYSCALL_BASE + 306)
    SYS_SHMGET                 = (SYS_SYSCALL_BASE + 307)
    SYS_SHMCTL                 = (SYS_SYSCALL_BASE + 308)
    SYS_ADD_KEY                = (SYS_SYSCALL_BASE + 309)
    SYS_REQUEST_KEY            = (SYS_SYSCALL_BASE + 310)
    SYS_KEYCTL                 = (SYS_SYSCALL_BASE + 311)
    SYS_SEMTIMEDOP             = (SYS_SYSCALL_BASE + 312)
    SYS_VSERVER                = (SYS_SYSCALL_BASE + 313)
    SYS_IOPRIO_SET             = (SYS_SYSCALL_BASE + 314)
    SYS_IOPRIO_GET             = (SYS_SYSCALL_BASE + 315)
    SYS_INOTIFY_INIT           = (SYS_SYSCALL_BASE + 316)
    SYS_INOTIFY_ADD_WATCH      = (SYS_SYSCALL_BASE + 317)
    SYS_INOTIFY_RM_WATCH       = (SYS_SYSCALL_BASE + 318)
    SYS_MBIND                  = (SYS_SYSCALL_BASE + 319)
    SYS_GET_MEMPOLICY          = (SYS_SYSCALL_BASE + 320)
    SYS_SET_MEMPOLICY          = (SYS_SYSCALL_BASE + 321)
    SYS_OPENAT                 = (SYS_SYSCALL_BASE + 322)
    SYS_MKDIRAT                = (SYS_SYSCALL_BASE + 323)
    SYS_MKNODAT                = (SYS_SYSCALL_BASE + 324)
    SYS_FCHOWNAT               = (SYS_SYSCALL_BASE + 325)
    SYS_FUTIMESAT              = (SYS_SYSCALL_BASE + 326)
    SYS_FSTATAT64              = (SYS_SYSCALL_BASE + 327)
    SYS_UNLINKAT               = (SYS_SYSCALL_BASE + 328)
    SYS_RENAMEAT               = (SYS_SYSCALL_BASE + 329)
    SYS_LINKAT                 = (SYS_SYSCALL_BASE + 330)
    SYS_SYMLINKAT              = (SYS_SYSCALL_BASE + 331)
    SYS_READLINKAT             = (SYS_SYSCALL_BASE + 332)
    SYS_FCHMODAT               = (SYS_SYSCALL_BASE + 333)
    SYS_FACCESSAT              = (SYS_SYSCALL_BASE + 334)
    SYS_UNSHARE                = (SYS_SYSCALL_BASE + 337)
    SYS_SET_ROBUST_LIST        = (SYS_SYSCALL_BASE + 338)
    SYS_GET_ROBUST_LIST        = (SYS_SYSCALL_BASE + 339)
    SYS_SPLICE                 = (SYS_SYSCALL_BASE + 340)
    SYS_ARM_SYNC_FILE_RANGE    = (SYS_SYSCALL_BASE + 341)
    SYS_SYNC_FILE_RANGE2       = SYS_ARM_SYNC_FILE_RANGE
    SYS_TEE                    = (SYS_SYSCALL_BASE + 342)
    SYS_VMSPLICE               = (SYS_SYSCALL_BASE + 343)
    SYS_MOVE_PAGES             = (SYS_SYSCALL_BASE + 344)
    SYS_GETCPU                 = (SYS_SYSCALL_BASE + 345)
    SYS_KEXEC_LOAD             = (SYS_SYSCALL_BASE + 347)
    SYS_UTIMENSAT              = (SYS_SYSCALL_BASE + 348)
    SYS_SIGNALFD               = (SYS_SYSCALL_BASE + 349)
    SYS_TIMERFD_CREATE         = (SYS_SYSCALL_BASE + 350)
    SYS_EVENTFD                = (SYS_SYSCALL_BASE + 351)
    SYS_FALLOCATE              = (SYS_SYSCALL_BASE + 352)
    SYS_TIMERFD_SETTIME        = (SYS_SYSCALL_BASE + 353)
    SYS_TIMERFD_GETTIME        = (SYS_SYSCALL_BASE + 354)
    SYS_SIGNALFD4              = (SYS_SYSCALL_BASE + 355)
    SYS_EVENTFD2               = (SYS_SYSCALL_BASE + 356)
    SYS_EPOLL_CREATE1          = (SYS_SYSCALL_BASE + 357)
    SYS_DUP3                   = (SYS_SYSCALL_BASE + 358)
    SYS_PIPE2                  = (SYS_SYSCALL_BASE + 359)
    SYS_INOTIFY_INIT1          = (SYS_SYSCALL_BASE + 360)
)

Constants

const (
    O_CLOEXEC           = 0
    S_IFMT              = 0xf000
    S_IFIFO             = 0x1000
    S_IFCHR             = 0x2000
    S_IFDIR             = 0x4000
    S_IFBLK             = 0x6000
    S_IFREG             = 0x8000
    S_IFLNK             = 0xa000
    S_IFSOCK            = 0xc000
    S_ISUID             = 0x800
    S_ISGID             = 0x400
    S_ISVTX             = 0x200
    S_IRUSR             = 0x100
    S_IWUSR             = 0x80
    S_IXUSR             = 0x40
    SizeofSockaddrInet4 = 0x10
    SizeofSockaddrInet6 = 0x1c
    SizeofSockaddrAny   = 0x6c
    SizeofSockaddrUnix  = 0x6a
    SizeofLinger        = 0x8
    SizeofMsghdr        = 0x30
    SizeofCmsghdr       = 0xc
    PTRACE_TRACEME      = 0
    PTRACE_CONT         = 0x7
    PTRACE_KILL         = 0x8
)

Constants

const (
    O_CLOEXEC           = 0
    S_IFMT              = 0xf000
    S_IFIFO             = 0x1000
    S_IFCHR             = 0x2000
    S_IFDIR             = 0x4000
    S_IFBLK             = 0x6000
    S_IFREG             = 0x8000
    S_IFLNK             = 0xa000
    S_IFSOCK            = 0xc000
    S_ISUID             = 0x800
    S_ISGID             = 0x400
    S_ISVTX             = 0x200
    S_IRUSR             = 0x100
    S_IWUSR             = 0x80
    S_IXUSR             = 0x40
    SizeofSockaddrInet4 = 0x10
    SizeofSockaddrInet6 = 0x1c
    SizeofSockaddrAny   = 0x6c
    SizeofSockaddrUnix  = 0x6a
    SizeofLinger        = 0x8
    SizeofMsghdr        = 0x1c
    SizeofCmsghdr       = 0xc
    PTRACE_TRACEME      = 0
    PTRACE_CONT         = 0x7
    PTRACE_KILL         = 0x8
)
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
)
const (
    // SYS_NOSYS = 0;  // { int nosys(void); } syscall nosys_args int
    SYS_EXIT                     = 1   // { void sys_exit(int rval); } exit \
    SYS_FORK                     = 2   // { int fork(void); }
    SYS_READ                     = 3   // { ssize_t read(int fd, void *buf, \
    SYS_WRITE                    = 4   // { ssize_t write(int fd, const void *buf, \
    SYS_OPEN                     = 5   // { int open(char *path, int flags, int mode); }
    SYS_CLOSE                    = 6   // { int close(int fd); }
    SYS_WAIT4                    = 7   // { int wait4(int pid, int *status, \
    SYS_LINK                     = 9   // { int link(char *path, char *link); }
    SYS_UNLINK                   = 10  // { int unlink(char *path); }
    SYS_CHDIR                    = 12  // { int chdir(char *path); }
    SYS_FCHDIR                   = 13  // { int fchdir(int fd); }
    SYS_MKNOD                    = 14  // { int mknod(char *path, int mode, int dev); }
    SYS_CHMOD                    = 15  // { int chmod(char *path, int mode); }
    SYS_CHOWN                    = 16  // { int chown(char *path, int uid, int gid); }
    SYS_OBREAK                   = 17  // { int obreak(char *nsize); } break \
    SYS_GETPID                   = 20  // { pid_t getpid(void); }
    SYS_MOUNT                    = 21  // { int mount(char *type, char *path, \
    SYS_UNMOUNT                  = 22  // { int unmount(char *path, int flags); }
    SYS_SETUID                   = 23  // { int setuid(uid_t uid); }
    SYS_GETUID                   = 24  // { uid_t getuid(void); }
    SYS_GETEUID                  = 25  // { uid_t geteuid(void); }
    SYS_PTRACE                   = 26  // { int ptrace(int req, pid_t pid, \
    SYS_RECVMSG                  = 27  // { int recvmsg(int s, struct msghdr *msg, \
    SYS_SENDMSG                  = 28  // { int sendmsg(int s, struct msghdr *msg, \
    SYS_RECVFROM                 = 29  // { int recvfrom(int s, caddr_t buf, \
    SYS_ACCEPT                   = 30  // { int accept(int s, \
    SYS_GETPEERNAME              = 31  // { int getpeername(int fdes, \
    SYS_GETSOCKNAME              = 32  // { int getsockname(int fdes, \
    SYS_ACCESS                   = 33  // { int access(char *path, int flags); }
    SYS_CHFLAGS                  = 34  // { int chflags(char *path, int flags); }
    SYS_FCHFLAGS                 = 35  // { int fchflags(int fd, int flags); }
    SYS_SYNC                     = 36  // { int sync(void); }
    SYS_KILL                     = 37  // { int kill(int pid, int signum); }
    SYS_GETPPID                  = 39  // { pid_t getppid(void); }
    SYS_DUP                      = 41  // { int dup(u_int fd); }
    SYS_PIPE                     = 42  // { int pipe(void); }
    SYS_GETEGID                  = 43  // { gid_t getegid(void); }
    SYS_PROFIL                   = 44  // { int profil(caddr_t samples, size_t size, \
    SYS_KTRACE                   = 45  // { int ktrace(const char *fname, int ops, \
    SYS_GETGID                   = 47  // { gid_t getgid(void); }
    SYS_GETLOGIN                 = 49  // { int getlogin(char *namebuf, u_int \
    SYS_SETLOGIN                 = 50  // { int setlogin(char *namebuf); }
    SYS_ACCT                     = 51  // { int acct(char *path); }
    SYS_SIGALTSTACK              = 53  // { int sigaltstack(stack_t *ss, \
    SYS_IOCTL                    = 54  // { int ioctl(int fd, u_long com, \
    SYS_REBOOT                   = 55  // { int reboot(int opt); }
    SYS_REVOKE                   = 56  // { int revoke(char *path); }
    SYS_SYMLINK                  = 57  // { int symlink(char *path, char *link); }
    SYS_READLINK                 = 58  // { ssize_t readlink(char *path, char *buf, \
    SYS_EXECVE                   = 59  // { int execve(char *fname, char **argv, \
    SYS_UMASK                    = 60  // { int umask(int newmask); } umask umask_args \
    SYS_CHROOT                   = 61  // { int chroot(char *path); }
    SYS_MSYNC                    = 65  // { int msync(void *addr, size_t len, \
    SYS_VFORK                    = 66  // { int vfork(void); }
    SYS_SBRK                     = 69  // { int sbrk(int incr); }
    SYS_SSTK                     = 70  // { int sstk(int incr); }
    SYS_OVADVISE                 = 72  // { int ovadvise(int anom); } vadvise \
    SYS_MUNMAP                   = 73  // { int munmap(void *addr, size_t len); }
    SYS_MPROTECT                 = 74  // { int mprotect(const void *addr, size_t len, \
    SYS_MADVISE                  = 75  // { int madvise(void *addr, size_t len, \
    SYS_MINCORE                  = 78  // { int mincore(const void *addr, size_t len, \
    SYS_GETGROUPS                = 79  // { int getgroups(u_int gidsetsize, \
    SYS_SETGROUPS                = 80  // { int setgroups(u_int gidsetsize, \
    SYS_GETPGRP                  = 81  // { int getpgrp(void); }
    SYS_SETPGID                  = 82  // { int setpgid(int pid, int pgid); }
    SYS_SETITIMER                = 83  // { int setitimer(u_int which, struct \
    SYS_SWAPON                   = 85  // { int swapon(char *name); }
    SYS_GETITIMER                = 86  // { int getitimer(u_int which, \
    SYS_GETDTABLESIZE            = 89  // { int getdtablesize(void); }
    SYS_DUP2                     = 90  // { int dup2(u_int from, u_int to); }
    SYS_FCNTL                    = 92  // { int fcntl(int fd, int cmd, long arg); }
    SYS_SELECT                   = 93  // { int select(int nd, fd_set *in, fd_set *ou, \
    SYS_FSYNC                    = 95  // { int fsync(int fd); }
    SYS_SETPRIORITY              = 96  // { int setpriority(int which, int who, \
    SYS_SOCKET                   = 97  // { int socket(int domain, int type, \
    SYS_CONNECT                  = 98  // { int connect(int s, caddr_t name, \
    SYS_GETPRIORITY              = 100 // { int getpriority(int which, int who); }
    SYS_BIND                     = 104 // { int bind(int s, caddr_t name, \
    SYS_SETSOCKOPT               = 105 // { int setsockopt(int s, int level, int name, \
    SYS_LISTEN                   = 106 // { int listen(int s, int backlog); }
    SYS_GETTIMEOFDAY             = 116 // { int gettimeofday(struct timeval *tp, \
    SYS_GETRUSAGE                = 117 // { int getrusage(int who, \
    SYS_GETSOCKOPT               = 118 // { int getsockopt(int s, int level, int name, \
    SYS_READV                    = 120 // { int readv(int fd, struct iovec *iovp, \
    SYS_WRITEV                   = 121 // { int writev(int fd, struct iovec *iovp, \
    SYS_SETTIMEOFDAY             = 122 // { int settimeofday(struct timeval *tv, \
    SYS_FCHOWN                   = 123 // { int fchown(int fd, int uid, int gid); }
    SYS_FCHMOD                   = 124 // { int fchmod(int fd, int mode); }
    SYS_SETREUID                 = 126 // { int setreuid(int ruid, int euid); }
    SYS_SETREGID                 = 127 // { int setregid(int rgid, int egid); }
    SYS_RENAME                   = 128 // { int rename(char *from, char *to); }
    SYS_FLOCK                    = 131 // { int flock(int fd, int how); }
    SYS_MKFIFO                   = 132 // { int mkfifo(char *path, int mode); }
    SYS_SENDTO                   = 133 // { int sendto(int s, caddr_t buf, size_t len, \
    SYS_SHUTDOWN                 = 134 // { int shutdown(int s, int how); }
    SYS_SOCKETPAIR               = 135 // { int socketpair(int domain, int type, \
    SYS_MKDIR                    = 136 // { int mkdir(char *path, int mode); }
    SYS_RMDIR                    = 137 // { int rmdir(char *path); }
    SYS_UTIMES                   = 138 // { int utimes(char *path, \
    SYS_ADJTIME                  = 140 // { int adjtime(struct timeval *delta, \
    SYS_SETSID                   = 147 // { int setsid(void); }
    SYS_QUOTACTL                 = 148 // { int quotactl(char *path, int cmd, int uid, \
    SYS_LGETFH                   = 160 // { int lgetfh(char *fname, \
    SYS_GETFH                    = 161 // { int getfh(char *fname, \
    SYS_SYSARCH                  = 165 // { int sysarch(int op, char *parms); }
    SYS_RTPRIO                   = 166 // { int rtprio(int function, pid_t pid, \
    SYS_FREEBSD6_PREAD           = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
    SYS_FREEBSD6_PWRITE          = 174 // { ssize_t freebsd6_pwrite(int fd, \
    SYS_SETFIB                   = 175 // { int setfib(int fibnum); }
    SYS_NTP_ADJTIME              = 176 // { int ntp_adjtime(struct timex *tp); }
    SYS_SETGID                   = 181 // { int setgid(gid_t gid); }
    SYS_SETEGID                  = 182 // { int setegid(gid_t egid); }
    SYS_SETEUID                  = 183 // { int seteuid(uid_t euid); }
    SYS_STAT                     = 188 // { int stat(char *path, struct stat *ub); }
    SYS_FSTAT                    = 189 // { int fstat(int fd, struct stat *sb); }
    SYS_LSTAT                    = 190 // { int lstat(char *path, struct stat *ub); }
    SYS_PATHCONF                 = 191 // { int pathconf(char *path, int name); }
    SYS_FPATHCONF                = 192 // { int fpathconf(int fd, int name); }
    SYS_GETRLIMIT                = 194 // { int getrlimit(u_int which, \
    SYS_SETRLIMIT                = 195 // { int setrlimit(u_int which, \
    SYS_GETDIRENTRIES            = 196 // { int getdirentries(int fd, char *buf, \
    SYS_FREEBSD6_MMAP            = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \
    SYS_FREEBSD6_LSEEK           = 199 // { off_t freebsd6_lseek(int fd, int pad, \
    SYS_FREEBSD6_TRUNCATE        = 200 // { int freebsd6_truncate(char *path, int pad, \
    SYS_FREEBSD6_FTRUNCATE       = 201 // { int freebsd6_ftruncate(int fd, int pad, \
    SYS___SYSCTL                 = 202 // { int __sysctl(int *name, u_int namelen, \
    SYS_MLOCK                    = 203 // { int mlock(const void *addr, size_t len); }
    SYS_MUNLOCK                  = 204 // { int munlock(const void *addr, size_t len); }
    SYS_UNDELETE                 = 205 // { int undelete(char *path); }
    SYS_FUTIMES                  = 206 // { int futimes(int fd, struct timeval *tptr); }
    SYS_GETPGID                  = 207 // { int getpgid(pid_t pid); }
    SYS_POLL                     = 209 // { int poll(struct pollfd *fds, u_int nfds, \
    SYS_CLOCK_GETTIME            = 232 // { int clock_gettime(clockid_t clock_id, \
    SYS_CLOCK_SETTIME            = 233 // { int clock_settime( \
    SYS_CLOCK_GETRES             = 234 // { int clock_getres(clockid_t clock_id, \
    SYS_KTIMER_CREATE            = 235 // { int ktimer_create(clockid_t clock_id, \
    SYS_KTIMER_DELETE            = 236 // { int ktimer_delete(int timerid); }
    SYS_KTIMER_SETTIME           = 237 // { int ktimer_settime(int timerid, int flags, \
    SYS_KTIMER_GETTIME           = 238 // { int ktimer_gettime(int timerid, struct \
    SYS_KTIMER_GETOVERRUN        = 239 // { int ktimer_getoverrun(int timerid); }
    SYS_NANOSLEEP                = 240 // { int nanosleep(const struct timespec *rqtp, \
    SYS_NTP_GETTIME              = 248 // { int ntp_gettime(struct ntptimeval *ntvp); }
    SYS_MINHERIT                 = 250 // { int minherit(void *addr, size_t len, \
    SYS_RFORK                    = 251 // { int rfork(int flags); }
    SYS_OPENBSD_POLL             = 252 // { int openbsd_poll(struct pollfd *fds, \
    SYS_ISSETUGID                = 253 // { int issetugid(void); }
    SYS_LCHOWN                   = 254 // { int lchown(char *path, int uid, int gid); }
    SYS_GETDENTS                 = 272 // { int getdents(int fd, char *buf, \
    SYS_LCHMOD                   = 274 // { int lchmod(char *path, mode_t mode); }
    SYS_LUTIMES                  = 276 // { int lutimes(char *path, \
    SYS_NSTAT                    = 278 // { int nstat(char *path, struct nstat *ub); }
    SYS_NFSTAT                   = 279 // { int nfstat(int fd, struct nstat *sb); }
    SYS_NLSTAT                   = 280 // { int nlstat(char *path, struct nstat *ub); }
    SYS_PREADV                   = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \
    SYS_PWRITEV                  = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \
    SYS_FHOPEN                   = 298 // { int fhopen(const struct fhandle *u_fhp, \
    SYS_FHSTAT                   = 299 // { int fhstat(const struct fhandle *u_fhp, \
    SYS_MODNEXT                  = 300 // { int modnext(int modid); }
    SYS_MODSTAT                  = 301 // { int modstat(int modid, \
    SYS_MODFNEXT                 = 302 // { int modfnext(int modid); }
    SYS_MODFIND                  = 303 // { int modfind(const char *name); }
    SYS_KLDLOAD                  = 304 // { int kldload(const char *file); }
    SYS_KLDUNLOAD                = 305 // { int kldunload(int fileid); }
    SYS_KLDFIND                  = 306 // { int kldfind(const char *file); }
    SYS_KLDNEXT                  = 307 // { int kldnext(int fileid); }
    SYS_KLDSTAT                  = 308 // { int kldstat(int fileid, struct \
    SYS_KLDFIRSTMOD              = 309 // { int kldfirstmod(int fileid); }
    SYS_GETSID                   = 310 // { int getsid(pid_t pid); }
    SYS_SETRESUID                = 311 // { int setresuid(uid_t ruid, uid_t euid, \
    SYS_SETRESGID                = 312 // { int setresgid(gid_t rgid, gid_t egid, \
    SYS_YIELD                    = 321 // { int yield(void); }
    SYS_MLOCKALL                 = 324 // { int mlockall(int how); }
    SYS_MUNLOCKALL               = 325 // { int munlockall(void); }
    SYS___GETCWD                 = 326 // { int __getcwd(u_char *buf, u_int buflen); }
    SYS_SCHED_SETPARAM           = 327 // { int sched_setparam (pid_t pid, \
    SYS_SCHED_GETPARAM           = 328 // { int sched_getparam (pid_t pid, struct \
    SYS_SCHED_SETSCHEDULER       = 329 // { int sched_setscheduler (pid_t pid, int \
    SYS_SCHED_GETSCHEDULER       = 330 // { int sched_getscheduler (pid_t pid); }
    SYS_SCHED_YIELD              = 331 // { int sched_yield (void); }
    SYS_SCHED_GET_PRIORITY_MAX   = 332 // { int sched_get_priority_max (int policy); }
    SYS_SCHED_GET_PRIORITY_MIN   = 333 // { int sched_get_priority_min (int policy); }
    SYS_SCHED_RR_GET_INTERVAL    = 334 // { int sched_rr_get_interval (pid_t pid, \
    SYS_UTRACE                   = 335 // { int utrace(const void *addr, size_t len); }
    SYS_KLDSYM                   = 337 // { int kldsym(int fileid, int cmd, \
    SYS_JAIL                     = 338 // { int jail(struct jail *jail); }
    SYS_SIGPROCMASK              = 340 // { int sigprocmask(int how, \
    SYS_SIGSUSPEND               = 341 // { int sigsuspend(const sigset_t *sigmask); }
    SYS_SIGPENDING               = 343 // { int sigpending(sigset_t *set); }
    SYS_SIGTIMEDWAIT             = 345 // { int sigtimedwait(const sigset_t *set, \
    SYS_SIGWAITINFO              = 346 // { int sigwaitinfo(const sigset_t *set, \
    SYS___ACL_GET_FILE           = 347 // { int __acl_get_file(const char *path, \
    SYS___ACL_SET_FILE           = 348 // { int __acl_set_file(const char *path, \
    SYS___ACL_GET_FD             = 349 // { int __acl_get_fd(int filedes, \
    SYS___ACL_SET_FD             = 350 // { int __acl_set_fd(int filedes, \
    SYS___ACL_DELETE_FILE        = 351 // { int __acl_delete_file(const char *path, \
    SYS___ACL_DELETE_FD          = 352 // { int __acl_delete_fd(int filedes, \
    SYS___ACL_ACLCHECK_FILE      = 353 // { int __acl_aclcheck_file(const char *path, \
    SYS___ACL_ACLCHECK_FD        = 354 // { int __acl_aclcheck_fd(int filedes, \
    SYS_EXTATTRCTL               = 355 // { int extattrctl(const char *path, int cmd, \
    SYS_EXTATTR_SET_FILE         = 356 // { int extattr_set_file( \
    SYS_EXTATTR_GET_FILE         = 357 // { ssize_t extattr_get_file( \
    SYS_EXTATTR_DELETE_FILE      = 358 // { int extattr_delete_file(const char *path, \
    SYS_GETRESUID                = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
    SYS_GETRESGID                = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
    SYS_KQUEUE                   = 362 // { int kqueue(void); }
    SYS_KEVENT                   = 363 // { int kevent(int fd, \
    SYS_EXTATTR_SET_FD           = 371 // { int extattr_set_fd(int fd, \
    SYS_EXTATTR_GET_FD           = 372 // { ssize_t extattr_get_fd(int fd, \
    SYS_EXTATTR_DELETE_FD        = 373 // { int extattr_delete_fd(int fd, \
    SYS___SETUGID                = 374 // { int __setugid(int flag); }
    SYS_EACCESS                  = 376 // { int eaccess(char *path, int flags); }
    SYS_NMOUNT                   = 378 // { int nmount(struct iovec *iovp, \
    SYS___MAC_GET_PROC           = 384 // { int __mac_get_proc(struct mac *mac_p); }
    SYS___MAC_SET_PROC           = 385 // { int __mac_set_proc(struct mac *mac_p); }
    SYS___MAC_GET_FD             = 386 // { int __mac_get_fd(int fd, \
    SYS___MAC_GET_FILE           = 387 // { int __mac_get_file(const char *path_p, \
    SYS___MAC_SET_FD             = 388 // { int __mac_set_fd(int fd, \
    SYS___MAC_SET_FILE           = 389 // { int __mac_set_file(const char *path_p, \
    SYS_KENV                     = 390 // { int kenv(int what, const char *name, \
    SYS_LCHFLAGS                 = 391 // { int lchflags(const char *path, int flags); }
    SYS_UUIDGEN                  = 392 // { int uuidgen(struct uuid *store, \
    SYS_SENDFILE                 = 393 // { int sendfile(int fd, int s, off_t offset, \
    SYS_MAC_SYSCALL              = 394 // { int mac_syscall(const char *policy, \
    SYS_GETFSSTAT                = 395 // { int getfsstat(struct statfs *buf, \
    SYS_STATFS                   = 396 // { int statfs(char *path, \
    SYS_FSTATFS                  = 397 // { int fstatfs(int fd, struct statfs *buf); }
    SYS_FHSTATFS                 = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
    SYS___MAC_GET_PID            = 409 // { int __mac_get_pid(pid_t pid, \
    SYS___MAC_GET_LINK           = 410 // { int __mac_get_link(const char *path_p, \
    SYS___MAC_SET_LINK           = 411 // { int __mac_set_link(const char *path_p, \
    SYS_EXTATTR_SET_LINK         = 412 // { int extattr_set_link( \
    SYS_EXTATTR_GET_LINK         = 413 // { ssize_t extattr_get_link( \
    SYS_EXTATTR_DELETE_LINK      = 414 // { int extattr_delete_link( \
    SYS___MAC_EXECVE             = 415 // { int __mac_execve(char *fname, char **argv, \
    SYS_SIGACTION                = 416 // { int sigaction(int sig, \
    SYS_SIGRETURN                = 417 // { int sigreturn( \
    SYS_GETCONTEXT               = 421 // { int getcontext(struct __ucontext *ucp); }
    SYS_SETCONTEXT               = 422 // { int setcontext( \
    SYS_SWAPCONTEXT              = 423 // { int swapcontext(struct __ucontext *oucp, \
    SYS_SWAPOFF                  = 424 // { int swapoff(const char *name); }
    SYS___ACL_GET_LINK           = 425 // { int __acl_get_link(const char *path, \
    SYS___ACL_SET_LINK           = 426 // { int __acl_set_link(const char *path, \
    SYS___ACL_DELETE_LINK        = 427 // { int __acl_delete_link(const char *path, \
    SYS___ACL_ACLCHECK_LINK      = 428 // { int __acl_aclcheck_link(const char *path, \
    SYS_SIGWAIT                  = 429 // { int sigwait(const sigset_t *set, \
    SYS_THR_CREATE               = 430 // { int thr_create(ucontext_t *ctx, long *id, \
    SYS_THR_EXIT                 = 431 // { void thr_exit(long *state); }
    SYS_THR_SELF                 = 432 // { int thr_self(long *id); }
    SYS_THR_KILL                 = 433 // { int thr_kill(long id, int sig); }
    SYS__UMTX_LOCK               = 434 // { int _umtx_lock(struct umtx *umtx); }
    SYS__UMTX_UNLOCK             = 435 // { int _umtx_unlock(struct umtx *umtx); }
    SYS_JAIL_ATTACH              = 436 // { int jail_attach(int jid); }
    SYS_EXTATTR_LIST_FD          = 437 // { ssize_t extattr_list_fd(int fd, \
    SYS_EXTATTR_LIST_FILE        = 438 // { ssize_t extattr_list_file( \
    SYS_EXTATTR_LIST_LINK        = 439 // { ssize_t extattr_list_link( \
    SYS_THR_SUSPEND              = 442 // { int thr_suspend( \
    SYS_THR_WAKE                 = 443 // { int thr_wake(long id); }
    SYS_KLDUNLOADF               = 444 // { int kldunloadf(int fileid, int flags); }
    SYS_AUDIT                    = 445 // { int audit(const void *record, \
    SYS_AUDITON                  = 446 // { int auditon(int cmd, void *data, \
    SYS_GETAUID                  = 447 // { int getauid(uid_t *auid); }
    SYS_SETAUID                  = 448 // { int setauid(uid_t *auid); }
    SYS_GETAUDIT                 = 449 // { int getaudit(struct auditinfo *auditinfo); }
    SYS_SETAUDIT                 = 450 // { int setaudit(struct auditinfo *auditinfo); }
    SYS_GETAUDIT_ADDR            = 451 // { int getaudit_addr( \
    SYS_SETAUDIT_ADDR            = 452 // { int setaudit_addr( \
    SYS_AUDITCTL                 = 453 // { int auditctl(char *path); }
    SYS__UMTX_OP                 = 454 // { int _umtx_op(void *obj, int op, \
    SYS_THR_NEW                  = 455 // { int thr_new(struct thr_param *param, \
    SYS_SIGQUEUE                 = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
    SYS_ABORT2                   = 463 // { int abort2(const char *why, int nargs, void **args); }
    SYS_THR_SET_NAME             = 464 // { int thr_set_name(long id, const char *name); }
    SYS_RTPRIO_THREAD            = 466 // { int rtprio_thread(int function, \
    SYS_SCTP_PEELOFF             = 471 // { int sctp_peeloff(int sd, uint32_t name); }
    SYS_SCTP_GENERIC_SENDMSG     = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
    SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
    SYS_SCTP_GENERIC_RECVMSG     = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
    SYS_PREAD                    = 475 // { ssize_t pread(int fd, void *buf, \
    SYS_PWRITE                   = 476 // { ssize_t pwrite(int fd, const void *buf, \
    SYS_MMAP                     = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
    SYS_LSEEK                    = 478 // { off_t lseek(int fd, off_t offset, \
    SYS_TRUNCATE                 = 479 // { int truncate(char *path, off_t length); }
    SYS_FTRUNCATE                = 480 // { int ftruncate(int fd, off_t length); }
    SYS_THR_KILL2                = 481 // { int thr_kill2(pid_t pid, long id, int sig); }
    SYS_SHM_OPEN                 = 482 // { int shm_open(const char *path, int flags, \
    SYS_SHM_UNLINK               = 483 // { int shm_unlink(const char *path); }
    SYS_CPUSET                   = 484 // { int cpuset(cpusetid_t *setid); }
    SYS_CPUSET_SETID             = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \
    SYS_CPUSET_GETID             = 486 // { int cpuset_getid(cpulevel_t level, \
    SYS_CPUSET_GETAFFINITY       = 487 // { int cpuset_getaffinity(cpulevel_t level, \
    SYS_CPUSET_SETAFFINITY       = 488 // { int cpuset_setaffinity(cpulevel_t level, \
    SYS_FACCESSAT                = 489 // { int faccessat(int fd, char *path, int mode, \
    SYS_FCHMODAT                 = 490 // { int fchmodat(int fd, char *path, mode_t mode, \
    SYS_FCHOWNAT                 = 491 // { int fchownat(int fd, char *path, uid_t uid, \
    SYS_FEXECVE                  = 492 // { int fexecve(int fd, char **argv, \
    SYS_FSTATAT                  = 493 // { int fstatat(int fd, char *path, \
    SYS_FUTIMESAT                = 494 // { int futimesat(int fd, char *path, \
    SYS_LINKAT                   = 495 // { int linkat(int fd1, char *path1, int fd2, \
    SYS_MKDIRAT                  = 496 // { int mkdirat(int fd, char *path, mode_t mode); }
    SYS_MKFIFOAT                 = 497 // { int mkfifoat(int fd, char *path, mode_t mode); }
    SYS_MKNODAT                  = 498 // { int mknodat(int fd, char *path, mode_t mode, \
    SYS_OPENAT                   = 499 // { int openat(int fd, char *path, int flag, \
    SYS_READLINKAT               = 500 // { int readlinkat(int fd, char *path, char *buf, \
    SYS_RENAMEAT                 = 501 // { int renameat(int oldfd, char *old, int newfd, \
    SYS_SYMLINKAT                = 502 // { int symlinkat(char *path1, int fd, \
    SYS_UNLINKAT                 = 503 // { int unlinkat(int fd, char *path, int flag); }
    SYS_POSIX_OPENPT             = 504 // { int posix_openpt(int flags); }
    SYS_JAIL_GET                 = 506 // { int jail_get(struct iovec *iovp, \
    SYS_JAIL_SET                 = 507 // { int jail_set(struct iovec *iovp, \
    SYS_JAIL_REMOVE              = 508 // { int jail_remove(int jid); }
    SYS_CLOSEFROM                = 509 // { int closefrom(int lowfd); }
    SYS_LPATHCONF                = 513 // { int lpathconf(char *path, int name); }
    SYS_PSELECT                  = 522 // { int pselect(int nd, fd_set *in, \
)

Constants

const (
    AF_APPLETALK                     = 0x5
    AF_ASH                           = 0x12
    AF_ATMPVC                        = 0x8
    AF_ATMSVC                        = 0x14
    AF_AX25                          = 0x3
    AF_BLUETOOTH                     = 0x1f
    AF_BRIDGE                        = 0x7
    AF_CAN                           = 0x1d
    AF_DECnet                        = 0xc
    AF_ECONET                        = 0x13
    AF_FILE                          = 0x1
    AF_IEEE802154                    = 0x24
    AF_INET                          = 0x2
    AF_INET6                         = 0xa
    AF_IPX                           = 0x4
    AF_IRDA                          = 0x17
    AF_ISDN                          = 0x22
    AF_IUCV                          = 0x20
    AF_KEY                           = 0xf
    AF_LLC                           = 0x1a
    AF_LOCAL                         = 0x1
    AF_MAX                           = 0x25
    AF_NETBEUI                       = 0xd
    AF_NETLINK                       = 0x10
    AF_NETROM                        = 0x6
    AF_PACKET                        = 0x11
    AF_PHONET                        = 0x23
    AF_PPPOX                         = 0x18
    AF_RDS                           = 0x15
    AF_ROSE                          = 0xb
    AF_ROUTE                         = 0x10
    AF_RXRPC                         = 0x21
    AF_SECURITY                      = 0xe
    AF_SNA                           = 0x16
    AF_TIPC                          = 0x1e
    AF_UNIX                          = 0x1
    AF_UNSPEC                        = 0
    AF_WANPIPE                       = 0x19
    AF_X25                           = 0x9
    E2BIG                            = 0x7
    EACCES                           = 0xd
    EADDRINUSE                       = 0x62
    EADDRNOTAVAIL                    = 0x63
    EADV                             = 0x44
    EAFNOSUPPORT                     = 0x61
    EAGAIN                           = 0xb
    EALREADY                         = 0x72
    EBADE                            = 0x34
    EBADF                            = 0x9
    EBADFD                           = 0x4d
    EBADMSG                          = 0x4a
    EBADR                            = 0x35
    EBADRQC                          = 0x38
    EBADSLT                          = 0x39
    EBFONT                           = 0x3b
    EBUSY                            = 0x10
    ECANCELED                        = 0x7d
    ECHILD                           = 0xa
    ECHRNG                           = 0x2c
    ECOMM                            = 0x46
    ECONNABORTED                     = 0x67
    ECONNREFUSED                     = 0x6f
    ECONNRESET                       = 0x68
    EDEADLK                          = 0x23
    EDEADLOCK                        = 0x23
    EDESTADDRREQ                     = 0x59
    EDOM                             = 0x21
    EDOTDOT                          = 0x49
    EDQUOT                           = 0x7a
    EEXIST                           = 0x11
    EFAULT                           = 0xe
    EFBIG                            = 0x1b
    EHOSTDOWN                        = 0x70
    EHOSTUNREACH                     = 0x71
    EIDRM                            = 0x2b
    EILSEQ                           = 0x54
    EINPROGRESS                      = 0x73
    EINTR                            = 0x4
    EINVAL                           = 0x16
    EIO                              = 0x5
    EISCONN                          = 0x6a
    EISDIR                           = 0x15
    EISNAM                           = 0x78
    EKEYEXPIRED                      = 0x7f
    EKEYREJECTED                     = 0x81
    EKEYREVOKED                      = 0x80
    EL2HLT                           = 0x33
    EL2NSYNC                         = 0x2d
    EL3HLT                           = 0x2e
    EL3RST                           = 0x2f
    ELIBACC                          = 0x4f
    ELIBBAD                          = 0x50
    ELIBEXEC                         = 0x53
    ELIBMAX                          = 0x52
    ELIBSCN                          = 0x51
    ELNRNG                           = 0x30
    ELOOP                            = 0x28
    EMEDIUMTYPE                      = 0x7c
    EMFILE                           = 0x18
    EMLINK                           = 0x1f
    EMSGSIZE                         = 0x5a
    EMULTIHOP                        = 0x48
    ENAMETOOLONG                     = 0x24
    ENAVAIL                          = 0x77
    ENETDOWN                         = 0x64
    ENETRESET                        = 0x66
    ENETUNREACH                      = 0x65
    ENFILE                           = 0x17
    ENOANO                           = 0x37
    ENOBUFS                          = 0x69
    ENOCSI                           = 0x32
    ENODATA                          = 0x3d
    ENODEV                           = 0x13
    ENOENT                           = 0x2
    ENOEXEC                          = 0x8
    ENOKEY                           = 0x7e
    ENOLCK                           = 0x25
    ENOLINK                          = 0x43
    ENOMEDIUM                        = 0x7b
    ENOMEM                           = 0xc
    ENOMSG                           = 0x2a
    ENONET                           = 0x40
    ENOPKG                           = 0x41
    ENOPROTOOPT                      = 0x5c
    ENOSPC                           = 0x1c
    ENOSR                            = 0x3f
    ENOSTR                           = 0x3c
    ENOSYS                           = 0x26
    ENOTBLK                          = 0xf
    ENOTCONN                         = 0x6b
    ENOTDIR                          = 0x14
    ENOTEMPTY                        = 0x27
    ENOTNAM                          = 0x76
    ENOTRECOVERABLE                  = 0x83
    ENOTSOCK                         = 0x58
    ENOTSUP                          = 0x5f
    ENOTTY                           = 0x19
    ENOTUNIQ                         = 0x4c
    ENXIO                            = 0x6
    EOPNOTSUPP                       = 0x5f
    EOVERFLOW                        = 0x4b
    EOWNERDEAD                       = 0x82
    EPERM                            = 0x1
    EPFNOSUPPORT                     = 0x60
    EPIPE                            = 0x20
    EPOLLERR                         = 0x8
    EPOLLET                          = -0x80000000
    EPOLLHUP                         = 0x10
    EPOLLIN                          = 0x1
    EPOLLMSG                         = 0x400
    EPOLLONESHOT                     = 0x40000000
    EPOLLOUT                         = 0x4
    EPOLLPRI                         = 0x2
    EPOLLRDBAND                      = 0x80
    EPOLLRDHUP                       = 0x2000
    EPOLLRDNORM                      = 0x40
    EPOLLWRBAND                      = 0x200
    EPOLLWRNORM                      = 0x100
    EPOLL_CLOEXEC                    = 0x80000
    EPOLL_CTL_ADD                    = 0x1
    EPOLL_CTL_DEL                    = 0x2
    EPOLL_CTL_MOD                    = 0x3
    EPOLL_NONBLOCK                   = 0x800
    EPROTO                           = 0x47
    EPROTONOSUPPORT                  = 0x5d
    EPROTOTYPE                       = 0x5b
    ERANGE                           = 0x22
    EREMCHG                          = 0x4e
    EREMOTE                          = 0x42
    EREMOTEIO                        = 0x79
    ERESTART                         = 0x55
    ERFKILL                          = 0x84
    EROFS                            = 0x1e
    ESHUTDOWN                        = 0x6c
    ESOCKTNOSUPPORT                  = 0x5e
    ESPIPE                           = 0x1d
    ESRCH                            = 0x3
    ESRMNT                           = 0x45
    ESTALE                           = 0x74
    ESTRPIPE                         = 0x56
    ETIME                            = 0x3e
    ETIMEDOUT                        = 0x6e
    ETOOMANYREFS                     = 0x6d
    ETXTBSY                          = 0x1a
    EUCLEAN                          = 0x75
    EUNATCH                          = 0x31
    EUSERS                           = 0x57
    EWOULDBLOCK                      = 0xb
    EXDEV                            = 0x12
    EXFULL                           = 0x36
    FD_CLOEXEC                       = 0x1
    FD_SETSIZE                       = 0x400
    F_DUPFD                          = 0
    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_GETSIG                         = 0xb
    F_LOCK                           = 0x1
    F_NOTIFY                         = 0x402
    F_OK                             = 0
    F_RDLCK                          = 0
    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_SETSIG                         = 0xa
    F_SHLCK                          = 0x8
    F_TEST                           = 0x3
    F_TLOCK                          = 0x2
    F_ULOCK                          = 0
    F_UNLCK                          = 0x2
    F_WRLCK                          = 0x1
    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_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_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                  = 0
    IPPROTO_ICMP                     = 0x1
    IPPROTO_ICMPV6                   = 0x3a
    IPPROTO_IDP                      = 0x16
    IPPROTO_IGMP                     = 0x2
    IPPROTO_IP                       = 0
    IPPROTO_IPIP                     = 0x4
    IPPROTO_IPV6                     = 0x29
    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_ADD_MEMBERSHIP              = 0x14
    IPV6_AUTHHDR                     = 0xa
    IPV6_CHECKSUM                    = 0x7
    IPV6_DROP_MEMBERSHIP             = 0x15
    IPV6_DSTOPTS                     = 0x3b
    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_MTU                         = 0x18
    IPV6_MTU_DISCOVER                = 0x17
    IPV6_MULTICAST_HOPS              = 0x12
    IPV6_MULTICAST_IF                = 0x11
    IPV6_MULTICAST_LOOP              = 0x13
    IPV6_NEXTHOP                     = 0x9
    IPV6_PKTINFO                     = 0x32
    IPV6_PMTUDISC_DO                 = 0x2
    IPV6_PMTUDISC_DONT               = 0
    IPV6_PMTUDISC_PROBE              = 0x3
    IPV6_PMTUDISC_WANT               = 0x1
    IPV6_RECVDSTOPTS                 = 0x3a
    IPV6_RECVERR                     = 0x19
    IPV6_RECVHOPLIMIT                = 0x33
    IPV6_RECVHOPOPTS                 = 0x35
    IPV6_RECVPKTINFO                 = 0x31
    IPV6_RECVRTHDR                   = 0x38
    IPV6_RECVTCLASS                  = 0x42
    IPV6_ROUTER_ALERT                = 0x16
    IPV6_RTHDR                       = 0x39
    IPV6_RTHDRDSTOPTS                = 0x37
    IPV6_RTHDR_LOOSE                 = 0
    IPV6_RTHDR_STRICT                = 0x1
    IPV6_RTHDR_TYPE_0                = 0
    IPV6_RXDSTOPTS                   = 0x3b
    IPV6_RXHOPOPTS                   = 0x36
    IPV6_TCLASS                      = 0x43
    IPV6_UNICAST_HOPS                = 0x10
    IPV6_V6ONLY                      = 0x1a
    IPV6_XFRM_POLICY                 = 0x23
    IP_ADD_MEMBERSHIP                = 0x23
    IP_ADD_SOURCE_MEMBERSHIP         = 0x27
    IP_BLOCK_SOURCE                  = 0x26
    IP_DEFAULT_MULTICAST_LOOP        = 0x1
    IP_DEFAULT_MULTICAST_TTL         = 0x1
    IP_DF                            = 0x4000
    IP_DROP_MEMBERSHIP               = 0x24
    IP_DROP_SOURCE_MEMBERSHIP        = 0x28
    IP_HDRINCL                       = 0x3
    IP_MAXPACKET                     = 0xffff
    IP_MAX_MEMBERSHIPS               = 0x14
    IP_MF                            = 0x2000
    IP_MSFILTER                      = 0x29
    IP_MSS                           = 0x240
    IP_MTU_DISCOVER                  = 0xa
    IP_MULTICAST_IF                  = 0x20
    IP_MULTICAST_LOOP                = 0x22
    IP_MULTICAST_TTL                 = 0x21
    IP_OFFMASK                       = 0x1fff
    IP_OPTIONS                       = 0x4
    IP_PKTINFO                       = 0x8
    IP_PKTOPTIONS                    = 0x9
    IP_PMTUDISC                      = 0xa
    IP_PMTUDISC_DO                   = 0x2
    IP_PMTUDISC_DONT                 = 0
    IP_PMTUDISC_PROBE                = 0x3
    IP_PMTUDISC_WANT                 = 0x1
    IP_RECVERR                       = 0xb
    IP_RECVOPTS                      = 0x6
    IP_RECVRETOPTS                   = 0x7
    IP_RECVTOS                       = 0xd
    IP_RECVTTL                       = 0xc
    IP_RETOPTS                       = 0x7
    IP_RF                            = 0x8000
    IP_ROUTER_ALERT                  = 0x5
    IP_TOS                           = 0x1
    IP_TTL                           = 0x2
    IP_UNBLOCK_SOURCE                = 0x25
    MAP_32BIT                        = 0x40
    MAP_ANON                         = 0x20
    MAP_ANONYMOUS                    = 0x20
    MAP_DENYWRITE                    = 0x800
    MAP_EXECUTABLE                   = 0x1000
    MAP_FILE                         = 0
    MAP_FIXED                        = 0x10
    MAP_GROWSDOWN                    = 0x100
    MAP_LOCKED                       = 0x2000
    MAP_NONBLOCK                     = 0x10000
    MAP_NORESERVE                    = 0x4000
    MAP_POPULATE                     = 0x8000
    MAP_PRIVATE                      = 0x2
    MAP_SHARED                       = 0x1
    MAP_STACK                        = 0x20000
    MAP_TYPE                         = 0xf
    MSG_CMSG_CLOEXEC                 = 0x40000000
    MSG_CONFIRM                      = 0x800
    MSG_CTRUNC                       = 0x8
    MSG_DONTROUTE                    = 0x4
    MSG_DONTWAIT                     = 0x40
    MSG_EOR                          = 0x80
    MSG_ERRQUEUE                     = 0x2000
    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
    NAME_MAX                         = 0xff
    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                          = 0x1000
    O_LARGEFILE                      = 0
    O_NDELAY                         = 0x800
    O_NOATIME                        = 0x40000
    O_NOCTTY                         = 0x100
    O_NOFOLLOW                       = 0x20000
    O_NONBLOCK                       = 0x800
    O_RDONLY                         = 0
    O_RDWR                           = 0x2
    O_RSYNC                          = 0x1000
    O_SYNC                           = 0x1000
    O_TRUNC                          = 0x200
    O_WRONLY                         = 0x1
    PACKET_ADD_MEMBERSHIP            = 0x1
    PACKET_BROADCAST                 = 0x1
    PACKET_DROP_MEMBERSHIP           = 0x2
    PACKET_FASTROUTE                 = 0x6
    PACKET_HOST                      = 0
    PACKET_LOOPBACK                  = 0x5
    PACKET_MR_ALLMULTI               = 0x2
    PACKET_MR_MULTICAST              = 0
    PACKET_MR_PROMISC                = 0x1
    PACKET_MULTICAST                 = 0x2
    PACKET_OTHERHOST                 = 0x3
    PACKET_OUTGOING                  = 0x4
    PACKET_RECV_OUTPUT               = 0x3
    PACKET_RX_RING                   = 0x5
    PACKET_STATISTICS                = 0x6
    PROT_EXEC                        = 0x4
    PROT_GROWSDOWN                   = 0x1000000
    PROT_GROWSUP                     = 0x2000000
    PROT_NONE                        = 0
    PROT_READ                        = 0x1
    PROT_WRITE                       = 0x2
    PTRACE_ARCH_PRCTL                = 0x1e
    PTRACE_ATTACH                    = 0x10
    PTRACE_BTS_CLEAR                 = 0x2c
    PTRACE_BTS_CONFIG                = 0x28
    PTRACE_BTS_DRAIN                 = 0x2d
    PTRACE_BTS_GET                   = 0x2b
    PTRACE_BTS_O_ALLOC               = 0x8
    PTRACE_BTS_O_SCHED               = 0x2
    PTRACE_BTS_O_SIGNAL              = 0x4
    PTRACE_BTS_O_TRACE               = 0x1
    PTRACE_BTS_SIZE                  = 0x2a
    PTRACE_BTS_STATUS                = 0x29
    PTRACE_CONT                      = 0x7
    PTRACE_DETACH                    = 0x11
    PTRACE_EVENT_CLONE               = 0x3
    PTRACE_EVENT_EXEC                = 0x4
    PTRACE_EVENT_EXIT                = 0x6
    PTRACE_EVENT_FORK                = 0x1
    PTRACE_EVENT_VFORK               = 0x2
    PTRACE_EVENT_VFORK_DONE          = 0x5
    PTRACE_GETEVENTMSG               = 0x4201
    PTRACE_GETFPREGS                 = 0xe
    PTRACE_GETFPXREGS                = 0x12
    PTRACE_GETREGS                   = 0xc
    PTRACE_GETSIGINFO                = 0x4202
    PTRACE_GET_THREAD_AREA           = 0x19
    PTRACE_KILL                      = 0x8
    PTRACE_OLDSETOPTIONS             = 0x15
    PTRACE_O_MASK                    = 0x7f
    PTRACE_O_TRACECLONE              = 0x8
    PTRACE_O_TRACEEXEC               = 0x10
    PTRACE_O_TRACEEXIT               = 0x40
    PTRACE_O_TRACEFORK               = 0x2
    PTRACE_O_TRACESYSGOOD            = 0x1
    PTRACE_O_TRACEVFORK              = 0x4
    PTRACE_O_TRACEVFORKDONE          = 0x20
    PTRACE_PEEKDATA                  = 0x2
    PTRACE_PEEKTEXT                  = 0x1
    PTRACE_PEEKUSR                   = 0x3
    PTRACE_POKEDATA                  = 0x5
    PTRACE_POKETEXT                  = 0x4
    PTRACE_POKEUSR                   = 0x6
    PTRACE_SETFPREGS                 = 0xf
    PTRACE_SETFPXREGS                = 0x13
    PTRACE_SETOPTIONS                = 0x4200
    PTRACE_SETREGS                   = 0xd
    PTRACE_SETSIGINFO                = 0x4203
    PTRACE_SET_THREAD_AREA           = 0x1a
    PTRACE_SINGLEBLOCK               = 0x21
    PTRACE_SINGLESTEP                = 0x9
    PTRACE_SYSCALL                   = 0x18
    PTRACE_SYSEMU                    = 0x1f
    PTRACE_SYSEMU_SINGLESTEP         = 0x20
    PTRACE_TRACEME                   = 0
    SCM_CREDENTIALS                  = 0x2
    SCM_RIGHTS                       = 0x1
    SCM_TIMESTAMP                    = 0x1d
    SCM_TIMESTAMPING                 = 0x25
    SCM_TIMESTAMPNS                  = 0x23
    SHUT_RD                          = 0
    SHUT_RDWR                        = 0x2
    SHUT_WR                          = 0x1
    SIGABRT                          = 0x6
    SIGALRM                          = 0xe
    SIGBUS                           = 0x7
    SIGCHLD                          = 0x11
    SIGCLD                           = 0x11
    SIGCONT                          = 0x12
    SIGFPE                           = 0x8
    SIGHUP                           = 0x1
    SIGILL                           = 0x4
    SIGINT                           = 0x2
    SIGIO                            = 0x1d
    SIGIOT                           = 0x6
    SIGKILL                          = 0x9
    SIGPIPE                          = 0xd
    SIGPOLL                          = 0x1d
    SIGPROF                          = 0x1b
    SIGPWR                           = 0x1e
    SIGQUIT                          = 0x3
    SIGSEGV                          = 0xb
    SIGSTKFLT                        = 0x10
    SIGSTOP                          = 0x13
    SIGSYS                           = 0x1f
    SIGTERM                          = 0xf
    SIGTRAP                          = 0x5
    SIGTSTP                          = 0x14
    SIGTTIN                          = 0x15
    SIGTTOU                          = 0x16
    SIGUNUSED                        = 0x1f
    SIGURG                           = 0x17
    SIGUSR1                          = 0xa
    SIGUSR2                          = 0xc
    SIGVTALRM                        = 0x1a
    SIGWINCH                         = 0x1c
    SIGXCPU                          = 0x18
    SIGXFSZ                          = 0x19
    SIOCADDDLCI                      = 0x8980
    SIOCADDMULTI                     = 0x8931
    SIOCADDRT                        = 0x890b
    SIOCATMARK                       = 0x8905
    SIOCDARP                         = 0x8953
    SIOCDELDLCI                      = 0x8981
    SIOCDELMULTI                     = 0x8932
    SIOCDELRT                        = 0x890c
    SIOCDEVPRIVATE                   = 0x89f0
    SIOCDIFADDR                      = 0x8936
    SIOCDRARP                        = 0x8960
    SIOCGARP                         = 0x8954
    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
    SIOCGPGRP                        = 0x8904
    SIOCGRARP                        = 0x8961
    SIOCGSTAMP                       = 0x8906
    SIOCGSTAMPNS                     = 0x8907
    SIOCPROTOPRIVATE                 = 0x89e0
    SIOCRTMSG                        = 0x890d
    SIOCSARP                         = 0x8955
    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
    SIOCSPGRP                        = 0x8902
    SIOCSRARP                        = 0x8962
    SIOGIFINDEX                      = 0x8933
    SOCK_CLOEXEC                     = 0x80000
    SOCK_DCCP                        = 0x6
    SOCK_DGRAM                       = 0x2
    SOCK_NONBLOCK                    = 0x800
    SOCK_PACKET                      = 0xa
    SOCK_RAW                         = 0x3
    SOCK_RDM                         = 0x4
    SOCK_SEQPACKET                   = 0x5
    SOCK_STREAM                      = 0x1
    SOL_AAL                          = 0x109
    SOL_ATM                          = 0x108
    SOL_DECNET                       = 0x105
    SOL_ICMPV6                       = 0x3a
    SOL_IP                           = 0
    SOL_IPV6                         = 0x29
    SOL_IRDA                         = 0x10a
    SOL_PACKET                       = 0x107
    SOL_RAW                          = 0xff
    SOL_SOCKET                       = 0x1
    SOL_TCP                          = 0x6
    SOL_X25                          = 0x106
    SOMAXCONN                        = 0x80
    SO_ACCEPTCONN                    = 0x1e
    SO_ATTACH_FILTER                 = 0x1a
    SO_BINDTODEVICE                  = 0x19
    SO_BROADCAST                     = 0x6
    SO_BSDCOMPAT                     = 0xe
    SO_DEBUG                         = 0x1
    SO_DETACH_FILTER                 = 0x1b
    SO_DOMAIN                        = 0x27
    SO_DONTROUTE                     = 0x5
    SO_ERROR                         = 0x4
    SO_KEEPALIVE                     = 0x9
    SO_LINGER                        = 0xd
    SO_MARK                          = 0x24
    SO_NO_CHECK                      = 0xb
    SO_OOBINLINE                     = 0xa
    SO_PASSCRED                      = 0x10
    SO_PASSSEC                       = 0x22
    SO_PEERCRED                      = 0x11
    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_SECURITY_AUTHENTICATION       = 0x16
    SO_SECURITY_ENCRYPTION_NETWORK   = 0x18
    SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
    SO_SNDBUF                        = 0x7
    SO_SNDBUFFORCE                   = 0x20
    SO_SNDLOWAT                      = 0x13
    SO_SNDTIMEO                      = 0x15
    SO_TIMESTAMP                     = 0x1d
    SO_TIMESTAMPING                  = 0x25
    SO_TIMESTAMPNS                   = 0x23
    SO_TYPE                          = 0x3
    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
    TCP_CONGESTION                   = 0xd
    TCP_CORK                         = 0x3
    TCP_DEFER_ACCEPT                 = 0x9
    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_NODELAY                      = 0x1
    TCP_QUICKACK                     = 0xc
    TCP_SYNCNT                       = 0x7
    TCP_WINDOW_CLAMP                 = 0xa
    WALL                             = 0x40000000
    WCLONE                           = 0x80000000
    WCONTINUED                       = 0x8
    WEXITED                          = 0x4
    WNOHANG                          = 0x1
    WNOTHREAD                        = 0x20000000
    WNOWAIT                          = 0x1000000
    WORDSIZE                         = 0x40
    WSTOPPED                         = 0x2
    WUNTRACED                        = 0x2
)

Constants

const (
    AF_APPLETALK                = 0x10
    AF_ARP                      = 0x23
    AF_ATM                      = 0x1e
    AF_BLUETOOTH                = 0x24
    AF_CCITT                    = 0xa
    AF_CHAOS                    = 0x5
    AF_CNT                      = 0x15
    AF_COIP                     = 0x14
    AF_DATAKIT                  = 0x9
    AF_DECnet                   = 0xc
    AF_DLI                      = 0xd
    AF_E164                     = 0x1a
    AF_ECMA                     = 0x8
    AF_HYLINK                   = 0xf
    AF_IEEE80211                = 0x25
    AF_IMPLINK                  = 0x3
    AF_INET                     = 0x2
    AF_INET6                    = 0x1c
    AF_IPX                      = 0x17
    AF_ISDN                     = 0x1a
    AF_ISO                      = 0x7
    AF_LAT                      = 0xe
    AF_LINK                     = 0x12
    AF_LOCAL                    = 0x1
    AF_MAX                      = 0x26
    AF_NATM                     = 0x1d
    AF_NETBIOS                  = 0x6
    AF_NETGRAPH                 = 0x20
    AF_OSI                      = 0x7
    AF_PUP                      = 0x4
    AF_ROUTE                    = 0x11
    AF_SCLUSTER                 = 0x22
    AF_SIP                      = 0x18
    AF_SLOW                     = 0x21
    AF_SNA                      = 0xb
    AF_UNIX                     = 0x1
    AF_UNSPEC                   = 0
    AF_VENDOR00                 = 0x27
    AF_VENDOR01                 = 0x29
    AF_VENDOR02                 = 0x2b
    AF_VENDOR03                 = 0x2d
    AF_VENDOR04                 = 0x2f
    AF_VENDOR05                 = 0x31
    AF_VENDOR06                 = 0x33
    AF_VENDOR07                 = 0x35
    AF_VENDOR08                 = 0x37
    AF_VENDOR09                 = 0x39
    AF_VENDOR10                 = 0x3b
    AF_VENDOR11                 = 0x3d
    AF_VENDOR12                 = 0x3f
    AF_VENDOR13                 = 0x41
    AF_VENDOR14                 = 0x43
    AF_VENDOR15                 = 0x45
    AF_VENDOR16                 = 0x47
    AF_VENDOR17                 = 0x49
    AF_VENDOR18                 = 0x4b
    AF_VENDOR19                 = 0x4d
    AF_VENDOR20                 = 0x4f
    AF_VENDOR21                 = 0x51
    AF_VENDOR22                 = 0x53
    AF_VENDOR23                 = 0x55
    AF_VENDOR24                 = 0x57
    AF_VENDOR25                 = 0x59
    AF_VENDOR26                 = 0x5b
    AF_VENDOR27                 = 0x5d
    AF_VENDOR28                 = 0x5f
    AF_VENDOR29                 = 0x61
    AF_VENDOR30                 = 0x63
    AF_VENDOR31                 = 0x65
    AF_VENDOR32                 = 0x67
    AF_VENDOR33                 = 0x69
    AF_VENDOR34                 = 0x6b
    AF_VENDOR35                 = 0x6d
    AF_VENDOR36                 = 0x6f
    AF_VENDOR37                 = 0x71
    AF_VENDOR38                 = 0x73
    AF_VENDOR39                 = 0x75
    AF_VENDOR40                 = 0x77
    AF_VENDOR41                 = 0x79
    AF_VENDOR42                 = 0x7b
    AF_VENDOR43                 = 0x7d
    AF_VENDOR44                 = 0x7f
    AF_VENDOR45                 = 0x81
    AF_VENDOR46                 = 0x83
    AF_VENDOR47                 = 0x85
    E2BIG                       = 0x7
    EACCES                      = 0xd
    EADDRINUSE                  = 0x30
    EADDRNOTAVAIL               = 0x31
    EAFNOSUPPORT                = 0x2f
    EAGAIN                      = 0x23
    EALREADY                    = 0x25
    EAUTH                       = 0x50
    EBADF                       = 0x9
    EBADMSG                     = 0x59
    EBADRPC                     = 0x48
    EBUSY                       = 0x10
    ECANCELED                   = 0x55
    ECHILD                      = 0xa
    ECONNABORTED                = 0x35
    ECONNREFUSED                = 0x3d
    ECONNRESET                  = 0x36
    EDEADLK                     = 0xb
    EDESTADDRREQ                = 0x27
    EDOM                        = 0x21
    EDOOFUS                     = 0x58
    EDQUOT                      = 0x45
    EEXIST                      = 0x11
    EFAULT                      = 0xe
    EFBIG                       = 0x1b
    EFTYPE                      = 0x4f
    EHOSTDOWN                   = 0x40
    EHOSTUNREACH                = 0x41
    EIDRM                       = 0x52
    EILSEQ                      = 0x56
    EINPROGRESS                 = 0x24
    EINTR                       = 0x4
    EINVAL                      = 0x16
    EIO                         = 0x5
    EISCONN                     = 0x38
    EISDIR                      = 0x15
    ELAST                       = 0x5c
    ELOOP                       = 0x3e
    EMFILE                      = 0x18
    EMLINK                      = 0x1f
    EMSGSIZE                    = 0x28
    EMULTIHOP                   = 0x5a
    ENAMETOOLONG                = 0x3f
    ENEEDAUTH                   = 0x51
    ENETDOWN                    = 0x32
    ENETRESET                   = 0x34
    ENETUNREACH                 = 0x33
    ENFILE                      = 0x17
    ENOATTR                     = 0x57
    ENOBUFS                     = 0x37
    ENODEV                      = 0x13
    ENOENT                      = 0x2
    ENOEXEC                     = 0x8
    ENOLCK                      = 0x4d
    ENOLINK                     = 0x5b
    ENOMEM                      = 0xc
    ENOMSG                      = 0x53
    ENOPROTOOPT                 = 0x2a
    ENOSPC                      = 0x1c
    ENOSYS                      = 0x4e
    ENOTBLK                     = 0xf
    ENOTCONN                    = 0x39
    ENOTDIR                     = 0x14
    ENOTEMPTY                   = 0x42
    ENOTSOCK                    = 0x26
    ENOTSUP                     = 0x2d
    ENOTTY                      = 0x19
    ENXIO                       = 0x6
    EOPNOTSUPP                  = 0x2d
    EOVERFLOW                   = 0x54
    EPERM                       = 0x1
    EPFNOSUPPORT                = 0x2e
    EPIPE                       = 0x20
    EPROCLIM                    = 0x43
    EPROCUNAVAIL                = 0x4c
    EPROGMISMATCH               = 0x4b
    EPROGUNAVAIL                = 0x4a
    EPROTO                      = 0x5c
    EPROTONOSUPPORT             = 0x2b
    EPROTOTYPE                  = 0x29
    ERANGE                      = 0x22
    EREMOTE                     = 0x47
    EROFS                       = 0x1e
    ERPCMISMATCH                = 0x49
    ESHUTDOWN                   = 0x3a
    ESOCKTNOSUPPORT             = 0x2c
    ESPIPE                      = 0x1d
    ESRCH                       = 0x3
    ESTALE                      = 0x46
    ETIMEDOUT                   = 0x3c
    ETOOMANYREFS                = 0x3b
    ETXTBSY                     = 0x1a
    EUSERS                      = 0x44
    EVFILT_AIO                  = -0x3
    EVFILT_FS                   = -0x9
    EVFILT_LIO                  = -0xa
    EVFILT_NETDEV               = -0x8
    EVFILT_PROC                 = -0x5
    EVFILT_READ                 = -0x1
    EVFILT_SIGNAL               = -0x6
    EVFILT_SYSCOUNT             = 0xa
    EVFILT_TIMER                = -0x7
    EVFILT_VNODE                = -0x4
    EVFILT_WRITE                = -0x2
    EV_ADD                      = 0x1
    EV_CLEAR                    = 0x20
    EV_DELETE                   = 0x2
    EV_DISABLE                  = 0x8
    EV_ENABLE                   = 0x4
    EV_EOF                      = 0x8000
    EV_ERROR                    = 0x4000
    EV_FLAG1                    = 0x2000
    EV_ONESHOT                  = 0x10
    EV_SYSFLAGS                 = 0xf000
    EWOULDBLOCK                 = 0x23
    EXDEV                       = 0x12
    FD_CLOEXEC                  = 0x1
    FD_SETSIZE                  = 0x400
    F_CANCEL                    = 0x5
    F_DUP2FD                    = 0xa
    F_DUPFD                     = 0
    F_GETFD                     = 0x1
    F_GETFL                     = 0x3
    F_GETLK                     = 0xb
    F_GETOWN                    = 0x5
    F_OGETLK                    = 0x7
    F_OSETLK                    = 0x8
    F_OSETLKW                   = 0x9
    F_RDLCK                     = 0x1
    F_SETFD                     = 0x2
    F_SETFL                     = 0x4
    F_SETLK                     = 0xc
    F_SETLKW                    = 0xd
    F_SETLK_REMOTE              = 0xe
    F_SETOWN                    = 0x6
    F_UNLCK                     = 0x2
    F_UNLCKSYS                  = 0x4
    F_WRLCK                     = 0x3
    IPPROTO_3PC                 = 0x22
    IPPROTO_ADFS                = 0x44
    IPPROTO_AH                  = 0x33
    IPPROTO_AHIP                = 0x3d
    IPPROTO_APES                = 0x63
    IPPROTO_ARGUS               = 0xd
    IPPROTO_AX25                = 0x5d
    IPPROTO_BHA                 = 0x31
    IPPROTO_BLT                 = 0x1e
    IPPROTO_BRSATMON            = 0x4c
    IPPROTO_CARP                = 0x70
    IPPROTO_CFTP                = 0x3e
    IPPROTO_CHAOS               = 0x10
    IPPROTO_CMTP                = 0x26
    IPPROTO_CPHB                = 0x49
    IPPROTO_CPNX                = 0x48
    IPPROTO_DDP                 = 0x25
    IPPROTO_DGP                 = 0x56
    IPPROTO_DIVERT              = 0x102
    IPPROTO_DONE                = 0x101
    IPPROTO_DSTOPTS             = 0x3c
    IPPROTO_EGP                 = 0x8
    IPPROTO_EMCON               = 0xe
    IPPROTO_ENCAP               = 0x62
    IPPROTO_EON                 = 0x50
    IPPROTO_ESP                 = 0x32
    IPPROTO_ETHERIP             = 0x61
    IPPROTO_FRAGMENT            = 0x2c
    IPPROTO_GGP                 = 0x3
    IPPROTO_GMTP                = 0x64
    IPPROTO_GRE                 = 0x2f
    IPPROTO_HELLO               = 0x3f
    IPPROTO_HMP                 = 0x14
    IPPROTO_HOPOPTS             = 0
    IPPROTO_ICMP                = 0x1
    IPPROTO_ICMPV6              = 0x3a
    IPPROTO_IDP                 = 0x16
    IPPROTO_IDPR                = 0x23
    IPPROTO_IDRP                = 0x2d
    IPPROTO_IGMP                = 0x2
    IPPROTO_IGP                 = 0x55
    IPPROTO_IGRP                = 0x58
    IPPROTO_IL                  = 0x28
    IPPROTO_INLSP               = 0x34
    IPPROTO_INP                 = 0x20
    IPPROTO_IP                  = 0
    IPPROTO_IPCOMP              = 0x6c
    IPPROTO_IPCV                = 0x47
    IPPROTO_IPEIP               = 0x5e
    IPPROTO_IPIP                = 0x4
    IPPROTO_IPPC                = 0x43
    IPPROTO_IPV4                = 0x4
    IPPROTO_IPV6                = 0x29
    IPPROTO_IRTP                = 0x1c
    IPPROTO_KRYPTOLAN           = 0x41
    IPPROTO_LARP                = 0x5b
    IPPROTO_LEAF1               = 0x19
    IPPROTO_LEAF2               = 0x1a
    IPPROTO_MAX                 = 0x100
    IPPROTO_MAXID               = 0x34
    IPPROTO_MEAS                = 0x13
    IPPROTO_MHRP                = 0x30
    IPPROTO_MICP                = 0x5f
    IPPROTO_MOBILE              = 0x37
    IPPROTO_MTP                 = 0x5c
    IPPROTO_MUX                 = 0x12
    IPPROTO_ND                  = 0x4d
    IPPROTO_NHRP                = 0x36
    IPPROTO_NONE                = 0x3b
    IPPROTO_NSP                 = 0x1f
    IPPROTO_NVPII               = 0xb
    IPPROTO_OLD_DIVERT          = 0xfe
    IPPROTO_OSPFIGP             = 0x59
    IPPROTO_PFSYNC              = 0xf0
    IPPROTO_PGM                 = 0x71
    IPPROTO_PIGP                = 0x9
    IPPROTO_PIM                 = 0x67
    IPPROTO_PRM                 = 0x15
    IPPROTO_PUP                 = 0xc
    IPPROTO_PVP                 = 0x4b
    IPPROTO_RAW                 = 0xff
    IPPROTO_RCCMON              = 0xa
    IPPROTO_RDP                 = 0x1b
    IPPROTO_ROUTING             = 0x2b
    IPPROTO_RSVP                = 0x2e
    IPPROTO_RVD                 = 0x42
    IPPROTO_SATEXPAK            = 0x40
    IPPROTO_SATMON              = 0x45
    IPPROTO_SCCSP               = 0x60
    IPPROTO_SCTP                = 0x84
    IPPROTO_SDRP                = 0x2a
    IPPROTO_SEP                 = 0x21
    IPPROTO_SKIP                = 0x39
    IPPROTO_SPACER              = 0x7fff
    IPPROTO_SRPC                = 0x5a
    IPPROTO_ST                  = 0x7
    IPPROTO_SVMTP               = 0x52
    IPPROTO_SWIPE               = 0x35
    IPPROTO_TCF                 = 0x57
    IPPROTO_TCP                 = 0x6
    IPPROTO_TLSP                = 0x38
    IPPROTO_TP                  = 0x1d
    IPPROTO_TPXX                = 0x27
    IPPROTO_TRUNK1              = 0x17
    IPPROTO_TRUNK2              = 0x18
    IPPROTO_TTP                 = 0x54
    IPPROTO_UDP                 = 0x11
    IPPROTO_VINES               = 0x53
    IPPROTO_VISA                = 0x46
    IPPROTO_VMTP                = 0x51
    IPPROTO_WBEXPAK             = 0x4f
    IPPROTO_WBMON               = 0x4e
    IPPROTO_WSN                 = 0x4a
    IPPROTO_XNET                = 0xf
    IPPROTO_XTP                 = 0x24
    IPV6_AUTOFLOWLABEL          = 0x3b
    IPV6_BINDV6ONLY             = 0x1b
    IPV6_CHECKSUM               = 0x1a
    IPV6_DEFAULT_MULTICAST_HOPS = 0x1
    IPV6_DEFAULT_MULTICAST_LOOP = 0x1
    IPV6_DEFHLIM                = 0x40
    IPV6_DONTFRAG               = 0x3e
    IPV6_DSTOPTS                = 0x32
    IPV6_FAITH                  = 0x1d
    IPV6_FLOWINFO_MASK          = 0xffffff0f
    IPV6_FLOWLABEL_MASK         = 0xffff0f00
    IPV6_FRAGTTL                = 0x78
    IPV6_FW_ADD                 = 0x1e
    IPV6_FW_DEL                 = 0x1f
    IPV6_FW_FLUSH               = 0x20
    IPV6_FW_GET                 = 0x22
    IPV6_FW_ZERO                = 0x21
    IPV6_HLIMDEC                = 0x1
    IPV6_HOPLIMIT               = 0x2f
    IPV6_HOPOPTS                = 0x31
    IPV6_IPSEC_POLICY           = 0x1c
    IPV6_JOIN_GROUP             = 0xc
    IPV6_LEAVE_GROUP            = 0xd
    IPV6_MAXHLIM                = 0xff
    IPV6_MAXOPTHDR              = 0x800
    IPV6_MAXPACKET              = 0xffff
    IPV6_MMTU                   = 0x500
    IPV6_MSFILTER               = 0x4a
    IPV6_MULTICAST_HOPS         = 0xa
    IPV6_MULTICAST_IF           = 0x9
    IPV6_MULTICAST_LOOP         = 0xb
    IPV6_NEXTHOP                = 0x30
    IPV6_PATHMTU                = 0x2c
    IPV6_PKTINFO                = 0x2e
    IPV6_PORTRANGE              = 0xe
    IPV6_PORTRANGE_DEFAULT      = 0
    IPV6_PORTRANGE_HIGH         = 0x1
    IPV6_PORTRANGE_LOW          = 0x2
    IPV6_PREFER_TEMPADDR        = 0x3f
    IPV6_RECVDSTOPTS            = 0x28
    IPV6_RECVHOPLIMIT           = 0x25
    IPV6_RECVHOPOPTS            = 0x27
    IPV6_RECVPATHMTU            = 0x2b
    IPV6_RECVPKTINFO            = 0x24
    IPV6_RECVRTHDR              = 0x26
    IPV6_RECVTCLASS             = 0x39
    IPV6_RTHDR                  = 0x33
    IPV6_RTHDRDSTOPTS           = 0x23
    IPV6_RTHDR_LOOSE            = 0
    IPV6_RTHDR_STRICT           = 0x1
    IPV6_RTHDR_TYPE_0           = 0
    IPV6_SOCKOPT_RESERVED1      = 0x3
    IPV6_TCLASS                 = 0x3d
    IPV6_UNICAST_HOPS           = 0x4
    IPV6_USE_MIN_MTU            = 0x2a
    IPV6_V6ONLY                 = 0x1b
    IPV6_VERSION                = 0x60
    IPV6_VERSION_MASK           = 0xf0
    IP_ADD_MEMBERSHIP           = 0xc
    IP_ADD_SOURCE_MEMBERSHIP    = 0x46
    IP_BLOCK_SOURCE             = 0x48
    IP_DEFAULT_MULTICAST_LOOP   = 0x1
    IP_DEFAULT_MULTICAST_TTL    = 0x1
    IP_DF                       = 0x4000
    IP_DONTFRAG                 = 0x43
    IP_DROP_MEMBERSHIP          = 0xd
    IP_DROP_SOURCE_MEMBERSHIP   = 0x47
    IP_DUMMYNET3                = 0x31
    IP_DUMMYNET_CONFIGURE       = 0x3c
    IP_DUMMYNET_DEL             = 0x3d
    IP_DUMMYNET_FLUSH           = 0x3e
    IP_DUMMYNET_GET             = 0x40
    IP_FAITH                    = 0x16
    IP_FW3                      = 0x30
    IP_FW_ADD                   = 0x32
    IP_FW_DEL                   = 0x33
    IP_FW_FLUSH                 = 0x34
    IP_FW_GET                   = 0x36
    IP_FW_NAT_CFG               = 0x38
    IP_FW_NAT_DEL               = 0x39
    IP_FW_NAT_GET_CONFIG        = 0x3a
    IP_FW_NAT_GET_LOG           = 0x3b
    IP_FW_RESETLOG              = 0x37
    IP_FW_TABLE_ADD             = 0x28
    IP_FW_TABLE_DEL             = 0x29
    IP_FW_TABLE_FLUSH           = 0x2a
    IP_FW_TABLE_GETSIZE         = 0x2b
    IP_FW_TABLE_LIST            = 0x2c
    IP_FW_ZERO                  = 0x35
    IP_HDRINCL                  = 0x2
    IP_IPSEC_POLICY             = 0x15
    IP_MAXPACKET                = 0xffff
    IP_MAX_MEMBERSHIPS          = 0xfff
    IP_MAX_SOURCE_FILTER        = 0x400
    IP_MF                       = 0x2000
    IP_MINTTL                   = 0x42
    IP_MIN_MEMBERSHIPS          = 0x1f
    IP_MSFILTER                 = 0x4a
    IP_MSS                      = 0x240
    IP_MULTICAST_IF             = 0x9
    IP_MULTICAST_LOOP           = 0xb
    IP_MULTICAST_TTL            = 0xa
    IP_MULTICAST_VIF            = 0xe
    IP_OFFMASK                  = 0x1fff
    IP_ONESBCAST                = 0x17
    IP_OPTIONS                  = 0x1
    IP_PORTRANGE                = 0x13
    IP_PORTRANGE_DEFAULT        = 0
    IP_PORTRANGE_HIGH           = 0x1
    IP_PORTRANGE_LOW            = 0x2
    IP_RECVDSTADDR              = 0x7
    IP_RECVIF                   = 0x14
    IP_RECVOPTS                 = 0x5
    IP_RECVRETOPTS              = 0x6
    IP_RECVTTL                  = 0x41
    IP_RETOPTS                  = 0x8
    IP_RF                       = 0x8000
    IP_RSVP_OFF                 = 0x10
    IP_RSVP_ON                  = 0xf
    IP_RSVP_VIF_OFF             = 0x12
    IP_RSVP_VIF_ON              = 0x11
    IP_SENDSRCADDR              = 0x7
    IP_TOS                      = 0x3
    IP_TTL                      = 0x4
    IP_UNBLOCK_SOURCE           = 0x49
    O_ACCMODE                   = 0x3
    O_APPEND                    = 0x8
    O_ASYNC                     = 0x40
    O_CREAT                     = 0x200
    O_DIRECT                    = 0x10000
    O_EXCL                      = 0x800
    O_EXLOCK                    = 0x20
    O_FSYNC                     = 0x80
    O_NDELAY                    = 0x4
    O_NOCTTY                    = 0x8000
    O_NOFOLLOW                  = 0x100
    O_NONBLOCK                  = 0x4
    O_RDONLY                    = 0
    O_RDWR                      = 0x2
    O_SHLOCK                    = 0x10
    O_SYNC                      = 0x80
    O_TRUNC                     = 0x400
    O_WRONLY                    = 0x1
    SHUT_RD                     = 0
    SHUT_RDWR                   = 0x2
    SHUT_WR                     = 0x1
    SIGABRT                     = 0x6
    SIGALRM                     = 0xe
    SIGBUS                      = 0xa
    SIGCHLD                     = 0x14
    SIGCONT                     = 0x13
    SIGEMT                      = 0x7
    SIGFPE                      = 0x8
    SIGHUP                      = 0x1
    SIGILL                      = 0x4
    SIGINFO                     = 0x1d
    SIGINT                      = 0x2
    SIGIO                       = 0x17
    SIGIOT                      = 0x6
    SIGKILL                     = 0x9
    SIGLWP                      = 0x20
    SIGPIPE                     = 0xd
    SIGPROF                     = 0x1b
    SIGQUIT                     = 0x3
    SIGSEGV                     = 0xb
    SIGSTOP                     = 0x11
    SIGSYS                      = 0xc
    SIGTERM                     = 0xf
    SIGTHR                      = 0x20
    SIGTRAP                     = 0x5
    SIGTSTP                     = 0x12
    SIGTTIN                     = 0x15
    SIGTTOU                     = 0x16
    SIGURG                      = 0x10
    SIGUSR1                     = 0x1e
    SIGUSR2                     = 0x1f
    SIGVTALRM                   = 0x1a
    SIGWINCH                    = 0x1c
    SIGXCPU                     = 0x18
    SIGXFSZ                     = 0x19
    SOCK_DGRAM                  = 0x2
    SOCK_MAXADDRLEN             = 0xff
    SOCK_RAW                    = 0x3
    SOCK_RDM                    = 0x4
    SOCK_SEQPACKET              = 0x5
    SOCK_STREAM                 = 0x1
    SOL_SOCKET                  = 0xffff
    SOMAXCONN                   = 0x80
    SO_ACCEPTCONN               = 0x2
    SO_ACCEPTFILTER             = 0x1000
    SO_BINTIME                  = 0x2000
    SO_BROADCAST                = 0x20
    SO_DEBUG                    = 0x1
    SO_DONTROUTE                = 0x10
    SO_ERROR                    = 0x1007
    SO_KEEPALIVE                = 0x8
    SO_LABEL                    = 0x1009
    SO_LINGER                   = 0x80
    SO_LISTENINCQLEN            = 0x1013
    SO_LISTENQLEN               = 0x1012
    SO_LISTENQLIMIT             = 0x1011
    SO_NOSIGPIPE                = 0x800
    SO_NO_DDP                   = 0x8000
    SO_NO_OFFLOAD               = 0x4000
    SO_OOBINLINE                = 0x100
    SO_PEERLABEL                = 0x1010
    SO_RCVBUF                   = 0x1002
    SO_RCVLOWAT                 = 0x1004
    SO_RCVTIMEO                 = 0x1006
    SO_REUSEADDR                = 0x4
    SO_REUSEPORT                = 0x200
    SO_SETFIB                   = 0x1014
    SO_SNDBUF                   = 0x1001
    SO_SNDLOWAT                 = 0x1003
    SO_SNDTIMEO                 = 0x1005
    SO_TIMESTAMP                = 0x400
    SO_TYPE                     = 0x1008
    SO_USELOOPBACK              = 0x40
    TCP_CA_NAME_MAX             = 0x10
    TCP_CONGESTION              = 0x40
    TCP_INFO                    = 0x20
    TCP_MAXBURST                = 0x4
    TCP_MAXHLEN                 = 0x3c
    TCP_MAXOLEN                 = 0x28
    TCP_MAXSEG                  = 0x2
    TCP_MAXWIN                  = 0xffff
    TCP_MAX_SACK                = 0x4
    TCP_MAX_WINSHIFT            = 0xe
    TCP_MD5SIG                  = 0x10
    TCP_MINMSS                  = 0xd8
    TCP_MSS                     = 0x200
    TCP_NODELAY                 = 0x1
    TCP_NOOPT                   = 0x8
    TCP_NOPUSH                  = 0x4
    WCONTINUED                  = 0x4
    WCOREFLAG                   = 0x80
    WLINUXCLONE                 = 0x80000000
    WNOHANG                     = 0x1
    WNOWAIT                     = 0x8
    WSTOPPED                    = 0x2
    WUNTRACED                   = 0x2
)
const (
    PTRACE_TRACEME = 1 + iota
    WNOHANG
    WSTOPPED
    SYS_CLOSE
    SYS_WRITE
    SYS_EXIT
    SYS_READ
)

Constants

const (
    PROT_READ  = 0x1
    PROT_WRITE = 0x2
    MAP_SHARED = 0x1
    SYS_FORK   = 0
    SYS_PTRACE = 0
    SYS_CHDIR  = 0
    SYS_DUP2   = 0
    SYS_FCNTL  = 0
    SYS_EXECVE = 0
    O_RDONLY   = 0
    O_WRONLY   = 0x1
    O_RDWR     = 0x2
    O_APPEND   = 0x400
    O_ASYNC    = 0x2000
    O_CREAT    = 0x40
    O_NOCTTY   = 0
    O_NONBLOCK = 0x800
    O_SYNC     = 0x1000
    O_TRUNC    = 0x200
    O_EXCL     = 0x80
    O_CLOEXEC  = 0
    F_GETFD    = 0x1
    F_SETFD    = 0x2
    F_GETFL    = 0x3
    F_SETFL    = 0x4
    FD_CLOEXEC = 0
    S_IFMT     = 0x1f000
    S_IFIFO    = 0x1000
    S_IFCHR    = 0x2000
    S_IFDIR    = 0x4000
    S_IFBLK    = 0x6000
    S_IFREG    = 0x8000
    S_IFLNK    = 0xa000
    S_IFSOCK   = 0xc000
    S_ISUID    = 0x800
    S_ISGID    = 0x400
    S_ISVTX    = 0x200
    S_IRUSR    = 0x100
    S_IWUSR    = 0x80
    S_IXUSR    = 0x40
)

Constants

const (
    AF_APPLETALK                     = 0x5
    AF_ASH                           = 0x12
    AF_ATMPVC                        = 0x8
    AF_ATMSVC                        = 0x14
    AF_AX25                          = 0x3
    AF_BLUETOOTH                     = 0x1f
    AF_BRIDGE                        = 0x7
    AF_CAN                           = 0x1d
    AF_DECnet                        = 0xc
    AF_ECONET                        = 0x13
    AF_FILE                          = 0x1
    AF_IEEE802154                    = 0x24
    AF_INET                          = 0x2
    AF_INET6                         = 0xa
    AF_IPX                           = 0x4
    AF_IRDA                          = 0x17
    AF_ISDN                          = 0x22
    AF_IUCV                          = 0x20
    AF_KEY                           = 0xf
    AF_LLC                           = 0x1a
    AF_LOCAL                         = 0x1
    AF_MAX                           = 0x25
    AF_NETBEUI                       = 0xd
    AF_NETLINK                       = 0x10
    AF_NETROM                        = 0x6
    AF_PACKET                        = 0x11
    AF_PHONET                        = 0x23
    AF_PPPOX                         = 0x18
    AF_RDS                           = 0x15
    AF_ROSE                          = 0xb
    AF_ROUTE                         = 0x10
    AF_RXRPC                         = 0x21
    AF_SECURITY                      = 0xe
    AF_SNA                           = 0x16
    AF_TIPC                          = 0x1e
    AF_UNIX                          = 0x1
    AF_UNSPEC                        = 0
    AF_WANPIPE                       = 0x19
    AF_X25                           = 0x9
    E2BIG                            = 0x7
    EACCES                           = 0xd
    EADDRINUSE                       = 0x62
    EADDRNOTAVAIL                    = 0x63
    EADV                             = 0x44
    EAFNOSUPPORT                     = 0x61
    EAGAIN                           = 0xb
    EALREADY                         = 0x72
    EBADE                            = 0x34
    EBADF                            = 0x9
    EBADFD                           = 0x4d
    EBADMSG                          = 0x4a
    EBADR                            = 0x35
    EBADRQC                          = 0x38
    EBADSLT                          = 0x39
    EBFONT                           = 0x3b
    EBUSY                            = 0x10
    ECANCELED                        = 0x7d
    ECHILD                           = 0xa
    ECHRNG                           = 0x2c
    ECOMM                            = 0x46
    ECONNABORTED                     = 0x67
    ECONNREFUSED                     = 0x6f
    ECONNRESET                       = 0x68
    EDEADLK                          = 0x23
    EDEADLOCK                        = 0x23
    EDESTADDRREQ                     = 0x59
    EDOM                             = 0x21
    EDOTDOT                          = 0x49
    EDQUOT                           = 0x7a
    EEXIST                           = 0x11
    EFAULT                           = 0xe
    EFBIG                            = 0x1b
    EHOSTDOWN                        = 0x70
    EHOSTUNREACH                     = 0x71
    EIDRM                            = 0x2b
    EILSEQ                           = 0x54
    EINPROGRESS                      = 0x73
    EINTR                            = 0x4
    EINVAL                           = 0x16
    EIO                              = 0x5
    EISCONN                          = 0x6a
    EISDIR                           = 0x15
    EISNAM                           = 0x78
    EKEYEXPIRED                      = 0x7f
    EKEYREJECTED                     = 0x81
    EKEYREVOKED                      = 0x80
    EL2HLT                           = 0x33
    EL2NSYNC                         = 0x2d
    EL3HLT                           = 0x2e
    EL3RST                           = 0x2f
    ELIBACC                          = 0x4f
    ELIBBAD                          = 0x50
    ELIBEXEC                         = 0x53
    ELIBMAX                          = 0x52
    ELIBSCN                          = 0x51
    ELNRNG                           = 0x30
    ELOOP                            = 0x28
    EMEDIUMTYPE                      = 0x7c
    EMFILE                           = 0x18
    EMLINK                           = 0x1f
    EMSGSIZE                         = 0x5a
    EMULTIHOP                        = 0x48
    ENAMETOOLONG                     = 0x24
    ENAVAIL                          = 0x77
    ENETDOWN                         = 0x64
    ENETRESET                        = 0x66
    ENETUNREACH                      = 0x65
    ENFILE                           = 0x17
    ENOANO                           = 0x37
    ENOBUFS                          = 0x69
    ENOCSI                           = 0x32
    ENODATA                          = 0x3d
    ENODEV                           = 0x13
    ENOENT                           = 0x2
    ENOEXEC                          = 0x8
    ENOKEY                           = 0x7e
    ENOLCK                           = 0x25
    ENOLINK                          = 0x43
    ENOMEDIUM                        = 0x7b
    ENOMEM                           = 0xc
    ENOMSG                           = 0x2a
    ENONET                           = 0x40
    ENOPKG                           = 0x41
    ENOPROTOOPT                      = 0x5c
    ENOSPC                           = 0x1c
    ENOSR                            = 0x3f
    ENOSTR                           = 0x3c
    ENOSYS                           = 0x26
    ENOTBLK                          = 0xf
    ENOTCONN                         = 0x6b
    ENOTDIR                          = 0x14
    ENOTEMPTY                        = 0x27
    ENOTNAM                          = 0x76
    ENOTRECOVERABLE                  = 0x83
    ENOTSOCK                         = 0x58
    ENOTSUP                          = 0x5f
    ENOTTY                           = 0x19
    ENOTUNIQ                         = 0x4c
    ENXIO                            = 0x6
    EOPNOTSUPP                       = 0x5f
    EOVERFLOW                        = 0x4b
    EOWNERDEAD                       = 0x82
    EPERM                            = 0x1
    EPFNOSUPPORT                     = 0x60
    EPIPE                            = 0x20
    EPOLLERR                         = 0x8
    EPOLLET                          = -0x80000000
    EPOLLHUP                         = 0x10
    EPOLLIN                          = 0x1
    EPOLLMSG                         = 0x400
    EPOLLONESHOT                     = 0x40000000
    EPOLLOUT                         = 0x4
    EPOLLPRI                         = 0x2
    EPOLLRDBAND                      = 0x80
    EPOLLRDHUP                       = 0x2000
    EPOLLRDNORM                      = 0x40
    EPOLLWRBAND                      = 0x200
    EPOLLWRNORM                      = 0x100
    EPOLL_CLOEXEC                    = 0x80000
    EPOLL_CTL_ADD                    = 0x1
    EPOLL_CTL_DEL                    = 0x2
    EPOLL_CTL_MOD                    = 0x3
    EPOLL_NONBLOCK                   = 0x800
    EPROTO                           = 0x47
    EPROTONOSUPPORT                  = 0x5d
    EPROTOTYPE                       = 0x5b
    ERANGE                           = 0x22
    EREMCHG                          = 0x4e
    EREMOTE                          = 0x42
    EREMOTEIO                        = 0x79
    ERESTART                         = 0x55
    ERFKILL                          = 0x84
    EROFS                            = 0x1e
    ESHUTDOWN                        = 0x6c
    ESOCKTNOSUPPORT                  = 0x5e
    ESPIPE                           = 0x1d
    ESRCH                            = 0x3
    ESRMNT                           = 0x45
    ESTALE                           = 0x74
    ESTRPIPE                         = 0x56
    ETIME                            = 0x3e
    ETIMEDOUT                        = 0x6e
    ETOOMANYREFS                     = 0x6d
    ETXTBSY                          = 0x1a
    EUCLEAN                          = 0x75
    EUNATCH                          = 0x31
    EUSERS                           = 0x57
    EWOULDBLOCK                      = 0xb
    EXDEV                            = 0x12
    EXFULL                           = 0x36
    FD_CLOEXEC                       = 0x1
    FD_SETSIZE                       = 0x400
    F_DUPFD                          = 0
    F_DUPFD_CLOEXEC                  = 0x406
    F_EXLCK                          = 0x4
    F_GETFD                          = 0x1
    F_GETFL                          = 0x3
    F_GETLEASE                       = 0x401
    F_GETLK                          = 0xc
    F_GETLK64                        = 0xc
    F_GETOWN                         = 0x9
    F_GETOWN_EX                      = 0x10
    F_GETSIG                         = 0xb
    F_LOCK                           = 0x1
    F_NOTIFY                         = 0x402
    F_OK                             = 0
    F_RDLCK                          = 0
    F_SETFD                          = 0x2
    F_SETFL                          = 0x4
    F_SETLEASE                       = 0x400
    F_SETLK                          = 0xd
    F_SETLK64                        = 0xd
    F_SETLKW                         = 0xe
    F_SETLKW64                       = 0xe
    F_SETOWN                         = 0x8
    F_SETOWN_EX                      = 0xf
    F_SETSIG                         = 0xa
    F_SHLCK                          = 0x8
    F_TEST                           = 0x3
    F_TLOCK                          = 0x2
    F_ULOCK                          = 0
    F_UNLCK                          = 0x2
    F_WRLCK                          = 0x1
    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_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_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                  = 0
    IPPROTO_ICMP                     = 0x1
    IPPROTO_ICMPV6                   = 0x3a
    IPPROTO_IDP                      = 0x16
    IPPROTO_IGMP                     = 0x2
    IPPROTO_IP                       = 0
    IPPROTO_IPIP                     = 0x4
    IPPROTO_IPV6                     = 0x29
    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_ADD_MEMBERSHIP              = 0x14
    IPV6_AUTHHDR                     = 0xa
    IPV6_CHECKSUM                    = 0x7
    IPV6_DROP_MEMBERSHIP             = 0x15
    IPV6_DSTOPTS                     = 0x3b
    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_MTU                         = 0x18
    IPV6_MTU_DISCOVER                = 0x17
    IPV6_MULTICAST_HOPS              = 0x12
    IPV6_MULTICAST_IF                = 0x11
    IPV6_MULTICAST_LOOP              = 0x13
    IPV6_NEXTHOP                     = 0x9
    IPV6_PKTINFO                     = 0x32
    IPV6_PMTUDISC_DO                 = 0x2
    IPV6_PMTUDISC_DONT               = 0
    IPV6_PMTUDISC_PROBE              = 0x3
    IPV6_PMTUDISC_WANT               = 0x1
    IPV6_RECVDSTOPTS                 = 0x3a
    IPV6_RECVERR                     = 0x19
    IPV6_RECVHOPLIMIT                = 0x33
    IPV6_RECVHOPOPTS                 = 0x35
    IPV6_RECVPKTINFO                 = 0x31
    IPV6_RECVRTHDR                   = 0x38
    IPV6_RECVTCLASS                  = 0x42
    IPV6_ROUTER_ALERT                = 0x16
    IPV6_RTHDR                       = 0x39
    IPV6_RTHDRDSTOPTS                = 0x37
    IPV6_RTHDR_LOOSE                 = 0
    IPV6_RTHDR_STRICT                = 0x1
    IPV6_RTHDR_TYPE_0                = 0
    IPV6_RXDSTOPTS                   = 0x3b
    IPV6_RXHOPOPTS                   = 0x36
    IPV6_TCLASS                      = 0x43
    IPV6_UNICAST_HOPS                = 0x10
    IPV6_V6ONLY                      = 0x1a
    IPV6_XFRM_POLICY                 = 0x23
    IP_ADD_MEMBERSHIP                = 0x23
    IP_ADD_SOURCE_MEMBERSHIP         = 0x27
    IP_BLOCK_SOURCE                  = 0x26
    IP_DEFAULT_MULTICAST_LOOP        = 0x1
    IP_DEFAULT_MULTICAST_TTL         = 0x1
    IP_DF                            = 0x4000
    IP_DROP_MEMBERSHIP               = 0x24
    IP_DROP_SOURCE_MEMBERSHIP        = 0x28
    IP_HDRINCL                       = 0x3
    IP_MAXPACKET                     = 0xffff
    IP_MAX_MEMBERSHIPS               = 0x14
    IP_MF                            = 0x2000
    IP_MSFILTER                      = 0x29
    IP_MSS                           = 0x240
    IP_MTU_DISCOVER                  = 0xa
    IP_MULTICAST_IF                  = 0x20
    IP_MULTICAST_LOOP                = 0x22
    IP_MULTICAST_TTL                 = 0x21
    IP_OFFMASK                       = 0x1fff
    IP_OPTIONS                       = 0x4
    IP_PKTINFO                       = 0x8
    IP_PKTOPTIONS                    = 0x9
    IP_PMTUDISC                      = 0xa
    IP_PMTUDISC_DO                   = 0x2
    IP_PMTUDISC_DONT                 = 0
    IP_PMTUDISC_PROBE                = 0x3
    IP_PMTUDISC_WANT                 = 0x1
    IP_RECVERR                       = 0xb
    IP_RECVOPTS                      = 0x6
    IP_RECVRETOPTS                   = 0x7
    IP_RECVTOS                       = 0xd
    IP_RECVTTL                       = 0xc
    IP_RETOPTS                       = 0x7
    IP_RF                            = 0x8000
    IP_ROUTER_ALERT                  = 0x5
    IP_TOS                           = 0x1
    IP_TTL                           = 0x2
    IP_UNBLOCK_SOURCE                = 0x25
    MAP_32BIT                        = 0x40
    MAP_ANON                         = 0x20
    MAP_ANONYMOUS                    = 0x20
    MAP_DENYWRITE                    = 0x800
    MAP_EXECUTABLE                   = 0x1000
    MAP_FILE                         = 0
    MAP_FIXED                        = 0x10
    MAP_GROWSDOWN                    = 0x100
    MAP_LOCKED                       = 0x2000
    MAP_NONBLOCK                     = 0x10000
    MAP_NORESERVE                    = 0x4000
    MAP_POPULATE                     = 0x8000
    MAP_PRIVATE                      = 0x2
    MAP_SHARED                       = 0x1
    MAP_STACK                        = 0x20000
    MAP_TYPE                         = 0xf
    MSG_CMSG_CLOEXEC                 = 0x40000000
    MSG_CONFIRM                      = 0x800
    MSG_CTRUNC                       = 0x8
    MSG_DONTROUTE                    = 0x4
    MSG_DONTWAIT                     = 0x40
    MSG_EOR                          = 0x80
    MSG_ERRQUEUE                     = 0x2000
    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
    NAME_MAX                         = 0xff
    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                          = 0x1000
    O_LARGEFILE                      = 0x8000
    O_NDELAY                         = 0x800
    O_NOATIME                        = 0x40000
    O_NOCTTY                         = 0x100
    O_NOFOLLOW                       = 0x20000
    O_NONBLOCK                       = 0x800
    O_RDONLY                         = 0
    O_RDWR                           = 0x2
    O_RSYNC                          = 0x1000
    O_SYNC                           = 0x1000
    O_TRUNC                          = 0x200
    O_WRONLY                         = 0x1
    PACKET_ADD_MEMBERSHIP            = 0x1
    PACKET_BROADCAST                 = 0x1
    PACKET_DROP_MEMBERSHIP           = 0x2
    PACKET_FASTROUTE                 = 0x6
    PACKET_HOST                      = 0
    PACKET_LOOPBACK                  = 0x5
    PACKET_MR_ALLMULTI               = 0x2
    PACKET_MR_MULTICAST              = 0
    PACKET_MR_PROMISC                = 0x1
    PACKET_MULTICAST                 = 0x2
    PACKET_OTHERHOST                 = 0x3
    PACKET_OUTGOING                  = 0x4
    PACKET_RECV_OUTPUT               = 0x3
    PACKET_RX_RING                   = 0x5
    PACKET_STATISTICS                = 0x6
    PROT_EXEC                        = 0x4
    PROT_GROWSDOWN                   = 0x1000000
    PROT_GROWSUP                     = 0x2000000
    PROT_NONE                        = 0
    PROT_READ                        = 0x1
    PROT_WRITE                       = 0x2
    PTRACE_ATTACH                    = 0x10
    PTRACE_BTS_CLEAR                 = 0x2c
    PTRACE_BTS_CONFIG                = 0x28
    PTRACE_BTS_DRAIN                 = 0x2d
    PTRACE_BTS_GET                   = 0x2b
    PTRACE_BTS_O_ALLOC               = 0x8
    PTRACE_BTS_O_SCHED               = 0x2
    PTRACE_BTS_O_SIGNAL              = 0x4
    PTRACE_BTS_O_TRACE               = 0x1
    PTRACE_BTS_SIZE                  = 0x2a
    PTRACE_BTS_STATUS                = 0x29
    PTRACE_CONT                      = 0x7
    PTRACE_DETACH                    = 0x11
    PTRACE_EVENT_CLONE               = 0x3
    PTRACE_EVENT_EXEC                = 0x4
    PTRACE_EVENT_EXIT                = 0x6
    PTRACE_EVENT_FORK                = 0x1
    PTRACE_EVENT_VFORK               = 0x2
    PTRACE_EVENT_VFORK_DONE          = 0x5
    PTRACE_GETEVENTMSG               = 0x4201
    PTRACE_GETFPREGS                 = 0xe
    PTRACE_GETFPXREGS                = 0x12
    PTRACE_GETREGS                   = 0xc
    PTRACE_GETSIGINFO                = 0x4202
    PTRACE_GET_THREAD_AREA           = 0x19
    PTRACE_KILL                      = 0x8
    PTRACE_OLDSETOPTIONS             = 0x15
    PTRACE_O_MASK                    = 0x7f
    PTRACE_O_TRACECLONE              = 0x8
    PTRACE_O_TRACEEXEC               = 0x10
    PTRACE_O_TRACEEXIT               = 0x40
    PTRACE_O_TRACEFORK               = 0x2
    PTRACE_O_TRACESYSGOOD            = 0x1
    PTRACE_O_TRACEVFORK              = 0x4
    PTRACE_O_TRACEVFORKDONE          = 0x20
    PTRACE_PEEKDATA                  = 0x2
    PTRACE_PEEKTEXT                  = 0x1
    PTRACE_PEEKUSR                   = 0x3
    PTRACE_POKEDATA                  = 0x5
    PTRACE_POKETEXT                  = 0x4
    PTRACE_POKEUSR                   = 0x6
    PTRACE_SETFPREGS                 = 0xf
    PTRACE_SETFPXREGS                = 0x13
    PTRACE_SETOPTIONS                = 0x4200
    PTRACE_SETREGS                   = 0xd
    PTRACE_SETSIGINFO                = 0x4203
    PTRACE_SET_THREAD_AREA           = 0x1a
    PTRACE_SINGLEBLOCK               = 0x21
    PTRACE_SINGLESTEP                = 0x9
    PTRACE_SYSCALL                   = 0x18
    PTRACE_SYSEMU                    = 0x1f
    PTRACE_SYSEMU_SINGLESTEP         = 0x20
    PTRACE_TRACEME                   = 0
    SCM_CREDENTIALS                  = 0x2
    SCM_RIGHTS                       = 0x1
    SCM_TIMESTAMP                    = 0x1d
    SCM_TIMESTAMPING                 = 0x25
    SCM_TIMESTAMPNS                  = 0x23
    SHUT_RD                          = 0
    SHUT_RDWR                        = 0x2
    SHUT_WR                          = 0x1
    SIGABRT                          = 0x6
    SIGALRM                          = 0xe
    SIGBUS                           = 0x7
    SIGCHLD                          = 0x11
    SIGCLD                           = 0x11
    SIGCONT                          = 0x12
    SIGFPE                           = 0x8
    SIGHUP                           = 0x1
    SIGILL                           = 0x4
    SIGINT                           = 0x2
    SIGIO                            = 0x1d
    SIGIOT                           = 0x6
    SIGKILL                          = 0x9
    SIGPIPE                          = 0xd
    SIGPOLL                          = 0x1d
    SIGPROF                          = 0x1b
    SIGPWR                           = 0x1e
    SIGQUIT                          = 0x3
    SIGSEGV                          = 0xb
    SIGSTKFLT                        = 0x10
    SIGSTOP                          = 0x13
    SIGSYS                           = 0x1f
    SIGTERM                          = 0xf
    SIGTRAP                          = 0x5
    SIGTSTP                          = 0x14
    SIGTTIN                          = 0x15
    SIGTTOU                          = 0x16
    SIGUNUSED                        = 0x1f
    SIGURG                           = 0x17
    SIGUSR1                          = 0xa
    SIGUSR2                          = 0xc
    SIGVTALRM                        = 0x1a
    SIGWINCH                         = 0x1c
    SIGXCPU                          = 0x18
    SIGXFSZ                          = 0x19
    SIOCADDDLCI                      = 0x8980
    SIOCADDMULTI                     = 0x8931
    SIOCADDRT                        = 0x890b
    SIOCATMARK                       = 0x8905
    SIOCDARP                         = 0x8953
    SIOCDELDLCI                      = 0x8981
    SIOCDELMULTI                     = 0x8932
    SIOCDELRT                        = 0x890c
    SIOCDEVPRIVATE                   = 0x89f0
    SIOCDIFADDR                      = 0x8936
    SIOCDRARP                        = 0x8960
    SIOCGARP                         = 0x8954
    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
    SIOCGPGRP                        = 0x8904
    SIOCGRARP                        = 0x8961
    SIOCGSTAMP                       = 0x8906
    SIOCGSTAMPNS                     = 0x8907
    SIOCPROTOPRIVATE                 = 0x89e0
    SIOCRTMSG                        = 0x890d
    SIOCSARP                         = 0x8955
    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
    SIOCSPGRP                        = 0x8902
    SIOCSRARP                        = 0x8962
    SIOGIFINDEX                      = 0x8933
    SOCK_CLOEXEC                     = 0x80000
    SOCK_DCCP                        = 0x6
    SOCK_DGRAM                       = 0x2
    SOCK_NONBLOCK                    = 0x800
    SOCK_PACKET                      = 0xa
    SOCK_RAW                         = 0x3
    SOCK_RDM                         = 0x4
    SOCK_SEQPACKET                   = 0x5
    SOCK_STREAM                      = 0x1
    SOL_AAL                          = 0x109
    SOL_ATM                          = 0x108
    SOL_DECNET                       = 0x105
    SOL_ICMPV6                       = 0x3a
    SOL_IP                           = 0
    SOL_IPV6                         = 0x29
    SOL_IRDA                         = 0x10a
    SOL_PACKET                       = 0x107
    SOL_RAW                          = 0xff
    SOL_SOCKET                       = 0x1
    SOL_TCP                          = 0x6
    SOL_X25                          = 0x106
    SOMAXCONN                        = 0x80
    SO_ACCEPTCONN                    = 0x1e
    SO_ATTACH_FILTER                 = 0x1a
    SO_BINDTODEVICE                  = 0x19
    SO_BROADCAST                     = 0x6
    SO_BSDCOMPAT                     = 0xe
    SO_DEBUG                         = 0x1
    SO_DETACH_FILTER                 = 0x1b
    SO_DOMAIN                        = 0x27
    SO_DONTROUTE                     = 0x5
    SO_ERROR                         = 0x4
    SO_KEEPALIVE                     = 0x9
    SO_LINGER                        = 0xd
    SO_MARK                          = 0x24
    SO_NO_CHECK                      = 0xb
    SO_OOBINLINE                     = 0xa
    SO_PASSCRED                      = 0x10
    SO_PASSSEC                       = 0x22
    SO_PEERCRED                      = 0x11
    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_SECURITY_AUTHENTICATION       = 0x16
    SO_SECURITY_ENCRYPTION_NETWORK   = 0x18
    SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
    SO_SNDBUF                        = 0x7
    SO_SNDBUFFORCE                   = 0x20
    SO_SNDLOWAT                      = 0x13
    SO_SNDTIMEO                      = 0x15
    SO_TIMESTAMP                     = 0x1d
    SO_TIMESTAMPING                  = 0x25
    SO_TIMESTAMPNS                   = 0x23
    SO_TYPE                          = 0x3
    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
    TCP_CONGESTION                   = 0xd
    TCP_CORK                         = 0x3
    TCP_DEFER_ACCEPT                 = 0x9
    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_NODELAY                      = 0x1
    TCP_QUICKACK                     = 0xc
    TCP_SYNCNT                       = 0x7
    TCP_WINDOW_CLAMP                 = 0xa
    WALL                             = 0x40000000
    WCLONE                           = 0x80000000
    WCONTINUED                       = 0x8
    WEXITED                          = 0x4
    WNOHANG                          = 0x1
    WNOTHREAD                        = 0x20000000
    WNOWAIT                          = 0x1000000
    WORDSIZE                         = 0x20
    WSTOPPED                         = 0x2
    WUNTRACED                        = 0x2
)
const (
    EPERM           = 1
    ENOENT          = 2
    ESRCH           = 3
    EINTR           = 4
    EIO             = 5
    ENXIO           = 6
    E2BIG           = 7
    ENOEXEC         = 8
    EBADF           = 9
    ECHILD          = 10
    EAGAIN          = 11
    ENOMEM          = 12
    EACCES          = 13
    EFAULT          = 14
    EBUSY           = 16
    EEXIST          = 17
    EXDEV           = 18
    ENODEV          = 19
    ENOTDIR         = 20
    EISDIR          = 21
    EINVAL          = 22
    ENFILE          = 23
    EMFILE          = 24
    ENOTTY          = 25
    EFBIG           = 27
    ENOSPC          = 28
    ESPIPE          = 29
    EROFS           = 30
    EMLINK          = 31
    EPIPE           = 32
    ENAMETOOLONG    = 36
    ENOSYS          = 38
    EDQUOT          = 122
    EDOM            = 33
    ERANGE          = 34
    ENOMSG          = 35
    ECHRNG          = 37
    EL3HLT          = 39
    EL3RST          = 40
    ELNRNG          = 41
    EUNATCH         = 42
    ENOCSI          = 43
    EL2HLT          = 44
    EDEADLK         = 45
    ENOLCK          = 46
    EBADE           = 50
    EBADR           = 51
    EXFULL          = 52
    ENOANO          = 53
    EBADRQC         = 54
    EBADSLT         = 55
    EBFONT          = 57
    ENOSTR          = 60
    ENODATA         = 61
    ETIME           = 62
    ENOSR           = 63
    ENONET          = 64
    ENOPKG          = 65
    EREMOTE         = 66
    ENOLINK         = 67
    EADV            = 68
    ESRMNT          = 69
    ECOMM           = 70
    EPROTO          = 71
    EMULTIHOP       = 74
    ELBIN           = 75
    EDOTDOT         = 76
    EBADMSG         = 77
    EFTYPE          = 79
    ENOTUNIQ        = 80
    EBADFD          = 81
    EREMCHG         = 82
    ELIBACC         = 83
    ELIBBAD         = 84
    ELIBSCN         = 85
    ELIBMAX         = 86
    ELIBEXEC        = 87
    ENMFILE         = 89
    ENOTEMPTY       = 90
    ELOOP           = 92
    EOPNOTSUPP      = 95
    EPFNOSUPPORT    = 96
    ECONNRESET      = 104
    ENOBUFS         = 105
    EAFNOSUPPORT    = 106
    EPROTOTYPE      = 107
    ENOTSOCK        = 108
    ENOPROTOOPT     = 109
    ESHUTDOWN       = 110
    ECONNREFUSED    = 111
    EADDRINUSE      = 112
    ECONNABORTED    = 113
    ENETUNREACH     = 114
    ENETDOWN        = 115
    ETIMEDOUT       = 116
    EHOSTDOWN       = 117
    EHOSTUNREACH    = 118
    EINPROGRESS     = 119
    EALREADY        = 120
    EDESTADDRREQ    = 121
    EPROTONOSUPPORT = 123
    ESOCKTNOSUPPORT = 124
    EADDRNOTAVAIL   = 125
    ENETRESET       = 126
    EISCONN         = 127
    ENOTCONN        = 128
    ETOOMANYREFS    = 129
    EPROCLIM        = 130
    EUSERS          = 131
    ESTALE          = 133
    ENOMEDIUM       = 135
    ENOSHARE        = 136
    ECASECLASH      = 137
    EILSEQ          = 138
    EOVERFLOW       = 139
    ECANCELED       = 140
    EL2NSYNC        = 88
    EIDRM           = 91
    EMSGSIZE        = 132
    ENACL           = 99 /* otherwise unused */
)
const (
    // SYS_NOSYS = 0;  // { int nosys(void); }   { indirect syscall }
    SYS_EXIT  = 1 // { void exit(int rval); }
    SYS_FORK  = 2 // { int fork(void); }
    SYS_READ  = 3 // { user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); }
    SYS_WRITE = 4 // { user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); }
    SYS_OPEN  = 5 // { int open(user_addr_t path, int flags, int mode); }
    SYS_CLOSE = 6 // { int close(int fd); }
    SYS_WAIT4 = 7 // { int wait4(int pid, user_addr_t status, int options, user_addr_t rusage); }
    // SYS_NOSYS = 8;  // { int nosys(void); }   { old creat }
    SYS_LINK   = 9  // { int link(user_addr_t path, user_addr_t link); }
    SYS_UNLINK = 10 // { int unlink(user_addr_t path); }
    // SYS_NOSYS = 11;  // { int nosys(void); }   { old execv }
    SYS_CHDIR      = 12 // { int chdir(user_addr_t path); }
    SYS_FCHDIR     = 13 // { int fchdir(int fd); }
    SYS_MKNOD      = 14 // { int mknod(user_addr_t path, int mode, int dev); }
    SYS_CHMOD      = 15 // { int chmod(user_addr_t path, int mode); }
    SYS_CHOWN      = 16 // { int chown(user_addr_t path, int uid, int gid); }
    SYS_OGETFSSTAT = 18 // { int ogetfsstat(user_addr_t buf, int bufsize, int flags); }
    SYS_GETFSSTAT  = 18 // { int getfsstat(user_addr_t buf, int bufsize, int flags); }
    // SYS_NOSYS = 19;  // { int nosys(void); }   { old lseek }
    SYS_GETPID = 20 // { int getpid(void); }
    // SYS_NOSYS = 21;  // { int nosys(void); }   { old mount }
    // SYS_NOSYS = 22;  // { int nosys(void); }   { old umount }
    SYS_SETUID      = 23 // { int setuid(uid_t uid); }
    SYS_GETUID      = 24 // { int getuid(void); }
    SYS_GETEUID     = 25 // { int geteuid(void); }
    SYS_PTRACE      = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
    SYS_RECVMSG     = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); }
    SYS_SENDMSG     = 28 // { int sendmsg(int s, caddr_t msg, int flags); }
    SYS_RECVFROM    = 29 // { int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr); }
    SYS_ACCEPT      = 30 // { int accept(int s, caddr_t name, socklen_t	*anamelen); }
    SYS_GETPEERNAME = 31 // { int getpeername(int fdes, caddr_t asa, socklen_t *alen); }
    SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, caddr_t asa, socklen_t *alen); }
    // SYS_NOSYS = 27;  // { int nosys(void); }
    // SYS_NOSYS = 28;  // { int nosys(void); }
    // SYS_NOSYS = 29;  // { int nosys(void); }
    // SYS_NOSYS = 30;  // { int nosys(void); }
    // SYS_NOSYS = 31;  // { int nosys(void); }
    // SYS_NOSYS = 32;  // { int nosys(void); }
    SYS_ACCESS   = 33 // { int access(user_addr_t path, int flags); }
    SYS_CHFLAGS  = 34 // { int chflags(char *path, int flags); }
    SYS_FCHFLAGS = 35 // { int fchflags(int fd, int flags); }
    SYS_SYNC     = 36 // { int sync(void); }
    SYS_KILL     = 37 // { int kill(int pid, int signum, int posix); }
    // SYS_NOSYS = 38;  // { int nosys(void); }   { old stat  }
    SYS_GETPPID = 39 // { int getppid(void); }
    // SYS_NOSYS = 40;  // { int nosys(void); }   { old lstat }
    SYS_DUP     = 41 // { int dup(u_int fd); }
    SYS_PIPE    = 42 // { int pipe(void); }
    SYS_GETEGID = 43 // { int getegid(void); }
    SYS_PROFIL  = 44 // { int profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
    // SYS_NOSYS = 45;  // { int nosys(void); } { old ktrace }
    SYS_SIGACTION   = 46 // { int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa); }
    SYS_GETGID      = 47 // { int getgid(void); }
    SYS_SIGPROCMASK = 48 // { int sigprocmask(int how, user_addr_t mask, user_addr_t omask); }
    SYS_GETLOGIN    = 49 // { int getlogin(char *namebuf, u_int namelen); }
    SYS_SETLOGIN    = 50 // { int setlogin(char *namebuf); }
    SYS_ACCT        = 51 // { int acct(char *path); }
    SYS_SIGPENDING  = 52 // { int sigpending(struct sigvec *osv); }
    SYS_SIGALTSTACK = 53 // { int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss); }
    SYS_IOCTL       = 54 // { int ioctl(int fd, u_long com, caddr_t data); }
    SYS_REBOOT      = 55 // { int reboot(int opt, char *command); }
    SYS_REVOKE      = 56 // { int revoke(char *path); }
    SYS_SYMLINK     = 57 // { int symlink(char *path, char *link); }
    SYS_READLINK    = 58 // { int readlink(char *path, char *buf, int count); }
    SYS_EXECVE      = 59 // { int execve(char *fname, char **argp, char **envp); }
    SYS_UMASK       = 60 // { int umask(int newmask); }
    SYS_CHROOT      = 61 // { int chroot(user_addr_t path); }
    // SYS_NOSYS = 62;  // { int nosys(void); }   { old fstat }
    // SYS_NOSYS = 63;  // { int nosys(void); }   { used internally, reserved }
    // SYS_NOSYS = 64;  // { int nosys(void); }   { old getpagesize }
    SYS_MSYNC = 65 // { int msync(caddr_t addr, size_t len, int flags); }
    SYS_VFORK = 66 // { int vfork(void); }
    // SYS_NOSYS = 67;  // { int nosys(void); }   { old vread }
    // SYS_NOSYS = 68;  // { int nosys(void); }   { old vwrite }
    SYS_SBRK = 69 // { int sbrk(int incr) NO_SYSCALL_STUB; }
    SYS_SSTK = 70 // { int sstk(int incr) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 71;  // { int nosys(void); }   { old mmap }
    SYS_OVADVISE = 72 // { int ovadvise(void) NO_SYSCALL_STUB; }   { old vadvise }
    SYS_MUNMAP   = 73 // { int munmap(caddr_t addr, size_t len); }
    SYS_MPROTECT = 74 // { int mprotect(caddr_t addr, size_t len, int prot); }
    SYS_MADVISE  = 75 // { int madvise(caddr_t addr, size_t len, int behav); }
    // SYS_NOSYS = 76;  // { int nosys(void); }   { old vhangup }
    // SYS_NOSYS = 77;  // { int nosys(void); }   { old vlimit }
    SYS_MINCORE   = 78 // { int mincore(user_addr_t addr, user_size_t len, user_addr_t vec); }
    SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); }
    SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); }
    SYS_GETPGRP   = 81 // { int getpgrp(void); }
    SYS_SETPGID   = 82 // { int setpgid(int pid, int pgid); }
    SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
    // SYS_NOSYS = 84;  // { int nosys(void); }   { old wait }
    SYS_SWAPON    = 85 // { int swapon(void); }
    SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); }
    // SYS_NOSYS = 87;  // { int nosys(void); }   { old gethostname }
    // SYS_NOSYS = 88;  // { int nosys(void); }   { old sethostname }
    SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
    SYS_DUP2          = 90 // { int dup2(u_int from, u_int to); }
    // SYS_NOSYS = 91;  // { int nosys(void); }   { old getdopt }
    SYS_FCNTL  = 92 // { int fcntl(int fd, int cmd, long arg); }
    SYS_SELECT = 93 // { int select(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv); }
    // SYS_NOSYS = 94;  // { int nosys(void); }   { old setdopt }
    SYS_FSYNC       = 95 // { int fsync(int fd); }
    SYS_SETPRIORITY = 96 // { int setpriority(int which, id_t who, int prio); }
    SYS_SOCKET      = 97 // { int socket(int domain, int type, int protocol); }
    SYS_CONNECT     = 98 // { int connect(int s, caddr_t name, socklen_t namelen); }
    // SYS_NOSYS = 97;  // { int nosys(void); }
    // SYS_NOSYS = 98;  // { int nosys(void); }
    // SYS_NOSYS = 99;  // { int nosys(void); }   { old accept }
    SYS_GETPRIORITY = 100 // { int getpriority(int which, id_t who); }
    // SYS_NOSYS = 101;  // { int nosys(void); }   { old send }
    // SYS_NOSYS = 102;  // { int nosys(void); }   { old recv }
    // SYS_NOSYS = 103;  // { int nosys(void); }   { old sigreturn }
    SYS_BIND       = 104 // { int bind(int s, caddr_t name, socklen_t namelen); }
    SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); }
    SYS_LISTEN     = 106 // { int listen(int s, int backlog); }
    // SYS_NOSYS = 104;  // { int nosys(void); }
    // SYS_NOSYS = 105;  // { int nosys(void); }
    // SYS_NOSYS = 106;  // { int nosys(void); }
    // SYS_NOSYS = 107;  // { int nosys(void); }   { old vtimes }
    // SYS_NOSYS = 108;  // { int nosys(void); }   { old sigvec }
    // SYS_NOSYS = 109;  // { int nosys(void); }   { old sigblock }
    // SYS_NOSYS = 110;  // { int nosys(void); }   { old sigsetmask }
    SYS_SIGSUSPEND = 111 // { int sigsuspend(sigset_t mask); }
    // SYS_NOSYS = 112;  // { int nosys(void); }   { old sigstack }
    // SYS_NOSYS = 113;  // { int nosys(void); }   { old recvmsg }
    // SYS_NOSYS = 114;  // { int nosys(void); }   { old sendmsg }
    // SYS_NOSYS = 113;  // { int nosys(void); }
    // SYS_NOSYS = 114;  // { int nosys(void); }
    // SYS_NOSYS = 115;  // { int nosys(void); }   { old vtrace }
    SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
    SYS_GETRUSAGE    = 117 // { int getrusage(int who, struct rusage *rusage); }
    SYS_GETSOCKOPT   = 118 // { int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); }
    // SYS_NOSYS = 118;  // { int nosys(void); }
    // SYS_NOSYS = 119;  // { int nosys(void); }   { old resuba }
    SYS_READV        = 120 // { user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); }
    SYS_WRITEV       = 121 // { user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); }
    SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, struct timezone *tzp); }
    SYS_FCHOWN       = 123 // { int fchown(int fd, int uid, int gid); }
    SYS_FCHMOD       = 124 // { int fchmod(int fd, int mode); }
    // SYS_NOSYS = 125;  // { int nosys(void); }   { old recvfrom }
    SYS_SETREUID = 126 // { int setreuid(uid_t ruid, uid_t euid); }
    SYS_SETREGID = 127 // { int setregid(gid_t rgid, gid_t egid); }
    SYS_RENAME   = 128 // { int rename(char *from, char *to); }
    // SYS_NOSYS = 129;  // { int nosys(void); }   { old truncate }
    // SYS_NOSYS = 130;  // { int nosys(void); }   { old ftruncate }
    SYS_FLOCK      = 131 // { int flock(int fd, int how); }
    SYS_MKFIFO     = 132 // { int mkfifo(user_addr_t path, int mode); }
    SYS_SENDTO     = 133 // { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen); }
    SYS_SHUTDOWN   = 134 // { int shutdown(int s, int how); }
    SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, int *rsv); }
    // SYS_NOSYS = 133;  // { int nosys(void); }
    // SYS_NOSYS = 134;  // { int nosys(void); }
    // SYS_NOSYS = 135;  // { int nosys(void); }
    SYS_MKDIR   = 136 // { int mkdir(user_addr_t path, int mode); }
    SYS_RMDIR   = 137 // { int rmdir(char *path); }
    SYS_UTIMES  = 138 // { int utimes(char *path, struct timeval *tptr); }
    SYS_FUTIMES = 139 // { int futimes(int fd, struct timeval *tptr); }
    SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, struct timeval *olddelta); }
    // SYS_NOSYS = 141;  // { int nosys(void); }   { old getpeername }
    SYS_GETHOSTUUID = 142 // { int gethostuuid(unsigned char *uuid_buf, const struct timespec *timeoutp); }
    // SYS_NOSYS = 143;  // { int nosys(void); }   { old sethostid 	}
    // SYS_NOSYS = 144;  // { int nosys(void); }   { old getrlimit }
    // SYS_NOSYS = 145;  // { int nosys(void); }   { old setrlimit }
    // SYS_NOSYS = 146;  // { int nosys(void); }   { old killpg }
    SYS_SETSID = 147 // { int setsid(void); }
    // SYS_NOSYS = 148;  // { int nosys(void); }   { old setquota }
    // SYS_NOSYS = 149;  // { int nosys(void); }   { old qquota }
    // SYS_NOSYS = 150;  // { int nosys(void); }   { old getsockname }
    SYS_GETPGID     = 151 // { int getpgid(pid_t pid); }
    SYS_SETPRIVEXEC = 152 // { int setprivexec(int flag); }
    SYS_PREAD       = 153 // { user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
    SYS_PWRITE      = 154 // { user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
    SYS_NFSSVC      = 155 // { int nfssvc(int flag, caddr_t argp); }
    // SYS_NOSYS = 155;  // { int nosys(void); }
    // SYS_NOSYS = 156;  // { int nosys(void); }   { old getdirentries }
    SYS_STATFS  = 157 // { int statfs(char *path, struct statfs *buf); }
    SYS_FSTATFS = 158 // { int fstatfs(int fd, struct statfs *buf); }
    SYS_UNMOUNT = 159 // { int unmount(user_addr_t path, int flags); }
    // SYS_NOSYS = 160;  // { int nosys(void); }   { old async_daemon }
    SYS_GETFH = 161 // { int getfh(char *fname, fhandle_t *fhp); }
    // SYS_NOSYS = 161;  // { int nosys(void); }
    // SYS_NOSYS = 162;  // { int nosys(void); }   { old getdomainname }
    // SYS_NOSYS = 163;  // { int nosys(void); }   { old setdomainname }
    // SYS_NOSYS = 164;  // { int nosys(void); }
    SYS_QUOTACTL = 165 // { int quotactl(const char *path, int cmd, int uid, caddr_t arg); }
    // SYS_NOSYS = 166;  // { int nosys(void); }   { old exportfs }
    SYS_MOUNT = 167 // { int mount(char *type, char *path, int flags, caddr_t data); }
    // SYS_NOSYS = 168;  // { int nosys(void); }   { old ustat }
    SYS_CSOPS = 169 // { int csops(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize); }
    // SYS_NOSYS = 171;  // { int nosys(void); }   { old wait3 }
    // SYS_NOSYS = 172;  // { int nosys(void); }   { old rpause	}
    SYS_WAITID = 173 // { int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); }
    // SYS_NOSYS = 174;  // { int nosys(void); }   { old getdents }
    // SYS_NOSYS = 175;  // { int nosys(void); }   { old gc_control }
    SYS_ADD_PROFIL = 176 // { int add_profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
    // SYS_NOSYS = 177;  // { int nosys(void); }
    // SYS_NOSYS = 178;  // { int nosys(void); }
    // SYS_NOSYS = 179;  // { int nosys(void); }
    SYS_KDEBUG_TRACE = 180 // { int kdebug_trace(int code, int arg1, int arg2, int arg3, int arg4, int arg5) NO_SYSCALL_STUB; }
    SYS_SETGID       = 181 // { int setgid(gid_t gid); }
    SYS_SETEGID      = 182 // { int setegid(gid_t egid); }
    SYS_SETEUID      = 183 // { int seteuid(uid_t euid); }
    SYS_SIGRETURN    = 184 // { int sigreturn(struct ucontext *uctx, int infostyle); }
    // SYS_NOSYS = 186;  // { int nosys(void); }
    // SYS_NOSYS = 187;  // { int nosys(void); }
    SYS_STAT      = 188 // { int stat(user_addr_t path, user_addr_t ub); }
    SYS_FSTAT     = 189 // { int fstat(int fd, user_addr_t ub); }
    SYS_LSTAT     = 190 // { int lstat(user_addr_t path, user_addr_t ub); }
    SYS_PATHCONF  = 191 // { int pathconf(char *path, int name); }
    SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
    // SYS_NOSYS = 193;  // { int nosys(void); }
    SYS_GETRLIMIT     = 194 // { int getrlimit(u_int which, struct rlimit *rlp); }
    SYS_SETRLIMIT     = 195 // { int setrlimit(u_int which, struct rlimit *rlp); }
    SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, u_int count, long *basep); }
    SYS_MMAP          = 197 // { user_addr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); }
    // SYS_NOSYS = 198;  // { int nosys(void); } 	{ __syscall }
    SYS_LSEEK     = 199 // { off_t lseek(int fd, off_t offset, int whence); }
    SYS_TRUNCATE  = 200 // { int truncate(char *path, off_t length); }
    SYS_FTRUNCATE = 201 // { int ftruncate(int fd, off_t length); }
    SYS___SYSCTL  = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); }
    SYS_MLOCK     = 203 // { int mlock(caddr_t addr, size_t len); }
    SYS_MUNLOCK   = 204 // { int munlock(caddr_t addr, size_t len); }
    SYS_UNDELETE  = 205 // { int undelete(user_addr_t path); }
    SYS_ATSOCKET  = 206 // { int ATsocket(int proto); }
    // SYS_NOSYS = 213;  // { int nosys(void); } 	{ Reserved for AppleTalk }
    // SYS_NOSYS = 206;  // { int nosys(void); }
    // SYS_NOSYS = 207;  // { int nosys(void); }
    // SYS_NOSYS = 208;  // { int nosys(void); }
    // SYS_NOSYS = 209;  // { int nosys(void); }
    // SYS_NOSYS = 210;  // { int nosys(void); }
    // SYS_NOSYS = 211;  // { int nosys(void); }
    // SYS_NOSYS = 212;  // { int nosys(void); }
    // SYS_NOSYS = 213;  // { int nosys(void); } 	{ Reserved for AppleTalk }
    SYS_KQUEUE_FROM_PORTSET_NP = 214 // { int kqueue_from_portset_np(int portset); }
    SYS_KQUEUE_PORTSET_NP      = 215 // { int kqueue_portset_np(int fd); }
    SYS_GETATTRLIST            = 220 // { int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
    SYS_SETATTRLIST            = 221 // { int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
    SYS_GETDIRENTRIESATTR      = 222 // { int getdirentriesattr(int fd, struct attrlist *alist, void *buffer, size_t buffersize, u_long *count, u_long *basep, u_long *newstate, u_long options); }
    SYS_EXCHANGEDATA           = 223 // { int exchangedata(const char *path1, const char *path2, u_long options); }
    // SYS_NOSYS = 224;  // { int nosys(void); } { was checkuseraccess }
    SYS_SEARCHFS = 225 // { int searchfs(const char *path, struct fssearchblock *searchblock, u_long *nummatches, u_long scriptcode, u_long options, struct searchstate *state); }
    SYS_DELETE   = 226 // { int delete(user_addr_t path) NO_SYSCALL_STUB; }       { private delete (Carbon semantics) }
    SYS_COPYFILE = 227 // { int copyfile(char *from, char *to, int mode, int flags) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 228;  // { int nosys(void); }
    // SYS_NOSYS = 229;  // { int nosys(void); }
    SYS_POLL         = 230 // { int poll(struct pollfd *fds, u_int nfds, int timeout); }
    SYS_WATCHEVENT   = 231 // { int watchevent(struct eventreq *u_req, int u_eventmask); }
    SYS_WAITEVENT    = 232 // { int waitevent(struct eventreq *u_req, struct timeval *tv); }
    SYS_MODWATCH     = 233 // { int modwatch(struct eventreq *u_req, int u_eventmask); }
    SYS_GETXATTR     = 234 // { user_ssize_t getxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
    SYS_FGETXATTR    = 235 // { user_ssize_t fgetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
    SYS_SETXATTR     = 236 // { int setxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
    SYS_FSETXATTR    = 237 // { int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
    SYS_REMOVEXATTR  = 238 // { int removexattr(user_addr_t path, user_addr_t attrname, int options); }
    SYS_FREMOVEXATTR = 239 // { int fremovexattr(int fd, user_addr_t attrname, int options); }
    SYS_LISTXATTR    = 240 // { user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); }
    SYS_FLISTXATTR   = 241 // { user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); }
    SYS_FSCTL        = 242 // { int fsctl(const char *path, u_long cmd, caddr_t data, u_long options); }
    SYS_INITGROUPS   = 243 // { int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid); }
    SYS_POSIX_SPAWN  = 244 // { int posix_spawn(pid_t *pid, const char *path, const struct _posix_spawn_args_desc *adesc, char **argv, char **envp); }
    // SYS_NOSYS = 245;  // { int nosys(void); }
    // SYS_NOSYS = 246;  // { int nosys(void); }
    SYS_NFSCLNT = 247 // { int nfsclnt(int flag, caddr_t argp); }
    // SYS_NOSYS = 247;  // { int nosys(void); }
    SYS_FHOPEN = 248 // { int fhopen(const struct fhandle *u_fhp, int flags); }
    // SYS_NOSYS = 248;  // { int nosys(void); }
    // SYS_NOSYS = 249;  // { int nosys(void); }
    SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); }
    SYS_SEMSYS   = 251 // { int semsys(u_int which, int a2, int a3, int a4, int a5); }
    // SYS_NOSYS = 251;  // { int nosys(void); }
    SYS_MSGSYS = 252 // { int msgsys(u_int which, int a2, int a3, int a4, int a5); }
    // SYS_NOSYS = 252;  // { int nosys(void); }
    SYS_SHMSYS = 253 // { int shmsys(u_int which, int a2, int a3, int a4); }
    // SYS_NOSYS = 253;  // { int nosys(void); }
    SYS_SEMCTL = 254 // { int semctl(int semid, int semnum, int cmd, semun_t arg); }
    SYS_SEMGET = 255 // { int semget(key_t key, int	nsems, int semflg); }
    SYS_SEMOP  = 256 // { int semop(int semid, struct sembuf *sops, int nsops); }
    // SYS_NOSYS = 257;  // { int nosys(void); }
    // SYS_NOSYS = 254;  // { int nosys(void); }
    // SYS_NOSYS = 255;  // { int nosys(void); }
    // SYS_NOSYS = 256;  // { int nosys(void); }
    // SYS_NOSYS = 257;  // { int nosys(void); }
    SYS_MSGCTL = 258 // { int msgctl(int msqid, int cmd, struct	msqid_ds *buf); }
    SYS_MSGGET = 259 // { int msgget(key_t key, int msgflg); }
    SYS_MSGSND = 260 // { int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); }
    SYS_MSGRCV = 261 // { user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
    // SYS_NOSYS = 258;  // { int nosys(void); }
    // SYS_NOSYS = 259;  // { int nosys(void); }
    // SYS_NOSYS = 260;  // { int nosys(void); }
    // SYS_NOSYS = 261;  // { int nosys(void); }
    SYS_SHMAT  = 262 // { user_addr_t shmat(int shmid, void *shmaddr, int shmflg); }
    SYS_SHMCTL = 263 // { int shmctl(int shmid, int cmd, struct shmid_ds *buf); }
    SYS_SHMDT  = 264 // { int shmdt(void *shmaddr); }
    SYS_SHMGET = 265 // { int shmget(key_t key, size_t size, int shmflg); }
    // SYS_NOSYS = 262;  // { int nosys(void); }
    // SYS_NOSYS = 263;  // { int nosys(void); }
    // SYS_NOSYS = 264;  // { int nosys(void); }
    // SYS_NOSYS = 265;  // { int nosys(void); }
    SYS_SHM_OPEN               = 266 // { int shm_open(const char *name, int oflag, int mode); }
    SYS_SHM_UNLINK             = 267 // { int shm_unlink(const char *name); }
    SYS_SEM_OPEN               = 268 // { user_addr_t sem_open(const char *name, int oflag, int mode, int value); }
    SYS_SEM_CLOSE              = 269 // { int sem_close(sem_t *sem); }
    SYS_SEM_UNLINK             = 270 // { int sem_unlink(const char *name); }
    SYS_SEM_WAIT               = 271 // { int sem_wait(sem_t *sem); }
    SYS_SEM_TRYWAIT            = 272 // { int sem_trywait(sem_t *sem); }
    SYS_SEM_POST               = 273 // { int sem_post(sem_t *sem); }
    SYS_SEM_GETVALUE           = 274 // { int sem_getvalue(sem_t *sem, int *sval); }
    SYS_SEM_INIT               = 275 // { int sem_init(sem_t *sem, int phsared, u_int value); }
    SYS_SEM_DESTROY            = 276 // { int sem_destroy(sem_t *sem); }
    SYS_OPEN_EXTENDED          = 277 // { int open_extended(user_addr_t path, int flags, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
    SYS_UMASK_EXTENDED         = 278 // { int umask_extended(int newmask, user_addr_t xsecurity) NO_SYSCALL_STUB; }
    SYS_STAT_EXTENDED          = 279 // { int stat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
    SYS_LSTAT_EXTENDED         = 280 // { int lstat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
    SYS_FSTAT_EXTENDED         = 281 // { int fstat_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
    SYS_CHMOD_EXTENDED         = 282 // { int chmod_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
    SYS_FCHMOD_EXTENDED        = 283 // { int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
    SYS_ACCESS_EXTENDED        = 284 // { int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid) NO_SYSCALL_STUB; }
    SYS_SETTID                 = 285 // { int settid(uid_t uid, gid_t gid) NO_SYSCALL_STUB; }
    SYS_GETTID                 = 286 // { int gettid(uid_t *uidp, gid_t *gidp) NO_SYSCALL_STUB; }
    SYS_SETSGROUPS             = 287 // { int setsgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
    SYS_GETSGROUPS             = 288 // { int getsgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
    SYS_SETWGROUPS             = 289 // { int setwgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
    SYS_GETWGROUPS             = 290 // { int getwgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
    SYS_MKFIFO_EXTENDED        = 291 // { int mkfifo_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
    SYS_MKDIR_EXTENDED         = 292 // { int mkdir_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
    SYS_IDENTITYSVC            = 293 // { int identitysvc(int opcode, user_addr_t message) NO_SYSCALL_STUB; }
    SYS_SHARED_REGION_CHECK_NP = 294 // { int shared_region_check_np(uint64_t *start_address) NO_SYSCALL_STUB; }
    SYS_SHARED_REGION_MAP_NP   = 295 // { int shared_region_map_np(int fd, uint32_t count, const struct shared_file_mapping_np *mappings) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 296;  // { int nosys(void); } { old load_shared_file }
    // SYS_NOSYS = 297;  // { int nosys(void); } { old reset_shared_file }
    // SYS_NOSYS = 298;  // { int nosys(void); } { old new_system_shared_regions }
    // SYS_ENOSYS = 299;  // { int enosys(void); } { old shared_region_map_file_np }
    // SYS_ENOSYS = 300;  // { int enosys(void); } { old shared_region_make_private_np }
    SYS___PTHREAD_MUTEX_DESTROY  = 301 // { int __pthread_mutex_destroy(int mutexid); }
    SYS___PTHREAD_MUTEX_INIT     = 302 // { int __pthread_mutex_init(user_addr_t  mutex, user_addr_t attr); }
    SYS___PTHREAD_MUTEX_LOCK     = 303 // { int __pthread_mutex_lock(int mutexid); }
    SYS___PTHREAD_MUTEX_TRYLOCK  = 304 // { int __pthread_mutex_trylock(int mutexid); }
    SYS___PTHREAD_MUTEX_UNLOCK   = 305 // { int __pthread_mutex_unlock(int mutexid); }
    SYS___PTHREAD_COND_INIT      = 306 // { int __pthread_cond_init(user_addr_t cond, user_addr_t attr); }
    SYS___PTHREAD_COND_DESTROY   = 307 // { int __pthread_cond_destroy(int condid); }
    SYS___PTHREAD_COND_BROADCAST = 308 // { int __pthread_cond_broadcast(int condid); }
    SYS___PTHREAD_COND_SIGNAL    = 309 // { int __pthread_cond_signal(int condid); }
    SYS_GETSID                   = 310 // { int getsid(pid_t pid); }
    SYS_SETTID_WITH_PID          = 311 // { int settid_with_pid(pid_t pid, int assume) NO_SYSCALL_STUB; }
    SYS___PTHREAD_COND_TIMEDWAIT = 312 // { int __pthread_cond_timedwait(int condid, int mutexid, user_addr_t abstime); }
    SYS_AIO_FSYNC                = 313 // { int aio_fsync(int op, user_addr_t aiocbp); }
    SYS_AIO_RETURN               = 314 // { user_ssize_t aio_return(user_addr_t aiocbp); }
    SYS_AIO_SUSPEND              = 315 // { int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); }
    SYS_AIO_CANCEL               = 316 // { int aio_cancel(int fd, user_addr_t aiocbp); }
    SYS_AIO_ERROR                = 317 // { int aio_error(user_addr_t aiocbp); }
    SYS_AIO_READ                 = 318 // { int aio_read(user_addr_t aiocbp); }
    SYS_AIO_WRITE                = 319 // { int aio_write(user_addr_t aiocbp); }
    SYS_LIO_LISTIO               = 320 // { int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); }
    SYS___PTHREAD_COND_WAIT      = 321 // { int __pthread_cond_wait(int condid, int mutexid); }
    SYS_IOPOLICYSYS              = 322 // { int iopolicysys(int cmd, void *arg) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 323;  // { int nosys(void); }
    SYS_MLOCKALL   = 324 // { int mlockall(int how); }
    SYS_MUNLOCKALL = 325 // { int munlockall(int how); }
    // SYS_NOSYS = 326;  // { int nosys(void); }
    SYS_ISSETUGID              = 327 // { int issetugid(void); }
    SYS___PTHREAD_KILL         = 328 // { int __pthread_kill(int thread_port, int sig); }
    SYS___PTHREAD_SIGMASK      = 329 // { int __pthread_sigmask(int how, user_addr_t set, user_addr_t oset); }
    SYS___SIGWAIT              = 330 // { int __sigwait(user_addr_t set, user_addr_t sig); }
    SYS___DISABLE_THREADSIGNAL = 331 // { int __disable_threadsignal(int value); }
    SYS___PTHREAD_MARKCANCEL   = 332 // { int __pthread_markcancel(int thread_port); }
    SYS___PTHREAD_CANCELED     = 333 // { int __pthread_canceled(int  action); }
    SYS___SEMWAIT_SIGNAL       = 334 // { int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, time_t tv_sec, int32_t tv_nsec); }
    // SYS_NOSYS = 335;  // { int nosys(void); }   { old utrace }
    SYS_PROC_INFO = 336 // { int proc_info(int32_t callnum,int32_t pid,uint32_t flavor, uint64_t arg,user_addr_t buffer,int32_t buffersize) NO_SYSCALL_STUB; }
    SYS_SENDFILE  = 337 // { int sendfile(int fd, int s, off_t offset, off_t *nbytes, struct sf_hdtr *hdtr, int flags); }
    // SYS_NOSYS = 337;  // { int nosys(void); }
    SYS_STAT64           = 338 // { int stat64(user_addr_t path, user_addr_t ub); }
    SYS_FSTAT64          = 339 // { int fstat64(int fd, user_addr_t ub); }
    SYS_LSTAT64          = 340 // { int lstat64(user_addr_t path, user_addr_t ub); }
    SYS_STAT64_EXTENDED  = 341 // { int stat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
    SYS_LSTAT64_EXTENDED = 342 // { int lstat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
    SYS_FSTAT64_EXTENDED = 343 // { int fstat64_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
    SYS_GETDIRENTRIES64  = 344 // { user_ssize_t getdirentries64(int fd, void *buf, user_size_t bufsize, off_t *position) NO_SYSCALL_STUB; }
    SYS_STATFS64         = 345 // { int statfs64(char *path, struct statfs64 *buf); }
    SYS_FSTATFS64        = 346 // { int fstatfs64(int fd, struct statfs64 *buf); }
    SYS_GETFSSTAT64      = 347 // { int getfsstat64(user_addr_t buf, int bufsize, int flags); }
    SYS___PTHREAD_CHDIR  = 348 // { int __pthread_chdir(user_addr_t path); }
    SYS___PTHREAD_FCHDIR = 349 // { int __pthread_fchdir(int fd); }
    SYS_AUDIT            = 350 // { int audit(void *record, int length); }
    SYS_AUDITON          = 351 // { int auditon(int cmd, void *data, int length); }
    // SYS_NOSYS = 352;  // { int nosys(void); }
    SYS_GETAUID       = 353 // { int getauid(au_id_t *auid); }
    SYS_SETAUID       = 354 // { int setauid(au_id_t *auid); }
    SYS_GETAUDIT      = 355 // { int getaudit(struct auditinfo *auditinfo); }
    SYS_SETAUDIT      = 356 // { int setaudit(struct auditinfo *auditinfo); }
    SYS_GETAUDIT_ADDR = 357 // { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
    SYS_SETAUDIT_ADDR = 358 // { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
    SYS_AUDITCTL      = 359 // { int auditctl(char *path); }
    // SYS_NOSYS = 350;  // { int nosys(void); }
    // SYS_NOSYS = 351;  // { int nosys(void); }
    // SYS_NOSYS = 352;  // { int nosys(void); }
    // SYS_NOSYS = 353;  // { int nosys(void); }
    // SYS_NOSYS = 354;  // { int nosys(void); }
    // SYS_NOSYS = 355;  // { int nosys(void); }
    // SYS_NOSYS = 356;  // { int nosys(void); }
    // SYS_NOSYS = 357;  // { int nosys(void); }
    // SYS_NOSYS = 358;  // { int nosys(void); }
    // SYS_NOSYS = 359;  // { int nosys(void); }
    SYS_BSDTHREAD_CREATE    = 360 // { user_addr_t bsdthread_create(user_addr_t func, user_addr_t func_arg, user_addr_t stack, user_addr_t pthread, uint32_t flags) NO_SYSCALL_STUB; }
    SYS_BSDTHREAD_TERMINATE = 361 // { int bsdthread_terminate(user_addr_t stackaddr, size_t freesize, uint32_t port, uint32_t sem) NO_SYSCALL_STUB; }
    SYS_KQUEUE              = 362 // { int kqueue(void); }
    SYS_KEVENT              = 363 // { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
    SYS_LCHOWN              = 364 // { int lchown(user_addr_t path, uid_t owner, gid_t group); }
    SYS_STACK_SNAPSHOT      = 365 // { int stack_snapshot(pid_t pid, user_addr_t tracebuf, uint32_t tracebuf_size, uint32_t options) NO_SYSCALL_STUB; }
    SYS_BSDTHREAD_REGISTER  = 366 // { int bsdthread_register(user_addr_t threadstart, user_addr_t wqthread, int pthsize) NO_SYSCALL_STUB; }
    SYS_WORKQ_OPEN          = 367 // { int workq_open(void) NO_SYSCALL_STUB; }
    SYS_WORKQ_OPS           = 368 // { int workq_ops(int options, user_addr_t item, int prio) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 369;  // { int nosys(void); }
    // SYS_NOSYS = 370;  // { int nosys(void); }
    // SYS_NOSYS = 371;  // { int nosys(void); }
    // SYS_NOSYS = 372;  // { int nosys(void); }
    // SYS_NOSYS = 373;  // { int nosys(void); }
    // SYS_NOSYS = 374;  // { int nosys(void); }
    // SYS_NOSYS = 375;  // { int nosys(void); }
    // SYS_NOSYS = 376;  // { int nosys(void); }
    // SYS_NOSYS = 377;  // { int nosys(void); }
    // SYS_NOSYS = 378;  // { int nosys(void); }
    // SYS_NOSYS = 379;  // { int nosys(void); }
    SYS___MAC_EXECVE      = 380 // { int __mac_execve(char *fname, char **argp, char **envp, struct mac *mac_p); }
    SYS___MAC_SYSCALL     = 381 // { int __mac_syscall(char *policy, int call, user_addr_t arg); }
    SYS___MAC_GET_FILE    = 382 // { int __mac_get_file(char *path_p, struct mac *mac_p); }
    SYS___MAC_SET_FILE    = 383 // { int __mac_set_file(char *path_p, struct mac *mac_p); }
    SYS___MAC_GET_LINK    = 384 // { int __mac_get_link(char *path_p, struct mac *mac_p); }
    SYS___MAC_SET_LINK    = 385 // { int __mac_set_link(char *path_p, struct mac *mac_p); }
    SYS___MAC_GET_PROC    = 386 // { int __mac_get_proc(struct mac *mac_p); }
    SYS___MAC_SET_PROC    = 387 // { int __mac_set_proc(struct mac *mac_p); }
    SYS___MAC_GET_FD      = 388 // { int __mac_get_fd(int fd, struct mac *mac_p); }
    SYS___MAC_SET_FD      = 389 // { int __mac_set_fd(int fd, struct mac *mac_p); }
    SYS___MAC_GET_PID     = 390 // { int __mac_get_pid(pid_t pid, struct mac *mac_p); }
    SYS___MAC_GET_LCID    = 391 // { int __mac_get_lcid(pid_t lcid, struct mac *mac_p); }
    SYS___MAC_GET_LCTX    = 392 // { int __mac_get_lctx(struct mac *mac_p); }
    SYS___MAC_SET_LCTX    = 393 // { int __mac_set_lctx(struct mac *mac_p); }
    SYS_SETLCID           = 394 // { int setlcid(pid_t pid, pid_t lcid) NO_SYSCALL_STUB; }
    SYS_GETLCID           = 395 // { int getlcid(pid_t pid) NO_SYSCALL_STUB; }
    SYS_READ_NOCANCEL     = 396 // { user_ssize_t read_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
    SYS_WRITE_NOCANCEL    = 397 // { user_ssize_t write_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
    SYS_OPEN_NOCANCEL     = 398 // { int open_nocancel(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
    SYS_CLOSE_NOCANCEL    = 399 // { int close_nocancel(int fd) NO_SYSCALL_STUB; }
    SYS_WAIT4_NOCANCEL    = 400 // { int wait4_nocancel(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; }
    SYS_RECVMSG_NOCANCEL  = 401 // { int recvmsg_nocancel(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; }
    SYS_SENDMSG_NOCANCEL  = 402 // { int sendmsg_nocancel(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; }
    SYS_RECVFROM_NOCANCEL = 403 // { int recvfrom_nocancel(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; }
    SYS_ACCEPT_NOCANCEL   = 404 // { int accept_nocancel(int s, caddr_t name, socklen_t	*anamelen) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 401;  // { int nosys(void); }
    // SYS_NOSYS = 402;  // { int nosys(void); }
    // SYS_NOSYS = 403;  // { int nosys(void); }
    // SYS_NOSYS = 404;  // { int nosys(void); }
    SYS_MSYNC_NOCANCEL   = 405 // { int msync_nocancel(caddr_t addr, size_t len, int flags) NO_SYSCALL_STUB; }
    SYS_FCNTL_NOCANCEL   = 406 // { int fcntl_nocancel(int fd, int cmd, long arg) NO_SYSCALL_STUB; }
    SYS_SELECT_NOCANCEL  = 407 // { int select_nocancel(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv) NO_SYSCALL_STUB; }
    SYS_FSYNC_NOCANCEL   = 408 // { int fsync_nocancel(int fd) NO_SYSCALL_STUB; }
    SYS_CONNECT_NOCANCEL = 409 // { int connect_nocancel(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 409;  // { int nosys(void); }
    SYS_SIGSUSPEND_NOCANCEL = 410 // { int sigsuspend_nocancel(sigset_t mask) NO_SYSCALL_STUB; }
    SYS_READV_NOCANCEL      = 411 // { user_ssize_t readv_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
    SYS_WRITEV_NOCANCEL     = 412 // { user_ssize_t writev_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
    SYS_SENDTO_NOCANCEL     = 413 // { int sendto_nocancel(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 413;  // { int nosys(void); }
    SYS_PREAD_NOCANCEL  = 414 // { user_ssize_t pread_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
    SYS_PWRITE_NOCANCEL = 415 // { user_ssize_t pwrite_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
    SYS_WAITID_NOCANCEL = 416 // { int waitid_nocancel(idtype_t idtype, id_t id, siginfo_t *infop, int options) NO_SYSCALL_STUB; }
    SYS_POLL_NOCANCEL   = 417 // { int poll_nocancel(struct pollfd *fds, u_int nfds, int timeout) NO_SYSCALL_STUB; }
    SYS_MSGSND_NOCANCEL = 418 // { int msgsnd_nocancel(int msqid, void *msgp, size_t msgsz, int msgflg) NO_SYSCALL_STUB; }
    SYS_MSGRCV_NOCANCEL = 419 // { user_ssize_t msgrcv_nocancel(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg) NO_SYSCALL_STUB; }
    // SYS_NOSYS = 418;  // { int nosys(void); }
    // SYS_NOSYS = 419;  // { int nosys(void); }
    SYS_SEM_WAIT_NOCANCEL         = 420 // { int sem_wait_nocancel(sem_t *sem) NO_SYSCALL_STUB; }
    SYS_AIO_SUSPEND_NOCANCEL      = 421 // { int aio_suspend_nocancel(user_addr_t aiocblist, int nent, user_addr_t timeoutp) NO_SYSCALL_STUB; }
    SYS___SIGWAIT_NOCANCEL        = 422 // { int __sigwait_nocancel(user_addr_t set, user_addr_t sig) NO_SYSCALL_STUB; }
    SYS___SEMWAIT_SIGNAL_NOCANCEL = 423 // { int __semwait_signal_nocancel(int cond_sem, int mutex_sem, int timeout, int relative, time_t tv_sec, int32_t tv_nsec) NO_SYSCALL_STUB; }
    SYS___MAC_MOUNT               = 424 // { int __mac_mount(char *type, char *path, int flags, caddr_t data, struct mac *mac_p); }
    SYS___MAC_GET_MOUNT           = 425 // { int __mac_get_mount(char *path, struct mac *mac_p); }
    SYS___MAC_GETFSSTAT           = 426 // { int __mac_getfsstat(user_addr_t buf, int bufsize, user_addr_t mac, int macsize, int flags); }
)

Constants

const (
    AF_APPLETALK                = 0x10
    AF_CCITT                    = 0xa
    AF_CHAOS                    = 0x5
    AF_CNT                      = 0x15
    AF_COIP                     = 0x14
    AF_DATAKIT                  = 0x9
    AF_DECnet                   = 0xc
    AF_DLI                      = 0xd
    AF_E164                     = 0x1c
    AF_ECMA                     = 0x8
    AF_HYLINK                   = 0xf
    AF_IEEE80211                = 0x25
    AF_IMPLINK                  = 0x3
    AF_INET                     = 0x2
    AF_INET6                    = 0x1e
    AF_IPX                      = 0x17
    AF_ISDN                     = 0x1c
    AF_ISO                      = 0x7
    AF_LAT                      = 0xe
    AF_LINK                     = 0x12
    AF_LOCAL                    = 0x1
    AF_MAX                      = 0x26
    AF_NATM                     = 0x1f
    AF_NDRV                     = 0x1b
    AF_NETBIOS                  = 0x21
    AF_NS                       = 0x6
    AF_OSI                      = 0x7
    AF_PPP                      = 0x22
    AF_PUP                      = 0x4
    AF_RESERVED_36              = 0x24
    AF_ROUTE                    = 0x11
    AF_SIP                      = 0x18
    AF_SNA                      = 0xb
    AF_SYSTEM                   = 0x20
    AF_UNIX                     = 0x1
    AF_UNSPEC                   = 0
    E2BIG                       = 0x7
    EACCES                      = 0xd
    EADDRINUSE                  = 0x30
    EADDRNOTAVAIL               = 0x31
    EAFNOSUPPORT                = 0x2f
    EAGAIN                      = 0x23
    EALREADY                    = 0x25
    EAUTH                       = 0x50
    EBADARCH                    = 0x56
    EBADEXEC                    = 0x55
    EBADF                       = 0x9
    EBADMACHO                   = 0x58
    EBADMSG                     = 0x5e
    EBADRPC                     = 0x48
    EBUSY                       = 0x10
    ECANCELED                   = 0x59
    ECHILD                      = 0xa
    ECONNABORTED                = 0x35
    ECONNREFUSED                = 0x3d
    ECONNRESET                  = 0x36
    EDEADLK                     = 0xb
    EDESTADDRREQ                = 0x27
    EDEVERR                     = 0x53
    EDOM                        = 0x21
    EDQUOT                      = 0x45
    EEXIST                      = 0x11
    EFAULT                      = 0xe
    EFBIG                       = 0x1b
    EFTYPE                      = 0x4f
    EHOSTDOWN                   = 0x40
    EHOSTUNREACH                = 0x41
    EIDRM                       = 0x5a
    EILSEQ                      = 0x5c
    EINPROGRESS                 = 0x24
    EINTR                       = 0x4
    EINVAL                      = 0x16
    EIO                         = 0x5
    EISCONN                     = 0x38
    EISDIR                      = 0x15
    ELAST                       = 0x67
    ELOOP                       = 0x3e
    EMFILE                      = 0x18
    EMLINK                      = 0x1f
    EMSGSIZE                    = 0x28
    EMULTIHOP                   = 0x5f
    ENAMETOOLONG                = 0x3f
    ENEEDAUTH                   = 0x51
    ENETDOWN                    = 0x32
    ENETRESET                   = 0x34
    ENETUNREACH                 = 0x33
    ENFILE                      = 0x17
    ENOATTR                     = 0x5d
    ENOBUFS                     = 0x37
    ENODATA                     = 0x60
    ENODEV                      = 0x13
    ENOENT                      = 0x2
    ENOEXEC                     = 0x8
    ENOLCK                      = 0x4d
    ENOLINK                     = 0x61
    ENOMEM                      = 0xc
    ENOMSG                      = 0x5b
    ENOPOLICY                   = 0x67
    ENOPROTOOPT                 = 0x2a
    ENOSPC                      = 0x1c
    ENOSR                       = 0x62
    ENOSTR                      = 0x63
    ENOSYS                      = 0x4e
    ENOTBLK                     = 0xf
    ENOTCONN                    = 0x39
    ENOTDIR                     = 0x14
    ENOTEMPTY                   = 0x42
    ENOTSOCK                    = 0x26
    ENOTSUP                     = 0x2d
    ENOTTY                      = 0x19
    ENXIO                       = 0x6
    EOPNOTSUPP                  = 0x66
    EOVERFLOW                   = 0x54
    EPERM                       = 0x1
    EPFNOSUPPORT                = 0x2e
    EPIPE                       = 0x20
    EPROCLIM                    = 0x43
    EPROCUNAVAIL                = 0x4c
    EPROGMISMATCH               = 0x4b
    EPROGUNAVAIL                = 0x4a
    EPROTO                      = 0x64
    EPROTONOSUPPORT             = 0x2b
    EPROTOTYPE                  = 0x29
    EPWROFF                     = 0x52
    ERANGE                      = 0x22
    EREMOTE                     = 0x47
    EROFS                       = 0x1e
    ERPCMISMATCH                = 0x49
    ESHLIBVERS                  = 0x57
    ESHUTDOWN                   = 0x3a
    ESOCKTNOSUPPORT             = 0x2c
    ESPIPE                      = 0x1d
    ESRCH                       = 0x3
    ESTALE                      = 0x46
    ETIME                       = 0x65
    ETIMEDOUT                   = 0x3c
    ETOOMANYREFS                = 0x3b
    ETXTBSY                     = 0x1a
    EUSERS                      = 0x44
    EVFILT_AIO                  = -0x3
    EVFILT_FS                   = -0x9
    EVFILT_MACHPORT             = -0x8
    EVFILT_PROC                 = -0x5
    EVFILT_READ                 = -0x1
    EVFILT_SESSION              = -0xb
    EVFILT_SIGNAL               = -0x6
    EVFILT_SYSCOUNT             = 0xb
    EVFILT_THREADMARKER         = 0xb
    EVFILT_TIMER                = -0x7
    EVFILT_USER                 = -0xa
    EVFILT_VNODE                = -0x4
    EVFILT_WRITE                = -0x2
    EV_ADD                      = 0x1
    EV_CLEAR                    = 0x20
    EV_DELETE                   = 0x2
    EV_DISABLE                  = 0x8
    EV_DISPATCH                 = 0x80
    EV_ENABLE                   = 0x4
    EV_EOF                      = 0x8000
    EV_ERROR                    = 0x4000
    EV_FLAG0                    = 0x1000
    EV_FLAG1                    = 0x2000
    EV_ONESHOT                  = 0x10
    EV_OOBAND                   = 0x2000
    EV_POLL                     = 0x1000
    EV_RECEIPT                  = 0x40
    EV_SYSFLAGS                 = 0xf000
    EV_TRIGGER                  = 0x100
    EWOULDBLOCK                 = 0x23
    EXDEV                       = 0x12
    FD_CLOEXEC                  = 0x1
    FD_SETSIZE                  = 0x400
    F_ADDFILESIGS               = 0x3d
    F_ADDSIGS                   = 0x3b
    F_ALLOCATEALL               = 0x4
    F_ALLOCATECONTIG            = 0x2
    F_CHKCLEAN                  = 0x29
    F_DUPFD                     = 0
    F_FREEZE_FS                 = 0x35
    F_FULLFSYNC                 = 0x33
    F_GETFD                     = 0x1
    F_GETFL                     = 0x3
    F_GETLK                     = 0x7
    F_GETOWN                    = 0x5
    F_GETPATH                   = 0x32
    F_GLOBAL_NOCACHE            = 0x37
    F_LOG2PHYS                  = 0x31
    F_MARKDEPENDENCY            = 0x3c
    F_NOCACHE                   = 0x30
    F_PATHPKG_CHECK             = 0x34
    F_PEOFPOSMODE               = 0x3
    F_PREALLOCATE               = 0x2a
    F_RDADVISE                  = 0x2c
    F_RDAHEAD                   = 0x2d
    F_RDLCK                     = 0x1
    F_READBOOTSTRAP             = 0x2e
    F_SETFD                     = 0x2
    F_SETFL                     = 0x4
    F_SETLK                     = 0x8
    F_SETLKW                    = 0x9
    F_SETOWN                    = 0x6
    F_SETSIZE                   = 0x2b
    F_THAW_FS                   = 0x36
    F_UNLCK                     = 0x2
    F_VOLPOSMODE                = 0x4
    F_WRITEBOOTSTRAP            = 0x2f
    F_WRLCK                     = 0x3
    IPPROTO_3PC                 = 0x22
    IPPROTO_ADFS                = 0x44
    IPPROTO_AH                  = 0x33
    IPPROTO_AHIP                = 0x3d
    IPPROTO_APES                = 0x63
    IPPROTO_ARGUS               = 0xd
    IPPROTO_AX25                = 0x5d
    IPPROTO_BHA                 = 0x31
    IPPROTO_BLT                 = 0x1e
    IPPROTO_BRSATMON            = 0x4c
    IPPROTO_CFTP                = 0x3e
    IPPROTO_CHAOS               = 0x10
    IPPROTO_CMTP                = 0x26
    IPPROTO_CPHB                = 0x49
    IPPROTO_CPNX                = 0x48
    IPPROTO_DDP                 = 0x25
    IPPROTO_DGP                 = 0x56
    IPPROTO_DIVERT              = 0xfe
    IPPROTO_DONE                = 0x101
    IPPROTO_DSTOPTS             = 0x3c
    IPPROTO_EGP                 = 0x8
    IPPROTO_EMCON               = 0xe
    IPPROTO_ENCAP               = 0x62
    IPPROTO_EON                 = 0x50
    IPPROTO_ESP                 = 0x32
    IPPROTO_ETHERIP             = 0x61
    IPPROTO_FRAGMENT            = 0x2c
    IPPROTO_GGP                 = 0x3
    IPPROTO_GMTP                = 0x64
    IPPROTO_GRE                 = 0x2f
    IPPROTO_HELLO               = 0x3f
    IPPROTO_HMP                 = 0x14
    IPPROTO_HOPOPTS             = 0
    IPPROTO_ICMP                = 0x1
    IPPROTO_ICMPV6              = 0x3a
    IPPROTO_IDP                 = 0x16
    IPPROTO_IDPR                = 0x23
    IPPROTO_IDRP                = 0x2d
    IPPROTO_IGMP                = 0x2
    IPPROTO_IGP                 = 0x55
    IPPROTO_IGRP                = 0x58
    IPPROTO_IL                  = 0x28
    IPPROTO_INLSP               = 0x34
    IPPROTO_INP                 = 0x20
    IPPROTO_IP                  = 0
    IPPROTO_IPCOMP              = 0x6c
    IPPROTO_IPCV                = 0x47
    IPPROTO_IPEIP               = 0x5e
    IPPROTO_IPIP                = 0x4
    IPPROTO_IPPC                = 0x43
    IPPROTO_IPV4                = 0x4
    IPPROTO_IPV6                = 0x29
    IPPROTO_IRTP                = 0x1c
    IPPROTO_KRYPTOLAN           = 0x41
    IPPROTO_LARP                = 0x5b
    IPPROTO_LEAF1               = 0x19
    IPPROTO_LEAF2               = 0x1a
    IPPROTO_MAX                 = 0x100
    IPPROTO_MAXID               = 0x34
    IPPROTO_MEAS                = 0x13
    IPPROTO_MHRP                = 0x30
    IPPROTO_MICP                = 0x5f
    IPPROTO_MTP                 = 0x5c
    IPPROTO_MUX                 = 0x12
    IPPROTO_ND                  = 0x4d
    IPPROTO_NHRP                = 0x36
    IPPROTO_NONE                = 0x3b
    IPPROTO_NSP                 = 0x1f
    IPPROTO_NVPII               = 0xb
    IPPROTO_OSPFIGP             = 0x59
    IPPROTO_PGM                 = 0x71
    IPPROTO_PIGP                = 0x9
    IPPROTO_PIM                 = 0x67
    IPPROTO_PRM                 = 0x15
    IPPROTO_PUP                 = 0xc
    IPPROTO_PVP                 = 0x4b
    IPPROTO_RAW                 = 0xff
    IPPROTO_RCCMON              = 0xa
    IPPROTO_RDP                 = 0x1b
    IPPROTO_ROUTING             = 0x2b
    IPPROTO_RSVP                = 0x2e
    IPPROTO_RVD                 = 0x42
    IPPROTO_SATEXPAK            = 0x40
    IPPROTO_SATMON              = 0x45
    IPPROTO_SCCSP               = 0x60
    IPPROTO_SDRP                = 0x2a
    IPPROTO_SEP                 = 0x21
    IPPROTO_SRPC                = 0x5a
    IPPROTO_ST                  = 0x7
    IPPROTO_SVMTP               = 0x52
    IPPROTO_SWIPE               = 0x35
    IPPROTO_TCF                 = 0x57
    IPPROTO_TCP                 = 0x6
    IPPROTO_TP                  = 0x1d
    IPPROTO_TPXX                = 0x27
    IPPROTO_TRUNK1              = 0x17
    IPPROTO_TRUNK2              = 0x18
    IPPROTO_TTP                 = 0x54
    IPPROTO_UDP                 = 0x11
    IPPROTO_VINES               = 0x53
    IPPROTO_VISA                = 0x46
    IPPROTO_VMTP                = 0x51
    IPPROTO_WBEXPAK             = 0x4f
    IPPROTO_WBMON               = 0x4e
    IPPROTO_WSN                 = 0x4a
    IPPROTO_XNET                = 0xf
    IPPROTO_XTP                 = 0x24
    IPV6_BINDV6ONLY             = 0x1b
    IPV6_CHECKSUM               = 0x1a
    IPV6_DEFAULT_MULTICAST_HOPS = 0x1
    IPV6_DEFAULT_MULTICAST_LOOP = 0x1
    IPV6_DEFHLIM                = 0x40
    IPV6_DSTOPTS                = 0x17
    IPV6_FAITH                  = 0x1d
    IPV6_FLOWINFO_MASK          = 0xffffff0f
    IPV6_FLOWLABEL_MASK         = 0xffff0f00
    IPV6_FRAGTTL                = 0x78
    IPV6_FW_ADD                 = 0x1e
    IPV6_FW_DEL                 = 0x1f
    IPV6_FW_FLUSH               = 0x20
    IPV6_FW_GET                 = 0x22
    IPV6_FW_ZERO                = 0x21
    IPV6_HLIMDEC                = 0x1
    IPV6_HOPLIMIT               = 0x14
    IPV6_HOPOPTS                = 0x16
    IPV6_IPSEC_POLICY           = 0x1c
    IPV6_JOIN_GROUP             = 0xc
    IPV6_LEAVE_GROUP            = 0xd
    IPV6_MAXHLIM                = 0xff
    IPV6_MAXPACKET              = 0xffff
    IPV6_MMTU                   = 0x500
    IPV6_MULTICAST_HOPS         = 0xa
    IPV6_MULTICAST_IF           = 0x9
    IPV6_MULTICAST_LOOP         = 0xb
    IPV6_NEXTHOP                = 0x15
    IPV6_PKTINFO                = 0x13
    IPV6_PKTOPTIONS             = 0x19
    IPV6_PORTRANGE              = 0xe
    IPV6_PORTRANGE_DEFAULT      = 0
    IPV6_PORTRANGE_HIGH         = 0x1
    IPV6_PORTRANGE_LOW          = 0x2
    IPV6_RECVTCLASS             = 0x23
    IPV6_RTHDR                  = 0x18
    IPV6_RTHDR_LOOSE            = 0
    IPV6_RTHDR_STRICT           = 0x1
    IPV6_RTHDR_TYPE_0           = 0
    IPV6_SOCKOPT_RESERVED1      = 0x3
    IPV6_TCLASS                 = 0x24
    IPV6_UNICAST_HOPS           = 0x4
    IPV6_V6ONLY                 = 0x1b
    IPV6_VERSION                = 0x60
    IPV6_VERSION_MASK           = 0xf0
    IP_ADD_MEMBERSHIP           = 0xc
    IP_BOUND_IF                 = 0x19
    IP_DEFAULT_MULTICAST_LOOP   = 0x1
    IP_DEFAULT_MULTICAST_TTL    = 0x1
    IP_DF                       = 0x4000
    IP_DROP_MEMBERSHIP          = 0xd
    IP_DUMMYNET_CONFIGURE       = 0x3c
    IP_DUMMYNET_DEL             = 0x3d
    IP_DUMMYNET_FLUSH           = 0x3e
    IP_DUMMYNET_GET             = 0x40
    IP_FAITH                    = 0x16
    IP_FW_ADD                   = 0x28
    IP_FW_DEL                   = 0x29
    IP_FW_FLUSH                 = 0x2a
    IP_FW_GET                   = 0x2c
    IP_FW_RESETLOG              = 0x2d
    IP_FW_ZERO                  = 0x2b
    IP_HDRINCL                  = 0x2
    IP_IPSEC_POLICY             = 0x15
    IP_MAXPACKET                = 0xffff
    IP_MAX_MEMBERSHIPS          = 0x14
    IP_MF                       = 0x2000
    IP_MSS                      = 0x240
    IP_MULTICAST_IF             = 0x9
    IP_MULTICAST_LOOP           = 0xb
    IP_MULTICAST_TTL            = 0xa
    IP_MULTICAST_VIF            = 0xe
    IP_NAT__XXX                 = 0x37
    IP_OFFMASK                  = 0x1fff
    IP_OLD_FW_ADD               = 0x32
    IP_OLD_FW_DEL               = 0x33
    IP_OLD_FW_FLUSH             = 0x34
    IP_OLD_FW_GET               = 0x36
    IP_OLD_FW_RESETLOG          = 0x38
    IP_OLD_FW_ZERO              = 0x35
    IP_OPTIONS                  = 0x1
    IP_PORTRANGE                = 0x13
    IP_PORTRANGE_DEFAULT        = 0
    IP_PORTRANGE_HIGH           = 0x1
    IP_PORTRANGE_LOW            = 0x2
    IP_RECVDSTADDR              = 0x7
    IP_RECVIF                   = 0x14
    IP_RECVOPTS                 = 0x5
    IP_RECVRETOPTS              = 0x6
    IP_RECVTTL                  = 0x18
    IP_RETOPTS                  = 0x8
    IP_RF                       = 0x8000
    IP_RSVP_OFF                 = 0x10
    IP_RSVP_ON                  = 0xf
    IP_RSVP_VIF_OFF             = 0x12
    IP_RSVP_VIF_ON              = 0x11
    IP_STRIPHDR                 = 0x17
    IP_TOS                      = 0x3
    IP_TRAFFIC_MGT_BACKGROUND   = 0x41
    IP_TTL                      = 0x4
    O_ACCMODE                   = 0x3
    O_ALERT                     = 0x20000000
    O_APPEND                    = 0x8
    O_ASYNC                     = 0x40
    O_CREAT                     = 0x200
    O_DIRECTORY                 = 0x100000
    O_DSYNC                     = 0x400000
    O_EVTONLY                   = 0x8000
    O_EXCL                      = 0x800
    O_EXLOCK                    = 0x20
    O_FSYNC                     = 0x80
    O_NDELAY                    = 0x4
    O_NOCTTY                    = 0x20000
    O_NOFOLLOW                  = 0x100
    O_NONBLOCK                  = 0x4
    O_POPUP                     = 0x80000000
    O_RDONLY                    = 0
    O_RDWR                      = 0x2
    O_SHLOCK                    = 0x10
    O_SYMLINK                   = 0x200000
    O_SYNC                      = 0x80
    O_TRUNC                     = 0x400
    O_WRONLY                    = 0x1
    SHUT_RD                     = 0
    SHUT_RDWR                   = 0x2
    SHUT_WR                     = 0x1
    SIGABRT                     = 0x6
    SIGALRM                     = 0xe
    SIGBUS                      = 0xa
    SIGCHLD                     = 0x14
    SIGCONT                     = 0x13
    SIGEMT                      = 0x7
    SIGFPE                      = 0x8
    SIGHUP                      = 0x1
    SIGILL                      = 0x4
    SIGINFO                     = 0x1d
    SIGINT                      = 0x2
    SIGIO                       = 0x17
    SIGIOT                      = 0x6
    SIGKILL                     = 0x9
    SIGPIPE                     = 0xd
    SIGPROF                     = 0x1b
    SIGQUIT                     = 0x3
    SIGSEGV                     = 0xb
    SIGSTOP                     = 0x11
    SIGSYS                      = 0xc
    SIGTERM                     = 0xf
    SIGTRAP                     = 0x5
    SIGTSTP                     = 0x12
    SIGTTIN                     = 0x15
    SIGTTOU                     = 0x16
    SIGURG                      = 0x10
    SIGUSR1                     = 0x1e
    SIGUSR2                     = 0x1f
    SIGVTALRM                   = 0x1a
    SIGWINCH                    = 0x1c
    SIGXCPU                     = 0x18
    SIGXFSZ                     = 0x19
    SOCK_DGRAM                  = 0x2
    SOCK_MAXADDRLEN             = 0xff
    SOCK_RAW                    = 0x3
    SOCK_RDM                    = 0x4
    SOCK_SEQPACKET              = 0x5
    SOCK_STREAM                 = 0x1
    SOL_SOCKET                  = 0xffff
    SOMAXCONN                   = 0x80
    SO_ACCEPTCONN               = 0x2
    SO_BROADCAST                = 0x20
    SO_DEBUG                    = 0x1
    SO_DONTROUTE                = 0x10
    SO_DONTTRUNC                = 0x2000
    SO_ERROR                    = 0x1007
    SO_KEEPALIVE                = 0x8
    SO_LABEL                    = 0x1010
    SO_LINGER                   = 0x80
    SO_LINGER_SEC               = 0x1080
    SO_NKE                      = 0x1021
    SO_NOADDRERR                = 0x1023
    SO_NOSIGPIPE                = 0x1022
    SO_NOTIFYCONFLICT           = 0x1026
    SO_NP_EXTENSIONS            = 0x1083
    SO_NREAD                    = 0x1020
    SO_NWRITE                   = 0x1024
    SO_OOBINLINE                = 0x100
    SO_PEERLABEL                = 0x1011
    SO_RANDOMPORT               = 0x1082
    SO_RCVBUF                   = 0x1002
    SO_RCVLOWAT                 = 0x1004
    SO_RCVTIMEO                 = 0x1006
    SO_RESTRICTIONS             = 0x1081
    SO_RESTRICT_DENYIN          = 0x1
    SO_RESTRICT_DENYOUT         = 0x2
    SO_RESTRICT_DENYSET         = 0x80000000
    SO_REUSEADDR                = 0x4
    SO_REUSEPORT                = 0x200
    SO_REUSESHAREUID            = 0x1025
    SO_SNDBUF                   = 0x1001
    SO_SNDLOWAT                 = 0x1003
    SO_SNDTIMEO                 = 0x1005
    SO_TIMESTAMP                = 0x400
    SO_TYPE                     = 0x1008
    SO_UPCALLCLOSEWAIT          = 0x1027
    SO_USELOOPBACK              = 0x40
    SO_WANTMORE                 = 0x4000
    SO_WANTOOBFLAG              = 0x8000
    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_IFWHT                     = 0xe000
    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_ISTXT                     = 0x200
    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
    TCP_CONNECTIONTIMEOUT       = 0x20
    TCP_KEEPALIVE               = 0x10
    TCP_MAXBURST                = 0x4
    TCP_MAXHLEN                 = 0x3c
    TCP_MAXOLEN                 = 0x28
    TCP_MAXSEG                  = 0x2
    TCP_MAXWIN                  = 0xffff
    TCP_MAX_SACK                = 0x3
    TCP_MAX_WINSHIFT            = 0xe
    TCP_MINMSS                  = 0xd8
    TCP_MINMSSOVERLOAD          = 0x3e8
    TCP_MSS                     = 0x200
    TCP_NODELAY                 = 0x1
    TCP_NOOPT                   = 0x8
    TCP_NOPUSH                  = 0x4
    WCONTINUED                  = 0x10
    WCOREFLAG                   = 0x80
    WEXITED                     = 0x4
    WNOHANG                     = 0x1
    WNOWAIT                     = 0x20
    WORDSIZE                    = 0x40
    WSTOPPED                    = 0x7f
    WUNTRACED                   = 0x2
)

アプリケーション用にWindowsで予約しているエラー >= 1<<29。

const APPLICATION_ERROR = 1 << 29
const ARCH = "386"
const ARCH = "arm"
const ARCH = "amd64"
const EWOULDBLOCK = EAGAIN
* Pseudo-system calls

constは、コンパイル時に定数となるため、クライアントは、この関数がバイナリにリンクされていても、どのGetwdが動作し、どれが無効であるかを環境と合わせることが出来ます。os/getwd.goを参照ください。

const ImplementsGetwd = false
const ImplementsGetwd = true
const ImplementsGetwd = true
const ImplementsGetwd = true
const OS = "nacl"
const OS = "linux"
const OS = "darwin"
const OS = "freebsd"
const OS = "windows"
const (
    SIGTRAP = 5
)
const (
    SIGTRAP = 5
)

変数

var (
    Stdin  = 0
    Stdout = 1
    Stderr = 2
)
var (
    Stdin  = getStdHandle(STD_INPUT_HANDLE)
    Stdout = getStdHandle(STD_OUTPUT_HANDLE)
    Stderr = getStdHandle(STD_ERROR_HANDLE)
)
var ForkLock sync.RWMutex
var ForkLock sync.RWMutex

テスト用:クライアントは、IPv6のソケットの作成で強制的にEAFNOSUPPORTが返されるようにするため、このフラグをセットすることができます。

var SocketDisableIPv6 bool

テスト用:クライアントは、IPv6のソケットの作成で強制的にEAFNOSUPPORTが返されるようにするため、このフラグをセットすることができます。

var SocketDisableIPv6 bool

テスト用:クライアントは、IPv6のソケットの作成で強制的にEAFNOSUPPORTが返されるようにするため、このフラグをセットすることができます。

var SocketDisableIPv6 bool

Accept関数

func Accept(fd int) (nfd int, sa Sockaddr, errno int)

AcceptEx関数

func AcceptEx(ls uint32, as uint32, buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, recvd *uint32, overlapped *Overlapped) (ok bool, errno int)

AcceptIOCP関数

func AcceptIOCP(iocpfd, fd int, o *Overlapped) (attrs *byte, errno int)

Access関数

func Access(path string, flags int) (errno int)

Acct関数

func Acct(path string) (errno int)

Adjtime関数

func Adjtime(delta *Timeval, olddelta *Timeval) (errno int)

Adjtimex関数

func Adjtimex(buf *Timex) (state int, errno int)

AudioInit関数

func AudioInit(fmt int, nreq int, data *int) (errno int)

AudioShutdown関数

func AudioShutdown() (errno int)

AudioStream関数

func AudioStream(data *uint16, size *uintptr) (errno int)

Bind関数

func Bind(fd int, sa Sockaddr) (errno int)

BindToDevice関数

func BindToDevice(fd int, device string) (errno int)

BindToDeviceは、fdに関連したソケットをデバイスにバインドします。

Chdir関数

func Chdir(path string) (errno int)

Chflags関数

func Chflags(path string, flags int) (errno int)

Chmod関数

func Chmod(path string, mode uint32) (errno int)

Chown関数

func Chown(path string, uid int, gid int) (errno int)

Chroot関数

func Chroot(path string) (errno int)

Clock関数

func Clock() (clock int)

Close関数

func Close(fd int) (errno int)

CloseHandle関数

func CloseHandle(handle int32) (ok bool, errno int)

CloseOnExec関数

func CloseOnExec(fd int)

ComputerName関数

func ComputerName() (name string, errno int)

CondBroadcast関数

func CondBroadcast(cv int) (errno int)

CondCreate関数

func CondCreate() (cv int, errno int)

CondSignal関数

func CondSignal(cv int) (errno int)

CondTimedWaitAbs関数

func CondTimedWaitAbs(cv int, mutex int, abstime *Timespec) (errno int)

CondWait関数

func CondWait(cv int, mutex int) (errno int)

Connect関数

func Connect(fd int, sa Sockaddr) (errno int)

Creat関数

func Creat(path string, mode uint32) (fd int, errno int)

CreateDirectory関数

func CreateDirectory(path *uint16, sa *byte) (ok bool, errno int)

CreateFile関数

func CreateFile(name *uint16, access uint32, mode uint32, sa *byte, createmode uint32, attrs uint32, templatefile int32) (handle int32, errno int)

CreateIoCompletionPort関数

func CreateIoCompletionPort(filehandle int32, cphandle int32, key uint32, threadcnt uint32) (handle int32, errno int)

CreatePipe関数

func CreatePipe(readhandle *uint32, writehandle *uint32, lpsa *byte, size uint32) (ok bool, errno int)

CreateProcess関数

func CreateProcess(appName *int16, commandLine *uint16, procSecurity *int16, threadSecurity *int16, inheritHandles bool, creationFlags uint32, env *uint16, currentDir *uint16, startupInfo *StartupInfo, outProcInfo *ProcessInformation) (ok bool, errno int)

CryptAcquireContext関数

func CryptAcquireContext(provhandle *uint32, container *uint16, provider *uint16, provtype uint32, flags uint32) (ok bool, errno int)

CryptGenRandom関数

func CryptGenRandom(provhandle uint32, buflen uint32, buf *byte) (ok bool, errno int)

CryptReleaseContext関数

func CryptReleaseContext(provhandle uint32, flags uint32) (ok bool, errno int)

DeleteFile関数

func DeleteFile(path *uint16) (ok bool, errno int)

DnsQuery関数

func DnsQuery(name string, qtype uint16, options uint32, extra *byte, qrs **DNSRecord, pr *byte) (status uint32)

DnsRecordListFree関数

func DnsRecordListFree(rl *DNSRecord, freetype uint32)

Dup関数

func Dup(fd int) (nfd int, errno int)

Dup2関数

func Dup2(from int, to int) (errno int)

DuplicateHandle関数

func DuplicateHandle(hSourceProcessHandle int32, hSourceHandle int32, hTargetProcessHandle int32, lpTargetHandle *int32, dwDesiredAccess uint32, bInheritHandle bool, dwOptions uint32) (ok bool, errno int)

EpollCreate関数

func EpollCreate(size int) (fd int, errno int)

EpollCtl関数

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

EpollWait関数

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

Errstr関数

func Errstr(errno int) string

Exchangedata関数

func Exchangedata(path1 string, path2 string, options int) (errno int)

Exec関数

func Exec(argv0 string, argv []string, envv []string) (err int)

通常のexec。

Exit関数

func Exit(code int)

ExitProcess関数

func ExitProcess(exitcode uint32)

Faccessat関数

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

Fallocate関数

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

Fchdir関数

func Fchdir(fd int) (errno int)

Fchflags関数

func Fchflags(path string, flags int) (errno int)

Fchmod関数

func Fchmod(fd int, mode uint32) (errno int)

Fchmodat関数

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

Fchown関数

func Fchown(fd int, uid int, gid int) (errno int)

Fchownat関数

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

Fdatasync関数

func Fdatasync(fd int) (errno int)

FindClose関数

func FindClose(handle int32) (ok bool, errno int)

FindFirstFile関数

func FindFirstFile(name *uint16, data *Win32finddata) (handle int32, errno int)

FindNextFile関数

func FindNextFile(handle int32, data *Win32finddata) (ok bool, errno int)

Flock関数

func Flock(fd int, how int) (errno int)

ForkExec関数

func ForkExec(argv0 string, argv []string, envv []string, dir string, fd []int) (pid int, err int)

forkとexecを実行します。スレッドセーフと成るよう注意してください。

FormatMessage関数

func FormatMessage(flags uint32, msgsrc uint32, msgid uint32, langid uint32, buf []uint16, args *byte) (n uint32, errno int)

Fpathconf関数

func Fpathconf(fd int, name int) (val int, errno int)

FreeEnvironmentStrings関数

func FreeEnvironmentStrings(envs *uint16) (ok bool, errno int)

FreeLibrary関数

func FreeLibrary(handle uint32) (ok bool, errno int)

Fstat関数

func Fstat(fd int, stat *Stat_t) (errno int)

Fstatfs関数

func Fstatfs(fd int, stat *Statfs_t) (errno int)

Fsync関数

func Fsync(fd int) (errno int)

Ftruncate関数

func Ftruncate(fd int, length int64) (errno int)

Futimes関数

func Futimes(fd int, tv []Timeval) (errno int)

sys futimes(fd int, timeval *[2]Timeval) (errno int)

Futimesat関数

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

sys futimesat(dirfd int, path *byte, times *[2]Timeval) (errno int)

GetAcceptExSockaddrs関数

func GetAcceptExSockaddrs(buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, lrsa **RawSockaddrAny, lrsalen *int32, rrsa **RawSockaddrAny, rrsalen *int32)

GetAcceptIOCPSockaddrs関数

func GetAcceptIOCPSockaddrs(attrs *byte) (lsa, rsa Sockaddr)

GetComputerName関数

func GetComputerName(buf *uint16, n *uint32) (ok bool, errno int)

GetCurrentDirectory関数

func GetCurrentDirectory(buflen uint32, buf *uint16) (n uint32, errno int)

GetCurrentProcess関数

func GetCurrentProcess() (pseudoHandle int32, errno int)

GetEnvironmentStrings関数

func GetEnvironmentStrings() (envs *uint16, errno int)

GetEnvironmentVariable関数

func GetEnvironmentVariable(name *uint16, buffer *uint16, size uint32) (n uint32, errno int)

GetExitCodeProcess関数

func GetExitCodeProcess(h uint32, c *uint32) (ok bool, errno int)

GetFileAttributes関数

func GetFileAttributes(name *uint16) (attrs uint32, errno int)

GetFileInformationByHandle関数

func GetFileInformationByHandle(handle int32, data *ByHandleFileInformation) (ok bool, errno int)

GetFileType関数

func GetFileType(filehandle uint32) (n uint32, errno int)

GetLastError関数

func GetLastError() (lasterrno int)

GetProcAddress関数

func GetProcAddress(module uint32, procname string) (proc uint32, errno int)

GetQueuedCompletionStatus関数

func GetQueuedCompletionStatus(cphandle int32, qty *uint32, key *uint32, overlapped **Overlapped, timeout uint32) (ok bool, errno int)

GetStartupInfo関数

func GetStartupInfo(startupInfo *StartupInfo) (ok bool, errno int)

GetStdHandle関数

func GetStdHandle(stdhandle int32) (handle int32, errno int)

GetSystemTimeAsFileTime関数

func GetSystemTimeAsFileTime(time *Filetime)

GetTempPath関数

func GetTempPath(buflen uint32, buf *uint16) (n uint32, errno int)

GetTimeZoneInformation関数

func GetTimeZoneInformation(tzi *Timezoneinformation) (rc uint32, errno int)

GetVersion関数

func GetVersion() (ver uint32, errno int)

Getcwd関数

func Getcwd(buf []byte) (n int, errno int)

Getdents関数

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

Getdirentries関数

func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, errno int)

Getdtablesize関数

func Getdtablesize() (size int)

Getegid関数

func Getegid() (egid int)

Geteuid関数

func Geteuid() (uid int)

Getfsstat関数

func Getfsstat(buf []Statfs_t, flags int) (n int, errno int)

Getgid関数

func Getgid() (gid int)

Getgroups関数

func Getgroups() (gids []int, errno int)

Getpagesize関数

func Getpagesize() int

Getpgid関数

func Getpgid(pid int) (pgid int, errno int)

Getpgrp関数

func Getpgrp() (pgrp int)

Getpid関数

func Getpid() (pid int)

Getppid関数

func Getppid() (ppid int)

Getpriority関数

func Getpriority(which int, who int) (prio int, errno int)

Getrlimit関数

func Getrlimit(which int, lim *Rlimit) (errno int)

Getrusage関数

func Getrusage(who int, rusage *Rusage) (errno int)

Getsid関数

func Getsid(pid int) (sid int, errno int)

Gettid関数

func Gettid() (tid int)

Gettimeofday関数

func Gettimeofday(tv *Timeval) (errno int)

sys gettimeofday(tp *Timeval) (sec int32, usec int32, errno int)

Getuid関数

func Getuid() (uid int)

Getwd関数

func Getwd() (wd string, errno int)

sys Getcwd(buf []byte) (n int, errno int)

InotifyAddWatch関数

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

InotifyInit関数

func InotifyInit() (fd int, errno int)

InotifyInit1関数

func InotifyInit1(flags int) (fd int, errno int)

InotifyRmWatch関数

func InotifyRmWatch(fd int, watchdesc uint32) (success int, errno int)

Ioperm関数

func Ioperm(from int, num int, on int) (errno int)

Iopl関数

func Iopl(level int) (errno int)

Issetugid関数

func Issetugid() (tainted bool)

Kevent関数

func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, errno int)

Kill関数

func Kill(pid int, signum int) (errno int)

Klogctl関数

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

Kqueue関数

func Kqueue() (fd int, errno int)

Lchown関数

func Lchown(path string, uid int, gid int) (errno int)

func Link(path string, link string) (errno int)

Listen関数

func Listen(s int, backlog int) (errno int)

LoadLibrary関数

func LoadLibrary(libname string) (handle uint32, errno int)

Lstat関数

func Lstat(path string, stat *Stat_t) (errno int)

Mkdir関数

func Mkdir(path string, mode uint32) (errno int)

Mkdirat関数

func Mkdirat(dirfd int, path string, mode uint32) (errno int)

Mkfifo関数

func Mkfifo(path string, mode uint32) (errno int)

Mknod関数

func Mknod(path string, mode uint32, dev int) (errno int)

Mknodat関数

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

MoveFile関数

func MoveFile(from *uint16, to *uint16) (ok bool, errno int)

MultimediaInit関数

func MultimediaInit(subsys int) (errno int)

MultimediaShutdown関数

func MultimediaShutdown() (errno int)

MutexCreate関数

func MutexCreate() (mutex int, errno int)

MutexLock関数

func MutexLock(mutex int) (errno int)

MutexTryLock関数

func MutexTryLock(mutex int) (errno int)

MutexUnlock関数

func MutexUnlock(mutex int) (errno int)

Nanosleep関数

func Nanosleep(time *Timespec, leftover *Timespec) (errno int)

Ntohs関数

func Ntohs(netshort uint16) (u uint16)

Open関数

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

sys open(path string, mode int, perm uint32) (fd int, errno int)

OpenProcess関数

func OpenProcess(da uint32, b int, pid uint32) (handle uint32, errno int)

Openat関数

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

sys openat(dirfd int, path string, flags int, mode uint32) (fd int, errno int)

Pathconf関数

func Pathconf(path string, name int) (val int, errno int)

Pause関数

func Pause() (errno int)

Pipe関数

func Pipe(p []int) (errno int)

sys pipe(p *[2]_C_int) (errno int)

PivotRoot関数

func PivotRoot(newroot string, putold string) (errno int)

Pread関数

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

PtraceAttach関数

func PtraceAttach(pid int) (errno int)

PtraceCont関数

func PtraceCont(pid int, signal int) (errno int)

PtraceDetach関数

func PtraceDetach(pid int) (errno int)

PtraceForkExec関数

func PtraceForkExec(argv0 string, argv []string, envv []string, dir string, fd []int) (pid int, err int)

PtraceForkExecは、ForkExecとほぼ同じですが、トレースされた状態で子プロセスを開始します。

PtraceGetEventMsg関数

func PtraceGetEventMsg(pid int) (msg uint, errno int)

PtraceGetRegs関数

func PtraceGetRegs(pid int, regsout *PtraceRegs) (errno int)

PtracePeekData関数

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

PtracePeekText関数

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

PtracePokeData関数

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

PtracePokeText関数

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

PtraceSetOptions関数

func PtraceSetOptions(pid int, options int) (errno int)

PtraceSetRegs関数

func PtraceSetRegs(pid int, regs *PtraceRegs) (errno int)

PtraceSingleStep関数

func PtraceSingleStep(pid int) (errno int)

Pwrite関数

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

RawSyscall関数

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

Read関数

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

ReadFile関数

func ReadFile(handle int32, buf []byte, done *uint32, overlapped *Overlapped) (ok bool, errno int)

func Readlink(path string, buf []byte) (n int, errno int)

Recvfrom関数

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

Recvmsg関数

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

RemoveDirectory関数

func RemoveDirectory(path *uint16) (ok bool, errno int)

Rename関数

func Rename(from string, to string) (errno int)

Renameat関数

func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (errno int)

Revoke関数

func Revoke(path string) (errno int)

Rmdir関数

func Rmdir(path string) (errno int)

Seek関数

func Seek(fd int, offset int64, whence int) (newoffset int64, errno int)

内部のシステムコールは、ポインタ経由でnewoffsetに書き込みます。アロケーションを不要にするためアセンブリで実装されています。

Select関数

func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (errno int)

SemCreate関数

func SemCreate() (sema int, errno int)

SemPost関数

func SemPost(sema int) (errno int)

SemWait関数

func SemWait(sema int) (errno int)

Sendmsg関数

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

Sendto関数

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

SetCurrentDirectory関数

func SetCurrentDirectory(path *uint16) (ok bool, errno int)

SetEndOfFile関数

func SetEndOfFile(handle int32) (ok bool, errno int)

SetEnvironmentVariable関数

func SetEnvironmentVariable(name *uint16, value *uint16) (ok bool, errno int)

SetFilePointer関数

func SetFilePointer(handle int32, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, errno int)

SetFileTime関数

func SetFileTime(handle int32, ctime *Filetime, atime *Filetime, wtime *Filetime) (ok bool, errno int)

SetKevent関数

func SetKevent(k *Kevent_t, fd, mode, flags int)

SetNonblock関数

func SetNonblock(fd int, nonblocking bool) (errno int)

Setdomainname関数

func Setdomainname(p []byte) (errno int)

Setegid関数

func Setegid(egid int) (errno int)

Seteuid関数

func Seteuid(euid int) (errno int)

Setfsgid関数

func Setfsgid(gid int) (errno int)

Setfsuid関数

func Setfsuid(uid int) (errno int)

Setgid関数

func Setgid(gid int) (errno int)

Setgroups関数

func Setgroups(gids []int) (errno int)

Sethostname関数

func Sethostname(p []byte) (errno int)

Setlogin関数

func Setlogin(name string) (errno int)

Setpgid関数

func Setpgid(pid int, pgid int) (errno int)

Setpriority関数

func Setpriority(which int, who int, prio int) (errno int)

Setprivexec関数

func Setprivexec(flag int) (errno int)

Setregid関数

func Setregid(rgid int, egid int) (errno int)

Setresgid関数

func Setresgid(rgid int, egid int, sgid int) (errno int)

Setresuid関数

func Setresuid(ruid int, euid int, suid int) (errno int)

Setreuid関数

func Setreuid(ruid int, euid int) (errno int)

Setrlimit関数

func Setrlimit(which int, lim *Rlimit) (errno int)

Setsid関数

func Setsid() (pid int, errno int)

SetsockoptInt関数

func SetsockoptInt(fd, level, opt int, value int) (errno int)

SetsockoptLinger関数

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

SetsockoptString関数

func SetsockoptString(fd, level, opt int, s string) (errno int)

SetsockoptTimeval関数

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

Settimeofday関数

func Settimeofday(tp *Timeval) (errno int)

Setuid関数

func Setuid(uid int) (errno int)

Shutdown関数

func Shutdown(s int, how int) (errno int)

Sleep関数

func Sleep(nsec int64) (errno int)

Socket関数

func Socket(domain, typ, proto int) (fd, errno int)

Socketpair関数

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

Splice関数

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

Stat関数

func Stat(path string, stat *Stat_t) (errno int)

Statfs関数

func Statfs(path string, stat *Statfs_t) (errno int)

StringArrayPtr関数

func StringArrayPtr(ss []string) []*byte

文字列の配列を、NUL終了しているバイトポインタの配列に変換します。

StringBytePtr関数

func StringBytePtr(s string) *byte

StringBytePtrは、sのテキストを含むNULで終了するバイト配列のポインタを返します。

StringByteSlice関数

func StringByteSlice(s string) []byte

StringByteSliceは、sのテキストを含むNULで終了するバイトのスライスを返します。

StringToUTF16関数

func StringToUTF16(s string) []uint16

StringToUTF16は、UTF-8文字列sをUTF-16でエンコードして返します。最後にNULが付け加えられます。

StringToUTF16Ptr関数

func StringToUTF16Ptr(s string) *uint16

StringToUTF16Ptrは、UTF-8文字列sをUTF-16でエンコードしたポインタを返します。最後にNULが付け加えられます。

func Symlink(path string, link string) (errno int)

Sync関数

func Sync() (errno int)

SyncFileRange関数

func SyncFileRange(fd int, off int64, n int64, flags int) (errno int)

Syscall関数

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

Syscall12関数

func Syscall12(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12 uintptr) (r1, r2, lasterr uintptr)

Syscall6関数

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

Syscall9関数

func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2, lasterr uintptr)

implemented in ../pkg/runtime/windows/syscall.cgo

Sysctl関数

func Sysctl(name string) (value string, errno int)

SysctlUint32関数

func SysctlUint32(name string) (value uint32, errno int)

Sysinfo関数

func Sysinfo(info *Sysinfo_t) (errno int)

Tee関数

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

Tgkill関数

func Tgkill(tgid int, tid int, sig int) (errno int)

Times関数

func Times(tms *Tms) (ticks uintptr, errno int)

TimespecToNsec関数

func TimespecToNsec(ts Timespec) int64

TimevalToNsec関数

func TimevalToNsec(tv Timeval) int64

Truncate関数

func Truncate(path string, length int64) (errno int)

UTF16ToString関数

func UTF16ToString(s []uint16) string

UTF16ToStringは、UTF-16シーケンスsをUTF-8でエンコードして返します。最後のNULは除去されます。

Umask関数

func Umask(newmask int) (oldmask int)

Uname関数

func Uname(buf *Utsname) (errno int)

Undelete関数

func Undelete(path string) (errno int)

func Unlink(path string) (errno int)

Unlinkat関数

func Unlinkat(dirfd int, path string) (errno int)

Unmount関数

func Unmount(path string, flags int) (errno int)

Unshare関数

func Unshare(flags int) (errno int)

Ustat関数

func Ustat(dev int, ubuf *Ustat_t) (errno int)

Utime関数

func Utime(path string, buf *Utimbuf) (errno int)

Utimes関数

func Utimes(path string, tv []Timeval) (errno int)

sys utimes(path string, timeval *[2]Timeval) (errno int)

VideoInit関数

func VideoInit(dx int, dy int) (errno int)

VideoPollEvent関数

func VideoPollEvent(ev *byte) (errno int)

VideoShutdown関数

func VideoShutdown() (errno int)

VideoUpdate関数

func VideoUpdate(data *uint32) (errno int)

WSACleanup関数

func WSACleanup() (errno int)

WSARecv関数

func WSARecv(s uint32, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, overlapped *Overlapped, croutine *byte) (errno int)

WSARecvFrom関数

func WSARecvFrom(s uint32, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, from *RawSockaddrAny, fromlen *int32, overlapped *Overlapped, croutine *byte) (errno int)

WSASend関数

func WSASend(s uint32, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, overlapped *Overlapped, croutine *byte) (errno int)

WSASendTo関数

func WSASendTo(s uint32, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *RawSockaddrAny, tolen int32, overlapped *Overlapped, croutine *byte) (errno int)

WSASendto関数

func WSASendto(s uint32, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to Sockaddr, overlapped *Overlapped, croutine *byte) (errno int)

WSAStartup関数

func WSAStartup(verreq uint32, data *WSAData) (sockerrno int)

Wait4関数

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

sys wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, errno int)

WaitForSingleObject関数

func WaitForSingleObject(handle int32, waitMilliseconds uint32) (event uint32, errno int)

Write関数

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

WriteFile関数

func WriteFile(handle int32, buf []byte, done *uint32, overlapped *Overlapped) (ok bool, errno int)

ByHandleFileInformation型

type ByHandleFileInformation struct {
    FileAttributes     uint32
    CreationTime       Filetime
    LastAccessTime     Filetime
    LastWriteTime      Filetime
    VolumeSerialNumber uint32
    FileSizeHigh       uint32
    FileSizeLow        uint32
    NumberOfLinks      uint32
    FileIndexHigh      uint32
    FileIndexLow       uint32
}

Cmsghdr型

type Cmsghdr struct {
    Len   uint32
    Level int32
    Type  int32
}

(*Cmsghdr) SetLen関数

func (cmsg *Cmsghdr) SetLen(length int)

DNSRecord型

type DNSRecord struct {
    Next     *DNSRecord
    Name     *uint16
    Type     uint16
    Length   uint16
    Dw       uint32
    Ttl      uint32
    Reserved uint32
    Data     [40]byte
}

DNSSRVData型

type DNSSRVData struct {
    Target   *uint16
    Priority uint16
    Weight   uint16
    Port     uint16
    Pad      uint16
}

Dirent型

type Dirent struct {
    Ino    uint32
    Off    int32
    Reclen uint16
    Name   [256]int8
    Pad0   [2]byte
}

EpollEvent型

type EpollEvent struct {
    Events uint32
    Fd     int32
    Pad    int32
}

Fbootstraptransfer_t型

type Fbootstraptransfer_t struct {
    Offset int64
    Length uint32
    Buffer *byte
}

FdSet型

type FdSet struct {
    X__fds_bits [32]uint32
}

Filetime型

type Filetime struct {
    LowDateTime  uint32
    HighDateTime uint32
}

NsecToFiletime関数

func NsecToFiletime(nsec int64) (ft Filetime)

(*Filetime) Nanoseconds関数

func (ft *Filetime) Nanoseconds() int64

Flock_t型

type Flock_t struct {
    Start  int64
    Len    int64
    Pid    int32
    Type   int16
    Whence int16
    Sysid  int32
}

Fstore_t型

type Fstore_t struct {
    Flags      uint32
    Posmode    int32
    Offset     int64
    Length     int64
    Bytesalloc int64
}

Hostent型

type Hostent struct {
    Name     *byte
    Aliases  **byte
    AddrType uint16
    Length   uint16
    AddrList **byte
}

GetHostByName関数

func GetHostByName(name string) (h *Hostent, errno int)

InotifyEvent型

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

Iovec型

type Iovec struct {
    Base *byte
    Len  uint32
}

(*Iovec) SetLen関数

func (iov *Iovec) SetLen(length int)

Kevent_t型

type Kevent_t struct {
    Ident  uint32
    Filter int16
    Flags  uint16
    Fflags uint32
    Data   int32
    Udata  *byte
}

Linger型

type Linger struct {
    Onoff  int32
    Linger int32
}

Log2phys_t型

type Log2phys_t struct {
    Flags       uint32
    Contigbytes int64
    Devoffset   int64
}

Msghdr型

type Msghdr struct {
    Name       *byte
    Namelen    uint32
    Iov        *Iovec
    Iovlen     int32
    Control    *byte
    Controllen uint32
    Flags      int32
}

(*Msghdr) SetControllen関数

func (msghdr *Msghdr) SetControllen(length int)

Overlapped型

type Overlapped struct {
    Internal     uint32
    InternalHigh uint32
    Offset       uint32
    OffsetHigh   uint32
    HEvent       *byte
}

ProcessInformation型

type ProcessInformation struct {
    Process   int32
    Thread    int32
    ProcessId uint32
    ThreadId  uint32
}

PtraceRegs型

type PtraceRegs struct {
    Ebx      int32
    Ecx      int32
    Edx      int32
    Esi      int32
    Edi      int32
    Ebp      int32
    Eax      int32
    Xds      int32
    Xes      int32
    Xfs      int32
    Xgs      int32
    Orig_eax int32
    Eip      int32
    Xcs      int32
    Eflags   int32
    Esp      int32
    Xss      int32
}

(*PtraceRegs) PC関数

func (r *PtraceRegs) PC() uint64

TODO(kaib): add support for tracing

(*PtraceRegs) SetPC関数

func (r *PtraceRegs) SetPC(pc uint64)

Radvisory_t型

type Radvisory_t struct {
    Offset int64
    Count  int32
}

RawSockaddr型

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

RawSockaddrAny型

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

(*RawSockaddrAny) Sockaddr関数

func (rsa *RawSockaddrAny) Sockaddr() (Sockaddr, int)

RawSockaddrInet4型

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

RawSockaddrInet6型

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

RawSockaddrLinklayer型

type RawSockaddrLinklayer struct {
    Family   uint16
    Protocol uint16
    Ifindex  int32
    Hatype   uint16
    Pkttype  uint8
    Halen    uint8
    Addr     [8]uint8
}

RawSockaddrUnix型

type RawSockaddrUnix struct {
    Len    uint8
    Family uint8
    Path   [104]int8
}

Rlimit型

type Rlimit struct {
    Cur int64
    Max int64
}

Rusage型

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

Servent型

type Servent struct {
    Name    *byte
    Aliases **byte
    Port    uint16
    Proto   *byte
}

GetServByName関数

func GetServByName(name string, proto string) (s *Servent, errno int)

Sockaddr型

type Sockaddr interface {
    // contains unexported methods
}

Getpeername関数

func Getpeername(fd int) (sa Sockaddr, errno int)

Getsockname関数

func Getsockname(fd int) (sa Sockaddr, errno int)

SockaddrInet4型

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

SockaddrInet6型

type SockaddrInet6 struct {
    Port int
    Addr [16]byte
}

SockaddrLinklayer型

type SockaddrLinklayer struct {
    Protocol uint16
    Ifindex  int
    Hatype   uint16
    Pkttype  uint8
    Halen    uint8
    Addr     [8]byte
    // contains unexported fields
}

SockaddrUnix型

type SockaddrUnix struct {
    Name string
}

StartupInfo型

type StartupInfo struct {
    Cb uint32
    Desktop       *uint16
    Title         *uint16
    X             uint32
    Y             uint32
    XSize         uint32
    YSize         uint32
    XCountChars   uint32
    YCountChars   uint32
    FillAttribute uint32
    Flags         uint32
    ShowWindow    uint16
    StdInput  int32
    StdOutput int32
    StdErr    int32
    // contains unexported fields
}

Stat_t型

type Stat_t struct {
    Dev        int64
    Ino        uint32
    Mode       uint32
    Nlink      uint32
    Uid        uint32
    Gid        uint32
    X__padding int32
    Rdev       int64
    Size       int32
    Blksize    int32
    Blocks     int32
    Atime      int32
    Mtime      int32
    Ctime      int32
}

Statfs_t型

type Statfs_t struct {
    Version     uint32
    Type        uint32
    Flags       uint64
    Bsize       uint64
    Iosize      uint64
    Blocks      uint64
    Bfree       uint64
    Bavail      int64
    Files       uint64
    Ffree       int64
    Syncwrites  uint64
    Asyncwrites uint64
    Syncreads   uint64
    Asyncreads  uint64
    Spare       [10]uint64
    Namemax     uint32
    Owner       uint32
    Fsid        [8]byte /* fsid */
    Charspare   [80]int8
    Fstypename  [16]int8
    Mntfromname [88]int8
    Mntonname   [88]int8
}

Sysinfo_t型

type Sysinfo_t struct {
    Uptime    int32
    Loads     [3]uint32
    Totalram  uint32
    Freeram   uint32
    Sharedram uint32
    Bufferram uint32
    Totalswap uint32
    Freeswap  uint32
    Procs     uint16
    Pad       uint16
    Totalhigh uint32
    Freehigh  uint32
    Unit      uint32
    X_f       [8]int8
}

Systemtime型

type Systemtime struct {
    Year         uint16
    Month        uint16
    DayOfWeek    uint16
    Day          uint16
    Hour         uint16
    Minute       uint16
    Second       uint16
    Milliseconds uint16
}

Time_t型

type Time_t int32

Time関数

func Time(t *Time_t) (tt Time_t, errno int)

Timespec型

type Timespec struct {
    Sec  int32
    Nsec int32
}

NsecToTimespec関数

func NsecToTimespec(nsec int64) (ts Timespec)

Timeval型

type Timeval struct {
    Sec  int32
    Usec int32
}

NsecToTimeval関数

func NsecToTimeval(nsec int64) (tv Timeval)

(*Timeval) Nanoseconds関数

func (tv *Timeval) Nanoseconds() int64

Timex型

type Timex struct {
    Modes     uint32
    Offset    int32
    Freq      int32
    Maxerror  int32
    Esterror  int32
    Status    int32
    Constant  int32
    Precision int32
    Tolerance int32
    Time      Timeval
    Tick      int32
    Ppsfreq   int32
    Jitter    int32
    Shift     int32
    Stabil    int32
    Jitcnt    int32
    Calcnt    int32
    Errcnt    int32
    Stbcnt    int32
    Tai       int32
    Pad0      int32
    Pad1      int32
    Pad2      int32
    Pad3      int32
    Pad4      int32
    Pad5      int32
    Pad6      int32
    Pad7      int32
    Pad8      int32
    Pad9      int32
    Pad10     int32
}

Timezoneinformation型

type Timezoneinformation struct {
    Bias         int32
    StandardName [32]uint16
    StandardDate Systemtime
    StandardBias int32
    DaylightName [32]uint16
    DaylightDate Systemtime
    DaylightBias int32
}

Tms型

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

Ucred型

type Ucred struct {
    Pid int32
    Uid uint32
    Gid uint32
}

Ustat_t型

type Ustat_t struct {
    Tfree  int32
    Tinode uint32
    Fname  [6]int8
    Fpack  [6]int8
}

Utimbuf型

type Utimbuf struct {
    Actime  int32
    Modtime int32
}

Utsname型

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

WSABuf型

type WSABuf struct {
    Len uint32
    Buf *byte
}

WSAData型

type WSAData struct {
    Version      uint16
    HighVersion  uint16
    Description  [WSADESCRIPTION_LEN + 1]byte
    SystemStatus [WSASYS_STATUS_LEN + 1]byte
    MaxSockets   uint16
    MaxUdpDg     uint16
    VendorInfo   *byte
}

WaitStatus型

type WaitStatus struct {
    Status   uint32
    ExitCode uint32
}

(WaitStatus) Continued関数

func (WaitStatus) Continued() bool

(WaitStatus) CoreDump関数

func (WaitStatus) CoreDump() bool

(WaitStatus) ExitStatus関数

func (w WaitStatus) ExitStatus() int

(WaitStatus) Exited関数

func (w WaitStatus) Exited() bool

(WaitStatus) Signal関数

func (WaitStatus) Signal() int

(WaitStatus) Signaled関数

func (w WaitStatus) Signaled() bool

(WaitStatus) StopSignal関数

func (WaitStatus) StopSignal() int

(WaitStatus) Stopped関数

func (WaitStatus) Stopped() bool

(WaitStatus) TrapCause関数

func (WaitStatus) TrapCause() int

Win32finddata型

type Win32finddata struct {
    FileAttributes    uint32
    CreationTime      Filetime
    LastAccessTime    Filetime
    LastWriteTime     Filetime
    FileSizeHigh      uint32
    FileSizeLow       uint32
    Reserved0         uint32
    Reserved1         uint32
    FileName          [MAX_PATH - 1]uint16
    AlternateFileName [13]uint16
}