Kagome
Polkadot Runtime Engine in C++17
fd_limit.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_COMMON_FD_LIMIT_HPP
7 #define KAGOME_COMMON_FD_LIMIT_HPP
8 
9 #include <cstdlib>
10 #include <optional>
11 
12 struct rlimit;
13 
14 namespace kagome::common {
15  std::optional<size_t> getFdLimit();
16  void setFdLimit(size_t limit);
17 } // namespace kagome::common
18 
19 #endif // KAGOME_COMMON_FD_LIMIT_HPP
void setFdLimit(size_t limit)
Definition: fd_limit.cpp:44
std::optional< size_t > getFdLimit()
Definition: fd_limit.cpp:36