summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-02-01 12:37:51 +0000
committerCorinna Vinschen <corinna@vinschen.de>2008-02-01 12:37:51 +0000
commitc69d873f31440e6887288d38a9d009451874efd8 (patch)
tree15de668547cd00773aa7e1aae3d6181a6e1cc52e /winsup/cygwin/syscalls.cc
parent1597484cb589da409832f64db94c8ac79ccf468c (diff)
downloadcygnal-c69d873f31440e6887288d38a9d009451874efd8.tar.gz
cygnal-c69d873f31440e6887288d38a9d009451874efd8.tar.bz2
cygnal-c69d873f31440e6887288d38a9d009451874efd8.zip
* string.h: Re-enable inline strcasematch and strncasematch
implementations and rename to ascii_strcasematch/ascii_strncasematch. * dcrt0.cc: Replace str[n]casematch with ascii_str[n]casematch where applicable. * environ.cc: Ditto. * fhandler_process.cc: Ditto. * hookapi.cc: Ditto. * path.cc: Ditto. * spawn.cc: Ditto. * strace.cc: Ditto. * syscalls.cc: Ditto. * uinfo.cc: Ditto. * winf.cc: Ditto.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 32539aad2..1f5bc5fe5 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -1459,8 +1459,8 @@ rename_append_suffix (path_conv &pc, const char *path, size_t len,
{
char buf[len + 5];
- if (strcasematch (path + len - 4, ".lnk")
- || strcasematch (path + len - 4, ".exe"))
+ if (ascii_strcasematch (path + len - 4, ".lnk")
+ || ascii_strcasematch (path + len - 4, ".exe"))
len -= 4;
stpcpy (stpncpy (buf, path, len), suffix);
pc.check (buf, PC_SYM_NOFOLLOW);
@@ -1529,8 +1529,8 @@ rename (const char *oldpath, const char *newpath)
goto out;
}
if (oldpc.known_suffix
- && (strcasematch (oldpath + olen - 4, ".lnk")
- || strcasematch (oldpath + olen - 4, ".exe")))
+ && (ascii_strcasematch (oldpath + olen - 4, ".lnk")
+ || ascii_strcasematch (oldpath + olen - 4, ".exe")))
old_explicit_suffix = true;
nlen = strlen (newpath);
@@ -1559,8 +1559,8 @@ rename (const char *oldpath, const char *newpath)
goto out;
}
if (newpc.known_suffix
- && (strcasematch (newpath + nlen - 4, ".lnk")
- || strcasematch (newpath + nlen - 4, ".exe")))
+ && (ascii_strcasematch (newpath + nlen - 4, ".lnk")
+ || ascii_strcasematch (newpath + nlen - 4, ".exe")))
new_explicit_suffix = true;
/* This test is necessary in almost every case, so just do it once here. */