/external/strace/tests/ |
D | msg_control.c | 69 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 …]
|
D | scm_rights.c | 80 cmsg->cmsg_len = CMSG_LEN(sizeof(fds)); in main()
|
/external/strace/tests-m32/ |
D | msg_control.c | 69 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 …]
|
D | scm_rights.c | 80 cmsg->cmsg_len = CMSG_LEN(sizeof(fds)); in main()
|
/external/strace/tests-mx32/ |
D | msg_control.c | 69 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 …]
|
D | scm_rights.c | 80 cmsg->cmsg_len = CMSG_LEN(sizeof(fds)); in main()
|
/external/python/cpython2/Modules/_multiprocessing/ |
D | multiprocessing.c | 11 #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/ |
D | ipcsocket.c | 139 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/ |
D | sendmsg.c | 56 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/ |
D | cmsghdr.cc | 61 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/ |
D | cmsghdr.cpp | 61 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/ |
D | socket_utils_posix.cc | 117 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/ |
D | test_assoc_abort.c | 128 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 191 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
|
D | test_assoc_shutdown.c | 128 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 192 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
|
D | test_inaddr_any.c | 160 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 208 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
|
D | test_1_to_1_sendmsg.c | 138 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 296 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
|
D | test_timetolive.c | 202 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/ |
D | crash_generation_client.cc | 71 hdr->cmsg_len = CMSG_LEN(sizeof(int)); in RequestDump()
|
/external/libchrome/base/posix/ |
D | unix_domain_socket.cc | 90 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/ |
D | crypto_linux.c | 469 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/ |
D | sock_ctrl_msg.rs | 40 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/ |
D | bpf_scm.h | 68 msg->hdr.msg_controllen = CMSG_LEN(sizeof(int) * num); in bpf_map_set_init_single()
|
/external/wayland/src/ |
D | wayland-os.c | 113 end = (int *)(data + cmsg->cmsg_len - CMSG_LEN(0)); in recvmsg_cloexec_fallback()
|
/external/python/cpython3/Modules/ |
D | socketmodule.h | 63 # undef CMSG_LEN
|
/external/openssh/ |
D | monitor_fdpass.c | 77 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in mm_send_fd()
|