Searched refs:hostf (Results 1 - 7 of 7) sorted by relevance
/freebsd-13-stable/crypto/heimdal/lib/roken/ |
H A D | iruserok.c | 89 __ivaliduser(FILE *hostf, unsigned raddr, const char *luser, argument 114 while (fgets(buf, sizeof(buf), hostf)) { 118 while ((ch = getc(hostf)) != '\n' && ch != EOF); 223 FILE *hostf; local 229 hostf = superuser ? NULL : fopen(_PATH_HEQUIV, "r"); 231 if (hostf) { 232 if (__ivaliduser(hostf, raddr, luser, ruser) == 0) { 233 fclose(hostf); 236 fclose(hostf); 252 hostf [all...] |
/freebsd-13-stable/lib/libbluetooth/ |
H A D | bluetooth.c | 45 static FILE *hostf = NULL; variable 106 if (hostf == NULL) 107 hostf = fopen(_PATH_BT_HOSTS, "r"); 109 if (hostf == NULL) { 114 if ((p = fgets(buf, sizeof(buf), hostf)) == NULL) { 158 if (hostf == NULL) 159 hostf = fopen(_PATH_BT_HOSTS, "r"); 161 rewind(hostf); 169 if (hostf != NULL && host_stayopen == 0) { 170 (void) fclose(hostf); [all...] |
/freebsd-13-stable/lib/libc/net/ |
H A D | gethostbyht.c | 76 if (!hed->hostf) 77 hed->hostf = fopen(_PATH_HOSTS, "re"); 79 rewind(hed->hostf); 86 if (hed->hostf && !hed->stayopen) { 87 (void) fclose(hed->hostf); 88 hed->hostf = NULL; 101 if (!hed->hostf && !(hed->hostf = fopen(_PATH_HOSTS, "re"))) { 106 if (!(p = fgets(hostbuf, sizeof hostbuf, hed->hostf))) {
|
H A D | rcmd.c | 433 FILE *hostf; local 447 hostf = superuser ? NULL : fopen(_PATH_HEQUIV, "re"); 449 if (hostf) { 450 if (__ivaliduser_sa(hostf, raddr, rlen, luser, ruser) == 0) { 451 (void)fclose(hostf); 454 (void)fclose(hostf); 470 hostf = fopen(pbuf, "re"); 473 if (hostf == NULL) 484 else if (_fstat(fileno(hostf), &sbuf) < 0) 493 (void)fclose(hostf); 508 __ivaliduser(FILE *hostf, u_int32_t raddr, const char *luser, const char *ruser) argument 526 __ivaliduser_af(FILE *hostf, const void *raddr, const char *luser, const char *ruser, int af, int len) argument 566 __ivaliduser_sa(FILE *hostf, const struct sockaddr *raddr, socklen_t salen, const char *luser, const char *ruser) argument [all...] |
H A D | netdb_private.h | 81 FILE *hostf; member in struct:hostent_data
|
H A D | getaddrinfo.c | 2378 _sethtent(FILE **hostf) argument 2380 if (!*hostf) 2381 *hostf = fopen(_PATH_HOSTS, "re"); 2383 rewind(*hostf); 2387 _endhtent(FILE **hostf) argument 2389 if (*hostf) { 2390 (void) fclose(*hostf); 2391 *hostf = NULL; 2396 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai) argument 2405 if (!*hostf 2474 _getht(FILE **hostf, const char *name, const struct addrinfo *pai, struct addrinfo *cur) argument 2494 FILE *hostf = NULL; local [all...] |
/freebsd-13-stable/usr.sbin/lpr/lpd/ |
H A D | lpd.c | 658 register FILE *hostf; local 756 hostf = fopen(_PATH_HOSTSEQUIV, "r"); 758 if (hostf) { 759 if (__ivaliduser_sa(hostf, f, f->sa_len, DUMMY, DUMMY) == 0) { 760 (void) fclose(hostf); 763 (void) fclose(hostf); 767 hostf = fopen(_PATH_HOSTSLPD, "r");
|
Completed in 186 milliseconds