Lines Matching refs:res
138 nis_result res; in get_tablepath() local
141 memset (&res, '\0', sizeof (res)); in get_tablepath()
149 (caddr_t) &res, RPCTIMEOUT); in get_tablepath()
152 if (result == RPC_SUCCESS && NIS_RES_STATUS (&res) == NIS_SUCCESS in get_tablepath()
153 && __type_of (NIS_RES_OBJECT (&res)) == NIS_TABLE_OBJ) in get_tablepath()
154 cptr = NIS_RES_OBJECT (&res)->TA_data.ta_path; in get_tablepath()
161 xdr_free ((xdrproc_t) _xdr_nis_result, (char *) &res); in get_tablepath()
213 nis_result *res = malloc (sizeof (nis_result)); in libnsl_hidden_nolink_def() local
228 if (res == NULL) in libnsl_hidden_nolink_def()
236 memset (res, '\0', sizeof (nis_result)); in libnsl_hidden_nolink_def()
237 NIS_RES_STATUS (res) = status; in libnsl_hidden_nolink_def()
238 return res; in libnsl_hidden_nolink_def()
282 memset (res, '\0', sizeof (nis_result)); in libnsl_hidden_nolink_def()
289 NIS_RES_STATUS (res) = status; in libnsl_hidden_nolink_def()
296 NIS_RES_STATUS (res) = NIS_NAMEUNREACHABLE; in libnsl_hidden_nolink_def()
312 (caddr_t) res, RPCTIMEOUT); in libnsl_hidden_nolink_def()
315 NIS_RES_STATUS (res) = NIS_RPCERROR; in libnsl_hidden_nolink_def()
317 switch (NIS_RES_STATUS (res)) in libnsl_hidden_nolink_def()
322 if (__type_of (NIS_RES_OBJECT (res)) == NIS_LINK_OBJ in libnsl_hidden_nolink_def()
330 NIS_RES_STATUS (res) = NIS_LINKNAMEERROR; in libnsl_hidden_nolink_def()
336 strdup (NIS_RES_OBJECT (res)->LI_data.li_name); in libnsl_hidden_nolink_def()
339 NIS_RES_STATUS (res) = NIS_NOMEMORY; in libnsl_hidden_nolink_def()
355 return res; in libnsl_hidden_nolink_def()
357 if (NIS_RES_OBJECT (res)->LI_data.li_attrs.li_attrs_len) in libnsl_hidden_nolink_def()
361 NIS_RES_OBJECT (res)->LI_data.li_attrs.li_attrs_len; in libnsl_hidden_nolink_def()
363 NIS_RES_OBJECT (res)->LI_data.li_attrs.li_attrs_val; in libnsl_hidden_nolink_def()
370 xdr_free ((xdrproc_t) _xdr_nis_result, (char *)res); in libnsl_hidden_nolink_def()
371 memset (res, '\0', sizeof (*res)); in libnsl_hidden_nolink_def()
376 && NIS_RES_STATUS (res) == NIS_PARTIAL) in libnsl_hidden_nolink_def()
383 NIS_RES_STATUS (res) = err; in libnsl_hidden_nolink_def()
393 xdr_free ((xdrproc_t) _xdr_nis_result, (char *) res); in libnsl_hidden_nolink_def()
394 memset (res, '\0', sizeof (*res)); in libnsl_hidden_nolink_def()
404 allres = res; in libnsl_hidden_nolink_def()
405 res = malloc (sizeof (nis_result)); in libnsl_hidden_nolink_def()
406 if (res == NULL) in libnsl_hidden_nolink_def()
408 res = allres; in libnsl_hidden_nolink_def()
410 NIS_RES_STATUS (res) = NIS_NOMEMORY; in libnsl_hidden_nolink_def()
413 NIS_RES_STATUS (res) = NIS_RES_STATUS (allres); in libnsl_hidden_nolink_def()
420 + NIS_RES_NUMOBJ (res)) in libnsl_hidden_nolink_def()
424 NIS_RES_STATUS (res) = NIS_NOMEMORY; in libnsl_hidden_nolink_def()
429 NIS_RES_OBJECT (res), in libnsl_hidden_nolink_def()
430 NIS_RES_NUMOBJ (res) * sizeof (nis_object)); in libnsl_hidden_nolink_def()
431 NIS_RES_NUMOBJ (allres) += NIS_RES_NUMOBJ (res); in libnsl_hidden_nolink_def()
432 NIS_RES_NUMOBJ (res) = 0; in libnsl_hidden_nolink_def()
433 free (NIS_RES_OBJECT (res)); in libnsl_hidden_nolink_def()
434 NIS_RES_OBJECT (res) = NULL; in libnsl_hidden_nolink_def()
435 NIS_RES_STATUS (allres) = NIS_RES_STATUS (res); in libnsl_hidden_nolink_def()
436 xdr_free ((xdrproc_t) _xdr_nis_result, (char *) res); in libnsl_hidden_nolink_def()
443 memset (res, '\0', sizeof (*res)); in libnsl_hidden_nolink_def()
456 __nis_do_callback (&bptr, &res->cookie, cb); in libnsl_hidden_nolink_def()
457 NIS_RES_STATUS (res) = cb->result; in libnsl_hidden_nolink_def()
468 NIS_RES_STATUS (res) = err; in libnsl_hidden_nolink_def()
505 NIS_RES_STATUS (res) = NIS_LINKNAMEERROR; in libnsl_hidden_nolink_def()
518 NIS_RES_STATUS (res) = NIS_NOMEMORY; in libnsl_hidden_nolink_def()
549 nis_freeresult (res); in libnsl_hidden_nolink_def()
553 return res; in libnsl_hidden_nolink_def()
560 nis_result *res = calloc (1, sizeof (nis_result)); in libnsl_hidden_nolink_def() local
561 if (res == NULL) in libnsl_hidden_nolink_def()
566 NIS_RES_STATUS (res) = NIS_BADNAME; in libnsl_hidden_nolink_def()
567 return res; in libnsl_hidden_nolink_def()
573 NIS_RES_STATUS (res) = NIS_BADNAME; in libnsl_hidden_nolink_def()
574 return res; in libnsl_hidden_nolink_def()
599 NIS_RES_STATUS (res) = NIS_NOMEMORY; in libnsl_hidden_nolink_def()
600 return res; in libnsl_hidden_nolink_def()
608 (caddr_t) res, 0, NULL); in libnsl_hidden_nolink_def()
610 NIS_RES_STATUS (res) = status; in libnsl_hidden_nolink_def()
614 return res; in libnsl_hidden_nolink_def()
623 nis_result *res; in libnsl_hidden_nolink_def() local
630 res = calloc (1, sizeof (nis_result)); in libnsl_hidden_nolink_def()
631 if (res == NULL) in libnsl_hidden_nolink_def()
637 NIS_RES_STATUS (res) = NIS_BADNAME; in libnsl_hidden_nolink_def()
638 return res; in libnsl_hidden_nolink_def()
658 NIS_RES_STATUS (res) = NIS_NOMEMORY; in libnsl_hidden_nolink_def()
659 return res; in libnsl_hidden_nolink_def()
666 (caddr_t) res, 0, NULL); in libnsl_hidden_nolink_def()
668 NIS_RES_STATUS (res) = status; in libnsl_hidden_nolink_def()
672 return res; in libnsl_hidden_nolink_def()
680 nis_result *res; in libnsl_hidden_nolink_def() local
684 res = calloc (1, sizeof (nis_result)); in libnsl_hidden_nolink_def()
685 if (res == NULL) in libnsl_hidden_nolink_def()
690 NIS_RES_STATUS (res) = NIS_BADNAME; in libnsl_hidden_nolink_def()
691 return res; in libnsl_hidden_nolink_def()
697 NIS_RES_STATUS (res) = NIS_BADNAME; in libnsl_hidden_nolink_def()
698 return res; in libnsl_hidden_nolink_def()
707 NIS_RES_STATUS (res) = NIS_NOMEMORY; in libnsl_hidden_nolink_def()
708 return res; in libnsl_hidden_nolink_def()
716 (caddr_t) res, 0, NULL)) != NIS_SUCCESS) in libnsl_hidden_nolink_def()
717 NIS_RES_STATUS (res) = status; in libnsl_hidden_nolink_def()
721 return res; in libnsl_hidden_nolink_def()
728 nis_result *res; in libnsl_hidden_nolink_def() local
732 res = calloc (1, sizeof (nis_result)); in libnsl_hidden_nolink_def()
733 if (res == NULL) in libnsl_hidden_nolink_def()
738 NIS_RES_STATUS (res) = NIS_BADNAME; in libnsl_hidden_nolink_def()
739 return res; in libnsl_hidden_nolink_def()
745 NIS_RES_STATUS (res) = NIS_BADNAME; in libnsl_hidden_nolink_def()
746 return res; in libnsl_hidden_nolink_def()
752 (caddr_t) res, 0, NULL); in libnsl_hidden_nolink_def()
755 NIS_RES_STATUS (res) = status; in libnsl_hidden_nolink_def()
759 return res; in libnsl_hidden_nolink_def()
766 nis_result *res; in libnsl_hidden_nolink_def() local
770 res = calloc (1, sizeof (nis_result)); in libnsl_hidden_nolink_def()
771 if (res == NULL) in libnsl_hidden_nolink_def()
776 NIS_RES_STATUS (res) = NIS_BADNAME; in libnsl_hidden_nolink_def()
777 return res; in libnsl_hidden_nolink_def()
783 NIS_RES_STATUS (res) = NIS_BADNAME; in libnsl_hidden_nolink_def()
784 return res; in libnsl_hidden_nolink_def()
796 (caddr_t) res, 0, NULL); in libnsl_hidden_nolink_def()
799 NIS_RES_STATUS (res) = status; in libnsl_hidden_nolink_def()
810 return res; in libnsl_hidden_nolink_def()