Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-09 11:22:54 +0300
committerChristopher Faylor <me@cgf.cx>2003-01-09 11:22:54 +0300
commite050536a0b23c20e88c65cdf2f1fdd7e2cb59a07 (patch)
tree38ce7db68c019063e1fecf0364b7f2a4c965307f
parentdbe7a3eba024f1c1576196bf5e70869b59b2f0e7 (diff)
-rw-r--r--winsup/cygwin/fhandler_registry.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/cygwin/fhandler_registry.cc b/winsup/cygwin/fhandler_registry.cc
index 422f907e8..8b31fac8f 100644
--- a/winsup/cygwin/fhandler_registry.cc
+++ b/winsup/cygwin/fhandler_registry.cc
@@ -114,9 +114,9 @@ fhandler_registry::exists ()
}
pathlen = strlen (path);
file = path + pathlen - 1;
- if (SLASH_P (*file) && pathlen > 1)
+ if (isdirsep (*file) && pathlen > 1)
file--;
- while (!SLASH_P (*file))
+ while (!isdirsep (*file))
file--;
file++;
@@ -240,9 +240,9 @@ fhandler_registry::fstat (struct __stat64 *buf, path_conv *pc)
{
int pathlen = strlen (path);
const char *value_name = path + pathlen - 1;
- if (SLASH_P (*value_name) && pathlen > 1)
+ if (isdirsep (*value_name) && pathlen > 1)
value_name--;
- while (!SLASH_P (*value_name))
+ while (!isdirsep (*value_name))
value_name--;
value_name++;
DWORD dwSize;
@@ -429,9 +429,9 @@ fhandler_registry::open (path_conv * pc, int flags, mode_t mode)
path++;
pathlen = strlen (path);
file = path + pathlen - 1;
- if (SLASH_P (*file) && pathlen > 1)
+ if (isdirsep (*file) && pathlen > 1)
file--;
- while (!SLASH_P (*file))
+ while (!isdirsep (*file))
file--;
file++;
@@ -625,7 +625,7 @@ open_key (const char *name, REGSAM access, bool isValue)
while (*name)
{
const char *anchor = name;
- while (*name && !SLASH_P (*name))
+ while (*name && !isdirsep (*name))
name++;
strncpy (component, anchor, name - anchor);
component[name - anchor] = '\0';