syscalls: normalize orecvfrom and ogetsockname

Declare o<foo>_args rather than reusing the equivalent <foo>_args
structs.  Avoiding the addition of a new type isn't worth the
gratutious differences.

Reviewed by:	kib, imp
This commit is contained in:
Brooks Davis 2021-11-29 22:02:59 +00:00
parent 28f0471884
commit ba4e5253a3
2 changed files with 7 additions and 7 deletions

View file

@ -816,7 +816,7 @@
mode_t mode
);
}
125 AUE_RECVFROM COMPAT|NOARGS|CAPENABLED {
125 AUE_RECVFROM COMPAT|CAPENABLED {
int recvfrom(
int s,
_Out_writes_(len) void *buf,
@ -825,7 +825,7 @@
_Out_writes_bytes_(*fromlenaddr) struct sockaddr *from,
_Inout_ __socklen_t *fromlenaddr
);
} recvfrom recvfrom_args int
}
126 AUE_SETREUID STD|CAPENABLED {
int setreuid(
int ruid,
@ -963,13 +963,13 @@
149 AUE_O_QUOTA COMPAT {
int quota(void);
}
150 AUE_GETSOCKNAME COMPAT|NOARGS|CAPENABLED {
150 AUE_GETSOCKNAME COMPAT|CAPENABLED {
int getsockname(
int fdec,
int fdes,
_Out_writes_bytes_(*alen) struct sockaddr *asa,
_Inout_ __socklen_t *alen
);
} getsockname getsockname_args int
}
151-153 AUE_NULL RESERVED
; 154 is initialised by the NLM code, if present.
154 AUE_NULL NOSTD {

View file

@ -1103,7 +1103,7 @@ sys_recvfrom(struct thread *td, struct recvfrom_args *uap)
#ifdef COMPAT_OLDSOCK
int
orecvfrom(struct thread *td, struct recvfrom_args *uap)
orecvfrom(struct thread *td, struct orecvfrom_args *uap)
{
return (kern_recvfrom(td, uap->s, uap->buf, uap->len,
uap->flags | MSG_COMPAT, uap->from, uap->fromlenaddr));
@ -1411,7 +1411,7 @@ sys_getsockname(struct thread *td, struct getsockname_args *uap)
#ifdef COMPAT_OLDSOCK
int
ogetsockname(struct thread *td, struct getsockname_args *uap)
ogetsockname(struct thread *td, struct ogetsockname_args *uap)
{
return (user_getsockname(td, uap->fdes, uap->asa, uap->alen, true));
}