delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/06/05/08:45:17

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP v2.05: some thoughts
Date: Fri, 5 Jun 2015 12:29:43 +0000 (UTC)
Organization: Aioe.org NNTP Server
Lines: 27
Message-ID: <mks4nl$1o8$1@speranza.aioe.org>
References: <55673F0B DOT 1090103 AT iki DOT fi> <83twuwwshg DOT fsf AT gnu DOT org> <55675040 DOT 9030008 AT iki DOT fi> <556F6E49 DOT 8010006 AT gmx DOT de> <556FCCDF DOT 7080005 AT iki DOT fi> <83bngvr0ef DOT fsf AT gnu DOT org> <557078B1 DOT 9040004 AT iki DOT fi> <201506041613 DOT t54GDT8m014488 AT delorie DOT com> <5570B1F7 DOT 1070509 AT iki DOT fi> <83pp5aprqw DOT fsf AT gnu DOT org>
NNTP-Posting-Host: WLZdEp4S2PR09rkVF8ILdg.user.speranza.aioe.org
X-Complaints-To: abuse AT aioe DOT org
User-Agent: tin/2.1.1-20120623 ("Mulindry") (UNIX) (Linux/3.2.0-4-amd64 (x86_64))
X-Notice: Filtered by postfilter v. 0.8.2
Bytes: 1883
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Eli Zaretskii (eliz AT gnu DOT org)" <djgpp AT delorie DOT com> wrote:
> > Date: Thu, 04 Jun 2015 23:15:51 +0300
> > From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi)" <djgpp AT delorie DOT com>
...
> > --- errno.h.orig        2015-06-04 23:12:46.745892048 +0300
> > +++ errno.h     2015-06-04 23:13:13.382210708 +0300
> > @@ -25,7 +25,7 @@
> > 
> > #endif /* (__STDC_VERSION__ >= 199901L) || !__STRICT_ANSI__ */
> > 
> > -#ifndef __STRICT_ANSI__
> > +#if !defined(__STRICT_ANSI__) || defined(__cplusplus)
> > 
> > #define E2BIG          3
> > #define EACCES         4

> This looks wrong: we shouldn't have errno values visible under ANSI
> compilation which are not defined by the ANSI C standard.  E.g., C99
> only defines EDOM, EILSEQ, and ERANGE.

But, IIRC, C99 (or even perhaps C89) reserved any symbol starting with E.
That means we can, if we want to, let the Es be defined if C99 is wanted
(or C89 if the reservation existed back then).


-- 
MartinS

- Raw text -


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