aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/io (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-10fs/io/FileOutputStream: use CREATE_ALWAYS instead of TRUNCATE_EXISTINGMax Kellermann1-1/+1
Fixes yet another breakage of creating the database+state file on Windows.
2015-02-06fs/io/FileOutputStream: don't auto-delete file on WIN32Max Kellermann1-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.
2015-01-21fs/io/BufferedReader: count line numbersMax Kellermann2-2/+12
Replaces the dirty code in config/ConfigFile.cxx.
2015-01-14fs/io/FileOutputStream: add static method Create()Max Kellermann2-0/+13
2015-01-06fs/io/FileOutputStream: use O_TMPFILE if availableMax Kellermann2-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.
2015-01-05fs/io/File{Reader,OutputStream}: use OpenFile()Max Kellermann2-8/+7
2015-01-01Copyright year 2015Max Kellermann21-21/+21
2014-11-21configure.ac: add macro MPD_ENABLE_AUTO_PKGMax Kellermann2-4/+4
Simplify the definition of many build options.
2014-08-30*: add missing Compiler.h includesMax Kellermann7-0/+7
Necessary for "final" on gcc 4.6.
2014-08-11fs/io/TextFile: add method Check()Max Kellermann2-0/+16
2014-08-11fs/io/Reader: add "nonnull" attributeMax Kellermann1-0/+1
2014-08-11fs/io/TextFile: use AutoGunzipReaderMax Kellermann2-1/+23
Several MPD subsystems can now read gzipped files; for example, the database file can be gzipped.
2014-08-11fs/io/AutoGunzipReader: new classMax Kellermann2-0/+121
2014-08-11fs/io/PeekReader: new utility classMax Kellermann2-0/+112
2014-08-11fs/io/GzipOutputStream,GunzipReader: move zlib_domain to src/lib/zlib/Domain.cxxMax Kellermann4-8/+2
2014-08-08input/GunzipInputStream: new classMax Kellermann2-0/+171
2014-08-07fs/io/BufferedReader: new class to replace class TextFileMax Kellermann4-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.
2014-08-07fs/io/Reader: new interfaceMax Kellermann3-0/+216
2014-08-07fs/output, fs/TextFile: move to fs/io/Max Kellermann10-0/+820