home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / CKPM5X_S.ZIP / CKOFNS.H < prev    next >
C/C++ Source or Header  |  1990-05-03  |  12KB  |  309 lines

  1. /******************************************************************************
  2. Header name: ckofns.h     Rev: 01  Programmer: C.P.Armstrong
  3.  
  4. Header title:   OS/2 C-Kermit function prototypes
  5.  
  6. Description:    Function prototypes for use with MSC 5.1 compiler to avoid all
  7.                 the annoying warnings given when no prototype is provided.
  8.  
  9. Modification History:
  10.     19-Nov-89   C.P.Armstrong   created
  11.     02-May-90   C.P.Armstrong   putchar undefing only done if MSC6.0s _MT is
  12.                                 not defined, as the MT libs use a function
  13.                                 instead of a macro.
  14. ******************************************************************************/
  15. #ifdef putchar
  16. #undef putchar
  17. #endif
  18.  
  19. #ifdef _MT
  20. int _putchar(int);
  21. #define putchar _putchar
  22. #endif
  23.  
  24. typedef int (*PFUN)();  /* A prototype pointer to a function defintion */
  25.  
  26. /* ckuus2.c */ int shopar();
  27. /* ckuus2.c */ int fstats();
  28. /* ckuus2.c */ int tstats();  
  29. /* ckuus2.c */ int rdebu(int);
  30. /* ckuus2.c */ int sdebu(int);
  31. /* ckuus2.c */ int dostat();
  32. /* ckuus2.c */ int usage(void);
  33.  
  34. /* CKUUSR.C   */ char* bldlen(char*,char*);
  35. /* CKUUSR.C   */ int cmdini();
  36. /* CKUUSR.C   */ int cmdlin();
  37. /* CKUUSR.C   */ int doarg(char);
  38. /* CKUUSR.C   */ int docmd(int);
  39. /* CKUUSR.C   */ int  doconect();
  40. /* CKUUSR.C   */ int  doexit(int);
  41. /* CKUUSR.C   */ int  ermsg(char*);
  42. /* CKUUSR.C   */ int  fatal(char*);
  43. /* CKUUSR.C   */ int  herald();
  44. /* CKUUSR.C   */ char parser();
  45. /* CKUUSR.C   */ int setgen(char,char*,char*,char*);
  46. /* CKUUSR.C   */ int stptrap(int,int);
  47. /* CKUUSR.C   */ int transmit(char*,char);
  48. /* CKUUSR.C   */ int trap(int,int);
  49. /* CKUUSR.C   */ int trtrap();
  50. /* CKUUS3.C   */ int tlog(int,char*,char*,long);
  51. /* CKUUS3.C   */ int chkint();
  52. /* CKUUS3.C   */ int chkspd(int);
  53. /* CKUUS3.C   */ /* int debug(int,char*,char*,int); */
  54. /* CKUUS3.C   */ int doprm(int);
  55. /* CKUUS3.C   */ int dormt(int);
  56. /* CKUUS3.C   */ int intmsg(long);
  57. /* CKUUS3.C   */ int rfilop(char*,char);
  58. /* CKUUS3.C   */ int screen(int,char,long,char*);
  59. /* CKUUS3.C   */ int setcc(int*,int,int);
  60. /* CKUUS3.C   */ int setnum(int*,int,int,int);
  61. /* CKUUS3.C   */ int seton(int*);
  62. /* CKUCMD.C   */ int setatm(char*);
  63. /* CKUCMD.C   */ int addbuf(char*) ;
  64. /* CKUCMD.C   */ int addhlp(char*) ;
  65. /* CKUCMD.C   */ int chkwld(char*);
  66. /* CKUCMD.C   */ int clrhlp();
  67. /* CKUCMD.C   */ int cmcfm();
  68. /* CKUCMD.C   */ int cmdir(char*,char*,char**);
  69. /* CKUCMD.C   */ int cmfld(char*,char*,char**);
  70. /* CKUCMD.C   */ int cmifi(char*,char*,char**,int*);
  71. /* CKUCMD.C   */ int cmini(int);
  72. /* CKUCMD.C   */ int cmkey(struct keytab*,int,char*,char*);
  73. /* CKUCMD.C   */ int cmnum(char*,char*,int,int*);
  74. /* CKUCMD.C   */ int cmofi(char*,char*,char**);
  75. /* CKUCMD.C   */ int cmres();
  76. /* CKUCMD.C   */ int cmsavp(char*,int);
  77. /* CKUCMD.C   */ int cmsetp(char*);
  78. /* CKUCMD.C   */ int cmtxt(char*,char*,char**);
  79. /* CKUCMD.C   */ int dmphlp();
  80. /* CKUCMD.C   */ int gtword();
  81. /* CKUCMD.C   */ int lookup(struct keytab*,char*,int,int*);
  82. /* CKUCMD.C   */ int lower(char*);
  83. /* CKUCMD.C   */ int prompt();
  84. /* CKUCMD.C   */ int rdigits(char*);
  85. /* CKUCMD.C   */ int stripq(char*);
  86. /* CKUCMD.C   */ int test(int,int);
  87. /* CKCFN2.C   */ int srinit();
  88. /* CKCFN2.C   */ int ack() ;
  89. /* CKCFN2.C   */ int ack1(char*) ;
  90. /* CKCFN2.C   */ int chk1(char*);
  91. /* CKCFN2.C   */ unsigned int chk2(char*);
  92. /* CKCFN2.C   */ unsigned int chk3(char*);
  93. /* CKCFN2.C   */ char dopar(char);
  94. /* CKCFN2.C   */ int errpkt(char*);
  95. /* CKCFN2.C   */ int gattr(char*,struct zattr*);
  96. /* CKCFN2.C   */ int initattr(struct zattr*);
  97. /* CKCFN2.C   */ int input();
  98. /* CKCFN2.C   */ int nack();
  99. /* CKCFN2.C   */ int nxtpkt(int*);
  100. /* CKCFN2.C   */ int rcalcpsz();
  101. /* CKCFN2.C   */ int resend();
  102. /* CKCFN2.C   */ int rpack();
  103. /* CKCFN2.C   */ int rsattr(char*);
  104. /* CKCFN2.C   */ int sattr(int);
  105. /* CKCFN2.C   */ int scmd(char,char*);
  106. /* CKCFN2.C   */ int sigint(int,int);
  107. /* CKCFN2.C   */ int spack(char,int,int,char*);
  108. /* CKUSCR.C   */ int scrtime();
  109. /* CKUSCR.C   */ int flushi();
  110. /* CKUSCR.C   */ int login(char *);
  111. /* CKUSCR.C   */ int outSeq();
  112. /* CKUDIA.C   */ int didWeGet(char*,char*);
  113. /* CKUDIA.C   */ int ckdial(char*);
  114. /* CKUDIA.C   */ int dialint();
  115. /* CKUDIA.C   */ int dialtime();
  116. /* CKUDIA.C   */ int reset ();
  117. /* CKUDIA.C   */ int ttolSlow(char*,int);
  118. /* CKUDIA.C   */ int waitFor(char*);
  119. /* CKUDIA.C   */ char * xcpy(char*,char*,unsigned);
  120. /* CKCFNS.C   */ int adebu(char*,struct zattr*) ;
  121. /* CKCFNS.C   */ int canned(char*);
  122. /* CKCFNS.C   */ int clsif();
  123. /* CKCFNS.C   */ int clsof(int);
  124. /* CKCFNS.C   */ int cwd(char*);
  125. /* CKCFNS.C   */ int decode(char*,PFUN);
  126. /* CKCFNS.C   */ int encode(char);
  127. /* CKCFNS.C   */ int encstr(char*);
  128. /* CKCFNS.C   */ int getpkt(int);
  129. /* CKCFNS.C   */ int gnfile();
  130. /* CKCFNS.C   */ int opena(char*,struct zattr*);
  131. /* CKCFNS.C   */ int openi(char *);
  132. /* CKCFNS.C   */ int openo(char *);
  133. /* CKCFNS.C   */ int opent();
  134. /* CKCFNS.C   */ int putfil(char);
  135. /* CKCFNS.C   */ int putsrv(char);
  136. /* CKCFNS.C   */ int puttrm(char);
  137. /* CKCFNS.C   */ int rcvfil(char*);
  138. /* CKCFNS.C   */ int reof();
  139. /* CKCFNS.C   */ int reot();
  140. /* CKCFNS.C   */ int resetc();
  141. /* CKCFNS.C   */ int rinit(char*);
  142. /* CKCFNS.C   */ char* rpar();
  143. /* CKCFNS.C   */ int sdahead();
  144. /* CKCFNS.C   */ int sdata();
  145. /* CKCFNS.C   */ int seof(char*);
  146. /* CKCFNS.C   */ int seot();
  147. /* CKCFNS.C   */ int sfile(int);
  148. /* CKCFNS.C   */ int sinit(void);
  149. /* CKCFNS.C   */ int sipkt(char);
  150. /* CKCFNS.C   */ int sndhlp();
  151. /* CKCFNS.C   */ int spar(char *);
  152. /* CKCFNS.C   */ int syscmd(char*,char*);
  153. /* CKCFNS.C   */ int tinit();
  154. /* CKCMAI.C   */ int ckcmai(int,char**);
  155.  
  156. /* CKCPRO.C   */ int proto();
  157. /* CKOCON.C   */ void vt_kp_send(char);
  158.                  void chars_in(unsigned char);
  159.                  void chars_out(void);
  160. /* CKOCON.C   */ char* chstr(int);
  161. /* CKOCON.C   */ void clrline_escape();
  162. /* CKOCON.C   */ void clrscreen();
  163. /* CKOCON.C   */ void clrtoeol();
  164. /* CKOCON.C   */ void clearscreen();
  165. /* CKOCON.C   */ void clrbol_escape();
  166. /* CKOCON.C   */ void clrboscr_escape();
  167. /* CKOCON.C   */ void clreoscr_escape();
  168. /* CKOCON.C   */ void bleep();
  169. /* CKOCON.C   */ void checkscreenmode();
  170. /* CKOCON.C   */ void cwrite(unsigned char);
  171. /* CKOCON.C   */ void newcursor();
  172. /* CKOCON.C   */ void strinsert(char*,char*);
  173.                  void screen_rollback(unsigned char *, unsigned char *);
  174. /* CKOCON.C   */ void toplinetocyclicbuffer();
  175. /* CKOCON.C   */ void vt100(unsigned char);
  176. /* CKOCON.C   */ void vt100read(unsigned char,unsigned char);
  177. /* CKOCON.C   */ void vtescape();
  178. /* CKOCON.C   */ void wrtch(unsigned char);
  179. /* CKOCON.C   */ void setmargins(char,char);
  180. /* CKOCON.C   */ void sendchar(unsigned char );
  181. /* CKOCON.C   */ void sendcharduplex(unsigned char );
  182. /* CKOCON.C   */ void sendstr(char*);
  183. /* CKOCON.C   */ void sendstrduplex(unsigned char *);
  184. /* CKOCON.C   */ void scrninit();
  185. /* CKOCON.C   */ void scroll(int,unsigned char,unsigned char);
  186. /* CKOCON.C   */ void savescreen();
  187. /* CKOCON.C   */ void scankey(unsigned char*,unsigned char*);
  188. /* CKOCON.C   */ void restorescreen();  /* Takes an ascreen* */
  189. /* CKOCON.C   */ void reversescreen();
  190. /* CKOCON.C   */ void rdserwrtscr(VOID);
  191. /* CKOCON.C   */ void readmchar_escape();
  192. /* CKOCON.C   */ int pnumber(unsigned char*);
  193. /* CKOCON.C   */ void movetoscreen(char*,char,char,int);
  194. /* CKOCON.C   */ void ipadl25();
  195. /* CKOCON.C   */ void killcursor();
  196. /* CKOCON.C   */ void lgotoxy(int,int);
  197. /* CKOCON.C   */ void line25();
  198. /* CKOCON.C   */ int helpconnect();
  199. /* CKOCON.C   */ void helpend();
  200. /* CKOCON.C   */ void helpline(char*);
  201. /* CKOCON.C   */ void helpstart(int, int);
  202. /* CKOCON.C   */ void doprinton(int);
  203. /* CKOCON.C   */ void doesc(char);
  204. /* CKOCON.C   */ void decdwl_escape(int);
  205. /* CKOCON.C   */ int conect();
  206. /* CKOCON.C   */ void cursordown();
  207. /* CKOCON.C   */ void cursorleft();
  208. /* CKOCON.C   */ void cursorright();
  209. /* CKOCON.C   */ void cursorup();
  210. /* CKOCON.C   */ int write_buf(char*, int);
  211. /* CKOTIO.C   */ int conxo(int,char*);
  212. /* CKOTIO.C   */ void alarm(unsigned);
  213. /* CKOTIO.C   */ int alarmack();
  214. /* CKOTIO.C   */ int alarminit();
  215. /* CKOTIO.C   */ void alarmthread(void);
  216. /* CKOTIO.C   */ int syscleanup();
  217. /* CKOTIO.C   */ int sysinit();
  218. /* CKOTIO.C   */ int ttchk();
  219. /* CKOTIO.C   */ int ttclos();
  220. /* CKOTIO.C   */ int ttflui();
  221. /* CKOTIO.C   */ int tthang();
  222. /* CKOTIO.C   */ int ttinc(int);
  223. /* CKOTIO.C   */ int ttinl(char*,int,int,char);
  224. /* CKOTIO.C   */ int ttiscom(HFILE);
  225. /* CKOTIO.C   */ int ttoc(char);
  226. /* CKOTIO.C   */ int ttoci(char);
  227. /* CKOTIO.C   */ int ttol(char*,int);
  228. /* CKOTIO.C   */ int ttopen(char*,int*,int);
  229. /* CKOTIO.C   */ int ttpkt(int,int,int);
  230. /* CKOTIO.C   */ int ttres();
  231. /* CKOTIO.C   */ int ttsettings(int,int);
  232. /* CKOTIO.C   */ int ttsndb();
  233. /* CKOTIO.C   */ int ttspeed();
  234. /* CKOTIO.C   */ int ttsspd(int);
  235. /* CKOTIO.C   */ int ttvt(int,int);
  236. /* CKOTIO.C   */ int ttxin(int,char*);
  237. /* CKOTIO.C   */ int ztime(char**);
  238. /* CKOTIO.C   */ int sleep(unsigned int);
  239. /* CKOTIO.C   */ int rtimer();
  240. /* CKOTIO.C   */ int static rdch();
  241. /* CKOTIO.C   */ int os2setflow(int);
  242. /* CKOTIO.C   */ int msleep(int);
  243. /* CKOTIO.C   */ int gtimer();
  244. /* CKOTIO.C   */ int concb(char);
  245. /* CKOTIO.C   */ int conchk();
  246. /* CKOTIO.C   */ int concooked();
  247. /* CKOTIO.C   */ int congm();
  248. /* CKOTIO.C   */ int coninc(int);
  249. /* CKOTIO.C   */ int conint(PFUN);
  250. /* CKOTIO.C   */ int connoi();
  251. /* CKOTIO.C   */ int conoc(char);
  252. /* CKOTIO.C   */ int conol(char*);
  253. /* CKOTIO.C   */ int conola(char**);
  254. /* CKOTIO.C   */ int conoll(char*);
  255. /* CKOTIO.C   */ int conraw();
  256. /* CKOTIO.C   */ int conres();
  257. /* CKOFIO.C   */ int chkfn(int);
  258. /* CKOFIO.C   */ int zchdir(char *);
  259. /* CKOFIO.C   */ int zchdsk(char);
  260. /* CKOFIO.C   */ int zchin(int,char*);
  261. /* CKOFIO.C   */ long zchki(char*);
  262. /* CKOFIO.C   */ int zchko(char*);
  263. /* CKOFIO.C   */ int zchout(int,char);
  264. /* CKOFIO.C   */ int zclose(int);
  265. /* CKOFIO.C   */ int zclosf();
  266. /* CKOFIO.C   */ void zdelet(char*);
  267. /* CKOFIO.C   */ char * zfindfile(char *);
  268. /* CKOFIO.C   */ char* zgtdir();
  269. /* CKOFIO.C   */ int zinfill();
  270. /* CKOFIO.C   */ int zkermini();
  271. /* CKOFIO.C   */ void zkself();
  272. /* CKOFIO.C   */ void zltor(char*,char*);
  273. /* CKOFIO.C   */ int zmail(char*,char*);
  274. /* CKOFIO.C   */ void znewn(char*,char**);
  275. /* CKOFIO.C   */ int znext(char*);
  276. /* CKOFIO.C   */ int zopeni(int,char*);
  277. /* CKOFIO.C   */ int zopeno(int, char*);
  278. /* CKOFIO.C   */ int zoutdump();
  279. /* CKOFIO.C   */ int zprint(char*,char*);
  280. /* CKOFIO.C   */ void zrtol(char*,char*);
  281. /* CKOFIO.C   */ int zsattr(struct zattr *);
  282. /* CKOFIO.C   */ int zsout(int,char*);
  283. /* CKOFIO.C   */ int zsoutl(int,char*);
  284. /* CKOFIO.C   */ int zsoutx(int,char*,int);
  285. /* CKOFIO.C   */ int zxcmd(char*);
  286. /* CKOFIO.C   */ int zxpand(char*);
  287. /* CKOCON.C   */ void AVIOReadCellStr(PCH,PUSHORT, USHORT, USHORT);
  288. /* CKOCON.C   */ void AVIOWrtCellStr(PCH, USHORT, USHORT, USHORT);
  289. /* CKOCON.C   */ void AVIOWrtNCell(PBYTE, USHORT, USHORT, USHORT);
  290. /* CKOCON.C   */ void AVIOScrollRt(USHORT, USHORT, USHORT, USHORT, USHORT, PBYTE);
  291. /* CKOCON.C   */ void AVIOScrollLf(USHORT, USHORT, USHORT, USHORT, USHORT, PBYTE);
  292. /* CKOCON.C   */ void AVIOScrollUp(USHORT, USHORT, USHORT, USHORT, USHORT, PBYTE);
  293. /* CKOCON.C   */ void AVIOScrollDn(USHORT, USHORT, USHORT, USHORT, USHORT, PBYTE);
  294. /* CKOCON.C   */ void AVIOWrtCharStrAtt(PCH,USHORT,USHORT,USHORT,PBYTE);
  295. /* CKOCON.C   */ void AVIOSetCurPos(USHORT,USHORT);
  296. /* CKOCON.C   */ void AVIOGetCurPos(PUSHORT,PUSHORT);
  297. /* CKOCON.C   */ void AVIOGetCurType(PVIOCURSORINFO );
  298. /* CKOCON.C   */ void AVIOSetCurType(PVIOCURSORINFO );
  299. /* CKOCON.c   */ void AVIOwrttyc(char*,int);
  300. /* CKCPRO.C   */ int wart();
  301.  
  302. int dolog(int);
  303. int dohlp(int);
  304. int debopn(char*);
  305. int hmsg();
  306. int hmsga();
  307. int dohrmt();
  308. int dohset();
  309.