From 681470cf98a6e512627e67620b39c090b9e98aba Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 25 Sep 2023 00:16:12 +0200 Subject: kernel: remove _sys_filicide (made redundant by _sys_intr) --- src/libc/compat.c | 5 ++++- src/libc/include/camellia/compat.h | 1 + src/libc/syscall.c | 4 ---- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libc') diff --git a/src/libc/compat.c b/src/libc/compat.c index c7aab63..459a0aa 100644 --- a/src/libc/compat.c +++ b/src/libc/compat.c @@ -17,7 +17,6 @@ long c0_fs_respond(void *buf, long ret, int flags) { return ret; } -/* old syscall */ long _sys_await(void) { struct sys_wait2 res; if (_sys_wait2(-1, 0, &res) < 0) { @@ -25,3 +24,7 @@ long _sys_await(void) { } return res.status; } + +void _sys_filicide(void) { + _sys_intr("kill", 4); +} diff --git a/src/libc/include/camellia/compat.h b/src/libc/include/camellia/compat.h index 8b2efa1..3b0ba4a 100644 --- a/src/libc/include/camellia/compat.h +++ b/src/libc/include/camellia/compat.h @@ -6,3 +6,4 @@ long c0_fs_wait(char *buf, long len, struct ufs_request *res); long c0_fs_respond(void *buf, long ret, int flags); long _sys_await(void); +void _sys_filicide(void); diff --git a/src/libc/syscall.c b/src/libc/syscall.c index 782b2fe..8142028 100644 --- a/src/libc/syscall.c +++ b/src/libc/syscall.c @@ -66,10 +66,6 @@ void _sys_sleep(long ms) { return (void)_syscall(_SYS_SLEEP, ms, 0, 0, 0, 0); } -void _sys_filicide(void) { - return (void)_syscall(_SYS_FILICIDE, 0, 0, 0, 0, 0); -} - int _sys_intr(const char __user *msg, size_t len) { return (int)_syscall(_SYS_INTR, (long)msg, (long)len, 0, 0, 0); } -- cgit v1.2.3