home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / cdump.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.2 KB  |  58 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_CDUMP_H
  11. #define _SYS_CDUMP_H
  12.  
  13. #ident    "@(#)/usr/include/sys/cdump.h.sl 1.1 4.0 12/08/90 11412 AT&T-USL"
  14.  
  15. #define    BLKSZ        512
  16. #define CHDR_OFFSET    1024
  17. #define    CRASHSANITY    "crashdump"
  18. #define    MAXBLKS        1422
  19. #define NVR_OFFSET    512
  20.  
  21. struct    crash_hdr
  22. {
  23.     char    sanity[10] ;
  24.     int    timestamp ,
  25.         mem_size ,
  26.         seq_num ;
  27. } ;
  28. #ifdef TEST
  29. #undef BLKSZ
  30. #undef CHDR_OFFSET
  31. #undef MAXBLKS
  32. #undef NVR_OFFSET
  33. #undef MAINSTORE
  34. #undef SIZOFMEM
  35. #undef SPMEM
  36. #undef PRINTF
  37. #undef STRCMP
  38. #undef GETS
  39. #undef RNVRAM
  40. #undef FD_ACS
  41.  
  42. #define BLKSZ        100
  43. #define CHDR_OFFSET    80
  44. #define MAXBLKS        5
  45. #define NVR_OFFSET    20
  46. #define MAINSTORE    mainstore
  47. #define SIZOFMEM    sizofmem
  48. #define SPMEM        (mainstore + 100)
  49. #define PRINTF        printf
  50. #define STRCMP        strcmp
  51. #define GETS        gets
  52.  
  53. extern    int    mainstore ;
  54. extern    int    sizofmem ;
  55. #endif
  56.  
  57. #endif    /* _SYS_CDUMP_H */
  58.