From cb19ccf4b5f516a404da2f90f5d12721d81c73e1 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 22 Aug 2001 21:51:48 +0000 Subject: * net.cc (cygwin_inet_ntoa): Rearrange previous patch to use thread local buffer space when compiled thread safe. (cygwin_getprotobyname): Ditto. (cygwin_getprotobynumber): Ditto. (cygwin_getservbyname): Ditto. (cygwin_getservbyport): Ditto. (cygwin_gethostbyname): Ditto. (cygwin_gethostbyaddr): Ditto. Move near to cygwin_gethostbyname. * thread.h (struct _winsup_t): Add pointers for above used buffer space. * passwd.cc (getpwduid): Remove initializing passwd. (setpwent): Ditto. (endpwent): Ditto. (setpassent): Ditto. --- winsup/cygwin/thread.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'winsup/cygwin/thread.h') diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index 34096c3ed..b871d34b0 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -94,6 +94,12 @@ struct _winsup_t /* uinfo.cc */ char _username[UNLEN + 1]; + + /* net.cc */ + char *_ntoa_buf; + struct protoent *_protoent_buf; + struct servent *_servent_buf; + struct hostent *_hostent_buf; }; -- cgit v1.2.3