Home
last modified time | relevance | path

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

12345678

/netbsd-src/external/gpl3/gdb/dist/gnulib/import/
H A Dstrerror_r.c40 _GL_EXTERN_C int __xpg_strerror_r (int errnum, char *buf, size_t buflen);
137 strerror_r (int errnum, char *buf, size_t buflen) in strerror_r() argument
152 char const *msg = strerror_override (errnum); in strerror_r()
168 ret = __xpg_strerror_r (errnum, buf, buflen); in strerror_r()
178 char *errstring = strerror_r (errnum, buf, buflen); in strerror_r()
196 ret = strerror_r (errnum, stackbuf, sizeof stackbuf); in strerror_r()
201 ret = strerror_r (errnum, buf, buflen); in strerror_r()
204 ret = strerror_r (errnum, buf, buflen); in strerror_r()
221 strerror_r (errnum, stackbuf, sizeof stackbuf); in strerror_r()
241 if (strerror_r (errnum, stackbuf, sizeof stackbuf) == ERANGE) in strerror_r()
[all …]
H A Derror.c75 extern void __error (int status, int errnum, const char *message, ...)
77 extern void __error_at_line (int status, int errnum, const char *file_name,
116 char *strerror_r (int errnum, char *buf, size_t buflen);
118 int strerror_r (int errnum, char *buf, size_t buflen);
175 print_errno_message (int errnum) in print_errno_message() argument
182 s = __strerror_r (errnum, errbuf, sizeof errbuf); in print_errno_message()
184 if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0) in print_errno_message()
190 s = strerror (errnum); in print_errno_message()
206 error_tail (int status, int errnum, const char *message, va_list args) in error_tail() argument
277 if (errnum) in error_tail()
[all …]
H A Dopenat-die.c34 openat_save_fail (int errnum) in openat_save_fail() argument
37 error (exit_failure, errnum, in openat_save_fail()
53 openat_restore_fail (int errnum) in openat_restore_fail() argument
56 error (exit_failure, errnum, in openat_restore_fail()
/netbsd-src/external/gpl2/diffutils/dist/lib/
H A Derror.c84 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) in private_strerror() argument
128 if (errnum > 0 && errnum <= sys_nerr) in private_strerror()
129 return _(sys_errlist[errnum]); in private_strerror()
138 print_errno_message (int errnum) in print_errno_message() argument
145 s = __strerror_r (errnum, errbuf, sizeof errbuf); in print_errno_message()
147 if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0) in print_errno_message()
153 s = strerror (errnum); in print_errno_message()
174 error_tail (int status, int errnum, const char *message, va_list args) in error_tail() argument
[all …]
/netbsd-src/external/gpl2/grep/dist/lib/
H A Derror.c111 private_strerror (errnum) in private_strerror() argument
112 int errnum; in private_strerror()
117 if (errnum > 0 && errnum <= sys_nerr)
118 return _(sys_errlist[errnum]);
134 error (int status, int errnum, const char *message, ...) in error() argument
136 error (status, errnum, message, va_alist) in error()
138 int errnum;
168 if (errnum)
173 fprintf (stderr, ": %s", __strerror_r (errnum, errbuf, sizeof errbuf));
177 __strerror_r (errnum, errbuf, sizeof errbuf);
[all …]
/netbsd-src/external/bsd/ipf/dist/lib/
H A Dinterror.c526 find_error(errnum) in find_error() argument
527 int errnum; in find_error()
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) in ipf_strerror() argument
573 int errnum; in ipf_strerror()
[all …]
/netbsd-src/lib/libc/citrus/
H A Dcitrus_prop.c199 int ch, errnum; in _citrus_prop_read_character() local
210 errnum = _citrus_prop_read_character_common(ms, &ch); in _citrus_prop_read_character()
211 if (errnum != 0) in _citrus_prop_read_character()
212 return errnum; in _citrus_prop_read_character()
253 int errnum, quot, ch; in _citrus_prop_read_str() local
301 errnum = _citrus_prop_read_character_common(ms, &ch); in _citrus_prop_read_str()
302 if (errnum != 0) in _citrus_prop_read_str()
303 return errnum; in _citrus_prop_read_str()
355 int ch, errnum; in _citrus_prop_parse_element() local
364 errnum = _citrus_prop_read_symbol(ms, name, sizeof(name)); in _citrus_prop_parse_element()
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
H A Derror.c70 extern void __error (int status, int errnum, const char *message, ...)
72 extern void __error_at_line (int status, int errnum, const char *file_name,
105 print_errno_message (int errnum) in print_errno_message() argument
112 s = __strerror_r (errnum, errbuf, sizeof errbuf); in print_errno_message()
114 if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0) in print_errno_message()
120 s = strerror (errnum); in print_errno_message()
136 error_tail (int status, int errnum, const char *message, va_list args) in error_tail() argument
209 if (errnum) in error_tail()
210 print_errno_message (errnum); in error_tail()
227 error (int status, int errnum, const char *message, ...) in error() argument
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-runtime/gnulib-lib/
H A Derror.c70 extern void __error (int status, int errnum, const char *message, ...)
72 extern void __error_at_line (int status, int errnum, const char *file_name,
105 print_errno_message (int errnum) in print_errno_message() argument
112 s = __strerror_r (errnum, errbuf, sizeof errbuf); in print_errno_message()
114 if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0) in print_errno_message()
120 s = strerror (errnum); in print_errno_message()
136 error_tail (int status, int errnum, const char *message, va_list args) in error_tail() argument
209 if (errnum) in error_tail()
210 print_errno_message (errnum); in error_tail()
227 error (int status, int errnum, const char *message, ...) in error() argument
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/libgettextpo/
H A Derror.c70 extern void __error (int status, int errnum, const char *message, ...)
72 extern void __error_at_line (int status, int errnum, const char *file_name,
105 print_errno_message (int errnum) in print_errno_message() argument
112 s = __strerror_r (errnum, errbuf, sizeof errbuf); in print_errno_message()
114 if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0) in print_errno_message()
120 s = strerror (errnum); in print_errno_message()
136 error_tail (int status, int errnum, const char *message, va_list args) in error_tail() argument
209 if (errnum) in error_tail()
210 print_errno_message (errnum); in error_tail()
227 error (int status, int errnum, const char *message, ...) in error() argument
[all …]
/netbsd-src/external/gpl2/xcvs/dist/lib/
H A Derror.c69 extern void __error (int status, int errnum, const char *message, ...)
71 extern void __error_at_line (int status, int errnum, const char *file_name,
108 print_errno_message (int errnum) in print_errno_message() argument
115 s = __strerror_r (errnum, errbuf, sizeof errbuf); in print_errno_message()
117 if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0) in print_errno_message()
123 if (! s && ! (s = strerror (errnum))) in print_errno_message()
139 error_tail (int status, int errnum, const char *message, va_list args) in error_tail() argument
173 if (errnum) in error_tail()
174 print_errno_message (errnum); in error_tail()
192 error (int status, int errnum, const char *message, ...) in error() argument
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libbacktrace/
H A Dtestlib.c144 error_callback_one (void *vdata, const char *msg, int errnum) in error_callback_one() argument
149 if (errnum > 0) in error_callback_one()
150 fprintf (stderr, ": %s", strerror (errnum)); in error_callback_one()
178 error_callback_two (void *vdata, const char *msg, int errnum) in error_callback_two() argument
183 if (errnum > 0) in error_callback_two()
184 fprintf (stderr, ": %s", strerror (errnum)); in error_callback_two()
212 error_callback_three (void *vdata, const char *msg, int errnum) in error_callback_three() argument
217 if (errnum > 0) in error_callback_three()
218 fprintf (stderr, ": %s", strerror (errnum)); in error_callback_three()
227 int errnum) in error_callback_create() argument
[all …]
H A Dttest.c117 int errnum; in test1() local
123 errnum = pthread_create (&atid[i], NULL, test1_thread, NULL); in test1()
124 if (errnum != 0) in test1()
126 fprintf (stderr, "pthread_create %d: %s\n", i, strerror (errnum)); in test1()
134 errnum = pthread_join (atid[i], &ret); in test1()
135 if (errnum != 0) in test1()
137 fprintf (stderr, "pthread_join %d: %s\n", i, strerror (errnum)); in test1()
/netbsd-src/external/gpl3/gcc/dist/libbacktrace/
H A Dtestlib.c144 error_callback_one (void *vdata, const char *msg, int errnum) in error_callback_one() argument
149 if (errnum > 0) in error_callback_one()
150 fprintf (stderr, ": %s", strerror (errnum)); in error_callback_one()
178 error_callback_two (void *vdata, const char *msg, int errnum) in error_callback_two() argument
183 if (errnum > 0) in error_callback_two()
184 fprintf (stderr, ": %s", strerror (errnum)); in error_callback_two()
212 error_callback_three (void *vdata, const char *msg, int errnum) in error_callback_three() argument
217 if (errnum > 0) in error_callback_three()
218 fprintf (stderr, ": %s", strerror (errnum)); in error_callback_three()
227 int errnum) in error_callback_create() argument
[all …]
H A Dttest.c117 int errnum; in test1() local
123 errnum = pthread_create (&atid[i], NULL, test1_thread, NULL); in test1()
124 if (errnum != 0) in test1()
126 fprintf (stderr, "pthread_create %d: %s\n", i, strerror (errnum)); in test1()
134 errnum = pthread_join (atid[i], &ret); in test1()
135 if (errnum != 0) in test1()
137 fprintf (stderr, "pthread_join %d: %s\n", i, strerror (errnum)); in test1()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DErrno.cpp36 std::string StrError(int errnum) { in StrError() argument
38 if (errnum == 0) in StrError()
51 str = strerror_r(errnum, buffer, MaxErrStrLen - 1); in StrError()
53 strerror_r(errnum, buffer, MaxErrStrLen - 1); in StrError()
57 strerror_s(buffer, MaxErrStrLen - 1, errnum); in StrError()
63 str = strerror(errnum); in StrError()
68 stream << "Error #" << errnum; in StrError()
/netbsd-src/external/gpl2/xcvs/dist/src/
H A Derror.c110 error (int status, int errnum, const char *message, ...) in error() argument
164 errnum ? ": " : "", errnum ? strerror (errnum) : ""); in error()
175 last_errnum = errnum; in error()
232 status, errnum); in error()
255 fperrmsg (FILE *fp, int status, int errnum, char *message, ...) in fperrmsg() argument
263 if (errnum) in fperrmsg()
264 fprintf (fp, ": %s", strerror (errnum)); in fperrmsg()
/netbsd-src/external/bsd/libbind/dist/bsd/
H A Dstrerror.c63 u_int errnum; in isc_strerror() local
70 errnum = num; /*%< convert to unsigned */ in isc_strerror()
72 if (errnum < (u_int)sys_nerr) in isc_strerror()
73 return (sys_errlist[errnum]); in isc_strerror()
84 *t++ = "0123456789"[errnum % 10]; in isc_strerror()
85 } while (errnum /= 10); in isc_strerror()
/netbsd-src/external/cddl/osnet/dist/common/unicode/
H A Du8_textprep.c335 u8_validate(char *u8str, size_t n, char **list, int flag, int *errnum) in u8_validate() argument
372 *errnum = EILSEQ; in u8_validate()
378 *errnum = ERANGE; in u8_validate()
388 *errnum = EINVAL; in u8_validate()
408 *errnum = EILSEQ; in u8_validate()
413 *errnum = EILSEQ; in u8_validate()
433 *errnum = EBADF; in u8_validate()
567 size_t n2, boolean_t is_it_toupper, int *errnum) in do_case_compare() argument
588 *errnum = EILSEQ; in do_case_compare()
613 *errnum = EINVAL; in do_case_compare()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/recipes/
H A D02-test_errstr.t90 my $errnum = "Errno::$errname"->();
93 skip "Error $errname ($errnum) isn't within our range", 1
94 if $errnum > NUM_SYS_STR_REASONS;
98 local $! = $errnum;
104 my @oerr = run(app([ qw(openssl errstr), sprintf("2%06x", $errnum) ]),
109 ok($oerr[0] eq $perr, "($errnum) '$oerr[0]' == '$perr'");
/netbsd-src/external/apache2/llvm/dist/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);
71 int errnum) { in ReportErrnumFatal() argument
73 MakeErrMsg(&ErrMsg, Msg, errnum); in ReportErrnumFatal()
/netbsd-src/distrib/utils/libhack/
H A Dstrerror.c44 unsigned int errnum; local
46 errnum = num; /* convert to unsigned */
47 if (errnum < sys_nerr)
48 return((__aconst char *)sys_errlist[errnum]);
/netbsd-src/external/bsd/am-utils/dist/libamu/
H A Dstrerror.c54 strerror(int errnum) in strerror() argument
57 if (errnum < 0 || errnum >= (sizeof(sys_errlist) >> 2)) { in strerror()
59 xsnprintf(errstr, sizeof(errstr), "Unknown error #%d", errnum); in strerror()
/netbsd-src/external/gpl3/gcc.old/dist/libiberty/
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 sprintf (xstrerror_buf, ERRSTR_FMT, errnum); in xstrerror()
/netbsd-src/external/gpl3/gcc/dist/libiberty/
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 sprintf (xstrerror_buf, ERRSTR_FMT, errnum); in xstrerror()

12345678