Home
last modified time | relevance | path

Searched refs:errnum (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Support/
H A DErrno.cpp35 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 DUnix.h60 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 DThreading.inc56 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 DGCDAProfiling.c255 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 Dnot-null-terminated-result-c.h21 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 DErrno.h29 std::string StrError(int errnum);
/llvm-project-15.0.7/clang/test/Analysis/cert/
H A Denv34-c.c8 char *strerror(int errnum);
/llvm-project-15.0.7/compiler-rt/lib/lsan/
H A Dlsan_interceptors.cpp407 INTERCEPTOR(char *, strerror, int errnum) { in INTERCEPTOR() argument
409 return REAL(strerror)(errnum); in INTERCEPTOR()
/llvm-project-15.0.7/libcxx/include/
H A Dcstring52 char* strerror(int errnum);
/llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-port.h2049 inline const char* StrError(int errnum) { return strerror(errnum); }
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc3955 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 …]