diff options
author | trociny <trociny@FreeBSD.org> | 2013-04-20 08:02:43 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2013-04-20 08:02:43 +0000 |
commit | 93aa05a11832f64ae31ddaef20437c6224698efc (patch) | |
tree | 0d441694eb852e9facccba792969dc68053737f8 /lib/libprocstat/libprocstat.h | |
parent | 16576036c320aca798d2600c23fd16c95b499140 (diff) | |
download | FreeBSD-src-93aa05a11832f64ae31ddaef20437c6224698efc.zip FreeBSD-src-93aa05a11832f64ae31ddaef20437c6224698efc.tar.gz |
Add procstat_getpathname function to retrieve a process executable.
MFC after: 1 month
Diffstat (limited to 'lib/libprocstat/libprocstat.h')
-rw-r--r-- | lib/libprocstat/libprocstat.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libprocstat/libprocstat.h b/lib/libprocstat/libprocstat.h index 05046af..24826ec 100644 --- a/lib/libprocstat/libprocstat.h +++ b/lib/libprocstat/libprocstat.h @@ -169,10 +169,12 @@ 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); +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, int which, struct rlimit* rlimit); +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); |