Lines Matching refs:sock_fds
737 int sock_fds[2]; in PdforkParentDeath() local
738 EXPECT_OK(socketpair(AF_UNIX, SOCK_STREAM, 0, sock_fds)); in PdforkParentDeath()
767 EXPECT_EQ(sizeof(grandchild), (size_t)write(sock_fds[1], &grandchild, sizeof(grandchild))); in PdforkParentDeath()
770 AWAIT_INT_MESSAGE(sock_fds[1], MSG_PARENT_REQUEST_CHILD_EXIT); in PdforkParentDeath()
777 read(sock_fds[0], &grandchild, sizeof(grandchild)); in PdforkParentDeath()
783 SEND_INT_MESSAGE(sock_fds[0], MSG_PARENT_REQUEST_CHILD_EXIT); in PdforkParentDeath()
1014 int sock_fds[2]; in TEST_F() local
1015 EXPECT_OK(socketpair(AF_UNIX, SOCK_STREAM, 0, sock_fds)); in TEST_F()
1036 SEND_INT_MESSAGE(sock_fds[0], MSG_CHILD_STARTED); in TEST_F()
1039 int rc = recvmsg(sock_fds[0], &mh, 0); in TEST_F()
1048 SEND_INT_MESSAGE(sock_fds[0], MSG_CHILD_FD_RECEIVED); in TEST_F()
1056 AWAIT_INT_MESSAGE(sock_fds[0], MSG_PARENT_CLOSED_FD); in TEST_F()
1067 AWAIT_INT_MESSAGE(sock_fds[1], MSG_CHILD_STARTED); in TEST_F()
1079 int rc = sendmsg(sock_fds[1], &mh, 0); in TEST_F()
1082 AWAIT_INT_MESSAGE(sock_fds[1], MSG_CHILD_FD_RECEIVED); in TEST_F()
1086 SEND_INT_MESSAGE(sock_fds[1], MSG_PARENT_CLOSED_FD); in TEST_F()