diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2025-09-11 17:12:22 +0200 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2025-09-11 17:12:22 +0200 |
| commit | d20c82507278e003f391c3fb04f4e49afd1537ab (patch) | |
| tree | 1632c2379458b67135fac002ae525217dad80f49 /include | |
| parent | 2d06844521ecd9e1298b53f13c18ffbfa97b1e28 (diff) | |
Revert "libc: Remove readdir_r(3)"
This reverts commit d549de769055ae6116601e54e4c86dfb3e17f4c4.
Diffstat (limited to 'include')
| -rw-r--r-- | include/dirent.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dirent.h b/include/dirent.h index 8df38a707856..7fcdceb10b23 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -115,6 +115,10 @@ 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 ***, |
