File: recovery.h

package info (click to toggle)
arj 3.10.22-13
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,352 kB
  • ctags: 4,701
  • sloc: ansic: 32,990; makefile: 2,034; sh: 1,547; asm: 436
file content (23 lines) | stat: -rw-r--r-- 709 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * $Id: recovery.h,v 1.1.1.2 2002/03/28 00:03:24 andrew_belov Exp $
 * ---------------------------------------------------------------------------
 * Prototypes of the functions located in RECOVERY.C are declared here.
 *
 */

#ifndef RECOVERY_INCLUDED
#define RECOVERY_INCLUDED

/* Recovery threshold */

#define RECOVERY_THRESHOLD       488    /* Each 488K is 1 block */

/* Prototypes */

unsigned long calc_protdata_size(unsigned long limit, int threshold);
int create_protfile(FILE *stream, unsigned long offset, int state);
unsigned long chk_prot_sig(FILE *stream, unsigned long rp_ofs);
int recover_file(char *name, char *protname, char *rec_name, int test_mode, unsigned long sig_offset);

#endif