Home
last modified time | relevance | path

Searched refs:ret_errno (Results 1 – 10 of 10) sorted by relevance

/freebsd/lib/libc/net/
H A Dgetnetnamadr.c216 int *ret_errno; in net_unmarshal_func() local
239 ret_errno = va_arg(ap, int *); in net_unmarshal_func()
243 *ret_errno = ERANGE; in net_unmarshal_func()
355 int rval, ret_errno = 0; in getnetbyname_r() local
359 &ret_errno, h_errorp); in getnetbyname_r()
362 errno = ret_errno; in getnetbyname_r()
363 return ((ret_errno != 0) ? ret_errno : -1); in getnetbyname_r()
387 int rval, ret_errno = 0; in getnetbyaddr_r() local
391 &ret_errno, h_errorp); in getnetbyaddr_r()
394 errno = ret_errno; in getnetbyaddr_r()
[all …]
H A Dgetproto.c107 int rv, ret_errno; in getprotobynumber_r() local
109 ret_errno = 0; in getprotobynumber_r()
112 defaultsrc, proto, pptr, buffer, buflen, &ret_errno); in getprotobynumber_r()
115 errno = ret_errno; in getprotobynumber_r()
116 return (ret_errno); in getprotobynumber_r()
H A Dgetprotoname.c121 int rv, ret_errno; in getprotobyname_r() local
123 ret_errno = 0; in getprotobyname_r()
126 defaultsrc, name, pptr, buffer, buflen, &ret_errno); in getprotobyname_r()
129 errno = ret_errno; in getprotobyname_r()
130 return (ret_errno); in getprotobyname_r()
H A Dgetprotoent.c233 int *ret_errno; in __proto_unmarshal_func() local
255 ret_errno = va_arg(ap, int *); in __proto_unmarshal_func()
259 *ret_errno = ERANGE; in __proto_unmarshal_func()
483 int rv, ret_errno; in getprotoent_r() local
485 ret_errno = 0; in getprotoent_r()
488 defaultsrc, pptr, buffer, buflen, &ret_errno); in getprotoent_r()
491 errno = ret_errno; in getprotoent_r()
492 return (ret_errno); in getprotoent_r()
H A Dgethostnamadr.c527 int rval, ret_errno = 0; in gethostbyname_internal() local
573 &ret_errno, h_errnop); in gethostbyname_internal()
576 errno = ret_errno; in gethostbyname_internal()
577 return ((ret_errno != 0) ? ret_errno : -1); in gethostbyname_internal()
589 int rval, ret_errno = 0; in gethostbyaddr_r() local
652 &ret_errno, h_errnop); in gethostbyaddr_r()
655 errno = ret_errno; in gethostbyaddr_r()
656 return ((ret_errno != 0) ? ret_errno : -1); in gethostbyaddr_r()
H A Dgetservent.c1053 int *ret_errno; in serv_unmarshal_func() local
1074 ret_errno = va_arg(ap, int *); in serv_unmarshal_func()
1078 *ret_errno = ERANGE; in serv_unmarshal_func()
1134 int rv, ret_errno; in getservbyname_r() local
1136 ret_errno = 0; in getservbyname_r()
1139 defaultsrc, name, proto, serv, buffer, bufsize, &ret_errno); in getservbyname_r()
1144 return (ret_errno); in getservbyname_r()
1171 int rv, ret_errno; in getservbyport_r() local
1173 ret_errno = 0; in getservbyport_r()
1176 defaultsrc, port, proto, serv, buffer, bufsize, &ret_errno); in getservbyport_r()
[all …]
/freebsd/lib/libc/gen/
H A Dgetnetgrent.c603 int rv, ret_errno; local
620 ret_errno = 0;
623 &ret_errno);
624 if (rv != NS_SUCCESS && ret_errno == ERANGE) {
630 } while (rv != NS_SUCCESS && ret_errno == ERANGE);
633 if (rv == NS_NOTFOUND && ret_errno == 0)
927 int rv, ret_errno; local
929 ret_errno = 0;
931 defaultsrc, hostp, userp, domp, buf, bufsize, &ret_errno);
935 errno = ret_errno;
[all …]
H A Dgetgrent.c309 int *ret_errno; in grp_unmarshal_func() local
331 ret_errno = va_arg(ap, int *); in grp_unmarshal_func()
335 *ret_errno = ERANGE; in grp_unmarshal_func()
342 *ret_errno = 0; in grp_unmarshal_func()
351 *ret_errno = ERANGE; in grp_unmarshal_func()
479 int i, rv, ret_errno; in getgroupmembership_fallback() local
506 ret_errno = 0; in getgroupmembership_fallback()
509 "getgrent_r", src, &grp, buf, bufsize, &ret_errno); in getgroupmembership_fallback()
511 if (grp_p == NULL && ret_errno == ERANGE) { in getgroupmembership_fallback()
525 } while (grp_p == NULL && ret_errno == ERANGE); in getgroupmembership_fallback()
[all …]
H A Dgetpwent.c366 int *ret_errno; in pwd_unmarshal_func() local
387 ret_errno = va_arg(ap, int *); in pwd_unmarshal_func()
391 *ret_errno = ERANGE; in pwd_unmarshal_func()
398 *ret_errno = 0; in pwd_unmarshal_func()
530 int rv, ret_errno; in getpwent_r() local
533 ret_errno = 0; in getpwent_r()
536 pwd, buffer, bufsize, &ret_errno); in getpwent_r()
540 return (ret_errno); in getpwent_r()
569 int rv, ret_errno; in getpwnam_r() local
572 ret_errno = 0; in getpwnam_r()
[all …]
/freebsd/lib/libc/rpc/
H A Dgetrpcent.c746 int *ret_errno; in rpc_unmarshal_func() local
768 ret_errno = va_arg(ap, int *); in rpc_unmarshal_func()
772 *ret_errno = ERANGE; in rpc_unmarshal_func()
825 int rv, ret_errno; in getrpcbyname_r() local
827 ret_errno = 0; in getrpcbyname_r()
830 name, rpc, buffer, bufsize, &ret_errno); in getrpcbyname_r()
835 return (ret_errno); in getrpcbyname_r()
858 int rv, ret_errno; in getrpcbynumber_r() local
860 ret_errno = 0; in getrpcbynumber_r()
863 number, rpc, buffer, bufsize, &ret_errno); in getrpcbynumber_r()
[all …]