userspace/libc: implement std more functions

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-01-27 23:30:07 +02:00
parent f5a813380b
commit 2f71bccef2
15 changed files with 597 additions and 55 deletions

View File

@@ -91,8 +91,8 @@ extern "C"
int fstatat(int, const char *restrict, struct stat *restrict, int);
int futimens(int, const struct timespec[2]);
int lstat(const char *restrict, struct stat *restrict);
int mkdir(const char *, mode_t);
int mkdirat(int, const char *, mode_t);
int mkdir(const char *path, mode_t mode);
int mkdirat(int fd, const char *path, mode_t mode);
int mkfifo(const char *, mode_t);
int mkfifoat(int, const char *, mode_t);
int mknod(const char *, mode_t, dev_t);

View File

@@ -54,9 +54,9 @@ extern "C"
typedef unsigned int id_t;
typedef int pid_t;
pid_t wait(int *);
int waitid(idtype_t, id_t, siginfo_t *, int);
pid_t waitpid(pid_t, int *, int);
pid_t wait(int *stat_loc);
int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options);
pid_t waitpid(pid_t pid, int *stat_loc, int options);
#ifdef __cplusplus
}