From 6ea0c04e7ca613dbf28b5f913fe2d6f84ee7cbfc Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 31 Oct 2001 00:55:32 +0000 Subject: * 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. --- winsup/cygwin/environ.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/environ.h') diff --git a/winsup/cygwin/environ.h b/winsup/cygwin/environ.h index 888b473dd..86f70f675 100644 --- a/winsup/cygwin/environ.h +++ b/winsup/cygwin/environ.h @@ -28,7 +28,8 @@ struct win_env int (*posix_len) (const char *); int (*win32_len) (const char *); void add_cache (const char *in_posix, const char *in_native = NULL); - const char * get_native () {return native ? native + namelen : NULL;} + const char * get_native () const {return native ? native + namelen : NULL;} + const char * get_posix () const {return posix ? posix : NULL;} }; win_env * __stdcall getwinenv (const char *name, const char *posix = NULL); -- cgit v1.2.3