50#include <seastar/core/sstring.hh>
51#include <seastar/core/future.hh>
52#include <seastar/core/file-types.hh>
54#include <seastar/util/bool_class.hh>
55#include <seastar/util/std-compat.hh>
56#include <seastar/util/modules.hh>
57#include "./internal/api-level.hh"
67SEASTAR_MODULE_EXPORT_BEGIN
70template <
class CharType>
class input_stream;
71template <
class CharType>
class output_stream;
75class connected_socket;
82struct file_open_options;
87using udp_channel =
class datagram_channel;
91namespace experimental {
94struct spawn_parameters;
169[[deprecated(
"Use `make_unbound_datagram_channel` instead")]]
178[[deprecated(
"Use `make_bound_datagram_channel` instead")]]
290future<> make_directory(std::string_view name, file_permissions permissions = file_permissions::default_dir_permissions)
noexcept;
304future<> touch_directory(std::string_view name, file_permissions permissions = file_permissions::default_dir_permissions)
noexcept;
430future<> chmod(std::string_view name, file_permissions permissions)
noexcept;
448namespace experimental {
485SEASTAR_MODULE_EXPORT_END
Type-safe boolean.
Definition: bool_class.hh:58
A representation of a possibly not-yet-computed value.
Definition: future.hh:1240
A listening socket, waiting to accept incoming network connections.
Definition: api.hh:326
Definition: socket_defs.hh:47
future touch_directory(std::string_view name, file_permissions permissions=file_permissions::default_dir_permissions) noexcept
future< file > open_file_dma(std::string_view name, open_flags flags, file_open_options options) noexcept
future remove_file(std::string_view name) noexcept
future rename_file(std::string_view old_name, std::string_view new_name) noexcept
future< uint64_t > fs_avail(std::string_view name) noexcept
future chmod(std::string_view name, file_permissions permissions) noexcept
future< uint64_t > file_size(std::string_view name) noexcept
future< std::optional< struct group_details > > getgrnam(std::string_view name)
future< bool > file_exists(std::string_view name) noexcept
future recursive_touch_directory(std::string_view name, file_permissions permissions=file_permissions::default_dir_permissions) noexcept
future< uint64_t > fs_free(std::string_view name) noexcept
future check_direct_io_support(std::string_view path) noexcept
future< file > open_directory(std::string_view name) noexcept
future< file > open_file_dma(std::string_view name, open_flags flags) noexcept
future< fs_type > file_system_at(std::string_view name) noexcept
future< bool > file_accessible(std::string_view name, access_flags flags) noexcept
future link_file(std::string_view oldpath, std::string_view newpath) noexcept
future chown(std::string_view filepath, uid_t owner, gid_t group)
future< std::optional< directory_entry_type > > file_type(std::string_view name, follow_symlink follow=follow_symlink::yes) noexcept
open_flags
Definition: file-types.hh:41
future< stat_data > file_stat(std::string_view name, follow_symlink fs=follow_symlink::yes) noexcept
future sync_directory(std::string_view name) noexcept
future make_directory(std::string_view name, file_permissions permissions=file_permissions::default_dir_permissions) noexcept
Definition: seastar.hh:349
future< std::tuple< file_desc, file_desc > > make_pipe()
future< process > spawn_process(const std::filesystem::path &pathname)
server_socket listen(socket_address sa)
net::udp_channel make_udp_channel()
net::datagram_channel make_unbound_datagram_channel(sa_family_t family)
future< connected_socket > connect(socket_address sa)
net::datagram_channel make_bound_datagram_channel(const socket_address &local)
::seastar::socket socket(shared_ptr< certificate_credentials >, sstring name)
Seastar API namespace.
Definition: abort_on_ebadf.hh:26
Definition: process.hh:47