Source

blake / blake_stopcodes.h

Full commit
/*
$Id: stopcodes.h,v 0.7 2006/03/03 17:48:00 ddrp Rel $

Copyright (C) 2001-2006 Daybo Logic.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
3. Neither the name of the project nor the names of its contributors
   may be used to endorse or promote products derived from this software
   without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
*/

#ifndef INC_BLAKE_STOPCODES_H
#define INC_BLAKE_STOPCODES_H
/*-------------------------------------------------------------------*/
/*
  The stop codes are assigned to components and to people in ranges.
  The stop codes are numbered from 0 to 65,535.  Zero has a special
  meaning.  We define the ranges first and then define all stop codes
  as the range's base plus the number within the range.  Example:
  DDRP's personal range starts at 1, all his numbers are 0 to the top
  of his range plus his base to keep within the correct range.  Failure
  to keep within your assigned ranges will result in a beating from the
  founding father! =D
*/

/* The stop code ranges. */
#define BLAKESTOP_RANGE_DDRP (1) /* 1-499*/
#define BLAKESTOP_RANGE_TK (500) /* 500-699*/
#define BLAKESTOP_RANGE_PATER (700) /* 700-719*/
#define BLAKESTOP_RANGE_CRAIG (720) /*720-899*/
#define BLAKESTOP_RANGE_DAGSYLAD (900) /*900-999*/
#define BLAKESTOP_RANGE_OCQUERY (1000) /*1000-1079*/
#define BLAKESTOP_RANGE_DLOB (1080) /*1080-1299*/
#define BLAKESTOP_RANGE_GENERAL (1300) /*1300-1499*/
#define BLAKESTOP_RANGE_CORE (1500) /*1500-1599*/
#define BLAKESTOP_RANGE_OBERCHATTEN (1600) /*1600-1649*/
#define BLAKESTOP_RANGE_UNDEFINED (1650) /* Do not use as yet */

/* The stop codes */
#define BLAKESTOP_ZERO (0)
#define BLAKESTOP_OOPS (BLAKESTOP_ZERO)

/* DDRP's personal panics */
#define BLAKESTOP_DDRP_FAILED_MUTANT_CREATION ((BLAKESTOP_RANGE_DDRP)+0) /* Param 0 == Address of lock container, param 1 == Index if applicable  */
#define BLAKESTOP_DDRP_TEST ((BLAKESTOP_RANGE_DDRP)+1) /* No parameters */
#define BLAKESTOP_DDRP_BADCHAR ((BLAKESTOP_RANGE_DDRP)+2) /* 0=Detected @ code address, 1=Buffer base address, 2=Bytes per character, 3=Offset of character, 4=Character value (accurate only if bytes per char <= 4, 5=Length of string */
#define BLAKESTOP_DDRP_HASHBUFF_TOO_SMALL ((BLAKESTOP_RANGE_DDRP)+3) /* 0=Address of hash buffer, 1=expected size, 2=actual size */
#define BLAKESTOP_DDRP_LANG_MSGCOUNT_MISMATCH ((BLAKESTOP_RANGE_DDRP)+4) /* 0=Count of English messages, 1=Count of messages in foreign language, 2=Index of foreign language */
#define BLAKESTOP_DDRP_LANG_UNKNOWN ((BLAKESTOP_RANGE_DDRP)+5) /* 0=Detected @ code address, 1=Known language count, 2=illegal language enumeration */
#define BLAKESTOP_DDRP_LOGICASSERT ((BLAKESTOP_RANGE_DDRP)+6) /* 0=Detected @ code address, 1=Data address, 2=Data content */
#define BLAKESTOP_DDRP_UNINITED ((BLAKESTOP_RANGE_DDRP)+7) /* 0=Detected @ code address */

/* General code panics */
#define BLAKESTOP_SIGILL ((BLAKESTOP_RANGE_GENERAL)+0) /* No parameters */
#define BLAKESTOP_SIGSEGV ((BLAKESTOP_RANGE_GENERAL)+1) /* No parameters */
#define BLAKESTOP_SIGABRT ((BLAKESTOP_RANGE_GENERAL)+2) /* No parameters */
#define BLAKESTOP_SIGBUS ((BLAKESTOP_RANGE_GENERAL)+3) /* No parameters */
#define BLAKESTOP_IGNORANT_UNINSTALL ((BLAKESTOP_RANGE_GENERAL)+4) /* Parameters: 0=Detected @ code address, 1=Real callback address, 2=Bad guess at callback address */
#define BLAKESTOP_BLAKE_FUNCTION_FAILED ((BLAKESTOP_RANGE_GENERAL)+5) /* Parameters: 0=Detected @ code address, 1=Address of Blake function, 2=error code */
#define BLAKESTOP_BLAKE_MODULE_NOT_INITED ((BLAKESTOP_RANGE_GENERAL)+6) /* Parameters: 0=Detected @ code address */

/* Core failures */
#define BLAKESTOP_CORE_LLCORRUPT ((BLAKESTOP_RANGE_CORE)+0) /* Parameters: 0=Detected @ code address, 1=Base of linked list, 2=Address of node, 3=Index of node, 4=Expected checksum, 5=Actual checksum, 6=Linked list creation timestamp, 7=Node creation timestamp, 8=Associated socket or zero. */
#define BLAKESTOP_CORE_LLADDRDUP ((BLAKESTOP_RANGE_CORE)+1) /* Parameters: 0=Detected @ code address, 1=Base of linked list, 2=Address of duplicate node, 3=Count of all nodes, 4=Count of this address */
#define BLAKESTOP_CORE_LLSOCKDUP ((BLAKESTOP_RANGE_CORE)+2) /* Parameters: 0=Detected @ code address, 1=Base of linked list, 2=Address of node at which duplication was detected, 3=Count of all nodes, 4=Socket number which is duplicated, 5=Count of duplications of this socket */
#define BLAKESTOP_CORE_IMPOSSIBLE_TIMESTAMP ((BLAKESTOP_RANGE_CORE)+3) /* Parameters: 0=Detection @ code address, 1=Address of stored timestamp, 2=Current time, 3=Stored time higher than current time */
#define BLAKESTOP_CORE_CLONED ((BLAKESTOP_RANGE_CORE)+4) /* Parameters: 0=Nickname, 1=Index of instance 1, 2=Index of index 2, 3=Number of instances of this clone */

/* OberChatten client failures */
#define BLAKESTOP_OBERCHATTEN_RADIOITEM_OOR ((BLAKESTOP_RANGE_OBERCHATTEN)+0) /* Parameters: 0=Detected @ code address, 1=Address of component, 2=Address of controlling class, 3=Maximum extent, 4=Index of attempted access*/
#define BLAKESTOP_OBERCHATTEN_UNHANDLED_VALUE ((BLAKESTOP_RANGE_OBERCHATTEN)+1) /* Parameters: 0=Detected @ code address, 1=Address of controlling class, 2=Address of offending value, 3=Offending value */
/*-------------------------------------------------------------------*/
#endif /*!INC_BLAKE_STOPCODES_H*/