Lines Matching defs:sock
210 struct sockaddr_un sock;
213 sock.sun_family = AF_UNIX;
214 snprintf(sock.sun_path, sizeof(sock.sun_path), "%s", name);
222 err = connect(fd, (struct sockaddr *) &sock, sizeof(sock));
507 int sock, err;
509 sock = socket(PF_UNIX, SOCK_DGRAM, 0);
510 if (sock < 0)
514 err = os_set_exec_close(sock);
524 err = bind(sock, (struct sockaddr *) &addr, sizeof(addr));
528 return sock;