• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/flac-1.2.1/src/libFLAC/

Lines Matching refs:tempfilename

127 static FLAC__bool simple_iterator_copy_file_prefix_(FLAC__Metadata_SimpleIterator *iterator, FILE **tempfile, char **tempfilename, FLAC__bool append);
128 static FLAC__bool simple_iterator_copy_file_postfix_(FLAC__Metadata_SimpleIterator *iterator, FILE **tempfile, char **tempfilename, int fixup_is_last_code, off_t fixup_is_last_flag_offset, FLAC__bool backup);
135 static FLAC__bool open_tempfile_(const char *filename, const char *tempfile_path_prefix, FILE **tempfile, char **tempfilename, FLAC__Metadata_SimpleIteratorStatus *status);
136 static FLAC__bool transport_tempfile_(const char *filename, FILE **tempfile, char **tempfilename, FLAC__Metadata_SimpleIteratorStatus *status);
137 static void cleanup_tempfile_(FILE **tempfile, char **tempfilename);
1399 char *tempfilename;
1412 if(!open_tempfile_(chain->filename, tempfile_path_prefix, &tempfile, &tempfilename, &status)) {
1414 cleanup_tempfile_(&tempfile, &tempfilename);
1419 cleanup_tempfile_(&tempfile, &tempfilename);
1438 cleanup_tempfile_(&tempfile, &tempfilename);
1443 cleanup_tempfile_(&tempfile, &tempfilename);
1450 if(!transport_tempfile_(chain->filename, &tempfile, &tempfilename, &status))
2904 char *tempfilename;
2928 if(!simple_iterator_copy_file_prefix_(iterator, &tempfile, &tempfilename, append))
2933 cleanup_tempfile_(&tempfile, &tempfilename);
2938 cleanup_tempfile_(&tempfile, &tempfilename);
2943 if(!simple_iterator_copy_file_postfix_(iterator, &tempfile, &tempfilename, fixup_is_last_code, fixup_is_last_flag_offset, block==0))
3032 FLAC__bool simple_iterator_copy_file_prefix_(FLAC__Metadata_SimpleIterator *iterator, FILE **tempfile, char **tempfilename, FLAC__bool append)
3040 if(!open_tempfile_(iterator->filename, iterator->tempfile_path_prefix, tempfile, tempfilename, &iterator->status)) {
3041 cleanup_tempfile_(tempfile, tempfilename);
3045 cleanup_tempfile_(tempfile, tempfilename);
3052 FLAC__bool simple_iterator_copy_file_postfix_(FLAC__Metadata_SimpleIterator *iterator, FILE **tempfile, char **tempfilename, int fixup_is_last_code, off_t fixup_is_last_flag_offset, FLAC__bool backup)
3058 cleanup_tempfile_(tempfile, tempfilename);
3063 cleanup_tempfile_(tempfile, tempfilename);
3077 cleanup_tempfile_(tempfile, tempfilename);
3082 cleanup_tempfile_(tempfile, tempfilename);
3095 cleanup_tempfile_(tempfile, tempfilename);
3100 cleanup_tempfile_(tempfile, tempfilename);
3108 if(!transport_tempfile_(iterator->filename, tempfile, tempfilename, &iterator->status))
3215 FLAC__bool open_tempfile_(const char *filename, const char *tempfile_path_prefix, FILE **tempfile, char **tempfilename, FLAC__Metadata_SimpleIteratorStatus *status)
3219 if(0 == (*tempfilename = (char*)safe_malloc_add_3op_(strlen(filename), /*+*/strlen(tempfile_suffix), /*+*/1))) {
3223 strcpy(*tempfilename, filename);
3224 strcat(*tempfilename, tempfile_suffix);
3233 if(0 == (*tempfilename = (char*)safe_malloc_add_4op_(strlen(tempfile_path_prefix), /*+*/strlen(p), /*+*/strlen(tempfile_suffix), /*+*/2))) {
3237 strcpy(*tempfilename, tempfile_path_prefix);
3238 strcat(*tempfilename, "/");
3239 strcat(*tempfilename, p);
3240 strcat(*tempfilename, tempfile_suffix);
3243 if(0 == (*tempfile = fopen(*tempfilename, "w+b"))) {
3251 FLAC__bool transport_tempfile_(const char *filename, FILE **tempfile, char **tempfilename, FLAC__Metadata_SimpleIteratorStatus *status)
3256 FLAC__ASSERT(0 != tempfilename);
3257 FLAC__ASSERT(0 != *tempfilename);
3266 cleanup_tempfile_(tempfile, tempfilename);
3273 if(0 != rename(*tempfilename, filename)) {
3274 cleanup_tempfile_(tempfile, tempfilename);
3279 cleanup_tempfile_(tempfile, tempfilename);
3284 void cleanup_tempfile_(FILE **tempfile, char **tempfilename)
3291 if(0 != *tempfilename) {
3292 (void)unlink(*tempfilename);
3293 free(*tempfilename);
3294 *tempfilename = 0;