* 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:
@ -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
|
||||
|
Reference in New Issue
Block a user