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
+27
View File
@@ -0,0 +1,27 @@
#ifndef MLIBC_ABIS_LINUX_XATTR_H
#define MLIBC_ABIS_LINUX_XATTR_H
#include <mlibc-config.h>
#if !__MLIBC_LINUX_OPTION
# error "<sys/xattr.h> is inherently Linux specific. Enable the Linux option or do not use this header."
#endif /* !__MLIBC_LINUX_OPTION */
/* __USE_KERNEL_XATTR_DEFS is exported when XATTR_* are emitted, and
* __UAPI_DEF_XATTR is used to determine the behaviour of the
* <linux/xattr.h> header (through <linux/libc-compat.h>), if it's set
* to 1, the header exports xattr defines and __USE_KERNEL_XATTR_DEFS.
* This applies for pretty much all other defines in libc-compat.h
* AFAICT.
*/
#ifndef __USE_KERNEL_XATTR_DEFS
enum {
XATTR_CREATE = 1,
#define XATTR_CREATE XATTR_CREATE
XATTR_REPLACE = 2
#define XATTR_REPLACE XATTR_REPLACE
};
# define __UAPI_DEF_XATTR 0
#endif
#endif /* MLIBC_ABIS_LINUX_XATTR_H */