From 117f75eac4a0990c679cf79192c2a33ee79f3fe4 Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Thu, 13 Mar 1997 16:42:52 +0000 Subject: [PATCH] Initial Version --- src/include/os/cygwin32/osiSock.h | 82 ++++++++++++++++++++++++++++ src/libCom/osi/os/cygwin32/osdSock.h | 82 ++++++++++++++++++++++++++++ 2 files changed, 164 insertions(+) create mode 100644 src/include/os/cygwin32/osiSock.h create mode 100644 src/libCom/osi/os/cygwin32/osdSock.h diff --git a/src/include/os/cygwin32/osiSock.h b/src/include/os/cygwin32/osiSock.h new file mode 100644 index 000000000..a0c834e6f --- /dev/null +++ b/src/include/os/cygwin32/osiSock.h @@ -0,0 +1,82 @@ +/* + * cygwin32 specific include + */ + + +#ifndef osiSockH +#define osiSockH + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#include +#include /* for MAXHOSTNAMELEN */ +#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 /* 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)