/**/ /***************************************************************************/ /** **/ /** © 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:16 by OpenVMS SDL EV3-3 */ /* Source: 25-FEB-2004 17:36:36 $1$DGA7274:[LIB_H.SRC]GSDDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $GSDDEF ***/ #ifndef __GSDDEF_LOADED #define __GSDDEF_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 /*+ */ /* Global Section Descriptor Block */ /*- */ #define GSD$K_LENGTH 49 /*LENGTH OF LOCAL MEMORY GSD */ #define GSD$C_LENGTH 49 /*LENGTH OF LOCAL MEMORY GSD */ #define GSD$K_EXTGSDLNG 61 /*MINIMUM EXTENDED GSD LENGTH */ #define GSD$C_EXTGSDLNG 61 /*MINIMUM EXTENDED GSD LENGTH */ #define GSD$S_GSDDEF 61 #define GSD$C_MAXNAMLEN 43 /*Maximum length of a global section name (not including count byte) */ /*The size reflects 39-byte filenames and a 4-character prefix */ #ifdef __cplusplus /* Define structure prototypes */ struct _orb; #endif /* #ifdef __cplusplus */ #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __quadword #else #pragma __nomember_alignment #endif typedef struct _gsd { #pragma __nomember_alignment struct _gsd *gsd$l_gsdfl; /*POINTER TO NEXT GSD */ struct _gsd *gsd$l_gsdbl; /*POINTER TO PREVIOUS GSD */ unsigned short int gsd$w_size; /*SIZE OF GSD IN BYTES */ unsigned char gsd$b_type; /*STRUCTURE TYPE CODE FOR GSD */ unsigned char gsd$b_fill_1; unsigned int gsd$l_hash; /*HASH FOR GSD NAME */ __union { unsigned int gsd$l_pcbuic; /*UIC OF CREATOR OF SECTION, FROM PCB */ __struct { char gsddef$$_fill_6 [2]; unsigned short int gsd$w_pcbgrp; /*GROUP OF CREATOR OF SECTION, FROM PCB */ } gsd$r_pcbuic_fields; } gsd$r_pcbuic_overlay; unsigned int gsd$l_filuic; /*OWNER OF FILE, UIC FROM FCB */ unsigned int gsd$l_prot; /*PROTECTION MASK */ unsigned int gsd$l_gstx; /*GLOBAL SECTION TABLE INDEX */ unsigned int gsd$l_ident; /*IDENTIFICATION OF GLOBAL SECTION */ struct _orb *gsd$l_orb; /*OBJECT RIGHTS BLOCK LOCATOR */ __union { unsigned int gsd$l_ipid; /*IPID of nominal owner -- only defined while GSD is being deleted */ unsigned int gsd$l_related_gstx; /*GSTE index of another section related to this one. */ /* e.g. an MRES section with associated shared PTs */ } gsd$r_ipid_overlay; unsigned int gsd$l_flags; /*SECTION FLAGS */ __union { __struct { char gsd$t_gsdnam; /*LOCAL MEMORY SECTION NAME */ char gsd$b_fill_2 [3]; } gsd$r_local_end_structure; /* */ /* The following fields are only found in extended GSDs. These are used */ /* whenever a GSD is needed without a section table entry, i.e., for pages */ /* mapped by PFN. */ /* */ __union { unsigned int gsd$l_basepfn; /*FIRST RELATIVE BASE PFN */ unsigned int gsd$i_basepfn; /*FIRST RELATIVE BASE PFN */ } gsd$r_basepfn_overlay; } gsd$r_gsd_overlay; __union { unsigned int gsd$l_pages; /*COUNT OF PAGES AT FIRST BASE PFN */ unsigned int gsd$i_pages; /*COUNT OF PAGES AT FIRST BASE PFN */ } gsd$r_pages_overlay; __union { unsigned int gsd$l_refcnt; /*FIRST PROCESSOR PTE REF COUNT */ unsigned int gsd$i_refcnt; /*COUNT OF PAGES AT FIRST BASE PFN */ } gsd$r_refcnt_overlay; char gsd$t_pfngsdnam; /*PFN-MAPPED SECTION NAME */ /*from MA780 days. */ char gsd$b_fill_0_ [3]; } GSD; #if !defined(__VAXC) #define gsd$l_pcbuic gsd$r_pcbuic_overlay.gsd$l_pcbuic #define gsd$w_pcbgrp gsd$r_pcbuic_overlay.gsd$r_pcbuic_fields.gsd$w_pcbgrp #define gsd$l_ipid gsd$r_ipid_overlay.gsd$l_ipid #define gsd$l_related_gstx gsd$r_ipid_overlay.gsd$l_related_gstx #define gsd$t_gsdnam gsd$r_gsd_overlay.gsd$r_local_end_structure.gsd$t_gsdnam #define gsd$r_basepfn_overlay gsd$r_gsd_overlay.gsd$r_basepfn_overlay #define gsd$l_basepfn gsd$r_basepfn_overlay.gsd$l_basepfn #define gsd$i_basepfn gsd$r_basepfn_overlay.gsd$i_basepfn #define gsd$l_pages gsd$r_pages_overlay.gsd$l_pages #define gsd$i_pages gsd$r_pages_overlay.gsd$i_pages #define gsd$l_refcnt gsd$r_refcnt_overlay.gsd$l_refcnt #define gsd$i_refcnt gsd$r_refcnt_overlay.gsd$i_refcnt #endif /* #if !defined(__VAXC) */ #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 /* __GSDDEF_LOADED */