Magellan Linux

Diff of /trunk/mkinitrd-magellan/klibc/usr/klibc/tests/select.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1296 by niro, Sat Sep 1 22:45:15 2007 UTC revision 1297 by niro, Fri May 27 15:12:11 2011 UTC
# Line 42  int main(int argc, char *argv[]) Line 42  int main(int argc, char *argv[])
42   FD_SET(fdz, &readset);   FD_SET(fdz, &readset);
43    
44   rv = select(FD_SETSIZE, &readset, NULL, NULL, &timeout);   rv = select(FD_SETSIZE, &readset, NULL, NULL, &timeout);
45    
46   if (rv != 1 || !FD_ISSET(fdz, &readset) ||   if (rv != 1 || !FD_ISSET(fdz, &readset) ||
47      FD_ISSET(fdn, &readset)) {      FD_ISSET(fdn, &readset)) {
48   fprintf(stderr,   fprintf(stderr,

Legend:
Removed from v.1296  
changed lines
  Added in v.1297