Lines Matching refs:fds
54 int fds[2][2]; in test_pselect_basic() local
55 xpipe (fds[0]); in test_pselect_basic()
56 xpipe (fds[1]); in test_pselect_basic()
71 xclose (fds[0][1]); in test_pselect_basic()
72 xclose (fds[1][0]); in test_pselect_basic()
74 FD_SET (fds[0][0], &rfds); in test_pselect_basic()
83 e = pselect (fds[0][0] + 1, &rfds, NULL, NULL, &to, &ss); in test_pselect_basic()
90 TEMP_FAILURE_RETRY (write (fds[1][1], "foo", 3)); in test_pselect_basic()
95 xclose (fds[0][0]); in test_pselect_basic()
96 xclose (fds[1][1]); in test_pselect_basic()
98 FD_SET (fds[1][0], &rfds); in test_pselect_basic()
102 int e = pselect (fds[1][0] + 1, &rfds, NULL, NULL, NULL, &ss); in test_pselect_basic()
104 TEST_VERIFY (FD_ISSET (fds[1][0], &rfds)); in test_pselect_basic()
112 int fds[2]; in test_pselect_large_timeout() local
113 xpipe (fds); in test_pselect_large_timeout()
117 FD_SET (fds[0], &rfds); in test_pselect_large_timeout()
125 TEST_COMPARE (pselect (fds[0] + 1, &rfds, NULL, NULL, &ts, &ss), -1); in test_pselect_large_timeout()