Commit graph

12 commits

Author SHA1 Message Date
Henrik Rydgård
9e75250c4e Android: Do the same file_offset_bits checks for pread64 as before. Should help #10901 2018-04-11 13:45:18 +02:00
Unknown W. Brackets
7dbd2cecd8 Android: Avoid pread64 for > 2GB offsets.
Appears to not actually work as advertised.  See #10862.
2018-04-08 08:14:07 -07:00
Simonas Kazlauskas
ee00815da3 Fix Windows XP support in LocalFileLoader
Because that junk from 50 years ago still matters to people, apparently.
2017-07-01 13:21:34 +03:00
Unknown W. Brackets
9dced68812 Core: Buildfix. 2017-06-24 14:19:25 -07:00
Unknown W. Brackets
9550771994 Core: Windows buildfix. 2017-06-24 11:58:25 -07:00
Simonas Kazlauskas
0c8faeb3ea Fix windows build 2017-06-24 21:23:52 +03:00
Simonas Kazlauskas
55c193ce78 Remove use of C file api in LocalFileLoader
Instead use native system calls.
2017-06-24 21:07:37 +03:00
Simonas Kazlauskas
3f63c29736 Also support atomic windows readAt 2017-06-23 18:40:00 +03:00
Simonas Kazlauskas
3c3596dbf2 Make the Loader API thread-safe
Since the majority of the code is using ReadAt API already, map this to
a `readp` "syscall" which does not mutate any state about the file
descriptor therefore making it fairly safe multi-threading wise.

This allows to get rid of read-time mutexes in RamCachedFileLoader and
therefore fixes #9803
2017-06-23 17:23:43 +03:00
Florent Castelli
70593d1004 android: Change preprocessor define to standard __ANDROID__
ANDROID is only standard to the old Makefile buildsystem, not the platform.
2016-10-12 11:14:09 +02:00
Unknown W. Brackets
65c7d0bd04 Add uncached flag for file loader reads.
This allows us to indicate that a read need not be cached.
2016-07-04 12:07:15 -07:00
Unknown W. Brackets
da827d9ef0 Move file loader code into directories.
Not making sense to put these all in the same fiel anymore.
2015-07-02 20:58:53 -07:00