Lines Matching refs:res
31 nis_result *res, *res2; in nis_addmember() local
43 res = nis_lookup (buf, FOLLOW_LINKS | EXPAND_NAME); in nis_addmember()
44 if (NIS_RES_STATUS (res) != NIS_SUCCESS) in nis_addmember()
46 status = NIS_RES_STATUS (res); in nis_addmember()
47 nis_freeresult (res); in nis_addmember()
50 if (NIS_RES_NUMOBJ (res) != 1 in nis_addmember()
51 || __type_of (NIS_RES_OBJECT (res)) != NIS_GROUP_OBJ) in nis_addmember()
53 nis_freeresult (res); in nis_addmember()
58 = NIS_RES_OBJECT(res)->GR_data.gr_members.gr_members_len; in nis_addmember()
61 = realloc (NIS_RES_OBJECT (res)->GR_data.gr_members.gr_members_val, in nis_addmember()
66 NIS_RES_OBJECT (res)->GR_data.gr_members.gr_members_val in nis_addmember()
73 nis_freeresult (res); in nis_addmember()
76 ++NIS_RES_OBJECT (res)->GR_data.gr_members.gr_members_len; in nis_addmember()
79 assert (strlen (NIS_RES_OBJECT(res)->zo_name) + 1 < grouplen + 14); in nis_addmember()
80 cp = stpcpy (buf, NIS_RES_OBJECT(res)->zo_name); in nis_addmember()
82 strncpy (cp, NIS_RES_OBJECT (res)->zo_domain, NIS_MAXNAMELEN); in nis_addmember()
83 res2 = nis_modify (buf, NIS_RES_OBJECT (res)); in nis_addmember()
85 nis_freeresult (res); in nis_addmember()