Lines Matching refs:fds
29 fd_set fds; in TEST() local
30 FD_ZERO(&fds); in TEST()
33 EXPECT_FALSE(FD_ISSET(i, &fds)); in TEST()
36 FD_SET(0, &fds); in TEST()
37 EXPECT_TRUE(FD_ISSET(0, &fds)); in TEST()
38 EXPECT_FALSE(FD_ISSET(1, &fds)); in TEST()
39 FD_SET(1, &fds); in TEST()
40 EXPECT_TRUE(FD_ISSET(0, &fds)); in TEST()
41 EXPECT_TRUE(FD_ISSET(1, &fds)); in TEST()
42 FD_CLR(0, &fds); in TEST()
43 EXPECT_FALSE(FD_ISSET(0, &fds)); in TEST()
44 EXPECT_TRUE(FD_ISSET(1, &fds)); in TEST()
45 FD_CLR(1, &fds); in TEST()
46 EXPECT_FALSE(FD_ISSET(0, &fds)); in TEST()
47 EXPECT_FALSE(FD_ISSET(1, &fds)); in TEST()
53 int fds[2]; in DelayedWrite() local
54 ASSERT_EQ(0, pipe(fds)); in DelayedWrite()
57 close(fds[0]); in DelayedWrite()
59 EXPECT_EQ(5, write(fds[1], DELAY_MSG, sizeof(DELAY_MSG))); in DelayedWrite()
60 close(fds[1]); in DelayedWrite()
64 close(fds[1]); in DelayedWrite()
66 *fd = fds[0]; in DelayedWrite()