diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-07-06 11:13:57 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-07-06 11:28:40 +0200 |
| commit | e7dabd3d87d89efe2fadbe1e21d03fbeb3cc68a6 (patch) | |
| tree | 9ed71627b9ad5002dc1688a04aef1be0e06cb8cf /util.h | |
| parent | 3708502761771e1af941dfb7f6dd44d97274accf (diff) | |
| download | vis-e7dabd3d87d89efe2fadbe1e21d03fbeb3cc68a6.tar.gz vis-e7dabd3d87d89efe2fadbe1e21d03fbeb3cc68a6.tar.xz | |
text: overhaul file load implementation
Files smaller than 8M are now copied into an internal buffer
upon load. Thus they can be safely truncated. Larger files are
memory mapped and use the file/virtual memory system as caching
layer. Hence truncating them will corrupt the file content.
Eventually the resulting SIGBUS should be handled gracefully.
Diffstat (limited to 'util.h')
0 files changed, 0 insertions, 0 deletions
