From: Benoit Canet <[email protected]>
Committer: Nadav Har'El <[email protected]>
Branch: master

syscall: implement rt_sigprocmask

This is the next syscall required by the go hello world

Signed-off-by: BenoÃt Canet <[email protected]>
Message-Id: <[email protected]>

---
diff --git a/linux.cc b/linux.cc
--- a/linux.cc
+++ b/linux.cc
@@ -292,6 +292,11 @@ int rt_sigaction(int sig, const struct k_sigaction * act, struct k_sigaction * o
     return ret;
 }

+int rt_sigprocmask(int how, sigset_t * nset, sigset_t * oset, size_t sigsetsize)
+{
+    return sigprocmask(how, nset, oset);
+}
+
 long syscall(long number, ...)
 {
     switch (number) {
@@ -313,6 +318,7 @@ long syscall(long number, ...)
     SYSCALL6(long_mmap, void *, size_t, int, int, int, off_t);
     SYSCALL2(munmap, void *, size_t);
SYSCALL4(rt_sigaction, int, const struct k_sigaction *, struct k_sigaction *, size_t);
+    SYSCALL4(rt_sigprocmask, int, sigset_t *, sigset_t *, size_t);
     }

     debug_always("syscall(): unimplemented system call %d\n", number);

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to