delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type; q=dns; s=default; b=Q2Dh9T | |
FlEGjRQGkF/map4CwB2za1LU1hlp5zs2s2mX5uNGiMpEdKBms7TZl+acHQnu20Jj | |
Dm0P8/+Wk9a6rsNBNM0wlX5WAO6/56WBwM6PL62H2Tk3wOnNEL8qWPwWlzNcyPwI | |
jXv+WXYRUM8D5PUYgXByrXYyzLEPk295RShHk= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type; s=default; bh=NfNe9lyjCoXb | |
3mOpoySmIppuc1s=; b=llBaNE3ggUe6S4KBj2x+QiT9rd4vnCmFqIN/TEUPdfQd | |
9Ru8QcpepvXVTmIDied18NoPQ8NeNkT5LW5Y3mXXn3qBZaU7RykIV4hpaJmbDyfh | |
oMY1CqwWtqY/M0/DDZiTimn75XjcXAH9lXeycTRcPbFLeKAzuz6rh8ufucq9zj0= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mx1.redhat.com |
Message-ID: | <52FAD730.9090507@redhat.com> |
Date: | Tue, 11 Feb 2014 19:06:40 -0700 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?) |
References: | <52F339CA DOT 5070305 AT gmail DOT com> <20140206090117 DOT GD2821 AT calimero DOT vinschen DOT de> <52F361C5 DOT 3000807 AT gmail DOT com> <20140206141321 DOT GI2821 AT calimero DOT vinschen DOT de> <52F40208 DOT 5030901 AT etr-usa DOT com> <20140207094917 DOT GN2821 AT calimero DOT vinschen DOT de> <52F4E540 DOT 2010606 AT tiscali DOT co DOT uk> <52F51D19 DOT 6080807 AT etr-usa DOT com> <31347914-BB4F-4039-984B-731B6C72F903 AT etr-usa DOT com> <52F7AEC5 DOT 5090205 AT tiscali DOT co DOT uk> <8B7B5FE0-7413-4358-BA8A-E0B6E0B17653 AT etr-usa DOT com> <52F8B50E DOT 7040307 AT lysator DOT liu DOT se> <52F92D58 DOT 9030408 AT etr-usa DOT com> <52F95D1D DOT 4050108 AT tiscali DOT co DOT uk> <4510121021 DOT 20140211062515 AT mtu-net DOT ru> <52FAB14C DOT 8060800 AT tiscali DOT co DOT uk> <52FABAF5 DOT 2060701 AT etr-usa DOT com> |
In-Reply-To: | <52FABAF5.2060701@etr-usa.com> |
OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
X-IsSubscribed: | yes |
--i6j36FuDBenghrScBgNJWnDAXvV7qGfHi Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. >=20 > 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? >=20 > 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? --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --i6j36FuDBenghrScBgNJWnDAXvV7qGfHi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJS+tcxAAoJEKeha0olJ0NqVGcH/RFAemBuKtUiM7TGIDi3oSOE c7x1gqZROcnpG8lo3enGtRlwYXIU0OQaAIaoV9oE761xnr58oDMbM5mM8NRnYa2f rfX5E+jaNn6qxGs5Zx/Eyw79ERMtQSVsXfnmp+NMLqxbDiN3pxuyvq+EZpillbnp yRV0pfEwkld4lwLHjfrcP7CTBuuo1+38j4RF/mXZHiZy/vSU2tR0LZv6Y2dzuQPl 40boxtiWLmVdBMBWSNiPm0fNy1s8RQT+YVuXFonaFNGeiG2fxjHIuq+/UXsb802C zgesOhaQaGV7wuAyiMxN0WzFXEQM+Zat6mRHxF58DgoiI49ZXt0/EPVElm2lib0= =ghuB -----END PGP SIGNATURE----- --i6j36FuDBenghrScBgNJWnDAXvV7qGfHi--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |