/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | rename.c | 34 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/lib/libresolv2/common/isc/ |
H A D | movefile.c | 36 isc_movefile(const char *oldname, const char *newname) { argument 37 return (rename(oldname, newname));
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/ |
H A D | zfs_rename_003_pos.ksh | 54 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
|
/illumos-gate/usr/src/cmd/oamuser/group/ |
H A D | groupmod.c | 68 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 D | exportlist.c | 195 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/tools/ctf/cvt/ |
H A D | util.c | 210 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 D | output.c | 684 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/cmd/zpool/ |
H A D | zpool_util.h | 48 nvlist_t *split_mirror_vdev(zpool_handle_t *zhp, char *newname,
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | getlist.c | 48 newname(str) function 92 nname = newname(line);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | ramdisk.h | 78 #define RD_STRIP_PREFIX(newname, oldname) \ 81 newname = strncmp(onm, RD_OBP_PFXSTR, RD_OBP_PFXLEN) == 0 ? \
|
/illumos-gate/usr/src/cmd/sendmail/db/log/ |
H A D | log_archive.c | 346 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/lib/auditd_plugins/binfile/ |
H A D | binfile.c | 439 * newname - the name of the new log file (for the trailer) 442 close_log(dirlist_t **lastOpenDir_ptr, char *oname, char *newname) argument 475 * newname is "" if binfile is being closed down. 477 (void) write_file_token(currentdir->dl_fd, newname); 509 char newname[AUDIT_FNAME_SZ + 1]; local 524 (void) snprintf(newname, AUDIT_FNAME_SZ, 527 newfd = open(newname, 534 "(will try another)\n", newname)); 545 newname, strerror(errno))); 557 newname, strerro [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | devcache.c | 646 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/tools/pmodes/ |
H A D | pmodes.c | 483 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/fs/nfs/ |
H A D | nfs_cmd.c | 327 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/libzfs/common/ |
H A D | libzfs_changelist.c | 293 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/cmd/mailx/ |
H A D | optim.c | 300 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 D | symtab.c | 411 moveentry(ep, newname) 413 char *newname; 418 np = lookupparent(newname); 428 LASTPART(newname); 429 cp = strrchr(newname, '/') + 1; 431 cp = newname;
|
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_deleted.c | 294 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/stmsboot/ |
H A D | mpxio-upgrade | 233 newname=`$STMSBOOTUTIL -m $4` 235 if $DUMPADM -d $newname > /dev/msglog 2> /dev/console; then
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_log.cc | 212 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/itadm/ |
H A D | itadm.c | 1058 modify_target(char *tgt, char *newname, nvlist_t *proplist) argument 1095 * If newname is specified, ensure it is a valid name. 1097 if (newname) { 1098 if (!validate_iscsi_name(newname)) { 1100 gettext("Invalid iSCSI name %s"), newname); 1117 if (newname && 1118 (strcasecmp(newname, ptr->tgt_name) == 0)) { 1121 newname); 1245 if (newname && (strlen(newname) > [all...] |
/illumos-gate/usr/src/cmd/filesync/ |
H A D | action.c | 942 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/cmd/cmd-inet/usr.sbin/nwamcfg/ |
H A D | nwamcfg.c | 1302 char *newname = NULL, *oldname = NULL; local 1333 newname = trim_quotes(cmd->cmd_argv[0]); 1335 ret = nwam_enm_create(newname, NULL, &enm_h); 1337 ret = nwam_loc_create(newname, &loc_h); 1339 ret = nwam_known_wlan_create(newname, &wlan_h); 1342 ret = nwam_ncp_create(newname, 0, &ncp_h); 1355 ret = nwam_ncu_create(ncp_h, newname, ncu_type, 1368 newname = trim_quotes(cmd->cmd_argv[2]); 1375 ret = nwam_enm_copy(oldenm_h, newname, &enm_h); 1383 ret = nwam_loc_copy(oldloc_h, newname, 1451 scope_to_str(current_scope), newname); local [all...] |
/illumos-gate/usr/src/lib/libnwam/common/ |
H A D | libnwam_object.c | 291 * 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))
|