hanchenye-llvm-project/compiler-rt/lib/sanitizer_common
Peter Collingbourne 6f4be19b57 [nolibc] Change internal syscall API to remove reliance on libc's errno.
This change moves to a model where the error value of a system call is
potentially contained in the return value itself rather than being
implicit in errno.  The helper function internal_iserror can be used
to extract the error value from a return value.  On platforms other
than Linux/x86_64 this still uses errno, but other platforms are free
to port their error handling to this new model.

Differential Revision: http://llvm-reviews.chandlerc.com/D756

llvm-svn: 181436
2013-05-08 14:43:49 +00:00
..
scripts [sanitizer] Fix lint. 2013-04-22 13:28:26 +00:00
tests [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
CMakeLists.txt [sanitizer] Syscall hooks. 2013-04-11 14:37:04 +00:00
Makefile.mk
sanitizer_allocator.cc [Sanitizer] Kill the remainders of platform defines in favor of SANITIZER_ defines 2013-04-03 07:24:35 +00:00
sanitizer_allocator.h [sanitizer] Fix boundary condition in LargeMmapAllocator::GetBlockBegin. Patch by Sergey Matveev 2013-04-08 08:43:22 +00:00
sanitizer_atomic.h
sanitizer_atomic_clang.h [Sanitizer] Add basic test for atomic_compare_exchange implementation 2013-03-25 08:48:16 +00:00
sanitizer_atomic_msvc.h [Sanitizer] First effort to implement atomic_compare_exchange for 1-byte vars on Windows 2013-03-25 09:23:30 +00:00
sanitizer_common.cc [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_common.h [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_common_interceptors.inc asna/tsan/msan: fix wait() interceptors to allow NULL arguments 2013-04-29 09:04:24 +00:00
sanitizer_common_interceptors_scanf.inc [sanitizer] More accurate scanf parsing without GNU extensions. 2013-02-12 14:29:34 +00:00
sanitizer_common_syscalls.inc [sanitizer] Fix lint. 2013-04-22 13:28:26 +00:00
sanitizer_flags.cc [asan] Common flags in ASan. 2013-05-06 11:27:58 +00:00
sanitizer_flags.h [asan] Common flags in ASan. 2013-05-06 11:27:58 +00:00
sanitizer_internal_defs.h [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_lfstack.h [Sanitizer] update style checker script and fix namespace style warnings 2013-01-30 07:45:58 +00:00
sanitizer_libc.cc asan/tsan: fix compilation errors/bugs on Windows where long is 32-bit even in 64-bit mode 2013-02-04 08:07:45 +00:00
sanitizer_libc.h [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_linux.cc [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_linux.h [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_list.h asan/tsan: fix bug in list implementation 2013-01-11 10:15:13 +00:00
sanitizer_mac.cc [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_mutex.h [Sanitizer] Add default constructor for BlockingMutex 2013-03-14 13:30:56 +00:00
sanitizer_placement_new.h [sanitizer] Replace more platform checks with SANITIZER_ constants. 2013-03-19 14:33:38 +00:00
sanitizer_platform.h [sanitizer] Replace more platform checks with SANITIZER_ constants. 2013-03-19 14:33:38 +00:00
sanitizer_platform_interceptors.h tsan: disable getpwuid_r() and glob64() interceptors under tsan, because they cause interceptor recursion if user intercepts fopen() 2013-04-24 11:06:05 +00:00
sanitizer_platform_limits_posix.cc [sanitizer] Intercept inet_pton and inet_ntop. 2013-04-23 14:05:15 +00:00
sanitizer_platform_limits_posix.h [sanitizer] Intercept inet_pton and inet_ntop. 2013-04-23 14:05:15 +00:00
sanitizer_posix.cc [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_printf.cc asan: fix windows build 2013-04-30 13:30:29 +00:00
sanitizer_procmaps.h [Sanitizer] Kill the remainders of platform defines in favor of SANITIZER_ defines 2013-04-03 07:24:35 +00:00
sanitizer_quarantine.h [ASan] Switch Windows to allocator v2, also fixing some build errors 2013-02-08 12:02:00 +00:00
sanitizer_report_decorator.h [UBSan] Use common report decorator to print colorful diagnostics in UBSan, and be more consistent w/ Printf/RawWrite 2013-02-27 12:58:24 +00:00
sanitizer_stackdepot.cc [asan] asan_allocator2: by default use the StackDepot to store the stack traces instead of storing them in the redzones 2012-12-26 06:30:02 +00:00
sanitizer_stackdepot.h [sanitizer] Further split private and public sanitizer headers. 2013-01-30 13:12:08 +00:00
sanitizer_stacktrace.cc [sanitizer] while doing fast unwinding make sure that the frame pointer is aligned; fix lint 2013-04-04 06:52:40 +00:00
sanitizer_stacktrace.h [sanitizer] Move GetStackTrace from ASan to sanitizer_common. 2013-05-08 12:45:55 +00:00
sanitizer_stoptheworld.h [libsanitizer] Add register dumping support to SuspendedThreadsList. 2013-04-01 13:36:42 +00:00
sanitizer_stoptheworld_linux.cc [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_symbolizer.cc [Sanitizer] fix TSan tests: remove global ctor from sanitizer_common, run load_shared_lib test only in lit 2013-04-09 07:46:20 +00:00
sanitizer_symbolizer.h tsan: symbolizer "flush caches" functinality 2013-03-19 10:23:17 +00:00
sanitizer_symbolizer_itanium.cc [Sanitizer] Kill the remainders of platform defines in favor of SANITIZER_ defines 2013-04-03 07:24:35 +00:00
sanitizer_symbolizer_linux.cc [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_symbolizer_mac.cc [Sanitizer] Kill the remainders of platform defines in favor of SANITIZER_ defines 2013-04-03 07:24:35 +00:00
sanitizer_symbolizer_win.cc [sanitizer] More renamed macros. 2013-03-19 14:54:17 +00:00
sanitizer_syscall_generic.inc [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_syscall_linux_x86_64.inc [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_thread_registry.cc [Sanitizer] Compile sanitizer runtimes with -Wno-non-virtual-dtor. Virtual dtors may be a problem for us, as sanitizer runtime should not generally assume libstdc++ presence. 2013-03-25 10:31:49 +00:00
sanitizer_thread_registry.h [Sanitizer] Compile sanitizer runtimes with -Wno-non-virtual-dtor. Virtual dtors may be a problem for us, as sanitizer runtime should not generally assume libstdc++ presence. 2013-03-25 10:31:49 +00:00
sanitizer_win.cc [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00