home *** CD-ROM | disk | FTP | other *** search
/ Oracle Video Server 3.0.3.1 / OVS_3031_NT.iso / win32 / tracesvr / epc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-27  |  29.8 KB  |  802 lines

  1. /*
  2.  * $Header: epc.h 27-nov-96.09:11:34 jmcdonal Exp $
  3.  */
  4.  
  5. /* Copyright (c) 1995, 1996 by Oracle Corporation */
  6.  
  7. /* NOTE:  See 'header_template.doc' in the 'doc' dve under the 'forms'
  8.       directory for the header file template that includes instructions.
  9. */
  10.  
  11. /*
  12.    NAME
  13.      epc.h - <one-line expansion of the name>
  14.    DESCRIPTION
  15.      <short description of component this file declares/defines>
  16.    RELATED DOCUMENTS
  17.  
  18.    INSPECTION STATUS
  19.      Inspection date:
  20.      Inspection status:
  21.      Estimated increasing cost defects per page:
  22.      Rule sets:
  23.  
  24.    ACCEPTANCE REVIEW STATUS
  25.      Review date:
  26.      Review status:
  27.      Reviewers:
  28.  
  29.    PUBLIC FUNCTION(S)
  30.      <list of external functions declared/defined - with one-line descriptions>
  31.    PRIVATE FUNCTION(S)
  32.      <list of static functions defined in .c file - with one-line descriptions>
  33.  
  34.    EXAMPLES
  35.  
  36.    NOTES
  37.        DO NOT INCLUDE S.H 
  38.        we can only include PUBLIC .h files
  39.  
  40.    MODIFIED   (MM/DD/YY)
  41.     jmcdonal   11/27/96 -  Add generic CLI job start/end msg for Tcl use
  42.     glavash    09/13/96 -  remove s.h
  43.     mjlamber   08/01/96 -  FDF comment field
  44.     jmcdonal   07/23/96 -  Add couple more CLI epc_s_xxx conditions,
  45.                              eg for CLI image not found 
  46.     jmcdonal   07/18/96 -  Add initial CLI errors/conditions.
  47.     glavash    05/21/96 -  copy typedef stuff from oratypes.h to here 
  48.                            make it more robust
  49.     cmrozien   04/18/96 -  move CATALOG errors here.
  50.                            make "text" unsigned for 8 bit
  51.     glavash    04/18/96 -  remove s.h add test of sx_oracle
  52.     CMROZIEN   04/17/96 -  add EPCLOADRESDLL error
  53.     jmcdonal   02/01/96 -  add errors for delete collection files 
  54.     gwood      12/21/95 -  formatter performance enhancements
  55.     cmrozien   12/02/95 -  add EPCESVR* errors.
  56.     gwood      11/30/95 -  fix file full handling
  57.     gwood      11/20/95 -  Creation
  58. */
  59.  
  60. /* DO NOT INCLUDE S.H 
  61.  * we can only include PUBLIC .h files
  62.  */
  63.  
  64. /* include file for Oracle TRACE return codes and constants */
  65. /* Copyright (c) Oracle Corporation 1995, 1996.  All Rights Reserved. */
  66.  
  67. /*                                
  68. * Abstract:
  69. *
  70. * Module:  epc.h
  71. *
  72. * This header file contains the success and error constants used by Oracle
  73. * TRACEtrace, as well as caller visible constants.
  74. *
  75. * Instructions: When adding error codes, you need to add the #define in this
  76. *               file and then add the error text to epcmsg.msg matching the
  77. *               numbers appropriately.
  78. */
  79. #ifndef EPC_ORACLE  
  80. #define EPC_ORACLE 
  81.  
  82. #define EPC_K_LOCAL 1
  83. #define EPC_K_ALLOC 2
  84. #define EPC_K_SHMEM 3
  85. #define EPC_K_MMAP  4
  86. #define EPC_K_GBLSEC 5
  87.  
  88. #define EPC_K_RETURN_EVENT 1
  89.  
  90. #define EPC_K_STAREC_SIZE 32
  91. #define EPC_K_ENDREC_SIZE  32
  92. #define EPC_K_POIREC_SIZE  28
  93.  
  94. #define EPC_K_MAXCFITEM 14
  95.  
  96. /* 
  97.  * Service return status
  98. */
  99.  
  100.  
  101. #define epc_s_success        0     /* The call was successful   */    
  102.  
  103. #define epc_s_msg_start        0
  104. #define epc_s_badevntflgs    1     /* Bad event flags passed    */
  105. #define epc_s_badfac        2     /* Bad facility id passed    */
  106. #define epc_s_badfacver        3     /* Bad facility version passed   */
  107. #define epc_s_badregid        4     /* Bad facility registration id  */
  108. #define epc_s_badvendor        5     /* Bad vendor id passed      */
  109. #define epc_s_disabled        6     /* Collection(s) has been disabled*/
  110. #define epc_s_facverreq        7     /* Facility version required */
  111. #define epc_s_init2        8     /* epc_init called twice for */
  112.                                       /* this facility             */
  113. #define epc_s_nodcfexists    9     /* No data capture file exists */
  114. #define epc_s_noregexists    10    /* No registrar process exists */
  115.                                       /* on this node              */
  116. #define epc_s_notinstall    11    /* Oracle trace software not installed*/
  117. #define epc_s_regtimeout    12    /* Registrar did not respond */
  118.                                       /* within the time set by the*/
  119.                                       /* env variable EPC_BE_REGTIMEOUT*/
  120. #define epc_s_nomsglist        13    /* No message list.          */
  121. #define epc_s_nofac        14    /* facility not defined in reg FBL*/
  122. #define epc_s_noheap        15    /* not enough heap space     */
  123. #define epc_s_badminevent    16    /* bad minimum event         */
  124. #define epc_s_badmaxevent    17    /* bad maximum event         */
  125. #define epc_s_facadded        18    /* facility added to the list */
  126. #define epc_s_badattach        19    /* could not attach to shared mem*/
  127. #define epc_s_badget        20    /* could not get access to mem */
  128. #define epc_s_badopen        21    /* could not open semaphore   */
  129. #define epc_s_facfound        22    /* facility found in registrar's */
  130.                       /* FBL.                       */
  131. #define epc_s_facnotcol        23    /* facility not collecting    */
  132. #define epc_s_baddettach    24    /* could not detach the sharedmem*/
  133. #define epc_s_badclose        25    /* could not release semaphore */
  134. #define epc_s_colfound        26    /* collection list found for a */
  135.                                       /* given facility number       */
  136. #define epc_s_metricfound    27    /* metric found in Reg's FBL   */
  137. #define epc_s_metricnotfound    28    /* metric not found in Reg's FBl*/
  138. #define epc_s_facnotfound    29    /* facility not found in Prc FBL*/
  139. #define epc_s_colnotfound    30    /* collection not found        */
  140. #define epc_s_coladded        31    /* collection added to col block*/
  141. #define epc_s_dcfexists        32    /* data capture file exists      */
  142. #define epc_s_mutex_init    33    /* Global Mutex created for DCf */
  143. #define epc_s_mutex_initerror   34    /* Error while creating mutex   */
  144. #define epc_s_illbuflen     35    /* illegal record length        */
  145. #define epc_s_badevnt        36    /* bad event passed             */
  146. #define epc_s_noevnt        37    /* No event specified           */
  147. #define epc_s_nohandl        38    /* NO handle specified          */
  148. #define epc_s_evntnotcol    39    /* Event specified not collecting*/
  149. #define epc_s_writdcf        40    /* Error writing to DCF         */
  150. #define epc_s_badthdcreate    41    /* Error creating Thread        */
  151. #define epc_s_badthddetach    42    /* Error detaching Thread       */
  152. #define epc_s_mutexlck_error    43    /* Error obtaining mutex lock   */
  153. #define epc_s_mutexunlck_error  44    /* Error unlocking mutex        */
  154. #define epc_s_itmnotcol         45    /* Item not collecting          */
  155. #define epc_s_fail              46    /* General Error Message        */
  156. #define epc_s_badthread         47    /* bad thread                   */
  157. #define epc_s_nothread          48    /* no thread                    */
  158. #define epc_s_thread_not_cur    49    /* thread_id not current thread */
  159. #define epc_s_badevntrec        50    /* Bad event record arg passed  */
  160. #define epc_s_regid_notexists   51    /* Regid does not exists        */
  161. #define epc_s_regid_limit_exd   52    /* Regid limit exceeded         */
  162. #define epc_s_regid_exists      53    /* Regid already exists         */
  163. #define epc_s_fac_limit_exd    54    /* facilit limit exceeded       */
  164. #define epc_s_opedcf            55    /* error opening dcf            */
  165. #define epc_s_opecdf            56    /* error opening cdf            */
  166. #define epc_s_badcfitem         57    /* bad cf item number           */
  167. #define epc_s_initreq           58    /* epc_init call required       */
  168. #define epc_s_eflgsreq            59    /* eventflgs required           */
  169. #define epc_s_datafilereq       60    /* datafile required            */
  170. #define epc_s_fdffilereq        61    /* fdffile  required            */
  171. #define epc_s_colactive         62    /* collection already active    */
  172. #define epc_s_fdfrderr          63    /* error reading fdf file */
  173. #define epc_s_credcf            64    /* error creating dcf */
  174. #define epc_s_crecdf            65    /* error creating cdf */
  175. #define epc_s_wrtcdf            66    /* error writing cdf */
  176. #define epc_s_opefdf            67    /* error opening fdf            */
  177. #define epc_s_cdfseek            68    /* seek error in cdf */
  178. #define epc_s_ogetmach          69    /* get os name, machine name err */
  179. #define epc_s_ogethost          70    /* get host name err */
  180. #define epc_s_maxevent          71    /* max_event must be > 0 */
  181. #define epc_s_ret_eflagsreq     72    /* returned_eflags required */
  182. #define epc_s_badoffset         73    /* bad offset value */
  183. #define epc_s_shmemreq          74    /* shmem id or filename req */
  184. #define epc_s_filnamreq         75    /* filename required */
  185. #define epc_s_preeflagsreq      76    /* predefined_eventflags required */
  186. #define epc_s_badoption         77    /* bad option value */
  187. #define epc_s_not_impl          78    /* not yet implemented */
  188. #define epc_s_appendfail        79    /* file append failed */
  189. #define epc_s_appendseek        80    /* file append seek failed */
  190. #define epc_s_appendwrt         81    /* append write failed */
  191. #define epc_s_appendrd          82    /* append write failed */
  192. #define epc_s_crefdf            83    /* error creating fdf */
  193. #define epc_s_memmap            84    /* memory mapping failed */
  194. #define epc_s_unmap             85    /* memory unmapping failed */ 
  195. #define epc_s_mmapreq           86    /* memory map req before unmap */
  196. #define epc_s_begclijob         87    /* Generic beginning CLI job */
  197. #define epc_s_lsffail           88    /* lsf failure */
  198. #define epc_s_excdmaxeve    89    /* event_id exceeds max on epc_init */
  199. #define epc_s_wrtver            90    /* error writing version record */
  200. #define epc_s_badminute        91    /* 0 to 59 required */
  201. #define epc_s_badhour        92    /* 0 to 23 required */
  202. #define epc_s_interrarg        93    /* internal error: invalid argument */
  203. #define epc_s_timefail        94    /* failure on system timestamp call */
  204.  
  205. /* Add new errors for Reg ID routines in epcrid.c; JMc, 8/21/95 */
  206.  
  207. #define  epc_s_add_regid        95    /* error adding new Reg ID record */
  208. #define  epc_s_clo_regid        96    /* error closing Reg ID file */
  209. #define  epc_s_cre_regid        97    /* error creating new Reg ID file */
  210. #define  epc_s_del_regid        98    /* Reg ID delete error */
  211. #define  epc_s_del_regid_det    99    /* error deleting Reg ID details */
  212. #define  epc_s_find_free_slot  100    /* error finding free Reg ID rec slot */
  213. #define  epc_s_find_regid_pro  101    /* error finding process' primary rec */
  214. #define  epc_s_get_regid       102    /* error finding process' Reg ID data */
  215. #define  epc_s_inv_regid_cxt   103    /* invalid Reg ID context error */
  216. #define  epc_s_inv_regid_data  104    /* invalid/inconsistent Reg ID data */
  217. #define  epc_s_inv_regid_str   105    /* invalid Reg ID string, eg too long */
  218. #define  epc_s_next_regid      106    /* error finding next Reg ID record */
  219. #define  epc_s_next_regid_det  107    /* error finding next Reg details rec */
  220. #define  epc_s_ope_regid       108    /* error opening Reg ID file */
  221. #define  epc_s_read_regid      109    /* error reading a Reg ID record */
  222. #define  epc_s_read_regid_hdr  110    /* error reading Reg ID file header */
  223. #define  epc_s_regid_env       111    /* Reg ID environment variable error */
  224. #define  epc_s_set_regid_ext   112    /* error setting file extend_count */
  225.  
  226. /* Add new errors for COL file routines in epccol.c; JMc, 8/30/95 */
  227.  
  228. #define  epc_s_add_col           113    /* error during add of new COL record */
  229. #define  epc_s_clo_col         114    /* error during close of COL file */
  230. #define  epc_s_col_env         115    /* bad/missing COL file env variable */
  231. #define  epc_s_col_exists      116    /* collection already exists in file */
  232. #define  epc_s_cre_col         117    /* error creating COL file */
  233. #define  epc_s_del_col         118    /* error deleting COL record */
  234. #define  epc_s_find_col        119    /* error finding specified COL record */
  235. #define  epc_s_inv_col_cxt     120    /* invalid/undefined COL context */
  236. #define  epc_s_inv_col_name    121    /* invalid/undefined collection name */
  237. #define  epc_s_next_col        122    /* error getting next COL record */
  238. #define  epc_s_ope_col         123    /* error during open of COL file */
  239. #define  epc_s_read_col        124    /* error reading COL record */
  240. #define  epc_s_read_col_hdr    125    /* error reading COL file header */
  241. #define  epc_s_set_col_ext     126    /* error setting COL file extend_count */
  242. #define  epc_s_upd_fac_ef      127    /* facility eventflag update error */
  243. #define  epc_s_upd_pro_ef      128    /* process eventflag update error */
  244.  
  245. /* Add new errors for PRO file routines in epcpro.c; JMc, 9/1/95 */
  246.  
  247. #define  epc_s_pro_add         129    /* error adding PRO record */
  248. #define  epc_s_pro_clo         130    /* error closing PRO file */
  249. #define  epc_s_pro_cre         131    /* error creating PRO file */
  250. #define  epc_s_pro_del         132    /* error in delete/free of PRO rec */
  251. #define  epc_s_comclijob       133    /* Generic completed CLI job status */
  252. #define  epc_s_pro_fac_add_regid 134  /* error adding PRO_REGID to PRO_FAC */
  253. #define  epc_s_pro_fac_del_regid 135  /* error deleting PRO_REGID */
  254. #define  epc_s_pro_get_regpid  136    /* get registrar PID from PRO failed */
  255. #define  epc_s_pro_inv_cxt     137    /* invalid/undefined PRO file context */
  256. #define  epc_s_pro_next        138    /* fetch of next PRO record failed */
  257. #define  epc_s_pro_ope         139    /* error during open of PRO file */
  258. #define  epc_s_pro_read        140    /* read of PRO file record failed */
  259. #define  epc_s_pro_read_hdr    141    /* error during read (map) of PRO hdr */
  260. #define  epc_s_pro_set_ext     142    /* set of PRO file extend_count failed */
  261. #define  epc_s_pro_upd         143    /* update of PRO record failed */
  262. #define  epc_s_pro_upd_regpid  144    /* error updating registrar PID in PRO */
  263.  
  264. #define epc_s_stop_col           145    /* error stopping collection */
  265.  
  266. /* Add new errors for use with Trace CLI; JMc, 7/15/96 */
  267.  
  268. #define epc_s_clisuccess    146  /* generic CLI success */
  269. #define epc_s_nojobid        147  /* No Job ID was specified */
  270. #define epc_s_colstatact    148  /* Collection status is: Active */
  271. #define epc_s_colstatnotact    149  /* Collection status is: Not active */
  272. #define epc_s_colstatundef    150  /* Collection status is: Undefined */
  273. #define epc_s_delcolfil        151  /* Deleted collection cdf and dat files */
  274. #define epc_s_opeparfil        152  /* Error opening input parameter file */
  275. #define epc_s_invclicom        153  /* Invalid/ambiguous CLI command */
  276. #define epc_s_invprores        154  /* Invalid/missing restriction */
  277. #define epc_s_res_limit_exd    155  /* Max # of restrictions exceeded */
  278. #define epc_s_nohompar        156  /* Oracle home parameter not supplied */
  279. #define epc_s_started        157  /* Started collection */
  280. #define epc_s_stopped        158  /* Stopped collection */
  281. #define epc_s_invconstr        159  /* User/pw (or service) not supplied */
  282.  
  283. #define epc_s_scolact        160   /* error activating collection */
  284. #define epc_s_scolmod           161   /* error modifying collection file */
  285. #define epc_s_scolfdf           162   /* fdf file error in act col */
  286. #define epc_s_orahome        163   /* error translating ORACLE_HOME */
  287. #define epc_s_fadmindir         164   /* error in admin directory routine */
  288. #define epc_s_fproddir          165   /* error in product directory routine */
  289. #define epc_s_colcan            166   /* error cancelling col */
  290. #define epc_s_colfull           167   /* collection file reached limit */
  291. #define epc_s_forafpath         168   /* error getting filepath off ORACLE_HOME */
  292. #define epc_s_delcdf        169   /* error deleting cdf file */
  293. #define epc_s_deldat        170   /* error deleting collection dat file */
  294.  
  295. /* Additional errors for Trace CLI use; JMc, 7/17/96 */
  296.  
  297. #define epc_s_tclscan           171  /* Tcl scan error */
  298. #define epc_s_tclfilacc         172  /* Tcl cannot access file, eg snmp.ora */
  299. #define epc_s_nohomdef          173  /* No Oracle home defined in snmp.ora */
  300. #define epc_s_nohomepc          174  /* No Oracle home with Trace subdir */
  301. #define epc_s_nocliexe          175  /* CLI image not found/not executable */
  302. #define epc_s_fmtdone           176  /* Format to database completed */
  303. #define epc_s_fmtstart          177  /* Format operation has started */
  304. #define epc_s_notcljob          178  /* No Tcl job name was specified */
  305. #define epc_s_errstop           179  /* Stopped coll due to cdf max filesize */
  306. #define epc_s_delfmtstart       180  /* Delete of fmt data started */
  307. #define epc_s_delfmtdone        181  /* Delete of fmt data completed */
  308. #define epc_s_ocierr            182  /* OCI database error */
  309.  
  310. #define epc_s_filever           185  /* Wrong file version MJL 1 Aug 1996 */
  311.  
  312. #define EPC__MSG_START 200
  313. #define EPC__PAGE 1 + EPC__MSG_START
  314. #define EPC__FACDEF_STITLE 2 + EPC__MSG_START
  315. #define EPC__SUP_DATE_FORMAT 3 + EPC__MSG_START
  316. #define EPC__RPQU_DATE_DISABLED 4 + EPC__MSG_START
  317. #define EPC__PRODUCT_NAME 5 + EPC__MSG_START
  318. #define EPC__RPQU_VERSION_DISABLED 6 + EPC__MSG_START
  319. #define EPC__RPQU_EVENT 7 + EPC__MSG_START
  320. #define EPC__RPQU_FACILITY 8 + EPC__MSG_START
  321. #define EPC__RPQU_VERSION 9 + EPC__MSG_START
  322. #define EPCREPCOLLECTION 10 + EPC__MSG_START
  323. #define EPCREPEPID 11 + EPC__MSG_START
  324. #define EPCREPUNAME 12 + EPC__MSG_START
  325. #define EPCREPCPU 13 + EPC__MSG_START
  326. #define EPCREPOSFVER 14 + EPC__MSG_START
  327. #define EPCREPNODENAME 15 + EPC__MSG_START
  328. #define EPCREPTIME 16 + EPC__MSG_START
  329. #define EPCREPTIME_FORMAT 17 + EPC__MSG_START
  330. #define EPCREPFACILITY 18 + EPC__MSG_START
  331. #define EPCREPVERSION 19 + EPC__MSG_START
  332. #define EPCREPITMNTFND 20 + EPC__MSG_START
  333. #define EPCREPREGID 21 + EPC__MSG_START
  334. #define EPCREPSTIME 22 + EPC__MSG_START
  335. #define EPCREPETIME 23 + EPC__MSG_START
  336. #define EPCREPERRPUT 24 + EPC__MSG_START
  337. #define EPCREPERRTIME 25 + EPC__MSG_START
  338. #define EPCREPERRLOCALTIME 26 + EPC__MSG_START
  339. #define EPCREPFACREGID_NF 27 + EPC__MSG_START
  340. #define EPCREPFAC_NF 28 + EPC__MSG_START
  341. #define EPCREPERR_ADDEITE 29 + EPC__MSG_START
  342. #define EPCREPEVE_NF 30 + EPC__MSG_START
  343. #define EPCREPSTART_ORPH 31 + EPC__MSG_START
  344. #define EPCREPEND_ORPH 32 + EPC__MSG_START
  345. #define EPC__MEM_MALLOC 33 + EPC__MSG_START
  346. #define EPC__MEM_CALLOC 34 + EPC__MSG_START
  347. #define EPCDCF_FNF 35 + EPC__MSG_START
  348. #define EPCCDFFNF 36 + EPC__MSG_START
  349. #define EPCCDFRNK 37 + EPC__MSG_START
  350. #define EPCCDFERF 38 + EPC__MSG_START
  351. #define EPC__ERR_HUH 39 + EPC__MSG_START
  352. #define EPCLBJUST 40 + EPC__MSG_START
  353. #define EPCLBINSB 41 + EPC__MSG_START
  354. #define EPC__OPEN 42 + EPC__MSG_START
  355. #define EPC__CREATE 43 + EPC__MSG_START
  356. #define EPC__ENV_NF 44 + EPC__MSG_START
  357. #define EPC__MAP 45 + EPC__MSG_START
  358. #define EPC__EVNTFLG_UPD 46 + EPC__MSG_START
  359. #define EPCFDFERF 47 + EPC__MSG_START
  360. #define EPCFDFRNK 48 + EPC__MSG_START
  361. #define EPC__HIST_BUF 49 + EPC__MSG_START
  362. #define EPC__HIST_WRT 50 + EPC__MSG_START
  363. #define EPC__IO_APPSEEK 51 + EPC__MSG_START
  364. #define EPC__IO_APPREAD 52 + EPC__MSG_START
  365. #define EPC__IO_APPWRT 53 + EPC__MSG_START
  366. #define EPC__IO_CLR 54 + EPC__MSG_START
  367. #define EPC__IO_SET 55 + EPC__MSG_START
  368. #define EPC__IO_STAT 56 + EPC__MSG_START
  369. #define EPC__IO_READ 57 + EPC__MSG_START
  370. #define EPC__IO_WRT 58 + EPC__MSG_START
  371. #define EPC__IO_SEEK 59 + EPC__MSG_START
  372. #define EPC__IO_EXTEND 60 + EPC__MSG_START
  373. #define EPC__IO_MAPRD 61 + EPC__MSG_START
  374. #define EPC__IO_MAPWRT 62 + EPC__MSG_START
  375. #define EPC__IO_MAPLCK 63 + EPC__MSG_START
  376. #define EPC__IO_BADFP 64 + EPC__MSG_START
  377. #define EPC__THREAD_ERR 65 + EPC__MSG_START
  378. #define EPC__MUTEXUNLCK 66 + EPC__MSG_START
  379. #define EPC__FLUSH_ERR 67 + EPC__MSG_START
  380. #define EPC__LOCK 68 + EPC__MSG_START
  381. #define EPC__LOCK_TST 69 + EPC__MSG_START
  382. #define EPC__IO_UNMAP 70 + EPC__MSG_START
  383. #define EPC__REG_UPD 71 + EPC__MSG_START
  384. #define EPC__REG_QUEUE 72 + EPC__MSG_START
  385. #define EPC__REG_UNKMSG 73 + EPC__MSG_START
  386. #define EPC__REG_PROERR 74 + EPC__MSG_START
  387. #define EPC__RGMSG_EXISTS 75 + EPC__MSG_START
  388. #define EPC__RGMSG_CREATE 76 + EPC__MSG_START
  389. #define EPC__RGMSG_DESTROY 77 + EPC__MSG_START
  390. #define EPC__RGMSG_OPEN 78 + EPC__MSG_START
  391. #define EPC__RGMSG_READ 79 + EPC__MSG_START
  392. #define EPC__RGMSG_SEND 80 + EPC__MSG_START
  393. #define EPC__SCHED_ERR 81 + EPC__MSG_START
  394. #define EPC__RGSCHED_COL 82 + EPC__MSG_START
  395. #define EPC__RGSCHED_START 83 + EPC__MSG_START
  396. #define EPC__RGSCHED_FDF 84 + EPC__MSG_START
  397. #define EPC__RGSCHED_FDFEMP 85 + EPC__MSG_START
  398. #define EPC__RGSCHED_APP 86 + EPC__MSG_START
  399. #define EPC__RGSCHED_UNXFDF 87 + EPC__MSG_START
  400. #define EPC__RGSCHED_PROEMP 88 + EPC__MSG_START
  401. #define EPC__RGSCHED_PROSEND 89 + EPC__MSG_START
  402. #define EPC__GETHOSTNAME 90 + EPC__MSG_START
  403. #define EPCPRO_FIND 91 + EPC__MSG_START
  404. #define EPC__CONDINIT 92 + EPC__MSG_START
  405. #define EPC__MUTEXINIT 93 + EPC__MSG_START
  406. #define EPC__THREADCRE 94 + EPC__MSG_START
  407. #define EPC__REGID_LIMIT_EXD 95 + EPC__MSG_START
  408. #define EPC__UNAME 96 + EPC__MSG_START
  409. #define EPC__WRITDCF 97 + EPC__MSG_START
  410. #define EPC__MUTEXLCK 98 + EPC__MSG_START
  411. #define EPCCOLNOTFOUND 99 + EPC__MSG_START
  412. #define EPCCOLNOTFOUNDA 100 + EPC__MSG_START
  413. #define EPCCOLNOTACTIVE 101 + EPC__MSG_START
  414. #define EPC__CONDSIG 102 + EPC__MSG_START
  415. #define EPC__THDDELAYNP 103 + EPC__MSG_START
  416. #define EPC__HST_WRT 104 + EPC__MSG_START
  417. #define EPCCOLFILFULL 105 + EPC__MSG_START
  418. #define EPCREPNOTEXT 106 + EPC__MSG_START
  419. #define EPCFMTCOMMIT_ERR 107 + EPC__MSG_START
  420. #define EPCFMTORACLE_ERR 108 + EPC__MSG_START
  421. #define EPCFMTORASQL_ERR 109 + EPC__MSG_START
  422. #define EPCERRMSB 110 + EPC__MSG_START
  423. #define EPCCREPROCESS 111 + EPC__MSG_START
  424. #define EPCCRESCHEDULE 112 + EPC__MSG_START
  425. #define EPCCRECOLLECTION 113 + EPC__MSG_START
  426. #define EPCREADDCF 114 + EPC__MSG_START
  427. #define EPCCRESTARTHDL 115 + EPC__MSG_START
  428. #define EPCFINDPROCREC 116 + EPC__MSG_START
  429. #define EPCSTRTOOLONG 117 + EPC__MSG_START
  430. #define EPCCREDATAFILE 118 + EPC__MSG_START
  431. #define EPCMISSCHEDINFO 119 + EPC__MSG_START
  432. #define EPCFINDSCHEDREC 120 + EPC__MSG_START
  433. #define EPCCOLLSTART 121 + EPC__MSG_START
  434. #define EPCREPPRO_ERR 122 + EPC__MSG_START
  435. #define EPCREPREGPRO 123 + EPC__MSG_START
  436. #define EPCNOTFREE 124 + EPC__MSG_START
  437. #define EPCIOFFAIL 125 + EPC__MSG_START
  438. #define EPCSTILLFREE 126 + EPC__MSG_START 
  439. #define EPCFILEEMPTY 127 + EPC__MSG_START
  440. #define EPCFREEERR 128 + EPC__MSG_START
  441. #define EPCPRONXT  129 + EPC__MSG_START
  442. #define EPCESDIA_INVARGS_ERR  130 + EPC__MSG_START
  443. #define EPCESDOD_OPENDIR_ERR 131 + EPC__MSG_START
  444. #define EPCESDFA_FINFOALLOC_ERR 132 + EPC__MSG_START
  445. #define EPCESDRD_READDIR_ERR 133 + EPC__MSG_START
  446. #define EPCESDLA_LISTALLOC_ERR 134 + EPC__MSG_START
  447. #define EPCESDDA_FDFALLOC_ERR 135 + EPC__MSG_START
  448. #define EPCESDNM_NOMATCH_ERR 136 + EPC__MSG_START
  449. #define EPCREPUSAGE 137 + EPC__MSG_START
  450. #define EPCPRODELERR 138 + EPC__MSG_START
  451. #define EPCCOLDELERR 139 + EPC__MSG_START
  452. #define EPCN_INV_CCX 140 + EPC__MSG_START
  453. #define EPCN_INV_SCX 141 + EPC__MSG_START
  454. #define EPCFMTNOCOL 142 + EPC__MSG_START
  455. #define EPCFMTUSAGE 143 + EPC__MSG_START
  456. #define EPCFMTNONEWDATA 144 + EPC__MSG_START
  457. #define EPCESVRAAO_FDFERR 145 + EPC__MSG_START
  458. #define EPCESVRAEO_FDFERR 146 + EPC__MSG_START
  459. #define EPCESVRAAS_FDFERR 147 + EPC__MSG_START
  460. #define EPCESVRAAA_FDFERR 148 + EPC__MSG_START
  461. #define EPCESVR_ORADBERR 149 + EPC__MSG_START
  462. #define EPCFMTABORT_ERR 150 + EPC__MSG_START    /* Error during format */
  463. #define EPCFMTCANCEL_ERR 151 + EPC__MSG_START    /* Cancel during format */
  464. #define EPCFILEEXISTS  152 + EPC__MSG_START     /* File already exists */
  465. #define EPCLOADRESDLL 153 + EPC__MSG_START
  466. /* Put next server error here */
  467.  
  468. /* Put catalog errors below this line */
  469. #define EPCCATALOG_SUCCESS 0
  470. #define EPCCAT__MSG_START 300 + EPC__MSG_START
  471. #define EPCCATALOG_ERROR 1 + EPCCAT__MSG_START
  472. #define EPCCATALOG_EOF 2 + EPCCAT__MSG_START
  473. #define EPCCATALOG_NO_DB_ACCESS 3 + EPCCAT__MSG_START
  474. #define EPCCATALOG_DUP_COLL_NM 4 + EPCCAT__MSG_START
  475. #define EPCCATALOG_DUP_CDF 5 + EPCCAT__MSG_START
  476. #define EPCCATALOG_FMT_COLL_NOT_FOUND 6 + EPCCAT__MSG_START
  477. #define EPCCATALOG_NO_ID_STR 7 + EPCCAT__MSG_START
  478. #define EPCCATALOG_NO_DB_STR 8 + EPCCAT__MSG_START
  479. #define EPCCATALOG_ORA_NOT_AVAIL_STR 9 + EPCCAT__MSG_START
  480. #define EPCCATALOG_NO_COLL_SUM_STR 10 + EPCCAT__MSG_START
  481. #define EPCCATALOG_LOGON_DENIED 11 + EPCCAT__MSG_START
  482. #define EPCCATALOG_NO_FMT_FOUND 12 + EPCCAT__MSG_START
  483. #define EPCCATALOG_COLL_NOT_FOUND 13 + EPCCAT__MSG_START
  484. #define EPCCATALOG_INCONSISTENT 14 + EPCCAT__MSG_START
  485. #define EPCCATALOG_SUMMARY_NOT_FOUND 15 + EPCCAT__MSG_START
  486. #define EPCCATALOG_NO_EVENT_DEL 16 + EPCCAT__MSG_START
  487.  
  488.  
  489. /* CORE datatype definitions for non-CORE users  KLC 10/03/95 */
  490. /* glavash 04/18/96 change test of S_ORACLE to SX_ORACLE */
  491.  
  492. /* DO NOT INCLUDE S.H or any other NON-PUBLIC .h file */
  493.  
  494. #ifndef SX_ORACLE
  495. #if defined(A_OSF)
  496.  
  497. #ifndef lint
  498. typedef unsigned int  ub4;
  499. typedef   signed int  sb4;
  500. #else
  501. #define ub4 unsigned int
  502. #define sb4 signed int
  503. #endif
  504.  
  505. #else 
  506.  
  507.  
  508. #ifndef lint
  509. typedef unsigned long  ub4;
  510. typedef   signed long  sb4;
  511. #else
  512. #define ub4 unsigned long
  513. #define sb4 signed long
  514. #endif
  515.  
  516. #ifdef lint
  517. # define dvoid void
  518. #else
  519.  
  520. # ifdef UTS2
  521. #  define dvoid char
  522. # else
  523. # define dvoid void
  524. # endif
  525.  
  526. #endif
  527. #endif
  528.  
  529. typedef unsigned char text;
  530.  
  531. #endif
  532.  
  533. /* routine prototypes */
  534. #ifdef __cplusplus
  535. extern "C"
  536. {
  537. sb4 epc_init(
  538.     sb4 api_version,
  539.     sb4 vendor,
  540.     sb4 facility,
  541.     text* version,
  542.     text* registration,
  543.     sb4* predefined_eventflgs,
  544.     sb4** returned_evenflgs,
  545.     sb4 max_event,
  546.     sb4 eventflg_option,
  547.     ub4 offset,
  548.     sb4 shmem_id,
  549.     text* filename,
  550.     dvoid (*cb_rout)() );
  551.  
  552. sb4 epc_start_event( 
  553.     sb4 api_version,
  554.     sb4 vendor,
  555.     sb4 facility,
  556.     sb4 event_id,
  557.     sb4 *handle,
  558.     sb4 context,
  559.     text *event_rec,
  560.     sb4 event_rec_size,
  561.     sb4 option,
  562.     sb4 *cf_items,
  563.     sb4 *eventflags );
  564.  
  565. sb4 epc_end_event(
  566.     sb4 api_version,
  567.     sb4 vendor,
  568.     sb4 facility,
  569.     sb4 event_id,
  570.     sb4 *handle,
  571.     sb4 context,
  572.     text *event_rec,
  573.     sb4 event_rec_size,
  574.     sb4 option,
  575.     sb4 *cf_items,
  576.     sb4 *eventflags );
  577.  
  578. sb4 epc_event(
  579.     sb4 api_version,
  580.     sb4 vendor,
  581.     sb4 facility,
  582.     sb4 event_id,
  583.     sb4 context,
  584.     text *event_rec,
  585.     sb4 event_rec_size,
  586.     sb4 option,
  587.     sb4 *cf_items,
  588.     sb4 *eventflags );
  589.  
  590. sb4 epc_get_cf_items(
  591.     sb4 api_version,
  592.     sb4* cf_item_ptr,
  593.     sb4 context,
  594.     sb4** ret_items_ptr );
  595.  
  596. sb4 epc_set_cf_items(
  597.     sb4 api_version,
  598.     sb4* cf_item_ptr,
  599.     sb4 context );
  600.  
  601. sb4 epc_cf_value(
  602.     sb4 api_version,
  603.     sb4 item_number,
  604.     sb4  item_value,
  605.     sb4 context,
  606.     sb4  **cf_item_ptr );
  607.  
  608. sb4 epc_context( 
  609.     sb4 api_version,
  610.     sb4 *context);
  611.  
  612. sb4 epc_delete_context(
  613.     sb4 api_version,
  614.     sb4 *context );
  615.  
  616. sb4 epc_cancel(
  617.     sb4 api_version,
  618.     sb4 vendor,                           
  619.     sb4 facility,                          
  620.     text *version,                       
  621.     text* collection,
  622.     sb4* eventflags );
  623.  
  624. sb4 epc_collect(
  625.     sb4 api_version,
  626.     sb4 vendor,
  627.     sb4 facility,
  628.     text *version,
  629.     sb4 *eventflgs,
  630.     text *data_file_ptr,
  631.     text *fdf_file_ptr,
  632.     sb4 *eventflags,
  633.     ub4 max_col_size );
  634.  
  635. sb4 epc_bind(
  636.     sb4 api_version,
  637.     sb4 vendor,         
  638.     sb4 facility,       
  639.     text *version,      
  640.     text *data_file );
  641.  
  642. sb4 epc_flush( 
  643.     sb4 api_version );
  644.  
  645. sb4 epc_add_reg_id(
  646.     sb4 api_version,
  647.     sb4 vendor,
  648.     sb4 facility,
  649.     text *version,
  650.     text *registration_id,
  651.     ub4  cf_item_number  );
  652.  
  653. sb4 epc_remove_reg_id(
  654.     sb4 api_version,
  655.     sb4 vendor,
  656.     sb4 facility,
  657.     text *version,
  658.     text *registration_id,
  659.     ub4 cf_item_number  );   
  660.  
  661. sb4 
  662. epc_drop_fac( 
  663.     sb4 vendor,
  664.     sb4 facility,
  665.     text *version  );
  666.  
  667. }
  668. #else
  669. sb4 epc_init(/*_
  670.     sb4 api_version,
  671.     sb4 vendor,
  672.     sb4 facility,
  673.     text* version,
  674.     text* registration,
  675.     sb4* predefined_eventflgs,
  676.     sb4** returned_evenflgs,
  677.     sb4 max_event,
  678.     sb4 eventflg_option,
  679.     ub4 offset,
  680.     sb4 shmem_id,
  681.     text* filename,
  682.     dvoid (*cb_rout)() _*/);
  683.  
  684. sb4 epc_start_event(/*_ 
  685.     sb4 api_version,
  686.     sb4 vendor,
  687.     sb4 facility,
  688.     sb4 event_id,
  689.     sb4 *handle,
  690.     sb4 context,
  691.     text *event_rec,
  692.     sb4 event_rec_size,
  693.     sb4 option,
  694.     sb4 *cf_items,
  695.     sb4 *eventflags _*/);
  696.  
  697. sb4 epc_end_event(/*_
  698.     sb4 api_version,
  699.     sb4 vendor,
  700.     sb4 facility,
  701.     sb4 event_id,
  702.     sb4 *handle,
  703.     sb4 context,
  704.     text *event_rec,
  705.     sb4 event_rec_size,
  706.     sb4 option,
  707.     sb4 *cf_items,
  708.     sb4 *eventflags _*/);
  709.  
  710. sb4 epc_event(/*_ 
  711.     sb4 api_version,
  712.     sb4 vendor,
  713.     sb4 facility,
  714.     sb4 event_id,
  715.     sb4 context,
  716.     text *event_rec,
  717.     sb4 event_rec_size,
  718.     sb4 option,
  719.     sb4 *cf_items,
  720.     sb4 *eventflags _*/);
  721.  
  722. sb4 epc_get_cf_items(/*_
  723.     sb4 api_version,
  724.     sb4* cf_item_ptr,
  725.     sb4 context,
  726.     sb4** ret_items_ptr _*/);
  727.  
  728. sb4 epc_set_cf_items(/*_
  729.     sb4 api_version,
  730.     sb4* cf_item_ptr,
  731.     sb4 context _*/);
  732.  
  733. sb4 epc_cf_value(/*_ 
  734.     sb4 api_version,
  735.     sb4 item_number,
  736.     sb4  item_value,
  737.     sb4 context,
  738.     sb4  **cf_item_ptr _*/);
  739.  
  740. sb4 epc_context(/*_ 
  741.     sb4 api_version,
  742.     sb4 *context _*/);
  743.  
  744. sb4 epc_delete_context(/*_
  745.     sb4 api_version,
  746.     sb4 *context _*/);
  747.  
  748. sb4 epc_cancel(/*_ 
  749.     sb4 api_version,
  750.     sb4 vendor,                           
  751.     sb4 facility,                          
  752.     text *version,                       
  753.     text* collection,
  754.     sb4* eventflags _*/);
  755.  
  756. sb4 epc_collect(/*_ 
  757.     sb4 api_version,
  758.     sb4 vendor,
  759.     sb4 facility,
  760.     text *version,
  761.     sb4 *eventflgs,
  762.     text *data_file_ptr,
  763.     text *fdf_file_ptr,
  764.     sb4 *eventflags,
  765.     ub4 max_col_size _*/);
  766.  
  767. sb4 epc_bind(/*_ 
  768.     sb4 api_version,
  769.     sb4 vendor,         
  770.     sb4 facility,       
  771.     text *version,      
  772.     text *data_file _*/);
  773.  
  774. sb4 epc_flush(/*_ 
  775.     sb4 api_version _*/);
  776.  
  777. sb4 epc_add_reg_id(/*_
  778.     sb4 api_version,
  779.     sb4 vendor,
  780.     sb4 facility,
  781.     text *version,
  782.     text *registration_id,
  783.     ub4  cf_item_number _*/ );
  784.  
  785. sb4 epc_remove_reg_id(/*_
  786.     sb4 api_version,
  787.     sb4 vendor,
  788.     sb4 facility,
  789.     text *version,
  790.     text *registration_id,
  791.     ub4 cf_item_number _*/ );   
  792.  
  793. sb4 
  794. epc_drop_fac(/*_ 
  795.     sb4 vendor,
  796.     sb4 facility,
  797.     text *version _*/ );
  798.  
  799. #endif
  800.  
  801. #endif
  802.