Lines Matching refs:tmpname
222 static char *tmpname = NULL; variable
679 if (tmpname != NULL && dounlink) in terminate_cleanup()
680 unlink(tmpname); in terminate_cleanup()
701 tmpname = mktmpname(destfile, ".ctf"); in copy_ctf_data()
702 write_ctf(srctd, destfile, tmpname, CTF_COMPRESS | CTF_SWAP_BYTES | keep_stabs); in copy_ctf_data()
703 if (rename(tmpname, destfile) != 0) { in copy_ctf_data()
704 terminate("Couldn't rename temp file %s to %s", tmpname, in copy_ctf_data()
707 free(tmpname); in copy_ctf_data()
1128 tmpname = mktmpname(outfile, ".ctf"); in main()
1129 write_ctf(savetd, outfile, tmpname, in main()
1131 if (rename(tmpname, outfile) != 0) in main()
1132 terminate("Couldn't rename output temp file %s", tmpname); in main()
1133 free(tmpname); in main()