# char *sccsid = "@(#)clri.c 2.3"; /* * clri filsys inumber ... */ #include #ifdef UCB_NKB #include #else #include #endif #include #define ISIZE (sizeof(struct dinode)) #ifndef UCB_NKB #define BSIZE 512 #endif #define NI (BSIZE/ISIZE) struct ino { char junk[ISIZE]; }; struct ino buf[NI]; int status; main(argc, argv) char *argv[]; { register i, f; unsigned n; int j, k; long off; if(argc < 3) { printf("usage: clri filsys inumber ...\n"); exit(4); } f = open(argv[1], 2); if(f < 0) { printf("cannot open %s\n", argv[1]); exit(4); } for(i=2; i '9') return(0); return(1); }