* environ.cc (_getenv_r): New function.

This commit is contained in:
Corinna Vinschen 2009-02-13 17:49:37 +00:00
parent 22e138ad6b
commit 4b1b39e758
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-02-13 Corinna Vinschen <corinna@vinschen.de>
* environ.cc (_getenv_r): New function.
2009-02-13 Corinna Vinschen <corinna@vinschen.de>
* posix.sgml: Move dirfd to SUSv4 section.

View File

@ -284,6 +284,15 @@ getenv (const char *name)
return findenv_func (name, &offset);
}
/* This function is required so that newlib uses the same environment
as Cygwin. */
extern "C" char *
_getenv_r (struct _reent *, const char *name)
{
int offset;
return findenv_func (name, &offset);
}
static int __stdcall
envsize (const char * const *in_envp)
{