<<On Mon, 26 Nov 2001 15:27:45 -0500 (EST), "Andrew R. Reiter" <[EMAIL PROTECTED]> said:

> As from OpenBSD (in shorter form):

>       fd_set *fds = calloc(howmany(fd+1, NFDBITS), sizeof(fd_mask));

But this is not portable.  The application is not allowed to assume
anything about the structure of an fd_set, or the existence of a type
`fd_mask', or the existence of a macro `howmany' (which is actually
prohibited).  The only portable (in the sense of officially
standardized) interface that doesn't suffer from this problem is


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to