/netbsd-current/distrib/utils/libhack/ |
H A D | strerror.c | 44 unsigned int errnum; local 46 errnum = num; /* convert to unsigned */ 47 if (errnum < sys_nerr) 48 return((__aconst char *)sys_errlist[errnum]);
|
/netbsd-current/external/bsd/am-utils/dist/libamu/ |
H A D | strerror.c | 54 strerror(int errnum) argument 57 if (errnum < 0 || errnum >= (sizeof(sys_errlist) >> 2)) { 59 xsnprintf(errstr, sizeof(errstr), "Unknown error #%d", errnum);
|
/netbsd-current/external/bsd/ntp/dist/libntp/ |
H A D | bsd_strerror.c | 36 int errnum 43 if ((unsigned int)errnum < sys_nerr) 44 return sys_errlist[errnum]; 45 snprintf(ebuf, sizeof(ebuf), "Unknown error: %d", errnum);
|
/netbsd-current/external/gpl3/gdb.old/dist/gnulib/import/ |
H A D | openat-die.c | 34 openat_save_fail (int errnum) argument 37 error (exit_failure, errnum, 53 openat_restore_fail (int errnum) argument 56 error (exit_failure, errnum,
|
H A D | strerror_r.c | 44 int __xpg_strerror_r (int errnum, char *buf, size_t buflen); 143 strerror_r (int errnum, char *buf, size_t buflen) argument 158 char const *msg = strerror_override (errnum); 171 ret = __xpg_strerror_r (errnum, buf, buflen); 179 safe_copy (buf, buflen, strerror_r (errnum, buf, buflen)); 196 ret = strerror_r (errnum, stackbuf, sizeof stackbuf); 201 ret = strerror_r (errnum, buf, buflen); 204 ret = strerror_r (errnum, buf, buflen); 221 strerror_r (errnum, stackbuf, sizeof stackbuf); 241 if (strerror_r (errnum, stackbu [all...] |
/netbsd-current/external/gpl3/gdb/dist/gnulib/import/ |
H A D | openat-die.c | 34 openat_save_fail (int errnum) argument 37 error (exit_failure, errnum, 53 openat_restore_fail (int errnum) argument 56 error (exit_failure, errnum,
|
H A D | strerror_r.c | 40 _GL_EXTERN_C int __xpg_strerror_r (int errnum, char *buf, size_t buflen); 137 strerror_r (int errnum, char *buf, size_t buflen) argument 152 char const *msg = strerror_override (errnum); 168 ret = __xpg_strerror_r (errnum, buf, buflen); 178 char *errstring = strerror_r (errnum, buf, buflen); 196 ret = strerror_r (errnum, stackbuf, sizeof stackbuf); 201 ret = strerror_r (errnum, buf, buflen); 204 ret = strerror_r (errnum, buf, buflen); 221 strerror_r (errnum, stackbuf, sizeof stackbuf); 241 if (strerror_r (errnum, stackbu [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Support/Unix/ |
H A D | Threading.inc | 67 int errnum; 71 if ((errnum = ::pthread_attr_init(&Attr)) != 0) { 72 ReportErrnumFatal("pthread_attr_init failed", errnum); 76 if ((errnum = ::pthread_attr_destroy(&Attr)) != 0) { 77 ReportErrnumFatal("pthread_attr_destroy failed", errnum); 83 if ((errnum = ::pthread_attr_setstacksize(&Attr, *StackSizeInBytes)) != 0) { 84 ReportErrnumFatal("pthread_attr_setstacksize failed", errnum); 90 if ((errnum = ::pthread_create(&Thread, &Attr, ThreadFunc, Arg)) != 0) 91 ReportErrnumFatal("pthread_create failed", errnum); 95 if ((errnum [all...] |
H A D | Unix.h | 53 /// string and the Unix error number given by \p errnum. If errnum is -1, the 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); 69 // Include StrError(errnum) in a fatal error message. 71 int errnum) { 73 MakeErrMsg(&ErrMsg, Msg, errnum); 70 ReportErrnumFatal(const char *Msg, int errnum) argument
|
/netbsd-current/external/gpl3/gcc/dist/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);
|
/netbsd-current/external/gpl3/binutils/dist/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);
|
/netbsd-current/external/gpl3/gdb/dist/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);
|
/netbsd-current/external/gpl3/gdb.old/dist/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);
|
/netbsd-current/external/gpl3/binutils.old/dist/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);
|
/netbsd-current/external/gpl3/gcc.old/dist/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);
|
/netbsd-current/external/bsd/ipf/dist/lib/ |
H A D | interror.c | 526 find_error(errnum) 527 int errnum; 536 if (ie->iee_number == errnum) 539 if (ie->iee_number > errnum) 556 int errnum; local 558 if ((*func)(fd, SIOCIPFINTERROR, &errnum) == 0) { 560 ie = find_error(errnum); 563 sprintf(text, "unknown error %d", errnum); 572 ipf_strerror(errnum) 573 int errnum; [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gdbsupport/ |
H A D | safe-strerror.cc | 46 safe_strerror (int errnum) argument 50 char *res = select_strerror_r (strerror_r (errnum, buf, sizeof (buf)), buf); 54 xsnprintf (buf, sizeof buf, "(undocumented errno %d)", errnum);
|
/netbsd-current/external/gpl3/gdb/dist/gdbsupport/ |
H A D | safe-strerror.cc | 46 safe_strerror (int errnum) argument 50 char *res = select_strerror_r (strerror_r (errnum, buf, sizeof (buf)), buf); 54 xsnprintf (buf, sizeof buf, "(undocumented errno %d)", errnum);
|
/netbsd-current/external/apache2/llvm/dist/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
|
/netbsd-current/external/bsd/libbind/dist/bsd/ |
H A D | strerror.c | 63 u_int errnum; local 70 errnum = num; /*%< convert to unsigned */ 72 if (errnum < (u_int)sys_nerr) 73 return (sys_errlist[errnum]); 84 *t++ = "0123456789"[errnum % 10]; 85 } while (errnum /= 10);
|
/netbsd-current/external/gpl2/gettext/dist/gettext-tools/src/ |
H A D | po-error.c | 31 void (*po_error) (int status, int errnum, 35 void (*po_error_at_line) (int status, int errnum,
|
/netbsd-current/external/gpl2/grep/dist/lib/ |
H A D | error.c | 111 private_strerror (errnum) 112 int errnum; 117 if (errnum > 0 && errnum <= sys_nerr) 118 return _(sys_errlist[errnum]); 134 error (int status, int errnum, const char *message, ...) argument 136 error (status, errnum, message, va_alist) 138 int errnum; 168 if (errnum) 173 fprintf (stderr, ": %s", __strerror_r (errnum, errbu 196 error_at_line(int status, int errnum, const char *file_name, unsigned int line_number, const char *message, ...) argument [all...] |
/netbsd-current/external/gpl2/diffutils/dist/lib/ |
H A D | error.c | 84 extern void __error (int status, int errnum, const char *message, ...) 86 extern void __error_at_line (int status, int errnum, const char *file_name, 123 private_strerror (int errnum) argument 128 if (errnum > 0 && errnum <= sys_nerr) 129 return _(sys_errlist[errnum]); 138 print_errno_message (int errnum) argument 145 s = __strerror_r (errnum, errbuf, sizeof errbuf); 147 if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0) 153 s = strerror (errnum); 174 error_tail(int status, int errnum, const char *message, va_list args) argument 248 error(int status, int errnum, const char *message, ...) argument 311 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 | 51 extern void error (int status, int errnum, const char *format, ...) 54 extern void error_at_line (int status, int errnum, const char *fname,
|
/netbsd-current/external/gpl3/gcc.old/dist/libbacktrace/ |
H A D | ttest.c | 117 int errnum; local 123 errnum = pthread_create (&atid[i], NULL, test1_thread, NULL); 124 if (errnum != 0) 126 fprintf (stderr, "pthread_create %d: %s\n", i, strerror (errnum)); 134 errnum = pthread_join (atid[i], &ret); 135 if (errnum != 0) 137 fprintf (stderr, "pthread_join %d: %s\n", i, strerror (errnum));
|