home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / W / WWIVSOR.ZIP / FCNS.H < prev    next >
C/C++ Source or Header  |  1995-04-22  |  33KB  |  1,060 lines

  1. #ifndef _FCNS_H_
  2. #define _FCNS_H_
  3.  
  4. #include "vardec.h"
  5. #include "net.h"
  6. #include "qwk.h"
  7.  
  8.  
  9. /* File: bbs.c */
  10.  
  11. void getcaller(void);
  12. void main(int argc, char *argv[]);
  13.  
  14.  
  15. /* File: bbsutl.c */
  16.  
  17. void far *malloca(unsigned long nbytes);
  18. void stuff_in(char *s, char *s1, char *f1, char *f2, char *f3, char *f4, char *f5);
  19. void copy_line(char *s, char *b, long *ptr, long len);
  20. char *mmkey(int dl);
  21. int inli2(char *s, char *rollover, int maxlen, int crend, int wb);
  22. void inli(char *s, char *rollover, int maxlen, int crend);
  23. int so(void);
  24. int cs(void);
  25. int lcs(void);
  26. void checka(int *abort, int *next);
  27. void pla(char *s, int *abort);
  28. void plal(char *s, int limit, int *abort);
  29. char *ctim(double d);
  30. int sysop2(void);
  31. int checkcomp(char *s);
  32. int check_ansi(void);
  33. int read_in_file(char *fn, messagerec *m, int maxary);
  34. int set_language_1(int n);
  35. int set_language(int n);
  36. void cd_to(char *s);
  37. void get_dir(char *s, int be);
  38.  
  39.  
  40. /* File: bbsutl1.c */
  41.  
  42. int ok_local(void);
  43. int finduser1(unsigned char *sx);
  44. void slname(char *d, char *s);
  45. void islname(char *s);
  46. void catsl(void);
  47. void sl1(int cmd, char *s);
  48. void sysopchar(char *s);
  49. void sysoplog(char *s);
  50. void ssm(unsigned int un, unsigned int sy, char *s);
  51. void write_inst(unsigned short loc, unsigned short subloc, unsigned short flags);
  52. void parse_email_info(char *s, unsigned short *un1, unsigned short *sy1);
  53. int checkpw(void);
  54. void end_bbs(int lev);
  55. int date_changed(void);
  56. void print_local_file(char *ss, char *ss1);
  57. void hang_it_up(void);
  58. int play_sdf(unsigned char *sdfn, int abortable);
  59.  
  60.  
  61. /* File: bbsutl2.c */
  62.  
  63. void CLS(void);
  64. void CURSORUP( int x );
  65. void CURSORDOWN( int x );
  66. void CURSORRIGHT(int x);
  67. void CURSORLEFT(int x);
  68. char *justify_string(char *string, int length, int bg, int type);
  69. unsigned char *trimstr1(unsigned char *s);
  70. void outstr_color(char *s);
  71. void npr_color(char *fmt, ...);
  72. void repeat_char(unsigned char x, int amount);
  73. char *strstr_nocase(char *s1, char *s2);
  74. void statusbar(statusbarrec *sb);
  75. void strip_heart_colors(char *text);
  76. int new_control_break(void);
  77.  
  78.  
  79. /* File: com.c */
  80.  
  81. int check_comport(int pn);
  82. void savel(char *cl, char *atr, char *xl, char *cc);
  83. void restorel(char *cl, char *atr, char *xl, char *cc);
  84. void ptime(void);
  85. void reprint(void);
  86. void print_help(int n);
  87. void setbeep(int i);
  88. void far interrupt async_isr(void);
  89. void outcomch(char ch);
  90. char peek1c(void);
  91. char get1c(void);
  92. int comhit(void);
  93. void dump(void);
  94. void set_baud(unsigned int rate);
  95. void initport(int port_num);
  96. void closeport(void);
  97. void dtr(int i);
  98. void rts(int i);
  99. int cdet(void);
  100. void checkhangup(void);
  101. void addto(char *s, int i);
  102. void makeansi(unsigned char attr, char *s, int forceit);
  103. void setfgc(int i);
  104. void setbgc(int i);
  105. void execute_ansi(void);
  106. void outchr(unsigned char c);
  107. void outstr(unsigned char *s);
  108. void nl(void);
  109. void nln(int n);
  110. void backspace(void);
  111. void setc(unsigned char ch);
  112. void pausescr(void);
  113. void npr(char *fmt, ...);
  114. void pl(char *s);
  115. void pln(int n);
  116. int kbhitb(void);
  117. int empty(void);
  118. void skey1(unsigned char *ch);
  119. unsigned char getchd(void);
  120. unsigned char getchd1(void);
  121. unsigned char inkey(void);
  122. void mpl(int i);
  123. unsigned char upcase(unsigned char ch);
  124. unsigned char locase(unsigned char ch);
  125. unsigned char getkey(void);
  126. void input1(unsigned char *s, int maxlen, int lc, int crend);
  127. void input(unsigned char *s, int len);
  128. void inputl(unsigned char *s, int len);
  129. void inputp(unsigned char *s, int len);
  130. void inputf(unsigned char *s, int len);
  131. int yn(void);
  132. int ny(void);
  133. char ynq(void);
  134. void ansic(int n);
  135. void ansic_x(int n);
  136. char onek(char *s);
  137. void prt(int i, char *s);
  138. void reset_colors(void);
  139. void goxy(int x, int y);
  140. unsigned char *charstr(int len, unsigned char rc);
  141. unsigned char *stripcolors(unsigned char *instr);
  142. void trimstr(unsigned char *s);
  143. char onek1(char *s);
  144. void outstr1(unsigned char *s);
  145. void npr1(char *fmt, ...);
  146.  
  147.  
  148. /* File: conio.c */
  149.  
  150. void my_video_int(void);
  151. void set_global_handle(int i);
  152. void global_char(char ch);
  153. void set_x_only(int tf, char *fn, int ovwr);
  154. void movecsr(int x,int y);
  155. int WhereX(void);
  156. int WhereY(void);
  157. void lf(void);
  158. void cr(void);
  159. void clrscrb(void);
  160. void bs(void);
  161. void out1chx(unsigned char ch);
  162. void out1ch(unsigned char ch);
  163. void outs(unsigned char *s);
  164. void outfast(char *s);
  165. void pr_Wait(int i1);
  166. void set_protect(int l);
  167. void savescreen(screentype *s);
  168. void restorescreen(screentype far *s);
  169. void temp_cmd(char *s);
  170. char scan_to_char(unsigned char ch);
  171. void alt_key(unsigned char ch);
  172. void skey(char ch);
  173. void tleft(int x);
  174. void topscreen(void);
  175. void set_autoval(int n);
  176.  
  177.  
  178. /* File: connect1.c */
  179.  
  180. void zap_call_out_list(void);
  181. void read_call_out_list(void);
  182. void zap_bbs_list(void);
  183. void read_bbs_list(void);
  184. void read_bbs_list_index(void);
  185. int system_index(unsigned int ts);
  186. int valid_system(unsigned int ts);
  187. net_system_list_rec *next_system(unsigned int ts);
  188. void zap_contacts(void);
  189. void read_contacts(void);
  190. void set_net_num(int n);
  191.  
  192.  
  193. /* File: extrn.c */
  194.  
  195.  
  196.  
  197. /* File: mmenu.c */
  198.  
  199. void mainmenu(void);
  200. void dlmainmenu(void);
  201.  
  202.  
  203. /* File: modem.c */
  204.  
  205. void pr1(unsigned char *s);
  206. void get_modem_line(char *s, double d, int allowa);
  207. void do_result(result_info *ri);
  208. void process_full_result(char *s);
  209. int mode_switch(double d, int allowa);
  210. void holdphone(int d);
  211. void imodem(int x);
  212. void answer_phone(void);
  213.  
  214.  
  215. /* File: msgbase.c */
  216.  
  217. void describe_area_code(int areacode, char *description);
  218. void setorigin(int sysnum, int usernum);
  219. int okfsed(void);
  220. void remove_link(messagerec *m1, char *aux);
  221. int open_file(char *fn);
  222. void set_gat_section(int f, int section);
  223. void save_gat(int f);
  224. void savefile(char *b, long l1, messagerec *m1, char *aux);
  225. char *readfile(messagerec *m1, char *aux, long *l);
  226. void change_storage(messagerec *oldm, char *olda, messagerec *newm, char *newa);
  227. void load_workspace(char *fnx, int no_edit);
  228. void osan(char *s, int *abort, int *next);
  229. void addline(char *b, char *s, long *ll);
  230. void stuff(char *s, char *old, char *new);
  231. void inmsg(messagerec *m1, char *title, int *anony, int needtitle, char *aux, int fsed, char *dest, int flags);
  232. int forwardm(unsigned short *u, unsigned short *s);
  233. int open_email(int wrt);
  234. void sendout_email(char *title, messagerec *msg, int anony, unsigned un, unsigned sy, int an, unsigned uf, unsigned sf, int fwd, int fnn);
  235. int ok_to_mail(unsigned un, unsigned sy, int forceit);
  236. void email(unsigned short un, unsigned short sy, int forceit, int anony);
  237. void imail(unsigned short u, unsigned short s);
  238. void plan(char *s, int *abort, int *next);
  239. void read_message1(messagerec *m1, char an, int readit, int *next, char *fn);
  240. int maybeprint(char *fn, int force);
  241. int printfile(char *fn);
  242. int existprint(unsigned char *fn);
  243. void read_message(int n, int *next, int *val);
  244. void lineadd(messagerec *m1, char *sx, char *aux);
  245.  
  246.  
  247. /* File: msgbase1.c */
  248.  
  249. void send_net_post(postrec *p, char *extra, int subnum);
  250. void post(void);
  251. void grab_user_name(messagerec *m, char *fn);
  252. void scan(int msgnum, int optype, int *nextsub);
  253. void qscan(int bn, int *ns);
  254. void nscan(int ss);
  255. void scan2(void);
  256. void printmenu(int i);
  257. void delmail(int f, int loc);
  258. void remove_post(void);
  259. int external_edit(char *fn1, char *direc, int ednum, int numlines, char *dest, char *title, int flags);
  260. void grab_quotes(messagerec *m, char *aux);
  261.  
  262.  
  263. /* File: share.c */
  264.  
  265. int sh_open(char *path, int file_access, unsigned mode);
  266. int sh_open1(char *path, int access);
  267. FILE *fsh_open(char *path, char *mode);
  268. int sh_close(int f);
  269. void fsh_close(FILE *f);
  270. void share_installed(void);
  271. long sh_lseek(int handle, long offset, int fromwhere);
  272. int sh_read(int handle, void *buf, unsigned len);
  273. int sh_write(int handle, void *buf, unsigned len);
  274. size_t fsh_read(void *ptr, size_t size, size_t n, FILE *stream);
  275. size_t fsh_write(void *ptr, size_t size, size_t n, FILE *stream);
  276.  
  277.  
  278. /* File: strings.c */
  279.  
  280. int set_strings_fn(int filen, char *dir, char *fn, int allowwrite);
  281. void put_string(int filen, int n, char *s);
  282. int cachestat(void);
  283. char *get_stringx(int filen, int n);
  284. char *get_string(int n);
  285. int num_strings(int filen);
  286. char *getrandomstring(int filen);
  287. void close_strfiles(void);
  288.  
  289.  
  290. /* File: subacc.c */
  291.  
  292. void close_sub(void);
  293. int open_sub(int wr);
  294. int iscan1(int si, int quick);
  295. int iscan(int b);
  296. postrec *get_post(unsigned short mn);
  297. void delete(int mn);
  298. void write_post(int mn, postrec *pp);
  299. void add_post(postrec *pp);
  300. void resynch(int subnum, int *msgnum, postrec *pp);
  301.  
  302.  
  303. /* File: utility.c */
  304.  
  305. void reset_act_sl(void);
  306. void show_files(char *fn, char *dir);
  307. void remove_from_temp(char *fn, char *dir, int po);
  308. void check_event(void);
  309. void run_event(void);
  310. double freek(int dr);
  311. unsigned char years_old(unsigned char m, unsigned char d, unsigned char y);
  312. void itimer(void);
  313. double timer(void);
  314. long timer1(void);
  315. int sysop1(void);
  316. int okansi(void);
  317. void tmp_disable_conf(int disable);
  318. void tmp_disable_pause(int disable);
  319. int okconf(userrec *u);
  320. void frequent_init(void);
  321. void fix_user_rec(userrec *u);
  322. int number_userrecs(void);
  323. void read_user(unsigned int un, userrec *u);
  324. void write_user(unsigned int un, userrec *u);
  325. int open_qscn(void);
  326. void close_qscn(void);
  327. void read_qscn(unsigned int un, unsigned long *qscn, int stayopen);
  328. void write_qscn(unsigned int un, unsigned long *qscn, int stayopen);
  329. double ratio(void);
  330. double post_ratio(void);
  331. unsigned char *nam(userrec *u1, unsigned int un);
  332. unsigned char *nam1(userrec *u1, unsigned int un, unsigned int sy);
  333. double nsl(void);
  334. char *date(void);
  335. char *times(void);
  336. unsigned int finduser(unsigned char *s);
  337. int access_conf(userrec *u, int sl, confrec *c);
  338. int access_sub(userrec *u, int sl, subboardrec *s);
  339. int access_dir(userrec *u, int sl, directoryrec *d);
  340. void addusub(usersubrec *ss1, int ns, int sub, char key);
  341. int setconf(unsigned int conftype, int which, int oldsub);
  342. void setuconf(int conftype, int num, int oldsub);
  343. void changedsl(void);
  344. void isr(int un, unsigned char *name);
  345. void dsr(unsigned char *name);
  346. void wait1(long l);
  347. void Wait(double d);
  348. double freek1(char *s);
  349. int exist(char *s);
  350. void add_ass(int i, char *ss);
  351. int find_interrupt(void);
  352. void send_net(net_header_rec *nh, unsigned int *list, char *text, char *byname);
  353. unsigned char dow(void);
  354. void detect_multitask(void);
  355. int get_dos_version(void);
  356. int get_dv_version(void);
  357. int get_win_version(void);
  358. void begin_crit(void);
  359. void end_crit(void);
  360. void giveup_timeslice(void);
  361. void dv_pause(void);
  362. void win_pause(void);
  363. void get_status(int mode, int lock);
  364. void lock_status(void);
  365. void read_status(void);
  366. void save_status(void);
  367. int inst_msg_waiting(void);
  368. void setiia(int poll_ticks);
  369. long huge_xfer(int fd, void huge *buf, unsigned sz, unsigned nel, int wr);
  370. char *stripfn(char *fn);
  371. void stripfn1(char *fn);
  372.  
  373.  
  374. /* File: xfer.c */
  375.  
  376. void zap_ed_info(void);
  377. void get_ed_info(void);
  378. unsigned long bytes_to_k(unsigned long b);
  379. int check_batch_queue(char *fn);
  380. int check_ul_event(int dn, uploadsrec *u);
  381. void finddevs(char (*devs)[9], int *count);
  382. void find_devices(void);
  383. int okfn(char *s);
  384. void print_devices(void);
  385. char *make_abs_cmd(char *out);
  386. void get_arc_cmd(char *out, char *arcfn, int cmd, char *ofn);
  387. int list_arc_out(char *fn, char *dir);
  388. int ratio_ok(void);
  389. int dcs(void);
  390. void dliscan1(int dn);
  391. void dliscan_hash(int dn);
  392. void dliscan(void);
  393. void add_extended_description(char *fn, char *desc);
  394. void delete_extended_description(char *fn);
  395. char *read_extended_description(char *fn);
  396. void print_extended(char *fn, int *abort, unsigned char numlist, int indent);
  397. void align(char *s);
  398. int compare(char *s1, char *s2);
  399. void printinfo(uploadsrec *u, int *abort);
  400. void printtitle(int *abort);
  401. void file_mask(char *s);
  402. void listfiles(void);
  403. void nscandir(int d, int *abort);
  404. void nscanall(void);
  405. void searchall(void);
  406. int recno(char *s);
  407. int nrecno(char *s,int i1);
  408. int printfileinfo(uploadsrec *u, int dn);
  409. long date_to_daten(char *datet);
  410. void remlist(char *fn);
  411.  
  412.  
  413. /* File: ripspeed.c */
  414.  
  415. char rd_on(void);
  416. int menu_on(void);
  417. int rip_on(void);
  418. void rd_print(char *s);
  419. void rd_str(char *s);
  420. void rip_saveall(void);
  421. void rip_restoreall(void);
  422. void rip_pcb(void);
  423. void rip_con(void);
  424. void rd_coff(void);
  425. void rd_con(void);
  426. void rip_coff(void);
  427. void rip_smf(void);
  428. void rip_rmf(void);
  429. void rip_rtwpcb(void);
  430. void rip_show(char *s);
  431. void getkeymouse(void);
  432. void rip_cls(void);
  433. void out_cport(char c);
  434. void remstr(char *s);
  435. void comstr(char *s);
  436. void comr(char *s);
  437. void comnl(char *s);
  438. char delaykey(int tm);
  439.  
  440.  
  441. /* File: batch.c */
  442.  
  443. void listbatch(void);
  444. void delbatch(int i);
  445. void downloaded(char *fn, long cps);
  446. void didnt_upload(int ind);
  447. int try_to_ul(char *fn);
  448. void uploaded(char *fn, long cps);
  449. void ymbatchdl(int had);
  450. void handle_dszline(char *l);
  451. double ratio1(long a);
  452. void make_ul_batch_list(char *listfn);
  453. void make_dl_batch_list(char *listfn);
  454. void run_cmd(char *cmdln, char *downlist, char *uplist, char *dl, int had);
  455. void process_dszlog(void);
  456. void dszbatchdl(int had, char *cmdln, char *desc);
  457. void dszbatchul(int had, char *cmdln, char *desc);
  458. void bibatch(int had, char *cmdln, char *desc);
  459. void batchdl(int mode);
  460. void bihangup(int up);
  461.  
  462.  
  463. /* File: bbsovl1.c */
  464.  
  465. void chatsound(int sf, int ef, int uf, int dly1, int dly2, int rp);
  466. void reqchat(void);
  467. void yourinfo(void);
  468. void upload_post(void);
  469. void copy_file(char *input, char *output);
  470. void rsm(int un, userrec *u, int mode);
  471. void show_chains(int *mapp, int *map);
  472. void run_chain(int cn);
  473. void do_chains(void);
  474. void compress_file(char *fn, char *dir);
  475. void extract_mod(char *b, long len);
  476. void extract_out(char *b, long len, char *title);
  477. void send_email(void);
  478. void edit_confs(void);
  479. void feedback(int nuf);
  480. void sublist(void);
  481. void dirlist(void);
  482. void text_edit(void);
  483.  
  484.  
  485. /* File: bbsovl2.c */
  486.  
  487. void makewindow(int x, int y, int xlen, int ylen);
  488. void editline(unsigned char *s, int len, int status, int *returncode, unsigned char *ss);
  489. void val_cur_user(void);
  490. void read_char_xy(int x, int y, int *c, int *a);
  491. void set_attr_xy(int x, int y, int a);
  492. void select_chat_name(unsigned char *s);
  493. void two_way_chat(char *s, char *rollover, int maxlen, int crend, unsigned char *sysopname);
  494. void chat1(char *chatline, int two_way);
  495.  
  496.  
  497. /* File: bbsovl3.c */
  498.  
  499. unsigned char pd_getkey(void);
  500. unsigned get_kb_event(void);
  501. char onek_ncr(char *s);
  502. int do_sysop_command(unsigned command);
  503. void colorize_text(char *buffer);
  504. void sprintf_color(char *buffer, char *fmt, ...);
  505. int replacefile(char *src, char *dst, int stats);
  506. int copyfile(char *input, char *output, int stats);
  507. int movefile(char *src, char *dst, int stats);
  508. int check_arc(char *filename);
  509. int match_archiver(char *filename);
  510. long file_daten(char *filename);
  511. void wait_sec_or_hit(double seconds);
  512. varimenurec * addvarimenu(varimenurec *current, varimenurec *newitem);
  513. void varimenuforward(varimenurec *menu, varimenuinfo *info);
  514. void varimenubackward(varimenurec *menu, varimenuinfo *info);
  515. void varimenuleft(varimenurec *menu, varimenuinfo *info);
  516. void varimenuup(varimenurec *menu, varimenuinfo *info);
  517. void varimenuright(varimenurec *menu, varimenuinfo *info);
  518. void varimenudown(varimenurec *menu, varimenuinfo *info);
  519. void varimenu(varimenurec *menu, varimenuinfo *info);
  520. varimenurec * getvarimenurec(varimenurec *menu, int which);
  521. void redrawvarimenu(int redraw, varimenurec *menu, varimenuinfo *info);
  522. void killvarimenu(varimenurec *menu);
  523. void kill_inputrec(inputeditrec *input);
  524. void kill_showtextrec(showtextrec *text);
  525. void kill_radiobutton(radiobuttonrec *radio);
  526. void kill_checkbox(checkboxrec *check);
  527. int varimenu_findhotkey(varimenurec *menu, varimenuinfo *info);
  528. void fillvarimenurec(varimenurec *menu, void *rec, int type, unsigned hotkey, int returnvalue, int active);
  529. void build_inputrec(inputeditrec *input, int maxlen, int xpos, int ypos, int width, int insert, int char_case);
  530. void build_radiobuttonrec(radiobuttonrec *radio, int xpos, int ypos, int amount, int pos, int rc, int fc);
  531. void build_checkboxrec(checkboxrec *check, int xpos, int ypos, int amount, int pos, unsigned bi, int rc, int fc);
  532. void radio_button(radiobuttonrec *radio, varimenuinfo *info);
  533. void check_box(checkboxrec *check, varimenuinfo *info);
  534. void input_edit(inputeditrec *input, varimenuinfo *info);
  535. int ok_char_inputedit(inputeditrec *input, varimenuinfo *info);
  536. void add_char_inputedit(inputeditrec *input, varimenuinfo *info);
  537. void redrawinputedit(int type, inputeditrec *input, varimenuinfo *info, int mode);
  538. void delete_inputedit(inputeditrec *input, varimenuinfo *info);
  539. void redrawradiobutton(int redraw, radiobuttonrec *radio, varimenuinfo *info, int mode);
  540. void redrawcheckbox(int redraw, checkboxrec *check, varimenuinfo *info, int mode);
  541. void redrawshowtext(int redraw, showtextrec *text, varimenuinfo *info, int mode);
  542. void showtext(showtextrec *text, varimenuinfo *info);
  543. void build_showtextrec(showtextrec *text, int xpos, int ypos, int width, char *t, int justify, int bg);
  544. void build_inputpicrec(inputpicrec *input, int xpos, int ypos, int width, int insert, char *picture);
  545. void kill_inputpic(inputpicrec *input);
  546. void input_picture(inputpicrec *input, varimenuinfo *info);
  547. int ok_char_inputpic(inputpicrec *input, varimenuinfo *info);
  548. char ** read_picture(char *picture);
  549. void redrawinputpic(int type, inputpicrec *input, varimenuinfo *info, int mode);
  550.  
  551.  
  552. /* File: chnedit.c */
  553.  
  554. void chaindata(int n, char *s);
  555. void showchains(void);
  556. void modify_chain(int n);
  557. void insert_chain(int n);
  558. void delete_chain(int n);
  559. void chainedit(void);
  560.  
  561.  
  562. /* File: conf.c */
  563.  
  564. int get_conf_info(unsigned int conftype, unsigned int *num, confrec **cpp, char *fn, unsigned int *num_s, userconfrec **uc);
  565. void jump_conf(unsigned int conftype);
  566. void update_conf(unsigned int conftype, SUBCONF_TYPE *sub1, SUBCONF_TYPE *sub2, unsigned int action);
  567. unsigned int str_to_arword(unsigned char *arstr);
  568. unsigned char *word_to_arstr(unsigned int ar);
  569. unsigned char first_available_designator(unsigned int conftype);
  570. int in_conference(unsigned int subnum, confrec *c);
  571. void save_confs(unsigned int conftype, int whichnum, confrec *c);
  572. void showsubconfs(unsigned int conftype, confrec *c);
  573. SUBCONF_TYPE *str_to_numrange(unsigned char *s, int *numinlist);
  574. void addsubconf(unsigned int conftype, confrec *c, SUBCONF_TYPE *which);
  575. void delsubconf(unsigned int conftype, confrec *c, SUBCONF_TYPE *which);
  576. int modify_conf(unsigned int conftype, unsigned int n);
  577. void insert_conf(unsigned int conftype, unsigned int n);
  578. void delete_conf(unsigned int conftype, unsigned int n);
  579. void conf_edit(unsigned int conftype);
  580. void list_confs(unsigned int conftype, int ssc);
  581. int select_conf(unsigned char *s, unsigned int conftype, int listconfs);
  582. int create_conf_file(unsigned int conftype);
  583. confrec *read_conferences(unsigned char *cf, unsigned int *nc, int max);
  584. void read_in_conferences(int conftype);
  585. void read_all_conferences(void);
  586. unsigned int get_num_conferences(unsigned char *cf);
  587. unsigned int wordcount(unsigned char *instr, unsigned char *delimstr);
  588. unsigned char *extractword(unsigned ww,unsigned char *instr,unsigned char *delimstr);
  589. void sort_conf_str(unsigned char *s);
  590.  
  591.  
  592. /* File: defaults.c */
  593.  
  594. void select_editor(void);
  595. void print_cur_stat(void);
  596. char *cn(char c);
  597. char *describe(char col);
  598. void color_list(void);
  599. void change_colors(void);
  600. void l_config_qscan(void);
  601. void config_qscan(void);
  602. void list_macro(unsigned char *s);
  603. void make_macros(void);
  604. void input_pw1(void);
  605. void modify_mailbox(void);
  606. void optional_lines(void);
  607. void enter_regnum(void);
  608. void defaults(void);
  609.  
  610.  
  611. /* File: diredit.c */
  612.  
  613. void dirdata(int n, char *s);
  614. void showdirs(void);
  615. void modify_dir(int n);
  616. void swap_dirs(int dir1, int dir2);
  617. void insert_dir(int n);
  618. void delete_dir(int n);
  619. void dlboardedit(void);
  620.  
  621.  
  622. /* File: extrn1.c */
  623.  
  624. int extern_prog(char *cmdline, unsigned short flags);
  625. void create_filename(int which, char *name);
  626. char *create_chain_file(void);
  627. void save_state(int state,int ctc, char *restorefn, char *statfn);
  628.  
  629.  
  630. /* File: gfiles.c */
  631.  
  632. char *get_file(char *fn, long *len);
  633. gfilerec *read_sec(int sn, int *nf);
  634. void list_sec(int *map, int nmap);
  635. void list_gfiles(gfilerec *g, int nf);
  636. void gfile_sec(int sn);
  637. void gfiles(void);
  638. void hop_sub(void);
  639. void hop_dir(void);
  640. void valscan(void);
  641.  
  642.  
  643. /* File: gfledit.c */
  644.  
  645. void gfiledata(int n, char *s);
  646. void showsec(void);
  647. int exist_dir(char *s);
  648. void modify_sec(int n);
  649. void insert_sec(int n);
  650. void delete_sec(int n);
  651. void gfileedit(void);
  652. int fill_sec(int sn);
  653. void pack_all_subs(void);
  654. void pack_sub(int si);
  655.  
  656.  
  657. /* File: ini.c */
  658.  
  659. void ini_done(void);
  660. int ini_init(unsigned char *fn, unsigned char *prim, unsigned char *sec);
  661. unsigned char *ini_get(unsigned char *key, int index, unsigned char *index1);
  662.  
  663.  
  664. /* File: instmsg.c */
  665.  
  666. void send_inst_msg(inst_msg_header *ih, unsigned char *msg);
  667. void send_inst_str1(unsigned short m, int whichinst, unsigned char *sendstr);
  668. void send_inst_str(int whichinst, unsigned char *sendstr);
  669. void send_inst_sysstr(int whichinst, unsigned char *sendstr);
  670. void send_inst_shutdown(int whichinst);
  671. void broadcast(unsigned char *sendstr);
  672. int handle_inst_msg(inst_msg_header *ih, unsigned char *msg);
  673. void process_inst_msgs(void);
  674. void chat_room(void);
  675. int get_inst_info(int wi, instancerec *ir);
  676. int inst_available(instancerec *ir);
  677. int inst_available_chat(instancerec *ir);
  678. int num_instances(void);
  679. int user_online(int un, int *wi);
  680. void instance_edit(void);
  681.  
  682.  
  683. /* File: lilo.c */
  684.  
  685. void random_screen(char *s1);
  686. int usa_phone_convention(userrec *u);
  687. void getuser(void);
  688. void logon(void);
  689. void logoff(void);
  690.  
  691.  
  692. /* File: misccmd.c */
  693.  
  694. void read_automessage(void);
  695. void write_automessage1(void);
  696. void write_automessage(void);
  697. void bbslist(void);
  698. void kill_old_email(void);
  699. void list_users(int mode);
  700. void print_quest(int mapp, int map[21]);
  701. int print_question(int i, int ii);
  702. void vote_question(int i, int ii);
  703. void vote(void);
  704. void time_bank(void);
  705. void remotenotify(char *name, char *desc);
  706. int remoteupload(char *message);
  707. int getnetnum(char *netnam);
  708.  
  709.  
  710. /* File: multinst.c */
  711.  
  712. void make_inst_str(short wi, unsigned char *ss);
  713. void multi_instance(void);
  714. int inst_ok(unsigned short loc, unsigned short subloc);
  715.  
  716.  
  717. /* File: multmail.c */
  718.  
  719. void multimail(int *un, int numu);
  720. int oneuser(void);
  721. void add_list(int *un, int *numu, int maxu, int allowdup);
  722. void slash_e(void);
  723.  
  724.  
  725. /* File: netsup.c */
  726.  
  727. void rename_pend(char *dir, char *file);
  728. void checkup(struct ftime *f1, struct ftime *f2, int *tf);
  729. int checkup2(struct ftime *f, char *x);
  730. int check_bbsdata(void);
  731. void cleanup_net(void);
  732. void do_callout(int sn);
  733. int ok_to_call(int i);
  734. void fixup_long(long *f, long l);
  735. void free_vars(float **weight, int **try);
  736. void attempt_callout(void);
  737. void force_callout(int dw);
  738. void print_pending_list(void);
  739. void gate_msg(net_header_rec *nh, char *text, unsigned short nn, char *byname, unsigned int *list, unsigned short fnn);
  740.  
  741.  
  742. /* File: newuser.c */
  743.  
  744. void input_phone(void);
  745. void input_dataphone(void);
  746. void input_language(void);
  747. int check_name(unsigned char *nn);
  748. void input_name(void);
  749. void input_realname(void);
  750. void input_callsign(void);
  751. int valid_phone(char *phone);
  752. void input_street(void);
  753. void input_city(void);
  754. void input_state(void);
  755. void input_country(void);
  756. void input_zipcode(void);
  757. void input_sex(void);
  758. void input_age(userrec *u);
  759. void input_comptype(void);
  760. void input_screensize(void);
  761. void input_pw(void);
  762. void input_ansistat(void);
  763. int find_new_usernum(userrec *u, unsigned long *qsc);
  764. void newuser(void);
  765. int check_zip(char *zip, int mode);
  766. void properize(char *s);
  767. int check_dupes(char *phone);
  768.  
  769.  
  770. /* File: readmail.c */
  771.  
  772. int same_email(tmpmailrec *tm, mailrec *m);
  773. void purgemail(tmpmailrec *mloc,int mw,int *curmail, mailrec *m1, slrec *ss);
  774. void resynch_email(tmpmailrec *mloc, int mw, int rec, mailrec *m, int del, unsigned short stat);
  775. int read_same_email(tmpmailrec *mloc, int mw, int rec, mailrec *m, int del, unsigned short stat);
  776. void add_netsubscriber(unsigned short sn);
  777. void readmail(void);
  778.  
  779.  
  780. /* File: sr.c */
  781.  
  782. void calc_CRC(unsigned char b);
  783. char gettimeout(double d, int *abort);
  784. int extern_prot(int pn, char *fn1, int sending);
  785. int ok_prot(int pn, xfertype xt);
  786. char *prot_name(int pn);
  787. int get_protocol(xfertype xt);
  788. void ascii_send(char *fn, int *sent, double *percent);
  789. void maybe_internal(char *fn, int *xferred, double *percent, char ft, char *ftp, int send, int prot);
  790. void send_file(char *fn, int *sent, int *abort, char ft, char *sfn, int dn, long fs);
  791. void receive_file(char *fn, int *received, char *ft, char *sfn, int dn);
  792. char end_batch1(void);
  793. void endbatch(void);
  794.  
  795.  
  796. /* File: srrcv.c */
  797.  
  798. char modemkey(int *tout);
  799. int receive_block(char *b, unsigned char *bln, int ucrc);
  800. void xymodem_receive(char *fn, char *ft, int *received, int ucrc);
  801.  
  802.  
  803. /* File: srsend.c */
  804.  
  805. void send_block(char *b, int type, int ucrc, char bn);
  806. char send_b(int f, long pos, int type, char bn, int *ucrc, char *fn, int *terr, int *abort);
  807. int okstart(int *ucrc, int *abort);
  808. void xymodem_send(char *fn, int *sent, double *percent, char ft, int ucrc, int ym, int ymb);
  809.  
  810.  
  811. /* File: subedit.c */
  812.  
  813. void save_subs(void);
  814. void boarddata(int n, char *s);
  815. void showsubs(void);
  816. void modify_sub(int n);
  817. void swap_subs(int sub1, int sub2);
  818. void insert_sub(int n);
  819. void delete_sub(int n);
  820. void boardedit(void);
  821.  
  822.  
  823. /* File: subreq.c */
  824.  
  825. void sub_req(int main_type, int minor_type, int tosys, char *extra);
  826. int find_hostfor(char *type, unsigned short *ui, char *desc, unsigned short *opt);
  827. void sub_xtr_del(int n, int nn, int f);
  828. void sub_xtr_add(int n, int nn);
  829. int display_sub_categories(void);
  830.  
  831.  
  832. /* File: subxtr.c */
  833.  
  834. int read_subs_xtr(int max_subs, int num_subs, subboardrec *subboards);
  835.  
  836.  
  837. /* File: sysopf.c */
  838.  
  839. void isr1(int un, unsigned char *name);
  840. void reset_files(void);
  841. void outstr_x1(char *s);
  842. void prstatus(void);
  843. void valuser(int un);
  844. void print_net_listing(unsigned int tp);
  845. void read_new_stuff(void);
  846. void mailr(void);
  847. void chuser(void);
  848. void zlog(void);
  849. void beginday(void);
  850.  
  851.  
  852. /* File: tedit.c */
  853.  
  854. struct line *read_file(char *fn, int *numlines);
  855. void kill_file(struct line *topline);
  856. void save_file(char *fn, struct line *topline);
  857. int printl(int n, struct line *l);
  858. void tedit(char *fn);
  859.  
  860.  
  861. /* File: uedit.c */
  862.  
  863. void deluser(int un);
  864. void outstr_x2(char *s);
  865. void print_data(int un, userrec *u, int lng, int cls);
  866. int matchuser(int un);
  867. int match_user(userrec *u);
  868. void changeopt(void);
  869. void auto_val(int n, userrec *u);
  870. void uedit(int usern, int other);
  871. unsigned char *daten_to_date(long dt);
  872. void print_affil(userrec *u);
  873.  
  874.  
  875. /* File: voteedit.c */
  876.  
  877. void print_quests(void);
  878. void set_question(int ii);
  879. void ivotes(void);
  880. void voteprint(void);
  881.  
  882.  
  883. /* File: xferovl.c */
  884.  
  885. void move_file(void);
  886. int comparedl(uploadsrec *x, uploadsrec *y, int type);
  887. void quicksort(int l,int r,int type);
  888. void sortdir(int dn, int type);
  889. void sort_all(int type);
  890. void rename_file(void);
  891. int upload_file(char *fn, int dn, char *desc);
  892. int maybe_upload(char *fn, int dn, char *desc);
  893. void upload_files(char *fn, int dn, int type);
  894. int uploadall(int dn);
  895. void relist(void);
  896. void edit_database(void);
  897. long db_index(int af, char *fn);
  898. void modify_database(char *fn, int add);
  899. int is_uploadable(char *fn);
  900. void l_config_nscan(void);
  901. void config_nscan(void);
  902. void xfer_defaults(void);
  903. void finddescription(void);
  904. void arc_l(void);
  905.  
  906.  
  907. /* File: xferovl2.c */
  908.  
  909. void modify_extended_description(char **sss, char *dest, char *title);
  910. void upload(int dn);
  911. void get_file_idz(uploadsrec *u, int dn);
  912. void read_idz(void);
  913. void tag_it(void);
  914. void tag_files(void);
  915. int try_to_download(char *s, int dn,int title);
  916. void download(void);
  917. char fancy_prompt(char *prompt,char *accept);
  918. void endlist(int mode);
  919. void yourinfodl(void);
  920. void setldate(void);
  921.  
  922.  
  923. /* File: xfertmp.c */
  924.  
  925. long bad_filename(char *fn);
  926. int check_for_files_arc(char *fn);
  927. int check_for_files_zip(char *fn);
  928. int check_for_files_lzh(char *fn);
  929. int check_for_files_arj(char *fn);
  930. int check_for_files(char *fn);
  931. void download_temp_arc(char *fn, int xfer);
  932. void add_arc(char *arc, char *fn, int dos);
  933. void add_temp_arc(void);
  934. void del_temp(void);
  935. void list_temp_dir(void);
  936. void temp_extract(void);
  937. void list_temp_text(void);
  938. void list_temp_arc(void);
  939. void temporary_stuff(void);
  940. void move_file_t(void);
  941. void removefile(void);
  942.  
  943.  
  944. /* File: xinit.c */
  945.  
  946. void far *mallocx(unsigned long l, char *where);
  947. unsigned short str2spawnopt(unsigned char *s);
  948. unsigned short str2restrict(unsigned char *s);
  949. int read_ini_info(void);
  950. int read_config(void);
  951. int save_config(void);
  952. void read_nextern(void);
  953. void read_editors(void);
  954. void read_nintern(void);
  955. int read_subs(void);
  956. void read_networks(void);
  957. int read_names(void);
  958. void read_voting(void);
  959. int read_dirs(void);
  960. void read_chains(void);
  961. int read_language(void);
  962. int read_modem(void);
  963. void read_gfile(void);
  964. int make_abs_path(unsigned char *checkdir);
  965. void fix_paths(void);
  966. void init(void);
  967. void gotcaller(unsigned int ms, unsigned int cs);
  968.  
  969.  
  970. /* File: qwk.c */
  971.  
  972. void build_qwk_packet(void);
  973. void qwk_gather_sub(int bn, struct qwk_junk *qwk_info);
  974. void qwk_start_read(int msgnum, struct qwk_junk *qwk_info);
  975. void make_pre_qwk(int msgnum, int *val, struct qwk_junk *qwk_info);
  976. void put_in_qwk(postrec *m1, char *fn, int msgnum, struct qwk_junk *qwk_info);
  977. void make_qwk_ready(char *text, long *len, char *address);
  978. void qwk_remove_null(char *memory, int size);
  979. void build_control_dat(struct qwk_junk *qwk_info);
  980. int _fmsbintoieee(float *src4, float *dest4);
  981. int _fieeetomsbin(float *src4, float *dest4);
  982. char * qwk_system_name(char *qwkname);
  983. void qwk_menu(void);
  984. void qwk_send_file(char *fn, int *sent, int *abort);
  985. int select_qwk_protocol(struct qwk_junk *qwk_info);
  986. long * qwk_save_qscan(void);
  987. void qwk_restore_qscan(long *save_qsc_p);
  988. void insert_after_routing(char *text, char *text2insert, long *len);
  989. void close_qwk_cfg(struct qwk_config *qwk_cfg);
  990. void read_qwk_cfg(struct qwk_config *qwk_cfg);
  991. void write_qwk_cfg(struct qwk_config *qwk_cfg);
  992. int get_qwk_max_msgs(unsigned int *max_msgs, unsigned int *max_per_sub);
  993. void qwk_nscan(void);
  994. void finish_qwk(struct qwk_junk *qwk_info);
  995. char *qwk_readfile(messagerec *m1, char *aux, long *l);
  996. int qwk_open_file(char *fn);
  997.  
  998.  
  999. /* File: qwk1.c */
  1000.  
  1001. void qwk_remove_email(void);
  1002. void qwk_gather_email(struct qwk_junk *qwk_info);
  1003. int select_qwk_archiver(struct qwk_junk *qwk_info, int ask);
  1004. void qwk_which_zip(char *thiszip);
  1005. void qwk_which_protocol(char *thisprotocol);
  1006. void upload_reply_packet(void);
  1007. void ready_reply_packet(char *name);
  1008. void make_text_ready(char *text, long len);
  1009. char * make_text_file(int filenumber, long *size, int curpos, int blocks);
  1010. void qwk_email_text(char *text, long size, char *title, char *to);
  1011. void qwk_inmsg(char *text, long size, messagerec *m1, char *aux, char *name, long thetime);
  1012. void process_reply_dat(char *name);
  1013. void qwk_post_text(char *text, long size, char *title, int sub);
  1014. int find_qwk_sub(struct qwk_sub_conf *subs, int amount, int fromsub, char *title);
  1015. void qwk_receive_file(char *fn, int *received, char *ft, int i);
  1016. void qwk_sysop(void);
  1017. void modify_bulletins(struct qwk_config *qwk_cfg);
  1018. void config_qwk_bw(void);
  1019. void config_qwk_rip(void);
  1020. void config_qwk(void);
  1021. char *qwk_current_text(int pos, char *text);
  1022.  
  1023.  
  1024. /* File: ripovl.c */
  1025.  
  1026. int rip_check(void);
  1027. int transmit(char menutype);
  1028. void setmenu(char *ext);
  1029. void set_name(void);
  1030. void choosemenu(void);
  1031. int current_menu(char *fn);
  1032. void rip_menus(void);
  1033. int pausecheck(int localflag, char *ext);
  1034. void end_rip(void);
  1035. void restore_msg_menu(void);
  1036. void msgheader(int startat);
  1037. void setmsgview(int smallby);
  1038. void submenu(void);
  1039. void hypertext(void);
  1040. void rip_show_chains(int *mapp, int *map, int start);
  1041. void rip_show_chains(int *mapp, int *map, int start);
  1042. void rip_list_gfiles(gfilerec *g, int nf, int start);
  1043. void rip_list_gfiles(gfilerec *g, int nf, int start);
  1044. void rip_list_sec(int *map, int nmap, int start);
  1045. void rip_list_sec(int *map, int nmap, int start);
  1046. void rip_timebank(void);
  1047. void rip_yourinfo(void);
  1048. int rip_printfileinfo(uploadsrec *u, int dn);
  1049. void rip_print_extended(char *fn, int *abort, unsigned char numlist);
  1050. void rip_detect(void);
  1051. char *interpret(char c);
  1052. int todownload(char array[][13], int start, char *fspec, char *fpath);
  1053. void menuxfer(char *fpath, char files[][13], int num, int *sent, double *percent);
  1054. int rip_file(char *fn, ripmsgrec *m, int maxary);
  1055. void rd_disable(void);
  1056. void rip_list_qscan(int start);
  1057. void rip_config_qscan(void);
  1058.  
  1059. #endif
  1060.