Home
last modified time | relevance | path

Searched refs:oldname (Results 1 – 25 of 33) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/stdio/
Drename.c26 const char *oldname = "oldfile.txt"; in rename_0100() local
28 int fd = open(oldname, O_RDONLY | O_CREAT, TEST_MODE); in rename_0100()
32 int ret = rename(oldname, newname); in rename_0100()
34 fd = open(oldname, O_RDONLY); in rename_0100()
49 const char *oldname = "oldfile.txt"; in rename_0200() local
51 int ret = rename(oldname, newname); in rename_0200()
62 const char *oldname = "oldfile.txt"; in rename_0300() local
64 int fd_old = open(oldname, O_RDWR | O_CREAT, TEST_MODE); in rename_0300()
80 int result = rename(oldname, newname); in rename_0300()
/third_party/littlefs/scripts/
Dprefix.py36 for oldname in files:
38 newname, namecount = subn(from_prefix, to_prefix, oldname)
40 subprocess.check_call(['git', 'mv', oldname, newname])
56 '%s -> %s' % (oldname, newname) if namecount else oldname,
/third_party/toybox/lib/
Dhelp.c11 #define OLDTOY(name,oldname,flags) "\xff" #oldname "\0" argument
13 #define OLDTOY(name, oldname, flags) HELP_##oldname "\0" argument
/third_party/python/Tools/scripts/
Dlinktree.py59 oldname = os.path.join(old, name)
62 if debug > 1: print(oldname, newname, linkname)
63 if os.path.isdir(oldname) and \
64 not os.path.islink(oldname):
75 linknames(oldname, newname, linkname)
/third_party/toybox/
Dmain.c20 #define OLDTOY(name, oldname, flags) \ argument
21 {#name, oldname##_main, OPTSTR_##oldname, flags},
68 #define OLDTOY(name, oldname, flags) OPTSTR_##oldname || argument
Dtoys.h75 #define OLDTOY(name, oldname, flags) void oldname##_main(void); argument
/third_party/toybox/porting/liteos_a/
Dmain.c20 #define OLDTOY(name, oldname, flags) \ argument
21 {#name, oldname##_main, OPTSTR_##oldname, flags},
68 #define OLDTOY(name, oldname, flags) OPTSTR_##oldname || argument
Dtoys.h78 #define OLDTOY(name, oldname, flags) void oldname##_main(void); argument
/third_party/toybox/toys/posix/
Dpatch.c289 char *oldname = NULL, *newname = NULL; in patch_main() local
341 char *s, **name = &oldname; in patch_main()
391 name = reverse ? oldname : newname; in patch_main()
397 name = reverse ? newname : oldname; in patch_main()
417 if ((!strcmp(oldname, "/dev/null") || !oldsum) && access(name, F_OK)) in patch_main()
446 free(oldname); in patch_main()
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
Dsyscalls.rs1020 pub(crate) fn rename(oldname: &CStr, newname: &CStr) -> io::Result<()> { in rename()
1026 oldname, in rename()
1037 oldname, in rename()
1047 oldname: &CStr, in renameat()
1056 oldname, in renameat()
1067 oldname, in renameat()
1077 oldname: &CStr, in renameat2()
1086 oldname, in renameat2()
1124 pub(crate) fn link(oldname: &CStr, newname: &CStr) -> io::Result<()> { in link()
1129 oldname, in link()
[all …]
/third_party/NuttX/fs/vfs/
Dfs_rename.c125 char *oldname = NULL; in do_rename() local
145 oldname = strrchr(fulloldpath, '/') + 1; in do_rename()
188 ret = old_vnode->vop->Rename(old_vnode, new_parent_vnode, oldname, newname); in do_rename()
/third_party/python/Doc/library/
Dmodulefinder.rst24 .. function:: ReplacePackage(oldname, newname)
26 Allows specifying that the module named *oldname* is in fact the package named
/third_party/python/Python/
Dimport.c846 update_code_filenames(PyCodeObject *co, PyObject *oldname, PyObject *newname) in update_code_filenames() argument
851 if (PyUnicode_Compare(co->co_filename, oldname)) in update_code_filenames()
863 oldname, newname); in update_code_filenames()
870 PyObject *oldname; in update_compiled_module() local
875 oldname = co->co_filename; in update_compiled_module()
876 Py_INCREF(oldname); in update_compiled_module()
877 update_code_filenames(co, oldname, newname); in update_compiled_module()
878 Py_DECREF(oldname); in update_compiled_module()
/third_party/toybox/scripts/
Dinstall.c11 #define OLDTOY(name, oldname, flags) {#name, flags}, argument
/third_party/NuttX/fs/tmpfs/
Dfs_tmpfs.c129 int tmpfs_rename(struct Vnode *oldVnode, struct Vnode *newParent, const char *oldname, const char *…
2190 int tmpfs_rename(struct Vnode *oldVnode, struct Vnode *newParent, const char *oldname, const char *… in tmpfs_rename() argument
2206 oldrelpath_len = strlen(oldname); in tmpfs_rename()
2210 if (!cmp_namelen || ((!strncmp(oldname, newname, cmp_namelen)) && in tmpfs_rename()
2211 (oldname[cmp_namelen] == '/' || in tmpfs_rename()
/third_party/ntfs-3g/libfuse-lite/
Dfuse.c590 static int rename_node(struct fuse *f, fuse_ino_t olddir, const char *oldname, in rename_node() argument
598 node = lookup_node(f, olddir, oldname); in rename_node()
1069 static char *hidden_name(struct fuse *f, fuse_ino_t dir, const char *oldname, in hidden_name() argument
1081 node = lookup_node(f, dir, oldname); in hidden_name()
1109 fuse_ino_t dir, const char *oldname) in hide_node() argument
1115 newpath = hidden_name(f, dir, oldname, newname, sizeof(newname)); in hide_node()
1119 err = rename_node(f, dir, oldname, dir, newname, 1); in hide_node()
1695 const char *oldname, fuse_ino_t newdir, in fuse_lib_rename() argument
1705 oldpath = get_path_name(f, olddir, oldname); in fuse_lib_rename()
1719 err = rename_node(f, olddir, oldname, newdir, newname, 0); in fuse_lib_rename()
Dfuse_lowlevel.c635 const char *oldname = PARAM(arg); in do_rename() local
636 const char *newname = oldname + strlen(oldname) + 1; in do_rename()
639 req->f->op.rename(req, nodeid, oldname, arg->newdir, newname); in do_rename()
/third_party/libfuse/lib/
Dfuse.c1419 static int rename_node(struct fuse *f, fuse_ino_t olddir, const char *oldname, in rename_node() argument
1427 node = lookup_node(f, olddir, oldname); in rename_node()
1455 static int exchange_node(struct fuse *f, fuse_ino_t olddir, const char *oldname, in exchange_node() argument
1463 oldnode = lookup_node(f, olddir, oldname); in exchange_node()
1477 if (hash_name(f, newnode, olddir, oldname) == -1) in exchange_node()
2367 static char *hidden_name(struct fuse *f, fuse_ino_t dir, const char *oldname, in hidden_name() argument
2379 node = lookup_node(f, dir, oldname); in hidden_name()
2408 fuse_ino_t dir, const char *oldname) in hide_node() argument
2414 newpath = hidden_name(f, dir, oldname, newname, sizeof(newname)); in hide_node()
2418 err = rename_node(f, dir, oldname, dir, newname, 1); in hide_node()
[all …]
Dfuse_lowlevel.c1290 char *oldname = PARAM(arg); local
1291 char *newname = oldname + strlen(oldname) + 1;
1294 req->se->op.rename(req, nodeid, oldname, arg->newdir, newname,
1303 char *oldname = PARAM(arg); local
1304 char *newname = oldname + strlen(oldname) + 1;
1307 req->se->op.rename(req, nodeid, oldname, arg->newdir, newname,
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
Dreflow.py579 def apiMatch(oldname, newname): argument
585 return oldname.rstrip(upper) == newname.rstrip(upper)
/third_party/python/Lib/
Dmodulefinder.py49 def ReplacePackage(oldname, newname): argument
50 replacePackageMap[oldname] = newname
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/
DUCharacterTest.java1044 String oldname[] = {"", "", "", in TestNames() local
1079 if ((str == null && oldname[i].length() > 0) || in TestNames()
1080 (str != null && !str.equals(oldname[i]))) in TestNames()
1083 oldname[i]); in TestNames()
1106 uc = UCharacter.getCharFromName1_0(oldname[i]); in TestNames()
1107 if (uc != c[i] && oldname[i].length() != 0) in TestNames()
1109 errln("FAIL " + oldname[i] + " expected 1.0 character \\u" + in TestNames()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUCharacterTest.java1041 String oldname[] = {"", "", "", in TestNames() local
1076 if ((str == null && oldname[i].length() > 0) || in TestNames()
1077 (str != null && !str.equals(oldname[i]))) in TestNames()
1080 oldname[i]); in TestNames()
1103 uc = UCharacter.getCharFromName1_0(oldname[i]); in TestNames()
1104 if (uc != c[i] && oldname[i].length() != 0) in TestNames()
1106 errln("FAIL " + oldname[i] + " expected 1.0 character \\u" + in TestNames()
/third_party/ntfs-3g/libntfs-3g/
Ddir.c2683 ntfschar oldname[MAX_DOS_NAME_LENGTH]; in ntfs_set_ntfs_dos_name() local
2714 oldlen = get_dos_name(ni, dnum, oldname); in ntfs_set_ntfs_dos_name()
2724 && !memcmp(shortname,oldname, in ntfs_set_ntfs_dos_name()
2732 oldname, oldlen, TRUE); in ntfs_set_ntfs_dos_name()
/third_party/musl/Benchmark/musl/
Dlibc_stdio.cpp602 char oldname[32] = "/data/data/test_rename"; in Bm_function_Rename() local
605 benchmark::DoNotOptimize(rename(oldname, newname)); in Bm_function_Rename()

12