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/passwd.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'winsup/cygwin/passwd.cc') diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc index a1a5c33a1..f7b0853ad 100644 --- a/winsup/cygwin/passwd.cc +++ b/winsup/cygwin/passwd.cc @@ -376,36 +376,24 @@ getpwent (void) extern "C" struct passwd * getpwduid (uid_t) { - if (passwd_state <= initializing) - read_etc_passwd (); - return NULL; } extern "C" void setpwent (void) { - if (passwd_state <= initializing) - read_etc_passwd (); - pw_pos = 0; } extern "C" void endpwent (void) { - if (passwd_state <= initializing) - read_etc_passwd (); - pw_pos = 0; } extern "C" int setpassent () { - if (passwd_state <= initializing) - read_etc_passwd (); - return 0; } -- cgit v1.2.3