projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
3098645da5a7c8762d492d59cebc68afd17cc2ad
[musl]
/
src
/
process
/
fexecve.c
1
#include <unistd.h>
2
#include <stdio.h>
3
4
int fexecve(int fd, char *const argv[], char *const envp[])
5
{
6
static const char proc[] = "/proc/self/fd/%d";
7
char buf[sizeof proc + 3*sizeof(int)];
8
snprintf(buf, sizeof buf, proc, fd);
9
return execve(buf, argv, envp);
10
}