[asterisk-dev] About implementation of poll() in poll.c

Pranav Peshwe pranav at gs-lab.com
Fri Jul 21 07:40:26 MST 2006


Hello,
          In chan_sip.c , ast_io_wait() uses the poll() function
 defined in poll.c. poll() internally uses select() for fd multiplexing.
Why is poll() implemented using select() in asterisk inspite of being 
present as a
standard function already i.e POLL(2)  - on linux atleast ? The 
semantics of the
implemented poll() function look similar to POLL(2).
Is there any specific reason ? like portability problems for poll() ? or 
is the
implementation in any way different in functionality from POLL(2) ?

TIA.

Regards,
Pranav



More information about the asterisk-dev mailing list