static int groups_search(struct group_info *group_info, gid_t grp)
int groups_search(struct group_info *group_info, gid_t grp)
static int groups_search(struct group_info *group_info, gid_t grp){	int left, right;	if (!group_info)		return 0;	left = 0;	right = group_info->ngroups;	while (left < right) {		int mid = (left+right)/2;		int cmp = grp - GROUP_AT(group_info, mid);		if (cmp > 0)			left = mid + 1;		else if (cmp < 0)			right = mid;		else			return 1;	}	return 0;}