aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/options/posix/include/sys/resource.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-07 17:28:52 -0500
committerIan Moffett <ian@osmora.org>2024-03-07 18:24:51 -0500
commitf5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 (patch)
tree93b156621dc0303816b37f60ba88051b702d92f6 /lib/mlibc/options/posix/include/sys/resource.h
parentbd5969fc876a10b18613302db7087ef3c40f18e1 (diff)
build: Build mlibc + add distclean target
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/mlibc/options/posix/include/sys/resource.h')
-rw-r--r--lib/mlibc/options/posix/include/sys/resource.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/lib/mlibc/options/posix/include/sys/resource.h b/lib/mlibc/options/posix/include/sys/resource.h
deleted file mode 100644
index c5453e2..0000000
--- a/lib/mlibc/options/posix/include/sys/resource.h
+++ /dev/null
@@ -1,52 +0,0 @@
-#ifndef _SYS_RESOURCE_H
-#define _SYS_RESOURCE_H
-
-#include <abi-bits/pid_t.h>
-#include <abi-bits/resource.h>
-#include <bits/posix/id_t.h>
-#include <abi-bits/suseconds_t.h>
-#include <bits/ansi/time_t.h>
-#include <bits/posix/timeval.h>
-
-#define PRIO_PROCESS 1
-#define PRIO_PGRP 2
-#define PRIO_USER 3
-
-#define PRIO_MIN (-20)
-#define PRIO_MAX 20
-
-#define RLIM_INFINITY ((rlim_t)-1)
-#define RLIM_SAVED_MAX ((rlim_t)-1)
-#define RLIM_SAVED_CUR ((rlim_t)-1)
-
-#define RLIM_NLIMITS RLIMIT_NLIMITS
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef unsigned long rlim_t;
-
-struct rlimit {
- rlim_t rlim_cur;
- rlim_t rlim_max;
-};
-
-#ifndef __MLIBC_ABI_ONLY
-
-int getpriority(int, id_t);
-int setpriority(int, id_t, int);
-
-int getrusage(int, struct rusage *);
-int getrlimit(int, struct rlimit *);
-int setrlimit(int, const struct rlimit *);
-
-int prlimit(pid_t pid, int resource, const struct rlimit *new_limits, struct rlimit *old_limits);
-
-#endif /* !__MLIBC_ABI_ONLY */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // _SYS_RESOURCE_H