init.c

Go to the documentation of this file.
00001 /*
00002   (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
00003   See the copyright notice in the ACK home directory, in the file "Copyright".
00004 */
00005 
00006 /*
00007   Module:       initialization and some global vars
00008   Author:       Ceriel J.H. Jacobs
00009   Version:      $Header: /opt/proj/minix/cvsroot/src/lib/ack/libm2/init.c,v 1.2 2006/02/17 14:12:47 philip Exp $
00010 */
00011 
00012 #include <signal.h>
00013 #include <em_abs.h>
00014 #include <m2_traps.h>
00015 
00016 /* map unix signals onto EM traps */
00017 init()
00018 {
00019         sigtrp(M2_UNIXSIG, SIGHUP);
00020         sigtrp(M2_UNIXSIG, SIGINT);
00021         sigtrp(M2_UNIXSIG, SIGQUIT);
00022         sigtrp(EILLINS, SIGILL);
00023         sigtrp(M2_UNIXSIG, SIGTRAP);
00024 #ifdef SIGIOT
00025         sigtrp(M2_UNIXSIG, SIGIOT);
00026 #endif
00027 #if SIGEMT
00028         sigtrp(M2_UNIXSIG, SIGEMT);
00029 #endif
00030         sigtrp(M2_UNIXSIG, SIGFPE);
00031         sigtrp(M2_UNIXSIG, SIGBUS);
00032         sigtrp(M2_UNIXSIG, SIGSEGV);
00033 #ifdef SIGSYS
00034         sigtrp(EBADMON, SIGSYS);
00035 #endif
00036         sigtrp(M2_UNIXSIG, SIGPIPE);
00037         sigtrp(M2_UNIXSIG, SIGALRM);
00038         sigtrp(M2_UNIXSIG, SIGTERM);
00039 }
00040 
00041 killbss()
00042 {
00043         /* Fill bss with junk?  Make lots of VM pages dirty?  No way! */
00044 }
00045 
00046 extern int catch();
00047 
00048 int (*handler)() = catch;
00049 char **argv;
00050 int argc;
00051 char *MainLB;

Generated on Fri Apr 14 22:56:55 2006 for minix by  doxygen 1.4.6