Home
last modified time | relevance | path

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

12

/openbmc/openbmc/poky/meta/recipes-core/musl/musl-legacy-error/
H A Derror.h14 static inline void error(int status, int errnum, const char* format, ...) in error() argument
25 if (errnum) in error()
26 fprintf(stderr, ": %s", strerror(errnum)); in error()
35 static inline void error_at_line(int status, int errnum, const char *filename, in error_at_line() argument
51 if (errnum) in error_at_line()
52 fprintf(stderr, ": %s", strerror(errnum)); in error_at_line()
/openbmc/linux/tools/perf/util/
H A Dtarget.c148 int target__strerror(struct target *target, int errnum, in target__strerror() argument
156 if (errnum >= 0) { in target__strerror()
157 str_error_r(errnum, buf, buflen); in target__strerror()
161 if (errnum < __TARGET_ERRNO__START || errnum >= __TARGET_ERRNO__END) in target__strerror()
164 idx = errnum - __TARGET_ERRNO__START; in target__strerror()
167 switch (errnum) { in target__strerror()
H A Dtarget.h58 int target__strerror(struct target *target, int errnum, char *buf, size_t buflen);
H A Ddso.c1499 int idx, errnum = dso->load_errno; in dso__strerror_load() local
1513 if (errnum >= 0) { in dso__strerror_load()
1514 const char *err = str_error_r(errnum, buf, buflen); in dso__strerror_load()
1522 if (errnum < __DSO_LOAD_ERRNO__START || errnum >= __DSO_LOAD_ERRNO__END) in dso__strerror_load()
1525 idx = errnum - __DSO_LOAD_ERRNO__START; in dso__strerror_load()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/
H A D0019-errno-util-Make-STRERROR-portable-for-musl.patch25 -#define STRERROR(errnum) strerror_r(abs(errnum), (char[ERRNO_BUF_LEN]){}, ERRNO_BUF_LEN)
27 +static inline const char * STRERROR(int errnum);
29 +static inline const char * STRERROR(int errnum) {
31 + return strerror_r(abs(errnum), (char[ERRNO_BUF_LEN]){}, ERRNO_BUF_LEN);
34 + return strerror_r(abs(errnum), buf, ERRNO_BUF_LEN) ? "unknown error" : buf;
38 * Note that we can't use ({ … }) to define a temporary variable, so errnum is
H A D0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch9 int strerror_r(int errnum, char *buf, size_t buflen);
12 char *strerror_r(int errnum, char *buf, size_t buflen);
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/
H A D0019-errno-util-Make-STRERROR-portable-for-musl.patch25 -#define STRERROR(errnum) strerror_r(abs(errnum), (char[ERRNO_BUF_LEN]){}, ERRNO_BUF_LEN)
27 +static inline const char * STRERROR(int errnum);
29 +static inline const char * STRERROR(int errnum) {
31 + return strerror_r(abs(errnum), (char[ERRNO_BUF_LEN]){}, ERRNO_BUF_LEN);
34 + return strerror_r(abs(errnum), buf, ERRNO_BUF_LEN) ? "unknown error" : buf;
38 * Note that we can't use ({ … }) to define a temporary variable, so errnum is
H A D0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch9 int strerror_r(int errnum, char *buf, size_t buflen);
12 char *strerror_r(int errnum, char *buf, size_t buflen);
/openbmc/u-boot/fs/reiserfs/
H A Dreiserfs.c34 static reiserfs_error_t errnum = ERR_NONE; variable
263 return errnum == 0; in journal_init()
416 errnum = ERR_FSYS_CORRUPT; in read_tree_node()
581 errnum = ERR_FSYS_CORRUPT; in search_stat()
605 while (! errnum) in reiserfs_read()
668 return errnum ? 0 : buf - prev_buf; in reiserfs_read()
724 errnum = ERR_SYMLINK_LOOP; in reiserfs_dir()
740 errnum = ERR_FILELENGTH; in reiserfs_dir()
754 if (! errnum) in reiserfs_dir()
755 errnum = ERR_FSYS_CORRUPT; in reiserfs_dir()
[all …]
/openbmc/linux/tools/lib/
H A Dstr_error_r.c21 char *str_error_r(int errnum, char *buf, size_t buflen) in str_error_r() argument
23 int err = strerror_r(errnum, buf, buflen); in str_error_r()
25 snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, [buf], %zd)=%d", errnum, buflen, err); in str_error_r()
/openbmc/qemu/tests/unit/
H A Dtest-seccomp.c31 int errnum, int (*doit)(void)) in test_seccomp_helper() argument
50 if (errnum != 0) { in test_seccomp_helper()
52 g_assert(errno == errnum); in test_seccomp_helper()
75 static void test_seccomp_errno(const char *args, int errnum, int (*doit)(void)) in test_seccomp_errno() argument
77 test_seccomp_helper(args, false, errnum, doit); in test_seccomp_errno()
/openbmc/u-boot/common/
H A Dkgdb.c380 volatile int errnum; in handle_exception() local
392 errnum = kgdb_setjmp(error_jmp_buf); in handle_exception()
394 if (errnum == 0) switch (remcomInBuffer[0]) { in handle_exception()
511 if (errnum != 0) in handle_exception()
512 sprintf(remcomOutBuffer, "E%02d", errnum); in handle_exception()
541 kgdb_error(int errnum) in kgdb_error() argument
544 kgdb_longjmp(error_jmp_buf, errnum); in kgdb_error()
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/vpnc/vpnc/
H A D0007-add-error-API-when-error.h-is-not-on-platform.patch37 +void error(int status, int errnum, const char* format, ...)
46 + if (errnum)
47 + fprintf(stderr, ":%d", errnum);
62 +void error(int status, int errnum, const char* format, ...);
/openbmc/linux/drivers/edac/
H A Di7300_edac.c354 u32 errnum, error_reg; in i7300_process_error_global() local
366 errnum = find_first_bit(&errors, in i7300_process_error_global()
368 specific = GET_ERR_FROM_TABLE(ferr_global_hi_name, errnum); in i7300_process_error_global()
369 is_fatal = ferr_global_hi_is_fatal(errnum); in i7300_process_error_global()
382 errnum = find_first_bit(&errors, in i7300_process_error_global()
384 specific = GET_ERR_FROM_TABLE(ferr_global_lo_name, errnum); in i7300_process_error_global()
385 is_fatal = ferr_global_lo_is_fatal(errnum); in i7300_process_error_global()
409 u32 errnum, value, error_reg; in i7300_process_fbd_error() local
425 errnum = find_first_bit(&errors, in i7300_process_fbd_error()
427 specific = GET_ERR_FROM_TABLE(ferr_fat_fbd_name, errnum); in i7300_process_fbd_error()
[all …]
H A Di5400_edac.c524 int errnum; in i5400_proccess_non_recoverable_info() local
557 errnum = find_first_bit(&allErrors, ARRAY_SIZE(error_name)); in i5400_proccess_non_recoverable_info()
562 bank, buf_id, ras, cas, allErrors, error_name[errnum]); in i5400_proccess_non_recoverable_info()
588 int errnum; in i5400_process_nonfatal_error_info() local
623 errnum = find_first_bit(&allErrors, ARRAY_SIZE(error_name)); in i5400_process_nonfatal_error_info()
634 allErrors, error_name[errnum]); in i5400_process_nonfatal_error_info()
645 errnum = find_first_bit(&allErrors, ARRAY_SIZE(error_name)); in i5400_process_nonfatal_error_info()
651 branch >> 1, allErrors, error_name[errnum]); in i5400_process_nonfatal_error_info()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/gsoap/gsoap/
H A D0001-Provide-strtod_l-signature-on-non-glibc-linux-musl-s.patch38 soap->errnum = h_errno;
42 while ((r = gethostbyname_r(addr, hostent, tmpbuf, tmplen, &hostent, &soap->errnum)) < 0)
70 soap->errnum = h_errno;
74 while ((r = gethostbyname_r(addr, hostent, tmpbuf, tmplen, &hostent, &soap->errnum)) < 0)
/openbmc/bmcweb/src/
H A Dssl_key_handler.cpp66 bool isTrustChainError(int errnum) in isTrustChainError() argument
68 return (errnum == X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT) || in isTrustChainError()
69 (errnum == X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN) || in isTrustChainError()
70 (errnum == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY) || in isTrustChainError()
71 (errnum == X509_V_ERR_CERT_UNTRUSTED) || in isTrustChainError()
72 (errnum == X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE); in isTrustChainError()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/augeas/augeas/
H A D0001-src-internal-Use-__GLIBC__-to-check-for-GNU-extentio.patch25 const char *xstrerror(int errnum, char *buf, size_t len) {
30 return strerror_r(errnum, buf, len);
/openbmc/u-boot/tools/dtoc/
H A Dfdt.py26 def CheckErr(errnum, msg): argument
27 if errnum:
29 (errnum, libfdt.fdt_strerror(errnum), msg))
/openbmc/linux/tools/testing/selftests/powerpc/tm/
H A Dtm-unavailable.c37 #define err_at_line(status, errnum, format, ...) \ argument
38 error_at_line(status, errnum, __FILE__, __LINE__, format ##__VA_ARGS__)
/openbmc/linux/tools/include/linux/
H A Dstring.h31 char *str_error_r(int errnum, char *buf, size_t buflen);
/openbmc/bmcweb/include/
H A Dssl_key_handler.hpp26 bool isTrustChainError(int errnum);
/openbmc/qemu/include/hw/xen/interface/io/
H A Dxs_wire.h51 int errnum; member
/openbmc/linux/include/xen/interface/io/
H A Dxs_wire.h50 int errnum; member
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_helpers.h17 #define _FAIL(errnum, fmt...) \ argument
19 error_at_line(0, (errnum), __func__, __LINE__, fmt); \

12