From 423e6c6a5382d9f0523403af012f3ecce024cecb Mon Sep 17 00:00:00 2001 From: Reid Wagner Date: Thu, 5 Oct 2017 21:10:58 -0700 Subject: [PATCH] select: Add POLLPRI mask. Value is per Linux. --- select/select.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/select/select.py b/select/select.py index e7de109d..9542f5d2 100644 --- a/select/select.py +++ b/select/select.py @@ -27,6 +27,9 @@ EPOLL_CTL_ADD = 1 EPOLL_CTL_DEL = 2 EPOLL_CTL_MOD = 3 +# Not included in uselect. +POLLPRI = 0x002 + # TODO: struct epoll_event's 2nd member is union of uint64_t, etc. # On x86, uint64_t is 4-byte aligned, on many other platforms - 8-byte. # Until uctypes module can assign native struct offset, use dirty hack