Searched refs:uc_cfg (Results 1 - 8 of 8) sorted by relevance
/freebsd-13-stable/tools/regression/sockets/unix_cmsg/ |
H A D | unix_cmsg.c | 190 struct uc_cfg uc_cfg; variable in typeref:struct:uc_cfg 231 uc_cfg.sock_type = type; 233 uc_cfg.sock_type_str = "SOCK_STREAM"; 237 uc_cfg.sock_type_str = "SOCK_DGRAM"; 247 uc_output("Running tests for %s sockets:\n", uc_cfg.sock_type_str); 287 uc_cfg.proc_name = "SERVER"; 297 if (uc_cfg.ipc_msg.buf_size == 0) 298 uc_cfg.ipc_msg.buf_send = uc_cfg [all...] |
H A D | uc_common.c | 86 uc_output("%s: %s\n", uc_cfg.proc_name, buf); 88 uc_output("%s: %s: %s\n", uc_cfg.proc_name, buf, 101 uc_output("%s: %s\n", uc_cfg.proc_name, buf); 119 if (uc_cfg.debug) { 132 fd = socket(PF_LOCAL, uc_cfg.sock_type, 0); 134 uc_logmsg("socket_create: socket(PF_LOCAL, %s, 0)", uc_cfg.sock_type_str); 137 if (uc_cfg.server_flag) 138 uc_cfg.serv_sock_fd = fd; 148 if (uc_cfg.server_flag) { 149 if (bind(fd, (struct sockaddr *)&uc_cfg [all...] |
H A D | t_cmsgcred_sockcred.c | 57 cmsg1_size = CMSG_SPACE(SOCKCREDSIZE(uc_cfg.proc_cred.gid_num)); 76 if (uc_cfg.sock_type == SOCK_STREAM) { 86 for (i = 1; i <= uc_cfg.ipc_msg.msg_num; ++i) { 99 if (i == 1 || uc_cfg.sock_type == SOCK_DGRAM) { 110 if (i > uc_cfg.ipc_msg.msg_num) 115 if (uc_cfg.sock_type == SOCK_STREAM && fd2 >= 0)
|
H A D | t_sockcred.c | 85 cmsg_size = CMSG_SPACE(SOCKCREDSIZE(uc_cfg.proc_cred.gid_num)); 104 if (uc_cfg.sock_type == SOCK_STREAM) { 123 for (i = 1; i <= uc_cfg.ipc_msg.msg_num; ++i) { 132 if (i > 1 && uc_cfg.sock_type == SOCK_STREAM) { 144 if (i > uc_cfg.ipc_msg.msg_num) 148 if (uc_cfg.sock_type == SOCK_STREAM && fd2 >= 0)
|
H A D | t_cmsgcred.c | 101 if (uc_cfg.sock_type == SOCK_STREAM) { 109 for (i = 1; i <= uc_cfg.ipc_msg.msg_num; ++i) { 125 if (i > uc_cfg.ipc_msg.msg_num) 129 if (uc_cfg.sock_type == SOCK_STREAM && fd2 >= 0)
|
H A D | t_peercred.c | 63 if (xucred->cr_uid != uc_cfg.proc_cred.euid) { 65 (u_long)xucred->cr_uid, (u_long)uc_cfg.proc_cred.euid); 81 if (xucred->cr_groups[0] != uc_cfg.proc_cred.egid) { 83 (u_long)xucred->cr_groups[0], (u_long)uc_cfg.proc_cred.egid);
|
H A D | uc_common.h | 30 struct uc_cfg { struct 58 extern struct uc_cfg uc_cfg;
|
H A D | t_cmsg_len.c | 115 if (uc_cfg.sock_type == SOCK_STREAM) { 127 if (uc_cfg.sock_type == SOCK_STREAM && fd2 >= 0)
|
Completed in 162 milliseconds