Skip to content

Commit

Permalink
Fix several typos
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel authored and klemens-morgenstern committed Jan 22, 2025
1 parent c329e05 commit bb375f5
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion doc/configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
2 changes: 1 addition & 1 deletion doc/reference/bind_launcher.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
----
Expand Down
4 changes: 2 additions & 2 deletions doc/reference/environment.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion doc/reference/process_handle.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion include/boost/process/v1/child.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion include/boost/process/v1/detail/windows/environment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
10 changes: 5 additions & 5 deletions include/boost/process/v1/environment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ class basic_native_environment : public basic_environment_impl<Char, detail::api
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>
{
Expand All @@ -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;

}}
Expand All @@ -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()
Expand Down
6 changes: 3 additions & 3 deletions include/boost/process/v1/extend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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;
};

Expand Down
4 changes: 2 additions & 2 deletions include/boost/process/v2/environment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion include/boost/process/v2/process_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion src/ext/cwd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ext/exe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb375f5

Please sign in to comment.