summaryrefslogtreecommitdiff
path: root/includes/FileLock.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/FileLock.h')
-rw-r--r--includes/FileLock.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/includes/FileLock.h b/includes/FileLock.h
new file mode 100644
index 0000000000..3fc1a81aec
--- /dev/null
+++ b/includes/FileLock.h
@@ -0,0 +1,12 @@
+/* -----------------------------------------------------------------------------
+ *
+ * (c) The GHC Team, 2007
+ *
+ * File locking support as required by Haskell 98
+ *
+ * ---------------------------------------------------------------------------*/
+
+void initFileLocking(void);
+void freeFileLocking(void);
+int lockFile(int fd, dev_t dev, ino_t ino, int for_writing);
+int unlockFile(int fd);