Home
last modified time | relevance | path

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

12

/freebsd-12.1/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c88 ctf_zopen(int *errp) in ctf_zopen() argument
215 ctf_fdopen(int fd, int *errp) in ctf_fdopen() argument
236 return (ctf_set_open_errno(errp, errno)); in ctf_fdopen()
254 return (ctf_set_open_errno(errp, errno)); in ctf_fdopen()
311 return (ctf_set_open_errno(errp, in ctf_fdopen()
321 return (ctf_set_open_errno(errp, in ctf_fdopen()
335 return (ctf_set_open_errno(errp, errno)); in ctf_fdopen()
469 ctf_open(const char *filename, int *errp) in ctf_open() argument
475 if (errp != NULL) in ctf_open()
476 *errp = errno; in ctf_open()
[all …]
/freebsd-12.1/sys/rpc/
H A 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()
289 if (errp != &ct->ct_error) { in clnt_bck_call()
291 errp->re_status = RPC_CANTRECV; in clnt_bck_call()
328 errp->re_errno = error; in clnt_bck_call()
340 errp->re_errno = cr->cr_error; in clnt_bck_call()
369 errp->re_errno = error; in clnt_bck_call()
380 errp->re_status = stat; in clnt_bck_call()
389 errp->re_errno = cr->cr_error; in clnt_bck_call()
[all …]
H A Dclnt_dg.c337 struct rpc_err *errp; in clnt_dg_call() local
368 errp = &ext->rc_err; in clnt_dg_call()
371 errp = &cu->cu_error; in clnt_dg_call()
394 errp->re_errno = error; in clnt_dg_call()
462 errp->re_errno = error; in clnt_dg_call()
495 errp->re_errno = error; in clnt_dg_call()
511 errp->re_errno = cr->cr_error; in clnt_dg_call()
634 errp->re_errno = error; in clnt_dg_call()
646 errp->re_errno = EWOULDBLOCK; in clnt_dg_call()
667 errp->re_errno = ESHUTDOWN; in clnt_dg_call()
[all …]
H A Dclnt_vc.c296 struct rpc_err *errp; in clnt_vc_call() local
321 errp = &ext->rc_err; in clnt_vc_call()
324 errp = &ct->ct_error; in clnt_vc_call()
402 if (errp != &ct->ct_error) { in clnt_vc_call()
404 errp->re_status = RPC_CANTRECV; in clnt_vc_call()
439 errp->re_errno = error; in clnt_vc_call()
451 errp->re_errno = cr->cr_error; in clnt_vc_call()
480 errp->re_errno = error; in clnt_vc_call()
491 errp->re_status = stat; in clnt_vc_call()
500 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.c354 clnt_reconnect_geterr(CLIENT *cl, struct rpc_err *errp) in clnt_reconnect_geterr() argument
358 *errp = rc->rc_err; in clnt_reconnect_geterr()
/freebsd-12.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-12.1/contrib/less/
H A 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;
653 if (errp != NULL)
654 *errp = FALSE;
670 int *errp;
692 if (errp != NULL)
[all …]
H A Dfuncs.h238 public int getnum LESSPARAMS ((char **sp, char *printopt, int *errp));
239 public long getfraction LESSPARAMS ((char **sp, char *printopt, int *errp));
/freebsd-12.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-12.1/usr.bin/top/
H A Dcommands.c219 struct errs *errp; in err_string() local
243 errp = &(errs[cnt++]); in err_string()
244 if (errp->errnum != currerr) in err_string()
254 currerr = errp->errnum; in err_string()
257 if ((stringlen = str_addarg(string, stringlen, errp->arg, first)) ==0) in err_string()
360 struct errs *errp = errs; in show_errors() local
365 printf("%5s: %s\n", errp->arg, in show_errors()
366 errp->errnum == 0 ? "Not a number" : strerror(errp->errnum)); in show_errors()
367 errp++; in show_errors()
/freebsd-12.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-12.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-12.1/cddl/contrib/opensolaris/common/ctf/
H A 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()
608 return (ctf_set_open_errno(errp, ECTF_CTFVERS)); in ctf_bufopen()
639 if (ctf_zopen(errp) == NULL) in ctf_bufopen()
678 return (ctf_set_open_errno(errp, EAGAIN)); in ctf_bufopen()
738 (void) ctf_set_open_errno(errp, EAGAIN); in ctf_bufopen()
743 (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-12.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-12.1/contrib/nvi/ex/
H A Dex.c1630 *errp = 0; in ex_range()
1665 *errp = 1; in ex_range()
1744 if (*errp) in ex_range()
1799 *errp = 1; in ex_range()
1840 *errp = 1; in ex_line()
1862 *errp = 1; in ex_line()
1867 *errp = 1; in ex_line()
1881 *errp = 1; in ex_line()
1885 *errp = 1; in ex_line()
1901 *errp = 1; in ex_line()
[all …]
/freebsd-12.1/sys/fs/nfsserver/
H A Dnfs_nfsdsubs.c1506 short *defaulterrp, *errp; in nfsd_errmap() local
1514 errp = defaulterrp = nfsrv_v3errmap[nd->nd_procnum]; in nfsd_errmap()
1526 errp = defaulterrp = nfsrv_v4errmap[nd->nd_procnum]; in nfsd_errmap()
1527 while (*++errp) in nfsd_errmap()
1528 if (*errp == nd->nd_repstat) in nfsd_errmap()
1703 short *errp; in nfsrv_errmoved() local
1705 errp = nfsrv_v4errmap[op]; in nfsrv_errmoved()
1706 while (*errp != 0) { in nfsrv_errmoved()
1707 if (*errp == NFSERR_MOVED) in nfsrv_errmoved()
1709 errp++; in nfsrv_errmoved()
/freebsd-12.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-12.1/lib/libkvm/
H A Dkvm_private.h62 char *errp; /* XXX this can probably go away */ member
/freebsd-12.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-12.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-12.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-12.1/sys/dev/md/
H A Dmd.c1267 mdnew(int unit, int *errp, enum md_types type) in mdnew() argument
1272 *errp = 0; in mdnew()
1279 *errp = EBUSY; in mdnew()
1299 *errp = error; in mdnew()

12