Home
last modified time | relevance | path

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

/llvm-project-15.0.7/lldb/test/API/commands/process/attach/attach_denied/
H A Dmain.cpp26 char *tmp_file_name = (char *)malloc(strlen(file_name) + 16); in writePid() local
27 strcpy(tmp_file_name, file_name); in writePid()
28 strcat(tmp_file_name, "_tmp"); in writePid()
29 int fd = open (tmp_file_name, O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR); in writePid()
32 fprintf (stderr, "open(%s) failed: %s\n", tmp_file_name, strerror (errno)); in writePid()
33 free(tmp_file_name); in writePid()
47 if (rename (tmp_file_name, file_name) == -1) in writePid()
49 fprintf (stderr, "rename(%s, %s) failed: %s\n", tmp_file_name, file_name, strerror (errno)); in writePid()
52 free(tmp_file_name); in writePid()
/llvm-project-15.0.7/third-party/benchmark/test/
H A Doutput_test_helper.cc498 std::string tmp_file_name = GetTempFileName(); in GetFileReporterOutput() local
499 std::cout << "Will be using this as the tmp file: " << tmp_file_name << '\n'; in GetFileReporterOutput()
502 tmp += tmp_file_name; in GetFileReporterOutput()
511 std::ifstream tmp_stream(tmp_file_name); in GetFileReporterOutput()
514 std::remove(tmp_file_name.c_str()); in GetFileReporterOutput()