summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-01-28 21:23:59 +0000
committergVisor bot <gvisor-bot@google.com>2020-01-28 21:23:59 +0000
commit0ba30993d9369b19149cc236616a9e558820f61a (patch)
treec1b7341305dbe87cb72a384adf2fbaa940d20f84 /pkg/abi/linux
parentd8284c9de3cb9d60f1b65ba4266da6442aeb6431 (diff)
parent34fbd8446c386fb0136dad31ab6b173f17049a58 (diff)
Merge release-20200115.0-121-g34fbd84 (automated)
Diffstat (limited to 'pkg/abi/linux')
-rw-r--r--pkg/abi/linux/epoll.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/pkg/abi/linux/epoll.go b/pkg/abi/linux/epoll.go
index 72083b604..0e881aa3c 100644
--- a/pkg/abi/linux/epoll.go
+++ b/pkg/abi/linux/epoll.go
@@ -38,8 +38,14 @@ const (
// Per-file descriptor flags.
const (
- EPOLLET = 0x80000000
- EPOLLONESHOT = 0x40000000
+ EPOLLEXCLUSIVE = 1 << 28
+ EPOLLWAKEUP = 1 << 29
+ EPOLLONESHOT = 1 << 30
+ EPOLLET = 1 << 31
+
+ // EP_PRIVATE_BITS is fs/eventpoll.c:EP_PRIVATE_BITS, the set of all bits
+ // in an epoll event mask that correspond to flags rather than I/O events.
+ EP_PRIVATE_BITS = EPOLLEXCLUSIVE | EPOLLWAKEUP | EPOLLONESHOT | EPOLLET
)
// Operation flags.