1FEXECVE(3) Linux Programmer's Manual FEXECVE(3)
2
3
4
6 fexecve - execute program specified via file descriptor
7
9 #include <sys/time.h>
10
11 int fexecve(int fd, char *const argv[], char *const envp[]);
12
14 fexecve() performs the same task as execve(2), with the difference that
15 the file to be executed is specified via a file descriptor, fd, rather
16 than via a pathname.
17
19 A successful call to fexecve() never returns. On error, the function
20 returns, with a result value of -1 is returned, and errno is set appro‐
21 priately.
22
24 Errors are as for execve(2), with the following additions:
25
26 EINVAL fd is not a valid file descriptor, or argv is NULL, or envp is
27 NULL.
28
29 ENOSYS The /proc file system could not be accessed.
30
32 fexecve() is implemented since glibc 2.3.2.
33
35 This function is Linux specific. It is under consideration for inclu‐
36 sion in a future version of POSIX.1.
37
39 execve(2)
40
41
42
43Linux 2006-03-06 FEXECVE(3)