2 #include "ace/Time_Value.h"
3 #include "ace/OS_NS_errno.h"
5 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
8 ACE_OS::poll (struct pollfd *pollfds,
10 const ACE_Time_Value *timeout)
12 ACE_OS_TRACE ("ACE_OS::poll");
13 #if defined (ACE_HAS_POLL)
14 int to = timeout == 0 ? -1 : int (timeout->msec ());
15 return ::poll (pollfds, len, to);
17 ACE_UNUSED_ARG (timeout);
19 ACE_UNUSED_ARG (pollfds);
21 ACE_NOTSUP_RETURN (-1);
22 #endif /* ACE_HAS_POLL */
26 ACE_OS::poll (struct pollfd *pollfds,
28 const ACE_Time_Value &timeout)
30 ACE_OS_TRACE ("ACE_OS::poll");
31 #if defined (ACE_HAS_POLL)
32 return ::poll (pollfds, len, int (timeout.msec ()));
34 ACE_UNUSED_ARG (timeout);
36 ACE_UNUSED_ARG (pollfds);
38 ACE_NOTSUP_RETURN (-1);
39 #endif /* ACE_HAS_POLL */
42 ACE_END_VERSIONED_NAMESPACE_DECL