1 .\" @(#)getnetpath.3n 1.26 93/05/07 SMI; from SVr4
2 .\" Copyright 1989 AT&T
12 entry corresponding to
19 .Ft "struct netconfig *"
20 .Fn getnetpath "void *handlep"
24 .Fn endnetpath "void *handlep"
26 The routines described in this page provide the application access to the system
27 network configuration database,
33 environment variable (see
37 for other routines that also access the
38 network configuration database directly.
41 variable is a list of colon-separated network identifiers.
46 returns a pointer to the
47 netconfig database entry corresponding to the first valid
50 The netconfig entry is formatted as a
51 .Ft "struct netconfig" .
52 On each subsequent call,
54 returns a pointer to the netconfig entry that corresponds to the next
61 can thus be used to search the netconfig database for all networks
81 must be called before the first call to
83 and may be called at any other time.
84 It returns a handle that is used by
90 silently ignores invalid
95 component is invalid if there is no corresponding
96 entry in the netconfig database.
104 were set to the sequence of
108 networks in the netconfig database, in the
109 order in which they are listed.
110 .\"This proviso holds also for this
120 when processing is complete, releasing resources for reuse.
121 Programmers should be aware, however, that
123 frees all memory allocated by
125 for the struct netconfig data structure.
130 returns a handle that is used by
140 returns 0 on success and \-1 on failure
143 was not called previously).
149 can be used to print out the reason for failure.
155 returns a pointer to the netconfig database entry corresponding to the first