~ubuntu-branches/ubuntu/raring/binkd/raring-proposed

« back to all changes in this revision

Viewing changes to inbound.h

  • Committer: Bazaar Package Importer
  • Author(s): Marco d'Itri
  • Date: 2002-03-24 22:52:25 UTC
  • Revision ID: james.westby@ubuntu.com-20020324225225-7ru6itlapn03nl35
Tags: upstream-0.9.5a
ImportĀ upstreamĀ versionĀ 0.9.5a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id: inbound.h,v 2.0 2001/01/10 12:12:38 gul Exp $
 
3
 *
 
4
 * $Log: inbound.h,v $
 
5
 * Revision 2.0  2001/01/10 12:12:38  gul
 
6
 * Binkd is under CVS again
 
7
 *
 
8
 *
 
9
 */
 
10
#ifndef _inbound_h
 
11
#define _inbound_h
 
12
 
 
13
/*
 
14
 * Checks if the file already exists in our inbound. !0=ok, 0=failed.
 
15
 * Sets realname[MAXPATHLEN]
 
16
 */
 
17
int inb_test (char *filename, off_t size, time_t t,
 
18
               char *inbound, char *realname);
 
19
 
 
20
/*
 
21
 * Open a partial file in the inbound directory for appending.
 
22
 * Creates it if the file does not exist
 
23
 */
 
24
FILE *inb_fopen (char *netname, off_t size, time_t t,
 
25
                  FTN_ADDR *from, int nfa, char *inbound);
 
26
 
 
27
/*
 
28
 * File is complete, rename it to it's realname. 1=ok, 0=failed.
 
29
 * Sets realname[MAXPATHLEN]
 
30
 */
 
31
int inb_done (char *netname, off_t size, time_t t,
 
32
               FTN_ADDR *from, int nfa, char *inbound, char *realname);
 
33
 
 
34
/*
 
35
 * Remove partial file
 
36
 */
 
37
int inb_reject (char *netname, off_t size, time_t time,
 
38
                 FTN_ADDR *from, int nfa, char *inbound);
 
39
 
 
40
/*
 
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.
 
43
 */
 
44
int find_tmp_name (char *s, char *file, off_t size,
 
45
                    time_t time, FTN_ADDR *from, int nfa, char *inbound);
 
46
 
 
47
#endif