/********************************************************************************************************************************/ /* Created: 9-Mar-2021 22:28:06 by OpenVMS SDL EV3-3 */ /* Source: 09-MAR-2021 22:28:01 $1$DGA8085:[STARLET_H.SRC]STARDEFQZ.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $USGDEF ***/ #ifndef __USGDEF_LOADED #define __USGDEF_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 /*+ */ /* Disk usage accounting file produced by ANALYZE/DISK_STRUCTURE utility. */ /*- */ #define USG$K_IDENT 1 /* Identification record */ #define USG$K_FILE 2 /* File record */ #define USG$K_IDENT_LEN 61 /* Length of IDENT record */ #define USG$C_IDENT_LEN 61 /* Length of IDENT record */ #ifdef __NEW_STARLET typedef struct _usgdef { unsigned char usg$b_type; /* Record type */ unsigned int usg$l_serialnum; /* Pack serial number */ char usg$t_strucname [12]; /* Volume set name */ char usg$t_volname [12]; /* Volume name */ char usg$t_ownername [12]; /* Volume owner name */ char usg$t_format [12]; /* Volume format type */ /* *** Preceding same as home block *** */ unsigned __int64 usg$q_time; /* Time usage file created */ } USGDEF; #else /* __OLD_STARLET */ struct usgdef { unsigned char usg$b_type; /* Record type */ unsigned int usg$l_serialnum; /* Pack serial number */ char usg$t_strucname [12]; /* Volume set name */ char usg$t_volname [12]; /* Volume name */ char usg$t_ownername [12]; /* Volume owner name */ char usg$t_format [12]; /* Volume format type */ /* *** Preceding same as home block *** */ unsigned int usg$q_time [2]; /* Time usage file created */ } ; #endif /* #ifdef __NEW_STARLET */ #define USG$K_FILE_LEN 423 /* Maximum length of FILE record */ #define USG$C_FILE_LEN 423 /* Maximum length of FILE record */ #ifdef __NEW_STARLET typedef struct _usgdef1 { char usgdef$$_fill_1; __union { unsigned int usg$l_fileowner; /* File owner UIC */ __struct { unsigned short int usg$w_uicmember; /* UIC member number */ unsigned short int usg$w_uicgroup; /* UIC group number */ } usg$r_fileowner_fields; } usg$r_fileowner_overlay; unsigned int usg$l_allocated; /* Blocks allocated, including headers */ unsigned int usg$l_used; /* Blocks used */ unsigned short int usg$w_dir_len; /* Length of directory string */ unsigned short int usg$w_spec_len; /* Length of complete file specification */ char usg$t_filespec [406]; /* File spec "[dir]nam.typ;ver" */ } USGDEF1; #if !defined(__VAXC) #define usg$l_fileowner usg$r_fileowner_overlay.usg$l_fileowner #define usg$w_uicmember usg$r_fileowner_overlay.usg$r_fileowner_fields.usg$w_uicmember #define usg$w_uicgroup usg$r_fileowner_overlay.usg$r_fileowner_fields.usg$w_uicgroup #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct usgdef1 { char usgdef$$_fill_1; __union { unsigned int usg$l_fileowner; /* File owner UIC */ __struct { unsigned short int usg$w_uicmember; /* UIC member number */ unsigned short int usg$w_uicgroup; /* UIC group number */ } usg$r_fileowner_fields; } usg$r_fileowner_overlay; unsigned int usg$l_allocated; /* Blocks allocated, including headers */ unsigned int usg$l_used; /* Blocks used */ unsigned short int usg$w_dir_len; /* Length of directory string */ unsigned short int usg$w_spec_len; /* Length of complete file specification */ char usg$t_filespec [406]; /* File spec "[dir]nam.typ;ver" */ } ; #if !defined(__VAXC) #define usg$l_fileowner usg$r_fileowner_overlay.usg$l_fileowner #define usg$w_uicmember usg$r_fileowner_overlay.usg$r_fileowner_fields.usg$w_uicmember #define usg$w_uicgroup usg$r_fileowner_overlay.usg$r_fileowner_fields.usg$w_uicgroup #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #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 /* __USGDEF_LOADED */