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:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; q=dns; s=default; b=yazEgPnvsTQfQfj5vGdr5sEe3Pue hXIDxFMzL6VNqRmm1X7GxnmLZW46hlUWo5s1r0SNSv2+r55JBPopZUMrEXFcOVdJ dZX6UxrdigcdS+O0JOClaDJeamlzPagohI9LiLI+BfWSXpJPuKW6HBkmDWuw2LFG PDn+aSVRRrXkZQc= 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:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=default; bh=+znmXIfXeJb//2K24tVbAUe2ocM=; b=H6 giysn2jJzOO1Jwj9vZHY2oTvxnMk+V1eg5A51WCkC6AgbAY/uYzo4KpaEqPiCbl9 Jvg4CIH6mtdv1jFp885NKt4mkBg9YC8YNeaP5YcBLZtRwextZHsJoDczWiuvMmzo Ev+sb/FcUQiKumyMjTYxeKA4wUZ8RjbcY3pwKXDd0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: tangentsoft.com Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?) From: Warren Young In-Reply-To: <52F51D19.6080807@etr-usa.com> Date: Sun, 9 Feb 2014 08:45:00 -0700 Message-Id: <31347914-BB4F-4039-984B-731B6C72F903@etr-usa.com> 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> To: cygwin AT cygwin DOT com X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s19FjbvK023263 On Feb 7, 2014, at 10:51 AM, Warren Young wrote: > Here's a better check that doesn't give false positives: > > $ cat < checkfile > #!/bin/sh > if egrep -q '_getgrent(32|64)' "$1" ; then echo $1 ; fi > END > $ find /bin -name \*.exe -exec ./checkfile {} \; The strings(1) call got left out of that test. Here’s a working variant, which tests for getpwent() calls instead: $ cat < checkfile if strings "$1" | egrep -q '^getpwent$' ; then echo $1 ; fi END $ find /bin -name \*.exe -exec sh checkfile {} \; Alas, Vim *does* call this API. Results: /bin/ali.exe /bin/biber.exe /bin/cppcheck.exe /bin/emacs-nox.exe /bin/emacs-w32.exe /bin/emacs-X11.exe /bin/fish.exe /bin/gdb.exe /bin/gvim.exe /bin/joe.exe /bin/mc.exe /bin/nano.exe /bin/otp.exe /bin/pure-pwconvert.exe /bin/tcsh.exe /bin/vim.exe /bin/xdvi-xaw.exe /bin/xemacs-21.4.22.exe /bin/xgettext.exe /bin/ytree.exe -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple