syscalls: normalize (get|set)rlimit

Declare normal <foo>_args structs rather than going out of the way
to declare __<foo>_args.

Reviewed by:	kib, imp
This commit is contained in:
Brooks Davis 2021-11-29 22:02:59 +00:00
parent c2996f8ad9
commit 638c5fa8df
2 changed files with 6 additions and 6 deletions

View File

@ -592,13 +592,13 @@ ogetrlimit(struct thread *td, struct ogetrlimit_args *uap)
#endif /* COMPAT_43 */
#ifndef _SYS_SYSPROTO_H_
struct __setrlimit_args {
struct setrlimit_args {
u_int which;
struct rlimit *rlp;
};
#endif
int
sys_setrlimit(struct thread *td, struct __setrlimit_args *uap)
sys_setrlimit(struct thread *td, struct setrlimit_args *uap)
{
struct rlimit alim;
int error;
@ -782,14 +782,14 @@ kern_proc_setrlimit(struct thread *td, struct proc *p, u_int which,
}
#ifndef _SYS_SYSPROTO_H_
struct __getrlimit_args {
struct getrlimit_args {
u_int which;
struct rlimit *rlp;
};
#endif
/* ARGSUSED */
int
sys_getrlimit(struct thread *td, struct __getrlimit_args *uap)
sys_getrlimit(struct thread *td, struct getrlimit_args *uap)
{
struct rlimit rlim;
int error;

View File

@ -1166,13 +1166,13 @@
u_int which,
_Out_ struct rlimit *rlp
);
} getrlimit __getrlimit_args int
}
195 AUE_SETRLIMIT STD|CAPENABLED {
int setrlimit(
u_int which,
_In_ struct rlimit *rlp
);
} setrlimit __setrlimit_args int
}
196 AUE_GETDIRENTRIES COMPAT11|CAPENABLED {
int getdirentries(
int fd,