/********************************************************************************************************************************/ /* Created: 15-MAR-2001 23:37:59 by OpenVMS SDL EV1-33 */ /* Source: 15-MAR-2001 23:34:09 _$11$DUA933:[BUILD.SDL]STARDEFFL.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $JPIDEF ***/ #ifndef __JPIDEF_LOADED #define __JPIDEF_LOADED 1 #pragma nostandard #ifdef __cplusplus extern "C" { #define __unknown_params ... #else #define __unknown_params #endif #if !defined(__VAXC) && !defined(VAXC) #define __struct struct #define __union union #else #define __struct variant_struct #define __union variant_union #endif /*+ */ /* */ /* Get Job Process Information Data Identifier Definitions */ /* */ /* **** NOTE **** */ /* */ /* New items must always be added to the END of each item list */ /* (preceeding the ENDlistname item) so that users will not have */ /* to relink. */ /*- */ /* DEFINE TABLE NUMBERS */ /* STRUCTURE CODES MUST START AT 1 */ #define JPI$C_ADRTYPE 1 /* ITEM IS ADDRESS OF DATA */ #define JPI$C_CTLTYPE 2 /* ITEM IS IN CONTROL REGION */ #define JPI$C_PCBTYPE 3 /* ITEM IN PCB */ #define JPI$C_PHDTYPE 4 /* ITEM IN PHD */ #define JPI$C_PCBFLDTYPE 5 /* ITEM IS BIT FIELD */ #define JPI$C_PHDFLDTYPE 6 /* ITEM IS BIT FIELD */ #define JPI$C_JIBTYPE 7 /* ITEM IN JIB (SUBTYPE) */ #define JPI$C_ARBTYPE 8 /* ITEM IN ARB (SUBTYPE) */ #define JPI$C_MAXSTRUC 6 /* TOTAL OF 6 TABLES */ #define JPI$C_LISTEND 0 /* DEFINE ITMLST TERMINATOR */ #define JPI$_CHAIN -1 /* CHAIN INDICATOR */ #define JPI$_GETJPI_CONTROL_FLAGS -2 /* SPECIAL CONTROL ITEMS */ #define JPI$M_NO_TARGET_INSWAP 0x1 #define JPI$M_NO_TARGET_AST 0x2 #define JPI$M_IGNORE_TARGET_STATUS 0x4 struct jpictldef { __union { unsigned int jpi$l_jpictlflgs; /* Control item flags */ __struct { unsigned jpi$v_no_target_inswap : 1; /* Do not inswap the target process, (do deliver ASTs if it is resident) */ unsigned jpi$v_no_target_ast : 1; /* Do not send AST to target */ unsigned jpi$v_ignore_target_status : 1; /* Don't check target state */ unsigned jpi$v_fill_47 : 5; } jpi$r_fill_46; } jpi$r_fill_45; } ; #if !defined(__VAXC) && !defined(VAXC) #define jpi$v_no_target_inswap jpi$r_fill_45.jpi$r_fill_46.jpi$v_no_target_inswap #define jpi$v_no_target_ast jpi$r_fill_45.jpi$r_fill_46.jpi$v_no_target_ast #define jpi$v_ignore_target_status jpi$r_fill_45.jpi$r_fill_46.jpi$v_ignore_target_status #endif /* #if !defined(__VAXC) && !defined(VAXC) */ /* NOTE: the following constants must match values in $JIBDEF! */ #define JPI$K_OTHER 0 /* JPI$_Mode values */ #define JPI$K_NETWORK 1 /* JPI$_Mode values */ #define JPI$K_BATCH 2 /* JPI$_Mode values */ #define JPI$K_INTERACTIVE 3 /* JPI$_Mode values */ #define JPI$K_DETACHED 0 /* JPI$_JOBTYPE values */ #define JPI$K_LOCAL 3 /* JPI$_JOBTYPE values */ #define JPI$K_DIALUP 4 /* JPI$_JOBTYPE values */ #define JPI$K_REMOTE 5 /* JPI$_JOBTYPE values */ /* (also BATCH & INTERACTIVE) */ #define JPI$M_NEW_MAIL_AT_LOGIN 0x1 #define JPI$M_PASSWORD_CHANGED 0x2 #define JPI$M_PASSWORD_EXPIRED 0x4 #define JPI$M_PASSWORD_WARNING 0x8 #define JPI$M_PASSWORD2_CHANGED 0x10 #define JPI$M_PASSWORD2_EXPIRED 0x20 #define JPI$M_PASSWORD2_WARNING 0x40 struct jpilgidef { __union { unsigned int jpi$l_jpilgiflgs; /* Miscellaneous LOGIN flags */ __struct { unsigned jpi$v_new_mail_at_login : 1; /* User had new MAIL message(s) */ unsigned jpi$v_password_changed : 1; /* Primary password changed */ unsigned jpi$v_password_expired : 1; /* Primary password expired on login */ unsigned jpi$v_password_warning : 1; /* Primary password expiration imminent */ unsigned jpi$v_password2_changed : 1; /* Secondary password changed */ unsigned jpi$v_password2_expired : 1; /* Secondary password expired on login */ unsigned jpi$v_password2_warning : 1; /* Secondary password expiration imminent */ unsigned jpi$v_fill_50 : 1; } jpi$r_fill_49; } jpi$r_fill_48; } ; #if !defined(__VAXC) && !defined(VAXC) #define jpi$v_new_mail_at_login jpi$r_fill_48.jpi$r_fill_49.jpi$v_new_mail_at_login #define jpi$v_password_changed jpi$r_fill_48.jpi$r_fill_49.jpi$v_password_changed #define jpi$v_password_expired jpi$r_fill_48.jpi$r_fill_49.jpi$v_password_expired #define jpi$v_password_warning jpi$r_fill_48.jpi$r_fill_49.jpi$v_password_warning #define jpi$v_password2_changed jpi$r_fill_48.jpi$r_fill_49.jpi$v_password2_changed #define jpi$v_password2_expired jpi$r_fill_48.jpi$r_fill_49.jpi$v_password2_expired #define jpi$v_password2_warning jpi$r_fill_48.jpi$r_fill_49.jpi$v_password2_warning #endif /* #if !defined(__VAXC) && !defined(VAXC) */ /* ITEM IDENTIFIERS FOR PCB */ #define JPI$_ASTACT 768 /* ACCESS MODES WITH ACTIVE ASTS */ #define JPI$_ASTEN 769 /* ACCESS MODES WITH ASTS ENABLED */ #define JPI$_PRI 770 /* CURRENT PROCESS PRIORITY */ #define JPI$_OWNER 771 /* Epid of owner process, if this is a subprocess */ #define JPI$_UIC 772 /* UIC OF PROCESS */ #define JPI$_STS 773 /* PROCESS STATUS */ #define JPI$_STATE 774 /* PROCESS STATE */ #define JPI$_MEM 775 /* MEMBER FIELD OF UIC */ #define JPI$_GRP 776 /* GROUP FIELD OF UIC */ #define JPI$_PRIB 777 /* PROCESS BASE PRIORITY */ #define JPI$_APTCNT 778 /* ACTIVE PAGE TABLE COUNT */ #define JPI$_TMBU 779 /* TERMINATION MAILBOX UNIT */ #define JPI$_GPGCNT 780 /* GLOBAL PAGE COUNT IN WORKING SET */ #define JPI$_PPGCNT 781 /* PROCESS PAGE COUNT IN WORKING SET */ #define JPI$_ASTCNT 782 /* AST COUNT REMAINING */ #define JPI$_BIOCNT 783 /* BUFFERED I/O COUNT REMAINING */ #define JPI$_BIOLM 784 /* BUFFERED I/O LIMIT */ #define JPI$_BYTCNT 785 /* BYTE COUNT REMAINING FOR BUFFERED I/O */ #define JPI$_DIOCNT 786 /* DIRECT I/O COUNT REMAINING */ #define JPI$_DIOLM 787 /* DIRECT I/O COUNT LIMIT */ #define JPI$_FILCNT 788 /* COUNT REMAINING OF OPEN FILES */ #define JPI$_TQCNT 789 /* COUNT REMAINING OF TIMER QUEUE ENTRIES */ #define JPI$_EFWM 790 /* EVENT FLAG WAIT MASK */ #define JPI$_EFCS 791 /* LOCAL EVENT FLAGS 0-31 */ #define JPI$_EFCU 792 /* LOCAL EVENT FLAGS 32-63 */ #define JPI$_PID 793 /* PROCESS IDENTIFICATION */ #define JPI$_BYTLM 794 /* BUFFERED I/0 BYTE COUNT LIMIT */ #define JPI$_PRCCNT 795 /* SUBPROCESS COUNT */ #define JPI$_PRCNAM 796 /* PROCESS NAME */ #define JPI$_TERMINAL 797 /* LOGIN TERMINAL NAME */ #define JPI$_JOBPRCCNT 798 /* TOTAL COUNT OF SUBPROCESSES IN A JOB */ #define JPI$_ENQCNT 799 /* ENQUEUE COUNT REMAINING */ #define JPI$_ENQLM 800 /* ENQUEUE COUNT LIMIT */ #define JPI$_SWPFILLOC 801 /* SWAP FILE BACKING STORE ADDRESS */ #define JPI$_MODE 802 /* MODE VALUE (FROM STS) - DEFINED ABOVE */ #define JPI$_JOBTYPE 803 /* JOB TYPE CODE */ #define JPI$_PROC_INDEX 804 /* PROCESS INDEX */ #define JPI$_MASTER_PID 805 /* MASTER PROCESS PID */ #define JPI$_RIGHTSLIST 806 /* PSB composite rights */ #define JPI$_CPU_ID 807 /* CPU ID */ #define JPI$_STS2 808 /* Second process status longword */ #define JPI$_NODENAME 809 /* Name of node on which process is running */ #define JPI$_NODE_CSID 810 /* CSID of node on which process is running */ #define JPI$_NODE_VERSION 811 /* VMS version of node on which process is running */ #define JPI$_TT_PHYDEVNAM 812 /* Physical device name of terminal */ #define JPI$_TT_ACCPORNAM 813 /* Access port name of terminal */ #define JPI$_PROCESS_RIGHTS 814 /* PSB persona rights */ #define JPI$_SYSTEM_RIGHTS 815 /* PSB system rights */ #define JPI$_IMAGE_RIGHTS 816 /* PSB protected sub-system rights */ #define JPI$_RIGHTS_SIZE 817 /* Approximate size (in bytes) of all PSB rights lists */ #define JPI$_CLASSIFICATION 818 /* PSB current MAC classification */ #define JPI$_RMS_FILEPROT 820 /* Process default file protection for RMS */ #define JPI$_MULTITHREAD 821 /* Kernel threads - max thread count */ #define JPI$_KT_COUNT 822 /* Kernel threads - thread count */ #define JPI$_INITIAL_THREAD_PID 823 /* Kernel threads - initial thread PID */ #define JPI$_THREAD_INDEX 824 /* Kernel threads - thread index */ #define JPI$_SCHED_CLASS_NAME 843 /* Scheduling class name */ #define JPI$_CREATOR 847 /* Epid of creator process (Unix-style parent) */ /* ADD NEW ITEM-CODES BEFORE THIS COMMENT */ #define JPI$_LASTPCB 848 /* MAX INDEX IN PCB TABLE */ /* ITEM IDENTIFIERS FOR PHD */ #define JPI$_CURPRIV 1024 /* CURRENT PROCESS PRIVILEGE MASK */ #define JPI$_WSAUTH 1025 /* AUTHORIZED WORKING SET SIZE */ #define JPI$_WSQUOTA 1026 /* QUOTA ON WORKING SET SIZE */ #define JPI$_DFWSCNT 1027 /* DEFAULT WORKING SET SIZE */ #define JPI$_FREP0VA 1028 /* FIRST FREE VIRTUAL ADDR. AT END OF P0 SPACE */ #define JPI$_FREP1VA 1029 /* FIRST FREE ADDR. AT END OF P1 SPACE */ #define JPI$_DFPFC 1030 /* DEFAULT PAGE FAULT CLUSTER */ #define JPI$_CPUTIM 1031 /* ACCUMULATED CPU TIME */ #define JPI$_PRCLM 1032 /* SUBPROCESS QUOTA */ #define JPI$_ASTLM 1033 /* AST LIMIT */ #define JPI$_PAGEFLTS 1034 /* COUNT OF PAGE FAULTS */ #define JPI$_DIRIO 1035 /* PROCESS DIRECT I/O OPERATIONS */ #define JPI$_BUFIO 1036 /* PROCESS BUFFERED I/O OPERATIONS */ #define JPI$_CPULIM 1037 /* LIMIT ON CPUTIM FOR PROCESS */ #define JPI$_PGFLQUOTA 1038 /* MAX. VIRTUAL PAGE COUNT */ #define JPI$_FILLM 1039 /* OPEN FILE LIMIT */ #define JPI$_TQLM 1040 /* TIMER QUEUE LIMIT */ #define JPI$_WSSIZE 1041 /* CURRENT WORKING SET SIZE */ #define JPI$_AUTHPRIV 1042 /* PSB authorized privilege mask */ #define JPI$_IMAGPRIV 1043 /* PHD installed image permanent (default) privilege mask */ #define JPI$_PAGFILCNT 1044 /* PAGES CHARGED TO PAGE FILE QUOTA */ #define JPI$_FREPTECNT 1045 /* ROOM FOR EXPANSION OF P0 OR P1 SPACE */ #define JPI$_WSEXTENT 1046 /* EXTENT OF WORKING SET SIZE */ #define JPI$_WSAUTHEXT 1047 /* MAX EXTENT OF WORKING SET SIZE */ #define JPI$_AUTHPRI 1048 /* AUTHORIZED PRIORITY FOR $SETPRI */ #define JPI$_PAGFILLOC 1049 /* PAGE FILE BACKING STORE ADDRESS */ #define JPI$_IMAGECOUNT 1050 /* IMAGE COUNTER (CLOCKED BY RUNDOWN) */ #define JPI$_PHDFLAGS 1051 /* PROCESS HEADER FLAGS WORD */ #define JPI$_VP_CPUTIM 1052 /* VECTOR CPU TIME */ #define JPI$_VP_CONSUMER 1053 /* Flag -- is this process a vector consumer? */ /* ADD NEW ITEM-CODES BEFORE THIS COMMENT */ #define JPI$_LASTPHD 1059 /* MAX INDEX IN PROCESS HEADER */ /* ITEM IDENTIFIERS FOR CONTROL REGION */ #define JPI$_VIRTPEAK 512 /* PEAK VIRTUAL SIZE */ #define JPI$_WSPEAK 513 /* PEAK WORKING SET SIZE */ #define JPI$_USERNAME 514 /* PSB username string */ #define JPI$_ACCOUNT 515 /* PSB account name string */ #define JPI$_PROCPRIV 516 /* PSB permanent (default) privilege mask */ #define JPI$_VOLUMES 517 /* VOLUMES MOUNTED */ #define JPI$_LOGINTIM 518 /* TIME OF LOGIN OR PROCESS CREATION */ #define JPI$_IMAGNAME 519 /* CURRENT IMAGE FILE NAME */ #define JPI$_SITESPEC 520 /* PER-PROCESS SITE-SPECIFIC CELL */ #define JPI$_MSGMASK 521 /* PROCESS DEFAULT MESSAGE FLAGS */ #define JPI$_CLINAME 522 /* COMMAND LANGUAGE INTERPRETER NAME */ #define JPI$_TABLENAME 523 /* COMMAND LANGUAGE INTERPRETER TABLE NAME */ #define JPI$_CREPRC_FLAGS 524 /* $CREPRC FLAGS USED TO CREATE THIS PROCESS */ #define JPI$_UAF_FLAGS 525 /* FLAGS FROM UAF RECORD */ #define JPI$_MAXDETACH 526 /* MAXIMUM DETACHED PROCESSES FOR SINGLE USER */ #define JPI$_MAXJOBS 527 /* MAXIMUM ACTIVE PROCESSES FOR SINGLE USER */ #define JPI$_SHRFILLM 528 /* MAXIMUM OPEN SHARED FILES */ #define JPI$_FAST_VP_SWITCH 529 /* NUMBER OF FAST VECTOR CONTEXT SWITCHES */ #define JPI$_SLOW_VP_SWITCH 530 /* NUMBER OF SLOW VECTOR CONTEXT SWITCHES */ #define JPI$_LAST_LOGIN_I 531 /* Last interactive login */ #define JPI$_LAST_LOGIN_N 532 /* Last non-interactive login */ #define JPI$_LOGIN_FAILURES 533 /* Number of login failures at login */ #define JPI$_LOGIN_FLAGS 534 /* Miscellaneous login flags */ #define JPI$_RMS_DFMBC 535 /* RMS default: multi-block count */ #define JPI$_RMS_DFMBFSDK 536 /* " " multi-buffer count for disk (SEQ) */ #define JPI$_RMS_DFMBFSMT 537 /* " " multi-buffer count for tape */ #define JPI$_RMS_DFMBFSUR 538 /* " " multi-buffer count for unit record */ #define JPI$_RMS_DFMBFREL 539 /* " " multi-buffer count for REL files */ #define JPI$_RMS_DFMBFIDX 540 /* " " multi-buffer count for ISAM files */ #define JPI$_RMS_PROLOGUE 541 /* " " prolog */ #define JPI$_RMS_EXTEND_SIZE 542 /* " " file extend quantity */ #define JPI$_RMS_DFNBC 543 /* " " network block count */ #define JPI$_RMS_DFLRL 544 /* " " Heuristic default LRL */ #define JPI$_RMS_HEURISTIC 545 /* " " Heuristic enable/disable setting */ /* ADD NEW ITEM-CODES BEFORE THIS COMMENT */ #define JPI$_LASTCTL 552 /* MAX INDEX IN CONTROL REGION */ /* ITEM IDENTIFIERS FOR ADDRESS DATA */ #define JPI$_EXCVEC 256 /* ADDRESS OF "EXCEPTION VECTOR" VECTOR */ #define JPI$_FINALEXC 257 /* ADDRESS OF LAST CHANCE EXCEPTION VECTORS */ /* ADD NEW ITEM-CODES BEFORE THIS COMMENT */ #define JPI$_LASTADR 258 /* MAX INDEX IN ADDRESS TABLE */ /* ITEM IDENTIFIERS FOR PCBFLD */ /* ADD ITEM-CODES BEFORE THIS COMMENT */ #define JPI$_LASTPCBFLD 1280 /* MAX INDEX IN PCBFLD TABLE */ /* ITEM IDENTIFIERS FOR PHDFLD */ /* ADD ITEM-CODES BEFORE THIS COMMENT */ #define JPI$_LASTPHDFLD 1536 /* MAX INDEX IN PHDFLD TABLE */ #ifdef __cplusplus } #endif #pragma standard #endif /* __JPIDEF_LOADED */