Lines Matching defs:sock
430 int sock;
432 sock = socket(PF_LOCAL, SOCK_STREAM, 0);
433 if (sock < 0)
439 if (connect(sock, (struct sockaddr *) addr, size) < 0)
441 return sock;
448 int sock;
453 sock = socket(PF_INET, SOCK_STREAM, 0);
454 if (sock < 0)
461 if (connect(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0)
463 return sock;
476 int sock = -1;
487 sock = result;
497 err = write(sock, req, reqlen);
508 err = read(sock, &ans, sizeof(ans));
535 shm->socket = sock;
555 close(sock);