[PATCH] D41019: NetBSD ships with POSIX strerror_r(3)
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 8 16:36:24 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT320221: NetBSD ships with POSIX strerror_r(3) (authored by kamil).
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D41019
Files:
lib/sanitizer_common/sanitizer_common_interceptors.inc
Index: lib/sanitizer_common/sanitizer_common_interceptors.inc
===================================================================
--- lib/sanitizer_common/sanitizer_common_interceptors.inc
+++ lib/sanitizer_common/sanitizer_common_interceptors.inc
@@ -3413,7 +3413,7 @@
// * GNU version returns message pointer, which points to either buf or some
// static storage.
#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE) || \
- SANITIZER_MAC || SANITIZER_ANDROID
+ SANITIZER_MAC || SANITIZER_ANDROID || SANITIZER_NETBSD
// POSIX version. Spec is not clear on whether buf is NULL-terminated.
// At least on OSX, buf contents are valid even when the call fails.
INTERCEPTOR(int, strerror_r, int errnum, char *buf, SIZE_T buflen) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41019.126235.patch
Type: text/x-patch
Size: 765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171209/af6067ff/attachment.bin>
More information about the llvm-commits
mailing list