aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Bright <dab@FreeBSD.org>2018-07-27 13:49:17 +0000
committerDavid Bright <dab@FreeBSD.org>2018-07-27 13:49:17 +0000
commit95c05062ec15cf323488d4c5e1986f5866bf7464 (patch)
treeebe8783f79d72be2806abc21685e6bee7508dc0e /lib
parent33dc803991ba1f243a36e7a91e321a0211e96677 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/kqueue.223
1 files changed, 15 insertions, 8 deletions
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index ac327be950c3..979e50f5c695 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd June 22, 2017
+.Dd July 27, 2018
.Dt KQUEUE 2
.Os
.Sh NAME
@@ -154,7 +154,7 @@ struct kevent {
u_int fflags; /* filter flag value */
int64_t data; /* filter data value */
void *udata; /* opaque user data identifier */
- uint64_t ext[4]; /* extentions */
+ uint64_t ext[4]; /* extensions */
};
.Ed
.Pp
@@ -355,8 +355,8 @@ Events for this filter are not registered with
.Fn kevent
directly but are registered via the
.Va aio_sigevent
-member of an asychronous I/O request when it is scheduled via an asychronous I/O
-system call such as
+member of an asynchronous I/O request when it is scheduled via an
+asynchronous I/O system call such as
.Fn aio_read .
The filter returns under the same conditions as
.Fn aio_error .
@@ -501,7 +501,7 @@ been marked as
.Dv SIG_IGN ,
except for the
.Dv SIGCHLD
-signal, which, if ignored, won't be recorded by the filter.
+signal, which, if ignored, will not be recorded by the filter.
Event notification happens after normal
signal delivery processing.
.Va data
@@ -558,6 +558,13 @@ On return,
.Va fflags
contains the events which triggered the filter.
.Pp
+If an existing timer is re-added, the existing timer will be
+effectively canceled (throwing away any undelivered record of previous
+timer expiration) and re-started using the new parameters contained in
+.Va data
+and
+.Va fflags .
+.Pp
There is a system wide limit on the number of timers
which is controlled by the
.Va kern.kq_calloutmax
@@ -604,9 +611,9 @@ contains the users defined flags in the lower 24 bits.
.Sh CANCELLATION BEHAVIOUR
If
.Fa nevents
-is non-zero, i.e. the function is potentially blocking, the call
+is non-zero, i.e., the function is potentially blocking, the call
is a cancellation point.
-Otherwise, i.e. if
+Otherwise, i.e., if
.Fa nevents
is zero, the call is not cancellable.
Cancellation can only occur before any changes are made to the kqueue,
@@ -782,7 +789,7 @@ The
value is limited to 24 hours; longer timeouts will be silently
reinterpreted as 24 hours.
.Pp
-In versions older than
+In versions older than
.Fx 12.0 ,
.In sys/event.h
failed to parse without including