Searched refs:s_un (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/contrib/ivshmem-client/ |
H A D | ivshmem-client.c | 181 struct sockaddr_un s_un; in ivshmem_client_connect() local 195 s_un.sun_family = AF_UNIX; in ivshmem_client_connect() 196 ret = snprintf(s_un.sun_path, sizeof(s_un.sun_path), "%s", in ivshmem_client_connect() 198 if (ret < 0 || ret >= sizeof(s_un.sun_path)) { in ivshmem_client_connect() 203 if (connect(client->sock_fd, (struct sockaddr *)&s_un, sizeof(s_un)) < 0) { in ivshmem_client_connect() 204 IVSHMEM_CLIENT_DEBUG(client, "cannot connect to %s: %s\n", s_un.sun_path, in ivshmem_client_connect()
|
/openbmc/qemu/contrib/ivshmem-server/ |
H A D | ivshmem-server.c | 291 struct sockaddr_un s_un; in ivshmem_server_start() local 330 s_un.sun_family = AF_UNIX; in ivshmem_server_start() 331 ret = snprintf(s_un.sun_path, sizeof(s_un.sun_path), "%s", in ivshmem_server_start() 333 if (ret < 0 || ret >= sizeof(s_un.sun_path)) { in ivshmem_server_start() 337 if (bind(sock_fd, (struct sockaddr *)&s_un, sizeof(s_un)) < 0) { in ivshmem_server_start() 338 IVSHMEM_SERVER_DEBUG(server, "cannot connect to %s: %s\n", s_un.sun_path, in ivshmem_server_start()
|