summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-04-24 22:47:40 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-04-24 22:47:44 +0200
commit79f9a4c9fbaf3f749f95619ace6730e9ff529735 (patch)
treed05619e4bd27891410b29ff34b4b98ce62ad1eae
parentb57b85f22c220437b1ee8ebbec566a818f4fa324 (diff)
Update dir_readdir from [hurd]/hurd/fs.defs
-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.