From abe127c6f90bb599f6bfbe90eb50746711a7a61c Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Tue, 19 Dec 2006 17:08:01 +0000 Subject: [PATCH] Initial version from Kazuro Furukawa. --- src/libCom/osi/os/osf/epicsMath.h | 16 +++++++ src/libCom/osi/os/osf/osdSock.h | 73 +++++++++++++++++++++++++++++ src/libCom/osi/os/osf/osiFileName.h | 21 +++++++++ 3 files changed, 110 insertions(+) create mode 100644 src/libCom/osi/os/osf/epicsMath.h create mode 100644 src/libCom/osi/os/osf/osdSock.h create mode 100644 src/libCom/osi/os/osf/osiFileName.h diff --git a/src/libCom/osi/os/osf/epicsMath.h b/src/libCom/osi/os/osf/epicsMath.h new file mode 100644 index 000000000..40b7d2a83 --- /dev/null +++ b/src/libCom/osi/os/osf/epicsMath.h @@ -0,0 +1,16 @@ +/*************************************************************************\ +* Copyright (c) 2002 The University of Chicago, as Operator of Argonne +* National Laboratory. +* Copyright (c) 2002 The Regents of the University of California, as +* Operator of Los Alamos National Laboratory. +* EPICS BASE Versions 3.13.7 +* and higher are distributed subject to a Software License Agreement found +* in file LICENSE that is included with this distribution. +\*************************************************************************/ +#ifndef epicsMathh +#define epicsMathh + +#include +#define isinf(D) (!finite((D)) && !(isnan((D)))) + +#endif /* epicsMathh */ diff --git a/src/libCom/osi/os/osf/osdSock.h b/src/libCom/osi/os/osf/osdSock.h new file mode 100644 index 000000000..772d3d3ff --- /dev/null +++ b/src/libCom/osi/os/osf/osdSock.h @@ -0,0 +1,73 @@ +/*************************************************************************\ +* Copyright (c) 2002 The University of Chicago, as Operator of Argonne +* National Laboratory. +* Copyright (c) 2002 The Regents of the University of California, as +* Operator of Los Alamos National Laboratory. +* EPICS BASE Versions 3.13.7 +* and higher are distributed subject to a Software License Agreement found +* in file LICENSE that is included with this distribution. +\*************************************************************************/ + +/* + * alpha specific socket include + */ + +#ifndef osdSockH +#define osdSockH + +#ifdef __cplusplus +extern "C" { +struct ifafilt; +#endif + +#include + +#include +#include /* for MAXHOSTNAMELEN */ +#include +#include +#include +/* #include */ +/* #include */ +#include +#include +#include +#include +#include +#include /* close() and others */ + +#ifdef __cplusplus +} +#endif + +typedef int SOCKET; +#define INVALID_SOCKET (-1) +#define SOCKERRNO errno +#define socket_ioctl(A,B,C) ioctl(A,B,C) +typedef int osiSockIoctl_t; +typedef int osiSocklen_t; + +#define FD_IN_FDSET(FD) ((FD)=0) + +#define SOCK_EWOULDBLOCK EWOULDBLOCK +#define SOCK_ENOBUFS ENOBUFS +#define SOCK_ECONNRESET ECONNRESET +#define SOCK_ETIMEDOUT ETIMEDOUT +#define SOCK_EADDRINUSE EADDRINUSE +#define SOCK_ECONNREFUSED ECONNREFUSED +#define SOCK_ECONNABORTED ECONNABORTED +#define SOCK_EINPROGRESS EINPROGRESS +#define SOCK_EISCONN EISCONN +#define SOCK_EALREADY EALREADY +#define SOCK_EINVAL EINVAL +#define SOCK_EINTR EINTR +#define SOCK_EPIPE EPIPE +#define SOCK_EMFILE EMFILE +#define SOCK_SHUTDOWN ESHUTDOWN +#define SOCK_ENOTSOCK ENOTSOCK +#define SOCK_EBADF EBADF + +#define ifreq_size(pifreq) (sizeof(pifreq->ifr_name)) + +#endif /*osdSockH*/ + diff --git a/src/libCom/osi/os/osf/osiFileName.h b/src/libCom/osi/os/osf/osiFileName.h new file mode 100644 index 000000000..b79203992 --- /dev/null +++ b/src/libCom/osi/os/osf/osiFileName.h @@ -0,0 +1,21 @@ +/*************************************************************************\ +* Copyright (c) 2002 The University of Chicago, as Operator of Argonne +* National Laboratory. +* Copyright (c) 2002 The Regents of the University of California, as +* Operator of Los Alamos National Laboratory. +* EPICS BASE Versions 3.13.7 +* and higher are distributed subject to a Software License Agreement found +* in file LICENSE that is included with this distribution. +\*************************************************************************/ +/* + * osiFileName.h + * Author: Jeff Hill + * + * + */ +#ifndef osiFileNameH +#define osiFileNameH + +#include "unixFileName.h" + +#endif /* osiFileNameH */