userspace/libc: implement close() & dirfd()

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-01-27 23:58:54 +02:00
parent c2412fe710
commit 48067d8f58
4 changed files with 14 additions and 4 deletions

View File

@ -60,7 +60,7 @@ extern "C"
int alphasort(const struct dirent **, const struct dirent **);
int closedir(DIR *dirp);
int dirfd(DIR *);
int dirfd(DIR *dirp);
DIR *fdopendir(int);
DIR *opendir(const char *);
ssize_t posix_getdents(int, void *, size_t, int);

View File

@ -65,7 +65,7 @@ extern "C"
int chdir(const char *);
int chroot(const char *);
int chown(const char *, uid_t, gid_t);
int close(int);
int close(int fildes);
size_t confstr(int, char *, size_t);
char *crypt(const char *, const char *);
char *ctermid(char *);