Searched refs:hostf (Results 1 – 2 of 2) sorted by relevance
86 static FILE *hostf = NULL; variable94 if (!hostf) in _sethosthtent()95 hostf = fopen(_PATH_HOSTS, "r" ); in _sethosthtent()97 rewind(hostf); in _sethosthtent()104 if (hostf && !stayopen) { in _endhosthtent()105 (void) fclose(hostf); in _endhosthtent()106 hostf = NULL; in _endhosthtent()117 if (!hostf && ( NULL == (hostf = fopen(_PATH_HOSTS, "r" )))) { in gethostent()122 if ( NULL == (p = fgets(hostbuf, sizeof hostbuf, hostf))) { in gethostent()
1412 _sethtent(FILE **hostf) in _sethtent() argument1415 if (!*hostf) in _sethtent()1416 *hostf = fopen(_PATH_HOSTS, "r" ); in _sethtent()1418 rewind(*hostf); in _sethtent()1422 _endhtent(FILE **hostf) in _endhtent() argument1425 if (*hostf) { in _endhtent()1426 (void) fclose(*hostf); in _endhtent()1427 *hostf = NULL; in _endhtent()1432 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai) in _gethtent() argument1444 if (!*hostf && ( NULL == (*hostf = fopen(_PATH_HOSTS, "r" )))) in _gethtent()[all …]