mirror of https://github.com/mkerrisk/man-pages
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:
parent
67f0f50d07
commit
3e7a52936d
7
Changes
7
Changes
|
@ -30,3 +30,10 @@ Changes to individual pages
|
||||||
getpid.2
|
getpid.2
|
||||||
mtk, after a comment by John Reiser
|
mtk, after a comment by John Reiser
|
||||||
Describe getpid()'s PID caching and its consequences.
|
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).
|
||||||
|
|
|
@ -28,7 +28,7 @@ dirfd \- get directory stream file descriptor
|
||||||
.br
|
.br
|
||||||
.B #include <dirent.h>
|
.B #include <dirent.h>
|
||||||
.sp
|
.sp
|
||||||
.BI "int dirfd(DIR *" dir );
|
.BI "int dirfd(DIR *" dirp );
|
||||||
.sp
|
.sp
|
||||||
.in -4n
|
.in -4n
|
||||||
Feature Test Macro Requirements for glibc (see
|
Feature Test Macro Requirements for glibc (see
|
||||||
|
@ -41,7 +41,7 @@ _BSD_SOURCE || _SVID_SOURCE
|
||||||
The function
|
The function
|
||||||
.BR dirfd ()
|
.BR dirfd ()
|
||||||
returns the file descriptor associated with the directory stream
|
returns the file descriptor associated with the directory stream
|
||||||
.IR dir .
|
.IR dirp .
|
||||||
.LP
|
.LP
|
||||||
This descriptor is the one used internally by the directory stream.
|
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
|
As a result, it is only useful for functions which do not depend on
|
||||||
|
|
Loading…
Reference in New Issue