From 4bbbe25802ee5d625d05b9566bcc488b93974692 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 2 Feb 2010 15:28:36 +0000 Subject: * 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. --- src/libstore/pathlocks.hh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/libstore/pathlocks.hh') diff --git a/src/libstore/pathlocks.hh b/src/libstore/pathlocks.hh index 64d62f6ae..57ca1584a 100644 --- a/src/libstore/pathlocks.hh +++ b/src/libstore/pathlocks.hh @@ -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 }; -- cgit v1.2.3