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-03 11:57:35 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-07-03 11:57:35 +0300
commit6efe2493a65540d3f484a8b7f27d5298d49c9da4 (patch)
tree55ff8924a57c370c16eb69ab90b35ff7d723bf78 /example
parent53d415a3b69d2680c15ae2c56a9baf9b149ad71d (diff)
Lots more afio => llfio renaming
Diffstat (limited to 'example')
-rw-r--r--example/single-header.cpp2
-rw-r--r--example/use_cases.cpp18
2 files changed, 10 insertions, 10 deletions
diff --git a/example/single-header.cpp b/example/single-header.cpp
index 4b0a4443..cde9f7a0 100644
--- a/example/single-header.cpp
+++ b/example/single-header.cpp
@@ -31,7 +31,7 @@ Distributed under the Boost Software License, Version 1.0.
int main()
{
- AFIO_V2_NAMESPACE::mapped_file_handle v;
+ LLFIO_V2_NAMESPACE::mapped_file_handle v;
(void) v;
return 0;
}
diff --git a/example/use_cases.cpp b/example/use_cases.cpp
index 65190ae3..a72a5ec1 100644
--- a/example/use_cases.cpp
+++ b/example/use_cases.cpp
@@ -36,7 +36,7 @@ Distributed under the Boost Software License, Version 1.0.
void read_entire_file1()
{
//! [file_entire_file1]
- namespace afio = AFIO_V2_NAMESPACE;
+ namespace afio = LLFIO_V2_NAMESPACE;
// Open the file for read
afio::file_handle fh = afio::file( //
@@ -68,7 +68,7 @@ void read_entire_file1()
void read_entire_file2()
{
//! [file_entire_file2]
- namespace afio = AFIO_V2_NAMESPACE;
+ namespace afio = LLFIO_V2_NAMESPACE;
// Create an i/o service to complete the async file i/o
afio::io_service service;
@@ -161,7 +161,7 @@ void scatter_write()
*/
return;
//! [scatter_write]
- namespace afio = AFIO_V2_NAMESPACE;
+ namespace afio = LLFIO_V2_NAMESPACE;
// Open the file for write, creating if needed, don't cache reads nor writes
afio::file_handle fh = afio::file( //
@@ -200,7 +200,7 @@ void scatter_write()
void malloc1()
{
//! [malloc1]
- namespace afio = AFIO_V2_NAMESPACE;
+ namespace afio = LLFIO_V2_NAMESPACE;
// Call whatever the equivalent to mmap() is on this platform to fetch
// new private memory backed by the swap file. This will be the system
@@ -253,7 +253,7 @@ void malloc1()
void malloc2()
{
//! [malloc2]
- namespace afio = AFIO_V2_NAMESPACE;
+ namespace afio = LLFIO_V2_NAMESPACE;
// Create 4Kb of anonymous shared memory. This will persist
// until the last handle to it in the system is destructed.
@@ -289,7 +289,7 @@ void malloc2()
void map_file()
{
//! [map_file]
- namespace afio = AFIO_V2_NAMESPACE;
+ namespace afio = LLFIO_V2_NAMESPACE;
// Open the file for read
afio::file_handle rfh = afio::file( //
@@ -342,7 +342,7 @@ void map_file()
void mapped_file()
{
//! [mapped_file]
- namespace afio = AFIO_V2_NAMESPACE;
+ namespace afio = LLFIO_V2_NAMESPACE;
// Open the mapped file for read
afio::mapped_file_handle mh = afio::mapped_file( //
@@ -370,7 +370,7 @@ void mapped_file()
void sparse_array()
{
//! [sparse_array]
- namespace afio = AFIO_V2_NAMESPACE;
+ namespace afio = LLFIO_V2_NAMESPACE;
// Make me a 1 trillion element sparsely allocated integer array!
afio::mapped_file_handle mfh = afio::mapped_temp_inode().value();
@@ -392,7 +392,7 @@ void sparse_array()
std::future<void> coroutine_write()
{
//! [coroutine_write]
- namespace afio = AFIO_V2_NAMESPACE;
+ namespace afio = LLFIO_V2_NAMESPACE;
// Create an asynchronous file handle
afio::io_service service;