Deleted Added
full compact
wizard.c (9202) wizard.c (12661)
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
9 * $Id: wizard.c,v 1.5.2.1 1995/06/05 02:25:27 jkh Exp $
9 * $Id: wizard.c,v 1.6.2.1 1995/09/20 10:43:13 jkh Exp $
10 *
11 */
12
13#include <stdio.h>
14#include <stdlib.h>
15#include <unistd.h>
16#include <fcntl.h>
17#include <string.h>

--- 132 unchanged lines hidden (view full) ---

150 if (!strcasecmp(*cmds,"x")) { break; }
151 if (!strcasecmp(*cmds,"delete") && ncmd == 2) {
152 printf("delete = %d\n",
153 Delete_Chunk(d,
154 (struct chunk *)strtol(cmds[1],0,0)));
155 continue;
156 }
157 if (!strcasecmp(*cmds,"allfreebsd")) {
10 *
11 */
12
13#include <stdio.h>
14#include <stdlib.h>
15#include <unistd.h>
16#include <fcntl.h>
17#include <string.h>

--- 132 unchanged lines hidden (view full) ---

150 if (!strcasecmp(*cmds,"x")) { break; }
151 if (!strcasecmp(*cmds,"delete") && ncmd == 2) {
152 printf("delete = %d\n",
153 Delete_Chunk(d,
154 (struct chunk *)strtol(cmds[1],0,0)));
155 continue;
156 }
157 if (!strcasecmp(*cmds,"allfreebsd")) {
158 All_FreeBSD(d);
158 All_FreeBSD(d, 0);
159 continue;
160 }
159 continue;
160 }
161 if (!strcasecmp(*cmds,"dedicate")) {
162 All_FreeBSD(d, 1);
163 continue;
164 }
161 if (!strcasecmp(*cmds,"bios") && ncmd == 4) {
162 Set_Bios_Geom(d,
163 strtol(cmds[1],0,0),
164 strtol(cmds[2],0,0),
165 strtol(cmds[3],0,0));
166 continue;
167 }
168 if (!strcasecmp(*cmds,"list")) {

--- 39 unchanged lines hidden (view full) ---

208 Free_Disk(d);
209 d = Open_Disk(d->name);
210 continue;
211 }
212 if (strcasecmp(*cmds,"help"))
213 printf("\007ERROR\n");
214 printf("CMDS:\n");
215 printf("allfreebsd\t\t");
165 if (!strcasecmp(*cmds,"bios") && ncmd == 4) {
166 Set_Bios_Geom(d,
167 strtol(cmds[1],0,0),
168 strtol(cmds[2],0,0),
169 strtol(cmds[3],0,0));
170 continue;
171 }
172 if (!strcasecmp(*cmds,"list")) {

--- 39 unchanged lines hidden (view full) ---

212 Free_Disk(d);
213 d = Open_Disk(d->name);
214 continue;
215 }
216 if (strcasecmp(*cmds,"help"))
217 printf("\007ERROR\n");
218 printf("CMDS:\n");
219 printf("allfreebsd\t\t");
220 printf("dedicate\t\t");
216 printf("bios cyl hd sect\n");
217 printf("collapse [pointer]\t\t");
218 printf("create offset size enum subtype flags\n");
219 printf("subtype(part): swap=1, ffs=7\t\t");
220 printf("delete pointer\n");
221 printf("list\t\t");
222 printf("quit\n");
223 printf("read [disk]\t\t");
224 printf("scan\n");
225 printf("write\t\t");
226 printf("ENUM:\n\t");
227 for(i=0;chunk_n[i];i++)
228 printf("%d = %s%s",i,chunk_n[i],i == 4 ? "\n\t" : " ");
229 printf("\n");
230
231 }
232}
221 printf("bios cyl hd sect\n");
222 printf("collapse [pointer]\t\t");
223 printf("create offset size enum subtype flags\n");
224 printf("subtype(part): swap=1, ffs=7\t\t");
225 printf("delete pointer\n");
226 printf("list\t\t");
227 printf("quit\n");
228 printf("read [disk]\t\t");
229 printf("scan\n");
230 printf("write\t\t");
231 printf("ENUM:\n\t");
232 for(i=0;chunk_n[i];i++)
233 printf("%d = %s%s",i,chunk_n[i],i == 4 ? "\n\t" : " ");
234 printf("\n");
235
236 }
237}