Page MenuHomeFreeBSD

libc: Deprecate readdir_r()
ClosedPublic

Authored by des on Aug 1 2025, 4:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 2, 5:21 AM
Unknown Object (File)
Fri, Aug 28, 4:54 PM
Unknown Object (File)
Wed, Aug 26, 11:43 PM
Unknown Object (File)
Fri, Aug 21, 3:29 PM
Unknown Object (File)
Thu, Aug 20, 9:14 PM
Unknown Object (File)
Tue, Aug 18, 11:05 PM
Unknown Object (File)
Tue, Aug 18, 6:22 AM
Unknown Object (File)
Mon, Aug 17, 2:58 AM
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