Searched defs:newname (Results 1 - 25 of 50) sorted by relevance

12

/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dmovefile.c36 isc_movefile(const char *oldname, const char *newname) { argument
37 return (rename(oldname, newname));
/illumos-gate/usr/src/lib/libc/port/sys/
H A Drename.c34 renameat(int oldfd, const char *oldname, int newfd, const char *newname) argument
36 return (syscall(SYS_renameat, oldfd, oldname, newfd, newname));
41 rename(const char *oldname, const char *newname) argument
44 return (syscall(SYS_rename, oldname, newname));
46 return (renameat(AT_FDCWD, oldname, AT_FDCWD, newname));
/illumos-gate/usr/src/cmd/ypcmd/
H A Dgetlist.c48 newname(str) function
92 nname = newname(line);
/illumos-gate/usr/src/cmd/oamuser/group/
H A Dgroupmod.c68 char *newname = NULL; /* new group name with -n option */ local
83 newname = optarg;
136 if (newname) {
137 switch (valid_gname(newname, NULL, &warning)) {
139 errmsg(M_GRP_INVALID, newname);
142 errmsg(M_GRP_USED, newname);
146 warningmsg(warning, newname);
149 if ((valret = mod_group(grpname, gid, newname)) != EX_SUCCESS) {
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dexportlist.c195 char *newname; local
198 newname = exmalloc(strlen(grname) + 1);
199 (void) strcpy(newname, grname);
201 new->gr_name = newname;
212 char *newname; local
215 newname = exmalloc(strlen(grname) + 1);
216 (void) strcpy(newname, grname);
218 new->ex_dir = newname;
/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_log.cc212 copy_log_file(char *oldname, char *newname) { argument
225 if ((to = open(newname, O_WRONLY|O_CREAT|O_TRUNC, 0660)) < 0) {
/illumos-gate/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);
/illumos-gate/usr/src/tools/ctf/cvt/
H A Dutil.c210 char *newname; local
212 newname = xmalloc(strlen(origname) + strlen(suffix) + 1);
213 (void) strcpy(newname, origname);
214 (void) strcat(newname, suffix);
215 return (newname);
H A Doutput.c684 write_ctf(tdata_t *td, const char *curname, const char *newname, int flags) argument
700 if ((tfd = open(newname, O_RDWR | O_CREAT | O_TRUNC, st.st_mode)) < 0)
701 terminate("Cannot open temp file %s for writing", newname);
706 write_file(elf, curname, telf, newname, data, len, flags);
/illumos-gate/usr/src/lib/libshare/common/
H A Dplugin.c689 * sa_proto_rename_resource(sa_handle_t, proto, sa_resource_t, newname)
698 sa_resource_t resource, char *newname)
706 newname);
697 sa_proto_rename_resource(sa_handle_t handle, char *proto, sa_resource_t resource, char *newname) argument
/illumos-gate/usr/src/cmd/filesync/
H A Daction.c942 char *newname; local
957 newname = (srcdst == OPT_SRC) ? srcname : dstname;
963 noblanks(oldname), noblanks(newname));
971 rc = opt_notouch ? 0 : rename(oldname, newname);
975 oldname, newname, rc, errno);
984 if (errno = dbg_chk_error(newname, 'S'))
988 rc = lstat(newname, &statb);
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_cmd.c327 char *newname; local
342 newname = kmem_zalloc(size, KM_SLEEP);
345 holdname = newname;
353 kmem_free(newname, size);
354 newname = NULL;
357 return (newname);
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_set_tkr.c515 char *newname = NULL; local
798 ret = meta_upd_ctdnames(&local_sp, 0, side, d->dd_dnp, &newname,
813 if (newname != NULL) {
835 save_devid, newname, ep);
837 Free(newname);
839 * null newname so we are reset for next time
842 newname = NULL;
H A Dmeta_devadm.c1334 * has moved then the newname is returned in 'newname', it is up to
1349 char **newname,
1570 if (newname != NULL)
1571 *newname = Strdup(np->bname);
1608 char *newname = NULL; local
1644 d->dd_dnp, &newname, ep);
1344 meta_upd_ctdnames( mdsetname_t **spp, set_t setno, side_t sideno, mddrivename_t *dnp, char **newname, md_error_t *ep ) argument
/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_enm.c241 nwam_enm_copy(nwam_enm_handle_t oldenmh, const char *newname, argument
244 return (nwam_copy(NWAM_ENM_CONF_FILE, oldenmh, newname, newenmhp));
H A Dlibnwam_object.c291 * Copy object represented by oldhp to an object newname, all in container
295 nwam_copy(const char *dbname, struct nwam_handle *oldhp, const char *newname, argument
301 assert(oldhp != NULL && newname != NULL && newhpp != NULL);
303 if (nwam_read(oldhp->nwh_object_type, dbname, newname, 0, &hp)
309 if ((err = nwam_handle_create(oldhp->nwh_object_type, newname, newhpp))
H A Dlibnwam_known_wlan.c289 nwam_known_wlan_copy(nwam_known_wlan_handle_t oldkwh, const char *newname, argument
292 return (nwam_copy(NWAM_KNOWN_WLAN_CONF_FILE, oldkwh, newname, newkwhp));
H A Dlibnwam_loc.c956 nwam_loc_copy(nwam_loc_handle_t oldloch, const char *newname, argument
962 if ((err = nwam_copy(NWAM_LOC_CONF_FILE, oldloch, newname, newlochp))
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_changelist.c293 char newname[ZFS_MAX_DATASET_NAME_LEN]; local
308 (void) strlcpy(newname, dst, sizeof (newname));
309 (void) strcat(newname, cn->cn_handle->zfs_name + strlen(src));
311 (void) strlcpy(cn->cn_handle->zfs_name, newname,
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_deleted.c294 int oldfd, const char *oldname, int newfd, const char *newname)
297 oldfd, oldname, newfd, newname));
301 s10_rename(sysret_t *rval, const char *oldname, const char *newname) argument
304 AT_FDCWD, oldname, AT_FDCWD, newname));
293 s10_renameat(sysret_t *rval, int oldfd, const char *oldname, int newfd, const char *newname) argument
/illumos-gate/usr/src/cmd/mailx/
H A Doptim.c300 char newname[BUFSIZ]; local
331 nstrcpy(newname, sizeof (newname), name);
332 cp = strrchr(newname, '@');
334 cp = strrchr(newname, '%');
336 if (debug) fprintf(stderr, "local address, return '%s'\n", newname);
337 return(savestr(newname));
/illumos-gate/usr/src/cmd/backup/restore/
H A Dutilities.c65 char *newname; local
71 newname = savename(gentempname(ep));
72 renameit(myname(ep), newname); local
74 ep->e_name = newname;
/illumos-gate/usr/src/tools/pmodes/
H A Dpmodes.c483 char newname[MAXPATHLEN]; local
494 (void) strcpy(newname, name);
495 (void) strcat(newname, ".new");
497 newmap = fopen(newname, "w");
677 (void) unlink(newname);
684 rename(newname, name) == -1)
687 newname, strerror(errno));
/illumos-gate/usr/src/uts/common/os/
H A Ddevcache.c646 kfrename(char *oldname, char *newname) argument
652 KFDEBUG((CE_CONT, "renaming %s to %s\n", oldname, newname));
654 if ((rval = vn_rename(oldname, newname, UIO_SYSSPACE)) != 0) {
656 oldname, newname, rval));
668 char *newname; local
698 newname = kmem_alloc(len, KM_SLEEP);
701 (void) sprintf(newname, "%s.%s", filename, NEW_FILENAME_SUFFIX);
710 if ((err = kfcreate(newname, &fp)) == 0) {
714 newname, err);
719 newname,
[all...]
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_vdev.c1365 split_mirror_vdev(zpool_handle_t *zhp, char *newname, nvlist_t *props, argument
1402 if (zpool_vdev_split(zhp, newname, &newroot, props, flags) != 0) {

Completed in 95 milliseconds

12