home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / VP2_409E.SZH / FUNCS.H < prev    next >
Text File  |  1990-05-12  |  8KB  |  150 lines

  1. /*
  2.   $Header: FUNCS.H 3.3 87/12/12 00:47:22 Bob Exp $
  3.  
  4.                           The Conference Mail System
  5.  
  6.               This module was originally written by Bob Hartman
  7.                        Sysop of FidoNet node 1:132/101
  8.  
  9.    Spark Software, 427-3 Amherst St, CS 2032, Suite 232, Nashua, NH 03061
  10.  
  11.  The Conference Mail System  is a  complete Echomail processing package.  It
  12.  is a superset of the original    Echomail utilities created by Jeff Rush, and
  13.  also contains ideas gleaned from the  ARCmail,  Renum,  oMMM, MGM, and Opus
  14.  programs that were created by various software authors.
  15.  
  16.  This program source code is being released with the following provisions:
  17.  
  18.  1.  You are  free to make    changes to this source    code for use on your own
  19.  machine,  however,  altered source files may not be distributed without the
  20.  consent of Spark Software.
  21.  
  22.  2.  You may distribute "patches"  or  "diff" files for any changes that you
  23.  have made, provided that the "patch" or "diff" files are also sent to Spark
  24.  Software for inclusion in future releases of the entire package.    A "diff"
  25.  file for the source archives may also contain a compiled version,    provided
  26.  it is    clearly marked as not  being created  from the original source code.
  27.  No other  executable  versions may be    distributed without  the  consent of
  28.  Spark Software.
  29.  
  30.  3.  You are free to include portions of this source code in any program you
  31.  develop, providing:  a) Credit is given to Spark Software for any code that
  32.  may is used, and  b) The resulting program is free to anyone wanting to use
  33.  it, including commercial and government users.
  34.  
  35.  4.  There is  NO  technical support  available for dealing with this source
  36.  code, or the accompanying executable files.  This source  code  is provided
  37.  as is, with no warranty expressed or implied (I hate legalease).    In other
  38.  words, if you don't know what to do with it,  don't use it,  and if you are
  39.  brave enough to use it, you're on your own.
  40.  
  41.  Spark Software may be contacted by modem at (603) 888-8179 (node 1:132/101)
  42.  on the public FidoNet network, or at the address given above.
  43.  
  44.  To use this code you will need Microsoft C version 4.0, and also Microsoft
  45.  Macro Assembler version 4.0.
  46.  
  47. */
  48.  
  49. /*
  50.    $Log:    FUNCS.H $
  51.  * Revision 3.3  87/12/12  00:47:22  Bob
  52.  * Source code release
  53.  *
  54. */
  55. extern           void           arc_a(void );
  56. extern           void           arc_e(void );
  57. extern           int              arc_to(unsigned char *retname);
  58. extern           int              arcmail(void );
  59. extern           void           bad_pkt_msg(void );
  60. extern unsigned int           calcrc(unsigned char *ptr);
  61. extern           void           chngbits(void );
  62. extern           int              cmp(int *a,int *b);
  63. extern           int              compile_areas(unsigned char *fname);
  64. extern           int              copy_n_match_null(unsigned char *str1,unsigned char *str2,int len);
  65. extern           void           create_seen(unsigned char *ptr,int *nets,int *nodes,int num_nodes,int normal,unsigned char *sb_string);
  66. extern           long           days_from_1980(void );
  67. extern           int              dir_findfirst(unsigned char *filename,int attribute,struct find_t *dta);
  68. extern           int              dir_findnext(struct find_t *dta);
  69. extern           void           disk_full(int f,unsigned char *fname1);
  70. extern           void           do_attach(int msg_no,int tonet,int tonode,unsigned char *filename);
  71. extern           void           do_date(MSG_PTR h1);
  72. extern unsigned char         *echo_fgets(unsigned char *s,int n,struct _iobuf *fp);
  73. extern           int              enter_msg(void );
  74. extern           int              fast_close(int f);
  75. extern           long           fast_lseek(int f,long offs,int org);
  76. extern           int              fast_open();
  77. extern           int              fast_read(int f,unsigned char *st,int l);
  78. extern           int              fast_write(int f,unsigned char *st,int l);
  79. extern           void           fastkdup();
  80. extern           void           fastscan(int argc,unsigned char * *argv);
  81. extern           void           fasttoss(int argc,unsigned char * *argv);
  82. extern           void           fe_usage(void );
  83. extern           char          *fido_fmt(void );
  84. extern           char          *fido_gets(void );
  85. extern           int              filedir(unsigned char *name,int times,unsigned char *ret_str,int mode);
  86. extern           long           filedir1(unsigned char *name,int times,unsigned char *ret_str);
  87. extern           int              find_msg(int n,int last_msg,int notu);
  88. extern           void           find_old(void );
  89. extern           void           find_orig(int totread);
  90. extern           void           find_seen(int totread);
  91. extern           int              findkill(struct ktype *k1);
  92. extern           int              finish_msg(int f);
  93. extern           void           fs_usage(void );
  94. extern           void           ft_usage(void );
  95. extern           void           get_date(void );
  96. extern           int              get_fido_config(SEACONFIG_PTR cptr);
  97. extern           int              get_fido_sys(unsigned char *s,int q);
  98. extern           void           get_hw(AREAS_PTR which);
  99. extern           void           get_msg_lst(int *msg_nums,int *last_msg,unsigned char *msg_dir,int lowest);
  100. extern           int              get_sea_config(SEACONFIG_PTR cptr);
  101. extern           void           get_seen_bys(unsigned char *st_string,int st_stringl,unsigned char *sb_string,int *snets,int *snodes,int *tseen);
  102. extern           void           get_time(void );
  103. extern           int              get_to_null(int f,unsigned char *s,int *l);
  104. extern           int              get_word(unsigned char * *from,unsigned char *new);
  105. extern           int              high_msg(unsigned char *msg_dir,int *h,int *l);
  106. extern           void           leave(void );
  107. extern           void           main(int argc,unsigned char * *argv);
  108. extern           void           main_system(void );
  109. extern           void           make_args(int *argc1,unsigned char * *argv1,unsigned char *input_line,int argc2,unsigned char * *argv2);
  110. extern           void           make_originline(AREAS_PTR which);
  111. extern           void           mark(void );
  112. extern           char          *match_byte(char *sb, char c, int endline);
  113. extern unsigned char         *mung_path(int n);
  114. extern           void           netit(MSG_PTR header,unsigned char *holder,int body_count,unsigned char *netpath,int *high_one);
  115. extern           long           new_days_from_1980(void );
  116. extern           void           next_str(unsigned char * *p,unsigned char *sb_string,int l,int l1);
  117. extern           int              open1_outfile(void );
  118. extern           int              open_outfile(AREAS_PTR which,int j);
  119. extern           int              out_file(void );
  120. extern           void           output(void );
  121. extern           CMND_PTR       parse(void );
  122. extern           void           put_user(void );
  123. extern           int              read_all(int f,unsigned char *o);
  124. extern           void           renum(void );
  125. extern           void           reset_clk();
  126. extern           int              rest_of_msg();
  127. extern           int              scan(AREAS_PTR which);
  128. extern           long           secs_from_1980(MSG_PTR str);
  129. extern           int              security_check(void );
  130. extern           int              set_bits(int tonet,int tonode,unsigned int bits);
  131. extern           void           set_hw(int mnum,AREAS_PTR which);
  132. extern           USR_PTR          set_up(void );
  133. extern           int              shell(void );
  134. extern           void           sort_em(int *zones,int *nets,int *nodes,int num_nodes,int others,int *o1,unsigned char * *o2);
  135. extern           int              suffix(int tonet,int tonode,unsigned char *arcext,int del);
  136. extern           int              sysint(void );
  137. extern           int              toss(unsigned char *dir);
  138. extern           int              tossit(unsigned char *fname,unsigned char *header,unsigned char *holder1,int body_count,int f,int msg_num,int area,int delit);
  139. extern           int              tosspkt(unsigned char *dir);
  140. extern           int              unpackpkt(unsigned char *pktname);
  141. extern           int              write1_packet(void );
  142. extern           int              write_body(int f1,unsigned char *b,int l,int f);
  143. extern           int              write_header(int f,MSG_PTR h);
  144. extern           int              write_it(AREAS_PTR which,int j);
  145. extern           void           write_msg(int f);
  146. extern           int              write_netmail(AREAS_PTR which,int j);
  147. extern           int              write_packet(AREAS_PTR which,int j);
  148. extern           int              write_reply(AREAS_PTR which);
  149. extern           void           zap_old(void );
  150.