Replace lsdir system call by readdir, isdir system calls,
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 19 May 2006 20:38:50 +0000 (20:38 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 19 May 2006 20:38:50 +0000 (20:38 +0000)
commita4613d70fb56b93216299f6253698ab0e4bbd46d
tree50d3a62019a89d8396a54cde8dae2219f291d568
parenta26618d6f33f13301eb93ee26d6953c76019d879
Replace lsdir system call by readdir, isdir system calls,
which are far less offensive to good taste.
Add dir_get_inode() and dir_readdir() functions.
Remove dir_list(), filesys_list().  The latter was unused.
Update project documentation, solutions, and tests.
Rewrite "ls" example program to use the new interface, and add the
ability to specify a directory name and a "long format" feature.
Add "cd" command to shell.
15 files changed:
doc/filesys.texi
src/examples/ls.c
src/examples/shell.c
src/filesys/directory.c
src/filesys/directory.h
src/filesys/filesys.c
src/filesys/filesys.h
src/filesys/fsutil.c
src/lib/syscall-nr.h
src/lib/user/syscall.c
src/lib/user/syscall.h
src/tests/filesys/extended/dir-lsdir.c
src/tests/filesys/extended/dir-lsdir.ck
src/tests/filesys/extended/dir-open.c
src/tests/filesys/extended/dir-open.ck