fixed R3.13 for Linux's new socklen_t

This commit is contained in:
Jeff Hill
2001-03-06 00:10:29 +00:00
parent 9b6d834852
commit f04f56750a
12 changed files with 20 additions and 4 deletions

View File

@@ -31,6 +31,9 @@
/* */
/*
* $Log$
* Revision 1.43.4.2 1999/09/02 21:16:42 jhill
* fixed missing paramter to checkConnWatchDogs() func
*
* Revision 1.43.4.1 1999/07/15 20:33:46 jhill
* added congestion thresh to search sched alg
*
@@ -619,9 +622,9 @@ void mark_server_available (const struct sockaddr_in *pnet_addr)
* from replying at once.
*/
{
struct sockaddr_in saddr;
int saddr_length = sizeof(saddr);
int status;
struct sockaddr_in saddr;
osiSocklen_t saddr_length = sizeof(saddr);
int status;
status = getsockname(
piiuCast->sock_chan,

View File

@@ -6,6 +6,9 @@
//
//
// $Log$
// Revision 1.7 1998/06/18 00:11:09 jhill
// use ipAddrToA
//
// Revision 1.6 1998/06/16 02:35:51 jhill
// use aToIPAddr and auto attach to winsock if its a static build
//
@@ -54,7 +57,7 @@ caStatus casIntfIO::init(const caNetAddr &addrIn, casDGClient &dgClientIn,
int yes = TRUE;
int status;
caStatus stat;
int addrSize;
osiSocklen_t addrSize;
if (!bsdSockAttach()) {
return S_cas_internal;

View File

@@ -48,6 +48,7 @@ typedef int SOCKET;
#define socket_close(S) close(S)
#define socket_ioctl(A,B,C) ioctl(A,B,C)
typedef int osiSockIoctl_t;
typedef socklen_t osiSocklen_t;
#define FD_IN_FDSET(FD) ((FD)<FD_SETSIZE)

View File

@@ -18,6 +18,7 @@ extern "C" {
#define socket_close(S) closesocket(S)
#define socket_ioctl(A,B,C) ioctlsocket(A,B,C)
typedef u_long FAR osiSockIoctl_t;
typedef int osiSocklen_t;
#define MAXHOSTNAMELEN 75
#define IPPORT_USERRESERVED 5000U

View File

@@ -44,6 +44,7 @@ typedef int SOCKET;
#define socket_close(S) close(S)
#define socket_ioctl(A,B,C) ioctl(A,B,C)
typedef int osiSockIoctl_t;
typedef int osiSocklen_t;
#define FD_IN_FDSET(FD) ((FD)<FD_SETSIZE&&(FD)>=0)

View File

@@ -40,6 +40,7 @@ typedef int SOCKET;
#define socket_close(S) close(S)
#define socket_ioctl(A,B,C) ioctl(A,B,C)
typedef int osiSockIoctl_t;
typedef int osiSocklen_t;
#define FD_IN_FDSET(FD) ((FD)<FD_SETSIZE&&(FD)>=0)

View File

@@ -46,6 +46,7 @@ typedef int SOCKET;
#define socket_close(S) close(S)
#define socket_ioctl(A,B,C) ioctl(A,B,C)
typedef int osiSockIoctl_t;
typedef int osiSocklen_t;
#define FD_IN_FDSET(FD) ((FD)<FD_SETSIZE&&(FD)>=0)

View File

@@ -43,6 +43,7 @@ typedef int SOCKET;
#define socket_close(S) close(S)
#define socket_ioctl(A,B,C) ioctl(A,B,C)
typedef int osiSockIoctl_t;
typedef int osiSocklen_t;
#define FD_IN_FDSET(FD) ((FD)<FD_SETSIZE&&(FD)>=0)

View File

@@ -54,6 +54,7 @@ typedef int SOCKET;
#define socket_close(S) close(S)
#define socket_ioctl(A,B,C) ioctl(A,B,C)
typedef int osiSockIoctl_t;
typedef int osiSocklen_t;
#define FD_IN_FDSET(FD) ((FD)<FD_SETSIZE&&(FD)>=0)

View File

@@ -106,6 +106,7 @@ typedef int SOCKET;
#define socket_close(S) close(S)
#define socket_ioctl(A,B,C) ioctl(A,B,C)
typedef int osiSockIoctl_t;
typedef int osiSocklen_t;
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 64

View File

@@ -114,6 +114,7 @@ typedef int SOCKET;
# define socket_ioctl(A,B,C) ioctl(A,B,C)
#endif
typedef int osiSockIoctl_t;
typedef int osiSocklen_t;
#if defined(WINTCP) /* Wallangong */
extern int uerrno;

View File

@@ -36,6 +36,7 @@ typedef int SOCKET;
*/
#define socket_ioctl(A,B,C) ioctl(A,B,(int)C)
typedef int osiSockIoctl_t;
typedef int osiSocklen_t;
#define FD_IN_FDSET(FD) ((FD)<FD_SETSIZE&&(FD)>=0)