Home
last modified time | relevance | path

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

12

/freebsd-13.1/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c89 ctf_zopen(int *errp) in ctf_zopen() argument
216 ctf_fdopen(int fd, int *errp) in ctf_fdopen() argument
237 return (ctf_set_open_errno(errp, errno)); in ctf_fdopen()
256 return (ctf_set_open_errno(errp, errno)); in ctf_fdopen()
313 return (ctf_set_open_errno(errp, in ctf_fdopen()
323 return (ctf_set_open_errno(errp, in ctf_fdopen()
337 return (ctf_set_open_errno(errp, errno)); in ctf_fdopen()
471 ctf_open(const char *filename, int *errp) in ctf_open() argument
477 if (errp != NULL) in ctf_open()
478 *errp = errno; in ctf_open()
[all …]
/freebsd-13.1/sys/rpc/
H A Dclnt_bck.c200 struct rpc_err *errp; in clnt_bck_call() local
228 errp = &ext->rc_err; in clnt_bck_call()
231 errp = &ct->ct_error; in clnt_bck_call()
296 if (errp != &ct->ct_error) { in clnt_bck_call()
298 errp->re_status = RPC_CANTRECV; in clnt_bck_call()
348 errp->re_errno = error; in clnt_bck_call()
360 errp->re_errno = cr->cr_error; in clnt_bck_call()
389 errp->re_errno = error; in clnt_bck_call()
400 errp->re_status = stat; in clnt_bck_call()
409 errp->re_errno = cr->cr_error; in clnt_bck_call()
[all …]
H A Dclnt_dg.c342 struct rpc_err *errp; in clnt_dg_call() local
373 errp = &ext->rc_err; in clnt_dg_call()
376 errp = &cu->cu_error; in clnt_dg_call()
399 errp->re_errno = error; in clnt_dg_call()
466 errp->re_errno = error; in clnt_dg_call()
499 errp->re_errno = error; in clnt_dg_call()
515 errp->re_errno = cr->cr_error; in clnt_dg_call()
638 errp->re_errno = error; in clnt_dg_call()
650 errp->re_errno = EWOULDBLOCK; in clnt_dg_call()
671 errp->re_errno = ESHUTDOWN; in clnt_dg_call()
[all …]
H A Dclnt_vc.c305 struct rpc_err *errp; in clnt_vc_call() local
333 errp = &ext->rc_err; in clnt_vc_call()
336 errp = &ct->ct_error; in clnt_vc_call()
414 if (errp != &ct->ct_error) { in clnt_vc_call()
416 errp->re_status = RPC_CANTRECV; in clnt_vc_call()
469 errp->re_errno = error; in clnt_vc_call()
481 errp->re_errno = cr->cr_error; in clnt_vc_call()
510 errp->re_errno = error; in clnt_vc_call()
521 errp->re_status = stat; in clnt_vc_call()
530 errp->re_errno = cr->cr_error; in clnt_vc_call()
[all …]
H A Dclnt.h295 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
296 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
H A Dclnt_rc.c381 clnt_reconnect_geterr(CLIENT *cl, struct rpc_err *errp) in clnt_reconnect_geterr() argument
385 *errp = rc->rc_err; in clnt_reconnect_geterr()
/freebsd-13.1/contrib/less/
H A Doption.c626 num_error(printopt, errp) in num_error() argument
628 int *errp;
632 if (errp != NULL)
634 *errp = TRUE;
651 getnum(sp, printopt, errp) in getnum() argument
654 int *errp;
674 if (errp != NULL)
675 *errp = FALSE;
691 int *errp;
713 if (errp != NULL)
[all …]
H A Dfuncs.h270 public int getnum LESSPARAMS ((char **sp, char *printopt, int *errp));
271 public long getfraction LESSPARAMS ((char **sp, char *printopt, int *errp));
/freebsd-13.1/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_open.c845 if (errp != NULL) in set_open_errno()
846 *errp = err; in set_open_errno()
1025 dt_vopen(int version, int flags, int *errp, in dt_vopen() argument
1050 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
1071 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
1074 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
1077 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
1150 return (set_open_errno(dtp, errp, err)); in dt_vopen()
1240 return (set_open_errno(dtp, errp, errno)); in dt_vopen()
1380 return (set_open_errno(dtp, errp, EDT_CTF)); in dt_vopen()
[all …]
/freebsd-13.1/lib/libc/net/
H A Dname6.c233 *errp = NO_RECOVERY; in getipnodebyname()
256 *errp = HOST_NOT_FOUND; in getipnodebyname()
267 *errp = HOST_NOT_FOUND; in getipnodebyname()
278 *errp = NETDB_INTERNAL; in getipnodebyname()
287 hp = _hpcopy(hp, errp); in getipnodebyname()
333 *errp = NO_RECOVERY; in getipnodebyaddr()
346 *errp = NO_RECOVERY; in getipnodebyaddr()
366 *errp = NO_RECOVERY; in getipnodebyaddr()
386 return (_hpcopy(hp, errp)); in getipnodebyaddr()
441 *errp = TRY_AGAIN; in _hpcopy()
[all …]
/freebsd-13.1/usr.bin/top/
H A Dcommands.c220 struct errs *errp; in err_string() local
244 errp = &(errs[cnt++]); in err_string()
245 if (errp->errnum != currerr) in err_string()
255 currerr = errp->errnum; in err_string()
258 if ((stringlen = str_addarg(string, stringlen, errp->arg, first)) ==0) in err_string()
361 struct errs *errp = errs; in show_errors() local
366 printf("%5s: %s\n", errp->arg, in show_errors()
367 errp->errnum == 0 ? "Not a number" : strerror(errp->errnum)); in show_errors()
368 errp++; in show_errors()
/freebsd-13.1/sys/dev/hyperv/utilities/
H A 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-13.1/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-13.1/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()
767 return (ctf_set_open_errno(errp, ECTF_CTFVERS)); in ctf_bufopen()
798 if (ctf_zopen(errp) == NULL) in ctf_bufopen()
837 return (ctf_set_open_errno(errp, EAGAIN)); in ctf_bufopen()
898 (void) ctf_set_open_errno(errp, EAGAIN); in ctf_bufopen()
903 (void) ctf_set_open_errno(errp, err); 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-13.1/include/rpc/
H A Dclnt.h182 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
183 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
/freebsd-13.1/contrib/nvi/ex/
H A Dex.c1627 *errp = 0; in ex_range()
1662 *errp = 1; in ex_range()
1741 if (*errp) in ex_range()
1796 *errp = 1; in ex_range()
1837 *errp = 1; in ex_line()
1859 *errp = 1; in ex_line()
1864 *errp = 1; in ex_line()
1878 *errp = 1; in ex_line()
1882 *errp = 1; in ex_line()
1898 *errp = 1; in ex_line()
[all …]
/freebsd-13.1/sys/fs/nfsserver/
H A Dnfs_nfsdsubs.c1543 short *defaulterrp, *errp; in nfsd_errmap() local
1553 errp = defaulterrp = nfsrv_v3errmap[nd->nd_procnum]; in nfsd_errmap()
1567 errp = defaulterrp = nfsrv_v4errmap[nd->nd_procnum]; in nfsd_errmap()
1568 while (*++errp) in nfsd_errmap()
1569 if (*errp == nd->nd_repstat) in nfsd_errmap()
1744 short *errp; in nfsrv_errmoved() local
1746 errp = nfsrv_v4errmap[op]; in nfsrv_errmoved()
1747 while (*errp != 0) { in nfsrv_errmoved()
1748 if (*errp == NFSERR_MOVED) in nfsrv_errmoved()
1750 errp++; in nfsrv_errmoved()
/freebsd-13.1/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-13.1/lib/libkvm/
H A Dkvm_private.h63 char *errp; /* XXX this can probably go away */ member
/freebsd-13.1/contrib/telnet/telnet/
H A Dtelnet.c702 setupterm(char *tname, int fd, int *errp) in setupterm() argument
706 if (errp) in setupterm()
707 *errp = 1; in setupterm()
710 if (errp) in setupterm()
711 *errp = 0; in setupterm()
/freebsd-13.1/lib/libc/rpc/
H A Dclnt_vc.c462 clnt_vc_geterr(CLIENT *cl, struct rpc_err *errp) in clnt_vc_geterr() argument
467 assert(errp != NULL); in clnt_vc_geterr()
470 *errp = ct->ct_error; in clnt_vc_geterr()
H A Dclnt_dg.c612 clnt_dg_geterr(CLIENT *cl, struct rpc_err *errp) in clnt_dg_geterr() argument
616 *errp = cu->cu_error; in clnt_dg_geterr()
/freebsd-13.1/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()
/freebsd-13.1/sys/dev/md/
H A Dmd.c1268 mdnew(int unit, int *errp, enum md_types type) in mdnew() argument
1273 *errp = 0; in mdnew()
1280 *errp = EBUSY; in mdnew()
1298 *errp = error; in mdnew()

12