Searched defs:newname (Results 1 - 25 of 43) 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/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/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/cmd/filesync/
H A Daction.c943 char *newname; local
958 newname = (srcdst == OPT_SRC) ? srcname : dstname;
964 noblanks(oldname), noblanks(newname));
972 rc = opt_notouch ? 0 : rename(oldname, newname);
976 oldname, newname, rc, errno);
985 if (errno = dbg_chk_error(newname, 'S'))
989 rc = lstat(newname, &statb);
/illumos-gate/usr/src/lib/libnwam/common/
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_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_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))
H A Dlibnwam_ncp.c351 nwam_ncp_copy(nwam_ncp_handle_t oldncph, const char *newname, argument
358 assert(oldncph != NULL && newname != NULL && newncphp != NULL);
360 /* check if newname NCP already exists */
361 if (nwam_ncp_read(newname, 0, &ncph) == NWAM_SUCCESS) {
368 if ((err = nwam_ncp_create(newname, 0, newncphp)) != NWAM_SUCCESS)
1003 nwam_ncu_copy(nwam_ncu_handle_t oldncuh, const char *newname, argument
1013 assert(oldncuh != NULL && newname != NULL && newncuhp != NULL);
1025 /* check if newname NCU already exists */
1028 if (nwam_ncu_read(ncph, newname, type, 0, &ncuh) == NWAM_SUCCESS) {
1035 if ((err = nwam_ncu_name_to_typed_name(newname, typ
[all...]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_changelist.c321 char newname[ZFS_MAX_DATASET_NAME_LEN]; local
336 (void) strlcpy(newname, dst, sizeof (newname));
337 (void) strcat(newname, cn->cn_handle->zfs_name + strlen(src));
339 (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/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/backup/restore/
H A Dutilities.c63 char *newname; local
69 newname = savename(gentempname(ep));
70 renameit(myname(ep), newname); local
72 ep->e_name = newname;
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dnvfile.c97 static int nvf_rename(char *oldname, char *newname);
1380 nvf_rename(char *oldname, char *newname) argument
1382 return (vn_rename(oldname, newname, UIO_SYSSPACE));
/illumos-gate/usr/src/lib/auditd_plugins/binfile/
H A Dbinfile.c439 * 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/cmd/itadm/
H A Ditadm.c1058 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/zpool/
H A Dzpool_vdev.c1545 split_mirror_vdev(zpool_handle_t *zhp, char *newname, nvlist_t *props, argument
1589 if (zpool_vdev_split(zhp, newname, &newroot, props, flags) != 0) {
/illumos-gate/usr/src/lib/libkmf/ber_der/common/
H A Dclasn1.c801 KMF_X509_NAME *newname = NULL; local
808 newname = malloc(sizeof (KMF_X509_NAME));
809 if (newname == NULL)
811 (void) memset(newname, 0, sizeof (KMF_X509_NAME));
813 newname->numberOfRDNs = srcname->numberOfRDNs;
814 newname->RelativeDistinguishedName = malloc(newname->numberOfRDNs *
816 if (newname->RelativeDistinguishedName == NULL) {
817 free(newname);
821 for (i = 0; i < newname
[all...]

Completed in 318 milliseconds

12