/* * * Accounting record definitions */ #ifndef _ACRDEF_H #define _ACRDEF_H /* 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_CURVER 2 /* current format version number */ #define ACR$V_PACKET 0 #define ACR$M_PACKET 1 #define ACR$S_PACKET 1 #define ACR$V_TYPE 1 #define ACR$M_TYPE 0x00FE #define ACR$S_TYPE 7 #define ACR$V_SUBTYPE 8 #define ACR$M_SUBTYPE 0x0F00 #define ACR$S_SUBTYPE 4 #define ACR$V_VERSION 12 #define ACR$M_VERSION 0x7000 #define ACR$S_VERSION 3 #define ACR$V_CUSTOMER 15 #define ACR$M_CUSTOMER 0x8000 #define ACR$S_CUSTOMER 1 /* Record type (acr$v_type) constants */ #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 */ /* Record header */ struct acrdef { union { unsigned short 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; } acr$r_type_overlay; unsigned short acr$w_length; /* record or packet length */ }; #define ACR$K_HDRLEN 12 /* record header length */ #define ACR$C_HDRLEN 12 /* record header length */ struct acrdef1 { unsigned : 8, : 8, : 8, : 8; /* char fill[4]; */ unsigned int acr$q_systime[2]; /* event system time */ }; #ifndef NO_VMS_V6 #define ACR$V_FULLNAME 0 #define ACR$M_FULLNAME (1<