summaryrefslogtreecommitdiff
path: root/Kernel/Syscall.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-11-11 00:20:53 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-11-11 00:20:53 +0100
commit3b2f172d481f33ca9c50e2b76909a4ecf46d5f03 (patch)
treeeed61ebaa91f85f7e80cf8148191261e13d0d22e /Kernel/Syscall.cpp
parent6a0a2c9ab43d8d43e91581568a44fcfc63225409 (diff)
downloadserenity-3b2f172d481f33ca9c50e2b76909a4ecf46d5f03.zip
A bunch of compat work (mostly stubs but some real implementations, too.)
Another pass at getting bash-1.14.7 to build. Not that many symbols remain.
Diffstat (limited to 'Kernel/Syscall.cpp')
-rw-r--r--Kernel/Syscall.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Kernel/Syscall.cpp b/Kernel/Syscall.cpp
index 2356e33a8e..d702e8d4c1 100644
--- a/Kernel/Syscall.cpp
+++ b/Kernel/Syscall.cpp
@@ -161,6 +161,18 @@ static DWORD handle(RegisterDump& regs, DWORD function, DWORD arg1, DWORD arg2,
return 0;
case Syscall::SC_sigprocmask:
return current->sys$sigprocmask((int)arg1, (const Unix::sigset_t*)arg2, (Unix::sigset_t*)arg3);
+ case Syscall::SC_pipe:
+ return current->sys$pipe((int*)arg1);
+ case Syscall::SC_killpg:
+ return current->sys$killpg((int)arg1, (int)arg2);
+ case Syscall::SC_setuid:
+ return current->sys$setuid((uid_t)arg1);
+ case Syscall::SC_setgid:
+ return current->sys$setgid((gid_t)arg1);
+ case Syscall::SC_alarm:
+ return current->sys$alarm((unsigned)arg1);
+ case Syscall::SC_access:
+ return current->sys$access((const char*)arg1, (int)arg2);
default:
kprintf("<%u> int0x80: Unknown function %x requested {%x, %x, %x}\n", current->pid(), function, arg1, arg2, arg3);
break;