Searched refs:hostf (Results 1 – 7 of 7) sorted by relevance
| /NextBSD/crypto/heimdal/lib/roken/ |
| HD | 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 …]
|
| /NextBSD/lib/libbluetooth/ |
| HD | bluetooth.c | 43 static FILE *hostf = NULL; variable 104 if (hostf == NULL) in bt_gethostent() 105 hostf = fopen(_PATH_BT_HOSTS, "r"); in bt_gethostent() 107 if (hostf == NULL) { in bt_gethostent() 112 if ((p = fgets(buf, sizeof(buf), hostf)) == NULL) { in bt_gethostent() 156 if (hostf == NULL) in bt_sethostent() 157 hostf = fopen(_PATH_BT_HOSTS, "r"); in bt_sethostent() 159 rewind(hostf); in bt_sethostent() 167 if (hostf != NULL && host_stayopen == 0) { in bt_endhostent() 168 (void) fclose(hostf); in bt_endhostent() [all …]
|
| /NextBSD/lib/libc/net/ |
| HD | rcmd.c | 431 FILE *hostf; in iruserok_sa() local 445 hostf = superuser ? NULL : fopen(_PATH_HEQUIV, "re"); in iruserok_sa() 447 if (hostf) { in iruserok_sa() 448 if (__ivaliduser_sa(hostf, raddr, rlen, luser, ruser) == 0) { in iruserok_sa() 449 (void)fclose(hostf); in iruserok_sa() 452 (void)fclose(hostf); in iruserok_sa() 468 hostf = fopen(pbuf, "re"); in iruserok_sa() 471 if (hostf == NULL) in iruserok_sa() 482 else if (_fstat(fileno(hostf), &sbuf) < 0) in iruserok_sa() 491 (void)fclose(hostf); in iruserok_sa() [all …]
|
| HD | gethostbyht.c | 74 if (!hed->hostf) in _sethosthtent() 75 hed->hostf = fopen(_PATH_HOSTS, "re"); in _sethosthtent() 77 rewind(hed->hostf); in _sethosthtent() 84 if (hed->hostf && !hed->stayopen) { in _endhosthtent() 85 (void) fclose(hed->hostf); in _endhosthtent() 86 hed->hostf = NULL; in _endhosthtent() 99 if (!hed->hostf && !(hed->hostf = fopen(_PATH_HOSTS, "re"))) { in gethostent_p() 104 if (!(p = fgets(hostbuf, sizeof hostbuf, hed->hostf))) { in gethostent_p()
|
| HD | getaddrinfo.c | 2360 _sethtent(FILE **hostf) in _sethtent() argument 2362 if (!*hostf) in _sethtent() 2363 *hostf = fopen(_PATH_HOSTS, "re"); in _sethtent() 2365 rewind(*hostf); in _sethtent() 2369 _endhtent(FILE **hostf) in _endhtent() argument 2371 if (*hostf) { in _endhtent() 2372 (void) fclose(*hostf); in _endhtent() 2373 *hostf = NULL; in _endhtent() 2378 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai) in _gethtent() argument 2387 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re"))) in _gethtent() [all …]
|
| HD | netdb_private.h | 79 FILE *hostf; member
|
| /NextBSD/usr.sbin/lpr/lpd/ |
| HD | lpd.c | 656 register FILE *hostf; in chkhost() local 758 hostf = fopen(_PATH_HOSTSEQUIV, "r"); in chkhost() 760 if (hostf) { in chkhost() 761 if (__ivaliduser_sa(hostf, f, f->sa_len, DUMMY, DUMMY) == 0) { in chkhost() 762 (void) fclose(hostf); in chkhost() 765 (void) fclose(hostf); in chkhost() 769 hostf = fopen(_PATH_HOSTSLPD, "r"); in chkhost()
|