1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright (c) 2006, Michael Kerrisk
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .TH FEXECVE 3 2006-03-06 "Linux" "Linux Programmer's Manual"
27 fexecve \- execute program specified via file descriptor
30 .B #include <sys/time.h>
32 .BI "int fexecve(int " fd ", char *const " argv "[], char *const " envp []);
36 performs the same task as
38 with the difference that the file to be executed
39 is specified via a file descriptor,
41 rather than via a pathname.
46 On error, the function returns, with a result value of \-1 is returned, and
52 with the following additions:
56 is not a valid file descriptor, or
65 file system could not be accessed.
68 is implemented since glibc 2.3.2.
70 This function is Linux specific.
72 It is under consideration for inclusion in a future version of POSIX.1.