Lines Matching refs:max_fd
676 unsigned int fd, unsigned int max_fd) in __range_cloexec() argument
683 max_fd = min(last_fd(fdt), max_fd); in __range_cloexec()
684 if (fd <= max_fd) in __range_cloexec()
685 bitmap_set(fdt->close_on_exec, fd, max_fd - fd + 1); in __range_cloexec()
690 unsigned int max_fd) in __range_close() argument
697 max_fd = min(max_fd, n); in __range_close()
699 for (; fd <= max_fd; fd++) { in __range_close()
725 int __close_range(unsigned fd, unsigned max_fd, unsigned int flags) in __close_range() argument
733 if (fd > max_fd) in __close_range()
737 struct fd_range range = {fd, max_fd}, *punch_hole = ⦥ in __close_range()
758 __range_cloexec(cur_fds, fd, max_fd); in __close_range()
760 __range_close(cur_fds, fd, max_fd); in __close_range()