summaryrefslogtreecommitdiff
path: root/lib/mlibc/abis/ironclad/resource.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-07 17:28:00 -0500
committerIan Moffett <ian@osmora.org>2024-03-07 17:28:32 -0500
commitbd5969fc876a10b18613302db7087ef3c40f18e1 (patch)
tree7c2b8619afe902abf99570df2873fbdf40a4d1a1 /lib/mlibc/abis/ironclad/resource.h
parenta95b38b1b92b172e6cc4e8e56a88a30cc65907b0 (diff)
lib: Add mlibc
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/mlibc/abis/ironclad/resource.h')
-rw-r--r--lib/mlibc/abis/ironclad/resource.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/lib/mlibc/abis/ironclad/resource.h b/lib/mlibc/abis/ironclad/resource.h
new file mode 100644
index 0000000..927588b
--- /dev/null
+++ b/lib/mlibc/abis/ironclad/resource.h
@@ -0,0 +1,53 @@
+#ifndef _ABIBITS_RESOURCE_H
+#define _ABIBITS_RESOURCE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <bits/posix/timeval.h>
+
+#define RUSAGE_SELF 1
+#define RUSAGE_CHILDREN 2
+
+#define RLIMIT_CORE 1
+#define RLIMIT_CPU 2
+#define RLIMIT_DATA 3
+#define RLIMIT_FSIZE 4
+#define RLIMIT_NOFILE 5
+#define RLIMIT_STACK 6
+#define RLIMIT_AS 7
+#define RLIMIT_MEMLOCK 8
+#define RLIMIT_RSS 9
+#define RLIMIT_NPROC 10
+#define RLIMIT_LOCKS 11
+#define RLIMIT_SIGPENDING 12
+#define RLIMIT_MSGQUEUE 13
+#define RLIMIT_NICE 14
+#define RLIMIT_RTPRIO 15
+#define RLIMIT_NLIMITS 16
+
+struct rusage {
+ struct timeval ru_utime;
+ struct timeval ru_stime;
+ long int ru_maxrss;
+ long int ru_ixrss;
+ long int ru_idrss;
+ long int ru_isrss;
+ long int ru_minflt;
+ long int ru_majflt;
+ long int ru_nswap;
+ long int ru_inblock;
+ long int ru_oublock;
+ long int ru_msgsnd;
+ long int ru_msgrcv;
+ long int ru_nsignals;
+ long int ru_nvcsw;
+ long int ru_nivcsw;
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // _ABIBITS_RESOURCE_H