.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
+.\"
+.\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
+.\" all rights reserved.
+.\" Translated Sat Feb 22 20:15:56 JST 1997
+.\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
+.\" Updated Sun Oct 12 JST 2003 by Kentaro Shirakata <argrath@ub32.org>
+.\" Updated Wed Jul 30 JST 2008 by Kentaro Shirakata <argrath@ub32.org>
+.\" Updated 2009-02-12 by Kentaro Shirakata <argrath@ub32.org>
+.\" Updated 2012-04-30, Akihiro MOTOKI <amotoki@gmail.com>
+.\" Updated 2013-03-26, Akihiro MOTOKI <amotoki@gmail.com>
+.\"
.TH GETDENTS 2 2012\-08\-03 Linux "Linux Programmer's Manual"
.SH 名前
getdents \- ディレクトリ・エントリを取得する
.PP
.\" kernel 2.6.27
.\" The same sentence is in readdir.2
-現在のところ、 \fId_type\fP でファイルタイプを返す機能が完全にサポートされているのは、 いくつかのファイルシステムにおいてのみである
-(Btrfs, ext2, ext3, ext4 はサポートしている)。 どのアプリケーションも、 \fBDT_UNKNOWN\fP
-が返された際に適切に処理できなければならない。
+Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4)
+have full support for returning the file type in \fId_type\fP. All
+applications must properly handle a return of \fBDT_UNKNOWN\fP.
.SH 返り値
成功した場合は、読み込んだバイト数が返される。 ディレクトリの終わりならば 0 が返される。 エラーの場合は \-1 を返され、 \fIerrno\fP
に適切な値が設定される。
このシステムコールは \fBreaddir\fP(2) を置き換えるものである。
-元々の Linux の \fBgetdents\fP() システムコールは、大きなファイルシステムと
-大きなファイルオフセットを扱うことができなかった。
-その結果、Linux 2.4 で \fBgetdents64\fP() が追加された。
-\fBgetdents64\fP() では、\fIlinux_dirent\fP 構造体のフィールド \fId_ino\fP と
-\fId_off\fP でビット幅の大きなデータ型が使われている。
+The original Linux \fBgetdents\fP() system call did not handle large
+filesystems and large file offsets. Consequently, Linux 2.4 added
+\fBgetdents64\fP(), with wider types for the \fId_ino\fP and \fId_off\fP fields
+employed in the \fIlinux_dirent\fP structure.
.SH 例
.\" FIXME: This program uses the older getdents() system call
.\" and the structure with smaller field widths.
.SH 関連項目
\fBreaddir\fP(2), \fBreaddir\fP(3)
.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
である。プロジェクトの説明とバグ報告に関する情報は
http://www.kernel.org/doc/man\-pages/ に書かれている。