home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / alt_os / mint / mfs6011 / source / flist.c < prev    next >
C/C++ Source or Header  |  1994-05-11  |  362b  |  26 lines

  1. /* Simple inode in use dumper */
  2.  
  3. #include <mintbind.h>
  4. #include <stdio.h>
  5.  
  6.  
  7. #define LSIZE 1024
  8.  
  9. struct
  10. {
  11.     long limit;
  12.     unsigned short lst[LSIZE];
  13. } fl;
  14.  
  15. main(argc,argv)
  16. int argc;
  17. char **argv;
  18. {
  19.  
  20.     long i;
  21.     fl.limit=LSIZE;
  22.     printf("Returned %ld Inodes in use:\n",Dcntl(0x10e,argv[1],&fl));
  23.     for(i=0;i<LSIZE && fl.lst[i];i++) printf("%u\n",fl.lst[i]);
  24.     exit(0);
  25. }
  26.