summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2018-09-30 17:20:13 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2018-09-30 17:20:13 -0700
commit536adbdd5b5e44fcfbd5bce287080e678a48b678 (patch)
tree51732b83f1e391529b2253b711f4c2c4955f6327
parentcae8e0a4db186da3556bdab944b61eb540e6685c (diff)
Remove ancient System() replacement for system(3c) on Solaris
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--misc.c18
-rw-r--r--xsm.h5
2 files changed, 0 insertions, 23 deletions
diff --git a/misc.c b/misc.c
index c9367bd..553b937 100644
--- a/misc.c
+++ b/misc.c
@@ -102,24 +102,6 @@ strbw(const char *a, const char *b)
-#if defined(sun) && defined(SVR4)
-#include <sys/wait.h>
-
-int
-System(char *s)
-{
- int pid, status;
- if ((pid = fork ()) == 0) {
- (void) setpgrp();
- execl ("/bin/sh", "sh", "-c", s, NULL);
- } else
- waitpid (pid, &status, 0);
- return status;
-}
-#endif
-
-
-
void
nomem(void)
{
diff --git a/xsm.h b/xsm.h
index e952419..e780355 100644
--- a/xsm.h
+++ b/xsm.h
@@ -208,11 +208,6 @@ extern void nomem(void);
#define Strstr strstr
-#if defined(sun) && defined(SVR4)
-extern int System(char *s);
-#define system(s) System(s)
-#endif
-
/* remote.c */
extern void remote_start(const char *restart_protocol,
const char *restart_machine,