Searched refs:PR_Poll (Results 1 - 20 of 20) sorted by relevance

/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
H A Dnbconn.c40 * PR_Poll, and PR_GetConnectStatus.
178 n = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
180 n = PR_Poll(&pd, 1, timeout);
183 printf( "PR_Poll failed\n");
186 printf( "PR_Poll returns %d\n", n);
211 n = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
381 n = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
383 n = PR_Poll(&pd, 1, timeout);
386 fprintf(stderr,"Error - PR_Poll failed: (%d, %d)\n",
404 rv = PR_Poll(
[all...]
H A Dprpollml.c66 rv = PR_Poll(pd, i, timeout);
69 "PR_Poll should time out but returns %d (%d, %d)\n",
76 rv = PR_Poll(pd, i, timeout);
78 fprintf(stderr, "PR_Poll should time out but returns %d\n", rv);
H A Dnblayer.c136 ready = PR_Poll(&polldesc, 1, PR_INTERVAL_NO_TIMEOUT);
175 ready = PR_Poll(&polldesc, 1, PR_INTERVAL_NO_TIMEOUT);
203 ready = PR_Poll(&polldesc, 1, PR_INTERVAL_NO_TIMEOUT);
245 ready = PR_Poll(&polldesc, 1, PR_INTERVAL_NO_TIMEOUT);
276 ready = PR_Poll(&polldesc, 1, PR_INTERVAL_NO_TIMEOUT);
305 ready = PR_Poll(&polldesc, 1, PR_INTERVAL_NO_TIMEOUT);
H A Dpeek.c203 npds = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
205 fprintf(stderr, "PR_Poll failed\n");
209 fprintf(stderr, "PR_Poll returned %d, absurd!\n", npds);
229 npds = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
231 fprintf(stderr, "PR_Poll failed\n");
235 fprintf(stderr, "PR_Poll returned %d, absurd!\n", npds);
253 npds = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
255 fprintf(stderr, "PR_Poll failed\n");
259 fprintf(stderr, "PR_Poll returned %d, absurd!\n", npds);
H A Dprpoll.c109 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(pd
[all...]
H A Dpoll_to.c42 ** Description: This program tests PR_Poll with sockets.
117 printf("This program tests PR_Poll with sockets.\n");
188 if (debug_mode) printf("PR_Poll should time out in 5 seconds\n");
189 retVal = PR_Poll(pds, npds, PR_SecondsToInterval(5));
192 "PR_Poll should time out and return 0, but it returns %ld\n",
198 if (debug_mode) printf("PR_Poll timed out. Test passed.\n\n");
H A Dpollable.c84 rv = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
86 PR_fprintf(PR_STDERR, "PR_Poll failed\n");
257 rv = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
H A Dpoll_er.c42 ** Description: This program tests PR_Poll with sockets.
138 printf("This program tests PR_Poll with sockets.\n");
209 if (debug_mode) printf("PR_Poll should detect a bad file descriptor\n");
226 retVal = PR_Poll(pds, npds, PR_INTERVAL_NO_TIMEOUT);
229 "PR_Poll returns %d, out_flags is 0x%hx\n",
234 if (debug_mode) printf("PR_Poll detected the bad fd. Test passed.\n\n");
H A Dnonblock.c67 * If not defined, use PR_Poll instead. */
118 n = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
H A Dpoll_nm.c42 ** Description: This program tests PR_Poll with sockets.
174 printf("This program tests PR_Poll with sockets.\n");
246 /* Add some unused entries to test if they are ignored by PR_Poll() */
287 retVal = PR_Poll(pds, npds, PR_INTERVAL_NO_TIMEOUT);
290 fprintf(stderr, "PR_Poll failed\n");
315 fprintf(stderr, "PR_Poll() indicates that an fd has error\n");
319 fprintf(stderr, "PR_Poll() indicates that fd %d is invalid\n",
360 fprintf(stderr, "PR_Poll() indicates that an fd has error\n");
364 fprintf(stderr, "PR_Poll() indicates that an fd is invalid\n");
H A Dy2ktmo.c45 * representative), PR_Poll, PR_WaitCondVar, PR_Wait, and
252 rv = PR_Poll(&pd, 1, timeout);
254 fprintf(stderr, "PR_Poll did not time out\n");
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/io/
H A Dprio.c158 PR_IMPLEMENT(PRInt32) PR_Poll(PRPollDesc *pds, PRIntn npds, PRIntervalTime timeout)
H A Dprmwait.c571 count_ready = PR_Poll(group->polling_list, count, polling_interval);
H A Dprsocket.c1769 ** (there can't be any overlapping) and call PR_Poll().
1775 if (warning) warning = _PR_Obsolete( "PR_Select()", "PR_Poll()");
1809 npds = PR_Poll(poll, unused, timeout);
/vbox/src/libs/xpcom18a4/ipc/ipcd/daemon/src/
H A DipcdUnix.cpp376 LOG(("calling PR_Poll [pollCount=%d]\n", pollCount));
377 rv = PR_Poll(ipcPollList, pollCount, PR_SecondsToInterval(60 * 5));
379 LOG(("PR_Poll failed [%d]\n", PR_GetError()));
/vbox/src/libs/xpcom18a4/ipc/ipcd/client/src/
H A DipcConnectionUnix.cpp336 num = PR_Poll(s->fds, 2, PR_INTERVAL_NO_TIMEOUT);
385 LOG(("PR_Poll returned error %d (%s), os error %d\n", PR_GetError(),
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/
H A Dprio.h62 #define PR_Poll VBoxNsprPR_Poll macro
1364 * PR_IN_PROGRESS_ERROR), one should call PR_Poll() on the socket,
1366 * PR_Poll() returns, one calls PR_ConnectContinue() on the
1368 * completed or is still in progress. Repeat the PR_Poll(),
1376 * PR_Poll()
1385 * later when PR_Poll() returns.
1400 * fails with PR_IN_PROGRESS_ERROR), one should call PR_Poll()
1402 * When PR_Poll() returns, one calls PR_GetConnectStatus on the
1409 * PR_Poll() should have been called and set the out_flags.
2015 ** FUNCTION: PR_Poll
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/
H A Duxproces.c111 * need to catch SIGCHLD, and the pipe to unblock PR_Poll() is
823 rv = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/misc/
H A Dprtpool.c324 * call PR_Poll
406 rv = PR_Poll(tp->ioq.pollfds, pollfds_used, poll_timeout);
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/
H A Dptio.c4302 PR_IMPLEMENT(PRInt32) PR_Poll(
4684 if (unwarned) unwarned = _PR_Obsolete("PR_FD_ZERO (PR_Select)", "PR_Poll");
4691 if (unwarned) unwarned = _PR_Obsolete("PR_FD_SET (PR_Select)", "PR_Poll");
4701 if (unwarned) unwarned = _PR_Obsolete("PR_FD_CLR (PR_Select)", "PR_Poll");
4717 if (unwarned) unwarned = _PR_Obsolete("PR_FD_ISSET (PR_Select)", "PR_Poll");
4728 if (unwarned) unwarned = _PR_Obsolete("PR_FD_NSET (PR_Select)", "PR_Poll");
4738 if (unwarned) unwarned = _PR_Obsolete("PR_FD_NCLR (PR_Select)", "PR_Poll");
4754 if (unwarned) unwarned = _PR_Obsolete("PR_FD_NISSET (PR_Select)", "PR_Poll");
4833 if (unwarned) unwarned = _PR_Obsolete( "PR_Select", "PR_Poll");

Completed in 76 milliseconds