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

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 10:06:02 +0200
From: Eli Zaretskii <eliz AT gnu DOT org>
Subject: Re: errno returned by open()
In-reply-to: <201203082306.15018.juan.guerrero@gmx.de>
X-012-Sender: halo1 AT inter DOT net DOT il
To: djgpp-workers AT delorie DOT com
Message-id: <83eht219n9.fsf@gnu.org>
References: <201203071845 DOT 09240 DOT juan DOT guerrero AT gmx DOT de> <83obs81df3 DOT fsf AT gnu DOT org> <201203082306 DOT 15018 DOT juan DOT guerrero AT gmx DOT de>
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: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
> Date: Thu, 8 Mar 2012 23:06:14 +0100
> 
> I have adjusted the fix according to your suggestion.  I restore the original
> errno no matter if the previous call to llseek() or _write() still set it.  At
> this stage the file descriptor is greater than -1 and thus valid.  AFAIK if fd
> is valid no errno should be generated by the open() code itself and then be
> passed to the calling function.

That sounds correct to me.  Thanks.

- Raw text -


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