/********************************************************************************************************************************/ /* Created: 15-MAR-2001 23:37:55 by OpenVMS SDL EV1-33 */ /* Source: 15-MAR-2001 23:34:06 _$11$DUA933:[BUILD.SDL]STARDEFAE.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE CSHDEF IDENT X-1 ***/ #ifndef __CSHDEF_LOADED #define __CSHDEF_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 /* $SCHED function codes */ #define CSH$_READ_ALL 23 /* Read data on all processes */ #define CSH$_READ_NEW 24 /* Read data on new processes */ #define CSH$_SET_CLASS 25 /* Place process(es) into class(es) */ #define CSH$_RES1 26 #define CSH$_RES2 27 #define CSH$_RES3 28 #define CSH$_RES4 29 #define CSH$_SET_NEW 30 /* Define this process as "new" */ #define CSH$_SET_TIMEOUT 31 /* Set deadman timer */ #define CSH$_RES5 32 #define CSH$_RES6 33 #define CSH$_RES7 34 #define CSH$_RES8 35 #define CSH$_READ_QUANT 36 /* Read per-class quanta remaining */ #define CSH$_SET_QUANT 37 /* Define per-class quanta */ #define CSH$_RES9 38 #define CSH$_RESA 39 #define CSH$_RESB 40 #define CSH$_RESC 41 #define CSH$_SET_ATTN_AST 42 /* Establish attention AST */ #define CSH$_RSED 43 #define CSH$_RESE 44 #define CSH$_RESF 45 #define CSH$_RES0 46 #define CSH$_CLEAR_ATTN_AST 47 /* Clear attention AST */ #define CSH$_MAX_SCHED_FUNC 48 /* AST reason mask */ #define CSH$V_NEW_PROC 1 /* Possible new process */ /* CSHC -- Class ScHeduler Class block */ /* */ /* Used to communicate from user to system, defining process/class mapping */ #define CSHC$K_LENGTH 8 #define CSHC$C_LENGTH 8 typedef struct _cshc { unsigned int cshc$l_epid; /* EPID of target process */ short int cshc$w_class; /* Class number, 0-N, %X'FFFF' means */ /* `Take out of class scheduling' */ unsigned short int cshc$w_windfall; /* Windfall ticks to grant */ } cshc; /* CSHP -- Class ScHeduler data block for Processes */ /* */ /* Used to communicate from system to user, showing various characteristics */ /* of processes. */ #define CSHP$K_LENGTH 24 #define CSHP$C_LENGTH 24 typedef struct _cshp { unsigned int cshp$l_status; /* Copy of PCB$L_STS */ unsigned short int cshp$w_pix; /* Process index slot */ char cshp$b_pri; /* Current priority (internal) */ char cshp$b_prib; /* Current base priority (internal) */ unsigned int cshp$l_epid; /* The official PID */ char cshp$t_account [8]; /* Account string from PCB */ unsigned int cshp$l_cputim; /* CPU time charged */ } cshp; #ifdef __cplusplus } #endif #pragma standard #endif /* __CSHDEF_LOADED */