aboutsummaryrefslogtreecommitdiffstats
path: root/sys/openbsd
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-12-10 14:13:25 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-12-10 16:37:02 +0100
commit083e78159dfe39202cfd867a558a1ec6487ec476 (patch)
tree55eb94a36db86878b0e2f5eaff5c08a0288a73c4 /sys/openbsd
parentba64d006de17a5bfa0c99e4b96711ba42f82e199 (diff)
sys: consistently mark all paddings as const[0]
Diffstat (limited to 'sys/openbsd')
-rw-r--r--sys/openbsd/fs.txt4
-rw-r--r--sys/openbsd/gen/amd64.go6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/openbsd/fs.txt b/sys/openbsd/fs.txt
index 62bb65659..dd687dce4 100644
--- a/sys/openbsd/fs.txt
+++ b/sys/openbsd/fs.txt
@@ -59,8 +59,8 @@ stat {
mnsec int64
ctime int64
cnsec int64
- pad1 int32
- pad2 int32
+ pad1 const[0, int32]
+ pad2 const[0, int32]
}
open_flags = O_RDONLY, O_WRONLY, O_RDWR, O_APPEND, O_CREAT, O_TRUNC, O_EXCL, O_SHLOCK, O_EXLOCK, O_NOFOLLOW, O_CLOEXEC, O_DSYNC, O_SYNC, O_RSYNC, O_NOCTTY, O_DIRECTORY, O_ASYNC
diff --git a/sys/openbsd/gen/amd64.go b/sys/openbsd/gen/amd64.go
index ccf686942..93b3b46ec 100644
--- a/sys/openbsd/gen/amd64.go
+++ b/sys/openbsd/gen/amd64.go
@@ -336,8 +336,8 @@ var structDescs_amd64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "mnsec", TypeSize: 8, ArgDir: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "ctime", TypeSize: 8, ArgDir: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "cnsec", TypeSize: 8, ArgDir: 1}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pad1", TypeSize: 4, ArgDir: 1}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pad2", TypeSize: 4, ArgDir: 1}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad1", TypeSize: 4, ArgDir: 1}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad2", TypeSize: 4, ArgDir: 1}}},
}}},
{Key: StructKey{Name: "tcp_resources", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tcp_resources", TypeSize: 8, ArgDir: 1}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "tcp_seq_num", FldName: "seq", TypeSize: 4, ArgDir: 1}},
@@ -1896,4 +1896,4 @@ var consts_amd64 = []ConstValue{
{Name: "__MAP_NOREPLACE", Value: 2048},
}
-const revision_amd64 = "f94278824a33df295bd09539047df0b8e25da251"
+const revision_amd64 = "ea9d720726fb2c8bf7bed9d5c405e627d5ce3467"