projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix segfault in lutimes when tv argument is NULL
[musl]
/
include
/
sys
/
epoll.h
diff --git
a/include/sys/epoll.h
b/include/sys/epoll.h
index
3530a9a
..
ac81a84
100644
(file)
--- a/
include/sys/epoll.h
+++ b/
include/sys/epoll.h
@@
-7,19
+7,21
@@
extern "C" {
#include <stdint.h>
#include <sys/types.h>
#include <stdint.h>
#include <sys/types.h>
+#include <fcntl.h>
#define __NEED_sigset_t
#include <bits/alltypes.h>
#define __NEED_sigset_t
#include <bits/alltypes.h>
-#define EPOLL_CLOEXEC
02000000
-#define EPOLL_NONBLOCK
04000
+#define EPOLL_CLOEXEC
O_CLOEXEC
+#define EPOLL_NONBLOCK
O_NONBLOCK
enum EPOLL_EVENTS { __EPOLL_DUMMY };
#define EPOLLIN 0x001
#define EPOLLPRI 0x002
#define EPOLLOUT 0x004
#define EPOLLRDNORM 0x040
enum EPOLL_EVENTS { __EPOLL_DUMMY };
#define EPOLLIN 0x001
#define EPOLLPRI 0x002
#define EPOLLOUT 0x004
#define EPOLLRDNORM 0x040
+#define EPOLLNVAL 0x020
#define EPOLLRDBAND 0x080
#define EPOLLWRNORM 0x100
#define EPOLLWRBAND 0x200
#define EPOLLRDBAND 0x080
#define EPOLLWRNORM 0x100
#define EPOLLWRBAND 0x200
@@
-27,6
+29,8
@@
enum EPOLL_EVENTS { __EPOLL_DUMMY };
#define EPOLLERR 0x008
#define EPOLLHUP 0x010
#define EPOLLRDHUP 0x2000
#define EPOLLERR 0x008
#define EPOLLHUP 0x010
#define EPOLLRDHUP 0x2000
+#define EPOLLEXCLUSIVE (1U<<28)
+#define EPOLLWAKEUP (1U<<29)
#define EPOLLONESHOT (1U<<30)
#define EPOLLET (1U<<31)
#define EPOLLONESHOT (1U<<30)
#define EPOLLET (1U<<31)
@@
-44,7
+48,11
@@
typedef union epoll_data {
struct epoll_event {
uint32_t events;
epoll_data_t data;
struct epoll_event {
uint32_t events;
epoll_data_t data;
-} __attribute__ ((__packed__));
+}
+#ifdef __x86_64__
+__attribute__ ((__packed__))
+#endif
+;
int epoll_create(int);
int epoll_create(int);