/freebsd/lib/libc/iconv/ |
H A D | citrus_prop.c | 201 int ch, errnum; in _citrus_prop_read_character() local 209 errnum = _citrus_prop_read_character_common(ms, &ch); in _citrus_prop_read_character() 210 if (errnum != 0) in _citrus_prop_read_character() 211 return (errnum); in _citrus_prop_read_character() 250 int ch, errnum, quot; in _citrus_prop_read_str() local 296 errnum = _citrus_prop_read_character_common(ms, &ch); in _citrus_prop_read_str() 297 if (errnum != 0) { in _citrus_prop_read_str() 299 return (errnum); in _citrus_prop_read_str() 347 int ch, errnum; in _citrus_prop_parse_element() local 353 errnum = _citrus_prop_read_symbol(ms, name, sizeof(name)); in _citrus_prop_parse_element() [all …]
|
/freebsd/sbin/ipf/libipf/ |
H A D | interror.c | 525 find_error(int errnum) in find_error() argument 534 if (ie->iee_number == errnum) in find_error() 537 if (ie->iee_number > errnum) in find_error() 552 int errnum; in ipf_geterror() local 554 if ((*func)(fd, SIOCIPFINTERROR, &errnum) == 0) { in ipf_geterror() 556 ie = find_error(errnum); in ipf_geterror() 559 snprintf(text, sizeof(text), "unknown error %d", errnum); in ipf_geterror() 568 ipf_strerror(int errnum) in ipf_strerror() argument 574 ie = find_error(errnum); in ipf_strerror() 578 snprintf(text, sizeof(text), "unknown error %d", errnum); in ipf_strerror()
|
/freebsd/contrib/libpcap/ |
H A D | fmtutils.c | 267 pcapint_fmt_errmsg_for_errno(char *errbuf, size_t errbuflen, int errnum, in pcapint_fmt_errmsg_for_errno() argument 273 pcapint_vfmt_errmsg_for_errno(errbuf, errbuflen, errnum, fmt, ap); in pcapint_fmt_errmsg_for_errno() 278 pcapint_vfmt_errmsg_for_errno(char *errbuf, size_t errbuflen, int errnum, in pcapint_vfmt_errmsg_for_errno() argument 312 errno_t err = _wcserror_s(utf_16_errbuf, PCAP_ERRBUF_SIZE, errnum); in pcapint_vfmt_errmsg_for_errno() 318 snprintf(p, errbuflen_remaining, "Error %d", errnum); in pcapint_vfmt_errmsg_for_errno() 340 snprintf(p, errbuflen_remaining, "%s", pcap_strerror(errnum)); in pcapint_vfmt_errmsg_for_errno() 350 pcapint_fmt_errmsg_for_win32_err(char *errbuf, size_t errbuflen, DWORD errnum, in pcapint_fmt_errmsg_for_win32_err() argument 356 pcapint_vfmt_errmsg_for_win32_err(errbuf, errbuflen, errnum, fmt, ap); in pcapint_fmt_errmsg_for_win32_err() 361 pcapint_vfmt_errmsg_for_win32_err(char *errbuf, size_t errbuflen, DWORD errnum, in pcapint_vfmt_errmsg_for_win32_err() argument 407 NULL, errnum, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), in pcapint_vfmt_errmsg_for_win32_err() [all …]
|
/freebsd/lib/libc/string/ |
H A D | strerror.c | 80 __strerror_rl(int errnum, char *strerrbuf, size_t buflen, locale_t locale) in __strerror_rl() argument 90 if (errnum < 0 || errnum >= __hidden_sys_nerr) { in __strerror_rl() 91 errstr(errnum, in __strerror_rl() 102 catgets(catd, 1, errnum, __hidden_sys_errlist[errnum]), in __strerror_rl() 104 __hidden_sys_errlist[errnum], in __strerror_rl() 119 __ssp_real(strerror_r)(int errnum, char *strerrbuf, size_t buflen) in __ssp_real() 121 return (__strerror_rl(errnum, strerrbuf, buflen, __get_locale())); in __ssp_real()
|
/freebsd/contrib/diff/lib/ |
H A D | error.c | 68 extern void __error (int status, int errnum, const char *message, ...) 70 extern void __error_at_line (int status, int errnum, const char *file_name, 107 print_errno_message (int errnum) in print_errno_message() argument 114 s = __strerror_r (errnum, errbuf, sizeof errbuf); in print_errno_message() 116 if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0) in print_errno_message() 122 s = strerror (errnum); in print_errno_message() 142 error_tail (int status, int errnum, const char *message, va_list args) in error_tail() argument 176 if (errnum) in error_tail() 177 print_errno_message (errnum); in error_tail() 195 error (int status, int errnum, const char *message, ...) in error() argument [all …]
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/sendmail/libsm/ |
H A D | errstring.c | 50 sm_errstring(errnum) 51 int errnum; 56 switch (errnum) 272 if (errnum >= E_LDAPBASE - E_LDAP_SHIM) 273 return ldap_err2string(errnum - E_LDAPBASE); 276 ret = strerror(errnum); 281 (void) sm_snprintf(buf, sizeof buf, "Error %d", errnum);
|
/freebsd/contrib/llvm-project/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 | 62 int errnum; 66 if ((errnum = ::pthread_attr_init(&Attr)) != 0) { 67 ReportErrnumFatal("pthread_attr_init failed", errnum); 71 if ((errnum = ::pthread_attr_destroy(&Attr)) != 0) { 72 ReportErrnumFatal("pthread_attr_destroy failed", errnum); 78 if ((errnum = ::pthread_attr_setstacksize(&Attr, *StackSizeInBytes)) != 0) { 79 ReportErrnumFatal("pthread_attr_setstacksize failed", errnum); 85 if ((errnum = ::pthread_create(&Thread, &Attr, ThreadFunc, Arg)) != 0) 86 ReportErrnumFatal("pthread_create failed", errnum); 92 int errnum; [all …]
|
/freebsd/sys/contrib/openzfs/module/unicode/ |
H A D | u8_textprep.c | 336 u8_validate(const char *u8str, size_t n, char **list, int flag, int *errnum) in u8_validate() argument 373 *errnum = EILSEQ; in u8_validate() 379 *errnum = ERANGE; in u8_validate() 389 *errnum = EINVAL; in u8_validate() 409 *errnum = EILSEQ; in u8_validate() 414 *errnum = EILSEQ; in u8_validate() 434 *errnum = EBADF; in u8_validate() 572 size_t n2, boolean_t is_it_toupper, int *errnum) in do_case_compare() argument 593 *errnum = EILSEQ; in do_case_compare() 618 *errnum = EINVAL; in do_case_compare() [all …]
|
/freebsd/contrib/ntp/libntp/ |
H A D | bsd_strerror.c | 34 int errnum in strerror() argument 41 if ((unsigned int)errnum < sys_nerr) in strerror() 42 return sys_errlist[errnum]; in strerror() 43 snprintf(ebuf, sizeof(ebuf), "Unknown error: %d", errnum); in strerror()
|
/freebsd/contrib/sendmail/src/ |
H A D | err.c | 1136 sm_errstring(errnum) in sm_errstring() argument 1137 int errnum; in sm_errstring() 1158 switch (errnum) 1164 err = strerror(errnum); 1168 "Error %d", errnum); 1173 if (errnum >= 0 && errnum < sys_nerr) 1174 (void) sm_strlcpy(bp, sys_errlist[errnum], 1178 "Error %d", errnum); 1183 if (errnum == ETIMEDOUT) 1300 if (errnum >= E_LDAPBASE - E_LDAP_SHIM) [all …]
|
/freebsd/contrib/lib9p/pytest/ |
H A D | p9err.py | 104 def to_dotu(errnum): argument 123 return _native_to_dotu.get(errnum, _errno.EIO) # default to EIO 125 def to_dotl(errnum): argument 138 return _native_to_dotl.get(errnum, _lerrno.ENOTRECOVERABLE)
|
H A D | lerrno.py | 275 def strerror(errnum): argument 284 ret = _strerror.get(errnum) 287 return 'Unknown error {0}'.format(errnum)
|
/freebsd/usr.bin/top/ |
H A D | commands.c | 39 int errnum; /* value of errno (that is, the actual error) */ member 203 errs[errcnt++].errnum = (e); \ 243 if (errp->errnum != currerr) in err_string() 253 currerr = errp->errnum; in err_string() 334 if ((result = g1->errnum - g2->errnum) == 0) in err_compar() 365 errp->errnum == 0 ? "Not a number" : strerror(errp->errnum)); in show_errors()
|
/freebsd/lib/libc/rpc/ |
H A D | clnt_perror.c | 213 unsigned int errnum = stat; in clnt_sperrno() local 215 if (errnum < (sizeof(rpc_errlist)/sizeof(rpc_errlist[0]))) in clnt_sperrno() 217 return (char *)rpc_errlist[errnum]; in clnt_sperrno() 311 unsigned int errnum = stat; in auth_errmsg() local 313 if (errnum < (sizeof(auth_errlist)/sizeof(auth_errlist[0]))) in auth_errmsg() 315 return (char *)auth_errlist[errnum]; in auth_errmsg()
|
/freebsd/usr.bin/perror/ |
H A D | perror.c | 48 long errnum; in main() local 61 errnum = strtol(argv[1], &cp, 0); in main() 66 if ((errstr = strerror(errnum)) == NULL) in main()
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | util.h | 47 set_errno(int errnum) { in set_errno() argument 49 SetLastError(errnum); in set_errno() 51 errno = errnum; in set_errno()
|
/freebsd/bin/pax/ |
H A D | tty_subs.c | 159 syswarn(int set, int errnum, const char *fmt, ...) in syswarn() argument 181 if (errnum > 0) in syswarn() 182 (void)fprintf(stderr, " <%s>", strerror(errnum)); in syswarn()
|
/freebsd/contrib/lib9p/ |
H A D | request.c | 241 e29p(int errnum) in e29p() argument 249 if ((size_t)errnum < N(table) && table[errnum] != 0) in e29p() 250 return (table[errnum]); in e29p() 251 if (errnum <= ERANGE) in e29p() 252 return (errnum); in e29p() 260 e2linux(int errnum) in e2linux() argument 340 if (errnum < 0) in e2linux() 341 return (-errnum); in e2linux() 343 if ((size_t)errnum < N(table) && table[errnum] != 0) in e2linux() 344 return (table[errnum]); in e2linux() [all …]
|
/freebsd/contrib/libfido2/src/ |
H A D | log.c | 100 fido_log_error(int errnum, const char *fmt, ...) in fido_log_error() argument 107 if (strerror_r(errnum, errstr, sizeof(errstr)) != 0) in fido_log_error() 108 snprintf(errstr, sizeof(errstr), "error %d", errnum); in fido_log_error()
|
/freebsd/crypto/openssl/crypto/ |
H A D | o_str.c | 299 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()
|
/freebsd/lib/libiconv_modules/VIQR/ |
H A D | citrus_viqr.c | 439 int errnum; in _citrus_VIQR_encoding_module_init() local 453 errnum = mnemonic_append_child(ei->mroot, in _citrus_VIQR_encoding_module_init() 455 if (errnum != 0) { in _citrus_VIQR_encoding_module_init() 457 return (errnum); in _citrus_VIQR_encoding_module_init() 468 errnum = mnemonic_append_child(ei->mroot, in _citrus_VIQR_encoding_module_init() 470 if (errnum != 0) { in _citrus_VIQR_encoding_module_init() 472 return (errnum); in _citrus_VIQR_encoding_module_init()
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/ |
H A D | redundancy.kshlib | 172 typeset errnum _ 175 read -r errnum _ <<<"$l_scan" 177 return $errnum
|