aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-11-08 17:15:20 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-11-08 19:30:10 +0300
commit784eb9c23c498850bee1bed72914c17906071945 (patch)
tree141c4a60e386f784e382406932f8b36521e100b4
parent9547ae3a85db67e4d3abe9ee7782a41b782a7906 (diff)
sys/freebsd: add POLLINIGNEOF
-rw-r--r--AUTHORS1
-rw-r--r--CONTRIBUTORS1
-rw-r--r--executor/syscalls_freebsd.h2
-rw-r--r--sys/freebsd/amd64.go5
-rw-r--r--sys/freebsd/sys.txt2
-rw-r--r--sys/freebsd/sys_amd64.const1
6 files changed, 8 insertions, 4 deletions
diff --git a/AUTHORS b/AUTHORS
index eefee32a8..1add43407 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -14,3 +14,4 @@ Alexander Popov
Jean-Baptiste Cayrou
Yuzhe Han
Utkarsh Anand
+Tobias Klauser
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 064e67cd4..7c87f77a6 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -23,3 +23,4 @@ Jean-Baptiste Cayrou
Yuzhe Han
Thomas Garnier
Utkarsh Anand
+Tobias Klauser
diff --git a/executor/syscalls_freebsd.h b/executor/syscalls_freebsd.h
index da02713a2..09e129ec4 100644
--- a/executor/syscalls_freebsd.h
+++ b/executor/syscalls_freebsd.h
@@ -2,7 +2,7 @@
#if defined(__x86_64__) || 0
#define GOARCH "amd64"
-#define SYZ_REVISION "88b9a5d5b712ffec9339d0e1e5cddf5834f7d598"
+#define SYZ_REVISION "3daf5c34426e30649a123866a30a5aad1ace2db2"
unsigned syscall_count = 254;
call_t syscalls[] = {
diff --git a/sys/freebsd/amd64.go b/sys/freebsd/amd64.go
index d863013bf..14ec959e2 100644
--- a/sys/freebsd/amd64.go
+++ b/sys/freebsd/amd64.go
@@ -333,7 +333,7 @@ var structDescs_amd64 = []*KeyedStruct{
}}},
{Key: StructKey{Name: "pollfd"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "pollfd", TypeSize: 8}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pollfd_events", FldName: "events", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 4, 256}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pollfd_events", FldName: "events", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 4, 256, 8192}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "revents", TypeSize: 2}}},
}}},
{Key: StructKey{Name: "recv_msghdr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "recv_msghdr", TypeSize: 56}, Fields: []Type{
@@ -2174,6 +2174,7 @@ var consts_amd64 = []ConstValue{
{Name: "POLLERR", Value: 8},
{Name: "POLLHUP", Value: 16},
{Name: "POLLIN", Value: 1},
+ {Name: "POLLINIGNEOF", Value: 8192},
{Name: "POLLNVAL", Value: 32},
{Name: "POLLOUT", Value: 4},
{Name: "POLLPRI", Value: 2},
@@ -2439,4 +2440,4 @@ var consts_amd64 = []ConstValue{
{Name: "WUNTRACED", Value: 2},
}
-const revision_amd64 = "88b9a5d5b712ffec9339d0e1e5cddf5834f7d598"
+const revision_amd64 = "3daf5c34426e30649a123866a30a5aad1ace2db2"
diff --git a/sys/freebsd/sys.txt b/sys/freebsd/sys.txt
index 1c5572179..42678f654 100644
--- a/sys/freebsd/sys.txt
+++ b/sys/freebsd/sys.txt
@@ -389,7 +389,7 @@ dup_flags = O_CLOEXEC
clock_type = CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID
sigev_notify = SIGEV_NONE, SIGEV_SIGNAL, SIGEV_THREAD, SIGEV_THREAD_ID
cap_version = 0x19980330, 0x20071026, 0x20080522
-pollfd_events = POLLIN, POLLPRI, POLLOUT, POLLERR, POLLHUP, POLLNVAL, POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND
+pollfd_events = POLLIN, POLLPRI, POLLOUT, POLLERR, POLLHUP, POLLNVAL, POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND, POLLINIGNEOF
mknod_mode = S_IFREG, S_IFCHR, S_IFBLK, S_IFIFO, S_IFSOCK, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH
at_flags = AT_SYMLINK_NOFOLLOW, AT_SYMLINK_FOLLOW
linkat_flags = AT_SYMLINK_FOLLOW
diff --git a/sys/freebsd/sys_amd64.const b/sys/freebsd/sys_amd64.const
index c0fd030e6..aa6a370dd 100644
--- a/sys/freebsd/sys_amd64.const
+++ b/sys/freebsd/sys_amd64.const
@@ -64,6 +64,7 @@ O_NONBLOCK = 4
POLLERR = 8
POLLHUP = 16
POLLIN = 1
+POLLINIGNEOF = 8192
POLLNVAL = 32
POLLOUT = 4
POLLPRI = 2