From owner-freebsd-current Sun Mar 23 5:55:38 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19D4537B401 for ; Sun, 23 Mar 2003 05:55:36 -0800 (PST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B5D243F75 for ; Sun, 23 Mar 2003 05:55:35 -0800 (PST) (envelope-from leimy2k@mac.com) Received: from asmtp02.mac.com (asmtp02-qfe3 [10.13.10.66]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h2NDtZdg005808 for ; Sun, 23 Mar 2003 05:55:35 -0800 (PST) Received: from mac.com ([66.156.160.163]) by asmtp02.mac.com (Netscape Messaging Server 4.15) with ESMTP id HC7G0M00.OIZ; Sun, 23 Mar 2003 05:55:34 -0800 Date: Sun, 23 Mar 2003 07:55:37 -0600 Subject: Re: "Just" building the lib part of world Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) Cc: To: "Matthew Emmerton" From: David Leimbach In-Reply-To: <004c01c2f143$2288d1d0$1200a8c0@gsicomp.on.ca> Message-Id: <20209B90-5D37-11D7-AFCD-0003937E39E0@mac.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.551) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Whew... :) Me too unfortunately. I know basically what it takes to make a thread 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" > To: "Matthew Emmerton" > Cc: > 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" >>> To: >>> 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 majordomo@FreeBSD.org >> with "unsubscribe freebsd-current" in the body of the message >> > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message