close_range(1)
close_range - close a range of file descriptors
close_range first_fd:last_fd [first_fd:last_fd...] -- command [args...]
Close file descriptors in the range defined starting at first_fd to last_fd (included). Multiple range can be defined.
This will try to use close_range(2) if available, or close(3) as fallback.