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

Bridge operations to C stdio. More...

Classes

class  FileLock
 

Typedefs

using FopenFn = std::function< FILE *(const fs::path &, const char *)>
 

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 ()
 
std::string get_filesystem_error_message (const fs::filesystem_error &e)
 

Detailed Description

Bridge operations to C stdio.

Typedef Documentation

◆ FopenFn

using fsbridge::FopenFn = typedef std::function<FILE*(const fs::path&, const char*)>

Definition at line 209 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 36 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 26 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 118 of file fs.cpp.

Here is the caller graph for this function:

◆ GetErrorReason()

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

Definition at line 44 of file fs.cpp.

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