/external/strace/tests/ |
getgroups.c | 104 const unsigned int ngroups_max = sysconf(_SC_NGROUPS_MAX); local 106 rc = syscall(SYSCALL_NR, ngroups_max, 0); 107 printf("%s(%d, NULL) = %s\n", SYSCALL_NAME, ngroups_max, sprintrc(rc)); 109 rc = syscall(SYSCALL_NR, F8ILL_KULONG_MASK | ngroups_max, 0); 110 printf("%s(%d, NULL) = %s\n", SYSCALL_NAME, ngroups_max, sprintrc(rc));
|
setgroups.c | 157 const unsigned ngroups_max = rc; local 159 if ((unsigned long) rc == ngroups_max && (int) ngroups_max > 0) { 160 rc = syscall(SYSCALL_NR, ngroups_max, g3); 162 printf("%s(%d, [", SYSCALL_NAME, ngroups_max); 168 rc = syscall(SYSCALL_NR, F8ILL_KULONG_MASK | ngroups_max, g3); 170 printf("%s(%d, [", SYSCALL_NAME, ngroups_max); 176 rc = syscall(SYSCALL_NR, ngroups_max + 1, g3); 178 ngroups_max + 1, g3, sprintrc(rc));
|
/external/strace/tests-m32/ |
getgroups.c | 104 const unsigned int ngroups_max = sysconf(_SC_NGROUPS_MAX); local 106 rc = syscall(SYSCALL_NR, ngroups_max, 0); 107 printf("%s(%d, NULL) = %s\n", SYSCALL_NAME, ngroups_max, sprintrc(rc)); 109 rc = syscall(SYSCALL_NR, F8ILL_KULONG_MASK | ngroups_max, 0); 110 printf("%s(%d, NULL) = %s\n", SYSCALL_NAME, ngroups_max, sprintrc(rc));
|
setgroups.c | 157 const unsigned ngroups_max = rc; local 159 if ((unsigned long) rc == ngroups_max && (int) ngroups_max > 0) { 160 rc = syscall(SYSCALL_NR, ngroups_max, g3); 162 printf("%s(%d, [", SYSCALL_NAME, ngroups_max); 168 rc = syscall(SYSCALL_NR, F8ILL_KULONG_MASK | ngroups_max, g3); 170 printf("%s(%d, [", SYSCALL_NAME, ngroups_max); 176 rc = syscall(SYSCALL_NR, ngroups_max + 1, g3); 178 ngroups_max + 1, g3, sprintrc(rc));
|
/external/strace/tests-mx32/ |
getgroups.c | 104 const unsigned int ngroups_max = sysconf(_SC_NGROUPS_MAX); local 106 rc = syscall(SYSCALL_NR, ngroups_max, 0); 107 printf("%s(%d, NULL) = %s\n", SYSCALL_NAME, ngroups_max, sprintrc(rc)); 109 rc = syscall(SYSCALL_NR, F8ILL_KULONG_MASK | ngroups_max, 0); 110 printf("%s(%d, NULL) = %s\n", SYSCALL_NAME, ngroups_max, sprintrc(rc));
|
setgroups.c | 157 const unsigned ngroups_max = rc; local 159 if ((unsigned long) rc == ngroups_max && (int) ngroups_max > 0) { 160 rc = syscall(SYSCALL_NR, ngroups_max, g3); 162 printf("%s(%d, [", SYSCALL_NAME, ngroups_max); 168 rc = syscall(SYSCALL_NR, F8ILL_KULONG_MASK | ngroups_max, g3); 170 printf("%s(%d, [", SYSCALL_NAME, ngroups_max); 176 rc = syscall(SYSCALL_NR, ngroups_max + 1, g3); 178 ngroups_max + 1, g3, sprintrc(rc));
|
/external/ltp/testcases/kernel/syscalls/setgroups/ |
setgroups03.c | 111 int ngroups_max = sysconf(_SC_NGROUPS_MAX); /* max no. of groups in the current system */ local 115 groups_list = malloc(ngroups_max * sizeof(GID_T)); 118 " %d ", ngroups_max * sizeof(GID_T), errno); 132 gidsetsize = ngroups_max + Test_cases[i].gsize_add;
|
/external/strace/ |
uid.c | 172 static unsigned long ngroups_max; local 173 if (!ngroups_max) 174 ngroups_max = sysconf(_SC_NGROUPS_MAX); 176 if (len > ngroups_max) {
|