diff options
author | Christopher Faylor <me@cgf.cx> | 2002-05-22 22:09:58 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-05-22 22:09:58 +0000 |
commit | fc240f584b02d8bb1a2bb60927c3d13b583c68a1 (patch) | |
tree | e2905ee758c0cb0d17479f6422fedc4f84352e1d /winsup/cygwin/fhandler_proc.cc | |
parent | 41dc93916139473204dcfeea91cefbdf8f696301 (diff) | |
download | newlib-fc240f584b02d8bb1a2bb60927c3d13b583c68a1.zip newlib-fc240f584b02d8bb1a2bb60927c3d13b583c68a1.tar.gz newlib-fc240f584b02d8bb1a2bb60927c3d13b583c68a1.tar.bz2 |
* fhandler.h (fhandler_virtual::exists): Eliminate path argument.
(fhandler_proc::exists): Ditto.
(fhandler_registry::exists): Ditto.
(fhandler_process::exists): Ditto.
* fhandler_proc.cc (fhandler_proc::exists): Ditto. Use built-in name.
* fhandler_process.cc (fhandler_process::exists): Ditto.
(fstat): Ditto.
* fhandler_registry.cc (fhandler_registry::exists): Ditto.
(fhandler_registry::fstat): Ditto.
* fhandler_virtual.cc (fhandler_virtual::opendir): Ditto.
* path.cc (path_conv::check): Ditto. Add debugging.
* syscalls.cc (dup): Always call dup2 for error handling.
Diffstat (limited to 'winsup/cygwin/fhandler_proc.cc')
-rw-r--r-- | winsup/cygwin/fhandler_proc.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index 60e9578..3b2878b 100644 --- a/winsup/cygwin/fhandler_proc.cc +++ b/winsup/cygwin/fhandler_proc.cc @@ -135,8 +135,9 @@ fhandler_proc::get_proc_fhandler (const char *path) * <0 if path is a file. */ int -fhandler_proc::exists (const char *path) +fhandler_proc::exists () { + const char *path = get_name (); debug_printf ("exists (%s)", path); path += proc_len; if (*path == 0) |