search for: setendoffil

Displaying 12 results from an estimated 12 matches for "setendoffil".

Did you mean: setendoffile
2005 May 19
1
problems with truncate() with files > 2Gb under Windows (possibly (PR#7879)
...truncate files at a position > 2Gb. This appears to be due to the use of the Windows function chsize() in file_truncate() in main/connections.c (chsize() takes a long int specification of the file size, so we would not expect it to work for positions > 2Gb). The Windows API has the function SetEndOfFile(handle) that is supposed to truncate the file to the current position. However, this function does not seem to function correctly when the current position is beyond 2Gb, so it is not improvement on chsize() (at least under Windows 2000). My explorations with Windows 2000 SP2 and XP Prof SP1 in...
2014 Sep 26
4
Patch to add buffering to decoding too
...ata->format_block && i != d->foreign_metadata->audio_block) + size.QuadPart += d->foreign_metadata->blocks[i].size; + } + } + + if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* tell filesystem the expected filesize to eliminate fragmentation */ + SetEndOfFile(fh); + } + CloseHandle(fh); + } + } +#endif if(!write_iff_headers(d->fout, d, d->total_samples)) { d->abort_flag = true; return false;
2014 Sep 27
0
Patch to add buffering to decoding too
...WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + if(fh != INVALID_HANDLE_VALUE) { + if(GetFileType(fh) == FILE_TYPE_DISK) { + LARGE_INTEGER size; + size.QuadPart = written_size; + if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* correct the file size */ + SetEndOfFile(fh); + } + CloseHandle(fh); + } + } + } +#endif fclose(d->fout); if(error_occurred) flac_unlink(d->outfilename); @@ -364,6 +381,32 @@ FLAC__bool DecoderSession_process(DecoderSession *d) } } +#ifdef _WIN32 + if(!d->analysis_mode && !d->test_only...
2001 May 03
1
problem with United Devices Agent
Hello I have same problem like that one from month or two ago: UD Agent refuses to run giving "invalid picture" error. I have applied patch (posted recently by Gerard Patel) to Wine-20010305 but nothing happend - same error. Then I gave a try to Wine-20010418 - unpatched/patched(manually) - same story. If someone has any ideas I would be very grateful. For those who want to or can help:
2016 Feb 09
2
Compilation failure using mingw-w64 and gcc-5.3.0
...e size */ ^ decode.c:275:43: error: 'FILE_CURRENT' undeclared (first use in this function) if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* correct the file size */ ^ decode.c:276:8: warning: implicit declaration of function 'SetEndOfFile' [-Wimplicit-function-declaration] SetEndOfFile(fh); ^ decode.c:276:8: warning: nested extern declaration of 'SetEndOfFile' [-Wnested-externs] decode.c:278:6: warning: implicit declaration of function 'CloseHandle' [-Wimplicit-function-declaration] CloseHa...
2005 May 19
0
problems with truncate() with files > 2Gb under Windows (PR#7880)
...tion > 2Gb. This appears to be due to the use of the Windows > function chsize() in file_truncate() in main/connections.c (chsize() > takes a long int specification of the file size, so we would not expect > it to work for positions > 2Gb). > > The Windows API has the function SetEndOfFile(handle) that is > supposed to truncate the file to the current position. However, this > function does not seem to function correctly when the current position > is beyond 2Gb, so it is not improvement on chsize() (at least under > Windows 2000). My explorations with Windows 2000 SP2...
2016 Feb 08
2
Compilation failure using mingw-w64 and gcc-5.3.0
Hello, Upon compiling the flac tree today, after many successful compilations over the last few weeks, a new error is appearing before compilation bails out. This is a cross-compilation using gcc-5.3.0 running on GNU/Linux, with the objects being built for a mingw-w64-x86_64 host. Among other things, the compiler is looking for windows_unicode_filenames.h but it isn't there. Also, I'm
2006 Aug 06
2
File fragmentation
I've been running some tests on files created by rsync and noticing fragmentation issues. I started the testing because our 5TB array started performing very slowly and it appears fragmentation was the culprit. The test I conducted was straighforward: 1. Copy over a 49GB file. Analyzed with contig (from sysinternals), no fragments. 2. Ran rsync and the file was recreated normally (rsync
2014 Sep 26
0
Patch to add buffering to decoding too
...ata->format_block && i != d->foreign_metadata->audio_block) + size.QuadPart += d->foreign_metadata->blocks[i].size; + } + } + + if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* tell filesystem the expected filesize to eliminate fragmentation */ + SetEndOfFile(fh); + } + CloseHandle(fh); + } + } +#endif if(!write_iff_headers(d->fout, d, d->total_samples)) { d->abort_flag = true; return false;
2008 Apr 03
1
combining --preallocate and --fuzzy
Greetings, I would like to write a patch for rsync but need some help getting started. Here is my situation. I am using cwrsync to copy files from one Windows server to another Windows server. One file that I need to backup is 130 GB. The daily changes occur all throughout the file, not just at the end of the file. File names look like this: Db_20080402_0003_DB.BAK Db_20080403_0003_DB.BAK
2014 Sep 26
3
Patch to add buffering to decoding too
Can you please wrap the setvbuf in _WIN32 IFDEFs too? Currently memory usage of FLAC decoding is about 1MB, so this patch is increasing memory usage tenfold, also for platforms that do not need this. It is a non-problem on my system anyway. Op 26-09-14 om 10:36 schreef Janne Hyv?rinen: > I made some changes to the previous patch. I don't know why I > originally didn't put the
2014 Sep 25
2
Patch to add buffering to decoding too
Decoding flac files is also prone to producing fragmented files. NTFS has the ability to completely avoid fragmentation if it is told the file size before hand, but that would require using special Windows-only functions. Increasing the write buffer from the default 512 bytes to 10 MB already reduces the problem tremendously. -------------- next part -------------- diff --git