Page MenuHomeFreeBSD

libc: Deprecate readdir_r()
ClosedPublic

Authored by des on Aug 1 2025, 4:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 12:48 PM
Unknown Object (File)
Fri, Oct 10, 12:47 PM
Unknown Object (File)
Fri, Oct 10, 12:47 PM
Unknown Object (File)
Fri, Oct 10, 5:57 AM
Unknown Object (File)
Wed, Oct 8, 12:54 AM
Unknown Object (File)
Mon, Oct 6, 2:18 PM
Unknown Object (File)
Fri, Oct 3, 12:37 PM
Unknown Object (File)
Thu, Sep 25, 7:44 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