Home
last modified time | relevance | path

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

/bionic/libc/private/
Dresolv_static.h23 FILE* hostf; member
/bionic/libc/netbsd/resolv/
Dres_state.c82 if (rs->hostf) { /* should not happen in theory, but just be safe */ in _res_static_done()
83 fclose(rs->hostf); in _res_static_done()
84 rs->hostf = NULL; in _res_static_done()
/bionic/libc/netbsd/net/
Dgetaddrinfo.c1380 _sethtent(FILE **hostf) in _sethtent() argument
1383 if (!*hostf) in _sethtent()
1384 *hostf = fopen(_PATH_HOSTS, "r" ); in _sethtent()
1386 rewind(*hostf); in _sethtent()
1390 _endhtent(FILE **hostf) in _endhtent() argument
1393 if (*hostf) { in _endhtent()
1394 (void) fclose(*hostf); in _endhtent()
1395 *hostf = NULL; in _endhtent()
1400 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai) in _gethtent() argument
1413 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "r" ))) in _gethtent()
[all …]
/bionic/libc/netbsd/
Dgethnamaddr.c700 if (!rs->hostf) in _sethtent()
701 rs->hostf = fopen(_PATH_HOSTS, "r" ); in _sethtent()
703 rewind(rs->hostf); in _sethtent()
713 if (rs->hostf && !rs->stayopen) { in _endhtent()
714 (void) fclose(rs->hostf); in _endhtent()
715 rs->hostf = NULL; in _endhtent()
727 if (!rs->hostf && !(rs->hostf = fopen(_PATH_HOSTS, "r" ))) { in _gethtent()
732 if (!(p = fgets(rs->hostbuf, sizeof rs->hostbuf, rs->hostf))) { in _gethtent()