Lines Matching defs:sock
54 #define SOCK_NAME "test-sock"
90 int listensock, sock, fd, i;
206 if ((sock = accept(listensock, (struct sockaddr *)&csun,
235 if (recvmsg(sock, &msg, 0) == -1)
238 (void) close(sock);
239 sock = -1;
290 sock = files[i];
317 } while (sock != -1);
352 int i, fd, sock, nfd, *files;
367 if ((sock = socket(PF_LOCAL, SOCK_STREAM, 0)) == -1)
375 if (connect(sock, (struct sockaddr *)&sun, sizeof(sun)) == -1)
382 files[i++] = sock;
440 if (sendmsg(sock, &msg, 0) == -1)