Garrett Wollman wrote: > > <<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 > poll().
This answers your original concern - convert it to use poll(2) instead of select(2) and you will be safe from the "out of default fd_set" without loosing portability. -Maxim To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message