Lines Matching defs:tempname
652 char const *tempname)
661 if (tempname)
662 (void)remove(tempname);
1380 open_outfile(char const **outname, char **tempname)
1390 if (!*tempname)
1391 random_dirent(outname, tempname);
1407 random_dirent(outname, tempname);
1422 rename_dest(char *tempname, char const *name)
1424 if (tempname) {
1425 if (rename(tempname, name) != 0) {
1427 (void)remove(tempname);
1432 free(tempname);
1492 char *tempname = NULL;
1539 staysymlink &= !tempname;
1540 random_dirent(&outname, &tempname);
1566 random_dirent(&outname, &tempname);
1588 tp = open_outfile(&outname, &tempname);
1591 close_file(tp, directory, linkname, tempname);
1601 rename_dest(tempname, linkname);
2424 char *tempname = NULL;
2538 fp = open_outfile(&outname, &tempname);
2821 close_file(fp, directory, name, tempname);
2822 if (chmod(tempname, mflag) < 0) {
2824 tempname, (unsigned)mflag);
2828 && chown(tempname, uflag, gflag) < 0) {
2830 tempname);
2833 rename_dest(tempname, name);