summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-07-24 13:25:50 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-07-24 13:25:50 +0000
commit7b4315141033dcf87b73c00a527159a43433debf (patch)
tree2d96a5d9f959908e5d758c38e804da7bb57cf585 /cpukit/libnetworking
parentce75da600a2c46755679561e3b4d025048addd16 (diff)
downloadrtems-7b4315141033dcf87b73c00a527159a43433debf.tar.bz2
2002-07-24 Joel Sherrill <joel@OARcorp.com>
* sys/select.h: Add a prototype of select() to avoid warnings. In particular a C++ application using select() required a prototype.
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/ChangeLog5
-rw-r--r--cpukit/libnetworking/sys/select.h10
2 files changed, 15 insertions, 0 deletions
diff --git a/cpukit/libnetworking/ChangeLog b/cpukit/libnetworking/ChangeLog
index a9f12b4103..321c5ae55a 100644
--- a/cpukit/libnetworking/ChangeLog
+++ b/cpukit/libnetworking/ChangeLog
@@ -1,5 +1,10 @@
2002-07-24 Joel Sherrill <joel@OARcorp.com>
+ * sys/select.h: Add a prototype of select() to avoid warnings.
+ In particular a C++ application using select() required a prototype.
+
+2002-07-24 Joel Sherrill <joel@OARcorp.com>
+
* Makefile.am, libc/res_send.c: Do not install or use <poll.h>
since RTEMS does not support it.
2002-07-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
diff --git a/cpukit/libnetworking/sys/select.h b/cpukit/libnetworking/sys/select.h
index e69971e3b6..97cddbe3df 100644
--- a/cpukit/libnetworking/sys/select.h
+++ b/cpukit/libnetworking/sys/select.h
@@ -54,4 +54,14 @@ void selrecord __P((struct proc *selector, struct selinfo *));
void selwakeup __P((struct selinfo *));
#endif
+/* Check the first NFDS descriptors each in READFDS (if not NULL) for read
+ readiness, in WRITEFDS (if not NULL) for write readiness, and in EXCEPTFDS
+ (if not NULL) for exceptional conditions. If TIMEOUT is not NULL, time out
+ after waiting the interval specified therein. Returns the number of ready
+ descriptors, or -1 for errors. */
+extern int select (int __nfds, fd_set *__readfds,
+ fd_set *__writefds,
+ fd_set *__exceptfds,
+ struct timeval *__timeout);
+
#endif /* !_SYS_SELECT_H_ */