Lines Matching refs:handle
59 struct handle { struct
264 struct handle *handle; in __rpc_setconf() local
266 handle = malloc(sizeof (struct handle)); in __rpc_setconf()
267 if (handle == NULL) in __rpc_setconf()
269 switch (handle->nettype = getnettype(nettype)) { in __rpc_setconf()
274 if (!(handle->nhandle = setnetpath())) { in __rpc_setconf()
275 free(handle); in __rpc_setconf()
278 handle->nflag = TRUE; in __rpc_setconf()
287 if (!(handle->nhandle = setnetconfig())) { in __rpc_setconf()
288 free(handle); in __rpc_setconf()
291 handle->nflag = FALSE; in __rpc_setconf()
294 free(handle); in __rpc_setconf()
298 return (handle); in __rpc_setconf()
308 struct handle *handle; in __rpc_getconf() local
311 handle = (struct handle *)vhandle; in __rpc_getconf()
312 if (handle == NULL) in __rpc_getconf()
315 if (handle->nflag) in __rpc_getconf()
316 nconf = getnetpath(handle->nhandle); in __rpc_getconf()
318 nconf = getnetconfig(handle->nhandle); in __rpc_getconf()
325 switch (handle->nettype) { in __rpc_getconf()
382 struct handle *handle; in __rpc_endconf() local
384 handle = (struct handle *)vhandle; in __rpc_endconf()
385 if (handle == NULL) in __rpc_endconf()
387 if (handle->nflag) { in __rpc_endconf()
388 (void) endnetpath(handle->nhandle); in __rpc_endconf()
390 (void) endnetconfig(handle->nhandle); in __rpc_endconf()
392 free(handle); in __rpc_endconf()