summary refs log tree commit diff
path: root/dirent/dirent.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-02-20 12:56:55 +0100
committerFlorian Weimer <fweimer@redhat.com>2016-02-20 12:56:55 +0100
commit7584a3f96de88d5eefe5d6c634515278cbfbf052 (patch)
tree7904460c019d1a398a7fa84d5a53e231bc2dc11e /dirent/dirent.h
parent8d9c92017d85f23ba6a2b3614b2f2bcf1820d6f0 (diff)
downloadglibc-7584a3f96de88d5eefe5d6c634515278cbfbf052.tar.gz
glibc-7584a3f96de88d5eefe5d6c634515278cbfbf052.tar.xz
glibc-7584a3f96de88d5eefe5d6c634515278cbfbf052.zip
Deprecate readdir_r, readdir64_r [BZ #19056]
Diffstat (limited to 'dirent/dirent.h')
-rw-r--r--dirent/dirent.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/dirent/dirent.h b/dirent/dirent.h
index 9a4b6bf579..e6c36b1f9e 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 */