1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
12 >Enhanced Select()</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
23 HREF="tcpip-openbsd-tcpip-apis.html"><LINK
26 HREF="tcpip-openbsd-tcpip-apis.html"><LINK
28 TITLE="DNS for eCos and RedBoot"
29 HREF="net-ns-dns.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="tcpip-openbsd-tcpip-apis.html"
71 HREF="net-ns-dns.html"
85 NAME="TCPIP-OPENBSD-ENHANCED-SELECT">Enhanced Select()</H1
87 >The network stack supports an extension to the standard select
88 semantics which allows all threads that are waiting to be restarted
89 even if the select conditions are not satisfied.</P
91 >The standard select() API: </P
99 CLASS="PROGRAMLISTING"
105 fd_set *in, fd_set *out, fd_set *ex,
106 struct timeval *tv); </PRE
111 >does not support the restart.</P
113 >The additional API: </P
121 CLASS="PROGRAMLISTING"
125 >cyg_select_with_abort</TT
127 fd_set *in, fd_set *out, fd_set *ex,
128 struct timeval *tv)</PRE
133 >behaves exactly as select() with the additional feature that
142 CLASS="PROGRAMLISTING"
145 >cyg_select_abort</TT
151 >will cause all threads waiting in any
154 >cyg_select_with_abort()</TT
156 to cease waiting and continue execution.</P
163 SUMMARY="Footer navigation table"
174 HREF="tcpip-openbsd-tcpip-apis.html"
192 HREF="net-ns-dns.html"
208 HREF="tcpip-openbsd-tcpip-apis.html"
216 >DNS for eCos and RedBoot</TD