summaryrefslogtreecommitdiff
path: root/lib/sys
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-06-07 10:49:30 -0700
committerOri Bernstein <ori@eigenstate.org>2017-06-07 10:49:30 -0700
commitc921181ad85c1d1c4f516221adfbbb510fe64d6d (patch)
tree9539988f3b3a24bebde3085784d51a4e00776bf4 /lib/sys
parent5518b9657c07d4ee93ac1db4c97b6d4ec164d42b (diff)
downloadmc-c921181ad85c1d1c4f516221adfbbb510fe64d6d.tar.gz
Add poll flags for OpenBSD.
Diffstat (limited to 'lib/sys')
-rw-r--r--lib/sys/sys+openbsd-x64.myr11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sys/sys+openbsd-x64.myr b/lib/sys/sys+openbsd-x64.myr
index c048698..aa3a140 100644
--- a/lib/sys/sys+openbsd-x64.myr
+++ b/lib/sys/sys+openbsd-x64.myr
@@ -175,6 +175,17 @@ pkg sys =
const Orsync : fdopt = Osync /* synchronous reads */
const Odir : fdopt = 0x20000
+ /* poll options */
+ const Pollin : uint16 = 0x0001
+ const Pollpri : uint16 = 0x0002
+ const Pollout : uint16 = 0x0004
+ const Pollerr : uint16 = 0x0008
+ const Pollhup : uint16 = 0x0010
+ const Pollnval : uint16 = 0x0020
+ const Pollnorm : uint16 = 0x0040
+ const Pollrdband: uint16 = 0x0080
+ const Pollwrband: uint16 = 0x0100
+
/* stat modes */
const Sifmt : filemode = 0xf000
const Sififo : filemode = 0x1000