RTS tidyup sweep, first phase
[ghc-hetmet.git] / includes / rts / FileLock.h
diff --git a/includes/rts/FileLock.h b/includes/rts/FileLock.h
new file mode 100644 (file)
index 0000000..9a35ecc
--- /dev/null
@@ -0,0 +1,15 @@
+/* -----------------------------------------------------------------------------
+ *
+ * (c) The GHC Team, 2007
+ *
+ * File locking support as required by Haskell 98
+ *
+ * ---------------------------------------------------------------------------*/
+
+#ifndef RTS_FILELOCK_H
+#define RTS_FILELOCK_H
+
+int  lockFile(int fd, dev_t dev, ino_t ino, int for_writing);
+int  unlockFile(int fd);
+
+#endif /* RTS_FILELOCK_H */