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