Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
endnetent(3) OSS Library Calls Reference Manual
NAME
endnetent - Closes the networks database
LIBRARY
G-series native OSS processes: /G/system/sysnn/zinetsrl
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zinetdll |
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/yinetdll |
SYNOPSIS
[#include <sys/socket.h>]
#include <netdb.h>
void endnetent(void);
PARAMETERS
None.
DESCRIPTION
The endnetent( ) function closes /etc/networks, the networks database file. The database can be
opened with the getnetent( ), getnetbyaddr( ),orgetnetbyname( ) functions (or their reentrant
versions), or with the setnetent( ) function.
The enumeration of /etc/networks is a process-wide property shared by all threads. When used
in a multi-threaded application, the endnetent( ) function closes /etc/networks for all threads.
RETURN VALUES
The endnetent( ) function does not return a value.
ERRORS
The endnetent( ) function does not set errno.
FILES
/etc/networks The Internet network database file. Each record in the file occupies a single line
and has three fields: the network name, the network number, and aliases.
RELATED INFORMATION
Functions: getnetbyaddr(3), getnetbyname(3), getnetent(3), setnetent(3).
Files: networks(4).
2−10 Hewlett-Packard Company 527187-017