Lines Matching refs:ngroups
62 static long ngroups; variable
68 if (i != ngroups) in get_groups()
72 for (i = 0; i < ngroups; ++i) { in get_groups()
81 printf("]) = %ld\n", ngroups); in get_groups()
90 ngroups = syscall(SYSCALL_NR, 0, 0); in main()
91 printf("%s(0, NULL) = %ld\n", SYSCALL_NAME, ngroups); in main()
92 if (ngroups < 0) in main()
114 tail_alloc(ngroups ? sizeof(*g1) * ngroups : 1); in main()
115 GID_TYPE *const g2 = tail_alloc(sizeof(*g2) * (ngroups + 1)); in main()
116 void *efault = g2 + ngroups + 1; in main()
118 get_groups(ngroups, g1); in main()
119 get_groups(ngroups + 1, g1); in main()
120 get_groups(ngroups + 1, g2); in main()
122 if (ngroups) { in main()
123 rc = syscall(SYSCALL_NR, ngroups, efault); in main()
125 SYSCALL_NAME, (unsigned) ngroups, efault, sprintrc(rc)); in main()