delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2012/03/09/07:31:34

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
Date: Fri, 09 Mar 2012 14:31:29 +0200
From: Eli Zaretskii <eliz AT gnu DOT org>
Subject: Re: errno returned by open()
In-reply-to: <201203091153.q29BrKKK018225@dexter.ludd.ltu.se>
To: djgpp-workers AT delorie DOT com
Message-id: <83sjhiymzi.fsf@gnu.org>
MIME-version: 1.0
X-012-Sender: halo1 AT inter DOT net DOT il
References: <201203091153 DOT q29BrKKK018225 AT dexter DOT ludd DOT ltu DOT se>
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id q29CVTlB026683
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

> From: Martin Strömberg <ams AT ludd DOT ltu DOT se>
> Date: Fri, 9 Mar 2012 12:53:19 +0100 (MET)
> 
> According to Juan Manuel Guerrero:
> > Am Mittwoch, 7. März 2012 schrieb Eli Zaretskii:
> [ errno setting stuff. ]
> 
> This sounds weird to me. If you call a function that sets errno on
> failure (open e. g.), you must be prepared for that errno is changed.

Not if there was no error.  It is a curtesy to the caller to leave
errno alone in that case.

(Btw, your mail falsely claims to be encoded in Latin-1, whereas it
really uses UTF-8.)


- Raw text -


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