Home
last modified time | relevance | path

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

12

/freebsd/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c89 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 Dclnt_bck.c193 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 Dclnt_dg.c335 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 Dclnt_vc.c291 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 Dclnt_nl.c262 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 Dclnt.h251 #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
H A Dclnt_rc.c387 clnt_reconnect_geterr(CLIENT *cl, struct rpc_err *errp) in clnt_reconnect_geterr() argument
391 *errp = rc->rc_err; in clnt_reconnect_geterr()
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_open.c844 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/lib/libc/net/
H A Dname6.c216 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/usr.bin/top/
H A Dcommands.c218 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 Doption.c654 static int num_error(constant char *printopt, lbool *errp, lbool overflow) in getfraction()
658 if (errp != NULL) in getfraction()
660 *errp = TRUE; in getfraction()
679 public int getnumc(constant char **sp, constant char *printopt, lbool *errp)
693 return (num_error(printopt, errp, FALSE));
697 return (num_error(printopt, errp, TRUE));
698 if (errp != NULL)
699 *errp = FALSE;
705 public int getnum(char **sp, constant char *printopt, lbool *errp)
708 int r = getnumc(&cs, printopt, errp);
596 num_error(char * printopt,int * errp,int overflow) num_error() argument
621 getnum(char ** sp,char * printopt,int * errp) getnum() argument
653 getfraction(char ** sp,char * printopt,int * errp) getfraction() argument
[all...]
/freebsd/sys/dev/hyperv/utilities/
H A Dunicode.h44 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 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()
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_open.c719 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 Dctf_util.c136 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/usr.bin/mdo/
H A Dmdo.c53 const char *errp = NULL; in main() local
54 uid_t uid = strtonum(username, 0, UID_MAX, &errp); in main()
55 if (errp != NULL) in main()
/freebsd/include/rpc/
H A Dclnt.h178 #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 Dex.c1628 ex_range(SCR *sp, EXCMD *ecp, int *errp) in ex_range() argument
1636 *errp = 0; in ex_range()
1671 *errp = 1; in ex_range()
1686 *errp = 1; in ex_range()
1706 *errp = 1; in ex_range()
1748 if (ex_line(sp, ecp, &m, &isaddr, errp)) in ex_range()
1750 if (*errp) in ex_range()
1756 *errp = 1; in ex_range()
1805 *errp = 1; in ex_range()
1827 ex_line(SCR *sp, EXCMD *ecp, MARK *mp, int *isaddrp, int *errp) in ex_line() argument
[all …]
/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdsubs.c1544 short *defaulterrp, *errp; in nfsd_errmap() local
1554 errp = defaulterrp = nfsrv_v3errmap[nd->nd_procnum]; in nfsd_errmap()
1568 errp = defaulterrp = nfsrv_v4errmap[nd->nd_procnum]; in nfsd_errmap()
1569 while (*++errp) in nfsd_errmap()
1570 if (*errp == nd->nd_repstat) in nfsd_errmap()
1746 short *errp; in nfsrv_errmoved() local
1748 errp = nfsrv_v4errmap[op]; in nfsrv_errmoved()
1749 while (*errp != 0) { in nfsrv_errmoved()
1750 if (*errp == NFSERR_MOVED) in nfsrv_errmoved()
1752 errp++; in nfsrv_errmoved()
/freebsd/crypto/heimdal/appl/telnet/telnet/
H A Dtelnet.c639 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/contrib/telnet/telnet/
H A Dtelnet.c700 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()
/freebsd/lib/libc/rpc/
H A Dclnt_vc.c452 clnt_vc_geterr(CLIENT *cl, struct rpc_err *errp) in clnt_vc_geterr() argument
457 assert(errp != NULL); in clnt_vc_geterr()
460 *errp = ct->ct_error; in clnt_vc_geterr()
H A Dclnt_dg.c604 clnt_dg_geterr(CLIENT *cl, struct rpc_err *errp) in clnt_dg_geterr() argument
608 *errp = cu->cu_error; in clnt_dg_geterr()
/freebsd/lib/libkvm/
H A Dkvm_private.h60 char *errp; /* XXX this can probably go away */ member
/freebsd/contrib/bsnmp/lib/
H A Dsnmpagent.c115 find_node(const struct snmp_value *value, enum snmp_syntax *errp) in find_node() argument
137 *errp = SNMP_SYNTAX_NOSUCHOBJECT; in find_node()
147 *errp = SNMP_SYNTAX_NOSUCHINSTANCE; in find_node()

12