DragonFly kernel List (threaded) for 2003-12
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: LibC status and others...
Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx> writes:
> We aren't going to be using NSS in that way... we will be using IPC
> services for such lookups. But if you need a getpwnam_r() it should
> be possible to adapt the existing getpwnam() (and other functions) in
> /usr/src/lib/libc/gen/getpwent.c.
>
> What I would do is rename, e.g., getpwnam() to getpwnam_r(), add the
> required passwd pointer, and use the pointer instead of the static
> _pw_passwd. Then write a new getpwnam() which simply aclls
> getpwnam_r() using &_pw_passwd for the passwd pointer.
It is not implemented the way you think I fear :). There are no static data
members in getpwnam... Some other internal function keeps the static data.
>
> Would you like to have a go at making this change? If you know any C
> at all it should be a breeze. If not, maybe one of the other developers
> would like to have a go at it. If not that, then I can do it (it would
> take me less then 30 minutes to do).
>
I'd like to see someone else take a pass at this since I am stymied.
[Stymied Leimy... that's what they call me...]
Dave
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]