00001 #ifndef cwpsdef_h 00002 #define cwpsdef_h 00003 00004 #define CWPSSRV_M_BTX_DONE 0x1 00005 #define CWPSSRV_M_SEC_CLASS 0x1 00006 #define CWPSSRV_M_JPIBUF 0x2 00007 #define CWPSSRV_M_NOQUOTA 0x4 00008 #define CWPSSRV_M_GROUP_PRIV 0x8 00009 #define CWPSSRV_M_WORLD_PRIV 0x10 00010 #define CWPSSRV_M_SECAUDIT 0x20 00011 #define CWPSSRV_M_NOAUDIT 0x40 00012 #define CWPSSRV_M_OPER_PRIV 0x80 00013 #define CWPSSRV_K_RETRY_CNT 5 00014 00015 #define CWPSSRV_K_LENGTH 112 00016 #define CWPSSRV_K_SRVCODE_BEGIN 0 00017 #define CWPSSRV_K_CANWAK 1 00018 #define CWPSSRV_K_DELPRC 2 00019 #define CWPSSRV_K_FORCEX 3 00020 #define CWPSSRV_K_RESUME 4 00021 #define CWPSSRV_K_SCHDWK 5 00022 #define CWPSSRV_K_SETPRI 6 00023 #define CWPSSRV_K_SUSPND 7 00024 #define CWPSSRV_K_WAKE 8 00025 #define CWPSSRV_K_SRVCODE_END 9 00026 00027 #define CWPSSRV_K_GETJPI 20 00028 #define CWPSSRV_K_CREPRC 21 00029 #define CWPSSRV_K_TERMIN 22 00030 00031 #define CWPSSRV_K_GRANTID 28 00032 #define CWPSSRV_K_REVOKID 29 00033 #define CWPSSRV_K_VERSION_1 1 00034 #define CWPSSRV_K_VERSION_2 2 00035 #define CWPSSRV_K_VERSION_3 3 00036 #define CWPSSRV_K_VERSION_4 4 00037 #define CWPSSRV_K_VERSION_5 5 00038 #define CWPSSRV_K_VERSION_6 6 00039 #define CWPSSRV_K_VERSION_7 7 00040 #define CWPSSRV_K_VERSION_8 8 00041 #define CWPSSRV_K_VERSION_9 9 00042 #define CWPSSRV_K_VERSION_10 10 00043 #define CWPSSRV_K_VERSION_11 11 00044 #define CWPSSRV_K_VERSION_12 12 00045 #define CWPSSRV_K_INITIAL_MAJ_VERS 1 00046 #define CWPSSRV_K_INITIAL_MIN_VERS 1 00047 #define CWPSSRV_S_$CWPSSRVDEF 112 00048 00049 struct _cwpssrv { 00050 unsigned int cwpssrv_l_send_length; 00051 unsigned int cwpssrv_l_return_length; 00052 unsigned short int cwpssrv_w_size; 00053 unsigned char cwpssrv_b_type; 00054 unsigned char cwpssrv_b_subtype; 00055 unsigned short int cwpssrv_w_btx_status; 00056 union { 00057 unsigned char cwpssrv_b_btx_flags; 00058 struct { 00059 unsigned cwpssrv_v_btx_done : 1; 00060 unsigned cwpssrv_v_fill_4_ : 7; 00061 }; 00062 }; 00063 unsigned char cwpssrv_b_func; 00064 unsigned short int cwpssrv_w_srv_maj_vers; 00065 unsigned short int cwpssrv_w_srv_min_vers; 00066 unsigned short int cwpssrv_w_ext_maj_vers; 00067 unsigned short int cwpssrv_w_ext_min_vers; 00068 unsigned int cwpssrv_l_status; 00069 unsigned int cwpssrv_l_bxfr_status; 00070 unsigned int cwpssrv_l_maximum_length; 00071 union { 00072 unsigned int cwpssrv_l_flags; 00073 struct { 00074 unsigned cwpssrv_v_sec_class : 1; 00075 unsigned cwpssrv_v_jpibuf : 1; 00076 unsigned cwpssrv_v_noquota : 1; 00077 unsigned cwpssrv_v_group_priv : 1; 00078 unsigned cwpssrv_v_world_priv : 1; 00079 unsigned cwpssrv_v_secaudit : 1; 00080 unsigned cwpssrv_v_noaudit : 1; 00081 unsigned cwpssrv_v_oper_priv : 1; 00082 }; 00083 }; 00084 unsigned int cwpssrv_l_ext_offset; 00085 void *cwpssrv_a_post_routine; 00086 unsigned int cwpssrv_l_rqstr_csid; 00087 unsigned int cwpssrv_l_rqstr_pid; 00088 unsigned int cwpssrv_l_rqstr_epid; 00089 unsigned int cwpssrv_l_rqstr_imgcnt; 00090 unsigned int cwpssrv_l_rqstr_rightslen; 00091 unsigned int cwpssrv_l_rqstr_rightsoff; 00092 void *cwpssrv_l_rqstr_pidadr; 00093 unsigned int cwpssrv_l_partner_csid; 00094 unsigned int cwpssrv_l_sought_epid; 00095 unsigned int cwpssrv_l_return_epid; 00096 unsigned short int cwpssrv_w_prcnamlen; 00097 unsigned short int cwpssrv_w_prcnamoff; 00098 unsigned int cwpssrv_l_free_offset; 00099 unsigned int cwpssrv_l_spare1; 00100 unsigned short int cwpssrv_w_spare2; 00101 unsigned char cwpssrv_b_spare3; 00102 unsigned char cwpssrv_b_retries_left; 00103 unsigned long long cwpssrv_q_time; 00104 }; 00105 00106 #define CWPS__ENABLED 1 00107 #define CWPS__NERVOUS 0 00108 #define CWPS__SCARED 0 00109 #define CWPS__PARANOID 0 00110 #define CWPS__STATISTICS 1 00111 #define CWPSCAN_K_LENGTH 0 00112 #define CWPSDEL_K_LENGTH 0 00113 #define CWPSRES_K_LENGTH 0 00114 #define CWPSSUS_K_LENGTH 0 00115 #define CWPSWAK_K_LENGTH 0 00116 #define CWPSFEX_K_LENGTH 4 00117 #define CWPSFEX_S_$CWPSFEXDEF 4 00118 00119 struct _cwpsfex { 00120 unsigned int cwpsfex_l_code; 00121 }; 00122 00123 #define CWPSSRV_K_SETPRI_MIN_VERS2 2 00124 #define CWPSPRI_K_LENGTH 24 00125 #define CWPSPRI_S_$CWPSPRIDEF 24 00126 00127 struct _cwpspri { 00128 void *cwpspri_l_user_prvpri; 00129 unsigned int cwpspri_l_pri; 00130 unsigned int cwpspri_l_prvpri; 00131 void *cwpspri_l_user_prvpol; 00132 unsigned int cwpspri_l_pol; 00133 unsigned int cwpspri_l_prvpol; 00134 }; 00135 00136 #define CWPSSWK_K_LENGTH 16 00137 #define CWPSSWK_S_$CWPSSWKDEF 16 00138 00139 struct _cwpsswk { 00140 unsigned long long cwpsswk_q_daytim; 00141 unsigned long long cwpsswk_q_reptim; 00142 }; 00143 00144 #define CWPSJPI_K_LENGTH 60 00145 #define CWPSJPI_S_$CWPSJPIDEF 60 00146 00147 struct _cwpsjpi { 00148 unsigned int cwpsjpi_l_pscan_off; 00149 unsigned int cwpsjpi_l_itmoff; 00150 unsigned int cwpsjpi_l_bufoff; 00151 unsigned int cwpsjpi_l_vecoff; 00152 unsigned int cwpsjpi_l_acboff; 00153 void *cwpsjpi_l_itmlst; 00154 unsigned int cwpsjpi_l_buflen; 00155 void *cwpsjpi_l_iosbadr; 00156 unsigned long long cwpsjpi_q_iosb; 00157 void (*cwpsjpi_l_astadr)(); 00158 unsigned int cwpsjpi_l_astprm; 00159 void *cwpsjpi_l_pscanctx_addr; 00160 unsigned short int cwpsjpi_w_pscan_seqnum; 00161 unsigned char cwpsjpi_b_efn; 00162 unsigned char cwpsjpi_b_acmode; 00163 unsigned short int cwpsjpi_w_ctlflags; 00164 unsigned short int cwpsjpi_w_spare0; 00165 }; 00166 00167 #define CWPSJPI_64_K_LENGTH 40 00168 00169 struct _cwpsjpi_64 { 00170 void *cwpsjpi_64_pq_rqstr_pidadr; 00171 void *cwpsjpi_64_pq_itmlst; 00172 void *cwpsjpi_64_pq_iosbadr; 00173 void *cwpsjpi_64_pq_astadr; 00174 void *cwpsjpi_64_pq_astprm; 00175 }; 00176 00177 #define CWPSCRE_M_IMGDMP 0x1 00178 #define CWPSCRE_M_DEBUG 0x2 00179 #define CWPSCRE_M_DBGTRU 0x4 00180 #define CWPSCRE_M_PARSE_EXTENDED 0x8 00181 #define CWPSCRE_K_LENGTH 2100 00182 #define CWPSCRE_S_$CWPSCREDEF 2100 00183 00184 struct _cwpscreprc { 00185 unsigned int cwpscre_l_base_offset; 00186 unsigned int cwpscre_l_acboff; 00187 unsigned long long cwpscre_q_prvmsk; 00188 unsigned long long cwpscre_q_iosb; 00189 unsigned int cwpscre_l_priority; 00190 unsigned int cwpscre_l_uic; 00191 unsigned int cwpscre_l_defprot; 00192 unsigned int cwpscre_l_tmbu; 00193 unsigned int cwpscre_l_spare1; 00194 unsigned int cwpscre_l_spare2; 00195 unsigned short int cwpscre_w_maxjobs; 00196 unsigned short int cwpscre_w_maxdetach; 00197 unsigned int cwpscre_l_astlm; 00198 unsigned int cwpscre_l_biolm; 00199 unsigned int cwpscre_l_bytlm; 00200 unsigned int cwpscre_l_cpulm; 00201 unsigned int cwpscre_l_diolm; 00202 unsigned int cwpscre_l_fillm; 00203 unsigned int cwpscre_l_pgflquota; 00204 unsigned int cwpscre_l_prclm; 00205 unsigned int cwpscre_l_tqelm; 00206 unsigned int cwpscre_l_wsquota; 00207 unsigned int cwpscre_l_wsdefault; 00208 unsigned int cwpscre_l_enqlm; 00209 unsigned int cwpscre_l_wsextent; 00210 unsigned int cwpscre_l_jtquota; 00211 unsigned int cwpscre_l_spare_quota1; 00212 unsigned int cwpscre_l_spare_quota2; 00213 unsigned int cwpscre_l_input_att; 00214 unsigned int cwpscre_l_output_att; 00215 unsigned int cwpscre_l_error_att; 00216 unsigned int cwpscre_l_msgmask; 00217 unsigned int cwpscre_l_uaf_flags; 00218 unsigned int cwpscre_l_creprc_flags; 00219 union { 00220 unsigned int cwpscre_l_flags; 00221 struct { 00222 unsigned cwpscre_v_imgdmp : 1; 00223 unsigned cwpscre_v_debug : 1; 00224 unsigned cwpscre_v_dbgtru : 1; 00225 unsigned cwpscre_v_parse_extended : 1; 00226 unsigned cwpscre_v_fill_7_ : 4; 00227 }; 00228 }; 00229 char cwpscre_t_input [256]; 00230 char cwpscre_t_output [256]; 00231 char cwpscre_t_error [256]; 00232 char cwpscre_t_disk [256]; 00233 char cwpscre_t_image [256]; 00234 char cwpscre_t_ddstring [256]; 00235 char cwpscre_t_username [12]; 00236 char cwpscre_t_account [8]; 00237 char cwpscre_t_pqb_account [8]; 00238 struct { 00239 unsigned char cwpscre_$$_fill_2 [20]; 00240 }; 00241 struct { 00242 unsigned char cwpscre_$$_fill_3 [20]; 00243 }; 00244 char cwpscre_t_cli_name [32]; 00245 char cwpscre_t_cli_table [32]; 00246 char cwpscre_t_spawn_cli [32]; 00247 char cwpscre_t_spawn_table [256]; 00248 }; 00249 00250 #define CWPSTERM_K_LENGTH 108 00251 #define CWPSTERM_S_$CWPSTERMDEF 108 00252 00253 struct _cwpsterm { 00254 unsigned int cwpsterm_l_base_offset; 00255 unsigned int cwpsterm_l_acboff; 00256 unsigned long long cwpsterm_q_iosb; 00257 unsigned int cwpsterm_l_deleted_proc_epid; 00258 unsigned int cwpsterm_l_spare; 00259 char cwpsterm_t_term_msg [84]; 00260 }; 00261 00262 #define CWPSVEC_M_64_BIT_ILE 0x1 00263 #define CWPSVEC_K_LENGTH 24 00264 #define CWPSVEC_S_$CWPSVECDEF 24 00265 00266 struct _cwpsvec { 00267 void *cwpsvec_pq_usr_bufadr; 00268 void *cwpsvec_pq_usr_lenadr; 00269 union { 00270 unsigned int cwpsvec_l_flags; 00271 struct { 00272 unsigned cwpsvec_v_64_bit_ile : 1; 00273 unsigned cwpsvec_v_fill_10_ : 7; 00274 }; 00275 }; 00276 int cwpsvec_l_fill_1; 00277 }; 00278 00279 #define CWPSACB_K_ACB_LENGTH 36 00280 #define CWPSACB_K_LENGTH 80 00281 #define CWPSACB_S_$CWPSACBDEF 81 00282 00283 struct _cwpsacb { 00284 struct _acb *cwpsacb_l_astqfl; 00285 struct _acb *cwpsacb_l_astqbl; 00286 unsigned short cwpsacb_w_size; 00287 unsigned char cwpsacb_b_type; 00288 unsigned char cwpsacb_b_rmod; 00289 unsigned int cwpsacb_l_pid; 00290 void (*cwpsacb_l_ast)(); 00291 unsigned int cwpsacb_l_astprm; 00292 int cwpsacb_l_fkb_fill [2]; 00293 void (*cwpsacb_l_kast)(); 00294 void *cwpsacb_l_bufadr; 00295 unsigned int cwpsacb_l_buflen; 00296 void *cwpsacb_l_msgbuf; 00297 struct _csb *cwpsacb_l_csb; 00298 struct _cdrp *cwpsacb_l_cdrp; 00299 unsigned int cwpsacb_l_read_length; 00300 unsigned int cwpsacb_l_write_length; 00301 unsigned int cwpsacb_l_rightsdesc [2]; 00302 unsigned char cwpsacb_b_func; 00303 unsigned char cwpsacb_b_spare0; 00304 unsigned short cwpsacb_w_spare1; 00305 struct _psb *cwpsacb_ar_remote_psb; 00306 unsigned char cwpsacb_b_trojan_pcb; 00307 }; 00308 00309 #define CWPSSQH_K_LENGTH 32 00310 #define CWPSSQH_S_$CWPSSQHDEF 32 00311 00312 struct _cwpssqh { 00313 struct _cwpssqh *cwpssqh_l_flink; 00314 struct _cwpssqh *cwpssqh_l_blink; 00315 unsigned short cwpssqh_w_size; 00316 unsigned char cwpssqh_b_type; 00317 unsigned char cwpssqh_b_subtype; 00318 unsigned int cwpssqh_l_alloc_length; 00319 unsigned int cwpssqh_l_mpid; 00320 unsigned int cwpssqh_l_spare0; 00321 unsigned int cwpssqh_l_spare1; 00322 unsigned int cwpssqh_l_spare3; 00323 }; 00324 00325 #define CWPSNODIH_K_HEADER 16 00326 #define CWPSNODIH_S_$CWPSNODIHDEF 17 00327 00328 struct _cwpsnodih { 00329 struct _cwpsnodih *cwpsnodih_l_flink; 00330 struct _cwpsnodih *cwpsnodih_l_blink; 00331 unsigned short cwpsnodih_w_size; 00332 unsigned char cwpsnodih_b_type; 00333 unsigned char cwpsnodih_b_subtype; 00334 unsigned int cwpsnodih_l_count; 00335 unsigned char cwpsnodih_b_node_list; 00336 }; 00337 00338 #define CWPSNODI_K_LENGTH 32 00339 #define CWPSNODI_S_$CWPSNODIDEF 32 00340 00341 struct _cwpsnodi { 00342 unsigned int cwpsnodi_l_hwtype; 00343 unsigned short cwpsnodi_w_hw_model; 00344 unsigned short cwpsnodi_w_sparew; 00345 unsigned int cwpsnodi_l_csid; 00346 unsigned char cwpsnodi_b_name [16]; 00347 struct _sb *cwpsnodi_l_sb; 00348 }; 00349 00350 #endif 00351 00352