sys/linux: fix fcntl signature

This commit is contained in:
Dmitry Vyukov 2017-10-14 18:47:00 +02:00
parent 63c290f77c
commit 4a4739bd45
12 changed files with 26 additions and 16 deletions

View File

@ -2,7 +2,7 @@
#if defined(__i386__) || 0
#define GOARCH "386"
#define SYZ_REVISION "20782fd14495c17a4a404316929c89e9d66373d6"
#define SYZ_REVISION "4841fba73de6689a614cb7e8ff958c26a94034fc"
#define __NR_syz_emit_ethernet 1000000
#define __NR_syz_extract_tcp_res 1000001
#define __NR_syz_fuse_mount 1000002
@ -1501,7 +1501,7 @@ call_t syscalls[] = {
#if defined(__x86_64__) || 0
#define GOARCH "amd64"
#define SYZ_REVISION "c1ab3550b8fbe92662ee054df76419327b5b72a7"
#define SYZ_REVISION "634eec8168f49dcd8dd0ac6e8803189af567b2c4"
#define __NR_syz_emit_ethernet 1000000
#define __NR_syz_extract_tcp_res 1000001
#define __NR_syz_fuse_mount 1000002
@ -3061,7 +3061,7 @@ call_t syscalls[] = {
#if defined(__arm__) || 0
#define GOARCH "arm"
#define SYZ_REVISION "48d11406b51cb3dad2399863375cfc24d4892473"
#define SYZ_REVISION "17664064d159eafa86cd7b4f87ab64810ff1531c"
#define __NR_syz_emit_ethernet 1000000
#define __NR_syz_extract_tcp_res 1000001
#define __NR_syz_fuse_mount 1000002
@ -4574,7 +4574,7 @@ call_t syscalls[] = {
#if defined(__aarch64__) || 0
#define GOARCH "arm64"
#define SYZ_REVISION "65746b600515d1f1026ed56961d3450e70d65878"
#define SYZ_REVISION "ce906adf266dcf542faa4257f632ba685986e674"
#define __NR_syz_emit_ethernet 1000000
#define __NR_syz_extract_tcp_res 1000001
#define __NR_syz_fuse_mount 1000002
@ -6062,7 +6062,7 @@ call_t syscalls[] = {
#if defined(__ppc64__) || defined(__PPC64__) || defined(__powerpc64__) || 0
#define GOARCH "ppc64le"
#define SYZ_REVISION "5e9d29319478130f5d8b9238e869d979870e5cb3"
#define SYZ_REVISION "474129cd7e27c1ae9481711795b06bddabf96809"
#define __NR_syz_emit_ethernet 1000000
#define __NR_syz_extract_tcp_res 1000001
#define __NR_syz_fuse_mount 1000002

View File

@ -6306,7 +6306,7 @@ var syscalls_386 = []*Syscall{
}},
{ID: 109, NR: 55, Name: "fcntl$notify", CallName: "fcntl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fcntl_notify", FldName: "cmd", TypeSize: 4}}, Vals: []uint64{2147483648, 1, 2, 4, 8, 16, 32}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1026},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fcntl_notify", FldName: "typ", TypeSize: 4}}, Vals: []uint64{2147483648, 1, 2, 4, 8, 16, 32}},
}},
{ID: 110, NR: 55, Name: "fcntl$setflags", CallName: "fcntl", Args: []Type{
@ -14447,6 +14447,7 @@ var consts_386 = []ConstValue{
{Name: "F_GETPIPE_SZ", Value: 1032},
{Name: "F_GETSIG", Value: 11},
{Name: "F_GET_SEALS", Value: 1034},
{Name: "F_NOTIFY", Value: 1026},
{Name: "F_OWNER_PGRP", Value: 2},
{Name: "F_OWNER_PID", Value: 1},
{Name: "F_OWNER_TID"},
@ -16740,4 +16741,4 @@ var consts_386 = []ConstValue{
{Name: "__WNOTHREAD", Value: 536870912},
}
const revision_386 = "20782fd14495c17a4a404316929c89e9d66373d6"
const revision_386 = "4841fba73de6689a614cb7e8ff958c26a94034fc"

View File

@ -6543,7 +6543,7 @@ var syscalls_amd64 = []*Syscall{
}},
{ID: 120, NR: 72, Name: "fcntl$notify", CallName: "fcntl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fcntl_notify", FldName: "cmd", TypeSize: 8}}, Vals: []uint64{2147483648, 1, 2, 4, 8, 16, 32}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1026},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fcntl_notify", FldName: "typ", TypeSize: 8}}, Vals: []uint64{2147483648, 1, 2, 4, 8, 16, 32}},
}},
{ID: 121, NR: 72, Name: "fcntl$setflags", CallName: "fcntl", Args: []Type{
@ -14944,6 +14944,7 @@ var consts_amd64 = []ConstValue{
{Name: "F_GETPIPE_SZ", Value: 1032},
{Name: "F_GETSIG", Value: 11},
{Name: "F_GET_SEALS", Value: 1034},
{Name: "F_NOTIFY", Value: 1026},
{Name: "F_OWNER_PGRP", Value: 2},
{Name: "F_OWNER_PID", Value: 1},
{Name: "F_OWNER_TID"},
@ -17270,4 +17271,4 @@ var consts_amd64 = []ConstValue{
{Name: "__WNOTHREAD", Value: 536870912},
}
const revision_amd64 = "c1ab3550b8fbe92662ee054df76419327b5b72a7"
const revision_amd64 = "634eec8168f49dcd8dd0ac6e8803189af567b2c4"

View File

@ -6208,7 +6208,7 @@ var syscalls_arm = []*Syscall{
}},
{ID: 118, NR: 9437239, Name: "fcntl$notify", CallName: "fcntl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fcntl_notify", FldName: "cmd", TypeSize: 4}}, Vals: []uint64{2147483648, 1, 2, 4, 8, 16, 32}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1026},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fcntl_notify", FldName: "typ", TypeSize: 4}}, Vals: []uint64{2147483648, 1, 2, 4, 8, 16, 32}},
}},
{ID: 119, NR: 9437239, Name: "fcntl$setflags", CallName: "fcntl", Args: []Type{
@ -14390,6 +14390,7 @@ var consts_arm = []ConstValue{
{Name: "F_GETPIPE_SZ", Value: 1032},
{Name: "F_GETSIG", Value: 11},
{Name: "F_GET_SEALS", Value: 1034},
{Name: "F_NOTIFY", Value: 1026},
{Name: "F_OWNER_PGRP", Value: 2},
{Name: "F_OWNER_PID", Value: 1},
{Name: "F_OWNER_TID"},
@ -16637,4 +16638,4 @@ var consts_arm = []ConstValue{
{Name: "__WNOTHREAD", Value: 536870912},
}
const revision_arm = "48d11406b51cb3dad2399863375cfc24d4892473"
const revision_arm = "17664064d159eafa86cd7b4f87ab64810ff1531c"

View File

@ -6283,7 +6283,7 @@ var syscalls_arm64 = []*Syscall{
}},
{ID: 111, NR: 25, Name: "fcntl$notify", CallName: "fcntl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fcntl_notify", FldName: "cmd", TypeSize: 8}}, Vals: []uint64{2147483648, 1, 2, 4, 8, 16, 32}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1026},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fcntl_notify", FldName: "typ", TypeSize: 8}}, Vals: []uint64{2147483648, 1, 2, 4, 8, 16, 32}},
}},
{ID: 112, NR: 25, Name: "fcntl$setflags", CallName: "fcntl", Args: []Type{
@ -14407,6 +14407,7 @@ var consts_arm64 = []ConstValue{
{Name: "F_GETPIPE_SZ", Value: 1032},
{Name: "F_GETSIG", Value: 11},
{Name: "F_GET_SEALS", Value: 1034},
{Name: "F_NOTIFY", Value: 1026},
{Name: "F_OWNER_PGRP", Value: 2},
{Name: "F_OWNER_PID", Value: 1},
{Name: "F_OWNER_TID"},
@ -16647,4 +16648,4 @@ var consts_arm64 = []ConstValue{
{Name: "__WNOTHREAD", Value: 536870912},
}
const revision_arm64 = "65746b600515d1f1026ed56961d3450e70d65878"
const revision_arm64 = "ce906adf266dcf542faa4257f632ba685986e674"

View File

@ -6160,7 +6160,7 @@ var syscalls_ppc64le = []*Syscall{
}},
{ID: 119, NR: 55, Name: "fcntl$notify", CallName: "fcntl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fcntl_notify", FldName: "cmd", TypeSize: 8}}, Vals: []uint64{2147483648, 1, 2, 4, 8, 16, 32}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1026},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fcntl_notify", FldName: "typ", TypeSize: 8}}, Vals: []uint64{2147483648, 1, 2, 4, 8, 16, 32}},
}},
{ID: 120, NR: 55, Name: "fcntl$setflags", CallName: "fcntl", Args: []Type{
@ -14106,6 +14106,7 @@ var consts_ppc64le = []ConstValue{
{Name: "F_GETPIPE_SZ", Value: 1032},
{Name: "F_GETSIG", Value: 11},
{Name: "F_GET_SEALS", Value: 1034},
{Name: "F_NOTIFY", Value: 1026},
{Name: "F_OWNER_PGRP", Value: 2},
{Name: "F_OWNER_PID", Value: 1},
{Name: "F_OWNER_TID"},
@ -16336,4 +16337,4 @@ var consts_ppc64le = []ConstValue{
{Name: "__WNOTHREAD", Value: 536870912},
}
const revision_ppc64le = "5e9d29319478130f5d8b9238e869d979870e5cb3"
const revision_ppc64le = "474129cd7e27c1ae9481711795b06bddabf96809"

View File

@ -183,7 +183,7 @@ fcntl$getownex(fd fd, cmd const[F_GETOWN_EX], arg ptr[out, f_owner_ex])
fcntl$setownex(fd fd, cmd const[F_SETOWN_EX], arg ptr[in, f_owner_ex])
fcntl$setsig(fd fd, cmd const[F_SETSIG], sig signalno)
fcntl$setlease(fd fd, cmd const[F_SETLEASE], typ flags[flock_type])
fcntl$notify(fd fd, cmd flags[fcntl_notify], typ flags[fcntl_notify])
fcntl$notify(fd fd, cmd const[F_NOTIFY], typ flags[fcntl_notify])
fcntl$setpipe(fd fd, cmd const[F_SETPIPE_SZ], sz intptr)
fcntl$addseals(fd fd, cmd const[F_ADD_SEALS], seals flags[seal_types])

View File

@ -133,6 +133,7 @@ F_GETOWN_EX = 16
F_GETPIPE_SZ = 1032
F_GETSIG = 11
F_GET_SEALS = 1034
F_NOTIFY = 1026
F_OWNER_PGRP = 2
F_OWNER_PID = 1
F_OWNER_TID = 0

View File

@ -133,6 +133,7 @@ F_GETOWN_EX = 16
F_GETPIPE_SZ = 1032
F_GETSIG = 11
F_GET_SEALS = 1034
F_NOTIFY = 1026
F_OWNER_PGRP = 2
F_OWNER_PID = 1
F_OWNER_TID = 0

View File

@ -133,6 +133,7 @@ F_GETOWN_EX = 16
F_GETPIPE_SZ = 1032
F_GETSIG = 11
F_GET_SEALS = 1034
F_NOTIFY = 1026
F_OWNER_PGRP = 2
F_OWNER_PID = 1
F_OWNER_TID = 0

View File

@ -133,6 +133,7 @@ F_GETOWN_EX = 16
F_GETPIPE_SZ = 1032
F_GETSIG = 11
F_GET_SEALS = 1034
F_NOTIFY = 1026
F_OWNER_PGRP = 2
F_OWNER_PID = 1
F_OWNER_TID = 0

View File

@ -133,6 +133,7 @@ F_GETOWN_EX = 16
F_GETPIPE_SZ = 1032
F_GETSIG = 11
F_GET_SEALS = 1034
F_NOTIFY = 1026
F_OWNER_PGRP = 2
F_OWNER_PID = 1
F_OWNER_TID = 0