aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen/amd64.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-05-10 12:58:58 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-05-10 13:13:46 +0200
commit0a05e35530c788ed648f72b24f2291e5ad33d53e (patch)
tree65f92bc17834a8807e382dd238759b590a1871cb /sys/linux/gen/amd64.go
parent4af714615af57fb71736a9b63ea3ee0a601e9217 (diff)
sys/linux: add description of open_tree syscall
Diffstat (limited to 'sys/linux/gen/amd64.go')
-rw-r--r--sys/linux/gen/amd64.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index 6c276508c..8d5da3bd2 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -37294,6 +37294,11 @@ var syscalls_amd64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "handle", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "file_handle"}}},
&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, 4194304}, BitMask: true},
}},
+ {NR: 335, Name: "open_tree", CallName: "open_tree", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "dfd", TypeSize: 4, IsOptional: true}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_tree_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{4096, 2048, 32768, 256, 1, 524288}, BitMask: true},
+ }},
{NR: 257, Name: "openat", CallName: "openat", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fd", TypeSize: 4, IsOptional: true}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
@@ -43629,6 +43634,7 @@ var consts_amd64 = []ConstValue{
{Name: "AT_EMPTY_PATH", Value: 4096},
{Name: "AT_FDCWD", Value: 18446744073709551516},
{Name: "AT_NO_AUTOMOUNT", Value: 2048},
+ {Name: "AT_RECURSIVE", Value: 32768},
{Name: "AT_REMOVEDIR", Value: 512},
{Name: "AT_STATX_DONT_SYNC", Value: 16384},
{Name: "AT_STATX_FORCE_SYNC", Value: 8192},
@@ -46857,6 +46863,8 @@ var consts_amd64 = []ConstValue{
{Name: "N_NULL", Value: 27},
{Name: "N_TTY"},
{Name: "OMAGIC", Value: 263},
+ {Name: "OPEN_TREE_CLOEXEC", Value: 524288},
+ {Name: "OPEN_TREE_CLONE", Value: 1},
{Name: "OPTION_ADD_ADDR", Value: 32},
{Name: "OPTION_MP_CAPABLE", Value: 8},
{Name: "OPTION_MP_FCLOSE", Value: 128},
@@ -50937,6 +50945,7 @@ var consts_amd64 = []ConstValue{
{Name: "__NR_nanosleep", Value: 35},
{Name: "__NR_open", Value: 2},
{Name: "__NR_open_by_handle_at", Value: 304},
+ {Name: "__NR_open_tree", Value: 335},
{Name: "__NR_openat", Value: 257},
{Name: "__NR_pause", Value: 34},
{Name: "__NR_perf_event_open", Value: 298},
@@ -51087,4 +51096,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "eb7edeb6d37073cb308a4b0410d772ebca576f52"
+const revision_amd64 = "e41f453fb26afca010d939493df4d33eade9c188"