aboutsummaryrefslogtreecommitdiffhomepage
path: root/history.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-04-27 15:21:14 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-04-27 15:21:14 -0700
commit3e69e5b0820102bfc3c1422ba88ca51a8c8f1b9a (patch)
tree194c9fbe4f7ddb7ad834a776a8a61b3adbc38474 /history.h
parent330faab6cdd36b0ed8ead5d5e1329e0e71c6ab68 (diff)
Large set of changes to improve history atomicity on filesystems that do not support locking
Diffstat (limited to 'history.h')
-rw-r--r--history.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/history.h b/history.h
index 236b43d4..a19c8844 100644
--- a/history.h
+++ b/history.h
@@ -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;