[compiler-rt] r211027 - Swap getdtablesize() for sysconf(_SC_OPEN_MAX).

Dan Albert danalbert at google.com
Mon Jun 16 07:51:11 PDT 2014


Author: danalbert
Date: Mon Jun 16 09:51:11 2014
New Revision: 211027

URL: http://llvm.org/viewvc/llvm-project?rev=211027&view=rev
Log:
Swap getdtablesize() for sysconf(_SC_OPEN_MAX).

Bionic is no removing this as it was removed from POSIX 2004.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc?rev=211027&r1=211026&r2=211027&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc Mon Jun 16 09:51:11 2014
@@ -255,7 +255,7 @@ class SymbolizerProcess : public Externa
       internal_close(outfd[1]);
       internal_close(infd[0]);
       internal_close(infd[1]);
-      for (int fd = getdtablesize(); fd > 2; fd--)
+      for (int fd = sysconf(_SC_OPEN_MAX); fd > 2; fd--)
         internal_close(fd);
       ExecuteWithDefaultArgs(path_);
       internal__exit(1);





More information about the llvm-commits mailing list