Add EV_SET() to the NAME section

Use Xr instead of Fn to refer other man pages
Add some more entries to SEE ALSO

Reviewed by wiz@
This commit is contained in:
abhinav 2017-04-01 14:20:45 +00:00
parent f64ab0d1d0
commit 8e39d64647

View File

@ -1,4 +1,4 @@
.\" $NetBSD: kqueue.2,v 1.36 2016/12/19 07:48:35 abhinav Exp $
.\" $NetBSD: kqueue.2,v 1.37 2017/04/01 14:20:45 abhinav Exp $
.\"
.\" Copyright (c) 2000 Jonathan Lemon
.\" All rights reserved.
@ -38,7 +38,8 @@
.Sh NAME
.Nm kqueue ,
.Nm kqueue1 ,
.Nm kevent
.Nm kevent ,
.Nm EV_SET
.Nd kernel event notification mechanism
.Sh LIBRARY
.Lb libc
@ -76,7 +77,7 @@ Multiple events which trigger the filter do not result in multiple
kevents being placed on the kqueue; instead, the filter will aggregate
the events into a single struct kevent.
Calling
.Fn close
.Xr close 2
on a file descriptor will remove any kevents that reference the descriptor.
.Pp
.Fn kqueue
@ -302,7 +303,7 @@ on the descriptor type.
.Bl -tag -width 2n
.It Sockets
Sockets which have previously been passed to
.Fn listen
.Xr listen 2
return when there is an incoming connection pending.
.Va data
contains the size of the listen backlog (i.e., the number of
@ -395,7 +396,7 @@ and returns when one or more of the requested events occurs on the descriptor.
The events to monitor are:
.Bl -tag -width XXNOTE_RENAME
.It NOTE_DELETE
.Fn unlink
.Xr unlink 2
was called on the file referenced by the descriptor.
.It NOTE_WRITE
A write occurred on the file referenced by the descriptor.
@ -430,14 +431,14 @@ The exit code of the process is stored in
.Va data .
.It NOTE_FORK
The process has called
.Fn fork .
.Xr fork 2 .
.It NOTE_EXEC
The process has executed a new process via
.Xr execve 2
or similar call.
.It NOTE_TRACK
Follow a process across
.Fn fork
.Xr fork 2
calls.
The parent process will return with NOTE_TRACK set in the
.Va fflags
@ -457,9 +458,9 @@ contains the events which triggered the filter.
Takes the signal number to monitor as the identifier and returns
when the given signal is delivered to the current process.
This coexists with the
.Fn signal
.Xr signal 3
and
.Fn sigaction
.Xr sigaction 2
facilities, and has a lower precedence.
The filter will record
all attempts to deliver a signal to a process, even if the signal has
@ -632,11 +633,14 @@ The specified process to attach to does not exist.
.\" .Xr aio_error 2 ,
.\" .Xr aio_read 2 ,
.\" .Xr aio_return 2 ,
.Xr fork 2 ,
.Xr ioctl 2 ,
.Xr listen 2 ,
.Xr poll 2 ,
.Xr read 2 ,
.Xr select 2 ,
.Xr sigaction 2 ,
.Xr unlink 2 ,
.Xr write 2 ,
.Xr signal 3 ,
.Xr kfilter_register 9 ,