/* * This source code is released into the public domain. */ module; #include #include #include export module nihil:open_file; import :error; import :fd; namespace nihil { /* * Open the given file and return an fd for it. */ export [[nodiscard]] auto open_file(std::filesystem::path const &filename, int flags, int mode = 0777) -> std::expected; } // namespace nihil