Discontinue HPUX support
This commit is contained in:
@@ -1,6 +1,2 @@
|
||||
#ifndef _AGENTX_H
|
||||
#define _AGENTX_H
|
||||
|
||||
#if defined(HPUX)
|
||||
#include <rpc/types.h>
|
||||
#endif /* HPUX */
|
||||
|
||||
@@ -1,5 +1 @@
|
||||
#ifdef HPUX
|
||||
#undef hpux
|
||||
#define hpux
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#ifndef SunOS
|
||||
#include <rpc/types.h>
|
||||
#endif /* HPUX */
|
||||
#endif /* Sun */
|
||||
|
||||
#include <rpc/rpc.h>
|
||||
|
||||
@@ -703,9 +703,4 @@ extern bool_t xdr_cms_delete_args();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HPUX
|
||||
#undef hpux
|
||||
#define hpux
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -151,9 +151,4 @@ extern bool_t xdr_cmcb_update_callback_args();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HPUX
|
||||
#undef hpux
|
||||
#define hpux
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -39,9 +39,6 @@
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#ifdef HPUX
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
#include "connection.h"
|
||||
#include "rtable2.h"
|
||||
#include "rtable3.h"
|
||||
@@ -53,11 +50,7 @@
|
||||
#include "convert3-4.h"
|
||||
#include "rpccalls.h"
|
||||
|
||||
#ifdef HPUX
|
||||
#define MAX_COUNT 10
|
||||
#else
|
||||
#define MAX_COUNT 40
|
||||
#endif
|
||||
|
||||
static struct timeval timeout_tv;
|
||||
static struct timeval retry_tv;
|
||||
@@ -636,17 +629,12 @@ cleanup_some_connection(_DtCm_Client_Info *dontclose)
|
||||
for (ci = client_cache_head; ci != NULL; )
|
||||
{
|
||||
total++;
|
||||
#ifdef HPUX
|
||||
/* clean up whole list */
|
||||
if (ci != dontclose && ci->nregistered == 0) {
|
||||
#else
|
||||
|
||||
if (ci != dontclose && ci->nregistered == 0 &&
|
||||
(ci->tcpcl || (!done && ci->tcpcl == NULL) ||
|
||||
(ci->tcpcl==NULL && (time(NULL) - ci->last_used)>DAYSEC)))
|
||||
{
|
||||
if (!done) done = 1;
|
||||
#endif
|
||||
|
||||
deleted++;
|
||||
oldci = ci;
|
||||
@@ -829,31 +817,13 @@ get_client_handle(
|
||||
struct timeval tv;
|
||||
enum clnt_stat status;
|
||||
|
||||
#ifdef HPUX
|
||||
static int bumped = 0;
|
||||
struct rlimit rl;
|
||||
|
||||
if (bumped == 0) {
|
||||
bumped = 1;
|
||||
|
||||
/* raise the soft limit of number of file descriptor */
|
||||
getrlimit(RLIMIT_NOFILE, &rl);
|
||||
rl.rlim_cur = rl.rlim_max;
|
||||
setrlimit(RLIMIT_NOFILE, &rl);
|
||||
}
|
||||
#endif
|
||||
|
||||
tv.tv_sec = 1;
|
||||
tv.tv_usec = 0;
|
||||
|
||||
*clnt = NULL;
|
||||
for (vers = vers_high; vers >= vers_low; vers--) {
|
||||
#if defined(__hpux)
|
||||
if ((cl = clnt_create((char *)host, prognum, vers, nettype)) != NULL) {
|
||||
#else
|
||||
|
||||
if ((cl = clnt_create(host, prognum, vers, nettype)) != NULL) {
|
||||
#endif
|
||||
clnt_control(cl, CLSET_TIMEOUT, (char *)&tv);
|
||||
status = clnt_call(cl, 0, (xdrproc_t) xdr_void,
|
||||
(char *)NULL, (xdrproc_t) xdr_void,
|
||||
|
||||
@@ -536,10 +536,6 @@ internal _DtCm_yylval
|
||||
internal _DtCm_yynerrs
|
||||
internal _DtCm_yytext
|
||||
|
||||
#if defined(__hpux)
|
||||
internal _DtCm_yymaxdepth
|
||||
#endif
|
||||
|
||||
#if defined(sun)
|
||||
internal _DtCm_yy__DtCm_yys
|
||||
internal _DtCm_yy__DtCm_yyv
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
#ifndef SunOS
|
||||
#include <rpc/types.h>
|
||||
#endif /* HPUX */
|
||||
#endif /* Sun */
|
||||
|
||||
|
||||
#include <rpc/rpc.h>
|
||||
@@ -465,9 +465,4 @@ extern bool_t _DtCm_xdr_Registration_Status_2();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HPUX
|
||||
#undef hpux
|
||||
#define hpux
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
#ifndef SunOS
|
||||
#include <rpc/types.h>
|
||||
#endif /* HPUX */
|
||||
#endif /* Sun */
|
||||
|
||||
|
||||
#include <rpc/rpc.h>
|
||||
@@ -533,9 +533,4 @@ extern bool_t _DtCm_xdr_Registration_Status_3();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HPUX
|
||||
#undef hpux
|
||||
#define hpux
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -597,9 +597,4 @@ extern bool_t _DtCm_xdr_Registration_Status_4();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HPUX
|
||||
#undef hpux
|
||||
#define hpux
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user