Skip to content
Snippets Groups Projects
Forked from Utils / KWSys
908 commits behind the upstream repository.
Brad King's avatar
Brad King authored
Some use cases may have a race condition such that the file to be
removed disappears before we remove it.  Detect when removal fails due
to the file already missing and tolerate it without failing.

On Windows this requires using DeleteFileW instead of _wunlink because
the latter does not seem to always update errno.  Try to delete before
checking permissions because getting permissions will fail if the file
is missing.

Change-Id: If1922a15d742daca6d252c594284800d60cc1fce
61e0419f
History
KWSys provides a platform-independent API to many common system
features that are implemented differently on every platform.  This
library is intended to be shared among many projects, so it has a
configurable namespace.  Each project should configure KWSys to use a
namespace unique to itself.  See comments in CMakeLists.txt for
details.

You are probably reading this file in the source tree of a surrounding
project.  In that case, see "../README.kwsys" for details of using
KWSys in your project.

See CONTRIBUTING.rst for instructions to contribute KWSys changes.