/***************************************************************************/ /** **/ /** HPE CONFIDENTIAL. This software is confidential proprietary software **/ /** licensed by Hewlett-Packard Enterprise Development, LP, and is not **/ /** authorized to be used, duplicated OR disclosed to anyone without the **/ /** prior written permission of HPE. **/ /** © 2023 Copyright Hewlett-Packard Enterprise Development, LP **/ /** **/ /** VMS SOFTWARE, INC. CONFIDENTIAL. This software is confidential **/ /** proprietary software licensed by VMS Software, Inc., and is not **/ /** authorized to be used, duplicated or disclosed to anyone without **/ /** the prior written permission of VMS Software, Inc. **/ /** © 2023 Copyright VMS Software, Inc. **/ /** **/ /***************************************************************************/ /********************************************************************************************************************************/ /* Created: 9-Nov-2023 12:06:42 by OpenVMS SDL V3.7 */ /* Source: 13-APR-2020 16:28:32 $1$DGA8345:[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 73 /*MINIMUM EXTENDED GSD LENGTH */ #define GSD$C_EXTGSDLNG 73 /*MINIMUM EXTENDED GSD LENGTH */ #define GSD$S_GSDDEF 73 #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 __octaword #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. */ /* */ /* Verified for x86 port - Clair Grant */ unsigned __int64 gsd$i_basepfn; /*FIRST RELATIVE BASE PFN */ } gsd$r_gsd_overlay; /* Verified for x86 port - Clair Grant */ unsigned __int64 gsd$i_pages; /*COUNT OF PAGES AT FIRST BASE PFN */ unsigned __int64 gsd$i_refcnt; /*FIRST PROCESSOR PTE REF COUNT */ char gsd$t_pfngsdnam; /*PFN-MAPPED SECTION NAME */ /*from MA780 days. */ char gsd$b_fill_0_ [7]; } 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$i_basepfn gsd$r_gsd_overlay.gsd$i_basepfn #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 */