Searched defs:oldname (Results 1 - 24 of 24) sorted by relevance

/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/lib/libnisdb/
H A Ddb_log.cc212 copy_log_file(char *oldname, char *newname) { argument
218 if ((from = open(oldname, O_RDONLY, 0666)) < 0) {
/illumos-gate/usr/src/cmd/refer/
H A Dglue1.c66 static char oldname[30]; local
145 if (typeindex == 0 || strcmp(oldname, indexname) != 0) {
146 strcpy(oldname, indexname);
H A Dhunt1.c62 static char oldname[30]; local
144 if (was == 0 || strcmp(oldname, nma) != 0) {
145 strcpy(oldname, nma);
161 strcpy(*fgnamp++ = calloc(strlen(oldname)+2, 1),
162 oldname);
/illumos-gate/usr/src/lib/libadm/common/
H A Dputdev.c162 char *oldname; /* Ptr to the device-table's name */ local
171 if (oldname = _devtabpath()) {
179 if ((fd = open(oldname, O_WRONLY)) == -1)
188 if (p = strrchr(oldname, '/')) {
190 dirname = oldname;
212 free(oldname);
H A Dputdgrp.c125 char *oldname; /* Ptr to the dgrptab name */ local
138 if (oldname = _dgrptabpath()) {
148 if ((fd = open(oldname, O_WRONLY)) == -1)
158 if (p = strrchr(oldname, '/')) {
160 dirname = oldname;
183 free(oldname);
/illumos-gate/usr/src/cmd/filesync/
H A Daction.c944 char *oldname; local
959 oldname = full_name(pp, srcdst, OPT_BASE);
964 noblanks(oldname), noblanks(newname));
968 if (errno = dbg_chk_error(oldname, 'm'))
972 rc = opt_notouch ? 0 : rename(oldname, newname);
976 oldname, newname, rc, errno);
1026 fprintf(stderr, gettext(ERR_cannot), errstr, oldname);
/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/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));
/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_door.c630 char oldname[MAXLINKNAMELEN]; local
656 (void) strlcpy(oldname, linkp->ll_link, MAXLINKNAMELEN);
663 err = dlmgmt_write_db_entry(oldname, linkp, DLMGMT_ACTIVE);
668 err = dlmgmt_write_db_entry(oldname, linkp, DLMGMT_PERSIST);
683 (void) strlcpy(linkp->ll_link, oldname, MAXLINKNAMELEN);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c1060 char *oldname; local
1072 oldname = cp;
1076 error("hardlink: oldname name not delimited\n");
1106 if (exists && lstat(oldname, &nstb) == 0 &&
1122 if (*oldname == '~')
1123 oldname = exptilde(oldnamebuf, sizeof (oldnamebuf), oldname);
1124 if (link(oldname, target) < 0) {
1126 host, target, oldname);
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dtypeset.c628 char *oldname=0; local
635 oldname = np->nvname;
641 if(oldname)
642 np->nvname = oldname;
/illumos-gate/usr/src/tools/cscope-fast/
H A Dmain.c956 char oldname[PATHLEN + 1]; /* name in old cross-reference */ local
1067 if (fscanf(oldrefs, "%s", oldname) != 1 ||
1068 strnotequal(oldname, srcfiles[i]) ||
1076 while (i++ < oldnum && fscanf(oldrefs, "%s", oldname) == 1) {
1077 addsrcfile(oldname);
1367 char oldname[PATHLEN + 1]; /* name in old cross-reference */ local
1378 if (fscanf(oldrefs, "%s", oldname) != 1 ||
1379 strnotequal(oldname, names[i])) {
/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.c434 * to oldname. The caller must hold log_mutext while calling
438 * oldname - the new name for the file to be closed
446 char oldname[AUDIT_FNAME_SZ+1]; local
452 * If oldname is blank, we were called by auditd_plugin_close()
455 (void) strlcpy(oldname, oname, AUDIT_FNAME_SZ);
457 if (strcmp(oldname, "") == 0) {
462 (void) strlcpy(oldname, currentdir->dl_filename,
465 name = strrchr(oldname, '/') + 1;
483 (void) rename(currentdir->dl_filename, oldname);
485 DPRINT((dbfp, "binfile: Log closed %s\n", oldname));
508 char oldname[AUDIT_FNAME_SZ + 1] = ""; local
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dpath.c631 char *pname,*oldname=shp->st.filename, buff[IOBSIZE+1]; local
663 shp->st.filename = oldname;
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_vnops.c2916 char *oldname; local
2920 oldname = np->n_rpath + (dnp->n_rplen + 1);
2922 err2 = smbfs_smb_rename(dnp, np, dnp, oldname, oldnlen,
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddsl_dir.c2088 dsl_dir_rename(const char *oldname, const char *newname) argument
2092 ddra.ddra_oldname = oldname;
2096 return (dsl_sync_task(oldname,
/illumos-gate/usr/src/lib/libshare/smb/
H A Dlibshare_smb.c2115 char *oldname; local
2120 oldname = sa_get_resource_attr(resource, "name");
2121 if (oldname == NULL)
2124 err = smb_share_rename(oldname, newname);
2126 sa_free_attr_string(oldname);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/
H A Dnwamcfg.c1312 char *newname = NULL, *oldname = NULL; local
1377 oldname = trim_quotes(cmd->cmd_argv[1]);
1382 ret = nwam_enm_read(oldname, 0, &oldenm_h);
1390 ret = nwam_loc_read(oldname, 0, &oldloc_h);
1398 ret = nwam_known_wlan_read(oldname, 0, &oldwlan_h);
1407 ret = nwam_ncp_read(oldname, 0, &oldncp_h);
1424 ret = nwam_ncu_read(ncp_h, oldname, ncu_type, 0,
1470 nwamerr(ret, "Copy error reading '%s'", oldname);
1473 free(oldname);
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_dataset.c4764 char *oldname, char *newname)
4767 oldname, newname));
4763 zfs_smb_acl_rename(libzfs_handle_t *hdl, char *dataset, char *path, char *oldname, char *newname) argument
/illumos-gate/usr/src/uts/common/nfs/
H A Dnfs4_kprot.h1189 component4 oldname; member in struct:RENAME4args
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c6157 ztest_spa_import_export(char *oldname, char *newname) argument
6166 oldname, newname);
6177 VERIFY3U(0, ==, spa_open(oldname, &spa, FTAG));
6193 VERIFY3U(0, ==, spa_export(oldname, &config, B_FALSE, B_FALSE));
6211 oldname, newname, error);
6224 VERIFY3U(EEXIST, ==, spa_import(oldname, config, NULL, 0));
6229 VERIFY3U(ENOENT, ==, spa_open(oldname, &spa, FTAG));

Completed in 301 milliseconds