Lines Matching refs:tmpname
212 static char *tmpname = NULL; variable
600 if (tmpname != NULL && dounlink) in terminate_cleanup()
601 unlink(tmpname); in terminate_cleanup()
622 tmpname = mktmpname(destfile, ".ctf"); in copy_ctf_data()
623 write_ctf(srctd, destfile, tmpname, CTF_COMPRESS | CTF_SWAP_BYTES | keep_stabs); in copy_ctf_data()
624 if (rename(tmpname, destfile) != 0) { in copy_ctf_data()
625 terminate("Couldn't rename temp file %s to %s", tmpname, in copy_ctf_data()
628 free(tmpname); in copy_ctf_data()
1011 tmpname = mktmpname(outfile, ".ctf"); in main()
1012 write_ctf(savetd, outfile, tmpname, in main()
1014 if (rename(tmpname, outfile) != 0) in main()
1015 terminate("Couldn't rename output temp file %s", tmpname); in main()
1016 free(tmpname); in main()