/* project 6 file for UHM ICS 612, Spring 2007*/ /* This program is public domain. As written, it does very little. * You are welcome to use it and modify it as you see fit, as long * as I am not responsible for anything you do with it. */ #include /* open an exisiting file for reading or writing */ int my_open (char * path) { printf ("my_open (%s) not implemented\n", path); return -1; } /* open a new file for writing only */ int my_creat (char * path) { printf ("my_creat (%s) not implemented\n", path); return -1; } /* sequentially read from a file */ int my_read (int fd, void * buf, int count) { printf ("my_read (%d, %x, %d) not implemented\n", fd, buf, count); return -1; } /* sequentially write to a file */ int my_write (int fd, void * buf, int count) { printf ("my_write (%d, %x, %d) not implemented\n", fd, buf, count); return -1; } int my_close (int fd) { printf ("my_close (%d) not implemented\n", fd); return -1; } int my_remove (char * path) { printf ("my_remove (%s) not implemented\n", path); return -1; } int my_rename (char * old, char * new) { printf ("my_remove (%s, %s) not implemented\n", old, new); return -1; } /* only works if all but the last component of the path already exists */ int my_mkdir (char * path) { printf ("my_mkdir (%s) not implemented\n", path); return -1; } int my_rmdir (char * path) { printf ("my_rmdir (%s) not implemented\n", path); return -1; } /* check to see if the device already has a file system on it, * and if not, create one. */ void my_mkfs () { printf ("my_mkfs not implemented\n"); }