summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorsson <sson@FreeBSD.org>2009-09-16 03:49:54 +0000
committersson <sson@FreeBSD.org>2009-09-16 03:49:54 +0000
commit95d4e7d0750d9cb513c20c55282fbfb46b2c4a8a (patch)
tree4e459ad91b2bf9cbe26b4d39196166754fd16bf7 /lib
parenta386443e5123201c31ec7a193e83f022ede7f469 (diff)
downloadFreeBSD-src-95d4e7d0750d9cb513c20c55282fbfb46b2c4a8a.zip
FreeBSD-src-95d4e7d0750d9cb513c20c55282fbfb46b2c4a8a.tar.gz
Add EV_RECEIPT to kevents.
EV_RECEIPT is useful to disambiguating error conditions when multiple events structures are passed to kevent(2). The error code is returned in the data field and EV_ERROR is set. Approved by: rwatson (co-mentor)
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/kqueue.29
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index 63f5a4d..e899a1b 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -211,6 +211,15 @@ Removes the event from the kqueue.
Events which are attached to
file descriptors are automatically deleted on the last close of
the descriptor.
+.It EV_RECEIPT
+This flag is useful for making bulk changes to a kqueue without draining
+any pending events.
+When passed as input, it forces
+.Dv EV_ERROR
+to always be returned.
+When a filter is successfully added the
+.Va data
+field will be zero.
.It EV_ONESHOT
Causes the event to return only the first occurrence of the filter
being triggered.
OpenPOWER on IntegriCloud