/*static char *SCCSID = "@(#)glb.c	6.1 90/11/18";*/
/*static char *SCCSID = "@(#)glb.c 13.3 90/01/30";*/
/*
 * Global variable declarations.
 */

#include <setjmp.h>
#include "ldefs.h"
#include "ltypes.h"

/*
 * Variables to handle file and disk I/O.
 */

USHORT rec_src_handle = 0;
USHORT rec_dest_handle = 0;

ULONG rec_rlen = 0L;
ULONG rec_fsize = 0L;

USHORT rec_write_error = FALSE;

ULONG rec_good_bytes = 0L;
ULONG rec_retry_bytes = 0L;
ULONG rec_lost_bytes = 0L;

/*
 * The various messages that RECOVER can produce.
 */

#ifdef TIMESTAMPS
UCHAR rec_version_str [] = "Pinball RECOVER Boot_OEM 1.03\n";
UCHAR rec_timestamp_str [] = "Built %s %s\n\n";
#endif

/*
 * Array of error message IDs, indexed by error code (in DEFS.H).
 */

USHORT rec_error_messages [] = {
  0,
  REC_USAGE_STR,
  REC_OPEN_ERROR_STR,
  REC_INSF_MEM_ERROR_STR,
  REC_READ_ERROR_STR,
  REC_WRITE_ERROR_STR
};

jmp_buf rec_error;
