OSDN Git Service

Update release for LDP 3.67
[linuxjm/LDP_man-pages.git] / release / man3 / fexecve.3
index 0215469..7a6347d 100644 (file)
@@ -85,11 +85,10 @@ POSIX.1\-2008 で規定されている。
 Linux では、 \fBfexecve\fP()  は \fBproc\fP(5)  ファイルシステムを使って実装されている。
 そのため、この関数を呼び出す時点では \fI/proc\fP がマウントされて利用可能となっている必要がある。
 
-If \fIfd\fP is a file descriptor that refers to an interpreter script and has
-been marked as close\-on\-exec (see the discussion of the \fBFD_CLOEXEC\fP in
-\fBfcntl\fP(2)), \fBfexecve\fP()  will fail to execute the script, since, by the
-time the script interpreter tries to access the script file, \fIfd\fP has
-already been closed.
+\fIfd\fP がインタプリタスクリプトを参照するファイルディスクリプタで、 close\-on\-exec がセットされていた場合 (\fBfcntl\fP(2)
+の \fBFD_CLOEXEC\fP の議論を参照)、 \fBfexecve\fP()
+はスクリプトの実行に失敗することになる。ならなら、スクリプトインタプリタがスクリプトファイルにアクセスしようとするときには、 \fIfd\fP
+はすでにクローズされているからである。
 
 \fBfexecve\fP() の裏にある考えは、呼び出し元が、ファイルを実行する前に実行ファイルの内容を検査 (チェックサムを確認)
 できるようにすることである。単に、ファイルをオープンして内容のチェックサムを検査し、それから \fBexecve\fP(2)
@@ -99,6 +98,6 @@ already been closed.
 .SH 関連項目
 \fBexecve\fP(2)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.65 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。