summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/syscalls.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-12-02 03:26:51 +0100
committerAdam Borowski <kilobyte@angband.pl>2010-12-02 03:26:51 +0100
commit4180ca9b4b34b5f5499836cc400a4b585cf0c521 (patch)
tree35507284cd13dbeb83b60ae1812d23d8127aff88 /crawl-ref/source/syscalls.h
parenta82b27b5ab384984099007781721599b331071d6 (diff)
downloadcrawl-ref-4180ca9b4b34b5f5499836cc400a4b585cf0c521.tar.gz
crawl-ref-4180ca9b4b34b5f5499836cc400a4b585cf0c521.zip
Implement file locking on Windows.
Diffstat (limited to 'crawl-ref/source/syscalls.h')
-rw-r--r--crawl-ref/source/syscalls.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/syscalls.h b/crawl-ref/source/syscalls.h
index ba949af83f..5b5d1638f6 100644
--- a/crawl-ref/source/syscalls.h
+++ b/crawl-ref/source/syscalls.h
@@ -16,6 +16,7 @@
# define rename(foo,bar) !MoveFileEx(foo, bar, MOVEFILE_REPLACE_EXISTING)
#endif
-bool lock_file(int fd, bool write);
+bool lock_file(int fd, bool write, bool wait = false);
+bool unlock_file(int fd);
#endif