.TH GETDIRENTRIES 3 2007-07-26 "GNU" "Linux Programmer's Manual"
.\"O .SH NAME
.\"O getdirentries \- get directory entries in a file system-independent format
-.SH ̾Á°
-getdirentries \- ¥Ç¥£¥ì¥¯¥È¥ê¤Î¥¨¥ó¥È¥ê¤ò¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë°Í¸¤·¤Ê¤¤·Á¼°¤Ç¼èÆÀ¤¹¤ë
+.SH 名前
+getdirentries \- ディレクトリのエントリをファイルシステムに依存しない形式で取得する
.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.SH 書式
.sp
.in -4n
.\"O Feature Test Macro Requirements for glibc (see
.\"O .BR feature_test_macros (7)):
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
+glibc 向けの機能検査マクロの要件
.RB ( feature_test_macros (7)
-»²¾È):
+参照):
.in
.sp
.BR getdirentries ():
.BI "ssize_t getdirentries(int " fd ", char *" buf ", size_t " nbytes
.BI ", off_t *" basep );
.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
+.SH 説明
.\"O Read directory entries from the directory specified by
.\"O .I fd
.\"O into
.\"O .I *basep
.\"O is updated with the new position after reading.
.I fd
-¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¥¨¥ó¥È¥ê¤òÆɤߡ¢
+で指定されたディレクトリからエントリを読み、
.I buf
-¤Ë³ÊǼ¤¹¤ë¡£ºÇÂç¤Ç
+に格納する。最大で
.I nbytes
-¤¬Æɤ߹þ¤Þ¤ì¤ë¡£Æɤ߹þ¤ß¤Ï¥ª¥Õ¥»¥Ã¥È
+が読み込まれる。読み込みはオフセット
.I *basep
-¤«¤é³«»Ï¤µ¤ì¡¢Æɤ߹þ¤ß½ªÎ»»þ¤Ë¤Ï
+から開始され、読み込み終了時には
.I *basep
-¤Ï¿·¤·¤¤°ÌÃ֤˹¹¿·¤µ¤ì¤ë¡£
+は新しい位置に更新される。
.\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
+.SH 返り値
.\"O .BR getdirentries ()
.\"O returns the number of bytes read or zero when at the end of the directory.
.\"O If an error occurs, \-1 is returned, and
.\"O .I errno
.\"O is set appropriately.
.BR getdirentries ()
-¤ÏÆɤ߹þ¤ó¤À¥Ð¥¤¥È¿ô¤òÊÖ¤¹¤«¡¢¥Ç¥£¥ì¥¯¥È¥ê¤ÎºÇ¸å¤Ë¤¤¿¾ì¹ç¤Ï 0 ¤òÊÖ¤¹¡£
-¥¨¥é¡¼¤¬µ¯¤³¤Ã¤¿¤é \-1 ¤òÊÖ¤·¡¢
+は読み込んだバイト数を返すか、ディレクトリの最後にきた場合は 0 を返す。
+エラーが起こったら \-1 を返し、
.I errno
-¤ò¥¨¥é¡¼¤ËÂбþ¤¹¤ëÃͤ˥»¥Ã¥È¤¹¤ë¡£
+をエラーに対応する値にセットする。
.\"O .SH ERRORS
-.SH ¥¨¥é¡¼
+.SH ã\82¨ã\83©ã\83¼
.\"O See the Linux library source code for details.
-¾ÜºÙ¤Ï Linux ¤Î¥é¥¤¥Ö¥é¥ê¥½¡¼¥¹¥³¡¼¥É¤òÆɤó¤Ç¤Û¤·¤¤¡£
+詳細は Linux のライブラリソースコードを読んでほしい。
.\"O .SH "CONFORMING TO"
-.SH ½àµò
+.SH 準拠
.\"O Not in POSIX.1-2001.
.\"O Present on the BSDs, and a few other systems.
.\"O Use
.\"O and
.\"O .BR readdir (3)
.\"O instead.
-POSIX.1-2001 ¤Ë¤Ï¤Ê¤¤¡£
-BSD ¤Ë¸ºß¤·¡¢Â¾¤Ë¤â¤¤¤¯¤Ä¤«¤Î¥·¥¹¥Æ¥à¤Ë¤â¤¢¤ë¡£
-Âå¤ï¤ê¤Ë
+POSIX.1-2001 にはない。
+BSD に存在し、他にもいくつかのシステムにもある。
+代わりに
.BR opendir (3)
-¤È
+と
.BR readdir (3)
-¤ò»ÈÍѤ¹¤ë¤³¤È¡£
+を使用すること。
.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
+.SH 関連項目
.BR lseek (2),
.BR open (2)