Mail Archives: djgpp-workers/2000/12/24/08:40:02
Hello.
Please find below a diff that adds a description of what n, p mean in
the descriptions of the FD_* macros.
Without this patch, if you are unfamiliar with select(), you will have
to read through to the example to see that p is an 'fd_set *'. This
catches me out every time I read the select() page.
Bye, Rich
*** src/libc/compat/time/select.txh.orig Sun Dec 24 12:15:06 2000
--- src/libc/compat/time/select.txh Sun Dec 24 12:16:10 2000
***************
*** 19,25 ****
Each @code{fd_set} variable is a bitmap representation of a set of file
descriptors, one bit for every descriptor. The following macros shall
! be used to deal with these sets:
@table @code
--- 19,26 ----
Each @code{fd_set} variable is a bitmap representation of a set of file
descriptors, one bit for every descriptor. The following macros shall
! be used to deal with these sets, where @var{p} is a pointer to
! the @code{fd_set} and @var{n} is a file descriptor:
@table @code
- Raw text -