Lines Matching refs:ngroups
102 static int ngroups = -2;
108 if (ngroups < -1) {
110 if ((ngroups = getgroups(0, NULL)) < 0)
111 ngroups = 0;
112 gidset = new_array(GETGROUPS_T, ngroups+1);
115 if (ngroups > 0)
116 ngroups = getgroups(ngroups, gidset);
118 for (n = 0; n < ngroups; n++) {
122 if (n == ngroups)
123 gidset[ngroups++] = mygid;
126 char *gidbuf = new_array(char, ngroups*21+32);
130 ngroups, ngroups == 1? "" : "s");
131 for (n = 0; n < ngroups; n++) {
140 for (n = 0; n < ngroups; n++) {