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:
authorCorinna Vinschen <corinna@vinschen.de>2005-09-29 20:23:22 +0400
committerCorinna Vinschen <corinna@vinschen.de>2005-09-29 20:23:22 +0400
commitf6c9ff6646a97ad4dd45ebdf755d4eb73fe5b6a5 (patch)
treead572005626fe141e487dc98b783921d9d0d3854 /winsup/cygwin/path.h
parent9a7b0aad2ade1e0f3d0450118861d7bc52f344c0 (diff)
* dir.cc (mkdir): Check for trailing /. or /.. component.
(rmdir): Ditto. * path.cc (has_dot_last_component): New function. * path.h (has_dot_last_component): Add declaration.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index de37ff2ac..c35358566 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -289,6 +289,7 @@ has_exec_chars (const char *buf, int len)
int pathmatch (const char *path1, const char *path2) __attribute__ ((regparm (2)));
int pathnmatch (const char *path1, const char *path2, int len) __attribute__ ((regparm (2)));
+bool has_dot_last_component (const char *dir) __attribute__ ((regparm (1)));
bool fnunmunge (char *, const char *) __attribute__ ((regparm (2)));