Discontinue HPUX support
This commit is contained in:
@@ -226,11 +226,7 @@ Application::~Application()
|
||||
delete []_windows;
|
||||
|
||||
#ifdef CDExc21492
|
||||
#if defined(__hpux)
|
||||
this->BasicComponent::~BasicComponent();
|
||||
#else
|
||||
BasicComponent::~BasicComponent();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
CATCLOSE(catd);
|
||||
|
||||
@@ -981,11 +981,7 @@ void RoamApp::initialize(int *argcp, char **argv)
|
||||
int opt;
|
||||
char *helpId;
|
||||
|
||||
#ifdef hpV4
|
||||
signal(SIGUSR1, (void(*)(int ...))SigUsr1);
|
||||
#else
|
||||
signal(SIGUSR1, SigUsr1);
|
||||
#endif
|
||||
|
||||
#ifdef _AIX
|
||||
(void)signal( SIGDANGER, pspace_signal );
|
||||
|
||||
@@ -55,17 +55,11 @@ class HashTableImpl : public DtCPlusPlusAllocator {
|
||||
virtual void set(ObjectKey & key, void * value);
|
||||
virtual void * remove(ObjectKey & key);
|
||||
|
||||
// HP can not support this construct.
|
||||
//
|
||||
#if !defined(HPUX)
|
||||
//
|
||||
#define HASHTABLE_HASFOREACH
|
||||
|
||||
typedef int (*HashImplIterator)(ObjectKey &, void * value, void * client_data);
|
||||
virtual void forEach(HashImplIterator, void * client_data);
|
||||
|
||||
#endif
|
||||
|
||||
protected:
|
||||
struct HashEntry : public DtCPlusPlusAllocator {
|
||||
ObjectKey * key;
|
||||
@@ -90,12 +84,10 @@ class HashTable : public DtCPlusPlusAllocator {
|
||||
|
||||
Object remove(ObjectKey & key) { return( (Object)((long)_table.remove(key)) ); }
|
||||
|
||||
#if !defined(HPUX)
|
||||
typedef int (*HashIterator)(ObjectKey &, Object, void * client_data);
|
||||
void forEach(HashTableImpl::HashImplIterator iterator, void * client_data) {
|
||||
_table.forEach((HashTableImpl::HashImplIterator)iterator, client_data);
|
||||
}
|
||||
#endif
|
||||
|
||||
protected:
|
||||
HashTableImpl _table;
|
||||
|
||||
@@ -49,16 +49,7 @@
|
||||
#include <DtMail/DtMailError.hh>
|
||||
#include <DtMail/Common.h>
|
||||
#include <Dt/MsgCatP.h>
|
||||
|
||||
#include <syslog.h>
|
||||
|
||||
#if defined(HPUX) && !defined(hpV4)
|
||||
// HP-UX 9.* syslog.h does not define these.
|
||||
//
|
||||
extern "C" int syslog(int, const char *, ...);
|
||||
extern "C" int openlog(const char *, int, int);
|
||||
#endif
|
||||
|
||||
#include <EUSDebug.hh>
|
||||
|
||||
// Provide interface to the DtSvc function DtSimpleError
|
||||
|
||||
@@ -147,8 +147,6 @@ struct cmd cmdtab[] = {
|
||||
#define SYSTEM_MAILRC "/etc/mail/mail.rc"
|
||||
#elif defined(_AIX) || defined(__linux__)
|
||||
#define SYSTEM_MAILRC "/usr/share/lib/Mail.rc"
|
||||
#elif defined(__hpux)
|
||||
#define SYSTEM_MAILRC "/usr/share/lib/mailx.rc"
|
||||
#elif defined(CSRG_BASED)
|
||||
#define SYSTEM_MAILRC "/etc/mail.rc"
|
||||
#endif
|
||||
|
||||
@@ -331,11 +331,7 @@ DtMailServer::do_send(char *fmt, ... )
|
||||
//
|
||||
// Assemble command in printf(3) style, send to server, accept a response.
|
||||
//
|
||||
#if defined(__hpux)
|
||||
#define DTMAS_COMMAND_TERMINATOR "\n"
|
||||
#else
|
||||
#define DTMAS_COMMAND_TERMINATOR "\r\n"
|
||||
#endif
|
||||
DTMailError_t
|
||||
DtMailServer::do_transaction(char *fmt, ... )
|
||||
{
|
||||
@@ -829,11 +825,7 @@ restoreSignal:
|
||||
//
|
||||
// Reset the nonresponse-timeout
|
||||
//
|
||||
#if defined(__hpux)
|
||||
#define TV_USEC_TYPE long
|
||||
#else
|
||||
#define TV_USEC_TYPE int
|
||||
#endif
|
||||
void
|
||||
DtMailServer::vtalarm_setitimer(int timeout_seconds)
|
||||
{
|
||||
|
||||
@@ -189,7 +189,6 @@ HashTableImpl::remove(ObjectKey & key)
|
||||
return(removed_val);
|
||||
}
|
||||
|
||||
#if !defined(HPUX)
|
||||
void
|
||||
HashTableImpl::forEach(HashImplIterator iterator, void * client_data)
|
||||
{
|
||||
@@ -210,4 +209,3 @@ HashTableImpl::forEach(HashImplIterator iterator, void * client_data)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -53,8 +53,6 @@
|
||||
*/
|
||||
#if defined(SunOS)
|
||||
#include <stropts.h>
|
||||
#elif defined(HPUX)
|
||||
#include <sys/poll.h>
|
||||
#elif defined(_AIX) || defined(__linux__)
|
||||
#define INFTIM (-1) /* Infinite timeout */
|
||||
#endif
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/uio.h>
|
||||
#if !defined(__aix) && !defined(__hpux) && !defined(__linux__) && !defined(CSRG_BASED)
|
||||
#if !defined(__aix) && !defined(__linux__) && !defined(CSRG_BASED)
|
||||
#include <sys/systeminfo.h>
|
||||
#endif
|
||||
#include <sys/wait.h>
|
||||
@@ -95,9 +95,7 @@ extern "C" {
|
||||
|
||||
#if defined(sun)
|
||||
#define LCL_SIG_HANDLER_SIGNATURE
|
||||
#elif defined(__hpux)
|
||||
#define LCL_SIG_HANDLER_SIGNATURE __harg
|
||||
#elif defined(__aix) || defined(__alpha) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#elif defined(__aix) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#define LCL_SIG_HANDLER_SIGNATURE int
|
||||
#endif
|
||||
|
||||
|
||||
@@ -975,7 +975,7 @@ RFCTransport::signalRegister(void)
|
||||
if (initialized) return;
|
||||
initialized = 1;
|
||||
|
||||
#if defined(hpux) || defined(_aix) || defined(__linux__) || \
|
||||
#if defined(_aix) || defined(__linux__) || \
|
||||
(defined(sun) && OSMAJORVERSION>=5 && OSMINORVERSION>4) || defined(CSRG_BASED)
|
||||
// SunOS 5.5 and above defined prototype for signal handler
|
||||
act.sa_handler = (void (*)(int))&RFCTransport::childHandler;
|
||||
|
||||
@@ -57,8 +57,6 @@
|
||||
*/
|
||||
#if defined(SunOS)
|
||||
#include <stropts.h>
|
||||
#elif defined(HPUX)
|
||||
#include <sys/poll.h>
|
||||
#elif defined(_AIX) || defined(__linux__)
|
||||
#define INFTIM (-1) /* Infinite timeout */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user