From owner-freebsd-questions@FreeBSD.ORG Mon Jul 19 18:21:04 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FD8B106564A for ; Mon, 19 Jul 2010 18:21:04 +0000 (UTC) (envelope-from bmettee@pchotshots.com) Received: from mail.pchotshots.com (ns1.pchotshots.com [12.172.123.235]) by mx1.freebsd.org (Postfix) with SMTP id E0BC78FC08 for ; Mon, 19 Jul 2010 18:21:03 +0000 (UTC) Received: (qmail 56212 invoked by uid 89); 19 Jul 2010 18:21:03 -0000 Received: from unknown (HELO ?12.172.123.228?) (bmettee@pchotshots.com@12.172.123.228) by mail.pchotshots.com with SMTP; 19 Jul 2010 18:21:03 -0000 Message-ID: <4C44978F.5000102@pchotshots.com> Date: Mon, 19 Jul 2010 14:21:03 -0400 From: Brad Mettee User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Robert Bonomi , FreeBSD Mailing List References: <201007191712.o6JHCkqX028162@mail.r-bonomi.com> In-Reply-To: <201007191712.o6JHCkqX028162@mail.r-bonomi.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Has anybody got a *working* example of getpwnam_r() ?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2010 18:21:04 -0000 Robert Bonomi wrote: >> And if this doesn't help, there's always Google CodeSearch >> http://www.google.com/codesearch , for examples of how to call it. >> >> > ALL I find at www.google.com/codesearch, when I ask for 'getpwnam_r' is source- > code for the getpwnam_r function. Needless to say, that's =no= help. except > for confirming that the parameters match what I'm doing. *sigh* > > Thanks for the thoughts, though. > Here are a few links to FreeBSD code using the function: Search criteria for codesearch was: 'lang:"c" freebsd getpwnam_r' (it did take me a few minutes to sift through the samples vs the declarations). http://www.google.com/codesearch/p?hl=en#hv2-lQo77SI/nss_ldap-249/tests/testpw.c&q=lang:%22c%22%20getpwnam_r%20freebsd&sa=N&cd=7&ct=rc http://www.google.com/codesearch/p?hl=en#-wKRNbYkeKI/pub/FreeBSD/distfiles/cadaver-0.22.5.tar.gz|DXHv6JvXDfo/cadaver-0.22.5/lib/glob.c&q=lang:%22c%22%20getpwnam_r http://www.google.com/codesearch/p?hl=en#bQvTeDN3Ef0/dspam-3.6.5/src/pgsql_drv.c&q=lang:%22c%22%20getpwnam_r%20freebsd&sa=N&cd=14&ct=rc Hope the links aren't too badly mangled by mail.