Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-05-16 19:12:35 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-05-16 19:12:35 +0400
commitbdc00a0d8500ee9a3d528188e766a8a38e66a1df (patch)
tree5233e94bbc5efe20727cc628a3028273d698317a /winsup/cygwin/uinfo.cc
parentf783f223cb31e4f323293489ac2b4c1347e90b45 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r--winsup/cygwin/uinfo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc
index dd87bd5f0..ff96fcc7f 100644
--- a/winsup/cygwin/uinfo.cc
+++ b/winsup/cygwin/uinfo.cc
@@ -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