Home
last modified time | relevance | path

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

123

/netbsd-src/external/gpl2/dtc/dist/tests/
H A Dset_name.c22 const char *getname, *oldname; in check_set_name() local
25 oldname = strrchr(path, '/'); in check_set_name()
26 if (!oldname) in check_set_name()
28 oldname += 1; in check_set_name()
40 if (strcmp(getname, oldname) != 0) in check_set_name()
42 path, getname, oldname); in check_set_name()
/netbsd-src/external/apache2/llvm/dist/libcxx/src/filesystem/
H A Dposix_compat.h234 int symlink_file_dir(const wchar_t *oldname, const wchar_t *newname, in symlink_file_dir() argument
236 path dest(oldname); in symlink_file_dir()
238 oldname = dest.c_str(); in symlink_file_dir()
240 if (CreateSymbolicLinkW(newname, oldname, in symlink_file_dir()
246 if (CreateSymbolicLinkW(newname, oldname, flags)) in symlink_file_dir()
251 int symlink_file(const wchar_t *oldname, const wchar_t *newname) { in symlink_file() argument
252 return symlink_file_dir(oldname, newname, false); in symlink_file()
255 int symlink_dir(const wchar_t *oldname, const wchar_t *newname) { in symlink_dir() argument
256 return symlink_file_dir(oldname, newname, true); in symlink_dir()
259 int link(const wchar_t *oldname, const wchar_t *newname) { in link() argument
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/roken/
H A Drename.c39 int rk_rename(const char * oldname, const char * newname) in rk_rename() argument
43 ret = rename(oldname, newname); in rk_rename()
47 ret = rename(oldname, newname); in rk_rename()
/netbsd-src/usr.sbin/makefs/
H A Dcd9660.c1622 cd9660_level1_convert_filename(iso9660_disk *diskStructure, const char *oldname, in cd9660_level1_convert_filename() argument
1635 while (*oldname != '\0' && extlen < 3) { in cd9660_level1_convert_filename()
1637 if (*oldname == '.') { in cd9660_level1_convert_filename()
1649 *oldname == ',' && strlen(oldname) == 4) in cd9660_level1_convert_filename()
1656 if (islower((unsigned char)*oldname)) in cd9660_level1_convert_filename()
1657 *newname++ = toupper((unsigned char)*oldname); in cd9660_level1_convert_filename()
1658 else if (isupper((unsigned char)*oldname) in cd9660_level1_convert_filename()
1659 || isdigit((unsigned char)*oldname)) in cd9660_level1_convert_filename()
1660 *newname++ = *oldname; in cd9660_level1_convert_filename()
1669 oldname++; in cd9660_level1_convert_filename()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/c-family/
H A Dc-pragma.c482 tree oldname; member
495 tree oldname, newname, decls, x; in handle_pragma_redefine_extname() local
499 if (pragma_lex (&oldname) != CPP_NAME) in handle_pragma_redefine_extname()
508 for (decls = c_linkage_bindings (oldname); in handle_pragma_redefine_extname()
547 add_to_renaming_pragma_list (oldname, newname); in handle_pragma_redefine_extname()
552 add_to_renaming_pragma_list (tree oldname, tree newname) in add_to_renaming_pragma_list() argument
558 if (oldname == p->oldname) in add_to_renaming_pragma_list()
566 pending_redefinition e = {oldname, newname}; in add_to_renaming_pragma_list()
593 const char *oldname = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)); in maybe_apply_renaming_pragma() local
594 oldname = targetm.strip_name_encoding (oldname); in maybe_apply_renaming_pragma()
[all …]
/netbsd-src/external/bsd/tmux/dist/
H A Dpaste.c217 paste_rename(const char *oldname, const char *newname, char **cause) in paste_rename() argument
224 if (oldname == NULL || *oldname == '\0') { in paste_rename()
235 pb = paste_get_name(oldname); in paste_rename()
238 xasprintf(cause, "no buffer %s", oldname); in paste_rename()
257 notify_paste_buffer(oldname, 1); in paste_rename()
/netbsd-src/external/gpl3/gcc/dist/gcc/c-family/
H A Dc-pragma.cc491 tree oldname; member
504 tree oldname, newname, decls, x; in handle_pragma_redefine_extname() local
508 if (pragma_lex (&oldname) != CPP_NAME) in handle_pragma_redefine_extname()
517 for (decls = c_linkage_bindings (oldname); in handle_pragma_redefine_extname()
556 add_to_renaming_pragma_list (oldname, newname); in handle_pragma_redefine_extname()
561 add_to_renaming_pragma_list (tree oldname, tree newname) in add_to_renaming_pragma_list() argument
567 if (oldname == p->oldname) in add_to_renaming_pragma_list()
575 pending_redefinition e = {oldname, newname}; in add_to_renaming_pragma_list()
602 const char *oldname = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)); in maybe_apply_renaming_pragma() local
603 oldname = targetm.strip_name_encoding (oldname); in maybe_apply_renaming_pragma()
[all …]
/netbsd-src/external/bsd/libbind/dist/isc/
H A Dmovefile.c32 isc_movefile(const char *oldname, const char *newname) { in isc_movefile() argument
33 return (rename(oldname, newname)); in isc_movefile()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Drename_s.c48 krb5_principal oldname; in kadm5_s_rename_principal() local
67 oldname = ent.entry.principal; in kadm5_s_rename_principal()
107 ent.entry.principal = oldname; /* Unborrow target */ in kadm5_s_rename_principal()
/netbsd-src/external/gpl2/texinfo/dist/makeinfo/
H A Dhtml.c683 char *oldname = xstrdup (filename); in fix_filename() local
689 if (cr_or_whitespace (oldname[i])) in fix_filename()
691 else if (URL_SAFE_CHAR (oldname[i])) in fix_filename()
692 strncat (filename, (char *) oldname + i, 1); in fix_filename()
696 sprintf (hexchar, "_00%x", (unsigned char) oldname[i]); in fix_filename()
706 free (oldname); in fix_filename()
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/common/
H A Dfile.d419 auto oldname = name; in FileMapping() local
421 scope(exit) free(cast(void*) oldname); in FileMapping()
428 if (.rename(oldname, filename) != 0) in FileMapping()
430 … fprintf(stderr, "rename(\"%s\", \"%s\") failed: %s\n", oldname, filename, strerror(errno)); in FileMapping()
437 auto r = oldname.asDString.extendedPathThen!( in FileMapping()
442 … fprintf(stderr, "MoveFileExW(\"%s\", \"%s\") failed: %d\n", oldname, filename, GetLastError()); in FileMapping()
/netbsd-src/crypto/external/bsd/heimdal/dist/kcm/
H A Dprotocol.c939 char *oldname, *newname; in kcm_op_move_cache() local
941 ret = krb5_ret_stringz(request, &oldname); in kcm_op_move_cache()
945 KCM_LOG_REQUEST_NAME(context, client, opcode, oldname); in kcm_op_move_cache()
949 free(oldname); in kcm_op_move_cache()
954 if (strcmp(oldname, newname) == 0) { in kcm_op_move_cache()
955 free(oldname); in kcm_op_move_cache()
960 ret = kcm_ccache_resolve_client(context, client, opcode, oldname, &oldid); in kcm_op_move_cache()
962 free(oldname); in kcm_op_move_cache()
974 free(oldname); in kcm_op_move_cache()
1005 ret = kcm_ccache_destroy_client(context, client, oldname); in kcm_op_move_cache()
[all …]
/netbsd-src/sbin/restore/
H A Dutilities.c91 char oldname[MAXPATHLEN]; in mktempname() local
96 (void) strcpy(oldname, myname(ep)); in mktempname()
100 renameit(oldname, myname(ep)); in mktempname()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/include/sanitizer/
H A Dlinux_syscall_hooks.h684 #define __sanitizer_syscall_pre_link(oldname, newname) \ argument
685 __sanitizer_syscall_pre_impl_link((long)(oldname), (long)(newname))
686 #define __sanitizer_syscall_post_link(res, oldname, newname) \ argument
687 __sanitizer_syscall_post_impl_link(res, (long)(oldname), (long)(newname))
696 #define __sanitizer_syscall_pre_rename(oldname, newname) \ argument
697 __sanitizer_syscall_pre_impl_rename((long)(oldname), (long)(newname))
698 #define __sanitizer_syscall_post_rename(res, oldname, newname) \ argument
699 __sanitizer_syscall_post_impl_rename(res, (long)(oldname), (long)(newname))
1582 #define __sanitizer_syscall_pre_symlinkat(oldname, newdfd, newname) \ argument
1583 __sanitizer_syscall_pre_impl_symlinkat((long)(oldname), (long)(newdfd), \
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/include/sanitizer/
H A Dlinux_syscall_hooks.h686 #define __sanitizer_syscall_pre_link(oldname, newname) \ argument
687 __sanitizer_syscall_pre_impl_link((long)(oldname), (long)(newname))
688 #define __sanitizer_syscall_post_link(res, oldname, newname) \ argument
689 __sanitizer_syscall_post_impl_link(res, (long)(oldname), (long)(newname))
698 #define __sanitizer_syscall_pre_rename(oldname, newname) \ argument
699 __sanitizer_syscall_pre_impl_rename((long)(oldname), (long)(newname))
700 #define __sanitizer_syscall_post_rename(res, oldname, newname) \ argument
701 __sanitizer_syscall_post_impl_rename(res, (long)(oldname), (long)(newname))
1584 #define __sanitizer_syscall_pre_symlinkat(oldname, newdfd, newname) \ argument
1585 __sanitizer_syscall_pre_impl_symlinkat((long)(oldname), (long)(newdfd), \
[all …]
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/include/sanitizer/
H A Dlinux_syscall_hooks.h685 #define __sanitizer_syscall_pre_link(oldname, newname) \ argument
686 __sanitizer_syscall_pre_impl_link((long)(oldname), (long)(newname))
687 #define __sanitizer_syscall_post_link(res, oldname, newname) \ argument
688 __sanitizer_syscall_post_impl_link(res, (long)(oldname), (long)(newname))
697 #define __sanitizer_syscall_pre_rename(oldname, newname) \ argument
698 __sanitizer_syscall_pre_impl_rename((long)(oldname), (long)(newname))
699 #define __sanitizer_syscall_post_rename(res, oldname, newname) \ argument
700 __sanitizer_syscall_post_impl_rename(res, (long)(oldname), (long)(newname))
1592 #define __sanitizer_syscall_pre_symlinkat(oldname, newdfd, newname) \ argument
1593 __sanitizer_syscall_pre_impl_symlinkat((long)(oldname), (long)(newdfd), \
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/mcore/
H A Dmcore.c2900 const char * oldname; in mcore_mark_dllexport() local
2910 oldname = XSTR (rtlname, 0); in mcore_mark_dllexport()
2912 if (mcore_dllexport_name_p (oldname)) in mcore_mark_dllexport()
2915 newname = XALLOCAVEC (char, strlen (oldname) + 4); in mcore_mark_dllexport()
2916 sprintf (newname, "@e.%s", oldname); in mcore_mark_dllexport()
2934 const char * oldname; in mcore_mark_dllimport() local
2945 oldname = XSTR (rtlname, 0); in mcore_mark_dllimport()
2947 gcc_assert (!mcore_dllexport_name_p (oldname)); in mcore_mark_dllimport()
2948 if (mcore_dllimport_name_p (oldname)) in mcore_mark_dllimport()
2973 newname = XALLOCAVEC (char, strlen (oldname) + 11); in mcore_mark_dllimport()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/config/mcore/
H A Dmcore.cc2900 const char * oldname; in mcore_mark_dllexport() local
2910 oldname = XSTR (rtlname, 0); in mcore_mark_dllexport()
2912 if (mcore_dllexport_name_p (oldname)) in mcore_mark_dllexport()
2915 newname = XALLOCAVEC (char, strlen (oldname) + 4); in mcore_mark_dllexport()
2916 sprintf (newname, "@e.%s", oldname); in mcore_mark_dllexport()
2934 const char * oldname; in mcore_mark_dllimport() local
2945 oldname = XSTR (rtlname, 0); in mcore_mark_dllimport()
2947 gcc_assert (!mcore_dllexport_name_p (oldname)); in mcore_mark_dllimport()
2948 if (mcore_dllimport_name_p (oldname)) in mcore_mark_dllimport()
2973 newname = XALLOCAVEC (char, strlen (oldname) + 11); in mcore_mark_dllimport()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/opcodes/
H A Dz8kgen.c976 char *oldname = ""; in gas() local
1335 if (strcmp (oldname, new_op->name) != 0) in gas()
1338 oldname = new_op->name; in gas()
/netbsd-src/external/gpl3/binutils/dist/opcodes/
H A Dz8kgen.c976 char *oldname = ""; in gas() local
1335 if (strcmp (oldname, new_op->name) != 0) in gas()
1338 oldname = new_op->name; in gas()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_common_syscalls.inc1183 PRE_SYSCALL(link)(const void *oldname, const void *newname) {
1184 if (oldname)
1185 PRE_READ(oldname, __sanitizer::internal_strlen((const char *)oldname) + 1);
1190 POST_SYSCALL(link)(long res, const void *oldname, const void *newname) {}
1208 PRE_SYSCALL(rename)(const void *oldname, const void *newname) {
1209 if (oldname)
1210 PRE_READ(oldname, __sanitizer::internal_strlen((const char *)oldname) + 1);
1215 POST_SYSCALL(rename)(long res, const void *oldname, const void *newname) {}
2498 PRE_SYSCALL(symlinkat)(const void *oldname, long newdfd, const void *newname) {
2499 if (oldname)
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_common_syscalls.inc1181 PRE_SYSCALL(link)(const void *oldname, const void *newname) {
1182 if (oldname)
1183 PRE_READ(oldname, __sanitizer::internal_strlen((const char *)oldname) + 1);
1188 POST_SYSCALL(link)(long res, const void *oldname, const void *newname) {}
1206 PRE_SYSCALL(rename)(const void *oldname, const void *newname) {
1207 if (oldname)
1208 PRE_READ(oldname, __sanitizer::internal_strlen((const char *)oldname) + 1);
1213 POST_SYSCALL(rename)(long res, const void *oldname, const void *newname) {}
2496 PRE_SYSCALL(symlinkat)(const void *oldname, long newdfd, const void *newname) {
2497 if (oldname)
[all …]
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_common_syscalls.inc1274 PRE_SYSCALL(link)(const void *oldname, const void *newname) {
1275 if (oldname)
1276 PRE_READ(oldname, __sanitizer::internal_strlen((const char *)oldname) + 1);
1281 POST_SYSCALL(link)(long res, const void *oldname, const void *newname) {}
1300 PRE_SYSCALL(rename)(const void *oldname, const void *newname) {
1301 if (oldname)
1302 PRE_READ(oldname, __sanitizer::internal_strlen((const char *)oldname) + 1);
1307 POST_SYSCALL(rename)(long res, const void *oldname, const void *newname) {}
2732 PRE_SYSCALL(symlinkat)(const void *oldname, long newdfd, const void *newname) {
2733 if (oldname)
[all …]
/netbsd-src/sys/fs/msdosfs/
H A Dmsdosfs_rename.c379 unsigned char toname[12], oldname[12]; in msdosfs_gro_rename() local
466 memcpy(oldname, VTODE(fvp)->de_Name, 11); in msdosfs_gro_rename()
472 memcpy(VTODE(fvp)->de_Name, oldname, 11); in msdosfs_gro_rename()
490 memcpy(VTODE(fvp)->de_Name, oldname, 11); in msdosfs_gro_rename()
/netbsd-src/external/mpl/bind/dist/lib/isc/
H A Dfile.c402 isc_file_rename(const char *oldname, const char *newname) { in isc_file_bopenuniquemode()
405 REQUIRE(oldname != NULL);
408 r = rename(oldname, newname); in isc_file_remove()
420 isc_file_rename(const char * oldname,const char * newname) isc_file_rename() argument

123