aboutsummaryrefslogtreecommitdiffstats
path: root/sys/netbsd
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/netbsd
parentba64d006de17a5bfa0c99e4b96711ba42f82e199 (diff)
sys: consistently mark all paddings as const[0]
Diffstat (limited to 'sys/netbsd')
-rw-r--r--sys/netbsd/fs.txt4
-rw-r--r--sys/netbsd/gen/amd64.go6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/netbsd/fs.txt b/sys/netbsd/fs.txt
index d4b5206f3..e4d367116 100644
--- a/sys/netbsd/fs.txt
+++ b/sys/netbsd/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_NOSIGPIPE, O_DSYNC, O_SYNC, O_RSYNC, O_ALT_IO, O_NOCTTY, O_DIRECT, O_DIRECTORY, O_ASYNC
diff --git a/sys/netbsd/gen/amd64.go b/sys/netbsd/gen/amd64.go
index aea604c97..706bb096c 100644
--- a/sys/netbsd/gen/amd64.go
+++ b/sys/netbsd/gen/amd64.go
@@ -321,8 +321,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: "timespec"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "timespec", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "sec", TypeSize: 8}}},
@@ -1640,4 +1640,4 @@ var consts_amd64 = []ConstValue{
{Name: "WUNTRACED", Value: 2},
}
-const revision_amd64 = "700e6f258d2aab7d3f9dcbb0bf34ad24dc98b899"
+const revision_amd64 = "a1a8ff2d3390c03118bf259766cd9af823ea9f9c"