blob: 17087db0945c0604779c00794bb043df26b25858 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* -----------------------------------------------------------------------------
*
* (c) The GHC Team, 2007-2009
*
* 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
#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);
#endif /* RTS_FILELOCK_H */
|