/***************************************************************************/ /** **/ /** 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:45 by OpenVMS SDL V3.7 */ /* Source: 25-OCT-1994 08:33:10 $1$DGA8345:[LIB_H.SRC]BUFIODEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $BUFIODEF ***/ #ifndef __BUFIODEF_LOADED #define __BUFIODEF_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 /*+ */ /* BUFIO - Buffered I/O Packet Header */ /* */ /* There are two alternative formats for the packet header of a simple */ /* buffered I/O packet. The first is the "traditional" 12 byte header */ /* (symbolic constant BUFIO$K_HDRLEN32) that contains room for a 32-bit */ /* user buffer address. The second alternative format, with size */ /* BUFIO$K_HDRLEN64, that contains room for a 64-bit user buffer address. */ /* */ /* These two types of simple buffered I/O packets are "self identifying." */ /* That is, it is possible to distinguish a 32-bit from a 64-bit format */ /* packet from the 32-bit user buffer address cell. A -1 value (symbolic */ /* constant BUFIO$K_64) in this cell indicates that this is a 64-bit buffered */ /* I/O packet and that the user buffer address is in the BUFIO$PQ_UVA64 cell. */ /* This is very similar to the method used to identify a 64-bit descriptor. */ /*- */ #define BUFIO$K_64 -1 /* BUFIO$K_64, see BUFIO$PQ_UVA64 */ #define BUFIO$K_HDRLEN32 12 /* Size of 32-bit BUFIO packet header */ #define BUFIO$K_HDRLEN64 24 /* Size of 64-bit BUFIO packet header */ #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 _bufio { #pragma __nomember_alignment void *bufio$ps_pktdata; /* Pointer to the buffered data within the packet */ void *bufio$ps_uva32; /* 32-bit pointer to user's buffer, or BUFIO$K_64 (-1) */ unsigned short int bufio$w_size; /* Total packet size */ unsigned char bufio$b_type; /* Structure type, DYN$C_BUFIO */ char bufio$b_fill_1; int bufio$l_fill_2; #pragma __member_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __long /* And set ptr size default to 64-bit pointers */ void *bufio$pq_uva64; /* 64-bit pointer to user's buffer */ #else unsigned __int64 bufio$pq_uva64; #endif /* Valid if and only if BUFIO$PS_UVA32 contains */ /* the value BUFIO$K_64 (-1). */ } BUFIO; #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 /* __BUFIODEF_LOADED */