1994-10-15 15:34:49 +01:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
1994-10-20 07:08:19 +01:00
|
|
|
#define TITLE "FreeBSD 2.0.1-Development Installation"
|
|
|
|
|
1994-10-26 04:09:19 +00:00
|
|
|
#define BOOT1 "/stand/sdboot"
|
|
|
|
#define BOOT2 "/stand/bootsd"
|
|
|
|
|
1994-10-26 07:14:51 +00:00
|
|
|
#define BOOT1 "/stand/sdboot"
|
|
|
|
#define BOOT2 "/stand/bootsd"
|
|
|
|
|
1994-10-20 07:08:19 +01:00
|
|
|
#define MAXFS 25
|
|
|
|
|
1994-10-15 15:34:49 +01:00
|
|
|
#define MAX_NO_DISKS 10
|
1994-10-17 08:13:13 +01:00
|
|
|
#define SCRATCHSIZE 1024
|
1994-10-18 08:56:34 +01:00
|
|
|
#define ERRMSGSIZE 256
|
|
|
|
#define DEFROOTSIZE 16
|
1994-10-21 06:36:43 +01:00
|
|
|
#define DEFSWAPSIZE 16
|
1994-10-26 04:09:19 +00:00
|
|
|
#define DEFUSRSIZE 80
|
|
|
|
#define DEFFSIZE 1024
|
|
|
|
#define DEFFRAG 8
|
1994-10-17 08:13:13 +01:00
|
|
|
|
1994-10-15 15:34:49 +01:00
|
|
|
#define BOOT_MAGIC 0xAA55
|
|
|
|
#define ACTIVE 0x80
|
|
|
|
|
1994-10-20 03:51:55 +01:00
|
|
|
#define COPYRIGHT_FILE "/COPYRIGHT"
|
|
|
|
#define README_FILE "/README"
|
|
|
|
|
1994-10-20 07:08:19 +01:00
|
|
|
#ifndef EXTERN
|
|
|
|
# define EXTERN extern
|
|
|
|
#endif
|
|
|
|
|
|
|
|
EXTERN char *devicename[MAXFS+1];
|
|
|
|
EXTERN char *mountpoint[MAXFS+1];
|
|
|
|
EXTERN int dialog_active;
|
|
|
|
|
1994-10-26 07:14:51 +00:00
|
|
|
extern unsigned char **avail_disknames;
|
1994-10-18 08:56:34 +01:00
|
|
|
extern int no_disks;
|
|
|
|
extern int inst_disk;
|
|
|
|
extern unsigned char *scratch;
|
|
|
|
extern unsigned char *errmsg;
|
|
|
|
extern int *avail_fds;
|
1994-10-26 04:09:19 +00:00
|
|
|
extern unsigned char **avail_disknames;
|
1994-10-18 08:56:34 +01:00
|
|
|
extern struct disklabel *avail_disklabels;
|
|
|
|
extern u_short dkcksum(struct disklabel *);
|
1994-10-20 03:51:55 +01:00
|
|
|
|
1994-10-20 07:08:19 +01:00
|
|
|
/* utils.c */
|
1994-10-21 19:08:33 +01:00
|
|
|
void Abort __P((void));
|
|
|
|
void ExitSysinstall __P((void));
|
1994-10-20 03:51:55 +01:00
|
|
|
void TellEm __P((char *fmt, ...));
|
|
|
|
void stage0 __P((void));
|
|
|
|
void *Malloc __P((size_t size));
|
1994-10-20 07:08:19 +01:00
|
|
|
char *StrAlloc __P((char *str));
|
|
|
|
void Fatal __P((char *fmt, ...));
|
1994-10-21 19:08:33 +01:00
|
|
|
void AskAbort __P((char *fmt, ...));
|
1994-10-26 02:53:15 +00:00
|
|
|
void MountUfs __P((char *device, char *mountpoint, int do_mkdir,int flags));
|
1994-10-21 03:14:54 +01:00
|
|
|
void Mkdir __P((char *path));
|
1994-10-26 02:53:15 +00:00
|
|
|
void CopyFile __P((char *p1, char *p2));
|
1994-10-21 03:14:54 +01:00
|
|
|
|
|
|
|
/* exec.c */
|
|
|
|
int exec __P((int magic, char *cmd, char *args, ...));
|
|
|
|
#define EXEC_MAXARG 100
|
1994-10-20 07:08:19 +01:00
|
|
|
|
|
|
|
/* stage0.c */
|
|
|
|
void stage0 __P((void));
|
|
|
|
|
|
|
|
/* stage1.c */
|
|
|
|
void stage1 __P((void));
|
|
|
|
|
|
|
|
/* stage2.c */
|
|
|
|
void stage2 __P((void));
|
|
|
|
|
|
|
|
/* stage3.c */
|
|
|
|
void stage3 __P((void));
|
1994-10-20 03:51:55 +01:00
|
|
|
|
1994-10-26 02:53:15 +00:00
|
|
|
/* stage4.c */
|
|
|
|
void stage4 __P((void));
|
|
|
|
|
|
|
|
/* stage5.c */
|
|
|
|
void stage5 __P((void));
|
|
|
|
|
1994-10-20 07:08:19 +01:00
|
|
|
/* termcap.c */
|
|
|
|
int set_termcap __P((void));
|
1994-10-26 02:53:15 +00:00
|
|
|
|
|
|
|
/* makedevs.c */
|
|
|
|
int makedevs __P((void));
|