diff options
author | Christopher Faylor <me@cgf.cx> | 2001-10-31 00:55:32 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-10-31 00:55:32 +0000 |
commit | 6ea0c04e7ca613dbf28b5f913fe2d6f84ee7cbfc (patch) | |
tree | c5ade0236415b305758f548b1b61990e4ba36ca9 /winsup/cygwin/cygheap.h | |
parent | 39374014e7f1a260ee6f20f6724e67ebb75fb172 (diff) | |
download | cygnal-6ea0c04e7ca613dbf28b5f913fe2d6f84ee7cbfc.tar.gz cygnal-6ea0c04e7ca613dbf28b5f913fe2d6f84ee7cbfc.tar.bz2 cygnal-6ea0c04e7ca613dbf28b5f913fe2d6f84ee7cbfc.zip |
* cygheap.h (cygheap_fdmanip::cygheap_fdmanip): Clear fh.
(cygheap_fdmanip::isopen): New method.
* syscalls.cc (_read): Avoid accessing closed fd.
* path.h (fe_types): New enum.
(path_conv::set_path): New method.
(find_exec): Change null_if_not_found argument to something more generic.
* spawn.cc (find_exec): Default to returning the POSIX path rather than the
windows path, unless instructed otherwise.
(spawn_guts): Force call to find_exec to use native paths.
* dlfcn.cc (check_path_access): Accommodate new find_exec arguments.
* environ.h (win_env::get_posix): New method.
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r-- | winsup/cygwin/cygheap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index 16f22c52d..5b868040f 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -184,7 +184,7 @@ class cygheap_fdmanip fhandler_base **fh; bool locked; public: - cygheap_fdmanip () {} + cygheap_fdmanip (): fh (NULL) {} virtual ~cygheap_fdmanip () { if (locked) @@ -198,6 +198,7 @@ class cygheap_fdmanip operator fhandler_base* &() {return *fh;} void operator = (fhandler_base *fh) {*this->fh = fh;} fhandler_base *operator -> () const {return *fh;} + bool isopen () const {return *fh;} }; class cygheap_fdnew : public cygheap_fdmanip |