aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/test/gen/64.go8
-rw-r--r--sys/test/test.txt4
2 files changed, 11 insertions, 1 deletions
diff --git a/sys/test/gen/64.go b/sys/test/gen/64.go
index ce4ca5a73..681b7fee4 100644
--- a/sys/test/gen/64.go
+++ b/sys/test/gen/64.go
@@ -1262,6 +1262,12 @@ var syscalls_64 = []*Syscall{
{Name: "test$str0", CallName: "test", MissingArgs: 5, Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "a", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}},
}},
+ {Name: "test$str1", CallName: "test", MissingArgs: 5, Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "a", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 4}, Kind: 2, Values: []string{"foo\x00"}}},
+ }},
+ {Name: "test$str2", CallName: "test", MissingArgs: 5, Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "a", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 4}, Kind: 2, SubKind: "fixed_strings", Values: []string{"foo\x00", "bar\x00"}}},
+ }},
{Name: "test$struct", CallName: "test", MissingArgs: 5, Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "syz_struct0"}}},
}},
@@ -1340,4 +1346,4 @@ var consts_64 = []ConstValue{
{Name: "SYS_unsupported"},
}
-const revision_64 = "fd5870a81478a9208df976f4d8066bbdfa12f8e5"
+const revision_64 = "108f16d364fe32a8c41e4592f79eab831b5935a0"
diff --git a/sys/test/test.txt b/sys/test/test.txt
index bcbc3462f..3ebbf5979 100644
--- a/sys/test/test.txt
+++ b/sys/test/test.txt
@@ -14,8 +14,12 @@ test$int(a0 intptr, a1 int8, a2 int16, a3 int32, a4 int64)
# String types.
test$str0(a ptr[in, string])
+test$str1(a ptr[in, string["foo"]])
+test$str2(a ptr[in, string[fixed_strings]])
test$blob0(a ptr[in, array[int8]])
+fixed_strings = "foo", "bar"
+
# Opt arguments
test$opt0(a0 intptr[opt])