From bdc00a0d8500ee9a3d528188e766a8a38e66a1df Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 16 May 2011 15:12:35 +0000 Subject: * 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. --- winsup/cygwin/cygtls.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'winsup/cygwin/cygtls.h') diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h index 4715d37b4..4d4306b33 100644 --- a/winsup/cygwin/cygtls.h +++ b/winsup/cygwin/cygtls.h @@ -1,6 +1,6 @@ /* cygtls.h - Copyright 2003, 2004, 2005, 2008, 2009, 2010 Red Hat, Inc. + Copyright 2003, 2004, 2005, 2008, 2009, 2010, 2011 Red Hat, Inc. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for @@ -82,9 +82,6 @@ struct _local_storage char *namearray[2]; int grp_pos; - /* console.cc */ - unsigned rarg; - /* dlfcn.cc */ int dl_error; char dl_buffer[256]; @@ -116,15 +113,12 @@ struct _local_storage /* times.cc */ char timezone_buf[20]; - struct tm _localtime_buf; - /* uinfo.cc */ - char username[UNLEN + 1]; + /* strsig.cc */ + char signamebuf[sizeof ("Unknown signal 4294967295 ")]; /* net.cc */ char *ntoa_buf; // note: malloced - char signamebuf[sizeof ("Unknown signal 4294967295 ")]; - unionent *hostent_buf; // note: malloced unionent *protoent_buf; // note: malloced unionent *servent_buf; // note: malloced -- cgit v1.2.3