Has anybody got a *working* example of getpwnam_r() ??

Brad Mettee bmettee at pchotshots.com
Mon Jul 19 18:21:04 UTC 2010


Robert Bonomi wrote:
<snippage>
>> 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.



More information about the freebsd-questions mailing list