#endif /* _SUN_OS */
#include <sys/types.h>
#include <stdlib.h>
-#ifdef __apollo
-#include <X11/apollosys.h> /* for pid_t struct in hp-ux sys/types.h */
-#endif
#include <sys/socket.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include "SmDB.h"
#include "SmProp.h"
-#ifndef __osf__
#include <X11/Xlibint.h>
-#endif /* __osf__ */
/*
* Local variables
#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 &"
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);
/*
* This is only involked when there is auto repeats set for
* specific keys only. It is VERY SLOW code so unless you
- * have to save off auto repeats for single keys - DONT
+ * have to save off auto repeats for single keys - DON'T
*/
while(tmpKey != NULL)
{
* If this is the first DT 3.0 session for a DT 2.0 user then we will
* also launch the helpviewer. If this is the first DT 3.0 session for a
* DT 2.0 user then we will also run convertVS.sh to change all
- * occurances of /usr/bin/X11/hpterm to .../dt/bin/hpterm,
+ * occurrences of /usr/bin/X11/hpterm to .../dt/bin/hpterm,
* /usr/bin/X11/xterm to .../dt/bin/xterm and
* /usr/bin/X11/xload to .../dt/bin/xload.
*
_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);
#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);
/*
* Disassociate from parent
*/
-#if defined(__osf__) || defined(CSRG_BASED)
+#if defined(CSRG_BASED)
setsid();
#else
setpgrp();
-#endif /* __osf__ */
+#endif /* CSRG_BASED */
}
#ifdef _SUN_OS
open_max = NOFILE;
#else
-#if defined(USL) || defined(_AIX)
+#if defined(_AIX)
open_max = FOPEN_MAX;
#else
open_max = FD_SETSIZE;