HomeFreeBSD

libc: split scandir() into scandir_dirp() and proper scandir()

Description

libc: split scandir() into scandir_dirp() and proper scandir()

The new helper scandir_dirp() takes DIR *, i.e. a pre-opened directory,
instead of the directory name.

Reviewed by: emaste, imp, kevans, markj, Aymeric Wibo <obiwac@gmail.com>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D36301

Details

Provenance
kibAuthored on Aug 23 2022, 4:30 AM
Reviewer
emaste
Differential Revision
D36301: Add scandirat(3)
Parents
rGea448a0a43c5: Link scandir_b(3) to scandir(3)
Branches
Unknown
Tags
Unknown