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

Function open_platf

src/burp/split/spit.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68static const int mask = 0666;
69
70static DESC open_platf(const char* name, int writeFlag)
71{
72#ifdef WIN_NT
73 return CreateFile(name, (writeFlag ? GENERIC_WRITE : GENERIC_READ), 0, NULL,
74 (writeFlag ? CREATE_ALWAYS : OPEN_EXISTING), FILE_ATTRIBUTE_NORMAL, 0);
75#else
76 return os_utils::open(name, (writeFlag ? mode_write : mode_read), mask);
77#endif
78}
79
80static int read_platf(DESC file, void* buf, int count)
81{

Callers 2

gen_multy_bakup_filesFunction · 0.85
read_and_write_for_joinFunction · 0.85

Calls 1

openFunction · 0.50

Tested by

no test coverage detected