Remove Unixware and openserver support
This commit is contained in:
@@ -1068,13 +1068,11 @@ int SPC_Setpgrp(int read_current_termio)
|
||||
return(SPC_ERROR);
|
||||
}
|
||||
|
||||
#if !defined(USL)
|
||||
if(tcsetattr(setpgrp_wire->fd[SLAVE_SIDE], TCSANOW, XeTermioStruct)==ERROR) {
|
||||
SPC_Error(SPC_Bad_tc_Call,(XeString)"tcsetattr");
|
||||
_DtSvcProcessUnlock();
|
||||
return(SPC_ERROR);
|
||||
}
|
||||
#endif
|
||||
|
||||
_DtSvcProcessUnlock();
|
||||
return(TRUE);
|
||||
|
||||
@@ -388,12 +388,7 @@ SPC_Connection_Ptr SPC_Init_Child(SPC_Connection_Ptr conn,
|
||||
SPC_Connection_Ptr SPC_Standalone_Daemon(SPC_Connection_Ptr conn)
|
||||
{
|
||||
struct sockaddr_in saddr, client_saddr;
|
||||
#ifdef USL
|
||||
/* Only UnixWare 2.02 uses the Spec1170 parameter profile for accept(). */
|
||||
size_t len=sizeof(client_saddr);
|
||||
#else
|
||||
int len=sizeof(client_saddr);
|
||||
#endif
|
||||
int server_bind_attempts = MAX_SERVER_BIND_ATTEMPTS;
|
||||
int server_bind_pause = SERVER_PAUSE_INTERVAL;
|
||||
int pid, from;
|
||||
|
||||
@@ -1030,7 +1030,7 @@ _DtCmdCommandInvokerExecute (
|
||||
#ifdef _SUN_OS
|
||||
open_max = NOFILE;
|
||||
#else
|
||||
#if defined(USL) || defined(_AIX)
|
||||
#if defined(_AIX)
|
||||
open_max = FOPEN_MAX;
|
||||
#else
|
||||
open_max = FD_SETSIZE;
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#include <Dt/ActionUtilP.h>
|
||||
#include "myassertP.h"
|
||||
|
||||
#if defined(sun) || defined(USL)
|
||||
#if defined(sun)
|
||||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -53,11 +53,11 @@
|
||||
#include <ndir.h>
|
||||
#else
|
||||
|
||||
#if defined(sun) || defined(USL) || defined(sco)
|
||||
#if defined(sun)
|
||||
#include <dirent.h>
|
||||
#else
|
||||
#include <sys/dir.h>
|
||||
#endif /* sun || USL */
|
||||
#endif /* sun */
|
||||
|
||||
#endif /* __hpux */
|
||||
|
||||
|
||||
@@ -51,11 +51,11 @@
|
||||
#include <ndir.h>
|
||||
#else
|
||||
|
||||
#if defined(sun) || defined(USL) || defined(sco)
|
||||
#if defined(sun)
|
||||
#include <dirent.h>
|
||||
#else
|
||||
#include <sys/dir.h>
|
||||
#endif /* sun || USL */
|
||||
#endif /* sun */
|
||||
|
||||
#endif /* __hpux */
|
||||
|
||||
|
||||
@@ -601,7 +601,7 @@ _DtDtsMMapDB(const char *CacheFile)
|
||||
mmaped_db = (char *)mmap(NULL,
|
||||
buf.st_size,
|
||||
PROT_READ,
|
||||
#if defined(sun) || defined(USL)
|
||||
#if defined(sun)
|
||||
/* MAP_NORESERVE is only supported
|
||||
on sun and novell platforms */
|
||||
MAP_SHARED|MAP_NORESERVE,
|
||||
|
||||
@@ -40,11 +40,11 @@
|
||||
#ifdef __hpux
|
||||
#include <ndir.h> /* opendir(), directory(3C) */
|
||||
#else
|
||||
#if defined(sun) || defined(USL) || defined(sco)
|
||||
#if defined(sun)
|
||||
#include <dirent.h> /* opendir(), directory(3C) */
|
||||
#else
|
||||
#include <sys/dir.h>
|
||||
#endif /* sun || USL */
|
||||
#endif /* sun */
|
||||
#endif /* __hpux */
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
@@ -45,11 +45,6 @@
|
||||
#include <langinfo.h>
|
||||
#include <Dt/Collate.h>
|
||||
|
||||
#ifdef sco /* XPG4isms coming soon */
|
||||
#ifndef _NL_DIRECT
|
||||
#define _NL_DIRECT
|
||||
typedef int nl_direct;
|
||||
#endif
|
||||
#ifndef _NL_ORDER
|
||||
#define _NL_ORDER
|
||||
typedef int nl_order;
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#ifdef __hpux
|
||||
#include <ndir.h>
|
||||
#else
|
||||
#if defined(sun) || defined(USL) || defined(sco)
|
||||
#if defined(sun)
|
||||
#include <dirent.h>
|
||||
#else
|
||||
#include <sys/dir.h>
|
||||
|
||||
@@ -54,7 +54,7 @@ $END$
|
||||
#endif
|
||||
#include <langinfo.h>
|
||||
|
||||
#if defined(sun) || defined(USL)
|
||||
#if defined(sun)
|
||||
#include <regexpr.h> /* for compile,advance */
|
||||
#else
|
||||
#include <regex.h> /* for regcomp,regexec */
|
||||
@@ -125,7 +125,7 @@ typedef enum {
|
||||
__DtXLATE_TYPE_CONTAINS = 4
|
||||
} __DtXlateType;
|
||||
|
||||
#if defined(sun) || defined(USL)
|
||||
#if defined(sun)
|
||||
/* Sun doesn't support regcomp() and regexec() yet, so
|
||||
define this here and fill it will the results of advance() */
|
||||
typedef struct regmatch_t {
|
||||
@@ -1127,7 +1127,7 @@ Boolean CheckSearchOpValueMatchesSpec(
|
||||
value or do a pure match */
|
||||
if (srchData->curTransType == __DtXLATE_TYPE_REGEX)
|
||||
{
|
||||
#if defined(sun) || defined(USL)
|
||||
#if defined(sun)
|
||||
char * ex = NULL;
|
||||
|
||||
/* True: leave escape char in place */
|
||||
@@ -2199,7 +2199,7 @@ int _DtXlateGetXlateEnv(
|
||||
/* then look up version number of execution host */
|
||||
if (ret_AppExecEnvVersion)
|
||||
{
|
||||
#if defined(sun) || defined(_AIX) || defined(USL) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(sun) || defined(_AIX) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
char version[SYS_NMLN+SYS_NMLN+2];
|
||||
#else
|
||||
char version[UTSLEN+UTSLEN+2];
|
||||
|
||||
@@ -126,8 +126,6 @@ platforms as part of a translation.
|
||||
#define _DtPLATFORM_AIX "AIX"
|
||||
#define _DtPLATFORM_SUNOS "SunOS"
|
||||
#define _DtPLATFORM_SOLARIS "Solaris" /* verify */
|
||||
#define _DtPLATFORM_USL "USL" /* verify */
|
||||
#define _DtPLATFORM_SCO "SCO" /* verify */
|
||||
#define _DtPLATFORM_XENIX "Xenix" /* verify */
|
||||
/*$END$*/
|
||||
|
||||
|
||||
@@ -230,9 +230,6 @@
|
||||
# ifdef __sun
|
||||
# include <sys/time.h>
|
||||
# endif
|
||||
#if defined(USL)
|
||||
# include <sys/time.h>
|
||||
# endif
|
||||
# ifdef __apollo
|
||||
# include <sys/time.h>
|
||||
# endif
|
||||
@@ -254,11 +251,6 @@
|
||||
# ifdef _AIX
|
||||
# include <sys/select.h>
|
||||
# endif
|
||||
/*
|
||||
# if defined(USL)
|
||||
# include <sys/select.h>
|
||||
# endif
|
||||
*/
|
||||
#endif /* __need_fd_st */
|
||||
|
||||
|
||||
@@ -293,7 +285,7 @@
|
||||
/* about above. So, declare them only if we don't already have them */
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
#if defined(_HPUX_SOURCE) || defined(__sun) || defined(USL) || defined(_INCLUDE_BSD_SOURCE) || defined(_OSF_SOURCE) || defined(__aix) || defined(__osf__) || defined(linux)
|
||||
#if defined(_HPUX_SOURCE) || defined(__sun) || defined(_INCLUDE_BSD_SOURCE) || defined(_OSF_SOURCE) || defined(__aix) || defined(__osf__) || defined(linux)
|
||||
/* the "u_types" are defined in standard files */
|
||||
# undef _INCLUDE_BSD_SOURCE
|
||||
#else
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#if !defined(linux) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#include <generic.h>
|
||||
#endif
|
||||
#if defined(USL) || defined(__osf__) || defined(sun) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(__osf__) || defined(sun) || defined(linux) || defined(CSRG_BASED)
|
||||
#define _DELETE_ARRAY(sz) delete[]
|
||||
#else
|
||||
#define _DELETE_ARRAY(sz) delete[(sz)]
|
||||
|
||||
@@ -32,10 +32,6 @@
|
||||
#ifndef __MBSTRING_H_
|
||||
#define __MBSTRING_H_
|
||||
|
||||
#if defined(USL)
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef apollo
|
||||
|
||||
@@ -125,14 +125,14 @@ extern size_t nl_strlen(); /* __OBSOLETE */
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
||||
#if defined(apollo) || defined(__aix) || defined(USL) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(apollo) || defined(__aix) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#include <stdlib.h>
|
||||
#else
|
||||
#include <malloc.h>
|
||||
#endif /* apollo */
|
||||
|
||||
inline char *strnew(size_t len) { return (char*)malloc(len + 1); }
|
||||
#if defined(sun) || defined(__sun) || defined(USL)
|
||||
#if defined(sun) || defined(__sun)
|
||||
inline void strfree(const char *s)
|
||||
{ if (s != NULL) free((char *)s); }
|
||||
#else
|
||||
|
||||
@@ -14,9 +14,7 @@
|
||||
*
|
||||
**************************************************************************/
|
||||
|
||||
#ifdef USL
|
||||
/* define boolean boolean */
|
||||
#elif defined(SVR4)
|
||||
#if defined(SVR4)
|
||||
# define boolean boolean_t
|
||||
#else
|
||||
# define boolean int
|
||||
@@ -1121,8 +1119,6 @@ internal __link__std__shellscan_C_000046c7_parsemeta_
|
||||
internalC++ shellscan_C:__std
|
||||
#elif defined(_AIX)
|
||||
internalC++ __sterm80000000_x_2fproj_2fcde_2flib_2fDtSvc_2fDtCodelibs_2fshellscan_2eC()
|
||||
#elif defined(USL)
|
||||
internalC++ shellscan:__std
|
||||
#endif
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user