101 #if !defined(__APPLE__) && !defined(MS_WINDOWS)
102 FILE *
popen(
char *,
char *);
133 if(!strcmp(fnam,
"stdout"))
137 return(fopen(fnam,
"w"));
141 signal(SIGPIPE, SIG_IGN);
144 return((FILE *)
popen(fnam,
"w"));
148 return(fopen(fnam,
"w"));
183 if((ret=
pclose(fp)) == (-1))
186 signal(SIGPIPE, SIG_DFL);
int blCloseOrPipe(FILE *fp)
FILE * popen(char *, char *)
FILE * blOpenOrPipe(char *filename)
Port-specific defines to allow us to use things like popen() in a clean compile.
#define KILLLEADSPACES(y, x)