Lines Matching defs:client_fd
113 int client_fd, ret;
115 client_fd = socket(AF_VSOCK, type, 0);
116 if (client_fd < 0) {
121 if (bind(client_fd, (struct sockaddr *)&sa_client, sizeof(sa_client))) {
128 ret = connect(client_fd, (struct sockaddr *)&sa_server, sizeof(sa_server));
138 return client_fd;
237 int fd, client_fd, old_errno;
245 client_fd = accept(fd, &clientaddr.sa, &clientaddr_len);
247 } while (client_fd < 0 && errno == EINTR);
254 if (client_fd < 0)
255 return client_fd;
270 return client_fd;