/**/ /***************************************************************************/ /** **/ /** © 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:33 by OpenVMS SDL EV3-3 */ /* Source: 25-OCT-1994 08:33:10 $1$DGA7274:[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 */