summaryrefslogtreecommitdiff
path: root/includes/rts/FileLock.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/rts/FileLock.h')
-rw-r--r--includes/rts/FileLock.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/includes/rts/FileLock.h b/includes/rts/FileLock.h
new file mode 100644
index 0000000000..9a35ecc581
--- /dev/null
+++ b/includes/rts/FileLock.h
@@ -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 */