delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | "Martin Str|mberg (ams AT ludd DOT luth DOT se) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: A grep 2.26 test fails because fopen sets errno to EACCES when openning an existing directory. |
Date: | Tue, 25 Oct 2016 04:57:04 +0000 (UTC) |
Organization: | Aioe.org NNTP Server |
Lines: | 20 |
Message-ID: | <numomu$png$1@gioia.aioe.org> |
References: | <580BCAA5 DOT 2000304 AT gmx DOT de> <83d1irppmj DOT fsf AT gnu DOT org> <580D0638 DOT 8080605 AT gmx DOT de> |
NNTP-Posting-Host: | WLZdEp4S2PR09rkVF8ILdg.user.gioia.aioe.org |
X-Complaints-To: | abuse AT aioe DOT org |
User-Agent: | tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.16.0-4-amd64 (x86_64)) |
X-Notice: | Filtered by postfilter v. 0.8.2 |
Bytes: | 1756 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
"Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com> wrote: > 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. How about looking at the documentation? fread() isn't documented to use errno (not in C99 (sorry that's the latest I have, nor in the latest man page for linux <http://man7.org/linux/man-pages/man3/fread.3.html> (I arrived there from <https://www.kernel.org/doc/man-pages/>)), so you've found a bug in the test suite as in that case it's plainly wrong to look at errno. However, you are one of the few maintaining poor DJGPP, so you're welcome to do what you see fit. -- MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |