diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2010-10-08 11:56:56 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2010-10-08 11:56:56 +0000 |
commit | 611dc583a05914f81c97c165163bcce021b0dfac (patch) | |
tree | 7136faabebdef16fc8690f1fee37d209a53fa7dd /nss/ethers.c | |
parent | 5afa471c1b514d82da2fde66fbed699a2e2862fa (diff) |
re-introduce {set,get,end}**ent() file handle in Solaris code path and some other miscellaneous small fixes
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1246 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/ethers.c')
-rw-r--r-- | nss/ethers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nss/ethers.c b/nss/ethers.c index 72f1d9c..bc70e81 100644 --- a/nss/ethers.c +++ b/nss/ethers.c @@ -95,7 +95,9 @@ nss_status_t _nss_ldap_endetherent(void) #ifdef NSS_FLAVOUR_SOLARIS +#ifndef NSS_BUFLEN_ETHERS #define NSS_BUFLEN_ETHERS 1024 +#endif #define errnop &errno @@ -157,6 +159,9 @@ static nss_status_t _xnss_ldap_getntohost_r(nss_backend_t UNUSED(*be),void *args return retv; } +/* thread-local file pointer to an ongoing request */ +static __thread TFILE *etherentfp; + static nss_status_t _xnss_ldap_setetherent(nss_backend_t UNUSED(*be),void UNUSED(*args)) { NSS_SETENT(etherentfp); |