Lines Matching refs:PR_Poll
109 printf("This program tests PR_Poll with sockets.\n");
192 printf("PR_Poll should time out in 5 seconds\n");
193 retVal = PR_Poll(pds, npds, PR_SecondsToInterval(5));
196 "PR_Poll should time out and return 0, but it returns %ld\n",
201 printf("PR_Poll timed out. Test passed.\n\n");
204 printf("PR_Poll should detect a bad file descriptor\n");
215 retVal = PR_Poll(pds, npds, PR_INTERVAL_NO_TIMEOUT);
218 "PR_Poll returns %d, out_flags is 0x%hx\n",
222 printf("PR_Poll detected the bad fd. Test passed.\n\n");
267 retVal = PR_Poll(pds, npds, PR_INTERVAL_NO_TIMEOUT);
270 fprintf(stderr, "PR_Poll failed\n");
305 fprintf(stderr, "PR_Poll() indicates that an fd has error\n");
308 fprintf(stderr, "PR_Poll() indicates that fd %d is invalid\n",
349 fprintf(stderr, "PR_Poll() indicates that an fd has error\n");
352 fprintf(stderr, "PR_Poll() indicates that an fd is invalid\n");