Home
last modified time | relevance | path

Searched refs:errp (Results 1 – 25 of 60) sorted by relevance

123

/netbsd-src/external/gpl3/binutils/dist/libctf/
H A Dctf-open-bfd.c50 ctf_bfdopen (struct bfd *abfd, int *errp) in ctf_bfdopen() argument
61 return (ctf_set_open_errno (errp, ECTF_NOCTFDATA)); in ctf_bfdopen()
69 return (ctf_set_open_errno (errp, ECTF_FMT)); in ctf_bfdopen()
77 if ((arc = ctf_bfdopen_ctfsect (abfd, &ctfsect, errp)) != NULL) in ctf_bfdopen()
93 const ctf_sect_t *ctfsect, int *errp) in ctf_bfdopen_ctfsect() argument
216 arci = ctf_arc_bufopen (ctfsect, symsectp, strsectp, errp); in ctf_bfdopen_ctfsect()
239 ctf_set_open_errno (errp, ECTF_FMT); in ctf_bfdopen_ctfsect()
251 ctf_fdopen (int fd, const char *filename, const char *target, int *errp) in ctf_fdopen() argument
268 return (ctf_set_open_errno (errp, errno)); in ctf_fdopen()
271 return (ctf_set_open_errno (errp, nbytes < 0 ? errno : ECTF_FMT)); in ctf_fdopen()
[all …]
H A Dctf-archive.c40 int *errp);
355 int *errp) in ctf_new_archive_internal() argument
368 return (ctf_set_open_errno (errp, errno)); in ctf_new_archive_internal()
422 const ctf_sect_t *strsect, int *errp) in ctf_arc_bufopen() argument
446 if ((fp = ctf_bufopen (ctfsect, symsect, strsect, errp)) == NULL) in ctf_arc_bufopen()
448 ctf_err_warn (NULL, 0, *errp, _("ctf_arc_bufopen(): cannot open CTF")); in ctf_arc_bufopen()
453 errp); in ctf_arc_bufopen()
459 ctf_arc_open_internal (const char *filename, int *errp) in ctf_arc_open_internal() argument
503 if (errp) in ctf_arc_open_internal()
504 *errp = errno; in ctf_arc_open_internal()
[all …]
H A Dctf-subr.c272 int *errp) in ctf_errwarning_next() argument
288 if (errp) in ctf_errwarning_next()
289 *errp = ENOMEM; in ctf_errwarning_next()
302 if (errp) in ctf_errwarning_next()
303 *errp = ECTF_NEXT_WRONGFUN; in ctf_errwarning_next()
311 if (errp) in ctf_errwarning_next()
312 *errp = ECTF_NEXT_WRONGFP; in ctf_errwarning_next()
324 if (errp) in ctf_errwarning_next()
325 *errp = ECTF_NEXT_END; in ctf_errwarning_next()
H A Dctf-open.c1259 int *errp) in ctf_simple_open() argument
1263 0, errp); in ctf_simple_open()
1274 int *errp) in ctf_simple_open_internal() argument
1312 writable, errp); in ctf_simple_open_internal()
1322 const ctf_sect_t *strsect, int *errp) in ctf_bufopen() argument
1324 return ctf_bufopen_internal (ctfsect, symsect, strsect, NULL, 0, errp); in ctf_bufopen()
1332 int writable, int *errp) in ctf_bufopen_internal() argument
1345 return (ctf_set_open_errno (errp, EINVAL)); in ctf_bufopen_internal()
1349 return (ctf_set_open_errno (errp, ECTF_SYMTAB)); in ctf_bufopen_internal()
1352 return (ctf_set_open_errno (errp, ECTF_SYMBAD)); in ctf_bufopen_internal()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/libctf/
H A Dctf-open-bfd.c50 ctf_bfdopen (struct bfd *abfd, int *errp) in ctf_bfdopen() argument
61 return (ctf_set_open_errno (errp, ECTF_NOCTFDATA)); in ctf_bfdopen()
69 return (ctf_set_open_errno (errp, ECTF_FMT)); in ctf_bfdopen()
77 if ((arc = ctf_bfdopen_ctfsect (abfd, &ctfsect, errp)) != NULL) in ctf_bfdopen()
93 const ctf_sect_t *ctfsect, int *errp) in ctf_bfdopen_ctfsect() argument
216 arci = ctf_arc_bufopen (ctfsect, symsectp, strsectp, errp); in ctf_bfdopen_ctfsect()
239 ctf_set_open_errno (errp, ECTF_FMT); in ctf_bfdopen_ctfsect()
251 ctf_fdopen (int fd, const char *filename, const char *target, int *errp) in ctf_fdopen() argument
268 return (ctf_set_open_errno (errp, errno)); in ctf_fdopen()
271 return (ctf_set_open_errno (errp, nbytes < 0 ? errno : ECTF_FMT)); in ctf_fdopen()
[all …]
H A Dctf-archive.c40 int *errp);
355 int *errp) in ctf_new_archive_internal() argument
368 return (ctf_set_open_errno (errp, errno)); in ctf_new_archive_internal()
421 const ctf_sect_t *strsect, int *errp) in ctf_arc_bufopen() argument
444 if ((fp = ctf_bufopen (ctfsect, symsect, strsect, errp)) == NULL) in ctf_arc_bufopen()
446 ctf_err_warn (NULL, 0, *errp, _("ctf_arc_bufopen(): cannot open CTF")); in ctf_arc_bufopen()
451 errp); in ctf_arc_bufopen()
457 ctf_arc_open_internal (const char *filename, int *errp) in ctf_arc_open_internal() argument
501 if (errp) in ctf_arc_open_internal()
502 *errp = errno; in ctf_arc_open_internal()
[all …]
H A Dctf-subr.c272 int *errp) in ctf_errwarning_next() argument
288 if (errp) in ctf_errwarning_next()
289 *errp = ENOMEM; in ctf_errwarning_next()
302 if (errp) in ctf_errwarning_next()
303 *errp = ECTF_NEXT_WRONGFUN; in ctf_errwarning_next()
311 if (errp) in ctf_errwarning_next()
312 *errp = ECTF_NEXT_WRONGFP; in ctf_errwarning_next()
324 if (errp) in ctf_errwarning_next()
325 *errp = ECTF_NEXT_END; in ctf_errwarning_next()
H A Dctf-open.c1259 int *errp) in ctf_simple_open() argument
1263 0, errp); in ctf_simple_open()
1274 int *errp) in ctf_simple_open_internal() argument
1312 writable, errp); in ctf_simple_open_internal()
1322 const ctf_sect_t *strsect, int *errp) in ctf_bufopen() argument
1324 return ctf_bufopen_internal (ctfsect, symsect, strsect, NULL, 0, errp); in ctf_bufopen()
1332 int writable, int *errp) in ctf_bufopen_internal() argument
1345 return (ctf_set_open_errno (errp, EINVAL)); in ctf_bufopen_internal()
1349 return (ctf_set_open_errno (errp, ECTF_SYMTAB)); in ctf_bufopen_internal()
1352 return (ctf_set_open_errno (errp, ECTF_SYMBAD)); in ctf_bufopen_internal()
[all …]
/netbsd-src/external/bsd/openldap/dist/libraries/libldap/
H A Dschema.c1506 LDAP_CONST char ** errp, in ldap_str2syntax() argument
1519 *errp = ""; in ldap_str2syntax()
1523 *errp = s; in ldap_str2syntax()
1542 *errp = ss; in ldap_str2syntax()
1557 *errp = EndOfInput; in ldap_str2syntax()
1567 *errp = ss; in ldap_str2syntax()
1576 *errp = ss; in ldap_str2syntax()
1584 *errp = ss; in ldap_str2syntax()
1593 *errp = ss; in ldap_str2syntax()
1604 *errp = ss; in ldap_str2syntax()
[all …]
/netbsd-src/lib/libresolv/
H A Dns_date.c54 ns_datetosecs(const char *cp, int *errp) { in ns_datetosecs() argument
62 *errp = 1; in ns_datetosecs()
65 *errp = 0; in ns_datetosecs()
68 tim.tm_year = datepart(cp + 0, 4, 1990, 9999, errp) - 1900; in ns_datetosecs()
69 tim.tm_mon = datepart(cp + 4, 2, 01, 12, errp) - 1; in ns_datetosecs()
70 tim.tm_mday = datepart(cp + 6, 2, 01, 31, errp); in ns_datetosecs()
71 tim.tm_hour = datepart(cp + 8, 2, 00, 23, errp); in ns_datetosecs()
72 tim.tm_min = datepart(cp + 10, 2, 00, 59, errp); in ns_datetosecs()
73 tim.tm_sec = datepart(cp + 12, 2, 00, 59, errp); in ns_datetosecs()
74 if (*errp) /*%< Any parse errors? */ in ns_datetosecs()
[all …]
/netbsd-src/external/bsd/libbind/dist/nameser/
H A Dns_date.c57 ns_datetosecs(const char *cp, int *errp) { in ns_datetosecs() argument
65 *errp = 1; in ns_datetosecs()
68 *errp = 0; in ns_datetosecs()
71 time.tm_year = datepart(cp + 0, 4, 1990, 9999, errp) - 1900; in ns_datetosecs()
72 time.tm_mon = datepart(cp + 4, 2, 01, 12, errp) - 1; in ns_datetosecs()
73 time.tm_mday = datepart(cp + 6, 2, 01, 31, errp); in ns_datetosecs()
74 time.tm_hour = datepart(cp + 8, 2, 00, 23, errp); in ns_datetosecs()
75 time.tm_min = datepart(cp + 10, 2, 00, 59, errp); in ns_datetosecs()
76 time.tm_sec = datepart(cp + 12, 2, 00, 59, errp); in ns_datetosecs()
77 if (*errp) /*%< Any parse errors? */ in ns_datetosecs()
[all …]
/netbsd-src/external/cddl/osnet/dist/lib/libctf/common/
H A Dctf_lib.c92 ctf_zopen(int *errp) in ctf_zopen() argument
101 return (ctf_set_open_errno(errp, ECTF_ZMISSING)); in ctf_zopen()
104 return (ctf_set_open_errno(errp, ECTF_ZINIT)); in ctf_zopen()
112 return (ctf_set_open_errno(errp, ECTF_ZINIT)); in ctf_zopen()
219 ctf_fdopen(int fd, int *errp) in ctf_fdopen() argument
240 return (ctf_set_open_errno(errp, errno)); in ctf_fdopen()
243 return (ctf_set_open_errno(errp, nbytes < 0? errno : ECTF_FMT)); in ctf_fdopen()
252 return (ctf_set_open_errno(errp, ECTF_CTFVERS)); in ctf_fdopen()
258 return (ctf_set_open_errno(errp, errno)); in ctf_fdopen()
267 if ((fp = ctf_bufopen(&ctfsect, NULL, NULL, errp)) == NULL) in ctf_fdopen()
[all …]
/netbsd-src/external/gpl3/binutils/dist/libsframe/
H A Dsframe.c87 sframe_set_errno (int *errp, int error) in sframe_set_errno() argument
89 if (errp != NULL) in sframe_set_errno()
90 *errp = error; in sframe_set_errno()
98 sframe_ret_set_errno (int *errp, int error) in sframe_ret_set_errno() argument
100 if (errp != NULL) in sframe_ret_set_errno()
101 *errp = error; in sframe_ret_set_errno()
565 sframe_get_fre_offset (sframe_frame_row_entry *fre, int idx, int *errp) in sframe_get_fre_offset() argument
570 return sframe_set_errno (errp, SFRAME_ERR_FRE_INVAL); in sframe_get_fre_offset()
576 return sframe_set_errno (errp, SFRAME_ERR_FREOFFSET_NOPRESENT); in sframe_get_fre_offset()
578 if (errp) in sframe_get_fre_offset()
[all …]
/netbsd-src/external/gpl3/binutils/dist/include/
H A Dsframe-api.h109 sframe_decode (const char *cf_buf, size_t cf_size, int *errp);
146 int *errp);
194 sframe_fre_get_base_reg_id (sframe_frame_row_entry *fre, int *errp);
199 sframe_frame_row_entry *fre, int *errp);
204 sframe_frame_row_entry *fre, int *errp);
209 sframe_frame_row_entry *fre, int *errp);
215 sframe_frame_row_entry *fre, int *errp);
223 int8_t fixed_fp_offset, int8_t fixed_ra_offset, int *errp);
276 size_t *encoded_size, int *errp);
/netbsd-src/external/cddl/osnet/dist/lib/libdtrace/common/
H A Ddt_open.c845 set_open_errno(dtrace_hdl_t *dtp, int *errp, int err) in set_open_errno() argument
849 if (errp != NULL) in set_open_errno()
850 *errp = err; in set_open_errno()
1047 dt_vopen(int version, int flags, int *errp, in dt_vopen() argument
1074 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
1077 return (set_open_errno(dtp, errp, EDT_VERSION)); in dt_vopen()
1091 return (set_open_errno(dtp, errp, EDT_OVERSION)); in dt_vopen()
1095 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
1098 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
1101 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
[all …]
/netbsd-src/external/bsd/less/dist/
H A Doption.c600 static int num_error(char *printopt, int *errp, int overflow) in num_error() argument
604 if (errp != NULL) in num_error()
606 *errp = TRUE; in num_error()
625 public int getnum(char **sp, char *printopt, int *errp) in getnum() argument
639 return (num_error(printopt, errp, FALSE)); in getnum()
643 return (num_error(printopt, errp, TRUE)); in getnum()
644 if (errp != NULL) in getnum()
645 *errp = FALSE; in getnum()
657 public long getfraction(char **sp, char *printopt, int *errp) in getfraction() argument
665 return (num_error(printopt, errp, FALSE)); in getfraction()
[all …]
/netbsd-src/external/bsd/openldap/dist/include/
H A Dldap_schema.h239 LDAP_CONST char ** errp,
246 LDAP_CONST char ** errp,
253 LDAP_CONST char ** errp,
260 LDAP_CONST char ** errp,
267 LDAP_CONST char ** errp,
274 LDAP_CONST char ** errp,
281 LDAP_CONST char ** errp,
288 LDAP_CONST char ** errp,
/netbsd-src/sys/fs/hfs/
H A Dunicode.c42 int flags, int *errp) in utf8_to_utf16() argument
125 if (errp) in utf8_to_utf16()
126 *errp = error; in utf8_to_utf16()
135 int flags, int *errp) in utf16_to_utf8() argument
179 if (errp) in utf16_to_utf8()
180 *errp = error; in utf16_to_utf8()
/netbsd-src/external/cddl/osnet/dist/common/ctf/
H A Dctf_open.c548 const ctf_sect_t *strsect, int *errp) in ctf_bufopen() argument
558 return (ctf_set_open_errno(errp, EINVAL)); in ctf_bufopen()
562 return (ctf_set_open_errno(errp, ECTF_SYMTAB)); in ctf_bufopen()
565 return (ctf_set_open_errno(errp, ECTF_SYMBAD)); in ctf_bufopen()
568 return (ctf_set_open_errno(errp, ECTF_STRBAD)); in ctf_bufopen()
571 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF)); in ctf_bufopen()
585 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF)); in ctf_bufopen()
589 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF)); in ctf_bufopen()
599 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF)); in ctf_bufopen()
611 return (ctf_set_open_errno(errp, ECTF_CTFVERS)); in ctf_bufopen()
[all …]
H A Dctf_util.c139 ctf_set_open_errno(int *errp, int error) in ctf_set_open_errno() argument
141 if (errp != NULL) in ctf_set_open_errno()
142 *errp = error; in ctf_set_open_errno()
/netbsd-src/external/cddl/osnet/dist/uts/common/ctf/
H A Dctf_mod.c67 ctf_zopen(int *errp) in ctf_zopen() argument
88 ctf_fdopen(int fd, int *errp) in ctf_fdopen() argument
90 return (ctf_set_open_errno(errp, ENOTSUP)); in ctf_fdopen()
95 ctf_open(const char *filename, int *errp) in ctf_open() argument
97 return (ctf_set_open_errno(errp, ENOTSUP)); in ctf_open()
/netbsd-src/external/bsd/top/dist/
H A Dcommands.c203 register struct errs *errp; in err_string() local
227 errp = &(errs[cnt++]); in err_string()
233 if (errp->errnum != currerr) in err_string()
247 currerr = errp->errnum; in err_string()
252 stringlen = str_addarg(string, stringlen, errp->arg, first); in err_string()
338 register struct errs *errp = errs; in show_errors() local
343 printf("%5s: %s\n", errp->arg, in show_errors()
344 errp->errnum == 0 ? "Not a number" : errmsg(errp->errnum)); in show_errors()
345 errp++; in show_errors()
/netbsd-src/sys/arch/atari/stand/tostools/libtos/
H A Daout.c80 aout_load(int fd, osdsc_t *od, char **errp, int loadsyms) in aout_load() argument
86 *errp = NULL; in aout_load()
166 *errp = errs[err]; in aout_load()
/netbsd-src/external/bsd/nvi/dist/ex/
H A Dex.c1630 ex_range(SCR *sp, EXCMD *ecp, int *errp) in ex_range() argument
1636 *errp = 0; in ex_range()
1669 *errp = 1; in ex_range()
1684 *errp = 1; in ex_range()
1704 *errp = 1; in ex_range()
1746 if (ex_line(sp, ecp, &m, &isaddr, errp)) in ex_range()
1748 if (*errp) in ex_range()
1754 *errp = 1; in ex_range()
1803 *errp = 1; in ex_range()
1825 ex_line(SCR *sp, EXCMD *ecp, MARK *mp, int *isaddrp, int *errp) in ex_line() argument
[all …]
/netbsd-src/include/rpc/
H A Dclnt.h230 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
231 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument

123