diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-29 02:36:08 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-29 02:36:08 +0000 |
commit | 094d51931173d399d5719411554e1c61af500bfe (patch) | |
tree | 9194597b3e482e0d6990cf543ff7e3cd4f8f0c4f /winsup/cygwin/environ.h | |
parent | 2d5eb17ee38b19b91eaecceb9136885aa4281080 (diff) | |
download | newlib-094d51931173d399d5719411554e1c61af500bfe.zip newlib-094d51931173d399d5719411554e1c61af500bfe.tar.gz newlib-094d51931173d399d5719411554e1c61af500bfe.tar.bz2 |
* 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.
Diffstat (limited to 'winsup/cygwin/environ.h')
-rw-r--r-- | winsup/cygwin/environ.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/environ.h b/winsup/cygwin/environ.h index ebccc53..1a616b2 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; |