Home
last modified time | relevance | path

Searched refs:CMSG_SPACE (Results 1 – 9 of 9) sorted by relevance

/xnu-10063.141.1/tests/
H A Dunp_externalize_fd_alloc.c32 char buf[CMSG_SPACE(sizeof(int))];
40 msg.msg_controllen = CMSG_SPACE(sizeof(int));
55 char rbuf[CMSG_SPACE(sizeof(int))];
63 rmsg.msg_controllen = CMSG_SPACE(sizeof(int));
H A Drecvmsg_x_ctrunc.c66 const socklen_t cmsg_size = (socklen_t)CMSG_SPACE(sizeof(int)); in send_packets()
85 msg->msg_controllen = CMSG_SPACE(sizeof(int)); in send_packets()
92 msg->msg_controllen = CMSG_SPACE(sizeof(int)); in send_packets()
128 …n_t cmsg_size = (socklen_t)MAX(CMSG_SPACE(sizeof(struct in_pktinfo)), CMSG_SPACE(sizeof(struct in6… in receive_packets()
H A Dfd_send.c23 char buf[CMSG_SPACE(sizeof(int))]; in send_fd()
32 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in send_fd()
55 char buf[CMSG_SPACE(sizeof(int))]; in recv_fd()
65 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in recv_fd()
H A Dscm_rights_leak.c47 T_ASSERT_NOTNULL(cmsg = calloc(1, CMSG_SPACE(MAX_SOCK * sizeof(int))), "calloc");
78 socklen_t rcmsg_size = CMSG_SPACE(MAX_SOCK * 2 * sizeof(uintptr_t));
H A Dtcp_send_implied_connect.c98 char buf[CMSG_SPACE(sizeof(int))]; in tcp_send_implied_connect_v4()
105 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in tcp_send_implied_connect_v4()
151 char buf[CMSG_SPACE(sizeof(int))]; in tcp_send_implied_connect_v6()
181 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in tcp_send_implied_connect_v6()
H A Dv4mappedv6_recvpktinfo.c194 char control_space[CMSG_SPACE(8192)] = {}; in do_kqueue()
/xnu-10063.141.1/bsd/kern/
H A Duipc_socket2.c1934 if (CMSG_SPACE((u_int)size) > MLEN) { in sbcreatecontrol()
1944 m->m_len = (int32_t)CMSG_SPACE(size); in sbcreatecontrol()
1962 if (CMSG_SPACE((u_int)size) + (*mp)->m_len > MLEN) { in sbcreatecontrol_mbuf()
1973 m->m_len += (int32_t)CMSG_SPACE(size); in sbcreatecontrol_mbuf()
H A Duipc_syscalls.c2054 unsigned char tmp_buffer[CMSG_SPACE(sizeof(struct user64_timeval))] = {}; in copyout_control()
2069 tmp_space = CMSG_SPACE(sizeof(struct user64_timeval)); in copyout_control()
2077 tmp_space = CMSG_SPACE(sizeof(struct user32_timeval)); in copyout_control()
/xnu-10063.141.1/bsd/sys/
H A Dsocket.h1164 #define CMSG_SPACE(l) (__DARWIN_ALIGN32(sizeof(struct cmsghdr)) + __DARWIN_ALIGN32(l)) macro