physfs/src
Ryan C. Gordon 20da8fab65 PHYSFS_flush() shouldn't call PHYSFS_Io::flush().
The former is meant to send PhysicsFS-buffered data to the PHYSFS_Io's
implementation, the latter is meant to tell the OS to definitely make sure the
data is safely written to disk (or at least, that's what it does in practice).

This was making PHYSFS_setBuffer()'d handles _slower_, since they would end
up blocking whenever the buffer was full until the data made the full trip to
physical media, instead of just letting the OS do its own buffering.

Now we still PHYSFS_Io::flush() on PHYSFS_close(), like this has always
worked. That might also be overkill, but that remains a historical artifact
of trying to keep the underlying file handle usable if pending writes fail
for possibly-recoverable reasons (which isn't guaranteed if you just close()
it, at least as far as I remember).
(transplanted from 8b3cc36531c6ac09dbac98d3774921bdf14b240d)
2018-11-27 23:53:33 -05:00
..
physfs.c PHYSFS_flush() shouldn't call PHYSFS_Io::flush(). 2018-11-27 23:53:33 -05:00
physfs.h Fix up physfs.h for compilers that are sensitive about preprocessor defines. 2018-04-19 10:06:38 -04:00
physfs_archiver_7z.c 7zip: don't forget to destroy the PHYSFS_Io when closing the archive! 2018-03-08 11:47:42 -05:00
physfs_archiver_dir.c Fixed mounting a symlink to a real directory. 2017-10-26 14:21:36 -04:00
physfs_archiver_grp.c Archivers can now specify whether an archive definitely was intended for them. 2017-08-14 02:28:00 -04:00
physfs_archiver_hog.c Archivers can now specify whether an archive definitely was intended for them. 2017-08-14 02:28:00 -04:00
physfs_archiver_iso9660.c Fixed some infinite loops that a maliciously-crafted .iso can trigger. 2017-10-23 14:58:54 -04:00
physfs_archiver_mvl.c Archivers can now specify whether an archive definitely was intended for them. 2017-08-14 02:28:00 -04:00
physfs_archiver_qpak.c Archivers can now specify whether an archive definitely was intended for them. 2017-08-14 02:28:00 -04:00
physfs_archiver_slb.c Archivers can now specify whether an archive definitely was intended for them. 2017-08-14 02:28:00 -04:00
physfs_archiver_unpacked.c Update filename comments. 2017-07-22 13:19:57 -04:00
physfs_archiver_vdf.c vdf: Don't add directories; UNPK_addEntry()/DirTree will fill in parents. 2017-09-03 13:13:51 -04:00
physfs_archiver_wad.c Archivers can now specify whether an archive definitely was intended for them. 2017-08-14 02:28:00 -04:00
physfs_archiver_zip.c Fixed crash when duplicating PHYSFS_Io for zipfiles. 2017-10-23 12:16:51 -04:00
physfs_byteorder.c Cleanup BAIL_* and GOTO_* macros to be less cluttered. 2017-07-06 11:51:41 -04:00
physfs_casefolding.h utf8: big improvements to case-insensitive UTF-8 string compare. 2017-08-11 01:39:22 -04:00
physfs_internal.h Fixed mounting a symlink to a real directory. 2017-10-26 14:21:36 -04:00
physfs_lzmasdk.h Made physfs_lzmasdk.h's include-once blockers match other files' formatting. 2017-08-11 01:29:38 -04:00
physfs_miniz.h Fixed miniz code that triggers recent GCCs' -Wmisleading-indentation. 2016-08-26 18:46:11 -04:00
physfs_platform_apple.m apple: Patched to compile with older (mac 10.7) SDKs (thanks, Ken and Ryan!). 2018-03-24 00:19:59 -04:00
physfs_platform_haiku.cpp haiku: CD-ROM detection should report any mounted volume on a B_CD device. 2017-08-10 12:31:06 -04:00
physfs_platform_os2.c Fixed mounting a symlink to a real directory. 2017-10-26 14:21:36 -04:00
physfs_platform_posix.c Fixed mounting a symlink to a real directory. 2017-10-26 14:21:36 -04:00
physfs_platform_qnx.c qnx: Added more proper support for QNX. 2017-08-16 20:02:54 -04:00
physfs_platform_unix.c Cleaned up some header inclusion politics. 2017-08-16 20:03:24 -04:00
physfs_platform_windows.c windows: Workaround GetUserProfileDirectory's API change in Win10 build 1809. 2018-10-03 22:40:57 -04:00
physfs_platform_winrt.cpp windows: Disable _CRT_SECURE_NO_WARNINGS again. 2017-08-16 21:19:16 -04:00
physfs_platforms.h qnx: Added more proper support for QNX. 2017-08-16 20:02:54 -04:00
physfs_unicode.c Made PHYSFS_caseFold() a public API. 2017-08-20 02:02:08 -04:00