user: implement mlibc as the libc, finally.

It's finally done..

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
This commit is contained in:
kaguya
2026-05-02 03:31:49 -04:00
parent 2fa39ad85a
commit 9a9b91c940
2387 changed files with 152741 additions and 315 deletions
+38
View File
@@ -0,0 +1,38 @@
#ifndef _SYS_POLL_H
#define _SYS_POLL_H
#include <bits/types.h>
#include <bits/sigset_t.h>
#include <bits/ansi/timespec.h>
#include <abi-bits/poll.h>
#include <abi-bits/signal.h>
#include <mlibc-config.h>
typedef __mlibc_size nfds_t;
#ifdef __cplusplus
extern "C" {
#endif
struct pollfd {
int fd;
short events;
short revents;
};
#ifndef __MLIBC_ABI_ONLY
int poll(struct pollfd *__fds, nfds_t __nfds, int __timeout);
#if __MLIBC_LINUX_OPTION
int ppoll(struct pollfd *__fds, nfds_t __nfds,
const struct timespec *__timeout_ts, const sigset_t *__sigmask);
#endif /* __MLIBC_LINUX_OPTION */
#endif /* !__MLIBC_ABI_ONLY */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_POLL_H */