home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / m68k / signal.h < prev    next >
C/C++ Source or Header  |  1993-10-19  |  806b  |  32 lines

  1. /*
  2.  *    Copyright (C) 1989, NeXT, Inc.
  3.  *
  4.  *    Machine specific signal information.
  5.  *
  6.  * HISTORY
  7.  * 21-May-89  Avadis Tevanian, Jr. (avie) at NeXT, Inc.
  8.  *    Created.
  9.  */
  10.  
  11. #ifndef    _M68K_SIGNAL_
  12. #define    _M68K_SIGNAL_ 1
  13.  
  14. #ifndef    ASSEMBLER
  15. /*
  16.  * Information pushed on stack when a signal is delivered.
  17.  * This is used by the kernel to restore state following
  18.  * execution of the signal handler.  It is also made available
  19.  * to the handler to allow it to properly restore state if
  20.  * a non-standard exit is performed.
  21.  */
  22. struct    sigcontext {
  23.     int    sc_onstack;        /* sigstack state to restore */
  24.     int    sc_mask;        /* signal mask to restore */
  25.     int    sc_sp;            /* sp to restore */
  26.     int    sc_pc;            /* pc to restore */
  27.     int    sc_ps;            /* psl to restore */
  28.     int    sc_d0;            /* d0 to restore */
  29. };
  30. #endif    ASSEMBLER
  31. #endif    _M68K_SIGNAL_
  32.