/********************************************************************************************************************************/ /* Created: 9-Mar-2021 22:28:06 by OpenVMS SDL EV3-3 */ /* Source: 09-MAR-2021 22:28:01 $1$DGA8085:[STARLET_H.SRC]STARDEFMP.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $PSCANDEF ***/ #ifndef __PSCANDEF_LOADED #define __PSCANDEF_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 /*+ */ /* */ /* Process_Scan item code definitions */ /* */ /*- */ /* Item code definitions */ #define PSCAN$_BEGIN 0 #define PSCAN$_ACCOUNT 1 /* Match on account name */ #define PSCAN$_AUTHPRI 2 /* Match on authorized priority */ #define PSCAN$_CURPRIV 3 /* Match on current privs */ #define PSCAN$_GRP 4 /* Match on GRP field */ #define PSCAN$_HW_MODEL 5 /* Match on system's HW_MODEL */ #define PSCAN$_HW_NAME 6 /* Match on system's HW_NAME */ #define PSCAN$_JOBPRCCNT 7 /* Match on job subprocess count */ #define PSCAN$_JOBTYPE 8 /* Match on job origin type field */ #define PSCAN$_MASTER_PID 9 /* Match on PID of master process */ #define PSCAN$_MEM 10 /* Match on MEM field */ #define PSCAN$_MODE 11 /* Match on process mode */ #define PSCAN$_NODE_CSID 12 /* Match on system's CSID */ #define PSCAN$_NODENAME 13 /* Match on system's nodename */ #define PSCAN$_OWNER 14 /* Match on PID of owner */ #define PSCAN$_PRCCNT 15 /* Match on subprocess count */ #define PSCAN$_PRCNAM 16 /* Match on process name */ #define PSCAN$_PRI 17 /* Match on current priority */ #define PSCAN$_PRIB 18 /* Match on base priority */ #define PSCAN$_STATE 19 /* Match on process state */ #define PSCAN$_STS 20 /* Match on process status */ #define PSCAN$_TERMINAL 21 /* Match on terminal name */ #define PSCAN$_UIC 22 /* Match on UIC field */ #define PSCAN$_USERNAME 23 /* Match on username */ #define PSCAN$_GETJPI_BUFFER_SIZE 24 /* Buffer for blocking */ #define PSCAN$_PSCAN_CONTROL_FLAGS 25 /* Control Flags */ #define PSCAN$_KT_COUNT 26 /* Current count of kernel threads */ #define PSCAN$_MULTITHREAD 27 /* Maximum number of kernel threads */ #define PSCAN$_SCHED_CLASS_NAME 28 /* Match on name of process' scheduling class */ #define PSCAN$_END 29 #define PSCAN$K_TYPE 129 #define PSCAN$M_THREAD 0x1 #ifdef __NEW_STARLET typedef struct _pscanctldef { __union { unsigned int pscan$l_pscanctlflgs; /* Control item flags */ __struct { unsigned pscan$v_thread : 1; /* Return information about each thread for multithreaded processes */ unsigned pscan$v_fill_81_ : 7; } pscan$r_fill_80_; } pscan$r_fill_79_; } PSCANCTLDEF; #if !defined(__VAXC) #define pscan$v_thread pscan$r_fill_79_.pscan$r_fill_80_.pscan$v_thread #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct pscanctldef { __union { unsigned int pscan$l_pscanctlflgs; /* Control item flags */ __struct { unsigned pscan$v_thread : 1; /* Return information about each thread for multithreaded processes */ unsigned pscan$v_fill_81_ : 7; } pscan$r_fill_80_; } pscan$r_fill_79_; } ; #if !defined(__VAXC) #define pscan$v_thread pscan$r_fill_79_.pscan$r_fill_80_.pscan$v_thread #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #define PSCAN$M_OR 0x1 #define PSCAN$M_BIT_ALL 0x2 #define PSCAN$M_BIT_ANY 0x4 #define PSCAN$M_GEQ 0x8 #define PSCAN$M_GTR 0x10 #define PSCAN$M_LEQ 0x20 #define PSCAN$M_LSS 0x40 #define PSCAN$M_PREFIX_MATCH 0x80 #define PSCAN$M_WILDCARD 0x100 #define PSCAN$M_CASE_BLIND 0x200 #define PSCAN$M_EQL 0x400 #define PSCAN$M_NEQ 0x800 #ifdef __NEW_STARLET typedef struct _item_specific_flags { unsigned pscan$v_or : 1; /* Logical OR of items */ unsigned pscan$v_bit_all : 1; /* All bits set in pattern */ unsigned pscan$v_bit_any : 1; /* Any bit set in pattern */ unsigned pscan$v_geq : 1; unsigned pscan$v_gtr : 1; unsigned pscan$v_leq : 1; unsigned pscan$v_lss : 1; unsigned pscan$v_prefix_match : 1; /* Match on leading substring */ unsigned pscan$v_wildcard : 1; /* Wildcard pattern */ unsigned pscan$v_case_blind : 1; /* Ignore case of text strings */ unsigned pscan$v_eql : 1; unsigned pscan$v_neq : 1; unsigned pscan$v_fill_82_ : 4; } ITEM_SPECIFIC_FLAGS; #else /* __OLD_STARLET */ struct item_specific_flags { unsigned pscan$v_or : 1; /* Logical OR of items */ unsigned pscan$v_bit_all : 1; /* All bits set in pattern */ unsigned pscan$v_bit_any : 1; /* Any bit set in pattern */ unsigned pscan$v_geq : 1; unsigned pscan$v_gtr : 1; unsigned pscan$v_leq : 1; unsigned pscan$v_lss : 1; unsigned pscan$v_prefix_match : 1; /* Match on leading substring */ unsigned pscan$v_wildcard : 1; /* Wildcard pattern */ unsigned pscan$v_case_blind : 1; /* Ignore case of text strings */ unsigned pscan$v_eql : 1; unsigned pscan$v_neq : 1; unsigned pscan$v_fill_82_ : 4; } ; #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 /* __PSCANDEF_LOADED */