/external/crosvm/sys_util/src/ |
D | sock_ctrl_msg.rs | 15 c_long, c_void, cmsghdr, iovec, msghdr, recvmsg, sendmsg, MSG_NOSIGNAL, SCM_RIGHTS, SOL_SOCKET, 34 size_of::<cmsghdr>() + CMSG_ALIGN!($len) 40 size_of::<cmsghdr>() + ($len) 49 fn CMSG_DATA(cmsg_buffer: *mut cmsghdr) -> *mut RawFd { in CMSG_DATA() 57 fn get_next_cmsg(msghdr: &msghdr, cmsg: &cmsghdr, cmsg_ptr: *mut cmsghdr) -> *mut cmsghdr { in get_next_cmsg() argument 58 let next_cmsg = (cmsg_ptr as *mut u8).wrapping_add(CMSG_ALIGN!(cmsg.cmsg_len)) as *mut cmsghdr; in get_next_cmsg() 74 Heap(Box<[cmsghdr]>), 80 (capacity.checked_add(size_of::<cmsghdr>()).unwrap() - 1) / size_of::<cmsghdr>(); in with_capacity() 86 cmsghdr { in with_capacity() 98 fn as_mut_ptr(&mut self) -> *mut cmsghdr { in as_mut_ptr() argument [all …]
|
/external/strace/tests/ |
D | msg_control.c | 60 static struct cmsghdr * 67 print_fds(const struct cmsghdr *const cmsg, const size_t cmsg_len) in print_fds() 104 struct cmsghdr *cmsg = get_cmsghdr(page, msg_controllen); in test_scm_rights1() 106 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_len)) in test_scm_rights1() 108 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_level)) in test_scm_rights1() 110 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_type)) in test_scm_rights1() 160 struct cmsghdr *const cmsg[2] = { in test_scm_rights2() 171 if (msg_controllen1 >= MIN_SIZE_OF(struct cmsghdr, cmsg_len)) in test_scm_rights2() 173 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_level)) in test_scm_rights2() 175 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_type)) in test_scm_rights2() [all …]
|
D | inet-cmsg.c | 40 print_pktinfo(const struct cmsghdr *c) in print_pktinfo() 49 print_ttl(const struct cmsghdr *c) in print_ttl() 57 print_tos(const struct cmsghdr *c) in print_tos() 65 print_opts(const char *name, const struct cmsghdr *c) in print_opts() 82 print_origdstaddr(const struct cmsghdr *c) in print_origdstaddr() 137 struct cmsghdr control[16]; in main() 157 struct cmsghdr *c; in main()
|
/external/strace/tests-mx32/ |
D | msg_control.c | 60 static struct cmsghdr * 67 print_fds(const struct cmsghdr *const cmsg, const size_t cmsg_len) in print_fds() 104 struct cmsghdr *cmsg = get_cmsghdr(page, msg_controllen); in test_scm_rights1() 106 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_len)) in test_scm_rights1() 108 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_level)) in test_scm_rights1() 110 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_type)) in test_scm_rights1() 160 struct cmsghdr *const cmsg[2] = { in test_scm_rights2() 171 if (msg_controllen1 >= MIN_SIZE_OF(struct cmsghdr, cmsg_len)) in test_scm_rights2() 173 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_level)) in test_scm_rights2() 175 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_type)) in test_scm_rights2() [all …]
|
D | inet-cmsg.c | 40 print_pktinfo(const struct cmsghdr *c) in print_pktinfo() 49 print_ttl(const struct cmsghdr *c) in print_ttl() 57 print_tos(const struct cmsghdr *c) in print_tos() 65 print_opts(const char *name, const struct cmsghdr *c) in print_opts() 82 print_origdstaddr(const struct cmsghdr *c) in print_origdstaddr() 137 struct cmsghdr control[16]; in main() 157 struct cmsghdr *c; in main()
|
/external/strace/tests-m32/ |
D | msg_control.c | 60 static struct cmsghdr * 67 print_fds(const struct cmsghdr *const cmsg, const size_t cmsg_len) in print_fds() 104 struct cmsghdr *cmsg = get_cmsghdr(page, msg_controllen); in test_scm_rights1() 106 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_len)) in test_scm_rights1() 108 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_level)) in test_scm_rights1() 110 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_type)) in test_scm_rights1() 160 struct cmsghdr *const cmsg[2] = { in test_scm_rights2() 171 if (msg_controllen1 >= MIN_SIZE_OF(struct cmsghdr, cmsg_len)) in test_scm_rights2() 173 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_level)) in test_scm_rights2() 175 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_type)) in test_scm_rights2() [all …]
|
D | inet-cmsg.c | 40 print_pktinfo(const struct cmsghdr *c) in print_pktinfo() 49 print_ttl(const struct cmsghdr *c) in print_ttl() 57 print_tos(const struct cmsghdr *c) in print_tos() 65 print_opts(const char *name, const struct cmsghdr *c) in print_opts() 82 print_origdstaddr(const struct cmsghdr *c) in print_origdstaddr() 137 struct cmsghdr control[16]; in main() 157 struct cmsghdr *c; in main()
|
/external/clang/test/Sema/ |
D | darwin-align-cast.c | 8 struct cmsghdr {}; struct 13 cmsghdr)) + __DARWIN_ALIGN(l)) 21 …char control[(((__darwin_size_t)((char *)(sizeof(struct cmsghdr)) + (sizeof(__darwin_size_t) - 1))… in sendFileDescriptor()
|
/external/openssh/ |
D | monitor_fdpass.c | 58 struct cmsghdr hdr; in mm_send_fd() 61 struct cmsghdr *cmsg; in mm_send_fd() 119 struct cmsghdr hdr; in mm_receive_fd() 122 struct cmsghdr *cmsg; in mm_receive_fd()
|
D | defines.h | 535 #define CMSG_LEN(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 540 #define CMSG_SPACE(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(len)) 545 #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + __CMSG_ALIGN(sizeof(struct cmsghdr))) 554 ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \ 555 (struct cmsghdr *)(mhdr)->msg_control : \ 556 (struct cmsghdr *)NULL)
|
/external/compiler-rt/test/msan/Linux/ |
D | cmsghdr.cc | 51 struct cmsghdr *cmsg = (struct cmsghdr *)&controlbuf; in main() 73 cmsg = (struct cmsghdr *)(&controlbuf[CMSG_SPACE(kNumFds * sizeof(int))]); in main()
|
/external/ltp/testcases/kernel/syscalls/recvmsg/ |
D | recvmsg01.c | 70 struct cmsghdr *control = 0; 325 control = (struct cmsghdr *)cbuf; in setup2() 332 controllen = sizeof(struct cmsghdr) - 1; in setup3() 494 struct cmsghdr *control; in sender() 506 control = (struct cmsghdr *)snd_cbuf; in sender() 507 memset(control, 0x00, sizeof(struct cmsghdr)); in sender() 508 control->cmsg_len = sizeof(struct cmsghdr) + 4; in sender()
|
/external/rust/crates/libc/src/unix/uclibc/arm/ |
D | mod.rs | 21 pub struct cmsghdr { 975 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr { 976 if (*mhdr).msg_controllen as usize >= ::mem::size_of::<cmsghdr>() { 977 (*mhdr).msg_control as *mut cmsghdr 979 0 as *mut cmsghdr 983 pub fn CMSG_DATA(cmsg: *const cmsghdr) -> *mut ::c_uchar { 988 (CMSG_ALIGN(length as usize) + CMSG_ALIGN(::mem::size_of::<cmsghdr>())) 993 CMSG_ALIGN(::mem::size_of::<cmsghdr>()) as ::c_uint + length 997 cmsg: *const cmsghdr) -> *mut cmsghdr { 998 if ((*cmsg).cmsg_len as usize) < ::mem::size_of::<cmsghdr>() { [all …]
|
/external/python/cpython2/Modules/_multiprocessing/ |
D | multiprocessing.c | 109 struct cmsghdr *cmsg; in multiprocessing_sendfd() 111 struct cmsghdr hdr; in multiprocessing_sendfd() 149 struct cmsghdr *cmsg; in multiprocessing_recvfd() 151 struct cmsghdr hdr; in multiprocessing_recvfd()
|
/external/iproute2/include/ |
D | bpf_scm.h | 40 struct cmsghdr *cmsg; in bpf_map_set_init() 66 struct cmsghdr *cmsg; in bpf_map_set_init_single()
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | udpgso_bench_tx.c | 138 static void flush_cmsg(struct cmsghdr *cmsg) in flush_cmsg() 215 struct cmsghdr *cmsg; in flush_errqueue_recv() 298 static void send_ts_cmsg(struct cmsghdr *cm) in send_ts_cmsg() 323 struct cmsghdr *cmsg; in send_udp_sendmmsg() 362 static void send_udp_segment_cmsg(struct cmsghdr *cm) in send_udp_segment_cmsg() 380 struct cmsghdr *cmsg; in send_udp_segment()
|
D | ipv6_flowlabel.c | 52 struct cmsghdr *cm; in do_send() 80 struct cmsghdr *cm; in do_recv()
|
/external/ltp/utils/sctp/lib/ |
D | sendmsg.c | 39 struct cmsghdr *cmsg; in sctp_sendmsg() 90 struct cmsghdr *cmsg; in sctp_send()
|
/external/iputils/ |
D | ping6.c | 153 struct cmsghdr *srcrt; 201 return (sizeof(struct cmsghdr) + sizeof(struct ip6_rthdr0) + in inet6_srcrt_space() 205 extern struct cmsghdr * inet6_srcrt_init(void *bp, int type) in inet6_srcrt_init() 207 struct cmsghdr *cmsg; in inet6_srcrt_init() 212 memset(bp, 0, sizeof(struct cmsghdr) + sizeof(struct ip6_rthdr0)); in inet6_srcrt_init() 213 cmsg = (struct cmsghdr *) bp; in inet6_srcrt_init() 215 cmsg->cmsg_len = sizeof(struct cmsghdr) + sizeof(struct ip6_rthdr0); in inet6_srcrt_init() 222 int inet6_srcrt_add(struct cmsghdr *cmsg, const struct in6_addr *addr) in inet6_srcrt_add() 850 srcrt = (struct cmsghdr*)(cmsgbuf+cmsglen); in main() 1048 struct cmsghdr *cmsg; in main() [all …]
|
/external/rust/crates/libc/src/unix/bsd/freebsdlike/dragonfly/ |
D | mod.rs | 1025 pub fn CMSG_DATA(cmsg: *const ::cmsghdr) -> *mut ::c_uchar { 1027 .offset(_CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) as isize) 1031 (_CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) + length as usize) 1035 pub fn CMSG_NXTHDR(mhdr: *const ::msghdr, cmsg: *const ::cmsghdr) 1036 -> *mut ::cmsghdr 1039 + _CMSG_ALIGN(::mem::size_of::<::cmsghdr>()); 1044 as *mut ::cmsghdr 1046 0 as *mut ::cmsghdr 1051 (_CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) +
|
/external/ltp/testcases/network/lib6/ |
D | asapi_03.c | 225 struct cmsghdr *pcmsg = (struct cmsghdr *)pd; in sendall() 304 struct cmsghdr *pcmsg; in so_test()
|
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 399 struct cmsghdr *cm; 424 cm = (struct cmsghdr *)cmsgbuf; 436 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(&m); 438 cm = (struct cmsghdr *)CMSG_NXTHDR(&m, cm)) { 572 struct cmsghdr *cm; 603 cm = (struct cmsghdr *)cmsgbuf; 644 struct cmsghdr *cm; 663 cm = (struct cmsghdr *)cmsgbuf;
|
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_linux.c | 454 struct cmsghdr *hdr; in linux_af_alg_skcipher_oper() 545 struct cmsghdr *hdr; in rc4_skip() 615 struct cmsghdr *hdr; in des_encrypt() 682 struct cmsghdr *hdr; in aes_128_cbc_oper() 791 struct cmsghdr *hdr; in aes_unwrap() 868 struct cmsghdr *hdr; in crypto_cipher_init() 935 struct cmsghdr *hdr; in crypto_cipher_oper()
|
/external/adhd/cras/src/common/ |
D | cras_util.c | 103 struct cmsghdr *cmsg; in cras_send_with_fds() 136 struct cmsghdr *cmsg; in cras_recv_with_fds()
|
/external/rust/crates/libc/src/vxworks/ |
D | mod.rs | 182 pub struct cmsghdr { 1016 cmsg: *const cmsghdr) -> *mut cmsghdr { 1018 + CMSG_ALIGN(::mem::size_of::<::cmsghdr>()); 1023 as *mut ::cmsghdr 1025 0 as *mut ::cmsghdr 1029 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr { 1031 (*mhdr).msg_control as *mut cmsghdr 1033 0 as *mut cmsghdr 1037 pub fn CMSG_DATA(cmsg: *const cmsghdr) -> *mut ::c_uchar { 1039 .offset(CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) as isize) [all …]
|