Lines Matching defs:sock
192 int sock;
194 sock = socket(PF_LOCAL, SOCK_STREAM, 0);
195 if (sock < 0) {
208 if (bind(sock, (struct sockaddr *) addr, size) < 0) {
211 close(sock);
217 close(sock);
225 close(sock);
232 if (connect(sock, (struct sockaddr *) addr, size) < 0) {
235 close(sock);
239 return sock;
274 static int _snd_send_fd(int sock, void *data, size_t len, int fd)
299 ret = sendmsg(sock, &msghdr, 0 );