aboutsummaryrefslogtreecommitdiffstats
path: root/sys/fuchsia/amd64.go
diff options
context:
space:
mode:
authorJulia Hansbrough <flowerhack@google.com>2018-03-20 12:12:01 -0700
committerDmitry Vyukov <dvyukov@google.com>2018-03-21 09:50:47 +0100
commit040e73d644ee4124adfc744cbb81075b863c2b19 (patch)
treebacec2e1454c79a4742b3aac5512e0e392d974ea /sys/fuchsia/amd64.go
parent113a43ffb67d4297d8d2e6ee39c8a0a23420db99 (diff)
fuchsia: Fix the `extractor` tool.
The include path in Zircon has changed; updated syz-extract/fuchsia.go to include this, and re-ran extract to get updated *.const files.
Diffstat (limited to 'sys/fuchsia/amd64.go')
-rw-r--r--sys/fuchsia/amd64.go38
1 files changed, 19 insertions, 19 deletions
diff --git a/sys/fuchsia/amd64.go b/sys/fuchsia/amd64.go
index e4fd1f51e..7ea106ece 100644
--- a/sys/fuchsia/amd64.go
+++ b/sys/fuchsia/amd64.go
@@ -257,7 +257,7 @@ var syscalls_amd64 = []*Syscall{
{Name: "dup3", CallName: "dup3", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "oldfd", TypeSize: 4}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "newfd", TypeSize: 4}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "dup_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{524288}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "dup_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{256}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{Name: "faccessat", CallName: "faccessat", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "dirfd", TypeSize: 4}},
@@ -355,13 +355,13 @@ var syscalls_amd64 = []*Syscall{
}},
{Name: "open", CallName: "open", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1048576, 1024, 256, 65536, 2048, 524288, 131072, 4096, 8192, 512, 128, 16, 4194304, 96, 262144}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_mode", FldName: "mode", TypeSize: 8}}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{Name: "openat", CallName: "openat", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1048576, 1024, 256, 65536, 2048, 524288, 131072, 4096, 8192, 512, 128, 16, 4194304, 96, 262144}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_mode", FldName: "mode", TypeSize: 8}}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{Name: "poll", CallName: "poll", Args: []Type{
@@ -1099,27 +1099,27 @@ var consts_amd64 = []ConstValue{
{Name: "AT_REMOVEDIR", Value: 512},
{Name: "AT_SYMLINK_FOLLOW", Value: 1024},
{Name: "AT_SYMLINK_NOFOLLOW", Value: 256},
- {Name: "FASYNC", Value: 8192},
+ {Name: "FASYNC", Value: 1024},
{Name: "LOCK_EX", Value: 2},
{Name: "LOCK_NB", Value: 4},
{Name: "LOCK_SH", Value: 1},
{Name: "LOCK_UN", Value: 8},
- {Name: "O_APPEND", Value: 1024},
- {Name: "O_CLOEXEC", Value: 524288},
- {Name: "O_CREAT", Value: 64},
- {Name: "O_DIRECT", Value: 16384},
- {Name: "O_DIRECTORY", Value: 65536},
- {Name: "O_EXCL", Value: 128},
- {Name: "O_LARGEFILE", Value: 32768},
- {Name: "O_NOATIME", Value: 262144},
- {Name: "O_NOCTTY", Value: 256},
- {Name: "O_NOFOLLOW", Value: 131072},
- {Name: "O_NONBLOCK", Value: 2048},
- {Name: "O_PATH", Value: 2097152},
+ {Name: "O_APPEND", Value: 1048576},
+ {Name: "O_CLOEXEC", Value: 256},
+ {Name: "O_CREAT", Value: 65536},
+ {Name: "O_DIRECT", Value: 2048},
+ {Name: "O_DIRECTORY", Value: 524288},
+ {Name: "O_EXCL", Value: 131072},
+ {Name: "O_LARGEFILE", Value: 4096},
+ {Name: "O_NOATIME", Value: 8192},
+ {Name: "O_NOCTTY", Value: 512},
+ {Name: "O_NOFOLLOW", Value: 128},
+ {Name: "O_NONBLOCK", Value: 16},
+ {Name: "O_PATH", Value: 4194304},
{Name: "O_RDONLY"},
{Name: "O_RDWR", Value: 2},
- {Name: "O_SYNC", Value: 1052672},
- {Name: "O_TRUNC", Value: 512},
+ {Name: "O_SYNC", Value: 96},
+ {Name: "O_TRUNC", Value: 262144},
{Name: "O_WRONLY", Value: 1},
{Name: "POLLERR", Value: 8},
{Name: "POLLHUP", Value: 16},
@@ -1244,4 +1244,4 @@ var consts_amd64 = []ConstValue{
{Name: "ZX_WAIT_ASYNC_REPEATING", Value: 1},
}
-const revision_amd64 = "0a0b28e30dc33e2b0423bc11f59c8ea2ea705725"
+const revision_amd64 = "7b78fbcff5be58d55fce6250972288b9c5141689"