safe function... and I have found good implementations of getpwnam_r in other OSes
and some not so good looking ones as well but I haven't really been able to integrate
one into our current system which appears to be centralized in lib/libc/net/nsdispatch.c.
There is a lot of global state in there that would hinder the ability to make a fully reentrant
function.
It may be that the whole subsystem must be replaced before this is really possible in a clean
way.
Take that above statement however you wish... I am pretty new to this whole kernel/OS thing :).
Dave On Sunday, March 23, 2003, at 07:50 AM, Matthew Emmerton wrote:
Sorry, you're right. libc is where you want to be putting your code. (I'm
suffering from multiple-OS-itis right now.)
-- Matt
----- Original Message ----- From: "David Leimbach" <[EMAIL PROTECTED]> To: "Matthew Emmerton" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, March 23, 2003 8:46 AM Subject: Re: "Just" building the lib part of world
Hmmm for some reason I thought that would be the simple answer... also at one point in time unistd.h gave me trouble when I didn't build libc under world.
Is libc_r the correct place to put getpwnam_r anyway? My understanding
is that just
where the userland thread implementation goes.
I never got a clear answer to that question either... basically I haven't made much progress due to being unclear on several of these little issues.
Dave On Sunday, March 23, 2003, at 07:33 AM, Matthew Emmerton wrote:
----- Original Message ----- From: "David Leimbach" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 23, 2003 8:29 AM Subject: "Just" building the lib part of world
Or even better would be just building libc. I have been working on my
getpwnam_r assignment...
examining implementations in both Darwin and NetBSD and started trying
to implement some of
this code for FreeBSD... Its not anywhere even near the goal in sight
as I am still learning the
build system.
Do I always have to build world or can I get away with just making some subdirectories? If so what is the best way to do this?
If you're just experimenting wiht getpwnam_r, you can just rebuild libc_r:
cd /usr/src/lib/libc_r make make install
-- Matt Emmerton
To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message