* environ.cc (_getenv_r): New function.
This commit is contained in:
		| @@ -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> | 2009-02-13  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
| 	* posix.sgml: Move dirfd to SUSv4 section. | 	* posix.sgml: Move dirfd to SUSv4 section. | ||||||
|   | |||||||
| @@ -284,6 +284,15 @@ getenv (const char *name) | |||||||
|   return findenv_func (name, &offset); |   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 | static int __stdcall | ||||||
| envsize (const char * const *in_envp) | envsize (const char * const *in_envp) | ||||||
| { | { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user