Searched refs:errnum (Results 1 - 25 of 59) sorted by relevance

123

/freebsd-9.3-release/contrib/nvi/clib/
H A Dstrerror.c55 register unsigned int errnum; local
59 errnum = num; /* convert to unsigned */
60 if (errnum < sys_nerr)
61 return(sys_errlist[errnum]);
66 *t++ = "0123456789"[errnum % 10];
67 } while (errnum /= 10);
/freebsd-9.3-release/contrib/amd/libamu/
H A Dstrerror.c56 strerror(int errnum) argument
59 if (errnum < 0 || errnum >= (sizeof(sys_errlist) >> 2)) {
61 xsnprintf(errstr, sizeof(errstr), "Unknown error #%d", errnum);
/freebsd-9.3-release/contrib/ntp/libntp/
H A Dbsd_strerror.c34 int errnum
41 if ((unsigned int)errnum < sys_nerr)
42 return sys_errlist[errnum];
43 snprintf(ebuf, sizeof(ebuf), "Unknown error: %d", errnum);
/freebsd-9.3-release/contrib/binutils/libiberty/
H A Dxstrerror.c7 @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-9.3-release/contrib/gcclibs/libiberty/
H A Dxstrerror.c7 @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-9.3-release/contrib/llvm/lib/Support/
H A DErrno.cpp37 std::string StrError(int errnum) { argument
42 if (errnum == 0)
50 str = strerror_r(errnum, buffer, MaxErrStrLen - 1);
52 strerror_r(errnum, buffer, MaxErrStrLen - 1);
56 strerror_s(buffer, MaxErrStrLen - 1, errnum);
62 str = strerror(errnum);
67 stream << "Error #" << errnum;
/freebsd-9.3-release/contrib/llvm/include/llvm/Support/
H A DErrno.h28 /// Like the no-argument version above, but uses \p errnum instead of errno.
29 std::string StrError(int errnum);
/freebsd-9.3-release/gnu/usr.bin/grep/
H A Derror.c109 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 Derror.h49 extern void error (int status, int errnum, const char *format, ...)
52 extern void error_at_line (int status, int errnum, const char *fname,
/freebsd-9.3-release/lib/libc/string/
H A Dstrerror.c81 strerror_r(int errnum, char *strerrbuf, size_t buflen) argument
90 if (errnum < 0 || errnum >= sys_nerr) {
91 errstr(errnum,
102 catgets(catd, 1, errnum, sys_errlist[errnum]),
104 sys_errlist[errnum],
/freebsd-9.3-release/usr.bin/perror/
H A Dperror.c45 long errnum; local
53 errnum = strtol(argv[1], &cp, 0);
58 if ((errstr = strerror(errnum)) == NULL)
/freebsd-9.3-release/contrib/llvm/lib/Support/Unix/
H A DUnix.h63 /// string and the Unix error number given by \p errnum. If errnum is -1, the
70 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
73 if (errnum == -1)
74 errnum = errno;
75 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
/freebsd-9.3-release/contrib/sendmail/libsm/
H A Derrstring.c41 ** errnum -- the error number to translate
44 ** A string description of errnum.
50 sm_errstring(errnum)
51 int errnum;
56 switch (errnum)
270 if (errnum >= E_LDAPBASE)
271 return ldap_err2string(errnum - E_LDAPBASE);
274 ret = strerror(errnum);
279 (void) sm_snprintf(buf, sizeof buf, "Error %d", errnum);
/freebsd-9.3-release/contrib/cvs/src/
H A Derror.c106 error (int status, int errnum, const char *message, ...) argument
108 error (status, errnum, message, va_alist)
110 int errnum;
203 if (errnum != 0)
206 cvs_outerr (strerror (errnum), 0);
223 fperrmsg (FILE *fp, int status, int errnum, char *message, ...) argument
225 fperrmsg (fp, status, errnum, message, va_alist)
228 int errnum;
249 if (errnum)
250 fprintf (fp, ": %s", strerror (errnum));
[all...]
/freebsd-9.3-release/contrib/diff/lib/
H A Derror.c68 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-9.3-release/contrib/gnu-sort/lib/
H A Derror.c68 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 if (! s && ! (s = strerror (errnum)))
138 error_tail (int status, int errnum, const char *message, va_list args) argument
172 if (errnum)
173 print_errno_message (errnum);
191 error (int status, int errnum, cons argument
235 error_at_line(int status, int errnum, const char *file_name, unsigned int line_number, const char *message, ...) argument
[all...]
/freebsd-9.3-release/contrib/top/
H A Dutils.c327 * errmsg(errnum) - return an error message string appropriate to the
328 * error number "errnum". This is a substitute for the System V
348 char *errmsg(errnum)
350 int errnum;
354 char *msg = strerror(errnum);
360 if (errnum > 0 && errnum < sys_nerr)
362 return((char *)sys_errlist[errnum]);
H A Dcommands.c174 int errnum; /* value of errno (that is, the actual error) */ member in struct:errs
193 errs[errcnt++].errnum = (e); \
233 if (errp->errnum != currerr)
243 currerr = errp->errnum;
331 if ((result = p1->errnum - p2->errnum) == 0)
362 errp->errnum == 0 ? "Not a number" : errmsg(errp->errnum));
/freebsd-9.3-release/bin/pax/
H A Dtty_subs.c166 syswarn(int set, int errnum, const char *fmt, ...) argument
188 if (errnum > 0)
189 (void)fprintf(stderr, " <%s>", strerror(errnum));
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/common/unicode/
H A Du8_textprep.c336 u8_validate(char *u8str, size_t n, char **list, int flag, int *errnum) argument
373 *errnum = EILSEQ;
379 *errnum = ERANGE;
389 *errnum = EINVAL;
409 *errnum = EILSEQ;
414 *errnum = EILSEQ;
434 *errnum = EBADF;
568 size_t n2, boolean_t is_it_toupper, int *errnum)
589 *errnum = EILSEQ;
614 *errnum
567 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
1379 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
1727 do_norm_compare(size_t uv, uchar_t *s1, uchar_t *s2, size_t n1, size_t n2, int flag, int *errnum) argument
1843 u8_strcmp(const char *s1, const char *s2, size_t n, int flag, size_t uv, int *errnum) argument
1913 u8_textprep_str(char *inarray, size_t *inlen, char *outarray, size_t *outlen, int flag, size_t unicode_version, int *errnum) argument
[all...]
/freebsd-9.3-release/contrib/sendmail/src/
H A Derr.c967 ** errnum -- the error number to translate
970 ** A string description of errnum.
977 sm_errstring(errnum)
978 int errnum;
999 switch (errnum)
1005 err = strerror(errnum);
1009 "Error %d", errnum);
1014 if (errnum >= 0 && errnum < sys_nerr)
1015 (void) sm_strlcpy(bp, sys_errlist[errnum],
[all...]
/freebsd-9.3-release/contrib/nvi/ex/
H A Dtag.h45 int errnum; /* Errno. */ member in struct:_tagf
/freebsd-9.3-release/sys/i386/include/xen/
H A Dxenstored.h61 int errnum; member in struct:xsd_errors
/freebsd-9.3-release/lib/libc/rpc/
H A Dclnt_perror.c223 unsigned int errnum = stat; local
225 if (errnum < (sizeof(rpc_errlist)/sizeof(rpc_errlist[0])))
227 return (char *)rpc_errlist[errnum];
325 unsigned int errnum = stat; local
327 if (errnum < (sizeof(auth_errlist)/sizeof(auth_errlist[0])))
329 return (char *)auth_errlist[errnum];
/freebsd-9.3-release/gnu/usr.bin/patch/
H A Dutil.c15 private_strerror (errnum)
16 int errnum;
21 if (errnum > 0 && errnum <= sys_nerr)
22 return sys_errlist[errnum];
235 int errnum = errno; local
239 fprintf(stderr, ": %s\n", strerror(errnum));

Completed in 329 milliseconds

123