From owner-freebsd-threads@FreeBSD.ORG Mon Feb 4 11:11:59 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76DB216A418 for ; Mon, 4 Feb 2008 11:11:59 +0000 (UTC) (envelope-from girish_hilage@persistent.co.in) Received: from bmapps.persistent.co.in (outgoing.persistent.co.in [202.54.11.87]) by mx1.freebsd.org (Postfix) with ESMTP id 9683413C465 for ; Mon, 4 Feb 2008 11:11:58 +0000 (UTC) (envelope-from girish_hilage@persistent.co.in) Received: from bmapps.persistent.co.in (unknown [127.0.0.1]) by bmapps.persistent.co.in (Symantec Mail Security) with ESMTP id 06B6446405F; Mon, 4 Feb 2008 16:41:57 +0530 (IST) X-AuditID: 0a4e0006-a356ebb00000524c-56-47a6f2fcad3c Received: from mail.persistent.co.in (unknown [10.78.0.1]) (using TLSv1 with cipher DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by bmapps.persistent.co.in (Symantec Mail Security) with ESMTP id D5534420002; Mon, 4 Feb 2008 16:41:56 +0530 (IST) Received: from ps2408.persistent.co.in ([10.77.196.113]) by mail.persistent.co.in (MOS 3.8.5-GA) with ESMTP id BQN29801 (AUTH girish_hilage); Mon, 4 Feb 2008 16:41:56 +0530 (IST) From: Girish Hilage To: d@delphij.net In-Reply-To: <47A6E52B.4070206@delphij.net> References: <1202116171.16222.87.camel@ps2408.persistent.co.in> <47A6E52B.4070206@delphij.net> Date: Mon, 04 Feb 2008 16:42:33 +0530 Message-Id: <1202123554.16222.92.camel@ps2408.persistent.co.in> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) X-Junkmail-Whitelist: YES (by domain whitelist at mail6.persistent.co.in) X-Brightmail-Tracker: AAAAAA== Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: fbsdthreads Subject: Re: no getpwnam_r() function on BSD? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2008 11:11:59 -0000 I searched at both these locations but could only find getpwnam() but not _r(). "uname -sr" on my machine shows ---> FreeBSD 4.10-RELEASE So, is getpwnam_r() not available on this version? Regards, Girish On Mon, 2008-02-04 at 02:12 -0800, Xin LI wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Girish Hilage wrote: > > Hi, > > > > What is the thread safe version of getpwnam() in BSD? > > I could not find getpwnam_r() on BSD. > > Are you sure? > > [delphij@charlie] /usr/include> grep getpwnam_r * > pwd.h:int getpwnam_r(const char *, struct passwd *, char *, size_t, > > [delphij@charlie] /usr/src/lib/libc> grep -R ^getpwnam_r * > gen/getpwent.c:getpwnam_r(const char *name, struct passwd *pwd, char > *buffer, size_t bufsize, > > Cheers, > - -- > Xin LI http://www.delphij.net/ > FreeBSD - The Power to Serve! > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.4 (FreeBSD) > > iD8DBQFHpuUqi+vbBBjt66ARAnCjAJ9gKCgnDd90mL0j9E06lq5lihQiQwCdElmU > wETT7pfYZj1ZTLoQa59aMMs= > =BbKl > -----END PGP SIGNATURE----- DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.