wizard.c (12661) | wizard.c (15439) |
---|---|
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.6.2.1 1995/09/20 10:43:13 jkh Exp $ | 9 * $Id: wizard.c,v 1.7 1995/12/07 10:34:25 peter Exp $ |
10 * 11 */ 12 13#include <stdio.h> 14#include <stdlib.h> 15#include <unistd.h> 16#include <fcntl.h> 17#include <string.h> --- 185 unchanged lines hidden (view full) --- 203 continue; 204 } 205 if (!strcasecmp(*cmds,"scan")) { 206 Scan_Disk(d); 207 continue; 208 } 209 if (!strcasecmp(*cmds,"write")) { 210 printf("Write=%d\n", | 10 * 11 */ 12 13#include <stdio.h> 14#include <stdlib.h> 15#include <unistd.h> 16#include <fcntl.h> 17#include <string.h> --- 185 unchanged lines hidden (view full) --- 203 continue; 204 } 205 if (!strcasecmp(*cmds,"scan")) { 206 Scan_Disk(d); 207 continue; 208 } 209 if (!strcasecmp(*cmds,"write")) { 210 printf("Write=%d\n", |
211 Write_Disk(d)); | 211 Fake ? 0 : Write_Disk(d)); |
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"); --- 18 unchanged lines hidden --- | 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"); --- 18 unchanged lines hidden --- |