home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


sethostent

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.