MCPcopy Create free account
hub / github.com/Snapchat/Valdi / statFromFd

Function statFromFd

valdi_core/src/valdi_core/cpp/Utils/DiskUtils.cpp:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33static FileStat statFromFd(int fd) {
34 struct stat statStruct;
35 std::memset(&statStruct, 0, sizeof(statStruct));
36 return fileStatFromCStat(fstat(fd, &statStruct) >= 0, statStruct);
37}
38
39FileReader::FileReader(const Path& path) : _path(path.toString()) {}
40FileReader::~FileReader() {

Callers 1

loadFromFdMethod · 0.85

Calls 1

fileStatFromCStatFunction · 0.85

Tested by

no test coverage detected