close_handles.hpp 706 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2022 Klemens D. Morgenstern
  2. //
  3. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_PROCESS_V2_POSIX_DETAIL_CLOSE_HANDLES_HPP
  6. #define BOOST_PROCESS_V2_POSIX_DETAIL_CLOSE_HANDLES_HPP
  7. #include <boost/process/v2/detail/config.hpp>
  8. #include <vector>
  9. BOOST_PROCESS_V2_BEGIN_NAMESPACE
  10. namespace posix
  11. {
  12. namespace detail
  13. {
  14. // whitelist must be ordered
  15. BOOST_PROCESS_V2_DECL void close_all(const std::vector<int> & whitelist,
  16. error_code & ec);
  17. }
  18. }
  19. BOOST_PROCESS_V2_END_NAMESPACE
  20. #endif //BOOST_PROCESS_V2_POSIX_DETAIL_CLOSE_HANDLES_HPP