From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14277 invoked by alias); 9 Feb 2014 15:45:25 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 14250 invoked by uid 89); 9 Feb 2014 15:45:23 -0000 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 Received: from www.tangentsoft.com (HELO tangentsoft.com) (209.40.195.222) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 09 Feb 2014 15:45:06 +0000 Received: from antakya.home.tangentsoft.com (c-68-35-151-38.hsd1.nm.comcast.net [68.35.151.38]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tangentsoft.com (Postfix) with ESMTPSA id A52739FC8A40 for ; Sun, 9 Feb 2014 15:45:02 +0000 (UTC) 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, 09 Feb 2014 16:10:00 -0000 Content-Transfer-Encoding: quoted-printable Message-Id: <31347914-BB4F-4039-984B-731B6C72F903@etr-usa.com> References: <52F339CA.5070305@gmail.com> <20140206090117.GD2821@calimero.vinschen.de> <52F361C5.3000807@gmail.com> <20140206141321.GI2821@calimero.vinschen.de> <52F40208.5030901@etr-usa.com> <20140207094917.GN2821@calimero.vinschen.de> <52F4E540.2010606@tiscali.co.uk> <52F51D19.6080807@etr-usa.com> To: cygwin@cygwin.com X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00174.txt.bz2 On Feb 7, 2014, at 10:51 AM, Warren Young wrote: > Here's a better check that doesn't give false positives: >=20 > $ 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=92s 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