diff --git a/doc/configuration.adoc b/doc/configuration.adoc index b44790a6..97a3efae 100644 --- a/doc/configuration.adoc +++ b/doc/configuration.adoc @@ -7,5 +7,5 @@ Boost process v2 can be configured in the following ways: | Macro | Description | `BOOST_PROCESS_V2_STANDALONE` | Build boost.process for standalone asio -| `BOOST_PROCESS_USE_STD_FS` | Use std::filesystem instead of boost::filsystem +| `BOOST_PROCESS_USE_STD_FS` | Use std::filesystem instead of boost::filesystem | `BOOST_PROCESS_V2_POSIX_FORCE_DISABLE_CLOSE_RANGE` | Disable usage of `close_range`. diff --git a/doc/reference/bind_launcher.adoc b/doc/reference/bind_launcher.adoc index 9467129b..44c1395b 100644 --- a/doc/reference/bind_launcher.adoc +++ b/doc/reference/bind_launcher.adoc @@ -9,7 +9,7 @@ template auto bind_launcher(Launcher && launcher, Init && ... init); // Calls bind_launcher with the default_launcher as the first parameter. -// The new launcher with bound paramaters +// The new launcher with bound parameters template auto bind_default_launcher(Init && ... init); ---- diff --git a/doc/reference/environment.adoc b/doc/reference/environment.adoc index f7fef54c..b861285d 100644 --- a/doc/reference/environment.adoc +++ b/doc/reference/environment.adoc @@ -25,13 +25,13 @@ namespace environment * Windows treats keys as case-insensitive yet perserving. The char traits are made to reflect * that behaviour. */ -tempalte +template using key_char_traits = implementation_defined ; // A char traits type that reflects the OS rules for string representing environment values. /* Can be an alias of std::char_traits. May only be defined for `char` and `wchar_t`. */ -tempalte +template using value_char_traits = implementation_defined ; // The character type used by the environment. Either `char` or `wchar_t`. diff --git a/doc/reference/process_handle.adoc b/doc/reference/process_handle.adoc index c85ed36c..f6905a2a 100644 --- a/doc/reference/process_handle.adoc +++ b/doc/reference/process_handle.adoc @@ -2,7 +2,7 @@ [#process_handle] A process handle is an unmanaged version of a process. -This means it does not terminate the proces on destruction and +This means it does not terminate the process on destruction and will not keep track of the exit-code. NOTE: that the exit code might be discovered early, during a call to `running`. diff --git a/include/boost/process/v1/child.hpp b/include/boost/process/v1/child.hpp index ee0c4f72..5967f9ed 100644 --- a/include/boost/process/v1/child.hpp +++ b/include/boost/process/v1/child.hpp @@ -39,7 +39,7 @@ child::child(Args&&...args) typedef ::boost::process::v1::detail::api::pid_t pid_t; #if defined(BOOST_PROCESS_DOXYGEN) -/** The main class to hold a child process. It is simliar to [std::thread](http://en.cppreference.com/w/cpp/thread/thread), +/** The main class to hold a child process. It is similar to [std::thread](http://en.cppreference.com/w/cpp/thread/thread), * in that it has a join and detach function. * * @attention The destructor will call terminate on the process if not joined or detached without any warning. diff --git a/include/boost/process/v1/detail/windows/environment.hpp b/include/boost/process/v1/detail/windows/environment.hpp index 420d0181..63d28e5d 100644 --- a/include/boost/process/v1/detail/windows/environment.hpp +++ b/include/boost/process/v1/detail/windows/environment.hpp @@ -222,7 +222,7 @@ basic_environment_impl::basic_environment_impl(const native_environment_im while ((*p != null_char()) || (*(p+1) != null_char())) p++; p++; //pointing to the second nullchar - p++; //to get the pointer behing the second nullchar, so it's end. + p++; //to get the pointer behind the second nullchar, so it's end. this->_data.assign(beg, p); this->reload(); diff --git a/include/boost/process/v1/environment.hpp b/include/boost/process/v1/environment.hpp index 6ba67c4f..5308d3c9 100644 --- a/include/boost/process/v1/environment.hpp +++ b/include/boost/process/v1/environment.hpp @@ -627,7 +627,7 @@ public: using base_type::operator=; }; -///Type definition to hold a seperate environment. +///Type definition to hold a separate environment. template class basic_environment : public basic_environment_impl { @@ -646,10 +646,10 @@ typedef basic_native_environment native_environment; typedef basic_native_environment wnative_environment; #if !defined(BOOST_NO_ANSI_APIS) -///Type definition to hold a seperate environment. +///Type definition to hold a separate environment. typedef basic_environment environment; #endif -///Type definition to hold a seperate environment. +///Type definition to hold a separate environment. typedef basic_environment wenvironment; }} @@ -673,10 +673,10 @@ inline int get_id() { return ::boost::process::v1::detail::a ///Get the native handle of the current process. inline native_handle_type native_handle() { return ::boost::process::v1::detail::api::native_handle();} #if !defined(BOOST_NO_ANSI_APIS) -///Get the enviroment of the current process. +///Get the environment of the current process. inline native_environment environment() { return ::boost::process::v1:: native_environment(); } #endif -///Get the enviroment of the current process. +///Get the environment of the current process. inline wnative_environment wenvironment() { return ::boost::process::v1::wnative_environment(); } ///Get the path environment variable of the current process runs. inline std::vector path() diff --git a/include/boost/process/v1/extend.hpp b/include/boost/process/v1/extend.hpp index fced1619..18597222 100644 --- a/include/boost/process/v1/extend.hpp +++ b/include/boost/process/v1/extend.hpp @@ -124,7 +124,7 @@ struct handler template void on_setup(Executor&) const {} - /** This function is invoked if an error occured while trying to launch the process. + /** This function is invoked if an error occurred while trying to launch the process. * \note It is not required to be const. */ template @@ -136,7 +136,7 @@ struct handler template void on_success(Executor&) const {} - /**This function is invoked if an error occured during the call of `fork`. + /**This function is invoked if an error occurred during the call of `fork`. * \note This function will only be called on posix. */ template @@ -335,7 +335,7 @@ struct windows_executor void set_startup_info_ex(); ///This element is an instance or a reference (if \ref startup_info_ex exists) to the [startup-info](https://msdn.microsoft.com/en-us/library/windows/desktop/ms686331.aspx) for the process. startup_info_t startup_info; - ///This element is the instance of the [extended startup-info](https://msdn.microsoft.com/de-de/library/windows/desktop/ms686329.aspx). It is only available with a winapi-version equal or highter than 6. + ///This element is the instance of the [extended startup-info](https://msdn.microsoft.com/de-de/library/windows/desktop/ms686329.aspx). It is only available with a winapi-version equal or higher than 6. startup_info_ex_t startup_info_ex; }; diff --git a/include/boost/process/v2/environment.hpp b/include/boost/process/v2/environment.hpp index dec87ac1..0c6a0875 100644 --- a/include/boost/process/v2/environment.hpp +++ b/include/boost/process/v2/environment.hpp @@ -43,13 +43,13 @@ namespace environment * Windows treats keys as case-insensitive yet perserving. The char traits are made to reflect * that behaviour. */ -tempalte +template using key_char_traits = implementation_defined ; /// A char traits type that reflects the OS rules for string representing environment values. /** Can be an alias of std::char_traits. May only be defined for `char` and `wchar_t`. */ -tempalte +template using value_char_traits = implementation_defined ; /// The character type used by the environment. Either `char` or `wchar_t`. diff --git a/include/boost/process/v2/process_handle.hpp b/include/boost/process/v2/process_handle.hpp index d3bf6cc9..cc00a069 100644 --- a/include/boost/process/v2/process_handle.hpp +++ b/include/boost/process/v2/process_handle.hpp @@ -26,7 +26,7 @@ BOOST_PROCESS_V2_BEGIN_NAMESPACE #if defined(GENERATING_DOCUMENTATION) /** A process handle is an unmanaged version of a process. - * This means it does not terminate the proces on destruction and + * This means it does not terminate the process on destruction and * will not keep track of the exit-code. * * Note that the exit code might be discovered early, during a call to `running`. diff --git a/src/ext/cwd.cpp b/src/ext/cwd.cpp index bf65e2e8..2a3ea885 100644 --- a/src/ext/cwd.cpp +++ b/src/ext/cwd.cpp @@ -124,7 +124,7 @@ filesystem::path cwd(boost::process::v2::pid_type pid, error_code & ec) filesystem::path("/proc") / std::to_string(pid) / "cwd", ec ); #elif defined(__sun) - return fileystem::canonical( + return filesystem::canonical( filesystem::path("/proc") / std::to_string(pid) / "path/cwd", ec ); #endif diff --git a/src/ext/exe.cpp b/src/ext/exe.cpp index f84b262e..64572481 100644 --- a/src/ext/exe.cpp +++ b/src/ext/exe.cpp @@ -141,7 +141,7 @@ filesystem::path exe(boost::process::v2::pid_type pid, error_code & ec) filesystem::path("/proc") / std::to_string(pid) / "exe", ec ); #elif defined(__sun) - return fileystem::canonical( + return filesystem::canonical( filesystem::path("/proc") / std::to_string(pid) / "path/a.out", ec ); #endif