no getpwnam_r() function on BSD?

Girish Hilage girish_hilage at persistent.co.in
Mon Feb 4 03:11:59 PST 2008


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 at charlie] /usr/include> grep getpwnam_r *
> pwd.h:int		 getpwnam_r(const char *, struct passwd *, char *, size_t,
> 
> [delphij at 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 at 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.


More information about the freebsd-threads mailing list