delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2013/07/18/00:59:38

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Date: Thu, 18 Jul 2013 00:59:32 -0400
Message-Id: <201307180459.r6I4xWxV010383@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp-workers AT delorie DOT com
In-reply-to: <8738rcsdik.fsf@uwakimon.sk.tsukuba.ac.jp>
(turnbull AT sk DOT tsukuba DOT ac DOT jp)
Subject: Re: Set _IOERR if the file stream has been opened in wrong mode.
References: <51E5D0C6 DOT 1060404 AT gmx DOT de>
<83y5951a79 DOT fsf AT gnu DOT org>
<51E702E0 DOT 3010809 AT gmx DOT de>
<83fvvc1t0x DOT fsf AT gnu DOT org> <8738rcsdik DOT fsf AT uwakimon DOT sk DOT tsukuba DOT ac DOT jp>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> man pages.  IIRC, DJGPP libc is derived from BSD to avoid (L)GPL
> implications of merely using the compilation suite, so BSD man pages
> should be considered carefully, if not as authoritative.

V1 was bsd-derived.  V2 was written from scratch using the ANSI and
POSIX specs as references.

I looked in the code and didn't see anything where we specifically set
the error flag, other than read() failing.  So, it looks like this is
a DOS thing - that file just isn't readable.

But I couldn't find anything in the posix/ansi specs that said what
conditions cause errors, just that if errors happen ferror() says so.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019