summaryrefslogtreecommitdiffstats
path: root/lib/libprocstat/libprocstat.h
diff options
context:
space:
mode:
authortrociny <trociny@FreeBSD.org>2013-04-20 07:57:08 +0000
committertrociny <trociny@FreeBSD.org>2013-04-20 07:57:08 +0000
commit4ca5694006e8d330e2b4a960e40fa851768f4958 (patch)
tree0cecf502d9036f5b11e7fbc3f7e4455aac98fb0e /lib/libprocstat/libprocstat.h
parent44dc17713a425853bcdfa8815bd033794c69185d (diff)
downloadFreeBSD-src-4ca5694006e8d330e2b4a960e40fa851768f4958.zip
FreeBSD-src-4ca5694006e8d330e2b4a960e40fa851768f4958.tar.gz
Add procstat_getumask function to retrieve a process umask.
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 0c4e77a..8d14d0f 100644
--- a/lib/libprocstat/libprocstat.h
+++ b/lib/libprocstat/libprocstat.h
@@ -168,6 +168,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_getumask(struct procstat *procstat, struct kinfo_proc *kp,
+ unsigned short* umask);
struct kinfo_vmentry *procstat_getvmmap(struct procstat *procstat,
struct kinfo_proc *kp, unsigned int *count);
struct procstat *procstat_open_core(const char *filename);
OpenPOWER on IntegriCloud