| /freebsd/cddl/contrib/opensolaris/lib/libctf/common/ |
| H A D | ctf_lib.c | 89 ctf_zopen(int *errp) in ctf_zopen() argument 98 return (ctf_set_open_errno(errp, ECTF_ZMISSING)); in ctf_zopen() 101 return (ctf_set_open_errno(errp, ECTF_ZINIT)); in ctf_zopen() 109 return (ctf_set_open_errno(errp, ECTF_ZINIT)); in ctf_zopen() 216 ctf_fdopen(int fd, int *errp) in ctf_fdopen() argument 237 return (ctf_set_open_errno(errp, errno)); in ctf_fdopen() 240 return (ctf_set_open_errno(errp, nbytes < 0? errno : ECTF_FMT)); in ctf_fdopen() 250 return (ctf_set_open_errno(errp, ECTF_CTFVERS)); in ctf_fdopen() 256 return (ctf_set_open_errno(errp, errno)); in ctf_fdopen() 265 if ((fp = ctf_bufopen(&ctfsect, NULL, NULL, errp)) == NULL) in ctf_fdopen() [all …]
|
| /freebsd/sys/rpc/ |
| H A D | clnt_bck.c | 193 struct rpc_err *errp; in clnt_bck_call() local 221 errp = &ext->rc_err; in clnt_bck_call() 224 errp = &ct->ct_error; in clnt_bck_call() 260 errp->re_status = stat = RPC_SUCCESS; in clnt_bck_call() 265 errp->re_status = stat = RPC_CANTENCODEARGS; in clnt_bck_call() 289 if (errp != &ct->ct_error) { in clnt_bck_call() 290 errp->re_errno = ct->ct_error.re_errno; in clnt_bck_call() 291 errp->re_status = RPC_CANTRECV; in clnt_bck_call() 341 errp->re_errno = error; in clnt_bck_call() 342 errp->re_status = stat = RPC_CANTSEND; in clnt_bck_call() [all …]
|
| H A D | clnt_dg.c | 335 struct rpc_err *errp; in clnt_dg_call() local 366 errp = &ext->rc_err; in clnt_dg_call() 369 errp = &cu->cu_error; in clnt_dg_call() 392 errp->re_errno = error; in clnt_dg_call() 393 errp->re_status = stat = RPC_CANTSEND; in clnt_dg_call() 442 errp->re_status = stat = RPC_CANTENCODEARGS; in clnt_dg_call() 459 errp->re_errno = error; in clnt_dg_call() 461 errp->re_status = stat = RPC_INTR; in clnt_dg_call() 463 errp->re_status = stat = RPC_CANTSEND; in clnt_dg_call() 492 errp->re_errno = error; in clnt_dg_call() [all …]
|
| H A D | clnt_vc.c | 291 struct rpc_err *errp; in clnt_vc_call() local 319 errp = &ext->rc_err; in clnt_vc_call() 322 errp = &ct->ct_error; in clnt_vc_call() 371 errp->re_status = stat = RPC_SUCCESS; in clnt_vc_call() 376 errp->re_status = stat = RPC_CANTENCODEARGS; in clnt_vc_call() 400 if (errp != &ct->ct_error) { in clnt_vc_call() 401 errp->re_errno = ct->ct_error.re_errno; in clnt_vc_call() 402 errp->re_status = RPC_CANTRECV; in clnt_vc_call() 457 errp->re_errno = error; in clnt_vc_call() 458 errp->re_status = stat = RPC_CANTSEND; in clnt_vc_call() [all …]
|
| H A D | clnt_nl.c | 262 struct rpc_err *errp, err; in clnt_nl_call() local 284 errp = &ext->rc_err; in clnt_nl_call() 288 errp = &err; in clnt_nl_call() 301 stat = errp->re_status = RPC_CANTENCODEARGS; in clnt_nl_call() 304 stat = errp->re_status = RPC_SUCCESS; in clnt_nl_call() 354 stat = errp->re_status = RPC_CANTDECODERES; in clnt_nl_call() 361 stat = errp->re_status = RPC_SUCCESS; in clnt_nl_call() 369 stat = errp->re_status = RPC_AUTHERROR; in clnt_nl_call() 370 errp->re_why = AUTH_INVALIDRESP; in clnt_nl_call() 373 stat = _seterr_reply(&reply_msg, errp); in clnt_nl_call() [all …]
|
| H A D | clnt.h | 251 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument 252 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
|
| /freebsd/lib/libc/net/ |
| H A D | name6.c | 216 getipnodebyname(const char *name, int af, int flags, int *errp) in getipnodebyname() argument 230 *errp = NO_RECOVERY; in getipnodebyname() 253 *errp = HOST_NOT_FOUND; in getipnodebyname() 256 return _hpaddr(af, name, &addrbuf, errp); in getipnodebyname() 264 *errp = HOST_NOT_FOUND; in getipnodebyname() 268 return _hpaddr(af, name, &addrbuf, errp); in getipnodebyname() 275 *errp = NETDB_INTERNAL; in getipnodebyname() 284 hp = _hpcopy(hp, errp); in getipnodebyname() 294 *errp = statp->res_h_errno; in getipnodebyname() 296 hp = _hpmapv6(hp2, errp); in getipnodebyname() [all …]
|
| /freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| H A D | dt_open.c | 844 set_open_errno(dtrace_hdl_t *dtp, int *errp, int err) in set_open_errno() argument 848 if (errp != NULL) in set_open_errno() 849 *errp = err; in set_open_errno() 1028 dt_vopen(int version, int flags, int *errp, in dt_vopen() argument 1053 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen() 1056 return (set_open_errno(dtp, errp, EDT_VERSION)); in dt_vopen() 1070 return (set_open_errno(dtp, errp, EDT_OVERSION)); in dt_vopen() 1074 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen() 1082 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen() 1086 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen() [all …]
|
| /freebsd/usr.bin/top/ |
| H A D | commands.c | 218 struct errs *errp; in err_string() local 242 errp = &(errs[cnt++]); in err_string() 243 if (errp->errnum != currerr) in err_string() 253 currerr = errp->errnum; in err_string() 256 if ((stringlen = str_addarg(string, stringlen, errp->arg, first)) ==0) in err_string() 359 struct errs *errp = errs; in show_errors() local 364 printf("%5s: %s\n", errp->arg, in show_errors() 365 errp->errnum == 0 ? "Not a number" : strerror(errp->errnum)); in show_errors() 366 errp++; in show_errors()
|
| /freebsd/contrib/less/ |
| H A D | option.c | 658 num_error(constant char * printopt,lbool * errp,lbool overflow) num_error() argument 683 getnumc(constant char ** sp,constant char * printopt,lbool * errp) getnumc() argument 709 getnum(char ** sp,constant char * printopt,lbool * errp) getnum() argument 723 getfraction(constant char ** sp,constant char * printopt,lbool * errp) getfraction() argument
|
| H A D | optfunc.c | 1022 next_cnum(constant char ** sp,constant char * printopt,constant char * errmsg,lbool * errp) next_cnum() argument
|
| /freebsd/sys/dev/hyperv/utilities/ |
| H A D | unicode.h | 44 int flags, int *errp) in utf8_to_utf16() argument 132 if (errp) in utf8_to_utf16() 133 *errp = error; in utf8_to_utf16() 144 int flags, int *errp) in utf16_to_utf8() argument 192 if (errp) in utf16_to_utf8() 193 *errp = error; in utf16_to_utf8()
|
| /freebsd/sys/cddl/contrib/opensolaris/uts/common/ctf/ |
| H A D | ctf_mod.c | 67 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()
|
| /freebsd/cddl/contrib/opensolaris/common/ctf/ |
| H A D | ctf_open.c | 719 const ctf_sect_t *strsect, int *errp) in ctf_bufopen() argument 729 return (ctf_set_open_errno(errp, EINVAL)); in ctf_bufopen() 733 return (ctf_set_open_errno(errp, ECTF_SYMTAB)); in ctf_bufopen() 736 return (ctf_set_open_errno(errp, ECTF_SYMBAD)); in ctf_bufopen() 739 return (ctf_set_open_errno(errp, ECTF_STRBAD)); in ctf_bufopen() 742 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF)); in ctf_bufopen() 756 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF)); in ctf_bufopen() 761 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF)); in ctf_bufopen() 767 return (ctf_set_open_errno(errp, ECTF_CTFVERS)); in ctf_bufopen() 776 return (ctf_set_open_errno(errp, ECTF_CORRUPT)); in ctf_bufopen() [all …]
|
| H A D | ctf_util.c | 136 ctf_set_open_errno(int *errp, int error) in ctf_set_open_errno() argument 138 if (errp != NULL) in ctf_set_open_errno() 139 *errp = error; in ctf_set_open_errno()
|
| /freebsd/crypto/krb5/src/include/gssrpc/ |
| H A D | clnt.h | 179 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument 180 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
|
| /freebsd/usr.bin/mdo/ |
| H A D | mdo.c | 292 const char *errp; in parse_user_pwd() local 312 uid = strtonum(s, 0, UID_MAX, &errp); in parse_user_pwd() 313 if (errp != NULL) in parse_user_pwd() 314 errx(EXIT_FAILURE, "invalid UID '%s': %s", s, errp); in parse_user_pwd() 340 const char *errp; in parse_group() local 351 gid = strtonum(s, 0, GID_MAX, &errp); in parse_group() 352 if (errp != NULL) in parse_group() 353 errx(EXIT_FAILURE, "invalid GID '%s': %s", s, errp); in parse_group()
|
| /freebsd/include/rpc/ |
| H A D | clnt.h | 178 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument 179 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
|
| /freebsd/contrib/nvi/ex/ |
| H A D | ex.c | 1630 ex_range(SCR *sp, EXCMD *ecp, int *errp) in ex_range() argument 1638 *errp = 0; in ex_range() 1673 *errp = 1; in ex_range() 1688 *errp = 1; in ex_range() 1708 *errp = 1; in ex_range() 1750 if (ex_line(sp, ecp, &m, &isaddr, errp)) in ex_range() 1752 if (*errp) in ex_range() 1758 *errp = 1; in ex_range() 1807 *errp = 1; in ex_range() 1829 ex_line(SCR *sp, EXCMD *ecp, MARK *mp, int *isaddrp, int *errp) in ex_line() argument [all …]
|
| /freebsd/sys/fs/nfsserver/ |
| H A D | nfs_nfsdsubs.c | 1553 short *defaulterrp, *errp; in nfsd_errmap() local 1563 errp = defaulterrp = nfsrv_v3errmap[nd->nd_procnum]; in nfsd_errmap() 1577 errp = defaulterrp = nfsrv_v4errmap[nd->nd_procnum]; in nfsd_errmap() 1578 while (*++errp) in nfsd_errmap() 1579 if (*errp == nd->nd_repstat) in nfsd_errmap() 1811 short *errp; in nfsrv_errmoved() local 1813 errp = nfsrv_v4errmap[op]; in nfsrv_errmoved() 1814 while (*errp != 0) { in nfsrv_errmoved() 1815 if (*errp == NFSERR_MOVED) in nfsrv_errmoved() 1817 errp++; in nfsrv_errmoved()
|
| /freebsd/crypto/openssl/include/internal/ |
| H A D | safe_math.h | 381 static ossl_inline ossl_unused type safe_div_round_up_##type_name(type a, type b, int *errp) \ 387 err = errp != NULL ? errp : &err_local; \
|
| /freebsd/crypto/heimdal/appl/telnet/telnet/ |
| H A D | telnet.c | 639 telnet_setupterm(const char *tname, int fd, int *errp) in telnet_setupterm() argument 644 if (errp) in telnet_setupterm() 645 *errp = 1; in telnet_setupterm() 648 if (errp) in telnet_setupterm() 649 *errp = 0; in telnet_setupterm() 653 if(errp) *errp = 1; in telnet_setupterm()
|
| /freebsd/crypto/krb5/src/lib/rpc/ |
| H A D | clnt_udp.c | 417 struct rpc_err *errp) in clntudp_geterr() argument 421 *errp = cu->cu_error; in clntudp_geterr()
|
| H A D | clnt_tcp.c | 357 struct rpc_err *errp) in clnttcp_geterr() argument 361 *errp = ct->ct_error; in clnttcp_geterr()
|
| /freebsd/contrib/telnet/telnet/ |
| H A D | telnet.c | 700 setupterm(char *tname, int fd, int *errp) in setupterm() argument 704 if (errp) in setupterm() 705 *errp = 1; in setupterm() 708 if (errp) in setupterm() 709 *errp = 0; in setupterm()
|