Home
last modified time | relevance | path

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

12

/freebsd/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/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()
289 if (errp != &ct->ct_error) { in clnt_bck_call()
291 errp->re_status = RPC_CANTRECV; in clnt_bck_call()
341 errp->re_errno = error; in clnt_bck_call()
353 errp->re_errno = cr->cr_error; in clnt_bck_call()
382 errp->re_errno = error; in clnt_bck_call()
393 errp->re_status = stat; in clnt_bck_call()
402 errp->re_errno = cr->cr_error; 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()
459 errp->re_errno = error; in clnt_dg_call()
492 errp->re_errno = error; in clnt_dg_call()
508 errp->re_errno = cr->cr_error; in clnt_dg_call()
631 errp->re_errno = error; in clnt_dg_call()
643 errp->re_errno = EWOULDBLOCK; in clnt_dg_call()
664 errp->re_errno = ESHUTDOWN; in clnt_dg_call()
[all …]
H A Dclnt_vc.c296 struct rpc_err *errp; in clnt_vc_call() local
324 errp = &ext->rc_err; in clnt_vc_call()
327 errp = &ct->ct_error; in clnt_vc_call()
405 if (errp != &ct->ct_error) { in clnt_vc_call()
407 errp->re_status = RPC_CANTRECV; in clnt_vc_call()
462 errp->re_errno = error; in clnt_vc_call()
474 errp->re_errno = cr->cr_error; in clnt_vc_call()
503 errp->re_errno = error; in clnt_vc_call()
514 errp->re_status = stat; in clnt_vc_call()
523 errp->re_errno = cr->cr_error; in clnt_vc_call()
[all …]
H A Dclnt.h291 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
292 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
H A Dclnt_rc.c386 clnt_reconnect_geterr(CLIENT *cl, struct rpc_err *errp) in clnt_reconnect_geterr() argument
390 *errp = rc->rc_err; in clnt_reconnect_geterr()
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_open.c848 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()
1074 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
1077 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
1080 return (set_open_errno(dtp, errp, EINVAL)); in dt_vopen()
1162 return (set_open_errno(dtp, errp, err)); in dt_vopen()
1253 return (set_open_errno(dtp, errp, errno)); in dt_vopen()
1393 return (set_open_errno(dtp, errp, EDT_CTF)); in dt_vopen()
[all …]
/freebsd/lib/libc/net/
H A Dname6.c230 *errp = NO_RECOVERY; in getipnodebyname()
253 *errp = HOST_NOT_FOUND; in getipnodebyname()
264 *errp = HOST_NOT_FOUND; in getipnodebyname()
275 *errp = NETDB_INTERNAL; in getipnodebyname()
284 hp = _hpcopy(hp, errp); in getipnodebyname()
330 *errp = NO_RECOVERY; in getipnodebyaddr()
343 *errp = NO_RECOVERY; in getipnodebyaddr()
363 *errp = NO_RECOVERY; in getipnodebyaddr()
383 return (_hpcopy(hp, errp)); in getipnodebyaddr()
438 *errp = TRY_AGAIN; in _hpcopy()
[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.c596 static int num_error(char *printopt, int *errp, int overflow) in num_error() argument
600 if (errp != NULL) in num_error()
602 *errp = TRUE; in num_error()
621 public int getnum(char **sp, char *printopt, int *errp) in getnum() argument
635 return (num_error(printopt, errp, FALSE)); in getnum()
639 return (num_error(printopt, errp, TRUE)); in getnum()
640 if (errp != NULL) in getnum()
641 *errp = FALSE; in getnum()
661 return (num_error(printopt, errp, FALSE)); in getfraction()
673 if (errp != NULL) in getfraction()
[all …]
H A Dfuncs.h290 public int getnum(char **sp, char *printopt, int *errp);
291 public long getfraction(char **sp, char *printopt, int *errp);
/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()
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/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.c1636 *errp = 0; in ex_range()
1671 *errp = 1; in ex_range()
1750 if (*errp) in ex_range()
1805 *errp = 1; in ex_range()
1846 *errp = 1; in ex_line()
1868 *errp = 1; in ex_line()
1873 *errp = 1; in ex_line()
1887 *errp = 1; in ex_line()
1891 *errp = 1; in ex_line()
1907 *errp = 1; in ex_line()
[all …]
/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdsubs.c1547 short *defaulterrp, *errp; in nfsd_errmap() local
1557 errp = defaulterrp = nfsrv_v3errmap[nd->nd_procnum]; in nfsd_errmap()
1571 errp = defaulterrp = nfsrv_v4errmap[nd->nd_procnum]; in nfsd_errmap()
1572 while (*++errp) in nfsd_errmap()
1573 if (*errp == nd->nd_repstat) in nfsd_errmap()
1750 short *errp; in nfsrv_errmoved() local
1752 errp = nfsrv_v4errmap[op]; in nfsrv_errmoved()
1753 while (*errp != 0) { in nfsrv_errmoved()
1754 if (*errp == NFSERR_MOVED) in nfsrv_errmoved()
1756 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/lib/libkvm/
H A Dkvm_private.h60 char *errp; /* XXX this can probably go away */ member
/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/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/sys/dev/md/
H A Dmd.c1265 mdnew(int unit, int *errp, enum md_types type) in mdnew() argument
1270 *errp = 0; in mdnew()
1277 *errp = EBUSY; in mdnew()
1295 *errp = error; in mdnew()

12