diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-08-16 13:42:04 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-08-16 13:42:04 +0200 |
| commit | f93be58429d77a7928d96205e7ee34e4bbb7cc9c (patch) | |
| tree | c8c56fd4ba94b738778c951799799f2ac5629ead /sys/sys_amd64.go | |
| parent | 6a0246bf72830c3461e9784c104894882738541f (diff) | |
sys: add some known xattr names
Move xattr syscalls to own file and better describe xattr names.
They usually have prefix+name structure and there are some
known values.
Diffstat (limited to 'sys/sys_amd64.go')
| -rw-r--r-- | sys/sys_amd64.go | 56 |
1 files changed, 47 insertions, 9 deletions
diff --git a/sys/sys_amd64.go b/sys/sys_amd64.go index 4724e0e9a..e98aa617f 100644 --- a/sys/sys_amd64.go +++ b/sys/sys_amd64.go @@ -765,6 +765,8 @@ var structArray = []Type{ &StructType{TypeCommon: TypeCommon{TypeName: "vt_stat", IsOptional: false}}, &StructType{TypeCommon: TypeCommon{TypeName: "winsize", IsOptional: false}}, &StructType{TypeCommon: TypeCommon{TypeName: "x25_packet", IsOptional: false}, packed: true}, + &UnionType{TypeCommon: TypeCommon{TypeName: "xattr_name", IsOptional: false}, varlen: true}, + &StructType{TypeCommon: TypeCommon{TypeName: "xattr_name_random", IsOptional: false}, packed: true}, &UnionType{TypeCommon: TypeCommon{TypeName: "xfrm_address", IsOptional: false}}, &StructType{TypeCommon: TypeCommon{TypeName: "xfrm_filter", IsOptional: false}}, &StructType{TypeCommon: TypeCommon{TypeName: "xfrm_id", IsOptional: false}}, @@ -21093,6 +21095,42 @@ var structFields = []struct { &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "frame", ArgDir: DirOut, IsOptional: false}, TypeSize: 1, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{11, 15, 19, 23, 0, 35, 39, 1, 5, 9, 27, 31, 243, 247, 251, 255, 241, 253}}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}, }}, + {structKey{"xattr_name", "", DirIn}, []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "known", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "xattr_names", Values: []string{"system.posix_acl_access\x00", "system.posix_acl_default\x00", "system.advise\x00", "system.sockprotoname\x00", "com.apple.FinderInfo\x00", "com.apple.system.Security\x00"}, Length: 0}, + getStruct(structKey{"xattr_name_random", "random", DirIn}), + }}, + {structKey{"xattr_name", "", DirInOut}, []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "known", ArgDir: DirInOut, IsOptional: false}, Kind: BufferString, SubKind: "xattr_names", Values: []string{"system.posix_acl_access\x00", "system.posix_acl_default\x00", "system.advise\x00", "system.sockprotoname\x00", "com.apple.FinderInfo\x00", "com.apple.system.Security\x00"}, Length: 0}, + getStruct(structKey{"xattr_name_random", "random", DirInOut}), + }}, + {structKey{"xattr_name", "", DirOut}, []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "known", ArgDir: DirOut, IsOptional: false}, Kind: BufferString, SubKind: "xattr_names", Values: []string{"system.posix_acl_access\x00", "system.posix_acl_default\x00", "system.advise\x00", "system.sockprotoname\x00", "com.apple.FinderInfo\x00", "com.apple.system.Security\x00"}, Length: 0}, + getStruct(structKey{"xattr_name_random", "random", DirOut}), + }}, + {structKey{"xattr_name_random", "", DirIn}, []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "prefix", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "xattr_prefix", Values: []string{"system.\x00", "trusted.\x00", "security.\x00", "user.\x00", "btrfs.\x00", "osx.\x00", "os2.\x00"}, Length: 0}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}, + }}, + {structKey{"xattr_name_random", "", DirInOut}, []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "prefix", ArgDir: DirInOut, IsOptional: false}, Kind: BufferString, SubKind: "xattr_prefix", Values: []string{"system.\x00", "trusted.\x00", "security.\x00", "user.\x00", "btrfs.\x00", "osx.\x00", "os2.\x00"}, Length: 0}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", ArgDir: DirInOut, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}, + }}, + {structKey{"xattr_name_random", "", DirOut}, []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "prefix", ArgDir: DirOut, IsOptional: false}, Kind: BufferString, SubKind: "xattr_prefix", Values: []string{"system.\x00", "trusted.\x00", "security.\x00", "user.\x00", "btrfs.\x00", "osx.\x00", "os2.\x00"}, Length: 0}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", ArgDir: DirOut, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}, + }}, + {structKey{"xattr_name_random", "random", DirIn}, []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "prefix", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "xattr_prefix", Values: []string{"system.\x00", "trusted.\x00", "security.\x00", "user.\x00", "btrfs.\x00", "osx.\x00", "os2.\x00"}, Length: 0}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}, + }}, + {structKey{"xattr_name_random", "random", DirInOut}, []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "prefix", ArgDir: DirInOut, IsOptional: false}, Kind: BufferString, SubKind: "xattr_prefix", Values: []string{"system.\x00", "trusted.\x00", "security.\x00", "user.\x00", "btrfs.\x00", "osx.\x00", "os2.\x00"}, Length: 0}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", ArgDir: DirInOut, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}, + }}, + {structKey{"xattr_name_random", "random", DirOut}, []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "prefix", ArgDir: DirOut, IsOptional: false}, Kind: BufferString, SubKind: "xattr_prefix", Values: []string{"system.\x00", "trusted.\x00", "security.\x00", "user.\x00", "btrfs.\x00", "osx.\x00", "os2.\x00"}, Length: 0}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", ArgDir: DirOut, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}, + }}, {structKey{"xfrm_address", "", DirIn}, []Type{ getStruct(structKey{"ipv4_addr", "in", DirIn}), getStruct(structKey{"ipv6_addr", "in6", DirIn}), @@ -21609,12 +21647,12 @@ var Calls = []*Call{ &Call{Name: "fcntl$setsig", CallName: "fcntl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uintptr(10)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "signalno", FldName: "sig", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Kind: IntSignalno}}, NR: 72}, &Call{Name: "fcntl$setstatus", CallName: "fcntl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uintptr(4)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1024, 8192, 16384, 262144, 2048}}}, NR: 72}, &Call{Name: "fdatasync", CallName: "fdatasync", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}}, NR: 75}, - &Call{Name: "fgetxattr", CallName: "fgetxattr", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}}, NR: 193}, + &Call{Name: "fgetxattr", CallName: "fgetxattr", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}}, NR: 193}, &Call{Name: "finit_module", CallName: "finit_module", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "args", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1, 2}}}, NR: 313}, &Call{Name: "flistxattr", CallName: "flistxattr", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "list", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "list", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "list", ByteSize: 0}}, NR: 196}, &Call{Name: "flock", CallName: "flock", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "op", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1, 2, 8, 4}}}, NR: 73}, - &Call{Name: "fremovexattr", CallName: "fremovexattr", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}}, NR: 199}, - &Call{Name: "fsetxattr", CallName: "fsetxattr", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1, 2}}}, NR: 190}, + &Call{Name: "fremovexattr", CallName: "fremovexattr", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}}, NR: 199}, + &Call{Name: "fsetxattr", CallName: "fsetxattr", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1, 2}}}, NR: 190}, &Call{Name: "fstat", CallName: "fstat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "statbuf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"stat", "", DirOut})}}, NR: 5}, &Call{Name: "fstatfs", CallName: "fstatfs", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 138}, &Call{Name: "fsync", CallName: "fsync", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}}, NR: 74}, @@ -21810,7 +21848,7 @@ var Calls = []*Call{ &Call{Name: "getsockopt$sock_timeval", CallName: "getsockopt", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uintptr(1)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "optname", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{20, 21}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "optval", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timeval", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "optlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "optval", ByteSize: 0}}}, NR: 55}, &Call{Name: "gettid", CallName: "gettid", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("pid")}, Args: []Type{}, NR: 186}, &Call{Name: "getuid", CallName: "getuid", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("uid")}, Args: []Type{}, NR: 102}, - &Call{Name: "getxattr", CallName: "getxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}}, NR: 191}, + &Call{Name: "getxattr", CallName: "getxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}}, NR: 191}, &Call{Name: "init_module", CallName: "init_module", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mod", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "mod", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "args", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}}, NR: 175}, &Call{Name: "inotify_add_watch", CallName: "inotify_add_watch", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "inotifydesc", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("inotifydesc")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_inotify", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_inotify")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mask", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1, 4, 8, 16, 256, 512, 1024, 2, 2048, 64, 128, 32, 33554432, 67108864, 536870912, 2147483648, 16777216}}}, NR: 254}, &Call{Name: "inotify_init", CallName: "inotify_init", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_inotify", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_inotify")}, Args: []Type{}, NR: 253}, @@ -22358,7 +22396,7 @@ var Calls = []*Call{ &Call{Name: "keyctl$unlink", CallName: "keyctl", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uintptr(9)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "key1", ArgDir: DirIn, IsOptional: false}, Desc: resource("key")}, &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "key2", ArgDir: DirIn, IsOptional: false}, Desc: resource("key")}}, NR: 250}, &Call{Name: "keyctl$update", CallName: "keyctl", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uintptr(2)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "key", ArgDir: DirIn, IsOptional: false}, Desc: resource("key")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "payload", ArgDir: DirIn, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "payload", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "paylen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "payload", ByteSize: 0}}, NR: 250}, &Call{Name: "lchown", CallName: "lchown", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", ArgDir: DirIn, IsOptional: false}, Desc: resource("uid")}, &ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "gid", ArgDir: DirIn, IsOptional: false}, Desc: resource("gid")}}, NR: 94}, - &Call{Name: "lgetxattr", CallName: "lgetxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}}, NR: 192}, + &Call{Name: "lgetxattr", CallName: "lgetxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}}, NR: 192}, &Call{Name: "link", CallName: "link", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 86}, &Call{Name: "linkat", CallName: "linkat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "oldfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "newfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{4096, 1024}}}, NR: 265}, &Call{Name: "listen", CallName: "listen", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "backlog", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, NR: 50}, @@ -22366,9 +22404,9 @@ var Calls = []*Call{ &Call{Name: "listxattr", CallName: "listxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "list", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "list", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "list", ByteSize: 0}}, NR: 194}, &Call{Name: "llistxattr", CallName: "llistxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "list", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "list", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "list", ByteSize: 0}}, NR: 195}, &Call{Name: "lookup_dcookie", CallName: "lookup_dcookie", Native: true, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "cookie", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: 212}, - &Call{Name: "lremovexattr", CallName: "lremovexattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}}, NR: 198}, + &Call{Name: "lremovexattr", CallName: "lremovexattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}}, NR: 198}, &Call{Name: "lseek", CallName: "lseek", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fileoff", FldName: "offset", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Kind: IntFileoff}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "whence", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{0, 1, 2, 3, 4}}}, NR: 8}, - &Call{Name: "lsetxattr", CallName: "lsetxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1, 2}}}, NR: 189}, + &Call{Name: "lsetxattr", CallName: "lsetxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1, 2}}}, NR: 189}, &Call{Name: "lstat", CallName: "lstat", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "statbuf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"stat", "", DirOut})}}, NR: 6}, &Call{Name: "madvise", CallName: "madvise", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "advice", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{0, 1, 2, 3, 4, 9, 10, 11, 100, 101, 12, 13, 14, 15, 16, 17}}}, NR: 28}, &Call{Name: "mbind", CallName: "mbind", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{0, 2, 3, 1, 32768, 16384}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "nodemask", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1, 2, 4}}}, NR: 237}, @@ -22513,7 +22551,7 @@ var Calls = []*Call{ &Call{Name: "recvmsg$kcm", CallName: "recvmsg", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_kcm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_kcm")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"recv_msghdr", "", DirIn})}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1073741824, 64, 8192, 1, 2, 32, 256, 65536}}}, NR: 47}, &Call{Name: "recvmsg$netrom", CallName: "recvmsg", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_netrom", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_netrom")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"msghdr_netrom", "", DirIn})}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1073741824, 64, 8192, 1, 2, 32, 256, 65536}}}, NR: 47}, &Call{Name: "remap_file_pages", CallName: "remap_file_pages", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "prot", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{4, 1, 2, 8, 16777216, 33554432}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "pgoff", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1, 2, 64, 32, 2048, 4096, 0, 16, 256, 262144, 8192, 65536, 16384, 32768, 131072, 0}}}, NR: 216}, - &Call{Name: "removexattr", CallName: "removexattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}}, NR: 197}, + &Call{Name: "removexattr", CallName: "removexattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}}, NR: 197}, &Call{Name: "rename", CallName: "rename", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 82}, &Call{Name: "renameat", CallName: "renameat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "oldfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "newfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 264}, &Call{Name: "renameat2", CallName: "renameat2", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "oldfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "newfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{2, 1, 4}}}, NR: 316}, @@ -22777,7 +22815,7 @@ var Calls = []*Call{ &Call{Name: "setsockopt$sock_timeval", CallName: "setsockopt", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uintptr(1)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "optname", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{20, 21}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "optval", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timeval", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "optlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "optval", ByteSize: 0}}, NR: 54}, &Call{Name: "setsockopt$sock_void", CallName: "setsockopt", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uintptr(1)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "optname", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{27, 36}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "optval", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uintptr(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "optlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uintptr(0)}}, NR: 54}, &Call{Name: "setuid", CallName: "setuid", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", ArgDir: DirIn, IsOptional: false}, Desc: resource("uid")}}, NR: 105}, - &Call{Name: "setxattr", CallName: "setxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1, 2}}}, NR: 188}, + &Call{Name: "setxattr", CallName: "setxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{1, 2}}}, NR: 188}, &Call{Name: "shmat", CallName: "shmat", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "shmaddr", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("shmaddr")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uintptr{8192, 4096, 16384}}}, NR: 30}, &Call{Name: "shmctl$IPC_INFO", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uintptr(3)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 31}, &Call{Name: "shmctl$IPC_RMID", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uintptr(0)}}, NR: 31}, |
