From 094d51931173d399d5719411554e1c61af500bfe Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 29 Jun 2002 02:36:08 +0000 Subject: * cygheap.h (cygheap_user): Reorg to accommodate environment caching. (cygheap_user::logsrv): New method. (cygheap_user::winname): Ditto. (cygheap_user::domain): Ditto. (cygheap_user::test_uid): Ditto. * cygheap.cc (cygheap_user::set_name): Reflect name "pwinname" name change. * environ.cc (getwinenveq): New function. (spenv::from_cygheap): Change arguments. (spenv::retrieve): Ditto for call. Use getwinenveq to retrieve info from environment. Always return value from cygwin environment, if it exists. * environ.h (getwinenveq): Declare. * uinfo.cc (cygheap_user::ontherange): Use logsrv() rather than env_logsrv(). (cygheap_user::test_uid): Define new method. (cygheap_user::env_logsrv): Accept environment arguments. Use test_uid to find info. (cygheap_user::env_domain): Ditto. (cygheap_user::env_userprofile): Ditto. (cygheap_user::env_homepath): Ditto. (cygheap_user::env_homedrive): Ditto. (cygheap_user::env_name): Ditto. --- winsup/cygwin/environ.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winsup/cygwin/environ.h') diff --git a/winsup/cygwin/environ.h b/winsup/cygwin/environ.h index ebccc53dd..1a616b214 100644 --- a/winsup/cygwin/environ.h +++ b/winsup/cygwin/environ.h @@ -35,6 +35,8 @@ struct win_env win_env * __stdcall getwinenv (const char *name, const char *posix = NULL) __attribute__ ((regparm (3))); +char * __stdcall getwinenveq (const char *name, size_t len, int) + __attribute__ ((regparm (3))); void __stdcall update_envptrs (); extern char **__cygwin_environ, ***main_environ; -- cgit v1.2.3