* cygheap.h: Reference _cygheap_start via .cygheap section.
* environ.cc: Fix force_into_environment typo throughout. (spenvs): Export CYGWIN_DEBUG if DEBUGGING.
This commit is contained in:
parent
cba3b11fc5
commit
1bbf1ac6a5
|
@ -1,3 +1,10 @@
|
||||||
|
2005-05-27 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* cygheap.h: Reference _cygheap_start via .cygheap section.
|
||||||
|
|
||||||
|
* environ.cc: Fix force_into_environment typo throughout.
|
||||||
|
(spenvs): Export CYGWIN_DEBUG if DEBUGGING.
|
||||||
|
|
||||||
2005-05-26 Christopher Faylor <cgf@timesys.com>
|
2005-05-26 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* include/cygwin/version.h: Bump DLL minor number to 18.
|
* include/cygwin/version.h: Bump DLL minor number to 18.
|
||||||
|
|
|
@ -428,5 +428,5 @@ char *__stdcall cstrdup (const char *) __attribute__ ((regparm(1)));
|
||||||
char *__stdcall cstrdup1 (const char *) __attribute__ ((regparm(1)));
|
char *__stdcall cstrdup1 (const char *) __attribute__ ((regparm(1)));
|
||||||
void __stdcall cfree_and_set (char *&, char * = NULL) __attribute__ ((regparm(2)));
|
void __stdcall cfree_and_set (char *&, char * = NULL) __attribute__ ((regparm(2)));
|
||||||
void __stdcall cygheap_init ();
|
void __stdcall cygheap_init ();
|
||||||
extern DWORD _cygheap_start;
|
extern DWORD _cygheap_start __attribute__((section(".cygheap")));
|
||||||
}
|
}
|
||||||
|
|
|
@ -856,7 +856,7 @@ struct spenv
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
size_t namelen;
|
size_t namelen;
|
||||||
bool force_into_environmentironment; /* If true, always add to env if missing */
|
bool force_into_environment; /* If true, always add to env if missing */
|
||||||
bool add_if_exists; /* if true, retrieve value from cache */
|
bool add_if_exists; /* if true, retrieve value from cache */
|
||||||
const char * (cygheap_user::*from_cygheap) (const char *, size_t);
|
const char * (cygheap_user::*from_cygheap) (const char *, size_t);
|
||||||
|
|
||||||
|
@ -869,6 +869,9 @@ struct spenv
|
||||||
/* Keep this list in upper case and sorted */
|
/* Keep this list in upper case and sorted */
|
||||||
static NO_COPY spenv spenvs[] =
|
static NO_COPY spenv spenvs[] =
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUGGING
|
||||||
|
{NL ("CYGWIN_DEBUG="), false, true, &cygheap_user::env_homedrive},
|
||||||
|
#endif
|
||||||
{NL ("HOMEDRIVE="), false, false, &cygheap_user::env_homedrive},
|
{NL ("HOMEDRIVE="), false, false, &cygheap_user::env_homedrive},
|
||||||
{NL ("HOMEPATH="), false, false, &cygheap_user::env_homepath},
|
{NL ("HOMEPATH="), false, false, &cygheap_user::env_homepath},
|
||||||
{NL ("LOGONSERVER="), false, false, &cygheap_user::env_logsrv},
|
{NL ("LOGONSERVER="), false, false, &cygheap_user::env_logsrv},
|
||||||
|
@ -977,7 +980,7 @@ build_env (const char * const *envp, char *&envblock, int &envc,
|
||||||
assert ((srcp - envp) == n);
|
assert ((srcp - envp) == n);
|
||||||
/* Fill in any required-but-missing environment variables. */
|
/* Fill in any required-but-missing environment variables. */
|
||||||
for (unsigned i = 0; i < SPENVS_SIZE; i++)
|
for (unsigned i = 0; i < SPENVS_SIZE; i++)
|
||||||
if (!saw_spenv[i] && (spenvs[i].force_into_environmentironment || cygheap->user.issetuid ()))
|
if (!saw_spenv[i] && (spenvs[i].force_into_environment || cygheap->user.issetuid ()))
|
||||||
{
|
{
|
||||||
*dstp = spenvs[i].retrieve (false);
|
*dstp = spenvs[i].retrieve (false);
|
||||||
if (*dstp && *dstp != env_dontadd)
|
if (*dstp && *dstp != env_dontadd)
|
||||||
|
|
Loading…
Reference in New Issue