to wait on a particular event based on the file descriptor. <div><br></div><div><a href="http://stackoverflow.com/questions/9167752/how-does-the-poll-function-work-in-c">http://stackoverflow.com/questions/9167752/how-does-the-poll-function-work-in-c</a></div>
<div><br></div><div><a href="http://linux.die.net/man/3/poll">http://linux.die.net/man/3/poll</a></div><div><br></div><div>look at the example if u don't understand the man page:</div><div><br></div><div><a href="http://linux.byexamples.com/archives/133/write-a-function/">http://linux.byexamples.com/archives/133/write-a-function/</a><br>
<br>and this comes with explanation + example:</div><div><br></div><div><a href="http://www.linux-mag.com/id/357/">http://www.linux-mag.com/id/357/</a></div><div><br></div><div><br><div class="gmail_quote">On Mon, Jan 14, 2013 at 4:20 AM, horseriver <span dir="ltr"><<a href="mailto:horserivers@gmail.com" target="_blank">horserivers@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi:<br>
<br>
what is the function of a file's poll function ?<br>
<br>
<br>
thanks!<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Peter Teoh
</div>