mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:37:45 +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
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