Manpages - getnetpath.3t

entry corresponding to

component

The routines described in this page provide the application access to the system network configuration database,

as it is

by the

environment variable (see

See

for other routines that also access the network configuration database directly. The

variable is a list of colon-separated network identifiers.

The

function returns a pointer to the netconfig database entry corresponding to the first valid

component. The netconfig entry is formatted as a

On each subsequent call,

returns a pointer to the netconfig entry that corresponds to the next valid

component. The

function can thus be used to search the netconfig database for all networks included in the

variable. When

has been exhausted,

returns

A call to

to or

The

function must be called before the first call to

and may be called at any other time. It returns a handle that is used by

The

function silently ignores invalid

components. A

component is invalid if there is no corresponding entry in the netconfig database.

If the

variable is unset,

behaves as if

were set to the sequence of

or

networks in the netconfig database, in the order in which they are listed.

The

function may be called to

from

when processing is complete, releasing resources for reuse. Programmers should be aware, however, that

frees all memory allocated by

for the struct netconfig data structure.

The

function returns a handle that is used by

In case of an error,

returns

The

function returns 0 on success and -1 on failure (for example, if

was not called previously). The

or

function can be used to print out the reason for failure. See

When first called,

returns a pointer to the netconfig database entry corresponding to the first valid

component. When

has been exhausted,

returns

These functions are part of libtirpc.

Author: dt

Created: 2022-02-20 Sun 15:42