diff options
author | Christopher Faylor <me@cgf.cx> | 2001-09-22 21:44:07 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-09-22 21:44:07 +0000 |
commit | 9854ada7547fab60f8283aad78deff6011ac4d5b (patch) | |
tree | 739a6e9dcdf341d39cc2c9238d713896ed711312 /winsup/cygwin/dtable.h | |
parent | 880230dc7cb0fb299d2114ae4fb10efa7bcda626 (diff) | |
download | newlib-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/dtable.h')
-rw-r--r-- | winsup/cygwin/dtable.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/dtable.h b/winsup/cygwin/dtable.h index 1a51c92..7e27bf6 100644 --- a/winsup/cygwin/dtable.h +++ b/winsup/cygwin/dtable.h @@ -49,7 +49,8 @@ public: void fixup_after_fork (HANDLE); fhandler_base *build_fhandler (int fd, DWORD dev, const char *name, int unit = -1); - fhandler_base *build_fhandler (int fd, const char *name, HANDLE h); + fhandler_base *build_fhandler (int fd, const char *name, HANDLE h = NULL, + path_conv *pc = NULL); inline int not_open (int fd) { SetResourceLock (LOCK_FD_LIST, READ_LOCK, "not_open"); |