This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Committed: libgloss/cris/linunistd.h Don't override reentrant-errno for syscalls.
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: newlib at sourceware dot org
- Date: Thu, 17 Nov 2005 13:04:37 +0100
- Subject: Committed: libgloss/cris/linunistd.h Don't override reentrant-errno for syscalls.
Noticed by inconsistent errno returns from the Linux syscalls in
the to-be-committed "sim"-testsuite using newlib. I blame
copy-paste; I thought something picked up this errno and put it
in the newlib _REENT-structure, but that's apparently wrong.
* cris/linunistd.h: Don't redefine errno as extern int.
Index: cris/linunistd.h
===================================================================
RCS file: /cvs/src/src/libgloss/cris/linunistd.h,v
retrieving revision 1.1
diff -p -u -r1.1 linunistd.h
--- cris/linunistd.h 27 Jan 2005 22:57:32 -0000 1.1
+++ cris/linunistd.h 17 Nov 2005 11:54:05 -0000
@@ -37,8 +37,6 @@
#include "libnosys/warning.h"
#include <errno.h>
-#undef errno
-extern int errno;
/*
* This file contains the system call numbers, and stub macros for libc.
brgds, H-P