Home
last modified time | relevance | path

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

12

/third_party/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()
/third_party/libinput/test/
Dtest-pad.c700 int ngroups; in START_TEST() local
703 ngroups = libinput_device_tablet_pad_get_num_mode_groups(device); in START_TEST()
704 ck_assert_int_eq(ngroups, 1); in START_TEST()
706 for (i = 0; i < ngroups; i++) { in START_TEST()
713 group = libinput_device_tablet_pad_get_mode_group(device, ngroups); in START_TEST()
715 group = libinput_device_tablet_pad_get_mode_group(device, ngroups + 1); in START_TEST()
763 int ngroups; in START_TEST() local
766 ngroups = libinput_device_tablet_pad_get_num_mode_groups(device); in START_TEST()
767 ck_assert_int_ge(ngroups, 1); in START_TEST()
784 int ngroups, nbuttons, nrings, nstrips; in START_TEST() local
[all …]
/third_party/gettext/gettext-runtime/doc/Admin/
DMatrix.java173 int ngroups = 0; in main() local
180 ngroups++; in main()
186 ngroups++; in main()
190 int[][] groups = new int[ngroups][]; in main()
207 for (int group = 0; group < ngroups; group++) { in main()
256 if (group == ngroups-1) { in main()
271 if (group == ngroups-1) { in main()
287 if (group == ngroups-1) { in main()
304 if (group == ngroups-1) { in main()
/third_party/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()
/third_party/musl/src/passwd/
Dgetgrouplist.c12 int getgrouplist(const char *user, gid_t gid, gid_t *groups, int *ngroups) in getgrouplist() argument
26 nlim = *ngroups; in getgrouplist()
72 *ngroups = n; in getgrouplist()
/third_party/mesa3d/src/freedreno/perfcntrs/
Dfdperf.c83 unsigned ngroups; member
301 for (unsigned i = 0; i < dev.ngroups; i++) { in resample()
456 for (unsigned i = 0; i < dev.ngroups; i++) { in redraw()
498 for (unsigned i = 0; i < dev.ngroups; i++) { in current_counter()
704 for (unsigned i = 0; i < dev.ngroups; i++) { in restore_counter_groups()
721 for (unsigned i = 0; i < dev.ngroups; i++) { in setup_counter_groups()
763 for (unsigned i = 0; i < dev.ngroups; i++) { in config_save()
806 for (unsigned i = 0; i < dev.ngroups; i++) { in config_restore()
848 groups = fd_perfcntrs(&dev_id, &dev.ngroups); in main()
853 dev.groups = calloc(dev.ngroups, sizeof(struct counter_group)); in main()
/third_party/node/src/
Dnode_credentials.cc294 int ngroups = getgroups(0, nullptr); in GetGroups() local
295 if (ngroups == -1) return env->ThrowErrnoException(errno, "getgroups"); in GetGroups()
297 std::vector<gid_t> groups(ngroups); in GetGroups()
299 ngroups = getgroups(ngroups, groups.data()); in GetGroups()
300 if (ngroups == -1) in GetGroups()
303 groups.resize(ngroups); in GetGroups()
/third_party/skia/third_party/externals/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()
/third_party/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()
/third_party/flutter/skia/third_party/externals/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()
/third_party/weston/libweston/
Dweston-launch.c123 read_groups(int *ngroups) in read_groups() argument
147 *ngroups = n; in read_groups()
156 int ngroups; in weston_launch_allowed() local
167 groups = read_groups(&ngroups); in weston_launch_allowed()
168 if (groups && ngroups > 0) { in weston_launch_allowed()
169 while (ngroups--) { in weston_launch_allowed()
170 if (groups[ngroups] == gr->gr_gid) { in weston_launch_allowed()
/third_party/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()
De2fsck.h623 dgrp_t ngroups);
/third_party/libinput/tools/
Dlibinput-list-devices.c248 int nbuttons, nrings, nstrips, ngroups, nmodes; in print_pad_info() local
254 ngroups = libinput_device_tablet_pad_get_num_mode_groups(device); in print_pad_info()
263 printf(" Mode groups: %d (%d modes)\n", ngroups, nmodes); in print_pad_info()
Dlibinput-debug-events.c216 int nbuttons, nstrips, nrings, ngroups; in print_device_options() local
221 ngroups = libinput_device_tablet_pad_get_num_mode_groups(dev); in print_device_options()
227 ngroups); in print_device_options()
/third_party/openssl/apps/
Ds_cb.c345 int i, ngroups, *groups, nid; in ssl_print_groups() local
348 ngroups = SSL_get1_groups(s, NULL); in ssl_print_groups()
349 if (ngroups <= 0) in ssl_print_groups()
351 groups = app_malloc(ngroups * sizeof(int), "groups to print"); in ssl_print_groups()
355 for (i = 0; i < ngroups; i++) { in ssl_print_groups()
377 ngroups = SSL_get_shared_group(s, -1); in ssl_print_groups()
378 for (i = 0; i < ngroups; i++) { in ssl_print_groups()
388 if (ngroups == 0) in ssl_print_groups()
/third_party/openssl/ssl/
Dt1_lib.c339 int *groups, size_t ngroups) in tls1_set_groups() argument
349 if (ngroups == 0) { in tls1_set_groups()
353 if ((glist = OPENSSL_malloc(ngroups * sizeof(*glist))) == NULL) { in tls1_set_groups()
357 for (i = 0; i < ngroups; i++) { in tls1_set_groups()
372 *pextlen = ngroups; in tls1_set_groups()
/third_party/python/Modules/
Dposixmodule.c7469 int i, ngroups; in os_getgrouplist_impl() local
7485 ngroups = 1 + MAX_GROUPS; in os_getgrouplist_impl()
7489 groups = PyMem_New(int, ngroups); in os_getgrouplist_impl()
7491 groups = PyMem_New(gid_t, ngroups); in os_getgrouplist_impl()
7497 int old_ngroups = ngroups; in os_getgrouplist_impl()
7498 if (getgrouplist(user, basegid, groups, &ngroups) != -1) { in os_getgrouplist_impl()
7506 if (ngroups > old_ngroups) { in os_getgrouplist_impl()
7513 if (ngroups > INT_MAX / 2) { in os_getgrouplist_impl()
7516 ngroups *= 2; in os_getgrouplist_impl()
7524 __msan_unpoison(&ngroups, sizeof(ngroups)); in os_getgrouplist_impl()
[all …]
/third_party/re2/re2/
Dparse.cc1622 const UGroup *groups, int ngroups) { in LookupGroup() argument
1624 for (int i = 0; i < ngroups; i++) in LookupGroup()
/third_party/lwip/src/netif/ppp/
Dauth.c490 for (i = 0; i < ngroups; ++i) {
/third_party/python/Misc/NEWS.d/
D3.9.0a6.rst728 glibc implementation of ``getgrouplist()`` sets ``ngroups`` to the total
/third_party/mesa3d/src/imgui/
Dimstb_truetype.h1527 stbtt_uint32 ngroups = ttULONG(data+index_map+12); in stbtt_FindGlyphIndex() local
1529 low = 0; high = (stbtt_int32)ngroups; in stbtt_FindGlyphIndex()
/third_party/skia/third_party/externals/imgui/
Dimstb_truetype.h1527 stbtt_uint32 ngroups = ttULONG(data+index_map+12); in stbtt_FindGlyphIndex() local
1529 low = 0; high = (stbtt_int32)ngroups; in stbtt_FindGlyphIndex()
/third_party/flutter/skia/third_party/externals/imgui/
Dimstb_truetype.h1511 stbtt_uint32 ngroups = ttULONG(data+index_map+12); in stbtt_FindGlyphIndex() local
1513 low = 0; high = (stbtt_int32)ngroups; in stbtt_FindGlyphIndex()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/build/Fuchsia/include/llvm/IR/
DIntrinsics.gen4201 r600_read_ngroups_x, // llvm.r600.read.ngroups.x
4202 r600_read_ngroups_y, // llvm.r600.read.ngroups.y
4203 r600_read_ngroups_z, // llvm.r600.read.ngroups.z
10259 "llvm.r600.read.ngroups.x",
10260 "llvm.r600.read.ngroups.y",
10261 "llvm.r600.read.ngroups.z",
18199 1, // llvm.r600.read.ngroups.x
18200 1, // llvm.r600.read.ngroups.y
18201 1, // llvm.r600.read.ngroups.z

12