From f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 7 Mar 2024 17:28:52 -0500 Subject: build: Build mlibc + add distclean target Signed-off-by: Ian Moffett --- lib/mlibc/options/linux/generic/sched.cpp | 50 ------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 lib/mlibc/options/linux/generic/sched.cpp (limited to 'lib/mlibc/options/linux/generic/sched.cpp') diff --git a/lib/mlibc/options/linux/generic/sched.cpp b/lib/mlibc/options/linux/generic/sched.cpp deleted file mode 100644 index 760a9f5..0000000 --- a/lib/mlibc/options/linux/generic/sched.cpp +++ /dev/null @@ -1,50 +0,0 @@ -#include -#include -#include - -#include -#include - -int sched_getcpu(void) { - MLIBC_CHECK_OR_ENOSYS(mlibc::sys_getcpu, -1); - int cpu; - if(int e = mlibc::sys_getcpu(&cpu); e) { - errno = e; - return -1; - } - return cpu; -} - -int setns(int, int) { - __ensure(!"Not implemented"); - __builtin_unreachable(); -} - -int sched_getscheduler(pid_t) { - __ensure(!"Not implemented"); - __builtin_unreachable(); -} - -int sched_getaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *mask) { - MLIBC_CHECK_OR_ENOSYS(mlibc::sys_getaffinity, -1); - if(int e = mlibc::sys_getaffinity(pid, cpusetsize, mask); e) { - errno = e; - return -1; - } - return 0; -} - -int unshare(int) { - __ensure(!"Not implemented"); - __builtin_unreachable(); -} - -int sched_setaffinity(pid_t, size_t, const cpu_set_t *) { - __ensure(!"Not implemented"); - __builtin_unreachable(); -} - -int clone(int (*)(void *), void *, int, void *, ...) { - __ensure(!"Not implemented"); - __builtin_unreachable(); -} -- cgit v1.2.3