/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | bsd_strerror.c | 34 int errnum 41 if ((unsigned int)errnum < sys_nerr) 42 return sys_errlist[errnum]; 43 snprintf(ebuf, sizeof(ebuf), "Unknown error: %d", errnum);
|
/freebsd-11-stable/contrib/amd/libamu/ |
H A D | strerror.c | 52 strerror(int errnum) argument 55 if (errnum < 0 || errnum >= (sizeof(sys_errlist) >> 2)) { 57 xsnprintf(errstr, sizeof(errstr), "Unknown error #%d", errnum);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/ |
H A D | Threading.inc | 61 int errnum; 65 if ((errnum = ::pthread_attr_init(&Attr)) != 0) { 66 ReportErrnumFatal("pthread_attr_init failed", errnum); 70 if ((errnum = ::pthread_attr_destroy(&Attr)) != 0) { 71 ReportErrnumFatal("pthread_attr_destroy failed", errnum); 77 if ((errnum = ::pthread_attr_setstacksize(&Attr, *StackSizeInBytes)) != 0) { 78 ReportErrnumFatal("pthread_attr_setstacksize failed", errnum); 84 if ((errnum = ::pthread_create(&Thread, &Attr, ThreadFunc, Arg)) != 0) 85 ReportErrnumFatal("pthread_create failed", errnum); 89 if ((errnum [all...] |
H A D | Unix.h | 57 /// 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) { 67 if (errnum == -1) 68 errnum = errno; 69 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum); 73 // Include StrError(errnum) in a fatal error message. 75 int errnum) { 77 MakeErrMsg(&ErrMsg, Msg, errnum); 74 ReportErrnumFatal(const char *Msg, int errnum) argument
|
/freebsd-11-stable/contrib/gcclibs/libiberty/ |
H A D | xstrerror.c | 7 @deftypefn Replacement char* xstrerror (int @var{errnum}) 54 xstrerror (int errnum) argument 65 We assume that `errnum' corresponds to the last value assigned to 67 errstr = (*vmslib_strerror) (errnum, vaxc$errno); 69 errstr = strerror (errnum); 72 /* If `errnum' is out of range, result might be NULL. We'll fix that. */ 75 sprintf (xstrerror_buf, ERRSTR_FMT, errnum);
|
/freebsd-11-stable/contrib/binutils/libiberty/ |
H A D | xstrerror.c | 7 @deftypefn Replacement char* xstrerror (int @var{errnum}) 54 xstrerror (int errnum) argument 65 We assume that `errnum' corresponds to the last value assigned to 67 errstr = (*vmslib_strerror) (errnum, vaxc$errno); 69 errstr = strerror (errnum); 72 /* If `errnum' is out of range, result might be NULL. We'll fix that. */ 75 sprintf (xstrerror_buf, ERRSTR_FMT, errnum);
|
/freebsd-11-stable/contrib/ipfilter/lib/ |
H A D | interror.c | 523 find_error(errnum) 524 int errnum; 533 if (ie->iee_number == errnum) 536 if (ie->iee_number > errnum) 553 int errnum; local 555 if ((*func)(fd, SIOCIPFINTERROR, &errnum) == 0) { 557 ie = find_error(errnum); 560 sprintf(text, "unknown error %d", errnum); 569 ipf_strerror(errnum) 570 int errnum; [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | Errno.cpp | 36 std::string StrError(int errnum) { argument 38 if (errnum == 0) 51 str = strerror_r(errnum, buffer, MaxErrStrLen - 1); 53 strerror_r(errnum, buffer, MaxErrStrLen - 1); 57 strerror_s(buffer, MaxErrStrLen - 1, errnum); 63 str = strerror(errnum); 68 stream << "Error #" << errnum; local
|
/freebsd-11-stable/gnu/usr.bin/grep/ |
H A D | error.c | 109 private_strerror (errnum) 110 int errnum; 115 if (errnum > 0 && errnum <= sys_nerr) 116 return _(sys_errlist[errnum]); 132 error (int status, int errnum, const char *message, ...) argument 134 error (status, errnum, message, va_alist) 136 int errnum; 166 if (errnum) 171 fprintf (stderr, ": %s", __strerror_r (errnum, errbu 194 error_at_line(int status, int errnum, const char *file_name, unsigned int line_number, const char *message, ...) argument [all...] |
H A D | error.h | 49 extern void error (int status, int errnum, const char *format, ...) 52 extern void error_at_line (int status, int errnum, const char *fname,
|
/freebsd-11-stable/lib/libc/string/ |
H A D | strerror.c | 83 strerror_r(int errnum, char *strerrbuf, size_t buflen) argument 92 if (errnum < 0 || errnum >= __hidden_sys_nerr) { 93 errstr(errnum, 104 catgets(catd, 1, errnum, __hidden_sys_errlist[errnum]), 106 __hidden_sys_errlist[errnum],
|
/freebsd-11-stable/usr.bin/perror/ |
H A D | perror.c | 47 long errnum; local 55 errnum = strtol(argv[1], &cp, 0); 60 if ((errstr = strerror(errnum)) == NULL)
|
/freebsd-11-stable/contrib/libpcap/ |
H A D | fmtutils.c | 61 pcap_fmt_errmsg_for_errno(char *errbuf, size_t errbuflen, int errnum, argument 97 errno_t err = strerror_s(p, errbuflen_remaining, errnum); 103 pcap_snprintf(p, errbuflen_remaining, "Error %d", errnum); 115 char *errstring = strerror_r(errnum, strerror_buf, PCAP_ERRBUF_SIZE); 122 int err = strerror_r(errnum, p, errbuflen_remaining); 129 errnum); 136 "Message for error %d is too long", errnum); 143 pcap_snprintf(p, errbuflen_remaining, "%s", pcap_strerror(errnum)); 153 pcap_fmt_errmsg_for_win32_err(char *errbuf, size_t errbuflen, DWORD errnum, argument 201 NULL, errnum, MAKELANGI [all...] |
/freebsd-11-stable/contrib/sendmail/libsm/ |
H A D | errstring.c | 41 ** errnum -- the error number to translate 44 ** A string description of errnum. 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-11-stable/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) argument 114 s = __strerror_r (errnum, errbuf, sizeof errbuf); 116 if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0) 122 s = strerror (errnum); 142 error_tail (int status, int errnum, const char *message, va_list args) argument 176 if (errnum) 177 print_errno_message (errnum); 195 error (int status, int errnum, cons argument 239 error_at_line(int status, int errnum, const char *file_name, unsigned int line_number, const char *message, ...) argument [all...] |
/freebsd-11-stable/contrib/apr-util/dbd/ |
H A D | apr_dbd_pgsql.c | 40 int errnum; member in struct:apr_dbd_transaction_t 88 if ( sql->trans && sql->trans->errnum ) { 89 return sql->trans->errnum; 98 sql->trans->errnum = ret; 102 return sql->trans->errnum = PGRES_FATAL_ERROR; 124 sql->trans->errnum = ret; 128 return sql->trans->errnum = PGRES_FATAL_ERROR; 131 sql->trans->errnum = ret; 142 sql->trans->errnum = ret; 146 return sql->trans->errnum [all...] |
H A D | apr_dbd_sqlite3.c | 37 int errnum; member in struct:apr_dbd_transaction_t 186 if (sql->trans && sql->trans->errnum) { 187 return sql->trans->errnum; 201 sql->trans->errnum = ret; 367 if (sql->trans && sql->trans->errnum) { 368 return sql->trans->errnum; 391 sql->trans->errnum = ret; 487 if (sql->trans && sql->trans->errnum) { 488 return sql->trans->errnum; 505 sql->trans->errnum [all...] |
/freebsd-11-stable/contrib/top/ |
H A D | utils.c | 328 * errmsg(errnum) - return an error message string appropriate to the 329 * error number "errnum". This is a substitute for the System V 349 char *errmsg(errnum) 351 int errnum; 355 char *msg = strerror(errnum); 361 if (errnum > 0 && errnum < sys_nerr) 363 return((char *)sys_errlist[errnum]);
|
H A D | commands.c | 184 int errnum; /* value of errno (that is, the actual error) */ member in struct:errs 203 errs[errcnt++].errnum = (e); \ 243 if (errp->errnum != currerr) 253 currerr = errp->errnum; 344 if ((result = p1->errnum - p2->errnum) == 0) 377 errp->errnum == 0 ? "Not a number" : errmsg(errp->errnum));
|
/freebsd-11-stable/bin/pax/ |
H A D | tty_subs.c | 165 syswarn(int set, int errnum, const char *fmt, ...) argument 187 if (errnum > 0) 188 (void)fprintf(stderr, " <%s>", strerror(errnum));
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Errno.h | 29 /// Like the no-argument version above, but uses \p errnum instead of errno. 30 std::string StrError(int errnum);
|
/freebsd-11-stable/sys/cddl/contrib/opensolaris/common/unicode/ |
H A D | u8_textprep.c | 335 u8_validate(char *u8str, size_t n, char **list, int flag, int *errnum) argument 372 *errnum = EILSEQ; 378 *errnum = ERANGE; 388 *errnum = EINVAL; 408 *errnum = EILSEQ; 413 *errnum = EILSEQ; 433 *errnum = EBADF; 567 size_t n2, boolean_t is_it_toupper, int *errnum) 588 *errnum = EILSEQ; 613 *errnum 566 do_case_compare(size_t uv, uchar_t *s1, uchar_t *s2, size_t n1, size_t n2, boolean_t is_it_toupper, int *errnum) argument 1378 collect_a_seq(size_t uv, uchar_t *u8s, uchar_t **source, uchar_t *slast, boolean_t is_it_toupper, boolean_t is_it_tolower, boolean_t canonical_decomposition, boolean_t compatibility_decomposition, boolean_t canonical_composition, int *errnum, u8_normalization_states_t *state) argument 1726 do_norm_compare(size_t uv, uchar_t *s1, uchar_t *s2, size_t n1, size_t n2, int flag, int *errnum) argument 1842 u8_strcmp(const char *s1, const char *s2, size_t n, int flag, size_t uv, int *errnum) argument 1912 u8_textprep_str(char *inarray, size_t *inlen, char *outarray, size_t *outlen, int flag, size_t unicode_version, int *errnum) argument [all...] |
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | err.c | 1076 ** errnum -- the error number to translate 1079 ** A string description of errnum. 1083 sm_errstring(errnum) 1084 int errnum; 1105 switch (errnum) 1111 err = strerror(errnum); 1115 "Error %d", errnum); 1120 if (errnum >= 0 && errnum < sys_nerr) 1121 (void) sm_strlcpy(bp, sys_errlist[errnum], [all...] |
/freebsd-11-stable/contrib/nvi/ex/ |
H A D | tag.h | 45 int errnum; /* Errno. */ member in struct:_tagf
|
/freebsd-11-stable/lib/libc/rpc/ |
H A D | clnt_perror.c | 218 unsigned int errnum = stat; local 220 if (errnum < (sizeof(rpc_errlist)/sizeof(rpc_errlist[0]))) 222 return (char *)rpc_errlist[errnum]; 316 unsigned int errnum = stat; local 318 if (errnum < (sizeof(auth_errlist)/sizeof(auth_errlist[0]))) 320 return (char *)auth_errlist[errnum];
|