diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2025-09-10 18:52:50 +0200 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2025-09-10 18:58:06 +0200 |
| commit | d549de769055ae6116601e54e4c86dfb3e17f4c4 (patch) | |
| tree | 3108ea1496e39f4a44725d1a157c104d72421846 /include | |
| parent | c1532f74e4684f4b4227e873bae05b16ccc0a17c (diff) | |
libc: Remove readdir_r(3)
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. We
previously added a linker warning and annotated the prototype; now that
stable/15 has been branched, we can remove it from main.
Relnotes: yes
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D52474
Diffstat (limited to 'include')
| -rw-r--r-- | include/dirent.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/dirent.h b/include/dirent.h index 7fcdceb10b23..8df38a707856 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -115,10 +115,6 @@ DIR *opendir(const char *); DIR *fdopendir(int); struct dirent * readdir(DIR *); -#if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500 -int readdir_r(DIR *, struct dirent *, struct dirent **) - __deprecated1("Does not take variable {NAME_MAX} into account"); -#endif void rewinddir(DIR *); #if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 700 int scandir(const char *, struct dirent ***, |
