Committed: libgloss/cris/linunistd.h Don't override reentrant-errno for syscalls.

Hans-Peter Nilsson
Thu Nov 17 16:58:00 GMT 2005

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

More information about the Newlib mailing list