5 /* This and the other exec*.c files in this directory require
6 the target to provide the _execve syscall. */
11 /* Only deal with a pointer to environ, to work around subtle bugs with shared
12 libraries and/or small data systems where the user declares his own
14 static char ***p_environ
= &environ
;
20 execl (const char *path
,
21 const char *arg0
, ...)
27 const char *argv
[256];
29 va_start (args
, arg0
);
33 argv
[i
] = va_arg (args
, const char *);
34 while (argv
[i
++] != NULL
);
37 return _execve (path
, (char * const *) argv
, *p_environ
);
39 #endif /* !_NO_EXECVE */