home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / fault.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.5 KB  |  41 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _SYS_FAULT_H
  11. #define _SYS_FAULT_H
  12.  
  13. #ident    "@(#)/usr/include/sys/fault.h.sl 1.1 4.0 12/08/90 30753 AT&T-USL"
  14.  
  15. /*
  16.  * Fault numbers, analagous to signals.  These correspond to
  17.  * hardware faults.  Setting the appropriate flags in a process's
  18.  * set of traced faults via /proc causes the process to stop each
  19.  * time one of the designated faults occurs so that a debugger can
  20.  * take action.  See proc(4) for details.
  21.  */
  22.  
  23.     /* fault enumeration must begin with 1 */
  24. #define    FLTILL        1    /* Illegal instruction */
  25. #define    FLTPRIV        2    /* Privileged instruction */
  26. #define    FLTBPT        3    /* Breakpoint instruction */
  27. #define    FLTTRACE    4    /* Trace trap (single-step) */
  28. #define    FLTACCESS    5    /* Memory access (e.g., alignment) */
  29. #define    FLTBOUNDS    6    /* Memory bounds (invalid address) */
  30. #define    FLTIOVF        7    /* Integer overflow */
  31. #define    FLTIZDIV    8    /* Integer zero divide */
  32. #define    FLTFPE        9    /* Floating-point exception */
  33. #define    FLTSTACK    10    /* Irrecoverable stack fault */
  34. #define    FLTPAGE        11    /* Recoverable page fault (no associated sig) */
  35.  
  36. typedef struct {        /* fault set type */
  37.     unsigned long    word[4];
  38. } fltset_t;
  39.  
  40. #endif    /* _SYS_FAULT_H */
  41.