diff options
| author | Mikolaj Golub <trociny@FreeBSD.org> | 2013-04-20 08:02:43 +0000 |
|---|---|---|
| committer | Mikolaj Golub <trociny@FreeBSD.org> | 2013-04-20 08:02:43 +0000 |
| commit | 4cdf9796417c68c0f3cbd97a751a822202db0ffd (patch) | |
| tree | 0d441694eb852e9facccba792969dc68053737f8 /lib/libprocstat/libprocstat.3 | |
| parent | 21b4f75a2c362e37158bc1a6a24ee145d4338e63 (diff) | |
Notes
Diffstat (limited to 'lib/libprocstat/libprocstat.3')
| -rw-r--r-- | lib/libprocstat/libprocstat.3 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/libprocstat/libprocstat.3 b/lib/libprocstat/libprocstat.3 index bc78d684d7db..fd843cbc213b 100644 --- a/lib/libprocstat/libprocstat.3 +++ b/lib/libprocstat/libprocstat.3 @@ -34,6 +34,7 @@ .Nm procstat_close , .Nm procstat_getfiles , .Nm procstat_getgroups , +.Nm procstat_getpathname , .Nm procstat_getprocs , .Nm procstat_getumask , .Nm procstat_getvmmap , @@ -128,6 +129,13 @@ .Fa "unsigned int *count" .Fc .Ft "int" +.Fo procstat_getpathname +.Fa "struct procstat *procstat" +.Fa "struct kinfo_proc *kp" +.Fa "char *pathname" +.Fa "size_t maxlen" +.Fc +.Ft "int" .Fo procstat_getrlimit .Fa "struct procstat *procstat" .Fa "struct kinfo_proc *kp" @@ -268,6 +276,18 @@ The caller is responsible to free the allocated memory with a subsequent function call. .Pp The +.Fn procstat_getpathname +function gets a pointer to the +.Vt procstat +structure, a pointer to +.Vt kinfo_proc +structure, and copies the path of the process executable to +.Fa pathname +buffer, limiting to +.Fa maxlen +characters. +.Pp +The .Fn procstat_getrlimit function gets a pointer to the .Vt procstat |
