mirror of
https://github.com/golang/go
synced 2024-11-24 22:37:56 -07:00
syscall: add IPV6 constants
R=r CC=golang-dev https://golang.org/cl/848041
This commit is contained in:
parent
1231382b9e
commit
8fbe8bee6c
@ -53,6 +53,8 @@ includes='
|
||||
#include <dirent.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/ip.h>
|
||||
#include <netinet/ip6.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <errno.h>
|
||||
#include <sys/signal.h>
|
||||
@ -76,7 +78,7 @@ includes='
|
||||
|
||||
$2 ~ /^E[A-Z0-9_]+$/ ||
|
||||
$2 ~ /^SIG[^_]/ ||
|
||||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|TCP|EVFILT|EV|SHUT|PROT|MAP)_/ ||
|
||||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|EVFILT|EV|SHUT|PROT|MAP)_/ ||
|
||||
$2 == "SOMAXCONN" ||
|
||||
$2 == "NAME_MAX" ||
|
||||
$2 ~ /^(O|F|FD|NAME|S|PTRACE)_/ ||
|
||||
|
@ -25,7 +25,4 @@ while(<>){
|
||||
|
||||
print <<EOF;
|
||||
)
|
||||
|
||||
func _darwin_system_call_conflict() {
|
||||
}
|
||||
EOF
|
||||
|
@ -323,10 +323,56 @@ const (
|
||||
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
|
||||
@ -341,12 +387,16 @@ const (
|
||||
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
|
||||
@ -364,6 +414,7 @@ const (
|
||||
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
|
||||
|
@ -323,10 +323,56 @@ const (
|
||||
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
|
||||
@ -341,12 +387,16 @@ const (
|
||||
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
|
||||
@ -364,6 +414,7 @@ const (
|
||||
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
|
||||
|
@ -16,34 +16,27 @@ const (
|
||||
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_MAX = 0x22
|
||||
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
|
||||
@ -167,11 +160,9 @@ const (
|
||||
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
|
||||
@ -180,7 +171,6 @@ const (
|
||||
EREMOTE = 0x42
|
||||
EREMOTEIO = 0x79
|
||||
ERESTART = 0x55
|
||||
ERFKILL = 0x84
|
||||
EROFS = 0x1e
|
||||
ESHUTDOWN = 0x6c
|
||||
ESOCKTNOSUPPORT = 0x5e
|
||||
@ -199,6 +189,7 @@ const (
|
||||
EWOULDBLOCK = 0xb
|
||||
EXDEV = 0x12
|
||||
EXFULL = 0x36
|
||||
EXPR_NEST_MAX = 0x20
|
||||
FD_CLOEXEC = 0x1
|
||||
FD_SETSIZE = 0x400
|
||||
F_DUPFD = 0
|
||||
@ -232,7 +223,6 @@ const (
|
||||
F_WRLCK = 0x1
|
||||
IPPROTO_AH = 0x33
|
||||
IPPROTO_COMP = 0x6c
|
||||
IPPROTO_DCCP = 0x21
|
||||
IPPROTO_DSTOPTS = 0x3c
|
||||
IPPROTO_EGP = 0x8
|
||||
IPPROTO_ENCAP = 0x62
|
||||
@ -258,28 +248,79 @@ const (
|
||||
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_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
|
||||
@ -287,6 +328,7 @@ const (
|
||||
IP_RECVTOS = 0xd
|
||||
IP_RECVTTL = 0xc
|
||||
IP_RETOPTS = 0x7
|
||||
IP_RF = 0x8000
|
||||
IP_ROUTER_ALERT = 0x5
|
||||
IP_TOS = 0x1
|
||||
IP_TTL = 0x2
|
||||
@ -316,16 +358,6 @@ const (
|
||||
O_WRONLY = 0x1
|
||||
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
|
||||
@ -362,11 +394,8 @@ const (
|
||||
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
|
||||
SHUT_RD = 0
|
||||
SHUT_RDWR = 0x2
|
||||
@ -406,10 +435,7 @@ const (
|
||||
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
|
||||
@ -439,7 +465,6 @@ const (
|
||||
SO_ERROR = 0x4
|
||||
SO_KEEPALIVE = 0x9
|
||||
SO_LINGER = 0xd
|
||||
SO_MARK = 0x24
|
||||
SO_NO_CHECK = 0xb
|
||||
SO_OOBINLINE = 0xa
|
||||
SO_PASSCRED = 0x10
|
||||
@ -461,7 +486,6 @@ const (
|
||||
SO_SNDLOWAT = 0x13
|
||||
SO_SNDTIMEO = 0x15
|
||||
SO_TIMESTAMP = 0x1d
|
||||
SO_TIMESTAMPING = 0x25
|
||||
SO_TIMESTAMPNS = 0x23
|
||||
SO_TYPE = 0x3
|
||||
S_BLKSIZE = 0x200
|
||||
@ -638,7 +662,6 @@ var errors = [...]string{
|
||||
66: "object is remote",
|
||||
121: "remote I/O error",
|
||||
85: "interrupted system call should be restarted",
|
||||
132: "unknown error 132",
|
||||
30: "read-only file system",
|
||||
108: "cannot send after transport endpoint shutdown",
|
||||
94: "socket type not supported",
|
||||
|
@ -16,34 +16,27 @@ const (
|
||||
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_MAX = 0x22
|
||||
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
|
||||
@ -167,11 +160,9 @@ const (
|
||||
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
|
||||
@ -180,7 +171,6 @@ const (
|
||||
EREMOTE = 0x42
|
||||
EREMOTEIO = 0x79
|
||||
ERESTART = 0x55
|
||||
ERFKILL = 0x84
|
||||
EROFS = 0x1e
|
||||
ESHUTDOWN = 0x6c
|
||||
ESOCKTNOSUPPORT = 0x5e
|
||||
@ -199,6 +189,7 @@ const (
|
||||
EWOULDBLOCK = 0xb
|
||||
EXDEV = 0x12
|
||||
EXFULL = 0x36
|
||||
EXPR_NEST_MAX = 0x20
|
||||
FD_CLOEXEC = 0x1
|
||||
FD_SETSIZE = 0x400
|
||||
F_DUPFD = 0
|
||||
@ -232,7 +223,6 @@ const (
|
||||
F_WRLCK = 0x1
|
||||
IPPROTO_AH = 0x33
|
||||
IPPROTO_COMP = 0x6c
|
||||
IPPROTO_DCCP = 0x21
|
||||
IPPROTO_DSTOPTS = 0x3c
|
||||
IPPROTO_EGP = 0x8
|
||||
IPPROTO_ENCAP = 0x62
|
||||
@ -258,28 +248,79 @@ const (
|
||||
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_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
|
||||
@ -287,6 +328,7 @@ const (
|
||||
IP_RECVTOS = 0xd
|
||||
IP_RECVTTL = 0xc
|
||||
IP_RETOPTS = 0x7
|
||||
IP_RF = 0x8000
|
||||
IP_ROUTER_ALERT = 0x5
|
||||
IP_TOS = 0x1
|
||||
IP_TTL = 0x2
|
||||
@ -316,16 +358,6 @@ const (
|
||||
O_WRONLY = 0x1
|
||||
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
|
||||
@ -362,11 +394,8 @@ const (
|
||||
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
|
||||
SHUT_RD = 0
|
||||
SHUT_RDWR = 0x2
|
||||
@ -406,10 +435,7 @@ const (
|
||||
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
|
||||
@ -439,7 +465,6 @@ const (
|
||||
SO_ERROR = 0x4
|
||||
SO_KEEPALIVE = 0x9
|
||||
SO_LINGER = 0xd
|
||||
SO_MARK = 0x24
|
||||
SO_NO_CHECK = 0xb
|
||||
SO_OOBINLINE = 0xa
|
||||
SO_PASSCRED = 0x10
|
||||
@ -461,7 +486,6 @@ const (
|
||||
SO_SNDLOWAT = 0x13
|
||||
SO_SNDTIMEO = 0x15
|
||||
SO_TIMESTAMP = 0x1d
|
||||
SO_TIMESTAMPING = 0x25
|
||||
SO_TIMESTAMPNS = 0x23
|
||||
SO_TYPE = 0x3
|
||||
S_BLKSIZE = 0x200
|
||||
@ -638,7 +662,6 @@ var errors = [...]string{
|
||||
66: "object is remote",
|
||||
121: "remote I/O error",
|
||||
85: "interrupted system call should be restarted",
|
||||
132: "unknown error 132",
|
||||
30: "read-only file system",
|
||||
108: "cannot send after transport endpoint shutdown",
|
||||
94: "socket type not supported",
|
||||
|
Loading…
Reference in New Issue
Block a user