1 .\" Copyright (C) 1995 Andries Brouwer (aeb@cwi.nl)
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Written 11 June 1995 by Andries Brouwer <aeb@cwi.nl>
24 .\" Modified 22 July 1995 by Michael Chastain <mec@duracef.shout.net>:
25 .\" In 1.3.X, returns only one entry each time; return value is different.
26 .\" Modified 2004-12-01, mtk, fixed headers listed in SYNOPSIS
28 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
29 .\" all rights reserved.
30 .\" Translated Sun Feb 23 21:06:24 JST 1997
31 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
33 .\"WORD: directory ディレクトリ
36 .\"WORD: system call システム・コール
38 .\"WORD: inode number inode 番号
41 .TH READDIR 2 2008-10-02 "Linux" "Linux Programmer's Manual"
43 readdir \- ディレクトリ・エントリを読み込む
47 .BI "int readdir(unsigned int " fd ", struct old_linux_dirent *" dirp ","
48 .BI " unsigned int " count );
51 これはあなたの興味をもっている関数ではない。
52 POSIX 準拠の C ライブラリ・インターフェースについては
55 このページは裸のカーネルのシステムコール・インターフェースについて
78 struct old_linux_dirent {
79 long d_ino; /* inode number */
80 off_t d_off; /* offset to this \fIold_linux_dirent\fP */
81 unsigned short d_reclen; /* length of this \fId_name\fP */
82 char d_name[NAME_MAX+1]; /* filename (null-terminated) */
96 の大きさで、終端のヌルバイト (null byte) を含まない。
113 引き数のポインターが呼び出したプロセスがアクセス可能な空間の
123 ファイル・ディスクリプターがディレクトリを参照していない。
125 このシステム・コールは Linux 特有である。
127 glibc はこのシステムコールに対するラッパー関数を提供していない。