more uapi bits

This commit is contained in:
2026-10-18 14:47:02 +02:00
parent 27b2905dd7
commit 0ed321f622
7 changed files with 421 additions and 0 deletions
+24
View File
@@ -2,6 +2,7 @@
#ifndef __ZINNIA_UAPI_RESOURCE_H
#define __ZINNIA_UAPI_RESOURCE_H
#include <uapi/time.h>
#include <uapi/types.h>
#define __PRIO_PROCESS 0
@@ -20,6 +21,10 @@
#define __RLIMIT_AS 9
#define __RLIMIT_NLIMITS 16
#define __RUSAGE_SELF 0
#define __RUSAGE_CHILDREN (-1)
#define __RUSAGE_THREAD 1
#define __RLIM_INFINITY ((__rlim_t) - 1)
struct __rlimit {
@@ -27,4 +32,23 @@ struct __rlimit {
__rlim_t rlim_max;
};
struct __rusage {
struct __timeval ru_utime;
struct __timeval ru_stime;
long ru_maxrss;
long ru_ixrss;
long ru_idrss;
long ru_isrss;
long ru_minflt;
long ru_majflt;
long ru_nswap;
long ru_inblock;
long ru_oublock;
long ru_msgsnd;
long ru_msgrcv;
long ru_nsignals;
long ru_nvcsw;
long ru_nivcsw;
};
#endif