Home
last modified time | relevance | path

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

123

/external/strace/tests-mx32/
Dmsg_control.c209 const size_t len = CMSG_SPACE(sizeof(int) * nfds); in test_scm_rights3()
236 size_t len = CMSG_SPACE(sizeof(struct timeval)); in test_scm_timestamp()
259 len = CMSG_SPACE(sizeof(struct timeval) - sizeof(long)); in test_scm_timestamp()
281 size_t len = CMSG_SPACE(sizeof(struct timespec)); in test_scm_timestampns()
304 len = CMSG_SPACE(sizeof(struct timespec) - sizeof(long)); in test_scm_timestampns()
327 size_t len = CMSG_SPACE(3 * sizeof(struct timespec)); in test_scm_timestamping()
359 len = CMSG_SPACE(3 * sizeof(struct timespec) - sizeof(long)); in test_scm_timestamping()
468 max_msg_controllen = CMSG_SPACE(sizeof(fds0)) + sizeof(*fds0) - 1; in test_sol_socket()
483 CMSG_SPACE(sizeof(fds0)) + CMSG_SPACE(sizeof(fds1)) + in test_sol_socket()
493 && CMSG_ALIGN(cmsg_len[0]) <= CMSG_SPACE(sizeof(fds0)); in test_sol_socket()
[all …]
Dscm_rights.c75 unsigned int cmsg_size = CMSG_SPACE(sizeof(fds)); in main()
96 cmsg_size += CMSG_SPACE(sizeof(struct ucred)); in main()
/external/strace/tests/
Dmsg_control.c209 const size_t len = CMSG_SPACE(sizeof(int) * nfds); in test_scm_rights3()
236 size_t len = CMSG_SPACE(sizeof(struct timeval)); in test_scm_timestamp()
259 len = CMSG_SPACE(sizeof(struct timeval) - sizeof(long)); in test_scm_timestamp()
281 size_t len = CMSG_SPACE(sizeof(struct timespec)); in test_scm_timestampns()
304 len = CMSG_SPACE(sizeof(struct timespec) - sizeof(long)); in test_scm_timestampns()
327 size_t len = CMSG_SPACE(3 * sizeof(struct timespec)); in test_scm_timestamping()
359 len = CMSG_SPACE(3 * sizeof(struct timespec) - sizeof(long)); in test_scm_timestamping()
468 max_msg_controllen = CMSG_SPACE(sizeof(fds0)) + sizeof(*fds0) - 1; in test_sol_socket()
483 CMSG_SPACE(sizeof(fds0)) + CMSG_SPACE(sizeof(fds1)) + in test_sol_socket()
493 && CMSG_ALIGN(cmsg_len[0]) <= CMSG_SPACE(sizeof(fds0)); in test_sol_socket()
[all …]
Dscm_rights.c75 unsigned int cmsg_size = CMSG_SPACE(sizeof(fds)); in main()
96 cmsg_size += CMSG_SPACE(sizeof(struct ucred)); in main()
/external/strace/tests-m32/
Dmsg_control.c209 const size_t len = CMSG_SPACE(sizeof(int) * nfds); in test_scm_rights3()
236 size_t len = CMSG_SPACE(sizeof(struct timeval)); in test_scm_timestamp()
259 len = CMSG_SPACE(sizeof(struct timeval) - sizeof(long)); in test_scm_timestamp()
281 size_t len = CMSG_SPACE(sizeof(struct timespec)); in test_scm_timestampns()
304 len = CMSG_SPACE(sizeof(struct timespec) - sizeof(long)); in test_scm_timestampns()
327 size_t len = CMSG_SPACE(3 * sizeof(struct timespec)); in test_scm_timestamping()
359 len = CMSG_SPACE(3 * sizeof(struct timespec) - sizeof(long)); in test_scm_timestamping()
468 max_msg_controllen = CMSG_SPACE(sizeof(fds0)) + sizeof(*fds0) - 1; in test_sol_socket()
483 CMSG_SPACE(sizeof(fds0)) + CMSG_SPACE(sizeof(fds1)) + in test_sol_socket()
493 && CMSG_ALIGN(cmsg_len[0]) <= CMSG_SPACE(sizeof(fds0)); in test_sol_socket()
[all …]
Dscm_rights.c75 unsigned int cmsg_size = CMSG_SPACE(sizeof(fds)); in main()
96 cmsg_size += CMSG_SPACE(sizeof(struct ucred)); in main()
/external/dhcpcd-6.8.2/
Dipv6.h176 #undef CMSG_SPACE
185 #ifndef CMSG_SPACE
186 #define CMSG_SPACE(len) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(len)) macro
189 #define IP6BUFLEN (CMSG_SPACE(sizeof(struct in6_pktinfo)) + \
190 CMSG_SPACE(sizeof(int)))
198 unsigned char sndbuf[CMSG_SPACE(sizeof(struct in6_pktinfo))];
/external/wpa_supplicant_8/src/crypto/
Dcrypto_linux.c448 char buf[CMSG_SPACE(sizeof(u32))]; in linux_af_alg_skcipher_oper()
460 msg.msg_controllen = CMSG_SPACE(sizeof(u32)); in linux_af_alg_skcipher_oper()
539 char buf[CMSG_SPACE(sizeof(u32))]; in rc4_skip()
562 msg.msg_controllen = CMSG_SPACE(sizeof(u32)); in rc4_skip()
609 char buf[CMSG_SPACE(sizeof(u32))]; in des_encrypt()
635 msg.msg_controllen = CMSG_SPACE(sizeof(u32)); in des_encrypt()
694 msg.msg_controllen = CMSG_SPACE(sizeof(u32)) + in aes_128_cbc_oper()
695 CMSG_SPACE(sizeof(*alg_iv) + iv_len); in aes_128_cbc_oper()
709 hdr->cmsg_len = CMSG_SPACE(sizeof(*alg_iv) + iv_len); in aes_128_cbc_oper()
803 msg.msg_controllen = CMSG_SPACE(sizeof(u32)) + in aes_unwrap()
[all …]
/external/compiler-rt/test/msan/Linux/
Dcmsghdr.cc46 char controlbuf[CMSG_SPACE(kNumFds * sizeof(int)) + in main()
47 CMSG_SPACE(sizeof(struct ucred))]; in main()
73 cmsg = (struct cmsghdr *)(&controlbuf[CMSG_SPACE(kNumFds * sizeof(int))]); in main()
/external/libchrome/base/posix/
Dunix_domain_socket_linux.cc60 const unsigned control_len = CMSG_SPACE(sizeof(int) * fds.size()); in SendMsg()
117 CMSG_SPACE(sizeof(int) * kMaxFileDescriptors) in RecvMsgWithFlags()
120 + CMSG_SPACE(sizeof(struct ucred)) in RecvMsgWithFlags()
/external/ltp/utils/sctp/lib/
Dsendmsg.c38 char outcmsg[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; in sctp_sendmsg()
79 char outcmsg[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; in sctp_send()
/external/libmojo/mojo/edk/embedder/
Dplatform_channel_utils_posix.cc151 char cmsg_buf[CMSG_SPACE(kPlatformChannelMaxNumHandles * sizeof(int))]; in PlatformChannelSendmsgWithHandles()
178 char cmsg_buf[CMSG_SPACE(kPlatformChannelMaxNumHandles * sizeof(int))]; in PlatformChannelSendHandles()
214 char cmsg_buf[CMSG_SPACE(kPlatformChannelMaxNumHandles * sizeof(int))]; in PlatformChannelRecvmsg()
/external/valgrind/none/tests/
Dfdleak_cmsg.c59 char buf[CMSG_SPACE(sizeof(int) * 2)]; in server()
91 char control[CMSG_SPACE(sizeof(int) * 2)]; in client()
/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_threads.c71 char incmsg[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; in t_recv()
95 char outcmsg[CMSG_SPACE(sizeof(sctp_cmsg_data_t))]; in t_send()
Dtest_1_to_1_events.c59 char incmsg[CMSG_SPACE(sizeof(sctp_cmsg_data_t))]; in main()
60 char outcmsg[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; in main()
Dtest_1_to_1_nonblock.c74 char outcmsg[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; in main()
78 char incmsg[CMSG_SPACE(sizeof(sctp_cmsg_data_t))]; in main()
Dtest_assoc_abort.c72 char incmsg[CMSG_SPACE(sizeof(sctp_cmsg_data_t))]; in main()
73 char outcmsg[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; in main()
Dtest_assoc_shutdown.c71 char incmsg[CMSG_SPACE(sizeof(sctp_cmsg_data_t))]; in main()
72 char outcmsg[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; in main()
Dtest_1_to_1_addrs.c89 char outcmsg[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; in main()
93 char incmsg[CMSG_SPACE(sizeof(sctp_cmsg_data_t))]; in main()
/external/adhd/cras/src/common/
Dcras_util.c104 const unsigned int control_size = CMSG_SPACE(sizeof(*fd) * num_fds); in cras_send_with_fds()
135 const unsigned int control_size = CMSG_SPACE(sizeof(*fd) * *num_fds); in cras_recv_with_fds()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc200 CMSG_SPACE(sizeof(int)) + CMSG_SPACE(sizeof(struct ucred)); in ClientEvent()
/external/linux-kselftest/tools/testing/selftests/android/ion/
Dipcsocket.c109 char cmsg_b[CMSG_SPACE(sizeof(int))]; in sendtosocket()
165 char cmsg_b[CMSG_SPACE(sizeof(int))]; in receivefromsocket()
/external/dnsmasq/src/
Dforward.c38 char control[CMSG_SPACE(sizeof(struct in_pktinfo))]; in send_from()
40 char control[CMSG_SPACE(sizeof(struct in_addr))]; in send_from()
43 char control6[CMSG_SPACE(sizeof(struct in6_pktinfo))]; in send_from()
590 char control6[CMSG_SPACE(sizeof(struct in6_pktinfo))]; in receive_query()
593 char control[CMSG_SPACE(sizeof(struct in_pktinfo))]; in receive_query()
595 char control[CMSG_SPACE(sizeof(struct in_addr)) + in receive_query()
596 CMSG_SPACE(sizeof(struct sockaddr_dl))]; in receive_query()
/external/python/cpython2/Modules/_multiprocessing/
Dmultiprocessing.c112 unsigned char buf[CMSG_SPACE(sizeof(int))]; in multiprocessing_sendfd()
152 unsigned char buf[CMSG_SPACE(sizeof(int))]; in multiprocessing_recvfd()
/external/clang/test/Sema/
Ddarwin-align-cast.c12 sys/socket.h:#define CMSG_SPACE(l) (__DARWIN_ALIGN(sizeof(struct

123