/********************************************************************************************************************************/ /* Created: 9-Mar-2021 22:28:05 by OpenVMS SDL EV3-3 */ /* Source: 09-MAR-2021 22:28:01 $1$DGA8085:[STARLET_H.SRC]STARDEFAE.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $ACRDEF ***/ #ifndef __ACRDEF_LOADED #define __ACRDEF_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 /*+ */ /* ACRDEF - ACCOUNTING RECORD DEFINITIONS */ /* */ /*********************************************************************** */ /* NOTE: IF ANY FIELDS CHANGE, A NEW VERSION NUMBER MUST BE ADDED AND * */ /* "ACR$K_CURVER" EQUATED TO IT. * */ /*********************************************************************** */ /* */ /*- */ /* RECORD/PACKET VERSIONS (ACR$V_VERSION) */ #define ACR$K_VERSION2 0 /* VMS VERSION 2 ACCOUNTING FORMAT */ #define ACR$K_VERSION3T 1 /* VMS VERSION 3 FIELD TEST */ #define ACR$K_VERSION3 2 /* VMS VERSION 3 ACCOUNTING FORMAT */ #define ACR$K_VERSION4 3 /* VMS VERSION 4 ACCOUNTING FORMAT */ #define ACR$K_CURVER 3 /* CURRENT FORMAT VERSION NUMBER */ #define ACR$M_PACKET 0x1 #define ACR$M_TYPE 0xFE #define ACR$M_SUBTYPE 0xF00 #define ACR$M_VERSION 0x7000 #define ACR$M_CUSTOMER 0x8000 #define ACR$K_PRCDEL 1 /* PROCESS DELETE */ #define ACR$K_PRCPUR 2 /* PROCESS PURGE */ #define ACR$K_IMGDEL 3 /* IMAGE DELETE */ #define ACR$K_IMGPUR 4 /* IMAGE PURGE */ #define ACR$K_SYSINIT 5 /* SYSTEM INITIALIZATION */ #define ACR$K_SETTIME 6 /* SET SYSTEM TIME */ #define ACR$K_LOGFAIL 7 /* LOGIN VALIDATION FAILURE */ #define ACR$K_PRINT 8 /* PRINT JOB */ #define ACR$K_USER 9 /* USER SUPPLIED DATA */ #define ACR$K_ENABLE 10 /* ACC. MANG. FUNCTION ENABLE */ #define ACR$K_DISABLE 11 /* ACC. MANG. FUNCTION DISABLE */ #define ACR$K_ALTACM 12 /* DECLARE ALTERNATE ACC. MANG. */ #define ACR$K_FILE_FL 13 /* ACCOUNTING FILE - FORWARD LINK */ #define ACR$K_FILE_BL 14 /* ACCOUNTING FILE - BACKWARD LINK */ /* RECORD SUBTYPE (ACR$V_SUBTYPE) CONSTANTS */ #define ACR$K_INTERACTIVE 1 /* INTERACTIVE PROCESS */ #define ACR$K_SUBPROCESS 2 /* SUBPROCESS */ #define ACR$K_DETACHED 3 /* DETACHED PROCESS */ #define ACR$K_BATCH 4 /* BATCH PROCESS */ #define ACR$K_NETWORK 5 /* NETWORK PROCESS */ /* PACKET TYPE (ACR$V_TYPE) CONSTANTS */ #define ACR$K_ID 1 /* IDENTIFICATION PACKET */ #define ACR$K_RESOURCE 2 /* RESOURCE USAGE PACKET */ #define ACR$K_IMAGENAME 3 /* IMAGENAME PACKET */ #define ACR$K_FILENAME 4 /* FILENAME PACKET */ #define ACR$K_USER_DATA 5 /* USER DATA PACKET */ #ifdef __NEW_STARLET typedef struct _acrdef { __union { unsigned short int acr$w_type; /* RECORD/PACKET TYPE */ __struct { unsigned acr$v_packet : 1; /* RECORD(0)/PACKET(1) */ unsigned acr$v_type : 7; /* RECORD/PACKET TYPE */ unsigned acr$v_subtype : 4; /* RECORD/PACKET SUBTYPE */ unsigned acr$v_version : 3; /* RECORD/PACKET VERSION NUMBER */ unsigned acr$v_customer : 1; /* DIGITAL(0)/CUSTOMER(1) */ } acr$r_type_bits; /* RECORD TYPE (ACR$V_TYPE) CONSTANTS */ } acr$r_type_overlay; unsigned short int acr$w_length; /* RECORD OR PACKET LENGTH */ /* */ /* RECORD HEADER */ /* */ } ACRDEF; #if !defined(__VAXC) #define acr$w_type acr$r_type_overlay.acr$w_type #define acr$v_packet acr$r_type_overlay.acr$r_type_bits.acr$v_packet #define acr$v_type acr$r_type_overlay.acr$r_type_bits.acr$v_type #define acr$v_subtype acr$r_type_overlay.acr$r_type_bits.acr$v_subtype #define acr$v_version acr$r_type_overlay.acr$r_type_bits.acr$v_version #define acr$v_customer acr$r_type_overlay.acr$r_type_bits.acr$v_customer #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct acrdef { __union { unsigned short int acr$w_type; /* RECORD/PACKET TYPE */ __struct { unsigned acr$v_packet : 1; /* RECORD(0)/PACKET(1) */ unsigned acr$v_type : 7; /* RECORD/PACKET TYPE */ unsigned acr$v_subtype : 4; /* RECORD/PACKET SUBTYPE */ unsigned acr$v_version : 3; /* RECORD/PACKET VERSION NUMBER */ unsigned acr$v_customer : 1; /* DIGITAL(0)/CUSTOMER(1) */ } acr$r_type_bits; /* RECORD TYPE (ACR$V_TYPE) CONSTANTS */ } acr$r_type_overlay; unsigned short int acr$w_length; /* RECORD OR PACKET LENGTH */ /* */ /* RECORD HEADER */ /* */ } ; #if !defined(__VAXC) #define acr$w_type acr$r_type_overlay.acr$w_type #define acr$v_packet acr$r_type_overlay.acr$r_type_bits.acr$v_packet #define acr$v_type acr$r_type_overlay.acr$r_type_bits.acr$v_type #define acr$v_subtype acr$r_type_overlay.acr$r_type_bits.acr$v_subtype #define acr$v_version acr$r_type_overlay.acr$r_type_bits.acr$v_version #define acr$v_customer acr$r_type_overlay.acr$r_type_bits.acr$v_customer #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #define ACR$K_HDRLEN 12 /* RECORD HEADER LENGTH */ #define ACR$C_HDRLEN 12 /* RECORD HEADER LENGTH */ /* */ #ifdef __NEW_STARLET typedef struct _acrdef1 { char acrdef$$_fill_2 [4]; unsigned __int64 acr$q_systime; /* EVENT SYSTEM TIME */ /* IDENTIFICATION PACKET */ /* */ } ACRDEF1; #else /* __OLD_STARLET */ struct acrdef1 { char acrdef$$_fill_2 [4]; unsigned int acr$q_systime [2]; /* EVENT SYSTEM TIME */ /* IDENTIFICATION PACKET */ /* */ } ; #endif /* #ifdef __NEW_STARLET */ #define ACR$M_FULLNAME 0x1 #define ACR$M_UIDGID 0x2 #define ACR$M_FILL_1 0xFC #define ACR$K_IDVAR 58 /* BEGINNING OF VARIABLE STORAGE AREA */ #define ACR$C_IDVAR 58 /* BEGINNING OF VARIABLE STORAGE AREA */ /* */ #ifdef __NEW_STARLET typedef struct _acrdef2 { char acrdef$$_fill_3 [4]; unsigned int acr$l_pid; /* PROCESS ID */ unsigned int acr$l_owner; /* OWNER PROCES ID */ __union { unsigned int acr$l_uic; /* PROCESS UIC */ __struct { unsigned short int acr$w_mem; /* MEMBER UIC */ unsigned short int acr$w_grp; /* GROUP UIC */ } acr$r_uic_fields; } acr$r_uic_overlay; unsigned __int64 acr$q_priv; /* PROCESS PRIV */ unsigned char acr$b_pri; /* PROCESS PRIORITY */ __union { unsigned char acr$b_idflgs; /* FLAGS BIT MASK */ __struct { unsigned acr$v_fullname : 1; /* NOT PRESENT (0)/PRESENT(1) */ unsigned acr$v_uidgid : 1; /* NOT PRESENT (0)/PRESENT(1) */ unsigned acr$v_fill_1 : 6; /* SPARE BITS */ } acr$r_idflgs_bits; } acr$r_idflgs_overlay; unsigned short int acr$w_username; /* USERNAME OFFSET */ unsigned short int acr$w_account; /* ACCOUNT NAME OFFSET */ unsigned short int acr$w_nodename; /* NODE NAME OFFSET */ unsigned short int acr$w_terminal; /* TERMINAL NAME OFFSET */ unsigned short int acr$w_jobname; /* JOB NAME OFFSET */ unsigned int acr$l_jobid; /* JOB ID */ unsigned short int acr$w_queue; /* QUEUE NAME OFFSET */ unsigned short int acr$w_nodeaddr; /* REMOTE NODE ADDRESS */ unsigned short int acr$w_remoteid; /* REMOTE ID OFFSET */ unsigned short int acr$w_fulladdr; /* REMOTE PHASE V ADDRESS */ unsigned short int acr$w_fullname; /* REMOTE PHASE V FULLNAME */ unsigned int acr$l_posix_uid; /* POSIX UID */ unsigned int acr$l_posix_gid; /* POSIX GID */ /* RESOURCE PACKET */ /* */ } ACRDEF2; #if !defined(__VAXC) #define acr$l_uic acr$r_uic_overlay.acr$l_uic #define acr$w_mem acr$r_uic_overlay.acr$r_uic_fields.acr$w_mem #define acr$w_grp acr$r_uic_overlay.acr$r_uic_fields.acr$w_grp #define acr$b_idflgs acr$r_idflgs_overlay.acr$b_idflgs #define acr$v_fullname acr$r_idflgs_overlay.acr$r_idflgs_bits.acr$v_fullname #define acr$v_uidgid acr$r_idflgs_overlay.acr$r_idflgs_bits.acr$v_uidgid #define acr$v_fill_1 acr$r_idflgs_overlay.acr$r_idflgs_bits.acr$v_fill_1 #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct acrdef2 { char acrdef$$_fill_3 [4]; unsigned int acr$l_pid; /* PROCESS ID */ unsigned int acr$l_owner; /* OWNER PROCES ID */ __union { unsigned int acr$l_uic; /* PROCESS UIC */ __struct { unsigned short int acr$w_mem; /* MEMBER UIC */ unsigned short int acr$w_grp; /* GROUP UIC */ } acr$r_uic_fields; } acr$r_uic_overlay; unsigned int acr$q_priv [2]; /* PROCESS PRIV */ unsigned char acr$b_pri; /* PROCESS PRIORITY */ __union { unsigned char acr$b_idflgs; /* FLAGS BIT MASK */ __struct { unsigned acr$v_fullname : 1; /* NOT PRESENT (0)/PRESENT(1) */ unsigned acr$v_uidgid : 1; /* NOT PRESENT (0)/PRESENT(1) */ unsigned acr$v_fill_1 : 6; /* SPARE BITS */ } acr$r_idflgs_bits; } acr$r_idflgs_overlay; unsigned short int acr$w_username; /* USERNAME OFFSET */ unsigned short int acr$w_account; /* ACCOUNT NAME OFFSET */ unsigned short int acr$w_nodename; /* NODE NAME OFFSET */ unsigned short int acr$w_terminal; /* TERMINAL NAME OFFSET */ unsigned short int acr$w_jobname; /* JOB NAME OFFSET */ unsigned int acr$l_jobid; /* JOB ID */ unsigned short int acr$w_queue; /* QUEUE NAME OFFSET */ unsigned short int acr$w_nodeaddr; /* REMOTE NODE ADDRESS */ unsigned short int acr$w_remoteid; /* REMOTE ID OFFSET */ unsigned short int acr$w_fulladdr; /* REMOTE PHASE V ADDRESS */ unsigned short int acr$w_fullname; /* REMOTE PHASE V FULLNAME */ unsigned int acr$l_posix_uid; /* POSIX UID */ unsigned int acr$l_posix_gid; /* POSIX GID */ /* RESOURCE PACKET */ /* */ } ; #if !defined(__VAXC) #define acr$l_uic acr$r_uic_overlay.acr$l_uic #define acr$w_mem acr$r_uic_overlay.acr$r_uic_fields.acr$w_mem #define acr$w_grp acr$r_uic_overlay.acr$r_uic_fields.acr$w_grp #define acr$b_idflgs acr$r_idflgs_overlay.acr$b_idflgs #define acr$v_fullname acr$r_idflgs_overlay.acr$r_idflgs_bits.acr$v_fullname #define acr$v_uidgid acr$r_idflgs_overlay.acr$r_idflgs_bits.acr$v_uidgid #define acr$v_fill_1 acr$r_idflgs_overlay.acr$r_idflgs_bits.acr$v_fill_1 #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #ifdef __NEW_STARLET typedef struct _acrdef3 { char acrdef$$_fill_4 [4]; unsigned __int64 acr$q_login; /* PROCESS/IMAGE START TIME */ unsigned int acr$l_status; /* PROCESS/IMAGE FINAL STATUS */ unsigned int acr$l_imgcnt; /* IMAGE EXECUTION COUNT/SEQUENCE NUMBER */ unsigned int acr$l_cputime; /* PROCESS/IMAGE CPU TIME */ unsigned int acr$l_faults; /* PROCESS/IMAGE PAGE FAULT COUNT */ unsigned int acr$l_faultio; /* PROCESS/IMAGE PAGE FAULT I/O COUNT */ unsigned int acr$l_wspeak; /* PROCESS/IMAGE WORKING SET PEAK */ unsigned int acr$l_pagefl; /* PROCESS/IMAGE PEAK PAGE FILE USAGE */ unsigned int acr$l_diocnt; /* PROCESS/IMAGE DIRECT I/O COUNT */ unsigned int acr$l_biocnt; /* PROCESS/IMAGE BUFFERED I/O COUNT */ unsigned int acr$l_volumes; /* PROCESS/IMAGE VOLUME MOUNT COUNT */ unsigned int acr$l_vp_cputime; /* PROCESS/IMAGE VECTOR CPU TIME */ /* */ /* IMAGENAME PACKET */ /* */ } ACRDEF3; #else /* __OLD_STARLET */ struct acrdef3 { char acrdef$$_fill_4 [4]; unsigned int acr$q_login [2]; /* PROCESS/IMAGE START TIME */ unsigned int acr$l_status; /* PROCESS/IMAGE FINAL STATUS */ unsigned int acr$l_imgcnt; /* IMAGE EXECUTION COUNT/SEQUENCE NUMBER */ unsigned int acr$l_cputime; /* PROCESS/IMAGE CPU TIME */ unsigned int acr$l_faults; /* PROCESS/IMAGE PAGE FAULT COUNT */ unsigned int acr$l_faultio; /* PROCESS/IMAGE PAGE FAULT I/O COUNT */ unsigned int acr$l_wspeak; /* PROCESS/IMAGE WORKING SET PEAK */ unsigned int acr$l_pagefl; /* PROCESS/IMAGE PEAK PAGE FILE USAGE */ unsigned int acr$l_diocnt; /* PROCESS/IMAGE DIRECT I/O COUNT */ unsigned int acr$l_biocnt; /* PROCESS/IMAGE BUFFERED I/O COUNT */ unsigned int acr$l_volumes; /* PROCESS/IMAGE VOLUME MOUNT COUNT */ unsigned int acr$l_vp_cputime; /* PROCESS/IMAGE VECTOR CPU TIME */ /* */ /* IMAGENAME PACKET */ /* */ } ; #endif /* #ifdef __NEW_STARLET */ #ifdef __NEW_STARLET typedef struct _acrdef4 { char acrdef$$_fill_5 [4]; char acr$t_imagename [256]; /* IMAGENAME */ /* */ /* PRINT RESOURCE PACKET */ /* */ } ACRDEF4; #else /* __OLD_STARLET */ struct acrdef4 { char acrdef$$_fill_5 [4]; char acr$t_imagename [256]; /* IMAGENAME */ /* */ /* PRINT RESOURCE PACKET */ /* */ } ; #endif /* #ifdef __NEW_STARLET */ #ifdef __NEW_STARLET typedef struct _acrdef5 { char acrdef$$_fill_6 [4]; unsigned int acr$l_printsts; /* JOB STATUS */ unsigned __int64 acr$q_quetime; /* TIME JOB WAS QUEUED */ unsigned __int64 acr$q_begtime; /* TIME JOB WAS BEGUN */ unsigned int acr$l_symcputim; /* SYMBIONT CPU TIME */ unsigned int acr$l_pagecnt; /* TOTAL PAGES PRINTED */ unsigned int acr$l_qiocnt; /* TOTAL QIOS ISSUED */ unsigned int acr$l_getcnt; /* TOTAL GETS ISSUED */ /* */ /* FILENAME PACKET */ /* */ } ACRDEF5; #else /* __OLD_STARLET */ struct acrdef5 { char acrdef$$_fill_6 [4]; unsigned int acr$l_printsts; /* JOB STATUS */ unsigned int acr$q_quetime [2]; /* TIME JOB WAS QUEUED */ unsigned int acr$q_begtime [2]; /* TIME JOB WAS BEGUN */ unsigned int acr$l_symcputim; /* SYMBIONT CPU TIME */ unsigned int acr$l_pagecnt; /* TOTAL PAGES PRINTED */ unsigned int acr$l_qiocnt; /* TOTAL QIOS ISSUED */ unsigned int acr$l_getcnt; /* TOTAL GETS ISSUED */ /* */ /* FILENAME PACKET */ /* */ } ; #endif /* #ifdef __NEW_STARLET */ #ifdef __NEW_STARLET typedef struct _acrdef6 { char acrdef$$_fill_7 [4]; char acr$t_filename [256]; /* FILENAME */ /* */ /* USER DATA PACKET */ /* */ } ACRDEF6; #else /* __OLD_STARLET */ struct acrdef6 { char acrdef$$_fill_7 [4]; char acr$t_filename [256]; /* FILENAME */ /* */ /* USER DATA PACKET */ /* */ } ; #endif /* #ifdef __NEW_STARLET */ #ifdef __NEW_STARLET typedef struct _acrdef7 { char acrdef$$_fill_8 [4]; char acr$t_user_data [256]; /* USER DATA */ } ACRDEF7; #else /* __OLD_STARLET */ struct acrdef7 { char acrdef$$_fill_8 [4]; char acr$t_user_data [256]; /* USER DATA */ } ; #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 /* __ACRDEF_LOADED */