Home
last modified time | relevance | path

Searched refs:unix_addr (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/mojo/public/cpp/platform/
Dnamed_platform_channel_posix.cc35 struct sockaddr_un* unix_addr, in MakeUnixAddr() argument
37 DCHECK(unix_addr); in MakeUnixAddr()
51 memset(unix_addr, 0, sizeof(struct sockaddr_un)); in MakeUnixAddr()
52 unix_addr->sun_family = AF_UNIX; in MakeUnixAddr()
53 strncpy(unix_addr->sun_path, server_name.c_str(), kMaxSocketNameLength); in MakeUnixAddr()
101 struct sockaddr_un unix_addr; in CreateServerEndpoint() local
103 if (!MakeUnixAddr(name, &unix_addr, &unix_addr_len)) in CreateServerEndpoint()
111 if (bind(handle.GetFD().get(), reinterpret_cast<const sockaddr*>(&unix_addr), in CreateServerEndpoint()
133 struct sockaddr_un unix_addr; in CreateClientEndpoint() local
135 if (!MakeUnixAddr(server_name, &unix_addr, &unix_addr_len)) in CreateClientEndpoint()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dunix_sockets_posix.cc99 const auto* unix_addr = reinterpret_cast<const struct sockaddr_un*>(addr); in grpc_sockaddr_to_uri_unix_if_possible() local
100 if (unix_addr->sun_path[0] == '\0' && unix_addr->sun_path[1] != '\0') { in grpc_sockaddr_to_uri_unix_if_possible()
104 unix_addr->sun_path + 1, in grpc_sockaddr_to_uri_unix_if_possible()
105 resolved_addr->len - sizeof(unix_addr->sun_family) - 1)); in grpc_sockaddr_to_uri_unix_if_possible()
107 return absl::StrCat("unix:", unix_addr->sun_path); in grpc_sockaddr_to_uri_unix_if_possible()
/external/cros/system_api/dbus/seneschal/
Dseneschal_service.proto66 UnixAddress unix_addr = 2; field