Home
last modified time | relevance | path

Searched refs:gid_num (Results 1 – 5 of 5) sorted by relevance

/freebsd/tools/regression/sockets/unix_cmsg/
H A Duc_common.c585 const char *gid_num_str, int gid_num, bool all_gids) in uc_check_groups() argument
589 for (i = 0; i < gid_num; ++i) in uc_check_groups()
593 if (gid_num != uc_cfg.proc_cred.gid_num) { in uc_check_groups()
594 uc_logmsgx("%s %d != %d", gid_num_str, gid_num, in uc_check_groups()
595 uc_cfg.proc_cred.gid_num); in uc_check_groups()
599 if (gid_num > uc_cfg.proc_cred.gid_num) { in uc_check_groups()
600 uc_logmsgx("%s %d > %d", gid_num_str, gid_num, in uc_check_groups()
601 uc_cfg.proc_cred.gid_num); in uc_check_groups()
606 gid_num * sizeof(*gid_arr)) != 0) { in uc_check_groups()
608 for (i = 0; i < gid_num; ++i) in uc_check_groups()
[all …]
H A Dunix_cmsg.c311 uc_cfg.proc_cred.gid_num = getgroups(0, (gid_t *)NULL); in init()
312 if (uc_cfg.proc_cred.gid_num < 0) { in init()
316 uc_cfg.proc_cred.gid_arr = malloc(uc_cfg.proc_cred.gid_num * in init()
322 if (getgroups(uc_cfg.proc_cred.gid_num, uc_cfg.proc_cred.gid_arr) < 0) { in init()
H A Duc_common.h52 int gid_num; member
82 const char *gid_num_str, int gid_num, bool all_gids);
H A Dt_cmsgcred_sockcred.c54 cmsg1_size = CMSG_SPACE(SOCKCREDSIZE(uc_cfg.proc_cred.gid_num)); in t_cmsgcred_sockcred_server()
H A Dt_sockcred.c82 cmsg_size = CMSG_SPACE(SOCKCREDSIZE(uc_cfg.proc_cred.gid_num)); in t_sockcred_server()