Lines Matching defs:sock
639 int sock;
641 sock = socket(PF_LOCAL, SOCK_STREAM, 0);
642 if (sock < 0) {
650 if (connect(sock, (struct sockaddr *) addr, size) < 0) {
654 return sock;
661 int sock;
666 sock = socket(PF_INET, SOCK_STREAM, 0);
667 if (sock < 0) {
676 if (connect(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
680 return sock;
709 int sock = -1;
719 sock = result;
729 err = write(sock, req, reqlen);
740 err = read(sock, &ans, sizeof(ans));
768 shm->socket = sock;
793 close(sock);