Move file locking into the RTS, fixing #629, #1109
[ghc-hetmet.git] / includes / FileLock.h
diff --git a/includes/FileLock.h b/includes/FileLock.h
new file mode 100644 (file)
index 0000000..3fc1a81
--- /dev/null
@@ -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);