Home
last modified time | relevance | path

Searched refs:nc_handlep (Results 1 – 2 of 2) sorted by relevance

/freebsd-14-stable/lib/libc/rpc/
HDgetnetpath.c60 void *nc_handlep; /* handle for current netconfig "session" */ member
98 if ((np_sessionp->nc_handlep = setnetconfig()) == NULL) { in setnetpath()
107 (void) endnetconfig(np_sessionp->nc_handlep);/* won't need nc session*/ in setnetpath()
108 np_sessionp->nc_handlep = NULL; in setnetpath()
156 if (np_sessionp->nc_handlep == NULL) { in getnetpath()
157 np_sessionp->nc_handlep = setnetconfig(); in getnetpath()
158 if (np_sessionp->nc_handlep == NULL) in getnetpath()
161 if ((ncp = getnetconfig(np_sessionp->nc_handlep)) == NULL) { in getnetpath()
207 if (np_sessionp->nc_handlep != NULL) in endnetpath()
208 endnetconfig(np_sessionp->nc_handlep); in endnetpath()
HDgetnetconfig.c380 struct netconfig_vars *nc_handlep = (struct netconfig_vars *)handlep; in endnetconfig() local
387 if (nc_handlep == NULL || (nc_handlep->valid != NC_VALID && in endnetconfig()
388 nc_handlep->valid != NC_STORAGE)) { in endnetconfig()
396 nc_handlep->valid = NC_INVALID; in endnetconfig()
397 nc_handlep->flag = 0; in endnetconfig()
398 nc_handlep->nc_configs = NULL; in endnetconfig()
402 free(nc_handlep); in endnetconfig()
424 free(nc_handlep); in endnetconfig()