int floppyboot(int dev, char *file, Boot *b) { Fs *fs; if(strncmp(file, "dos!", 4) == 0) file += 4; else if(strchr(file, '!') || strcmp(file, "")==0) { print("syntax is fd0!file\n"); return -1; } fs = floppygetfspart(dev, "dos", 1); if(fs == nil) return -1; return fsboot(fs, file, b); }
int floppyboot(int dev, char *file, Boot *b) { Fs *fs; /* there are no partitions on floppies */ if(strncmp(file, "dos!", 4) == 0) file += 4; if(strchr(file, '!') != nil || strcmp(file, "") == 0) { print("syntax is fd0!file\n"); return -1; } fs = floppygetfspart(dev, "dos", 1); if(fs == nil) return -1; return fsboot(fs, file, b); }