diff options
author | trociny <trociny@FreeBSD.org> | 2013-04-20 07:59:44 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2013-04-20 07:59:44 +0000 |
commit | 398b48380ff7b2ea5c997d18f7395b2aa9e36b06 (patch) | |
tree | 1f8660d19df0d3b65eecb0ba0022ab0d31cea2b5 /lib/libprocstat/libprocstat.3 | |
parent | aa81fb93633764124c74da7a38b7d2b9bdfda651 (diff) | |
download | FreeBSD-src-398b48380ff7b2ea5c997d18f7395b2aa9e36b06.zip FreeBSD-src-398b48380ff7b2ea5c997d18f7395b2aa9e36b06.tar.gz |
Add procstat_getrlimit function to retrieve a process resource limits info.
MFC after: 1 month
Diffstat (limited to 'lib/libprocstat/libprocstat.3')
-rw-r--r-- | lib/libprocstat/libprocstat.3 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/libprocstat/libprocstat.3 b/lib/libprocstat/libprocstat.3 index 06a66a0..bc78d68 100644 --- a/lib/libprocstat/libprocstat.3 +++ b/lib/libprocstat/libprocstat.3 @@ -128,6 +128,13 @@ .Fa "unsigned int *count" .Fc .Ft "int" +.Fo procstat_getrlimit +.Fa "struct procstat *procstat" +.Fa "struct kinfo_proc *kp" +.Fa "int which" +.Fa "struct rlimit* rlimit" +.Fc +.Ft "int" .Fo procstat_getumask .Fa "struct procstat *procstat" .Fa "struct kinfo_proc *kp" @@ -261,6 +268,16 @@ The caller is responsible to free the allocated memory with a subsequent function call. .Pp The +.Fn procstat_getrlimit +function gets a pointer to the +.Vt procstat +structure, a pointer to +.Vt kinfo_proc +structure, resource index +.Fa which , +and returns the actual resource limit in the 4th reference parameter. +.Pp +The .Fn procstat_getumask function gets a pointer to the .Vt procstat |