X-Git-Url: http://erislabs.net/gitweb/?p=ckermit.git;a=blobdiff_plain;f=ckcnet.h;h=edb390e2a63cae7db55d19908fbc11213e71745a;hp=c8d5576d01197489132137ace7b3b94e7ea7ba98;hb=31e271107096d1ffa97b7d0c15222b8bd5e69f74;hpb=8d5a97cca5dc3d41681e7a2dd709ac0ea93e73c5 diff --git a/ckcnet.h b/ckcnet.h index c8d5576..edb390e 100644 --- a/ckcnet.h +++ b/ckcnet.h @@ -4,7 +4,7 @@ Author: Frank da Cruz Columbia University Academic Information Systems, New York City. - Copyright (C) 1985, 2004, + Copyright (C) 1985, 2009, Trustees of Columbia University in the City of New York. All rights reserved. See the C-Kermit COPYING.TXT file or the copyright text in the ckcmai.c module for disclaimer and permissions. @@ -80,6 +80,9 @@ #define NP_K5U2U 18 /* TCP/IP Kerberos 5 User to User */ #define NP_CTERM 19 /* DEC CTERM */ #define NP_LAT 20 /* DEC LAT */ +#define NP_SSL_RAW 21 /* SSL with no Telnet permitted */ +#define NP_TLS_RAW 22 /* TLS with no Telnet permitted */ + /* others here... */ #ifdef CK_SSL @@ -191,11 +194,17 @@ _PROTOTYP( int netopen, (char *, int *, int) ); _PROTOTYP( int netclos, (void) ); _PROTOTYP( int netflui, (void) ); _PROTOTYP( int nettchk, (void) ); +_PROTOTYP( int netxchk, (int) ); _PROTOTYP( int netbreak, (void) ); _PROTOTYP( int netinc, (int) ); _PROTOTYP( int netxin, (int, CHAR *) ); _PROTOTYP( int nettol, (CHAR *, int) ); _PROTOTYP( int nettoc, (CHAR) ); +#ifdef TCPSOCKET +_PROTOTYP( int gettcpport, (void) ); +_PROTOTYP( int gettcpport, (void) ); +#endif /* TCPSOCKET */ + /* SunLink X.25 support by Marcello Frutig, Catholic University, Rio de Janeiro, Brazil, 1990. @@ -734,6 +743,16 @@ _PROTOTYP( int x25local_nua, (char *) ); /* find local NUA */ #endif /* bcopy */ #endif /* VMS */ +#ifdef HPUX6 +/* These are missing in HP-UX 6.xx */ +#ifndef bzero +#define bzero(s,n) memset(s,0,n) +#endif /* bzero */ +#ifndef bcopy +#define bcopy(h,a,l) memcpy(a,h,l) +#endif /* bcopy */ +#endif /* HPUX6 */ + #ifdef UNIX /* UNIX section */ #ifdef SVR4 @@ -980,6 +999,9 @@ typedef unsigned int u_int; #endif /* IF_DOT_H */ #include +#ifdef VMS +#include /* (SMS 2007/02/15) */ +#endif /* VMS */ #include #include #include "ckvioc.h" @@ -1366,8 +1388,27 @@ extern char * tcp_http_proxy_pwd; /* Password of user */ /* Type needed as 5th argument (length) to get/setsockopt() */ +#ifdef TRU64 +/* They say it themselves - this does not conform to standards */ +#define socklen_t int +#else +#ifdef HPUX +#define socklen_t int +#endif /* HPUX */ +#endif /* TRU64 */ + +#ifndef SOCKOPT_T +#ifdef CK_64BIT +#define SOCKOPT_T socklen_t +#endif /* CK_64BIT */ +#endif /* SOCKOPT_T */ + #ifndef SOCKOPT_T #define SOCKOPT_T int +#ifdef MACOSX10 +#undef SOCKOPT_T +#define SOCKOPT_T unsigned int +#else #ifdef AIX42 #undef SOCKOPT_T #define SOCKOPT_T unsigned long @@ -1396,12 +1437,23 @@ extern char * tcp_http_proxy_pwd; /* Password of user */ #endif /* NT */ #endif /* PTX */ #endif /* AIX42 */ +#endif /* MACOSX10 */ #endif /* SOCKOPT_T */ /* Ditto for getsockname() */ #ifndef GSOCKNAME_T +#ifdef CK_64BIT +#define GSOCKNAME_T socklen_t +#endif /* CK_64BIT */ +#endif /* GSOCKNAME_T */ + +#ifndef GSOCKNAME_T #define GSOCKNAME_T int +#ifdef MACOSX10 +#undef GSOCKNAME_T +#define GSOCKNAME_T unsigned int +#else #ifdef PTX #undef GSOCKNAME_T #define GSOCKNAME_T size_t @@ -1425,6 +1477,7 @@ extern char * tcp_http_proxy_pwd; /* Password of user */ #endif /* UNIXWARE */ #endif /* AIX41 */ #endif /* PTX */ +#endif /* MACOSX10 */ #endif /* GSOCKNAME_T */ #endif /* TCPSOCKET */