diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-08-22 21:51:48 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-08-22 21:51:48 +0000 |
commit | cb19ccf4b5f516a404da2f90f5d12721d81c73e1 (patch) | |
tree | f913a1d7e04a23f5db1fd1326a003abcc224d47e /winsup/cygwin/thread.h | |
parent | 0a047e8f321216f24140ee18135bbe9ea4461f0a (diff) | |
download | cygnal-cb19ccf4b5f516a404da2f90f5d12721d81c73e1.tar.gz cygnal-cb19ccf4b5f516a404da2f90f5d12721d81c73e1.tar.bz2 cygnal-cb19ccf4b5f516a404da2f90f5d12721d81c73e1.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r-- | winsup/cygwin/thread.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; }; |