home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / OOFILE / Buildable, limited OOFILE / c-tree headers / ctfunt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-12  |  8.9 KB  |  242 lines  |  [TEXT/CWIE]

  1. /*
  2.  *    This program is the CONFIDENTIAL and PROPRIETARY property 
  3.  *    of FairCom(R) Corporation. Any unauthorized use, reproduction or
  4.  *    transfer of this computer program is strictly prohibited.
  5.  *
  6.  *      Copyright (c) 1984 - 1994 FairCom Corporation.
  7.  *    This is an unpublished work, and is subject to limited distribution and
  8.  *    restricted disclosure only. ALL RIGHTS RESERVED.
  9.  *
  10.  *            RESTRICTED RIGHTS LEGEND
  11.  *    Use, duplication, or disclosure by the Government is subject to
  12.  *    restrictions set forth in subparagraph (c)(1)(ii) of the Rights in
  13.  *     Technical Data and Computer Software clause at DFARS 252.227-7013.
  14.  *    FairCom Corporation, 4006 West Broadway, Columbia, MO 65203.
  15.  *
  16.  *    c-tree PLUS(tm)    Version 6.4
  17.  *            Release B
  18.  *            October 19, 1994
  19.  */
  20.  
  21. #ifdef PROTOTYPE
  22. #ifdef ctMIRROR
  23. extern  NINT ctmirlst(pCTFILE ctnum,NINT mirswt);
  24. #endif
  25. extern  NINT ctqchkp(pTEXT sp);
  26. extern  VOID ctqchkpstop(VOID);
  27. extern  VOID cttrnfre(VOID);
  28. extern  COUNT clnleaf(COUNT filno);
  29. extern  VOID ctinvshd(pSHADLST sl);
  30. extern  UCOUNT ctsumlog(pTRANDSC tp);
  31. extern  NINT ctsumchk(pCTFILE ctnum,VRLEN vlen,LONG logpos,pTRANDSC tp);
  32. extern  VOID cthdrword(COUNT filno,pTEXT buf,NINT len,NINT newone);
  33. extern  COUNT ctlogpidx(pCTFILE knum,COUNT memb,pUTEXT pvbyte);
  34. extern  COUNT ctlogiidx(pCTFILE dnum,COUNT keyno,COUNT idxno,pIFIL ifilptr);
  35. extern  COUNT ctloghwrd(pCTFILE knum,pTEXT oldwrd,pTEXT newwrd,COUNT offset,NINT len);
  36. extern  pTEXT ctgetshd(pVOID bufadr,pSHADLST sl,VRLEN iosize);
  37. extern  COUNT ctputshd(pSHADLST sl,pTEXT bufadr,VRLEN iosize);
  38. extern  VOID ctfreshd(pSHADLST sl);
  39. extern  VOID ctputtenv(NINT sOWNR,pTEXT envbuf,VRLEN len);
  40. extern  NINT ctmrkact(NINT cln_mode,LONG mtran,pTREBUF buffer);
  41. extern  NINT ctintlog(pCTFILE ctnum);
  42. extern  LONG ctprvlog(pCTFILE ctnum);
  43. extern  NINT ctstrtran(pCTFILE ctnum);
  44. extern  VOID ctendtran(COUNT serr);
  45. extern  pTEXT ctlname(pTEXT lognam,LONG ln,NINT filetype);
  46. #ifndef comparu
  47. extern  VRLEN comparu(pTEXT np,pTEXT op,VRLEN remlen);
  48. #endif
  49. extern  COUNT ctlgtorc(LONG tfil,NINT must_exist);
  50. extern  VOID ctstund(NINT mode,LONG tranno,LONG lp,LONG ep);
  51. extern  NINT ctputimg(COUNT testtyp,NINT typimage,COUNT tranfil,LONG tranpos,pTEXT bp,VRLEN vlen);
  52. extern  VRLEN ctdiff(pTEXT np,VRLEN nl,pTEXT op,VRLEN ol,ppTEXT dp,pVRLEN dspc);
  53. extern  VOID cttranbf(pTREBUF buf,LONG old,LONG newone);
  54. extern  COUNT ctacttrn(NINT ownr,LONG tran_no,pNINT povrflag);
  55. extern  COUNT cttrnalc(COUNT nusers,COUNT nfiles);
  56. extern  VRLEN cttrnlen(pTRANDSC tp);
  57. extern  COUNT prtlog(pLONG plogpos,COUNT mode,pLONG plogser,COUNT tt,LONG fpos,LONG tn);
  58. extern  COUNT srchshd(pVOID phs,COUNT ownr,LONG recbyt,COUNT filno,VRLEN iosize,pVOID bufadr,ppSHADLST psl,COUNT mode,ppSHADLST lsl,pVRLEN pread);
  59. extern  NINT updtshd(COUNT ownr,LONG recbyt,COUNT filno,VRLEN iosize,pVOID bufadr,COUNT mode);
  60. extern  NINT testshd(COUNT loc);
  61. extern  NINT prtshd(COUNT own);
  62. extern  LONG ctupdlg(COUNT updmod,COUNT trnmod,LONG trnval);
  63. extern  VOID fusrclr(COUNT mode,NINT sOWNR);
  64. extern  LONG ctwrtlog(pLONG ep,pTRANDSC tp,pVOID dp);
  65. #ifdef VINES
  66. extern  NINT dbuglog(LONG pos,COUNT fil,pTEXT tp,UCOUNT class);
  67. #endif
  68. extern  COUNT ctputhdr(pCTFILE ctnum);
  69. extern  COUNT ctlogext(NINT sOWNR,LONG pntr,pCTFILE ctnum,pVOID tp,NINT len,NINT mode);
  70. extern  COUNT ctlogcmp(pCTFILE ctnum,pCTFILE mtnum,pTEXT hdrbuf);
  71. extern  COUNT ctwrtcmp(pCTFILE ctnum,pCTFILE mtnum,pTEXT hdrbuf);
  72. extern  VOID ctlgqnod(NINT ownr,pCTFILE knum,LONG node);
  73. extern  COUNT ctlogkey(COUNT mode,pCTFILE knum,pTEXT target,LONG recbyt);
  74. extern  COUNT ctlogopn(COUNT filno,pTEXT filnam,pCTFILE ctnum,NINT opnmod);
  75. extern  COUNT ctchkpnt(NINT mode,LONG cmode);
  76. extern COUNT ctlogcfil(NINT,COUNT);
  77.  
  78. #if 0
  79.  
  80. static  LONG getlogfil(pCTFILE ctnum,VRLEN vlen,pVRLEN plen,pCOUNT pflag);
  81. static  COUNT clshdr(PFAST pCTFILE ctnum);
  82. static  COUNT chkfdel(LONG tfil,LONG lpos,NINT tfil_mode,NINT rcvtst,NINT fwdflg);
  83. static  NINT ctalcshd(pSHADLST sl,VRLEN iosize);
  84. static  pCTFILE rcvsi(pCTFILE lgnum);
  85. static  VOID ctsetexc(pTREBUF buf,COUNT nkv);
  86. static  NINT rcvhdrupd(pCTFILE2 ttnum,pCTFILE ctnum,VRLEN vlen,LONG pos);
  87. static  NINT put_lgtorc(LONG tfil,COUNT lgn);
  88. static  COUNT tread(LONG logpos,pTRANDSC ptran,pCOUNT powner);
  89. static  COUNT wrtlnk(pSHADLST sl);
  90. #ifdef MULTITRD
  91. static  VOID setkeypos(COUNT keyno,LONG node,COUNT elm,pVOID kp,COUNT keylen);
  92. #endif
  93. #ifndef CTBOUND
  94. static  pTEXT getkeyptr(pCTFILE knum,pTEXT kp);
  95. #endif
  96. static  NINT hashshd(COUNT filno,UINT byt);
  97. static  NINT tlogbuf(LONG retval,pTEXT tp,VRLEN size);
  98. static  COUNT chkpnt(LONG cmode);
  99. static  NINT chksavpnt(pSHADLST sl);
  100. static  COUNT forcel(LONG tran_no,pSHADLST sl,pSHADLST fsl,pTRANDSC ptran,NINT endtype);
  101. static  COUNT forcei(pSHADLST fsl,LONG tran_no,NINT endtype);
  102. static  COUNT force(LONG tran_no,NINT endtype,pLONG plp,pLONG pep);
  103. static  VOID clrshdlst(NINT mode,LONG tran,COUNT lokmod);
  104. static  pTEXT tranent(NINT sOWNR,pVRLEN pvlen);
  105. /* ******************************* */ 
  106. static  COUNT ctrcvopn(pTEXT filnam,LONG tfil,pCTFILE ctnum,LONG tlen,LONG hp,pLONG fid,LONG logpos);
  107. static  VOID trancls(COUNT mode,COUNT filno);
  108. static  COUNT tranmgt(pTRANDSC t,pTEXT logkey,pTEXT bp,COUNT updmod,COUNT trnmod,LONG trnval,pLONG pundos,pLONG predos,pLONG pixdos,pLONG pdtdos);
  109. static  COUNT transcn(COUNT updmod,COUNT trnmod,LONG trnval,pLONG logend,
  110.                       pLONG logpos,pLONG plogpos,pLONG plognum,pLONG undos,
  111.                       pLONG redos,pLONG ixdos,pLONG dtdos,pVRLEN ploglen,
  112.                       pLONG pbegser,pLONG pendser);
  113. static  VOID adjnent(VRLEN vlen,NINT mode,pLONG bp);
  114. static  LONG getprvlog(pCTFILE ctnum);
  115. static  COUNT tranund(NINT updmod,LONG logpos,pLONG undos);
  116. static  COUNT trandat(LONG begser,LONG logpos,pLONG dtdos);
  117. static  COUNT tranidx(LONG begser,LONG logpos,pLONG ixdos);
  118. static  COUNT tranred(NINT updmod,LONG begser,LONG logpos,LONG endser,LONG logend,LONG plogpos,pLONG redos);
  119. static  LONG tranupd(COUNT updmod,COUNT trnmod,LONG trnval);
  120. static  COUNT tranrcv(LONG blogpos,LONG plogpos);
  121. /* ******************************* */
  122.  
  123. #endif  /*  if 0 (temporary)  */
  124.  
  125. extern  NINT ctNINTlog(pCTFILE ctnum);
  126. extern  NINT ctflslog(pCTFILE ctnum,COUNT trntyp,NINT sOWNR);
  127. extern  COUNT tranovr(NINT mode,COUNT lokmod);
  128. extern  NINT ctlgfile(NINT op_code,pCTFILE ctnum,LONG begtrn,VRLEN beglen,LONG logser,pLONG chkpos);
  129. extern  COUNT ctstrfil(VOID );
  130. extern  COUNT cttrnmem(pCTFILE ctnum,VRLEN vlen,pVRLEN pvspc,ppTEXT pbp,LONG logpos);
  131. extern  NINT ctlgswitch(pCTFILE ctnum,NINT op_code,LONG chgser);
  132. extern  LONG TRANBAK(COUNT trnmod,LONG trnval);
  133. extern  LONG TRANFWD(COUNT trnmod,LONG prvpos);
  134.  
  135. #else /* PROTOTYPE */
  136.  
  137. #ifdef ctMIRROR
  138. extern  NINT ctmirlst();
  139. #endif
  140. extern  NINT ctqchkp();
  141. extern  VOID ctqchkpstop();
  142. extern  VOID cttrnfre();
  143. extern  COUNT clnleaf();
  144. extern  VOID ctinvshd();
  145. static  COUNT clshdr();
  146. extern  UCOUNT ctsumlog();
  147. extern  NINT ctsumchk();
  148. extern  VOID cthdrword();
  149. extern  COUNT ctlogpidx();
  150. extern  COUNT ctlogiidx();
  151. extern  COUNT ctloghwrd();
  152. static  COUNT chkfdel();
  153. extern  pTEXT ctgetshd();
  154. extern  COUNT ctputshd();
  155. static  NINT ctalcshd();
  156. extern  VOID ctfreshd();
  157. extern  VOID ctputtenv();
  158. static  pCTFILE rcvsi();
  159. static  VOID ctsetexc();
  160. extern  NINT ctmrkact();
  161. extern  NINT ctintlog();
  162. extern  LONG ctprvlog();
  163. extern  NINT ctstrtran();
  164. extern  VOID ctendtran();
  165. static  NINT rcvhdrupd();
  166. extern  pTEXT ctlname();
  167. #ifndef comparu
  168. extern  VRLEN comparu();
  169. #endif
  170. extern  COUNT ctlgtorc();
  171. static  NINT put_lgtorc();
  172. static  COUNT tread();
  173. extern  VOID ctstund();
  174. static  COUNT wrtlnk();
  175. #ifdef MULTITRD
  176. static  VOID setkeypos();
  177. #endif
  178. #ifndef CTBOUND
  179. static  pTEXT getkeyptr();
  180. #endif
  181. static  NINT hashshd();
  182. extern  NINT ctputimg();
  183. extern  VRLEN ctdiff();
  184. extern  VOID cttranbf();
  185. extern  COUNT ctacttrn();
  186. extern  COUNT cttrnalc();
  187. static  LONG getlogfil();
  188. extern  VRLEN cttrnlen();
  189. extern  COUNT prtlog();
  190. extern  COUNT srchshd();
  191. extern  NINT updtshd();
  192. extern  NINT testshd();
  193. extern  NINT prtshd();
  194. extern  LONG ctupdlg();
  195. extern  VOID fusrclr();
  196. static  NINT tlogbuf();
  197. extern  LONG ctwrtlog();
  198. #ifdef VINES
  199. extern  NINT dbuglog();
  200. #endif
  201. extern  COUNT ctputhdr();
  202. extern  COUNT ctlogext();
  203. extern  COUNT ctlogcmp();
  204. extern  COUNT ctwrtcmp();
  205. extern  VOID ctlgqnod();
  206. extern  COUNT ctlogkey();
  207. extern  COUNT ctlogopn();
  208. static  COUNT chkpnt();
  209. extern  COUNT ctchkpnt();
  210. static  NINT chksavpnt();
  211. static  COUNT forcel();
  212. static  COUNT forcei();
  213. extern  NINT ctNINTlog();
  214. extern  NINT ctflslog();
  215. static  COUNT force();
  216. static  VOID clrshdlst();
  217. static  pTEXT tranent();
  218. extern  COUNT tranovr();
  219. /* ******************************* */ 
  220. extern  NINT ctlgfile();
  221. extern  COUNT ctstrfil();
  222. static  COUNT ctrcvopn();
  223. static  VOID trancls();
  224. static  COUNT tranmgt();
  225. extern  COUNT cttrnmem();
  226. static  COUNT transcn();
  227. static  VOID adjnent();
  228. extern  NINT ctlgswitch();
  229. static  LONG getprvlog();
  230. static  COUNT tranund();
  231. static  COUNT trandat();
  232. static  COUNT tranidx();
  233. static  COUNT tranred();
  234. static  LONG tranupd();
  235. extern  LONG TRANBAK();
  236. extern  LONG TRANFWD();
  237. static  COUNT tranrcv();
  238. extern COUNT ctlogcfil();
  239. /* ******************************* */
  240.  
  241. #endif /* PROTOTYPE */
  242.