projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add handling for | to the transitional alternative layout rule
[ghc-hetmet.git]
/
includes
/
rts
/
FileLock.h
diff --git
a/includes/rts/FileLock.h
b/includes/rts/FileLock.h
index
9a35ecc
..
17087db
100644
(file)
--- a/
includes/rts/FileLock.h
+++ b/
includes/rts/FileLock.h
@@
-1,14
+1,23
@@
/* -----------------------------------------------------------------------------
*
/* -----------------------------------------------------------------------------
*
- * (c) The GHC Team, 2007
+ * (c) The GHC Team, 2007-2009
*
* File locking support as required by Haskell 98
*
*
* File locking support as required by Haskell 98
*
+ * Do not #include this file directly: #include "Rts.h" instead.
+ *
+ * To understand the structure of the RTS headers, see the wiki:
+ * http://hackage.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes
+ *
* ---------------------------------------------------------------------------*/
#ifndef RTS_FILELOCK_H
#define RTS_FILELOCK_H
* ---------------------------------------------------------------------------*/
#ifndef RTS_FILELOCK_H
#define RTS_FILELOCK_H
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
int lockFile(int fd, dev_t dev, ino_t ino, int for_writing);
int unlockFile(int fd);
int lockFile(int fd, dev_t dev, ino_t ino, int for_writing);
int unlockFile(int fd);