summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Semashev <andrey.semashev@gmail.com>2018-03-01 23:29:58 (GMT)
committerHyunjee Kim <hj0426.kim@samsung.com>2019-04-16 04:10:17 (GMT)
commitaa72804a385b69bf8f117bab4ec174f546655be9 (patch)
tree5a50f670d73e7bff88140729a5a26a90d1696401
parent399caee19df097d2071d6fad2073893fc557b3b6 (diff)
downloadboost-accepted/tizen_5.5_unified.zip
boost-accepted/tizen_5.5_unified.tar.gz
boost-accepted/tizen_5.5_unified.tar.bz2
readdir_r has been deprecated and has problems of its own[1]. glibc 2.24 marked readdir_r as deprecated and may eventually remove it. At the same time, plain readdir is thread-safe if different threads call it for different directory streams, which is fine in our case. [1]: http://man7.org/linux/man-pages/man3/readdir_r.3.html Change-Id: I15b3002d5ddc0ff1e94ade7ef3763ad07bfe2ebb Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
-rw-r--r--libs/filesystem/src/operations.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/filesystem/src/operations.cpp b/libs/filesystem/src/operations.cpp
index 4114e02..43453a4 100644
--- a/libs/filesystem/src/operations.cpp
+++ b/libs/filesystem/src/operations.cpp
@@ -2175,6 +2175,7 @@ namespace
&& defined(_POSIX_THREAD_SAFE_FUNCTIONS)\
&& defined(_SC_THREAD_SAFE_FUNCTIONS)\
&& (_POSIX_THREAD_SAFE_FUNCTIONS+0 >= 0)\
+ && !(defined(linux) || defined(__linux) || defined(__linux__))\
&& (!defined(__hpux) || defined(_REENTRANT)) \
&& (!defined(_AIX) || defined(__THREAD_SAFE))
if (::sysconf(_SC_THREAD_SAFE_FUNCTIONS)>= 0)