00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef SOI_ERROR_INCL
00020
00021
00022
00023
00024
00025 #ifndef SOI_VERSION_INCL
00026 #include <soi_version.h>
00027 #endif
00028
00029
00030
00031
00032
00033 #define SOI_ERROR_VERSION_NUM (2.8)
00034
00035 #define NO_ERROR (0)
00036
00037 #define SDS_PTR_NULL (512)
00038 #define SDS_INPUT_PTR_NULL (514)
00039 #define SDS_OUTPUT_PTR_NULL (515)
00040 #define SDS_DATA_PTR_NULL (516)
00041 #define SDS_RANK_ZERO (517)
00042 #define SDS_RANK_ERROR (518)
00043 #define SDS_DIM_ERROR (519)
00044 #define SDS_INVALID_DATATYPE (520)
00045 #define DATA_OUT_OF_RANGE (521)
00046
00047 #define ATTRIBUTE_PTR_NULL (622)
00048 #define ATTRNAME_NULL (623)
00049 #define ATTRVALUE_NULL (624)
00050 #define ATTRVALUE_TYPE_UNKNOWN (625)
00051 #define ATTRIBUTE_NOT_FOUND (626)
00052 #define ATTRIBUTE_VALUE_NAN (627)
00053
00054 #define CANT_OPEN_FILE (730)
00055 #define IO_ERROR (732)
00056 #define BAD_FILE_DESCRIPTOR (733)
00057 #define READ_FAILED (734)
00058 #define CANT_OPEN_INPUT_FILE (735)
00059 #define CANT_OPEN_OUTPUT_FILE (736)
00060 #define UNSUPPORTED_DATA_FORMAT (737)
00061 #define SDS_FILENAME_NULL (738)
00062
00063 #define MALLOCED_NULL_PTR (740)
00064 #define MALLOC_FAILED (741)
00065
00066 #define CANT_OPEN_PIPE (760)
00067 #define CANT_FORK (761)
00068 #define CANT_EXEC (762)
00069 #define CANT_MKDIR (763)
00070 #define CANT_LOCK_FILE (764)
00071 #define CANT_ACCESS (765)
00072
00073 #define IDS_ERROR (800)
00074 #define IDS_PTR_NULL (801)
00075 #define IDS_FITS_SERIES_ERROR (802)
00076 #define IDS_SLICE_SERIES_ERROR (803)
00077 #define IDS_RANK_ZERO (804)
00078
00079 #define SDS_CONVERT_FAILED (900)
00080 #define SDS_STATS_ERROR (901)
00081
00082 #define THIS_SHOULDNT_HAPPEN (1020)
00083 #define MAKES_NO_SENSE (1021)
00084 #define DOESNOT_COMPUTE (1022)
00085 #define NOT_IMPLEMENTED (1023)
00086 #define BAD_WORKING_DIRECTORY (1024)
00087 #define BAD_EXT_COFF (1025)
00088
00089 #define CDF_ERROR (1100)
00090
00091 #define VDS_ERROR (1200)
00092 #define VDS_PTR_NULL (1201)
00093 #define VDS_NAMELIST_ERROR (1202)
00094 #define UNKNOWN_DATASET_TYPE (1203)
00095 #define UNKNOWN_INTERNAL_TYPE (1204)
00096 #define VDS_RECORD_ERROR (1205)
00097 #define VDS_SELECT_ERROR (1206)
00098 #define VDS_VAR_EXISTS (1210)
00099 #define VDS_OPEN_ERROR (1211)
00100 #define VDS_CLOSE_ERROR (1212)
00101 #define VDS_GLOBAL_ATTRS_NULL (1213)
00102 #define VDS_NO_DATASET (1214)
00103 #define VDS_GATHER_ERROR (1215)
00104 #define VDS_NO_OVERVIEW_FILE (1216)
00105 #define VDS_OVERVIEW_READ_ERROR (1217)
00106 #define VDS_OPEN_BAD_FILELIST (1218)
00107 #define VDS_OPEN_NO_RECORD_INFO (1219)
00108 #define VDS_CONFORMANCE_ERROR (1220)
00109 #define VDS_NO_FILENAME (1221)
00110
00111 #define ALL_DATA_MISSING (0)
00112 #define SOME_DATA_MISSING (-1)
00113 #define DATA_AVAILABLE (1)
00114
00115 #define AT_PTR_NULL (1300)
00116 #define AT_FILENAME_NULL (1301)
00117 #define AT_COL_ERROR (1302)
00118
00119 #define BAD_BINLOG_DEFINITION (1400)
00120 #define BAD_DPC_FILE (1401)
00121 #define BAD_QUALITY_LOG (1402)
00122 #define CANNOT_CREATE_BINLOG (1403)
00123 #define CANNOT_GET_MODTIME (1404)
00124 #define CANNOT_OPEN_DIR (1405)
00125 #define CANNOT_READ_BINLOG (1406)
00126 #define CANNOT_WRITE_BINLOG (1407)
00127 #define NO_DPC_FILES (1408)
00128 #define NO_QUALITY_FILES (1409)
00129 #define UNSUPPORTED_LEVEL (1410)
00130
00131 #define KEY_NOT_FOUND (1501)
00132 #define KEY_WRONG_TYPE (1502)
00133 #define KEYTYPE_NOT_IMPLEMENTED (1503)
00134
00135 #define FITS_ERROR (1600)
00136 #define FITS_NONCONFORMING (1601)
00137 #define FITS_HAS_EXTENSIONS (1602)
00138 #define FITS_EXTENSION_ASCII_TABLE (1603)
00139 #define FITS_EXTENSION_IMAGE (1604)
00140 #define FITS_EXTENSION_BINARY_TABLE (1605)
00141 #define FITS_UNRECOGNIZED_EXTENSION (1606)
00142 #define FITS_UNSUPPORTED_EXTENSION (1607)
00143 #define FITS_HAS_RANDOM_GROUPS (1608)
00144
00145 #define CANNOT_MAKE_NAME (2001)
00146 #define CLASS_SYNTAX_ERROR (2002)
00147 #define DATACOLLECTION_SYNTAX_ERROR (2003)
00148 #define DATASUPERSET_SYNTAX_ERROR (2004)
00149 #define DATA_SELECTOR_SYNTAX_ERROR (2005)
00150 #define MISSING_DATA_NAME (2006)
00151 #define MISSING_ROOT_KEY (2007)
00152 #define RANGE_SYNTAX_ERROR (2008)
00153 #define CANNOT_FILL_TEMPLATE (2009)
00154 #define TEMPLATE_SYNTAX_ERROR (2010)
00155 #define NAME_TOO_LONG (2011)
00156
00157
00158 #define MISSING_FILES (3000)
00159 #define NO_IMAGE_TIME (3001)
00160 #define NO_IMAGE_DATE (3002)
00161 #define RANK_MISMATCH (3003)
00162 #define DIMENSION_MISMATCH (3004)
00163 #define UNSUPPORTED_DATATYPE (3005)
00164 #define CVTLM_ERROR (3006)
00165 #define EXTRACT_DPC_ERROR (3007)
00166 #define INGEST_SVC_ERROR (3008)
00167 #define OUTGEST_SVC_ERROR (3009)
00168 #define SN_BLOCKING_ERR (3010)
00169 #define CANT_DO_ODD_NUM_LATS (3011)
00170 #define MODES_REQ_GT_PRESENT (3012)
00171 #define FFT_LENGTH_ERR (3013)
00172 #define ILLEGAL_LMIN (3014)
00173 #define MALLOC_ERR (3015)
00174 #define ILLEGAL_DELTA_F (3016)
00175 #define ILLEGAL_DURATION (3017)
00176 #define INGEST_HRSC_ERROR (3018)
00177 #define INGEST_HRSC_LOG_ERROR (3019)
00178 #define MERGE_HRSC_ERROR (3020)
00179 #define MERGE_HRSC_LOG_ERROR (3021)
00180 #define GRPDS_ERROR (3022)
00181 #define REQUIRED_PARAMETER_MISSING (3023)
00182 #define ILLEGAL_TILE_NAME (3024)
00183 #define NO_TILE_INTERSECTION (3025)
00184 #define ATLAS_PAGE_ERROR (3026)
00185 #define ILLEGAL_TIME_FORMAT (3027)
00186 #define TIME_CONVERSION_FAILED (3028)
00187 #define ILLEGAL_ORIENTATION (3029)
00188 #define MMLI_ERROR (3030)
00189 #define DEFAULT_PARAMETER_USED (3031)
00190 #define INGEST_5K_ERROR (3032)
00191 #define TILE_BLOCKING_ERROR (3033)
00192 #define INCONSISTENT_CONTRAINTS (3034)
00193 #define INGEST_5K_LOG_ERROR (3035)
00194 #define EXTRACT_5K_ERROR (3036)
00195 #define DATA_INDEX_ERROR (3037)
00196 #define UNSUPPORTED_INTERPOLATION (3038)
00197 #define UNSUPPORTED_V_CORRECTION (3039)
00198 #define GATHER_INFO_NO_INPUT_DATA (3040)
00199 #define OVR2NAME_ERROR (3041)
00200 #define MDICAL_ERROR (3042)
00201 #define CPINFO_ERROR (3043)
00202 #define REQUIRED_KEYVALUE_MISSING (3044)
00203 #define UNSUPPORTED_M_CORRECTION (3045)
00204 #define SAINFO_ERROR (3046)
00205
00206
00207
00208 #define LAGO_BUSY (4001)
00209 #define LAGO_CANT_OPEN_FILE (4002)
00210 #define LAGO_CLOSE_ERROR (4003)
00211 #define LAGO_CORRUPT (4004)
00212 #define LAGO_ERROR (4005)
00213 #define LAGO_INFO_ERROR (4006)
00214 #define LAGO_INVALID_COMMAND (4007)
00215 #define LAGO_INVENTORY_FAILURE (4008)
00216 #define LAGO_LOAD_ERROR (4009)
00217 #define LAGO_NO_BARCODE (4010)
00218 #define LAGO_NO_TAPE (4011)
00219 #define LAGO_NO_DRIVE (4012)
00220 #define LAGO_NO_UID (4013)
00221 #define LAGO_NO_DIRECTORY (4014)
00222 #define LAGO_NO_FILENUM (4015)
00223 #define LAGO_OPEN_ERROR (4016)
00224 #define LAGO_RESPONSE_TOO_LONG (4017)
00225 #define LAGO_SYNTAX_ERROR (4018)
00226 #define LAGO_TAPE_IN_USE (4019)
00227 #define LAGO_TIMEOUT (4020)
00228 #define LAGO_UNKNOWN_BARCODE (4021)
00229 #define LAGO_UNKNOWN_TAPE (4022)
00230 #define LAGO_UNKNOWN_UID (4023)
00231 #define LAGO_SPAWN_ERROR (4024)
00232 #define LAGO_SEND_ERROR (4025)
00233 #define LAGO_RECEIVE_ERROR (4026)
00234 #define LAGO_PACK_ERROR (4027)
00235 #define LAGO_UNPACK_ERROR (4028)
00236 #define LAGO_NO_REQUESTS (4029)
00237 #define LAGO_PVM_INFO_ERROR (4030)
00238
00239 #define AMPEX_BUSY (4501)
00240 #define AMPEX_CANT_OPEN_FILE (4502)
00241 #define AMPEX_CLOSE_ERROR (4503)
00242 #define AMPEX_CORRUPT (4504)
00243 #define AMPEX_ERROR (4505)
00244 #define AMPEX_INFO_ERROR (4506)
00245 #define AMPEX_INVALID_COMMAND (4507)
00246 #define AMPEX_INVENTORY_FAILURE (4508)
00247 #define AMPEX_LOAD_ERROR (4509)
00248 #define AMPEX_NO_BARCODE (4510)
00249 #define AMPEX_NO_TAPE (4511)
00250 #define AMPEX_NO_DRIVE (4512)
00251 #define AMPEX_NO_UID (4513)
00252 #define AMPEX_NO_DIRECTORY (4514)
00253 #define AMPEX_NO_FILENUM (4515)
00254 #define AMPEX_OPEN_ERROR (4516)
00255 #define AMPEX_RESPONSE_TOO_LONG (4517)
00256 #define AMPEX_SYNTAX_ERROR (4518)
00257 #define AMPEX_TAPE_IN_USE (4519)
00258 #define AMPEX_TIMEOUT (4520)
00259 #define AMPEX_UNKNOWN_BARCODE (4521)
00260 #define AMPEX_UNKNOWN_TAPE (4522)
00261 #define AMPEX_UNKNOWN_UID (4523)
00262 #define AMPEX_SPAWN_ERROR (4524)
00263 #define AMPEX_SEND_ERROR (4525)
00264 #define AMPEX_RECEIVE_ERROR (4526)
00265 #define AMPEX_PACK_ERROR (4527)
00266 #define AMPEX_UNPACK_ERROR (4528)
00267 #define AMPEX_NO_REQUESTS (4529)
00268 #define AMPEX_PVM_INFO_ERROR (4530)
00269 #define AMPEX_POSITION_ERROR (4531)
00270 #define AMPEX_STORE_ERROR (4532)
00271 #define AMPEX_READ_ERROR (4533)
00272 #define AMPEX_WRITE_ERROR (4534)
00273 #define AMPEX_INIT_ERROR (4535)
00274 #define AMPEX_NO_HOST (4536)
00275 #define AMPEX_UNEXP_POS (4537)
00276
00277
00278 #define DATA_NOT_FOUND (5000)
00279 #define DS_DATA_QRY (5001)
00280
00281 #define DS_DATA_REQ (5002)
00282 #define DS_DATA_UPD (5003)
00283
00284 #define DS_PALC_ERR (5004)
00285 #define DS_PE_ERR (5005)
00286 #define DS_PAVAIL_ERR (5006)
00287 #define DS_TAPE_UPD (5007)
00288 #define DS_ARCHIVE (5008)
00289 #define DS_LAGO_SEND_ERR (5009)
00290 #define DS_UID_ERR (5010)
00291 #define DS_ALLOC_ERR (5011)
00292 #define DS_MAX_LAGO_ERR (5012)
00293 #define DS_NO_LAGO (5013)
00294 #define DS_DEALLOC_ERR (5014)
00295 #define DS_OPEN_ERR (5015)
00296 #define DS_NO_DATA (5016)
00297 #define DS_ILL_REQ (5017)
00298 #define DS_CONNECT_DB (5018)
00299 #define DS_DISCONNECT_DB (5019)
00300 #define DS_SQL_CMD (5020)
00301 #define DS_COMMIT_DB (5021)
00302 #define DS_ROLLBACK_DB (5022)
00303 #define DS_NO_SYNC_STOR (5023)
00304 #define DS_NO_DSDS_SVC (5024)
00305 #define DS_PACK_ERROR (5025)
00306 #define DS_UNPACK_ERROR (5026)
00307 #define DS_DSDS_SEND_ERR (5027)
00308 #define DS_RESP_TIMEOUT (5028)
00309 #define DS_CATDEL_ERR (5029)
00310
00311 #define DS_AMPEX_SEND_ERR (5509)
00312 #define DS_MAX_AMPEX_ERR (5512)
00313 #define DS_NO_AMPEX (5513)
00314 #define DS_MALLOC_ERR (5514)
00315 #define DS_LOGIC_ERR (5515)
00316 #define DS_TOUCH_NEG (5516)
00317 #define DS_NAME_OBSOLETE (5517)
00318 #define DS_NOT_ARCHIVED (5518)
00319 #define DS_MV_PERM (5519)
00320 #define DS_MV_NF (5520)
00321 #define DS_MV_NUP (5521)
00322
00323 #define RPC_SVC_NOT (5600)
00324
00325 #define MDI_SW_ERR (5700)
00326
00327 #define MDI_ERROR (9000)
00328 #define MDI_PKT_MUNGED (9001)
00329 #define UNKNOWN_DPC (9002)
00330 #define MDI_DPC_TABLE_ERROR (9003)
00331 #define MDI_INDEX_FILE_ERROR (9004)
00332 #define MDI_INFO_FILE_ERROR (9005)
00333 #define DPC_IS_ZERO (9006)
00334 #define DPC_NOT_FOUND (9007)
00335 #define MDI_5K_DECOMPRESS_ERROR (9008)
00336 #define MDI_5K_SEGNUM_ERROR (9009)
00337 #define MDI_MISSING_PACKETS (9010)
00338 #define MDI_MISSING_SEGMENTS (9011)
00339 #define MDI_5k_TFR_FORMAT_ERROR (9012)
00340 #define MDI_NO_DP_HEADERS (9013)
00341 #define MDI_BAD_REFTIMES (9014)
00342 #define MDI_DECOMPRESS_ERROR (9015)
00343 #define NOT_LIST_DATA (9016)
00344 #define UNSUPPORTED_DPC (9017)
00345
00346 #define NO_SUCH_HK_MNEMONIC (9050)
00347 #define NO_HK_MNEMONICS_FOUND (9051)
00348 #define MDI_HK_PKT_FMT_ERROR (9052)
00349 #define SC1_HK_PKT_FMT_ERROR (9053)
00350 #define SC2_HK_PKT_FMT_ERROR (9054)
00351 #define SC3_HK_PKT_FMT_ERROR (9055)
00352 #define SC4_HK_PKT_FMT_ERROR (9056)
00353 #define HK_PARM_TBL_ERROR (9057)
00354 #define HK_PCA_TBL_ERROR (9058)
00355 #define HK_CA_TBL_ERROR (9059)
00356 #define HK_PCD_TBL_ERROR (9060)
00357 #define HK_ITEM_NOT_REGISTER (9061)
00358 #define HK_ITEM_NOT_DIGITAL (9062)
00359 #define HK_ITEM_NOT_ANALOG (9063)
00360 #define HK_TYPE_NOT_RECOGNIZED (9064)
00361 #define HK_INVALID_LIST_LEN (9065)
00362 #define HK_INVALID_LIST_PTR (9066)
00363 #define HK_INVALID_LIST_ERRPTR (9067)
00364
00365 #define HK_SFD_TROUBLE (9100)
00366
00367 #define LEV0_STATS_ERROR (9200)
00368 #define MAKE_LIST_ERROR (9300)
00369
00370 #define FSEEK_ERROR (10000)
00371 #define FREAD_ERROR (10001)
00372 #define FWRITE_ERROR (10002)
00373 #define FLAT_FILE_ERROR (10003)
00374 #define FOPEN_ERROR (10004)
00375
00376
00377 #define ABORTFLG_OK (0)
00378 #define ABORTFLG_NG (1)
00379 #define ABORTFLG_NG_SV (2)
00380
00381 #define SOI_ERROR_INCL 1
00382
00383
00384
00385
00386
00387 extern int soi_errno;
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398
00399
00400
00401
00402
00403
00404
00405
00406
00407 extern void die (char *fmt, int status, ...);
00408 extern void ignore (char *fmt, ...);
00409 extern int sethistory (char *filename);
00410 extern int setlogfile (char *filename);
00411 extern void report_msg (char *fmt, ...);
00412 extern void write_history (char *fmt, ...);
00413 extern int write_logfile (char *fmt, ...);
00414
00415
00416 extern void perrstk (int (*printfunct)(const char *, ...));
00417 extern void errstk (char *fmt, ...);
00418 extern void initerrstk();
00419
00420 #endif