Home
last modified time | relevance | path

Searched refs:cmsg_len (Results 1 – 25 of 78) sorted by relevance

1234

/external/strace/tests-m32/
Dmsg_control.c67 print_fds(const struct cmsghdr *const cmsg, const size_t cmsg_len) in print_fds() argument
69 size_t nfd = cmsg_len > CMSG_LEN(0) in print_fds()
70 ? (cmsg_len - CMSG_LEN(0)) / sizeof(int) : 0; in print_fds()
96 const size_t cmsg_len) in test_scm_rights1() argument
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()
106 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_len)) in test_scm_rights1()
107 cmsg->cmsg_len = cmsg_len; in test_scm_rights1()
114 cmsg_len < msg_controllen ? cmsg_len : msg_controllen; in test_scm_rights1()
131 ", cmsg_type=SCM_RIGHTS", (unsigned long) cmsg_len); in test_scm_rights1()
[all …]
Dinet-cmsg.c68 const size_t len = c->cmsg_len - CMSG_ALIGN(sizeof(*c)); in print_opts()
164 (unsigned long) c->cmsg_len); in main()
/external/strace/tests-mx32/
Dmsg_control.c67 print_fds(const struct cmsghdr *const cmsg, const size_t cmsg_len) in print_fds() argument
69 size_t nfd = cmsg_len > CMSG_LEN(0) in print_fds()
70 ? (cmsg_len - CMSG_LEN(0)) / sizeof(int) : 0; in print_fds()
96 const size_t cmsg_len) in test_scm_rights1() argument
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()
106 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_len)) in test_scm_rights1()
107 cmsg->cmsg_len = cmsg_len; in test_scm_rights1()
114 cmsg_len < msg_controllen ? cmsg_len : msg_controllen; in test_scm_rights1()
131 ", cmsg_type=SCM_RIGHTS", (unsigned long) cmsg_len); in test_scm_rights1()
[all …]
Dinet-cmsg.c68 const size_t len = c->cmsg_len - CMSG_ALIGN(sizeof(*c)); in print_opts()
164 (unsigned long) c->cmsg_len); in main()
/external/strace/tests/
Dmsg_control.c67 print_fds(const struct cmsghdr *const cmsg, const size_t cmsg_len) in print_fds() argument
69 size_t nfd = cmsg_len > CMSG_LEN(0) in print_fds()
70 ? (cmsg_len - CMSG_LEN(0)) / sizeof(int) : 0; in print_fds()
96 const size_t cmsg_len) in test_scm_rights1() argument
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()
106 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_len)) in test_scm_rights1()
107 cmsg->cmsg_len = cmsg_len; in test_scm_rights1()
114 cmsg_len < msg_controllen ? cmsg_len : msg_controllen; in test_scm_rights1()
131 ", cmsg_type=SCM_RIGHTS", (unsigned long) cmsg_len); in test_scm_rights1()
[all …]
Dinet-cmsg.c68 const size_t len = c->cmsg_len - CMSG_ALIGN(sizeof(*c)); in print_opts()
164 (unsigned long) c->cmsg_len); in main()
/external/compiler-rt/test/msan/Linux/
Dcmsghdr.cc61 cmsg->cmsg_len = CMSG_LEN(kNumFds * sizeof(int)); in main()
70 __msan_poison(&cmsg->cmsg_len, sizeof(cmsg->cmsg_len)); in main()
81 cmsg->cmsg_len = CMSG_LEN(sizeof(struct ucred)); in main()
90 __msan_poison(&cmsg->cmsg_len, sizeof(cmsg->cmsg_len)); in main()
/external/ltp/utils/sctp/lib/
Dsendmsg.c56 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in sctp_sendmsg()
58 outmsg.msg_controllen = cmsg->cmsg_len; in sctp_sendmsg()
99 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in sctp_send()
101 outmsg.msg_controllen = cmsg->cmsg_len; in sctp_send()
/external/strace/
Dmsghdr.c46 uint32_t cmsg_len; member
310 const kernel_ulong_t cmsg_len = in decode_msg_control() local
312 (current_wordsize < sizeof(long)) ? u.cmsg32->cmsg_len : in decode_msg_control()
314 u.cmsg->cmsg_len; in decode_msg_control()
328 tprintf("{cmsg_len=%" PRI_klu ", cmsg_level=", cmsg_len); in decode_msg_control()
332 kernel_ulong_t len = cmsg_len > buf_len ? buf_len : cmsg_len; in decode_msg_control()
343 len = (cmsg_len + current_wordsize - 1) & in decode_msg_control()
/external/python/cpython2/Modules/_multiprocessing/
Dmultiprocessing.c128 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in multiprocessing_sendfd()
170 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in multiprocessing_recvfd()
171 msg.msg_controllen = cmsg->cmsg_len; in multiprocessing_recvfd()
184 cmsg->cmsg_len < CMSG_LEN(sizeof(int))) { in multiprocessing_recvfd()
/external/ltp/utils/sctp/func_tests/
Dtest_assoc_abort.c128 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
129 outmessage.msg_controllen = cmsg->cmsg_len; in main()
191 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
192 outmessage.msg_controllen = cmsg->cmsg_len; in main()
Dtest_assoc_shutdown.c128 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
129 outmessage.msg_controllen = cmsg->cmsg_len; in main()
192 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
193 outmessage.msg_controllen = cmsg->cmsg_len; in main()
Dtest_inaddr_any.c160 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
161 outmessage.msg_controllen = cmsg->cmsg_len; in main()
208 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
209 outmessage.msg_controllen = cmsg->cmsg_len; in main()
Dtest_1_to_1_sendmsg.c138 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
139 outmessage.msg_controllen = cmsg->cmsg_len; in main()
296 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
297 outmessage.msg_controllen = cmsg->cmsg_len; in main()
Dtest_timetolive.c202 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
203 outmessage.msg_controllen = cmsg->cmsg_len; in main()
276 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
277 outmessage.msg_controllen = cmsg->cmsg_len; in main()
Dtest_basic.c177 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
178 outmessage.msg_controllen = cmsg->cmsg_len; in main()
292 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
293 outmessage.msg_controllen = cmsg->cmsg_len; in main()
Dtest_1_to_1_threads.c109 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in t_send()
110 outmessage.msg_controllen = cmsg->cmsg_len; in t_send()
Dtest_1_to_1_events.c120 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
121 outmessage.msg_controllen = cmsg->cmsg_len; in main()
Dtest_1_to_1_nonblock.c169 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
170 outmessage.msg_controllen = cmsg->cmsg_len; in main()
/external/iproute2/include/
Dbpf_scm.h56 cmsg->cmsg_len = msg->hdr.msg_controllen; in bpf_map_set_init()
73 cmsg->cmsg_len = msg->hdr.msg_controllen; in bpf_map_set_init_single()
/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()
712 hdr->cmsg_len = CMSG_SPACE(sizeof(*alg_iv) + iv_len); in aes_128_cbc_oper()
814 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in aes_unwrap()
821 hdr->cmsg_len = CMSG_SPACE(sizeof(*alg_iv) + iv_len); in aes_unwrap()
910 hdr->cmsg_len = CMSG_SPACE(sizeof(*alg_iv) + iv_len); in crypto_cipher_init()
950 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in crypto_cipher_oper()
/external/libchrome/base/posix/
Dunix_domain_socket.cc90 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * fds.size()); in SendMsg()
92 msg.msg_controllen = cmsg->cmsg_len; in SendMsg()
171 const unsigned payload_len = cmsg->cmsg_len - CMSG_LEN(0); in RecvMsgWithFlags()
/external/adhd/cras/src/common/
Dcras_util.c120 cmsg->cmsg_len = CMSG_LEN(sizeof(*fd) * num_fds); in cras_send_with_fds()
161 size_t fd_size = cmsg->cmsg_len - sizeof(*cmsg); in cras_recv_with_fds()
/external/linux-kselftest/tools/testing/selftests/android/ion/
Dipcsocket.c147 cmsg->cmsg_len = CMSG_LEN(len); in sendtosocket()
200 cmsg->cmsg_len = CMSG_LEN(len); in receivefromsocket()
/external/libchrome/mojo/public/cpp/platform/
Dsocket_utils_posix.cc121 cmsg->cmsg_len = CMSG_LEN(descriptors.size() * sizeof(int)); in SendmsgWithHandles()
155 size_t payload_length = cmsg->cmsg_len - CMSG_LEN(0); in SocketRecvmsg()

1234