Home
last modified time | relevance | path

Searched refs:hostf (Results 1 – 7 of 7) sorted by relevance

/freebsd-14.2/crypto/heimdal/lib/roken/
H A Diruserok.c114 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-14.2/lib/libbluetooth/
H A Dbluetooth.c44 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-14.2/lib/libc/net/
H A Drcmd.c430 FILE *hostf; in iruserok_sa() local
444 hostf = superuser ? NULL : fopen(_PATH_HEQUIV, "re"); in iruserok_sa()
446 if (hostf) { in iruserok_sa()
448 (void)fclose(hostf); in iruserok_sa()
451 (void)fclose(hostf); in iruserok_sa()
467 hostf = fopen(pbuf, "re"); in iruserok_sa()
470 if (hostf == NULL) in iruserok_sa()
481 else if (_fstat(fileno(hostf), &sbuf) < 0) in iruserok_sa()
490 (void)fclose(hostf); in iruserok_sa()
585 while (fgets(buf, sizeof(buf), hostf)) { in __ivaliduser_sa()
[all …]
H A Dgethostbyht.c73 if (!hed->hostf) in _sethosthtent()
74 hed->hostf = fopen(_PATH_HOSTS, "re"); in _sethosthtent()
76 rewind(hed->hostf); in _sethosthtent()
83 if (hed->hostf && !hed->stayopen) { in _endhosthtent()
84 (void) fclose(hed->hostf); in _endhosthtent()
85 hed->hostf = NULL; in _endhosthtent()
98 if (!hed->hostf && !(hed->hostf = fopen(_PATH_HOSTS, "re"))) { in gethostent_p()
103 if (!(p = fgets(hostbuf, sizeof hostbuf, hed->hostf))) { in gethostent_p()
H A Dgetaddrinfo.c2381 _sethtent(FILE **hostf) in _sethtent() argument
2383 if (!*hostf) in _sethtent()
2386 rewind(*hostf); in _sethtent()
2390 _endhtent(FILE **hostf) in _endhtent() argument
2392 if (*hostf) { in _endhtent()
2394 *hostf = NULL; in _endhtent()
2408 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re"))) in _gethtent()
2497 FILE *hostf = NULL; in _files_getaddrinfo() local
2505 _sethtent(&hostf); in _files_getaddrinfo()
2513 _sethtent(&hostf); in _files_getaddrinfo()
[all …]
H A Dnetdb_private.h79 FILE *hostf; member
/freebsd-14.2/usr.sbin/lpr/lpd/
H A Dlpd.c664 register FILE *hostf; in chkhost() local
762 hostf = fopen(_PATH_HOSTSEQUIV, "r"); in chkhost()
764 if (hostf) { in chkhost()
765 if (__ivaliduser_sa(hostf, f, f->sa_len, DUMMY, DUMMY) == 0) { in chkhost()
766 (void) fclose(hostf); in chkhost()
769 (void) fclose(hostf); in chkhost()
773 hostf = fopen(_PATH_HOSTSLPD, "r"); in chkhost()