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

Function TempFileName

src/butil/file_util_posix.cc:132–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132std::string TempFileName() {
133#if defined(OS_MACOSX)
134 return StringPrintf(".%s.XXXXXX", butil::mac::BaseBundleID());
135#endif
136
137#if defined(GOOGLE_CHROME_BUILD)
138 return std::string(".com.google.Chrome.XXXXXX");
139#else
140 return std::string(".org.chromium.Chromium.XXXXXX");
141#endif
142}
143
144// Creates and opens a temporary file in |directory|, returning the
145// file descriptor. |path| is set to the temporary file path.

Callers 2

CreateNewTempDirectoryFunction · 0.85

Calls 1

StringPrintfFunction · 0.85

Tested by

no test coverage detected