RFC: NSS prototypes
Thorsten Kukuk
kukuk@suse.de
Mon Dec 18 09:03:00 GMT 2000
Hi,
On Mon, Dec 18, Ulrich Drepper wrote:
> Thorsten Kukuk <kukuk@suse.de> writes:
>
> > I could use them, but struct __netgrent can only handle the case
> > where you have one module in the /etc/nsswitch.conf netgroup line,
> > not more. One module will overwrite the data from the previous
> > module.
>
> If you look closely you'll see that the reason why the structure is
> passed to setnetgrent is to get around the problem of having a static
> buffer and also to allow multi-threaded applications. I remember that
> the NIS stuff had some limitations but I think at least the
> multi-threaded use should be possible.
No, our SunRPC implementation is not multi-thread safe. So NIS
cannot be multi-threaded, too. In the moment all NSS NIS functions
have a global lock.
And the argument does not solve the problem that the next module
will overwrite the data from a previous module.
Thorsten
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SuSE GmbH Schanzaeckerstr. 10 90443 Nuernberg
Linux is like a Vorlon. It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.
More information about the Libc-hacker
mailing list