OSDN Git Service

(split) LDP: Update release pages based on LDP 3.54 release
[linuxjm/LDP_man-pages.git] / release / man3 / opendir.3
index 0ec65e2..8e4fdeb 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (C) 1993 David Metcalfe (david@prism.demon.co.uk)
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" References consulted:
 .\"     Linux libc source code
 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
 .\"     386BSD man pages
 .\" Modified Sat Jul 24 18:46:01 1993 by Rik Faith (faith@cs.unc.edu)
-.\" Modified 11 June 1995 by Andries Brouwer (aeb@cwi.nl).
+.\" Modified 11 June 1995 by Andries Brouwer (aeb@cwi.nl)
 .\" 2007-07-30 Ulrich Drepper <drepper@redhat.com>: document fdopendir().
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 1997 Seiichi Yoshida
 .\"       all rights reserved.
 .\" Updated & Modified Thu Feb 17 00:37:46 JST 2005
 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
 .\"
-.\"WORD:    directory stream            ディレクトリストリーム
-.\"WORD:    entry                       エントリ
-.\"WORD:    Permission denied           アクセス権限がない
-.\"WORD:    file descriptor             ファイルディスクリプタ
-.\"
-.TH OPENDIR 3  2010-06-20 "" "Linux Programmer's Manual"
+.TH OPENDIR 3 2010\-06\-20 GNU "Linux Programmer's Manual"
 .SH 名前
 opendir, fdopendir \- ディレクトリをオープンする
 .SH 書式
 .nf
-.B #include <sys/types.h>
+\fB#include <sys/types.h>\fP
 .br
-.B #include <dirent.h>
+\fB#include <dirent.h>\fP
 .sp
-.BI "DIR *opendir(const char *" name );
-.BI "DIR *fdopendir(int " fd );
+\fBDIR *opendir(const char *\fP\fIname\fP\fB);\fP
+\fBDIR *fdopendir(int \fP\fIfd\fP\fB);\fP
 .fi
 .sp
 .in -4n
-glibc 向けの機能検査マクロの要件
-.RB ( feature_test_macros (7)
-参照):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
 .in
 .sp
-.BR fdopendir ():
+\fBfdopendir\fP():
 .PD 0
 .ad l
 .RS 4
-.TP 4
+.TP  4
 glibc 2.10 以降:
 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
-.TP
+.TP 
 glibc 2.10 より前:
 _GNU_SOURCE
 .RE
 .ad
 .PD
 .SH 説明
-.BR opendir ()
-関数はディレクトリ \fIname\fP に対応する
-ディレクトリストリームをオープンし、そのストリームへのポインタを返す。
+\fBopendir\fP()  関数はディレクトリ \fIname\fP に対応する ディレクトリストリームをオープンし、そのストリームへのポインタを返す。
 ストリームの位置はディレクトリの先頭のエントリに設定される。
 
-.BR fdopendir ()
-関数は
-.BR opendir ()
-と同様だが、オープン済みのファイルディスクリプタ
-.I fd
-により参照されるディレクトリに対する
-ディレクトリストリームを返す。
-.BR fdopendir ()
-の呼び出しが成功した後は、
-.I fd
-は実装の内部で使用される。アプリケーションは
-.I fd
-を他の場面で使用すべきではない。
+\fBfdopendir\fP()  関数は \fBopendir\fP()  と同様だが、オープン済みのファイルディスクリプタ \fIfd\fP
+により参照されるディレクトリに対する ディレクトリストリームを返す。 \fBfdopendir\fP()  の呼び出しが成功した後は、 \fIfd\fP
+は実装の内部で使用される。アプリケーションは \fIfd\fP を他の場面で使用すべきではない。
 .SH 返り値
-関数
-.BR opendir ()
-と
-.BR fdopendir ()
-はディレクトリストリームへのポインタを返す。
-エラーの場合は、NULL が返されて、
-.I errno
-が適切に設定される。
+関数 \fBopendir\fP()  と \fBfdopendir\fP()  はディレクトリストリームへのポインタを返す。 エラーの場合は、NULL
+が返されて、 \fIerrno\fP が適切に設定される。
 .SH エラー
-.TP
-.B EACCES
+.TP 
+\fBEACCES\fP
 アクセス権限がない。
-.TP
-.B EBADF
-.I fd
-が読み出し用にオープンされた、有効なファイルディスクリプタではない。
-.TP
-.B EMFILE
+.TP 
+\fBEBADF\fP
+\fIfd\fP が読み出し用にオープンされた、有効なファイルディスクリプタではない。
+.TP 
+\fBEMFILE\fP
 プロセスが使用中のファイルディスクリプタが多すぎる。
-.TP
-.B ENFILE
+.TP 
+\fBENFILE\fP
 システムでオープンされているファイルが多すぎる。
-.TP
-.B ENOENT
+.TP 
+\fBENOENT\fP
 ディレクトリが存在しないか、または \fIname\fP が空文字列である。
-.TP
-.B ENOMEM
-命令を実行するのに充分なメモリがない。
-.TP
-.B ENOTDIR
+.TP 
+\fBENOMEM\fP
+操作を完了するのに十分なメモリがない。
+.TP 
+\fBENOTDIR\fP
 \fIname\fP はディレクトリではない。
 .SH バージョン
-.BR fdopendir ()
-は glibc 2.4 以降で利用可能である。
+\fBfdopendir\fP()  は glibc 2.4 以降で利用可能である。
 .SH 準拠
-.BR opendir ()
-は SVr4 と 4.3BSD に存在し、
-POSIX.1-2001 で規定されている。
-.BR fdopendir ()
-は POSIX.1-2008 で規定されている。
+\fBopendir\fP()  は SVr4 と 4.3BSD に存在し、 POSIX.1\-2001 で規定されている。 \fBfdopendir\fP()  は
+POSIX.1\-2008 で規定されている。
 .SH 注意
-ディレクトリストリームに対応するファイルディスクリプタは
-.BR dirfd (3)
-を使用して得ることができる。
+ディレクトリストリームに対応するファイルディスクリプタは \fBdirfd\fP(3)  を使用して得ることができる。
 
-.BR opendir ()
-関数は、
-.I "DIR *"
-の背後にあるファイルディスクリプタの close-on-exec フラグを設定する。
-.BR fdopendir ()
-関数は、ファイルディスクリプタの close-on-exec フラグの設定を変更しない。
-.BR fdopendir ()
-の呼び出しが成功した際に、ファイルディスクリプタ
-.I fd
-の close-on-exec を設定するかどうかは、
-POSIX.1-200x では規定されていない。
+\fBopendir\fP()  関数は、 \fIDIR *\fP の背後にあるファイルディスクリプタの close\-on\-exec フラグを設定する。
+\fBfdopendir\fP()  関数は、ファイルディスクリプタの close\-on\-exec フラグの設定を変更しない。 \fBfdopendir\fP()
+の呼び出しが成功した際に、ファイルディスクリプタ \fIfd\fP の close\-on\-exec を設定するかどうかは、 POSIX.1\-200x
+では規定されていない。
 .SH 関連項目
-.BR open (2),
-.BR closedir (3),
-.BR dirfd (3),
-.BR readdir (3),
-.BR rewinddir (3),
-.BR scandir (3),
-.BR seekdir (3),
-.BR telldir (3)
+\fBopen\fP(2), \fBclosedir\fP(3), \fBdirfd\fP(3), \fBreaddir\fP(3), \fBrewinddir\fP(3),
+\fBscandir\fP(3), \fBseekdir\fP(3), \fBtelldir\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。