Asterisk - The Open Source Telephony Project
18.5.0
|
Go to the source code of this file.
Macros | |
#define | ast_poll(a, b, c) poll(a, b, c) |
Functions | |
int | ast_poll2 (struct pollfd *pArray, unsigned long n_fds, struct timeval *tv) |
Same as poll(2), except the time is specified in microseconds and the tv argument is modified to indicate the time remaining. More... | |
static int | ast_poll_fd_index (struct pollfd *haystack, int nfds, int needle) |
Shortcut for conversion of FD_ISSET to poll(2)-based. More... | |
Definition at line 88 of file poll-compat.h.
Referenced by _sip_tcp_helper_thread(), ast_el_read_char(), ast_io_wait(), ast_remotecontrol(), ast_stun_request(), AST_TEST_DEFINE(), ast_wait_for_input(), ast_wait_for_output(), ast_waitfor_nandfds(), cb_events(), dispatch_thread_handler(), do_monitor(), do_pktccops(), handle_audiosocket_connection(), handle_connection(), listener(), misdn_read(), monitor_sig_flags(), monmp3thread(), netconsole(), shaun_of_the_dead(), skinny_session(), timed_read(), timing_test(), wait_for_output(), and xmpp_io_recv().
int ast_poll2 | ( | struct pollfd * | pArray, |
unsigned long | n_fds, | ||
struct timeval * | tv | ||
) |
Same as poll(2), except the time is specified in microseconds and the tv argument is modified to indicate the time remaining.
Definition at line 268 of file poll.c.
References ast_select(), ast_tv(), ast_tvadd(), ast_tvdiff_ms(), ast_tvnow(), ast_tvsub(), FD_ZERO, and NULL.
Referenced by AST_TEST_DEFINE(), and do_monitor().
|
inlinestatic |
Shortcut for conversion of FD_ISSET to poll(2)-based.
Definition at line 128 of file poll-compat.h.
Referenced by do_pktccops().