pub fn start_fd() -> Fd {
	let rlim = getrlimit(libc::RLIMIT_NOFILE).unwrap();
	let valgrind_start_fd = rlim.rlim_max;
	assert!(
		valgrind_start_fd < Fd::max_value().try_into().unwrap(),
		"{:?}",
		valgrind_start_fd
	);
	valgrind_start_fd.try_into().unwrap()
}
/// Valgrind sets up various file descriptors for its purposes; they're all > any user fds, and this function gets the lowest of them
Valgrind sets up various file descriptors for its purposes; they're all > any user fds, and this function gets the lowest of them
Valgrind sets up various file descriptors for its purposes ; they ' re all > any user fds and this function gets the lowest of them
pub fn start_fd() -> Fd {
	let rlim = getrlimit(libc::RLIMIT_NOFILE).unwrap();
	let valgrind_start_fd = rlim.rlim_max;
	assert!(
		valgrind_start_fd < Fd::max_value().try_into().unwrap(),
		"{:?}",
		valgrind_start_fd
	);
	valgrind_start_fd.try_into().unwrap()
}
pub fn start_fd ( ) -> Fd { let rlim = getrlimit ( libc :: RLIMIT_NOFILE ) . unwrap ( ) ; let valgrind_start_fd = rlim . rlim_max ; assert ! ( valgrind_start_fd Fd max_value ( ) try_into ( ) unwrap ( ) " " valgrind_start_fd ) ; valgrind_start_fd . try_into ( ) . unwrap ( ) }
Valgrind sets up various file descriptors for its purposes; they're all > any user fds, and this function gets the lowest of them
Valgrind sets up various file descriptors for its purposes ; they ' re all > any user fds and this function gets the lowest of them