diff options
| author | 2017-05-31 14:52:05 +0000 | |
|---|---|---|
| committer | 2017-05-31 14:52:05 +0000 | |
| commit | 83c05d2a2887a46641fa7558826384e3bc121877 (patch) | |
| tree | 5e5d5bfe4c31da6df68585ad43a01b49735bfdd2 /lib/libc | |
| parent | another place to use ieee80211_min_basic_rate() to select the minimum tx rate (diff) | |
| download | wireguard-openbsd-83c05d2a2887a46641fa7558826384e3bc121877.tar.xz wireguard-openbsd-83c05d2a2887a46641fa7558826384e3bc121877.zip | |
Add support for EV_RECEIPT and EV_DISPATCH flags
From FreeBSD via Jan Schreiber <jes at posteo ! de>, thanks!
OK tedu, bluhm
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/sys/kqueue.2 | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2 index 35ca23d7dec..613a8f89259 100644 --- a/lib/libc/sys/kqueue.2 +++ b/lib/libc/sys/kqueue.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: kqueue.2,v 1.33 2016/08/13 17:05:02 tedu Exp $ +.\" $OpenBSD: kqueue.2,v 1.34 2017/05/31 14:52:05 mikeb Exp $ .\" .\" Copyright (c) 2000 Jonathan Lemon .\" All rights reserved. @@ -26,7 +26,7 @@ .\" .\" $FreeBSD: src/lib/libc/sys/kqueue.2,v 1.18 2001/02/14 08:48:35 guido Exp $ .\" -.Dd $Mdocdate: August 13 2016 $ +.Dd $Mdocdate: May 31 2017 $ .Dt KQUEUE 2 .Os .Sh NAME @@ -184,10 +184,25 @@ Disable the event so .Fn kevent will not return it. The filter itself is not disabled. +.It Dv EV_DISPATCH +Disable the event source immediately after delivery of an event. +See +.Dv EV_DISABLE +above. .It Dv EV_DELETE Removes the event from the kqueue. Events which are attached to file descriptors are automatically deleted on the last close of the descriptor. +.It Dv EV_RECEIPT +Causes +.Fn kevent +to return with +.Dv EV_ERROR +set without draining any pending events after updating events in the kqueue. +When a filter is successfully added the +.Va data +field will be zero. +This flag is useful for making bulk changes to a kqueue. .It Dv EV_ONESHOT Causes the event to return only the first occurrence of the filter being triggered. |
