| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | Errno.cpp | 35 std::string StrError(int errnum) { in StrError() argument 37 if (errnum == 0) in StrError() 50 str = strerror_r(errnum, buffer, MaxErrStrLen - 1); in StrError() 52 strerror_r(errnum, buffer, MaxErrStrLen - 1); in StrError() 56 strerror_s(buffer, MaxErrStrLen - 1, errnum); in StrError() 62 str = strerror(errnum); in StrError() 67 stream << "Error #" << errnum; in StrError()
|
| /llvm-project-15.0.7/llvm/lib/Support/Unix/ |
| H A D | Unix.h | 60 std::string* ErrMsg, const std::string& prefix, int errnum = -1) { 63 if (errnum == -1) 64 errnum = errno; 65 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum); 70 [[noreturn]] static inline void ReportErrnumFatal(const char *Msg, int errnum) { in ReportErrnumFatal() argument 72 MakeErrMsg(&ErrMsg, Msg, errnum); in ReportErrnumFatal()
|
| H A D | Threading.inc | 56 int errnum; 60 if ((errnum = ::pthread_attr_init(&Attr)) != 0) { 61 ReportErrnumFatal("pthread_attr_init failed", errnum); 65 if ((errnum = ::pthread_attr_destroy(&Attr)) != 0) { 80 ReportErrnumFatal("pthread_create failed", errnum); 86 int errnum; 88 if ((errnum = ::pthread_detach(Thread)) != 0) { 89 ReportErrnumFatal("pthread_detach failed", errnum); 94 int errnum; 96 if ((errnum = ::pthread_join(Thread, nullptr)) != 0) { [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/profile/ |
| H A D | GCDAProfiling.c | 255 int errnum = errno; in map_file() local 257 strerror(errnum)); in map_file() 280 int errnum = errno; in unmap_file() 282 strerror(errnum)); in unmap_file() 324 int errnum = errno; in llvm_gcda_start_file() local 326 strerror(errnum)); in llvm_gcda_start_file()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/Inputs/not-null-terminated-result/ |
| H A D | not-null-terminated-result-c.h | 21 char *strerror(int errnum); 22 errno_t strerror_s(char *buffer, size_t bufferSize, int errnum);
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | Errno.h | 29 std::string StrError(int errnum);
|
| /llvm-project-15.0.7/clang/test/Analysis/cert/ |
| H A D | env34-c.c | 8 char *strerror(int errnum);
|
| /llvm-project-15.0.7/compiler-rt/lib/lsan/ |
| H A D | lsan_interceptors.cpp | 407 INTERCEPTOR(char *, strerror, int errnum) { in INTERCEPTOR() argument 409 return REAL(strerror)(errnum); in INTERCEPTOR()
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | cstring | 52 char* strerror(int errnum);
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/internal/ |
| H A D | gtest-port.h | 2049 inline const char* StrError(int errnum) { return strerror(errnum); }
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common_interceptors.inc | 3955 INTERCEPTOR(char *, strerror, int errnum) { 3957 COMMON_INTERCEPTOR_ENTER(ctx, strerror, errnum); 3959 char *res = REAL(strerror)(errnum); 3979 INTERCEPTOR(int, strerror_r, int errnum, char *buf, SIZE_T buflen) { 3981 COMMON_INTERCEPTOR_ENTER(ctx, strerror_r, errnum, buf, buflen); 3985 int res = REAL(strerror_r)(errnum, buf, buflen); 3994 INTERCEPTOR(char *, strerror_r, int errnum, char *buf, SIZE_T buflen) { 3996 COMMON_INTERCEPTOR_ENTER(ctx, strerror_r, errnum, buf, buflen); 4000 char *res = REAL(strerror_r)(errnum, buf, buflen); 4017 COMMON_INTERCEPTOR_ENTER(ctx, __xpg_strerror_r, errnum, buf, buflen); [all …]
|