• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2016 Fujitsu Ltd.
3  * Author: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
13  * the GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program.
17  */
18 
19 #ifndef EPOLL_PWAIT_H
20 #define EPOLL_PWAIT_H
21 
22 #include <sys/types.h>
23 #include <signal.h>
24 #include "config.h"
25 #include "linux_syscall_numbers.h"
26 
27 #if !defined(HAVE_EPOLL_PWAIT)
epoll_pwait(int epfd,struct epoll_event * events,int maxevents,int timeout,const sigset_t * sigmask)28 int epoll_pwait(int epfd, struct epoll_event *events, int maxevents,
29 	int timeout, const sigset_t *sigmask)
30 {
31 	return ltp_syscall(__NR_epoll_pwait, epfd, events, maxevents,
32 		timeout, sigmask, _NSIG / 8);
33 }
34 #endif
35 
36 #endif /* EPOLL_PWAIT_H */
37