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/sysdeps/keyronex/generic/linux.cpp | 41 ---------------------------- 1 file changed, 41 deletions(-) delete mode 100644 lib/mlibc/sysdeps/keyronex/generic/linux.cpp (limited to 'lib/mlibc/sysdeps/keyronex/generic/linux.cpp') diff --git a/lib/mlibc/sysdeps/keyronex/generic/linux.cpp b/lib/mlibc/sysdeps/keyronex/generic/linux.cpp deleted file mode 100644 index 9b4a4c7..0000000 --- a/lib/mlibc/sysdeps/keyronex/generic/linux.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include - -#include -#include -#include -#include -#include - -namespace mlibc { - -int -sys_epoll_pwait(int epfd, struct epoll_event *ev, int n, int timeout, - const sigset_t *sigmask, int *raised) -{ - uintptr_t ret = syscall5(kPXSysEPollWait, epfd, (uintptr_t)ev, n, - timeout, (uintptr_t)sigmask, NULL); - if (int e = sc_error(ret); e) - return e; - *raised = ret; - return 0; -} - -int -sys_epoll_create(int flags, int *fd) -{ - uintptr_t ret = syscall1(kPXSysEPollCreate, flags, NULL); - if (int e = sc_error(ret); e) - return e; - *fd = ret; - return 0; -} - -int -sys_epoll_ctl(int epfd, int mode, int fd, struct epoll_event *ev) -{ - uintptr_t ret = syscall4(kPXSysEPollCtl, epfd, mode, fd, (uintptr_t)ev, - NULL); - return sc_error(ret); -} - -} \ No newline at end of file -- cgit v1.2.3