.\" Copyright (C) 1995 Andries Brouwer (aeb@cwi.nl) .\" .\" 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. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .\" Written 11 June 1995 by Andries Brouwer .\" Modified 22 July 1995 by Michael Chastain : .\" In 1.3.X, returns only one entry each time; return value is different. .TH READDIR 2 "22 Juli 1995" "Linux 1.3.6" "Linux Programmeurs Handleiding" .SH NAAM readdir \- lees een directorie ingang .SH OVERZICHT .nf .B #include .B #include .B #include .sp .B _syscall3(int, readdir, uint, bi, struct dirent *, dirw, uint, tel); .sp .BI "int readdir(unsigned int " bi ", struct dirent *" dirw ", unsigned int " tel ); .fi .SH BESCHRIJVING Dit is niet de functie waar je in geïnteresseerd bent. Kijk naar .BR readdir (3) voor de met POSIX overeenstemmende C bibliotheek interfaces. Deze pagina beschrijft de kale kernel systeem aanroep interface, die kan veranderen en die wordt overstegen door .BR getdents (2). .PP .B readdir leest één .I dirent structuur van de directorie waarnaar gewezen wordt door .I bi naar het geheugen gebied waarnaar gewezen wordt door .IR dirw . De grootheid .I tel wordt genegeerd; hoogstends één dirent structuur wordt gelezen. .PP De .I dirent structuur is gedeclareerd als volgt: .PP .RS .nf struct dirent { long d_ino; /* {*inode} "inode" nummer */ off_t d_off; /* {*verschuif} verschuiving naar * * deze \fIdirent\fP */ unsigned short d_reclen; /* {*"record" lengte} lengte van * * dit \fId_name\fP */ char d_name [NAME_MAX+1]; /* {*naam} bestand naam (eindigend * * op nul) */ } .fi .RE .PP .I d_ino is een "inode" nummer. .I d_off is de afstand van het begin van de directorie naar deze .IR dirent " {dir ingang}." .I d_reclen {"record" length} is de maat van .IR d_name, de nul beeindiger niet meerekenend. .I d_name {naam} is een nul-beëindigde bestand naam. .PP .SH "TERUGGEEF WAARDE" Bij success wordt 1 teruggegeven. Bij einde van de dir wordt 0 teruggegeven. Bij falen wordt \-1 teruggegeven, en .I errno wordt naar behoren gezet. .SH "FOUTEN" .TP .B EBADF {slechte bi} ongeldige bestandindicator .IR bi . .TP .B EFAULT {fout} Argument wijst buiten de adres ruimte van het aanroepende proces. .TP .B EINVAL {ongeldig} Uitkomst buffer is te klein. .TP .B ENOENT {geen ingang} Niet zo'n dir. .TP .B ENOTDIR {geen dir} Bestandindicator wijst niet naar een dir. .SH "VOLDOET AAN" Deze systeem aanroep is Linux-eigen. .SH "ZIE OOK" .BR getdents "(2) {krijg dir ingangen}," .BR readdir "(3) {lees dir}" .\" Translated Fri Nov 17 10:56:59 CET 2000 Jos Boersema .\" .SH VERTALING Dit is een handleiding uit \fBmanpages-dev 1.29\fR. Alles wat tussen `\fB{\fR'..`\fB}\fR' staat is \fBaanvullende vertaling\fR, en hoort \fBniet\fR bij de originele handleiding. Email naar . .\"Vertaling Jos Boersema $Id: readdir.2,v 1.1 2003/04/28 18:43:35 bokkie Exp $