Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144443702
D28664.id83881.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D28664.id83881.diff
View Options
diff --git a/lib/libc/sys/getdirentries.2.sav b/lib/libc/sys/getdirentries.2
--- a/lib/libc/sys/getdirentries.2.sav
+++ b/lib/libc/sys/getdirentries.2
@@ -28,7 +28,7 @@
.\" @(#)getdirentries.2 8.2 (Berkeley) 5/3/95
.\" $FreeBSD$
.\"
-.Dd March 30, 2020
+.Dd February 14, 2021
.Dt GETDIRENTRIES 2
.Os
.Sh NAME
@@ -91,7 +91,8 @@
.Fa d_off
field returns a cookie which can be used with
.Xr lseek 2
-to position the directory descriptor to the next entry.
+to position the directory descriptor to the next entry
+if it is non-zero.
The
.Fa d_reclen
entry is the length, in bytes, of the directory record.
@@ -148,14 +149,16 @@
.Pc ,
a value returned in the
.Fa d_off
-field,
+field if it is not zero,
or zero.
.Sh IMPLEMENTATION NOTES
The
.Fa d_off
-field is being used as a cookie to readdir for nfs servers.
-These cookies can be cached and allow to read directory entries at a specific
-offset on demand.
+field is currently set to 0 by the NFS client, since the
+directory offset cookies returned by an NFS server cannot
+be used by
+.Xr lseek 2
+at this time.
.Sh RETURN VALUES
If successful, the number of bytes actually transferred is returned.
Otherwise, -1 is returned and the global variable
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 11:34 AM (4 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28574277
Default Alt Text
D28664.id83881.diff (1 KB)
Attached To
Mode
D28664: fix getdirentries man page for NFS client returning d_off == 0
Attached
Detach File
Event Timeline
Log In to Comment