Home
last modified time | relevance | path

Searched refs:ngroups (Results 1 – 25 of 42) sorted by relevance

12

/external/strace/tests-mx32/
Dgetgroups.c62 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()
[all …]
/external/strace/tests/
Dgetgroups.c62 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()
[all …]
/external/strace/tests-m32/
Dgetgroups.c62 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()
[all …]
/external/openssh/
Dgroupaccess.c42 static int ngroups; variable
60 if (ngroups > 0) in ga_init()
63 ngroups = NGROUPS_MAX; in ga_init()
65 ngroups = MAX(NGROUPS_MAX, sysconf(_SC_NGROUPS_MAX)); in ga_init()
68 groups_bygid = xcalloc(ngroups, sizeof(*groups_bygid)); in ga_init()
69 groups_byname = xcalloc(ngroups, sizeof(*groups_byname)); in ga_init()
71 if (getgrouplist(user, base, groups_bygid, &ngroups) == -1) in ga_init()
73 for (i = 0, j = 0; i < ngroups; i++) in ga_init()
77 return (ngroups = j); in ga_init()
90 for (i = 0; i < ngroups; i++) in ga_match()
[all …]
/external/openssh/openbsd-compat/
Dgetgrouplist.c49 int i, ngroups; in getgrouplist() local
54 ngroups = 0; in getgrouplist()
60 if (ngroups >= maxgroups) { in getgrouplist()
61 *grpcnt = ngroups; in getgrouplist()
64 groups[ngroups++] = agroup; in getgrouplist()
73 for (bail = 0, i = 0; bail == 0 && i < ngroups; i++) in getgrouplist()
80 if (ngroups >= maxgroups) { in getgrouplist()
84 groups[ngroups++] = grp->gr_gid; in getgrouplist()
91 *grpcnt = ngroups; in getgrouplist()
Dport-aix.c436 int ret = 0, ngroups = 0, maxgroups; in getgrouplist() local
451 groups[ngroups++] = pgid; in getgrouplist()
456 if (ngroups >= maxgroups || l == LONG_MIN || l == LONG_MAX) { in getgrouplist()
463 groups[ngroups++] = gid; in getgrouplist()
467 *grpcnt = ngroups; in getgrouplist()
/external/ltp/testcases/kernel/syscalls/getgroups/
Dgetgroups03.c50 static int ngroups; variable
142 ngroups = readgroups(groups); in setup()
149 if (SETGROUPS(cleanup, ngroups, groups) == -1) in setup()
175 for (j = 0; j < ngroups; j++) { in verify_groups()
178 if (j == ngroups - 1) { in verify_groups()
194 for (i = 0; i < ngroups; i++) { in verify_groups()
232 ngroups--; in verify_groups()
233 if (ngroups != ret_ngroups) { in verify_groups()
236 "(expected %d)", ret_ngroups, ngroups); in verify_groups()
/external/u-boot/drivers/pinctrl/mvebu/
Dpinctrl-armada-37xx.c80 int ngroups; member
86 unsigned int ngroups; member
95 unsigned int ngroups; member
199 .ngroups = ARRAY_SIZE(armada_37xx_nb_groups),
206 .ngroups = ARRAY_SIZE(armada_37xx_sb_groups),
235 return info->ngroups; in armada_37xx_pmx_get_groups_count()
318 while (funcs->ngroups) { in armada_37xx_add_function()
321 funcs->ngroups++; in armada_37xx_add_function()
331 funcs->ngroups = 1; in armada_37xx_add_function()
350 for (n = 0; n < info->ngroups; n++) { in armada_37xx_fill_group()
[all …]
/external/u-boot/lib/
Dhexdump.c56 int ngroups; in hex_dump_to_buffer() local
72 ngroups = len / groupsize; in hex_dump_to_buffer()
84 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer()
95 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer()
106 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer()
150 return ascii ? ascii_column + len : (groupsize * 2 + 1) * ngroups - 1; in hex_dump_to_buffer()
/external/toybox/toys/posix/
Did.c87 int flags, i, ngroups; in do_id() local
131 ngroups = username ? getgrouplist(username, gid, groups, &i) in do_id()
133 if (ngroups<0) perror_exit(0); in do_id()
136 for (i = 0; i<ngroups; i++) { in do_id()
/external/jemalloc/src/
Dbitmap.c81 binfo->ngroups = BITMAP_BITS2GROUPS(nbits); in bitmap_info_init()
89 return (binfo->ngroups); in bitmap_info_ngroups()
101 bitmap[binfo->ngroups - 1] >>= extra; in bitmap_init()
/external/jemalloc_new/src/
Dbitmap.c90 binfo->ngroups = BITMAP_BITS2GROUPS(nbits); in bitmap_info_init()
96 return binfo->ngroups; in bitmap_info_ngroups()
112 bitmap[binfo->ngroups - 1] >>= extra; in bitmap_init()
/external/tcpdump/
Dprint-igmp.c153 u_int group, nsrcs, ngroups; in print_igmpv3_report() local
162 ngroups = EXTRACT_16BITS(&bp[6]); in print_igmpv3_report()
163 ND_PRINT((ndo, ", %d group record(s)", ngroups)); in print_igmpv3_report()
167 for (i=0; i<ngroups; i++) { in print_igmpv3_report()
/external/elfutils/libasm/
Dasm_newscngrp.c89 if (ctx->ngroups == 0) in asm_newscngrp()
99 ++ctx->ngroups; in asm_newscngrp()
Dasm_begin.c123 result->ngroups = 0; in prepare_binary_output()
DlibasmP.h173 size_t ngroups; member
/external/libjpeg-turbo/
Djdmainct.c427 int ci, rgroup, ngroups; in jinit_d_main_controller() local
446 ngroups = cinfo->_min_DCT_scaled_size + 2; in jinit_d_main_controller()
448 ngroups = cinfo->_min_DCT_scaled_size; in jinit_d_main_controller()
458 (JDIMENSION)(rgroup * ngroups)); in jinit_d_main_controller()
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/
Damdgpu.work-item-intrinsics.deprecated.ll17 %0 = call i32 @llvm.r600.read.ngroups.x() #0
32 %0 = call i32 @llvm.r600.read.ngroups.y() #0
47 %0 = call i32 @llvm.r600.read.ngroups.z() #0
231 declare i32 @llvm.r600.read.ngroups.x() #0
232 declare i32 @llvm.r600.read.ngroups.y() #0
233 declare i32 @llvm.r600.read.ngroups.z() #0
/external/e2fsprogs/e2fsck/
Dreadahead.c143 dgrp_t ngroups) in e2fsck_readahead() argument
149 dgrp_t end = start + ngroups; in e2fsck_readahead()
153 start, ngroups); in e2fsck_readahead()
/external/llvm/test/CodeGen/AMDGPU/
Damdgpu.work-item-intrinsics.deprecated.ll32 %0 = call i32 @llvm.r600.read.ngroups.x() #0
47 %0 = call i32 @llvm.r600.read.ngroups.y() #0
62 %0 = call i32 @llvm.r600.read.ngroups.z() #0
246 declare i32 @llvm.r600.read.ngroups.x() #0
247 declare i32 @llvm.r600.read.ngroups.y() #0
248 declare i32 @llvm.r600.read.ngroups.z() #0
/external/u-boot/drivers/pinctrl/
Dpinctrl-generic.c54 unsigned ngroups, selector; in pinctrl_group_name_to_selector() local
61 ngroups = ops->get_groups_count(dev); in pinctrl_group_name_to_selector()
64 for (selector = 0; selector < ngroups; selector++) { in pinctrl_group_name_to_selector()
/external/libcap/progs/
Dcapsh.c415 int status, ngroups; in main() local
423 ngroups = MAX_GROUPS; in main()
424 status = getgrouplist(user, pwd->pw_gid, groups, &ngroups); in main()
429 status = setgroups(ngroups, groups); in main()
/external/jemalloc_new/include/jemalloc/internal/
Dbitmap.h167 size_t ngroups; member
185 for (i = 0; i < binfo->ngroups; i++) { in bitmap_full()
294 } while (i < binfo->ngroups); in bitmap_ffu()
/external/jemalloc/include/jemalloc/internal/
Dbitmap.h109 size_t ngroups; member
145 for (i = 0; i < binfo->ngroups; i++) { in bitmap_full()
/external/jemalloc_new/test/unit/
Dbitmap.c121 assert_zu_eq(binfo->ngroups, binfo_dyn.ngroups, in test_bitmap_initializer_body()

12