• Home
  • Raw
  • Download

Lines Matching refs:tempfilename

187 static FLAC__bool open_tempfile_(const char *filename, FILE **tempfile, char **tempfilename)  in open_tempfile_()  argument
192 *tempfilename = malloc(dest_len); in open_tempfile_()
193 if (*tempfilename == NULL) in open_tempfile_()
195 safe_strncpy(*tempfilename, filename, dest_len); in open_tempfile_()
196 safe_strncat(*tempfilename, tempfile_suffix, dest_len); in open_tempfile_()
198 *tempfile = flac_fopen(*tempfilename, "wb"); in open_tempfile_()
205 static void cleanup_tempfile_(FILE **tempfile, char **tempfilename) in cleanup_tempfile_() argument
212 if (*tempfilename != NULL) { in cleanup_tempfile_()
213 (void)flac_unlink(*tempfilename); in cleanup_tempfile_()
214 free(*tempfilename); in cleanup_tempfile_()
215 *tempfilename = 0; in cleanup_tempfile_()
219 static FLAC__bool transport_tempfile_(const char *filename, FILE **tempfile, char **tempfilename) in transport_tempfile_() argument
223 FLAC__ASSERT(0 != tempfilename); in transport_tempfile_()
224 FLAC__ASSERT(0 != *tempfilename); in transport_tempfile_()
234 cleanup_tempfile_(tempfile, tempfilename); in transport_tempfile_()
239 if(0 != flac_rename(*tempfilename, filename)) { in transport_tempfile_()
240 cleanup_tempfile_(tempfile, tempfilename); in transport_tempfile_()
244 cleanup_tempfile_(tempfile, tempfilename); in transport_tempfile_()
326 char *tempfilename; in write_chain_() local
333 if(!open_tempfile_(filename, &tempfile, &tempfilename)) { in write_chain_()
335 cleanup_tempfile_(&tempfile, &tempfilename); in write_chain_()
346 if(!transport_tempfile_(filename, &tempfile, &tempfilename)) in write_chain_()