Files
.github
CMakeModules
LICENSES
dist
externals
FidelityFX-FSR
SDL
Vulkan-Headers
cmake-modules
cpp-httplib
cpp-jwt
cubeb
demangle
discord-rpc
dynarmic
enet
ffmpeg
find-modules
getopt
glad
inih
libressl
libusb
mbedtls
microprofile
nx_tzdb
opus
sirit
stb
vcpkg
buildtrees
downloads
packages
boost-algorithm_x64-windows
boost-align_x64-windows
boost-array_x64-windows
boost-asio_x64-windows
boost-assert_x64-windows
boost-atomic_x64-windows
boost-bind_x64-windows
boost-build_x64-windows
boost-chrono_x64-windows
boost-concept-check_x64-windows
boost-config_x64-windows
boost-container-hash_x64-windows
boost-container_x64-windows
boost-context_x64-windows
boost-conversion_x64-windows
boost-core_x64-windows
boost-coroutine_x64-windows
boost-crc_x64-windows
boost-date-time_x64-windows
boost-detail_x64-windows
boost-endian_x64-windows
boost-exception_x64-windows
boost-filesystem_x64-windows
boost-function-types_x64-windows
boost-function_x64-windows
boost-functional_x64-windows
boost-fusion_x64-windows
boost-icl_x64-windows
boost-integer_x64-windows
boost-intrusive_x64-windows
boost-io_x64-windows
boost-iterator_x64-windows
boost-lexical-cast_x64-windows
boost-modular-build-helper_x64-windows
boost-move_x64-windows
boost-mp11_x64-windows
boost-mpl_x64-windows
boost-numeric-conversion_x64-windows
boost-optional_x64-windows
boost-phoenix_x64-windows
boost-pool_x64-windows
boost-predef_x64-windows
boost-preprocessor_x64-windows
boost-process_x64-windows
include
boost
process
detail
args.hpp
async.hpp
async_pipe.hpp
async_system.hpp
child.hpp
cmd.hpp
env.hpp
environment.hpp
error.hpp
exception.hpp
exe.hpp
extend.hpp
group.hpp
handles.hpp
io.hpp
locale.hpp
pipe.hpp
posix.hpp
search_path.hpp
shell.hpp
spawn.hpp
start_dir.hpp
system.hpp
windows.hpp
process.hpp
share
BUILD_INFO
CONTROL
boost-proto_x64-windows
boost-range_x64-windows
boost-ratio_x64-windows
boost-rational_x64-windows
boost-regex_x64-windows
boost-smart-ptr_x64-windows
boost-spirit_x64-windows
boost-static-assert_x64-windows
boost-system_x64-windows
boost-test_x64-windows
boost-thread_x64-windows
boost-throw-exception_x64-windows
boost-timer_x64-windows
boost-tokenizer_x64-windows
boost-tuple_x64-windows
boost-type-index_x64-windows
boost-type-traits_x64-windows
boost-typeof_x64-windows
boost-uninstall_x64-windows
boost-unordered_x64-windows
boost-utility_x64-windows
boost-variant2_x64-windows
boost-variant_x64-windows
boost-vcpkg-helpers_x64-windows
boost-winapi_x64-windows
fmt_x64-windows
lz4_x64-windows
nlohmann-json_x64-windows
vcpkg-cmake-config_x64-windows
vcpkg-cmake-get-vars_x64-windows
vcpkg-cmake_x64-windows
zlib_x64-windows
zstd_x64-windows
scripts
.gitkeep
vcpkg.exe
vma
xbyak
CMakeLists.txt
hooks
patches
src
CMakeLists.txt
CONTRIBUTING.md
Doxyfile
LICENSE.txt
README.md
vcpkg.json

76 lines
2.8 KiB
C++
Raw Normal View History

2022-11-05 15:35:56 +01:00
// Copyright (c) 2016 Klemens D. Morgenstern
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_PROCESS_POSIX_HPP_
#define BOOST_PROCESS_POSIX_HPP_
#include <boost/process/detail/posix/fd.hpp>
#include <boost/process/detail/posix/handler.hpp>
#include <boost/process/detail/posix/use_vfork.hpp>
#include <boost/process/detail/posix/signal.hpp>
/** \file boost/process/posix.hpp
*
* Header which provides the posix extensions.
\xmlonly
<programlisting>
namespace boost {
namespace process {
namespace posix {
<emphasis>unspecified</emphasis> <globalname alt="boost::process::posix::fd">fd</globalname>;
<emphasis>unspecified</emphasis> <globalname alt="boost::process::posix::sig">sig</globalname>;
<emphasis>unspecified</emphasis> <globalname alt="boost::process::posix::use_vfork">use_vfork</globalname>;
}
}
}
</programlisting>
* \endxmlonly
* \warning Only available on posix. See the documentation of [fork](http://pubs.opengroup.org/onlinepubs/009695399/functions/fork.html),
* [execve](http://pubs.opengroup.org/onlinepubs/009695399/functions/execve.html) and
* [vfork](http://pubs.opengroup.org/onlinepubs/009695399/functions/vfork.html).
*
*/
namespace boost { namespace process {
///Namespace containing the posix exensions.
namespace posix {
/** This property lets you modify file-descriptors other than the standard ones (0,1,2).
*
* It provides the functions `bind`, which implements [dup2](http://pubs.opengroup.org/onlinepubs/9699919799/functions/dup.html)
* and [close](http://pubs.opengroup.org/onlinepubs/9699919799/functions/close.html).
*
* Close can also be called with a range of file-descriptors to be closed.
*
*/
constexpr ::boost::process::detail::posix::fd_ fd;
/** This property lets you modify the handling of `SIGCHLD` for this call. It will be reset afterwards.
It can be set to default, by the expression `sig.dfl()`, set to ignore with `sig.ign()` or
assigned a custom handler. A custom handler must have the type `sighandler_t`and can be assigned with the following syntax:
\code{.cpp}
sig = handler;
sig(handler);
\endcode
\warning @ref spawn will automatically use `sig.ign()`, which will override if you pass a custom handler.
*/
constexpr ::boost::process::detail::posix::sig_ sig;
/** This property will replace the usage of [fork](http://pubs.opengroup.org/onlinepubs/9699919799/functions/fork.html) by [vfork](http://pubs.opengroup.org/onlinepubs/009695399/functions/vfork.html).
\note `vfork` is no longer an official part of the posix standard.
*/
constexpr ::boost::process::detail::posix::use_vfork_ use_vfork;
using ::boost::process::detail::posix::sighandler_t;
}}}
#endif /* BOOST_PROCESS_POSIX_HPP_ */