mirror of
https://github.com/golang/go
synced 2024-11-24 21:10:04 -07:00
os: add ENODATA and ENOTCONN
syscall: add MCL_* flags for mlockall R=rsc CC=golang-dev https://golang.org/cl/4177044
This commit is contained in:
parent
1a96391971
commit
e881d42f87
@ -80,6 +80,8 @@ var (
|
||||
ENAMETOOLONG Error = Errno(syscall.ENAMETOOLONG)
|
||||
EAFNOSUPPORT Error = Errno(syscall.EAFNOSUPPORT)
|
||||
ETIMEDOUT Error = Errno(syscall.ETIMEDOUT)
|
||||
ENODATA Error = Errno(syscall.ENODATA)
|
||||
ENOTCONN Error = Errno(syscall.ENOTCONN)
|
||||
)
|
||||
|
||||
// PathError records an error and the operation and file path that caused it.
|
||||
|
@ -116,7 +116,7 @@ done
|
||||
$2 ~ /^E[A-Z0-9_]+$/ ||
|
||||
$2 ~ /^SIG[^_]/ ||
|
||||
$2 ~ /^IN_/ ||
|
||||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|EVFILT|EV|SHUT|PROT|MAP|PACKET|MSG|SCM|IFF|NET_RT|RTM|RTF|RTV|RTA|RTAX)_/ ||
|
||||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|EVFILT|EV|SHUT|PROT|MAP|PACKET|MSG|SCM|IFF|NET_RT|RTM|RTF|RTV|RTA|RTAX|MCL)_/ ||
|
||||
$2 == "SOMAXCONN" ||
|
||||
$2 == "NAME_MAX" ||
|
||||
$2 == "IFNAMSIZ" ||
|
||||
|
@ -424,6 +424,8 @@ const (
|
||||
MAP_SHARED = 0x1
|
||||
MAP_STACK = 0x20000
|
||||
MAP_TYPE = 0xf
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
MSG_CTRUNC = 0x8
|
||||
|
@ -424,6 +424,8 @@ const (
|
||||
MAP_SHARED = 0x1
|
||||
MAP_STACK = 0x20000
|
||||
MAP_TYPE = 0xf
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
MSG_CTRUNC = 0x8
|
||||
|
Loading…
Reference in New Issue
Block a user