#ifdef HAVE_PPOLL
if (!blockp)
{
- n = poll (fds, nfds, 0);
+ n = (UX_poll (fds, nfds, 0));
}
else
{
}
else
{
- n = ppoll (fds, nfds, NULL, &old);
+ n = (UX_ppoll (fds, nfds, NULL, &old));
}
UX_sigprocmask (SIG_SETMASK, &old, NULL);
}
(n, (((OS_process_any_status_change ())
|| (pending_interrupts_p ()))
? ((errno = EINTR), (-1))
- : (poll (fds, nfds, (blockp ? INFTIM : 0)))));
+ : (UX_poll (fds, nfds, (blockp ? INFTIM : 0)))));
#endif
return (n);
struct select_registry_s * r = registry;
while (1)
{
- int nfds = safe_poll ((SR_ENTRIES (r)), (SR_N_FDS (r)), blockp);
+ int nfds = (safe_poll ((SR_ENTRIES (r)), (SR_N_FDS (r)), blockp));
if (nfds >= 0)
return (nfds);
if (errno != EINTR)
((pfds [0]) . events) = (DECODE_MODE (mode));
while (1)
{
- int nfds = safe_poll (pfds, 1, blockp);
+ int nfds = (safe_poll (pfds, 1, blockp));
if (nfds > 0)
return (ENCODE_MODE ((pfds [0]) . revents));
if (nfds == 0)
#ifdef HAVE_PSELECT
if (!blockp)
{
- n = UX_select (nfds, readfds, writefds, NULL, &zero_timeout);
+ n = (UX_select (nfds, readfds, writefds, NULL, &zero_timeout));
}
else
{
}
else
{
- n = pselect (nfds, readfds, writefds, NULL, NULL, &old);
+ n = (UX_pselect (nfds, readfds, writefds, NULL, NULL, &old));
}
UX_sigprocmask (SIG_SETMASK, &old, NULL);
}
(* (SR_RWRITERS (r))) = (* (SR_QWRITERS (r)));
while (1)
{
- int nfds = safe_select (FD_SETSIZE,
- (SR_RREADERS (r)),
- (SR_RWRITERS (r)),
- blockp);
+ int nfds = (safe_select (FD_SETSIZE,
+ (SR_RREADERS (r)),
+ (SR_RWRITERS (r)),
+ blockp));
if (nfds >= 0)
return (nfds);
if (errno != EINTR)
while (1)
{
- int nfds = safe_select (fd + 1, &readable, &writeable, blockp);
+ int nfds = (safe_select (fd + 1, &readable, &writeable, blockp));
if (nfds > 0)
return
(((FD_ISSET (fd, (&readable))) ? SELECT_MODE_READ : 0)