Woof!
On Fri, 07 Nov 2008 11:23:27 -0400, Beeton, Carolyn (CAR:9D60)
<[EMAIL PROTECTED]> wrote:
> Can you give a reference for that? I don't see any such limit on the
> man page...
man select:
NOTES
An fd_set is a fixed size buffer. Executing FD_CLR() or FD_SET()
with
a value of fd that is negative or is equal to or larger than
FD_SETSIZE
will result in undefined behavior.
proveit.c:
#include <stdio.h>
#include <sys/select.h>
int
main(int argc, char *argv[])
{
int a = FD_SETSIZE;
printf("FD_SETSIZE is %d\n", a);
}
[EMAIL PROTECTED] tmp]$ ./proveit
FD_SETSIZE is 1024
--Woof!
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev