Lines Matching refs:tempfilename
110 …fix_(FLAC__Metadata_SimpleIterator *iterator, FILE **tempfile, char **tempfilename, FLAC__bool app…
111 …fix_(FLAC__Metadata_SimpleIterator *iterator, FILE **tempfile, char **tempfilename, int fixup_is_l…
118 … *filename, const char *tempfile_path_prefix, FILE **tempfile, char **tempfilename, FLAC__Metadata…
119 static FLAC__bool transport_tempfile_(const char *filename, FILE **tempfile, char **tempfilename, F…
120 static void cleanup_tempfile_(FILE **tempfile, char **tempfilename);
1406 char *tempfilename; in chain_rewrite_file_() local
1419 if(!open_tempfile_(chain->filename, tempfile_path_prefix, &tempfile, &tempfilename, &status)) { in chain_rewrite_file_()
1453 if(!transport_tempfile_(chain->filename, &tempfile, &tempfilename, &status)) in chain_rewrite_file_()
1460 cleanup_tempfile_(&tempfile, &tempfilename); in chain_rewrite_file_()
2995 char *tempfilename = NULL; in rewrite_whole_file_() local
3019 if(!simple_iterator_copy_file_prefix_(iterator, &tempfile, &tempfilename, append)) in rewrite_whole_file_()
3024 cleanup_tempfile_(&tempfile, &tempfilename); in rewrite_whole_file_()
3029 cleanup_tempfile_(&tempfile, &tempfilename); in rewrite_whole_file_()
3034 …if(!simple_iterator_copy_file_postfix_(iterator, &tempfile, &tempfilename, fixup_is_last_code, fix… in rewrite_whole_file_()
3123 …fix_(FLAC__Metadata_SimpleIterator *iterator, FILE **tempfile, char **tempfilename, FLAC__bool app… in simple_iterator_copy_file_prefix_() argument
3131 …if(!open_tempfile_(iterator->filename, iterator->tempfile_path_prefix, tempfile, tempfilename, &it… in simple_iterator_copy_file_prefix_()
3132 cleanup_tempfile_(tempfile, tempfilename); in simple_iterator_copy_file_prefix_()
3136 cleanup_tempfile_(tempfile, tempfilename); in simple_iterator_copy_file_prefix_()
3143 …fix_(FLAC__Metadata_SimpleIterator *iterator, FILE **tempfile, char **tempfilename, int fixup_is_l… in simple_iterator_copy_file_postfix_() argument
3149 cleanup_tempfile_(tempfile, tempfilename); in simple_iterator_copy_file_postfix_()
3154 cleanup_tempfile_(tempfile, tempfilename); in simple_iterator_copy_file_postfix_()
3168 cleanup_tempfile_(tempfile, tempfilename); in simple_iterator_copy_file_postfix_()
3173 cleanup_tempfile_(tempfile, tempfilename); in simple_iterator_copy_file_postfix_()
3186 cleanup_tempfile_(tempfile, tempfilename); in simple_iterator_copy_file_postfix_()
3191 cleanup_tempfile_(tempfile, tempfilename); in simple_iterator_copy_file_postfix_()
3199 if(!transport_tempfile_(iterator->filename, tempfile, tempfilename, &iterator->status)) in simple_iterator_copy_file_postfix_()
3333 … *filename, const char *tempfile_path_prefix, FILE **tempfile, char **tempfilename, FLAC__Metadata… in open_tempfile_() argument
3338 if(0 == (*tempfilename = safe_malloc_(dest_len))) { in open_tempfile_()
3342 local_snprintf(*tempfilename, dest_len, "%s%s", filename, tempfile_suffix); in open_tempfile_()
3354 if(0 == (*tempfilename = safe_malloc_(dest_len))) { in open_tempfile_()
3358 local_snprintf(*tempfilename, dest_len, "%s/%s%s", tempfile_path_prefix, p, tempfile_suffix); in open_tempfile_()
3361 if(0 == (*tempfile = flac_fopen(*tempfilename, "w+b"))) { in open_tempfile_()
3369 FLAC__bool transport_tempfile_(const char *filename, FILE **tempfile, char **tempfilename, FLAC__Me… in transport_tempfile_() argument
3374 FLAC__ASSERT(0 != tempfilename); in transport_tempfile_()
3375 FLAC__ASSERT(0 != *tempfilename); in transport_tempfile_()
3384 cleanup_tempfile_(tempfile, tempfilename); in transport_tempfile_()
3391 if(0 != flac_rename(*tempfilename, filename)) { in transport_tempfile_()
3392 cleanup_tempfile_(tempfile, tempfilename); in transport_tempfile_()
3397 cleanup_tempfile_(tempfile, tempfilename); in transport_tempfile_()
3402 void cleanup_tempfile_(FILE **tempfile, char **tempfilename) in cleanup_tempfile_() argument
3409 if(0 != *tempfilename) { in cleanup_tempfile_()
3410 (void)flac_unlink(*tempfilename); in cleanup_tempfile_()
3411 free(*tempfilename); in cleanup_tempfile_()
3412 *tempfilename = 0; in cleanup_tempfile_()