tldm-universe/Ardent/UV/gcidir/include/backup.h
2024-09-09 17:51:08 -04:00

67 lines
3.0 KiB
C
Executable File

#ifndef h_backup
#define h_backup
/******************************************************************************
*
* Declarations for UVbackup & UVrestore externals
*
* Module %M% Version %I% Date %H%
*
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
* This is unpublished proprietary source code of Ardent Software Inc.
* The copyright notice above does not evidence any actual or intented
* publication of such source code.
*******************************************************************************
*
* Maintenence log - insert most recent change descriptions at top
*
* Date.... GTAR# WHO Description.........................................
* 10/14/98 23801 SAP Change copyrights.
* 07/02/98 16692 GMH Support deleted records
* 05/04/98 22671 GMH Split out header items used outside uvbackup/uvrestore
*
******************************************************************************/
/* The #define entries below are utilized by other modules outside the normal
* uvbackup/uvrestore utility. In order to simplify, these items now exist
* within this header. The other header information only pertinent to the
* backup/restore can now be found in backup1.h.
*
* At present, 7 other modules utilize the information found in this header.
* These are:
* 1. DBclearf.c
* 2. DBscanhash.c
* 3. DBwrite.c
* 4. blook.c
* 5. pi.t30conv.c
* 6. qyacc.c
* 7. DBdelete.c
*
* The definitions below are marked with the number indicating the module number
* that makes use of the definition.
******************************************************************************/
/* possible values for fdesc.bakflgs. */
#define BY_COUNT 0x020 /* used in 6 */
#define BY_BAKRES 0x010 /* used in 2, 3 */
#define FILE_CHNGD 0x08 /* used in 1, 3, 6, 7*/
/*****************************************************************************/
/* Backup mode flags */
#define DAILY 0x04 /* used in 2, 4 */
#define WEEKLY 0x02 /* used in 2, 3, 4 */
#define FULL 0x01 /* used in 3 */
/*****************************************************************************/
/* defines for return from DBscanhash */
#define SKIP_TO_NEXT_FILE 0x0200 /* used in 2 */
#define SKIP_TO_NEXT_RECORD 0x0400 /* used in 2 */
#define BAD_BLINK_VALUE 0x0800 /* used in 2 */
#define BAD_BUFFER_FLUSH 0x01000 /* used in 2 */
#define BAD_SEMAPHORE 0x02000 /* used in 2 */
#define BAD_BLOCK_READ 0x04000 /* used in 2 */
#define GROUP_DEL_BIT_SET 0x08000 /* used in 2 */
#define GROUP_NUMBER_NEXT 0x10000 /* used in 2 */
/*****************************************************************************/
/* possible fdesc->f.b.bckupflg values in record block header */
#define NEVER_BACKED_UP RRbackup /* used in 2, 3, 5 */
#define ON_DAILY_BACKUP RRbackup-1 /* used in 2, 3 */
#define ON_WEEKLY_BACKUP RRbackup-2 /* used in 2, 3 */
#define ON_FULL_BACKUP RRbackup-3 /* used in 2, 3 */
#endif /* end of backup.h */