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

1234

/freebsd-head/sbin/fsck_ffs/
H A Dutilities.c61 char *newname, *cp; local
66 newname = origname;
67 if (stat(newname, &stblock) < 0) {
68 cp = strrchr(newname, '/');
71 _PATH_DEV, newname);
72 newname = device;
76 if (stat(newname, &stblock) < 0) {
77 printf("Can't stat %s: %s\n", newname, strerror(errno));
83 return(newname);
98 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/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_003_pos.ksh54 set -A newname "$fs@new-snap" "@new-snap" "new-snap"
60 while ((i < ${#newname[*]} )); do
61 log_must zfs rename $snap ${newname[$i]}
62 log_must datasetexists ${snap%%@*}@${newname[$i]##*@}
63 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.c639 char *newname; local
902 newname = ev->arg2;
904 err = gv_rename_vol(sc, v, newname, flags);
908 newname, err);
909 g_free(newname);
928 newname = ev->arg2;
930 err = gv_rename_plex(sc, p, newname, flags);
934 newname, err);
935 g_free(newname);
941 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/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dutil.c225 char *newname; local
227 newname = xmalloc(strlen(origname) + strlen(suffix) + 1);
228 (void) strcpy(newname, origname);
229 (void) strcat(newname, suffix);
230 return (newname);
/freebsd-head/contrib/lib9p/backend/
H A Dfs.c1118 char newname[MAXPATHLEN]; local
1131 error = fs_buildname(dir, name, newname, sizeof(newname));
1136 name = strdup(newname);
1152 fd = openat(file->ff_dirfd, newname, flags | O_CREAT | O_EXCL, perm);
1165 /* unlink(newname); ? */
1308 char newname[MAXPATHLEN]; local
1312 error = fs_buildname(dir, name, newname, sizeof(newname));
1323 if (mkdirat(ff->ff_dirfd, newname, per
1369 char newname[MAXPATHLEN]; local
1428 char newname[MAXPATHLEN]; local
1472 char newname[MAXPATHLEN]; local
1582 char newname[MAXPATHLEN]; local
2086 char newname[MAXPATHLEN]; local
2297 char olddir[MAXPATHLEN], newname[MAXPATHLEN]; local
2767 char newname[MAXPATHLEN]; local
2909 char newname[MAXPATHLEN]; local
[all...]
/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
215 ok = OF_nextprop(node, name, newname, sizeof(newname));
224 len = strlen(newname) + 1;
229 error = copyout(newname, of->of_buf, len);
/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/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/contrib/openzfs/cmd/zpool/
H A Dzpool_util.h60 nvlist_t *split_mirror_vdev(zpool_handle_t *zhp, char *newname,
/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
H A Dsymbols.c393 char *newname; local
558 name = sp->newname;
561 newname = NULL;
564 if ((newname = malloc(namelen)) == NULL)
566 snprintf(newname, namelen, "%s%s", ecp->prefix_sym,
568 name = newname;
581 if (newname != NULL)
582 free(newname);
1140 add_to_symop_list(struct elfcopy *ecp, const char *name, const char *newname, argument
1156 s->newname
[all...]
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dport-linux.c181 ssh_selinux_change_context(const char *newname) argument
208 newlen = strlen(oldctx) + strlen(newname) + 1;
212 strlcpy(newctx + len, newname, newlen - len);
/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/contrib/llvm-project/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...]
/freebsd-head/crypto/heimdal/lib/krb5/
H A Dfcache.c801 char *newname = NULL; local
823 ret = asprintf(&newname, "FILE:%s.XXXXXX", FILENAME(id));
824 if (ret < 0 || newname == NULL) {
829 fd = mkstemp(&newname[5]);
837 ret = krb5_cc_resolve(context, newname, &newfile);
839 unlink(&newname[5]);
840 free(newname);
848 free(newname);
853 ret = rk_rename(&newname[5], FILENAME(id));
856 free(newname);
[all...]
/freebsd-head/usr.sbin/pw/
H A Dpw_group.c578 char *newname = NULL; local
611 newname = optarg;
654 if (newname != NULL)
655 grp->gr_name = pw_checkname(newname, 0);
687 if (newname)
688 name = newname;
/freebsd-head/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_changelist.c315 char newname[ZFS_MAX_DATASET_NAME_LEN]; local
332 (void) strlcpy(newname, dst, sizeof (newname));
333 (void) strlcat(newname, cn->cn_handle->zfs_name + strlen(src),
334 sizeof (newname));
336 (void) strlcpy(cn->cn_handle->zfs_name, newname,

Completed in 198 milliseconds

1234