Home
last modified time | relevance | path

Searched refs:max_fds (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/base/process/
Dprocess_metrics_posix.cc43 rlim_t max_fds; in GetMaxFds() local
47 max_fds = kSystemDefaultMaxFds; in GetMaxFds()
50 max_fds = nofile.rlim_cur; in GetMaxFds()
53 if (max_fds > INT_MAX) in GetMaxFds()
54 max_fds = INT_MAX; in GetMaxFds()
56 return static_cast<size_t>(max_fds); in GetMaxFds()
Dlaunch_posix.cc226 size_t max_fds = GetMaxFds(); in CloseSuperfluousFds() local
231 for (size_t i = 0; i < max_fds; ++i) { in CloseSuperfluousFds()
280 if (fd < static_cast<int>(max_fds)) { in CloseSuperfluousFds()
/external/libbrillo/brillo/
Dprocess.cc186 size_t max_fds = base::GetMaxFds(); in CloseUnusedFileDescriptors() local
187 for (size_t i = 0; i < max_fds; i++) { in CloseUnusedFileDescriptors()