Home
last modified time | relevance | path

Searched refs:oldname (Results 1 – 25 of 41) sorted by relevance

12

/titanic_51/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_51/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]; in close_log() local
452 * If oldname is blank, we were called by auditd_plugin_close() in close_log()
455 (void) strlcpy(oldname, oname, AUDIT_FNAME_SZ); in close_log()
457 if (strcmp(oldname, "") == 0) { in close_log()
462 (void) strlcpy(oldname, currentdir->dl_filename, in close_log()
465 name = strrchr(oldname, '/') + 1; in close_log()
483 (void) rename(currentdir->dl_filename, oldname); in close_log()
485 DPRINT((dbfp, "binfile: Log closed %s\n", oldname)); in close_log()
508 char oldname[AUDIT_FNAME_SZ + 1] = ""; open_log() local
[all...]
/titanic_51/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_51/usr/src/cmd/refer/
H A Dhunt1.c62 static char oldname[30]; in main() local
144 if (was == 0 || strcmp(oldname, nma) != 0) { in main()
145 strcpy(oldname, nma); in main()
161 strcpy(*fgnamp++ = calloc(strlen(oldname)+2, 1), in main()
162 oldname); in main()
H A Dglue1.c66 static char oldname[30]; in huntmain() local
145 if (typeindex == 0 || strcmp(oldname, indexname) != 0) { in huntmain()
146 strcpy(oldname, indexname); in huntmain()
/titanic_51/usr/src/lib/libadm/common/
H A Dputdgrp.c125 char *oldname; /* Ptr to the dgrptab name */ in opennewdgrptab() local
138 if (oldname = _dgrptabpath()) { in opennewdgrptab()
148 if ((fd = open(oldname, O_WRONLY)) == -1) in opennewdgrptab()
158 if (p = strrchr(oldname, '/')) { in opennewdgrptab()
160 dirname = oldname; in opennewdgrptab()
183 free(oldname); in opennewdgrptab()
H A Dputdev.c162 char *oldname; /* Ptr to the device-table's name */ in opennewdevtab() local
171 if (oldname = _devtabpath()) { in opennewdevtab()
179 if ((fd = open(oldname, O_WRONLY)) == -1) in opennewdevtab()
188 if (p = strrchr(oldname, '/')) { in opennewdevtab()
190 dirname = oldname; in opennewdevtab()
212 free(oldname); in opennewdevtab()
/titanic_51/usr/src/uts/common/sys/
H A Dramdisk.h78 #define RD_STRIP_PREFIX(newname, oldname) \ argument
80 char *onm = oldname; \
/titanic_51/usr/src/tools/scripts/
H A Dwebrev.sh2745 oldname=""
2751 oldname=" (copied from $PP)"
2753 oldname=" (renamed from $PP)"
2786 print "\t$P$oldname\n\t\t\c"
3102 oldname="$PP"
3105 oldname=""
3110 if [[ $? == 0 && -n "$oldname" ]]; then
3185 if [[ -f "$oldname" ]]; then
3187 print "<i>(copied from $oldname)</i>"
3189 print "<i>(copied and modified from $oldname)</
[all...]
/titanic_51/usr/src/tools/cscope-fast/
H A Dmain.c956 char oldname[PATHLEN + 1]; /* name in old cross-reference */ in build() local
1067 if (fscanf(oldrefs, "%s", oldname) != 1 || in build()
1068 strnotequal(oldname, srcfiles[i]) || in build()
1076 while (i++ < oldnum && fscanf(oldrefs, "%s", oldname) == 1) { in build()
1077 addsrcfile(oldname); in build()
1367 char oldname[PATHLEN + 1]; /* name in old cross-reference */ in samelist() local
1378 if (fscanf(oldrefs, "%s", oldname) != 1 || in samelist()
1379 strnotequal(oldname, names[i])) { in samelist()
/titanic_51/usr/src/cmd/filesync/
H A Daction.c943 char *oldname; in do_rename() local
958 oldname = full_name(pp, srcdst, OPT_BASE); in do_rename()
963 noblanks(oldname), noblanks(newname)); in do_rename()
967 if (errno = dbg_chk_error(oldname, 'm')) in do_rename()
971 rc = opt_notouch ? 0 : rename(oldname, newname); in do_rename()
975 oldname, newname, rc, errno); in do_rename()
1025 fprintf(stderr, gettext(ERR_cannot), errstr, oldname); in do_rename()
/titanic_51/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_51/usr/src/tools/pmodes/
H A Dpmodes.c679 char oldname[MAXPATHLEN]; in update_map() local
681 (void) strcpy(oldname, name); in update_map()
682 (void) strcat(oldname, ".old"); in update_map()
683 if (rename(name, oldname) == -1 || in update_map()
/titanic_51/usr/src/lib/libnisdb/
H A Ddb_log.cc212 copy_log_file(char *oldname, char *newname) { in copy_log_file() argument
218 if ((from = open(oldname, O_RDONLY, 0666)) < 0) { in copy_log_file()
/titanic_51/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c1059 char *oldname; local
1071 oldname = cp;
1075 error("hardlink: oldname name not delimited\n");
1105 if (exists && lstat(oldname, &nstb) == 0 &&
1121 if (*oldname == '~')
1122 oldname = exptilde(oldnamebuf, sizeof (oldnamebuf), oldname);
1123 if (link(oldname, target) < 0) {
1125 host, target, oldname);
/titanic_51/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()
/titanic_51/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_door.c630 char oldname[MAXLINKNAMELEN]; in dlmgmt_remapid() local
656 (void) strlcpy(oldname, linkp->ll_link, MAXLINKNAMELEN); in dlmgmt_remapid()
663 err = dlmgmt_write_db_entry(oldname, linkp, DLMGMT_ACTIVE); in dlmgmt_remapid()
668 err = dlmgmt_write_db_entry(oldname, linkp, DLMGMT_PERSIST); in dlmgmt_remapid()
683 (void) strlcpy(linkp->ll_link, oldname, MAXLINKNAMELEN); in dlmgmt_remapid()
/titanic_51/usr/src/uts/common/fs/zfs/sys/
H A Ddsl_dir.h156 int dsl_dir_rename(const char *oldname, const char *newname);
/titanic_51/usr/src/lib/libshare/smb/
H A Dlibshare_smb.c2079 char *oldname; in smb_rename_resource() local
2084 oldname = sa_get_resource_attr(resource, "name"); in smb_rename_resource()
2085 if (oldname == NULL) in smb_rename_resource()
2088 err = smb_share_rename(oldname, newname); in smb_rename_resource()
2090 sa_free_attr_string(oldname); in smb_rename_resource()
/titanic_51/usr/src/lib/libshell/common/bltins/
H A Dtypeset.c627 char *oldname=0; in b_common() local
634 oldname = np->nvname; in b_common()
640 if(oldname) in b_common()
641 np->nvname = oldname; in b_common()
/titanic_51/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) in nvf_rename() argument
1382 return (vn_rename(oldname, newname, UIO_SYSSPACE)); in nvf_rename()
/titanic_51/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/
H A Dnwamcfg.c1302 char *newname = NULL, *oldname = NULL; in create_func() local
1367 oldname = trim_quotes(cmd->cmd_argv[1]); in create_func()
1372 ret = nwam_enm_read(oldname, 0, &oldenm_h); in create_func()
1380 ret = nwam_loc_read(oldname, 0, &oldloc_h); in create_func()
1388 ret = nwam_known_wlan_read(oldname, 0, &oldwlan_h); in create_func()
1397 ret = nwam_ncp_read(oldname, 0, &oldncp_h); in create_func()
1414 ret = nwam_ncu_read(ncp_h, oldname, ncu_type, 0, in create_func()
1460 nwamerr(ret, "Copy error reading '%s'", oldname); in create_func()
1463 free(oldname); in create_func()
/titanic_51/usr/src/cmd/ztest/
H A Dztest.c5163 char *oldname, *newname; in ztest_spa_rename() local
5168 oldname = ztest_opts.zo_pool; in ztest_spa_rename()
5169 newname = umem_alloc(strlen(oldname) + 5, UMEM_NOFAIL); in ztest_spa_rename()
5170 (void) strcpy(newname, oldname); in ztest_spa_rename()
5176 VERIFY3U(0, ==, spa_rename(oldname, newname)); in ztest_spa_rename()
5181 VERIFY3U(ENOENT, ==, spa_open(oldname, &spa, FTAG)); in ztest_spa_rename()
5194 VERIFY3U(0, ==, spa_rename(newname, oldname)); in ztest_spa_rename()
5199 VERIFY3U(0, ==, spa_open(oldname, &spa, FTAG)); in ztest_spa_rename()
5280 ztest_spa_import_export(char *oldname, char *newname) in ztest_spa_import_export() argument
5289 oldname, newnam in ztest_spa_import_export()
[all...]
/titanic_51/usr/src/uts/common/sys/iscsit/
H A Discsi_if.h627 extern int iscsid_rename(char *oldname, char *newname);
/titanic_51/usr/src/uts/common/sys/scsi/adapters/
H A Discsi_if.h669 extern int iscsid_rename(char *oldname, char *newname);

12