aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/io (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fs/io/File{Reader,OutputStream}: convert path to UTF-8 for error messageMax Kellermann2015-02-252-7/+18
|
* fs/io/FileOutputStream: use CREATE_ALWAYS instead of TRUNCATE_EXISTINGMax Kellermann2015-02-101-1/+1
| | | | | Fixes yet another breakage of creating the database+state file on Windows.
* Merge tag 'v0.19.9'Max Kellermann2015-02-061-0/+2
|\
| * fs/io/FileOutputStream: don't auto-delete file on WIN32Max Kellermann2015-02-061-0/+2
| | | | | | | | | | | | | | | | | | The file handle is never reset to INVALID_HANDLE_VALUE, and thus the destructor will assume the operation shall be cancelled and will delete the temporary file. This was a major breakage for saving the database file and the state file.
* | fs/io/BufferedReader: count line numbersMax Kellermann2015-01-212-2/+12
| | | | | | | | Replaces the dirty code in config/ConfigFile.cxx.
* | fs/io/FileOutputStream: add static method Create()Max Kellermann2015-01-142-0/+13
| |
* | fs/io/FileOutputStream: use O_TMPFILE if availableMax Kellermann2015-01-062-7/+67
| | | | | | | | | | | | The Linux feature allows writing new files to an invisible file, and then replace the old file. This preserves the old file if we get interrupted by some event.
* | fs/io/File{Reader,OutputStream}: use OpenFile()Max Kellermann2015-01-052-8/+7
| |
* | Copyright year 2015Max Kellermann2015-01-0121-21/+21
| |
* | configure.ac: add macro MPD_ENABLE_AUTO_PKGMax Kellermann2014-11-212-4/+4
|/ | | | Simplify the definition of many build options.
* *: add missing Compiler.h includesMax Kellermann2014-08-307-0/+7
| | | | Necessary for "final" on gcc 4.6.
* fs/io/TextFile: add method Check()Max Kellermann2014-08-112-0/+16
|
* fs/io/Reader: add "nonnull" attributeMax Kellermann2014-08-111-0/+1
|
* fs/io/TextFile: use AutoGunzipReaderMax Kellermann2014-08-112-1/+23
| | | | | Several MPD subsystems can now read gzipped files; for example, the database file can be gzipped.
* fs/io/AutoGunzipReader: new classMax Kellermann2014-08-112-0/+121
|
* fs/io/PeekReader: new utility classMax Kellermann2014-08-112-0/+112
|
* fs/io/GzipOutputStream,GunzipReader: move zlib_domain to src/lib/zlib/Domain.cxxMax Kellermann2014-08-114-8/+2
|
* input/GunzipInputStream: new classMax Kellermann2014-08-082-0/+171
|
* fs/io/BufferedReader: new class to replace class TextFileMax Kellermann2014-08-074-57/+177
| | | | | | | The new class is pluggable, to prepare for gzipped database files. For now, the TextFile class remains, and will be refactored away later.
* fs/io/Reader: new interfaceMax Kellermann2014-08-073-0/+216
|
* fs/output, fs/TextFile: move to fs/io/Max Kellermann2014-08-0710-0/+820