2e89f95d brooks Nov. 17, 2021, 8:12 p.m.
Rename struct statfs32 to struct ostatfs32 to mirror struct ostatfs.
These structs are use for COMPAT4 support.  Stop using struct statfs32
for modern implementations as struct statfs uses fixed-width types
and it the same on all architectures.

Reviewed by:	kevans
cgit
381f6804 brooks Nov. 17, 2021, 8:12 p.m.
Reviewed by:	kevans
cgit
9946c920 brooks Nov. 17, 2021, 8:12 p.m.
Reviewed by:	kevans
cgit
ddae7b9a brooks Nov. 17, 2021, 8:12 p.m.
While the caller will never pass a larger value, we can use size_t
due to it being unsigned.

Reviewed by:	kevans
cgit
70c9698f brooks Nov. 17, 2021, 8:12 p.m.
The command is a u_long and unsigned integers do not require special
handling. The data argument isn't a special structure, just use char *.

Reviewed by:	kevans
cgit
8ba369ed brooks Nov. 17, 2021, 8:12 p.m.
Reviewed by:	kevans
cgit
a944d28d brooks Nov. 17, 2021, 8:12 p.m.
A number of syscalls have missing consts on their arguments relative to
the default syscalls.master.

Also, use timespec32 and timeval32 where appropriate.

No functional change.

Reviewed by:	kevans
cgit
43227e4c brooks Nov. 17, 2021, 8:12 p.m.
Nothing about the interface should prevent this from working so
go ahead and prototype it for consistency.

Reviewed by:	kevans
cgit
6de7c053 brooks Nov. 17, 2021, 8:12 p.m.
This matches the default ABI's struct __ucontext.

Reviewed by:	kevans
cgit
5fdbd21d brooks Nov. 17, 2021, 8:12 p.m.
Rename struct freebsd4_freebsd32_ucontext to struct freebsd4_ucontext32
allowing conversion from the default ABI's struct freebsd4_ucontext
by appending "32".  This has no practical effect as this type does not
actually exist.

Give freebsd4_freebsd32_sigreturn an ANSI C prototype.

Reviewed by:	kevans
cgit
85d1d2a6 brooks Nov. 17, 2021, 8:12 p.m.
This allows freebsd32 to use struct siginfo32 with an automatable
conversion.

Reviewed by:	kevans
cgit
f5032882 brooks Nov. 17, 2021, 8:12 p.m.
osendmsg takes an struct omsghdr * not a void *.

Reviewed by:	kevans
cgit
2385f4d1 brooks Nov. 17, 2021, 8:12 p.m.
No functional change as __socklen_t is an int.

Obtained from:	CheriBSD

Reviewed by:	kevans
cgit
b64f3dc2 brooks Nov. 17, 2021, 8:12 p.m.
Match the function decleration which takes an int not a signed int.
No functional change as the range of valid values is 0-2.

Obtained from: CheriBSD

Reviewed by:	kevans
cgit
b7fd8611 brooks Nov. 17, 2021, 8:12 p.m.
Add missing const qualifiers to a number of syscall arguments.

Obtained from:	CheriBSD

Reviewed by:	kevans
cgit