1 .\" @(#)getnetpath.3n 1.26 93/05/07 SMI; from SVr4
2 .\" Copyright 1989 AT&T
12 entry corresponding to
17 .Ft "struct netconfig *"
18 .Fn getnetpath "void *handlep"
22 .Fn endnetpath "void *handlep"
24 The routines described in this page provide the application access to the system
25 network configuration database,
31 environment variable (see
35 for other routines that also access the
36 network configuration database directly.
39 variable is a list of colon-separated network identifiers.
44 returns a pointer to the
45 netconfig database entry corresponding to the first valid
48 The netconfig entry is formatted as a
49 .Ft "struct netconfig" .
50 On each subsequent call,
52 returns a pointer to the netconfig entry that corresponds to the next
59 can thus be used to search the netconfig database for all networks
79 must be called before the first call to
81 and may be called at any other time.
82 It returns a handle that is used by
88 silently ignores invalid
93 component is invalid if there is no corresponding
94 entry in the netconfig database.
102 were set to the sequence of
106 networks in the netconfig database, in the
107 order in which they are listed.
108 .\"This proviso holds also for this
118 when processing is complete, releasing resources for reuse.
119 Programmers should be aware, however, that
121 frees all memory allocated by
123 for the struct netconfig data structure.
128 returns a handle that is used by
138 returns 0 on success and \-1 on failure
141 was not called previously).
147 can be used to print out the reason for failure.
153 returns a pointer to the netconfig database entry corresponding to the first
164 These functions are part of libtirpc.