aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@freebsd.org>2018-12-08 09:50:02 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-12-08 11:33:41 +0100
commit60562a1d092193f944fb6404ea9de281324667df (patch)
treedea41e4cfe5dc1f45980bdcf92c3133f66e43800 /sys
parent6f379080a99dd2f5b413cbcabbd94f72fe7c1c61 (diff)
sys/freebsd: use a better description of msg_flags fields
As suggested by Dmitry us a better description of the msg_flags field, which is only used to provide information from the kernel to the application for recvmsg() calls. This means that the value provided is basically ignored.
Diffstat (limited to 'sys')
-rw-r--r--sys/freebsd/gen/amd64.go6
-rw-r--r--sys/freebsd/socket.txt4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/freebsd/gen/amd64.go b/sys/freebsd/gen/amd64.go
index 1d1a75d7e..419f89796 100644
--- a/sys/freebsd/gen/amd64.go
+++ b/sys/freebsd/gen/amd64.go
@@ -350,7 +350,7 @@ var structDescs_amd64 = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "msg_iovlen", TypeSize: 8, ArgDir: 2}}, Buf: "msg_iov"},
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "msg_control", TypeSize: 8, ArgDir: 2}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "msg_controllen", TypeSize: 8, ArgDir: 2}}, Buf: "msg_control"},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "msg_flags", TypeSize: 4, ArgDir: 2}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "msg_flags", TypeSize: 4, ArgDir: 2}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}}},
{Key: StructKey{Name: "rlimit"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rlimit", TypeSize: 16}, Fields: []Type{
@@ -400,7 +400,7 @@ var structDescs_amd64 = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "msg_iovlen", TypeSize: 8}}, Buf: "msg_iov"},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg_control", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "cmsghdr"}}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "msg_controllen", TypeSize: 8}}, BitSize: 8, Buf: "msg_control"},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "msg_flags", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "msg_flags", TypeSize: 4}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}}},
{Key: StructKey{Name: "shmid_ds"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "shmid_ds", TypeSize: 112}, Fields: []Type{
@@ -2406,4 +2406,4 @@ var consts_amd64 = []ConstValue{
{Name: "WUNTRACED", Value: 2},
}
-const revision_amd64 = "f71f0054afcc787e14a5077d417bbf12680393f7"
+const revision_amd64 = "22112dfc79f66bcb8c6e3f8f1cf5f7e0d005927f"
diff --git a/sys/freebsd/socket.txt b/sys/freebsd/socket.txt
index e7775250f..bbe312989 100644
--- a/sys/freebsd/socket.txt
+++ b/sys/freebsd/socket.txt
@@ -57,7 +57,7 @@ send_msghdr {
msg_iovlen len[msg_iov, intptr]
msg_control ptr[in, array[cmsghdr]]
msg_controllen bytesize[msg_control, intptr]
- msg_flags int32
+ msg_flags const[0, int32]
}
recv_msghdr {
@@ -67,7 +67,7 @@ recv_msghdr {
msg_iovlen len[msg_iov, intptr]
msg_control buffer[out]
msg_controllen len[msg_control, intptr]
- msg_flags int32
+ msg_flags const[0, int32]
}
cmsghdr {