/**/ /***************************************************************************/ /** **/ /** © 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:59 by OpenVMS SDL EV3-3 */ /* Source: 30-MAY-1995 14:26:02 $1$DGA7274:[LIB_H.SRC]UTCDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $UTCDEF ***/ #ifndef __UTCDEF_LOADED #define __UTCDEF_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 /*+ */ /* */ /* $UTCDEF defines the storage format for UTC based times. */ /* */ /*- */ #define UTC$M_TDF 0xFFF #define UTC$M_VER 0xF000 #define UTC$S_UTCDEF 16 /* Old size name - synonym */ typedef struct _utc { __union { __struct { __int64 utc$a_whole_time [2]; /* Double quad to fetch entire time */ } utc$r_utcdef_wtim; __struct { unsigned __int64 utc$q_abstime; /* 64 bit system time */ /* In units of 100ns ticks */ unsigned __int64 utc$q_tdf_etc; /* Inaccuracy, TDF, and version */ } utc$r_utcdef_quad0; __struct { unsigned int utc$l_abs0; /* Least sig 4 bytes of binary time */ unsigned int utc$l_abs1; /* Most sig 4 bytes of binary time */ unsigned int utc$l_inac; /* 4 least sig bytes of inaccuracy */ unsigned int utc$l_tdfv; /* 4 bits vers, 12 bits TDF, 2 */ /* most sig bytes of inaccuracy */ } utc$r_utcdef_long0; __struct { __int64 utc$q_fill_1; /* Overlay filler */ char utc$a_inaccur [6]; /* Six bytes of inaccuracy */ /* In units of 100ns ticks */ __union { __struct { unsigned short int utc$w_tdfwrd; /* Fetch the TDF and the version */ } utc$r_utcdef_tdfwrd; __struct { unsigned utc$v_tdf : 12; /* 12 bits of offset from UTC to local */ /* In units of minutes */ unsigned utc$v_ver : 4; /* Unsigned version number */ } utc$r_utcdef_tdfbit1; } utc$r_utcdef_tdfbit0; } utc$r_utcdef_fld0; } utc$r_utcdef_time; } UTC; #if !defined(__VAXC) #define utc$a_whole_time utc$r_utcdef_time.utc$r_utcdef_wtim.utc$a_whole_time #define utc$q_abstime utc$r_utcdef_time.utc$r_utcdef_quad0.utc$q_abstime #define utc$q_tdf_etc utc$r_utcdef_time.utc$r_utcdef_quad0.utc$q_tdf_etc #define utc$l_abs0 utc$r_utcdef_time.utc$r_utcdef_long0.utc$l_abs0 #define utc$l_abs1 utc$r_utcdef_time.utc$r_utcdef_long0.utc$l_abs1 #define utc$l_inac utc$r_utcdef_time.utc$r_utcdef_long0.utc$l_inac #define utc$l_tdfv utc$r_utcdef_time.utc$r_utcdef_long0.utc$l_tdfv #define utc$a_inaccur utc$r_utcdef_time.utc$r_utcdef_fld0.utc$a_inaccur #define utc$w_tdfwrd utc$r_utcdef_time.utc$r_utcdef_fld0.utc$r_utcdef_tdfbit0.utc$r_utcdef_tdfwrd.utc$w_tdfwrd #define utc$v_tdf utc$r_utcdef_time.utc$r_utcdef_fld0.utc$r_utcdef_tdfbit0.utc$r_utcdef_tdfbit1.utc$v_tdf #define utc$v_ver utc$r_utcdef_time.utc$r_utcdef_fld0.utc$r_utcdef_tdfbit0.utc$r_utcdef_tdfbit1.utc$v_ver #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 /* __UTCDEF_LOADED */