Lines Matching refs:slisten
162 int slisten = qemu_socket(e->ai_family, e->ai_socktype, e->ai_protocol); in create_fast_reuse_socket() local
163 if (slisten < 0) { in create_fast_reuse_socket()
166 socket_set_fast_reuse(slisten); in create_fast_reuse_socket()
167 return slisten; in create_fast_reuse_socket()
219 int slisten = -1; in inet_listen_saddr() local
292 slisten = create_fast_reuse_socket(e); in inet_listen_saddr()
293 if (slisten < 0) { in inet_listen_saddr()
309 rc = try_bind(slisten, saddr, e); in inet_listen_saddr()
316 if (!listen(slisten, num)) { in inet_listen_saddr()
329 close(slisten); in inet_listen_saddr()
330 slisten = -1; in inet_listen_saddr()
339 if (slisten >= 0) { in inet_listen_saddr()
340 close(slisten); in inet_listen_saddr()
348 return slisten; in inet_listen_saddr()
803 int slisten; in vsock_listen_saddr() local
809 slisten = qemu_socket(AF_VSOCK, SOCK_STREAM, 0); in vsock_listen_saddr()
810 if (slisten < 0) { in vsock_listen_saddr()
815 if (bind(slisten, (const struct sockaddr *)&svm, sizeof(svm)) != 0) { in vsock_listen_saddr()
817 close(slisten); in vsock_listen_saddr()
821 if (listen(slisten, num) != 0) { in vsock_listen_saddr()
823 close(slisten); in vsock_listen_saddr()
826 return slisten; in vsock_listen_saddr()