• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/lib/libc/rpc/

Lines Matching defs:np_sessionp

90     struct netpath_vars *np_sessionp;   /* this session's variables */
97 if ((np_sessionp =
101 if ((np_sessionp->nc_handlep = setnetconfig()) == NULL) {
105 np_sessionp->valid = NP_VALID;
106 np_sessionp->ncp_list = NULL;
108 np_sessionp->netpath = NULL;
110 (void) endnetconfig(np_sessionp->nc_handlep);/* won't need nc session*/
111 np_sessionp->nc_handlep = NULL;
112 if ((np_sessionp->netpath = malloc(strlen(npp)+1)) == NULL)
115 (void) strcpy(np_sessionp->netpath, npp);
118 np_sessionp->netpath_start = np_sessionp->netpath;
119 return ((void *)np_sessionp);
122 free(np_sessionp);
148 struct netpath_vars *np_sessionp = (struct netpath_vars *)handlep;
153 if (np_sessionp == NULL || np_sessionp->valid != NP_VALID) {
157 if (np_sessionp->netpath_start == NULL) { /* NETPATH was not set */
159 if (np_sessionp->nc_handlep == NULL) {
160 np_sessionp->nc_handlep = setnetconfig();
161 if (np_sessionp->nc_handlep == NULL)
164 if ((ncp = getnetconfig(np_sessionp->nc_handlep)) == NULL) {
173 while ((npp = np_sessionp->netpath) != NULL && strlen(npp) != 0) {
174 np_sessionp->netpath = _get_next_token(npp, ':');
183 if (np_sessionp->ncp_list == NULL) {
184 np_sessionp->ncp_list = chainp;
186 np_sessionp->ncp_list->nchain_next = chainp;
203 struct netpath_vars *np_sessionp = (struct netpath_vars *)handlep;
206 if (np_sessionp == NULL || np_sessionp->valid != NP_VALID) {
210 if (np_sessionp->nc_handlep != NULL)
211 endnetconfig(np_sessionp->nc_handlep);
212 if (np_sessionp->netpath_start != NULL)
213 free(np_sessionp->netpath_start);
214 for (chainp = np_sessionp->ncp_list; chainp != NULL;
218 free(np_sessionp);