Lines Matching defs:unix_sock
48 int unix_sock;
70 write(lci->unix_sock, &call_id, sizeof(call_id));
82 if (vector_contains(conninfo->call_list, lci->unix_sock)) {
83 vector_remove(conninfo->call_list, lci->unix_sock);
84 close(lci->unix_sock);
85 FD_CLR(lci->unix_sock, conninfo->call_set);
107 int inet_sock, unix_sock;
125 if ((unix_sock = open_unixsock(inetaddr)) < 0)
148 close(unix_sock); close(inet_sock); fatal("Could not open connection.");
155 close(unix_sock); close(inet_sock); fatal("No memory.");
163 max_fd = unix_sock;
169 FD_SET (unix_sock, &read_set);
170 if (unix_sock > max_fd) max_fd = unix_sock;
189 if (FD_ISSET(unix_sock, &read_set)) {
197 FD_CLR (unix_sock, &read_set);
198 if ((s = accept(unix_sock, (struct sockaddr *) &from, &len)) < 0) {
206 lci->unix_sock = s;
300 close_unixsock(unix_sock, inetaddr);