summaryrefslogtreecommitdiffstats
path: root/lib/libprocstat/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libprocstat/core.c')
-rw-r--r--lib/libprocstat/core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libprocstat/core.c b/lib/libprocstat/core.c
index 2ff3975..e750222 100644
--- a/lib/libprocstat/core.c
+++ b/lib/libprocstat/core.c
@@ -179,6 +179,10 @@ procstat_core_get(struct procstat_core *core, enum psc_type type, void *buf,
n_type = NT_PROCSTAT_RLIMIT;
structsize = sizeof(struct rlimit) * RLIM_NLIMITS;
break;
+ case PSC_TYPE_OSREL:
+ n_type = NT_PROCSTAT_OSREL;
+ structsize = sizeof(int);
+ break;
default:
warnx("unknown core stat type: %d", type);
return (NULL);
OpenPOWER on IntegriCloud