SCCS-vsn: lib/libc/gen/exec.c 5.4
#if defined(LIBC_SCCS) && !defined(lint)
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)exec.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)exec.c 5.4 (Berkeley) %G%";
#endif LIBC_SCCS and not lint
/*
#endif LIBC_SCCS and not lint
/*
* execvp(name, argv) (like execv, but does path search)
*/
#include <errno.h>
* execvp(name, argv) (like execv, but does path search)
*/
#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
static char shell[] = "/bin/sh";
static char shell[] = "/bin/sh";
-char *getenv();
-extern errno;
+const char *name, *argv;
{
return(execvp(name, &argv));
}
{
return(execvp(name, &argv));
}
+const char *name;
+char * const *argv;
{
char *pathstr;
register char *cp;
{
char *pathstr;
register char *cp;