Home
last modified time | relevance | path

Searched refs:filename_template (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc/src/core/lib/gpr/
Dtmpfile_posix.cc38 char* filename_template; in gpr_tmpfile() local
43 gpr_asprintf(&filename_template, "/tmp/%s_XXXXXX", prefix); in gpr_tmpfile()
44 GPR_ASSERT(filename_template != nullptr); in gpr_tmpfile()
46 fd = mkstemp(filename_template); in gpr_tmpfile()
49 filename_template, strerror(errno)); in gpr_tmpfile()
55 filename_template, fd, strerror(errno)); in gpr_tmpfile()
56 unlink(filename_template); in gpr_tmpfile()
63 *tmp_filename = filename_template; in gpr_tmpfile()
65 gpr_free(filename_template); in gpr_tmpfile()
/external/bsdiff/
Dtest_utils.cc34 const std::string filename_template = PrependTmpdir(base_filename_template); in MakeTempFile() local
35 vector<char> result(filename_template.size() + 1, '\0'); in MakeTempFile()
36 memcpy(result.data(), filename_template.data(), filename_template.size()); in MakeTempFile()