MCPcopy Create free account
hub / github.com/apache/impala / OverwriteContents

Method OverwriteContents

be/src/util/redactor-test-utils.cc:53–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void TempRulesFile::OverwriteContents(const std::string& contents) {
54 FILE* handle = fopen(name(), "w");
55 if (handle == NULL) {
56 std::cout << "Error creating temp file; " << strerror(errno) << std::endl;
57 abort();
58 }
59 int status = fputs(contents.c_str(), handle);
60 if (status < 0) {
61 std::cout << "Error writing to temp file; " << strerror(errno) << std::endl;
62 abort();
63 }
64 status = fclose(handle);
65 if (status != 0) {
66 std::cout << "Error closing temp file; " << strerror(errno) << std::endl;
67 abort();
68 }
69}
70
71unsigned int RandSeed() {
72 struct timespec now;

Callers 2

TESTFunction · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected