Bitcoin Core  22.99.0
P2P Digital Currency
Classes | Typedefs | Functions
fsbridge Namespace Reference

Bridge operations to C stdio. More...

Classes

class  FileLock
 

Typedefs

typedef fs::ifstream ifstream
 
typedef fs::ofstream ofstream
 

Functions

FILE * fopen (const fs::path &p, const char *mode)
 
fs::path AbsPathJoin (const fs::path &base, const fs::path &path)
 Helper function for joining two paths. More...
 
static std::string GetErrorReason ()
 
static bool IsWSL ()
 
std::string get_filesystem_error_message (const fs::filesystem_error &e)
 

Detailed Description

Bridge operations to C stdio.

Typedef Documentation

◆ ifstream

typedef fs::ifstream fsbridge::ifstream

Definition at line 224 of file fs.h.

◆ ofstream

typedef fs::ofstream fsbridge::ofstream

Definition at line 225 of file fs.h.

Function Documentation

◆ AbsPathJoin()

fs::path fsbridge::AbsPathJoin ( const fs::path base,
const fs::path path 
)

Helper function for joining two paths.

Parameters
[in]baseBase path
[in]pathPath to combine with base
Returns
path unchanged if it is an absolute path, otherwise returns base joined with path. Returns base unchanged if path is empty.
Precondition
Base path must be absolute
Postcondition
Returned path will always be absolute

Definition at line 34 of file fs.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fopen()

FILE * fsbridge::fopen ( const fs::path p,
const char *  mode 
)

Definition at line 24 of file fs.cpp.

Here is the caller graph for this function:

◆ get_filesystem_error_message()

std::string fsbridge::get_filesystem_error_message ( const fs::filesystem_error &  e)

Definition at line 137 of file fs.cpp.

Here is the caller graph for this function:

◆ GetErrorReason()

static std::string fsbridge::GetErrorReason ( )
static

Definition at line 42 of file fs.cpp.

Here is the caller graph for this function:

◆ IsWSL()

static bool fsbridge::IsWSL ( )
static

Definition at line 62 of file fs.cpp.

Here is the caller graph for this function: