summaryrefslogtreecommitdiff
path: root/lib/mlibc/options/posix/include/sched.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/sched.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/sched.h')
-rw-r--r--lib/mlibc/options/posix/include/sched.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/lib/mlibc/options/posix/include/sched.h b/lib/mlibc/options/posix/include/sched.h
deleted file mode 100644
index 739d91e..0000000
--- a/lib/mlibc/options/posix/include/sched.h
+++ /dev/null
@@ -1,49 +0,0 @@
-
-#ifndef _SCHED_H
-#define _SCHED_H
-
-#include <abi-bits/pid_t.h>
-#include <bits/threads.h>
-#include <bits/size_t.h>
-#include <mlibc-config.h>
-
-// MISSING: time_t, struct timespec
-
-// MISSING: POSIX [PS], [SS] and [TSP] options
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#if __MLIBC_LINUX_OPTION
-#include <bits/linux/linux_sched.h>
-#include <bits/linux/cpu_set.h>
-#endif
-
-#define SCHED_OTHER 0
-#define SCHED_FIFO 1
-#define SCHED_RR 2
-#define SCHED_BATCH 3
-#define SCHED_IDLE 5
-#define SCHED_DEADLINE 6
-#define SCHED_RESET_ON_FORK 0x40000000
-
-#ifndef __MLIBC_ABI_ONLY
-
-int sched_yield(void);
-
-int sched_get_priority_max(int policy);
-int sched_get_priority_min(int policy);
-
-int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param);
-
-int sched_getparam(pid_t pid, struct sched_param *param);
-
-#endif /* !__MLIBC_ABI_ONLY */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // _SCHED_H
-