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

« back to all changes in this revision

Viewing changes to recovery.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: recovery.h,v 1.1.1.2 2002/03/28 00:03:24 andrew_belov Exp $
 
3
 * ---------------------------------------------------------------------------
 
4
 * Prototypes of the functions located in RECOVERY.C are declared here.
 
5
 *
 
6
 */
 
7
 
 
8
#ifndef RECOVERY_INCLUDED
 
9
#define RECOVERY_INCLUDED
 
10
 
 
11
/* Recovery threshold */
 
12
 
 
13
#define RECOVERY_THRESHOLD       488    /* Each 488K is 1 block */
 
14
 
 
15
/* Prototypes */
 
16
 
 
17
unsigned long calc_protdata_size(unsigned long limit, int threshold);
 
18
int create_protfile(FILE *stream, unsigned long offset, int state);
 
19
unsigned long chk_prot_sig(FILE *stream, unsigned long rp_ofs);
 
20
int recover_file(char *name, char *protname, char *rec_name, int test_mode, unsigned long sig_offset);
 
21
 
 
22
#endif
 
23