Deleted Added
full compact
tst01.c (9202) tst01.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: tst01.c,v 1.14.2.1 1995/06/05 02:24:35 jkh Exp $
9 * $Id: tst01.c,v 1.15.2.1 1995/09/20 10:43:04 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>

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

184 }
185 if (!strcasecmp(*cmds,"delete") && ncmd == 2) {
186 printf("delete = %d\n",
187 Delete_Chunk(d,
188 (struct chunk *)strtol(cmds[1],0,0)));
189 continue;
190 }
191 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>

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

184 }
185 if (!strcasecmp(*cmds,"delete") && ncmd == 2) {
186 printf("delete = %d\n",
187 Delete_Chunk(d,
188 (struct chunk *)strtol(cmds[1],0,0)));
189 continue;
190 }
191 if (!strcasecmp(*cmds,"allfreebsd")) {
192 All_FreeBSD(d);
192 All_FreeBSD(d, 0);
193 continue;
194 }
193 continue;
194 }
195 if (!strcasecmp(*cmds,"dedicate")) {
196 All_FreeBSD(d, 1);
197 continue;
198 }
195 if (!strcasecmp(*cmds,"bios") && ncmd == 4) {
196 Set_Bios_Geom(d,
197 strtol(cmds[1],0,0),
198 strtol(cmds[2],0,0),
199 strtol(cmds[3],0,0));
200 continue;
201 }
202#if 0

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

275 Free_Disk(d);
276 d = Open_Disk(d->name);
277 continue;
278 }
279 if (strcasecmp(*cmds,"help"))
280 printf("\007ERROR\n");
281 printf("CMDS:\n");
282 printf("\tallfreebsd\n");
199 if (!strcasecmp(*cmds,"bios") && ncmd == 4) {
200 Set_Bios_Geom(d,
201 strtol(cmds[1],0,0),
202 strtol(cmds[2],0,0),
203 strtol(cmds[3],0,0));
204 continue;
205 }
206#if 0

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

279 Free_Disk(d);
280 d = Open_Disk(d->name);
281 continue;
282 }
283 if (strcasecmp(*cmds,"help"))
284 printf("\007ERROR\n");
285 printf("CMDS:\n");
286 printf("\tallfreebsd\n");
287 printf("\tdedicate\n");
283 printf("\tbios cyl hd sect\n");
284 printf("\tboot\n");
285 printf("\tbteasy17\n");
286#if 0
287 printf("\tcollapse [pointer]\n");
288#endif
289 printf("\tcreate offset size enum subtype flags\n");
290 printf("\t\tsubtype(part): swap=1, ffs=7\n");

--- 18 unchanged lines hidden ---
288 printf("\tbios cyl hd sect\n");
289 printf("\tboot\n");
290 printf("\tbteasy17\n");
291#if 0
292 printf("\tcollapse [pointer]\n");
293#endif
294 printf("\tcreate offset size enum subtype flags\n");
295 printf("\t\tsubtype(part): swap=1, ffs=7\n");

--- 18 unchanged lines hidden ---