Page MenuHomeFreeBSD

libc: Deprecate readdir_r()
ClosedPublic

Authored by des on Aug 1 2025, 4:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 7, 10:07 AM
Unknown Object (File)
Mon, Apr 6, 1:44 PM
Unknown Object (File)
Mon, Apr 6, 5:22 AM
Unknown Object (File)
Sun, Apr 5, 2:13 PM
Unknown Object (File)
Sat, Mar 14, 6:19 PM
Unknown Object (File)
Sat, Mar 14, 6:11 PM
Unknown Object (File)
Mar 8 2026, 6:17 AM
Unknown Object (File)
Feb 28 2026, 4:09 PM
Subscribers

Details

Summary

This function was never safe to use. We marked it deprecated in the
manual page in 2016, and it is marked obsolete in POSIX 2024. Add a
linker warning and annotate the prototype.

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable