get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?)
Eric Blake
eblake@redhat.com
Wed Feb 12 03:54:00 GMT 2014
On 02/11/2014 05:06 PM, Warren Young wrote:
> On 2/11/2014 16:25, David Stacey wrote:
>> getpwent() is called in three different places.
>
> To those of you who have investigated these code paths: do any of them
> look like they couldn't be replaced by getpwnam() or other calls that
> would let cygwin1.dll do single-record AD/SAM lookups, rather than
> whole-table/tree scans?
>
> That is, do any of these programs really need to visit every record in
> /etc/passwd?
libreadline wants to know how to tab-complete ~foo; to do that, it has
to find all usernames beginning with foo. How would you do that without
visiting every single record?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140212/b4083f57/attachment.sig>
More information about the Cygwin
mailing list