summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2004-09-06 05:26:35 +0000
committerBrad Smith <brad@cvs.openbsd.org>2004-09-06 05:26:35 +0000
commit216ef22b5e3d12f8bad82e2d03c2febb952a735c (patch)
tree0af917927c5d0006db31cf206e1007944c3b4484 /lib/libc
parent1fb2a71408cbeb117427376a23d620874b612ee7 (diff)
- Spelling fix.
- Add mention of the fact that timeouts are silently limited to 24 hours. - Document the fact that kqueue will immediately return and not timeout when nevents is 0. From FreeBSD
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/kqueue.217
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index 2f4f21a256b..92947e29e41 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: kqueue.2,v 1.16 2004/08/02 17:49:31 brad Exp $
+.\" $OpenBSD: kqueue.2,v 1.17 2004/09/06 05:26:34 brad Exp $
.\"
.\" Copyright (c) 2000 Jonathan Lemon
.\" All rights reserved.
@@ -101,6 +101,14 @@ is a pointer to an array of kevent structures.
.Fa nevents
determines the size of
.Fa eventlist .
+When
+.Fa nevents
+is zero,
+.Fn kevent
+will return immediately even if there is a
+.Fa timeout
+specified unlike
+.Xr select 2 .
If
.Fa timeout
is a non-null pointer, it specifies a maximum interval to wait
@@ -342,7 +350,7 @@ The file referenced by the descriptor was renamed.
.It Dv NOTE_REVOKE
Access to the file was revoked via
.Xr revoke 2
-or the underlying fileystem was unmounted.
+or the underlying file system was unmounted.
.El
.Pp
On return,
@@ -496,3 +504,8 @@ system and this manual page were written by
.Sh BUGS
It is currently not possible to watch FIFOs, AIO, or a vnode that
resides on anything but a UFS file system.
+.Pp
+The
+.Fa timeout
+value is limited to 24 hours; longer timeouts will be silently
+reinterpreted as 24 hours.