Mail Archives: djgpp-workers/2001/12/15/06:12:20
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 -