Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
Dgethostbyht.c86 static FILE *hostf = NULL; variable
94 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()
Dgetaddrinfo.c1412 _sethtent(FILE **hostf) in _sethtent() argument
1415 if (!*hostf) in _sethtent()
1416 *hostf = fopen(_PATH_HOSTS, "r" ); in _sethtent()
1418 rewind(*hostf); in _sethtent()
1422 _endhtent(FILE **hostf) in _endhtent() argument
1425 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() argument
1444 if (!*hostf && ( NULL == (*hostf = fopen(_PATH_HOSTS, "r" )))) in _gethtent()
[all …]