Lines Matching refs:hostf
77 static int _validuser(FILE *hostf, char *rhost, const char *luser,
559 FILE *hostf;
589 if ((hostf = fopen("/etc/hosts.equiv", "rF")) != NULL) {
590 if (!_validuser(hostf, fhost, luser, ruser, baselen)) {
591 (void) fclose(hostf);
594 (void) fclose(hostf);
617 if ((hostf = fopen(pbuf, "rF")) == NULL) {
625 (void) fstat64(fileno(hostf), &sbuf);
627 (void) fclose(hostf);
636 if (!_validuser(hostf, fhost, luser, ruser, baselen)) {
637 (void) fclose(hostf);
646 (void) fclose(hostf);
656 _validuser(FILE *hostf, char *rhost, const char *luser,
671 while (fgets(ahost, (int)sizeof (ahost), hostf)) {
680 while (fgets(ahost, (int)sizeof (ahost), hostf) &&