home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / ertyp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.7 KB  |  54 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_ERTYP_H
  11. #define _SYS_ERTYP_H
  12.  
  13. #ident    "@(#)/usr/include/sys/ertyp.h.sl 1.1 4.0 12/08/90 51291 AT&T-USL"
  14. /* bit position definintions for errno */
  15.  
  16. /* standard non-fatal messages (high byte of errno) */
  17.  
  18. #define    NON_FATALOC    24    /* location of non-fatal info in errno */
  19. #define    NON_FATAL    1L << NON_FATALOC    /* smallest non-fatal error */
  20.  
  21. #define    SELF_CHECK    (0x80L << NON_FATALOC)
  22. #define    NVRAM_WARN    (0x40L << NON_FATALOC)
  23. #define    NVRAM_FAIL    (0x20L << NON_FATALOC)
  24.  
  25. /* additional information for disk sanity failures (2nd byte of errno) */
  26.  
  27. #define    DSK_ERLOC    16    /* location of disk error info in errno */
  28.  
  29. #define    DSK_IDLOC    (DSK_ERLOC + 7)        /* high bit is which disk */
  30. #define    DSK_PHYS    (1L << DSK_ERLOC)
  31. #define    DSK_WORD    (2L << DSK_ERLOC)
  32. #define    DSK_COPY    (3L << DSK_ERLOC)
  33. #define    DSK_INIT    (4L << DSK_ERLOC)
  34. #define    DSK_PATTERN    (5L << DSK_ERLOC)
  35. #define    DSK_MAP        6L        /* 6 & up for bad map sect 0 & up */
  36.  
  37. #define    DSK_ERTYP    (1L << DSK_ERLOC)    /* smallest disk error */
  38.  
  39. /* standard fatal errors (low short of errno) */
  40.  
  41. #define    CONFIG_FAIL    0x1L
  42. #define    DISK_FAIL    0x2L
  43. #define    BOOT_FAIL    0x4L
  44. #define    MEM_FAIL    0x8L
  45. #define    INCOMPATIBLE    0x10L
  46. #define    FKEY_FAIL    0x20L
  47. #define    EXC_FAIL    0x40L
  48. #define    INT_FAIL    0x80L
  49.  
  50. /* sane flag for FWERR_NVR info described in nvram.h */
  51. #define GOODERROR    0x600dbeef
  52.  
  53. #endif    /* _SYS_ERTYP_H */
  54.