aboutsummaryrefslogtreecommitdiff
path: root/lib/libsys/getdirentries.2
Commit message (Collapse)AuthorAgeFilesLines
* getdirentries: Return ENOTDIR if not a directory.Dag-Erling Smørgrav2025-07-091-4/+6
| | | | | | | | | | | | | | | This is both more logical and more useful than EINVAL. While here, also check for VBAD and return EBADF in that case. This can happen if the underlying filesystem got forcibly unmounted after the directory was opened. Previously, this would also have returned EINVAL, which wasn't right but wasn't wrong either; however, ENOTDIR would not be appropriate. MFC after: never Sponsored by: Klara, Inc. Reviewed by: kevans, kib Differential Revision: https://reviews.freebsd.org/D51209
* libsys: relocate implementations and manpagesBrooks Davis2024-02-051-0/+209
Remove core system call implementations and documentation to lib/libsys and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>. Update paths to allow libc to find them in their new home. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908