From 638c5fa8df1d3f2bf4c63c2923f592b0c9e63751 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Mon, 29 Nov 2021 22:02:59 +0000 Subject: [PATCH] syscalls: normalize (get|set)rlimit Declare normal _args structs rather than going out of the way to declare ___args. Reviewed by: kib, imp --- sys/kern/kern_resource.c | 8 ++++---- sys/kern/syscalls.master | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index b556d4fded5..5b90148ccf9 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -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; diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 6e89f2c313e..cedadd9b94b 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -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,