Lines Matching refs:netconfig

44 #include <netconfig.h>
58 static struct netconfig *fgetnetconfig(FILE *, char *);
59 static void netconfig_free(struct netconfig *);
62 static struct netconfig **getnetlist(void);
67 static void netlist_free(struct netconfig ***);
69 static struct netconfig *netconfig_dup(struct netconfig *);
76 * netpp - points to the beginning of the list of netconfig
81 * linenum - the current line number of the /etc/netconfig
85 * of /etc/netconfig (used for debugging and for
91 static struct netconfig **netpp = NULL;
94 * The following two variables are used by the /etc/netconfig parsing
97 * information to the user about /etc/netconfig file problems.
168 * of netconfig structures. It uses the nconf_handlep argument
175 struct netconfig *
179 struct netconfig *retp; /* holds the return value */
212 * getnetconfig() searches the netconfig database for a
213 * given network id. Returns a pointer to the netconfig
219 struct netconfig *
222 struct netconfig **tpp;
253 freenetconfigent(struct netconfig *netp)
259 * getnetlist() reads the netconfig file and creates a
265 static struct netconfig **
270 struct netconfig **listpp; /* the beginning of the netconfig list */
271 struct netconfig **tpp; /* used to traverse the netconfig list */
293 sizeof (struct netconfig *))) == NULL) {
318 * fgetnetconfig() parses a line of the netconfig file into
319 * a netconfig structure. It returns a pointer to the
323 static struct netconfig *
327 struct netconfig *netconfigp; /* holds the new netconfig structure */
354 if ((netconfigp = calloc(1, sizeof (struct netconfig))) == NULL) {
387 * in the NETPATH variable (or the "visible" entries og netconfig
397 struct netconfig **curr_pp; /* scans the list from NETPATH */
398 struct netconfig **tpp; /* scans the list from netconfig file */
399 struct netconfig **rnetpp; /* the list of entries from NETPATH */
406 * Read in the netconfig database if not already read in
439 * netids from the netconfig database.
489 sizeof (struct netconfig *))) == NULL) {
553 struct netconfig *
558 struct netconfig *retp; /* holds the return value */
844 dgettext(__nsl_dom, "cannot open /etc/netconfig"),
849 "error in /etc/netconfig: field %d of line %d\n"),
855 "netid not found in /etc/netconfig"));
860 "no more entries in /etc/netconfig"));
880 netlist_free(struct netconfig ***netppp)
882 struct netconfig **tpp;
892 netconfig_free(struct netconfig *netconfigp)
909 static struct netconfig *
910 netconfig_dup(struct netconfig *netconfigp)
912 struct netconfig *nconf;
915 nconf = calloc(1, sizeof (struct netconfig));