summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_resource.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-12 06:43:28 +0000
committerbde <bde@FreeBSD.org>1995-11-12 06:43:28 +0000
commitaa9a60640e2c942769c3a8f506c8cb6317bb1eaf (patch)
tree2f26975a8fd164c9658b820d74c731c86cbb9e18 /sys/kern/kern_resource.c
parent7a9faab8f26e7692e572f4cdd89f30d1be471ebd (diff)
downloadFreeBSD-src-aa9a60640e2c942769c3a8f506c8cb6317bb1eaf.zip
FreeBSD-src-aa9a60640e2c942769c3a8f506c8cb6317bb1eaf.tar.gz
Included <sys/sysproto.h> to get central declarations for syscall args
structs and prototypes for syscalls. Ifdefed duplicated decentralized declarations of args structs. It's convenient to have this visible but they are hard to maintain. Some are already different from the central declarations. 4.4lite2 puts them in comments in the function headers but I wanted to avoid the large changes for that.
Diffstat (limited to 'sys/kern/kern_resource.c')
-rw-r--r--sys/kern/kern_resource.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index 96e14a0..b604513 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -36,11 +36,12 @@
* SUCH DAMAGE.
*
* @(#)kern_resource.c 8.5 (Berkeley) 1/21/94
- * $Id: kern_resource.c,v 1.14 1995/10/23 19:05:50 bde Exp $
+ * $Id: kern_resource.c,v 1.15 1995/11/11 01:48:17 bde Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/sysproto.h>
#include <sys/kernel.h>
#include <sys/file.h>
#include <sys/resourcevar.h>
@@ -56,10 +57,12 @@ int dosetrlimit __P((struct proc *, u_int, struct rlimit *));
* Resource controls and accounting.
*/
+#ifndef _SYS_SYSPROTO_H_
struct getpriority_args {
int which;
int who;
};
+#endif
int
getpriority(curp, uap, retval)
struct proc *curp;
@@ -114,11 +117,13 @@ getpriority(curp, uap, retval)
return (0);
}
+#ifndef _SYS_SYSPROTO_H_
struct setpriority_args {
int which;
int who;
int prio;
};
+#endif
/* ARGSUSED */
int
setpriority(curp, uap, retval)
@@ -197,11 +202,13 @@ donice(curp, chgp, n)
}
/* rtprio system call */
+#ifndef _SYS_SYSPROTO_H_
struct rtprio_args {
int function;
pid_t pid;
struct rtprio *rtp;
};
+#endif
/*
* Set realtime priority
@@ -266,10 +273,12 @@ rtprio(curp, uap, retval)
}
#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
+#ifndef _SYS_SYSPROTO_H_
struct osetrlimit_args {
u_int which;
struct orlimit *rlp;
};
+#endif
/* ARGSUSED */
int
osetrlimit(p, uap, retval)
@@ -289,10 +298,12 @@ osetrlimit(p, uap, retval)
return (dosetrlimit(p, uap->which, &lim));
}
+#ifndef _SYS_SYSPROTO_H_
struct ogetrlimit_args {
u_int which;
struct orlimit *rlp;
};
+#endif
/* ARGSUSED */
int
ogetrlimit(p, uap, retval)
@@ -314,10 +325,12 @@ ogetrlimit(p, uap, retval)
}
#endif /* COMPAT_43 || COMPAT_SUNOS */
+#ifndef _SYS_SYSPROTO_H_
struct __setrlimit_args {
u_int which;
struct rlimit *rlp;
};
+#endif
/* ARGSUSED */
int
setrlimit(p, uap, retval)
@@ -426,10 +439,12 @@ dosetrlimit(p, which, limp)
return (0);
}
+#ifndef _SYS_SYSPROTO_H_
struct __getrlimit_args {
u_int which;
struct rlimit *rlp;
};
+#endif
/* ARGSUSED */
int
getrlimit(p, uap, retval)
@@ -507,10 +522,12 @@ calcru(p, up, sp, ip)
}
}
+#ifndef _SYS_SYSPROTO_H_
struct getrusage_args {
int who;
struct rusage *rusage;
};
+#endif
/* ARGSUSED */
int
getrusage(p, uap, retval)
OpenPOWER on IntegriCloud