MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getCwd

Function getCwd

src/common/utils.cpp:922–933  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

920}
921
922void getCwd(Firebird::PathName& pn)
923{
924 char* buffer = pn.getBuffer(MAXPATHLEN);
925#if defined(WIN_NT)
926 _getcwd(buffer, MAXPATHLEN);
927#elif defined(HAVE_GETCWD)
928 FB_UNUSED(getcwd(buffer, MAXPATHLEN));
929#else
930 FB_UNUSED(getwd(buffer));
931#endif
932 pn.recalculate_length();
933}
934
935namespace {
936 class InputFile

Callers 4

makeFullFileNameMethod · 0.85
add_working_directoryFunction · 0.85
ISC_expand_filenameFunction · 0.85
expand_filename2Function · 0.85

Calls 2

recalculate_lengthMethod · 0.80
getBufferMethod · 0.45

Tested by

no test coverage detected