Implement scandir() for OProfile.
diff --git a/libc/include/dirent.h b/libc/include/dirent.h
index edfb639..6e7b204 100644
--- a/libc/include/dirent.h
+++ b/libc/include/dirent.h
@@ -68,7 +68,11 @@
extern int closedir(DIR* dirp);
extern void rewinddir(DIR *dirp);
extern int dirfd(DIR* dirp);
-
+extern int alphasort(const void *a, const void *b);
+extern int scandir(const char *dir, struct dirent ***namelist,
+ int(*filter)(const struct dirent *),
+ int(*compar)(const struct dirent **,
+ const struct dirent **));
__END_DECLS
#endif /* _DIRENT_H_ */