Lines Matching defs:netpath
63 * internal structure to keep track of a netpath "session"
74 char *netpath; /* pointer to current view-point in NETPATH */
75 char *netpath_start; /* pointer to start of our copy of NETPATH */
86 * A call to setnetpath() establishes a NETPATH "session". setnetpath()
100 char *npp; /* NETPATH env variable */
115 if ((npp = getenv(NETPATH)) == NULL)
116 np_sessionp->netpath = NULL;
121 if ((np_sessionp->netpath = malloc(strlen(npp)+1)) == NULL) {
125 (void) strcpy(np_sessionp->netpath, npp);
127 np_sessionp->netpath_start = np_sessionp->netpath;
133 * database entry corresponding to the first valid NETPATH component. The
136 * entry that corresponds to the next valid NETPATH component. getnetpath
138 * included in the NETPATH variable.
139 * When NETPATH has been exhausted, getnetpath() returns NULL. It returns
142 * getnetpath() silently ignores invalid NETPATH components. A NETPATH
145 * If the NETPATH variable is unset, getnetpath() behaves as if NETPATH
156 char *npp; /* holds current NETPATH */
162 if (np_sessionp->netpath_start == NULL) { /* NETPATH was not set */
177 * Find first valid network ID in netpath.
179 while ((npp = np_sessionp->netpath) != NULL && strlen(npp) != 0) {
180 np_sessionp->netpath = _get_next_token(npp, ':');
205 * endnetpath() may be called to unbind NETPATH when processing is complete,
251 char *np; /* netpath pointer */