home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
VP2SRC.ZIP
/
FUNCS.H
< prev
next >
Wrap
Text File
|
1990-05-12
|
8KB
|
150 lines
/*
$Header: FUNCS.H 3.3 87/12/12 00:47:22 Bob Exp $
The Conference Mail System
This module was originally written by Bob Hartman
Sysop of FidoNet node 1:132/101
Spark Software, 427-3 Amherst St, CS 2032, Suite 232, Nashua, NH 03061
The Conference Mail System is a complete Echomail processing package. It
is a superset of the original Echomail utilities created by Jeff Rush, and
also contains ideas gleaned from the ARCmail, Renum, oMMM, MGM, and Opus
programs that were created by various software authors.
This program source code is being released with the following provisions:
1. You are free to make changes to this source code for use on your own
machine, however, altered source files may not be distributed without the
consent of Spark Software.
2. You may distribute "patches" or "diff" files for any changes that you
have made, provided that the "patch" or "diff" files are also sent to Spark
Software for inclusion in future releases of the entire package. A "diff"
file for the source archives may also contain a compiled version, provided
it is clearly marked as not being created from the original source code.
No other executable versions may be distributed without the consent of
Spark Software.
3. You are free to include portions of this source code in any program you
develop, providing: a) Credit is given to Spark Software for any code that
may is used, and b) The resulting program is free to anyone wanting to use
it, including commercial and government users.
4. There is NO technical support available for dealing with this source
code, or the accompanying executable files. This source code is provided
as is, with no warranty expressed or implied (I hate legalease). In other
words, if you don't know what to do with it, don't use it, and if you are
brave enough to use it, you're on your own.
Spark Software may be contacted by modem at (603) 888-8179 (node 1:132/101)
on the public FidoNet network, or at the address given above.
To use this code you will need Microsoft C version 4.0, and also Microsoft
Macro Assembler version 4.0.
*/
/*
$Log: FUNCS.H $
* Revision 3.3 87/12/12 00:47:22 Bob
* Source code release
*
*/
extern void arc_a(void );
extern void arc_e(void );
extern int arc_to(unsigned char *retname);
extern int arcmail(void );
extern void bad_pkt_msg(void );
extern unsigned int calcrc(unsigned char *ptr);
extern void chngbits(void );
extern int cmp(int *a,int *b);
extern int compile_areas(unsigned char *fname);
extern int copy_n_match_null(unsigned char *str1,unsigned char *str2,int len);
extern void create_seen(unsigned char *ptr,int *nets,int *nodes,int num_nodes,int normal,unsigned char *sb_string);
extern long days_from_1980(void );
extern int dir_findfirst(unsigned char *filename,int attribute,struct find_t *dta);
extern int dir_findnext(struct find_t *dta);
extern void disk_full(int f,unsigned char *fname1);
extern void do_attach(int msg_no,int tonet,int tonode,unsigned char *filename);
extern void do_date(MSG_PTR h1);
extern unsigned char *echo_fgets(unsigned char *s,int n,struct _iobuf *fp);
extern int enter_msg(void );
extern int fast_close(int f);
extern long fast_lseek(int f,long offs,int org);
extern int fast_open();
extern int fast_read(int f,unsigned char *st,int l);
extern int fast_write(int f,unsigned char *st,int l);
extern void fastkdup();
extern void fastscan(int argc,unsigned char * *argv);
extern void fasttoss(int argc,unsigned char * *argv);
extern void fe_usage(void );
extern char *fido_fmt(void );
extern char *fido_gets(void );
extern int filedir(unsigned char *name,int times,unsigned char *ret_str,int mode);
extern long filedir1(unsigned char *name,int times,unsigned char *ret_str);
extern int find_msg(int n,int last_msg,int notu);
extern void find_old(void );
extern void find_orig(int totread);
extern void find_seen(int totread);
extern int findkill(struct ktype *k1);
extern int finish_msg(int f);
extern void fs_usage(void );
extern void ft_usage(void );
extern void get_date(void );
extern int get_fido_config(SEACONFIG_PTR cptr);
extern int get_fido_sys(unsigned char *s,int q);
extern void get_hw(AREAS_PTR which);
extern void get_msg_lst(int *msg_nums,int *last_msg,unsigned char *msg_dir,int lowest);
extern int get_sea_config(SEACONFIG_PTR cptr);
extern void get_seen_bys(unsigned char *st_string,int st_stringl,unsigned char *sb_string,int *snets,int *snodes,int *tseen);
extern void get_time(void );
extern int get_to_null(int f,unsigned char *s,int *l);
extern int get_word(unsigned char * *from,unsigned char *new);
extern int high_msg(unsigned char *msg_dir,int *h,int *l);
extern void leave(void );
extern void main(int argc,unsigned char * *argv);
extern void main_system(void );
extern void make_args(int *argc1,unsigned char * *argv1,unsigned char *input_line,int argc2,unsigned char * *argv2);
extern void make_originline(AREAS_PTR which);
extern void mark(void );
extern char *match_byte(char *sb, char c, int endline);
extern unsigned char *mung_path(int n);
extern void netit(MSG_PTR header,unsigned char *holder,int body_count,unsigned char *netpath,int *high_one);
extern long new_days_from_1980(void );
extern void next_str(unsigned char * *p,unsigned char *sb_string,int l,int l1);
extern int open1_outfile(void );
extern int open_outfile(AREAS_PTR which,int j);
extern int out_file(void );
extern void output(void );
extern CMND_PTR parse(void );
extern void put_user(void );
extern int read_all(int f,unsigned char *o);
extern void renum(void );
extern void reset_clk();
extern int rest_of_msg();
extern int scan(AREAS_PTR which);
extern long secs_from_1980(MSG_PTR str);
extern int security_check(void );
extern int set_bits(int tonet,int tonode,unsigned int bits);
extern void set_hw(int mnum,AREAS_PTR which);
extern USR_PTR set_up(void );
extern int shell(void );
extern void sort_em(int *zones,int *nets,int *nodes,int num_nodes,int others,int *o1,unsigned char * *o2);
extern int suffix(int tonet,int tonode,unsigned char *arcext,int del);
extern int sysint(void );
extern int toss(unsigned char *dir);
extern int tossit(unsigned char *fname,unsigned char *header,unsigned char *holder1,int body_count,int f,int msg_num,int area,int delit);
extern int tosspkt(unsigned char *dir);
extern int unpackpkt(unsigned char *pktname);
extern int write1_packet(void );
extern int write_body(int f1,unsigned char *b,int l,int f);
extern int write_header(int f,MSG_PTR h);
extern int write_it(AREAS_PTR which,int j);
extern void write_msg(int f);
extern int write_netmail(AREAS_PTR which,int j);
extern int write_packet(AREAS_PTR which,int j);
extern int write_reply(AREAS_PTR which);
extern void zap_old(void );