sethostent stayopen
Opens the hosts file (usually /etc/hosts on Unix systems) and resets the "current" selection to the top of the file. stayopen , if non-zero, keeps the file open across calls to other functions. Not implemented on Win32 systems.
Copyright © 2001 O'Reilly & Associates. All rights reserved.