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 5732f40..2ff3975 100644
--- a/lib/libprocstat/core.c
+++ b/lib/libprocstat/core.c
@@ -175,6 +175,10 @@ procstat_core_get(struct procstat_core *core, enum psc_type type, void *buf,
n_type = NT_PROCSTAT_UMASK;
structsize = sizeof(u_short);
break;
+ case PSC_TYPE_RLIMIT:
+ n_type = NT_PROCSTAT_RLIMIT;
+ structsize = sizeof(struct rlimit) * RLIM_NLIMITS;
+ break;
default:
warnx("unknown core stat type: %d", type);
return (NULL);
OpenPOWER on IntegriCloud