Home
last modified time | relevance | path

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

12

/freebsd-10-stable/cddl/contrib/opensolaris/lib/libctf/common/
Dctf_lib.c88 ctf_zopen(int *errp) in ctf_zopen() argument
97 return (ctf_set_open_errno(errp, ECTF_ZMISSING)); in ctf_zopen()
100 return (ctf_set_open_errno(errp, ECTF_ZINIT)); in ctf_zopen()
108 return (ctf_set_open_errno(errp, ECTF_ZINIT)); in ctf_zopen()
215 ctf_fdopen(int fd, int *errp) in ctf_fdopen() argument
236 return (ctf_set_open_errno(errp, errno)); in ctf_fdopen()
239 return (ctf_set_open_errno(errp, nbytes < 0? errno : ECTF_FMT)); in ctf_fdopen()
248 return (ctf_set_open_errno(errp, ECTF_CTFVERS)); in ctf_fdopen()
254 return (ctf_set_open_errno(errp, errno)); in ctf_fdopen()
263 if ((fp = ctf_bufopen(&ctfsect, NULL, NULL, errp)) == NULL) in ctf_fdopen()
[all …]
/freebsd-10-stable/sys/rpc/
Dclnt_bck.c196 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()
328 errp->re_errno = error; in clnt_bck_call()
329 errp->re_status = stat = RPC_CANTSEND; in clnt_bck_call()
[all …]
Dclnt_dg.c335 struct rpc_err *errp; in clnt_dg_call() local
367 errp = &ext->rc_err; in clnt_dg_call()
370 errp = &cu->cu_error; in clnt_dg_call()
393 errp->re_errno = error; in clnt_dg_call()
394 errp->re_status = stat = RPC_CANTSEND; in clnt_dg_call()
447 errp->re_status = stat = RPC_CANTENCODEARGS; in clnt_dg_call()
464 errp->re_errno = error; in clnt_dg_call()
466 errp->re_status = stat = RPC_INTR; in clnt_dg_call()
468 errp->re_status = stat = RPC_CANTSEND; in clnt_dg_call()
497 errp->re_errno = error; in clnt_dg_call()
[all …]
Dclnt_vc.c294 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()
437 errp->re_errno = error; in clnt_vc_call()
438 errp->re_status = stat = RPC_CANTSEND; in clnt_vc_call()
[all …]
Dclnt.h293 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
294 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
Dclnt_rc.c336 clnt_reconnect_geterr(CLIENT *cl, struct rpc_err *errp) in clnt_reconnect_geterr() argument
340 *errp = rc->rc_err; in clnt_reconnect_geterr()
/freebsd-10-stable/contrib/top/
Dcommands.c217 register struct errs *errp; in err_string() local
241 errp = &(errs[cnt++]); in err_string()
242 if (errp->errnum != currerr) in err_string()
252 currerr = errp->errnum; in err_string()
255 if ((stringlen = str_addarg(string, stringlen, errp->arg, first)) ==0) in err_string()
370 register struct errs *errp = errs; in show_errors() local
375 printf("%5s: %s\n", errp->arg, in show_errors()
376 errp->errnum == 0 ? "Not a number" : errmsg(errp->errnum)); in show_errors()
377 errp++; in show_errors()
/freebsd-10-stable/contrib/less/
Doption.c605 num_error(printopt, errp) in num_error() argument
607 int *errp;
611 if (errp != NULL)
613 *errp = TRUE;
630 getnum(sp, printopt, errp) in getnum() argument
633 int *errp;
647 return (num_error(printopt, errp));
653 if (errp != NULL)
654 *errp = FALSE;
667 getfraction(sp, printopt, errp) in getfraction() argument
[all …]
/freebsd-10-stable/lib/libc/net/
Dname6.c218 getipnodebyname(const char *name, int af, int flags, int *errp) in getipnodebyname() argument
232 *errp = NO_RECOVERY; in getipnodebyname()
255 *errp = HOST_NOT_FOUND; in getipnodebyname()
258 return _hpaddr(af, name, &addrbuf, errp); in getipnodebyname()
266 *errp = HOST_NOT_FOUND; in getipnodebyname()
270 return _hpaddr(af, name, &addrbuf, errp); in getipnodebyname()
277 *errp = NETDB_INTERNAL; in getipnodebyname()
286 hp = _hpcopy(hp, errp); in getipnodebyname()
296 *errp = statp->res_h_errno; in getipnodebyname()
298 hp = _hpmapv6(hp2, errp); in getipnodebyname()
[all …]
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
Ddt_open.c833 set_open_errno(dtrace_hdl_t *dtp, int *errp, int err) in set_open_errno() argument
837 if (errp != NULL) in set_open_errno()
838 *errp = err; in set_open_errno()
1015 dt_vopen(int version, int flags, int *errp, in dt_vopen() argument
1040 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
1043 return (set_open_errno(dtp, errp, EDT_VERSION)); in dt_vopen()
1057 return (set_open_errno(dtp, errp, EDT_OVERSION)); in dt_vopen()
1061 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
1064 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
1067 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
[all …]
/freebsd-10-stable/sys/dev/hyperv/utilities/
Dunicode.h46 int flags, int *errp) in utf8_to_utf16() argument
134 if (errp) in utf8_to_utf16()
135 *errp = error; in utf8_to_utf16()
146 int flags, int *errp) in utf16_to_utf8() argument
194 if (errp) in utf16_to_utf8()
195 *errp = error; in utf16_to_utf8()
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/ctf/
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-10-stable/cddl/contrib/opensolaris/common/ctf/
Dctf_open.c545 const ctf_sect_t *strsect, int *errp) in ctf_bufopen() argument
555 return (ctf_set_open_errno(errp, EINVAL)); in ctf_bufopen()
559 return (ctf_set_open_errno(errp, ECTF_SYMTAB)); in ctf_bufopen()
562 return (ctf_set_open_errno(errp, ECTF_SYMBAD)); in ctf_bufopen()
565 return (ctf_set_open_errno(errp, ECTF_STRBAD)); in ctf_bufopen()
568 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF)); in ctf_bufopen()
582 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF)); in ctf_bufopen()
586 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF)); in ctf_bufopen()
596 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF)); in ctf_bufopen()
608 return (ctf_set_open_errno(errp, ECTF_CTFVERS)); in ctf_bufopen()
[all …]
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-10-stable/include/rpc/
Dclnt.h180 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
181 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
/freebsd-10-stable/contrib/nvi/ex/
Dex.c1622 ex_range(SCR *sp, EXCMD *ecp, int *errp) in ex_range() argument
1630 *errp = 0; in ex_range()
1665 *errp = 1; in ex_range()
1680 *errp = 1; in ex_range()
1700 *errp = 1; in ex_range()
1742 if (ex_line(sp, ecp, &m, &isaddr, errp)) in ex_range()
1744 if (*errp) in ex_range()
1750 *errp = 1; in ex_range()
1799 *errp = 1; in ex_range()
1821 ex_line(SCR *sp, EXCMD *ecp, MARK *mp, int *isaddrp, int *errp) in ex_line() argument
[all …]
/freebsd-10-stable/sys/fs/nfsserver/
Dnfs_nfsdsubs.c1497 short *defaulterrp, *errp; in nfsd_errmap() local
1505 errp = defaulterrp = nfsrv_v3errmap[nd->nd_procnum]; in nfsd_errmap()
1517 errp = defaulterrp = nfsrv_v4errmap[nd->nd_procnum]; in nfsd_errmap()
1518 while (*++errp) in nfsd_errmap()
1519 if (*errp == nd->nd_repstat) in nfsd_errmap()
1694 short *errp; in nfsrv_errmoved() local
1696 errp = nfsrv_v4errmap[op]; in nfsrv_errmoved()
1697 while (*errp != 0) { in nfsrv_errmoved()
1698 if (*errp == NFSERR_MOVED) in nfsrv_errmoved()
1700 errp++; in nfsrv_errmoved()
/freebsd-10-stable/crypto/heimdal/appl/telnet/telnet/
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-10-stable/lib/libkvm/
Dkvm_private.h44 char *errp; /* XXX this can probably go away */ member
/freebsd-10-stable/sys/nfsserver/
Dnfs_srvsubs.c1169 const short *defaulterrp, *errp; in nfsrv_errmap() local
1175 errp = defaulterrp = nfsrv_v3errmap[nd->nd_procnum]; in nfsrv_errmap()
1176 while (*++errp) { in nfsrv_errmap()
1177 if (*errp == err) in nfsrv_errmap()
1179 else if (*errp > err) in nfsrv_errmap()
/freebsd-10-stable/contrib/telnet/telnet/
Dtelnet.c706 setupterm(char *tname, int fd, int *errp) in setupterm() argument
710 if (errp) in setupterm()
711 *errp = 1; in setupterm()
714 if (errp) in setupterm()
715 *errp = 0; in setupterm()
/freebsd-10-stable/lib/libc/rpc/
Dclnt_vc.c461 clnt_vc_geterr(CLIENT *cl, struct rpc_err *errp) in clnt_vc_geterr() argument
466 assert(errp != NULL); in clnt_vc_geterr()
469 *errp = ct->ct_error; in clnt_vc_geterr()
Dclnt_dg.c610 clnt_dg_geterr(CLIENT *cl, struct rpc_err *errp) in clnt_dg_geterr() argument
614 *errp = cu->cu_error; in clnt_dg_geterr()
/freebsd-10-stable/contrib/bsnmp/lib/
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()
/freebsd-10-stable/sys/dev/md/
Dmd.c1190 mdnew(int unit, int *errp, enum md_types type) in mdnew() argument
1195 *errp = 0; in mdnew()
1202 *errp = EBUSY; in mdnew()
1222 *errp = error; in mdnew()

12