summaryrefslogtreecommitdiffstats
path: root/sys/sys/resourcevar.h
diff options
context:
space:
mode:
authortrociny <trociny@FreeBSD.org>2012-01-22 20:25:00 +0000
committertrociny <trociny@FreeBSD.org>2012-01-22 20:25:00 +0000
commitfcd1c3665658a259422a5ab83d754099b36bbd46 (patch)
tree87e37d6d78b8a9e78c36d0fc7dbca8411f650152 /sys/sys/resourcevar.h
parentfc1df62a26053d47f27ceb29ae7488c5b0ed82fb (diff)
downloadFreeBSD-src-fcd1c3665658a259422a5ab83d754099b36bbd46.zip
FreeBSD-src-fcd1c3665658a259422a5ab83d754099b36bbd46.tar.gz
Change kern.proc.rlimit sysctl to:
- retrive only one, specified limit for a process, not the whole array, as it was previously (the sysctl has been added recently and has not been backported to stable yet, so this change is ok); - allow to set a resource limit for another process. Submitted by: Andrey Zonov <andrey at zonov.org> Discussed with: kib Reviewed by: kib MFC after: 2 weeks
Diffstat (limited to 'sys/sys/resourcevar.h')
-rw-r--r--sys/sys/resourcevar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/resourcevar.h b/sys/sys/resourcevar.h
index d091d85..0c91948 100644
--- a/sys/sys/resourcevar.h
+++ b/sys/sys/resourcevar.h
@@ -120,6 +120,8 @@ int chgsbsize(struct uidinfo *uip, u_int *hiwat, u_int to,
rlim_t maxval);
int chgptscnt(struct uidinfo *uip, int diff, rlim_t maxval);
int fuswintr(void *base);
+int kern_proc_setrlimit(struct thread *td, struct proc *p, u_int which,
+ struct rlimit *limp);
struct plimit
*lim_alloc(void);
void lim_copy(struct plimit *dst, struct plimit *src);
OpenPOWER on IntegriCloud