* include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
rexec_af, rresvport_af, ruserok_af.
* inet/rcmd.c: Add libc_hidden_def.
* inet/getnetgrent_r.c: Likewise.
# define __set_h_errno(x) (h_errno = (x))
# endif /* _LIBC_REENTRANT */
+libc_hidden_proto (innetgr)
+libc_hidden_proto (rcmd_af)
+libc_hidden_proto (rexec_af)
+libc_hidden_proto (rresvport_af)
+libc_hidden_proto (ruserok_af)
+
/* Document internal interfaces. */
extern int __gethostent_r (struct hostent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
return result == 1;
}
+libc_hidden_def (innetgr)
freeaddrinfo(res);
return -1;
}
+libc_hidden_def (rcmd_af)
int
rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
__set_errno (EAGAIN);
return -1;
}
+libc_hidden_def (rresvport_af)
int
rresvport(alport)
freeaddrinfo(res0);
return (ret);
}
+libc_hidden_def (ruserok_af)
+
int
ruserok(rhost, superuser, ruser, luser)
const char *rhost, *ruser, *luser;