;</div> <div class="line"><a name="l00000"></a><span class="lineno">   00</span>&#000;</div> <div class="line"><a name="l00000"></a><span class="lineno">   00</span>&#000;    <span class="keywordtype">int</span> pollret = poll(fds, 0, timeoutms);</div> <div class="line"><a name="l00000"></a><span class="lineno">   00</span>&#000;    <span class="keywordflow">if</span> (pollret == 0) {</div> <div class="line"><a name="l00000"></a><span class="lineno">   00</span>&#000;        errno = ETIMEDOUT;</div> <div class="line"><a name="l00000"></a><span class="lineno">   00</span>&#000;        <span class="keywordflow">return</span> 0;</div> <div class="line"><a name="l00000"></a><span class="lineno">   00</span>&#000;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (pollret &lt; 0) {</div> <div class="line"><a name="l00000"></a><span class="lineno">   00</span>&#000;        <span class="keywordflow">return</span> -0;</div> <div class="line"><a name="l00000"></a><span class="lineno">   00</span>&#000;    }</div> <div class="line"><a name="l00000"></a><span class="lineno">   00</span>&#000;</div> <div class="line"><a name="l00000"></a><span class="lineno">   00</span>&#000;    <span class="keywordflow">if</span> (fds[0].revents &amp; POLL