From a7ac27ed9e31c8b6bfca11b73816d62528cef286 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 9 Oct 2010 20:10:27 +0000 Subject: have one shared file handle per flavour instead of one global one (for now) and re-introduce some other minor changes that got lost in r1247 git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1249 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/services.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nss/services.c') diff --git a/nss/services.c b/nss/services.c index 76d48f0..fb709a4 100644 --- a/nss/services.c +++ b/nss/services.c @@ -30,9 +30,6 @@ #include "common.h" #include "compat/attrs.h" -/* thread-local file pointer to an ongoing request */ -static __thread TFILE *serventfp; - /* read a single services result entry from the stream */ static nss_status_t read_servent( TFILE *fp,struct servent *result, @@ -75,7 +72,7 @@ nss_status_t _nss_ldap_getservbyport_r( } /* thread-local file pointer to an ongoing request */ -/* static __thread TFILE *protoentfp; */ +static __thread TFILE *serventfp; /* open request to get all services */ nss_status_t _nss_ldap_setservent(int UNUSED(stayopen)) @@ -123,6 +120,9 @@ static nss_status_t _nss_nslcd_getservbyport_r( return retv; } +/* thread-local file pointer to an ongoing request */ +static __thread TFILE *serventfp; + static nss_status_t _xnss_ldap_setservent(nss_backend_t UNUSED(*be),void UNUSED(*args)) { NSS_SETENT(serventfp); -- cgit v1.2.3