summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-02-13 12:17:09 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-02-13 12:17:09 -0800
commita7dbc5dea27422dbbefada97d3c5127d31b9ca2b (patch)
tree7e37eccec48feef28e474fcf9a54b01a28f68ec7
parent9591e476bbedc531832679a9cb5fe534c6a058a4 (diff)
parent8de43829d7cab4f9c5445f03fb41231e920c42eb (diff)
Merge "eventpoll.h: fix epoll event masks"
-rw-r--r--include/uapi/linux/eventpoll.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/uapi/linux/eventpoll.h b/include/uapi/linux/eventpoll.h
index b9670d44654a..6016e9ed0960 100644
--- a/include/uapi/linux/eventpoll.h
+++ b/include/uapi/linux/eventpoll.h
@@ -39,6 +39,9 @@
#define EPOLLMSG 0x00000400
#define EPOLLRDHUP 0x00002000
+/* Set exclusive wakeup mode for the target file descriptor */
+#define EPOLLEXCLUSIVE (1U << 28)
+
/*
* Request the handling of system wakeup events so as to prevent system suspends
* from happening while those events are being processed.
@@ -49,13 +52,13 @@
*
* Requires CAP_BLOCK_SUSPEND
*/
-#define EPOLLWAKEUP (1 << 29)
+#define EPOLLWAKEUP (1U << 29)
/* Set the One Shot behaviour for the target file descriptor */
-#define EPOLLONESHOT (1 << 30)
+#define EPOLLONESHOT (1U << 30)
/* Set the Edge Triggered behaviour for the target file descriptor */
-#define EPOLLET (1 << 31)
+#define EPOLLET (1U << 31)
/*
* On x86-64 make the 64bit structure have the same alignment as the