#ifdef __cplusplus
extern "C" {
#endif
#ifndef H_SCCSID
#include <sccs.h>
#endif /* ~H_SCCSID */
H_SCCSID(@(#)dumprestor.h	1.10	AIX)	/* Modified 9/17/89 00:18:48 */
/*      @(#)dumprestor.h	5.3 u370  source        */
/* 
 * (C) Copyright IBM Corp. 1989 
 * All Rights Reserved 
 * Licensed Materials - Property of IBM 
 */

#ifdef  SIXTEENBITS
#	define MEDIUMBUFFER
#else  ~SIXTEENBITS
#	define HUGEBUFFER
#endif ~SIXTEENBITS

#ifdef CC4
#ifdef HUGEBUFFER
#	define NTREC	40
#else ~HUGEBUFFER
#ifdef  MEDIUMBUFFER
#	define NTREC   	14
#else  ~MEDIUMBUFFER
#	define NTREC   	10
#endif ~MEDIUMBUFFER
#endif ~HUGEBUFFER
#else /* ~CC4 */
#ifdef M_I286
#define NTREC   	((20 * 512)/BSIZE)
#else /* ~M_I286 */
#define NTREC   	20
#endif /* ~M_I286 */
#endif /* ~CC4 */

#define MLEN    	16
#define MSIZ    	4096

#define TS_TAPE 	1
#define TS_INODE	2
#define TS_BITS 	3
#define TS_ADDR 	4
#define TS_END  	5
#define TS_CLRI 	6

#if	defined(XENIX) || !defined(CC4)
#define MAGIC   	(int)60011
#else	(!XENIX && CC4)
#define MAGIC   	(int)60088
#endif	(!XENIX && CC4)

#define CHECKSUM	(int)84446
struct	spcl {
	int	c_type;
	time_t	c_date;
	time_t	c_ddate;
	int	c_volume;
	daddr_t	c_tapea;
	ino_t	c_inumber;
	int	c_magic;
	int	c_checksum;
	struct	dinode	c_dinode;
	int	c_count;
	char	c_addr[BSIZE];
} spcl;

struct	idates {
#ifdef  CC4
	char	id_name[30];
#else  ~CC4
	char	id_name[16];
#endif ~CC4
	char	id_incno;
	time_t	id_ddate;
};

#define	DUMPOUTFMT	"%-30s %c %s"		/* for printf */
						/* name, incno, ctime(date) */
#define	DUMPINFMT	"%30s %c %[^\n]\n"	/* inverse for scanf */

#ifdef __cplusplus
}
#endif
