core/fs: clean up, fix and improve the internal readdir() interfaces
authorH. Peter Anvin <hpa@zytor.com>
Sat, 6 Mar 2010 22:51:08 +0000 (14:51 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 6 Mar 2010 22:51:08 +0000 (14:51 -0800)
commit01ac07292bb174312d82fbe8c2849f315eca60ba
tree602944eca28a08345bf933839205be505b521088
parent8fc99886a6f922a5d4ec105cfd72cd70f5b67d8d
core/fs: clean up, fix and improve the internal readdir() interfaces

- Avoid a completely unnecessary malloc/free pair by passing a pointer
  to the filesystem driver;
- Make sure d_reclen is always set correctly;
- Make sure the d_type field is set correctly.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/ext2/ext2.c
core/fs/fat/fat.c
core/fs/iso9660/iso9660.c
core/fs/readdir.c
core/include/fs.h