summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/telldir.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make DIR a private type within libc, give it the same underlyingmatthew2012-03-221-1/+15
| | | | | | typedef regardless of __BSD_VISIBLE, and eliminate the dirfd() macro. ok guenther@
* Change basep parameter of getdirentries() to be off_t *, not long *millert2010-10-281-2/+2
| | | | | | | | so it works correctly with large offsets (and matches other systems). This requires adding a new getdirentries syscall, with the old one renamed to ogetdirentries. All in-tree consumers of getdirentries() have been updated. Bump libc and libpthread major numbers. OK and with deraadt@
* fix typo in _telldir_unlocked function prototype, to avoid warning.chl2007-10-121-2/+3
| | | | | | while there, put all function prototypes in header file. ok kurt@
* telldir/seekdir optimization, avoid scanning the complete list,otto2006-04-101-1/+2
| | | | | while still returning the correct index for seekdir(); telldir() Tested by Fred Crowson and others; "put it in" deraadt@
* - Plug huge mem leak; mostly samba was suffering.otto2006-04-011-0/+62
- Fix semantics: seekdir(pos); telldir() shoud return pos. The code that implements this will be made faster in a later commit. - We loose documented behaviour (after closedir() the telldir() positions are not valid anymore). This was never in Posix, and most other systems have nothing like it. Diff originally from Paul Thorn, rewritten by me using some FreeBSD code. "slap it in" deraadt@