Lines Matching refs:res
29 nis_result *res = calloc (1, sizeof (nis_result)); in nis_lookup() local
39 if (res == NULL) in nis_lookup()
47 NIS_RES_STATUS (res) = NIS_NAMEUNREACHABLE; in nis_lookup()
48 return res; in nis_lookup()
68 NIS_RES_STATUS (res) = status; in nis_lookup()
81 (caddr_t) res, RPCTIMEOUT); in nis_lookup()
89 if (NIS_RES_STATUS (res) == NIS_SUCCESS) in nis_lookup()
91 if (__type_of (NIS_RES_OBJECT (res)) == NIS_LINK_OBJ in nis_lookup()
97 NIS_RES_STATUS (res) = NIS_LINKNAMEERROR; in nis_lookup()
102 strdupa (NIS_RES_OBJECT (res)->LI_data.li_name); in nis_lookup()
109 xdr_free ((xdrproc_t) _xdr_nis_result, (char *) res); in nis_lookup()
110 memset (res, '\0', sizeof (*res)); in nis_lookup()
117 if (NIS_RES_STATUS (res) == NIS_SYSTEMERROR in nis_lookup()
118 || NIS_RES_STATUS (res) == NIS_NOSUCHNAME in nis_lookup()
119 || NIS_RES_STATUS (res) == NIS_NOT_ME) in nis_lookup()
141 NIS_RES_STATUS (res) = NIS_NAMEUNREACHABLE; in nis_lookup()
152 NIS_RES_STATUS (res) = status; in nis_lookup()
179 NIS_RES_STATUS (res) = status; in nis_lookup()
183 switch (NIS_RES_STATUS (res)) in nis_lookup()
197 NIS_RES_STATUS (res) = NIS_LINKNAMEERROR; in nis_lookup()
216 return res; in nis_lookup()