projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix struct layout mismatch in sound ioctl time32 fallback conversion
[musl]
/
src
/
linux
/
epoll.c
diff --git
a/src/linux/epoll.c
b/src/linux/epoll.c
index
b45344f
..
93baa81
100644
(file)
--- a/
src/linux/epoll.c
+++ b/
src/linux/epoll.c
@@
-1,5
+1,6
@@
#include <sys/epoll.h>
#include <signal.h>
#include <sys/epoll.h>
#include <signal.h>
+#include <errno.h>
#include "syscall.h"
int epoll_create(int size)
#include "syscall.h"
int epoll_create(int size)
@@
-23,9
+24,9
@@
int epoll_ctl(int fd, int op, int fd2, struct epoll_event *ev)
int epoll_pwait(int fd, struct epoll_event *ev, int cnt, int to, const sigset_t *sigs)
{
int epoll_pwait(int fd, struct epoll_event *ev, int cnt, int to, const sigset_t *sigs)
{
- int r = __syscall(SYS_epoll_pwait, fd, ev, cnt, to, sigs, _NSIG/8);
+ int r = __syscall
_cp
(SYS_epoll_pwait, fd, ev, cnt, to, sigs, _NSIG/8);
#ifdef SYS_epoll_wait
#ifdef SYS_epoll_wait
- if (r==-ENOSYS && !sigs) r = __syscall(SYS_epoll_wait, fd, ev, cnt, to);
+ if (r==-ENOSYS && !sigs) r = __syscall
_cp
(SYS_epoll_wait, fd, ev, cnt, to);
#endif
return __syscall_ret(r);
}
#endif
return __syscall_ret(r);
}