Lines Matching refs:sock
55 send_fd (const int sock, const int fd) in send_fd() argument
82 while ((n = sendmsg (sock, &msg, 0)) == -1 && errno == EINTR); in send_fd()
88 recv_fd (const int sock) in recv_fd() argument
110 while ((n = recvmsg (sock, &msg, 0)) == -1 && errno == EINTR); in recv_fd()
129 const int sock = sockfd[1]; in child_func() local
132 TEST_VERIFY_EXIT (read (sock, &ch, 1) == 1); in child_func()
140 send_fd (sock, fd); in child_func()
143 TEST_VERIFY_EXIT (read (sock, &ch, 1) == 1); in child_func()
146 xclose (sock); in child_func()
215 const int sock = sockfd[0]; in do_test() local
231 TEST_VERIFY_EXIT (send (sock, "1", 1, MSG_NOSIGNAL) == 1); in do_test()
232 const int fd = recv_fd (sock); in do_test()
251 TEST_VERIFY_EXIT (send (sock, "a", 1, MSG_NOSIGNAL) == 1); in do_test()
252 xclose (sock); in do_test()