/*
* Copyright (c) 1995, by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* from UCB 5.2 85/06/05 */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#include <stdio.h>
#include <signal.h>
#include <vfork.h>
#define RDR 0
extern char *malloc();
static int *popen_pid;
static int nfiles;
FILE *
char *cmd;
char *mode;
{
int p[2];
register int *poptr;
if (nfiles <= 0)
nfiles = getdtablesize();
return (NULL);
}
if (pipe(p) < 0)
return (NULL);
/* myside and hisside reverse roles in child */
int stdio;
/* close all pipes from other popen's */
if(*poptr >= 0)
}
}
_exit(127);
}
if (pid == -1) {
return (NULL);
}
}
int
{
}
if (child == -1)
return (-1);
;
(void) sigsetmask(omask);
}