Home
last modified time | relevance | path

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

12

/freebsd-14.2/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-14.2/sys/rpc/
H A Dclnt_bck.c198 struct rpc_err *errp; in clnt_bck_call() local
226 errp = &ext->rc_err; in clnt_bck_call()
229 errp = &ct->ct_error; in clnt_bck_call()
294 if (errp != &ct->ct_error) { in clnt_bck_call()
296 errp->re_status = RPC_CANTRECV; in clnt_bck_call()
346 errp->re_errno = error; in clnt_bck_call()
358 errp->re_errno = cr->cr_error; in clnt_bck_call()
387 errp->re_errno = error; in clnt_bck_call()
398 errp->re_status = stat; in clnt_bck_call()
407 errp->re_errno = cr->cr_error; in clnt_bck_call()
[all …]
H A Dclnt_dg.c340 struct rpc_err *errp; in clnt_dg_call() local
371 errp = &ext->rc_err; in clnt_dg_call()
374 errp = &cu->cu_error; in clnt_dg_call()
397 errp->re_errno = error; in clnt_dg_call()
464 errp->re_errno = error; in clnt_dg_call()
497 errp->re_errno = error; in clnt_dg_call()
513 errp->re_errno = cr->cr_error; in clnt_dg_call()
636 errp->re_errno = error; in clnt_dg_call()
648 errp->re_errno = EWOULDBLOCK; in clnt_dg_call()
669 errp->re_errno = ESHUTDOWN; in clnt_dg_call()
[all …]
H A Dclnt_vc.c301 struct rpc_err *errp; in clnt_vc_call() local
329 errp = &ext->rc_err; in clnt_vc_call()
332 errp = &ct->ct_error; in clnt_vc_call()
410 if (errp != &ct->ct_error) { in clnt_vc_call()
412 errp->re_status = RPC_CANTRECV; in clnt_vc_call()
467 errp->re_errno = error; in clnt_vc_call()
479 errp->re_errno = cr->cr_error; in clnt_vc_call()
508 errp->re_errno = error; in clnt_vc_call()
519 errp->re_status = stat; in clnt_vc_call()
528 errp->re_errno = cr->cr_error; in clnt_vc_call()
[all …]
H A Dclnt.h294 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
295 #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-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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-14.2/usr.bin/mdo/
H A Dmdo.c50 const char *errp = NULL; in main() local
51 uid_t uid = strtonum(username, 0, UID_MAX, &errp); in main()
52 if (errp != NULL) in main()
53 err(EXIT_FAILURE, "%s", errp); in main()
/freebsd-14.2/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-14.2/include/rpc/
H A Dclnt.h181 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
182 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
/freebsd-14.2/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-14.2/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-14.2/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-14.2/lib/libkvm/
H A Dkvm_private.h62 char *errp; /* XXX this can probably go away */ member
/freebsd-14.2/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-14.2/lib/libc/rpc/
H A Dclnt_vc.c457 clnt_vc_geterr(CLIENT *cl, struct rpc_err *errp) in clnt_vc_geterr() argument
462 assert(errp != NULL); in clnt_vc_geterr()
465 *errp = ct->ct_error; in clnt_vc_geterr()
H A Dclnt_dg.c608 clnt_dg_geterr(CLIENT *cl, struct rpc_err *errp) in clnt_dg_geterr() argument
612 *errp = cu->cu_error; in clnt_dg_geterr()
/freebsd-14.2/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