diff options
Diffstat (limited to 'nihil.posix/execlp.ccm')
| -rw-r--r-- | nihil.posix/execlp.ccm | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/nihil.posix/execlp.ccm b/nihil.posix/execlp.ccm index d0d88d5..ab3737c 100644 --- a/nihil.posix/execlp.ccm +++ b/nihil.posix/execlp.ccm @@ -1,28 +1,22 @@ -/* - * This source code is released into the public domain. - */ - +// This source code is released into the public domain. module; -#include <string> #include <expected> #include <format> +#include <string> export module nihil.posix:execlp; import nihil.error; -import :exec; import :argv; import :execvp; namespace nihil { -/* - * execlp: equivalent to execvp, except the arguments are passed as a - * variadic pack of string-like objects. - */ -export [[nodiscard]] auto execlp(std::string_view file, auto &&...args) - -> std::expected<base_executor_type, error> +// execlp: equivalent to execvp, except the arguments are passed as a +// variadic pack of string-like objects. +export [[nodiscard]] auto +execlp(std::string_view file, auto &&...args) -> std::expected<execv, error> { return execvp(file, argv({std::string_view(args)...})); } |
