Changeset View
Changeset View
Standalone View
Standalone View
src/util.h
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void PrintExceptionContinue(const std::exception *pex, const char *pszThread); | void PrintExceptionContinue(const std::exception *pex, const char *pszThread); | ||||
void FileCommit(FILE *file); | void FileCommit(FILE *file); | ||||
bool TruncateFile(FILE *file, unsigned int length); | bool TruncateFile(FILE *file, unsigned int length); | ||||
int RaiseFileDescriptorLimit(int nMinFD); | int RaiseFileDescriptorLimit(int nMinFD); | ||||
void AllocateFileRange(FILE *file, unsigned int offset, unsigned int length); | void AllocateFileRange(FILE *file, unsigned int offset, unsigned int length); | ||||
bool RenameOver(fs::path src, fs::path dest); | bool RenameOver(fs::path src, fs::path dest); | ||||
bool LockDirectory(const fs::path &directory, const std::string lockfile_name, | |||||
bool probe_only = false); | |||||
bool TryCreateDirectories(const fs::path &p); | bool TryCreateDirectories(const fs::path &p); | ||||
fs::path GetDefaultDataDir(); | fs::path GetDefaultDataDir(); | ||||
const fs::path &GetDataDir(bool fNetSpecific = true); | const fs::path &GetDataDir(bool fNetSpecific = true); | ||||
void ClearDatadirCache(); | void ClearDatadirCache(); | ||||
fs::path GetConfigFile(const std::string &confPath); | fs::path GetConfigFile(const std::string &confPath); | ||||
#ifndef WIN32 | #ifndef WIN32 | ||||
fs::path GetPidFile(); | fs::path GetPidFile(); | ||||
void CreatePidFile(const fs::path &path, pid_t pid); | void CreatePidFile(const fs::path &path, pid_t pid); | ||||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |