From 30d2e4a963db0b3fdb1aa2cf2e2942c7a62d6649 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 14 Apr 2020 17:22:29 -0300 Subject: linux: Add __readdir_unlocked And use it on readdir_r implementation. Checked on i686-linux-gnu. --- include/dirent.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/dirent.h b/include/dirent.h index fdf4c4a2f1..8325a19e5f 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -20,6 +20,7 @@ extern DIR *__opendirat (int dfd, const char *__name) attribute_hidden; extern DIR *__fdopendir (int __fd) attribute_hidden; extern int __closedir (DIR *__dirp) attribute_hidden; extern struct dirent *__readdir (DIR *__dirp) attribute_hidden; +extern struct dirent *__readdir_unlocked (DIR *__dirp) attribute_hidden; extern struct dirent64 *__readdir64 (DIR *__dirp); libc_hidden_proto (__readdir64) extern int __readdir_r (DIR *__dirp, struct dirent *__entry, -- cgit v1.2.3