diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-04-27 15:21:14 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-04-27 15:21:14 -0700 |
commit | 3e69e5b0820102bfc3c1422ba88ca51a8c8f1b9a (patch) | |
tree | 194c9fbe4f7ddb7ad834a776a8a61b3adbc38474 /history.h | |
parent | 330faab6cdd36b0ed8ead5d5e1329e0e71c6ab68 (diff) |
Large set of changes to improve history atomicity on filesystems that do not support locking
Should address https://github.com/fish-shell/fish-shell/issues/685
Diffstat (limited to 'history.h')
-rw-r--r-- | history.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -175,6 +175,9 @@ private: /** Saves history */ void save_internal(bool vacuum); + /* Do a private, read-only map of the entirety of a history file with the given name. Returns true if successful. Returns the mapped memory region by reference. */ + bool map_file(const wcstring &name, const char **out_map_start, size_t *out_map_len, file_id_t *file_id); + /** Whether we're in maximum chaos mode, useful for testing */ bool chaos_mode; |