Discontinue HPUX support
This commit is contained in:
@@ -62,10 +62,6 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef __hpux
|
||||
#include <sys/inode.h>
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
#include <pwd.h>
|
||||
|
||||
|
||||
@@ -484,24 +484,14 @@ StrcollProc
|
||||
GetStrcollProc(void)
|
||||
{
|
||||
int Clang = 0;
|
||||
#if defined(__hpux)
|
||||
struct locale_data * li;
|
||||
#else
|
||||
char * locale;
|
||||
#endif
|
||||
|
||||
#define C_LANG "C"
|
||||
|
||||
/* if locale is C, use the explicit case insensitive compare */
|
||||
#if defined(__hpux)
|
||||
li = getlocale(LOCALE_STATUS);
|
||||
if ( NULL == li->LC_COLLATE_D || strcmp(C_LANG,li->LC_COLLATE_D) == 0 )
|
||||
Clang = 1;
|
||||
#else
|
||||
locale = setlocale(LC_COLLATE,NULL); /* put locale in buf */
|
||||
if (strcmp(locale,C_LANG) == 0)
|
||||
Clang = 1;
|
||||
#endif
|
||||
|
||||
if (Clang)
|
||||
return StrCaseCmp;
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
|
||||
#if defined(_AIX) || defined(hpux)
|
||||
#if defined(_AIX)
|
||||
#include <sys/dir.h>
|
||||
#else
|
||||
#ifndef MAXNAMLEN
|
||||
|
||||
@@ -954,7 +954,7 @@ FileManip(
|
||||
#else
|
||||
#if defined(SVR4) || defined(_AIX)
|
||||
((s3.st_mode & S_IFMT) == S_IFDIR) ) /* if is a directory */
|
||||
#else /* (__hpux) */
|
||||
#else
|
||||
(((s3.st_mode & S_IFMT) == S_IFDIR) /* if is a directory */
|
||||
|| ((s3.st_mode & S_IFMT) == S_IFNWK)) ) /* or a net special */
|
||||
#endif
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
|
||||
#if defined(_AIX)|| defined(hpux)
|
||||
#if defined(_AIX)
|
||||
#include <sys/dir.h>
|
||||
#else
|
||||
#ifndef MAXNAMLEN
|
||||
@@ -2287,11 +2287,7 @@ _FileMoveCopy(
|
||||
|
||||
/* do the select */
|
||||
FD_SET(fd, &select_fds);
|
||||
#if defined(__hpux) && (OSMAJORVERSION <= 10) && (OSMINORVERSION < 2)
|
||||
rc = select(fd + 1, (int *)&select_fds, NULL, NULL, &select_timeout);
|
||||
#else
|
||||
rc = select(fd + 1, &select_fds, NULL, NULL, &select_timeout);
|
||||
#endif
|
||||
if (rc < 0 && errno != EINTR)
|
||||
{
|
||||
perror("select failed in FileMoveCopy");
|
||||
|
||||
@@ -84,9 +84,6 @@
|
||||
#include <signal.h>
|
||||
|
||||
|
||||
#ifdef __hpux
|
||||
#include <sys/getaccess.h>
|
||||
#endif /* __hpux */
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <string.h>
|
||||
@@ -159,9 +156,9 @@ static char * PRINT_OPTION = " -print ";
|
||||
static char * FIND_COMMAND = "find ";
|
||||
static char * GREP_COMMAND = "grep -i -l ";
|
||||
static char * NAME_OPTION = " -name ";
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
static char * FOLLOW_OPTION = " -follow";
|
||||
#endif /* __hpux */
|
||||
#endif /* sun */
|
||||
static char * REDIRECTOR = " 2>&-";
|
||||
static char * TYPEDIR = " -type d";
|
||||
static char * FIND_FILE = "FindFile";
|
||||
@@ -368,7 +365,7 @@ Create(
|
||||
Widget newFM, outputSeparator;
|
||||
Widget headLabel, contentLabel, contentText;
|
||||
Widget filterText, filterLabel, listLabel, scrolledList, dirName, dirLabel;
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
Widget followLink, followLinkPD;
|
||||
#endif
|
||||
Widget putOnDT, separator;
|
||||
@@ -487,7 +484,7 @@ Create(
|
||||
XtAddCallback(contentText, XmNhelpCallback, (XtCallbackProc)HelpRequestCB,
|
||||
HELP_FIND_DIALOG_STR);
|
||||
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
n = 0;
|
||||
XtSetArg (args[n], XmNmarginWidth, 1); n++;
|
||||
XtSetArg (args[n], XmNmarginHeight, 1); n++;
|
||||
@@ -543,7 +540,7 @@ Create(
|
||||
XtSetArg (args[n], XmNleftAttachment, XmATTACH_FORM); n++;
|
||||
XtSetArg (args[n], XmNrightAttachment, XmATTACH_FORM); n++;
|
||||
XtSetArg (args[n], XmNtopAttachment, XmATTACH_WIDGET); n++;
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
XtSetArg (args[n], XmNtopWidget, form1); n++;
|
||||
#else
|
||||
XtSetArg (args[n], XmNtopWidget, contentText); n++;
|
||||
@@ -797,7 +794,7 @@ Create(
|
||||
find_rec->form = form;
|
||||
find_rec->fileNameFilter = filterText;
|
||||
find_rec->content = contentText;
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
find_rec->followLink = followLink;
|
||||
#else
|
||||
find_rec->followLink = NULL;
|
||||
@@ -979,7 +976,7 @@ GetDefaultValues( void )
|
||||
find_data->matches = NULL;
|
||||
find_data->num_matches = 0;
|
||||
find_data->selected_item = -1;
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
find_data->follow_links = follow_links;
|
||||
#endif
|
||||
|
||||
@@ -1108,7 +1105,7 @@ SetValues(
|
||||
XtSetValues (find_rec->matchList, args, 1);
|
||||
}
|
||||
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
/* Set up the Follow links option menu */
|
||||
if(find_data->follow_links)
|
||||
XtSetArg(args[0], XmNmenuHistory, find_rec->widgArry[ON]);
|
||||
@@ -1295,7 +1292,7 @@ GetFindValues(
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
{
|
||||
Widget menuHistory;
|
||||
|
||||
@@ -1883,7 +1880,7 @@ ExecuteFind(
|
||||
|
||||
}
|
||||
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
{
|
||||
Widget menuHistory;
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ typedef struct
|
||||
Dimension width;
|
||||
Dimension height;
|
||||
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
Boolean follow_links;
|
||||
#endif
|
||||
String directories;
|
||||
|
||||
@@ -197,7 +197,7 @@ ShowFindDialog(
|
||||
XtFree(tempStr);
|
||||
file_mgr_rec->findBtn_child=find_rec->shell;
|
||||
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
if(file_mgr_data->toolbox)
|
||||
{
|
||||
XtSetArg (args[0], XmNmenuHistory, find_rec->widgArry[ON]);
|
||||
|
||||
@@ -263,7 +263,7 @@ typedef struct
|
||||
Boolean restrictMode;
|
||||
int desktopPlacement;
|
||||
Boolean freezeOnConfig;
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
Boolean follow_links;
|
||||
#endif
|
||||
char * fileMgrIcon;
|
||||
@@ -590,7 +590,7 @@ int checkBrokenLink;
|
||||
int trashWait;
|
||||
int desktopPlacement;
|
||||
Boolean freezeOnConfig;
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
Boolean follow_links;
|
||||
#endif
|
||||
int treeType;
|
||||
@@ -949,7 +949,7 @@ static XtResource resources[] =
|
||||
(XtPointer)False,
|
||||
},
|
||||
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
{ "followLinks", "FollowLinks", XmRBoolean, sizeof(Boolean),
|
||||
XtOffset(ApplicationArgsPtr, follow_links), XmRImmediate,
|
||||
(XtPointer) False,
|
||||
@@ -1459,7 +1459,7 @@ _DtPerfChkpntMsgSend("Begin XtInitialize");
|
||||
desktopPlacement = application_args.desktopPlacement;
|
||||
freezeOnConfig = application_args.freezeOnConfig;
|
||||
emptyTrashOnExit = application_args.emptyTrashOnExit;
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
follow_links = application_args.follow_links;
|
||||
#endif
|
||||
instanceWidth = application_args.instanceIconWidth;
|
||||
|
||||
@@ -289,7 +289,7 @@ extern char *fileMgrTitle;
|
||||
extern char *fileMgrHelpVol;
|
||||
extern int desktopIconType;
|
||||
extern Boolean freezeOnConfig;
|
||||
#if defined(__hpux) || defined(sun)
|
||||
#if defined(sun)
|
||||
extern Boolean follow_links;
|
||||
#endif
|
||||
extern int maxDirectoryProcesses;
|
||||
|
||||
@@ -51,9 +51,6 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
#ifdef __hpux
|
||||
#include <sys/getaccess.h>
|
||||
#endif
|
||||
|
||||
#include <Xm/Xm.h>
|
||||
|
||||
|
||||
@@ -808,11 +808,6 @@ The selected file no longer exists.
|
||||
31 File or Folder Name:
|
||||
32 File Contents:
|
||||
|
||||
$ Messages 33-35 are used on hpux systems
|
||||
33 On
|
||||
34 Off
|
||||
35 Follow Links:
|
||||
|
||||
36 Open New View
|
||||
37 Put In Workspace
|
||||
38 Files Found (by Contents):
|
||||
|
||||
@@ -111,10 +111,6 @@
|
||||
#include <sys/statvfs.h>
|
||||
#endif
|
||||
|
||||
#ifdef __hpux
|
||||
#include <sys/vfs.h>
|
||||
#endif
|
||||
|
||||
/*----------------------
|
||||
* global variables
|
||||
*----------------------*/
|
||||
@@ -259,17 +255,6 @@ static void getFSType(const String path,
|
||||
strncpy(fsType,"",MAXLINELENGTH);
|
||||
#endif /* sun */
|
||||
|
||||
#ifdef __hpux
|
||||
#define GETFSTYPE
|
||||
struct statfs buf;
|
||||
|
||||
strncpy(platform,"hpux",MAXLINELENGTH);
|
||||
if (statfs(path, &buf) == 0)
|
||||
sprintf(fsType,"%li",buf.f_fsid[1]);
|
||||
else
|
||||
strncpy(fsType,"",MAXLINELENGTH);
|
||||
#endif /* __hpux */
|
||||
|
||||
#ifndef GETFSTYPE
|
||||
strncpy(platform,"unknown",MAXLINELENGTH);
|
||||
strncpy(fsType, "",MAXLINELENGTH);
|
||||
@@ -306,7 +291,6 @@ static void getFSType(const String path,
|
||||
* * sample dtfs configuration file
|
||||
*
|
||||
* aix:4=afs
|
||||
* hpux:8=afs
|
||||
* sunos:nfs=nfs
|
||||
* end
|
||||
*
|
||||
@@ -459,7 +443,7 @@ configFileName(void)
|
||||
* get the file-system identifier from the configuration file
|
||||
*
|
||||
* fptr refers to an open configuration file
|
||||
* fsType and platform identify the platfrom (aix, hpux, sunos, etc)
|
||||
* fsType and platform identify the platfrom (aix, sunos, etc)
|
||||
* and file-system type (afs, nfs, dfs, etc.)
|
||||
* fsID is filled by matching platform:fsType with with information in the
|
||||
* file and reading the id; the string comparisons are case insensitive
|
||||
|
||||
Reference in New Issue
Block a user