Lines Matching refs:w
80 fd_set w; in TEST() local
81 FD_ZERO(&w); in TEST()
86 FD_SET(STDOUT_FILENO, &w); in TEST()
87 FD_SET(STDERR_FILENO, &w); in TEST()
92 ASSERT_EQ(-1, select(-1, &r, &w, &e, nullptr)); in TEST()
95 int num_fds = select(max, &r, &w, &e, nullptr); in TEST()
100 ASSERT_TRUE(FD_ISSET(STDOUT_FILENO, &w)); in TEST()
101 ASSERT_TRUE(FD_ISSET(STDERR_FILENO, &w)); in TEST()
110 ASSERT_EQ(-1, select(max, &r, &w, &e, &tv)); in TEST()
135 fd_set w; in TEST() local
136 FD_ZERO(&w); in TEST()
141 FD_SET(STDOUT_FILENO, &w); in TEST()
142 FD_SET(STDERR_FILENO, &w); in TEST()
147 ASSERT_EQ(-1, pselect(-1, &r, &w, &e, nullptr, &ss)); in TEST()
153 int num_fds = pselect(max, &r, &w, &e, nullptr, &ss); in TEST()
155 ASSERT_TRUE(FD_ISSET(STDOUT_FILENO, &w)); in TEST()
156 ASSERT_TRUE(FD_ISSET(STDERR_FILENO, &w)); in TEST()
165 ASSERT_EQ(-1, pselect(max, &r, &w, &e, &tv, &ss)); in TEST()