summaryrefslogtreecommitdiff
path: root/hurd/interface/fs
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/interface/fs')
-rw-r--r--hurd/interface/fs/19.mdwn5
1 files changed, 4 insertions, 1 deletions
diff --git a/hurd/interface/fs/19.mdwn b/hurd/interface/fs/19.mdwn
index 86625d44..2a50d3e0 100644
--- a/hurd/interface/fs/19.mdwn
+++ b/hurd/interface/fs/19.mdwn
@@ -23,7 +23,10 @@ License|/fdl]]."]]"""]]
Read entries from the directory. Each entry is identified by an index number
starting at 0 and running through the file. This call fetches `nentries` (or
any convenient number if `nentries` is -1) entries starting at `entry`,
-returning an array of struct directs in `data`. The number of entries
+returning a series of struct dirent in `data`.
+Note that due to the variable-size `d_name` field, `d_reclen` has to be used to
+jump from one struct dirent to the other.
+The number of entries
successfully read is returned in `amount`. If `entry` is bigger than the index
of the last entry, then 0 is returned in `amount`. If `bufsize` is nonzero,
never return more than `bufsize` bytes of data regardless.