Index: uspace/lib/libc/generic/vfs.c
===================================================================
--- uspace/lib/libc/generic/vfs.c	(revision 0ee4322fd8ff41e424fb8a9d65e8b6d189d22883)
+++ uspace/lib/libc/generic/vfs.c	(revision 4cc2dddec0731c6f01a0f290b358ad6fbd7e81f4)
@@ -34,5 +34,7 @@
  
 #include <vfs.h>
+#include <stdlib.h>
 #include <unistd.h>
+#include <dirent.h>
 #include <fcntl.h>
 #include <ipc/ipc.h>
@@ -236,4 +238,40 @@
 }
 
+DIR *opendir(const char *dirname)
+{
+	DIR *dirp = malloc(sizeof(DIR));
+	if (!dirp)
+		return NULL;
+	dirp->fd = open(dirname, 0);	/* TODO: must be a directory */
+	if (!dirp->fd) {
+		free(dirp);
+		return NULL;
+	}
+	dirp->pos = 0;
+	return dirp;
+}
+
+struct dirent *readdir(DIR *dirp)
+{
+	return NULL;	/* TODO */	
+}
+
+void rewinddir(DIR *dirp)
+{
+	dirp->pos = 0;
+}
+
+int closedir(DIR *dirp)
+{
+	(void) close(dirp->fd);
+	free(dirp);
+	return 0;
+}
+
+int close(int fildes)
+{
+	return 0;	/* TODO */
+}
+
 /** @}
  */
