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

Function getShareFlags

src/jrd/os/win32/winnt.cpp:121–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119static InitMutex<AdjustFsCache> adjustFsCacheOnce("AdjustFsCacheOnce");
120
121inline static DWORD getShareFlags(const bool shared_access, bool temporary = false)
122{
123 return FILE_SHARE_READ | ((!temporary && shared_access) ? FILE_SHARE_WRITE : 0);
124}
125
126static const DWORD g_dwExtraFlags = FILE_FLAG_OVERLAPPED;
127

Callers 3

PIO_createFunction · 0.85
PIO_force_writeFunction · 0.85
PIO_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected