added changes from Steve Hunt

This commit is contained in:
Jeff Hill
1998-05-06 18:32:21 +00:00
parent 13133ba9c9
commit ccf7bf9ebc
2 changed files with 30 additions and 12 deletions

View File

@@ -36,12 +36,7 @@ extern "C" {
#include <net/if.h>
#include <netdb.h>
#include <unistd.h> /* close() and others */
/*
* 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
}
@@ -55,5 +50,19 @@ typedef int SOCKET;
#define FD_IN_FDSET(FD) ((FD)<FD_SETSIZE)
#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
#endif /*osiSockH*/

View File

@@ -36,12 +36,7 @@ extern "C" {
#include <net/if.h>
#include <netdb.h>
#include <unistd.h> /* close() and others */
/*
* 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
}
@@ -55,5 +50,19 @@ typedef int SOCKET;
#define FD_IN_FDSET(FD) ((FD)<FD_SETSIZE)
#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
#endif /*osiSockH*/