MCPcopy Create free account
hub / github.com/apache/trafficserver / RecFileOpenW

Function RecFileOpenW

src/records/RecFile.cc:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45//-------------------------------------------------------------------------
46
47RecHandle
48RecFileOpenW(const char *file)
49{
50 RecHandle h_file;
51
52 if ((h_file = ::open(file, O_WRONLY | O_TRUNC | O_CREAT, 0600)) < 0) {
53 return REC_HANDLE_INVALID;
54 }
55 fcntl(h_file, F_SETFD, FD_CLOEXEC);
56 return h_file;
57}
58
59//-------------------------------------------------------------------------
60// RecFileSync

Callers 1

RecMessageWriteToDiskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected