From 48ea56d2953dbe0ca8989cce5a99c36c43f04798 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 13 Aug 2001 20:30:35 +0000 Subject: [PATCH] removed unused code --- src/libCom/osi/os/default/osdSock.c | 26 +------------------------- src/libCom/osi/os/vxWorks/osdSock.c | 26 -------------------------- 2 files changed, 1 insertion(+), 51 deletions(-) diff --git a/src/libCom/osi/os/default/osdSock.c b/src/libCom/osi/os/default/osdSock.c index 6e1789bf5..e0cd3ae52 100644 --- a/src/libCom/osi/os/default/osdSock.c +++ b/src/libCom/osi/os/default/osdSock.c @@ -129,28 +129,4 @@ epicsShareFunc int epicsShareAPI hostToIPAddr return ret; } -/* - * typically the shutdown() function will wake up threads blocking in TCP recv() - * and this is a more graceful way to shutdown - */ -epicsShareFunc enum osiSockShutdownReturn epicsShareAPI osiSocketShutdown ( SOCKET sock ) -{ - int status; - status = shutdown ( sock, SD_BOTH ); - if ( status ) { - errlogPrintf ( "TCP socket shutdown error (for shutdown purposes) was %s\n", - SOCKERRSTR (SOCKERRNO) ); - status = socket_close ( sock ); - if ( status ) { - errlogPrintf ("TCP socket close error (for shutdown purposes) was %s\n", - SOCKERRSTR (SOCKERRNO) ); - return ossrSocketNoChange; - } - else { - return ossrSocketClosed; - } - } - else { - return ossrSocketShutdown; - } -} + diff --git a/src/libCom/osi/os/vxWorks/osdSock.c b/src/libCom/osi/os/vxWorks/osdSock.c index 93ba48f2c..3af0d3de8 100644 --- a/src/libCom/osi/os/vxWorks/osdSock.c +++ b/src/libCom/osi/os/vxWorks/osdSock.c @@ -87,29 +87,3 @@ epicsShareFunc int epicsShareAPI hostToIPAddr return 0; } -/* - * typically the shutdown() function will wake up threads blocking in TCP recv() - * and this is a more graceful way to shutdown - */ -epicsShareFunc enum osiSockShutdownReturn epicsShareAPI osiSocketShutdown ( SOCKET sock ) -{ - int status; - - status = shutdown ( sock, SD_BOTH ); - if ( status ) { - errlogPrintf ( "TCP socket shutdown error (for shutdown purposes) was %s\n", - SOCKERRSTR (SOCKERRNO) ); - status = socket_close ( sock ); - if ( status ) { - errlogPrintf ("TCP socket close error (for shutdown purposes) was %s\n", - SOCKERRSTR (SOCKERRNO) ); - return ossrSocketNoChange; - } - else { - return ossrSocketClosed; - } - } - else { - return ossrSocketShutdown; - } -}