Changeset View
Changeset View
Standalone View
Standalone View
src/util/system.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
inline std::string _(const char *psz) { | inline std::string _(const char *psz) { | ||||
return G_TRANSLATION_FUN ? (G_TRANSLATION_FUN)(psz) : psz; | return G_TRANSLATION_FUN ? (G_TRANSLATION_FUN)(psz) : psz; | ||||
} | } | ||||
void SetupEnvironment(); | void SetupEnvironment(); | ||||
bool SetupNetworking(); | bool SetupNetworking(); | ||||
template <typename... Args> bool error(const char *fmt, const Args &... args) { | template <typename... Args> bool error(const char *fmt, const Args &... args) { | ||||
LogPrintf("ERROR: " + tfm::format(fmt, args...) + "\n"); | LogPrintf("ERROR: %s\n", tfm::format(fmt, args...)); | ||||
return false; | return false; | ||||
} | } | ||||
void PrintExceptionContinue(const std::exception *pex, const char *pszThread); | void PrintExceptionContinue(const std::exception *pex, const char *pszThread); | ||||
bool FileCommit(FILE *file); | bool 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); | ||||
▲ Show 20 Lines • Show All 325 Lines • Show Last 20 Lines |