mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-19 16:23:29 +00:00
Tweak the comment here some more. In particular, the previous opening
sentence was a bit confusing. Noted by: kib
This commit is contained in:
parent
e42e1fcc64
commit
8b2e525f52
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282560
|
@ -125,13 +125,13 @@ _seekdir(dirp, loc)
|
|||
}
|
||||
|
||||
/*
|
||||
* A call to telldir after readdir returns the last entry in a block
|
||||
* returns a location that is after the end of the last entry in that
|
||||
* block. However, that location doesn't refer to a valid directory
|
||||
* entry. Instead, these locations should refer to the first entry in
|
||||
* the next block. That location is not known until the next block is
|
||||
* read, so readdir calls this function after fetching a new block to
|
||||
* fix any such telldir locations.
|
||||
* After readdir returns the last entry in a block, a call to telldir
|
||||
* returns a location that is after the end of that last entry.
|
||||
* However, that location doesn't refer to a valid directory entry.
|
||||
* Ideally, the call to telldir would return a location that refers to
|
||||
* the first entry in the next block. That location is not known
|
||||
* until the next block is read, so readdir calls this function after
|
||||
* fetching a new block to fix any such telldir locations.
|
||||
*/
|
||||
void
|
||||
_fixtelldir(DIR *dirp, long oldseek, long oldloc)
|
||||
|
|
Loading…
Reference in a new issue