Searched refs:hostf (Results 1 – 7 of 7) sorted by relevance
/freebsd/crypto/heimdal/lib/roken/ |
H A D | iruserok.c | 89 __ivaliduser(FILE *hostf, unsigned raddr, const char *luser, in __ivaliduser() argument 114 while (fgets(buf, sizeof(buf), hostf)) { in __ivaliduser() 118 while ((ch = getc(hostf)) != '\n' && ch != EOF); in __ivaliduser() 223 FILE *hostf; in iruserok() local 229 hostf = superuser ? NULL : fopen(_PATH_HEQUIV, "r"); in iruserok() 231 if (hostf) { in iruserok() 232 if (__ivaliduser(hostf, raddr, luser, ruser) == 0) { in iruserok() 233 fclose(hostf); in iruserok() 236 fclose(hostf); in iruserok() 252 hostf = fopen(pbuf, "r"); in iruserok() [all …]
|
/freebsd/lib/libbluetooth/ |
H A D | bluetooth.c | 44 static FILE *hostf = NULL; variable 105 if (hostf == NULL) in bt_gethostent() 106 hostf = fopen(_PATH_BT_HOSTS, "r"); in bt_gethostent() 108 if (hostf == NULL) { in bt_gethostent() 113 if ((p = fgets(buf, sizeof(buf), hostf)) == NULL) { in bt_gethostent() 157 if (hostf == NULL) in bt_sethostent() 158 hostf = fopen(_PATH_BT_HOSTS, "r"); in bt_sethostent() 160 rewind(hostf); in bt_sethostent() 168 if (hostf != NULL && host_stayopen == 0) { in bt_endhostent() 169 (void) fclose(hostf); in bt_endhostent() [all …]
|
/freebsd/lib/libc/net/ |
H A D | rcmd.c | 427 FILE *hostf; in iruserok_sa() local 441 hostf = superuser ? NULL : fopen(_PATH_HEQUIV, "re"); in iruserok_sa() 443 if (hostf) { in iruserok_sa() 444 if (__ivaliduser_sa(hostf, raddr, rlen, luser, ruser) == 0) { in iruserok_sa() 445 (void)fclose(hostf); in iruserok_sa() 448 (void)fclose(hostf); in iruserok_sa() 464 hostf = fopen(pbuf, "re"); in iruserok_sa() 467 if (hostf == NULL) in iruserok_sa() 478 else if (_fstat(fileno(hostf), &sbuf) < 0) in iruserok_sa() 487 (void)fclose(hostf); in iruserok_sa() [all …]
|
H A D | gethostbyht.c | 70 if (!hed->hostf) in _sethosthtent() 71 hed->hostf = fopen(_PATH_HOSTS, "re"); in _sethosthtent() 73 rewind(hed->hostf); in _sethosthtent() 80 if (hed->hostf && !hed->stayopen) { in _endhosthtent() 81 (void) fclose(hed->hostf); in _endhosthtent() 82 hed->hostf = NULL; in _endhosthtent() 95 if (!hed->hostf && !(hed->hostf = fopen(_PATH_HOSTS, "re"))) { in gethostent_p() 100 if (!(p = fgets(hostbuf, sizeof hostbuf, hed->hostf))) { in gethostent_p()
|
H A D | getaddrinfo.c | 2381 _sethtent(FILE **hostf) in _sethtent() argument 2383 if (!*hostf) in _sethtent() 2384 *hostf = fopen(_PATH_HOSTS, "re"); in _sethtent() 2386 rewind(*hostf); in _sethtent() 2390 _endhtent(FILE **hostf) in _endhtent() argument 2392 if (*hostf) { in _endhtent() 2393 (void) fclose(*hostf); in _endhtent() 2394 *hostf = NULL; in _endhtent() 2399 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai) in _gethtent() argument 2408 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re"))) in _gethtent() [all …]
|
H A D | netdb_private.h | 79 FILE *hostf; member
|
/freebsd/usr.sbin/lpr/lpd/ |
H A D | lpd.c | 652 register FILE *hostf; in chkhost() local 750 hostf = fopen(_PATH_HOSTSEQUIV, "r"); in chkhost() 752 if (hostf) { in chkhost() 753 if (__ivaliduser_sa(hostf, f, f->sa_len, DUMMY, DUMMY) == 0) { in chkhost() 754 (void) fclose(hostf); in chkhost() 757 (void) fclose(hostf); in chkhost() 761 hostf = fopen(_PATH_HOSTSLPD, "r"); in chkhost()
|