Home
last modified time | relevance | path

Searched refs:ngroups (Results 1 – 25 of 47) 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/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/mesa3d/src/freedreno/perfcntrs/
Dfdperf.c93 unsigned ngroups; member
320 for (unsigned i = 0; i < dev.ngroups; i++) { in resample()
475 for (unsigned i = 0; i < dev.ngroups; i++) { in redraw()
517 for (unsigned i = 0; i < dev.ngroups; i++) { in current_counter()
727 for (unsigned i = 0; i < dev.ngroups; i++) { in dump_counters()
756 for (unsigned i = 0; i < dev.ngroups; i++) { in restore_counter_groups()
773 for (unsigned i = 0; i < dev.ngroups; i++) { in setup_counter_groups()
815 for (unsigned i = 0; i < dev.ngroups; i++) { in config_save()
858 for (unsigned i = 0; i < dev.ngroups; i++) { in config_restore()
935 groups = fd_perfcntrs(&dev_id, &dev.ngroups); in main()
[all …]
/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/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()
73 *ngroups = n; in getgrouplist()
/third_party/elfutils/libasm/
Dasm_newscngrp.c89 if (ctx->ngroups == 0) in asm_newscngrp()
99 ++ctx->ngroups; in asm_newscngrp()
DlibasmP.h174 size_t ngroups; member
Dasm_begin.c121 result->ngroups = 0; in prepare_binary_output()
/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.c428 int ci, rgroup, ngroups; in jinit_d_main_controller() local
447 ngroups = cinfo->_min_DCT_scaled_size + 2; in jinit_d_main_controller()
449 ngroups = cinfo->_min_DCT_scaled_size; in jinit_d_main_controller()
459 (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/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.c231 int nbuttons, nstrips, nrings, ngroups; in print_device_options() local
236 ngroups = libinput_device_tablet_pad_get_num_mode_groups(dev); in print_device_options()
242 ngroups); in print_device_options()
/third_party/openssl/apps/lib/
Ds_cb.c358 int i, ngroups, *groups, nid; in ssl_print_groups() local
360 ngroups = SSL_get1_groups(s, NULL); in ssl_print_groups()
361 if (ngroups <= 0) in ssl_print_groups()
363 groups = app_malloc(ngroups * sizeof(int), "groups to print"); in ssl_print_groups()
367 for (i = 0; i < ngroups; i++) { in ssl_print_groups()
379 ngroups = SSL_get_shared_group(s, -1); in ssl_print_groups()
380 for (i = 0; i < ngroups; i++) { in ssl_print_groups()
386 if (ngroups == 0) in ssl_print_groups()
/third_party/rust/crates/nix/src/
Dunistd.rs1529 let ngroups = unsafe { libc::getgroups(0, ptr::null_mut()) }; localVariable
1535 if ngroups == 0 {
1542 let mut groups = Vec::<Gid>::with_capacity(Errno::result(ngroups)? as usize);
1547 let ngroups = unsafe { localVariable
1551 match Errno::result(ngroups) {
1664 let mut ngroups = groups.capacity() as i32; localVariable
1669 &mut ngroups)
1674 unsafe { groups.set_len(ngroups as usize) };
/third_party/openssl/ssl/
Dt1_lib.c654 int *groups, size_t ngroups) in tls1_set_groups() argument
666 if (ngroups == 0) { in tls1_set_groups()
670 if ((glist = OPENSSL_malloc(ngroups * sizeof(*glist))) == NULL) { in tls1_set_groups()
674 for (i = 0; i < ngroups; i++) { in tls1_set_groups()
689 *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/rust/crates/libc/src/unix/bsd/netbsdlike/
Dmod.rs728 ngroups: *mut ::c_int, in getgrouplist()
/third_party/rust/crates/libc/src/unix/bsd/
Dmod.rs630 pub fn setgroups(ngroups: ::c_int, ptr: *const ::gid_t) -> ::c_int; in setgroups()
/third_party/rust/crates/libc/src/unix/hermit/
Dmod.rs1009 pub fn setgroups(ngroups: ::c_int, grouplist: *const ::gid_t) -> ::c_int; in setgroups()
/third_party/rust/crates/libc/src/unix/nto/
Dneutrino.rs42 pub ngroups: u32,
Dmod.rs2673 pub fn setgroups(ngroups: ::c_int, ptr: *const ::gid_t) -> ::c_int; in setgroups()
2941 ngroups: *mut ::c_int, in getgrouplist()
/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

12