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

61 lines
1.6 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_ERTYP_H
#define _SYS_ERTYP_H
#pragma ident "@(#)ertyp.h 1.9 92/07/14 SMI" /* SVr4.0 1.2 */
#ifdef __cplusplus
extern "C" {
#endif
/* bit position definintions for errno */
/* standard non-fatal messages (high byte of errno) */
#define NON_FATALOC 24 /* location of non-fatal info in errno */
#define NON_FATAL 1L << NON_FATALOC /* smallest non-fatal error */
#define SELF_CHECK (0x80L << NON_FATALOC)
#define NVRAM_WARN (0x40L << NON_FATALOC)
#define NVRAM_FAIL (0x20L << NON_FATALOC)
/* additional information for disk sanity failures (2nd byte of errno) */
#define DSK_ERLOC 16 /* location of disk error info in errno */
#define DSK_IDLOC (DSK_ERLOC + 7) /* high bit is which disk */
#define DSK_PHYS (1L << DSK_ERLOC)
#define DSK_WORD (2L << DSK_ERLOC)
#define DSK_COPY (3L << DSK_ERLOC)
#define DSK_INIT (4L << DSK_ERLOC)
#define DSK_PATTERN (5L << DSK_ERLOC)
#define DSK_MAP 6L /* 6 & up for bad map sect 0 & up */
#define DSK_ERTYP (1L << DSK_ERLOC) /* smallest disk error */
/* standard fatal errors (low short of errno) */
#define CONFIG_FAIL 0x1L
#define DISK_FAIL 0x2L
#define BOOT_FAIL 0x4L
#define MEM_FAIL 0x8L
#define INCOMPATIBLE 0x10L
#define FKEY_FAIL 0x20L
#define EXC_FAIL 0x40L
#define INT_FAIL 0x80L
/* sane flag for FWERR_NVR info described in nvram.h */
#define GOODERROR 0x600dbeef
#ifdef __cplusplus
}
#endif
#endif /* _SYS_ERTYP_H */