Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Feb 2008 16:42:33 +0530
From:      Girish Hilage <girish_hilage@persistent.co.in>
To:        d@delphij.net
Cc:        fbsdthreads <freebsd-threads@freebsd.org>
Subject:   Re: no getpwnam_r() function on BSD?
Message-ID:  <1202123554.16222.92.camel@ps2408.persistent.co.in>
In-Reply-To: <47A6E52B.4070206@delphij.net>
References:  <1202116171.16222.87.camel@ps2408.persistent.co.in> <47A6E52B.4070206@delphij.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <delphij@delphij.net>	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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1202123554.16222.92.camel>