From 64b0b49a1f23da9faa680f8158cb8a12cd4d118c Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 3 Oct 2024 14:21:12 +0200 Subject: libc: Add readdir_multi This is a faster, zero allocation function for reading directory entries. It has massive speed increases for certain applications since malloc(especially my implementation) is really slow in comparison. --- include/dirent.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/dirent.h') diff --git a/include/dirent.h b/include/dirent.h index dcd7f59..66e8e8f 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -34,5 +34,6 @@ int scandir_sane(const char *dir, struct dirent ***namelist, int (*compar)(const struct dirent **, const struct dirent **)); void scandir_sane_free(struct dirent **namelist); +int readdir_multi(DIR *dir, struct dirent *entries, int num_entries); #endif // KERNEL #endif // DIRENT_H -- cgit v1.2.3