diff options
author | trociny <trociny@FreeBSD.org> | 2013-04-20 07:57:08 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2013-04-20 07:57:08 +0000 |
commit | 4ca5694006e8d330e2b4a960e40fa851768f4958 (patch) | |
tree | 0cecf502d9036f5b11e7fbc3f7e4455aac98fb0e /lib/libprocstat/libprocstat.3 | |
parent | 44dc17713a425853bcdfa8815bd033794c69185d (diff) | |
download | FreeBSD-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.3')
-rw-r--r-- | lib/libprocstat/libprocstat.3 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/libprocstat/libprocstat.3 b/lib/libprocstat/libprocstat.3 index b38ce1c..06a66a0 100644 --- a/lib/libprocstat/libprocstat.3 +++ b/lib/libprocstat/libprocstat.3 @@ -35,6 +35,7 @@ .Nm procstat_getfiles , .Nm procstat_getgroups , .Nm procstat_getprocs , +.Nm procstat_getumask , .Nm procstat_getvmmap , .Nm procstat_freefiles , .Nm procstat_freegroups , @@ -126,6 +127,12 @@ .Fa "int arg" .Fa "unsigned int *count" .Fc +.Ft "int" +.Fo procstat_getumask +.Fa "struct procstat *procstat" +.Fa "struct kinfo_proc *kp" +.Fa "unsigned short *maskp" +.Fc .Ft "struct kinfo_vmentry *" .Fo procstat_getvmmap .Fa "struct procstat *procstat" @@ -254,6 +261,14 @@ The caller is responsible to free the allocated memory with a subsequent function call. .Pp The +.Fn procstat_getumask +function gets a pointer to the +.Vt procstat +structure, a pointer to +.Vt kinfo_proc +structure, and returns the process umask in the 3rd reference parameter. +.Pp +The .Fn procstat_getvmmap function gets a pointer to the .Vt procstat |