mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 02:09:19 +08:00
8be9b48be6
* libc/include/machine/ieeefp.h: Add support for mmix target. * libc/include/machine/setjmp.h: Ditto. * configure.host: Ditto. * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c, libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4, libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c, libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in, libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c, libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c, libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c, libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c, libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c, libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c, libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c, libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S, libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h, libc/sys/mmixware/time.c, libc/sys/mmixware/times.c, libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c, libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files. * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in, libc/sys/mmixware/aclocal.m4: Generate.
27 lines
817 B
C
27 lines
817 B
C
/* _exit for MMIXware.
|
|
|
|
Copyright (C) 2001 Hans-Peter Nilsson.
|
|
|
|
Permission to use, copy, modify, and distribute this software is freely
|
|
granted, provided that this notice is preserved with no changes.
|
|
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
|
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
PURPOSE. */
|
|
|
|
#include <_ansi.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include "sys/syscall.h"
|
|
|
|
void _exit (int n)
|
|
{
|
|
/* Unfortunately, the return status is not returned by Knuth's mmix
|
|
simulator, so it seems in effect ineffective. We set it anyway;
|
|
there may be a purpose. */
|
|
__asm__ ("SET $255,%0\n\tTRAP 0,0,0"
|
|
: /* No outputs. */
|
|
: "r" (n)
|
|
: "memory");
|
|
}
|