Searched refs:hostf (Results 1 – 7 of 7) sorted by relevance
| /freebsd-12.1/crypto/heimdal/lib/roken/ |
| H A D | iruserok.c | 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() 233 fclose(hostf); in iruserok() 236 fclose(hostf); in iruserok() 252 hostf = fopen(pbuf, "r"); in iruserok() 255 if (hostf == NULL) in iruserok() 266 else if (fstat(fileno(hostf), &sbuf) < 0) in iruserok() [all …]
|
| /freebsd-12.1/lib/libbluetooth/ |
| H A D | bluetooth.c | 45 static FILE *hostf = NULL; variable 106 if (hostf == NULL) in bt_gethostent() 107 hostf = fopen(_PATH_BT_HOSTS, "r"); in bt_gethostent() 109 if (hostf == NULL) { in bt_gethostent() 114 if ((p = fgets(buf, sizeof(buf), hostf)) == NULL) { in bt_gethostent() 158 if (hostf == NULL) in bt_sethostent() 159 hostf = fopen(_PATH_BT_HOSTS, "r"); in bt_sethostent() 161 rewind(hostf); in bt_sethostent() 169 if (hostf != NULL && host_stayopen == 0) { in bt_endhostent() 170 (void) fclose(hostf); in bt_endhostent() [all …]
|
| /freebsd-12.1/lib/libc/net/ |
| H A D | rcmd.c | 433 FILE *hostf; in iruserok_sa() local 447 hostf = superuser ? NULL : fopen(_PATH_HEQUIV, "re"); in iruserok_sa() 449 if (hostf) { in iruserok_sa() 451 (void)fclose(hostf); in iruserok_sa() 454 (void)fclose(hostf); in iruserok_sa() 470 hostf = fopen(pbuf, "re"); in iruserok_sa() 473 if (hostf == NULL) in iruserok_sa() 484 else if (_fstat(fileno(hostf), &sbuf) < 0) in iruserok_sa() 493 (void)fclose(hostf); in iruserok_sa() 588 while (fgets(buf, sizeof(buf), hostf)) { in __ivaliduser_sa() [all …]
|
| H A D | gethostbyht.c | 76 if (!hed->hostf) in _sethosthtent() 77 hed->hostf = fopen(_PATH_HOSTS, "re"); in _sethosthtent() 79 rewind(hed->hostf); in _sethosthtent() 86 if (hed->hostf && !hed->stayopen) { in _endhosthtent() 87 (void) fclose(hed->hostf); in _endhosthtent() 88 hed->hostf = NULL; in _endhosthtent() 101 if (!hed->hostf && !(hed->hostf = fopen(_PATH_HOSTS, "re"))) { in gethostent_p() 106 if (!(p = fgets(hostbuf, sizeof hostbuf, hed->hostf))) { in gethostent_p()
|
| H A D | getaddrinfo.c | 2378 _sethtent(FILE **hostf) in _sethtent() argument 2380 if (!*hostf) in _sethtent() 2383 rewind(*hostf); in _sethtent() 2387 _endhtent(FILE **hostf) in _endhtent() argument 2389 if (*hostf) { in _endhtent() 2391 *hostf = NULL; in _endhtent() 2405 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re"))) in _gethtent() 2494 FILE *hostf = NULL; in _files_getaddrinfo() local 2502 _sethtent(&hostf); in _files_getaddrinfo() 2510 _sethtent(&hostf); in _files_getaddrinfo() [all …]
|
| H A D | netdb_private.h | 81 FILE *hostf; member
|
| /freebsd-12.1/usr.sbin/lpr/lpd/ |
| H A D | lpd.c | 658 register FILE *hostf; in chkhost() local 756 hostf = fopen(_PATH_HOSTSEQUIV, "r"); in chkhost() 758 if (hostf) { in chkhost() 759 if (__ivaliduser_sa(hostf, f, f->sa_len, DUMMY, DUMMY) == 0) { in chkhost() 760 (void) fclose(hostf); in chkhost() 763 (void) fclose(hostf); in chkhost() 767 hostf = fopen(_PATH_HOSTSLPD, "r"); in chkhost()
|