1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
4 .\" Portions extracted from /usr/include/dirent.h are:
5 .\" Copyright 1991, 1992 Free Software Foundation
7 .\" Permission is granted to make and distribute verbatim copies of this
8 .\" manual provided the copyright notice and this permission notice are
9 .\" preserved on all copies.
11 .\" Permission is granted to copy and distribute modified versions of this
12 .\" manual under the conditions for verbatim copying, provided that the
13 .\" entire resulting derived work is distributed under the terms of a
14 .\" permission notice identical to this one.
16 .\" Since the Linux kernel and libraries are constantly changing, this
17 .\" manual page may be incorrect or out-of-date. The author(s) assume no
18 .\" responsibility for errors or omissions, or for damages resulting from
19 .\" the use of the information contained herein. The author(s) may not
20 .\" have taken the same level of care in the production of this manual,
21 .\" which is licensed free of charge, as they might when working
24 .\" Formatted or processed versions of this manual, if unaccompanied by
25 .\" the source, must acknowledge the copyright and authors of this work.
27 .\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved.
28 .\" Translated Thu Apr 30 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
30 .TH GETDIRENTRIES 3 2007-07-26 "GNU" "Linux Programmer's Manual"
32 .\"O getdirentries \- get directory entries in a file system-independent format
34 getdirentries \- ディレクトリのエントリをファイルシステムに依存しない形式で取得する
39 .\"O Feature Test Macro Requirements for glibc (see
40 .\"O .BR feature_test_macros (7)):
42 .RB ( feature_test_macros (7)
47 _BSD_SOURCE || _SVID_SOURCE
48 .B #include <dirent.h>
50 .BI "ssize_t getdirentries(int " fd ", char *" buf ", size_t " nbytes
51 .BI ", off_t *" basep );
54 .\"O Read directory entries from the directory specified by
61 .\"O Reading starts at offset
65 .\"O is updated with the new position after reading.
67 で指定されたディレクトリからエントリを読み、
76 .\"O .SH "RETURN VALUE"
78 .\"O .BR getdirentries ()
79 .\"O returns the number of bytes read or zero when at the end of the directory.
80 .\"O If an error occurs, \-1 is returned, and
82 .\"O is set appropriately.
84 は読み込んだバイト数を返すか、ディレクトリの最後にきた場合は 0 を返す。
90 .\"O See the Linux library source code for details.
91 詳細は Linux のライブラリソースコードを読んでほしい。
92 .\"O .SH "CONFORMING TO"
94 .\"O Not in POSIX.1-2001.
95 .\"O Present on the BSDs, and a few other systems.
102 BSD に存在し、他にもいくつかのシステムにもある。