From 7584a3f96de88d5eefe5d6c634515278cbfbf052 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Sat, 20 Feb 2016 12:56:55 +0100 Subject: Deprecate readdir_r, readdir64_r [BZ #19056] --- dirent/dirent.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'dirent') diff --git a/dirent/dirent.h b/dirent/dirent.h index 9a4b6bf..e6c36b1 100644 --- a/dirent/dirent.h +++ b/dirent/dirent.h @@ -183,14 +183,15 @@ extern struct dirent64 *readdir64 (DIR *__dirp) __nonnull ((1)); extern int readdir_r (DIR *__restrict __dirp, struct dirent *__restrict __entry, struct dirent **__restrict __result) - __nonnull ((1, 2, 3)); + __nonnull ((1, 2, 3)) __attribute_deprecated__; # else # ifdef __REDIRECT extern int __REDIRECT (readdir_r, (DIR *__restrict __dirp, struct dirent *__restrict __entry, struct dirent **__restrict __result), - readdir64_r) __nonnull ((1, 2, 3)); + readdir64_r) + __nonnull ((1, 2, 3)) __attribute_deprecated__; # else # define readdir_r readdir64_r # endif @@ -200,7 +201,7 @@ extern int __REDIRECT (readdir_r, extern int readdir64_r (DIR *__restrict __dirp, struct dirent64 *__restrict __entry, struct dirent64 **__restrict __result) - __nonnull ((1, 2, 3)); + __nonnull ((1, 2, 3)) __attribute_deprecated__; # endif #endif /* POSIX or misc */ -- cgit v1.1