1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:37:34 +00:00

More random compat hacking towards getting bash to build.

I'm now at the build stage where it complains about a bajillion missing
symbols. This is a good place to be!
This commit is contained in:
Andreas Kling 2018-11-05 18:16:00 +01:00
parent e76312ab63
commit 82f84bab11
15 changed files with 306 additions and 8 deletions

View file

@ -11,5 +11,16 @@ int kill(pid_t pid, int sig)
__RETURN_WITH_ERRNO(rc, rc, -1);
}
sighandler_t signal(int signum, sighandler_t handler)
{
sighandler_t old_handler = (sighandler_t)Syscall::invoke(Syscall::PosixSignal, (dword)signum, (dword)handler);
if (old_handler == SIG_ERR) {
errno = EINVAL;
return SIG_ERR;
}
errno = 0;
return old_handler;
}
}