This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]