/external/compiler-rt/test/asan/TestCases/Posix/ |
H A D | strerror_r_test.cc | 11 char *res = (char *)strerror_r(300, buf, sizeof(buf));
|
/external/valgrind/none/tests/ |
H A D | threadederrno.c | 1 /* Make sure we use the POSIX version of strerror_r() on Linux. */ 14 strerror_r(errno, errstr, sizeof(errstr)); 23 strerror_r(errno, errstr, sizeof(errstr)); 37 strerror_r(errno, errstr, sizeof(errstr));
|
/external/compiler-rt/test/msan/ |
H A D | strerror_r-non-gnu.c | 3 // strerror_r under a weird set of circumstances can be redirected to 14 int res = strerror_r(EINVAL, buf, sizeof(buf));
|
/external/llvm/lib/Support/ |
H A D | Errno.cpp | 48 // strerror_r is thread-safe. 50 // glibc defines its own incompatible version of strerror_r 52 str = strerror_r(errnum, buffer, MaxErrStrLen - 1); 54 strerror_r(errnum, buffer, MaxErrStrLen - 1);
|
/external/bison/lib/ |
H A D | perror.c | 41 ret = strerror_r (errno, stackbuf, sizeof stackbuf);
|
H A D | strerror_r.c | 0 /* strerror_r.c --- POSIX compatible system error routine 41 /* The system's strerror_r function is OK, except that its third argument 51 system strerror_r has the wrong return type, and cygwin 1.7.9 52 strerror_r clobbers strerror. */ 137 strerror_r (int errnum, char *buf, size_t buflen) function 138 #undef strerror_r macro 171 back to GNU strerror_r which always returns a thread-safe 173 safe_copy (buf, buflen, strerror_r (errnum, buf, buflen)); 183 /* On HP-UX 11.31, strerror_r always fails when buflen < 80; it 190 ret = strerror_r (errnu [all...] |
H A D | error.c | 107 char *strerror_r (); 109 int strerror_r (); 117 # if HAVE_STRERROR_R || defined strerror_r 118 # define __strerror_r strerror_r 119 # endif /* HAVE_STRERROR_R || defined strerror_r */
|
H A D | string.in.h | 963 # undef strerror_r macro 964 # define strerror_r rpl_strerror_r macro 966 _GL_FUNCDECL_RPL (strerror_r, int, (int errnum, char *buf, size_t buflen) 968 _GL_CXXALIAS_RPL (strerror_r, int, (int errnum, char *buf, size_t buflen)); 971 _GL_FUNCDECL_SYS (strerror_r, int, (int errnum, char *buf, size_t buflen) 974 _GL_CXXALIAS_SYS (strerror_r, int, (int errnum, char *buf, size_t buflen)); 977 _GL_CXXALIASWARN (strerror_r); variable 980 # undef strerror_r macro 982 _GL_WARN_ON_USE (strerror_r, "strerror_r i [all...] |
H A D | gnulib.mk | 2090 ## begin gnulib module strerror_r-posix 2093 EXTRA_DIST += strerror_r.c 2095 EXTRA_libbison_a_SOURCES += strerror_r.c 2097 ## end gnulib module strerror_r-posix
|
/external/conscrypt/src/openjdk/native/ |
H A D | JNIHelp.cpp | 133 // Note: glibc has a nonstandard strerror_r that returns char* rather than POSIX's int. 134 // char *strerror_r(int errnum, char *buf, size_t n); 135 return strerror_r(errnum, buf, buflen); 137 int rc = strerror_r(errnum, buf, buflen); 141 // type of strerror_r to accurately distinguish GNU from POSIX.)
|
/external/libchrome/base/posix/ |
H A D | safe_strerror.cc | 6 // Post-L versions of bionic define the GNU-specific strerror_r if _GNU_SOURCE 35 // glibc has two strerror_r functions: a historical GNU-specific one that 56 // Wrapper for strerror_r functions that implement the POSIX interface. POSIX 59 // it will only be used on Linux if the POSIX strerror_r implementation is 92 // Either the error from strerror_r was the same as the previous value, or 111 // appropriate overloaded function based on the function type of strerror_r. 114 wrap_posix_strerror_r(&strerror_r, err, buf, len);
|
/external/conscrypt/src/compat/native/ |
H A D | JNIHelp.cpp | 134 // Note: glibc has a nonstandard strerror_r that returns char* rather than POSIX's int. 135 // char *strerror_r(int errnum, char *buf, size_t n); 136 return strerror_r(errnum, buf, buflen); 138 int rc = strerror_r(errnum, buf, buflen); 142 // type of strerror_r to accurately distinguish GNU from POSIX.)
|
/external/elfutils/libdwfl/ |
H A D | dwfl_error.c | 157 return strerror_r (error & 0xffff, "bad", 0);
|
/external/bison/darwin-lib/ |
H A D | string.h | 1275 # undef strerror_r macro 1276 # define strerror_r rpl_strerror_r macro 1278 _GL_FUNCDECL_RPL (strerror_r, int, (int errnum, char *buf, size_t buflen) 1280 _GL_CXXALIAS_RPL (strerror_r, int, (int errnum, char *buf, size_t buflen)); 1283 _GL_FUNCDECL_SYS (strerror_r, int, (int errnum, char *buf, size_t buflen) 1286 _GL_CXXALIAS_SYS (strerror_r, int, (int errnum, char *buf, size_t buflen)); 1289 _GL_CXXALIASWARN (strerror_r); variable 1292 # undef strerror_r macro 1294 _GL_WARN_ON_USE (strerror_r, "strerror_r i [all...] |
/external/bison/linux-lib/ |
H A D | string.h | 1275 # undef strerror_r macro 1276 # define strerror_r rpl_strerror_r macro 1278 _GL_FUNCDECL_RPL (strerror_r, int, (int errnum, char *buf, size_t buflen) 1280 _GL_CXXALIAS_RPL (strerror_r, int, (int errnum, char *buf, size_t buflen)); 1283 _GL_FUNCDECL_SYS (strerror_r, int, (int errnum, char *buf, size_t buflen) 1286 _GL_CXXALIAS_SYS (strerror_r, int, (int errnum, char *buf, size_t buflen)); 1289 _GL_CXXALIASWARN (strerror_r); variable 1292 # undef strerror_r macro 1294 _GL_WARN_ON_USE (strerror_r, "strerror_r i [all...] |
/external/curl/CMake/ |
H A D | CurlTests.c | 514 strerror_r(EACCES, buffer, sizeof(buffer)); 528 strerror_r(EACCES, buffer, sizeof(buffer));
|
/external/curl/lib/ |
H A D | strerror.c | 32 # error "strerror_r MUST be either POSIX, glibc or vxworks-style" 662 * The POSIX-style strerror_r() may set errno to ERANGE if insufficient 666 if(0 != strerror_r(err, buf, max)) { 672 * The glibc-style strerror_r() only *might* use the buffer we pass to 678 char *msg = strerror_r(err, buffer, sizeof(buffer)); 686 * The vxworks-style strerror_r() does use the buffer we pass to the function. 691 if(OK == strerror_r(err, buffer))
|
/external/bison/ |
H A D | Android.mk | 85 lib/strerror_r.c \
|
H A D | configure | 3674 as_fn_append ac_func_list " strerror_r" 7396 # Code from module strerror_r-posix: 9902 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 9913 for ac_func in strerror_r 9915 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 9925 $as_echo_n "checking whether strerror_r returns char *... " >&6; } 9940 char x = *strerror_r (0, buf, sizeof buf); 9941 char *p = strerror_r (0, buf, sizeof buf); 9953 # strerror_r i [all...] |
/external/jemalloc/src/ |
H A D | util.c | 84 * glibc provides a non-standard strerror_r() when _GNU_SOURCE is defined, so 96 char *b = strerror_r(err, buf, buflen); 103 return (strerror_r(err, buf, buflen));
|
/external/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_interceptors.inc | 2896 INTERCEPTOR(char *, strerror_r, int errnum, char *buf, SIZE_T buflen) { 2898 COMMON_INTERCEPTOR_ENTER(ctx, strerror_r, errnum, buf, buflen); 2902 char *res = REAL(strerror_r)(errnum, buf, buflen); 2903 // There are 2 versions of strerror_r: 2921 #define INIT_STRERROR_R COMMON_INTERCEPT_FUNCTION(strerror_r);
|
/external/compiler-rt/lib/msan/tests/ |
H A D | msan_test.cc | 599 TEST(MemorySanitizer, strerror_r) { 602 char *res = (char*) (size_t) strerror_r(EINVAL, buf, sizeof(buf));
|
/external/mdnsresponder/mDNSShared/ |
H A D | dnsextd.c | 195 strerror_r(errno, errbuf, sizeof(errbuf));
|
/external/c-ares/ |
H A D | configure | 5274 #define strerror_r innocuous_strerror_r 5280 #undef strerror_r 5284 char strerror_r (); 5291 return strerror_r (); 5317 $EGREP "strerror_r" >/dev/null 2>&1; then : 5332 $EGREP "strerror_r" >/dev/null 2>&1; then :
|
/external/llvm/ |
H A D | configure | 14315 for ac_func in strerror strerror_r setenv
|