Lines Matching refs:closefrom
32 * Regression tests for the closefrom(2) system call.
163 /* Try to use closefrom() for just closing fd 3. */
164 closefrom(start + 1);
167 fail("closefrom", "highest fd %d", fd);
168 ok("closefrom");
179 closefrom(11);
182 fail("closefrom", "highest fd %d", fd);
183 ok("closefrom");
203 closefrom(4);
206 fail("closefrom", "highest fd %d", fd);
207 ok("closefrom");
216 /* Fork a child process to test closefrom(0). */
222 closefrom(0);
225 cfail(info, "closefrom(0)", "highest fd %d", fd);
226 cok(info, "closefrom(0)");
234 /* Fork a child process to test closefrom(-1). */
240 closefrom(-1);
243 cfail(info, "closefrom(-1)", "highest fd %d", fd);
244 cok(info, "closefrom(-1)");
260 /* Do a closefrom() starting in a hole. */
261 closefrom(4);
264 fail("closefrom", "highest fd %d", fd);
265 ok("closefrom");
267 /* Do a closefrom() beyond our highest open fd. */
268 closefrom(32);
271 fail("closefrom", "highest fd %d", fd);
272 ok("closefrom");