#include #include #include #include "fakedisc.h" int createdisc(char *name, long int numblocks) { block b; int discnum,x; long int i; for (i=0; i<512; i++) b[i]=0; discnum=open(name, O_RDWR|O_CREAT, 0600); if (discnum<0) { fprintf(stderr,"Create failed for \"%s\"\n",name); return (0); } for (i=0; i