aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-28fs/CheckFile: convert path to UTF-8 for error messageMax Kellermann1-6/+11
2015-02-28fs/FileInfo: use GetFileAttributesEx() on WIN32Max Kellermann1-1/+49
2015-02-28fs/FileSystem: remove unused WIN32 port of StatFile()Max Kellermann1-5/+4
2015-02-28fs/FileInfo: new library providing GetFileInfo()Max Kellermann2-8/+114
Replaces StatFile(), with a portable data object.
2015-02-28fs/Path: make IsAbsolute() constMax Kellermann2-2/+2
2015-02-27fs/FileSystem: use GetFileAttributes() on WIN32 if possibleMax Kellermann1-2/+20
2015-02-27fs/FileSystem: merge CheckAccess() into PathExists()Max Kellermann1-16/+6
PathExists() should better do what CheckAccess() does, and CheckAccess() doesn't do what its name implies.
2015-02-26fs/DirectoryReader: use FindFirstFile(), FindNextFile() on WIN32Max Kellermann1-0/+85
2015-02-25fs/Traits: add constant CURRENT_DIRECTORYMax Kellermann3-2/+7
2015-02-25fs/AllocatedPath: add nullptr_t constructorMax Kellermann1-1/+3
2015-02-25fs/{Allocated,}Path,Charset: use PathTraitsFS typedefsMax Kellermann6-21/+19
2015-02-25fs/FileSystem: remove unused FOpenModesMax Kellermann1-20/+0
2015-02-25fs/io/File{Reader,OutputStream}: convert path to UTF-8 for error messageMax Kellermann2-7/+18
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-09fs/Charset: convert #ifdef to regular "if"Max Kellermann1-3/+5
2015-02-08fs/Charset: change FixSeparators() API to use std::string&&Max Kellermann1-11/+6
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-21config/Option: convert to strictly-typed enumMax Kellermann1-1/+1
2015-01-14fs/io/FileOutputStream: add static method Create()Max Kellermann2-0/+13
2015-01-13fs/AllocatedPath: add operator==Max Kellermann1-0/+10
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 Kellermann42-42/+42
2014-12-26fs/Traits, ...: work around -Wtautological-pointer-compareMax Kellermann1-0/+16
New in clang 3.6.
2014-12-26util/{ASCII,UriUtil}, ...: work around -Wtautological-pointer-compareMax Kellermann2-0/+12
New in clang 3.6.
2014-12-02fs/Path: add methods GetBase() and GetDirectoryName()Max Kellermann2-0/+46
2014-12-01lib/icu/Converter: add ICU-based backendMax Kellermann1-1/+1
2014-11-30fs/Config: add HAVE_GLIB checkMax Kellermann1-1/+1
2014-11-30fs/Config: swap #if/#elseMax Kellermann1-7/+7
2014-11-30fs/Charset: move code to wrapper class IcuConverterMax Kellermann1-64/+13
Prepare for a ICU-based backend without GLib.
2014-11-30fs/Charset: return std::string from PathFromUTF8()Max Kellermann4-31/+9
Don't expose pointer that requires the caller to invoke g_free(), because that's GLib-only.
2014-11-30fs/Charset: use macro HAVE_FS_CHARSET internallyMax Kellermann1-4/+4
2014-11-29fs/Charset: add DeinitFSCharset()Max Kellermann4-0/+19
2014-11-29fs/Charset: add macro HAVE_FS_CHARSETMax Kellermann4-3/+7
2014-11-29fs/Charset: return Error on SetFSCharset() failureMax Kellermann4-16/+33
Don't abort the process, let the caller decide instead.
2014-11-29fs/Config: remove bogus WIN32 checkMax Kellermann1-1/+1
2014-11-28Compiler.h: exclude clang from GCC_CHECK_VERSION()Max Kellermann1-1/+1
2014-11-21configure.ac: add macro MPD_ENABLE_AUTO_PKGMax Kellermann2-4/+4
Simplify the definition of many build options.
2014-11-11Construct a Null AllocatedPath if the filename conversion into UTF8 failedFlorent Le Coz1-1/+5
2014-10-25fs/Charset: work around clang's -Wunused-const-variableMax Kellermann1-1/+2
MPD_PATH_MAX_UTF8 is only used by GLib-specific code currently.
2014-10-10fs/Traits: use value_typeMax Kellermann1-4/+4
2014-09-28fs/AllocatedPath: add method Steal()Max Kellermann1-0/+8
2014-09-28fs/AllocatedPath: API documentation grammar fixesMax Kellermann1-5/+5
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