ref: c921181ad85c1d1c4f516221adfbbb510fe64d6d
parent: 5518b9657c07d4ee93ac1db4c97b6d4ec164d42b
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Jun 7 06:49:30 EDT 2017
Add poll flags for OpenBSD.
--- a/lib/sys/sys+openbsd-x64.myr
+++ b/lib/sys/sys+openbsd-x64.myr
@@ -175,6 +175,17 @@
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