Searched refs:nlim (Results 1 – 2 of 2) sorted by relevance
14 int rv, nlim, ret = -1; in getgrouplist() local26 nlim = *ngroups; in getgrouplist()27 if (nlim >= 1) *groups++ = gid; in getgrouplist()57 if (++n <= nlim) *groups++ = gr.gr_gid; in getgrouplist()67 if(++n <= nlim) *groups++ = nscdbuf[i]; in getgrouplist()71 ret = n > nlim ? -1 : n; in getgrouplist()
142 …int normalize_index(int n,int nlim) // wraps [-nlim:nlim) into [0:nlim), throw IndexError otherwise in normalize_index() argument145 n += nlim; // negative indices work backwards from end in normalize_index()146 if (n < 0 || n >= nlim) in normalize_index()