8ae68834f1
Pauls.
56 lines
1.3 KiB
C
56 lines
1.3 KiB
C
/*
|
|
* Copyright (c) 1994, Paul Richards.
|
|
*
|
|
* All rights reserved.
|
|
*
|
|
* This software may be used, modified, copied, distributed, and
|
|
* sold, in both source and binary form provided that the above
|
|
* copyright and these terms are retained, verbatim, as the first
|
|
* lines of this file. Under no circumstances is the author
|
|
* responsible for the proper functioning of this software, nor does
|
|
* the author assume any responsibility for damages incurred with
|
|
* its use.
|
|
*/
|
|
|
|
#define MAX_NO_DISKS 10
|
|
#define SCRATCHSIZE 1024
|
|
#define ERRMSGSIZE 256
|
|
#define DEFROOTSIZE 16
|
|
#define DEFSWAPSIZE 32
|
|
#define DEFUSRSIZE 120
|
|
|
|
#define BOOT_MAGIC 0xAA55
|
|
#define ACTIVE 0x80
|
|
|
|
#define COPYRIGHT_FILE "/COPYRIGHT"
|
|
#define README_FILE "/README"
|
|
|
|
#define STATUSFILE "sysinstall.stat"
|
|
#define NOT_INSTALLED 0
|
|
#define DISK_READY 1
|
|
#define INSTALLED_BASE 2
|
|
|
|
struct sysinstall
|
|
{
|
|
char media[90];
|
|
int status;
|
|
char seq_name[64];
|
|
int seq_size;
|
|
int seq_no;
|
|
char archive[64];
|
|
char root_dev[90];
|
|
};
|
|
|
|
extern int no_disks;
|
|
extern int inst_disk;
|
|
extern unsigned char *scratch;
|
|
extern unsigned char *errmsg;
|
|
extern int *avail_fds;
|
|
extern struct disklabel *avail_disklabels;
|
|
extern u_short dkcksum(struct disklabel *);
|
|
|
|
void TellEm __P((char *fmt, ...));
|
|
void stage0 __P((void));
|
|
void *Malloc __P((size_t size));
|
|
|