summaryrefslogtreecommitdiff
path: root/src/libc
diff options
context:
space:
mode:
authordzwdz2023-09-25 00:16:12 +0200
committerdzwdz2023-09-25 00:16:12 +0200
commit681470cf98a6e512627e67620b39c090b9e98aba (patch)
treef2d9215d57cd1787df7e37baa9cfba00a7ed912b /src/libc
parent2c78dc983d09e136dd016ae6ecee6b191e033de1 (diff)
kernel: remove _sys_filicide (made redundant by _sys_intr)
Diffstat (limited to 'src/libc')
-rw-r--r--src/libc/compat.c5
-rw-r--r--src/libc/include/camellia/compat.h1
-rw-r--r--src/libc/syscall.c4
3 files changed, 5 insertions, 5 deletions
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);
}