summaryrefslogblamecommitdiff
path: root/src/signal/sigtimedwait.c
blob: 4f8589b573871df31c9137153535f927eb9b2334 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                   
                  
                    
                 
 
                                                                                                                
 
                

                                                      
                                      
                   
 
#include <signal.h>
#include <errno.h>
#include "syscall.h"
#include "libc.h"

int sigtimedwait(const sigset_t *restrict mask, siginfo_t *restrict si, const struct timespec *restrict timeout)
{
	int ret;
	do ret = syscall_cp(SYS_rt_sigtimedwait, mask,
		si, timeout, __SYSCALL_SSLEN);
	while (ret<0 && errno==EINTR);
	return ret;
}