aboutsummaryrefslogtreecommitdiff
path: root/zenstore/basicfile.cpp
Commit message (Collapse)AuthorAgeFilesLines
* If open(O_CREAT) is used then a file mode must be givenMartin Ridgers2022-02-211-2/+2
|
* Explicitly set access permissions so we're not affected by process' umaskMartin Ridgers2022-02-211-2/+7
|
* Marked a few file descriptors to be closed on execute (POSIX)Martin Ridgers2022-02-211-2/+2
|
* Converted use of _format UDL to fmt::formatMartin Ridgers2022-01-101-5/+3
|
* Enabled POSIX-compatible implementations on MacMartin Ridgers2022-01-071-6/+2
|
* Missing includeMartin Ridgers2022-01-071-0/+1
|
* Merged main.Per Larsson2021-12-141-0/+86
|\
| * Do not block when trying to lock a lock file (POSIX)Martin Ridgers2021-12-021-1/+1
| |
| * Remove a LockFile's lock on destructionMartin Ridgers2021-12-021-0/+6
| |
| * Alphebetical include orderMartin Ridgers2021-10-281-1/+1
| |
| * LockFile implementation for LinuxMartin Ridgers2021-10-281-0/+22
| |
| * Merged mainMartin Ridgers2021-10-281-0/+48
| |\ | |/ |/|
| * open() flags were incorrect and it would not create new filesMartin Ridgers2021-10-251-1/+1
| |
| * Merged mainMartin Ridgers2021-10-151-1/+1
| |\
| * | Implemented basicfile.cpp for POSIX platformsMartin Ridgers2021-10-141-0/+54
| | |
| * | Moved zencore/windows.h include from basicfile.h to basicfile.cppMartin Ridgers2021-10-131-0/+4
| | |
* | | Lockfile implementation (#24)Stefan Boberg2021-10-271-0/+48
| |/ |/| | | | | | | Implemented lockfile synchronization To be used instead of or in conjunction with existing events to coordinate launching and discovery of server instances
* | clang-formatStefan Boberg2021-10-151-1/+1
|/
* basicfile: Added Write member functions accepting MemoryView for convenienceStefan Boberg2021-10-081-0/+12
|
* Various BasicFile improvementsStefan Boberg2021-09-261-22/+88
| | | | | | | * BasicFile::Open clears error_code on entry, and exits early on failure to avoid initialization of m_FileHandle * Made BasicFile::Read handle large reads * Made BasicFile::Write handle large writes * Added BasicFile::WriteAll which may be optimized in the future to handle what is essentially a file copy more efficiently
* Added TemporaryFile implementation, provides a simple abstraction around ↵Stefan Boberg2021-09-251-1/+83
| | | | temporary files
* It's not possible to compile out testsStefan Boberg2021-09-201-1/+5
| | | | Tests are now compiled in if `ZEN_WITH_TESTS=1`, and compiled out if not. Compiling tests out reduces the footprint of the resulting executables quite significantly.
* Implemented BasicFile::StreamByteRangeStefan Boberg2021-09-191-2/+8
|
* Added BasicFile::StreamFile helper function to support reading large files ↵Stefan Boberg2021-09-191-0/+23
| | | | in a chunked fashion (will be using memory-mapped strategy in the future where it makes sense)
* Changed BasicFile implementationStefan Boberg2021-09-191-17/+73
| | | | | | * No longer uses ATL on Windows (we just use raw Win32 API) * Added non-throwing Open() implementation * Added beginnings of a test suite, for verifying cross-platform implementation
* Implemented support for dropping z$ buckets while onlineStefan Boberg2021-08-171-0/+6
|
* clang-formatStefan Boberg2021-05-221-1/+3
|
* Fixed up error reporting in BasicFile, now uses ThrowSystemException() to ↵Stefan Boberg2021-05-211-6/+5
| | | | correctly report the HRESULT error code which would previously always be zero
* Renamed CasBlobFile -> BasicFileStefan Boberg2021-05-211-6/+6
|
* Moved CasBlobFile into basicfile.hStefan Boberg2021-05-211-0/+85