~ubuntu-branches/ubuntu/precise/arj/precise-security

« back to all changes in this revision

Viewing changes to arj_file.h

  • Committer: Bazaar Package Importer
  • Author(s): Guillem Jover
  • Date: 2004-06-27 08:07:09 UTC
  • Revision ID: james.westby@ubuntu.com-20040627080709-1gkxm72ex66gkwe4
Tags: upstream-3.10.21
ImportĀ upstreamĀ versionĀ 3.10.21

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id: arj_file.h,v 1.3 2003/04/27 20:54:41 andrew_belov Exp $
 
3
 * ---------------------------------------------------------------------------
 
4
 * Prototypes of the functions located in ARJ_FILE.C are declared here.
 
5
 *
 
6
 */
 
7
 
 
8
#ifndef ARJ_FILE_INCLUDED
 
9
#define ARJ_FILE_INCLUDED
 
10
 
 
11
/* Writes a block to the output file and verifies if all has been written */
 
12
 
 
13
#define file_write(block, el, len, stream) \
 
14
{                                          \
 
15
 if(fwrite(block, el, len, stream)!=len)   \
 
16
  error(M_DISK_FULL);                      \
 
17
}
 
18
 
 
19
/* Prototypes */
 
20
 
 
21
int file_close(FILE *stream);
 
22
FILE *file_open_noarch(char *name, char *mode);
 
23
FILE *file_create(char *name, char *mode);
 
24
int fget_byte(FILE *stream);
 
25
unsigned int fget_word(FILE *stream);
 
26
unsigned long fget_longword(FILE *stream);
 
27
int fread_crc(char *buffer, int count, FILE *stream);
 
28
void fwrite_crc(char *buffer, int count, FILE *stream);
 
29
int extraction_stub(char *block, int block_len, int action);
 
30
void decode_start_stub();
 
31
void decode_end_stub();
 
32
char *find_tmp_filename(char *name_format);
 
33
int find_num_ext(char *name, int mode);
 
34
int find_arcmail_name(char *name);
 
35
void query_cmd();
 
36
#if SFX_LEVEL>=ARJSFXV
 
37
int query_action(int def, int qtype, FMSG *query);
 
38
#else
 
39
int query_action();
 
40
#endif
 
41
int pause();
 
42
void nputlf();
 
43
int delete_files(char *name);
 
44
#if SFX_LEVEL>=ARJSFXV
 
45
void display_comment(char FAR *cmt);
 
46
#else
 
47
void display_comment(char *cmt);
 
48
#endif
 
49
void display_indicator(long bytes);
 
50
#ifdef REARJ
 
51
int rename_with_check(char *oldname, char *newname);
 
52
#else
 
53
void rename_with_check(char *oldname, char *newname);
 
54
#endif
 
55
int delete_processed_files(struct flist_root *root);
 
56
void fput_byte(int c, FILE *stream);
 
57
void fput_word(unsigned int w, FILE *stream);
 
58
void fput_dword(unsigned long l, FILE *stream);
 
59
void flush_compdata();
 
60
void init_putbits();
 
61
void shutdown_putbits();
 
62
int group_clear_arch(struct flist_root *root);
 
63
 
 
64
#endif
 
65