Lines Matching refs:fd
52 static void DelayedWrite(int* pid, int* fd) { in DelayedWrite() argument
66 *fd = fds[0]; in DelayedWrite()
69 static void DelayedWriteCleanup(int pid, int fd) { in DelayedWriteCleanup() argument
71 ASSERT_EQ(static_cast<ssize_t>(sizeof(DELAY_MSG)), read(fd, buf, sizeof(DELAY_MSG))); in DelayedWriteCleanup()
115 int pid, fd; in TEST() local
116 DelayedWrite(&pid, &fd); in TEST()
119 FD_SET(fd, &r); in TEST()
120 ASSERT_EQ(1, select(fd+1, &r, nullptr, nullptr, &tv)); in TEST()
125 DelayedWriteCleanup(pid, fd); in TEST()
170 int pid, fd; in TEST() local
171 DelayedWrite(&pid, &fd); in TEST()
174 FD_SET(fd, &r); in TEST()
175 ASSERT_EQ(1, pselect(fd+1, &r, nullptr, nullptr, &tv, nullptr)); in TEST()
180 DelayedWriteCleanup(pid, fd); in TEST()