Searched refs:newname (Results 1 - 25 of 93) sorted by relevance

1234

/freebsd-head/sbin/fsck_ffs/
H A Dutilities.c65 char *newname, *cp; local
70 newname = origname;
71 if (stat(newname, &stblock) < 0) {
72 cp = strrchr(newname, '/');
75 _PATH_DEV, newname);
76 newname = device;
80 if (stat(newname, &stblock) < 0) {
81 printf("Can't stat %s: %s\n", newname, strerror(errno));
87 return(newname);
102 newname
[all...]
H A Dpass2.c531 char newname[MAXPATHLEN + 1]; local
565 getpathname(newname, idesc->id_number, idesc->id_number);
566 if (strcmp(newname, "/") != 0)
567 strcat (newname, "/");
568 strcat(newname, idesc->id_dirp->d_name);
571 newname, oldname);
606 getpathname(newname, inp->i_number, inp->i_number);
608 newname);
/freebsd-head/tests/sys/cddl/zfs/tests/cli_root/zfs_rename/
H A Dzfs_rename_003_pos.ksh68 set -A newname "$fs@new-snap" "@new-snap" "new-snap"
74 while ((i < ${#newname[*]} )); do
75 log_must $ZFS rename $snap ${newname[$i]}
76 log_must datasetexists ${snap%%@*}@${newname[$i]##*@}
77 log_must $ZFS rename ${snap%%@*}@${newname[$i]##*@} $snap
/freebsd-head/sys/geom/vinum/
H A Dgeom_vinum_rename.c54 char *newname, *object, *name; local
65 newname = gctl_get_param(req, "newname", NULL);
66 if (newname == NULL) {
86 strlcpy(name, newname, GV_MAXVOLNAME);
96 strlcpy(name, newname, GV_MAXPLEXNAME);
106 strlcpy(name, newname, GV_MAXSDNAME);
116 strlcpy(name, newname, GV_MAXDRIVENAME);
126 gv_rename_drive(struct gv_softc *sc, struct gv_drive *d, char *newname, argument
133 if (gv_object_type(sc, newname) !
149 gv_rename_plex(struct gv_softc *sc, struct gv_plex *p, char *newname, int flags) argument
203 gv_rename_sd(struct gv_softc *sc, struct gv_sd *s, char *newname, int flags) argument
226 gv_rename_vol(struct gv_softc *sc, struct gv_volume *v, char *newname, int flags) argument
[all...]
H A Dgeom_vinum.c642 char *newname; local
905 newname = ev->arg2;
907 err = gv_rename_vol(sc, v, newname, flags);
911 newname, err);
912 g_free(newname);
931 newname = ev->arg2;
933 err = gv_rename_plex(sc, p, newname, flags);
937 newname, err);
938 g_free(newname);
944 newname
[all...]
/freebsd-head/contrib/tcsh/
H A Dtw.spell.c39 struct Strbuf guess = Strbuf_INIT, newname = Strbuf_INIT; local
46 cleanup_push(&newname, Strbuf_cleanup);
49 Strbuf_append1(&newname, *old++);
54 Strbuf_append1(&newname, *old++);
55 Strbuf_terminate(&newname);
57 retval = (StrQcmp(oldname->s, newname.s) != 0);
58 cleanup_ignore(&newname);
60 *oldname = newname; /* shove it back. */
65 Strbuf_append(&guess, newname.s); /* add current dir if any */
83 Strbuf_append(&newname, gues
[all...]
/freebsd-head/crypto/openssl/crypto/
H A Do_fopen.c84 char *newname = NULL; local
90 if ((newname = OPENSSL_malloc(strlen(filename) + 1)) == NULL) {
95 for (iterator = newname, lastchar = '\0';
107 filename = newname;
111 OPENSSL_free(newname);
/freebsd-head/usr.bin/compress/
H A Dcompress.c78 char *p, newname[MAXPATHLEN]; local
154 if (len > sizeof(newname) - 3) {
158 memmove(newname, *argv, len);
159 newname[len] = '.';
160 newname[len + 1] = 'Z';
161 newname[len + 2] = '\0';
162 compress(*argv, newname, bits);
172 if (len > sizeof(newname) - 3) {
176 memmove(newname, *argv, len);
177 newname[le
[all...]
/freebsd-head/contrib/gcc/config/arm/
H A Dpe.c107 char * newname;
122 newname = alloca (strlen (oldname) + 4);
123 sprintf (newname, "%ce.%s", ARM_PE_FLAG_CHAR, oldname);
125 /* We pass newname through get_identifier to ensure it has a unique
130 idp = get_identifier (newname);
143 char * newname;
189 newname = alloca (strlen (oldname) + 11);
190 sprintf (newname, "%ci.__imp_%s", ARM_PE_FLAG_CHAR, oldname);
192 /* We pass newname through get_identifier to ensure it has a unique
197 idp = get_identifier (newname);
106 char * newname; local
142 char * newname; local
[all...]
/freebsd-head/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dutil.c224 char *newname; local
226 newname = xmalloc(strlen(origname) + strlen(suffix) + 1);
227 (void) strcpy(newname, origname);
228 (void) strcat(newname, suffix);
229 return (newname);
/freebsd-head/contrib/gcc/
H A Dc-pragma.c412 /* #pragma redefine_extname oldname newname */
416 tree oldname, newname, decl, x; local
421 if (pragma_lex (&newname) != CPP_NAME)
447 if (strcmp (name, IDENTIFIER_POINTER (newname)))
452 change_decl_assembler_name (decl, newname);
460 add_to_renaming_pragma_list (oldname, newname);
465 add_to_renaming_pragma_list (tree oldname, tree newname) argument
470 if (TREE_VALUE (previous) != newname)
477 = tree_cons (oldname, newname, pending_redefine_extname);
548 tree newname local
581 char *newname = (char *) alloca (plen + ilen + 1); local
[all...]
/freebsd-head/cddl/contrib/opensolaris/cmd/zpool/
H A Dzpool_util.h49 nvlist_t *split_mirror_vdev(zpool_handle_t *zhp, char *newname,
/freebsd-head/contrib/ntp/lib/isc/win32/
H A Dfile.c146 isc_file_safemovefile(const char *oldname, const char *newname) { argument
164 if (stat(newname, &sbuf) == 0) {
166 strcpy(buf, newname);
172 _chmod(newname, _S_IREAD | _S_IWRITE);
174 filestatus = MoveFile(newname, buf);
180 filestatus = MoveFile(oldname, newname);
187 filestatus = MoveFile(buf, newname);
379 isc_file_rename(const char *oldname, const char *newname) { argument
383 REQUIRE(newname != NULL);
385 r = isc_file_safemovefile(oldname, newname);
[all...]
/freebsd-head/sys/dev/ofw/
H A Dopenfirmio.c118 char newname[32]; local
216 ok = OF_nextprop(node, name, newname, sizeof(newname));
225 len = strlen(newname) + 1;
230 error = copyout(newname, of->of_buf, len);
/freebsd-head/contrib/gcc/config/i386/
H A Dwinnt.c206 char *newname;
226 newname = alloca (strlen (DLL_EXPORT_PREFIX) + strlen (oldname) + 1);
227 sprintf (newname, "%s%s", DLL_EXPORT_PREFIX, oldname);
229 /* We pass newname through get_identifier to ensure it has a unique
233 idp = get_identifier (newname);
246 char *newname;
271 newname = alloca (strlen (DLL_IMPORT_PREFIX) + strlen (oldname) + 1);
272 sprintf (newname, "%s%s", DLL_IMPORT_PREFIX, oldname);
274 /* We pass newname through get_identifier to ensure it has a unique
278 idp = get_identifier (newname);
205 char *newname; local
245 char *newname; local
[all...]
/freebsd-head/contrib/ntp/lib/isc/include/isc/
H A Dfile.h169 isc_file_rename(const char *oldname, const char *newname);
171 * \brief Rename the file 'oldname' to 'newname'.
/freebsd-head/contrib/amd/scripts/
H A Dexpn.1295 ($newhost, $newaddr, $newname) = &parse($addr,$server,$oldname, $#expansion == 0);
296 print "($newhost, $newaddr, $newname) = &parse($addr, $server, $oldname)\n" if $debug;
301 push(@toFinal,$newaddr,$server,$newname);
303 &verbose(&final($newaddr,$server,$newname));
320 push(@toFinal,$newaddr,$newmxhost,$newname);
322 &verbose(&final($newaddr,$newmxhost,$newname));
328 push(@toExpn,$newmxhost,$newaddr,$newname,$level{"$u *** $server"});
330 &verbose(&expn($newmxhost,$newaddr,$newname,$level{"$u *** $server"}));
393 &verbose(&final($u,$server,$newname));
652 local($newhost, $newaddr, $newname,
[all...]
H A Dexpn.in294 ($newhost, $newaddr, $newname) = &parse($addr,$server,$oldname, $#expansion == 0);
295 print "($newhost, $newaddr, $newname) = &parse($addr, $server, $oldname)\n" if $debug;
300 push(@toFinal,$newaddr,$server,$newname);
302 &verbose(&final($newaddr,$server,$newname));
319 push(@toFinal,$newaddr,$newmxhost,$newname);
321 &verbose(&final($newaddr,$newmxhost,$newname));
327 push(@toExpn,$newmxhost,$newaddr,$newname,$level{"$u *** $server"});
329 &verbose(&expn($newmxhost,$newaddr,$newname,$level{"$u *** $server"}));
392 &verbose(&final($u,$server,$newname));
651 local($newhost, $newaddr, $newname,
[all...]
/freebsd-head/usr.sbin/makefs/
H A Dcd9660.c1248 char newname[9]; local
1278 snprintf(newname, sizeof(newname), "%08i",
1305 strncpy(dir->isoDirRecord->name, newname, 8);
1605 char *newname, int is_file)
1621 *newname++ = '_';
1625 *newname++ = '.';
1639 *newname++ = toupper((unsigned char)*oldname);
1642 *newname++ = *oldname;
1644 *newname
1604 cd9660_level1_convert_filename(iso9660_disk *diskStructure, const char *oldname, char *newname, int is_file) argument
1664 cd9660_level2_convert_filename(iso9660_disk *diskStructure, const char *oldname, char *newname, int is_file) argument
1748 cd9660_convert_filename(iso9660_disk *diskStructure, const char *oldname, char *newname, int is_file) argument
[all...]
/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dzvol.h76 extern void zvol_rename_minors(const char *oldname, const char *newname);
/freebsd-head/contrib/sendmail/contrib/
H A Dexpn.pl285 ($newhost, $newaddr, $newname) = &parse($addr,$server,$oldname, $#expansion == 0);
286 print "($newhost, $newaddr, $newname) = &parse($addr, $server, $oldname)\n" if $debug;
291 push(@toFinal,$newaddr,$server,$newname);
293 &verbose(&final($newaddr,$server,$newname));
310 push(@toFinal,$newaddr,$newmxhost,$newname);
312 &verbose(&final($newaddr,$newmxhost,$newname));
318 push(@toExpn,$newmxhost,$newaddr,$newname,$level{"$u *** $server"});
320 &verbose(&expn($newmxhost,$newaddr,$newname,$level{"$u *** $server"}));
383 &verbose(&final($u,$server,$newname));
642 local($newhost, $newaddr, $newname,
[all...]
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dport-linux.c180 ssh_selinux_change_context(const char *newname) argument
207 newlen = strlen(oldctx) + strlen(newname) + 1;
211 strlcpy(newctx + len, newname, newlen - len);
/freebsd-head/contrib/elftoolchain/elfcopy/
H A Delfcopy.h41 const char *newname; member in struct:symop
71 const char *newname; member in struct:sec_action
120 char *newname; /* new section name */ member in struct:section
/freebsd-head/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_syscalls.inc1182 PRE_SYSCALL(link)(const void *oldname, const void *newname) {
1185 if (newname)
1186 PRE_READ(newname, __sanitizer::internal_strlen((const char *)newname) + 1);
1189 POST_SYSCALL(link)(long res, const void *oldname, const void *newname) {}
1207 PRE_SYSCALL(rename)(const void *oldname, const void *newname) {
1210 if (newname)
1211 PRE_READ(newname, __sanitizer::internal_strlen((const char *)newname) + 1);
1214 POST_SYSCALL(rename)(long res, const void *oldname, const void *newname) {}
[all...]
/freebsd-head/contrib/openbsm/libauditd/
H A Dauditd_lib.c1111 char newname[MAXPATHLEN]; local
1124 strlcpy(newname, recoveredname, sizeof(newname));
1126 if ((ptr = strstr(newname, NOT_TERMINATED)) != NULL) {
1128 if (auditd_rename(recoveredname, newname) != 0)
1133 path = newname;
1245 char newname[MAXPATHLEN]; local
1282 strlcpy(newname, oldname, sizeof(newname));
1284 if ((ptr = strstr(newname, NOT_TERMINATE
[all...]

Completed in 376 milliseconds

1234