X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fruntime.c;h=6c0d54455e5e6b929964425a73858c7fe61a7684;hb=94ac5b7c3ff37850210b6fc9a7593cf1c5752993;hp=d39b892030b3f668d866b08853c924df282b709e;hpb=6cbe4d8ba6d7bc469d03a72514c789b1f3944878;p=sbcl.git diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index d39b892..6c0d544 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -14,6 +14,7 @@ */ #include +#include #include #include #include @@ -21,6 +22,10 @@ #include #include +#if defined(SVR4) || defined(__linux__) +#include +#endif + #include "signal.h" #include "runtime.h" @@ -48,13 +53,11 @@ #endif /* SIGINT handler that invokes the monitor (for when Lisp isn't up to it) */ - static void sigint_handler(int signal, siginfo_t *info, void *void_context) { - printf("\nSIGINT hit at 0x%08lX\n", - (unsigned long) *os_context_pc_addr(void_context)); - ldb_monitor(); + lose("\nSIGINT hit at 0x%08lX\n", + (unsigned long) *os_context_pc_addr(void_context)); } /* (This is not static, because we want to be able to call it from @@ -213,24 +216,24 @@ main(int argc, char *argv[], char *envp[]) if (!noinform) { printf( -"This is SBCL " SBCL_VERSION_STRING ", an implementation of ANSI Common Lisp. - -SBCL is derived from the CMU CL system created at Carnegie Mellon University. -Besides software and documentation originally created at Carnegie Mellon -University, SBCL contains some software originally from the Massachusetts -Institute of Technology, Symbolics Incorporated, and Xerox Corporation, and -material contributed by volunteers since the release of CMU CL into the -public domain. See the CREDITS file in the distribution for more information. - -SBCL is a free software system, provided as is, with absolutely no warranty. -It is mostly in the public domain, but also includes some software copyrighted - Massachusetts Institute of Technology, 1986; - Symbolics, Inc., 1989, 1990, 1991, 1992; and - Xerox Corporation, 1985, 1986, 1987, 1988, 1989, 1990 -used under BSD-style licenses allowing copying only under certain conditions. -See the COPYING file in the distribution for more information. - -More information on SBCL is available at . +"This is SBCL " SBCL_VERSION_STRING ", an implementation of ANSI Common Lisp.\n\ +\n\ +SBCL is derived from the CMU CL system created at Carnegie Mellon University.\n\ +Besides software and documentation originally created at Carnegie Mellon\n\ +University, SBCL contains some software originally from the Massachusetts\n\ +Institute of Technology, Symbolics Incorporated, and Xerox Corporation, and\n\ +material contributed by volunteers since the release of CMU CL into the\n\ +public domain. See the CREDITS file in the distribution for more information.\n\ +\n\ +SBCL is a free software system, provided as is, with absolutely no warranty.\n\ +It is mostly in the public domain, but also includes some software copyrighted\n\ + Massachusetts Institute of Technology, 1986;\n\ + Symbolics, Inc., 1989, 1990, 1991, 1992; and\n\ + Xerox Corporation, 1985, 1986, 1987, 1988, 1989, 1990\n\ +used under BSD-style licenses allowing copying only under certain conditions.\n\ +See the COPYING file in the distribution for more information.\n\ +\n\ +More information about SBCL is available at .\n\ "); fflush(stdout); } @@ -245,7 +248,7 @@ More information on SBCL is available at . define_var("nil", NIL, 1); define_var("t", T, 1); - set_lossage_handler(ldb_monitor); + set_lossage_handler(monitor_or_something); #if 0 os_init();