* 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.
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user