diff --git a/src/libCom/os/vxWorks/README b/src/libCom/os/vxWorks/README deleted file mode 100644 index bbc0046b3..000000000 --- a/src/libCom/os/vxWorks/README +++ /dev/null @@ -1,3 +0,0 @@ - -The source files here are vxWorks dependent. - diff --git a/src/libCom/os/vxWorks/bsdSockResource.c b/src/libCom/os/vxWorks/bsdSockResource.c deleted file mode 100644 index cc34f0e70..000000000 --- a/src/libCom/os/vxWorks/bsdSockResource.c +++ /dev/null @@ -1,88 +0,0 @@ - -#include -#include - -#ifndef vxWorks -#error this is a vxWorks specific source code -#endif - -#include -#include - -#define epicsExportSharedSymbols -#include "bsdSocketResource.h" - -int bsdSockAttach() -{ - return 1; -} - -void bsdSockRelease() -{ -} - -/* - * ipAddrToHostName - */ -epicsShareFunc unsigned epicsShareAPI ipAddrToHostName - (const struct in_addr *pAddr, char *pBuf, unsigned bufSize) -{ - int status; - int errnoCopy = errno; - unsigned len; - - if (bufSize<1) { - return 0; - } - - if (bufSize>MAXHOSTNAMELEN) { - status = hostGetByAddr ((int)pAddr->s_addr, pBuf); - if (status==OK) { - pBuf[MAXHOSTNAMELEN] = '\0'; - len = strlen (pBuf); - } - else { - len = 0; - } - } - else { - char name[MAXHOSTNAMELEN+1]; - status = hostGetByAddr (pAddr->s_addr, name); - if (status==OK) { - strncpy (pBuf, name, bufSize); - pBuf[bufSize-1] = '\0'; - len = strlen (pBuf); - } - else { - len = 0; - } - } - - errno = errnoCopy; - - return len; -} - -/* - * hostToIPAddr () - */ -epicsShareFunc int epicsShareAPI hostToIPAddr - (const char *pHostName, struct in_addr *pIPA) -{ - int addr; - - addr = hostGetByName ((char *)pHostName); - if (addr==ERROR) { - /* - * return indicating an error - */ - return -1; - } - - pIPA->s_addr = (unsigned long) addr; - - /* - * success - */ - return 0; -} diff --git a/src/libCom/os/vxWorks/osdTime.cc b/src/libCom/os/vxWorks/osdTime.cc deleted file mode 100644 index a959c0ac4..000000000 --- a/src/libCom/os/vxWorks/osdTime.cc +++ /dev/null @@ -1,34 +0,0 @@ - -#include -#include - -#define epicsExportSharedSymbols -#include "osiTime.h" - -// -// osiTime::synchronize() -// -void osiTime::synchronize() -{ -} - -// -// osiTime::osdGetCurrent () -// -osiTime osiTime::osdGetCurrent () -{ - ULONG ticks; - ULONG sec; - ULONG nsec; - ULONG rate = sysClkRateGet(); - - // - // currently assuming that this has been already adjusted - // for the EPICS epoch - // - ticks = tickGet(); - sec = ticks / rate; - nsec = (ticks % rate) * (nSecPerSec / rate); - - return osiTime (sec, nsec); -} diff --git a/src/libCom/os/vxWorks/osiSleep.c b/src/libCom/os/vxWorks/osiSleep.c deleted file mode 100644 index 5360d105e..000000000 --- a/src/libCom/os/vxWorks/osiSleep.c +++ /dev/null @@ -1,23 +0,0 @@ - -#include -#include - -#define epicsExportSharedSymbols -#include "epicsAssert.h" -#include "osiSleep.h" - -epicsShareFunc void epicsShareAPI osiSleep (unsigned sec, unsigned uSec) -{ - ULONG ticks; - int status; - - ticks = (uSec*sysClkRateGet())/1000000; - ticks += sec*sysClkRateGet(); - - if (ticks==0) { - ticks = 1; - } - - status = taskDelay (ticks); - assert (status==OK); -} \ No newline at end of file diff --git a/src/libCom/os/vxWorks/sigPipeIgnore.c b/src/libCom/os/vxWorks/sigPipeIgnore.c deleted file mode 100644 index 51a57ce1b..000000000 --- a/src/libCom/os/vxWorks/sigPipeIgnore.c +++ /dev/null @@ -1,11 +0,0 @@ - -#define epicsExportSharedSymbols -#include "sigPipeIgnore.h" - -/* - * NOOP - */ -epicsShareFunc void epicsShareAPI installSigPipeIgnore (void) -{ -} -