summaryrefslogtreecommitdiffstats
path: root/sys/compat/svr4/svr4_resource.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-12-13 22:41:47 +0000
committeralfred <alfred@FreeBSD.org>2002-12-13 22:41:47 +0000
commit4f48184fb2c8948c406b21c3f802b5b281cef957 (patch)
treea1ef524330ea7e253fb665abea3ddb594cde69fc /sys/compat/svr4/svr4_resource.c
parentd19b4e039d47537b44233aae83d03b974d29d771 (diff)
downloadFreeBSD-src-4f48184fb2c8948c406b21c3f802b5b281cef957.zip
FreeBSD-src-4f48184fb2c8948c406b21c3f802b5b281cef957.tar.gz
Backout removal SCARGS, the code freeze is only "selectively" over.
Diffstat (limited to 'sys/compat/svr4/svr4_resource.c')
-rw-r--r--sys/compat/svr4/svr4_resource.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/compat/svr4/svr4_resource.c b/sys/compat/svr4/svr4_resource.c
index e9adace..2d7a0ea 100644
--- a/sys/compat/svr4/svr4_resource.c
+++ b/sys/compat/svr4/svr4_resource.c
@@ -133,7 +133,7 @@ svr4_sys_getrlimit(td, uap)
register struct thread *td;
struct svr4_sys_getrlimit_args *uap;
{
- int rl = svr4_to_native_rl(uap->which);
+ int rl = svr4_to_native_rl(SCARG(uap, which));
struct rlimit blim;
struct svr4_rlimit slim;
@@ -171,7 +171,7 @@ svr4_sys_getrlimit(td, uap)
else
slim.rlim_cur = SVR4_RLIM_SAVED_CUR;
- return copyout(&slim, uap->rlp, sizeof(*uap->rlp));
+ return copyout(&slim, SCARG(uap, rlp), sizeof(*SCARG(uap, rlp)));
}
@@ -180,7 +180,7 @@ svr4_sys_setrlimit(td, uap)
register struct thread *td;
struct svr4_sys_setrlimit_args *uap;
{
- int rl = svr4_to_native_rl(uap->which);
+ int rl = svr4_to_native_rl(SCARG(uap, which));
struct rlimit blim, *limp;
struct svr4_rlimit slim;
int error;
@@ -192,7 +192,7 @@ svr4_sys_setrlimit(td, uap)
mtx_assert(&Giant, MA_OWNED);
limp = &td->td_proc->p_rlimit[rl];
- if ((error = copyin(uap->rlp, &slim, sizeof(slim))) != 0)
+ if ((error = copyin(SCARG(uap, rlp), &slim, sizeof(slim))) != 0)
return error;
/*
@@ -231,7 +231,7 @@ svr4_sys_getrlimit64(td, uap)
register struct thread *td;
struct svr4_sys_getrlimit64_args *uap;
{
- int rl = svr4_to_native_rl(uap->which);
+ int rl = svr4_to_native_rl(SCARG(uap, which));
struct rlimit blim;
struct svr4_rlimit64 slim;
@@ -269,7 +269,7 @@ svr4_sys_getrlimit64(td, uap)
else
slim.rlim_cur = SVR4_RLIM64_SAVED_CUR;
- return copyout(&slim, uap->rlp, sizeof(*uap->rlp));
+ return copyout(&slim, SCARG(uap, rlp), sizeof(*SCARG(uap, rlp)));
}
@@ -278,7 +278,7 @@ svr4_sys_setrlimit64(td, uap)
register struct thread *td;
struct svr4_sys_setrlimit64_args *uap;
{
- int rl = svr4_to_native_rl(uap->which);
+ int rl = svr4_to_native_rl(SCARG(uap, which));
struct rlimit blim, *limp;
struct svr4_rlimit64 slim;
int error;
@@ -290,7 +290,7 @@ svr4_sys_setrlimit64(td, uap)
mtx_assert(&Giant, MA_OWNED);
limp = &td->td_proc->p_rlimit[rl];
- if ((error = copyin(uap->rlp, &slim, sizeof(slim))) != 0)
+ if ((error = copyin(SCARG(uap, rlp), &slim, sizeof(slim))) != 0)
return error;
/*
OpenPOWER on IntegriCloud