aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/path.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-09-19 03:22:45 +0000
committerChristopher Faylor <me@cgf.cx>2000-09-19 03:22:45 +0000
commit6e604fb15d9c0c05ab86b5a3135b4474bd52f807 (patch)
tree88e15e0cc89ec71d56fd2ef1f722c59b9053ae94 /winsup/cygwin/path.h
parent45b80bb4ce0a6053bb3f2ce862eccf26cac96660 (diff)
downloadnewlib-6e604fb15d9c0c05ab86b5a3135b4474bd52f807.zip
newlib-6e604fb15d9c0c05ab86b5a3135b4474bd52f807.tar.gz
newlib-6e604fb15d9c0c05ab86b5a3135b4474bd52f807.tar.bz2
* path.h: Create new input path flag PATH_NEEDDIR.
* path.cc (path::check): Detect trailing slash before converting to windows path. Tell symlink_info::check to check for directory if one is found. (symlink_info::check): Set errno when path is not a directory if pflags & PATH_NEEDDIR.
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 4c7f2c0..fdfbfdb 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -36,6 +36,7 @@ enum path_types
PATH_BINARY = MOUNT_BINARY,
PATH_EXEC = MOUNT_EXEC,
PATH_CYGWIN_EXEC = MOUNT_CYGWIN_EXEC,
+ PATH_NEEDDIR = 0x20000000,
PATH_SOCKET = 0x40000000,
PATH_HASACLS = 0x80000000
};