Home
last modified time | relevance | path

Searched refs:errnum (Results 1 - 25 of 70) sorted by relevance

123

/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
H A Dstrerror.cc32 const char* StrErrorAdaptor(int errnum, char* buf, size_t buflen) { in StrErrorAdaptor() argument
34 int rc = strerror_s(buf, buflen, errnum); in StrErrorAdaptor()
41 auto ret = strerror_r(errnum, buf, buflen); in StrErrorAdaptor()
53 std::string StrErrorInternal(int errnum) { in StrErrorInternal() argument
55 const char* str = StrErrorAdaptor(errnum, buf, sizeof buf); in StrErrorInternal()
57 snprintf(buf, sizeof buf, "Unknown error %d", errnum); in StrErrorInternal()
77 std::string StrError(int errnum) { in StrError() argument
80 if (errnum >= 0 && errnum < static_cast<int>(table->size())) { in StrError()
81 return (*table)[errnum]; in StrError()
[all...]
/third_party/ltp/testcases/kernel/syscalls/statx/
H A Dstatx03.c44 int32_t errnum; member
47 .mask = 0, .errnum = EBADF},
50 .mask = 0, .errnum = EFAULT},
53 .mask = 0, .errnum = EINVAL},
56 .mask = -1, .errnum = EINVAL},
59 .mask = 0, .errnum = ENOENT},
62 .mask = 0, .errnum = ENOTDIR},
65 .mask = 0, .errnum = ENAMETOOLONG},
81 if (tc->errnum == TST_ERR) { in run_test()
87 "statx() should fail with %s", tst_strerrno(tc->errnum)); in run_test()
[all...]
/third_party/pulseaudio/src/pulsecore/
H A Dcore-error.c41 const char* pa_cstrerror(int errnum) { in pa_cstrerror() argument
46 if (errnum < 0) in pa_cstrerror()
47 errnum = -errnum; in pa_cstrerror()
53 original = strerror_r(errnum, errbuf, sizeof(errbuf)); in pa_cstrerror()
55 if (strerror_r(errnum, errbuf, sizeof(errbuf)) == 0) { in pa_cstrerror()
61 original = strerror(errnum); in pa_cstrerror()
66 pa_snprintf(errbuf, sizeof(errbuf), "Unknown error %d", errnum); in pa_cstrerror()
H A Dcore-error.h35 const char* pa_cstrerror(int errnum);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
H A DErrno.cpp37 std::string StrError(int errnum) { in StrError() argument
39 if (errnum == 0) in StrError()
52 str = strerror_r(errnum, buffer, MaxErrStrLen - 1); in StrError()
54 strerror_r(errnum, buffer, MaxErrStrLen - 1); in StrError()
58 strerror_s(buffer, MaxErrStrLen - 1, errnum); in StrError()
64 str = strerror(errnum); in StrError()
69 stream << "Error #" << errnum; in StrError() local
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DErrno.cpp36 std::string StrError(int errnum) { in StrError() argument
38 if (errnum == 0) in StrError()
51 str = strerror_r(errnum, buffer, MaxErrStrLen - 1); in StrError()
53 strerror_r(errnum, buffer, MaxErrStrLen - 1); in StrError()
57 strerror_s(buffer, MaxErrStrLen - 1, errnum); in StrError()
63 str = strerror(errnum); in StrError()
68 stream << "Error #" << errnum; in StrError() local
/third_party/alsa-lib/src/
H A Derror.c47 * \param errnum The error code number, which must be a system error code
51 const char *snd_strerror(int errnum) in snd_strerror() argument
53 if (errnum < 0) in snd_strerror()
54 errnum = -errnum; in snd_strerror()
55 if (errnum < SND_ERROR_BEGIN) in snd_strerror()
56 return (const char *) strerror(errnum); in snd_strerror()
57 errnum -= SND_ERROR_BEGIN; in snd_strerror()
58 if ((unsigned int) errnum >= sizeof(snd_error_codes) / sizeof(const char *)) in snd_strerror()
60 return snd_error_codes[errnum]; in snd_strerror()
[all...]
/third_party/elfutils/lib/
H A Derror.c40 void error(int status, int errnum, const char *format, ...) { in error() argument
49 if (errnum) in error()
51 errno = errnum; in error()
59 if (errnum) in error()
61 errno = errnum; in error()
H A Dsystem.h53 void error(int status, int errnum, const char *format, ...);
62 #define error_exit(errnum,...) do { \
63 error (EXIT_FAILURE,errnum,__VA_ARGS__); \
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/
H A DUnix.h57 /// string and the Unix error number given by \p errnum. If errnum is -1, the
64 std::string* ErrMsg, const std::string& prefix, int errnum = -1) { in MakeErrMsg()
67 if (errnum == -1) in MakeErrMsg()
68 errnum = errno; in MakeErrMsg()
69 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum); in MakeErrMsg()
73 // Include StrError(errnum) in a fatal error message.
75 int errnum) { in ReportErrnumFatal()
77 MakeErrMsg(&ErrMsg, Msg, errnum); in ReportErrnumFatal()
74 ReportErrnumFatal(const char *Msg, int errnum) ReportErrnumFatal() argument
/third_party/skia/third_party/externals/microhttpd/src/include/
H A Dplatform_interface.h108 #define MHD_strerror_(errnum) strerror((errnum))
110 #define MHD_strerror_(errnum) MHD_W32_strerror_((errnum))
113 /* MHD_set_socket_errno_ set errno to errnum (non-W32) / set socket last error to errnum (W32) */
115 #define MHD_set_socket_errno_(errnum) errno=(errnum)
117 #define MHD_set_socket_errno_(errnum) MHD_W32_set_last_winsock_error_((errnum))
[all...]
H A Dw32functions.h160 * Return pointer to string description of errnum error
163 * @param errnum the errno or value from MHD_W32_errno_from_winsock_()
166 const char* MHD_W32_strerror_(int errnum);
176 * @param errnum the errno value to set
178 void MHD_W32_set_last_winsock_error_(int errnum);
/third_party/ffmpeg/libavutil/
H A Derror.h88 * Put a description of the AVERROR code errnum in errbuf.
91 * error message indicating the errnum provided to errbuf.
93 * @param errnum error code to describe
96 * @return 0 on success, a negative value if a description for errnum
99 int av_strerror(int errnum, char *errbuf, size_t errbuf_size);
103 * corresponding to the AVERROR code errnum.
107 * @param errnum error code to describe
111 static inline char *av_make_error_string(char *errbuf, size_t errbuf_size, int errnum) in av_make_error_string() argument
113 av_strerror(errnum, errbuf, errbuf_size); in av_make_error_string()
121 #define av_err2str(errnum) \
[all...]
H A Derror.c108 int av_strerror(int errnum, char *errbuf, size_t errbuf_size) in av_strerror() argument
114 if (errnum == error_entries[i].num) { in av_strerror()
123 ret = AVERROR(strerror_r(AVUNERROR(errnum), errbuf, errbuf_size)); in av_strerror()
128 snprintf(errbuf, errbuf_size, "Error number %d occurred", errnum); in av_strerror()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/Unix/
H A DUnix.h57 /// string and the Unix error number given by \p errnum. If errnum is -1, the
64 std::string* ErrMsg, const std::string& prefix, int errnum = -1) { in MakeErrMsg()
67 if (errnum == -1) in MakeErrMsg()
68 errnum = errno; in MakeErrMsg()
69 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum); in MakeErrMsg()
/third_party/elfutils/libdwfl/
H A Dargp-std.c103 failure (Dwfl *dwfl, int errnum, const char *msg, struct argp_state *state) in failure() argument
107 if (errnum == -1) in failure()
111 argp_failure (state, EXIT_FAILURE, errnum, "%s", msg); in failure()
115 fail (Dwfl *dwfl, int errnum, const char *msg, struct argp_state *state) in fail() argument
117 failure (dwfl, errnum, msg, state); in fail()
118 return errnum == -1 ? EIO : errnum; in fail()
/third_party/nghttp2/src/
H A Dxsi_strerror.c38 char *xsi_strerror(int errnum, char *buf, size_t buflen) { in xsi_strerror() argument
41 rv = strerror_r(errnum, buf, buflen); in xsi_strerror()
H A Dxsi_strerror.h43 * Returns description of error denoted by |errnum|. The description
49 char *xsi_strerror(int errnum, char *buf, size_t buflen);
/third_party/zlib/contrib/iostream2/
H A Dzstream.h92 * given compressed file. errnum is set to zlib error number. If an
94 * errnum is set to Z_ERRNO and the application may consult errno
97 const char* error(int* errnum) { in error() argument
98 return ::gzerror(m_fp, errnum); in error()
225 * given compressed file. errnum is set to zlib error number. If an
227 * errnum is set to Z_ERRNO and the application may consult errno
230 const char* error(int* errnum) { in error() argument
231 return ::gzerror(m_fp, errnum); in error()
/third_party/node/deps/openssl/openssl/crypto/
H A Do_str.c297 int openssl_strerror_r(int errnum, char *buf, size_t buflen) in openssl_strerror_r() argument
300 return !strerror_s(buf, buflen, errnum); in openssl_strerror_r()
309 err = strerror_r(errnum, buf, buflen); in openssl_strerror_r()
329 return !strerror_r(errnum, buf, buflen); in openssl_strerror_r()
336 err = strerror(errnum); in openssl_strerror_r()
/third_party/openssl/crypto/
H A Do_str.c299 int openssl_strerror_r(int errnum, char *buf, size_t buflen) in openssl_strerror_r() argument
302 return !strerror_s(buf, buflen, errnum); in openssl_strerror_r()
311 err = strerror_r(errnum, buf, buflen); in openssl_strerror_r()
331 return !strerror_r(errnum, buf, buflen); in openssl_strerror_r()
338 err = strerror(errnum); in openssl_strerror_r()
/third_party/skia/third_party/externals/microhttpd/src/platform/
H A Dw32functions.c102 * Return pointer to string description of errnum error
105 * @param errnum the errno or value from MHD_W32_errno_from_winsock_()
108 const char* MHD_W32_strerror_(int errnum) in MHD_W32_strerror_() argument
110 switch(errnum) in MHD_W32_strerror_()
187 return strerror(errnum); in MHD_W32_strerror_()
396 * @param errnum the errno value to set
398 void MHD_W32_set_last_winsock_error_(int errnum) in MHD_W32_set_last_winsock_error_() argument
400 switch (errnum) in MHD_W32_set_last_winsock_error_()
/third_party/skia/third_party/externals/freetype/src/gzip/
H A Dzutil.h150 # define zstrerror(errnum) strerror(errnum)
152 # define zstrerror(errnum) ""
/third_party/ltp/testcases/kernel/io/direct_io/
H A Ddiotest4.c93 * running read or write with the expected error value (errnum).
96 runtest_f(int fd, char *buf, int offset, int count, int errnum, int testnum, in runtest_f() argument
103 if (errno != errnum) { in runtest_f()
111 if (ret >= 0 || errno != errnum) { in runtest_f()
118 if (errno != errnum) { in runtest_f()
126 if (ret >= 0 || errno != errnum) { in runtest_f()
/third_party/mksh/
H A Dshf.c1093 cstrerror(int errnum) in cstrerror() argument
1096 return (strerror(errnum)); in cstrerror()
1109 cstrerror(int errnum) in cstrerror() argument
1115 if (errnum > 0 && errnum < sys_nerr && sys_errlist[errnum]) in cstrerror()
1116 return (sys_errlist[errnum]); in cstrerror()
1119 switch (errnum) { in cstrerror()
1158 "Unknown error: %d", errnum); in cstrerror()

Completed in 12 milliseconds

123