Home
last modified time | relevance | path

Searched refs:oldpath (Results 1 – 25 of 27) sorted by relevance

12

/third_party/NuttX/fs/vfs/
Dfs_link.c36 int do_link(int oldfd, const char *oldpath, int newfd, const char *newpath, int flag) in do_link() argument
47 if (!oldpath || !newpath) in do_link()
53 if (*oldpath == '\0' || *newpath == '\0' || flag & ~AT_SYMLINK_FOLLOW) in do_link()
67 ret = vfs_normalize_pathat(oldfd, oldpath, &fulloldpath); in do_link()
80 ret = follow_symlink(oldfd, oldpath, &old_vnode, &fulloldpath); in do_link()
151 int link(const char *oldpath, const char *newpath) in link() argument
153 return do_link(AT_FDCWD, oldpath, AT_FDCWD, newpath, 0); in link()
156 int linkat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, int flags) in linkat() argument
158 return do_link(olddirfd, oldpath, newdirfd, newpath, flags); in linkat()
Dfs_rename.c117 int do_rename(int oldfd, const char *oldpath, int newfd, const char *newpath) in do_rename() argument
128 if (!oldpath || *oldpath == '\0' || !newpath || *newpath == '\0') in do_rename()
134 ret = vfs_normalize_pathat(oldfd, oldpath, &fulloldpath); in do_rename()
225 int rename(const char *oldpath, const char *newpath) in rename() argument
227 return do_rename(AT_FDCWD, oldpath, AT_FDCWD, newpath); in rename()
237 int renameat(int oldfd, const char *oldpath, int newdfd, const char *newpath) in renameat() argument
239 return do_rename(oldfd, oldpath, newdfd, newpath); in renameat()
/third_party/curl/lib/
Drename.c39 int Curl_rename(const char *oldpath, const char *newpath) in Curl_rename() argument
47 TCHAR *tchar_oldpath = curlx_convert_UTF8_to_tchar((char *)oldpath); in Curl_rename()
65 if(rename(oldpath, newpath)) in Curl_rename()
Drename.h25 int Curl_rename(const char *oldpath, const char *newpath);
/third_party/ltp/include/old/
Dsafe_macros.h94 #define SAFE_LINK(cleanup_fn, oldpath, newpath) \ argument
95 safe_link(__FILE__, __LINE__, cleanup_fn, (oldpath), (newpath))
97 #define SAFE_LINKAT(cleanup_fn, olddirfd, oldpath, newdirfd, newpath, flags) \ argument
98 safe_linkat(__FILE__, __LINE__, cleanup_fn, (olddirfd), (oldpath), \
104 #define SAFE_SYMLINK(cleanup_fn, oldpath, newpath) \ argument
105 safe_symlink(__FILE__, __LINE__, cleanup_fn, (oldpath), (newpath))
147 #define SAFE_RENAME(cleanup_fn, oldpath, newpath) \ argument
148 safe_rename(__FILE__, __LINE__, (cleanup_fn), (oldpath), (newpath))
/third_party/ltp/include/lapi/
Drenameat.h15 static inline int renameat(int olddirfd, const char *oldpath, int newdirfd, in renameat() argument
18 return ltp_syscall(__NR_renameat, olddirfd, oldpath, newdirfd, in renameat()
/third_party/ltp/testcases/kernel/syscalls/renameat2/
Drenameat2.h27 int renameat2(int olddirfd, const char *oldpath, int newdirfd, in renameat2() argument
30 return ltp_syscall(__NR_renameat2, olddirfd, oldpath, newdirfd, in renameat2()
Drenameat201.c58 const char *oldpath; member
137 TEST(renameat2(*(test->olddirfd), test->oldpath, in renameat2_verify()
/third_party/ltp/lib/
Dsafe_macros.c439 void (cleanup_fn)(void), const char *oldpath, in safe_link() argument
444 rval = link(oldpath, newpath); in safe_link()
448 "link(%s,%s) failed", oldpath, newpath); in safe_link()
451 "Invalid link(%s,%s) return value %d", oldpath, in safe_link()
459 void (cleanup_fn)(void), int olddirfd, const char *oldpath, in safe_linkat() argument
464 rval = linkat(olddirfd, oldpath, newdirfd, newpath, flags); in safe_linkat()
468 "linkat(%d,%s,%d,%s,%d) failed", olddirfd, oldpath, in safe_linkat()
473 olddirfd, oldpath, newdirfd, newpath, flags, rval); in safe_linkat()
507 void (cleanup_fn)(void), const char *oldpath, in safe_symlink() argument
512 rval = symlink(oldpath, newpath); in safe_symlink()
[all …]
/third_party/ltp/include/
Dsafe_macros_fn.h98 void (cleanup_fn)(void), const char *oldpath,
102 void (cleanup_fn)(void), int olddirfd, const char *oldpath,
110 void (cleanup_fn)(void), const char *oldpath,
155 const char *oldpath, const char *newpath);
Dtst_safe_macros.h162 #define SAFE_LINK(oldpath, newpath) \ argument
163 safe_link(__FILE__, __LINE__, NULL, (oldpath), (newpath))
165 #define SAFE_LINKAT(olddirfd, oldpath, newdirfd, newpath, flags) \ argument
166 safe_linkat(__FILE__, __LINE__, NULL, (olddirfd), (oldpath), \
172 #define SAFE_SYMLINK(oldpath, newpath) \ argument
173 safe_symlink(__FILE__, __LINE__, NULL, (oldpath), (newpath))
214 #define SAFE_RENAME(oldpath, newpath) \ argument
215 safe_rename(__FILE__, __LINE__, NULL, (oldpath), (newpath))
/third_party/mbedtls/library/
Dpsa_its_file.c66 #define rename_replace_existing( oldpath, newpath ) \ argument
67 ( ! MoveFileExA( oldpath, newpath, MOVEFILE_REPLACE_EXISTING ) )
69 #define rename_replace_existing( oldpath, newpath ) rename( oldpath, newpath ) argument
/third_party/ltp/testcases/kernel/syscalls/renameat/
Drenameat01.c89 const char *oldpath; member
203 TEST(renameat(*(tc->oldfdptr), tc->oldpath, in renameat_verify()
227 *(tc->oldfdptr), tc->oldpath) < 0) { in renameat_verify()
230 *(tc->oldfdptr), tc->oldpath); in renameat_verify()
/third_party/ltp/testcases/kernel/syscalls/link/
Dlink08.c36 char *oldpath; member
50 TEST(link(tc->oldpath, tc->newpath)); in link_verify()
/third_party/grpc/third_party/toolchains/rbe_win2019/
DDockerfile29 RUN $oldpath = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contr…
30 $newpath = \"$oldpath;C:\Program Files\7-Zip\"; \
59 RUN $oldpath = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contr…
60 $newpath = \"$oldpath;C:\tools\msys64;C:\tools\msys64\usr\bin\"; \
71 RUN $oldpath = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contr…
72 $newpath = \"$oldpath;C:\Python27\"; \
/third_party/littlefs/tests/
Dtest_dirs.toml130 char oldpath[128];
132 sprintf(oldpath, "test%03d", i);
134 lfs_rename(&lfs, oldpath, newpath) => 0;
196 char oldpath[128];
198 sprintf(oldpath, "hi%03d", i);
201 lfs_rename(&lfs, oldpath, newpath) => 0;
356 char oldpath[128];
358 sprintf(oldpath, "test%03d", i);
360 lfs_rename(&lfs, oldpath, newpath) => 0;
422 char oldpath[128];
[all …]
/third_party/ntfs-3g/include/fuse-lite/
Dfuse.h567 int fuse_fs_rename(struct fuse_fs *fs, const char *oldpath,
573 int fuse_fs_link(struct fuse_fs *fs, const char *oldpath, const char *newpath);
/third_party/ntfs-3g/libfuse-lite/
Dfuse.c731 int fuse_fs_rename(struct fuse_fs *fs, const char *oldpath, in fuse_fs_rename() argument
736 return fs->op.rename(oldpath, newpath); in fuse_fs_rename()
768 int fuse_fs_link(struct fuse_fs *fs, const char *oldpath, const char *newpath) in fuse_fs_link() argument
772 return fs->op.link(oldpath, newpath); in fuse_fs_link()
1108 static int hide_node(struct fuse *f, const char *oldpath, in hide_node() argument
1117 err = fuse_fs_rename(f->fs, oldpath, newpath); in hide_node()
1699 char *oldpath; in fuse_lib_rename() local
1705 oldpath = get_path_name(f, olddir, oldname); in fuse_lib_rename()
1706 if (oldpath != NULL) { in fuse_lib_rename()
1711 fprintf(stderr, "RENAME %s -> %s\n", oldpath, newpath); in fuse_lib_rename()
[all …]
/third_party/e2fsprogs/misc/
Dfsck.c1264 char *oldpath = getenv("PATH"); in main() local
1289 if (oldpath) { in main()
1291 strlen (oldpath) + 1); in main()
1298 strcat (fsck_path, oldpath); in main()
Dmke2fs.c1555 char * oldpath = getenv("PATH"); in PRS() local
1586 if (oldpath) in PRS()
1587 pathlen += strlen(oldpath); in PRS()
1597 if (oldpath) { in PRS()
1599 strcat (newpath, oldpath); in PRS()
/third_party/typescript/src/harness/
DvfsUtil.ts546 public linkSync(oldpath: string, newpath: string) {
549 const { node } = this._walk(this._resolve(oldpath));
585 public renameSync(oldpath: string, newpath: string) {
588 …oldParentLinks, node, basename: oldBasename } = this._walk(this._resolve(oldpath), /*noFollow*/ tr…
601 …if (this.stringComparer(oldpath, newpath) !== 0 && this._getLinks(existingNode).size > 0) throw cr…
/third_party/python/Doc/library/
Dmodulefinder.rst37 analysis. *replace_paths* is a list of ``(oldpath, newpath)`` tuples that will
/third_party/e2fsprogs/e2fsck/
Dunix.c1130 char *oldpath = getenv("PATH"); in PRS() local
1134 if (oldpath) in PRS()
1135 len += strlen(oldpath); in PRS()
1142 if (oldpath) { in PRS()
1144 strcat(newpath, oldpath); in PRS()
/third_party/littlefs/
Dlfs.h468 int lfs_rename(lfs_t *lfs, const char *oldpath, const char *newpath);
/third_party/glib/glib/tests/
Dfileutils.c1260 const gchar *oldpath; in test_read_link() local
1269 oldpath = g_test_get_filename (G_TEST_DIST, "4096-random-bytes", NULL); in test_read_link()
1273 ret = symlink (oldpath, newpath); in test_read_link()
1277 g_assert_cmpstr (path, ==, oldpath); in test_read_link()
1288 path = g_file_read_link (oldpath, &error); in test_read_link()

12