home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff224.lzh / Xebec / scum.c < prev    next >
C/C++ Source or Header  |  1989-06-20  |  740b  |  29 lines

  1. /*
  2. This tiny program makes it easier to mount the Fast File System on a Xebec
  3. hard disk.  For some reason, you can't successfully Mount a Xebec disk
  4. partition with FFS unless you first either Mount a Slow File System
  5. partition, or run this little program.  It returns 10 if it fails, which
  6. probably means it can't find devs:scsi.device.
  7.  
  8. You can mount DH0: by first giving the command "Scum" and then "Mount DH0:".
  9. I have no idea why this program is either necessary or sufficient.
  10.  
  11. By Paul Kienitz, public domain.
  12. */
  13.  
  14.  
  15. #include <devices/trackdisk.h>
  16.  
  17. char quest[sizeof(struct IOExtTD)];
  18.  
  19. long OpenDevice();
  20.  
  21. long _main()
  22. {
  23.     if (!OpenDevice("scsi.device", 0L, quest, 0L)) {
  24.     CloseDevice(quest);
  25.     return (0L);
  26.     } else
  27.     return (10L);
  28. }
  29.