diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-07 17:28:52 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-07 18:24:51 -0500 |
commit | f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 (patch) | |
tree | 93b156621dc0303816b37f60ba88051b702d92f6 /lib/mlibc/sysdeps/lemon/generic/signals.cpp | |
parent | bd5969fc876a10b18613302db7087ef3c40f18e1 (diff) |
build: Build mlibc + add distclean target
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/mlibc/sysdeps/lemon/generic/signals.cpp')
-rw-r--r-- | lib/mlibc/sysdeps/lemon/generic/signals.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/mlibc/sysdeps/lemon/generic/signals.cpp b/lib/mlibc/sysdeps/lemon/generic/signals.cpp deleted file mode 100644 index 46b4714..0000000 --- a/lib/mlibc/sysdeps/lemon/generic/signals.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include <lemon/syscall.h> - -#include <sys/types.h> - -#include <mlibc/ansi-sysdeps.hpp> - -namespace mlibc{ - -int sys_sigprocmask(int how, const sigset_t *__restrict set, - sigset_t *__restrict retrieve){ - int ret = syscall(SYS_SIGPROCMASK, how, set, retrieve); - if(ret < 0){ - return -ret; - } - - return 0; -} - -int sys_sigaction(int signal, const struct sigaction *__restrict action, - struct sigaction *__restrict oldAction) { - int ret = syscall(SYS_SIGNAL_ACTION, signal, action, oldAction); - if(ret < 0){ - return -ret; - } - - return 0; -} - -int sys_kill(int pid, int signal){ - int ret = syscall(SYS_KILL, pid, signal); - if(ret < 0){ - return -ret; - } - - return 0; -} - -}
\ No newline at end of file |