X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Date: Sun, 23 Oct 2016 22:00:19 +0300 Message-Id: <83oa2anb5o.fsf@gnu.org> From: "Eli Zaretskii (eliz AT gnu DOT org) [via djgpp AT delorie DOT com]" To: djgpp AT delorie DOT com In-reply-to: <580D0638.8080605@gmx.de> (djgpp@delorie.com) Subject: Re: A grep 2.26 test fails because fopen sets errno to EACCES when openning an existing directory. References: <580BCAA5 DOT 2000304 AT gmx DOT de> <83d1irppmj DOT fsf AT gnu DOT org> <580D0638 DOT 8080605 AT gmx DOT de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Sun, 23 Oct 2016 20:49:28 +0200 > From: "Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com]" > > I have also installed mingw and msys 1.0 and tried to build grep but it failed > and I had not the time to port grep to mingw. Porting Grep to MinGW is not for the faint at heart, and MinGW cannot open a directory anyway (because it uses the stock Windows runtime C library). > I have compiled grep-2.26 with cygwin, debian 8.2.0 and openSUSE 11.4 (my linux box). > They all return EISDIR for the failing fread. These seems to indicate that > EISDIR is the defacto value that have been choosen for this fread failure. Then I guess EISDIR is the right answer. Thanks.