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"
58 #ifndef SEASTAR_MODULE
62 #include <string_view>
67 SEASTAR_MODULE_EXPORT_BEGIN
70 template <
class CharType>
class input_stream;
71 template <
class CharType>
class output_stream;
75 class connected_socket;
77 struct listen_options;
82 struct file_open_options;
87 using udp_channel =
class datagram_channel;
91 namespace experimental {
94 struct spawn_parameters;
169 [[deprecated(
"Use `make_unbound_datagram_channel` instead")]]
178 [[deprecated(
"Use `make_bound_datagram_channel` instead")]]
290 future<> make_directory(std::string_view name, file_permissions permissions = file_permissions::default_dir_permissions) noexcept;
304 future<> touch_directory(std::string_view name, file_permissions permissions = file_permissions::default_dir_permissions) noexcept;
415 future<> chmod(std::string_view name, file_permissions permissions) noexcept;
433 namespace experimental {
470 SEASTAR_MODULE_EXPORT_END
Type-safe boolean.
Definition: bool_class.hh:57
A representation of a possibly not-yet-computed value.
Definition: future.hh:1238
A listening socket, waiting to accept incoming network connections.
Definition: api.hh:325
Definition: socket_defs.hh:47
future< stat_data > file_stat(std::string_view name, follow_symlink fs=follow_symlink::yes) noexcept
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< std::optional< directory_entry_type > > file_type(std::string_view name, follow_symlink follow=follow_symlink::yes) noexcept
future< fs_type > file_system_at(std::string_view name) noexcept
future rename_file(std::string_view old_name, std::string_view new_name) noexcept
future< bool > file_exists(std::string_view name) noexcept
future< uint64_t > fs_free(std::string_view name) noexcept
future chmod(std::string_view name, file_permissions permissions) noexcept
future recursive_touch_directory(std::string_view name, file_permissions permissions=file_permissions::default_dir_permissions) noexcept
future check_direct_io_support(std::string_view path) noexcept
future< file > open_directory(std::string_view name) noexcept
future< uint64_t > file_size(std::string_view name) noexcept
future< file > open_file_dma(std::string_view name, open_flags flags) noexcept
future< uint64_t > fs_avail(std::string_view name) noexcept
future link_file(std::string_view oldpath, std::string_view newpath) noexcept
future< bool > file_accessible(std::string_view name, access_flags flags) noexcept
open_flags
Definition: file-types.hh:41
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)
future< connected_socket > connect(socket_address sa)
net::udp_channel make_udp_channel()
net::datagram_channel make_unbound_datagram_channel(sa_family_t family)
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