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/aero/generic/signals.cpp | 53 ------------------------------ 1 file changed, 53 deletions(-) delete mode 100644 lib/mlibc/sysdeps/aero/generic/signals.cpp (limited to 'lib/mlibc/sysdeps/aero/generic/signals.cpp') diff --git a/lib/mlibc/sysdeps/aero/generic/signals.cpp b/lib/mlibc/sysdeps/aero/generic/signals.cpp deleted file mode 100644 index a6f69ff..0000000 --- a/lib/mlibc/sysdeps/aero/generic/signals.cpp +++ /dev/null @@ -1,53 +0,0 @@ -#include -#include - -#include -#include - -#define LOG_SIGACTION_INSTALL 0 - -extern "C" void __mlibc_signal_restore(); // defined in `signals.S` - -namespace mlibc { -int sys_sigaction(int how, const struct sigaction *__restrict action, - struct sigaction *__restrict old_action) { -#if LOG_SIGACTION_INSTALL - mlibc::infoLogger() << "sys_sigaction: signal " << how << frg::endlog; - mlibc::infoLogger() << "sys_sigaction: size: " << sizeof(*action) - << frg::endlog; - - if (action != NULL) { - mlibc::infoLogger() << "sys_sigaction: handler " - << (int64_t)action->sa_handler << frg::endlog; - mlibc::infoLogger() << "sys_sigaction: action " - << (int64_t)action->sa_sigaction << frg::endlog; - mlibc::infoLogger() << "sys_sigaction: flags " - << (int64_t)action->sa_flags << frg::endlog; - } - - mlibc::infoLogger() << frg::endlog; -#endif - - auto sigreturn = (sc_word_t)__mlibc_signal_restore; - - auto res = syscall(SYS_SIGACTION, how, (sc_word_t)action, sigreturn, - (sc_word_t)old_action); - - if (res < 0) { - return -res; - } - - return 0; -} - -int sys_sigprocmask(int how, const sigset_t *__restrict set, - sigset_t *__restrict retrieve) { - auto result = syscall(SYS_SIGPROCMASK, how, set, retrieve); - - if (result < 0) { - return -result; - } - - return 0; -} -} // namespace mlibc \ No newline at end of file -- cgit v1.2.3