1 .\" @(#)getnetpath.3n 1.26 93/05/07 SMI; from SVr4
2 .\" $NetBSD: getnetpath.3,v 1.1 2000/06/02 23:11:11 fvdl Exp $
3 .\" $FreeBSD: src/lib/libc/rpc/getnetpath.3,v 1.5 2002/12/18 12:45:10 ru Exp $
5 .\" Copyright 1989 AT&T
15 entry corresponding to
22 .Ft "struct netconfig *"
23 .Fn getnetpath "void *handlep"
27 .Fn endnetpath "void *handlep"
29 The routines described in this page provide the application access to the system
30 network configuration database,
36 environment variable (see
40 for other routines that also access the
41 network configuration database directly.
44 variable is a list of colon-separated network identifiers.
49 returns a pointer to the
50 netconfig database entry corresponding to the first valid
53 The netconfig entry is formatted as a
54 .Ft "struct netconfig" .
55 On each subsequent call,
57 returns a pointer to the netconfig entry that corresponds to the next
64 can thus be used to search the netconfig database for all networks
84 must be called before the first call to
86 and may be called at any other time.
87 It returns a handle that is used by
93 silently ignores invalid
98 component is invalid if there is no corresponding
99 entry in the netconfig database.
107 were set to the sequence of
111 networks in the netconfig database, in the
112 order in which they are listed.
113 .\"This proviso holds also for this
123 when processing is complete, releasing resources for reuse.
124 Programmers should be aware, however, that
126 frees all memory allocated by
128 for the struct netconfig data structure.
133 returns a handle that is used by
143 returns 0 on success and \-1 on failure
146 was not called previously).
152 can be used to print out the reason for failure.
158 returns a pointer to the netconfig database entry corresponding to the first