diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2004-06-25 22:17:04 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2004-06-25 22:17:04 +0000 |
commit | dce592cd8c5237dafba82dfcb1e97192250322b9 (patch) | |
tree | be2fe28d4cc5304daf68d0a70e737283a3bceac3 /libgloss/libnosys/_exit.c | |
parent | d68d3538bb0cd6c1aabbf05232cdd70e9d4b48c7 (diff) | |
download | cygnal-dce592cd8c5237dafba82dfcb1e97192250322b9.tar.gz cygnal-dce592cd8c5237dafba82dfcb1e97192250322b9.tar.bz2 cygnal-dce592cd8c5237dafba82dfcb1e97192250322b9.zip |
2004-06-25 Jeff Johnston <jjohnstn@redhat.com>
* libnosys/_exit.c: New file.
* libnosys/Makefile.in: Add _exit.o.
Diffstat (limited to 'libgloss/libnosys/_exit.c')
-rw-r--r-- | libgloss/libnosys/_exit.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libgloss/libnosys/_exit.c b/libgloss/libnosys/_exit.c new file mode 100644 index 000000000..d4dd23239 --- /dev/null +++ b/libgloss/libnosys/_exit.c @@ -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; +} |