aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-22 21:44:07 +0000
committerChristopher Faylor <me@cgf.cx>2001-09-22 21:44:07 +0000
commit9854ada7547fab60f8283aad78deff6011ac4d5b (patch)
tree739a6e9dcdf341d39cc2c9238d713896ed711312 /winsup/cygwin/fhandler.cc
parent880230dc7cb0fb299d2114ae4fb10efa7bcda626 (diff)
downloadnewlib-9854ada7547fab60f8283aad78deff6011ac4d5b.zip
newlib-9854ada7547fab60f8283aad78deff6011ac4d5b.tar.gz
newlib-9854ada7547fab60f8283aad78deff6011ac4d5b.tar.bz2
* dtable.cc (dtable::build_fhandler): Accept an optional path_conv argument.
If available, use this to calculate path name and device number. * dtable.h (dtable): Reflect above change. * fhandler.h (fhandler_base): Declare virtual method which accepts path_conv rather than path string as first argument. * fhandler.cc (fhandler_base::open): Define above new method. * syscalls.cc (_open): Set aside a path_conv variable for use in build_fhandler and subsequent call to open.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r--winsup/cygwin/fhandler.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index 8ed52ff..a670e78 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -289,6 +289,12 @@ fhandler_base::get_default_fmode (int flags)
return __fmode;
}
+int
+fhandler_base::open (path_conv& real_path, int flags, mode_t mode)
+{
+ return open ((char *) real_path, flags, mode);
+}
+
/* Open system call handler function.
Path is now already checked for symlinks */
int