5 int fexecve(int fd, char *const argv[], char *const envp[])
7 static const char proc[] = "/proc/self/fd/%d";
8 char buf[sizeof proc + 3*sizeof(int)];
9 snprintf(buf, sizeof buf, proc, fd);
10 execve(buf, argv, envp);
11 if (errno == ENOENT) errno = EBADF;