.\" -*-nroff-*-
-.TH sel 3mLib "22 May 1999" mLib
+.TH sel 3 "22 May 1999" mLib
.SH NAME
sel \- low level interface for waiting for I/O
+.\" @sel_init
+.\" @sel_initfile
+.\" @sel_addfile
+.\" @sel_rmfile
+.\" @sel_addtimer
+.\" @sel_rmtimer
+.\" @sel_select
.SH SYNOPSIS
.nf
.B "#include <mLib/sel.h>"
using
.BR sel 's
interface. For examples, see
-.BR selbuf (3mLib)
+.BR selbuf (3)
and
-.BR conn (3mLib).
+.BR conn (3).
.SH "PROGRAMMING INTERFACE"
A multiplexor is represented using the type
.B sel_state
selector is not added to its multiplexor: this must be done explicitly.
.PP
The handler function for a file multiplexor is passed three arguments:
-the file descriptor for the file, a mode argument which descibes the
+the file descriptor for the file, a mode argument which describes the
file's new condition, and the pointer argument set up at initialization
time.
.PP
.BR poll (2)
instead would be fairly trivial to make, and would look just the same
from the outside.
+.SH "SEE ALSO"
+.BR select (2),
+.BR poll (2),
+.BR mLib (3).
.SH AUTHOR
Mark Wooding, <mdw@nsict.org>