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

Function getNode

src/common/isc_sync.cpp:230–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228 };
229
230 DevNode getNode(const char* name)
231 {
232 struct STAT statistics;
233 if (os_utils::stat(name, &statistics) != 0)
234 {
235 if (errno == ENOENT)
236 {
237 //file not found
238 return DevNode();
239 }
240
241 system_call_failed::raise("stat");
242 }
243
244 return DevNode(statistics.st_dev, statistics.st_ino);
245 }
246
247 DevNode getNode(int fd)
248 {

Callers 1

getFunction · 0.85

Calls 4

DevNodeClass · 0.85
raiseFunction · 0.85
fstatFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected