Commit Graph

23 Commits

Author SHA1 Message Date
300ae9df73 win32/windows: add a defensive windows wrapper header 2018-08-27 14:16:27 +10:00
676154d652 io_win32: test return of GetFileSize for errors 2018-08-23 13:59:14 +10:00
058a86ba05 win32/handle: take ownership of any supplied fd
CloseHandle, close, and memory mapping interact poorly so it's a little safer
to dup the fd before taking ownership of it.
2018-08-22 21:34:02 +10:00
2eb1f2b919 io_win32: use try_func when dispatching mapped_file 2018-08-14 16:48:20 +10:00
b60aaccf6f build; fix compilation errors under win32
win32 builds are still totally unsupported, untested, and functionally
broken.
2018-08-13 14:52:40 +10:00
f6056153e3 rename root namespace from util to cruft
This places, at long last, the core library code into the same namespace
as the extended library code.
2018-08-05 14:42:02 +10:00
803acc9a87 relicense under MPL-2.0 2018-08-04 15:14:06 +10:00
77c88438d4 except: move posix/win32 exceptions to own units 2017-12-18 15:46:52 +11:00
34788756d2 build: don't use './' as an include prefix
GCC produces ODR error when including paths of the form './foo' and
'foo' in the same binary. Rather than managing duplication we just
universally pick the absolute form over the relative form.
2017-11-22 16:49:37 +11:00
67f2aee701 io_win32: rename util::fd to posix::fd 2016-11-17 18:38:08 +11:00
48364cd227 build: use experimental::fs over boost::fs 2016-10-07 19:48:42 +11:00
98c09df7f9 io: add win32 fd constructor to mapped_file 2016-08-25 12:04:55 +10:00
0b128384eb io: add lval ref-qualifiers to mapped_file members 2016-06-28 14:23:42 +10:00
8c5c98f5cc io: add const begin/end to mapped_file 2016-06-28 14:14:23 +10:00
94dc6274dc io_win32: commenting style 2016-06-28 14:12:44 +10:00
d0e0ee3981 io_win32: add mapped_file::empty implementation 2016-04-27 17:05:46 +10:00
57058ab20f io_win32: make mapping checks more robust
fixes zero length mapping errors
2016-04-27 17:04:56 +10:00
cc001c4788 win32/handle: merge various handle wrapper classes 2016-04-27 17:01:45 +10:00
80158b7343 io: remove our wrapper flag types 2016-04-05 11:07:23 +10:00
b6ce75aca6 build: windows fixes 2015-07-23 13:53:48 +10:00
2658b41ea1 relicence under Apache-2.0 2015-04-13 18:05:28 +10:00
7c55029040 mapped_file: remove win32 debug output 2015-01-07 16:00:25 +11:00
7d5eac3f2f io: move mapped_file to platform subfiles 2014-12-19 18:28:50 +11:00