Home
last modified time | relevance | path

Searched refs:old_path (Results 1 – 25 of 58) sorted by relevance

123

/external/linux-kselftest/tools/testing/selftests/filesystems/fat/
Drun_fat_tests.sh44 local old_path="${MNT_PATH}/old_file"
47 echo old | sudo tee "${old_path}" >/dev/null 2>&1
49 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1
51 grep new "${old_path}" >/dev/null 2>&1
59 local old_path="${MNT_PATH}/old_file"
63 echo old | sudo tee "${old_path}" >/dev/null 2>&1
65 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1
67 grep new "${old_path}" >/dev/null 2>&1
/external/rust/android-crates-io/crates/rustix/src/fs/
Dabs.rs148 pub fn rename<P: path::Arg, Q: path::Arg>(old_path: P, new_path: Q) -> io::Result<()> { in rename()
149 old_path.into_with_c_str(|old_path| { in rename()
150 new_path.into_with_c_str(|new_path| backend::fs::syscalls::rename(old_path, new_path)) in rename()
198 pub fn link<P: path::Arg, Q: path::Arg>(old_path: P, new_path: Q) -> io::Result<()> { in link()
199 old_path.into_with_c_str(|old_path| { in link()
200 new_path.into_with_c_str(|new_path| backend::fs::syscalls::link(old_path, new_path)) in link()
213 pub fn symlink<P: path::Arg, Q: path::Arg>(old_path: P, new_path: Q) -> io::Result<()> { in symlink()
214 old_path.into_with_c_str(|old_path| { in symlink()
215 new_path.into_with_c_str(|new_path| backend::fs::syscalls::symlink(old_path, new_path)) in symlink()
Dat.rs203 old_path: P, in linkat()
208 old_path.into_with_c_str(|old_path| { in linkat()
212 old_path, in linkat()
251 old_path: P, in renameat()
255 old_path.into_with_c_str(|old_path| { in renameat()
259 old_path, in renameat()
279 old_path: P, in renameat_with()
284 old_path.into_with_c_str(|old_path| { in renameat_with()
288 old_path, in renameat_with()
307 old_path: P, in symlinkat()
[all …]
/external/elfutils/tests/
Dtest-wrapper.sh41 old_path="${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
51 LD_LIBRARY_PATH="$built_library_path$old_path"
56 LD_LIBRARY_PATH="${libdir}:${libdir}/elfutils$old_path"
/external/rust/android-crates-io/crates/tempfile/tests/
Dnamedtempfile.rs42 let old_path = tmpfile.path().to_path_buf(); in test_persist() localVariable
46 assert!(exists(&old_path)); in test_persist()
48 assert!(!exists(&old_path)); in test_persist()
71 let old_path = tmpfile.path().to_path_buf(); in test_persist_noclobber() localVariable
75 assert!(exists(&old_path)); in test_persist_noclobber()
78 assert!(exists(&old_path)); in test_persist_noclobber()
174 let old_path = tmppath.to_path_buf(); in test_temppath_persist() localVariable
178 assert!(exists(&old_path)); in test_temppath_persist()
180 assert!(!exists(&old_path)); in test_temppath_persist()
202 let old_path = tmppath.to_path_buf(); in test_temppath_persist_noclobber() localVariable
[all …]
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dshell_util.py17 old_path = _os.getcwd()
23 _os.chdir(old_path)
24 print('> cd', old_path)
/external/rust/android-crates-io/crates/tempfile/src/file/imp/
Dunix.rs112 pub fn persist(old_path: &Path, new_path: &Path, overwrite: bool) -> io::Result<()> { in persist()
114 rename(old_path, new_path)?; in persist()
126 match renameat_with(CWD, old_path, CWD, new_path, RenameFlags::NOREPLACE) { in persist()
138 hard_link(old_path, new_path)?; in persist()
141 let _ = unlink(old_path); in persist()
/external/pdfium/core/fpdfapi/page/
Dcpdf_clippath.cpp88 const CPDF_Path& old_path = pData->m_PathAndTypeList.back().first; in AppendPathWithAutoMerge() local
89 if (old_path.IsRect()) { in AppendPathWithAutoMerge()
90 CFX_PointF point0 = old_path.GetPoint(0); in AppendPathWithAutoMerge()
91 CFX_PointF point2 = old_path.GetPoint(2); in AppendPathWithAutoMerge()
/external/zucchini/
Dzucchini_integration.cc179 status::Code Generate(const base::FilePath& old_path, in Generate() argument
186 File old_file(old_path, File::FLAG_OPEN | File::FLAG_READ | in Generate()
194 const FileNames file_names(old_path, new_path, patch_path); in Generate()
209 status::Code Apply(const base::FilePath& old_path, in Apply() argument
214 File old_file(old_path, File::FLAG_OPEN | File::FLAG_READ | in Apply()
221 const FileNames file_names(old_path, new_path, patch_path); in Apply()
Dzucchini_integration.h40 status::Code Generate(const base::FilePath& old_path,
61 status::Code Apply(const base::FilePath& old_path,
Dintegration_test.cc35 base::FilePath old_path = MakeTestPath(old_filename); in TestGenApply() local
39 ASSERT_TRUE(old_file.Initialize(old_path)); in TestGenApply()
/external/python/watchdog/src/watchdog/utils/
Ddirsnapshot.py108 old_path = ref.path(inode)
109 if old_path:
111 moved.add((old_path, path))
122 for old_path, new_path in moved:
123 …if ref.mtime(old_path) != snapshot.mtime(new_path) or ref.size(old_path) != snapshot.size(new_path…
124 modified.add(old_path)
/external/autotest/server/site_tests/firmware_Cr50RejectUpdate/
Dfirmware_Cr50RejectUpdate.py43 self.old_path = self.download_cr50_release_image(self.OLD_IMAGE_VER)[0]
93 self.try_update('-u', self.old_path, stdout='nothing to do')
97 self.try_update('', self.old_path, err=8)
/external/zucchini/aosp/include/components/zucchini/
Dzucchini_integration.h40 status::Code Generate(const base::FilePath& old_path,
61 status::Code Apply(const base::FilePath& old_path,
/external/bazelbuild-rules_rust/tools/upstream_wrapper/src/
Dmain.rs27 let old_path = std::env::var_os("PATH").unwrap_or_default(); in main() localVariable
30 new_path.push(&old_path); in main()
/external/python/cpython3/Lib/test/test_zoneinfo/
D_support.py90 old_path = self.module.TZPATH
100 self.module.reset_tzpath(old_path)
/external/rust/android-crates-io/crates/nix/test/
Dtest_fcntl.rs127 let old_path = old_dir.path().join("old"); in test_renameat() localVariable
128 File::create(old_path).unwrap(); in test_renameat()
156 let old_path = old_dir.path().join("old"); in test_renameat2_behaves_like_renameat_with_no_flags() localVariable
157 File::create(old_path).unwrap(); in test_renameat2_behaves_like_renameat_with_no_flags()
199 let old_path = old_dir.path().join("old"); in test_renameat2_exchange() localVariable
201 let mut old_f = File::create(&old_path).unwrap(); in test_renameat2_exchange()
225 let mut old_f = File::open(&old_path).unwrap(); in test_renameat2_exchange()
246 let old_path = old_dir.path().join("old"); in test_renameat2_noreplace() localVariable
247 File::create(old_path).unwrap(); in test_renameat2_noreplace()
/external/python/cpython3/Lib/test/
Dtest_modulefinder.py394 old_path = os.path.join(self.test_dir, 'a', 'module.py')
398 replace_paths=[(old_path, new_path)])
400 expected = "co_filename %r changed to %r" % (old_path, new_path)
/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/toolchains/rbe_win2019/
DDockerfile58 $old_path = [Environment]::GetEnvironmentVariable(\"PATH\", \"Machine\"); \
59 …[Environment]::SetEnvironmentVariable(\"PATH\", $old_path + \";C:\msys64;C:\msys64\usr\bin\", \"Ma…
77 $old_path = [Environment]::GetEnvironmentVariable(\"PATH\", \"Machine\"); \
78 … [Environment]::SetEnvironmentVariable(\"PATH\", $old_path + \";${zulu_root}\bin\", \"Machine\"); \
/external/grpc-grpc/third_party/toolchains/dockerfile/rbe_windows2019/
DDockerfile58 $old_path = [Environment]::GetEnvironmentVariable(\"PATH\", \"Machine\"); \
59 …[Environment]::SetEnvironmentVariable(\"PATH\", $old_path + \";C:\msys64;C:\msys64\usr\bin\", \"Ma…
77 $old_path = [Environment]::GetEnvironmentVariable(\"PATH\", \"Machine\"); \
78 … [Environment]::SetEnvironmentVariable(\"PATH\", $old_path + \";${zulu_root}\bin\", \"Machine\"); \
/external/rust/android-crates-io/crates/rustix/src/backend/linux_raw/fs/
Dsyscalls.rs1094 pub(crate) fn rename(old_path: &CStr, new_path: &CStr) -> io::Result<()> { in rename()
1100 old_path, in rename()
1111 old_path, in rename()
1121 old_path: &CStr, in renameat()
1130 old_path, in renameat()
1141 old_path, in renameat()
1151 old_path: &CStr, in renameat2()
1160 old_path, in renameat2()
1198 pub(crate) fn link(old_path: &CStr, new_path: &CStr) -> io::Result<()> { in link()
1203 old_path, in link()
[all …]
/external/angle/third_party/spirv-tools/src/tools/objdump/
Dobjdump.cpp80 std::filesystem::path old_path(filepath); in OutputSourceFiles() local
81 std::filesystem::path new_path = outdir / old_path.filename(); in OutputSourceFiles()
/external/swiftshader/third_party/SPIRV-Tools/tools/objdump/
Dobjdump.cpp80 std::filesystem::path old_path(filepath); in OutputSourceFiles() local
81 std::filesystem::path new_path = outdir / old_path.filename(); in OutputSourceFiles()
/external/deqp-deps/SPIRV-Tools/tools/objdump/
Dobjdump.cpp80 std::filesystem::path old_path(filepath); in OutputSourceFiles() local
81 std::filesystem::path new_path = outdir / old_path.filename(); in OutputSourceFiles()
/external/okio/okio-wasifilesystem/src/wasmWasiMain/kotlin/okio/internal/preview1/
DPreview1.kt146 old_path: PointerU8,
161 old_path: PointerU8,

123