Lines Matching refs:tempname
650 char const *tempname)
659 if (tempname)
660 remove(tempname);
1348 open_outfile(char const **outname, char **tempname)
1358 if (!*tempname)
1359 random_dirent(outname, tempname);
1367 random_dirent(outname, tempname);
1382 rename_dest(char *tempname, char const *name)
1384 if (tempname) {
1385 if (rename(tempname, name) != 0) {
1387 remove(tempname);
1392 free(tempname);
1452 char *tempname = NULL;
1499 staysymlink &= !tempname;
1500 random_dirent(&outname, &tempname);
1526 random_dirent(&outname, &tempname);
1548 tp = open_outfile(&outname, &tempname);
1551 close_file(tp, directory, linkname, tempname);
1561 rename_dest(tempname, linkname);
2383 char *tempname = NULL;
2497 fp = open_outfile(&outname, &tempname);
2780 close_file(fp, directory, name, tempname);
2781 rename_dest(tempname, name);