diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-05-31 14:52:06 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-05-31 14:52:06 +0000 |
commit | fe8a1ce6ff307eb60ce3e5525f7892acbeb16665 (patch) | |
tree | cf7c4daa370fd17d5c0257fd4db282ed91010a82 /lib | |
parent | 101091bbfad7563f159ec1e29f02cf998028eafc (diff) |
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')
-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. |