mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
LibC: Add readdir_r for re-entrant directory reading (#648)
This is popular and in POSIX. Some duplicated code between readdir is also unified into some static functions.
This commit is contained in:
parent
b0773a8ea6
commit
6d150df58a
Notes:
sideshowbarker
2024-07-19 11:43:27 +09:00
Author: https://github.com/NattyNarwhal 🔰
Commit: 6d150df58a
Pull-request: https://github.com/SerenityOS/serenity/pull/648
Reviewed-by: https://github.com/awesomekling
2 changed files with 100 additions and 18 deletions
|
@ -25,6 +25,7 @@ typedef struct __DIR DIR;
|
|||
DIR* opendir(const char* name);
|
||||
int closedir(DIR*);
|
||||
struct dirent* readdir(DIR*);
|
||||
int readdir_r(DIR*, struct dirent*, struct dirent**);
|
||||
int dirfd(DIR*);
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue