projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
yet another ugly legacy syscall rename...
[oweals/musl.git]
/
src
/
process
/
execle.c
1
#include <unistd.h>
2
#include <stdarg.h>
3
4
int execle(const char *path, ...)
5
{
6
int argc;
7
va_list ap;
8
va_start(ap, path);
9
for (argc=0; va_arg(ap, const char *); argc++);
10
va_end(ap);
11
{
12
int i;
13
char *argv[argc+1];
14
char **envp;
15
va_start(ap, path);
16
for (i=0; i<argc; i++)
17
argv[i] = va_arg(ap, char *);
18
argv[i] = NULL;
19
envp = va_arg(ap, char **);
20
return execve(path, argv, envp);
21
}
22
}