mirror of
https://github.com/NixOS/nix
synced 2025-06-28 09:31:16 +02:00
* Remove most Cygwin-specific code. Cygwin 1.7 implements advisory
POSIX locks, and simulates Unix-style file deletion semantics sufficiently. Note that this means that Nix won't work on Cygwin 1.5 anymore.
This commit is contained in:
parent
2723d9b56e
commit
4bbbe25802
4 changed files with 5 additions and 112 deletions
|
@ -12,10 +12,8 @@ namespace nix {
|
|||
because it doesn't exist. Any other error throws an exception. */
|
||||
int openLockFile(const Path & path, bool create);
|
||||
|
||||
/* Delete an open lock file. Both must be called to be fully portable
|
||||
between Unix and Windows. */
|
||||
void deleteLockFilePreClose(const Path & path, int fd);
|
||||
void deleteLockFilePostClose(const Path & path);
|
||||
/* Delete an open lock file. */
|
||||
void deleteLockFile(const Path & path, int fd);
|
||||
|
||||
enum LockType { ltRead, ltWrite, ltNone };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue