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

12

/freebsd-current/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c89 ctf_zopen(int *errp) argument
98 return (ctf_set_open_errno(errp, ECTF_ZMISSING));
101 return (ctf_set_open_errno(errp, ECTF_ZINIT));
109 return (ctf_set_open_errno(errp, ECTF_ZINIT));
216 ctf_fdopen(int fd, int *errp) argument
237 return (ctf_set_open_errno(errp, errno));
240 return (ctf_set_open_errno(errp, nbytes < 0? errno : ECTF_FMT));
250 return (ctf_set_open_errno(errp, ECTF_CTFVERS));
256 return (ctf_set_open_errno(errp, errno));
265 if ((fp = ctf_bufopen(&ctfsect, NULL, NULL, errp))
471 ctf_open(const char *filename, int *errp) argument
[all...]
/freebsd-current/usr.bin/mdo/
H A Dmdo.c50 const char *errp = NULL; local
51 uid_t uid = strtonum(username, 0, UID_MAX, &errp);
52 if (errp != NULL)
53 err(EXIT_FAILURE, "%s", errp);
/freebsd-current/sys/cddl/contrib/opensolaris/uts/common/ctf/
H A Dctf_mod.c67 ctf_zopen(int *errp) argument
88 ctf_fdopen(int fd, int *errp) argument
90 return (ctf_set_open_errno(errp, ENOTSUP));
95 ctf_open(const char *filename, int *errp) argument
97 return (ctf_set_open_errno(errp, ENOTSUP));
/freebsd-current/usr.bin/top/
H A Dcommands.c218 struct errs *errp; local
242 errp = &(errs[cnt++]);
243 if (errp->errnum != currerr)
253 currerr = errp->errnum;
256 if ((stringlen = str_addarg(string, stringlen, errp->arg, first)) ==0)
359 struct errs *errp = errs; local
364 printf("%5s: %s\n", errp->arg,
365 errp->errnum == 0 ? "Not a number" : strerror(errp->errnum));
366 errp
[all...]
/freebsd-current/sys/dev/hyperv/utilities/
H A Dunicode.h44 int flags, int *errp)
132 if (errp)
133 *errp = error;
144 int flags, int *errp)
192 if (errp)
193 *errp = error;
42 utf8_to_utf16(uint16_t *dst, size_t dst_len, const char *src, size_t src_len, int flags, int *errp) argument
142 utf16_to_utf8(char *dst, size_t dst_len, const uint16_t *src, size_t src_len, int flags, int *errp) argument
/freebsd-current/sys/rpc/
H A Dclnt_bck.c193 struct rpc_err *errp; local
221 errp = &ext->rc_err;
224 errp = &ct->ct_error;
260 errp->re_status = stat = RPC_SUCCESS;
265 errp->re_status = stat = RPC_CANTENCODEARGS;
289 if (errp != &ct->ct_error) {
290 errp->re_errno = ct->ct_error.re_errno;
291 errp->re_status = RPC_CANTRECV;
341 errp->re_errno = error;
342 errp
485 clnt_bck_geterr(CLIENT *cl, struct rpc_err *errp) argument
[all...]
H A Dclnt_dg.c335 struct rpc_err *errp; local
366 errp = &ext->rc_err;
369 errp = &cu->cu_error;
392 errp->re_errno = error;
393 errp->re_status = stat = RPC_CANTSEND;
442 errp->re_status = stat = RPC_CANTENCODEARGS;
459 errp->re_errno = error;
461 errp->re_status = stat = RPC_INTR;
463 errp->re_status = stat = RPC_CANTSEND;
492 errp
781 clnt_dg_geterr(CLIENT *cl, struct rpc_err *errp) argument
[all...]
H A Dclnt_vc.c296 struct rpc_err *errp; local
324 errp = &ext->rc_err;
327 errp = &ct->ct_error;
376 errp->re_status = stat = RPC_SUCCESS;
381 errp->re_status = stat = RPC_CANTENCODEARGS;
405 if (errp != &ct->ct_error) {
406 errp->re_errno = ct->ct_error.re_errno;
407 errp->re_status = RPC_CANTRECV;
462 errp->re_errno = error;
463 errp
609 clnt_vc_geterr(CLIENT *cl, struct rpc_err *errp) argument
[all...]
H A Dclnt.h291 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp))
292 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp))
H A Dclnt_rc.c386 clnt_reconnect_geterr(CLIENT *cl, struct rpc_err *errp) argument
390 *errp = rc->rc_err;
/freebsd-current/cddl/contrib/opensolaris/common/ctf/
H A Dctf_util.c132 * Store the specified error code into errp if it is non-NULL, and then
136 ctf_set_open_errno(int *errp, int error) argument
138 if (errp != NULL)
139 *errp = error;
H A Dctf_open.c719 const ctf_sect_t *strsect, int *errp)
729 return (ctf_set_open_errno(errp, EINVAL));
733 return (ctf_set_open_errno(errp, ECTF_SYMTAB));
736 return (ctf_set_open_errno(errp, ECTF_SYMBAD));
739 return (ctf_set_open_errno(errp, ECTF_STRBAD));
742 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF));
756 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF));
761 return (ctf_set_open_errno(errp, ECTF_NOCTFBUF));
767 return (ctf_set_open_errno(errp, ECTF_CTFVERS));
776 return (ctf_set_open_errno(errp, ECTF_CORRUP
718 ctf_bufopen(const ctf_sect_t *ctfsect, const ctf_sect_t *symsect, const ctf_sect_t *strsect, int *errp) argument
[all...]
/freebsd-current/contrib/less/
H A Doption.c596 static int num_error(char *printopt, int *errp, int overflow) argument
600 if (errp != NULL)
602 *errp = TRUE;
621 public int getnum(char **sp, char *printopt, int *errp) argument
635 return (num_error(printopt, errp, FALSE));
639 return (num_error(printopt, errp, TRUE));
640 if (errp != NULL)
641 *errp = FALSE;
653 public long getfraction(char **sp, char *printopt, int *errp) argument
661 return (num_error(printopt, errp, FALS
[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-current/lib/libc/net/
H A Dname6.c216 getipnodebyname(const char *name, int af, int flags, int *errp) argument
230 *errp = NO_RECOVERY;
253 *errp = HOST_NOT_FOUND;
256 return _hpaddr(af, name, &addrbuf, errp);
264 *errp = HOST_NOT_FOUND;
268 return _hpaddr(af, name, &addrbuf, errp);
275 *errp = NETDB_INTERNAL;
284 hp = _hpcopy(hp, errp);
294 *errp = statp->res_h_errno;
296 hp = _hpmapv6(hp2, errp);
315 getipnodebyaddr(const void *src, size_t len, int af, int *errp) argument
400 _hpcopy(struct hostent *hp, int *errp) argument
479 _hpaddr(int af, const char *name, void *addr, int *errp) argument
500 _hpmerge(struct hostent *hp1, struct hostent *hp2, int *errp) argument
567 _hpmapv6(struct hostent *hp, int *errp) argument
[all...]
/freebsd-current/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_open.c844 set_open_errno(dtrace_hdl_t *dtp, int *errp, int err) argument
848 if (errp != NULL)
849 *errp = err;
1028 dt_vopen(int version, int flags, int *errp, argument
1053 return (set_open_errno(dtp, errp, EINVAL));
1056 return (set_open_errno(dtp, errp, EDT_VERSION));
1070 return (set_open_errno(dtp, errp, EDT_OVERSION));
1074 return (set_open_errno(dtp, errp, EINVAL));
1077 return (set_open_errno(dtp, errp, EINVAL));
1080 return (set_open_errno(dtp, errp, EINVA
1624 dtrace_open(int version, int flags, int *errp) argument
1630 dtrace_vopen(int version, int flags, int *errp, const dtrace_vector_t *vector, void *arg) argument
[all...]
/freebsd-current/include/rpc/
H A Dclnt.h178 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp))
179 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp))
/freebsd-current/contrib/nvi/ex/
H A Dex.c1628 ex_range(SCR *sp, EXCMD *ecp, int *errp) argument
1636 *errp = 0;
1671 *errp = 1;
1686 *errp = 1;
1706 *errp = 1;
1748 if (ex_line(sp, ecp, &m, &isaddr, errp))
1750 if (*errp)
1756 *errp = 1;
1805 *errp = 1;
1827 ex_line(SCR *sp, EXCMD *ecp, MARK *mp, int *isaddrp, int *errp) argument
[all...]
/freebsd-current/sys/fs/nfsserver/
H A Dnfs_nfsdsubs.c1544 short *defaulterrp, *errp; local
1554 errp = defaulterrp = nfsrv_v3errmap[nd->nd_procnum];
1568 errp = defaulterrp = nfsrv_v4errmap[nd->nd_procnum];
1569 while (*++errp)
1570 if (*errp == nd->nd_repstat)
1747 short *errp; local
1749 errp = nfsrv_v4errmap[op];
1750 while (*errp != 0) {
1751 if (*errp == NFSERR_MOVED)
1753 errp
[all...]
/freebsd-current/lib/libkvm/
H A Dkvm_private.h60 char *errp; /* XXX this can probably go away */ member in struct:__kvm
/freebsd-current/crypto/heimdal/appl/telnet/telnet/
H A Dtelnet.c639 telnet_setupterm(const char *tname, int fd, int *errp) argument
644 if (errp)
645 *errp = 1;
648 if (errp)
649 *errp = 0;
653 if(errp) *errp = 1;
/freebsd-current/contrib/telnet/telnet/
H A Dtelnet.c700 setupterm(char *tname, int fd, int *errp) argument
704 if (errp)
705 *errp = 1;
708 if (errp)
709 *errp = 0;
/freebsd-current/contrib/bsnmp/lib/
H A Dsnmpagent.c111 * Return the node pointer. If the search fails, set the errp to
115 find_node(const struct snmp_value *value, enum snmp_syntax *errp) argument
137 *errp = SNMP_SYNTAX_NOSUCHOBJECT;
147 *errp = SNMP_SYNTAX_NOSUCHINSTANCE;
/freebsd-current/lib/libc/rpc/
H A Dclnt_vc.c452 clnt_vc_geterr(CLIENT *cl, struct rpc_err *errp) argument
457 assert(errp != NULL);
460 *errp = ct->ct_error;
/freebsd-current/include/arpa/
H A Dnameser.h582 u_int32_t ns_datetosecs(const char *cp, int *errp);

Completed in 228 milliseconds

12