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.h | |
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.h')
-rw-r--r-- | lib/libprocstat/libprocstat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libprocstat/libprocstat.h b/lib/libprocstat/libprocstat.h index 8d14d0f..05046af 100644 --- a/lib/libprocstat/libprocstat.h +++ b/lib/libprocstat/libprocstat.h @@ -91,6 +91,7 @@ struct kinfo_vmentry; struct procstat; +struct rlimit; struct filestat { int fs_type; /* Descriptor type. */ int fs_flags; /* filestat specific flags. */ @@ -170,6 +171,8 @@ gid_t *procstat_getgroups(struct procstat *procstat, struct kinfo_proc *kp, unsigned int *count); int procstat_getumask(struct procstat *procstat, struct kinfo_proc *kp, unsigned short* umask); +int procstat_getrlimit(struct procstat *procstat, struct kinfo_proc *kp, + int which, struct rlimit* rlimit); struct kinfo_vmentry *procstat_getvmmap(struct procstat *procstat, struct kinfo_proc *kp, unsigned int *count); struct procstat *procstat_open_core(const char *filename); |