2001-02-06 Will Cohen <wcohen@redhat.com>

* rs6000/sim-errno.c (__errno): Removed.
        (_cerror): Use re-entrant version of errno.
This commit is contained in:
Jeff Johnston 2001-02-06 19:17:20 +00:00
parent d7ed877ba3
commit ea8a3d42ab
2 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2001-02-06 Will Cohen <wcohen@redhat.com>
* rs6000/sim-errno.c (__errno): Removed.
(_cerror): Use re-entrant version of errno.
2000-09-05 Geoff Keating <geoffk@cygnus.com> 2000-09-05 Geoff Keating <geoffk@cygnus.com>
* rs6000/simulator.S: Use conditional returns for documentation * rs6000/simulator.S: Use conditional returns for documentation

View File

@ -14,13 +14,8 @@
* they apply. * they apply.
*/ */
int errno; #include <errno.h>
#include <reent.h>
int *
__errno ()
{
return &errno;
}
/* syscall handler branches here in case of error. */ /* syscall handler branches here in case of error. */
@ -28,6 +23,6 @@ int
_cerror (e) _cerror (e)
int e; int e;
{ {
errno = e; _REENT->_errno = e;
return -1; return -1;
} }