1FEXECVE(3)                 Linux Programmer's Manual                FEXECVE(3)
2
3
4

NAME

6       fexecve - execute program specified via file descriptor
7

SYNOPSIS

9       #include <sys/time.h>
10
11       int fexecve(int fd, char *const argv[], char *const envp[]);
12

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

VERSIONS

32       fexecve() is implemented since glibc 2.3.2.
33

CONFORMING TO

35       This function is Linux specific.  It is under consideration for  inclu‐
36       sion in a future version of POSIX.1.
37

SEE ALSO

39       execve(2)
40
41
42
43Linux                             2006-03-06                        FEXECVE(3)
Impressum