Commit Graph

19 Commits

Author SHA1 Message Date
Martchus 1154ed4d1c Improve exception messages of NativeFileStream
So one gets e.g. "open failed: Permission denied" instead of
just "open failed: iostream error".
2020-02-14 17:13:05 +01:00
Martchus 5bed21c9d2 Improve NativeFileStream
* Expose native file descriptor/handle to be able to
  use native APIs like POSIX sendfile()
* Fix using Boost.Iostreams under Windows
    * Make it compile
    * Workaround issue with append flag
2019-08-13 00:28:25 +02:00
Martchus 6b1a9cec01 Fix build with NativeFileStream for Windows 2019-06-25 10:20:48 +02:00
Martchus b48b2f5c06 Have everything in one top-level namespace 2019-06-10 21:56:46 +02:00
Marius Kittler 132f936c57 Remove workaround for GCC Bug 66145 2019-04-13 20:33:39 +02:00
Marius Kittler 07a74d5fa8 Rename openFromFileDescriptor() to open() 2019-04-13 20:33:39 +02:00
Martchus da0cf4ff29 Fix build under Android platform >= 24
This alters the ABI but it is ok since with that config
a build was previously impossible anyways.
2019-02-04 00:40:50 +01:00
Martchus 82816d7653 Fix creating new file if using NativeFileStream with ios_base::out 2018-11-02 23:06:30 +01:00
Martchus 7c4cd6ee7d Set permissions to 644 when creating a file via open() 2018-10-07 19:16:41 +02:00
Martchus 7b04bd8ef5 Fix building NativeFileStream with libc++
Note: std::iostream has no default c'tor according to
the standard (although a protected default c'tor is
provided by libstdc++).
2018-10-07 19:13:57 +02:00
Martchus 5356d793fc Make all tests pass under Windows
* Workaround some issues
* Disable some tests (better than not running tests
  at all)
2018-10-03 22:37:55 +02:00
Martchus 8e3c40abb5 Make conversion from multi byte to wide string generic 2018-10-03 21:26:41 +02:00
Martchus 749eea2ab6 Support NativeFileStream via Boost.Iostreams
So it can also be enabled when not using libstdc++.
2018-09-30 13:55:30 +02:00
Martchus 5c9a834236 Implement NativeFileStream under Unix/Linux/Android as well
* Like the Windows implementation this is disabled by default and
  can be enabled via compile-time switch which will affect the ABI.
* Add support for opening a file from a file descriptor.
2018-09-05 00:21:40 +02:00
Martchus df7a3ee93c Apply clang-format from LLVM 6 2018-03-24 17:00:30 +01:00
Martchus db46948f2f Apply clang-format 2017-05-04 22:44:15 +02:00
Martchus 59e20b1043 Apply clang-format 2017-05-01 03:13:11 +02:00
Steven Penny 025be1e54e io/nativefilestream.cpp: proper catchiofailure.h include
1. Using <> makes no sense if cpp-utilities is being built for first time

2. Again, search in <prefix>/c++utilities/io makes no sense if cpp-utilities is
   being built for first time
2016-12-29 22:16:38 -06:00
Martchus 9d91cfca07 Add NativeFileStream to support unicode filenames under Windows 2016-12-21 00:29:57 +01:00