79#ifndef __AST_POLL_COMPAT_H
80#define __AST_POLL_COMPAT_H
84#ifndef AST_POLL_COMPAT
88#define ast_poll(a, b, c) poll(a, b, c)
109#define ast_poll(a, b, c) ast_internal_poll(a, b, c)
111int ast_internal_poll(
struct pollfd *pArray,
unsigned long n_fds,
int timeout);
123int ast_poll2(
struct pollfd *pArray,
unsigned long n_fds,
struct timeval *tv);
131 for (i = 0; i < nfds; i++) {
132 if (haystack[i].fd == needle) {
static const struct adsi_event events[]
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 indi...
static int ast_poll_fd_index(struct pollfd *haystack, int nfds, int needle)
Shortcut for conversion of FD_ISSET to poll(2)-based.
Bitfield expansions for ast_select.