Home
last modified time | relevance | path

Searched refs:CMSG_LEN (Results 1 – 25 of 87) sorted by relevance

1234

/external/strace/tests/
Dmsg_control.c69 size_t nfd = cmsg_len > CMSG_LEN(0) in print_fds()
70 ? (cmsg_len - CMSG_LEN(0)) / sizeof(int) : 0; in print_fds()
99 cmsg_len > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len) : CMSG_LEN(0); in test_scm_rights1()
100 if (cmsg_len >= CMSG_LEN(0) in test_scm_rights1()
101 && aligned_cms_len + CMSG_LEN(0) <= msg_controllen) in test_scm_rights1()
115 if (src_len > CMSG_LEN(0)) in test_scm_rights1()
116 memcpy(CMSG_DATA(cmsg), src, src_len - CMSG_LEN(0)); in test_scm_rights1()
126 if (msg_controllen < CMSG_LEN(0)) { in test_scm_rights1()
152 cmsg_len[0] > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len[0]) : CMSG_LEN(0), in test_scm_rights2()
153 cmsg_len[1] > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len[1]) : CMSG_LEN(0) in test_scm_rights2()
[all …]
Dscm_rights.c80 cmsg->cmsg_len = CMSG_LEN(sizeof(fds)); in main()
/external/strace/tests-m32/
Dmsg_control.c69 size_t nfd = cmsg_len > CMSG_LEN(0) in print_fds()
70 ? (cmsg_len - CMSG_LEN(0)) / sizeof(int) : 0; in print_fds()
99 cmsg_len > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len) : CMSG_LEN(0); in test_scm_rights1()
100 if (cmsg_len >= CMSG_LEN(0) in test_scm_rights1()
101 && aligned_cms_len + CMSG_LEN(0) <= msg_controllen) in test_scm_rights1()
115 if (src_len > CMSG_LEN(0)) in test_scm_rights1()
116 memcpy(CMSG_DATA(cmsg), src, src_len - CMSG_LEN(0)); in test_scm_rights1()
126 if (msg_controllen < CMSG_LEN(0)) { in test_scm_rights1()
152 cmsg_len[0] > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len[0]) : CMSG_LEN(0), in test_scm_rights2()
153 cmsg_len[1] > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len[1]) : CMSG_LEN(0) in test_scm_rights2()
[all …]
Dscm_rights.c80 cmsg->cmsg_len = CMSG_LEN(sizeof(fds)); in main()
/external/strace/tests-mx32/
Dmsg_control.c69 size_t nfd = cmsg_len > CMSG_LEN(0) in print_fds()
70 ? (cmsg_len - CMSG_LEN(0)) / sizeof(int) : 0; in print_fds()
99 cmsg_len > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len) : CMSG_LEN(0); in test_scm_rights1()
100 if (cmsg_len >= CMSG_LEN(0) in test_scm_rights1()
101 && aligned_cms_len + CMSG_LEN(0) <= msg_controllen) in test_scm_rights1()
115 if (src_len > CMSG_LEN(0)) in test_scm_rights1()
116 memcpy(CMSG_DATA(cmsg), src, src_len - CMSG_LEN(0)); in test_scm_rights1()
126 if (msg_controllen < CMSG_LEN(0)) { in test_scm_rights1()
152 cmsg_len[0] > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len[0]) : CMSG_LEN(0), in test_scm_rights2()
153 cmsg_len[1] > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len[1]) : CMSG_LEN(0) in test_scm_rights2()
[all …]
Dscm_rights.c80 cmsg->cmsg_len = CMSG_LEN(sizeof(fds)); in main()
/external/python/cpython2/Modules/_multiprocessing/
Dmultiprocessing.c11 #if (defined(CMSG_LEN) && defined(SCM_RIGHTS))
128 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in multiprocessing_sendfd()
170 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in multiprocessing_recvfd()
180 if (msg.msg_controllen < CMSG_LEN(sizeof(int)) || in multiprocessing_recvfd()
184 cmsg->cmsg_len < CMSG_LEN(sizeof(int))) { in multiprocessing_recvfd()
/external/linux-kselftest/tools/testing/selftests/android/ion/
Dipcsocket.c139 msgh.msg_controllen = CMSG_LEN(len); in sendtosocket()
147 cmsg->cmsg_len = CMSG_LEN(len); in sendtosocket()
192 msgh.msg_controllen = CMSG_LEN(len); in receivefromsocket()
200 cmsg->cmsg_len = CMSG_LEN(len); in receivefromsocket()
/external/ltp/utils/sctp/lib/
Dsendmsg.c56 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in sctp_sendmsg()
99 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in sctp_send()
/external/compiler-rt/test/msan/Linux/
Dcmsghdr.cc61 cmsg->cmsg_len = CMSG_LEN(kNumFds * sizeof(int)); in main()
81 cmsg->cmsg_len = CMSG_LEN(sizeof(struct ucred)); in main()
/external/llvm-project/compiler-rt/test/msan/Linux/
Dcmsghdr.cpp61 cmsg->cmsg_len = CMSG_LEN(kNumFds * sizeof(int)); in main()
81 cmsg->cmsg_len = CMSG_LEN(sizeof(struct ucred)); in main()
/external/libchrome/mojo/public/cpp/platform/
Dsocket_utils_posix.cc117 msg.msg_controllen = CMSG_LEN(descriptors.size() * sizeof(int)); in SendmsgWithHandles()
121 cmsg->cmsg_len = CMSG_LEN(descriptors.size() * sizeof(int)); in SendmsgWithHandles()
155 size_t payload_length = cmsg->cmsg_len - CMSG_LEN(0); in SocketRecvmsg()
/external/ltp/utils/sctp/func_tests/
Dtest_assoc_abort.c128 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
191 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
Dtest_assoc_shutdown.c128 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
192 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
Dtest_inaddr_any.c160 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
208 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
Dtest_1_to_1_sendmsg.c138 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
296 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
Dtest_timetolive.c202 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
276 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_client.cc71 hdr->cmsg_len = CMSG_LEN(sizeof(int)); in RequestDump()
/external/libchrome/base/posix/
Dunix_domain_socket.cc90 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * fds.size()); in SendMsg()
171 const unsigned payload_len = cmsg->cmsg_len - CMSG_LEN(0); in RecvMsgWithFlags()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_linux.c469 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in linux_af_alg_skcipher_oper()
571 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in rc4_skip()
644 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in des_encrypt()
705 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in aes_128_cbc_oper()
814 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in aes_unwrap()
950 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in crypto_cipher_oper()
/external/crosvm/sys_util/src/
Dsock_ctrl_msg.rs40 macro_rules! CMSG_LEN { macro
126 cmsg_len: CMSG_LEN!(size_of::<RawFd>() * out_fds.len()), in raw_sendmsg()
208 let fd_count = (cmsg.cmsg_len - CMSG_LEN!(0)) / size_of::<RawFd>(); in raw_recvmsg_iovecs()
/external/iproute2/include/
Dbpf_scm.h68 msg->hdr.msg_controllen = CMSG_LEN(sizeof(int) * num); in bpf_map_set_init_single()
/external/wayland/src/
Dwayland-os.c113 end = (int *)(data + cmsg->cmsg_len - CMSG_LEN(0)); in recvmsg_cloexec_fallback()
/external/python/cpython3/Modules/
Dsocketmodule.h63 # undef CMSG_LEN
/external/openssh/
Dmonitor_fdpass.c77 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in mm_send_fd()

1234