Discontinue HPUX support

This commit is contained in:
Chase
2022-07-22 21:42:06 -05:00
committed by Jon Trulson
parent bd83b53d56
commit edf4319548
235 changed files with 198 additions and 6290 deletions

View File

@@ -35,7 +35,7 @@
#endif /* end of CDE_NEXT */
#if defined(sun) || defined(hpux)
#if defined(sun)
#ifndef CDE_NEXT /* { */

View File

@@ -57,7 +57,7 @@ using namespace std;
#ifdef DEBUG
#if !defined ( __STDC__) && !defined (hpux)
#if !defined ( __STDC__)
#define debug(s, x) s << "x" << " = " << (x) << "\n"
#else
#define debug(s, x) s << #x << " = " << (x) << "\n"

View File

@@ -69,7 +69,7 @@ typedef Stack<FeatureSet*,dlist_array<FeatureSet> > _stack_fs_orvec_fs_;
// the largest ID used in f's: 59
//
#if defined(sun) || defined(hpux)
#if defined(sun)
typedef CC_TPtrSlist<Attribute> _f4_;
typedef CC_TPtrSlist<Feature> _f5_;
typedef CC_TPtrSlist<PathFeature> _f2_;

View File

@@ -98,7 +98,7 @@ Destructable::~Destructable()
// This code relies on the fact that in cfront 2.1 this qualified
// call to the destructor will actually call the virtual destructor.
#if !defined(hpux) && (CC_VERSION < 30)
#if (CC_VERSION < 30)
inline void
Destructable::destruct()
{

View File

@@ -31,10 +31,6 @@ class Exception : public Destructable
public:
#ifdef NATIVE_EXCEPTIONS
#if defined(hpux)
Exception() { }
#endif
#else
Exception();
@@ -106,10 +102,6 @@ protected:
friend class Jump_Environment;
friend class Exceptions;
#if defined(hpux)
#define MakeOperatorNewPublic
#endif
#ifdef MakeOperatorNewPublic
// A problem with the HP-UX 3.65 compiler requires us to make this public.
// And, since we gen the Templates.nd.c file on a non-HPUX platform, we need

View File

@@ -66,7 +66,7 @@ extern "C" {
#endif
#ifndef STRINGIFY
#if !defined(__STDC__) && !defined(hpux)
#if !defined(__STDC__)
#define STRINGIFY(S) "S"
#else
#define STRINGIFY(S) #S
@@ -130,13 +130,8 @@ extern "C" {
// This works if OBJ is an object or a pointer since Exception objects
// overload operator ->.
#if !defined(hpux)
#define mthrow(OBJ) \
(OBJ)->throw_it (__LINE__, __FILE__, DEBUG_THROW_FLAG)
#else
#define mthrow(OBJ) \
OBJ->throw_it (__LINE__, __FILE__, DEBUG_THROW_FLAG)
#endif
#define rethrow \
Exception::current_exception().do_throw (__LINE__, __FILE__)

View File

@@ -63,11 +63,4 @@ terminate()
abort();
}
#else
#ifdef hpux
// HPUX doesn't define the set_terminate function from the ARM.
typedef void (*PFV)();
PFV set_terminate (PFV) { return (0); }
#endif
#endif /* NATIVE_EXCEPTIONS */

View File

@@ -97,22 +97,7 @@ static unsigned int mask[] =
(bits & (1L << (sizeof(BITS) * 8)-1)) ? putchar('1') : putchar('0'); } \
putchar ('\n'); }
#if defined(hpux)
#include <sys/utsname.h>
static unsigned int
gethostid()
{
struct utsname u;
int i;
i=uname(&u);
if (i==-1)
abort();
if (u.idnumber[0])
return atoi(u.idnumber);
abort();
}
#elif defined(SVR4) && !defined(sun)
#if defined(SVR4) && !defined(sun)
static unsigned int
gethostid()
{

View File

@@ -29,7 +29,7 @@
extern "C" {
#endif
#if defined( __STDC__ ) || defined( _HPUX_SOURCE )
#if defined( __STDC__ )
const char *unique_id(void);
#else
char *unique_id();

View File

@@ -25,15 +25,6 @@
#include "oliasdb/DtMmdb.h"
#include <stdio.h>
#if ( ARCH == hpux)
extern "C"
char __pure_virtual_called()
{
return 0;
}
#endif
#ifdef DEBUG
extern "C"

View File

@@ -28,22 +28,13 @@
extern "C" {
#if defined(hpux)
char __pure_virtual_called()
{
fprintf(stderr, "DtMmdb: pure virtual called\n");
exit (-1);
return 0;
}
#else
#if defined(SVR4) && defined(SC3)
void _pure_error_()
{
fprintf(stderr, "DtMmdb: pure virtual called\n");
exit (-1);
}
#else
#ifdef _AIX
#elif _AIX
void __PureVirtualCalled()
{
fprintf(stderr, "DtMmdb: pure virtual called\n");
@@ -57,8 +48,6 @@ void __pure_virtual_called()
exit (-1);
}
#endif
#endif
#endif
}

View File

@@ -59,7 +59,7 @@
#define desc_print3(s, n, x) s << " " << n << "=" << (x) << ":\\" << endl
#define desc_print_end3(s, n, x) s << " " << n << "=" << (x) << endl
#if !defined ( __STDC__) && !defined (hpux)
#if !defined ( __STDC__)
#define desc_print(s, x) s << " " << "x" << "=" << (x) << ":\\\n"
#define desc_print_end(s, x) s << " " << "x" << "=" << (x) << "\n"
#else

View File

@@ -48,7 +48,7 @@
#ifdef DEBUG
#if !defined ( __STDC__) && !defined (hpux)
#if !defined ( __STDC__)
#define debug(s, x) s << "x" << " = " << (x) << "\n"
#else
#define debug(s, x) s << #x << " = " << (x) << "\n"

View File

@@ -26,7 +26,7 @@
#include <sys/types.h>
#include <unistd.h>
#if !defined(hpux) && !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
#if !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
#include <sysent.h>
#endif

View File

@@ -741,7 +741,7 @@ Boolean cc_is_digit(istream& in)
unsigned long disk_space(const char* path)
{
#if defined (hpux) || defined (SVR4) || defined(CSRG_BASED)
#if defined (SVR4) || defined(CSRG_BASED)
struct statvfs statfs_buf;
#else
struct statfs statfs_buf;
@@ -749,7 +749,7 @@ unsigned long disk_space(const char* path)
long free_bytes;
#if defined (hpux) || defined (SVR4) || defined(CSRG_BASED)
#if defined (SVR4) || defined(CSRG_BASED)
if ( statvfs(path, &statfs_buf) == 0 ) {
free_bytes = statfs_buf.f_bavail * statfs_buf.f_frsize ;
#else

View File

@@ -55,8 +55,7 @@
#if !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
#include <libc.h>
#endif
#if defined(hpux) || defined(sgi) || \
defined(__linux__) || defined(CSRG_BASED) || defined(sun)
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
#include <unistd.h>
#else
#include <sysent.h>