Home
last modified time | relevance | path

Searched refs:newname (Results 1 – 25 of 75) sorted by relevance

123

/titanic_44/usr/src/cmd/oamuser/group/
H A Dgroupmod.c68 char *newname = NULL; /* new group name with -n option */ in main() local
83 newname = optarg; in main()
136 if (newname) { in main()
137 switch (valid_gname(newname, NULL, &warning)) { in main()
139 errmsg(M_GRP_INVALID, newname); in main()
142 errmsg(M_GRP_USED, newname); in main()
146 warningmsg(warning, newname); in main()
149 if ((valret = mod_group(grpname, gid, newname)) != EX_SUCCESS) { in main()
/titanic_44/usr/src/lib/libc/port/sys/
H A Drename.c34 renameat(int oldfd, const char *oldname, int newfd, const char *newname) in renameat() argument
36 return (syscall(SYS_renameat, oldfd, oldname, newfd, newname)); in renameat()
41 rename(const char *oldname, const char *newname) in rename() argument
44 return (syscall(SYS_rename, oldname, newname)); in rename()
46 return (renameat(AT_FDCWD, oldname, AT_FDCWD, newname)); in rename()
/titanic_44/usr/src/cmd/fs.d/nfs/mountd/
H A Dexportlist.c195 char *newname; in newgroup() local
198 newname = exmalloc(strlen(grname) + 1); in newgroup()
199 (void) strcpy(newname, grname); in newgroup()
201 new->gr_name = newname; in newgroup()
212 char *newname; in newexport() local
215 newname = exmalloc(strlen(grname) + 1); in newexport()
216 (void) strcpy(newname, grname); in newexport()
218 new->ex_dir = newname; in newexport()
/titanic_44/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_003_pos.ksh50 set -A newname "$fs@new-snap" "@new-snap" "new-snap"
57 log_must $ZFS rename $snap ${newname[$i]}
58 log_must datasetexists ${snap%%@*}@${newname[$i]##*@}
59 log_must $ZFS rename ${snap%%@*}@${newname[$i]##*@} $snap
/titanic_44/usr/src/uts/common/os/
H A Ddevcache.c646 kfrename(char *oldname, char *newname) in kfrename() argument
652 KFDEBUG((CE_CONT, "renaming %s to %s\n", oldname, newname)); in kfrename()
654 if ((rval = vn_rename(oldname, newname, UIO_SYSSPACE)) != 0) { in kfrename()
656 oldname, newname, rval)); in kfrename()
668 char *newname; in fwrite_nvlist() local
698 newname = kmem_alloc(len, KM_SLEEP); in fwrite_nvlist()
701 (void) sprintf(newname, "%s.%s", filename, NEW_FILENAME_SUFFIX); in fwrite_nvlist()
710 if ((err = kfcreate(newname, &fp)) == 0) { in fwrite_nvlist()
714 newname, err); in fwrite_nvlist()
719 newname, n, buflen); in fwrite_nvlist()
[all …]
/titanic_44/usr/src/tools/ctf/cvt/
H A Dutil.c210 char *newname; in mktmpname() local
212 newname = xmalloc(strlen(origname) + strlen(suffix) + 1); in mktmpname()
213 (void) strcpy(newname, origname); in mktmpname()
214 (void) strcat(newname, suffix); in mktmpname()
215 return (newname); in mktmpname()
/titanic_44/usr/src/lib/auditd_plugins/binfile/
H A Dbinfile.c442 close_log(dirlist_t **lastOpenDir_ptr, char *oname, char *newname) in close_log() argument
477 (void) write_file_token(currentdir->dl_fd, newname); in close_log()
509 char newname[AUDIT_FNAME_SZ + 1]; in open_log() local
524 (void) snprintf(newname, AUDIT_FNAME_SZ, in open_log()
527 newfd = open(newname, in open_log()
534 "(will try another)\n", newname)); in open_log()
545 newname, strerror(errno))); in open_log()
557 newname, strerror(errno))); in open_log()
581 close_log(&lastOpenDir, oldname, newname); in open_log()
598 current_dir->dl_filename = strdup(newname); in open_log()
[all …]
/titanic_44/usr/src/lib/libresolv2/common/isc/
H A Dmovefile.c36 isc_movefile(const char *oldname, const char *newname) { in isc_movefile() argument
37 return (rename(oldname, newname)); in isc_movefile()
/titanic_44/usr/src/cmd/sendmail/db/log/
H A Dlog_archive.c346 char *newname; local
353 if ((ret = __os_malloc(l_pref + l_name + 2, NULL, &newname)) != 0)
355 *newnamep = newname;
359 memcpy(newname, pref, l_pref);
360 if (strchr(PATH_SEPARATOR, newname[l_pref - 1]) == NULL)
361 newname[l_pref++] = PATH_SEPARATOR[0];
363 memcpy(newname + l_pref, name, l_name + 1);
/titanic_44/usr/src/uts/common/fs/nfs/
H A Dnfs_cmd.c327 char *newname; in nfscmd_convname() local
342 newname = kmem_zalloc(size, KM_SLEEP); in nfscmd_convname()
345 holdname = newname; in nfscmd_convname()
353 kmem_free(newname, size); in nfscmd_convname()
354 newname = NULL; in nfscmd_convname()
357 return (newname); in nfscmd_convname()
/titanic_44/usr/src/tools/pmodes/
H A Dpmodes.c483 char newname[MAXPATHLEN]; in update_map() local
494 (void) strcpy(newname, name); in update_map()
495 (void) strcat(newname, ".new"); in update_map()
497 newmap = fopen(newname, "w"); in update_map()
677 (void) unlink(newname); in update_map()
684 rename(newname, name) == -1) in update_map()
687 newname, strerror(errno)); in update_map()
/titanic_44/usr/src/uts/common/sys/
H A Dramdisk.h78 #define RD_STRIP_PREFIX(newname, oldname) \ argument
81 newname = strncmp(onm, RD_OBP_PFXSTR, RD_OBP_PFXLEN) == 0 ? \
/titanic_44/usr/src/cmd/ypcmd/
H A Dgetlist.c48 newname(str) in newname() function
92 nname = newname(line);
/titanic_44/usr/src/cmd/mailx/
H A Doptim.c300 char newname[BUFSIZ]; in arpafix() local
331 nstrcpy(newname, sizeof (newname), name); in arpafix()
332 cp = strrchr(newname, '@'); in arpafix()
334 cp = strrchr(newname, '%'); in arpafix()
336 if (debug) fprintf(stderr, "local address, return '%s'\n", newname); in arpafix()
337 return(savestr(newname)); in arpafix()
/titanic_44/usr/src/lib/libzfs/common/
H A Dlibzfs_changelist.c289 char newname[ZFS_MAX_DATASET_NAME_LEN]; in changelist_rename() local
304 (void) strlcpy(newname, dst, sizeof (newname)); in changelist_rename()
305 (void) strcat(newname, cn->cn_handle->zfs_name + strlen(src)); in changelist_rename()
307 (void) strlcpy(cn->cn_handle->zfs_name, newname, in changelist_rename()
H A Dlibzfs_pool.c1508 zpool_import(libzfs_handle_t *hdl, nvlist_t *config, const char *newname, in zpool_import() argument
1518 newname)); in zpool_import()
1528 newname)); in zpool_import()
1532 ret = zpool_import_props(hdl, config, newname, props, in zpool_import()
1596 zpool_import_props(libzfs_handle_t *hdl, nvlist_t *config, const char *newname, in zpool_import_props() argument
1616 if (newname != NULL) { in zpool_import_props()
1617 if (!zpool_name_valid(hdl, B_FALSE, newname)) in zpool_import_props()
1620 newname)); in zpool_import_props()
1621 thename = (char *)newname; in zpool_import_props()
1682 zpool_rewind_exclaim(hdl, newname ? origname : thename, in zpool_import_props()
[all …]
/titanic_44/usr/src/cmd/backup/restore/
H A Dsymtab.c411 moveentry(ep, newname) in moveentry() argument
413 char *newname;
418 np = lookupparent(newname);
428 LASTPART(newname);
429 cp = strrchr(newname, '/') + 1;
431 cp = newname;
/titanic_44/usr/src/cmd/filesync/
H A Daction.c942 char *newname; in do_rename() local
957 newname = (srcdst == OPT_SRC) ? srcname : dstname; in do_rename()
963 noblanks(oldname), noblanks(newname)); in do_rename()
971 rc = opt_notouch ? 0 : rename(oldname, newname); in do_rename()
975 oldname, newname, rc, errno); in do_rename()
984 if (errno = dbg_chk_error(newname, 'S')) in do_rename()
988 rc = lstat(newname, &statb); in do_rename()
/titanic_44/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_deleted.c294 int oldfd, const char *oldname, int newfd, const char *newname) in s10_renameat() argument
297 oldfd, oldname, newfd, newname)); in s10_renameat()
301 s10_rename(sysret_t *rval, const char *oldname, const char *newname) in s10_rename() argument
304 AT_FDCWD, oldname, AT_FDCWD, newname)); in s10_rename()
/titanic_44/usr/src/cmd/itadm/
H A Ditadm.c1058 modify_target(char *tgt, char *newname, nvlist_t *proplist) in modify_target() argument
1097 if (newname) { in modify_target()
1098 if (!validate_iscsi_name(newname)) { in modify_target()
1100 gettext("Invalid iSCSI name %s"), newname); in modify_target()
1117 if (newname && in modify_target()
1118 (strcasecmp(newname, ptr->tgt_name) == 0)) { in modify_target()
1121 newname); in modify_target()
1245 if (newname && (strlen(newname) > 0)) { in modify_target()
1253 (void) strlcpy(tgtp->tgt_name, newname, in modify_target()
/titanic_44/usr/src/lib/libkmf/ber_der/common/
H A Dclasn1.c801 KMF_X509_NAME *newname = NULL; in CopyRDN() local
808 newname = malloc(sizeof (KMF_X509_NAME)); in CopyRDN()
809 if (newname == NULL) in CopyRDN()
811 (void) memset(newname, 0, sizeof (KMF_X509_NAME)); in CopyRDN()
813 newname->numberOfRDNs = srcname->numberOfRDNs; in CopyRDN()
814 newname->RelativeDistinguishedName = malloc(newname->numberOfRDNs * in CopyRDN()
816 if (newname->RelativeDistinguishedName == NULL) { in CopyRDN()
817 free(newname); in CopyRDN()
821 for (i = 0; i < newname->numberOfRDNs; i++) { in CopyRDN()
824 dstrdn = &newname->RelativeDistinguishedName[i]; in CopyRDN()
[all …]
/titanic_44/usr/src/cmd/zpool/
H A Dzpool_util.h48 nvlist_t *split_mirror_vdev(zpool_handle_t *zhp, char *newname,
/titanic_44/usr/src/lib/libnisdb/
H A Ddb_log.cc212 copy_log_file(char *oldname, char *newname) { in copy_log_file() argument
225 if ((to = open(newname, O_WRONLY|O_CREAT|O_TRUNC, 0660)) < 0) { in copy_log_file()
/titanic_44/usr/src/cmd/stmsboot/
H A Dmpxio-upgrade250 newname=`$STMSBOOTUTIL -m $4`
252 if $DUMPADM -d $newname > /dev/msglog 2> /dev/console; then
/titanic_44/usr/src/lib/libnwam/common/
H A Dlibnwam_object.c295 nwam_copy(const char *dbname, struct nwam_handle *oldhp, const char *newname, in nwam_copy() argument
301 assert(oldhp != NULL && newname != NULL && newhpp != NULL); in nwam_copy()
303 if (nwam_read(oldhp->nwh_object_type, dbname, newname, 0, &hp) in nwam_copy()
309 if ((err = nwam_handle_create(oldhp->nwh_object_type, newname, newhpp)) in nwam_copy()

123