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.
This commit is contained in:
Andreas Kling 2018-11-11 00:20:53 +01:00
commit 3b2f172d48
Notes: sideshowbarker 2024-07-19 16:11:17 +09:00
9 changed files with 134 additions and 2 deletions

View file

@ -11,6 +11,12 @@ int kill(pid_t pid, int sig)
__RETURN_WITH_ERRNO(rc, rc, -1);
}
int killpg(int pgrp, int sig)
{
int rc = Syscall::invoke(Syscall::SC_killpg, (dword)pgrp, (dword)sig);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
sighandler_t signal(int signum, sighandler_t handler)
{
sighandler_t old_handler = (sighandler_t)Syscall::invoke(Syscall::SC_signal, (dword)signum, (dword)handler);