/********************************************************************************************************************************/ /* Created: 15-MAR-2001 23:38:10 by OpenVMS SDL EV1-33 */ /* Source: 15-MAR-2001 23:34:16 _$11$DUA933:[BUILD.SDL]STARDEFMP.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $PSCANDEF ***/ #ifndef __PSCANDEF_LOADED #define __PSCANDEF_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 /*+ */ /* */ /* 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 */ /* */ /* The following 3 fields are reserved. They are item codes for */ /* kernel threads support on Alpha systems only. */ /* */ #define PSCAN$_PSCAN_CONTROL_FLAGS 25 /* Control Flags */ #define PSCAN$_RESERVED2 26 /* Current count of kernel threads */ #define PSCAN$_RESERVED3 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_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 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_112 : 4; } ; #ifdef __cplusplus } #endif #pragma standard #endif /* __PSCANDEF_LOADED */