From 216ef22b5e3d12f8bad82e2d03c2febb952a735c Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Mon, 6 Sep 2004 05:26:35 +0000 Subject: - 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 --- lib/libc/sys/kqueue.2 | 17 +++++++++++++++-- 1 file 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. -- cgit v1.2.3