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:
parent
d7ed877ba3
commit
ea8a3d42ab
@ -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
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user