Searched refs:max_fds (Results 1 – 3 of 3) sorted by relevance
49 rlim_t max_fds; in GetMaxFds() local53 max_fds = kSystemDefaultMaxFds; in GetMaxFds()55 max_fds = nofile.rlim_cur; in GetMaxFds()58 if (max_fds > INT_MAX) in GetMaxFds()59 max_fds = INT_MAX; in GetMaxFds()61 return static_cast<size_t>(max_fds); in GetMaxFds()
39 rlim_t max_fds; in GetMaxFds() local43 max_fds = kSystemDefaultMaxFds; in GetMaxFds()46 max_fds = nofile.rlim_cur; in GetMaxFds()49 if (max_fds > INT_MAX) in GetMaxFds()50 max_fds = INT_MAX; in GetMaxFds()52 return static_cast<size_t>(max_fds); in GetMaxFds()
219 size_t max_fds = GetMaxFds(); in CloseSuperfluousFds() local224 for (size_t i = 0; i < max_fds; ++i) { in CloseSuperfluousFds()273 if (fd < static_cast<int>(max_fds)) { in CloseSuperfluousFds()