From fa5263275c032dc290e11c4fd7094fb1c489e644 Mon Sep 17 00:00:00 2001 From: Jan S Date: Sat, 10 Jun 2017 09:06:14 +0200 Subject: [PATCH] OpenBSD kqueue EV_RECEIPT and EV_DISPATCH OpenBSDs kqueue now has EV_RECEIPT and EV_DISPATCH. I wrote a patch and the devs merged it into current: https://marc.info/?l=openbsd-tech&m=149621427511219&w=2 This change extends the rust libc crate to provide the feature. --- src/unix/bsd/netbsdlike/openbsdlike/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/bsd/netbsdlike/openbsdlike/mod.rs b/src/unix/bsd/netbsdlike/openbsdlike/mod.rs index b0d8128c033de..35bcdb68037e8 100644 --- a/src/unix/bsd/netbsdlike/openbsdlike/mod.rs +++ b/src/unix/bsd/netbsdlike/openbsdlike/mod.rs @@ -313,6 +313,8 @@ pub const EV_ENABLE: ::uint16_t = 0x4; pub const EV_DISABLE: ::uint16_t = 0x8; pub const EV_ONESHOT: ::uint16_t = 0x10; pub const EV_CLEAR: ::uint16_t = 0x20; +pub const EV_RECEIPT: ::uint16_t = 0x40; +pub const EV_DISPATCH: ::uint16_t = 0x80; pub const EV_FLAG1: ::uint16_t = 0x2000; pub const EV_ERROR: ::uint16_t = 0x4000; pub const EV_EOF: ::uint16_t = 0x8000;