diff options
author | Mikolaj Golub <trociny@FreeBSD.org> | 2013-04-20 07:57:08 +0000 |
---|---|---|
committer | Mikolaj Golub <trociny@FreeBSD.org> | 2013-04-20 07:57:08 +0000 |
commit | 5b9bcba971ab2c6bc9f1240e43ac8459e1de9075 (patch) | |
tree | 0cecf502d9036f5b11e7fbc3f7e4455aac98fb0e /lib/libprocstat/libprocstat.h | |
parent | e40d6078cd1364a90d0280fc1cff7672a56a9695 (diff) |
Add procstat_getumask function to retrieve a process umask.
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=249672
Diffstat (limited to 'lib/libprocstat/libprocstat.h')
-rw-r--r-- | lib/libprocstat/libprocstat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libprocstat/libprocstat.h b/lib/libprocstat/libprocstat.h index 0c4e77a6c8e9..8d14d0fa8936 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); |