mirror of https://github.com/mkerrisk/man-pages
readdir_r.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
3d113fbfd7
commit
aa80442a5d
|
@ -29,17 +29,17 @@ readdir_r \- read a directory
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <dirent.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int readdir_r(DIR *" dirp ", struct dirent *" entry \
|
||||
", struct dirent **" result );
|
||||
.fi
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.ad l
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR readdir_r ():
|
||||
.RS 4
|
||||
_POSIX_C_SOURCE
|
||||
|
@ -50,7 +50,7 @@ _POSIX_C_SOURCE
|
|||
This function is deprecated; use
|
||||
.BR readdir (3)
|
||||
instead.
|
||||
|
||||
.PP
|
||||
The
|
||||
.BR readdir_r ()
|
||||
function was invented as a reentrant version of
|
||||
|
@ -63,13 +63,13 @@ For details of the
|
|||
.IR dirent
|
||||
structure, see
|
||||
.BR readdir (3).
|
||||
|
||||
.PP
|
||||
A pointer to the returned buffer is placed in
|
||||
.IR *result ;
|
||||
if the end of the directory stream was encountered,
|
||||
then NULL is instead returned in
|
||||
.IR *result .
|
||||
|
||||
.PP
|
||||
It is recommended that applications use
|
||||
.BR readdir (3)
|
||||
instead of
|
||||
|
|
Loading…
Reference in New Issue