Page MenuHomeFreeBSD

libc: Deprecate readdir_r()
ClosedPublic

Authored by des on Aug 1 2025, 4:17 PM.
Tags
None
Referenced Files
F152374140: D51681.diff
Tue, Apr 14, 1:05 PM
Unknown Object (File)
Mon, Apr 13, 11:36 PM
Unknown Object (File)
Thu, Apr 9, 1:28 AM
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)
Mar 14 2026, 6:19 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