Cygwin: mmap: use 64K pages for bookkeeping, second attempt
[newlib-cygwin.git] / newlib / libc / posix / execlp.c
blobb845c88c51acf86c1037c0e5edafeced2ebbd597
1 #ifndef _NO_EXECVE
3 /* execlp.c */
5 /* This and the other exec*.c files in this directory require
6 the target to provide the _execve syscall. */
8 #include <_ansi.h>
9 #include <unistd.h>
12 #include <stdarg.h>
14 int
15 execlp (const char *path,
16 const char *arg0, ...)
20 int i;
21 va_list args;
22 const char *argv[256];
24 va_start (args, arg0);
25 argv[0] = arg0;
26 i = 1;
28 argv[i] = va_arg (args, const char *);
29 while (argv[i++] != NULL);
30 va_end (args);
32 return execvp (path, (char * const *) argv);
35 #endif /* !_NO_EXECVE */