Lines Matching defs:hostf
427 FILE *hostf;
441 hostf = superuser ? NULL : fopen(_PATH_HEQUIV, "re");
443 if (hostf) {
444 if (__ivaliduser_sa(hostf, raddr, rlen, luser, ruser) == 0) {
445 (void)fclose(hostf);
448 (void)fclose(hostf);
464 hostf = fopen(pbuf, "re");
467 if (hostf == NULL)
478 else if (_fstat(fileno(hostf), &sbuf) < 0)
487 (void)fclose(hostf);
502 __ivaliduser(FILE *hostf, u_int32_t raddr, const char *luser, const char *ruser)
510 return __ivaliduser_sa(hostf, (struct sockaddr *)&sin, sin.sin_len,
520 __ivaliduser_af(FILE *hostf, const void *raddr, const char *luser,
556 return __ivaliduser_sa(hostf, sa, sa->sa_len, luser, ruser);
560 __ivaliduser_sa(FILE *hostf, const struct sockaddr *raddr, socklen_t salen,
582 while (fgets(buf, sizeof(buf), hostf)) {
586 while ((ch = getc(hostf)) != '\n' && ch != EOF);