Discontinue HPUX support
This commit is contained in:
@@ -154,13 +154,6 @@
|
||||
#define UNIX /* used in vista.h and elsewhere */
|
||||
#endif
|
||||
|
||||
#ifdef HP_COMPILER
|
||||
#define _INCLUDE_HPUX_SOURCE
|
||||
#define _INCLUDE_POSIX_SOURCE
|
||||
#define _INCLUDE_XOPEN_SOURCE
|
||||
#endif
|
||||
|
||||
|
||||
/*----------------------- AUSTEXT.H ---------------------
|
||||
* DBMS record/key structure and constant declarations.
|
||||
* These represent the database schema formerly in austext.h
|
||||
|
||||
@@ -51,13 +51,8 @@
|
||||
** (is it worth making resources for defaultShell
|
||||
** and defaultShellArgv0?) JRM
|
||||
*/
|
||||
#ifdef hpV4
|
||||
# define DEFAULT_SHELL "/usr/bin/sh"
|
||||
# define DEFAULT_SHELL_ARGV0 "sh"
|
||||
#else /* hpV4 */
|
||||
# define DEFAULT_SHELL "/bin/sh"
|
||||
# define DEFAULT_SHELL_ARGV0 "sh"
|
||||
#endif /* hpV4 */
|
||||
#define DEFAULT_SHELL "/bin/sh"
|
||||
#define DEFAULT_SHELL_ARGV0 "sh"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -123,11 +123,9 @@ platforms as part of a translation.
|
||||
#define _DtPLATFORM_UNKNOWN ((const char *)0)
|
||||
#define _DtPLATFORM_CURRENT ((const char *)0)
|
||||
#define _DtPLATFORM_CDE "CDE"
|
||||
#define _DtPLATFORM_HPUX "HP-UX"
|
||||
#define _DtPLATFORM_AIX "AIX"
|
||||
#define _DtPLATFORM_SUNOS "SunOS"
|
||||
#define _DtPLATFORM_SOLARIS "Solaris" /* verify */
|
||||
#define _DtPLATFORM_XENIX "Xenix" /* verify */
|
||||
/*$END$*/
|
||||
|
||||
|
||||
|
||||
@@ -302,9 +302,6 @@ typedef struct {DB_ADDR *ptr; LOCK_DESC} DB_ADDR_P;
|
||||
#ifdef ANSI
|
||||
#define Piv(t) ,... /* begining of variable number of parameters */
|
||||
#define Pv(t) /**/ /* function has 0 or more parameters */
|
||||
#else
|
||||
#define Piv(t) , /* [XENIX] begining of variable number of parameters */
|
||||
#define Pv(t) , /* [XENIX] function has 0 or more parameters */
|
||||
#endif
|
||||
#else
|
||||
#define P0 /**/
|
||||
|
||||
@@ -52,7 +52,7 @@ extern "C" {
|
||||
** System V R4 based systems define the stuff we need in
|
||||
** sys/types.h. Include that and then we are done.
|
||||
*/
|
||||
#if defined(HPUX) || defined(__linux__) || defined(SunOS) || defined(CSRG_BASED)
|
||||
#if defined(__linux__) || defined(SunOS) || defined(CSRG_BASED)
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
|
||||
@@ -69,44 +69,6 @@ extern "C" {
|
||||
#endif
|
||||
#endif /* sun && _XOPEN_SOURCE */
|
||||
|
||||
/*
|
||||
** HPUX defines most of what we need, if we set the right
|
||||
** include options before including the system files.
|
||||
*/
|
||||
#if defined(HPUX)
|
||||
|
||||
#ifndef _INCLUDE_POSIX_SOURCE
|
||||
#define _INCLUDE_POSIX_SOURCE
|
||||
#endif
|
||||
|
||||
#ifndef _INCLUDE_XOPEN_SOURCE
|
||||
#define _INCLUDE_XOPEN_SOURCE
|
||||
#endif
|
||||
|
||||
#ifndef _INCLUDE_AES_SOURCE
|
||||
#define _INCLUDE_AES_SOURCE
|
||||
#endif
|
||||
|
||||
#ifndef _INCLUDE_HPUX_SOURCE
|
||||
#define _INCLUDE_HPUX_SOURCE
|
||||
#endif
|
||||
|
||||
#ifndef hpV4
|
||||
typedef unsigned long ulong_t;
|
||||
#endif /* hpV4 */
|
||||
typedef unsigned char uchar_t;
|
||||
typedef enum {B_FALSE, B_TRUE} boolean_t;
|
||||
|
||||
#define _SC_PAGESIZE _SC_PAGE_SIZE
|
||||
|
||||
#ifndef MAXPATHLEN
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
#define MAXNAMELEN 256
|
||||
|
||||
#endif /* HPUX */
|
||||
|
||||
#if defined(__linux__) || defined(CSRG_BASED)
|
||||
#include <string.h> /* memset for libcsa and others */
|
||||
typedef enum {B_FALSE, B_TRUE} boolean_t;
|
||||
@@ -115,7 +77,7 @@ typedef enum {B_FALSE, B_TRUE} boolean_t;
|
||||
|
||||
|
||||
/*
|
||||
** AIX, like HPUX defines most of what we need.
|
||||
** AIX defines
|
||||
*/
|
||||
#if defined(AIX)
|
||||
|
||||
@@ -130,7 +92,6 @@ typedef enum {B_FALSE, B_TRUE} boolean_t;
|
||||
#include <sys/types.h>
|
||||
|
||||
#define _SC_PAGESIZE _SC_PAGE_SIZE
|
||||
#define vfork fork
|
||||
|
||||
#ifndef MAXPATHLEN
|
||||
#include <sys/param.h>
|
||||
|
||||
@@ -110,7 +110,6 @@
|
||||
|
||||
#define DELETE_LOGFILE 21
|
||||
|
||||
#define RESET_TERMIO 22 /* This is obsolete, (hpux binary version) */
|
||||
#define RESET_TERMIOS 23
|
||||
|
||||
/* New B.00 protocol requests */
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
__cplusplus - Will be set for C++ compilers
|
||||
__STDCPP__ - Will be set for ANSI and C++ compilers
|
||||
|
||||
__hpux - Will be set for HP-UX systems
|
||||
__sun - Will be set for SUN systems
|
||||
__aix - Will be set for IBM (AIX) systems
|
||||
|
||||
@@ -88,27 +87,12 @@
|
||||
# define __sun
|
||||
#endif
|
||||
|
||||
#if defined(hpux) && !defined(__hpux)
|
||||
# define __hpux
|
||||
#endif
|
||||
|
||||
#if defined(_AIX) && !defined(__aix)
|
||||
# define __aix
|
||||
# define OSF_MOTIF_1_1_1
|
||||
# define OSF_BUG
|
||||
#endif
|
||||
|
||||
#ifdef __hpux
|
||||
# define __sysv
|
||||
/* __hp9000s300 or __hp9000s800 is defined by HP-UX cpp */
|
||||
# if !defined (__hpux_8_0)
|
||||
# define __hp_7_0
|
||||
# endif
|
||||
# define __hp_nls_16
|
||||
# define __hp_color_object
|
||||
# define __unsigned_char_ptr_yytext
|
||||
#endif /* __hpux */
|
||||
|
||||
#ifdef __sun
|
||||
# if defined(sparc) && !defined(__sparc)
|
||||
# define __sparc
|
||||
@@ -181,7 +165,7 @@
|
||||
/* about above. So, declare them only if we don't already have them */
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
#if defined(_HPUX_SOURCE) || defined(__sun) || defined(_INCLUDE_BSD_SOURCE) || defined(__aix) || defined(__linux__)
|
||||
#if defined(__sun) || defined(_INCLUDE_BSD_SOURCE) || defined(__aix) || defined(__linux__)
|
||||
/* the "u_types" are defined in standard files */
|
||||
# undef _INCLUDE_BSD_SOURCE
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user