2
* $Id: inbound.h,v 2.0 2001/01/10 12:12:38 gul Exp $
5
* Revision 2.0 2001/01/10 12:12:38 gul
6
* Binkd is under CVS again
14
* Checks if the file already exists in our inbound. !0=ok, 0=failed.
15
* Sets realname[MAXPATHLEN]
17
int inb_test (char *filename, off_t size, time_t t,
18
char *inbound, char *realname);
21
* Open a partial file in the inbound directory for appending.
22
* Creates it if the file does not exist
24
FILE *inb_fopen (char *netname, off_t size, time_t t,
25
FTN_ADDR *from, int nfa, char *inbound);
28
* File is complete, rename it to it's realname. 1=ok, 0=failed.
29
* Sets realname[MAXPATHLEN]
31
int inb_done (char *netname, off_t size, time_t t,
32
FTN_ADDR *from, int nfa, char *inbound, char *realname);
37
int inb_reject (char *netname, off_t size, time_t time,
38
FTN_ADDR *from, int nfa, char *inbound);
41
* Searches for the ``file'' in the inbound and returns it's tmp name in s.
42
* S must have MAXPATHLEN chars. Returns 0 on error, 1=found, 2=created.
44
int find_tmp_name (char *s, char *file, off_t size,
45
time_t time, FTN_ADDR *from, int nfa, char *inbound);