Lines Matching refs:rfds
19 #define SETUP(fd, rfds, tv) do { \ argument
20 FD_ZERO(&(rfds)); \
21 FD_SET((fd), &(rfds)); \
61 fd_set rfds; in child() local
75 SETUP(fd, rfds, tv); in child()
76 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
90 report(num++, "0", 1, FD_ISSET(fd, &rfds)); in child()
106 SETUP(fd, rfds, tv); in child()
107 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
109 report(num++, "1", 0, FD_ISSET(fd, &rfds)); in child()
115 SETUP(fd, rfds, tv); in child()
116 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
118 report(num++, "2", 1, FD_ISSET(fd, &rfds)); in child()
121 SETUP(fd, rfds, tv); in child()
122 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
124 report(num++, "2a", 0, FD_ISSET(fd, &rfds)); in child()
130 SETUP(fd, rfds, tv); in child()
131 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
133 report(num++, "3", 1, FD_ISSET(fd, &rfds)); in child()
146 SETUP(fd, rfds, tv); in child()
147 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
149 report(num++, "4", 0, FD_ISSET(fd, &rfds)); in child()
155 SETUP(fd, rfds, tv); in child()
156 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
158 report(num++, "5", 1, FD_ISSET(fd, &rfds)); in child()
169 SETUP(fd, rfds, tv); in child()
170 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
172 report(num++, "6", 1, FD_ISSET(fd, &rfds)); in child()
175 SETUP(fd, rfds, tv); in child()
176 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
178 report(num++, "6a", 1, FD_ISSET(fd, &rfds)); in child()
195 SETUP(fd, rfds, tv); in child()
196 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
198 report(num++, "6b", 1, FD_ISSET(fd, &rfds)); in child()
200 SETUP(fd, rfds, tv); in child()
201 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
203 report(num++, "6c", 1, FD_ISSET(fd, &rfds)); in child()
205 SETUP(fd, rfds, tv); in child()
206 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
208 report(num++, "6d", 1, FD_ISSET(fd, &rfds)); in child()