Home
last modified time | relevance | path

Searched refs:tmp_path (Results 1 – 16 of 16) sorted by relevance

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_coverage_mapping_libcdep.cc94 InternalScopedString tmp_path(64 + internal_strlen(coverage_dir)); in CovUpdateMapping() local
95 uptr res = internal_snprintf((char *)tmp_path.data(), tmp_path.size(), in CovUpdateMapping()
98 CHECK_LE(res, tmp_path.size()); in CovUpdateMapping()
99 fd_t map_fd = OpenFile(tmp_path.data(), WrOnly, &err); in CovUpdateMapping()
101 Report("Coverage: failed to open %s for writing: %d\n", tmp_path.data(), in CovUpdateMapping()
116 if (!RenameFile(tmp_path.data(), path.data(), &err)) { in CovUpdateMapping()
/external/ltp/testcases/kernel/syscalls/nftw/
Dlib64.c32 static char *tmp_path = "./tmp"; variable
65 if ((path_length = pathconf(tmp_path, _PC_PATH_MAX)) == -1) { in get_long_name_buffer()
72 if ((name_length = pathconf(tmp_path, _PC_NAME_MAX)) == -1) { in get_long_name_buffer()
79 if ((strlen(tmp_path) + name_length + extra) > path_length) { in get_long_name_buffer()
140 strcpy(buffer, tmp_path); in test_long_file_name()
162 strcpy(buffer, tmp_path); in test_long_component_name()
183 if ((pcPathMax = pathconf(tmp_path, _PC_PATH_MAX)) == -1) { in test_ENAMETOOLONG_path()
191 tmp_path, pcPathMax); in test_ENAMETOOLONG_path()
200 path = strcpy(path, tmp_path); in test_ENAMETOOLONG_path()
209 tmpPtr += sprintf(tmpPtr, "/%s", tmp_path); in test_ENAMETOOLONG_path()
Dlib.c32 static char *tmp_path = "./tmp"; variable
65 if ((path_length = pathconf(tmp_path, _PC_PATH_MAX)) == -1) { in get_long_name_buffer()
72 if ((name_length = pathconf(tmp_path, _PC_NAME_MAX)) == -1) { in get_long_name_buffer()
79 if ((strlen(tmp_path) + name_length + extra) > path_length) { in get_long_name_buffer()
140 strcpy(buffer, tmp_path); in test_long_file_name()
162 strcpy(buffer, tmp_path); in test_long_component_name()
183 if ((pcPathMax = pathconf(tmp_path, _PC_PATH_MAX)) == -1) { in test_ENAMETOOLONG_path()
191 tmp_path, pcPathMax); in test_ENAMETOOLONG_path()
200 path = strcpy(path, tmp_path); in test_ENAMETOOLONG_path()
209 tmpPtr += sprintf(tmpPtr, "/%s", tmp_path); in test_ENAMETOOLONG_path()
/external/libchrome/base/
Dsys_info_unittest.cc77 FilePath tmp_path; in TEST_F() local
78 ASSERT_TRUE(GetTempDir(&tmp_path)); in TEST_F()
79 EXPECT_GE(SysInfo::AmountOfFreeDiskSpace(tmp_path), 0) << tmp_path.value(); in TEST_F()
91 FilePath tmp_path; in TEST_F() local
92 ASSERT_TRUE(GetTempDir(&tmp_path)); in TEST_F()
93 EXPECT_GT(SysInfo::AmountOfTotalDiskSpace(tmp_path), 0) << tmp_path.value(); in TEST_F()
/external/autotest/server/cros/
Dcamerabox_utils.py125 tmp_path = os.path.join(self.test.tmpdir, os.path.basename(filepath))
126 self.host.get_file(filepath, tmp_path, delete_dest=True)
127 with open(tmp_path) as f:
135 tmp_path = os.path.join(self.test.tmpdir, os.path.basename(filepath))
136 with open(tmp_path, 'w') as f:
139 os.chmod(tmp_path, permission)
140 self.host.send_file(tmp_path, filepath, delete_dest=True)
/external/avb/test/
Davb_unittest_util.cc144 base::FilePath tmp_path = testdir_.Append("info_output.txt"); in InfoImage() local
148 tmp_path.value().c_str()); in InfoImage()
150 EXPECT_TRUE(base::ReadFileToString(tmp_path, &info_data)); in InfoImage()
155 base::FilePath tmp_path = testdir_.Append("public_key.bin"); in PublicKeyAVB() local
160 tmp_path.value().c_str()); in PublicKeyAVB()
162 EXPECT_TRUE(base::ReadFileToString(tmp_path, &key_data)); in PublicKeyAVB()
/external/grpc-grpc/src/core/lib/gpr/
Dtmpfile_windows.cc38 TCHAR tmp_path[MAX_PATH]; in gpr_tmpfile() local
50 status = GetTempPath(MAX_PATH, tmp_path); in gpr_tmpfile()
54 success = GetTempFileName(tmp_path, template_string, 0, tmp_filename); in gpr_tmpfile()
/external/compiler-rt/test/asan/android_commands/
Dandroid_common.py42 tmp_path = dst_path + '.push'
43 adb(['push', path, tmp_path], 5)
44 adb(['shell', 'cp "%s" "%s" 2>&1' % (tmp_path, dst_path)], 5)
/external/selinux/libselinux/src/
Dmatchpathcon.c380 char *tmp_path, *p; in realpath_not_final() local
384 tmp_path = strdup(name); in realpath_not_final()
385 if (!tmp_path) { in realpath_not_final()
392 last_component = strrchr(tmp_path, '/'); in realpath_not_final()
394 if (last_component == tmp_path) { in realpath_not_final()
400 p = realpath(tmp_path, resolved_path); in realpath_not_final()
402 last_component = tmp_path; in realpath_not_final()
427 free(tmp_path); in realpath_not_final()
/external/autotest/client/site_tests/power_IdleSuspend/
Dpower_IdleSuspend.py49 tmp_path = '%s/%s' % (self.tempdir, key)
51 utils.write_one_line(tmp_path, str(val))
52 utils.run('mount --bind %s %s' % (tmp_path, mount_path))
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cc69 char tmp_path[MAX_PATH]; in temp_file_name() local
70 if (!::GetTempFileNameA(tmp_dir, prefix, 0, tmp_path)) in temp_file_name()
72 internal_strncpy(buf, tmp_path, bufsize); in temp_file_name()
/external/autotest/client/cros/faft/utils/
Dos_interface.py169 tmp_path = '/data/local/tmp'
171 tmp_path = '/tmp'
172 cmd = 'mktemp -p %s %sXXXXXX' % (tmp_path, prefix)
/external/wpa_supplicant_8/src/utils/
Dwpa_debug.c150 char *tmp2, *tmp_path, *fstype; in wpa_debug_open_linux_tracing() local
153 tmp_path = strtok_r(NULL, " ", &tmp2); in wpa_debug_open_linux_tracing()
156 path = tmp_path; in wpa_debug_open_linux_tracing()
/external/python/cpython2/Lib/
Dmailbox.py340 tmp_path = os.path.join(self._path, temp_subpath)
343 os.utime(tmp_path,
344 (os.path.getatime(tmp_path), message.get_date()))
348 os.rename(tmp_path, new_path)
/external/python/cpython3/Lib/
Dmailbox.py360 tmp_path = os.path.join(self._path, temp_subpath)
363 os.utime(tmp_path,
364 (os.path.getatime(tmp_path), message.get_date()))
368 os.rename(tmp_path, new_path)
/external/curl/lib/
Dftp.c3830 char *tmp_path = aprintf("%s%s", wildcard->path, finfo->filename); in wc_statemach() local
3831 if(!tmp_path) in wc_statemach()
3836 ftp->pathalloc = ftp->path = tmp_path; in wc_statemach()