diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-09-30 17:20:13 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-09-30 17:20:13 -0700 |
commit | 536adbdd5b5e44fcfbd5bce287080e678a48b678 (patch) | |
tree | 51732b83f1e391529b2253b711f4c2c4955f6327 | |
parent | cae8e0a4db186da3556bdab944b61eb540e6685c (diff) |
Remove ancient System() replacement for system(3c) on Solaris
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | misc.c | 18 | ||||
-rw-r--r-- | xsm.h | 5 |
2 files changed, 0 insertions, 23 deletions
@@ -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) { @@ -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, |