2004-06-25 Jeff Johnston <jjohnstn@redhat.com>

* libnosys/_exit.c: New file.
        * libnosys/Makefile.in: Add _exit.o.
This commit is contained in:
Jeff Johnston 2004-06-25 22:17:04 +00:00
parent d68d3538bb
commit dce592cd8c
3 changed files with 21 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-06-25 Jeff Johnston <jjohnstn@redhat.com>
* libnosys/_exit.c: New file.
* libnosys/Makefile.in: Add _exit.o.
2004-06-17 Jeff Johnston <jjohnstn@redhat.com>
* arm/configure.in: Check the value of newlib-may-supply-syscalls

View File

@ -66,7 +66,7 @@ OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
# object files needed
OBJS = close.o environ.o errno.o execve.o fork.o fstat.o getpid.o gettod.o \
isatty.o kill.o link.o lseek.o open.o read.o sbrk.o stat.o \
times.o unlink.o wait.o write.o
times.o unlink.o wait.o write.o _exit.o
# Object files specific to particular targets.
EVALOBJS = ${OBJS}

15
libgloss/libnosys/_exit.c Normal file
View File

@ -0,0 +1,15 @@
/* Stub version of _exit. */
#include <limits.h>
#include "config.h"
#include <_ansi.h>
#include <_syslist.h>
_VOID
_DEFUN (_exit, (rc),
int rc)
{
/* Default stub just causes a divide by 0 exception. */
int x = rc / INT_MAX;
x = 4 / x;
}