Lines Matching refs:sock
338 int sock = nscd_open_socket (); in invalidate_db() local
340 if (sock == -1) in invalidate_db()
356 ssize_t nbytes = TEMP_FAILURE_RETRY (send (sock, reqdata, reqlen, in invalidate_db()
362 close (sock); in invalidate_db()
369 nbytes = TEMP_FAILURE_RETRY (read (sock, &resp, sizeof (resp))); in invalidate_db()
373 close (sock); in invalidate_db()
377 close (sock); in invalidate_db()
388 int sock = nscd_open_socket (); in send_shutdown() local
390 if (sock == -1) in send_shutdown()
398 ssize_t nbytes = TEMP_FAILURE_RETRY (send (sock, &req, sizeof req, in send_shutdown()
400 close (sock); in send_shutdown()
536 int sock; in nscd_open_socket() local
538 sock = socket (PF_UNIX, SOCK_STREAM, 0); in nscd_open_socket()
539 if (sock < 0) in nscd_open_socket()
545 if (connect (sock, (struct sockaddr *) &addr, sizeof (addr)) < 0) in nscd_open_socket()
547 close (sock); in nscd_open_socket()
551 return sock; in nscd_open_socket()