MCPcopy Create free account
hub / github.com/apache/brpc / OpenFile

Function OpenFile

src/butil/file_util_posix.cc:668–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668FILE* OpenFile(const FilePath& filename, const char* mode) {
669 ThreadRestrictions::AssertIOAllowed();
670 FILE* result = NULL;
671 do {
672 result = fopen(filename.value().c_str(), mode);
673 } while (!result && errno == EINTR);
674 return result;
675}
676
677// NaCl doesn't implement system calls to open files directly.
678#if !defined(OS_NACL)

Callers 1

ReadFileToStringFunction · 0.85

Calls 3

AssertIOAllowedFunction · 0.85
c_strMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected