OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man2 / getdents.2
index 498d95d..a824eab 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (C) 1995 Andries Brouwer (aeb@cwi.nl)
 .\"
+.\" %%%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
 .\"
 .\" Written 11 June 1995 by Andries Brouwer <aeb@cwi.nl>
 .\" Modified 22 July 1995 by Michael Chastain <mec@duracef.shout.net>:
 .\"   Derived from 'readdir.2'.
 .\" Modified Tue Oct 22 08:11:14 EDT 1996 by Eric S. Raymond <esr@thyrsus.com>
+.\"
 .\"*******************************************************************
 .\"
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH GETDENTS 2 2010\-11\-21 Linux "Linux Programmer's Manual"
+.TH GETDENTS 2 2012\-08\-03 Linux "Linux Programmer's Manual"
 .SH 名前
 getdents \- ディレクトリ・エントリを取得する
 .SH 書式
@@ -37,6 +40,8 @@ getdents \- ディレクトリ・エントリを取得する
 \fBint getdents(unsigned int \fP\fIfd\fP\fB, struct linux_dirent *\fP\fIdirp\fP\fB,\fP
 \fB             unsigned int \fP\fIcount\fP\fB);\fP
 .fi
+
+\fINote\fP: There is no glibc wrapper for this system call; see NOTES.
 .SH 説明
 これはあなたの関心を引くような関数ではない。 POSIX 準拠の C ライブラリインターフェースについては \fBreaddir\fP(3)  を見ること。
 このページは、カーネルシステムコールの生のインターフェースについて 記載したものである。
@@ -129,8 +134,9 @@ UNIX ドメインソケットである。
 .\" SVr4 documents additional ENOLINK, EIO error conditions.
 SVr4.
 .SH 注意
-glibc はこのシステムコールに対するラッパー関数を提供していないので、 \fBsyscall\fP(2)  を使って呼び出すこと。
-\fIlinux_dirent\fP 構造体は自分で定義する必要がある。
+Glibc does not provide a wrapper for this system call; call it using
+\fBsyscall\fP(2).  You will need to define the \fIlinux_dirent\fP structure
+yourself.  However, you probably want to use \fBreaddir\fP(3)  instead.
 
 このシステムコールは \fBreaddir\fP(2)  を置き換えるものである。
 
@@ -218,7 +224,7 @@ main(int argc, char *argv[])
                              (d_type == DT_BLK) ?  "block dev" :
                              (d_type == DT_CHR) ?  "char dev" : "???");
             printf("%4d %10lld  %s\en", d\->d_reclen,
-                    (long long) d\->d_off, (char *) d\->d_name);
+                    (long long) d\->d_off, d\->d_name);
             bpos += d\->d_reclen;
         }
     }
@@ -229,6 +235,6 @@ main(int argc, char *argv[])
 .SH 関連項目
 \fBreaddir\fP(2), \fBreaddir\fP(3)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。