Fix 'dir' argument name: should be 'dirp'.

The page formerly used both 'dir' and 'dirp'(!).
POSIX.1-2008 and glibc call this argument 'dirp' (consistent
with the fact that it is a *pointer* to a DIR structure).
This commit is contained in:
Michael Kerrisk 2008-09-23 04:25:35 +02:00
parent 67f0f50d07
commit 3e7a52936d
2 changed files with 9 additions and 2 deletions

View File

@ -30,3 +30,10 @@ Changes to individual pages
getpid.2
mtk, after a comment by John Reiser
Describe getpid()'s PID caching and its consequences.
dirfd.3
mtk
Fix 'dir' argument name: should be 'dirp'.
The page formerly used both 'dir' and 'dirp'(!).
POSIX.1-2008 and glibc call this argument 'dirp' (consistent
with the fact that it is a *pointer* to a DIR structure).

View File

@ -28,7 +28,7 @@ dirfd \- get directory stream file descriptor
.br
.B #include <dirent.h>
.sp
.BI "int dirfd(DIR *" dir );
.BI "int dirfd(DIR *" dirp );
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
@ -41,7 +41,7 @@ _BSD_SOURCE || _SVID_SOURCE
The function
.BR dirfd ()
returns the file descriptor associated with the directory stream
.IR dir .
.IR dirp .
.LP
This descriptor is the one used internally by the directory stream.
As a result, it is only useful for functions which do not depend on