From 60cb120f3e5d1931fd7ac6a78e5404d2deacde0f Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 7 Oct 2004 21:28:57 +0000 Subject: * cygheap.h (class cygheap_user): Add psystemroot member and env_systemroot method. * environ.cc (struct spenv): Add add_always member. (spenvs): Accomodate new add_always member. Add cygheap_user::env_systemroot method to SYSTEMROOT entry. (build_env): Check add_always member when adding missing environment variables from spenvs. * uinfo.cc (cygheap_user::env_systemroot): New method. --- winsup/cygwin/cygheap.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winsup/cygwin/cygheap.h') diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index b8203bf08..80abe6e2c 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -106,6 +106,7 @@ class cygheap_user char *pdomain; /* Logon domain of the user */ char *homedrive; /* User's home drive */ char *homepath; /* User's home path */ + char *psystemroot; /* Value of SYSTEMROOT */ char *pwinname; /* User's name as far as Windows knows it */ char *puserprof; /* User profile */ cygsid effec_cygsid; /* buffer for user's SID */ @@ -146,6 +147,7 @@ public: const char *env_userprofile (const char *, size_t); const char *env_domain (const char *, size_t); const char *env_name (const char *, size_t); + const char *env_systemroot (const char *, size_t); const char *logsrv () { -- cgit v1.2.3