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
+33
View File
@@ -0,0 +1,33 @@
#ifndef _STRINGS_H
#define _STRINGS_H
#include <bits/size_t.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __MLIBC_ABI_ONLY
char *index (const char *__s, int __c);
char *rindex(const char *__s, int __c);
int ffs(int __word);
int strcasecmp(const char *__a, const char *__b);
int strncasecmp(const char *__a, const char *__b, size_t __size);
/* Marked as obsolete in posix 2008 but used by at least tracker */
int bcmp(const void *__s1, const void *__s2, size_t __n);
void bcopy(const void *__s1, void *__s2, size_t __n);
void bzero(void *__s, size_t __n);
void explicit_bzero(void *__s, size_t __len);
#endif /* !__MLIBC_ABI_ONLY */
#ifdef __cplusplus
}
#endif
#endif /* _STRINGS_H */