Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux/signal.c')
-rw-r--r--newlib/libc/sys/linux/signal.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/signal.c b/newlib/libc/sys/linux/signal.c
index 813b9d9cd..7b8f0f4db 100644
--- a/newlib/libc/sys/linux/signal.c
+++ b/newlib/libc/sys/linux/signal.c
@@ -12,6 +12,7 @@
#define __NR___sgetmask __NR_sgetmask
#define __NR___ssetmask __NR_ssetmask
#define __NR___sigsuspend __NR_sigsuspend
+#define __NR___rt_sigtimedwait __NR_rt_sigtimedwait
_syscall2(int,kill,pid_t,pid,int,sig)
_syscall2(__sighandler_t,signal,int,signum,__sighandler_t,handler)
@@ -25,6 +26,7 @@ _syscall3(int,sigprocmask,int,how,const sigset_t *,set,sigset_t *,oldset)
static _syscall0(int,__sgetmask)
static _syscall1(int,__ssetmask,int,newmask)
static _syscall3(int,__sigsuspend,int,arg1,int,arg2,int,mask)
+static _syscall4(int,__rt_sigtimedwait,const sigset_t *,set,siginfo_t *,info,struct timespec *,timeout,size_t,size)
int sigsuspend (const sigset_t *mask)
{
@@ -54,6 +56,16 @@ int raise(int sig)
return kill(getpid(),sig);
}
+int sigtimedwait(const sigset_t *set, siginfo_t *info,
+ struct timespec *timeout)
+{
+ return __rt_sigtimedwait(set, info, timeout, sizeof(sigset_t));
+}
+
+int sigwaitinfo(const sigset_t *set, siginfo_t *info)
+{
+ return __rt_sigtimedwait(set, info, NULL, sizeof(sigset_t));
+}
const char *const sys_siglist[] = {
#include "siglist.inc"