summaryrefslogtreecommitdiff
path: root/src/libc/syscall.c
diff options
context:
space:
mode:
authordzwdz2023-12-25 19:08:04 +0100
committerdzwdz2023-12-25 19:08:04 +0100
commitb9f5f92bff69059471a76e73539780eedb356455 (patch)
tree55302764cbc2a6ab159cf2621dc34aab04ca4085 /src/libc/syscall.c
parent4e1a6f1b3c543b9fbeb882a9e97551f7c58ca65a (diff)
kernel: _sys_getnull() (basically /dev/null)
Diffstat (limited to 'src/libc/syscall.c')
-rw-r--r--src/libc/syscall.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libc/syscall.c b/src/libc/syscall.c
index 8142028..f44c775 100644
--- a/src/libc/syscall.c
+++ b/src/libc/syscall.c
@@ -94,6 +94,10 @@ uint64_t _sys_time(int flags) {
return (uint64_t)_syscall(_SYS_TIME, (long)flags, 0, 0, 0, 0);
}
+hid_t _sys_getnull(int flags) {
+ return (hid_t)_syscall(_SYS_GETNULL, (long)flags, 0, 0, 0, 0);
+}
+
long _sys_execbuf(void __user *buf, size_t len) {
return _syscall(_SYS_EXECBUF, (long)buf, (long)len, 0, 0, 0);
}