OSDN Git Service

429290d38e69bb0a67f6fda1dcd44c7eec3577b9
[linuxjm/LDP_man-pages.git] / release / man3 / fexecve.3
1 .\" Copyright (c) 2006, Michael Kerrisk
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\"*******************************************************************
26 .\"
27 .\" This file was generated with po4a. Translate the source file.
28 .\"
29 .\"*******************************************************************
30 .\"
31 .\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
32 .\" Translated 2006-07-31, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
33 .\" Updated 2009-02-23, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.18
34 .\"
35 .TH FEXECVE 3 2010\-09\-15 Linux "Linux Programmer's Manual"
36 .SH 名前
37 fexecve \- ファイルディスクリプタで指定されたプログラムを実行する
38 .SH 書式
39 .nf
40 \fB#include <unistd.h>\fP
41 .sp
42 \fBint fexecve(int \fP\fIfd\fP\fB, char *const \fP\fIargv\fP\fB[], char *const \fP\fIenvp\fP\fB[]);\fP
43 .fi
44 .sp
45 .in -4n
46 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
47 .in
48 .sp
49 \fBfexecve\fP():
50 .PD 0
51 .ad l
52 .RS 4
53 .TP  4
54 glibc 2.10 以降:
55 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
56 .TP 
57 glibc 2.10 より前:
58 _GNU_SOURCE
59 .RE
60 .ad
61 .PD
62 .SH 説明
63 .\" POSIX.1-2008 specifies the O_EXEC flag for open as an alternative,
64 .\" but Linux doesn't support this flag yet.
65 \fBfexecve\fP()  は \fBexecve\fP(2)  と同じ作業を行う。違うのは、 実行するファイルを、パス名ではなく、 ファイルディスクリプタ
66 \fIfd\fP を用いて指定する点である。 ファイルディスクリプタ \fIfd\fP は、読み込み専用でオープンされていなければならず、
67 呼び出し元はファイルディスクリプタが参照するファイルに対する 実行許可を持っていなければならない。
68 .SH 返り値
69 \fBfexecve\fP()  は呼び出しに成功した場合、戻ることはない。 エラーの場合、返り値として \-1 が返され、 \fIerrno\fP
70 が適切に設定される。
71 .SH エラー
72 エラーは \fBexecve\fP(2)  と同じだが、以下のエラーが追加になっている:
73 .TP 
74 \fBEINVAL\fP
75 \fIfd\fP が有効なファイルディスクリプタでない。または \fIargv\fP が NULL である。または \fIenvp\fP が NULL である。
76 .TP 
77 \fBENOSYS\fP
78 The \fI/proc\fP filesystem could not be accessed.
79 .SH バージョン
80 \fBfexecve\fP()  は glibc 2.3.2 以降で実装されている。
81 .SH 準拠
82 POSIX.1\-2008.  この関数は POSIX.1\-2001 では規定されておらず、 他のシステムで広く利用できるわけではない。
83 .SH 注意
84 On Linux, \fBfexecve\fP()  is implemented using the \fBproc\fP(5)  filesystem, so
85 \fI/proc\fP needs to be mounted and available at the time of the call.
86 .SH 関連項目
87 \fBexecve\fP(2)
88 .SH この文書について
89 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
90 である。プロジェクトの説明とバグ報告に関する情報は
91 http://www.kernel.org/doc/man\-pages/ に書かれている。