1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

remove OSF1 support

This commit is contained in:
chase 2018-05-24 14:50:03 -05:00 committed by Jon Trulson
parent 3c1736f077
commit 164e695cd0
325 changed files with 290 additions and 9980 deletions

View file

@ -21,9 +21,7 @@ XCOMM include "Dt"
!#Dtsession*coverScreen: False
Dtsession*drawArea.background: black
#ifdef __osf__
Dtsession*lockLabelPixmap.imageName: DECDtlogo
#elif __FreeBSD__
#ifdef __FreeBSD__
Dtsession*lockLabelPixmap.imageName: FreeBSDDtlogo
#else
Dtsession*lockLabelPixmap.imageName: Dtlogo

View file

@ -163,7 +163,7 @@ GetMemoryUtilization(void)
#if !defined(linux)
static int init = 0;
static int kmem;
#if !defined(SVR4) && !defined(hpV4) && !defined(_POWER) && !defined (__osf__) && !defined(CSRG_BASED)
#if !defined(SVR4) && !defined(hpV4) && !defined(_POWER) && !defined(CSRG_BASED)
extern void nlist();
#endif
int i;

View file

@ -1399,11 +1399,11 @@ RemoveFiles(
_DtEnvControl(DT_ENV_RESTORE_PRE_DT);
#if defined(__osf__) || defined(CSRG_BASED)
#if defined(CSRG_BASED)
setsid();
#else
(void) setpgrp();
#endif /* __osf__ */
#endif /* CSRG_BASED */
execStatus = execlp("rm","rm", "-rf", path, (char *) 0);
if(execStatus != 0)
@ -1504,11 +1504,11 @@ MoveDirectory(
_DtEnvControl(DT_ENV_RESTORE_PRE_DT);
#if defined(__osf__) || defined(CSRG_BASED)
#if defined(CSRG_BASED)
setsid();
#else
(void) setpgrp();
#endif /* __osf__ */
#endif /* CSRG_BASED */
execStatus = execlp("mv","mv", pathFrom, pathTo, (char *) 0);
if(execStatus != 0)

View file

@ -55,9 +55,6 @@
#include <stdio.h>
#include <locale.h>
#ifdef __osf__
#include <sys/access.h>
#endif
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
@ -146,30 +143,6 @@ main (int argc, char **argv)
struct sigaction stopvec;
char *lang;
#ifdef __osf__
# include <sys/sysinfo.h>
# include <sys/proc.h>
unsigned long op;
int buffer[2];
unsigned long nbytes = 1;
char* arg = 0;
unsigned long flag = 0;
int ssi_status;
op = SSI_NVPAIRS;
buffer[0] = SSIN_UACPROC;
buffer[1] = UAC_NOPRINT;
# ifdef DEBUG_UAC
buffer[1] |= UAC_SIGBUS;
# endif
ssi_status = setsysinfo ( op, buffer, nbytes, arg, flag );
#endif
setlocale( LC_ALL, "" );
XtSetLanguageProc( NULL, NULL, NULL );
@ -551,17 +524,6 @@ main (int argc, char **argv)
smGD.smState = READY;
#ifdef __osf__
/* If we've just populated a new .dtprofile into the user's home
* directory, put up a popup dialog explaining the need to edit it
* to allow .login/.profile to work properly
*/
arg = getenv("DTNEWPROFILE");
if (arg)
WarnNewProfile();
#endif
while(1)
{
XtAppNextEvent(smGD.appCon, &next);

View file

@ -114,9 +114,7 @@
#include "SmDB.h"
#include "SmProp.h"
#ifndef __osf__
#include <X11/Xlibint.h>
#endif /* __osf__ */
/*
* Local variables
@ -134,7 +132,7 @@ static char * savedDisplay = NULL;
#define SM_MAX_ARGS MAXLINE
#if defined (SVR4) || defined (__osf__)
#if defined (SVR4)
#define REMOTE_CMD_STRING "rsh %s -n %s &"
#else
#define REMOTE_CMD_STRING "remsh %s -n %s &"
@ -906,11 +904,11 @@ RestoreResources( Boolean errorHandlerInstalled, ... )
setegid(smGD.runningGID);
#endif
#endif
#if defined(__osf__) || defined(CSRG_BASED)
#if defined(CSRG_BASED)
setsid();
#else
(void) setpgrp();
#endif /* __osf__ */
#endif /* CSRG_BASED */
MarkFileDescriptors (3, F_SETFD, 1);
@ -3630,11 +3628,11 @@ StartLocalClient (
_DtEnvControl(DT_ENV_RESTORE_PRE_DT);
#if defined(__osf__) || defined(CSRG_BASED)
#if defined(CSRG_BASED)
setsid();
#else
(void)setpgrp();
#endif /* __osf__ */
#endif /* CSRG_BASED */
MarkFileDescriptors (3, F_SETFD, 1);
@ -3866,11 +3864,11 @@ ForkWM( void )
#endif
_DtEnvControl(DT_ENV_RESTORE_PRE_DT);
#if defined(__osf__) || defined(CSRG_BASED)
#if defined(CSRG_BASED)
setsid();
#else
(void)setpgrp();
#endif /* __osf__ */
#endif /* CSRG_BASED */
MarkFileDescriptors (3, F_SETFD, 1);
@ -3951,11 +3949,11 @@ KillParent( void )
/*
* Disassociate from parent
*/
#if defined(__osf__) || defined(CSRG_BASED)
#if defined(CSRG_BASED)
setsid();
#else
setpgrp();
#endif /* __osf__ */
#endif /* CSRG_BASED */
}

View file

@ -96,9 +96,7 @@
#include <limits.h>
#endif
#ifndef __osf__
#include <X11/Xlibint.h>
#endif /* __osf__ */
typedef struct _ProxyClientCache {
Window window;

View file

@ -1764,22 +1764,6 @@ WarnNoStartup( void )
XmString bmsNoStartString;
String tmpString;
#ifdef __osf__
bmsNoStartString = XmStringCreateLocalized(((char *)GETMESSAGE(18, 76,
"The DT messaging system could not be started.\n\n\
To correct the problem:\n\n\
1. Choose [OK] to return to the login screen.\n\n\
2. Select Failsafe Session from the login screen's option\n\
menu and log in.\n\n\
3. Check to see that your hostname exists correctly in /etc/hosts if your\n\
network has already been configured.\n\
4. If your network has not yet been configured, make sure that /etc/hosts\n\
has the following entry in it:\n\
127.0.0.1 localhost \n\n\
For additional information, see the CDE User's Guide.")));
#else
bmsNoStartString = XmStringCreateLocalized(((char *)GETMESSAGE(18, 36,
"The desktop messaging system could not be started.\n\n\
To correct the problem:\n\n\
@ -1790,7 +1774,6 @@ To correct the problem:\n\n\
the hostname is correct (/etc/hosts) and that the\n\
network is properly configured.\n\n\
For additional information, see the CDE User's Guide.")));
#endif
/*
* Now create the dialog box
@ -1829,93 +1812,6 @@ For additional information, see the CDE User's Guide.")));
return(0);
} /* END OF FUNCTION WarnNoStartup */
#ifdef __osf__
/*************************************<->*************************************
*
* WarnNewProfile()
*
*
* Description:
* -----------
* Warn the user that a new .dtprofile has just been added to their $HOME
* directory, indicating a need to edit it and their .login/.profile files.
*
*
* Inputs:
* ------
*
*
* Outputs:
* -------
* None.
*
*
* Comments:
* --------
*
*************************************<->***********************************/
int
WarnNewProfile( void )
{
int i;
XmString newProfileString;
String tmpString;
newProfileString = XmStringCreateLocalized(((char *)GETMESSAGE(18, 99,
"The new file '.dtprofile' has been added to your home directory.\n\
\n\
Follow the instructions in this file to ensure that when you log in\n\
again your '.login' or '.profile' file will be activated and \n\
that it will interact correctly with CDE. \n\
\n\
For additional information, see the CDE Advanced User's and System\n\
Administrator's Guide.")));
/*
* Now create the dialog box
*/
i = 0;
tmpString = GETMESSAGE(18, 37, "Action Required");
XtSetArg(uiArgs[i], XmNmessageString, newProfileString);i++;
XtSetArg(uiArgs[i], XmNallowShellResize, True); i++;
XtSetArg(uiArgs[i], XmNdialogStyle, XmDIALOG_SYSTEM_MODAL); i++;
XtSetArg(uiArgs[i], XmNmessageAlignment, XmALIGNMENT_BEGINNING); i++;
XtSetArg(uiArgs[i], XmNtitle, tmpString); i++;
XtSetArg(uiArgs[i], XmNokLabelString, smDD.okString); i++;
XtSetArg(uiArgs[i], XmNautoUnmanage, False); i++;
smDD.newProfile = XmCreateWarningDialog(smGD.topLevelWid,
"newProfileDialog",
uiArgs, i);
XtSetArg(uiArgs[i], XmNuseAsyncGeometry, True);i++;
XtSetValues(XtParent(smDD.newProfile), uiArgs, i);
XtAddCallback (XtParent(smDD.newProfile),
XmNpopupCallback, DialogUp, NULL);
XtUnmanageChild(XmMessageBoxGetChild(smDD.newProfile,
XmDIALOG_HELP_BUTTON));
XtUnmanageChild(XmMessageBoxGetChild(smDD.newProfile,
XmDIALOG_CANCEL_BUTTON));
/*
* Now add in the callback and get out of here
*/
XtAddCallback (smDD.newProfile, XmNokCallback,
SimpleOK, smDD.newProfile);
XmStringFree(newProfileString);
XtManageChild(smDD.newProfile);
return(0);
} /* END OF FUNCTION WarnNewProfile */
#endif
/*************************************<->*************************************
*
* ConfirmSessionCreation () -

View file

@ -85,9 +85,6 @@ typedef struct
XmString okString, cancelString, helpString;
XmString okLogoutString, cancelLogoutString;
Widget noStart; /* Cant start dt dialog */
#ifdef __osf__
Widget newProfile; /* new dtprofile dialog */
#endif
Widget smHelpDialog; /* Help dialog for all topics */
} DialogData;
@ -112,9 +109,6 @@ extern Boolean InitCursorInfo( void ) ;
extern void UpdatePasswdField( int );
extern int WarnNoStartup( void );
extern void DialogUp( Widget, XtPointer, XtPointer ) ;
#ifdef __osf__
extern int WarnNewProfile( void );
#endif
void PostSaveSessionErrorDialog ( void );
extern int ConfirmExit( Tt_message, Boolean );

View file

@ -77,11 +77,7 @@ XCOMM endif
*sessionVersion: 3.0
*multiClickTime: 500
#ifdef __osf__
*ttyModes: erase ^? intr ^C kill ^U start ^Q stop ^S swtch ^@ susp ^Z
#else
*ttyModes: erase ^H intr ^C kill ^U start ^Q stop ^S swtch ^@ susp ^Z
#endif
*promptDialog.bboard.frame.form.text.columns: %|nls-3-#45#|
#ifdef __hpux