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/globals.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/globals.cc')
-rw-r--r--winsup/cygwin/globals.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/globals.cc b/winsup/cygwin/globals.cc
index f27429c6b..68bd5519c 100644
--- a/winsup/cygwin/globals.cc
+++ b/winsup/cygwin/globals.cc
@@ -56,6 +56,9 @@ bool display_title;
bool strip_title_path;
bool allow_glob = true;
+/* Static getlogin buffer. */
+char __getlogin_username[UNLEN + 1];
+
bool NO_COPY in_forkee;
int __argc_safe;