summaryrefslogtreecommitdiffstats
path: root/lib/libprocstat/libprocstat.h
diff options
context:
space:
mode:
authortrociny <trociny@FreeBSD.org>2013-04-20 08:03:56 +0000
committertrociny <trociny@FreeBSD.org>2013-04-20 08:03:56 +0000
commit72dafce20f72d7aa3e2fab75a4ef453d39b8dbdd (patch)
treeb4ce59716cb01690836df8b4dfc7522f3c47e658 /lib/libprocstat/libprocstat.h
parent93aa05a11832f64ae31ddaef20437c6224698efc (diff)
downloadFreeBSD-src-72dafce20f72d7aa3e2fab75a4ef453d39b8dbdd.zip
FreeBSD-src-72dafce20f72d7aa3e2fab75a4ef453d39b8dbdd.tar.gz
Add procstat_getosrel function to retrieve a process osrel info.
MFC after: 1 month
Diffstat (limited to 'lib/libprocstat/libprocstat.h')
-rw-r--r--lib/libprocstat/libprocstat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libprocstat/libprocstat.h b/lib/libprocstat/libprocstat.h
index 24826ec..353948b 100644
--- a/lib/libprocstat/libprocstat.h
+++ b/lib/libprocstat/libprocstat.h
@@ -169,6 +169,8 @@ int procstat_get_vnode_info(struct procstat *procstat, struct filestat *fst,
struct vnstat *vn, char *errbuf);
gid_t *procstat_getgroups(struct procstat *procstat, struct kinfo_proc *kp,
unsigned int *count);
+int procstat_getosrel(struct procstat *procstat, struct kinfo_proc *kp,
+ int *osrelp);
int procstat_getpathname(struct procstat *procstat, struct kinfo_proc *kp,
char *pathname, size_t maxlen);
int procstat_getrlimit(struct procstat *procstat, struct kinfo_proc *kp,
OpenPOWER on IntegriCloud