Home
last modified time | relevance | path

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

123

/openbsd/lib/libssl/
H A Dtls13_error.c27 error->errnum = 0; in tls13_error_clear()
35 tls13_error_vset(struct tls13_error *error, int code, int subcode, int errnum, in tls13_error_vset() argument
45 error->errnum = errnum; in tls13_error_vset()
54 if (errnum == -1) { in tls13_error_vset()
59 if (asprintf(&error->msg, "%s: %s", errmsg, strerror(errnum)) == -1) { in tls13_error_vset()
76 int errnum, rv; in tls13_error_set() local
78 errnum = errno; in tls13_error_set()
81 rv = tls13_error_vset(error, code, subcode, errnum, file, line, fmt, ap); in tls13_error_set()
/openbsd/gnu/llvm/llvm/lib/Support/
H A DErrno.cpp35 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()
67 stream << "Error #" << errnum; in StrError()
/openbsd/gnu/usr.bin/cvs/src/
H A Derror.c106 error (int status, int errnum, const char *message, ...) in error() argument
108 error (status, errnum, message, va_alist) in error()
110 int errnum;
203 if (errnum != 0)
206 cvs_outerr (strerror (errnum), 0);
223 fperrmsg (FILE *fp, int status, int errnum, char *message, ...) in fperrmsg() argument
225 fperrmsg (fp, status, errnum, message, va_alist) in fperrmsg()
228 int errnum;
249 if (errnum)
250 fprintf (fp, ": %s", strerror (errnum));
/openbsd/gnu/llvm/llvm/lib/Support/Unix/
H A DUnix.h60 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 DThreading.inc62 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) {
86 ReportErrnumFatal("pthread_create failed", errnum);
92 int errnum;
94 if ((errnum = ::pthread_detach(Thread)) != 0) {
95 ReportErrnumFatal("pthread_detach failed", errnum);
100 int errnum;
102 if ((errnum = ::pthread_join(Thread, nullptr)) != 0) {
[all …]
/openbsd/gnu/usr.bin/cvs/windows-NT/
H A Dsockerror.c124 sock_strerror (int errnum) in sock_strerror() argument
131 if (errnum >= sock_errlist[i].first && errnum <= sock_errlist[i].last) in sock_strerror()
132 return sock_errlist[i].strs[errnum - sock_errlist[i].first]; in sock_strerror()
134 sprintf(buf, "Unknown socket error: %d", errnum); in sock_strerror()
/openbsd/gnu/lib/libiberty/src/
H A Dxstrerror.c54 xstrerror (int errnum) in xstrerror() argument
67 errstr = (*vmslib_strerror) (errnum, vaxc$errno); in xstrerror()
69 errstr = strerror (errnum); in xstrerror()
75 snprintf (xstrerror_buf, sizeof xstrerror_buf, ERRSTR_FMT, errnum); in xstrerror()
/openbsd/lib/libc/rpc/
H A Dclnt_perror.c180 unsigned int errnum = stat; in clnt_sperrno() local
182 if (errnum < (sizeof(rpc_errlist)/sizeof(rpc_errlist[0]))) in clnt_sperrno()
183 return (char *)rpc_errlist[errnum]; in clnt_sperrno()
244 unsigned int errnum = stat; in auth_errmsg() local
246 if (errnum < (sizeof(auth_errlist)/sizeof(auth_errlist[0]))) in auth_errmsg()
247 return (char *)auth_errlist[errnum]; in auth_errmsg()
/openbsd/lib/libpcap/
H A Dpcap.c479 pcap_statustostr(int errnum) in pcap_statustostr() argument
483 switch (errnum) { in pcap_statustostr()
527 (void)snprintf(ebuf, sizeof ebuf, "Unknown error: %d", errnum); in pcap_statustostr()
535 pcap_strerror(int errnum) in pcap_strerror() argument
538 return (strerror(errnum)); in pcap_strerror()
544 if ((unsigned int)errnum < sys_nerr) in pcap_strerror()
545 return ((char *)sys_errlist[errnum]); in pcap_strerror()
546 (void)snprintf(ebuf, sizeof ebuf, "Unknown error: %d", errnum); in pcap_strerror()
/openbsd/gnu/usr.bin/gcc/gcc/f/
H A Dbad.h80 bool ffebad_is_fatal (ffebad errnum);
81 ffebadSeverity ffebad_severity (ffebad errnum);
82 bool ffebad_start_ (bool lex_override, ffebad errnum, ffebadSeverity sev,
H A Dbad.c141 ffebad_severity (ffebad errnum) in ffebad_severity() argument
143 return ffebad_messages_[errnum].severity; in ffebad_severity()
168 ffebad_start_ (bool lex_override, ffebad errnum, ffebadSeverity sev, in ffebad_start_() argument
179 if (errnum != FFEBAD) in ffebad_start_()
181 ffebad_severity_ = ffebad_messages_[errnum].severity; in ffebad_start_()
182 ffebad_message_ = gettext (ffebad_messages_[errnum].message); in ffebad_start_()
226 ffebad_errnum_ = errnum; in ffebad_start_()
H A Dsta.c1491 ffesta_ffebad_start (ffebad errnum) in ffesta_ffebad_start() argument
1495 ffebad_start (errnum); in ffesta_ffebad_start()
1676 if (ffesta_ffebad_start (errnum)) in ffesta_ffebad_1p()
1709 if (ffesta_ffebad_start (errnum)) in ffesta_ffebad_1sp()
1735 ffesta_ffebad_1st (ffebad errnum, const char *s, ffelexToken t) in ffesta_ffebad_1st() argument
1737 if (ffesta_ffebad_start (errnum)) in ffesta_ffebad_1st()
1754 ffesta_ffebad_1t (ffebad errnum, ffelexToken t) in ffesta_ffebad_1t() argument
1756 if (ffesta_ffebad_start (errnum)) in ffesta_ffebad_1t()
1766 if (ffesta_ffebad_start (errnum)) in ffesta_ffebad_2st()
1785 ffesta_ffebad_2t (ffebad errnum, ffelexToken t1, ffelexToken t2) in ffesta_ffebad_2t() argument
[all …]
H A Dst.c217 ffest_ffebad_start (ffebad errnum) in ffest_ffebad_start() argument
219 return ffesta_ffebad_start (errnum); in ffest_ffebad_start()
/openbsd/regress/lib/libcrypto/x509/
H A Dx509attribute.c43 unsigned long errnum; in fail_tail() local
45 if ((errnum = ERR_get_error())) in fail_tail()
47 ERR_error_string(errnum, NULL)); in fail_tail()
H A Dx509req_ext.c45 unsigned long errnum; in fail_tail() local
47 if ((errnum = ERR_get_error())) in fail_tail()
49 ERR_error_string(errnum, NULL)); in fail_tail()
/openbsd/bin/pax/
H A Dtty_subs.c163 syswarn(int set, int errnum, const char *fmt, ...) in syswarn() argument
188 if (errnum > 0) in syswarn()
189 (void)fprintf(stderr, ": %s", strerror(errnum)); in syswarn()
/openbsd/lib/libc/net/
H A Dgai_strerror.c42 gai_strerror(int errnum) in gai_strerror() argument
44 switch (errnum) { in gai_strerror()
/openbsd/lib/libc/string/
H A Dstrerror_l.c24 strerror_l(int errnum, locale_t locale) in strerror_l() argument
31 strerror_r(errnum, p, sizeof(sel_buf)) ? in strerror_l()
H A Dstrerror_r.c86 strerror_r(int errnum, char *strerrbuf, size_t buflen) in strerror_r() argument
90 ret_errno = __num2string(errnum, 1, 1, strerrbuf, buflen, in strerror_r()
/openbsd/lib/libfido2/src/
H A Dlog.c99 fido_log_error(int errnum, const char *fmt, ...) in fido_log_error() argument
106 if (strerror_r(errnum, errstr, sizeof(errstr)) != 0) in fido_log_error()
107 snprintf(errstr, sizeof(errstr), "error %d", errnum); in fido_log_error()
/openbsd/gnu/usr.bin/perl/lib/
H A Dlocale_threads.t37 my \$errnum = 1;
43 \$errnum = (\$errnum + 1) % $error_count;
44 \$! = \$errnum;
/openbsd/gnu/llvm/compiler-rt/lib/profile/
H A DGCDAProfiling.c255 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()
/openbsd/usr.sbin/vmd/
H A Dloadfile_elf.c487 int errnum = 0; in mread() local
506 errstr = gzerror(fp, &errnum); in mread()
507 if (errnum == Z_ERRNO) in mread()
508 errnum = errno; in mread()
510 errnum, errstr); in mread()
533 errstr = gzerror(fp, &errnum); in mread()
534 if (errnum == Z_ERRNO) in mread()
535 errnum = errno; in mread()
537 errnum, errstr); in mread()
/openbsd/regress/sys/ffs/
H A Dfstest.c558 static char errnum[8]; in err2str() local
728 snprintf(errnum, sizeof(errnum), "%d", error); in err2str()
729 return (errnum); in err2str()
/openbsd/gnu/usr.bin/perl/
H A Dlocale.c555 const int errnum) in Perl_locale_panic() argument
569 file_name, line, msg, errnum); in Perl_locale_panic()
6712 errnum, in_locale))
6743 DEBUG_STRERROR_ENTER(errnum, 0); in Perl_my_strerror()
6792 DEBUG_STRERROR_ENTER(errnum, IN_LC(LC_MESSAGES)); in Perl_my_strerror()
6804 errstr = savepv(strerror_l(errnum, cur)); in Perl_my_strerror()
6829 DEBUG_STRERROR_ENTER(errnum, 0); in Perl_my_strerror()
6831 const char *errstr = savepv(Strerror(errnum)); in Perl_my_strerror()
6856 errstr = savepv(Strerror(errnum)); in Perl_my_strerror()
6867 errstr = savepv(Strerror(errnum)); in Perl_my_strerror()
[all …]

123