* cygtls.h (struct _local_storage): Remove unused members rarg and

_localtime_buf.  Remove username in favor of a global buffer.  Reorder
	slightly to keep the net.cc stuff together.
	* globals.cc (__getlogin_username): New global char buffer.
	* tlsoffsets.h: Regenerate.
	* uinfo.cc (getlogin): Copy username into __getlogin_username.
This commit is contained in:
Corinna Vinschen
2011-05-16 15:12:35 +00:00
parent f783f223cb
commit bdc00a0d85
5 changed files with 57 additions and 51 deletions

View File

@ -201,7 +201,7 @@ getlogin_r (char *name, size_t namesize)
extern "C" char *
getlogin (void)
{
return strcpy (_my_tls.locals.username, cygheap->user.name ());
return strcpy (__getlogin_username, cygheap->user.name ());
}
extern "C" __uid32_t