Ticket #19220: foo.c

File foo.c, 301 bytes (added by bhaible, 6 hours ago)

test case foo.c

Line 
1#include <stdio.h>
2#include <time.h>
3#include <errno.h>
4#include <sys/time.h>
5#include <sys/select.h>
6int main ()
7{
8 printf ("FD_SETSIZE = %u\n", FD_SETSIZE);
9 struct timeval t;
10 t.tv_sec = 1;
11 t.tv_usec = 0;
12 int ret = select (513, NULL, NULL, NULL, &t);
13 if (ret < 0)
14 perror ("select");
15}