Remove UXPDS support

This commit is contained in:
chase
2018-05-15 20:11:08 -05:00
committed by Jon Trulson
parent 0f8233dadd
commit 8a4f389634
319 changed files with 317 additions and 8776 deletions

View File

@@ -45,7 +45,7 @@ nl_catd dtprintinfo_cat = NULL;
#include <string.h>
#include <errno.h>
#if defined(aix) || defined(USL) || defined(__uxp__)
#if defined(aix) || defined(USL)
extern "C" { extern int seteuid(uid_t); }
#endif

View File

@@ -59,10 +59,6 @@ DEFINES = -DHAS_EXCEPTIONS
AWK = nawk
#endif
#ifdef UXPArchitecture
AWK = nawk
#endif
#ifdef AlphaArchitecture
DEFINES = -D_TOOLTALK
#endif

View File

@@ -24,7 +24,7 @@
#ifndef DTPRINTINFOMSG_H
#define DTPRINTINFOMSG_H
#if !defined(USL) && !defined(__uxp__)
#if !defined(USL)
/*
* if __cplusplus is defined, the system header files take care
* of themselves and putting this "extern C" here causes inconsistent linkage
@@ -38,7 +38,7 @@ extern "C" {
#include <nl_types.h>
#include <locale.h>
#if defined(USL) || defined(__uxp__)
#if defined(USL)
#ifdef __cplusplus
extern "C" {
#endif

View File

@@ -44,7 +44,7 @@
#include <stdlib.h>
#ifdef hpux
#include <time.h>
#elif defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux)
#elif defined(USL) || defined(__osf__) || defined(linux)
#include <sys/time.h>
#else
#include <sys/select.h>
@@ -53,7 +53,7 @@
#include <strings.h> /* need to get bzero defined */
#endif /* _AIX */
#if defined(aix) || defined(USL) || defined(__uxp__)
#if defined(aix) || defined(USL)
extern "C"
{
extern int strcasecmp(const char *, const char *);

View File

@@ -35,7 +35,7 @@
#ifndef _BOOLEAN_
#define _BOOLEAN_
#if (defined(sun) && OSMAJORVERSION <= 5 && OSMINORVERSION <= 3)|| defined(USL) || defined(__uxp__)
#if (defined(sun) && OSMAJORVERSION <= 5 && OSMINORVERSION <= 3)|| defined(USL)
#include <sys/types.h>
#define boolean boolean_t
#define true B_TRUE

View File

@@ -36,7 +36,7 @@
#include <Xm/ComboBox.h>
ComboBoxObj::ComboBoxObj(MotifUI *parent,
#if defined(USL) || defined(__uxp__)
#if defined(USL)
void (*callback)(ComboBoxObj *, char *, int),
#else
ComboBoxCallback callback,

View File

@@ -52,7 +52,7 @@ class ComboBoxObj : public MotifUI {
public:
#if defined(USL) || defined(__uxp__)
#if defined(USL)
ComboBoxObj(MotifUI * parent, void (*)(ComboBoxObj *, char *, int),
char *name, char **items, int n_items);
#else

View File

@@ -33,7 +33,7 @@
#include <Xm/Xm.h>
#if defined(USL) || defined(__uxp__)
#if defined(USL)
#undef STRDUP /* get rid of memutil.h definition. Use def in BaseUI.h. */
#endif

View File

@@ -36,7 +36,7 @@
#ifndef _BOOLEAN_
#define _BOOLEAN_
#if (defined(sun) && OSMAJORVERSION <= 5 && OSMINORVERSION <= 3)|| defined(USL) || defined(__uxp__)
#if (defined(sun) && OSMAJORVERSION <= 5 && OSMINORVERSION <= 3)|| defined(USL)
#include <sys/types.h>
#define boolean boolean_t
#define true B_TRUE

View File

@@ -64,14 +64,14 @@ extern "C" in_addr_t inet_addr(const char *);
#include <regex.h>
#endif
#if defined(aix) || defined(__osf__) || defined(USL) || defined(__uxp__)
#if defined(aix) || defined(__osf__) || defined(USL)
extern "C" { int rresvport(int *); }
#endif
#ifdef hpux
#define SETEUID(id) setresuid(getuid(), (uid_t)id, (uid_t)0);
#else
#if defined(aix) || defined(USL) || defined(__uxp__)
#if defined(aix) || defined(USL)
extern "C" { extern int seteuid(uid_t); }
#endif
#define SETEUID(id) seteuid((uid_t)id)
@@ -177,7 +177,7 @@ int ConnectToPrintServer(const char *rhost, int timeout)
int s, lport = IPPORT_RESERVED - 1;
// Get the host address and port number to connect to.
#if defined(__uxp__) || (defined(USL) && (OSMAJORVERSION > 1))
#if defined(USL) && OSMAJORVERSION > 1
if (!(hp = gethostbyname((char *) rhost)))
{
unsigned long tmpaddr = inet_addr((char *) rhost);
@@ -338,7 +338,7 @@ void LocalPrintJobs(char *printer, char **job_list, int *n_jobs)
}
#endif
#if defined(sun) || defined(USL) || defined(__uxp__)
#if defined(sun) || defined(USL)
// SUN LOCAL PARSER, actually this gets the local information from the file
// system, it should have the good performance since no processes (lpstat)

View File

@@ -52,15 +52,6 @@ const char *LIST_QUEUES = "LANG=C lpstat -v | "
" { print $10 }' "
" | sort";
#else
#ifdef __uxp__
const char *LIST_QUEUES = "LANG=C lpstat -v | "
"nawk '"
" $4 == \"for\" "
" { "
" x = match($5, /:/); "
" print substr($5, 1, x-1)"
" }' | sort";
#else
const char *LIST_QUEUES = "LANG=C lpstat -v | "
"nawk '"
" $2 == \"for\" "
@@ -71,7 +62,6 @@ const char *LIST_QUEUES = "LANG=C lpstat -v | "
#endif
#endif
#endif
#endif
// Object Class Name
const char *PRINTSUBSYSTEM = "PrintSubSystem";

View File

@@ -116,7 +116,7 @@ Invoke::Invoke(const char *command, // Command to Run
#if defined(__OSF1__) || defined(__osf__)
action.sa_handler = (void (*)(int))SIG_IGN;
#elif defined(USL) || defined(__uxp__) || \
#elif defined(USL) || \
( defined(sun) && OSMAJORVERSION == 5 && OSMINORVERSION <= 4)
action.sa_handler = (void (*)())SIG_IGN;
#else