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/passwd.cc | |
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/passwd.cc')
-rw-r--r-- | winsup/cygwin/passwd.cc | 12 |
1 files changed, 0 insertions, 12 deletions
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; } |