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

Bridge operations to C stdio. More...

Classes

class  FileLock
 

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.

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 37 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 27 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 140 of file fs.cpp.

Here is the caller graph for this function:

◆ GetErrorReason()

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

Definition at line 45 of file fs.cpp.

Here is the caller graph for this function:

◆ IsWSL()

static bool fsbridge::IsWSL ( )
static

Definition at line 65 of file fs.cpp.

Here is the caller graph for this function: