select: Add POLLPRI mask.

Value is per Linux.
pull/217/head
Reid Wagner 2017-10-05 21:10:58 -07:00 zatwierdzone przez Paul Sokolovsky
rodzic 643b1d0fab
commit 423e6c6a53
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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