This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Open the network name database file
#include <netdb.h> void setnetent( int stayopen );
libsocket
Use the -l socket option to qcc to link against this library.
The setnetent() function opens and rewinds the network name database file.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | No |
Thread | No |
This function uses static data; if you need the data for future use, you should copy it before any subsequent calls overwrite it.
endnetent(), getnetbyaddr(), getnetbyname(), getnetent(), netent
/etc/networks in the Utilities Reference