From 3e679c51c03ac13a5b4b601873689925eda3cc16 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 2 Apr 2018 14:21:45 +0200 Subject: pkg/compiler: support non-zero terminated filenames Now file names become: string[filename] with a possibility of using other string features: stringnoz[filename] string[filename, CONST_SIZE] and filename is left as type alias as it is commonly used: type filename string[filename] --- sys/linux/386.go | 46 ++++++++++++++++---------------- sys/linux/amd64.go | 46 ++++++++++++++++---------------- sys/linux/arm.go | 59 +++++++++++++++++++++-------------------- sys/linux/arm64.go | 46 ++++++++++++++++---------------- sys/linux/filesystem.txt | 3 +-- sys/linux/netfilter.txt | 3 +-- sys/linux/ppc64le.go | 46 ++++++++++++++++---------------- sys/linux/socket_unix.txt | 2 +- sys/linux/socket_unix_arm.const | 1 + 9 files changed, 126 insertions(+), 126 deletions(-) (limited to 'sys/linux') diff --git a/sys/linux/386.go b/sys/linux/386.go index 7e1645d84..5d72991f5 100644 --- a/sys/linux/386.go +++ b/sys/linux/386.go @@ -839,7 +839,7 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"check_int_print_mask\", array[flags[fs_opt_digits, int8]]]"}, FldName: "check_int_print_mask"}, &StructType{Key: StructKey{Name: "fs_opt[\"commit\", array[flags[fs_opt_digits, int8]]]"}, FldName: "commit"}, &StructType{Key: StructKey{Name: "fs_opt[\"thread_pool\", array[flags[fs_opt_digits, int8]]]"}, FldName: "thread_pool"}, - &StructType{Key: StructKey{Name: "fs_opt[\"device\", filename]"}, FldName: "device"}, + &StructType{Key: StructKey{Name: "fs_opt[\"device\", stringnoz[filename]]"}, FldName: "device"}, &StructType{Key: StructKey{Name: "fs_opt[\"subvolid\", stringnoz]"}, FldName: "subvolid"}, &StructType{Key: StructKey{Name: "fs_opt[\"subvol\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "subvol"}, &StructType{Key: StructKey{Name: "fs_opt[\"max_inline\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "max_inline"}, @@ -2492,9 +2492,9 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"auto_da_alloc\", array[flags[fs_opt_digits, int8]]]"}, FldName: "auto_da_alloc_val"}, &StructType{Key: StructKey{Name: "fs_opt[\"init_itable\", array[flags[fs_opt_digits, int8]]]"}, FldName: "init_itable_val"}, &StructType{Key: StructKey{Name: "fs_opt[\"max_dir_size_kb\", array[flags[fs_opt_digits, int8]]]"}, FldName: "max_dir_size_kb"}, - &StructType{Key: StructKey{Name: "fs_opt[\"journal_path\", filename]"}, FldName: "journal_path"}, - &StructType{Key: StructKey{Name: "fs_opt[\"grpjquota\", filename]"}, FldName: "grpjquota_path"}, - &StructType{Key: StructKey{Name: "fs_opt[\"usrjquota\", filename]"}, FldName: "usrjquota_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"journal_path\", stringnoz[filename]]"}, FldName: "journal_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"grpjquota\", stringnoz[filename]]"}, FldName: "grpjquota_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"usrjquota\", stringnoz[filename]]"}, FldName: "usrjquota_path"}, }}}, {Key: StructKey{Name: "f_owner_ex"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "f_owner_ex", TypeSize: 8}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "f_owner_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2}}, @@ -2722,10 +2722,10 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"device\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"device\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"device\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"device\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 6}, Kind: 2, Values: []string{"device"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"dir_umask"}, NoZ: true}, @@ -2777,10 +2777,10 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"grpjquota\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"grpjquota\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"grpjquota\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"grpjquota\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"grpjquota"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"hostdata\", stringnoz]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"hostdata\", stringnoz]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 8}, Kind: 2, Values: []string{"hostdata"}, NoZ: true}, @@ -2802,10 +2802,10 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "val", IsVarlen: true}, Kind: 2, SubKind: "codepages_names", Values: []string{"macceltic", "maccenteuro", "maccroatian", "maccyrillic", "macgaelic", "macgreek", "maciceland", "macinuit", "macroman", "macromanian", "macturkish", "ascii", "default", "cp1250", "cp1251", "cp1255", "cp437", "cp737", "cp775", "cp850", "cp852", "cp855", "cp857", "cp860", "cp861", "cp862", "cp863", "cp864", "cp865", "cp866", "cp869", "cp874", "cp932", "cp936", "cp949", "cp950", "euc-jp", "iso8859-13", "iso8859-14", "iso8859-15", "iso8859-1", "iso8859-2", "iso8859-3", "iso8859-4", "iso8859-5", "iso8859-6", "iso8859-7", "iso8859-9", "koi8-r", "koi8-ru", "koi8-u", "utf8", "none"}, NoZ: true}, }}}, - {Key: StructKey{Name: "fs_opt[\"jdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"jdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"jdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"jdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 4}, Kind: 2, Values: []string{"jdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"journal_dev\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_dev\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 11}, Kind: 2, Values: []string{"journal_dev"}, NoZ: true}, @@ -2817,10 +2817,10 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"journal_path\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_path\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"journal_path\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_path\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 12}, Kind: 2, Values: []string{"journal_path"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"locktable\", stringnoz]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"locktable\", stringnoz]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"locktable"}, NoZ: true}, @@ -2837,10 +2837,10 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"logdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"logdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"logdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"logdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 6}, Kind: 2, Values: []string{"logdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"max_batch_time\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"max_batch_time\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 14}, Kind: 2, Values: []string{"max_batch_time"}, NoZ: true}, @@ -2907,10 +2907,10 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"rtdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"rtdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"rtdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"rtdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"rtdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"sb\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"sb\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 2}, Kind: 2, Values: []string{"sb"}, NoZ: true}, @@ -3012,10 +3012,10 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"usrjquota\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"usrjquota\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"usrjquota\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"usrjquota\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"usrjquota"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[btrfs_options]", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "btrfs_options"}, FldName: "elem"}, @@ -9508,7 +9508,7 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"commit\", array[flags[fs_opt_digits, int8]]]"}, FldName: "commit"}, &StructType{Key: StructKey{Name: "fs_opt[\"resize\", array[flags[fs_opt_digits, int8]]]"}, FldName: "resize"}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "resize_auto", TypeSize: 11}, Kind: 2, Values: []string{"resize=auto"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"jdev\", filename]"}, FldName: "jdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"jdev\", stringnoz[filename]]"}, FldName: "jdev"}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "jqfmt_vfsold", TypeSize: 12}, Kind: 2, Values: []string{"jqfmt=vfsold"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "jqfmt_vfsv0", TypeSize: 11}, Kind: 2, Values: []string{"jqfmt=vfsv0"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "hash_tea", TypeSize: 8}, Kind: 2, Values: []string{"hash=tea"}, NoZ: true}, @@ -12362,8 +12362,8 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"swidth\", array[flags[fs_opt_digits, int8]]]"}, FldName: "swidth"}, &StructType{Key: StructKey{Name: "fs_opt[\"logbsize\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "logbsize"}, &StructType{Key: StructKey{Name: "fs_opt[\"allocsize\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "allocsize"}, - &StructType{Key: StructKey{Name: "fs_opt[\"logdev\", filename]"}, FldName: "logdev"}, - &StructType{Key: StructKey{Name: "fs_opt[\"rtdev\", filename]"}, FldName: "rtdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"logdev\", stringnoz[filename]]"}, FldName: "logdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"rtdev\", stringnoz[filename]]"}, FldName: "rtdev"}, }}}, {Key: StructKey{Name: "xt_CHECKSUM_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_CHECKSUM_info", TypeSize: 1}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "operation", TypeSize: 1}}, Val: 1}, @@ -12419,7 +12419,7 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 2}}, Val: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bpf_program_num_elem", TypeSize: 2}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}}, - &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "path", TypeSize: 512}, Kind: 1, RangeBegin: 512, RangeEnd: 512}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "path", TypeSize: 512}, Kind: 3}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "filter", TypeSize: 4}}}, }}}, {Key: StructKey{Name: "xt_bpf_info_v1"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_bpf_info_v1", TypeSize: 524}, Fields: []Type{ @@ -27830,4 +27830,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "95c0c5827460dd0db116e00429bad9d3fe5778de" +const revision_386 = "32b0baef6733b7b01f968ccaf3b9966898e7454d" diff --git a/sys/linux/amd64.go b/sys/linux/amd64.go index 418156648..c0db6d5c4 100644 --- a/sys/linux/amd64.go +++ b/sys/linux/amd64.go @@ -844,7 +844,7 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"check_int_print_mask\", array[flags[fs_opt_digits, int8]]]"}, FldName: "check_int_print_mask"}, &StructType{Key: StructKey{Name: "fs_opt[\"commit\", array[flags[fs_opt_digits, int8]]]"}, FldName: "commit"}, &StructType{Key: StructKey{Name: "fs_opt[\"thread_pool\", array[flags[fs_opt_digits, int8]]]"}, FldName: "thread_pool"}, - &StructType{Key: StructKey{Name: "fs_opt[\"device\", filename]"}, FldName: "device"}, + &StructType{Key: StructKey{Name: "fs_opt[\"device\", stringnoz[filename]]"}, FldName: "device"}, &StructType{Key: StructKey{Name: "fs_opt[\"subvolid\", stringnoz]"}, FldName: "subvolid"}, &StructType{Key: StructKey{Name: "fs_opt[\"subvol\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "subvol"}, &StructType{Key: StructKey{Name: "fs_opt[\"max_inline\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "max_inline"}, @@ -2568,9 +2568,9 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"auto_da_alloc\", array[flags[fs_opt_digits, int8]]]"}, FldName: "auto_da_alloc_val"}, &StructType{Key: StructKey{Name: "fs_opt[\"init_itable\", array[flags[fs_opt_digits, int8]]]"}, FldName: "init_itable_val"}, &StructType{Key: StructKey{Name: "fs_opt[\"max_dir_size_kb\", array[flags[fs_opt_digits, int8]]]"}, FldName: "max_dir_size_kb"}, - &StructType{Key: StructKey{Name: "fs_opt[\"journal_path\", filename]"}, FldName: "journal_path"}, - &StructType{Key: StructKey{Name: "fs_opt[\"grpjquota\", filename]"}, FldName: "grpjquota_path"}, - &StructType{Key: StructKey{Name: "fs_opt[\"usrjquota\", filename]"}, FldName: "usrjquota_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"journal_path\", stringnoz[filename]]"}, FldName: "journal_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"grpjquota\", stringnoz[filename]]"}, FldName: "grpjquota_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"usrjquota\", stringnoz[filename]]"}, FldName: "usrjquota_path"}, }}}, {Key: StructKey{Name: "f_owner_ex"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "f_owner_ex", TypeSize: 8}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "f_owner_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2}}, @@ -2800,10 +2800,10 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"device\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"device\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"device\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"device\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 6}, Kind: 2, Values: []string{"device"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"dir_umask"}, NoZ: true}, @@ -2855,10 +2855,10 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"grpjquota\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"grpjquota\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"grpjquota\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"grpjquota\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"grpjquota"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"hostdata\", stringnoz]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"hostdata\", stringnoz]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 8}, Kind: 2, Values: []string{"hostdata"}, NoZ: true}, @@ -2880,10 +2880,10 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "val", IsVarlen: true}, Kind: 2, SubKind: "codepages_names", Values: []string{"macceltic", "maccenteuro", "maccroatian", "maccyrillic", "macgaelic", "macgreek", "maciceland", "macinuit", "macroman", "macromanian", "macturkish", "ascii", "default", "cp1250", "cp1251", "cp1255", "cp437", "cp737", "cp775", "cp850", "cp852", "cp855", "cp857", "cp860", "cp861", "cp862", "cp863", "cp864", "cp865", "cp866", "cp869", "cp874", "cp932", "cp936", "cp949", "cp950", "euc-jp", "iso8859-13", "iso8859-14", "iso8859-15", "iso8859-1", "iso8859-2", "iso8859-3", "iso8859-4", "iso8859-5", "iso8859-6", "iso8859-7", "iso8859-9", "koi8-r", "koi8-ru", "koi8-u", "utf8", "none"}, NoZ: true}, }}}, - {Key: StructKey{Name: "fs_opt[\"jdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"jdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"jdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"jdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 4}, Kind: 2, Values: []string{"jdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"journal_dev\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_dev\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 11}, Kind: 2, Values: []string{"journal_dev"}, NoZ: true}, @@ -2895,10 +2895,10 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"journal_path\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_path\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"journal_path\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_path\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 12}, Kind: 2, Values: []string{"journal_path"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"locktable\", stringnoz]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"locktable\", stringnoz]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"locktable"}, NoZ: true}, @@ -2915,10 +2915,10 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"logdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"logdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"logdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"logdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 6}, Kind: 2, Values: []string{"logdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"max_batch_time\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"max_batch_time\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 14}, Kind: 2, Values: []string{"max_batch_time"}, NoZ: true}, @@ -2985,10 +2985,10 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"rtdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"rtdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"rtdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"rtdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"rtdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"sb\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"sb\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 2}, Kind: 2, Values: []string{"sb"}, NoZ: true}, @@ -3090,10 +3090,10 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"usrjquota\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"usrjquota\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"usrjquota\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"usrjquota\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"usrjquota"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[btrfs_options]", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "btrfs_options"}, FldName: "elem"}, @@ -9705,7 +9705,7 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"commit\", array[flags[fs_opt_digits, int8]]]"}, FldName: "commit"}, &StructType{Key: StructKey{Name: "fs_opt[\"resize\", array[flags[fs_opt_digits, int8]]]"}, FldName: "resize"}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "resize_auto", TypeSize: 11}, Kind: 2, Values: []string{"resize=auto"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"jdev\", filename]"}, FldName: "jdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"jdev\", stringnoz[filename]]"}, FldName: "jdev"}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "jqfmt_vfsold", TypeSize: 12}, Kind: 2, Values: []string{"jqfmt=vfsold"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "jqfmt_vfsv0", TypeSize: 11}, Kind: 2, Values: []string{"jqfmt=vfsv0"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "hash_tea", TypeSize: 8}, Kind: 2, Values: []string{"hash=tea"}, NoZ: true}, @@ -12657,8 +12657,8 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"swidth\", array[flags[fs_opt_digits, int8]]]"}, FldName: "swidth"}, &StructType{Key: StructKey{Name: "fs_opt[\"logbsize\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "logbsize"}, &StructType{Key: StructKey{Name: "fs_opt[\"allocsize\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "allocsize"}, - &StructType{Key: StructKey{Name: "fs_opt[\"logdev\", filename]"}, FldName: "logdev"}, - &StructType{Key: StructKey{Name: "fs_opt[\"rtdev\", filename]"}, FldName: "rtdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"logdev\", stringnoz[filename]]"}, FldName: "logdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"rtdev\", stringnoz[filename]]"}, FldName: "rtdev"}, }}}, {Key: StructKey{Name: "xt_CHECKSUM_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_CHECKSUM_info", TypeSize: 1}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "operation", TypeSize: 1}}, Val: 1}, @@ -12715,7 +12715,7 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 2}}, Val: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bpf_program_num_elem", TypeSize: 2}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}}, - &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "path", TypeSize: 512}, Kind: 1, RangeBegin: 512, RangeEnd: 512}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "path", TypeSize: 512}, Kind: 3}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "filter", TypeSize: 8}}}, }}}, {Key: StructKey{Name: "xt_bpf_info_v1"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_bpf_info_v1", TypeSize: 528}, Fields: []Type{ @@ -28486,4 +28486,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "14883eb285af454acfe15491ef6052eed4b8d77c" +const revision_amd64 = "8a54ebce3896b2b7a86248b86dc56d6072d33f4e" diff --git a/sys/linux/arm.go b/sys/linux/arm.go index b0bfbe0ce..62c09041f 100644 --- a/sys/linux/arm.go +++ b/sys/linux/arm.go @@ -844,7 +844,7 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"check_int_print_mask\", array[flags[fs_opt_digits, int8]]]"}, FldName: "check_int_print_mask"}, &StructType{Key: StructKey{Name: "fs_opt[\"commit\", array[flags[fs_opt_digits, int8]]]"}, FldName: "commit"}, &StructType{Key: StructKey{Name: "fs_opt[\"thread_pool\", array[flags[fs_opt_digits, int8]]]"}, FldName: "thread_pool"}, - &StructType{Key: StructKey{Name: "fs_opt[\"device\", filename]"}, FldName: "device"}, + &StructType{Key: StructKey{Name: "fs_opt[\"device\", stringnoz[filename]]"}, FldName: "device"}, &StructType{Key: StructKey{Name: "fs_opt[\"subvolid\", stringnoz]"}, FldName: "subvolid"}, &StructType{Key: StructKey{Name: "fs_opt[\"subvol\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "subvol"}, &StructType{Key: StructKey{Name: "fs_opt[\"max_inline\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "max_inline"}, @@ -2477,9 +2477,9 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"auto_da_alloc\", array[flags[fs_opt_digits, int8]]]"}, FldName: "auto_da_alloc_val"}, &StructType{Key: StructKey{Name: "fs_opt[\"init_itable\", array[flags[fs_opt_digits, int8]]]"}, FldName: "init_itable_val"}, &StructType{Key: StructKey{Name: "fs_opt[\"max_dir_size_kb\", array[flags[fs_opt_digits, int8]]]"}, FldName: "max_dir_size_kb"}, - &StructType{Key: StructKey{Name: "fs_opt[\"journal_path\", filename]"}, FldName: "journal_path"}, - &StructType{Key: StructKey{Name: "fs_opt[\"grpjquota\", filename]"}, FldName: "grpjquota_path"}, - &StructType{Key: StructKey{Name: "fs_opt[\"usrjquota\", filename]"}, FldName: "usrjquota_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"journal_path\", stringnoz[filename]]"}, FldName: "journal_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"grpjquota\", stringnoz[filename]]"}, FldName: "grpjquota_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"usrjquota\", stringnoz[filename]]"}, FldName: "usrjquota_path"}, }}}, {Key: StructKey{Name: "f_owner_ex"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "f_owner_ex", TypeSize: 8}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "f_owner_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2}}, @@ -2707,10 +2707,10 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"device\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"device\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"device\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"device\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 6}, Kind: 2, Values: []string{"device"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"dir_umask"}, NoZ: true}, @@ -2762,10 +2762,10 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"grpjquota\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"grpjquota\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"grpjquota\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"grpjquota\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"grpjquota"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"hostdata\", stringnoz]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"hostdata\", stringnoz]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 8}, Kind: 2, Values: []string{"hostdata"}, NoZ: true}, @@ -2787,10 +2787,10 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "val", IsVarlen: true}, Kind: 2, SubKind: "codepages_names", Values: []string{"macceltic", "maccenteuro", "maccroatian", "maccyrillic", "macgaelic", "macgreek", "maciceland", "macinuit", "macroman", "macromanian", "macturkish", "ascii", "default", "cp1250", "cp1251", "cp1255", "cp437", "cp737", "cp775", "cp850", "cp852", "cp855", "cp857", "cp860", "cp861", "cp862", "cp863", "cp864", "cp865", "cp866", "cp869", "cp874", "cp932", "cp936", "cp949", "cp950", "euc-jp", "iso8859-13", "iso8859-14", "iso8859-15", "iso8859-1", "iso8859-2", "iso8859-3", "iso8859-4", "iso8859-5", "iso8859-6", "iso8859-7", "iso8859-9", "koi8-r", "koi8-ru", "koi8-u", "utf8", "none"}, NoZ: true}, }}}, - {Key: StructKey{Name: "fs_opt[\"jdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"jdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"jdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"jdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 4}, Kind: 2, Values: []string{"jdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"journal_dev\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_dev\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 11}, Kind: 2, Values: []string{"journal_dev"}, NoZ: true}, @@ -2802,10 +2802,10 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"journal_path\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_path\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"journal_path\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_path\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 12}, Kind: 2, Values: []string{"journal_path"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"locktable\", stringnoz]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"locktable\", stringnoz]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"locktable"}, NoZ: true}, @@ -2822,10 +2822,10 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"logdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"logdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"logdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"logdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 6}, Kind: 2, Values: []string{"logdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"max_batch_time\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"max_batch_time\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 14}, Kind: 2, Values: []string{"max_batch_time"}, NoZ: true}, @@ -2892,10 +2892,10 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"rtdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"rtdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"rtdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"rtdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"rtdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"sb\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"sb\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 2}, Kind: 2, Values: []string{"sb"}, NoZ: true}, @@ -2997,10 +2997,10 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"usrjquota\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"usrjquota\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"usrjquota\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"usrjquota\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"usrjquota"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[btrfs_options]", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "btrfs_options"}, FldName: "elem"}, @@ -9331,7 +9331,7 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"commit\", array[flags[fs_opt_digits, int8]]]"}, FldName: "commit"}, &StructType{Key: StructKey{Name: "fs_opt[\"resize\", array[flags[fs_opt_digits, int8]]]"}, FldName: "resize"}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "resize_auto", TypeSize: 11}, Kind: 2, Values: []string{"resize=auto"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"jdev\", filename]"}, FldName: "jdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"jdev\", stringnoz[filename]]"}, FldName: "jdev"}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "jqfmt_vfsold", TypeSize: 12}, Kind: 2, Values: []string{"jqfmt=vfsold"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "jqfmt_vfsv0", TypeSize: 11}, Kind: 2, Values: []string{"jqfmt=vfsv0"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "hash_tea", TypeSize: 8}, Kind: 2, Values: []string{"hash=tea"}, NoZ: true}, @@ -11112,11 +11112,11 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "sockaddr_storage_in"}, FldName: "in"}, &StructType{Key: StructKey{Name: "sockaddr_storage_in6"}, FldName: "in6"}, }}}, - {Key: StructKey{Name: "sockaddr_un"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_un", TypeSize: 8}, Fields: []Type{ + {Key: StructKey{Name: "sockaddr_un"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_un", TypeSize: 110}, Fields: []Type{ &StructType{Key: StructKey{Name: "sockaddr_un_file"}, FldName: "file"}, &StructType{Key: StructKey{Name: "sockaddr_un_abstract"}, FldName: "abs"}, }}}, - {Key: StructKey{Name: "sockaddr_un", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_un", TypeSize: 8, ArgDir: 1}, Fields: []Type{ + {Key: StructKey{Name: "sockaddr_un", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_un", TypeSize: 110, ArgDir: 1}, Fields: []Type{ &StructType{Key: StructKey{Name: "sockaddr_un_file", Dir: 1}, FldName: "file"}, &StructType{Key: StructKey{Name: "sockaddr_un_abstract", Dir: 1}, FldName: "abs"}, }}}, @@ -11132,13 +11132,13 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 1}}, IsPad: true}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "id", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeBegin: 20000, RangeEnd: 20004}, }}}, - {Key: StructKey{Name: "sockaddr_un_file"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_un_file", TypeSize: 2}, Fields: []Type{ + {Key: StructKey{Name: "sockaddr_un_file"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_un_file", TypeSize: 110}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unix_socket_family", FldName: "family", TypeSize: 2}}, Vals: []uint64{1, 0}}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "path"}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "path", TypeSize: 108}, Kind: 3}, }}}, - {Key: StructKey{Name: "sockaddr_un_file", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_un_file", TypeSize: 2, ArgDir: 1}, Fields: []Type{ + {Key: StructKey{Name: "sockaddr_un_file", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_un_file", TypeSize: 110, ArgDir: 1}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unix_socket_family", FldName: "family", TypeSize: 2, ArgDir: 1}}, Vals: []uint64{1, 0}}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "path", ArgDir: 1}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "path", TypeSize: 108, ArgDir: 1}, Kind: 3}, }}}, {Key: StructKey{Name: "sockaddr_vm"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_vm", TypeSize: 16}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "svm_family", TypeSize: 2}}, Val: 40}, @@ -12191,8 +12191,8 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"swidth\", array[flags[fs_opt_digits, int8]]]"}, FldName: "swidth"}, &StructType{Key: StructKey{Name: "fs_opt[\"logbsize\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "logbsize"}, &StructType{Key: StructKey{Name: "fs_opt[\"allocsize\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "allocsize"}, - &StructType{Key: StructKey{Name: "fs_opt[\"logdev\", filename]"}, FldName: "logdev"}, - &StructType{Key: StructKey{Name: "fs_opt[\"rtdev\", filename]"}, FldName: "rtdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"logdev\", stringnoz[filename]]"}, FldName: "logdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"rtdev\", stringnoz[filename]]"}, FldName: "rtdev"}, }}}, {Key: StructKey{Name: "xt_CHECKSUM_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_CHECKSUM_info", TypeSize: 1}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "operation", TypeSize: 1}}, Val: 1}, @@ -12248,7 +12248,7 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 2}}, Val: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bpf_program_num_elem", TypeSize: 2}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}}, - &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "path", TypeSize: 512}, Kind: 1, RangeBegin: 512, RangeEnd: 512}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "path", TypeSize: 512}, Kind: 3}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "filter", TypeSize: 4}}}, }}}, {Key: StructKey{Name: "xt_bpf_info_v1"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_bpf_info_v1", TypeSize: 524}, Fields: []Type{ @@ -26861,6 +26861,7 @@ var consts_arm = []ConstValue{ {Name: "UFFD_FEATURE_MISSING_SHMEM", Value: 32}, {Name: "UFFD_FEATURE_PAGEFAULT_FLAG_WP", Value: 1}, {Name: "UMOUNT_NOFOLLOW", Value: 8}, + {Name: "UNIX_PATH_MAX", Value: 108}, {Name: "USER_CLIENT", Value: 1}, {Name: "VHOST_ACCESS_RO", Value: 1}, {Name: "VHOST_ACCESS_RW", Value: 3}, @@ -27549,4 +27550,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "f64917dfdea0e40f17c49a8c12080a688ebb9a4d" +const revision_arm = "f044fd67eca13dc803c1f57973510ca9186a2df6" diff --git a/sys/linux/arm64.go b/sys/linux/arm64.go index 714c0074d..91f336393 100644 --- a/sys/linux/arm64.go +++ b/sys/linux/arm64.go @@ -844,7 +844,7 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"check_int_print_mask\", array[flags[fs_opt_digits, int8]]]"}, FldName: "check_int_print_mask"}, &StructType{Key: StructKey{Name: "fs_opt[\"commit\", array[flags[fs_opt_digits, int8]]]"}, FldName: "commit"}, &StructType{Key: StructKey{Name: "fs_opt[\"thread_pool\", array[flags[fs_opt_digits, int8]]]"}, FldName: "thread_pool"}, - &StructType{Key: StructKey{Name: "fs_opt[\"device\", filename]"}, FldName: "device"}, + &StructType{Key: StructKey{Name: "fs_opt[\"device\", stringnoz[filename]]"}, FldName: "device"}, &StructType{Key: StructKey{Name: "fs_opt[\"subvolid\", stringnoz]"}, FldName: "subvolid"}, &StructType{Key: StructKey{Name: "fs_opt[\"subvol\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "subvol"}, &StructType{Key: StructKey{Name: "fs_opt[\"max_inline\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "max_inline"}, @@ -2568,9 +2568,9 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"auto_da_alloc\", array[flags[fs_opt_digits, int8]]]"}, FldName: "auto_da_alloc_val"}, &StructType{Key: StructKey{Name: "fs_opt[\"init_itable\", array[flags[fs_opt_digits, int8]]]"}, FldName: "init_itable_val"}, &StructType{Key: StructKey{Name: "fs_opt[\"max_dir_size_kb\", array[flags[fs_opt_digits, int8]]]"}, FldName: "max_dir_size_kb"}, - &StructType{Key: StructKey{Name: "fs_opt[\"journal_path\", filename]"}, FldName: "journal_path"}, - &StructType{Key: StructKey{Name: "fs_opt[\"grpjquota\", filename]"}, FldName: "grpjquota_path"}, - &StructType{Key: StructKey{Name: "fs_opt[\"usrjquota\", filename]"}, FldName: "usrjquota_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"journal_path\", stringnoz[filename]]"}, FldName: "journal_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"grpjquota\", stringnoz[filename]]"}, FldName: "grpjquota_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"usrjquota\", stringnoz[filename]]"}, FldName: "usrjquota_path"}, }}}, {Key: StructKey{Name: "f_owner_ex"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "f_owner_ex", TypeSize: 8}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "f_owner_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2}}, @@ -2800,10 +2800,10 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"device\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"device\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"device\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"device\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 6}, Kind: 2, Values: []string{"device"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"dir_umask"}, NoZ: true}, @@ -2855,10 +2855,10 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"grpjquota\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"grpjquota\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"grpjquota\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"grpjquota\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"grpjquota"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"hostdata\", stringnoz]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"hostdata\", stringnoz]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 8}, Kind: 2, Values: []string{"hostdata"}, NoZ: true}, @@ -2880,10 +2880,10 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "val", IsVarlen: true}, Kind: 2, SubKind: "codepages_names", Values: []string{"macceltic", "maccenteuro", "maccroatian", "maccyrillic", "macgaelic", "macgreek", "maciceland", "macinuit", "macroman", "macromanian", "macturkish", "ascii", "default", "cp1250", "cp1251", "cp1255", "cp437", "cp737", "cp775", "cp850", "cp852", "cp855", "cp857", "cp860", "cp861", "cp862", "cp863", "cp864", "cp865", "cp866", "cp869", "cp874", "cp932", "cp936", "cp949", "cp950", "euc-jp", "iso8859-13", "iso8859-14", "iso8859-15", "iso8859-1", "iso8859-2", "iso8859-3", "iso8859-4", "iso8859-5", "iso8859-6", "iso8859-7", "iso8859-9", "koi8-r", "koi8-ru", "koi8-u", "utf8", "none"}, NoZ: true}, }}}, - {Key: StructKey{Name: "fs_opt[\"jdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"jdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"jdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"jdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 4}, Kind: 2, Values: []string{"jdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"journal_dev\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_dev\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 11}, Kind: 2, Values: []string{"journal_dev"}, NoZ: true}, @@ -2895,10 +2895,10 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"journal_path\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_path\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"journal_path\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_path\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 12}, Kind: 2, Values: []string{"journal_path"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"locktable\", stringnoz]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"locktable\", stringnoz]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"locktable"}, NoZ: true}, @@ -2915,10 +2915,10 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"logdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"logdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"logdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"logdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 6}, Kind: 2, Values: []string{"logdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"max_batch_time\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"max_batch_time\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 14}, Kind: 2, Values: []string{"max_batch_time"}, NoZ: true}, @@ -2985,10 +2985,10 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"rtdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"rtdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"rtdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"rtdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"rtdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"sb\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"sb\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 2}, Kind: 2, Values: []string{"sb"}, NoZ: true}, @@ -3090,10 +3090,10 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"usrjquota\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"usrjquota\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"usrjquota\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"usrjquota\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"usrjquota"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[btrfs_options]", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "btrfs_options"}, FldName: "elem"}, @@ -9510,7 +9510,7 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"commit\", array[flags[fs_opt_digits, int8]]]"}, FldName: "commit"}, &StructType{Key: StructKey{Name: "fs_opt[\"resize\", array[flags[fs_opt_digits, int8]]]"}, FldName: "resize"}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "resize_auto", TypeSize: 11}, Kind: 2, Values: []string{"resize=auto"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"jdev\", filename]"}, FldName: "jdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"jdev\", stringnoz[filename]]"}, FldName: "jdev"}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "jqfmt_vfsold", TypeSize: 12}, Kind: 2, Values: []string{"jqfmt=vfsold"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "jqfmt_vfsv0", TypeSize: 11}, Kind: 2, Values: []string{"jqfmt=vfsv0"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "hash_tea", TypeSize: 8}, Kind: 2, Values: []string{"hash=tea"}, NoZ: true}, @@ -12433,8 +12433,8 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"swidth\", array[flags[fs_opt_digits, int8]]]"}, FldName: "swidth"}, &StructType{Key: StructKey{Name: "fs_opt[\"logbsize\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "logbsize"}, &StructType{Key: StructKey{Name: "fs_opt[\"allocsize\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "allocsize"}, - &StructType{Key: StructKey{Name: "fs_opt[\"logdev\", filename]"}, FldName: "logdev"}, - &StructType{Key: StructKey{Name: "fs_opt[\"rtdev\", filename]"}, FldName: "rtdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"logdev\", stringnoz[filename]]"}, FldName: "logdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"rtdev\", stringnoz[filename]]"}, FldName: "rtdev"}, }}}, {Key: StructKey{Name: "xt_CHECKSUM_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_CHECKSUM_info", TypeSize: 1}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "operation", TypeSize: 1}}, Val: 1}, @@ -12491,7 +12491,7 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 2}}, Val: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bpf_program_num_elem", TypeSize: 2}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}}, - &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "path", TypeSize: 512}, Kind: 1, RangeBegin: 512, RangeEnd: 512}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "path", TypeSize: 512}, Kind: 3}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "filter", TypeSize: 8}}}, }}}, {Key: StructKey{Name: "xt_bpf_info_v1"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_bpf_info_v1", TypeSize: 528}, Fields: []Type{ @@ -27868,4 +27868,4 @@ var consts_arm64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm64 = "6126db2a2079d8fe161c7d1e9c6179cf9a660b2d" +const revision_arm64 = "2b84001d08c857c19e8d97435de1bbe85336b0a3" diff --git a/sys/linux/filesystem.txt b/sys/linux/filesystem.txt index 0bcc7b598..b798b814d 100644 --- a/sys/linux/filesystem.txt +++ b/sys/linux/filesystem.txt @@ -66,8 +66,7 @@ type fs_opt_str[NAME] fs_opt[NAME, stringnoz] type fs_opt_oct[NAME] fs_opt[NAME, array[int8[0x30:0x37]]] type fs_opt_dec[NAME] fs_opt[NAME, array[flags[fs_opt_digits, int8]]] type fs_opt_dec_suffix[NAME] fs_opt[NAME, array[flags[fs_opt_digits_suffix, int8]]] -# TODO: we need a non-zero terminated filename here: -type fs_opt_filename[NAME] fs_opt[NAME, filename] +type fs_opt_filename[NAME] fs_opt[NAME, stringnoz[filename]] type fs_opt_codepage[NAME] fs_opt[NAME, stringnoz[codepages_names]] type fs_opt_cp_num[NAME] fs_opt[NAME, stringnoz[codepage_nums]] diff --git a/sys/linux/netfilter.txt b/sys/linux/netfilter.txt index 5344e8daa..1687b6dba 100644 --- a/sys/linux/netfilter.txt +++ b/sys/linux/netfilter.txt @@ -271,8 +271,7 @@ xt_bpf_info_pinned { mode const[XT_BPF_MODE_FD_PINNED, int16] bpf_program_num_elem const[0, int16] fd const[0, int32] -# TODO: we need fixed-size filename here. - path array[int8, XT_BPF_PATH_MAX] + path string[filename, XT_BPF_PATH_MAX] filter intptr } diff --git a/sys/linux/ppc64le.go b/sys/linux/ppc64le.go index eb526a1bf..cb490b740 100644 --- a/sys/linux/ppc64le.go +++ b/sys/linux/ppc64le.go @@ -838,7 +838,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"check_int_print_mask\", array[flags[fs_opt_digits, int8]]]"}, FldName: "check_int_print_mask"}, &StructType{Key: StructKey{Name: "fs_opt[\"commit\", array[flags[fs_opt_digits, int8]]]"}, FldName: "commit"}, &StructType{Key: StructKey{Name: "fs_opt[\"thread_pool\", array[flags[fs_opt_digits, int8]]]"}, FldName: "thread_pool"}, - &StructType{Key: StructKey{Name: "fs_opt[\"device\", filename]"}, FldName: "device"}, + &StructType{Key: StructKey{Name: "fs_opt[\"device\", stringnoz[filename]]"}, FldName: "device"}, &StructType{Key: StructKey{Name: "fs_opt[\"subvolid\", stringnoz]"}, FldName: "subvolid"}, &StructType{Key: StructKey{Name: "fs_opt[\"subvol\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "subvol"}, &StructType{Key: StructKey{Name: "fs_opt[\"max_inline\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "max_inline"}, @@ -2562,9 +2562,9 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"auto_da_alloc\", array[flags[fs_opt_digits, int8]]]"}, FldName: "auto_da_alloc_val"}, &StructType{Key: StructKey{Name: "fs_opt[\"init_itable\", array[flags[fs_opt_digits, int8]]]"}, FldName: "init_itable_val"}, &StructType{Key: StructKey{Name: "fs_opt[\"max_dir_size_kb\", array[flags[fs_opt_digits, int8]]]"}, FldName: "max_dir_size_kb"}, - &StructType{Key: StructKey{Name: "fs_opt[\"journal_path\", filename]"}, FldName: "journal_path"}, - &StructType{Key: StructKey{Name: "fs_opt[\"grpjquota\", filename]"}, FldName: "grpjquota_path"}, - &StructType{Key: StructKey{Name: "fs_opt[\"usrjquota\", filename]"}, FldName: "usrjquota_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"journal_path\", stringnoz[filename]]"}, FldName: "journal_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"grpjquota\", stringnoz[filename]]"}, FldName: "grpjquota_path"}, + &StructType{Key: StructKey{Name: "fs_opt[\"usrjquota\", stringnoz[filename]]"}, FldName: "usrjquota_path"}, }}}, {Key: StructKey{Name: "f_owner_ex"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "f_owner_ex", TypeSize: 8}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "f_owner_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2}}, @@ -2794,10 +2794,10 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"device\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"device\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"device\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"device\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 6}, Kind: 2, Values: []string{"device"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"dir_umask"}, NoZ: true}, @@ -2849,10 +2849,10 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"grpjquota\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"grpjquota\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"grpjquota\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"grpjquota\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"grpjquota"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"hostdata\", stringnoz]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"hostdata\", stringnoz]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 8}, Kind: 2, Values: []string{"hostdata"}, NoZ: true}, @@ -2874,10 +2874,10 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "val", IsVarlen: true}, Kind: 2, SubKind: "codepages_names", Values: []string{"macceltic", "maccenteuro", "maccroatian", "maccyrillic", "macgaelic", "macgreek", "maciceland", "macinuit", "macroman", "macromanian", "macturkish", "ascii", "default", "cp1250", "cp1251", "cp1255", "cp437", "cp737", "cp775", "cp850", "cp852", "cp855", "cp857", "cp860", "cp861", "cp862", "cp863", "cp864", "cp865", "cp866", "cp869", "cp874", "cp932", "cp936", "cp949", "cp950", "euc-jp", "iso8859-13", "iso8859-14", "iso8859-15", "iso8859-1", "iso8859-2", "iso8859-3", "iso8859-4", "iso8859-5", "iso8859-6", "iso8859-7", "iso8859-9", "koi8-r", "koi8-ru", "koi8-u", "utf8", "none"}, NoZ: true}, }}}, - {Key: StructKey{Name: "fs_opt[\"jdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"jdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"jdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"jdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 4}, Kind: 2, Values: []string{"jdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"journal_dev\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_dev\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 11}, Kind: 2, Values: []string{"journal_dev"}, NoZ: true}, @@ -2889,10 +2889,10 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"journal_path\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_path\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"journal_path\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"journal_path\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 12}, Kind: 2, Values: []string{"journal_path"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"locktable\", stringnoz]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"locktable\", stringnoz]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"locktable"}, NoZ: true}, @@ -2909,10 +2909,10 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"logdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"logdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"logdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"logdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 6}, Kind: 2, Values: []string{"logdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"max_batch_time\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"max_batch_time\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 14}, Kind: 2, Values: []string{"max_batch_time"}, NoZ: true}, @@ -2979,10 +2979,10 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"rtdev\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"rtdev\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"rtdev\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"rtdev\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"rtdev"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt[\"sb\", array[flags[fs_opt_digits, int8]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"sb\", array[flags[fs_opt_digits, int8]]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 2}, Kind: 2, Values: []string{"sb"}, NoZ: true}, @@ -3084,10 +3084,10 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"usrjquota\", filename]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"usrjquota\", filename]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"usrjquota\", stringnoz[filename]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"usrjquota\", stringnoz[filename]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"usrjquota"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, - &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, {Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[btrfs_options]", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "btrfs_options"}, FldName: "elem"}, @@ -9465,7 +9465,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"commit\", array[flags[fs_opt_digits, int8]]]"}, FldName: "commit"}, &StructType{Key: StructKey{Name: "fs_opt[\"resize\", array[flags[fs_opt_digits, int8]]]"}, FldName: "resize"}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "resize_auto", TypeSize: 11}, Kind: 2, Values: []string{"resize=auto"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"jdev\", filename]"}, FldName: "jdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"jdev\", stringnoz[filename]]"}, FldName: "jdev"}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "jqfmt_vfsold", TypeSize: 12}, Kind: 2, Values: []string{"jqfmt=vfsold"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "jqfmt_vfsv0", TypeSize: 11}, Kind: 2, Values: []string{"jqfmt=vfsv0"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "hash_tea", TypeSize: 8}, Kind: 2, Values: []string{"hash=tea"}, NoZ: true}, @@ -12301,8 +12301,8 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"swidth\", array[flags[fs_opt_digits, int8]]]"}, FldName: "swidth"}, &StructType{Key: StructKey{Name: "fs_opt[\"logbsize\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "logbsize"}, &StructType{Key: StructKey{Name: "fs_opt[\"allocsize\", array[flags[fs_opt_digits_suffix, int8]]]"}, FldName: "allocsize"}, - &StructType{Key: StructKey{Name: "fs_opt[\"logdev\", filename]"}, FldName: "logdev"}, - &StructType{Key: StructKey{Name: "fs_opt[\"rtdev\", filename]"}, FldName: "rtdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"logdev\", stringnoz[filename]]"}, FldName: "logdev"}, + &StructType{Key: StructKey{Name: "fs_opt[\"rtdev\", stringnoz[filename]]"}, FldName: "rtdev"}, }}}, {Key: StructKey{Name: "xt_CHECKSUM_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_CHECKSUM_info", TypeSize: 1}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "operation", TypeSize: 1}}, Val: 1}, @@ -12359,7 +12359,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 2}}, Val: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bpf_program_num_elem", TypeSize: 2}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}}, - &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "path", TypeSize: 512}, Kind: 1, RangeBegin: 512, RangeEnd: 512}, + &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "path", TypeSize: 512}, Kind: 3}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "filter", TypeSize: 8}}}, }}}, {Key: StructKey{Name: "xt_bpf_info_v1"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_bpf_info_v1", TypeSize: 528}, Fields: []Type{ @@ -27630,4 +27630,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "f4f6f2409448b0704d85d908ec0968994157ae6a" +const revision_ppc64le = "c13af053f60f33816aba186c4a06e174af1bd018" diff --git a/sys/linux/socket_unix.txt b/sys/linux/socket_unix.txt index 777361320..70c43db06 100644 --- a/sys/linux/socket_unix.txt +++ b/sys/linux/socket_unix.txt @@ -38,7 +38,7 @@ sockaddr_un [ sockaddr_un_file { family flags[unix_socket_family, int16] - path filename[UNIX_PATH_MAX] + path string[filename, UNIX_PATH_MAX] } sockaddr_un_abstract { diff --git a/sys/linux/socket_unix_arm.const b/sys/linux/socket_unix_arm.const index 962f502f0..8a724638d 100644 --- a/sys/linux/socket_unix_arm.const +++ b/sys/linux/socket_unix_arm.const @@ -7,6 +7,7 @@ SOCK_DGRAM = 2 SOCK_SEQPACKET = 5 SOCK_STREAM = 1 SOL_SOCKET = 1 +UNIX_PATH_MAX = 108 __NR_accept = 285 __NR_accept4 = 366 __NR_bind = 282 -- cgit mrf-deployment