diff options
Diffstat (limited to 'man/man3/readdir.3')
-rw-r--r-- | man/man3/readdir.3 | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/man/man3/readdir.3 b/man/man3/readdir.3 index b9150160bc..ad9c765951 100644 --- a/man/man3/readdir.3 +++ b/man/man3/readdir.3 @@ -58,7 +58,27 @@ The fields of the structure are as follows: .TP .I .d_ino -This is the inode number of the file. +This is the inode number of the file, +which belongs to the filesystem +.I .st_dev +(see +.BR stat (3type)) +of the directory on which +.BR readdir () +was called. +If the directory entry is the mount point, +then +.I .d_ino +differs from +.IR .st_ino : +.I .d_ino +is the inode number of the underlying mount point, +while +.I .st_ino +is the inode number of the mounted file system. +According to POSIX, +this Linux behavior is considered to be a bug, +but is nevertheless conforming. .TP .I .d_off The value returned in |