Searched refs:gid_num (Results 1 – 5 of 5) sorted by relevance
/freebsd/tools/regression/sockets/unix_cmsg/ |
H A D | uc_common.c | 585 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 D | unix_cmsg.c | 311 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 D | uc_common.h | 52 int gid_num; member 82 const char *gid_num_str, int gid_num, bool all_gids);
|
H A D | t_cmsgcred_sockcred.c | 54 cmsg1_size = CMSG_SPACE(SOCKCREDSIZE(uc_cfg.proc_cred.gid_num)); in t_cmsgcred_sockcred_server()
|
H A D | t_sockcred.c | 82 cmsg_size = CMSG_SPACE(SOCKCREDSIZE(uc_cfg.proc_cred.gid_num)); in t_sockcred_server()
|