added sock ioctl() typedef and the loop back address

This commit is contained in:
Jeff Hill
1998-05-29 19:55:25 +00:00
parent 085895a0e3
commit 134fe51682
2 changed files with 18 additions and 0 deletions
+9
View File
@@ -30,7 +30,12 @@ typedef int SOCKET;
#define SOCKERRNO errno
#define SOCKERRSTR (strerror(SOCKERRNO))
#define socket_close(S) close(S)
/*
* it is quite lame on WRS's part to assume that
* a ptr is always the same as an int
*/
#define socket_ioctl(A,B,C) ioctl(A,B,(int)C)
typedef int osiSockIoctl_t;
#define FD_IN_FDSET(FD) ((FD)<FD_SETSIZE&&(FD)>=0)
@@ -48,6 +53,10 @@ typedef int SOCKET;
#define SOCK_EINTR EINTR
#define SOCK_EPIPE EPIPE
#ifndef INADDR_LOOPBACK
#define INADDR_LOOPBACK 0x7F000001
#endif
#endif /*osiSockH*/
+9
View File
@@ -30,7 +30,12 @@ typedef int SOCKET;
#define SOCKERRNO errno
#define SOCKERRSTR (strerror(SOCKERRNO))
#define socket_close(S) close(S)
/*
* it is quite lame on WRS's part to assume that
* a ptr is always the same as an int
*/
#define socket_ioctl(A,B,C) ioctl(A,B,(int)C)
typedef int osiSockIoctl_t;
#define FD_IN_FDSET(FD) ((FD)<FD_SETSIZE&&(FD)>=0)
@@ -48,6 +53,10 @@ typedef int SOCKET;
#define SOCK_EINTR EINTR
#define SOCK_EPIPE EPIPE
#ifndef INADDR_LOOPBACK
#define INADDR_LOOPBACK 0x7F000001
#endif
#endif /*osiSockH*/