/* This version uses tmpfile(), which constructs a suitable file name behind the scenes. We don't have to use info->temp_name at all; indeed, we can't even find out the actual name of the temp file.  */
jpeg_open_backing_store(j_common_ptr cinfo, backing_store_ptr info, long total_bytes_needed)
/* This version uses tmpfile(), which constructs a suitable file name behind the scenes. We don't have to use info->temp_name at all; indeed, we can't even find out the actual name of the temp file.  */
jpeg_open_backing_store(j_common_ptr cinfo, backing_store_ptr info, long total_bytes_needed)
{
  if ((info->temp_file = getTempFile()) == NULL)
    ERREXITS(cinfo, JERR_TFILE_CREATE, "");
  info->read_backing_store = read_backing_store;
  info->write_backing_store = write_backing_store;
  info->close_backing_store = close_backing_store;
}