// vfs.c // Author: Josh Holtrop // Date: 03/11/04 // Modified: 03/16/04 #include "vfs.h" //#include "fs/vfat.h" #include "hos_defines.h" //#include "block/rd.h" //#include "block/loop.h" #include "lang/LinkedList.h" #include "kio.h" void vfs_init() { LinkedList test; for (int i = 0; i < 100; i++) test.insert(i/2, i); printf("num: %d\t", test.numElements()); for (int i = 0; i < test.numElements(); i++) printf("%d\t", test[i]); while (test.numElements()) test.pop_back(); printf("\n"); for (int i = 0; i < 6; i++) test.push_back(i << 1); for (int i = 0; i < test.numElements(); i++) printf("%d\t", test[i]); printf("\nnum: %d\t", test.numElements()); while (test.numElements()) { test.remove(0); for (int i = 0; i < test.numElements(); i++) printf("%d\t", test[i]); printf("\n"); } }