Unix Programming - Truely reentrant getpwent(3)?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > November 2005 > Truely reentrant getpwent(3)?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Truely reentrant getpwent(3)?
Michael B Allen

2005-11-08, 6:29 pm

Is there a truely reentrant method for enumerating unix
accounts? Obviously getpwent(3) is not reentrant and getpwent_r(3) on
my system is a) non-standard and b) not actually reentrant according
to the notes. Arg! This is very unfortunate if it can block which I
suspect it can depending on how nsswitch is configured. I can't just
parse /etc/password because again nsswitch may be involved. Is there a
lower level but standard method for reading accounts?

Thanks,
Mike

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com