Changeset c7a653 in git


Ignore:
Timestamp:
Dec 18, 2007, 11:27:06 AM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
90dd0dbd83ae9914c956eaedd64595c13d0b94eb
Parents:
3b8b19f46828b935a75f3812d5297470f2f8431b
Message:
*hannes: removed MSDOS


git-svn-id: file:///usr/local/Singular/svn/trunk@10473 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/cntrlc.cc

    r3b8b19f rc7a653  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: cntrlc.cc,v 1.54 2007-12-14 15:26:28 Singular Exp $ */
     4/* $Id: cntrlc.cc,v 1.55 2007-12-18 10:27:06 Singular Exp $ */
    55/*
    66* ABSTRACT - interupt handling
     
    8888 *
    8989 *---------------------------------------------------------------------*/
    90 #ifndef MSDOS
    91 /* signals are not implemented in DJGCC */
    9290void sigint_handler(int sig);
    93 #endif /* MSDOS */
    9491
    9592si_hdl_typ si_set_signal ( int sig, si_hdl_typ signal_handler);
     
    125122#if defined(ix86_Linux)
    126123  #if !defined(HAVE_SIGCONTEXT) && !defined(HAVE_ASM_SIGCONTEXT_H)
     124// we need the following structure sigcontext_struct.
     125// if configure finds asm/singcontext.h we assume
     126// that this file contains the structure and is included
     127// via signal.h
    127128struct sigcontext_struct {
    128129        unsigned short gs, __gsh;
     
    175176    fprintf(stderr,"Segment fault/Bus error occurred at %lx because of %lx (r:%d)\n"
    176177                   "please inform the authors\n",
    177                    #ifdef __i386__
     178                   #ifdef __i386__
    178179                   (long)s.eip,
    179                    #else /* x86_64*/
     180                   #else /* x86_64*/
    180181                   (long)s.rip,
    181                    #endif
    182                    (long)s.cr2,siRandomStart);
     182                   #endif
     183                   (long)s.cr2,siRandomStart);
    183184  }
    184185#ifdef __OPTIMIZE__
     
    316317  /* debug(..) does not work under HPUX (because ptrace does not work..) */
    317318  #ifdef CALL_GDB
    318   #ifndef MSDOS
    319319  if (sig!=SIGINT) debug(STACK_TRACE);
    320   #endif /* MSDOS */
    321320  #endif /* CALL_GDB */
    322321  #endif /* unix */
     
    329328void init_signals()
    330329{
    331   #ifndef MSDOS
    332 /* signals are not implemented in DJGCC */
    333330/*4 signal handler:*/
    334331  si_set_signal(SIGSEGV,(void (*) (int))sigsegv_handler);
     
    352349  si_set_signal(SIGCHLD, (void (*)(int))SIG_IGN);
    353350  #endif
    354   #endif /* !MSDOS */
    355 }
    356 #endif
    357 
    358 
    359 #ifndef MSDOS
     351}
     352#endif
     353
     354
    360355/*2
    361356* signal handler for SIGINT
     
    406401  }
    407402}
    408 #endif /* !MSDOS */
    409 
    410 #ifndef MSDOS
     403
    411404//void test_int()
    412405//{
     
    420413//  }
    421414//}
    422 #endif /* !MSDOS */
    423415
    424416#ifdef unix
    425417# ifndef hpux
    426418#  ifndef __OPTIMIZE__
    427 #   ifndef MSDOS
    428419int si_stop_stack_trace_x;
    429420#    ifdef CALL_GDB
     
    593584}
    594585
    595 #   endif /* !MSDOS */
    596586#  endif /* !__OPTIMIZE__ */
    597587# endif /* !hpux */
Note: See TracChangeset for help on using the changeset viewer.