Lines Matching defs:sock
51 #define SOCK_NAME "test-sock"
61 int sock, pfd[2], fd, i;
158 sock = pfd[0];
163 if ((sock = accept(listensock, (struct sockaddr *)&csun,
175 if (read(sock, buf, sizeof(buf)) < 0)
188 if (recvmsg(sock, &msg, 0) < 0) {
196 (void) close(sock);
256 child(int sock, int type, int oflag)
270 if (sock == -1) {
271 if ((sock = socket(PF_LOCAL, type, 0)) == -1)
278 if (connect(sock, (struct sockaddr *)&sun, sizeof(sun)) == -1)
308 if (sendmsg(sock, &msg, 0))