Files
Arquivotheca.Solaris-2.5/uts/common/sys/cdump.h
seta75D 7c4988eac0 Init
2021-10-11 19:38:01 -03:00

65 lines
1.1 KiB
C
Executable File

/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef _SYS_CDUMP_H
#define _SYS_CDUMP_H
#pragma ident "@(#)cdump.h 1.9 92/07/14 SMI" /* SVr4.0 11.2 */
#ifdef __cplusplus
extern "C" {
#endif
#define BLKSZ 512
#define CHDR_OFFSET 1024
#define CRASHSANITY "crashdump"
#define MAXBLKS 1422
#define NVR_OFFSET 512
struct crash_hdr
{
char sanity[10];
int timestamp,
mem_size,
seq_num;
};
#ifdef TEST
#undef BLKSZ
#undef CHDR_OFFSET
#undef MAXBLKS
#undef NVR_OFFSET
#undef MAINSTORE
#undef SIZOFMEM
#undef SPMEM
#undef PRINTF
#undef STRCMP
#undef GETS
#undef RNVRAM
#undef FD_ACS
#define BLKSZ 100
#define CHDR_OFFSET 80
#define MAXBLKS 5
#define NVR_OFFSET 20
#define MAINSTORE mainstore
#define SIZOFMEM sizofmem
#define SPMEM (mainstore + 100)
#define PRINTF printf
#define STRCMP strcmp
#define GETS gets
extern int mainstore;
extern int sizofmem;
#endif
#ifdef __cplusplus
}
#endif
#endif /* _SYS_CDUMP_H */