diff options
author | trociny <trociny@FreeBSD.org> | 2013-04-20 07:54:07 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2013-04-20 07:54:07 +0000 |
commit | 1597072d3810fd47b494e26cbcaa815406288b8a (patch) | |
tree | 0aef80ff5d92444d56c16b7f1f3a73a8de076b33 /lib/libprocstat/core.c | |
parent | 52df6246c7718931beb8fcc43b4ebb5fd64ccd6e (diff) | |
download | FreeBSD-src-1597072d3810fd47b494e26cbcaa815406288b8a.zip FreeBSD-src-1597072d3810fd47b494e26cbcaa815406288b8a.tar.gz |
Add procstat_getgroups function to retrieve process groups.
MFC after: 1 month
Diffstat (limited to 'lib/libprocstat/core.c')
-rw-r--r-- | lib/libprocstat/core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libprocstat/core.c b/lib/libprocstat/core.c index 1ada459..afaa76c 100644 --- a/lib/libprocstat/core.c +++ b/lib/libprocstat/core.c @@ -167,6 +167,10 @@ procstat_core_get(struct procstat_core *core, enum psc_type type, void *buf, n_type = NT_PROCSTAT_VMMAP; structsize = sizeof(struct kinfo_vmentry); break; + case PSC_TYPE_GROUPS: + n_type = NT_PROCSTAT_GROUPS; + structsize = sizeof(gid_t); + break; default: warnx("unknown core stat type: %d", type); return (NULL); |