]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/fexecve.3
Updated CONFORMING TO section
[thirdparty/man-pages.git] / man3 / fexecve.3
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (c) 2006, Michael Kerrisk
4 .\"
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.
8 .\"
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.
13 .\"
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
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .TH FEXECVE 3 2006-03-06 "Linux" "Linux Programmer's Manual"
26 .SH NAME
27 fexecve \- execute program specified via file descriptor
28 .SH SYNOPSIS
29 .nf
30 .B #include <sys/time.h>
31 .sp
32 .BI "int fexecve(int " fd ", char *const " argv "[], char *const " envp []);
33 .fi
34 .SH DESCRIPTION
35 .BR fexecve ()
36 performs the same task as
37 .BR execve (2),
38 with the difference that the file to be executed
39 is specified via a file descriptor,
40 .IR fd ,
41 rather than via a pathname.
42 .SH "RETURN VALUE"
43 A successful call to
44 .BR fexecve ()
45 never returns.
46 On error, the function returns, with a result value of \-1 is returned, and
47 .I errno
48 is set appropriately.
49 .SH ERRORS
50 Errors are as for
51 .BR execve (2),
52 with the following additions:
53 .TP
54 .B EINVAL
55 .I fd
56 is not a valid file descriptor, or
57 .I argv
58 is NULL, or
59 .I envp
60 is NULL.
61 .TP
62 .B ENOSYS
63 The
64 .I /proc
65 file system could not be accessed.
66 .SH VERSIONS
67 .BR fexecve ()
68 is implemented since glibc 2.3.2.
69 .SH "CONFORMING TO"
70 This function is Linux specific.
71 .\" As at 2006:
72 It is under consideration for inclusion in a future version of POSIX.1.
73 .SH "SEE ALSO"
74 .BR execve (2)