00001 #ifndef dscdef_h 00002 #define dscdef_h 00003 00004 #define DSC_K_DTYPE_Z 0 00005 #define DSC64_K_DTYPE_Z 0 00006 00007 #define DSC_K_DTYPE_BU 2 00008 #define DSC64_K_DTYPE_BU 2 00009 #define DSC_K_DTYPE_WU 3 00010 #define DSC64_K_DTYPE_WU 3 00011 #define DSC_K_DTYPE_LU 4 00012 #define DSC64_K_DTYPE_LU 4 00013 #define DSC_K_DTYPE_QU 5 00014 #define DSC64_K_DTYPE_QU 5 00015 #define DSC_K_DTYPE_OU 25 00016 #define DSC64_K_DTYPE_OU 25 00017 #define DSC_K_DTYPE_B 6 00018 #define DSC64_K_DTYPE_B 6 00019 #define DSC_K_DTYPE_W 7 00020 #define DSC64_K_DTYPE_W 7 00021 #define DSC_K_DTYPE_L 8 00022 #define DSC64_K_DTYPE_L 8 00023 #define DSC_K_DTYPE_Q 9 00024 #define DSC64_K_DTYPE_Q 9 00025 #define DSC_K_DTYPE_O 26 00026 #define DSC64_K_DTYPE_O 26 00027 #define DSC_K_DTYPE_F 10 00028 #define DSC64_K_DTYPE_F 10 00029 #define DSC_K_DTYPE_D 11 00030 #define DSC64_K_DTYPE_D 11 00031 #define DSC_K_DTYPE_G 27 00032 #define DSC64_K_DTYPE_G 27 00033 #define DSC_K_DTYPE_H 28 00034 #define DSC64_K_DTYPE_H 28 00035 #define DSC_K_DTYPE_FC 12 00036 #define DSC64_K_DTYPE_FC 12 00037 #define DSC_K_DTYPE_DC 13 00038 #define DSC64_K_DTYPE_DC 13 00039 #define DSC_K_DTYPE_GC 29 00040 #define DSC64_K_DTYPE_GC 29 00041 #define DSC_K_DTYPE_HC 30 00042 #define DSC64_K_DTYPE_HC 30 00043 #define DSC_K_DTYPE_FS 52 00044 #define DSC64_K_DTYPE_FS 52 00045 #define DSC_K_DTYPE_FT 53 00046 #define DSC64_K_DTYPE_FT 53 00047 #define DSC_K_DTYPE_FSC 54 00048 #define DSC64_K_DTYPE_FSC 54 00049 #define DSC_K_DTYPE_FTC 55 00050 #define DSC64_K_DTYPE_FTC 55 00051 #define DSC_K_DTYPE_FX 57 00052 #define DSC64_K_DTYPE_FX 57 00053 #define DSC_K_DTYPE_FXC 58 00054 #define DSC64_K_DTYPE_FXC 58 00055 #define DSC_K_DTYPE_CIT 31 00056 #define DSC64_K_DTYPE_CIT 31 00057 #define DSC_K_DTYPE_T 14 00058 #define DSC64_K_DTYPE_T 14 00059 #define DSC_K_DTYPE_VT 37 00060 #define DSC64_K_DTYPE_VT 37 00061 #define DSC_K_DTYPE_T2 38 00062 #define DSC64_K_DTYPE_T2 38 00063 #define DSC_K_DTYPE_NU 15 00064 #define DSC64_K_DTYPE_NU 15 00065 #define DSC_K_DTYPE_NL 16 00066 #define DSC64_K_DTYPE_NL 16 00067 #define DSC_K_DTYPE_NLO 17 00068 #define DSC64_K_DTYPE_NLO 17 00069 #define DSC_K_DTYPE_NR 18 00070 #define DSC64_K_DTYPE_NR 18 00071 #define DSC_K_DTYPE_NRO 19 00072 #define DSC64_K_DTYPE_NRO 19 00073 #define DSC_K_DTYPE_NZ 20 00074 #define DSC64_K_DTYPE_NZ 20 00075 #define DSC_K_DTYPE_P 21 00076 #define DSC64_K_DTYPE_P 21 00077 #define DSC_K_DTYPE_V 1 00078 #define DSC64_K_DTYPE_V 1 00079 #define DSC_K_DTYPE_VU 34 00080 #define DSC64_K_DTYPE_VU 34 00081 #define DSC_K_DTYPE_ZI 22 00082 #define DSC64_K_DTYPE_ZI 22 00083 #define DSC_K_DTYPE_ZEM 23 00084 #define DSC64_K_DTYPE_ZEM 23 00085 #define DSC_K_DTYPE_DSC 24 00086 #define DSC64_K_DTYPE_DSC 24 00087 #define DSC_K_DTYPE_BPV 32 00088 #define DSC64_K_DTYPE_BPV 32 00089 #define DSC_K_DTYPE_BLV 33 00090 #define DSC64_K_DTYPE_BLV 33 00091 #define DSC_K_DTYPE_ADT 35 00092 #define DSC64_K_DTYPE_ADT 35 00093 #define DSC_K_DTYPE_CAD 178 00094 #define DSC64_K_DTYPE_CAD 178 00095 #define DSC_K_DTYPE_ENT 179 00096 #define DSC64_K_DTYPE_ENT 179 00097 #define DSC_K_DTYPE_GBL 180 00098 #define DSC64_K_DTYPE_GBL 180 00099 #define DSC_K_DTYPE_EPT 181 00100 #define DSC64_K_DTYPE_EPT 181 00101 #define DSC_K_DTYPE_R11 182 00102 #define DSC64_K_DTYPE_R11 182 00103 #define DSC_K_DTYPE_FLD 183 00104 #define DSC64_K_DTYPE_FLD 183 00105 #define DSC_K_DTYPE_PCT 184 00106 #define DSC64_K_DTYPE_PCT 184 00107 #define DSC_K_DTYPE_DPC 185 00108 #define DSC64_K_DTYPE_DPC 185 00109 #define DSC_K_DTYPE_LBL 186 00110 #define DSC64_K_DTYPE_LBL 186 00111 #define DSC_K_DTYPE_SLB 187 00112 #define DSC64_K_DTYPE_SLB 187 00113 #define DSC_K_DTYPE_MOD 188 00114 #define DSC64_K_DTYPE_MOD 188 00115 #define DSC_K_DTYPE_EOM 189 00116 #define DSC64_K_DTYPE_EOM 189 00117 #define DSC_K_DTYPE_RTN 190 00118 #define DSC64_K_DTYPE_RTN 190 00119 #define DSC_K_DTYPE_EOR 191 00120 #define DSC64_K_DTYPE_EOR 191 00121 00122 #define DSC_K_CLASS_Z 0 00123 #define DSC64_K_CLASS_Z 0 00124 #define DSC_K_CLASS_S 1 00125 #define DSC64_K_CLASS_S 1 00126 #define DSC_K_CLASS_D 2 00127 #define DSC64_K_CLASS_D 2 00128 #define DSC_K_CLASS_V 3 00129 #define DSC64_K_CLASS_V 3 00130 #define DSC_K_CLASS_A 4 00131 #define DSC64_K_CLASS_A 4 00132 #define DSC_K_CLASS_P 5 00133 #define DSC64_K_CLASS_P 5 00134 #define DSC_K_CLASS_PI 6 00135 #define DSC64_K_CLASS_PI 6 00136 #define DSC_K_CLASS_J 7 00137 #define DSC64_K_CLASS_J 7 00138 #define DSC_K_CLASS_JI 8 00139 #define DSC_K_CLASS_SD 9 00140 #define DSC64_K_CLASS_SD 9 00141 #define DSC_K_CLASS_NCA 10 00142 #define DSC64_K_CLASS_NCA 10 00143 #define DSC_K_CLASS_VS 11 00144 #define DSC64_K_CLASS_VS 11 00145 #define DSC_K_CLASS_VSA 12 00146 #define DSC64_K_CLASS_VSA 12 00147 #define DSC_K_CLASS_UBS 13 00148 #define DSC64_K_CLASS_UBS 13 00149 #define DSC_K_CLASS_UBA 14 00150 #define DSC64_K_CLASS_UBA 14 00151 #define DSC_K_CLASS_SB 15 00152 #define DSC64_K_CLASS_SB 15 00153 #define DSC_K_CLASS_UBSB 16 00154 #define DSC64_K_CLASS_UBSB 16 00155 00156 #define DSC_K_CLASS_BFA 191 00157 00158 #define DSC_K_Z_BLN 8 00159 #define DSC_C_Z_BLN 8 00160 #define DSC_K_S_BLN 8 00161 #define DSC_C_S_BLN 8 00162 #define DSC_K_D_BLN 8 00163 #define DSC_C_D_BLN 8 00164 #define DSC_K_P_BLN 8 00165 #define DSC_C_P_BLN 8 00166 #define DSC_K_J_BLN 8 00167 #define DSC_C_J_BLN 8 00168 #define DSC_K_VS_BLN 8 00169 #define DSC_C_VS_BLN 8 00170 00171 #define DSC_K_UBS_BLN 12 00172 #define DSC_C_UBS_BLN 12 00173 00174 #define DSC_K_SD_BLN 12 00175 #define DSC_C_SD_BLN 12 00176 00177 #define DSC_K_PI_BLN 12 00178 #define DSC_C_PI_BLN 12 00179 #define DSC_K_JI_BLN 12 00180 #define DSC_C_JI_BLN 12 00181 00182 #define DSC64_K_Z_BLN 24 00183 #define DSC64_C_Z_BLN 24 00184 #define DSC64_K_S_BLN 24 00185 #define DSC64_C_S_BLN 24 00186 #define DSC64_K_D_BLN 24 00187 #define DSC64_C_D_BLN 24 00188 #define DSC64_K_P_BLN 24 00189 #define DSC64_C_P_BLN 24 00190 #define DSC64_K_J_BLN 24 00191 #define DSC64_C_J_BLN 24 00192 #define DSC64_K_VS_BLN 24 00193 #define DSC64_C_VS_BLN 24 00194 00195 #define DSC64_K_UBS_BLN 32 00196 #define DSC64_C_UBS_BLN 32 00197 00198 #define DSC64_K_SD_BLN 32 00199 #define DSC64_C_SD_BLN 32 00200 00201 #define DSC64_K_PI_BLN 32 00202 #define DSC64_C_PI_BLN 32 00203 #define DSC64_K_JI_BLN 32 00204 #define DSC64_C_JI_BLN 32 00205 00206 struct _dscdef { 00207 int dsc_a_handle; 00208 unsigned int dsc_l_byteoff; 00209 unsigned int dsc_l_logunit; 00210 unsigned short int dsc_w_length; 00211 }; 00212 00213 struct _dscdef1 { 00214 unsigned short int dsc_w_maxstrlen; 00215 unsigned char dsc_b_dtype; 00216 unsigned char dsc_b_class; 00217 void *dsc_a_pointer; 00218 }; 00219 00220 struct _dscdef2 { 00221 char dscdef_$_fill_3 [4]; 00222 void *dsc_a_base; 00223 }; 00224 00225 struct _dscdef3 { 00226 char dscdef_$_fill_4 [8]; 00227 int dsc_l_pos; 00228 }; 00229 00230 struct _dscdef4 { 00231 char dscdef_$_fill_5 [8]; 00232 unsigned short int dsc_w_maxlen; 00233 00234 00235 short int dscdef_$_fill_1; 00236 }; 00237 00238 struct _dscdef5 { 00239 char dscdef_64_$_fill_6 [8]; 00240 char dsc_b_scale; 00241 unsigned char dsc_b_digits; 00242 union { 00243 unsigned char dsc_b_aflags; 00244 struct { 00245 unsigned dscdef_$_fill_2 : 4; 00246 unsigned dsc_v_fl_redim : 1; 00247 unsigned dsc_v_fl_column : 1; 00248 unsigned dsc_v_fl_coeff : 1; 00249 unsigned dsc_v_fl_bounds : 1; 00250 }; 00251 }; 00252 unsigned char dsc_b_dimct; 00253 unsigned int dsc_l_arsize; 00254 void *dsc_a_a0; 00255 }; 00256 00257 struct _dscdef6 { 00258 char dscdef_$_fill_7 [16]; 00259 int dsc_l_v0; 00260 unsigned int dsc_l_s1; 00261 unsigned int dsc_l_s2; 00262 }; 00263 00264 struct _dscdef7 { 00265 char dscdef_$_fill_8 [20]; 00266 unsigned int dsc_l_m1; 00267 unsigned int dsc_l_m2; 00268 }; 00269 00270 struct _dscdef8 { 00271 char dscdef_$_fill_9 [8]; 00272 void *dsc_a_frame; 00273 }; 00274 struct _dscdef9 { 00275 char dscdef_$_fill_10 [8]; 00276 int dsc_l_sb_l1; 00277 int dsc_l_sb_u1; 00278 }; 00279 struct _dscdef10 { 00280 char dscdef_$_fill_11 [12]; 00281 int dsc_l_ubsb_l1; 00282 int dsc_l_ubsb_u1; 00283 }; 00284 00285 struct _dscdef64 { 00286 char dscdef_64_$_fill_1 [8]; 00287 unsigned long long dsc64_q_length; 00288 }; 00289 00290 struct _dscdef1_64 { 00291 unsigned short int dsc64_w_mbo; 00292 unsigned char dsc64_b_dtype; 00293 unsigned char dsc64_b_class; 00294 int dsc64_l_mbmo; 00295 unsigned long long dsc64_q_maxstrlen; 00296 void *dsc64_pq_pointer; 00297 }; 00298 00299 struct _dscdef2_64 { 00300 char dscdef_64_$_fill_3 [16]; 00301 void *dsc64_pq_base; 00302 }; 00303 00304 struct _dscdef3_64 { 00305 char dscdef_64_$_fill_4 [24]; 00306 long long dsc64_q_pos; 00307 }; 00308 00309 struct _dscdef5_64 { 00310 char dscdef_64_$_fill_6 [24]; 00311 char dsc64_b_scale; 00312 unsigned char dsc64_b_digits; 00313 union { 00314 unsigned char dsc64_b_aflags; 00315 struct { 00316 unsigned dscdef_64_$_fill_2 : 4; 00317 unsigned dsc64_v_fl_redim : 1; 00318 unsigned dsc64_v_fl_column : 1; 00319 unsigned dsc64_v_fl_coeff : 1; 00320 unsigned dsc64_v_fl_bounds : 1; 00321 }; 00322 }; 00323 unsigned char dsc64_b_dimct; 00324 unsigned int dsc64_l_mbz; 00325 unsigned long long dsc64_q_arsize; 00326 void *dsc64_pq_a0; 00327 }; 00328 00329 struct _dscdef6_64 { 00330 char dscdef_64_$_fill_7 [40]; 00331 long long dsc64_q_v0; 00332 unsigned long long dsc64_q_s1; 00333 unsigned long long dsc64_q_s2; 00334 }; 00335 00336 struct _dscdef7_64 { 00337 char dscdef_64_$_fill_8 [48]; 00338 unsigned long long dsc64_q_m1; 00339 unsigned long long dsc64_q_m2; 00340 }; 00341 00342 struct _dscdef10_64 { 00343 char dscdef_64_$_fill_11 [32]; 00344 long long dsc64_q_ubsb_l1; 00345 long long dsc64_q_ubsb_u1; 00346 }; 00347 00348 #endif 00349 00350