Home
last modified time | relevance | path

Searched refs:oldname (Results 1 – 25 of 28) 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); 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); 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/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/toybox/scripts/
Dinstall.c11 #define OLDTOY(name, oldname, flags) {#name, flags}, argument
/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/iptables/include/libiptc/
Dlibip6tc.h118 int ip6tc_rename_chain(const xt_chainlabel oldname,
Dlibiptc.h123 int iptc_rename_chain(const xt_chainlabel oldname,
/third_party/eudev/src/udev/
Dudev-event.c811 static int rename_netif_dev_fromname_toname(struct udev_device *dev,const char *oldname,const char … in rename_netif_dev_fromname_toname() argument
816 log_debug("changing net interface name from '%s' to '%s'\n",oldname,name); in rename_netif_dev_fromname_toname()
823 strscpy(ifr.ifr_name, IFNAMSIZ, oldname); in rename_netif_dev_fromname_toname()
864 log_debug("renamed network interface '%s' to '%s'", oldname, name); in rename_netif_dev_fromname_toname()
/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/python/Lib/
Dmodulefinder.py49 def ReplacePackage(oldname, newname): argument
50 replacePackageMap[oldname] = newname
/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/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/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/flatbuffers/include/flatbuffers/
Didl.h217 void Move(const std::string &oldname, const std::string &newname) { in Move() argument
218 auto it = dict.find(oldname); in Move()
/third_party/iptables/libiptc/
Dlibiptc.c2355 int TC_RENAME_CHAIN(const IPT_CHAINLABEL oldname, in TC_RENAME_CHAIN() argument
2373 if (!(c = iptcc_find_label(oldname, handle)) in TC_RENAME_CHAIN()
2374 || TC_BUILTIN(oldname, handle)) { in TC_RENAME_CHAIN()

12