www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/12/15/06:12:20

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3C1B300A.F50EEBB3@phekda.freeserve.co.uk>
Date: Sat, 15 Dec 2001 11:12:10 +0000
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: libemu and profiling (LONG) [Was: Re: Building a profiled version of
References: <10112092038 DOT AA14146 AT clio DOT rice DOT edu>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

Charles Sandmann wrote:
> I would remove the setting of errno.  It may bring in extra code into
> the DXE in some future environment we don't want or need. 

It seems I've been a bit hasty in committing patches to CVS, due to
eagerness. I apologise for this. I'll wait longer in the future. Anyhow,
below is a patch to remove 'errno' as Charles suggests. If no-one objects,
I'll commit it next Saturday (GMT).

Thanks, bye, Rich =]

-- 
Richard Dawe
http://www.phekda.freeserve.co.uk/richdawe/

Index: emudummy.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libemu/src/emudummy.c,v
retrieving revision 1.2
diff -p -u -3 -r1.2 emudummy.c
--- emudummy.c  2001/12/09 20:18:07     1.2
+++ emudummy.c  2001/12/15 11:11:07
@@ -13,7 +13,6 @@
 #include <stdarg.h>
 #include <io.h>
 #include <libc/dosio.h>
-#include <errno.h>

 int
 vsprintf (char *buf, const char *fmt, va_list args)
@@ -24,8 +23,7 @@ vsprintf (char *buf, const char *fmt, va
 ssize_t
 _write (int fd, const void *buf, size_t nbyte)
 {
-  errno = EACCES;
-  return -1;
+  return 0;
 }

 void mcount (int _to);

- Raw text -


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