home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / MNUM416D.SZH / FUNCS.H < prev    next >
Text File  |  1991-03-24  |  4KB  |  81 lines

  1. /*
  2.                           Message Base Renumberer
  3.  
  4.               This module was originally written by Bob Hartman
  5.                        Sysop of FidoNet node 1:132/101
  6.  
  7.    Spark Software, 427-3 Amherst St, CS 2032, Suite 232, Nashua, NH 03061
  8.  
  9.  This program source code is being released with the following provisions:
  10.  
  11.  1.  You are  free to make    changes to this source    code for use on your own
  12.  machine,  however,  altered source files may not be distributed without the
  13.  consent of Spark Software.
  14.  
  15.  2.  You may distribute "patches"  or  "diff" files for any changes that you
  16.  have made, provided that the "patch" or "diff" files are also sent to Spark
  17.  Software for inclusion in future releases of the entire package.    A "diff"
  18.  file for the source archives may also contain a compiled version,    provided
  19.  it is    clearly marked as not  being created  from the original source code.
  20.  No other  executable  versions may be    distributed without  the  consent of
  21.  Spark Software.
  22.  
  23.  3.  You are free to include portions of this source code in any program you
  24.  develop, providing:  a) Credit is given to Spark Software for any code that
  25.  may is used, and  b) The resulting program is free to anyone wanting to use
  26.  it, including commercial and government users.
  27.  
  28.  4.  There is  NO  technical support  available for dealing with this source
  29.  code, or the accompanying executable files.  This source  code  is provided
  30.  as is, with no warranty expressed or implied (I hate legalease).    In other
  31.  words, if you don't know what to do with it,  don't use it,  and if you are
  32.  brave enough to use it, you're on your own.
  33.  
  34.  Spark Software may be contacted by modem at (603) 888-8179 (node 1:132/101)
  35.  on the public FidoNet network, or at the address given above.
  36.  
  37. */
  38.  
  39. extern int get_sea_config();
  40. extern int get_fido_config();
  41.  
  42. extern void main(int argc,char * *argv);
  43. extern    int get_word(char * *from,char *new);
  44. extern    int compile_areas(char *fname);
  45. extern    int get_fido_sys(char *s,int q);
  46. extern    unsigned int calcrc(char *ptr);
  47. extern    int compare(struct msgtyp *arg1,struct msgtyp *arg2);
  48. extern void update(void);
  49. extern void read_msg_data(void );
  50. extern void write_msg_data(void );
  51. extern void kill_attr(unsigned int attr );
  52. extern void kill_by_date(void );
  53. extern void kill_number(void );
  54. extern void fix_lastread(void );
  55. extern void renum_max_lastread(void );
  56. extern void fancy_str(char *value);
  57. extern    int get_system(char *where,SYS *ret_system);
  58. extern    int get_opus(char *where,_sys *ret_system);
  59. extern void get_date(char *fmt,char *d);
  60. extern void relink(void );
  61. extern    int renum_users(int area);
  62. extern    int renum_opus(int area);
  63. extern    void renum_opus120_lastread(void);
  64. extern long days_from_1980(MSG_PTR str);
  65. extern    int go_directory(char *dir,char *save);
  66. extern void msgnum_usage(void );
  67. extern    int filedir(char *name,int times,char *ret_str,int mode);
  68. #ifndef OS_2
  69. extern int fast_open(char *path, int oflag);
  70. extern int fast_read(int handle, char *buffer, unsigned int count);
  71. extern int fast_write(int handle, char *buffer, unsigned int count);
  72. extern long fast_lseek(int handle, long offset, int origin);
  73. extern int fast_close(int handle);
  74. #else
  75. extern long filedir1(char *name,int times,char *ret_str);
  76. extern    int dir_findfirst(char *filename,int attribute,struct find_t *dta);
  77. extern    int dir_findnext(struct find_t *dta);
  78. extern void dostime(int *hour, int *min, int *sec, int *hdths);
  79. extern void dosdate(int *month, int *mday, int *year, int *weekday);
  80. #endif
  81.