Lines Matching refs:fd
29 static inline int sys_close_range(unsigned int fd, unsigned int max_fd,
32 return syscall(__NR_close_range, fd, max_fd, flags);
41 int fd;
43 fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
44 ASSERT_GE(fd, 0) {
49 open_fds[i] = fd;
114 int fd;
116 fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
117 ASSERT_GE(fd, 0) {
122 open_fds[i] = fd;
203 int fd;
205 fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
206 ASSERT_GE(fd, 0) {
211 open_fds[i] = fd;
242 int fd;
244 fd = open("/dev/null", O_RDONLY);
245 ASSERT_GE(fd, 0) {
250 open_fds[i] = fd;
310 int fd;
312 fd = open("/dev/null", O_RDONLY);
313 ASSERT_GE(fd, 0) {
318 open_fds[i] = fd;
386 /* Create a huge gap in the fd table. */
504 * Create a huge gap in the fd table. When we now call
505 * CLOSE_RANGE_UNSHARE with a shared fd table and and with ~0U as upper
507 * new fd table. If the kernel is buggy and doesn't handle