Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-07-06 21:07:06 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-07-06 21:07:06 +0300
commit302db08dd88a5e77fb40103ed632be1e72066bf1 (patch)
treef59f570917859f7f02c354c86667abf2721d9a85 /include/llfio/v2.0
parent6efe2493a65540d3f484a8b7f27d5298d49c9da4 (diff)
More afio => llfio
Diffstat (limited to 'include/llfio/v2.0')
-rw-r--r--include/llfio/v2.0/afio.hpp6
-rw-r--r--include/llfio/v2.0/config.hpp18
-rw-r--r--include/llfio/v2.0/deadline.h4
-rw-r--r--include/llfio/v2.0/detail/impl/posix/async_file_handle.ipp2
-rw-r--r--include/llfio/v2.0/detail/impl/posix/utils.ipp6
-rw-r--r--include/llfio/v2.0/detail/impl/windows/directory_handle.ipp2
-rw-r--r--include/llfio/v2.0/detail/impl/windows/utils.ipp6
-rw-r--r--include/llfio/v2.0/directory_handle.hpp6
-rw-r--r--include/llfio/v2.0/handle.hpp18
-rw-r--r--include/llfio/v2.0/logging.hpp4
-rw-r--r--include/llfio/v2.0/map_handle.hpp2
-rw-r--r--include/llfio/v2.0/native_handle_type.hpp2
-rw-r--r--include/llfio/v2.0/path_discovery.hpp4
-rw-r--r--include/llfio/v2.0/path_view.hpp2
-rw-r--r--include/llfio/v2.0/stat.hpp2
-rw-r--r--include/llfio/v2.0/statfs.hpp2
-rw-r--r--include/llfio/v2.0/status_code.hpp8
-rw-r--r--include/llfio/v2.0/utils.hpp4
18 files changed, 49 insertions, 49 deletions
diff --git a/include/llfio/v2.0/afio.hpp b/include/llfio/v2.0/afio.hpp
index bd45aeaa..c55a09ed 100644
--- a/include/llfio/v2.0/afio.hpp
+++ b/include/llfio/v2.0/afio.hpp
@@ -1,4 +1,4 @@
-//! \file v2.0/afio.hpp The master *versioned* AFIO include file. All version specific AFIO consuming libraries should include this header only.
+//! \file v2.0/llfio.hpp The master *versioned* AFIO include file. All version specific AFIO consuming libraries should include this header only.
#undef LLFIO_VERSION_MAJOR
#undef LLFIO_VERSION_MINOR
@@ -25,10 +25,10 @@
#if defined(__cpp_modules) || defined(DOXYGEN_SHOULD_SKIP_THIS)
#if defined(_MSC_VER) && !defined(__clang__)
//! \brief The AFIO C++ module name
-#define LLFIO_MODULE_NAME LLFIO_VERSION_GLUE(afio_v, LLFIO_NAMESPACE_VERSION, )
+#define LLFIO_MODULE_NAME LLFIO_VERSION_GLUE(llfio_v, LLFIO_NAMESPACE_VERSION, )
#else
//! \brief The AFIO C++ module name
-#define LLFIO_MODULE_NAME LLFIO_VERSION_GLUE(afio_v, LLFIO_NAMESPACE_VERSION, )
+#define LLFIO_MODULE_NAME LLFIO_VERSION_GLUE(llfio_v, LLFIO_NAMESPACE_VERSION, )
#endif
#endif
diff --git a/include/llfio/v2.0/config.hpp b/include/llfio/v2.0/config.hpp
index 7b338c58..32fc18cf 100644
--- a/include/llfio/v2.0/config.hpp
+++ b/include/llfio/v2.0/config.hpp
@@ -148,9 +148,9 @@ Distributed under the Boost Software License, Version 1.0.
#if defined(LLFIO_UNSTABLE_VERSION) && !defined(LLFIO_DISABLE_ABI_PERMUTATION)
#include "../revision.hpp"
-#define LLFIO_V2 (QUICKCPPLIB_BIND_NAMESPACE_VERSION(afio_v2, LLFIO_PREVIOUS_COMMIT_UNIQUE))
+#define LLFIO_V2 (QUICKCPPLIB_BIND_NAMESPACE_VERSION(llfio_v2, LLFIO_PREVIOUS_COMMIT_UNIQUE))
#else
-#define LLFIO_V2 (QUICKCPPLIB_BIND_NAMESPACE_VERSION(afio_v2))
+#define LLFIO_V2 (QUICKCPPLIB_BIND_NAMESPACE_VERSION(llfio_v2))
#endif
/*! \def LLFIO_V2
\ingroup config
@@ -159,7 +159,7 @@ of bracketed tokens later fused by the preprocessor into namespace and C++ modul
*/
#if DOXYGEN_IS_IN_THE_HOUSE
//! The AFIO namespace
-namespace afio_v2_xxx
+namespace llfio_v2_xxx
{
//! Collection of file system based algorithms
namespace algorithm
@@ -175,22 +175,22 @@ namespace afio_v2_xxx
}
}
/*! \brief The namespace of this AFIO v2 which will be some unknown inline
-namespace starting with `v2_` inside the `boost::afio` namespace.
+namespace starting with `v2_` inside the `boost::llfio` namespace.
\ingroup config
*/
-#define LLFIO_V2_NAMESPACE afio_v2_xxx
+#define LLFIO_V2_NAMESPACE llfio_v2_xxx
/*! \brief Expands into the appropriate namespace markup to enter the AFIO v2 namespace.
\ingroup config
*/
#define LLFIO_V2_NAMESPACE_BEGIN \
- namespace afio_v2_xxx \
+ namespace llfio_v2_xxx \
{
/*! \brief Expands into the appropriate namespace markup to enter the C++ module
exported AFIO v2 namespace.
\ingroup config
*/
#define LLFIO_V2_NAMESPACE_EXPORT_BEGIN \
- export namespace afio_v2_xxx \
+ export namespace llfio_v2_xxx \
{
/*! \brief Expands into the appropriate namespace markup to exit the AFIO v2 namespace.
\ingroup config
@@ -300,7 +300,7 @@ LLFIO_V2_NAMESPACE_END
// Used to tag functions which need to be made free by the AST tool
#ifndef LLFIO_MAKE_FREE_FUNCTION
#if 0 //__cplusplus >= 201700 // makes annoying warnings
-#define LLFIO_MAKE_FREE_FUNCTION [[afio::make_free_function]]
+#define LLFIO_MAKE_FREE_FUNCTION [[llfio::make_free_function]]
#else
#define LLFIO_MAKE_FREE_FUNCTION
#endif
@@ -453,7 +453,7 @@ LLFIO_V2_NAMESPACE_END
// Auto library naming
#if !defined(LLFIO_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(LLFIO_NO_LIB) && !LLFIO_STANDALONE && !LLFIO_HEADERS_ONLY
-#define BOOST_LIB_NAME boost_afio
+#define BOOST_LIB_NAME boost_llfio
// tell the auto-link code to select a dll when required:
#if defined(BOOST_ALL_DYN_LINK) || defined(LLFIO_DYN_LINK)
diff --git a/include/llfio/v2.0/deadline.h b/include/llfio/v2.0/deadline.h
index 26ec6080..be6e14d6 100644
--- a/include/llfio/v2.0/deadline.h
+++ b/include/llfio/v2.0/deadline.h
@@ -32,14 +32,14 @@ Distributed under the Boost Software License, Version 1.0.
#if defined(__cplusplus) || DOXYGEN_IS_IN_THE_HOUSE
#ifndef LLFIO_CONFIG_HPP
-#error You must include the master afio.hpp, not individual header files directly
+#error You must include the master llfio.hpp, not individual header files directly
#endif
#include "config.hpp"
#include <stdexcept>
LLFIO_V2_NAMESPACE_EXPORT_BEGIN
#define LLFIO_DEADLINE_NAME deadline
#else
-#define LLFIO_DEADLINE_NAME boost_afio_deadline
+#define LLFIO_DEADLINE_NAME boost_llfio_deadline
#endif
/*! \struct deadline
diff --git a/include/llfio/v2.0/detail/impl/posix/async_file_handle.ipp b/include/llfio/v2.0/detail/impl/posix/async_file_handle.ipp
index 39fdcab5..2225b899 100644
--- a/include/llfio/v2.0/detail/impl/posix/async_file_handle.ipp
+++ b/include/llfio/v2.0/detail/impl/posix/async_file_handle.ipp
@@ -193,7 +193,7 @@ template <class BuffersType, class IORoutine> result<async_file_handle::io_state
// simply marks all items past AIO_LISTIO_MAX as failed
// with EAGAIN. That punishes performance for AFIO
// because we loop setting up and tearing down
- // the handlers, so if we would overload afio_suspend,
+ // the handlers, so if we would overload llfio_suspend,
// better to error out now rather that later in io_service.
if(service()->_aiocbsv.size() + items > AIO_LISTIO_MAX)
{
diff --git a/include/llfio/v2.0/detail/impl/posix/utils.ipp b/include/llfio/v2.0/detail/impl/posix/utils.ipp
index b6db41b3..61209b74 100644
--- a/include/llfio/v2.0/detail/impl/posix/utils.ipp
+++ b/include/llfio/v2.0/detail/impl/posix/utils.ipp
@@ -148,7 +148,7 @@ namespace utils
}
if(-1 == fd || ::read(fd, buffer, bytes) < static_cast<ssize_t>(bytes))
{
- LLFIO_LOG_FATAL(0, "afio: Kernel crypto function failed");
+ LLFIO_LOG_FATAL(0, "llfio: Kernel crypto function failed");
std::terminate();
}
}
@@ -210,7 +210,7 @@ namespace utils
#ifndef NDEBUG
else if(ret.page_size_used > 65536)
{
- printf("afio: Large page allocation successful\n");
+ printf("llfio: Large page allocation successful\n");
}
#endif
return ret;
@@ -219,7 +219,7 @@ namespace utils
{
if(munmap(p, bytes) < 0)
{
- LLFIO_LOG_FATAL(p, "afio: Freeing large pages failed");
+ LLFIO_LOG_FATAL(p, "llfio: Freeing large pages failed");
std::terminate();
}
}
diff --git a/include/llfio/v2.0/detail/impl/windows/directory_handle.ipp b/include/llfio/v2.0/detail/impl/windows/directory_handle.ipp
index 4ad0f419..abdd5a1e 100644
--- a/include/llfio/v2.0/detail/impl/windows/directory_handle.ipp
+++ b/include/llfio/v2.0/detail/impl/windows/directory_handle.ipp
@@ -333,7 +333,7 @@ result<directory_handle::enumerate_info> directory_handle::enumerate(buffers_typ
}
directory_entry &item = tofill[n];
item.leafname = path_view(wstring_view(ffdi->FileName, length));
- if(filtering == filter::fastdeleted && item.leafname.is_afio_deleted())
+ if(filtering == filter::fastdeleted && item.leafname.is_llfio_deleted())
{
continue;
}
diff --git a/include/llfio/v2.0/detail/impl/windows/utils.ipp b/include/llfio/v2.0/detail/impl/windows/utils.ipp
index 5185e5e8..f483b5ea 100644
--- a/include/llfio/v2.0/detail/impl/windows/utils.ipp
+++ b/include/llfio/v2.0/detail/impl/windows/utils.ipp
@@ -102,7 +102,7 @@ namespace utils
using namespace windows_nt_kernel;
if(RtlGenRandom(buffer, static_cast<ULONG>(bytes)) == 0u)
{
- LLFIO_LOG_FATAL(0, "afio: Kernel crypto function failed");
+ LLFIO_LOG_FATAL(0, "llfio: Kernel crypto function failed");
std::terminate();
}
}
@@ -218,7 +218,7 @@ namespace utils
#ifndef NDEBUG
else if(ret.page_size_used > 65536)
{
- printf("afio: Large page allocation successful\n");
+ printf("llfio: Large page allocation successful\n");
}
#endif
return ret;
@@ -228,7 +228,7 @@ namespace utils
(void) bytes;
if(VirtualFree(p, 0, MEM_RELEASE) == 0)
{
- LLFIO_LOG_FATAL(p, "afio: Freeing large pages failed");
+ LLFIO_LOG_FATAL(p, "llfio: Freeing large pages failed");
std::terminate();
}
}
diff --git a/include/llfio/v2.0/directory_handle.hpp b/include/llfio/v2.0/directory_handle.hpp
index 5a00b1aa..5d5aba9f 100644
--- a/include/llfio/v2.0/directory_handle.hpp
+++ b/include/llfio/v2.0/directory_handle.hpp
@@ -291,13 +291,13 @@ inline std::ostream &operator<<(std::ostream &s, const directory_handle::filter
static constexpr const char *values[] = {"none", "fastdeleted"};
if(static_cast<size_t>(v) >= sizeof(values) / sizeof(values[0]) || (values[static_cast<size_t>(v)] == nullptr))
{
- return s << "afio::directory_handle::filter::<unknown>";
+ return s << "llfio::directory_handle::filter::<unknown>";
}
- return s << "afio::directory_handle::filter::" << values[static_cast<size_t>(v)];
+ return s << "llfio::directory_handle::filter::" << values[static_cast<size_t>(v)];
}
inline std::ostream &operator<<(std::ostream &s, const directory_handle::enumerate_info & /*unused*/)
{
- return s << "afio::directory_handle::enumerate_info";
+ return s << "llfio::directory_handle::enumerate_info";
}
//! \brief Constructor for `directory_handle`
diff --git a/include/llfio/v2.0/handle.hpp b/include/llfio/v2.0/handle.hpp
index 81ee118b..eb6066b5 100644
--- a/include/llfio/v2.0/handle.hpp
+++ b/include/llfio/v2.0/handle.hpp
@@ -322,36 +322,36 @@ inline std::ostream &operator<<(std::ostream &s, const handle &v)
{
auto _currentpath = v.current_path();
std::string currentpath = !_currentpath ? std::string(_currentpath.error().message().c_str()) : _currentpath.value().u8string();
- return s << "afio::handle(" << v._v._init << ", " << currentpath << ")";
+ return s << "llfio::handle(" << v._v._init << ", " << currentpath << ")";
}
- return s << "afio::handle(closed)";
+ return s << "llfio::handle(closed)";
}
inline std::ostream &operator<<(std::ostream &s, const handle::mode &v)
{
static constexpr const char *values[] = {"unchanged", nullptr, "none", nullptr, "attr_read", "attr_write", "read", "write", nullptr, "append"};
if(static_cast<size_t>(v) >= sizeof(values) / sizeof(values[0]) || (values[static_cast<size_t>(v)] == nullptr)) // NOLINT
{
- return s << "afio::handle::mode::<unknown>";
+ return s << "llfio::handle::mode::<unknown>";
}
- return s << "afio::handle::mode::" << values[static_cast<size_t>(v)]; // NOLINT
+ return s << "llfio::handle::mode::" << values[static_cast<size_t>(v)]; // NOLINT
}
inline std::ostream &operator<<(std::ostream &s, const handle::creation &v)
{
static constexpr const char *values[] = {"open_existing", "only_if_not_exist", "if_needed", "truncate"};
if(static_cast<size_t>(v) >= sizeof(values) / sizeof(values[0]) || (values[static_cast<size_t>(v)] == nullptr)) // NOLINT
{
- return s << "afio::handle::creation::<unknown>";
+ return s << "llfio::handle::creation::<unknown>";
}
- return s << "afio::handle::creation::" << values[static_cast<size_t>(v)]; // NOLINT
+ return s << "llfio::handle::creation::" << values[static_cast<size_t>(v)]; // NOLINT
}
inline std::ostream &operator<<(std::ostream &s, const handle::caching &v)
{
static constexpr const char *values[] = {"unchanged", "none", "only_metadata", "reads", "all", "reads_and_metadata", "temporary", "safety_fsyncs"};
if(static_cast<size_t>(v) >= sizeof(values) / sizeof(values[0]) || (values[static_cast<size_t>(v)] == nullptr)) // NOLINT
{
- return s << "afio::handle::caching::<unknown>";
+ return s << "llfio::handle::caching::<unknown>";
}
- return s << "afio::handle::caching::" << values[static_cast<size_t>(v)]; // NOLINT
+ return s << "llfio::handle::caching::" << values[static_cast<size_t>(v)]; // NOLINT
}
inline std::ostream &operator<<(std::ostream &s, const handle::flag &v)
{
@@ -404,7 +404,7 @@ inline std::ostream &operator<<(std::ostream &s, const handle::flag &v)
{
temp = "none";
}
- return s << "afio::handle::flag::" << temp;
+ return s << "llfio::handle::flag::" << temp;
}
/*! \brief Metaprogramming shim for constructing any `handle` subclass.
diff --git a/include/llfio/v2.0/logging.hpp b/include/llfio/v2.0/logging.hpp
index 09b2f3bf..16fce9f3 100644
--- a/include/llfio/v2.0/logging.hpp
+++ b/include/llfio/v2.0/logging.hpp
@@ -201,7 +201,7 @@ LLFIO_V2_NAMESPACE_BEGIN
namespace detail
{
// Returns the AFIO namespace as a string
- inline span<char> afio_namespace_string()
+ inline span<char> llfio_namespace_string()
{
static char buffer[64];
static size_t length;
@@ -239,7 +239,7 @@ namespace detail
// Strips a __PRETTY_FUNCTION__ of all instances of ::LLFIO_V2_NAMESPACE:: and ::LLFIO_V2_NAMESPACE::
inline void strip_pretty_function(char *out, size_t bytes, const char *in)
{
- const span<char> remove1 = afio_namespace_string();
+ const span<char> remove1 = llfio_namespace_string();
const span<char> remove2 = outcome_namespace_string();
for(--bytes; bytes && *in; --bytes)
{
diff --git a/include/llfio/v2.0/map_handle.hpp b/include/llfio/v2.0/map_handle.hpp
index d9b494f6..1878d9d5 100644
--- a/include/llfio/v2.0/map_handle.hpp
+++ b/include/llfio/v2.0/map_handle.hpp
@@ -225,7 +225,7 @@ inline std::ostream &operator<<(std::ostream &s, const section_handle::flag &v)
{
temp = "none";
}
- return s << "afio::section_handle::flag::" << temp;
+ return s << "llfio::section_handle::flag::" << temp;
}
//! \brief Constructor for `section_handle`
diff --git a/include/llfio/v2.0/native_handle_type.hpp b/include/llfio/v2.0/native_handle_type.hpp
index 6f98cdab..0961db83 100644
--- a/include/llfio/v2.0/native_handle_type.hpp
+++ b/include/llfio/v2.0/native_handle_type.hpp
@@ -23,7 +23,7 @@ Distributed under the Boost Software License, Version 1.0.
*/
#ifndef LLFIO_CONFIG_HPP
-#error You must include the master afio.hpp, not individual header files directly
+#error You must include the master llfio.hpp, not individual header files directly
#endif
#include "config.hpp"
diff --git a/include/llfio/v2.0/path_discovery.hpp b/include/llfio/v2.0/path_discovery.hpp
index e73a37e2..d6249140 100644
--- a/include/llfio/v2.0/path_discovery.hpp
+++ b/include/llfio/v2.0/path_discovery.hpp
@@ -60,9 +60,9 @@ namespace path_discovery
static constexpr const char *values[] = {"local", "environment", "system", "hardcoded"};
if(static_cast<size_t>(v) >= sizeof(values) / sizeof(values[0]) || (values[static_cast<size_t>(v)] == nullptr))
{
- return s << "afio::path_discovery::discovered_path::source_type::<unknown>";
+ return s << "llfio::path_discovery::discovered_path::source_type::<unknown>";
}
- return s << "afio::path_discovery::discovered_path::source_type::" << values[static_cast<size_t>(v)];
+ return s << "llfio::path_discovery::discovered_path::source_type::" << values[static_cast<size_t>(v)];
}
/*! \brief Returns a list of potential directories which might be usuable for temporary files.
diff --git a/include/llfio/v2.0/path_view.hpp b/include/llfio/v2.0/path_view.hpp
index 788a1e80..46272dc2 100644
--- a/include/llfio/v2.0/path_view.hpp
+++ b/include/llfio/v2.0/path_view.hpp
@@ -301,7 +301,7 @@ public:
});
}
// True if the path view matches the format of an AFIO deleted file
- constexpr bool is_afio_deleted() const noexcept
+ constexpr bool is_llfio_deleted() const noexcept
{
return filename()._invoke([](const auto &v) {
if(v.size() == 64 + 8)
diff --git a/include/llfio/v2.0/stat.hpp b/include/llfio/v2.0/stat.hpp
index 6c3bb795..4ffee773 100644
--- a/include/llfio/v2.0/stat.hpp
+++ b/include/llfio/v2.0/stat.hpp
@@ -26,7 +26,7 @@ Distributed under the Boost Software License, Version 1.0.
#define LLFIO_STAT_H
#ifndef LLFIO_CONFIG_HPP
-#error You must include the master afio.hpp, not individual header files directly
+#error You must include the master llfio.hpp, not individual header files directly
#endif
#include "config.hpp"
diff --git a/include/llfio/v2.0/statfs.hpp b/include/llfio/v2.0/statfs.hpp
index 1a221f7b..71732da5 100644
--- a/include/llfio/v2.0/statfs.hpp
+++ b/include/llfio/v2.0/statfs.hpp
@@ -26,7 +26,7 @@ Distributed under the Boost Software License, Version 1.0.
#define LLFIO_STATFS_H
#ifndef LLFIO_CONFIG_HPP
-#error You must include the master afio.hpp, not individual header files directly
+#error You must include the master llfio.hpp, not individual header files directly
#endif
#include "config.hpp"
diff --git a/include/llfio/v2.0/status_code.hpp b/include/llfio/v2.0/status_code.hpp
index c6e7984c..1d07070a 100644
--- a/include/llfio/v2.0/status_code.hpp
+++ b/include/llfio/v2.0/status_code.hpp
@@ -259,7 +259,7 @@ inline error_code ntkernel_error(SYSTEM_ERROR2_NAMESPACE::win32::NTSTATUS c);
namespace detail
{
- inline std::ostream &operator<<(std::ostream &s, const error_code &v) { return s << "afio::error_code(" << v.message().c_str() << ")"; }
+ inline std::ostream &operator<<(std::ostream &s, const error_code &v) { return s << "llfio::error_code(" << v.message().c_str() << ")"; }
}
inline error_code error_from_exception(std::exception_ptr &&ep = std::current_exception(), error_code not_matched = generic_error(errc::resource_unavailable_try_again)) noexcept
{
@@ -479,9 +479,9 @@ inline std::ostream &operator<<(std::ostream &s, const error_info &v)
{
if(make_error_code(v))
{
- return s << "afio::error_info(" << v.message() << ")";
+ return s << "llfio::error_info(" << v.message() << ")";
}
- return s << "afio::error_info(null)";
+ return s << "llfio::error_info(null)";
}
// Tell Outcome that error_info is to be treated as an error_code
inline std::error_code make_error_code(error_info ei)
@@ -495,7 +495,7 @@ inline void outcome_throw_as_system_error_with_payload(const error_info &ei)
}
/*! \class error
-\brief The exception type synthesised and thrown when an `afio::result` or `afio::outcome` is no-value observed.
+\brief The exception type synthesised and thrown when an `llfio::result` or `llfio::outcome` is no-value observed.
*/
class error : public filesystem::filesystem_error
{
diff --git a/include/llfio/v2.0/utils.hpp b/include/llfio/v2.0/utils.hpp
index 6826e776..8d731016 100644
--- a/include/llfio/v2.0/utils.hpp
+++ b/include/llfio/v2.0/utils.hpp
@@ -26,7 +26,7 @@ Distributed under the Boost Software License, Version 1.0.
#define LLFIO_UTILS_H
#ifndef LLFIO_CONFIG_HPP
-#error You must include the master afio.hpp, not individual header files directly
+#error You must include the master llfio.hpp, not individual header files directly
#endif
#include "config.hpp"
@@ -197,7 +197,7 @@ namespace utils
unmodified.
A particularly useful combination with this allocator is with the
- page_sizes() member function of __afio_dispatcher__. This will return which
+ page_sizes() member function of __llfio_dispatcher__. This will return which
pages sizes are possible, and which page sizes are enabled for this user. If
writing a file copy routine for example, using this allocator with the
largest page size as the copy chunk makes a great deal of sense.