rts: Add LibdwPool, a pool for libdw sessions
[ghc.git] / includes / rts / FileLock.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team, 2007-2009
4 *
5 * File locking support as required by Haskell
6 *
7 * Do not #include this file directly: #include "Rts.h" instead.
8 *
9 * To understand the structure of the RTS headers, see the wiki:
10 * http://ghc.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes
11 *
12 * ---------------------------------------------------------------------------*/
13
14 #ifndef RTS_FILELOCK_H
15 #define RTS_FILELOCK_H
16
17 #include "Stg.h"
18
19 int lockFile(int fd, StgWord64 dev, StgWord64 ino, int for_writing);
20 int unlockFile(int fd);
21
22 #endif /* RTS_FILELOCK_H */