summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-12-07 17:42:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-12-07 17:42:52 +0000
commit91b1c8e69e8b047c62cd301ebf6f4b8627941c08 (patch)
tree7e836dcb925324762fdd9825fbc22ec3cb46003a /cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
parentchanged version to 19981203 (diff)
downloadrtems-91b1c8e69e8b047c62cd301ebf6f4b8627941c08.tar.bz2
Patch from Ian Lance Taylor <ian@airs.com>:
RTEMS permits using the SO_SNDTIMEO and SO_RCVTIMEO socket options to set a timeout for most socket I/O operations. However, in RTEMS 4.0.0, those options do not affect connect or accept. I don't know of any way to put a timeout on those calls in RTEMS 4.0.0; can anybody point to one. Since it is frequently useful to have a timeout on accept, and sometimes useful to have a timeout on connect shorter than the BSD system default of 75 seconds, the following patch causes SO_RCVTIMEO to affect connect and accept.
Diffstat (limited to 'cpukit/libnetworking/rtems/rtems_bsdnet_internal.h')
-rw-r--r--cpukit/libnetworking/rtems/rtems_bsdnet_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
index 559bafd4c5..453fb23c66 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
@@ -41,7 +41,7 @@ struct mdproc {
* Other RTEMS/BSD glue
*/
struct socket;
-extern void soconnsleep (struct socket *so);
+extern int soconnsleep (struct socket *so);
extern void soconnwakeup (struct socket *so);
#define splnet() 0
#define splimp() 0