/external/llvm-project/lldb/source/Host/posix/ |
D | DomainSocket.cpp | 25 (offsetof(struct sockaddr_un, sun_path) + strlen((ptr)->sun_path)) 35 sockaddr_un *saddr_un, socklen_t &saddr_un_len) { in SetSockAddr() 51 offsetof(struct sockaddr_un, sun_path) + name_offset + name.size(); in SetSockAddr() 76 sockaddr_un saddr_un; in Connect() 93 sockaddr_un saddr_un; in Listen() 131 struct sockaddr_un saddr_un; in GetSocketName() 133 socklen_t sock_addr_len = sizeof(struct sockaddr_un); in GetSocketName() 138 offsetof(struct sockaddr_un, sun_path) - in GetSocketName()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | unix_sockets_posix.cc | 45 struct sockaddr_un* un; in grpc_resolve_unix_domain_address() 47 GPR_ARRAY_SIZE(((struct sockaddr_un*)nullptr)->sun_path) - 1) { in grpc_resolve_unix_domain_address() 62 un = reinterpret_cast<struct sockaddr_un*>((*addrs)->addrs->addr); in grpc_resolve_unix_domain_address() 120 struct sockaddr_un* un = reinterpret_cast<struct sockaddr_un*>( in grpc_unlink_if_unix_domain_socket() 138 gpr_asprintf(&result, "unix:%s", ((struct sockaddr_un*)addr)->sun_path); in grpc_sockaddr_to_uri_unix_if_possible()
|
/external/wpa_supplicant_8/src/common/ |
D | ctrl_iface_common.c | 56 struct sockaddr_un *u_a, *u_b; in sockaddr_compare() 58 u_a = (struct sockaddr_un *) a; in sockaddr_compare() 59 u_b = (struct sockaddr_un *) b; in sockaddr_compare() 63 a_len - offsetof(struct sockaddr_un, sun_path)) in sockaddr_compare() 103 (u8 *) ((struct sockaddr_un *) sock)->sun_path, in sockaddr_print() 104 socklen - offsetof(struct sockaddr_un, sun_path)); in sockaddr_print()
|
/external/libchrome/mojo/public/cpp/platform/ |
D | named_platform_channel_posix.cc | 35 struct sockaddr_un* unix_addr, in MakeUnixAddr() 51 memset(unix_addr, 0, sizeof(struct sockaddr_un)); in MakeUnixAddr() 55 offsetof(struct sockaddr_un, sun_path) + server_name.length(); in MakeUnixAddr() 101 struct sockaddr_un unix_addr; in CreateServerEndpoint() 133 struct sockaddr_un unix_addr; in CreateClientEndpoint()
|
/external/strace/tests-mx32/ |
D | msg_name.c | 56 TAIL_ALLOC_OBJECT_CONST_PTR(struct sockaddr_un, addr); in test_msg_name() 73 recv_fd, addr->sun_path, (int) sizeof(struct sockaddr_un), in test_msg_name() 91 const size_t offsetof_sun_path = offsetof(struct sockaddr_un, sun_path); in test_msg_name() 110 ((struct sockaddr_un *) msg->msg_name)->sun_path, in test_msg_name() 147 const struct sockaddr_un un = { in main()
|
D | sockname.c | 79 *plen = sizeof(struct sockaddr_un); in test_sockname_syscall() 80 struct sockaddr_un *addr = tail_alloc(*plen); in test_sockname_syscall() 90 (int) sizeof(struct sockaddr_un), (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall() 122 const size_t offsetof_sun_path = offsetof(struct sockaddr_un, sun_path); in test_sockname_syscall()
|
D | mmsg_name.c | 53 const struct sockaddr_un *const un = msg->msg_name; in print_msghdr() 54 const int offsetof_sun_path = offsetof(struct sockaddr_un, sun_path); in print_msghdr() 85 struct sockaddr_un *const send_addr = in test_mmsg_name() 180 struct sockaddr_un *const recv_addr = in test_mmsg_name() 227 const struct sockaddr_un un = { in main()
|
D | accept.c | 71 struct sockaddr_un un = { in connect_un() 95 const struct sockaddr_un un = { in main()
|
/external/strace/tests/ |
D | msg_name.c | 56 TAIL_ALLOC_OBJECT_CONST_PTR(struct sockaddr_un, addr); in test_msg_name() 73 recv_fd, addr->sun_path, (int) sizeof(struct sockaddr_un), in test_msg_name() 91 const size_t offsetof_sun_path = offsetof(struct sockaddr_un, sun_path); in test_msg_name() 110 ((struct sockaddr_un *) msg->msg_name)->sun_path, in test_msg_name() 147 const struct sockaddr_un un = { in main()
|
D | sockname.c | 79 *plen = sizeof(struct sockaddr_un); in test_sockname_syscall() 80 struct sockaddr_un *addr = tail_alloc(*plen); in test_sockname_syscall() 90 (int) sizeof(struct sockaddr_un), (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall() 122 const size_t offsetof_sun_path = offsetof(struct sockaddr_un, sun_path); in test_sockname_syscall()
|
D | mmsg_name.c | 53 const struct sockaddr_un *const un = msg->msg_name; in print_msghdr() 54 const int offsetof_sun_path = offsetof(struct sockaddr_un, sun_path); in print_msghdr() 85 struct sockaddr_un *const send_addr = in test_mmsg_name() 180 struct sockaddr_un *const recv_addr = in test_mmsg_name() 227 const struct sockaddr_un un = { in main()
|
D | accept.c | 71 struct sockaddr_un un = { in connect_un() 95 const struct sockaddr_un un = { in main()
|
/external/strace/tests-m32/ |
D | msg_name.c | 56 TAIL_ALLOC_OBJECT_CONST_PTR(struct sockaddr_un, addr); in test_msg_name() 73 recv_fd, addr->sun_path, (int) sizeof(struct sockaddr_un), in test_msg_name() 91 const size_t offsetof_sun_path = offsetof(struct sockaddr_un, sun_path); in test_msg_name() 110 ((struct sockaddr_un *) msg->msg_name)->sun_path, in test_msg_name() 147 const struct sockaddr_un un = { in main()
|
D | sockname.c | 79 *plen = sizeof(struct sockaddr_un); in test_sockname_syscall() 80 struct sockaddr_un *addr = tail_alloc(*plen); in test_sockname_syscall() 90 (int) sizeof(struct sockaddr_un), (int) *plen, SUFFIX_STR, rc); in test_sockname_syscall() 122 const size_t offsetof_sun_path = offsetof(struct sockaddr_un, sun_path); in test_sockname_syscall()
|
D | mmsg_name.c | 53 const struct sockaddr_un *const un = msg->msg_name; in print_msghdr() 54 const int offsetof_sun_path = offsetof(struct sockaddr_un, sun_path); in print_msghdr() 85 struct sockaddr_un *const send_addr = in test_mmsg_name() 180 struct sockaddr_un *const recv_addr = in test_mmsg_name() 227 const struct sockaddr_un un = { in main()
|
D | accept.c | 71 struct sockaddr_un un = { in connect_un() 95 const struct sockaddr_un un = { in main()
|
/external/rust/crates/mio/src/sys/unix/uds/ |
D | listener.rs | 12 let sockaddr = &sockaddr as *const libc::sockaddr_un as *const libc::sockaddr; in bind() 26 let sockaddr = mem::MaybeUninit::<libc::sockaddr_un>::zeroed(); in accept() 57 &mut sockaddr as *mut libc::sockaddr_un as *mut libc::sockaddr, in accept() 76 &mut sockaddr as *mut libc::sockaddr_un as *mut libc::sockaddr, in accept()
|
D | socketaddr.rs | 16 sockaddr: libc::sockaddr_un, 61 let sockaddr = mem::MaybeUninit::<libc::sockaddr_un>::zeroed(); 65 let raw_sockaddr = &mut sockaddr as *mut libc::sockaddr_un as *mut libc::sockaddr; 72 … pub(crate) fn from_parts(sockaddr: libc::sockaddr_un, socklen: libc::socklen_t) -> SocketAddr {
|
/external/crosvm/sys_util/src/ |
D | net.rs | 288 let addr = 0 as *const libc::sockaddr_un; in sun_path_offset() 295 fn sockaddr_un<P: AsRef<Path>>(path: P) -> io::Result<(libc::sockaddr_un, libc::socklen_t)> { in sockaddr_un() argument 296 let mut addr = libc::sockaddr_un { in sockaddr_un() 361 let (addr, len) = sockaddr_un(path.as_ref())?; in connect() 641 let (addr, len) = sockaddr_un(path.as_ref())?; in bind() 674 let mut addr = libc::sockaddr_un { in path() 681 let mut len = mem::size_of::<libc::sockaddr_un>() as libc::socklen_t; in path() 687 &mut addr as *mut libc::sockaddr_un as *mut libc::sockaddr, in path() 780 let _res = sockaddr_un(Path::new("")).expect("sockaddr_un failed"); in sockaddr_un_zero_length_input() 785 let res = sockaddr_un(Path::new(&"a".repeat(108))); in sockaddr_un_long_input_err() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | unix_sockets_posix.cc | 78 struct sockaddr_un* un = reinterpret_cast<struct sockaddr_un*>( in grpc_unlink_if_unix_domain_socket() 99 const auto* unix_addr = reinterpret_cast<const struct sockaddr_un*>(addr); in grpc_sockaddr_to_uri_unix_if_possible()
|
/external/clang/test/CodeGen/ |
D | offsetof.c | 4 struct sockaddr_un { struct 10 return __builtin_offsetof(struct sockaddr_un, sun_path[len+1]); in test() argument
|
/external/llvm-project/clang/test/CodeGen/ |
D | offsetof.c | 4 struct sockaddr_un { struct 10 return __builtin_offsetof(struct sockaddr_un, sun_path[len+1]); in test() argument
|
/external/ltp/testcases/kernel/syscalls/sendmsg/ |
D | sendmsg02.c | 68 struct sockaddr_un sa; in client() 87 mh.msg_namelen = sizeof(struct sockaddr_un); in client() 104 struct sockaddr_un sa; in server() 115 bind(fd, (struct sockaddr *) &sa, sizeof(struct sockaddr_un)); in server()
|
/external/curl/packages/OS400/ |
D | os400sys.c | 1233 const struct sockaddr_un *srcu; in sockaddr2ebcdic() 1234 struct sockaddr_un *dstu; in sockaddr2ebcdic() 1251 srcu = (const struct sockaddr_un *) srcaddr; in sockaddr2ebcdic() 1252 dstu = (struct sockaddr_un *) dstaddr; in sockaddr2ebcdic() 1253 dstsize = sizeof(*dstaddr) - offsetof(struct sockaddr_un, sun_path); in sockaddr2ebcdic() 1254 srclen -= offsetof(struct sockaddr_un, sun_path); in sockaddr2ebcdic() 1257 srclen = i + offsetof(struct sockaddr_un, sun_path); in sockaddr2ebcdic() 1268 const struct sockaddr_un *srcu; in sockaddr2ascii() 1269 struct sockaddr_un *dstu; in sockaddr2ascii() 1290 srcu = (const struct sockaddr_un *) srcaddr; in sockaddr2ascii() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | wpa_priv.c | 38 struct sockaddr_un drv_addr; 43 struct sockaddr_un l2_addr[WPA_PRIV_MAX_L2]; 57 struct sockaddr_un *from, socklen_t fromlen) in wpa_priv_cmd_register() 121 struct sockaddr_un *from) in wpa_priv_cmd_unregister() 182 struct sockaddr_un *from, in wpa_priv_get_scan_results2() 228 struct sockaddr_un *from, in wpa_priv_cmd_get_scan_results() 342 struct sockaddr_un *from, socklen_t fromlen) in wpa_priv_cmd_get_bssid() 363 struct sockaddr_un *from, socklen_t fromlen) in wpa_priv_cmd_get_ssid() 424 struct sockaddr_un *from, socklen_t fromlen) in wpa_priv_cmd_get_capa() 481 struct sockaddr_un *from, in wpa_priv_cmd_l2_register() [all …]
|