diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-06-28 20:40:25 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-06-28 20:40:25 +0100 |
| commit | c54ff48ac3abb62a40eb1a438da8e3e7ef139797 (patch) | |
| tree | 4a78c556c7cbc6d3d7e364ca0c52c57ac0f5094b /nihil.posix/nihil.posix.ccm | |
| parent | a2d7181700ac64b8e7a4472ec26dfa253b38f188 (diff) | |
| download | nihil-c54ff48ac3abb62a40eb1a438da8e3e7ef139797.tar.gz nihil-c54ff48ac3abb62a40eb1a438da8e3e7ef139797.tar.bz2 | |
posix: add tempfile()
Diffstat (limited to 'nihil.posix/nihil.posix.ccm')
| -rw-r--r-- | nihil.posix/nihil.posix.ccm | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/nihil.posix/nihil.posix.ccm b/nihil.posix/nihil.posix.ccm deleted file mode 100644 index 9baecf8..0000000 --- a/nihil.posix/nihil.posix.ccm +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This source code is released into the public domain. - */ - -module; - -#include <expected> -#include <filesystem> -#include <optional> -#include <string> - -export module nihil.posix; - -import nihil.error; - -export import :argv; -export import :ensure_dir; -export import :exec; -export import :fd; -export import :open; -export import :process; -export import :read_file; -export import :rename; -export import :spawn; -export import :write_file; - -export namespace nihil { - -/* - * Find a variable by the given name in the environment by calling getenv_r(). - */ - -[[nodiscard]] auto getenv(std::string_view varname) - -> std::expected<std::string, error>; - - -/* - * Find an executable in $PATH, open it with O_EXEC and return the fd. - * If $PATH is not set, uses _PATH_DEFPATH. If the file can't be found - * or opened, returns std::nullopt. - */ -[[nodiscard]] auto find_in_path(std::filesystem::path const &file) - -> std::optional<fd>; - -} // namespace nihil |
