Lines Matching defs:tempname
659 char const *tempname)
668 if (tempname)
669 remove(tempname);
1357 open_outfile(char const **outname, char **tempname)
1367 if (!*tempname)
1368 random_dirent(outname, tempname);
1376 random_dirent(outname, tempname);
1391 rename_dest(char *tempname, char const *name)
1393 if (tempname) {
1394 if (rename(tempname, name) != 0) {
1396 remove(tempname);
1401 free(tempname);
1461 char *tempname = NULL;
1508 staysymlink &= !tempname;
1509 random_dirent(&outname, &tempname);
1535 random_dirent(&outname, &tempname);
1557 tp = open_outfile(&outname, &tempname);
1560 close_file(tp, directory, linkname, tempname);
1570 rename_dest(tempname, linkname);
2397 char *tempname = NULL;
2511 fp = open_outfile(&outname, &tempname);
2794 close_file(fp, directory, name, tempname);
2795 rename_dest(tempname, name);