/**/ /***************************************************************************/ /** **/ /** © Copyright 2010, Hewlett-Packard Development Company, L.P. **/ /** **/ /** Confidential computer software. Valid license from HP and/or **/ /** its subsidiaries required for possession, use, or copying. **/ /** **/ /** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, **/ /** Computer Software Documentation, and Technical Data for Commercial **/ /** Items are licensed to the U.S. Government under vendor's standard **/ /** commercial license. **/ /** **/ /** Neither HP nor any of its subsidiaries shall be liable for technical **/ /** or editorial errors or omissions contained herein. The information **/ /** in this document is provided "as is" without warranty of any kind and **/ /** is subject to change without notice. The warranties for HP products **/ /** are set forth in the express limited warranty statements accompanying **/ /** such products. Nothing herein should be construed as constituting an **/ /** additional warranty. **/ /** **/ /***************************************************************************/ /********************************************************************************************************************************/ /* Created: 30-Mar-2010 17:26:56 by OpenVMS SDL EV3-3 */ /* Source: 31-JUL-1998 10:44:45 $1$DGA7274:[LIB_H.SRC]POOLCHECKDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $POOLCHECKDEF ***/ #ifndef __POOLCHECKDEF_LOADED #define __POOLCHECKDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif /*+ */ /* POOLCHECK - Poolcheck SYSGEN parameter layout */ /*- */ #define PCHECK$M_POISON 0x1 #define PCHECK$M_CHECK 0x2 #define PCHECK$M_SRP_FREE 0x4 #define PCHECK$M_IRP_FREE 0x8 #define PCHECK$M_LRP_FREE 0x10 #define PCHECK$M_XRP_ALIGN 0x20 #define PCHECK$M_DEALLO_SIZE 0x40 #define PCHECK$M_P1 0x80 #define PCHECK$S_POOLCHECKDEF 4 #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __longword #else #pragma __nomember_alignment #endif typedef struct _poolcheck { #pragma __nomember_alignment __union { int pcheck$l_poolcheck; __struct { __union { unsigned char pcheck$b_flags; /* Flag bits */ __struct { unsigned pcheck$v_poison : 1; /* Poison on deallocation */ /* Enable other features */ unsigned pcheck$v_check : 1; /* Check poisoning on allocation */ /* and poison with allo pattern */ unsigned pcheck$v_srp_free : 1; /* Poison SRPs on deallocation (obsolete) */ unsigned pcheck$v_irp_free : 1; /* Poison IRPs on deallocation (obsolete) */ unsigned pcheck$v_lrp_free : 1; /* Poison LRPs on deallocation (obsolete) */ unsigned pcheck$v_xrp_align : 1; /* Check xRP alignment on deallocation (obs) */ unsigned pcheck$v_deallo_size : 1; /* Check deallocation length against allocation length */ unsigned pcheck$v_p1 : 1; /* Do poisoning/checking on P1 space */ } pcheck$r_flags_bits; } pcheck$r_flags_overlay; unsigned char pcheck$b_size_to_check; /* What deallo size to check if DEALO_LENGTH is set */ unsigned char pcheck$b_free; /* Free pattern */ unsigned char pcheck$b_allo; /* Allocated pattern */ } pcheck$r_fill_1_; } pcheck$r_fill_0_; } POOLCHECK; #if !defined(__VAXC) #define pcheck$l_poolcheck pcheck$r_fill_0_.pcheck$l_poolcheck #define pcheck$b_flags pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$b_flags #define pcheck$v_poison pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_poison #define pcheck$v_check pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_check #define pcheck$v_srp_free pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_srp_free #define pcheck$v_irp_free pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_irp_free #define pcheck$v_lrp_free pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_lrp_free #define pcheck$v_xrp_align pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_xrp_align #define pcheck$v_deallo_size pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_deallo_size #define pcheck$v_p1 pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_p1 #define pcheck$b_size_to_check pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$b_size_to_check #define pcheck$b_free pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$b_free #define pcheck$b_allo pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$b_allo #endif /* #if !defined(__VAXC) */ /*+ */ /* PCHK_REASON - Poolcheck bugcheck reason codes */ /* */ /* This defines the poolcheck bugcheck codes pushed on the stack when a */ /* poolcheck bugcheck is declared. */ /* */ /*- */ #define PCHK_REASON$_CORRUPT 0 /* Corrupted packet */ #define PCHK_REASON$_ALIGN 1 /* Bad alignment (obsolete) */ #define PCHK_REASON$_XRP_ALIGN 2 /* Bad alignment of xRP packet (obsolete) */ #define PCHK_REASON$_PAGED 3 /* Paged block is partially outside */ #define PCHK_REASON$_NPAGED 4 /* Npaged block is partially outside */ #define PCHK_REASON$_IPL 5 /* Called P1 routines with IPL too high */ #define PCHK_REASON$_AGGLOM 6 /* Agglomeration not done */ #define PCHK_REASON$_UNBALANCED 7 /* Deallocation and allocation were not the same size */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __POOLCHECKDEF_LOADED */