1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 14:47:34 +00:00

LibC: Add function fdopendir

This adds the function fdopendir and refactors opendir so that opendir
just opens a file descriptor and passes the file descriptor onto
fdopendir.
This commit is contained in:
Kenneth Myhra 2021-08-11 19:10:05 +02:00 committed by Linus Groh
parent 51b6bd8d95
commit 78eba1271f
2 changed files with 8 additions and 0 deletions

View file

@ -27,6 +27,7 @@ struct __DIR {
};
typedef struct __DIR DIR;
DIR* fdopendir(int fd);
DIR* opendir(const char* name);
int closedir(DIR*);
void rewinddir(DIR*);