From 0500ccb4da5a03cf26447f75e7e8f06d57bb7d8f Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Tue, 18 Feb 1997 22:04:21 +0000 Subject: [PATCH] Aplha support file from M. Rivers --- src/include/os/alpha/osiSock.h | 51 +++++++++++++++++++++++++++++++ src/libCom/osi/os/alpha/osdSock.h | 51 +++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 src/include/os/alpha/osiSock.h create mode 100644 src/libCom/osi/os/alpha/osdSock.h diff --git a/src/include/os/alpha/osiSock.h b/src/include/os/alpha/osiSock.h new file mode 100644 index 000000000..431031746 --- /dev/null +++ b/src/include/os/alpha/osiSock.h @@ -0,0 +1,51 @@ + +/* + * Solaris specifif socket include + */ + +#ifndef osiSockH +#define osiSockH + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#include +#include /* for MAXHOSTNAMELEN */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include /* close() and others */ + +void ipAddrToA(const struct sockaddr_in *pInetAddr, + char *pBuf, const unsigned bufSize); + +/* + * as far as I can tell there is no header file for these + */ +int gethostname(char *name, int namelen); +int sethostname(char *name, int namelen); + +#ifdef __cplusplus +} +#endif + +typedef int SOCKET; +#define INVALID_SOCKET (-1) +#define SOCKERRNO errno +#define socket_close(S) close(S) +#define socket_ioctl(A,B,C) ioctl(A,B,C) + +#define FD_IN_FDSET(FD) ((FD) + +#include +#include /* for MAXHOSTNAMELEN */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include /* close() and others */ + +void ipAddrToA(const struct sockaddr_in *pInetAddr, + char *pBuf, const unsigned bufSize); + +/* + * as far as I can tell there is no header file for these + */ +int gethostname(char *name, int namelen); +int sethostname(char *name, int namelen); + +#ifdef __cplusplus +} +#endif + +typedef int SOCKET; +#define INVALID_SOCKET (-1) +#define SOCKERRNO errno +#define socket_close(S) close(S) +#define socket_ioctl(A,B,C) ioctl(A,B,C) + +#define FD_IN_FDSET(FD) ((FD)