Home
last modified time | relevance | path

Searched refs:sock_name (Results 1 – 7 of 7) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/android/ion/
Dipcsocket.c38 sprintf(sock_name, "/tmp/%s", name); in opensocket()
46 unlink(sock_name); in opensocket()
49 strcpy(skaddr.sun_path, sock_name); in opensocket()
85 strcpy(skaddr.sun_path, sock_name); in opensocket()
Dipcsocket.h8 char sock_name[MAX_SOCK_NAME_LEN]; variable
/external/perfetto/include/perfetto/ext/ipc/
Dclient.h53 ConnArgs(const char* sock_name, bool sock_retry) in ConnArgs()
54 : socket_name(sock_name), retry(sock_retry) {} in ConnArgs()
/external/perfetto/src/profiling/memory/
Dclient.cc143 const std::string& sock_name) { in ConnectToHeapprofd() argument
146 if (!sock || !sock.Connect(sock_name)) { in ConnectToHeapprofd()
147 PERFETTO_PLOG("Failed to connect to %s", sock_name.c_str()); in ConnectToHeapprofd()
151 PERFETTO_PLOG("Failed to set send timeout for %s", sock_name.c_str()); in ConnectToHeapprofd()
155 PERFETTO_PLOG("Failed to set receive timeout for %s", sock_name.c_str()); in ConnectToHeapprofd()
Dclient.h78 const std::string& sock_name);
/external/wpa_supplicant_8/wpa_supplicant/
Dwpa_priv.c30 char *sock_name; member
730 unlink(iface->sock_name); in wpa_priv_interface_deinit()
740 os_free(iface->sock_name); in wpa_priv_interface_deinit()
793 iface->sock_name = os_malloc(len + 1); in wpa_priv_interface_init()
794 if (iface->sock_name == NULL) { in wpa_priv_interface_init()
799 os_snprintf(iface->sock_name, len + 1, "%s/%s", dir, iface->ifname); in wpa_priv_interface_init()
800 if (os_strlen(iface->sock_name) >= sizeof(addr.sun_path)) { in wpa_priv_interface_init()
814 os_strlcpy(addr.sun_path, iface->sock_name, sizeof(addr.sun_path)); in wpa_priv_interface_init()
824 if (unlink(iface->sock_name) < 0) { in wpa_priv_interface_init()
827 iface->sock_name, strerror(errno)); in wpa_priv_interface_init()
[all …]
/external/iproute2/misc/
Dss.c752 static bool is_sctp_assoc(struct sockstat *s, const char *sock_name) in is_sctp_assoc() argument
754 if (strcmp(sock_name, "sctp")) in is_sctp_assoc()
796 const char *sock_name; in sock_state_print() local
814 sock_name = unix_netid_name(s->type); in sock_state_print()
818 sock_name = proto_name(s->type); in sock_state_print()
821 sock_name = s->type == SOCK_RAW ? "p_raw" : "p_dgr"; in sock_state_print()
824 sock_name = "nl"; in sock_state_print()
827 sock_name = "unknown"; in sock_state_print()
832 is_sctp_assoc(s, sock_name) ? "" : sock_name); in sock_state_print()
834 if (is_sctp_assoc(s, sock_name)) in sock_state_print()