]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: regenerate z-files for dragonfly
authorJoel Sing <jsing@google.com>
Wed, 5 Mar 2014 13:09:09 +0000 (00:09 +1100)
committerJoel Sing <jsing@google.com>
Wed, 5 Mar 2014 13:09:09 +0000 (00:09 +1100)
Regenerate z-files for DragonFly BSD 3.6.

F_DUP_FD_CLOEXEC is now supported, so remove the zero value constant
from types_dragonfly.go so that we use the generated value from the
z-files.

LGTM=mikioh.mikioh
R=golang-codereviews, mikioh.mikioh
CC=golang-codereviews
https://golang.org/cl/70080047

src/pkg/syscall/types_dragonfly.go
src/pkg/syscall/zerrors_dragonfly_386.go
src/pkg/syscall/zerrors_dragonfly_amd64.go
src/pkg/syscall/zsysnum_dragonfly_386.go
src/pkg/syscall/zsysnum_dragonfly_amd64.go
src/pkg/syscall/ztypes_dragonfly_386.go
src/pkg/syscall/ztypes_dragonfly_amd64.go

index baed2911fcf01fafdddcb205251a88856a99b504..fb7fd1bb4fd9ce506ec215d56d3ce1150a6e6a04 100644 (file)
@@ -98,10 +98,6 @@ type _Gid_t C.gid_t
 
 // Files
 
-const (
-       F_DUPFD_CLOEXEC = 0 // not supported
-)
-
 const ( // Directory mode bits
        S_IFMT   = C.S_IFMT
        S_IFIFO  = C.S_IFIFO
index a2eb926ee3bba2420e9947ad18d8e2d33291d5e7..701a1c381180772233d30c73e090d31cb78fa2b5 100644 (file)
@@ -311,7 +311,10 @@ const (
        FD_CLOEXEC                        = 0x1
        FD_SETSIZE                        = 0x400
        FLUSHO                            = 0x800000
+       F_DUP2FD                          = 0xa
+       F_DUP2FD_CLOEXEC                  = 0x12
        F_DUPFD                           = 0x0
+       F_DUPFD_CLOEXEC                   = 0x11
        F_GETFD                           = 0x1
        F_GETFL                           = 0x3
        F_GETLK                           = 0x7
@@ -1475,7 +1478,7 @@ var errors = [...]string{
        90: "multihop attempted",
        91: "link has been severed",
        92: "protocol error",
-       93: "unknown error: 93",
+       93: "no medium found",
        94: "unknown error: 94",
        95: "unknown error: 95",
        96: "unknown error: 96",
index d2fe97c68f0f9332d8b50f0f6e87f0e939a75df8..59bff751cb985b2b8301fc77919bfef6f6386ef7 100644 (file)
@@ -311,7 +311,10 @@ const (
        FD_CLOEXEC                        = 0x1
        FD_SETSIZE                        = 0x400
        FLUSHO                            = 0x800000
+       F_DUP2FD                          = 0xa
+       F_DUP2FD_CLOEXEC                  = 0x12
        F_DUPFD                           = 0x0
+       F_DUPFD_CLOEXEC                   = 0x11
        F_GETFD                           = 0x1
        F_GETFL                           = 0x3
        F_GETLK                           = 0x7
@@ -1475,7 +1478,7 @@ var errors = [...]string{
        90: "multihop attempted",
        91: "link has been severed",
        92: "protocol error",
-       93: "unknown error: 93",
+       93: "no medium found",
        94: "unknown error: 94",
        95: "unknown error: 95",
        96: "unknown error: 96",
index 68eeb32acab1195b1732340dad0dc57ceaca0c73..4b086b9214a72c49b7f97e013022596c2e572609 100644 (file)
@@ -115,9 +115,6 @@ const (
        SYS_UNAME         = 164 // { int uname(struct utsname *name); }
        SYS_SYSARCH       = 165 // { int sysarch(int op, char *parms); }
        SYS_RTPRIO        = 166 // { int rtprio(int function, pid_t pid, \
-       SYS_SEMSYS        = 169 // { int semsys(int which, int a2, int a3, int a4, \
-       SYS_MSGSYS        = 170 // { int msgsys(int which, int a2, int a3, int a4, \
-       SYS_SHMSYS        = 171 // { int shmsys(int which, int a2, int a3, int a4); }
        SYS_EXTPREAD      = 173 // { ssize_t extpread(int fd, void *buf, \
        SYS_EXTPWRITE     = 174 // { ssize_t extpwrite(int fd, const void *buf, \
        SYS_NTP_ADJTIME   = 176 // { int ntp_adjtime(struct timex *tp); }
@@ -300,4 +297,6 @@ const (
        SYS_LINKAT                 = 531 // { int linkat(int fd1, char *path1, int fd2, \
        SYS_EACCESS                = 532 // { int eaccess(char *path, int flags); }
        SYS_LPATHCONF              = 533 // { int lpathconf(char *path, int name); }
+       SYS_VMM_GUEST_CTL          = 534 // { int vmm_guest_ctl(int op, struct vmm_guest_options *options); }
+       SYS_VMM_GUEST_SYNC_ADDR    = 535 // { int vmm_guest_sync_addr(long *dstaddr, long *srcaddr); }
 )
index 68eeb32acab1195b1732340dad0dc57ceaca0c73..4b086b9214a72c49b7f97e013022596c2e572609 100644 (file)
@@ -115,9 +115,6 @@ const (
        SYS_UNAME         = 164 // { int uname(struct utsname *name); }
        SYS_SYSARCH       = 165 // { int sysarch(int op, char *parms); }
        SYS_RTPRIO        = 166 // { int rtprio(int function, pid_t pid, \
-       SYS_SEMSYS        = 169 // { int semsys(int which, int a2, int a3, int a4, \
-       SYS_MSGSYS        = 170 // { int msgsys(int which, int a2, int a3, int a4, \
-       SYS_SHMSYS        = 171 // { int shmsys(int which, int a2, int a3, int a4); }
        SYS_EXTPREAD      = 173 // { ssize_t extpread(int fd, void *buf, \
        SYS_EXTPWRITE     = 174 // { ssize_t extpwrite(int fd, const void *buf, \
        SYS_NTP_ADJTIME   = 176 // { int ntp_adjtime(struct timex *tp); }
@@ -300,4 +297,6 @@ const (
        SYS_LINKAT                 = 531 // { int linkat(int fd1, char *path1, int fd2, \
        SYS_EACCESS                = 532 // { int eaccess(char *path, int flags); }
        SYS_LPATHCONF              = 533 // { int lpathconf(char *path, int name); }
+       SYS_VMM_GUEST_CTL          = 534 // { int vmm_guest_ctl(int op, struct vmm_guest_options *options); }
+       SYS_VMM_GUEST_SYNC_ADDR    = 535 // { int vmm_guest_sync_addr(long *dstaddr, long *srcaddr); }
 )
index 590d88328d672d65c2c25fe96e296ec08497b798..6b6ec152570e34b30df1310a7743c370f9ada80a 100644 (file)
@@ -54,10 +54,6 @@ type Rlimit struct {
 
 type _Gid_t uint32
 
-const (
-       F_DUPFD_CLOEXEC = 0
-)
-
 const (
        S_IFMT   = 0xf000
        S_IFIFO  = 0x1000
index a543b7c99acee31a0427c89b9d1c9424ca76e556..954ffd7ab2862e979e62fae8908d89ff0c4ef4a7 100644 (file)
@@ -54,10 +54,6 @@ type Rlimit struct {
 
 type _Gid_t uint32
 
-const (
-       F_DUPFD_CLOEXEC = 0
-)
-
 const (
        S_IFMT   = 0xf000
        S_IFIFO  = 0x1000