mirror of
https://github.com/boostorg/process.git
synced 2026-01-19 04:22:15 +00:00
Fix several typos
This commit is contained in:
committed by
Klemens Morgenstern
parent
c329e05fb6
commit
bb375f50bd
@@ -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`.
|
||||
|
||||
@@ -9,7 +9,7 @@ template<typename Launcher, typename ... Init>
|
||||
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<typename ... Init>
|
||||
auto bind_default_launcher(Init && ... init);
|
||||
----
|
||||
|
||||
@@ -25,13 +25,13 @@ namespace environment
|
||||
* Windows treats keys as case-insensitive yet perserving. The char traits are made to reflect
|
||||
* that behaviour.
|
||||
*/
|
||||
tempalte<typename Char>
|
||||
template<typename Char>
|
||||
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<typename Char>
|
||||
template<typename Char>
|
||||
using value_char_traits = implementation_defined ;
|
||||
|
||||
// The character type used by the environment. Either `char` or `wchar_t`.
|
||||
|
||||
@@ -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`.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -222,7 +222,7 @@ basic_environment_impl<Char>::basic_environment_impl(const native_environment_im
|
||||
while ((*p != null_char<Char>()) || (*(p+1) != null_char<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();
|
||||
|
||||
@@ -627,7 +627,7 @@ public:
|
||||
using base_type::operator=;
|
||||
};
|
||||
|
||||
///Type definition to hold a seperate environment.
|
||||
///Type definition to hold a separate environment.
|
||||
template<typename Char>
|
||||
class basic_environment : public basic_environment_impl<Char, detail::api::basic_environment_impl>
|
||||
{
|
||||
@@ -646,10 +646,10 @@ typedef basic_native_environment<char> native_environment;
|
||||
typedef basic_native_environment<wchar_t> 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<char> environment;
|
||||
#endif
|
||||
///Type definition to hold a seperate environment.
|
||||
///Type definition to hold a separate environment.
|
||||
typedef basic_environment<wchar_t> 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<boost::process::v1::filesystem::path> path()
|
||||
|
||||
@@ -124,7 +124,7 @@ struct handler
|
||||
template <class Executor>
|
||||
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 <class Executor>
|
||||
@@ -136,7 +136,7 @@ struct handler
|
||||
template <class Executor>
|
||||
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<typename Executor>
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -43,13 +43,13 @@ namespace environment
|
||||
* Windows treats keys as case-insensitive yet perserving. The char traits are made to reflect
|
||||
* that behaviour.
|
||||
*/
|
||||
tempalte<typename Char>
|
||||
template<typename Char>
|
||||
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<typename Char>
|
||||
template<typename Char>
|
||||
using value_char_traits = implementation_defined ;
|
||||
|
||||
/// The character type used by the environment. Either `char` or `wchar_t`.
|
||||
|
||||
@@ -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`.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user