]> Cypherpunks repositories - gostls13.git/commitdiff
os: add ENODATA and ENOTCONN
authorAlbert Strasheim <fullung@gmail.com>
Wed, 16 Feb 2011 18:19:31 +0000 (13:19 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 16 Feb 2011 18:19:31 +0000 (13:19 -0500)
syscall: add MCL_* flags for mlockall

R=rsc
CC=golang-dev
https://golang.org/cl/4177044

src/pkg/os/error.go
src/pkg/syscall/mkerrors.sh
src/pkg/syscall/zerrors_linux_386.go
src/pkg/syscall/zerrors_linux_amd64.go

index 4738d1a4241e6e9d199e9a2fd86ec0c4adf38fea..75a079c740e40ec115118a36f72aef31aabb7877 100644 (file)
@@ -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.
index a13c0e91baec8ecf39fd9fcdbc930a48d693177f..d40d1f6b3df0e71345386fd8defc5c9035e2ec5b 100755 (executable)
@@ -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" ||
index 43d27827cb2b3da43b5bf2e0939d437687590528..a73a949617755ce4586fa2d96ce19eb1a54aba06 100644 (file)
@@ -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
index 04f4dad2cd6e40b3b5f0d84bd908d061ef73ba03..eea55a2753b9753867bd4fed24f24848f83c2def 100644 (file)
@@ -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