1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 2007-2009
5 * File locking support as required by Haskell
7 * Do not #include this file directly: #include "Rts.h" instead.
9 * To understand the structure of the RTS headers, see the wiki:
10 * http://hackage.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes
12 * ---------------------------------------------------------------------------*/
14 #ifndef RTS_FILELOCK_H
15 #define RTS_FILELOCK_H
17 #ifdef HAVE_SYS_TYPES_H
18 #include <sys/types.h>
21 int lockFile(int fd, dev_t dev, ino_t ino, int for_writing);
22 int unlockFile(int fd);
24 #endif /* RTS_FILELOCK_H */