home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / UTIL / WWIVE / FCNS.H < prev    next >
C/C++ Source or Header  |  1992-01-09  |  14KB  |  593 lines

  1. #ifndef _FCNS_H_
  2. #define _FCNS_H_
  3.  
  4. #include "vardec.h"
  5. #include "net.h"
  6.  
  7.  
  8. /* File: bbs.c */
  9.  
  10. int checkpw();
  11. void end_bbs(int lev);
  12. void sublist();
  13. void dirlist();
  14. void text_edit();
  15. void send_email();
  16. void mainmenu();
  17. void dlmainmenu();
  18. int date_changed();
  19. void print_local_file(char *ss, char *ss1);
  20. void getcaller();
  21. void gotcaller(unsigned int ms, unsigned int cs);
  22. void main(int argc, char *argv[]);
  23. void check_top();
  24.  
  25.  
  26. /* File: bbsutl.c */
  27.  
  28. void far *malloca(unsigned long nbytes);
  29. void stuff_in(char *s, char *s1, char *f1, char *f2, char *f3, char *f4, char *f5);
  30. void copy_line(char *s, char *b, long *ptr, long len);
  31. char *mmkey(int dl);
  32. void inli(char *s, char *rollover, int maxlen, int crend);
  33. int so();
  34. int cs();
  35. int lcs();
  36. void checka(int *abort, int *next);
  37. void pla(char *s, int *abort);
  38. char *ctim(double d);
  39. int sysop2();
  40. void reqchat();
  41. void yourinfo();
  42. void upload_post();
  43. int checkcomp(char *s);
  44.  
  45.  
  46. /* File: bbsutl1.c */
  47.  
  48. int ok_local();
  49. int finduser1(char *sx);
  50. void sl1(int cmd,char *s);
  51. void sysopchar(char *s);
  52. void sysoplog(char *s);
  53. void ssm(int un, int sy, char *s);
  54. void rsm(int un, userrec *u);
  55. void show_chains(int *mapp, int *map);
  56. void run_chain(int cn);
  57. void do_chains();
  58.  
  59.  
  60. /* File: com.c */
  61.  
  62. int check_comport(int pn);
  63. void savel(char *cl, char *atr, char *xl, char *cc);
  64. void restorel(char *cl, char *atr, char *xl, char *cc);
  65. void ptime();
  66. void reprint();
  67. void print_help(int n);
  68. void setbeep(int i);
  69. void far interrupt async_isr ();
  70. void outcomch(char ch);
  71. char peek1c();
  72. char get1c();
  73. int comhit();
  74. void dump();
  75. void set_baud(unsigned int rate);
  76. void initport(int port_num);
  77. void closeport();
  78. void dtr(int i);
  79. void rts(int i);
  80. int cdet();
  81. void checkhangup();
  82. void addto(char *s, int i);
  83. void makeansi(unsigned char attr, char *s, int forceit);
  84. void setfgc(int i);
  85. void setbgc(int i);
  86. void execute_ansi();
  87. void outchr(char c);
  88. void outstr(char *s);
  89. void nl();
  90. void backspace();
  91. void setc(unsigned char ch);
  92. void pausescr();
  93. void npr(char *fmt, ...);
  94. void pl(char *s);
  95. int kbhitb();
  96. int empty();
  97. void skey1(char *ch);
  98. char getchd();
  99. char getchd1();
  100. char inkey();
  101. void mpl(int i);
  102. char upcase(char ch);
  103. unsigned char getkey();
  104. void input1(char *s, int maxlen, int lc, int crend);
  105. void input(char *s, int len);
  106. void inputl(char *s, int len);
  107. int yn();
  108. int ny();
  109. void ansic(int n);
  110. char onek(char *s);
  111. void prt(int i, char *s);
  112.  
  113.  
  114. /* File: conio.c */
  115.  
  116. void my_video_int();
  117. void set_global_handle(int i);
  118. void global_char(char ch);
  119. void movecsr(int x,int y);
  120. int wherex();
  121. int wherey();
  122. void lf();
  123. void cr();
  124. void clrscrb();
  125. void bs();
  126. void out1chx(unsigned char ch);
  127. void out1ch(unsigned char ch);
  128. void outs(char *s);
  129. void pr_wait(int i1);
  130. void set_protect(int l);
  131. void savescreen(screentype *s);
  132. void restorescreen(screentype far *s);
  133. void makewindow(int x, int y, int xlen, int ylen);
  134. void editline(char *s, int len, int status, int *returncode, char *ss);
  135. void val_cur_user();
  136. void temp_cmd(char *s, int ccc);
  137. char scan_to_char(unsigned char ch);
  138. void alt_key(unsigned char ch);
  139. void skey(char ch);
  140. void tleft(int x);
  141. void topscreen();
  142. void tleft(int x);
  143. void topscreen();
  144. void two_way_chat(char *s, char *rollover, int maxlen, int crend);
  145. void chat1(char *chatline, int two_way);
  146. void set_autoval(int n);
  147.  
  148.  
  149. /* File: connect1.c */
  150.  
  151. void read_call_out_list();
  152. void write_call_out_list();
  153. void read_bbs_list();
  154. void read_bbs_list_index();
  155. net_system_list_rec *next_system(unsigned int ts);
  156. void read_contacts();
  157.  
  158.  
  159. /* File: extrn.c */
  160.  
  161. unsigned char getkeyext();
  162. void cd_to(char *s);
  163. void get_dir(char *s, int be);
  164. void initporte(int port_num);
  165. int do_it(char *cl);
  166. int do_remote(char *s, int ccc);
  167. void checka1();
  168. void checka2();
  169. void run_external(char *s);
  170. int run_external1(char *s);
  171. void outdosstr(char *s);
  172. int do_external(char *s, int enab);
  173. int full_external(char *s, int ctc, int ccc);
  174. void alf(int f, char *s);
  175. char *create_chain_file(char *fn);
  176.  
  177.  
  178. /* File: modem.c */
  179.  
  180. void pr1(unsigned char *s);
  181. void get_modem_line(char *s, double d, int allowa);
  182. void do_result(result_info *ri);
  183. void process_full_result(char *s);
  184. int mode_switch(double d, int allowa);
  185. void holdphone(int d);
  186. void imodem(int x);
  187. void answer_phone();
  188.  
  189.  
  190. /* File: msgbase.c */
  191.  
  192. void describe_area_code(int areacode, char *description);
  193. void setorigin(int sysnum, int usernum);
  194. int okfsed();
  195. void remove_link(messagerec *m1, char *aux);
  196. int open_file(char *fn);
  197. void savefile(char *b, long l1, messagerec *m1, char *aux);
  198. char *readfile(messagerec *m1, char *aux, long *l);
  199. void change_storage(messagerec *oldm, char *olda, messagerec *newm, char *newa);
  200. void load_workspace(char *fnx, int no_edit);
  201. void osan(char *s, int *abort, int *next);
  202. void addline(char *b, char *s, long *ll);
  203. void stuff(char *s, char *old, char *new);
  204. void inmsg(messagerec *m1, char *title, int *anony, int needtitle, char *aux, int fsed);
  205. int forwardm(unsigned short *u, unsigned short *s);
  206. void sendout_email(char *title, messagerec *msg, int anony, unsigned un, unsigned sy, int an);
  207. void email(unsigned short un, unsigned short sy, int forceit, int anony);
  208. void imail(unsigned short u, unsigned short s);
  209. void iscan(int b);
  210. void iscan_hash(int b);
  211. void savebase();
  212. void plan(char *s, int *abort, int *next);
  213. void read_message1(messagerec *m1, char an, int readit, int *next, char *fn);
  214. int printfile(char *fn);
  215. void read_message(int n, int *next, int *val);
  216. void lineadd(messagerec *m1, char *sx, char *aux);
  217. void delete(int mn);
  218.  
  219.  
  220. /* File: msgbase1.c */
  221.  
  222. void send_net_post(postrec *p, unsigned int type, char *extra);
  223. void post();
  224. void extract_out(char *b, long len, char *title);
  225. void grab_user_name(messagerec *m, char *fn);
  226. void scan(int msgnum, int optype, int *nextsub);
  227. void qscan(int bn, int *ns);
  228. void nscan(int ss);
  229. void scan2();
  230. void printmenu(int i);
  231. void delmail(int f, int loc);
  232. void readmail();
  233. void remove_post();
  234. int external_edit(char *fn1, char *direc, int ednum, int numlines);
  235.  
  236.  
  237. /* File: netsup.c */
  238.  
  239. void checkup(struct ftime *f1, struct ftime *f2, int *tf);
  240. int check_bbsdata();
  241. int checkup2(struct ftime *f, char *x);
  242. int check_bbsdata();
  243. void cleanup_net();
  244. unsigned int max_speed(int s1, int s2);
  245. void do_callout(int sn);
  246. int ok_to_call(int i);
  247. void fixup_long(long *f, long l);
  248. void attempt_callout();
  249. void force_callout();
  250. void print_pending_list();
  251.  
  252.  
  253. /* File: shrink.c */
  254.  
  255. int restore_data(char *s);
  256. void save_state(char *s, int state,int ctc);
  257. void do_it_1(char *cl);
  258. void shrink_out(char *command, int state, int intercept,int ctc,int ccc);
  259.  
  260.  
  261. /* File: sr.c */
  262.  
  263. char *stripfn(char *fn);
  264. void stripfn1(char *fn);
  265. void calc_CRC(unsigned char b);
  266. char gettimeout(double d, int *abort);
  267. int extern_prot(int pn, char *fn1, int sending);
  268. int ok_prot(int pn, xfertype xt);
  269. char *prot_name(int pn);
  270. int get_protocol(xfertype xt);
  271. void ascii_send(char *fn, int *sent, double *percent);
  272. void send_file(char *fn, int *sent, int *abort, char ft, char *sfn, int dn, long fs);
  273. void receive_file(char *fn, int *received, char *ft, char *sfn, int dn);
  274. char end_batch1();
  275. void endbatch();
  276.  
  277.  
  278. /* File: utility.c */
  279.  
  280. void reset_act_sl();
  281. void remove_from_temp(char *fn, char *dir, int po);
  282. void check_event();
  283. void run_event();
  284. double freek(int dr);
  285. unsigned char years_old(unsigned char m, unsigned char d, unsigned char y);
  286. void itimer();
  287. double timer();
  288. long timer1();
  289. int sysop1();
  290. int okansi();
  291. void frequent_init();
  292. void read_in_file(char *fn, messagerec *m, int maxary);
  293. void far *mallocx(unsigned long l);
  294. void fix_user_rec(userrec *u);
  295. void close_user();
  296. void open_user();
  297. int number_userrecs();
  298. void read_user(unsigned int un, userrec *u);
  299. void write_user(unsigned int un, userrec *u);
  300. void save_status();
  301. double ratio();
  302. double post_ratio();
  303. char *nam(userrec *u1, unsigned int un);
  304. char *nam1(userrec *u1, unsigned int un, unsigned int sy);
  305. double nsl();
  306. char *date();
  307. char *times();
  308. unsigned int finduser(char *s);
  309. void changedsl();
  310. void isr(int un, char *name);
  311. void dsr(char *name);
  312. void wait(double d);
  313. void wait1(long l);
  314. double freek1(char *s);
  315. int exist(char *s);
  316. void add_ass(int i, char *ss);
  317.  
  318.  
  319. /* File: xfer.c */
  320.  
  321. int check_batch_queue(char *fn);
  322. int check_ul_event(int dn, uploadsrec *u);
  323. int okfn(char *s);
  324. char *make_abs_cmd(char *out);
  325. void get_arc_cmd(char *out, char *arcfn, int cmd, char *ofn);
  326. int list_arc_out(char *fn, char *dir);
  327. int ratio_ok();
  328. int dcs();
  329. void dliscan1(int dn);
  330. void dliscan_hash(int dn);
  331. void dliscan();
  332. void closedl();
  333. void add_extended_description(char *fn, char *desc);
  334. void delete_extended_description(char *fn);
  335. char *read_extended_description(char *fn);
  336. void print_extended(char *fn, int *abort, unsigned char numlist, int indent);
  337. void modify_extended_description(char **sss);
  338. void align(char *s);
  339. int compare(char *s1, char *s2);
  340. void printinfo(uploadsrec *u, int *abort);
  341. void printtitle(int *abort);
  342. void file_mask(char *s);
  343. void listfiles();
  344. void nscandir(int d, int *abort,int title);
  345. void nscanall();
  346. void searchall();
  347. int recno(char *s);
  348. int nrecno(char *s,int i1);
  349. int printfileinfo(uploadsrec *u, int dn);
  350. void upload(int dn);
  351. int try_to_download(char *s, int dn,int title);
  352. void download();
  353. void setldate();
  354. void finddescription();
  355. void arc_l();
  356. void yourinfodl();
  357. void l_config_nscan();
  358. void config_nscan();
  359. void xfer_defaults();
  360. void removefile();
  361.  
  362.  
  363. /* File: batch.c */
  364.  
  365. void listbatch();
  366. void delbatch(int i);
  367. void downloaded(char *fn);
  368. void didnt_upload(int ind);
  369. void uploaded(char *fn);
  370. void ymbatchdl(int had);
  371. void handle_dszline(char *l);
  372. double ratio1(long a);
  373. void make_ul_batch_list(char *listfn);
  374. void make_dl_batch_list(char *listfn);
  375. void run_cmd(char *cmdln, char *downlist, char *uplist, char *dl, int had);
  376. void process_dszlog();
  377. void dszbatchdl(int had, char *cmdln, char *desc);
  378. void dszbatchul(int had, char *cmdln, char *desc);
  379. void bibatch(int had, int pn);
  380. void batchdl();
  381.  
  382.  
  383. /* File: chnedit.c */
  384.  
  385. void chaindata(int n, char *s);
  386. void showchains();
  387. void modify_chain(int n);
  388. void insert_chain(int n);
  389. void delete_chain(int n);
  390. void chainedit();
  391.  
  392.  
  393. /* File: defaults.c */
  394.  
  395. void select_editor();
  396. void print_cur_stat();
  397. char *cn(char c);
  398. char *describe(char col);
  399. void color_list();
  400. void change_colors();
  401. void l_config_qscan();
  402. void config_qscan();
  403. void list_macro(unsigned char *s);
  404. void make_macros();
  405. void input_pw1();
  406. void modify_mailbox();
  407. void optional_lines();
  408. void enter_regnum();
  409. void defaults();
  410.  
  411.  
  412. /* File: diredit.c */
  413.  
  414. void dirdata(int n, char *s);
  415. void showdirs();
  416. void modify_dir(int n);
  417. void insert_dir(int n);
  418. void delete_dir(int n);
  419. void dlboardedit();
  420.  
  421.  
  422. /* File: gfiles.c */
  423.  
  424. char *get_file(char *fn, long *len);
  425. gfilerec *read_sec(int sn, int *nf);
  426. void list_sec(int *map, int nmap);
  427. void list_gfiles(gfilerec *g, int nf);
  428. void gfile_sec(int sn);
  429. void gfiles();
  430.  
  431.  
  432. /* File: gfledit.c */
  433.  
  434. void gfiledata(int n, char *s);
  435. void showsec();
  436. int exist_dir(char *s);
  437. void modify_sec(int n);
  438. void insert_sec(int n);
  439. void delete_sec(int n);
  440. void gfileedit();
  441. int fill_sec(int sn);
  442.  
  443.  
  444. /* File: lilo.c */
  445.  
  446. int check_ansi();
  447. void getuser();
  448. void logon();
  449. void logoff();
  450.  
  451.  
  452. /* File: misccmd.c */
  453.  
  454. void read_automessage();
  455. void write_automessage1();
  456. void write_automessage();
  457. void bbslist();
  458. void kill_old_email();
  459. void list_users();
  460. void print_quest(int f, int mapp, int map[21]);
  461. int print_question(int f, int i, int ii);
  462. void vote_question(int f, int i, int ii);
  463. void vote();
  464.  
  465.  
  466. /* File: multmail.c */
  467.  
  468. void multimail(int *un, int numu);
  469. int oneuser();
  470. void add_list(int *un, int *numu, int maxu, int allowdup);
  471. void slash_e();
  472.  
  473.  
  474. /* File: newuser.c */
  475.  
  476. int check_name(char *nn);
  477. void input_name();
  478. void input_realname();
  479. void input_callsign();
  480. void input_phone();
  481. void input_sex();
  482. void input_age(userrec *u);
  483. void input_comptype();
  484. void input_screensize();
  485. void input_pw();
  486. void input_ansistat();
  487. void newuser();
  488.  
  489.  
  490. /* File: srrcv.c */
  491.  
  492. char modemkey(int *tout);
  493. int receive_block(char *b, unsigned char *bln, int ucrc);
  494. void xymodem_receive(char *fn, char *ft, int *received, int ucrc);
  495.  
  496.  
  497. /* File: srsend.c */
  498.  
  499. void send_block(char *b, int type, int ucrc, char bn);
  500. char send_b(int f, long pos, int type, char bn, int *ucrc, char *fn, int *terr, int *abort);
  501. int okstart(int *ucrc, int *abort);
  502. void xymodem_send(char *fn, int *sent, double *percent, char ft, int ucrc, int ym, int ymb);
  503.  
  504.  
  505. /* File: subedit.c */
  506.  
  507. void boarddata(int n, char *s);
  508. void showsubs();
  509. void modify_sub(int n);
  510. void insert_sub(int n);
  511. void delete_sub(int n);
  512. void boardedit();
  513.  
  514.  
  515. /* File: sysopf.c */
  516.  
  517. void isr1(int un, char *name);
  518. void reset_files();
  519. void get_status();
  520. void prstatus();
  521. void valuser(int un);
  522. void print_net_listing(unsigned int ss);
  523. void read_new_stuff();
  524. void mailr();
  525. void chuser();
  526. void zlog();
  527. void beginday();
  528.  
  529.  
  530. /* File: tedit.c */
  531.  
  532. struct line *read_file(char *fn, int *numlines);
  533. void kill_file(struct line *topline);
  534. void save_file(char *fn, struct line *topline);
  535. int printl(int n, struct line *l);
  536. void tedit(char *fn);
  537.  
  538.  
  539. /* File: uedit.c */
  540.  
  541. void deluser(int un);
  542. void print_data(int un, userrec *u, int lng);
  543. int matchuser(int un);
  544. void changeopt();
  545. int matchuser(int un);
  546. int match_user(userrec *u);
  547. void changeopt();
  548. void uedit(int usern, int other);
  549.  
  550.  
  551. /* File: voteedit.c */
  552.  
  553. void print_quests(int f);
  554. void set_question(int f, int ii);
  555. void ivotes();
  556. void voteprint();
  557.  
  558.  
  559. /* File: xferovl.c */
  560.  
  561. void move_file();
  562. int comparedl(uploadsrec *x, uploadsrec *y, int type);
  563. void quicksort(int l,int r,int type);
  564. void sortdir(int dn, int type);
  565. void sort_all(int type);
  566. void rename_file();
  567. int upload_file(char *fn, int dn, char *desc);
  568. int maybe_upload(char *fn, int dn, char *desc);
  569. void upload_files(char *fn, int dn, int type);
  570. int uploadall(int dn);
  571.  
  572.  
  573. /* File: xfertmp.c */
  574.  
  575. long bad_filename(char *fn);
  576. long check_for_files_zip(char *fn);
  577. int check_for_files(char *fn);
  578. void download_temp_arc();
  579. void add_temp_arc();
  580. void del_temp();
  581. void list_temp_dir();
  582. void temp_extract();
  583. void list_temp_text();
  584. void list_temp_arc();
  585. void temporary_stuff();
  586.  
  587.  
  588. /* File: xinit.c */
  589.  
  590. void init(int x);
  591.  
  592. #endif
  593.