diff --git a/linux-5.10/hi3516dv300_patch/hi3516dv300.patch b/linux-5.10/hi3516dv300_patch/hi3516dv300.patch index 74a9cf74e93c5b1c977f7300b43c536229266c37..72c0b8fa599de099b182ee08b66f1237e21599a8 100644 --- a/linux-5.10/hi3516dv300_patch/hi3516dv300.patch +++ b/linux-5.10/hi3516dv300_patch/hi3516dv300.patch @@ -59245,22 +59245,6 @@ index b08d936d5fa7..1a62975c6a64 100644 if (!chan->buf) { kfree(chan); return NULL; -diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c -index 2919f1698140..8947dfd00246 100644 ---- a/lib/vdso/gettimeofday.c -+++ b/lib/vdso/gettimeofday.c -@@ -253,9 +253,10 @@ __cvdso_clock_gettime_data(const struct vdso_data *vd, clockid_t clock, - struct __kernel_timespec *ts) - { - int ret = __cvdso_clock_gettime_common(vd, clock, ts); -- -+ /* - if (unlikely(ret)) - return clock_gettime_fallback(clock, ts); -+ */ - return 0; - } - diff --git a/mm/init-mm.c b/mm/init-mm.c index 153162669f80..6382b3b6ba39 100644 --- a/mm/init-mm.c diff --git a/linux-5.10/prebuilts/usr/include/Kbuild b/linux-5.10/prebuilts/usr/include/Kbuild deleted file mode 100644 index 61ee6e59c930b788241bb5f3b3f76470c6cfb214..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/Kbuild +++ /dev/null @@ -1,14 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -ifeq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/a.out.h),) -no-export-headers += linux/a.out.h -endif - -ifeq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm.h),) -no-export-headers += linux/kvm.h -endif - -ifeq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm_para.h),) -ifeq ($(wildcard $(objtree)/arch/$(SRCARCH)/include/generated/uapi/asm/kvm_para.h),) -no-export-headers += linux/kvm_para.h -endif -endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/Kbuild b/linux-5.10/prebuilts/usr/include/asm-arm/asm/Kbuild deleted file mode 100644 index ce8573157774dc078e49a5a2d5ccecc3ad54986d..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/Kbuild +++ /dev/null @@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 - -generated-y += unistd-common.h -generated-y += unistd-oabi.h -generated-y += unistd-eabi.h -generic-y += kvm_para.h diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/auxvec.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/auxvec.h index 7416f1855ca61b0a562619b71b0b2538a0463294..ae03ed3b4a793b955a542ee21a4e7b49b8fdfa0c 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/auxvec.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/auxvec.h @@ -1,9 +1,22 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_AUXVEC_H #define __ASM_AUXVEC_H -#define AT_SYSINFO_EHDR 33 +#define AT_SYSINFO_EHDR 33 #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/bitsperlong.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/bitsperlong.h index 3c87a8d8b25bc5a318ff5036a4c850aba1ae60a4..5dc5060013a69a5d48d41406204e54e41871c2df 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/bitsperlong.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/bitsperlong.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/bpf_perf_event.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/bpf_perf_event.h index 5cef26b13ed63275bc532ada2dbaee992deae7b8..fa7bc4855032b67774519e46f1369aa7947409d6 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/bpf_perf_event.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/bpf_perf_event.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/byteorder.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/byteorder.h index e4190755404bed09074ee56a8aab6beeea1842ba..a2536547d3dd9fdee56ab93c74372f75c32222d6 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/byteorder.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/byteorder.h @@ -1,13 +1,22 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_ARM_BYTEORDER_H #define __ASM_ARM_BYTEORDER_H -#if 0 -#include -#else #include #endif -#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/errno.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/errno.h index c1081c8daad50d5b189a37d55848c9bdd75ba2fb..392cd94bf82ea5408afa6dd209d39ad9c2eb3955 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/errno.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/errno.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/fcntl.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/fcntl.h index 6004fa797ded47111235874d203ff39fa22ded6f..f2f14c3cc2588a76e968c875267806c0c91a39da 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/fcntl.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/fcntl.h @@ -1,13 +1,26 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _ARM_FCNTL_H #define _ARM_FCNTL_H -#define O_DIRECTORY 040000 -#define O_NOFOLLOW 0100000 -#define O_DIRECT 0200000 -#define O_LARGEFILE 0400000 +#define O_DIRECTORY 040000 +#define O_NOFOLLOW 0100000 +#define O_DIRECT 0200000 +#define O_LARGEFILE 0400000 #include #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/hwcap.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/hwcap.h index c433f09acb32c44dcfc52c9b336bb31101cfeb40..fdc54051336b46f07a28f359a10328605faa47c2 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/hwcap.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/hwcap.h @@ -1,36 +1,49 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI__ASMARM_HWCAP_H #define _UAPI__ASMARM_HWCAP_H -#define HWCAP_SWP (1 << 0) -#define HWCAP_HALF (1 << 1) -#define HWCAP_THUMB (1 << 2) -#define HWCAP_26BIT (1 << 3) -#define HWCAP_FAST_MULT (1 << 4) -#define HWCAP_FPA (1 << 5) -#define HWCAP_VFP (1 << 6) -#define HWCAP_EDSP (1 << 7) -#define HWCAP_JAVA (1 << 8) -#define HWCAP_IWMMXT (1 << 9) -#define HWCAP_CRUNCH (1 << 10) -#define HWCAP_THUMBEE (1 << 11) -#define HWCAP_NEON (1 << 12) -#define HWCAP_VFPv3 (1 << 13) -#define HWCAP_VFPv3D16 (1 << 14) -#define HWCAP_TLS (1 << 15) -#define HWCAP_VFPv4 (1 << 16) -#define HWCAP_IDIVA (1 << 17) -#define HWCAP_IDIVT (1 << 18) -#define HWCAP_VFPD32 (1 << 19) -#define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT) -#define HWCAP_LPAE (1 << 20) -#define HWCAP_EVTSTRM (1 << 21) -#define HWCAP2_AES (1 << 0) -#define HWCAP2_PMULL (1 << 1) -#define HWCAP2_SHA1 (1 << 2) -#define HWCAP2_SHA2 (1 << 3) -#define HWCAP2_CRC32 (1 << 4) +#define HWCAP_SWP (1 << 0) +#define HWCAP_HALF (1 << 1) +#define HWCAP_THUMB (1 << 2) +#define HWCAP_26BIT (1 << 3) +#define HWCAP_FAST_MULT (1 << 4) +#define HWCAP_FPA (1 << 5) +#define HWCAP_VFP (1 << 6) +#define HWCAP_EDSP (1 << 7) +#define HWCAP_JAVA (1 << 8) +#define HWCAP_IWMMXT (1 << 9) +#define HWCAP_CRUNCH (1 << 10) +#define HWCAP_THUMBEE (1 << 11) +#define HWCAP_NEON (1 << 12) +#define HWCAP_VFPv3 (1 << 13) +#define HWCAP_VFPv3D16 (1 << 14) +#define HWCAP_TLS (1 << 15) +#define HWCAP_VFPv4 (1 << 16) +#define HWCAP_IDIVA (1 << 17) +#define HWCAP_IDIVT (1 << 18) +#define HWCAP_VFPD32 (1 << 19) +#define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT) +#define HWCAP_LPAE (1 << 20) +#define HWCAP_EVTSTRM (1 << 21) +#define HWCAP2_AES (1 << 0) +#define HWCAP2_PMULL (1 << 1) +#define HWCAP2_SHA1 (1 << 2) +#define HWCAP2_SHA2 (1 << 3) +#define HWCAP2_CRC32 (1 << 4) #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/ioctl.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/ioctl.h index 32a259fd9742be5cf8fa8007e93e7ca5885ab2e3..7b7bd37794536ae77a4bbea2aa5803eac46e1704 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/ioctl.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/ioctl.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/ioctls.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/ioctls.h index 2d824e14c748d50fb3ad7798f6203280b1153095..e83b2cc3536fe6b1d5445f43df22a4a887c3f99c 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/ioctls.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/ioctls.h @@ -1,10 +1,23 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_ARM_IOCTLS_H #define __ASM_ARM_IOCTLS_H -#define FIOQSIZE 0x545E +#define FIOQSIZE 0x545E #include #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/ipcbuf.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/ipcbuf.h index d0004a42cf35bbb2cad966f36fef93dac21e747e..0021f1438ffcfa5e371a8e1ff047c40cec4f089f 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/ipcbuf.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/ipcbuf.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/kvm.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/kvm.h deleted file mode 100644 index 7ce7f3af85326e64f66c87545d66d6af6d0dec1f..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/kvm.h +++ /dev/null @@ -1,203 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef __ARM_KVM_H__ -#define __ARM_KVM_H__ -#include -#include -#include -#define __KVM_HAVE_GUEST_DEBUG -#define __KVM_HAVE_IRQ_LINE -#define __KVM_HAVE_READONLY_MEM -#define __KVM_HAVE_VCPU_EVENTS -#define KVM_COALESCED_MMIO_PAGE_OFFSET 1 -#define KVM_REG_SIZE(id) \ - (1U << (((id) & KVM_REG_SIZE_MASK) >> KVM_REG_SIZE_SHIFT)) -#define KVM_ARM_SVC_sp svc_regs[0] -#define KVM_ARM_SVC_lr svc_regs[1] -#define KVM_ARM_SVC_spsr svc_regs[2] -#define KVM_ARM_ABT_sp abt_regs[0] -#define KVM_ARM_ABT_lr abt_regs[1] -#define KVM_ARM_ABT_spsr abt_regs[2] -#define KVM_ARM_UND_sp und_regs[0] -#define KVM_ARM_UND_lr und_regs[1] -#define KVM_ARM_UND_spsr und_regs[2] -#define KVM_ARM_IRQ_sp irq_regs[0] -#define KVM_ARM_IRQ_lr irq_regs[1] -#define KVM_ARM_IRQ_spsr irq_regs[2] -#define KVM_ARM_FIQ_r8 fiq_regs[0] -#define KVM_ARM_FIQ_r9 fiq_regs[1] -#define KVM_ARM_FIQ_r10 fiq_regs[2] -#define KVM_ARM_FIQ_fp fiq_regs[3] -#define KVM_ARM_FIQ_ip fiq_regs[4] -#define KVM_ARM_FIQ_sp fiq_regs[5] -#define KVM_ARM_FIQ_lr fiq_regs[6] -#define KVM_ARM_FIQ_spsr fiq_regs[7] -struct kvm_regs { - struct pt_regs usr_regs; - unsigned long svc_regs[3]; - unsigned long abt_regs[3]; - unsigned long und_regs[3]; - unsigned long irq_regs[3]; - unsigned long fiq_regs[8]; -}; -#define KVM_ARM_TARGET_CORTEX_A15 0 -#define KVM_ARM_TARGET_CORTEX_A7 1 -#define KVM_ARM_NUM_TARGETS 2 -#define KVM_ARM_DEVICE_TYPE_SHIFT 0 -#define KVM_ARM_DEVICE_TYPE_MASK (0xffff << KVM_ARM_DEVICE_TYPE_SHIFT) -#define KVM_ARM_DEVICE_ID_SHIFT 16 -#define KVM_ARM_DEVICE_ID_MASK (0xffff << KVM_ARM_DEVICE_ID_SHIFT) -#define KVM_ARM_DEVICE_VGIC_V2 0 -#define KVM_VGIC_V2_ADDR_TYPE_DIST 0 -#define KVM_VGIC_V2_ADDR_TYPE_CPU 1 -#define KVM_VGIC_V2_DIST_SIZE 0x1000 -#define KVM_VGIC_V2_CPU_SIZE 0x2000 -#define KVM_VGIC_V3_ADDR_TYPE_DIST 2 -#define KVM_VGIC_V3_ADDR_TYPE_REDIST 3 -#define KVM_VGIC_ITS_ADDR_TYPE 4 -#define KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION 5 -#define KVM_VGIC_V3_DIST_SIZE SZ_64K -#define KVM_VGIC_V3_REDIST_SIZE (2 * SZ_64K) -#define KVM_VGIC_V3_ITS_SIZE (2 * SZ_64K) -#define KVM_ARM_VCPU_POWER_OFF 0 -#define KVM_ARM_VCPU_PSCI_0_2 1 -struct kvm_vcpu_init { - __u32 target; - __u32 features[7]; -}; -struct kvm_sregs { -}; -struct kvm_fpu { -}; -struct kvm_guest_debug_arch { -}; -struct kvm_debug_exit_arch { -}; -struct kvm_sync_regs { - - __u64 device_irq_level; -}; -struct kvm_arch_memory_slot { -}; -struct kvm_vcpu_events { - struct { - __u8 serror_pending; - __u8 serror_has_esr; - - __u8 pad[6]; - __u64 serror_esr; - } exception; - __u32 reserved[12]; -}; -#define KVM_REG_ARM_COPROC_MASK 0x000000000FFF0000 -#define KVM_REG_ARM_COPROC_SHIFT 16 -#define KVM_REG_ARM_32_OPC2_MASK 0x0000000000000007 -#define KVM_REG_ARM_32_OPC2_SHIFT 0 -#define KVM_REG_ARM_OPC1_MASK 0x0000000000000078 -#define KVM_REG_ARM_OPC1_SHIFT 3 -#define KVM_REG_ARM_CRM_MASK 0x0000000000000780 -#define KVM_REG_ARM_CRM_SHIFT 7 -#define KVM_REG_ARM_32_CRN_MASK 0x0000000000007800 -#define KVM_REG_ARM_32_CRN_SHIFT 11 -#define KVM_REG_ARM_SECURE_MASK 0x0000000010000000 -#define KVM_REG_ARM_SECURE_SHIFT 28 -#define ARM_CP15_REG_SHIFT_MASK(x,n) \ - (((x) << KVM_REG_ARM_ ## n ## _SHIFT) & KVM_REG_ARM_ ## n ## _MASK) -#define __ARM_CP15_REG(op1,crn,crm,op2) \ - (KVM_REG_ARM | (15 << KVM_REG_ARM_COPROC_SHIFT) | \ - ARM_CP15_REG_SHIFT_MASK(op1, OPC1) | \ - ARM_CP15_REG_SHIFT_MASK(crn, 32_CRN) | \ - ARM_CP15_REG_SHIFT_MASK(crm, CRM) | \ - ARM_CP15_REG_SHIFT_MASK(op2, 32_OPC2)) -#define ARM_CP15_REG32(...) (__ARM_CP15_REG(__VA_ARGS__) | KVM_REG_SIZE_U32) -#define __ARM_CP15_REG64(op1,crm) \ - (__ARM_CP15_REG(op1, 0, crm, 0) | KVM_REG_SIZE_U64) -#define ARM_CP15_REG64(...) __ARM_CP15_REG64(__VA_ARGS__) -#define KVM_REG_ARM_PTIMER_CTL ARM_CP15_REG32(0, 14, 2, 1) -#define KVM_REG_ARM_PTIMER_CNT ARM_CP15_REG64(0, 14) -#define KVM_REG_ARM_PTIMER_CVAL ARM_CP15_REG64(2, 14) -#define KVM_REG_ARM_TIMER_CTL ARM_CP15_REG32(0, 14, 3, 1) -#define KVM_REG_ARM_TIMER_CNT ARM_CP15_REG64(1, 14) -#define KVM_REG_ARM_TIMER_CVAL ARM_CP15_REG64(3, 14) -#define KVM_REG_ARM_CORE (0x0010 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM_CORE_REG(name) (offsetof(struct kvm_regs, name) / 4) -#define KVM_REG_ARM_DEMUX (0x0011 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM_DEMUX_ID_MASK 0x000000000000FF00 -#define KVM_REG_ARM_DEMUX_ID_SHIFT 8 -#define KVM_REG_ARM_DEMUX_ID_CCSIDR (0x00 << KVM_REG_ARM_DEMUX_ID_SHIFT) -#define KVM_REG_ARM_DEMUX_VAL_MASK 0x00000000000000FF -#define KVM_REG_ARM_DEMUX_VAL_SHIFT 0 -#define KVM_REG_ARM_VFP (0x0012 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM_VFP_MASK 0x000000000000FFFF -#define KVM_REG_ARM_VFP_BASE_REG 0x0 -#define KVM_REG_ARM_VFP_FPSID 0x1000 -#define KVM_REG_ARM_VFP_FPSCR 0x1001 -#define KVM_REG_ARM_VFP_MVFR1 0x1006 -#define KVM_REG_ARM_VFP_MVFR0 0x1007 -#define KVM_REG_ARM_VFP_FPEXC 0x1008 -#define KVM_REG_ARM_VFP_FPINST 0x1009 -#define KVM_REG_ARM_VFP_FPINST2 0x100A -#define KVM_REG_ARM_FW (0x0014 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM_FW_REG(r) (KVM_REG_ARM | KVM_REG_SIZE_U64 | \ - KVM_REG_ARM_FW | ((r) & 0xffff)) -#define KVM_REG_ARM_PSCI_VERSION KVM_REG_ARM_FW_REG(0) -#define KVM_DEV_ARM_VGIC_GRP_ADDR 0 -#define KVM_DEV_ARM_VGIC_GRP_DIST_REGS 1 -#define KVM_DEV_ARM_VGIC_GRP_CPU_REGS 2 -#define KVM_DEV_ARM_VGIC_CPUID_SHIFT 32 -#define KVM_DEV_ARM_VGIC_CPUID_MASK (0xffULL << KVM_DEV_ARM_VGIC_CPUID_SHIFT) -#define KVM_DEV_ARM_VGIC_V3_MPIDR_SHIFT 32 -#define KVM_DEV_ARM_VGIC_V3_MPIDR_MASK \ - (0xffffffffULL << KVM_DEV_ARM_VGIC_V3_MPIDR_SHIFT) -#define KVM_DEV_ARM_VGIC_OFFSET_SHIFT 0 -#define KVM_DEV_ARM_VGIC_OFFSET_MASK (0xffffffffULL << KVM_DEV_ARM_VGIC_OFFSET_SHIFT) -#define KVM_DEV_ARM_VGIC_SYSREG_INSTR_MASK (0xffff) -#define KVM_DEV_ARM_VGIC_GRP_NR_IRQS 3 -#define KVM_DEV_ARM_VGIC_GRP_CTRL 4 -#define KVM_DEV_ARM_VGIC_GRP_REDIST_REGS 5 -#define KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS 6 -#define KVM_DEV_ARM_VGIC_GRP_LEVEL_INFO 7 -#define KVM_DEV_ARM_VGIC_GRP_ITS_REGS 8 -#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT 10 -#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_MASK \ - (0x3fffffULL << KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT) -#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INTID_MASK 0x3ff -#define VGIC_LEVEL_INFO_LINE_LEVEL 0 -#define KVM_ARM_VCPU_PMU_V3_CTRL 0 -#define KVM_ARM_VCPU_PMU_V3_IRQ 0 -#define KVM_ARM_VCPU_PMU_V3_INIT 1 -#define KVM_ARM_VCPU_TIMER_CTRL 1 -#define KVM_ARM_VCPU_TIMER_IRQ_VTIMER 0 -#define KVM_ARM_VCPU_TIMER_IRQ_PTIMER 1 -#define KVM_DEV_ARM_VGIC_CTRL_INIT 0 -#define KVM_DEV_ARM_ITS_SAVE_TABLES 1 -#define KVM_DEV_ARM_ITS_RESTORE_TABLES 2 -#define KVM_DEV_ARM_VGIC_SAVE_PENDING_TABLES 3 -#define KVM_DEV_ARM_ITS_CTRL_RESET 4 -#define KVM_ARM_IRQ_TYPE_SHIFT 24 -#define KVM_ARM_IRQ_TYPE_MASK 0xff -#define KVM_ARM_IRQ_VCPU_SHIFT 16 -#define KVM_ARM_IRQ_VCPU_MASK 0xff -#define KVM_ARM_IRQ_NUM_SHIFT 0 -#define KVM_ARM_IRQ_NUM_MASK 0xffff -#define KVM_ARM_IRQ_TYPE_CPU 0 -#define KVM_ARM_IRQ_TYPE_SPI 1 -#define KVM_ARM_IRQ_TYPE_PPI 2 -#define KVM_ARM_IRQ_CPU_IRQ 0 -#define KVM_ARM_IRQ_CPU_FIQ 1 -#define KVM_ARM_IRQ_GIC_MAX 127 -#define KVM_NR_IRQCHIPS 1 -#define KVM_PSCI_FN_BASE 0x95c1ba5e -#define KVM_PSCI_FN(n) (KVM_PSCI_FN_BASE + (n)) -#define KVM_PSCI_FN_CPU_SUSPEND KVM_PSCI_FN(0) -#define KVM_PSCI_FN_CPU_OFF KVM_PSCI_FN(1) -#define KVM_PSCI_FN_CPU_ON KVM_PSCI_FN(2) -#define KVM_PSCI_FN_MIGRATE KVM_PSCI_FN(3) -#define KVM_PSCI_RET_SUCCESS PSCI_RET_SUCCESS -#define KVM_PSCI_RET_NI PSCI_RET_NOT_SUPPORTED -#define KVM_PSCI_RET_INVAL PSCI_RET_INVALID_PARAMS -#define KVM_PSCI_RET_DENIED PSCI_RET_DENIED -#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/kvm_para.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/kvm_para.h index c74c294b5fefaae09b36ba01fd2f924a8a682593..e19f7a0f56a9c5691409edd0193726bc88d773ea 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/kvm_para.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/kvm_para.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/mman.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/mman.h index 65a6a5c6780c2994b24d91f4d5a797ce1ab069bb..ec9453d06b1aa98f12f673a3fce993bfb691b013 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/mman.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/mman.h @@ -1,8 +1,20 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include -#define arch_mmap_check(addr, len, flags) \ - (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? -EINVAL : 0) +#define arch_mmap_check(addr,len,flags) (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? - EINVAL : 0) diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/msgbuf.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/msgbuf.h index a361e7ccf978bff0be529f7423cb104d62a1bf1d..7809e3cea52eacc7c912e2e9872471e82cf1a83e 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/msgbuf.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/msgbuf.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/param.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/param.h index 67e772816deff501c5f7f828cbbb7586832b2aad..5ccf935cc17ea7247eb67295a6e62cb5bf831c0d 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/param.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/param.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/perf_regs.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/perf_regs.h index 1f7361c3858d5746976379048d62cbb43d11e2b5..ea2ff8114759193b97763e13f5cdbc67535290f2 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/perf_regs.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/perf_regs.h @@ -1,27 +1,40 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _ASM_ARM_PERF_REGS_H #define _ASM_ARM_PERF_REGS_H enum perf_event_arm_regs { - PERF_REG_ARM_R0, - PERF_REG_ARM_R1, - PERF_REG_ARM_R2, - PERF_REG_ARM_R3, - PERF_REG_ARM_R4, - PERF_REG_ARM_R5, - PERF_REG_ARM_R6, - PERF_REG_ARM_R7, - PERF_REG_ARM_R8, - PERF_REG_ARM_R9, - PERF_REG_ARM_R10, - PERF_REG_ARM_FP, - PERF_REG_ARM_IP, - PERF_REG_ARM_SP, - PERF_REG_ARM_LR, - PERF_REG_ARM_PC, - PERF_REG_ARM_MAX, + PERF_REG_ARM_R0, + PERF_REG_ARM_R1, + PERF_REG_ARM_R2, + PERF_REG_ARM_R3, + PERF_REG_ARM_R4, + PERF_REG_ARM_R5, + PERF_REG_ARM_R6, + PERF_REG_ARM_R7, + PERF_REG_ARM_R8, + PERF_REG_ARM_R9, + PERF_REG_ARM_R10, + PERF_REG_ARM_FP, + PERF_REG_ARM_IP, + PERF_REG_ARM_SP, + PERF_REG_ARM_LR, + PERF_REG_ARM_PC, + PERF_REG_ARM_MAX, }; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/poll.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/poll.h index 93f531dc33bcef86a5ee498f83115588dffa1b81..d7e8adca93b2b180c72b562b147e6a973e58d25c 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/poll.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/poll.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/posix_types.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/posix_types.h index 8ba2dc2ed7a2fda16eb261d597af82203f320599..ff5138b8dce0370b229de85029f0b7b572d92672 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/posix_types.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/posix_types.h @@ -1,18 +1,31 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ARCH_ARM_POSIX_TYPES_H #define __ARCH_ARM_POSIX_TYPES_H -typedef unsigned short __kernel_mode_t; +typedef unsigned short __kernel_mode_t; #define __kernel_mode_t __kernel_mode_t -typedef unsigned short __kernel_ipc_pid_t; +typedef unsigned short __kernel_ipc_pid_t; #define __kernel_ipc_pid_t __kernel_ipc_pid_t -typedef unsigned short __kernel_uid_t; -typedef unsigned short __kernel_gid_t; +typedef unsigned short __kernel_uid_t; +typedef unsigned short __kernel_gid_t; #define __kernel_uid_t __kernel_uid_t -typedef unsigned short __kernel_old_dev_t; +typedef unsigned short __kernel_old_dev_t; #define __kernel_old_dev_t __kernel_old_dev_t #include #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/ptrace.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/ptrace.h index 13fdbe4186240bb501b72153c0f6917ede6c0c30..b0291dcaf679190cc5cdd90accf495ea5d8dcbf7 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/ptrace.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/ptrace.h @@ -1,106 +1,104 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI__ASM_ARM_PTRACE_H #define _UAPI__ASM_ARM_PTRACE_H #include -#define PTRACE_GETREGS 12 -#define PTRACE_SETREGS 13 -#define PTRACE_GETFPREGS 14 -#define PTRACE_SETFPREGS 15 -#define PTRACE_GETWMMXREGS 18 -#define PTRACE_SETWMMXREGS 19 -#define PTRACE_OLDSETOPTIONS 21 -#define PTRACE_GET_THREAD_AREA 22 -#define PTRACE_SET_SYSCALL 23 -#define PTRACE_GETCRUNCHREGS 25 -#define PTRACE_SETCRUNCHREGS 26 -#define PTRACE_GETVFPREGS 27 -#define PTRACE_SETVFPREGS 28 -#define PTRACE_GETHBPREGS 29 -#define PTRACE_SETHBPREGS 30 -#define PTRACE_GETFDPIC 31 -#define PTRACE_GETFDPIC_EXEC 0 -#define PTRACE_GETFDPIC_INTERP 1 -#define USR26_MODE 0x00000000 -#define FIQ26_MODE 0x00000001 -#define IRQ26_MODE 0x00000002 -#define SVC26_MODE 0x00000003 -#if defined(__KERNEL__) && defined(CONFIG_CPU_V7M) -#define USR_MODE 0x00000000 -#define SVC_MODE 0x00000000 -#else -#define USR_MODE 0x00000010 -#define SVC_MODE 0x00000013 -#endif -#define FIQ_MODE 0x00000011 -#define IRQ_MODE 0x00000012 -#define MON_MODE 0x00000016 -#define ABT_MODE 0x00000017 -#define HYP_MODE 0x0000001a -#define UND_MODE 0x0000001b -#define SYSTEM_MODE 0x0000001f -#define MODE32_BIT 0x00000010 -#define MODE_MASK 0x0000001f -#define V4_PSR_T_BIT 0x00000020 -#define V7M_PSR_T_BIT 0x01000000 -#if defined(__KERNEL__) && defined(CONFIG_CPU_V7M) -#define PSR_T_BIT V7M_PSR_T_BIT -#else -#define PSR_T_BIT V4_PSR_T_BIT -#endif -#define PSR_F_BIT 0x00000040 -#define PSR_I_BIT 0x00000080 -#define PSR_A_BIT 0x00000100 -#define PSR_E_BIT 0x00000200 -#define PSR_J_BIT 0x01000000 -#define PSR_Q_BIT 0x08000000 -#define PSR_V_BIT 0x10000000 -#define PSR_C_BIT 0x20000000 -#define PSR_Z_BIT 0x40000000 -#define PSR_N_BIT 0x80000000 -#define PSR_f 0xff000000 -#define PSR_s 0x00ff0000 -#define PSR_x 0x0000ff00 -#define PSR_c 0x000000ff -#define APSR_MASK 0xf80f0000 -#define PSR_ISET_MASK 0x01000010 -#define PSR_IT_MASK 0x0600fc00 -#define PSR_ENDIAN_MASK 0x00000200 -#ifdef CONFIG_CPU_ENDIAN_BE8 -#define PSR_ENDSTATE PSR_E_BIT -#else -#define PSR_ENDSTATE 0 -#endif -#define PT_TEXT_ADDR 0x10000 -#define PT_DATA_ADDR 0x10004 -#define PT_TEXT_END_ADDR 0x10008 +#define PTRACE_GETREGS 12 +#define PTRACE_SETREGS 13 +#define PTRACE_GETFPREGS 14 +#define PTRACE_SETFPREGS 15 +#define PTRACE_GETWMMXREGS 18 +#define PTRACE_SETWMMXREGS 19 +#define PTRACE_OLDSETOPTIONS 21 +#define PTRACE_GET_THREAD_AREA 22 +#define PTRACE_SET_SYSCALL 23 +#define PTRACE_GETCRUNCHREGS 25 +#define PTRACE_SETCRUNCHREGS 26 +#define PTRACE_GETVFPREGS 27 +#define PTRACE_SETVFPREGS 28 +#define PTRACE_GETHBPREGS 29 +#define PTRACE_SETHBPREGS 30 +#define PTRACE_GETFDPIC 31 +#define PTRACE_GETFDPIC_EXEC 0 +#define PTRACE_GETFDPIC_INTERP 1 +#define USR26_MODE 0x00000000 +#define FIQ26_MODE 0x00000001 +#define IRQ26_MODE 0x00000002 +#define SVC26_MODE 0x00000003 +#define USR_MODE 0x00000010 +#define SVC_MODE 0x00000013 +#define FIQ_MODE 0x00000011 +#define IRQ_MODE 0x00000012 +#define MON_MODE 0x00000016 +#define ABT_MODE 0x00000017 +#define HYP_MODE 0x0000001a +#define UND_MODE 0x0000001b +#define SYSTEM_MODE 0x0000001f +#define MODE32_BIT 0x00000010 +#define MODE_MASK 0x0000001f +#define V4_PSR_T_BIT 0x00000020 +#define V7M_PSR_T_BIT 0x01000000 +#define PSR_T_BIT V4_PSR_T_BIT +#define PSR_F_BIT 0x00000040 +#define PSR_I_BIT 0x00000080 +#define PSR_A_BIT 0x00000100 +#define PSR_E_BIT 0x00000200 +#define PSR_J_BIT 0x01000000 +#define PSR_Q_BIT 0x08000000 +#define PSR_V_BIT 0x10000000 +#define PSR_C_BIT 0x20000000 +#define PSR_Z_BIT 0x40000000 +#define PSR_N_BIT 0x80000000 +#define PSR_f 0xff000000 +#define PSR_s 0x00ff0000 +#define PSR_x 0x0000ff00 +#define PSR_c 0x000000ff +#define APSR_MASK 0xf80f0000 +#define PSR_ISET_MASK 0x01000010 +#define PSR_IT_MASK 0x0600fc00 +#define PSR_ENDIAN_MASK 0x00000200 +#define PSR_ENDSTATE 0 +#define PT_TEXT_ADDR 0x10000 +#define PT_DATA_ADDR 0x10004 +#define PT_TEXT_END_ADDR 0x10008 #ifndef __ASSEMBLY__ -#ifndef __KERNEL__ struct pt_regs { - long uregs[18]; + long uregs[18]; }; -#endif -#define ARM_cpsr uregs[16] -#define ARM_pc uregs[15] -#define ARM_lr uregs[14] -#define ARM_sp uregs[13] -#define ARM_ip uregs[12] -#define ARM_fp uregs[11] -#define ARM_r10 uregs[10] -#define ARM_r9 uregs[9] -#define ARM_r8 uregs[8] -#define ARM_r7 uregs[7] -#define ARM_r6 uregs[6] -#define ARM_r5 uregs[5] -#define ARM_r4 uregs[4] -#define ARM_r3 uregs[3] -#define ARM_r2 uregs[2] -#define ARM_r1 uregs[1] -#define ARM_r0 uregs[0] -#define ARM_ORIG_r0 uregs[17] -#define ARM_VFPREGS_SIZE ( 32 * 8 ) +#define ARM_cpsr uregs[16] +#define ARM_pc uregs[15] +#define ARM_lr uregs[14] +#define ARM_sp uregs[13] +#define ARM_ip uregs[12] +#define ARM_fp uregs[11] +#define ARM_r10 uregs[10] +#define ARM_r9 uregs[9] +#define ARM_r8 uregs[8] +#define ARM_r7 uregs[7] +#define ARM_r6 uregs[6] +#define ARM_r5 uregs[5] +#define ARM_r4 uregs[4] +#define ARM_r3 uregs[3] +#define ARM_r2 uregs[2] +#define ARM_r1 uregs[1] +#define ARM_r0 uregs[0] +#define ARM_ORIG_r0 uregs[17] +#define ARM_VFPREGS_SIZE (32 * 8 + 4) #endif #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/resource.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/resource.h index 728000e7657825f34b6eb69fc1b5e0eabc76a765..371adb52f99aa576ee7b8da2a14a0485ce7f9e31 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/resource.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/resource.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/sembuf.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/sembuf.h index 1769cec451524383f0ecf0d5282fc0e33a76ea5a..6ce6549b09c4e17cff2886fd24a8e46640896235 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/sembuf.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/sembuf.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/setup.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/setup.h index 3af541361cdb4f373d69d1afd8321760e14a846e..b4da2d146af47c095f6848cff9d8f9e0359f05a0 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/setup.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/setup.h @@ -1,120 +1,128 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI__ASMARM_SETUP_H #define _UAPI__ASMARM_SETUP_H #include -#define COMMAND_LINE_SIZE 1024 -#define ATAG_NONE 0x00000000 +#define COMMAND_LINE_SIZE 2048 +#define ATAG_NONE 0x00000000 struct tag_header { - __u32 size; - __u32 tag; + __u32 size; + __u32 tag; }; -#define ATAG_CORE 0x54410001 +#define ATAG_CORE 0x54410001 struct tag_core { - __u32 flags; - __u32 pagesize; - __u32 rootdev; + __u32 flags; + __u32 pagesize; + __u32 rootdev; }; -#define ATAG_MEM 0x54410002 +#define ATAG_MEM 0x54410002 struct tag_mem32 { - __u32 size; - __u32 start; + __u32 size; + __u32 start; }; -#define ATAG_VIDEOTEXT 0x54410003 +#define ATAG_VIDEOTEXT 0x54410003 struct tag_videotext { - __u8 x; - __u8 y; - __u16 video_page; - __u8 video_mode; - __u8 video_cols; - __u16 video_ega_bx; - __u8 video_lines; - __u8 video_isvga; - __u16 video_points; + __u8 x; + __u8 y; + __u16 video_page; + __u8 video_mode; + __u8 video_cols; + __u16 video_ega_bx; + __u8 video_lines; + __u8 video_isvga; + __u16 video_points; }; -#define ATAG_RAMDISK 0x54410004 +#define ATAG_RAMDISK 0x54410004 struct tag_ramdisk { - __u32 flags; - __u32 size; - __u32 start; + __u32 flags; + __u32 size; + __u32 start; }; -#define ATAG_INITRD 0x54410005 -#define ATAG_INITRD2 0x54420005 +#define ATAG_INITRD 0x54410005 +#define ATAG_INITRD2 0x54420005 struct tag_initrd { - __u32 start; - __u32 size; + __u32 start; + __u32 size; }; -#define ATAG_SERIAL 0x54410006 +#define ATAG_SERIAL 0x54410006 struct tag_serialnr { - __u32 low; - __u32 high; + __u32 low; + __u32 high; }; -#define ATAG_REVISION 0x54410007 +#define ATAG_REVISION 0x54410007 struct tag_revision { - __u32 rev; + __u32 rev; }; -#define ATAG_VIDEOLFB 0x54410008 +#define ATAG_VIDEOLFB 0x54410008 struct tag_videolfb { - __u16 lfb_width; - __u16 lfb_height; - __u16 lfb_depth; - __u16 lfb_linelength; - __u32 lfb_base; - __u32 lfb_size; - __u8 red_size; - __u8 red_pos; - __u8 green_size; - __u8 green_pos; - __u8 blue_size; - __u8 blue_pos; - __u8 rsvd_size; - __u8 rsvd_pos; + __u16 lfb_width; + __u16 lfb_height; + __u16 lfb_depth; + __u16 lfb_linelength; + __u32 lfb_base; + __u32 lfb_size; + __u8 red_size; + __u8 red_pos; + __u8 green_size; + __u8 green_pos; + __u8 blue_size; + __u8 blue_pos; + __u8 rsvd_size; + __u8 rsvd_pos; }; -#define ATAG_CMDLINE 0x54410009 +#define ATAG_CMDLINE 0x54410009 struct tag_cmdline { - char cmdline[1]; + char cmdline[1]; }; -#define ATAG_ACORN 0x41000101 +#define ATAG_ACORN 0x41000101 struct tag_acorn { - __u32 memc_control_reg; - __u32 vram_pages; - __u8 sounddefault; - __u8 adfsdrives; + __u32 memc_control_reg; + __u32 vram_pages; + __u8 sounddefault; + __u8 adfsdrives; }; -#define ATAG_MEMCLK 0x41000402 +#define ATAG_MEMCLK 0x41000402 struct tag_memclk { - __u32 fmemclk; + __u32 fmemclk; }; struct tag { - struct tag_header hdr; - union { - struct tag_core core; - struct tag_mem32 mem; - struct tag_videotext videotext; - struct tag_ramdisk ramdisk; - struct tag_initrd initrd; - struct tag_serialnr serialnr; - struct tag_revision revision; - struct tag_videolfb videolfb; - struct tag_cmdline cmdline; - - struct tag_acorn acorn; - - struct tag_memclk memclk; - } u; + struct tag_header hdr; + union { + struct tag_core core; + struct tag_mem32 mem; + struct tag_videotext videotext; + struct tag_ramdisk ramdisk; + struct tag_initrd initrd; + struct tag_serialnr serialnr; + struct tag_revision revision; + struct tag_videolfb videolfb; + struct tag_cmdline cmdline; + struct tag_acorn acorn; + struct tag_memclk memclk; + } u; }; struct tagtable { - __u32 tag; - int (*parse)(const struct tag *); + __u32 tag; + int(* parse) (const struct tag *); }; -#define tag_member_present(tag,member) \ - ((unsigned long)(&((struct tag *)0L)->member + 1) \ - <= (tag)->hdr.size * 4) -#define tag_next(t) ((struct tag *)((__u32 *)(t) + (t)->hdr.size)) -#define tag_size(type) ((sizeof(struct tag_header) + sizeof(struct type)) >> 2) -#define for_each_tag(t,base) \ - for (t = base; t->hdr.size; t = tag_next(t)) +#define tag_member_present(tag,member) ((unsigned long) (& ((struct tag *) 0L)->member + 1) <= (tag)->hdr.size * 4) +#define tag_next(t) ((struct tag *) ((__u32 *) (t) + (t)->hdr.size)) +#define tag_size(type) ((sizeof(struct tag_header) + sizeof(struct type)) >> 2) +#define for_each_tag(t,base) for(t = base; t->hdr.size; t = tag_next(t)) #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/shmbuf.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/shmbuf.h index ada99043a09a4fa58f552cd66682a29365ecc997..fe8b1bea0fdab18f3c6d070926a0e4c4defcb891 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/shmbuf.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/shmbuf.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/sigcontext.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/sigcontext.h index fe3eee724704122ada5be8e5653f9c3174cdae20..b7504d61ddc9ba4d41047ebeccef360acfb5a8b4 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/sigcontext.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/sigcontext.h @@ -1,31 +1,44 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _ASMARM_SIGCONTEXT_H #define _ASMARM_SIGCONTEXT_H struct sigcontext { - unsigned long trap_no; - unsigned long error_code; - unsigned long oldmask; - unsigned long arm_r0; - unsigned long arm_r1; - unsigned long arm_r2; - unsigned long arm_r3; - unsigned long arm_r4; - unsigned long arm_r5; - unsigned long arm_r6; - unsigned long arm_r7; - unsigned long arm_r8; - unsigned long arm_r9; - unsigned long arm_r10; - unsigned long arm_fp; - unsigned long arm_ip; - unsigned long arm_sp; - unsigned long arm_lr; - unsigned long arm_pc; - unsigned long arm_cpsr; - unsigned long fault_address; + unsigned long trap_no; + unsigned long error_code; + unsigned long oldmask; + unsigned long arm_r0; + unsigned long arm_r1; + unsigned long arm_r2; + unsigned long arm_r3; + unsigned long arm_r4; + unsigned long arm_r5; + unsigned long arm_r6; + unsigned long arm_r7; + unsigned long arm_r8; + unsigned long arm_r9; + unsigned long arm_r10; + unsigned long arm_fp; + unsigned long arm_ip; + unsigned long arm_sp; + unsigned long arm_lr; + unsigned long arm_pc; + unsigned long arm_cpsr; + unsigned long fault_address; }; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/siginfo.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/siginfo.h index 05b664d21ce5786fb05a44052970f8716c9d710b..a31ebb2d65ee8b0ddcd311b60e1438f0b2bc4e19 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/siginfo.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/siginfo.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/signal.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/signal.h index 06721bdce27697b0010550b244da2b3a154d5710..51a302223dc8b9b0608e857339523ecb2cf6628a 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/signal.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/signal.h @@ -1,83 +1,92 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI_ASMARM_SIGNAL_H #define _UAPI_ASMARM_SIGNAL_H #include struct siginfo; -#ifndef __KERNEL__ -#define _KERNEL_NSIG 32 +#define _KERNEL_NSIG 32 typedef unsigned long sigset_t; -#endif -#define SIGHUP 1 -#define SIGINT 2 -#define SIGQUIT 3 -#define SIGILL 4 -#define SIGTRAP 5 -#define SIGABRT 6 -#define SIGIOT 6 -#define SIGBUS 7 -#define SIGFPE 8 -#define SIGKILL 9 -#define SIGUSR1 10 -#define SIGSEGV 11 -#define SIGUSR2 12 -#define SIGPIPE 13 -#define SIGALRM 14 -#define SIGTERM 15 -#define SIGSTKFLT 16 -#define SIGCHLD 17 -#define SIGCONT 18 -#define SIGSTOP 19 -#define SIGTSTP 20 -#define SIGTTIN 21 -#define SIGTTOU 22 -#define SIGURG 23 -#define SIGXCPU 24 -#define SIGXFSZ 25 -#define SIGVTALRM 26 -#define SIGPROF 27 -#define SIGWINCH 28 -#define SIGIO 29 -#define SIGPOLL SIGIO -#define SIGPWR 30 -#define SIGSYS 31 -#define SIGUNUSED 31 -#define __SIGRTMIN 32 -#define __SIGRTMAX _KERNEL__NSIG -#define SIGSWI 32 -#define SA_NOCLDSTOP 0x00000001 -#define SA_NOCLDWAIT 0x00000002 -#define SA_SIGINFO 0x00000004 -#define SA_THIRTYTWO 0x02000000 -#define SA_RESTORER 0x04000000 -#define SA_ONSTACK 0x08000000 -#define SA_RESTART 0x10000000 -#define SA_NODEFER 0x40000000 -#define SA_RESETHAND 0x80000000 -#define SA_NOMASK SA_NODEFER -#define SA_ONESHOT SA_RESETHAND -#define MINSIGSTKSZ 2048 -#define SIGSTKSZ 8192 +#define SIGHUP 1 +#define SIGINT 2 +#define SIGQUIT 3 +#define SIGILL 4 +#define SIGTRAP 5 +#define SIGABRT 6 +#define SIGIOT 6 +#define SIGBUS 7 +#define SIGFPE 8 +#define SIGKILL 9 +#define SIGUSR1 10 +#define SIGSEGV 11 +#define SIGUSR2 12 +#define SIGPIPE 13 +#define SIGALRM 14 +#define SIGTERM 15 +#define SIGSTKFLT 16 +#define SIGCHLD 17 +#define SIGCONT 18 +#define SIGSTOP 19 +#define SIGTSTP 20 +#define SIGTTIN 21 +#define SIGTTOU 22 +#define SIGURG 23 +#define SIGXCPU 24 +#define SIGXFSZ 25 +#define SIGVTALRM 26 +#define SIGPROF 27 +#define SIGWINCH 28 +#define SIGIO 29 +#define SIGPOLL SIGIO +#define SIGPWR 30 +#define SIGSYS 31 +#define SIGUNUSED 31 +#define __SIGRTMIN 32 +#define __SIGRTMAX _KERNEL__NSIG +#define SIGSWI 32 +#define SA_NOCLDSTOP 0x00000001 +#define SA_NOCLDWAIT 0x00000002 +#define SA_SIGINFO 0x00000004 +#define SA_THIRTYTWO 0x02000000 +#define SA_RESTORER 0x04000000 +#define SA_ONSTACK 0x08000000 +#define SA_RESTART 0x10000000 +#define SA_NODEFER 0x40000000 +#define SA_RESETHAND 0x80000000 +#define SA_NOMASK SA_NODEFER +#define SA_ONESHOT SA_RESETHAND +#define MINSIGSTKSZ 2048 +#define SIGSTKSZ 8192 #include -#ifndef __KERNEL__ struct sigaction { - union { - __sighandler_t _sa_handler; - void (*_sa_sigaction)(int, struct siginfo *, void *); - } _u; - sigset_t sa_mask; - unsigned long sa_flags; - void (*sa_restorer)(void); + union { + __sighandler_t _sa_handler; + void(* _sa_sigaction) (int, struct siginfo *, void *); + } _u; + sigset_t sa_mask; + unsigned long sa_flags; + void(* sa_restorer) (void); }; -#define sa_handler _u._sa_handler -#define sa_sigaction _u._sa_sigaction -#endif +#define sa_handler _u._sa_handler +#define sa_sigaction _u._sa_sigaction typedef struct sigaltstack { - void __user *ss_sp; - int ss_flags; - size_t ss_size; + void __user * ss_sp; + int ss_flags; + size_t ss_size; } stack_t; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/socket.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/socket.h index b61e0f466b990c9d6e62f5fd9e530d9735139c35..50a9874cc601fd98b3562c343f5960ceacc04099 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/socket.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/socket.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/sockios.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/sockios.h index 9cb632b833d10708c8e94ad81d134dd44332a634..710db92bbb2e214394de4bb66ecb2396f0e25c99 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/sockios.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/sockios.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/stat.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/stat.h index 454abf0cfd9b084d396b19f9ae9d46944b9997bb..27ec243f75e2a6fb7b9c09faaf99da14d42f832e 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/stat.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/stat.h @@ -1,74 +1,77 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _ASMARM_STAT_H #define _ASMARM_STAT_H struct __old_kernel_stat { - unsigned short st_dev; - unsigned short st_ino; - unsigned short st_mode; - unsigned short st_nlink; - unsigned short st_uid; - unsigned short st_gid; - unsigned short st_rdev; - unsigned long st_size; - unsigned long st_atime; - unsigned long st_mtime; - unsigned long st_ctime; + unsigned short st_dev; + unsigned short st_ino; + unsigned short st_mode; + unsigned short st_nlink; + unsigned short st_uid; + unsigned short st_gid; + unsigned short st_rdev; + unsigned long st_size; + unsigned long st_atime; + unsigned long st_mtime; + unsigned long st_ctime; }; #define STAT_HAVE_NSEC struct stat { -#if 0 - unsigned short st_dev; - unsigned short __pad1; -#else - unsigned long st_dev; -#endif - unsigned long st_ino; - unsigned short st_mode; - unsigned short st_nlink; - unsigned short st_uid; - unsigned short st_gid; -#if 0 - unsigned short st_rdev; - unsigned short __pad2; -#else - unsigned long st_rdev; -#endif - unsigned long st_size; - unsigned long st_blksize; - unsigned long st_blocks; - unsigned long st_atime; - unsigned long st_atime_nsec; - unsigned long st_mtime; - unsigned long st_mtime_nsec; - unsigned long st_ctime; - unsigned long st_ctime_nsec; - unsigned long __unused4; - unsigned long __unused5; + unsigned long st_dev; + unsigned long st_ino; + unsigned short st_mode; + unsigned short st_nlink; + unsigned short st_uid; + unsigned short st_gid; + unsigned long st_rdev; + unsigned long st_size; + unsigned long st_blksize; + unsigned long st_blocks; + unsigned long st_atime; + unsigned long st_atime_nsec; + unsigned long st_mtime; + unsigned long st_mtime_nsec; + unsigned long st_ctime; + unsigned long st_ctime_nsec; + unsigned long __unused4; + unsigned long __unused5; }; struct stat64 { - unsigned long long st_dev; - unsigned char __pad0[4]; -#define STAT64_HAS_BROKEN_ST_INO 1 - unsigned long __st_ino; - unsigned int st_mode; - unsigned int st_nlink; - unsigned long st_uid; - unsigned long st_gid; - unsigned long long st_rdev; - unsigned char __pad3[4]; - long long st_size; - unsigned long st_blksize; - unsigned long long st_blocks; - unsigned long st_atime; - unsigned long st_atime_nsec; - unsigned long st_mtime; - unsigned long st_mtime_nsec; - unsigned long st_ctime; - unsigned long st_ctime_nsec; - unsigned long long st_ino; + unsigned long long st_dev; + unsigned char __pad0[4]; +#define STAT64_HAS_BROKEN_ST_INO 1 + unsigned long __st_ino; + unsigned int st_mode; + unsigned int st_nlink; + unsigned long st_uid; + unsigned long st_gid; + unsigned long long st_rdev; + unsigned char __pad3[4]; + long long st_size; + unsigned long st_blksize; + unsigned long long st_blocks; + unsigned long st_atime; + unsigned long st_atime_nsec; + unsigned long st_mtime; + unsigned long st_mtime_nsec; + unsigned long st_ctime; + unsigned long st_ctime_nsec; + unsigned long long st_ino; }; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/statfs.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/statfs.h index 3131a41c66c96daf71baf967059235c5be641c42..7e44ad136994e116e10a2bf2b89adcd0d01e8fd2 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/statfs.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/statfs.h @@ -1,10 +1,23 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _ASMARM_STATFS_H #define _ASMARM_STATFS_H -#define ARCH_PACK_STATFS64 __attribute__((packed,aligned(4))) +#define ARCH_PACK_STATFS64 __attribute__((packed, aligned(4))) #include #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/swab.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/swab.h index 0ba638959114cd108f37093c26ad90ea98fc222c..081a76ed59ef81cd11c6ac09959df25dbc54e9aa 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/swab.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/swab.h @@ -1,31 +1,29 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI__ASM_ARM_SWAB_H #define _UAPI__ASM_ARM_SWAB_H #include #include -#if !defined(__STRICT_ANSI__) || defined(__KERNEL__) -# define __SWAB_64_THRU_32__ +#ifndef __STRICT_ANSI__ +#define __SWAB_64_THRU_32__ #endif -#if !defined(__KERNEL__) || __LINUX_ARM_ARCH__ < 6 -static inline __attribute_const__ __u32 __arch_swab32(__u32 x) -{ - __u32 t; #ifndef __thumb__ - if (!__builtin_constant_p(x)) { - - asm ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x)); - } else #endif - t = x ^ ((x << 16) | (x >> 16)); - x = (x << 24) | (x >> 8); - t &= ~0x00FF0000; - x ^= (t >> 8); - return x; -} #define __arch_swab32 __arch_swab32 #endif -#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/termbits.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/termbits.h index a3723def452bd096a7135f6c1f2b4c9ea76c8da1..42af6fe24e6b7435861df31e7040b893266affe2 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/termbits.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/termbits.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/termios.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/termios.h index 0555809eefc00df59fdc1ef02116419a1094088e..feca4c60ef3486c940ade2a9dc2aec2358aa768c 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/termios.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/termios.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/types.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/types.h index 11b0feeacbe2ead01709c39b1fa454f0354ed8ea..461e48561f10eced5d6930a14d7967fe05c55a41 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/types.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/types.h @@ -1,21 +1,34 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI_ASM_TYPES_H #define _UAPI_ASM_TYPES_H #include #ifdef __INT32_TYPE__ #undef __INT32_TYPE__ -#define __INT32_TYPE__ int +#define __INT32_TYPE__ int #endif #ifdef __UINT32_TYPE__ #undef __UINT32_TYPE__ -#define __UINT32_TYPE__ unsigned int +#define __UINT32_TYPE__ unsigned int #endif #ifdef __UINTPTR_TYPE__ #undef __UINTPTR_TYPE__ -#define __UINTPTR_TYPE__ unsigned long +#define __UINTPTR_TYPE__ unsigned long #endif #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd-common.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd-common.h index e1540dd6e39fb69bc77196481c8580caa9e880f1..060d6269bb8cbcfde4bb11ac7a69a488d2804bfd 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd-common.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd-common.h @@ -1,8 +1,21 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI_ASM_ARM_UNISTD_COMMON_H #define _UAPI_ASM_ARM_UNISTD_COMMON_H 1 #define __NR_restart_syscall (__NR_SYSCALL_BASE + 0) @@ -360,4 +373,43 @@ #define __NR_statx (__NR_SYSCALL_BASE + 397) #define __NR_rseq (__NR_SYSCALL_BASE + 398) #define __NR_io_pgetevents (__NR_SYSCALL_BASE + 399) +#define __NR_migrate_pages (__NR_SYSCALL_BASE + 400) +#define __NR_kexec_file_load (__NR_SYSCALL_BASE + 401) +#define __NR_clock_gettime64 (__NR_SYSCALL_BASE + 403) +#define __NR_clock_settime64 (__NR_SYSCALL_BASE + 404) +#define __NR_clock_adjtime64 (__NR_SYSCALL_BASE + 405) +#define __NR_clock_getres_time64 (__NR_SYSCALL_BASE + 406) +#define __NR_clock_nanosleep_time64 (__NR_SYSCALL_BASE + 407) +#define __NR_timer_gettime64 (__NR_SYSCALL_BASE + 408) +#define __NR_timer_settime64 (__NR_SYSCALL_BASE + 409) +#define __NR_timerfd_gettime64 (__NR_SYSCALL_BASE + 410) +#define __NR_timerfd_settime64 (__NR_SYSCALL_BASE + 411) +#define __NR_utimensat_time64 (__NR_SYSCALL_BASE + 412) +#define __NR_pselect6_time64 (__NR_SYSCALL_BASE + 413) +#define __NR_ppoll_time64 (__NR_SYSCALL_BASE + 414) +#define __NR_io_pgetevents_time64 (__NR_SYSCALL_BASE + 416) +#define __NR_recvmmsg_time64 (__NR_SYSCALL_BASE + 417) +#define __NR_mq_timedsend_time64 (__NR_SYSCALL_BASE + 418) +#define __NR_mq_timedreceive_time64 (__NR_SYSCALL_BASE + 419) +#define __NR_semtimedop_time64 (__NR_SYSCALL_BASE + 420) +#define __NR_rt_sigtimedwait_time64 (__NR_SYSCALL_BASE + 421) +#define __NR_futex_time64 (__NR_SYSCALL_BASE + 422) +#define __NR_sched_rr_get_interval_time64 (__NR_SYSCALL_BASE + 423) +#define __NR_pidfd_send_signal (__NR_SYSCALL_BASE + 424) +#define __NR_io_uring_setup (__NR_SYSCALL_BASE + 425) +#define __NR_io_uring_enter (__NR_SYSCALL_BASE + 426) +#define __NR_io_uring_register (__NR_SYSCALL_BASE + 427) +#define __NR_open_tree (__NR_SYSCALL_BASE + 428) +#define __NR_move_mount (__NR_SYSCALL_BASE + 429) +#define __NR_fsopen (__NR_SYSCALL_BASE + 430) +#define __NR_fsconfig (__NR_SYSCALL_BASE + 431) +#define __NR_fsmount (__NR_SYSCALL_BASE + 432) +#define __NR_fspick (__NR_SYSCALL_BASE + 433) +#define __NR_pidfd_open (__NR_SYSCALL_BASE + 434) +#define __NR_clone3 (__NR_SYSCALL_BASE + 435) +#define __NR_close_range (__NR_SYSCALL_BASE + 436) +#define __NR_openat2 (__NR_SYSCALL_BASE + 437) +#define __NR_pidfd_getfd (__NR_SYSCALL_BASE + 438) +#define __NR_faccessat2 (__NR_SYSCALL_BASE + 439) +#define __NR_process_madvise (__NR_SYSCALL_BASE + 440) #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd-eabi.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd-eabi.h index 95e54d333fe48ba485bd5023c607e829b94c91fd..54e1867767ed0a001f9bfa49ed6aad341bfb4630 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd-eabi.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd-eabi.h @@ -1,8 +1,21 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI_ASM_ARM_UNISTD_EABI_H #define _UAPI_ASM_ARM_UNISTD_EABI_H 1 #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd-oabi.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd-oabi.h index 16149e2aedb843f1a8ddc3d00e8860abcf425fac..d2633e8b663b9b40cc8deb4460f69e91afc82faa 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd-oabi.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd-oabi.h @@ -1,8 +1,21 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI_ASM_ARM_UNISTD_OABI_H #define _UAPI_ASM_ARM_UNISTD_OABI_H 1 #define __NR_time (__NR_SYSCALL_BASE + 13) diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd.h b/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd.h index 777a04dad1a4b5ddc8ea78116d21ef91588381c4..f4b1f3a4aaccd85291279e9b4e9895fc8bd0ff20 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm/asm/unistd.h @@ -1,25 +1,33 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI__ASM_ARM_UNISTD_H #define _UAPI__ASM_ARM_UNISTD_H -#define __NR_OABI_SYSCALL_BASE 0x900000 -#if defined(__thumb__) || 1 -#define __NR_SYSCALL_BASE 0 +#define __NR_OABI_SYSCALL_BASE 0x900000 +#define __NR_SYSCALL_BASE 0 #include -#else -#define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE -#include -#endif #include -#define __NR_sync_file_range2 __NR_arm_sync_file_range -#define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000) -#define __ARM_NR_breakpoint (__ARM_NR_BASE+1) -#define __ARM_NR_cacheflush (__ARM_NR_BASE+2) -#define __ARM_NR_usr26 (__ARM_NR_BASE+3) -#define __ARM_NR_usr32 (__ARM_NR_BASE+4) -#define __ARM_NR_set_tls (__ARM_NR_BASE+5) -#define __ARM_NR_get_tls (__ARM_NR_BASE+6) +#define __NR_sync_file_range2 __NR_arm_sync_file_range +#define __ARM_NR_BASE (__NR_SYSCALL_BASE + 0x0f0000) +#define __ARM_NR_breakpoint (__ARM_NR_BASE + 1) +#define __ARM_NR_cacheflush (__ARM_NR_BASE + 2) +#define __ARM_NR_usr26 (__ARM_NR_BASE + 3) +#define __ARM_NR_usr32 (__ARM_NR_BASE + 4) +#define __ARM_NR_set_tls (__ARM_NR_BASE + 5) +#define __ARM_NR_get_tls (__ARM_NR_BASE + 6) #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-common.h.cmd b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-common.h.cmd deleted file mode 100644 index b2a83d44d31851e9751ca3aaabaf2b8b8e98989d..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-common.h.cmd +++ /dev/null @@ -1 +0,0 @@ -cmd_arch/arm/include/generated/uapi/asm/unistd-common.h := sh './arch/arm/tools/syscallhdr.sh' 'arch/arm/tools/syscall.tbl' 'arch/arm/include/generated/uapi/asm/unistd-common.h' 'common' '' '__NR_SYSCALL_BASE' diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-eabi.h.cmd b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-eabi.h.cmd deleted file mode 100644 index 0b00ac891541a7ce6e891fcd25baf6da3b35e881..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-eabi.h.cmd +++ /dev/null @@ -1 +0,0 @@ -cmd_arch/arm/include/generated/uapi/asm/unistd-eabi.h := sh './arch/arm/tools/syscallhdr.sh' 'arch/arm/tools/syscall.tbl' 'arch/arm/include/generated/uapi/asm/unistd-eabi.h' 'eabi' '' '__NR_SYSCALL_BASE' diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-oabi.h.cmd b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-oabi.h.cmd deleted file mode 100644 index fd36745d95e302835444be277285c9be00904b49..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-oabi.h.cmd +++ /dev/null @@ -1 +0,0 @@ -cmd_arch/arm/include/generated/uapi/asm/unistd-oabi.h := sh './arch/arm/tools/syscallhdr.sh' 'arch/arm/tools/syscall.tbl' 'arch/arm/include/generated/uapi/asm/unistd-oabi.h' 'oabi' '' '__NR_SYSCALL_BASE' diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/bitsperlong.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/bitsperlong.h deleted file mode 100644 index 3c87a8d8b25bc5a318ff5036a4c850aba1ae60a4..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/bitsperlong.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/bpf_perf_event.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/bpf_perf_event.h deleted file mode 100644 index 5cef26b13ed63275bc532ada2dbaee992deae7b8..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/bpf_perf_event.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/errno.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/errno.h deleted file mode 100644 index c1081c8daad50d5b189a37d55848c9bdd75ba2fb..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/errno.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/ioctl.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/ioctl.h deleted file mode 100644 index 32a259fd9742be5cf8fa8007e93e7ca5885ab2e3..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/ioctl.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/ipcbuf.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/ipcbuf.h deleted file mode 100644 index d0004a42cf35bbb2cad966f36fef93dac21e747e..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/ipcbuf.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/kvm_para.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/kvm_para.h deleted file mode 100644 index c74c294b5fefaae09b36ba01fd2f924a8a682593..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/kvm_para.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/msgbuf.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/msgbuf.h deleted file mode 100644 index a361e7ccf978bff0be529f7423cb104d62a1bf1d..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/msgbuf.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/param.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/param.h deleted file mode 100644 index 67e772816deff501c5f7f828cbbb7586832b2aad..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/param.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/poll.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/poll.h deleted file mode 100644 index 93f531dc33bcef86a5ee498f83115588dffa1b81..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/poll.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/resource.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/resource.h deleted file mode 100644 index 728000e7657825f34b6eb69fc1b5e0eabc76a765..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/resource.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/sembuf.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/sembuf.h deleted file mode 100644 index 1769cec451524383f0ecf0d5282fc0e33a76ea5a..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/sembuf.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/shmbuf.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/shmbuf.h deleted file mode 100644 index ada99043a09a4fa58f552cd66682a29365ecc997..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/shmbuf.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/siginfo.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/siginfo.h deleted file mode 100644 index 05b664d21ce5786fb05a44052970f8716c9d710b..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/siginfo.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/socket.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/socket.h deleted file mode 100644 index b61e0f466b990c9d6e62f5fd9e530d9735139c35..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/socket.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/sockios.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/sockios.h deleted file mode 100644 index 9cb632b833d10708c8e94ad81d134dd44332a634..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/sockios.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/termbits.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/termbits.h deleted file mode 100644 index a3723def452bd096a7135f6c1f2b4c9ea76c8da1..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/termbits.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/termios.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/termios.h deleted file mode 100644 index 0555809eefc00df59fdc1ef02116419a1094088e..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/termios.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/unistd-common.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/unistd-common.h deleted file mode 100644 index 4ffa8f9edd0c7ad8380db3a62384313cd524cd13..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/unistd-common.h +++ /dev/null @@ -1,402 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef _UAPI_ASM_ARM_UNISTD_COMMON_H -#define _UAPI_ASM_ARM_UNISTD_COMMON_H 1 -#define __NR_restart_syscall (__NR_SYSCALL_BASE + 0) -#define __NR_exit (__NR_SYSCALL_BASE + 1) -#define __NR_fork (__NR_SYSCALL_BASE + 2) -#define __NR_read (__NR_SYSCALL_BASE + 3) -#define __NR_write (__NR_SYSCALL_BASE + 4) -#define __NR_open (__NR_SYSCALL_BASE + 5) -#define __NR_close (__NR_SYSCALL_BASE + 6) -#define __NR_creat (__NR_SYSCALL_BASE + 8) -#define __NR_link (__NR_SYSCALL_BASE + 9) -#define __NR_unlink (__NR_SYSCALL_BASE + 10) -#define __NR_execve (__NR_SYSCALL_BASE + 11) -#define __NR_chdir (__NR_SYSCALL_BASE + 12) -#define __NR_mknod (__NR_SYSCALL_BASE + 14) -#define __NR_chmod (__NR_SYSCALL_BASE + 15) -#define __NR_lchown (__NR_SYSCALL_BASE + 16) -#define __NR_lseek (__NR_SYSCALL_BASE + 19) -#define __NR_getpid (__NR_SYSCALL_BASE + 20) -#define __NR_mount (__NR_SYSCALL_BASE + 21) -#define __NR_setuid (__NR_SYSCALL_BASE + 23) -#define __NR_getuid (__NR_SYSCALL_BASE + 24) -#define __NR_ptrace (__NR_SYSCALL_BASE + 26) -#define __NR_pause (__NR_SYSCALL_BASE + 29) -#define __NR_access (__NR_SYSCALL_BASE + 33) -#define __NR_nice (__NR_SYSCALL_BASE + 34) -#define __NR_sync (__NR_SYSCALL_BASE + 36) -#define __NR_kill (__NR_SYSCALL_BASE + 37) -#define __NR_rename (__NR_SYSCALL_BASE + 38) -#define __NR_mkdir (__NR_SYSCALL_BASE + 39) -#define __NR_rmdir (__NR_SYSCALL_BASE + 40) -#define __NR_dup (__NR_SYSCALL_BASE + 41) -#define __NR_pipe (__NR_SYSCALL_BASE + 42) -#define __NR_times (__NR_SYSCALL_BASE + 43) -#define __NR_brk (__NR_SYSCALL_BASE + 45) -#define __NR_setgid (__NR_SYSCALL_BASE + 46) -#define __NR_getgid (__NR_SYSCALL_BASE + 47) -#define __NR_geteuid (__NR_SYSCALL_BASE + 49) -#define __NR_getegid (__NR_SYSCALL_BASE + 50) -#define __NR_acct (__NR_SYSCALL_BASE + 51) -#define __NR_umount2 (__NR_SYSCALL_BASE + 52) -#define __NR_ioctl (__NR_SYSCALL_BASE + 54) -#define __NR_fcntl (__NR_SYSCALL_BASE + 55) -#define __NR_setpgid (__NR_SYSCALL_BASE + 57) -#define __NR_umask (__NR_SYSCALL_BASE + 60) -#define __NR_chroot (__NR_SYSCALL_BASE + 61) -#define __NR_ustat (__NR_SYSCALL_BASE + 62) -#define __NR_dup2 (__NR_SYSCALL_BASE + 63) -#define __NR_getppid (__NR_SYSCALL_BASE + 64) -#define __NR_getpgrp (__NR_SYSCALL_BASE + 65) -#define __NR_setsid (__NR_SYSCALL_BASE + 66) -#define __NR_sigaction (__NR_SYSCALL_BASE + 67) -#define __NR_setreuid (__NR_SYSCALL_BASE + 70) -#define __NR_setregid (__NR_SYSCALL_BASE + 71) -#define __NR_sigsuspend (__NR_SYSCALL_BASE + 72) -#define __NR_sigpending (__NR_SYSCALL_BASE + 73) -#define __NR_sethostname (__NR_SYSCALL_BASE + 74) -#define __NR_setrlimit (__NR_SYSCALL_BASE + 75) -#define __NR_getrusage (__NR_SYSCALL_BASE + 77) -#define __NR_gettimeofday (__NR_SYSCALL_BASE + 78) -#define __NR_settimeofday (__NR_SYSCALL_BASE + 79) -#define __NR_getgroups (__NR_SYSCALL_BASE + 80) -#define __NR_setgroups (__NR_SYSCALL_BASE + 81) -#define __NR_symlink (__NR_SYSCALL_BASE + 83) -#define __NR_readlink (__NR_SYSCALL_BASE + 85) -#define __NR_uselib (__NR_SYSCALL_BASE + 86) -#define __NR_swapon (__NR_SYSCALL_BASE + 87) -#define __NR_reboot (__NR_SYSCALL_BASE + 88) -#define __NR_munmap (__NR_SYSCALL_BASE + 91) -#define __NR_truncate (__NR_SYSCALL_BASE + 92) -#define __NR_ftruncate (__NR_SYSCALL_BASE + 93) -#define __NR_fchmod (__NR_SYSCALL_BASE + 94) -#define __NR_fchown (__NR_SYSCALL_BASE + 95) -#define __NR_getpriority (__NR_SYSCALL_BASE + 96) -#define __NR_setpriority (__NR_SYSCALL_BASE + 97) -#define __NR_statfs (__NR_SYSCALL_BASE + 99) -#define __NR_fstatfs (__NR_SYSCALL_BASE + 100) -#define __NR_syslog (__NR_SYSCALL_BASE + 103) -#define __NR_setitimer (__NR_SYSCALL_BASE + 104) -#define __NR_getitimer (__NR_SYSCALL_BASE + 105) -#define __NR_stat (__NR_SYSCALL_BASE + 106) -#define __NR_lstat (__NR_SYSCALL_BASE + 107) -#define __NR_fstat (__NR_SYSCALL_BASE + 108) -#define __NR_vhangup (__NR_SYSCALL_BASE + 111) -#define __NR_wait4 (__NR_SYSCALL_BASE + 114) -#define __NR_swapoff (__NR_SYSCALL_BASE + 115) -#define __NR_sysinfo (__NR_SYSCALL_BASE + 116) -#define __NR_fsync (__NR_SYSCALL_BASE + 118) -#define __NR_sigreturn (__NR_SYSCALL_BASE + 119) -#define __NR_clone (__NR_SYSCALL_BASE + 120) -#define __NR_setdomainname (__NR_SYSCALL_BASE + 121) -#define __NR_uname (__NR_SYSCALL_BASE + 122) -#define __NR_adjtimex (__NR_SYSCALL_BASE + 124) -#define __NR_mprotect (__NR_SYSCALL_BASE + 125) -#define __NR_sigprocmask (__NR_SYSCALL_BASE + 126) -#define __NR_init_module (__NR_SYSCALL_BASE + 128) -#define __NR_delete_module (__NR_SYSCALL_BASE + 129) -#define __NR_quotactl (__NR_SYSCALL_BASE + 131) -#define __NR_getpgid (__NR_SYSCALL_BASE + 132) -#define __NR_fchdir (__NR_SYSCALL_BASE + 133) -#define __NR_bdflush (__NR_SYSCALL_BASE + 134) -#define __NR_sysfs (__NR_SYSCALL_BASE + 135) -#define __NR_personality (__NR_SYSCALL_BASE + 136) -#define __NR_setfsuid (__NR_SYSCALL_BASE + 138) -#define __NR_setfsgid (__NR_SYSCALL_BASE + 139) -#define __NR__llseek (__NR_SYSCALL_BASE + 140) -#define __NR_getdents (__NR_SYSCALL_BASE + 141) -#define __NR__newselect (__NR_SYSCALL_BASE + 142) -#define __NR_flock (__NR_SYSCALL_BASE + 143) -#define __NR_msync (__NR_SYSCALL_BASE + 144) -#define __NR_readv (__NR_SYSCALL_BASE + 145) -#define __NR_writev (__NR_SYSCALL_BASE + 146) -#define __NR_getsid (__NR_SYSCALL_BASE + 147) -#define __NR_fdatasync (__NR_SYSCALL_BASE + 148) -#define __NR__sysctl (__NR_SYSCALL_BASE + 149) -#define __NR_mlock (__NR_SYSCALL_BASE + 150) -#define __NR_munlock (__NR_SYSCALL_BASE + 151) -#define __NR_mlockall (__NR_SYSCALL_BASE + 152) -#define __NR_munlockall (__NR_SYSCALL_BASE + 153) -#define __NR_sched_setparam (__NR_SYSCALL_BASE + 154) -#define __NR_sched_getparam (__NR_SYSCALL_BASE + 155) -#define __NR_sched_setscheduler (__NR_SYSCALL_BASE + 156) -#define __NR_sched_getscheduler (__NR_SYSCALL_BASE + 157) -#define __NR_sched_yield (__NR_SYSCALL_BASE + 158) -#define __NR_sched_get_priority_max (__NR_SYSCALL_BASE + 159) -#define __NR_sched_get_priority_min (__NR_SYSCALL_BASE + 160) -#define __NR_sched_rr_get_interval (__NR_SYSCALL_BASE + 161) -#define __NR_nanosleep (__NR_SYSCALL_BASE + 162) -#define __NR_mremap (__NR_SYSCALL_BASE + 163) -#define __NR_setresuid (__NR_SYSCALL_BASE + 164) -#define __NR_getresuid (__NR_SYSCALL_BASE + 165) -#define __NR_poll (__NR_SYSCALL_BASE + 168) -#define __NR_nfsservctl (__NR_SYSCALL_BASE + 169) -#define __NR_setresgid (__NR_SYSCALL_BASE + 170) -#define __NR_getresgid (__NR_SYSCALL_BASE + 171) -#define __NR_prctl (__NR_SYSCALL_BASE + 172) -#define __NR_rt_sigreturn (__NR_SYSCALL_BASE + 173) -#define __NR_rt_sigaction (__NR_SYSCALL_BASE + 174) -#define __NR_rt_sigprocmask (__NR_SYSCALL_BASE + 175) -#define __NR_rt_sigpending (__NR_SYSCALL_BASE + 176) -#define __NR_rt_sigtimedwait (__NR_SYSCALL_BASE + 177) -#define __NR_rt_sigqueueinfo (__NR_SYSCALL_BASE + 178) -#define __NR_rt_sigsuspend (__NR_SYSCALL_BASE + 179) -#define __NR_pread64 (__NR_SYSCALL_BASE + 180) -#define __NR_pwrite64 (__NR_SYSCALL_BASE + 181) -#define __NR_chown (__NR_SYSCALL_BASE + 182) -#define __NR_getcwd (__NR_SYSCALL_BASE + 183) -#define __NR_capget (__NR_SYSCALL_BASE + 184) -#define __NR_capset (__NR_SYSCALL_BASE + 185) -#define __NR_sigaltstack (__NR_SYSCALL_BASE + 186) -#define __NR_sendfile (__NR_SYSCALL_BASE + 187) -#define __NR_vfork (__NR_SYSCALL_BASE + 190) -#define __NR_ugetrlimit (__NR_SYSCALL_BASE + 191) -#define __NR_mmap2 (__NR_SYSCALL_BASE + 192) -#define __NR_truncate64 (__NR_SYSCALL_BASE + 193) -#define __NR_ftruncate64 (__NR_SYSCALL_BASE + 194) -#define __NR_stat64 (__NR_SYSCALL_BASE + 195) -#define __NR_lstat64 (__NR_SYSCALL_BASE + 196) -#define __NR_fstat64 (__NR_SYSCALL_BASE + 197) -#define __NR_lchown32 (__NR_SYSCALL_BASE + 198) -#define __NR_getuid32 (__NR_SYSCALL_BASE + 199) -#define __NR_getgid32 (__NR_SYSCALL_BASE + 200) -#define __NR_geteuid32 (__NR_SYSCALL_BASE + 201) -#define __NR_getegid32 (__NR_SYSCALL_BASE + 202) -#define __NR_setreuid32 (__NR_SYSCALL_BASE + 203) -#define __NR_setregid32 (__NR_SYSCALL_BASE + 204) -#define __NR_getgroups32 (__NR_SYSCALL_BASE + 205) -#define __NR_setgroups32 (__NR_SYSCALL_BASE + 206) -#define __NR_fchown32 (__NR_SYSCALL_BASE + 207) -#define __NR_setresuid32 (__NR_SYSCALL_BASE + 208) -#define __NR_getresuid32 (__NR_SYSCALL_BASE + 209) -#define __NR_setresgid32 (__NR_SYSCALL_BASE + 210) -#define __NR_getresgid32 (__NR_SYSCALL_BASE + 211) -#define __NR_chown32 (__NR_SYSCALL_BASE + 212) -#define __NR_setuid32 (__NR_SYSCALL_BASE + 213) -#define __NR_setgid32 (__NR_SYSCALL_BASE + 214) -#define __NR_setfsuid32 (__NR_SYSCALL_BASE + 215) -#define __NR_setfsgid32 (__NR_SYSCALL_BASE + 216) -#define __NR_getdents64 (__NR_SYSCALL_BASE + 217) -#define __NR_pivot_root (__NR_SYSCALL_BASE + 218) -#define __NR_mincore (__NR_SYSCALL_BASE + 219) -#define __NR_madvise (__NR_SYSCALL_BASE + 220) -#define __NR_fcntl64 (__NR_SYSCALL_BASE + 221) -#define __NR_gettid (__NR_SYSCALL_BASE + 224) -#define __NR_readahead (__NR_SYSCALL_BASE + 225) -#define __NR_setxattr (__NR_SYSCALL_BASE + 226) -#define __NR_lsetxattr (__NR_SYSCALL_BASE + 227) -#define __NR_fsetxattr (__NR_SYSCALL_BASE + 228) -#define __NR_getxattr (__NR_SYSCALL_BASE + 229) -#define __NR_lgetxattr (__NR_SYSCALL_BASE + 230) -#define __NR_fgetxattr (__NR_SYSCALL_BASE + 231) -#define __NR_listxattr (__NR_SYSCALL_BASE + 232) -#define __NR_llistxattr (__NR_SYSCALL_BASE + 233) -#define __NR_flistxattr (__NR_SYSCALL_BASE + 234) -#define __NR_removexattr (__NR_SYSCALL_BASE + 235) -#define __NR_lremovexattr (__NR_SYSCALL_BASE + 236) -#define __NR_fremovexattr (__NR_SYSCALL_BASE + 237) -#define __NR_tkill (__NR_SYSCALL_BASE + 238) -#define __NR_sendfile64 (__NR_SYSCALL_BASE + 239) -#define __NR_futex (__NR_SYSCALL_BASE + 240) -#define __NR_sched_setaffinity (__NR_SYSCALL_BASE + 241) -#define __NR_sched_getaffinity (__NR_SYSCALL_BASE + 242) -#define __NR_io_setup (__NR_SYSCALL_BASE + 243) -#define __NR_io_destroy (__NR_SYSCALL_BASE + 244) -#define __NR_io_getevents (__NR_SYSCALL_BASE + 245) -#define __NR_io_submit (__NR_SYSCALL_BASE + 246) -#define __NR_io_cancel (__NR_SYSCALL_BASE + 247) -#define __NR_exit_group (__NR_SYSCALL_BASE + 248) -#define __NR_lookup_dcookie (__NR_SYSCALL_BASE + 249) -#define __NR_epoll_create (__NR_SYSCALL_BASE + 250) -#define __NR_epoll_ctl (__NR_SYSCALL_BASE + 251) -#define __NR_epoll_wait (__NR_SYSCALL_BASE + 252) -#define __NR_remap_file_pages (__NR_SYSCALL_BASE + 253) -#define __NR_set_tid_address (__NR_SYSCALL_BASE + 256) -#define __NR_timer_create (__NR_SYSCALL_BASE + 257) -#define __NR_timer_settime (__NR_SYSCALL_BASE + 258) -#define __NR_timer_gettime (__NR_SYSCALL_BASE + 259) -#define __NR_timer_getoverrun (__NR_SYSCALL_BASE + 260) -#define __NR_timer_delete (__NR_SYSCALL_BASE + 261) -#define __NR_clock_settime (__NR_SYSCALL_BASE + 262) -#define __NR_clock_gettime (__NR_SYSCALL_BASE + 263) -#define __NR_clock_getres (__NR_SYSCALL_BASE + 264) -#define __NR_clock_nanosleep (__NR_SYSCALL_BASE + 265) -#define __NR_statfs64 (__NR_SYSCALL_BASE + 266) -#define __NR_fstatfs64 (__NR_SYSCALL_BASE + 267) -#define __NR_tgkill (__NR_SYSCALL_BASE + 268) -#define __NR_utimes (__NR_SYSCALL_BASE + 269) -#define __NR_arm_fadvise64_64 (__NR_SYSCALL_BASE + 270) -#define __NR_pciconfig_iobase (__NR_SYSCALL_BASE + 271) -#define __NR_pciconfig_read (__NR_SYSCALL_BASE + 272) -#define __NR_pciconfig_write (__NR_SYSCALL_BASE + 273) -#define __NR_mq_open (__NR_SYSCALL_BASE + 274) -#define __NR_mq_unlink (__NR_SYSCALL_BASE + 275) -#define __NR_mq_timedsend (__NR_SYSCALL_BASE + 276) -#define __NR_mq_timedreceive (__NR_SYSCALL_BASE + 277) -#define __NR_mq_notify (__NR_SYSCALL_BASE + 278) -#define __NR_mq_getsetattr (__NR_SYSCALL_BASE + 279) -#define __NR_waitid (__NR_SYSCALL_BASE + 280) -#define __NR_socket (__NR_SYSCALL_BASE + 281) -#define __NR_bind (__NR_SYSCALL_BASE + 282) -#define __NR_connect (__NR_SYSCALL_BASE + 283) -#define __NR_listen (__NR_SYSCALL_BASE + 284) -#define __NR_accept (__NR_SYSCALL_BASE + 285) -#define __NR_getsockname (__NR_SYSCALL_BASE + 286) -#define __NR_getpeername (__NR_SYSCALL_BASE + 287) -#define __NR_socketpair (__NR_SYSCALL_BASE + 288) -#define __NR_send (__NR_SYSCALL_BASE + 289) -#define __NR_sendto (__NR_SYSCALL_BASE + 290) -#define __NR_recv (__NR_SYSCALL_BASE + 291) -#define __NR_recvfrom (__NR_SYSCALL_BASE + 292) -#define __NR_shutdown (__NR_SYSCALL_BASE + 293) -#define __NR_setsockopt (__NR_SYSCALL_BASE + 294) -#define __NR_getsockopt (__NR_SYSCALL_BASE + 295) -#define __NR_sendmsg (__NR_SYSCALL_BASE + 296) -#define __NR_recvmsg (__NR_SYSCALL_BASE + 297) -#define __NR_semop (__NR_SYSCALL_BASE + 298) -#define __NR_semget (__NR_SYSCALL_BASE + 299) -#define __NR_semctl (__NR_SYSCALL_BASE + 300) -#define __NR_msgsnd (__NR_SYSCALL_BASE + 301) -#define __NR_msgrcv (__NR_SYSCALL_BASE + 302) -#define __NR_msgget (__NR_SYSCALL_BASE + 303) -#define __NR_msgctl (__NR_SYSCALL_BASE + 304) -#define __NR_shmat (__NR_SYSCALL_BASE + 305) -#define __NR_shmdt (__NR_SYSCALL_BASE + 306) -#define __NR_shmget (__NR_SYSCALL_BASE + 307) -#define __NR_shmctl (__NR_SYSCALL_BASE + 308) -#define __NR_add_key (__NR_SYSCALL_BASE + 309) -#define __NR_request_key (__NR_SYSCALL_BASE + 310) -#define __NR_keyctl (__NR_SYSCALL_BASE + 311) -#define __NR_semtimedop (__NR_SYSCALL_BASE + 312) -#define __NR_vserver (__NR_SYSCALL_BASE + 313) -#define __NR_ioprio_set (__NR_SYSCALL_BASE + 314) -#define __NR_ioprio_get (__NR_SYSCALL_BASE + 315) -#define __NR_inotify_init (__NR_SYSCALL_BASE + 316) -#define __NR_inotify_add_watch (__NR_SYSCALL_BASE + 317) -#define __NR_inotify_rm_watch (__NR_SYSCALL_BASE + 318) -#define __NR_mbind (__NR_SYSCALL_BASE + 319) -#define __NR_get_mempolicy (__NR_SYSCALL_BASE + 320) -#define __NR_set_mempolicy (__NR_SYSCALL_BASE + 321) -#define __NR_openat (__NR_SYSCALL_BASE + 322) -#define __NR_mkdirat (__NR_SYSCALL_BASE + 323) -#define __NR_mknodat (__NR_SYSCALL_BASE + 324) -#define __NR_fchownat (__NR_SYSCALL_BASE + 325) -#define __NR_futimesat (__NR_SYSCALL_BASE + 326) -#define __NR_fstatat64 (__NR_SYSCALL_BASE + 327) -#define __NR_unlinkat (__NR_SYSCALL_BASE + 328) -#define __NR_renameat (__NR_SYSCALL_BASE + 329) -#define __NR_linkat (__NR_SYSCALL_BASE + 330) -#define __NR_symlinkat (__NR_SYSCALL_BASE + 331) -#define __NR_readlinkat (__NR_SYSCALL_BASE + 332) -#define __NR_fchmodat (__NR_SYSCALL_BASE + 333) -#define __NR_faccessat (__NR_SYSCALL_BASE + 334) -#define __NR_pselect6 (__NR_SYSCALL_BASE + 335) -#define __NR_ppoll (__NR_SYSCALL_BASE + 336) -#define __NR_unshare (__NR_SYSCALL_BASE + 337) -#define __NR_set_robust_list (__NR_SYSCALL_BASE + 338) -#define __NR_get_robust_list (__NR_SYSCALL_BASE + 339) -#define __NR_splice (__NR_SYSCALL_BASE + 340) -#define __NR_arm_sync_file_range (__NR_SYSCALL_BASE + 341) -#define __NR_tee (__NR_SYSCALL_BASE + 342) -#define __NR_vmsplice (__NR_SYSCALL_BASE + 343) -#define __NR_move_pages (__NR_SYSCALL_BASE + 344) -#define __NR_getcpu (__NR_SYSCALL_BASE + 345) -#define __NR_epoll_pwait (__NR_SYSCALL_BASE + 346) -#define __NR_kexec_load (__NR_SYSCALL_BASE + 347) -#define __NR_utimensat (__NR_SYSCALL_BASE + 348) -#define __NR_signalfd (__NR_SYSCALL_BASE + 349) -#define __NR_timerfd_create (__NR_SYSCALL_BASE + 350) -#define __NR_eventfd (__NR_SYSCALL_BASE + 351) -#define __NR_fallocate (__NR_SYSCALL_BASE + 352) -#define __NR_timerfd_settime (__NR_SYSCALL_BASE + 353) -#define __NR_timerfd_gettime (__NR_SYSCALL_BASE + 354) -#define __NR_signalfd4 (__NR_SYSCALL_BASE + 355) -#define __NR_eventfd2 (__NR_SYSCALL_BASE + 356) -#define __NR_epoll_create1 (__NR_SYSCALL_BASE + 357) -#define __NR_dup3 (__NR_SYSCALL_BASE + 358) -#define __NR_pipe2 (__NR_SYSCALL_BASE + 359) -#define __NR_inotify_init1 (__NR_SYSCALL_BASE + 360) -#define __NR_preadv (__NR_SYSCALL_BASE + 361) -#define __NR_pwritev (__NR_SYSCALL_BASE + 362) -#define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE + 363) -#define __NR_perf_event_open (__NR_SYSCALL_BASE + 364) -#define __NR_recvmmsg (__NR_SYSCALL_BASE + 365) -#define __NR_accept4 (__NR_SYSCALL_BASE + 366) -#define __NR_fanotify_init (__NR_SYSCALL_BASE + 367) -#define __NR_fanotify_mark (__NR_SYSCALL_BASE + 368) -#define __NR_prlimit64 (__NR_SYSCALL_BASE + 369) -#define __NR_name_to_handle_at (__NR_SYSCALL_BASE + 370) -#define __NR_open_by_handle_at (__NR_SYSCALL_BASE + 371) -#define __NR_clock_adjtime (__NR_SYSCALL_BASE + 372) -#define __NR_syncfs (__NR_SYSCALL_BASE + 373) -#define __NR_sendmmsg (__NR_SYSCALL_BASE + 374) -#define __NR_setns (__NR_SYSCALL_BASE + 375) -#define __NR_process_vm_readv (__NR_SYSCALL_BASE + 376) -#define __NR_process_vm_writev (__NR_SYSCALL_BASE + 377) -#define __NR_kcmp (__NR_SYSCALL_BASE + 378) -#define __NR_finit_module (__NR_SYSCALL_BASE + 379) -#define __NR_sched_setattr (__NR_SYSCALL_BASE + 380) -#define __NR_sched_getattr (__NR_SYSCALL_BASE + 381) -#define __NR_renameat2 (__NR_SYSCALL_BASE + 382) -#define __NR_seccomp (__NR_SYSCALL_BASE + 383) -#define __NR_getrandom (__NR_SYSCALL_BASE + 384) -#define __NR_memfd_create (__NR_SYSCALL_BASE + 385) -#define __NR_bpf (__NR_SYSCALL_BASE + 386) -#define __NR_execveat (__NR_SYSCALL_BASE + 387) -#define __NR_userfaultfd (__NR_SYSCALL_BASE + 388) -#define __NR_membarrier (__NR_SYSCALL_BASE + 389) -#define __NR_mlock2 (__NR_SYSCALL_BASE + 390) -#define __NR_copy_file_range (__NR_SYSCALL_BASE + 391) -#define __NR_preadv2 (__NR_SYSCALL_BASE + 392) -#define __NR_pwritev2 (__NR_SYSCALL_BASE + 393) -#define __NR_pkey_mprotect (__NR_SYSCALL_BASE + 394) -#define __NR_pkey_alloc (__NR_SYSCALL_BASE + 395) -#define __NR_pkey_free (__NR_SYSCALL_BASE + 396) -#define __NR_statx (__NR_SYSCALL_BASE + 397) -#define __NR_rseq (__NR_SYSCALL_BASE + 398) -#define __NR_io_pgetevents (__NR_SYSCALL_BASE + 399) -#define __NR_migrate_pages (__NR_SYSCALL_BASE + 400) -#define __NR_kexec_file_load (__NR_SYSCALL_BASE + 401) -#define __NR_clock_gettime64 (__NR_SYSCALL_BASE + 403) -#define __NR_clock_settime64 (__NR_SYSCALL_BASE + 404) -#define __NR_clock_adjtime64 (__NR_SYSCALL_BASE + 405) -#define __NR_clock_getres_time64 (__NR_SYSCALL_BASE + 406) -#define __NR_clock_nanosleep_time64 (__NR_SYSCALL_BASE + 407) -#define __NR_timer_gettime64 (__NR_SYSCALL_BASE + 408) -#define __NR_timer_settime64 (__NR_SYSCALL_BASE + 409) -#define __NR_timerfd_gettime64 (__NR_SYSCALL_BASE + 410) -#define __NR_timerfd_settime64 (__NR_SYSCALL_BASE + 411) -#define __NR_utimensat_time64 (__NR_SYSCALL_BASE + 412) -#define __NR_pselect6_time64 (__NR_SYSCALL_BASE + 413) -#define __NR_ppoll_time64 (__NR_SYSCALL_BASE + 414) -#define __NR_io_pgetevents_time64 (__NR_SYSCALL_BASE + 416) -#define __NR_recvmmsg_time64 (__NR_SYSCALL_BASE + 417) -#define __NR_mq_timedsend_time64 (__NR_SYSCALL_BASE + 418) -#define __NR_mq_timedreceive_time64 (__NR_SYSCALL_BASE + 419) -#define __NR_semtimedop_time64 (__NR_SYSCALL_BASE + 420) -#define __NR_rt_sigtimedwait_time64 (__NR_SYSCALL_BASE + 421) -#define __NR_futex_time64 (__NR_SYSCALL_BASE + 422) -#define __NR_sched_rr_get_interval_time64 (__NR_SYSCALL_BASE + 423) -#define __NR_pidfd_send_signal (__NR_SYSCALL_BASE + 424) -#define __NR_io_uring_setup (__NR_SYSCALL_BASE + 425) -#define __NR_io_uring_enter (__NR_SYSCALL_BASE + 426) -#define __NR_io_uring_register (__NR_SYSCALL_BASE + 427) -#define __NR_open_tree (__NR_SYSCALL_BASE + 428) -#define __NR_move_mount (__NR_SYSCALL_BASE + 429) -#define __NR_fsopen (__NR_SYSCALL_BASE + 430) -#define __NR_fsconfig (__NR_SYSCALL_BASE + 431) -#define __NR_fsmount (__NR_SYSCALL_BASE + 432) -#define __NR_fspick (__NR_SYSCALL_BASE + 433) -#define __NR_pidfd_open (__NR_SYSCALL_BASE + 434) -#define __NR_clone3 (__NR_SYSCALL_BASE + 435) -#define __NR_close_range (__NR_SYSCALL_BASE + 436) -#define __NR_openat2 (__NR_SYSCALL_BASE + 437) -#define __NR_pidfd_getfd (__NR_SYSCALL_BASE + 438) -#define __NR_faccessat2 (__NR_SYSCALL_BASE + 439) -#define __NR_process_madvise (__NR_SYSCALL_BASE + 440) -#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/unistd-eabi.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/unistd-eabi.h deleted file mode 100644 index 95e54d333fe48ba485bd5023c607e829b94c91fd..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/unistd-eabi.h +++ /dev/null @@ -1,8 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef _UAPI_ASM_ARM_UNISTD_EABI_H -#define _UAPI_ASM_ARM_UNISTD_EABI_H 1 -#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/unistd-oabi.h b/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/unistd-oabi.h deleted file mode 100644 index 16149e2aedb843f1a8ddc3d00e8860abcf425fac..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-arm/uapi/asm/unistd-oabi.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef _UAPI_ASM_ARM_UNISTD_OABI_H -#define _UAPI_ASM_ARM_UNISTD_OABI_H 1 -#define __NR_time (__NR_SYSCALL_BASE + 13) -#define __NR_umount (__NR_SYSCALL_BASE + 22) -#define __NR_stime (__NR_SYSCALL_BASE + 25) -#define __NR_alarm (__NR_SYSCALL_BASE + 27) -#define __NR_utime (__NR_SYSCALL_BASE + 30) -#define __NR_getrlimit (__NR_SYSCALL_BASE + 76) -#define __NR_select (__NR_SYSCALL_BASE + 82) -#define __NR_readdir (__NR_SYSCALL_BASE + 89) -#define __NR_mmap (__NR_SYSCALL_BASE + 90) -#define __NR_socketcall (__NR_SYSCALL_BASE + 102) -#define __NR_syscall (__NR_SYSCALL_BASE + 113) -#define __NR_ipc (__NR_SYSCALL_BASE + 117) -#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/auxvec.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/auxvec.h index 5d1f0f6a7aebc81c45df2069efda38fc3b7d0336..4735fd5e51bce9da0a6a1b25547d24aad8c01589 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/auxvec.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/auxvec.h @@ -1,11 +1,24 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_AUXVEC_H #define __ASM_AUXVEC_H -#define AT_SYSINFO_EHDR 33 -#define AT_MINSIGSTKSZ 51 +#define AT_SYSINFO_EHDR 33 +#define AT_MINSIGSTKSZ 51 #define AT_VECTOR_SIZE_ARCH 2 #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/bitsperlong.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/bitsperlong.h index 797582081e6d7d9104d1e03b55cc2bcce190f977..c409c1948f49e59fa97a33fd99f441c3c42c07db 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/bitsperlong.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/bitsperlong.h @@ -1,8 +1,21 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_BITSPERLONG_H #define __ASM_BITSPERLONG_H #define __BITS_PER_LONG 64 diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/bpf_perf_event.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/bpf_perf_event.h index 89078f7a632218b29d11c793e561a08735d4895f..cad04bf3ce2e2a50d4fde844c10ed38a3cd19a5d 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/bpf_perf_event.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/bpf_perf_event.h @@ -1,10 +1,23 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef __ASM_BPF_PERF_EVENT_H__ -#define __ASM_BPF_PERF_EVENT_H__ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI__ASM_BPF_PERF_EVENT_H__ +#define _UAPI__ASM_BPF_PERF_EVENT_H__ #include typedef struct user_pt_regs bpf_user_pt_regs_t; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/byteorder.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/byteorder.h index 7e11d24c5d445d3f15538354fd6fdbc77b74ccec..c3174b18c96c52d9fa41f6acadd83a6cbd005abc 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/byteorder.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/byteorder.h @@ -1,8 +1,21 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_BYTEORDER_H #define __ASM_BYTEORDER_H #ifdef __AARCH64EB__ diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/errno.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/errno.h index c1081c8daad50d5b189a37d55848c9bdd75ba2fb..392cd94bf82ea5408afa6dd209d39ad9c2eb3955 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/errno.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/errno.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/fcntl.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/fcntl.h index 173f434f1086cf84a92d4268f1487e8de0a8d175..e9e0e01aae7e3c17b7138d059ecf81823d66c21a 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/fcntl.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/fcntl.h @@ -1,13 +1,26 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_FCNTL_H #define __ASM_FCNTL_H -#define O_DIRECTORY 040000 -#define O_NOFOLLOW 0100000 -#define O_DIRECT 0200000 -#define O_LARGEFILE 0400000 +#define O_DIRECTORY 040000 +#define O_NOFOLLOW 0100000 +#define O_DIRECT 0200000 +#define O_LARGEFILE 0400000 #include #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/hwcap.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/hwcap.h index dd212fc3f6653ecb9052dd716891135c3d2251e3..8a70a522c9dfbd2c0c1507c737e880e2ee9ba5bc 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/hwcap.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/hwcap.h @@ -1,37 +1,72 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef __ASM_HWCAP_H -#define __ASM_HWCAP_H -#define HWCAP_FP (1 << 0) -#define HWCAP_ASIMD (1 << 1) -#define HWCAP_EVTSTRM (1 << 2) -#define HWCAP_AES (1 << 3) -#define HWCAP_PMULL (1 << 4) -#define HWCAP_SHA1 (1 << 5) -#define HWCAP_SHA2 (1 << 6) -#define HWCAP_CRC32 (1 << 7) -#define HWCAP_ATOMICS (1 << 8) -#define HWCAP_FPHP (1 << 9) -#define HWCAP_ASIMDHP (1 << 10) -#define HWCAP_CPUID (1 << 11) -#define HWCAP_ASIMDRDM (1 << 12) -#define HWCAP_JSCVT (1 << 13) -#define HWCAP_FCMA (1 << 14) -#define HWCAP_LRCPC (1 << 15) -#define HWCAP_DCPOP (1 << 16) -#define HWCAP_SHA3 (1 << 17) -#define HWCAP_SM3 (1 << 18) -#define HWCAP_SM4 (1 << 19) -#define HWCAP_ASIMDDP (1 << 20) -#define HWCAP_SHA512 (1 << 21) -#define HWCAP_SVE (1 << 22) -#define HWCAP_ASIMDFHM (1 << 23) -#define HWCAP_DIT (1 << 24) -#define HWCAP_USCAT (1 << 25) -#define HWCAP_ILRCPC (1 << 26) -#define HWCAP_FLAGM (1 << 27) -#define HWCAP_SSBS (1 << 28) +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI__ASM_HWCAP_H +#define _UAPI__ASM_HWCAP_H +#define HWCAP_FP (1 << 0) +#define HWCAP_ASIMD (1 << 1) +#define HWCAP_EVTSTRM (1 << 2) +#define HWCAP_AES (1 << 3) +#define HWCAP_PMULL (1 << 4) +#define HWCAP_SHA1 (1 << 5) +#define HWCAP_SHA2 (1 << 6) +#define HWCAP_CRC32 (1 << 7) +#define HWCAP_ATOMICS (1 << 8) +#define HWCAP_FPHP (1 << 9) +#define HWCAP_ASIMDHP (1 << 10) +#define HWCAP_CPUID (1 << 11) +#define HWCAP_ASIMDRDM (1 << 12) +#define HWCAP_JSCVT (1 << 13) +#define HWCAP_FCMA (1 << 14) +#define HWCAP_LRCPC (1 << 15) +#define HWCAP_DCPOP (1 << 16) +#define HWCAP_SHA3 (1 << 17) +#define HWCAP_SM3 (1 << 18) +#define HWCAP_SM4 (1 << 19) +#define HWCAP_ASIMDDP (1 << 20) +#define HWCAP_SHA512 (1 << 21) +#define HWCAP_SVE (1 << 22) +#define HWCAP_ASIMDFHM (1 << 23) +#define HWCAP_DIT (1 << 24) +#define HWCAP_USCAT (1 << 25) +#define HWCAP_ILRCPC (1 << 26) +#define HWCAP_FLAGM (1 << 27) +#define HWCAP_SSBS (1 << 28) +#define HWCAP_SB (1 << 29) +#define HWCAP_PACA (1 << 30) +#define HWCAP_PACG (1UL << 31) +#define HWCAP2_DCPODP (1 << 0) +#define HWCAP2_SVE2 (1 << 1) +#define HWCAP2_SVEAES (1 << 2) +#define HWCAP2_SVEPMULL (1 << 3) +#define HWCAP2_SVEBITPERM (1 << 4) +#define HWCAP2_SVESHA3 (1 << 5) +#define HWCAP2_SVESM4 (1 << 6) +#define HWCAP2_FLAGM2 (1 << 7) +#define HWCAP2_FRINT (1 << 8) +#define HWCAP2_SVEI8MM (1 << 9) +#define HWCAP2_SVEF32MM (1 << 10) +#define HWCAP2_SVEF64MM (1 << 11) +#define HWCAP2_SVEBF16 (1 << 12) +#define HWCAP2_I8MM (1 << 13) +#define HWCAP2_BF16 (1 << 14) +#define HWCAP2_DGH (1 << 15) +#define HWCAP2_RNG (1 << 16) +#define HWCAP2_BTI (1 << 17) +#define HWCAP2_MTE (1 << 18) #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ioctl.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ioctl.h index 32a259fd9742be5cf8fa8007e93e7ca5885ab2e3..7b7bd37794536ae77a4bbea2aa5803eac46e1704 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ioctl.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ioctl.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ioctls.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ioctls.h index 58a92e27bc69cd9f279a0a2b1a0d97dd0ce89f91..0c66935ad0ffa9a483f15fbafb2bb30da1be3f48 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ioctls.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ioctls.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ipcbuf.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ipcbuf.h index d0004a42cf35bbb2cad966f36fef93dac21e747e..0021f1438ffcfa5e371a8e1ff047c40cec4f089f 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ipcbuf.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ipcbuf.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/kvm.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/kvm.h index 486e60b23b08fc176d3e506894e70347689658c9..32b6a2b0417653cdccd94aa91d3460c969a0037d 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/kvm.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/kvm.h @@ -1,65 +1,81 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ARM_KVM_H__ #define __ARM_KVM_H__ -#define KVM_SPSR_EL1 0 -#define KVM_SPSR_SVC KVM_SPSR_EL1 -#define KVM_SPSR_ABT 1 -#define KVM_SPSR_UND 2 -#define KVM_SPSR_IRQ 3 -#define KVM_SPSR_FIQ 4 -#define KVM_NR_SPSR 5 +#define KVM_SPSR_EL1 0 +#define KVM_SPSR_SVC KVM_SPSR_EL1 +#define KVM_SPSR_ABT 1 +#define KVM_SPSR_UND 2 +#define KVM_SPSR_IRQ 3 +#define KVM_SPSR_FIQ 4 +#define KVM_NR_SPSR 5 #ifndef __ASSEMBLY__ #include #include #include +#include #define __KVM_HAVE_GUEST_DEBUG #define __KVM_HAVE_IRQ_LINE #define __KVM_HAVE_READONLY_MEM #define __KVM_HAVE_VCPU_EVENTS #define KVM_COALESCED_MMIO_PAGE_OFFSET 1 -#define KVM_REG_SIZE(id) \ - (1U << (((id) & KVM_REG_SIZE_MASK) >> KVM_REG_SIZE_SHIFT)) +#define KVM_REG_SIZE(id) (1U << (((id) & KVM_REG_SIZE_MASK) >> KVM_REG_SIZE_SHIFT)) struct kvm_regs { - struct user_pt_regs regs; - __u64 sp_el1; - __u64 elr_el1; - __u64 spsr[KVM_NR_SPSR]; - struct user_fpsimd_state fp_regs; + struct user_pt_regs regs; + __u64 sp_el1; + __u64 elr_el1; + __u64 spsr[KVM_NR_SPSR]; + struct user_fpsimd_state fp_regs; }; -#define KVM_ARM_TARGET_AEM_V8 0 -#define KVM_ARM_TARGET_FOUNDATION_V8 1 -#define KVM_ARM_TARGET_CORTEX_A57 2 -#define KVM_ARM_TARGET_XGENE_POTENZA 3 -#define KVM_ARM_TARGET_CORTEX_A53 4 -#define KVM_ARM_TARGET_GENERIC_V8 5 -#define KVM_ARM_NUM_TARGETS 6 -#define KVM_ARM_DEVICE_TYPE_SHIFT 0 -#define KVM_ARM_DEVICE_TYPE_MASK (0xffff << KVM_ARM_DEVICE_TYPE_SHIFT) -#define KVM_ARM_DEVICE_ID_SHIFT 16 -#define KVM_ARM_DEVICE_ID_MASK (0xffff << KVM_ARM_DEVICE_ID_SHIFT) -#define KVM_ARM_DEVICE_VGIC_V2 0 -#define KVM_VGIC_V2_ADDR_TYPE_DIST 0 -#define KVM_VGIC_V2_ADDR_TYPE_CPU 1 -#define KVM_VGIC_V2_DIST_SIZE 0x1000 -#define KVM_VGIC_V2_CPU_SIZE 0x2000 -#define KVM_VGIC_V3_ADDR_TYPE_DIST 2 -#define KVM_VGIC_V3_ADDR_TYPE_REDIST 3 -#define KVM_VGIC_ITS_ADDR_TYPE 4 -#define KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION 5 -#define KVM_VGIC_V3_DIST_SIZE SZ_64K -#define KVM_VGIC_V3_REDIST_SIZE (2 * SZ_64K) -#define KVM_VGIC_V3_ITS_SIZE (2 * SZ_64K) -#define KVM_ARM_VCPU_POWER_OFF 0 -#define KVM_ARM_VCPU_EL1_32BIT 1 -#define KVM_ARM_VCPU_PSCI_0_2 2 -#define KVM_ARM_VCPU_PMU_V3 3 +#define KVM_ARM_TARGET_AEM_V8 0 +#define KVM_ARM_TARGET_FOUNDATION_V8 1 +#define KVM_ARM_TARGET_CORTEX_A57 2 +#define KVM_ARM_TARGET_XGENE_POTENZA 3 +#define KVM_ARM_TARGET_CORTEX_A53 4 +#define KVM_ARM_TARGET_GENERIC_V8 5 +#define KVM_ARM_NUM_TARGETS 6 +#define KVM_ARM_DEVICE_TYPE_SHIFT 0 +#define KVM_ARM_DEVICE_TYPE_MASK (0xffff << KVM_ARM_DEVICE_TYPE_SHIFT) +#define KVM_ARM_DEVICE_ID_SHIFT 16 +#define KVM_ARM_DEVICE_ID_MASK (0xffff << KVM_ARM_DEVICE_ID_SHIFT) +#define KVM_ARM_DEVICE_VGIC_V2 0 +#define KVM_VGIC_V2_ADDR_TYPE_DIST 0 +#define KVM_VGIC_V2_ADDR_TYPE_CPU 1 +#define KVM_VGIC_V2_DIST_SIZE 0x1000 +#define KVM_VGIC_V2_CPU_SIZE 0x2000 +#define KVM_VGIC_V3_ADDR_TYPE_DIST 2 +#define KVM_VGIC_V3_ADDR_TYPE_REDIST 3 +#define KVM_VGIC_ITS_ADDR_TYPE 4 +#define KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION 5 +#define KVM_VGIC_V3_DIST_SIZE SZ_64K +#define KVM_VGIC_V3_REDIST_SIZE (2 * SZ_64K) +#define KVM_VGIC_V3_ITS_SIZE (2 * SZ_64K) +#define KVM_ARM_VCPU_POWER_OFF 0 +#define KVM_ARM_VCPU_EL1_32BIT 1 +#define KVM_ARM_VCPU_PSCI_0_2 2 +#define KVM_ARM_VCPU_PMU_V3 3 +#define KVM_ARM_VCPU_SVE 4 +#define KVM_ARM_VCPU_PTRAUTH_ADDRESS 5 +#define KVM_ARM_VCPU_PTRAUTH_GENERIC 6 struct kvm_vcpu_init { - __u32 target; - __u32 features[7]; + __u32 target; + __u32 features[7]; }; struct kvm_sregs { }; @@ -67,130 +83,155 @@ struct kvm_fpu { }; #define KVM_ARM_MAX_DBG_REGS 16 struct kvm_guest_debug_arch { - __u64 dbg_bcr[KVM_ARM_MAX_DBG_REGS]; - __u64 dbg_bvr[KVM_ARM_MAX_DBG_REGS]; - __u64 dbg_wcr[KVM_ARM_MAX_DBG_REGS]; - __u64 dbg_wvr[KVM_ARM_MAX_DBG_REGS]; + __u64 dbg_bcr[KVM_ARM_MAX_DBG_REGS]; + __u64 dbg_bvr[KVM_ARM_MAX_DBG_REGS]; + __u64 dbg_wcr[KVM_ARM_MAX_DBG_REGS]; + __u64 dbg_wvr[KVM_ARM_MAX_DBG_REGS]; }; struct kvm_debug_exit_arch { - __u32 hsr; - __u64 far; + __u32 hsr; + __u64 far; }; -#define KVM_GUESTDBG_USE_SW_BP (1 << 16) -#define KVM_GUESTDBG_USE_HW (1 << 17) +#define KVM_GUESTDBG_USE_SW_BP (1 << 16) +#define KVM_GUESTDBG_USE_HW (1 << 17) struct kvm_sync_regs { - - __u64 device_irq_level; + __u64 device_irq_level; }; struct kvm_arch_memory_slot { }; +struct kvm_pmu_event_filter { + __u16 base_event; + __u16 nevents; +#define KVM_PMU_EVENT_ALLOW 0 +#define KVM_PMU_EVENT_DENY 1 + __u8 action; + __u8 pad[3]; +}; struct kvm_vcpu_events { - struct { - __u8 serror_pending; - __u8 serror_has_esr; - - __u8 pad[6]; - __u64 serror_esr; - } exception; - __u32 reserved[12]; + struct { + __u8 serror_pending; + __u8 serror_has_esr; + __u8 ext_dabt_pending; + __u8 pad[5]; + __u64 serror_esr; + } exception; + __u32 reserved[12]; }; -#define KVM_REG_ARM_COPROC_MASK 0x000000000FFF0000 -#define KVM_REG_ARM_COPROC_SHIFT 16 -#define KVM_REG_ARM_CORE (0x0010 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM_CORE_REG(name) (offsetof(struct kvm_regs, name) / sizeof(__u32)) -#define KVM_REG_ARM_DEMUX (0x0011 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM_DEMUX_ID_MASK 0x000000000000FF00 -#define KVM_REG_ARM_DEMUX_ID_SHIFT 8 -#define KVM_REG_ARM_DEMUX_ID_CCSIDR (0x00 << KVM_REG_ARM_DEMUX_ID_SHIFT) -#define KVM_REG_ARM_DEMUX_VAL_MASK 0x00000000000000FF -#define KVM_REG_ARM_DEMUX_VAL_SHIFT 0 -#define KVM_REG_ARM64_SYSREG (0x0013 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM64_SYSREG_OP0_MASK 0x000000000000c000 -#define KVM_REG_ARM64_SYSREG_OP0_SHIFT 14 -#define KVM_REG_ARM64_SYSREG_OP1_MASK 0x0000000000003800 -#define KVM_REG_ARM64_SYSREG_OP1_SHIFT 11 -#define KVM_REG_ARM64_SYSREG_CRN_MASK 0x0000000000000780 -#define KVM_REG_ARM64_SYSREG_CRN_SHIFT 7 -#define KVM_REG_ARM64_SYSREG_CRM_MASK 0x0000000000000078 -#define KVM_REG_ARM64_SYSREG_CRM_SHIFT 3 -#define KVM_REG_ARM64_SYSREG_OP2_MASK 0x0000000000000007 -#define KVM_REG_ARM64_SYSREG_OP2_SHIFT 0 -#define ARM64_SYS_REG_SHIFT_MASK(x,n) \ - (((x) << KVM_REG_ARM64_SYSREG_ ## n ## _SHIFT) & \ - KVM_REG_ARM64_SYSREG_ ## n ## _MASK) -#define __ARM64_SYS_REG(op0,op1,crn,crm,op2) \ - (KVM_REG_ARM64 | KVM_REG_ARM64_SYSREG | \ - ARM64_SYS_REG_SHIFT_MASK(op0, OP0) | \ - ARM64_SYS_REG_SHIFT_MASK(op1, OP1) | \ - ARM64_SYS_REG_SHIFT_MASK(crn, CRN) | \ - ARM64_SYS_REG_SHIFT_MASK(crm, CRM) | \ - ARM64_SYS_REG_SHIFT_MASK(op2, OP2)) +#define KVM_REG_ARM_COPROC_MASK 0x000000000FFF0000 +#define KVM_REG_ARM_COPROC_SHIFT 16 +#define KVM_REG_ARM_CORE (0x0010 << KVM_REG_ARM_COPROC_SHIFT) +#define KVM_REG_ARM_CORE_REG(name) (offsetof(struct kvm_regs, name) / sizeof(__u32)) +#define KVM_REG_ARM_DEMUX (0x0011 << KVM_REG_ARM_COPROC_SHIFT) +#define KVM_REG_ARM_DEMUX_ID_MASK 0x000000000000FF00 +#define KVM_REG_ARM_DEMUX_ID_SHIFT 8 +#define KVM_REG_ARM_DEMUX_ID_CCSIDR (0x00 << KVM_REG_ARM_DEMUX_ID_SHIFT) +#define KVM_REG_ARM_DEMUX_VAL_MASK 0x00000000000000FF +#define KVM_REG_ARM_DEMUX_VAL_SHIFT 0 +#define KVM_REG_ARM64_SYSREG (0x0013 << KVM_REG_ARM_COPROC_SHIFT) +#define KVM_REG_ARM64_SYSREG_OP0_MASK 0x000000000000c000 +#define KVM_REG_ARM64_SYSREG_OP0_SHIFT 14 +#define KVM_REG_ARM64_SYSREG_OP1_MASK 0x0000000000003800 +#define KVM_REG_ARM64_SYSREG_OP1_SHIFT 11 +#define KVM_REG_ARM64_SYSREG_CRN_MASK 0x0000000000000780 +#define KVM_REG_ARM64_SYSREG_CRN_SHIFT 7 +#define KVM_REG_ARM64_SYSREG_CRM_MASK 0x0000000000000078 +#define KVM_REG_ARM64_SYSREG_CRM_SHIFT 3 +#define KVM_REG_ARM64_SYSREG_OP2_MASK 0x0000000000000007 +#define KVM_REG_ARM64_SYSREG_OP2_SHIFT 0 +#define ARM64_SYS_REG_SHIFT_MASK(x,n) (((x) << KVM_REG_ARM64_SYSREG_ ##n ##_SHIFT) & KVM_REG_ARM64_SYSREG_ ##n ##_MASK) +#define __ARM64_SYS_REG(op0,op1,crn,crm,op2) (KVM_REG_ARM64 | KVM_REG_ARM64_SYSREG | ARM64_SYS_REG_SHIFT_MASK(op0, OP0) | ARM64_SYS_REG_SHIFT_MASK(op1, OP1) | ARM64_SYS_REG_SHIFT_MASK(crn, CRN) | ARM64_SYS_REG_SHIFT_MASK(crm, CRM) | ARM64_SYS_REG_SHIFT_MASK(op2, OP2)) #define ARM64_SYS_REG(...) (__ARM64_SYS_REG(__VA_ARGS__) | KVM_REG_SIZE_U64) -#define KVM_REG_ARM_PTIMER_CTL ARM64_SYS_REG(3, 3, 14, 2, 1) -#define KVM_REG_ARM_PTIMER_CVAL ARM64_SYS_REG(3, 3, 14, 2, 2) -#define KVM_REG_ARM_PTIMER_CNT ARM64_SYS_REG(3, 3, 14, 0, 1) -#define KVM_REG_ARM_TIMER_CTL ARM64_SYS_REG(3, 3, 14, 3, 1) -#define KVM_REG_ARM_TIMER_CNT ARM64_SYS_REG(3, 3, 14, 3, 2) -#define KVM_REG_ARM_TIMER_CVAL ARM64_SYS_REG(3, 3, 14, 0, 2) -#define KVM_REG_ARM_FW (0x0014 << KVM_REG_ARM_COPROC_SHIFT) -#define KVM_REG_ARM_FW_REG(r) (KVM_REG_ARM64 | KVM_REG_SIZE_U64 | \ - KVM_REG_ARM_FW | ((r) & 0xffff)) -#define KVM_REG_ARM_PSCI_VERSION KVM_REG_ARM_FW_REG(0) -#define KVM_DEV_ARM_VGIC_GRP_ADDR 0 -#define KVM_DEV_ARM_VGIC_GRP_DIST_REGS 1 -#define KVM_DEV_ARM_VGIC_GRP_CPU_REGS 2 -#define KVM_DEV_ARM_VGIC_CPUID_SHIFT 32 -#define KVM_DEV_ARM_VGIC_CPUID_MASK (0xffULL << KVM_DEV_ARM_VGIC_CPUID_SHIFT) -#define KVM_DEV_ARM_VGIC_V3_MPIDR_SHIFT 32 -#define KVM_DEV_ARM_VGIC_V3_MPIDR_MASK \ - (0xffffffffULL << KVM_DEV_ARM_VGIC_V3_MPIDR_SHIFT) -#define KVM_DEV_ARM_VGIC_OFFSET_SHIFT 0 -#define KVM_DEV_ARM_VGIC_OFFSET_MASK (0xffffffffULL << KVM_DEV_ARM_VGIC_OFFSET_SHIFT) -#define KVM_DEV_ARM_VGIC_SYSREG_INSTR_MASK (0xffff) -#define KVM_DEV_ARM_VGIC_GRP_NR_IRQS 3 -#define KVM_DEV_ARM_VGIC_GRP_CTRL 4 +#define KVM_REG_ARM_PTIMER_CTL ARM64_SYS_REG(3, 3, 14, 2, 1) +#define KVM_REG_ARM_PTIMER_CVAL ARM64_SYS_REG(3, 3, 14, 2, 2) +#define KVM_REG_ARM_PTIMER_CNT ARM64_SYS_REG(3, 3, 14, 0, 1) +#define KVM_REG_ARM_TIMER_CTL ARM64_SYS_REG(3, 3, 14, 3, 1) +#define KVM_REG_ARM_TIMER_CVAL ARM64_SYS_REG(3, 3, 14, 0, 2) +#define KVM_REG_ARM_TIMER_CNT ARM64_SYS_REG(3, 3, 14, 3, 2) +#define KVM_REG_ARM_FW (0x0014 << KVM_REG_ARM_COPROC_SHIFT) +#define KVM_REG_ARM_FW_REG(r) (KVM_REG_ARM64 | KVM_REG_SIZE_U64 | KVM_REG_ARM_FW | ((r) & 0xffff)) +#define KVM_REG_ARM_PSCI_VERSION KVM_REG_ARM_FW_REG(0) +#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_1 KVM_REG_ARM_FW_REG(1) +#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_1_NOT_AVAIL 0 +#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_1_AVAIL 1 +#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_1_NOT_REQUIRED 2 +#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2 KVM_REG_ARM_FW_REG(2) +#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_NOT_AVAIL 0 +#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_UNKNOWN 1 +#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_AVAIL 2 +#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_NOT_REQUIRED 3 +#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_ENABLED (1U << 4) +#define KVM_REG_ARM64_SVE (0x15 << KVM_REG_ARM_COPROC_SHIFT) +#define KVM_REG_ARM64_SVE_ZREG_BASE 0 +#define KVM_REG_ARM64_SVE_PREG_BASE 0x400 +#define KVM_REG_ARM64_SVE_FFR_BASE 0x600 +#define KVM_ARM64_SVE_NUM_ZREGS __SVE_NUM_ZREGS +#define KVM_ARM64_SVE_NUM_PREGS __SVE_NUM_PREGS +#define KVM_ARM64_SVE_MAX_SLICES 32 +#define KVM_REG_ARM64_SVE_ZREG(n,i) (KVM_REG_ARM64 | KVM_REG_ARM64_SVE | KVM_REG_ARM64_SVE_ZREG_BASE | KVM_REG_SIZE_U2048 | (((n) & (KVM_ARM64_SVE_NUM_ZREGS - 1)) << 5) | ((i) & (KVM_ARM64_SVE_MAX_SLICES - 1))) +#define KVM_REG_ARM64_SVE_PREG(n,i) (KVM_REG_ARM64 | KVM_REG_ARM64_SVE | KVM_REG_ARM64_SVE_PREG_BASE | KVM_REG_SIZE_U256 | (((n) & (KVM_ARM64_SVE_NUM_PREGS - 1)) << 5) | ((i) & (KVM_ARM64_SVE_MAX_SLICES - 1))) +#define KVM_REG_ARM64_SVE_FFR(i) (KVM_REG_ARM64 | KVM_REG_ARM64_SVE | KVM_REG_ARM64_SVE_FFR_BASE | KVM_REG_SIZE_U256 | ((i) & (KVM_ARM64_SVE_MAX_SLICES - 1))) +#define KVM_ARM64_SVE_VQ_MIN __SVE_VQ_MIN +#define KVM_ARM64_SVE_VQ_MAX __SVE_VQ_MAX +#define KVM_REG_ARM64_SVE_VLS (KVM_REG_ARM64 | KVM_REG_ARM64_SVE | KVM_REG_SIZE_U512 | 0xffff) +#define KVM_ARM64_SVE_VLS_WORDS ((KVM_ARM64_SVE_VQ_MAX - KVM_ARM64_SVE_VQ_MIN) / 64 + 1) +#define KVM_DEV_ARM_VGIC_GRP_ADDR 0 +#define KVM_DEV_ARM_VGIC_GRP_DIST_REGS 1 +#define KVM_DEV_ARM_VGIC_GRP_CPU_REGS 2 +#define KVM_DEV_ARM_VGIC_CPUID_SHIFT 32 +#define KVM_DEV_ARM_VGIC_CPUID_MASK (0xffULL << KVM_DEV_ARM_VGIC_CPUID_SHIFT) +#define KVM_DEV_ARM_VGIC_V3_MPIDR_SHIFT 32 +#define KVM_DEV_ARM_VGIC_V3_MPIDR_MASK (0xffffffffULL << KVM_DEV_ARM_VGIC_V3_MPIDR_SHIFT) +#define KVM_DEV_ARM_VGIC_OFFSET_SHIFT 0 +#define KVM_DEV_ARM_VGIC_OFFSET_MASK (0xffffffffULL << KVM_DEV_ARM_VGIC_OFFSET_SHIFT) +#define KVM_DEV_ARM_VGIC_SYSREG_INSTR_MASK (0xffff) +#define KVM_DEV_ARM_VGIC_GRP_NR_IRQS 3 +#define KVM_DEV_ARM_VGIC_GRP_CTRL 4 #define KVM_DEV_ARM_VGIC_GRP_REDIST_REGS 5 #define KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS 6 -#define KVM_DEV_ARM_VGIC_GRP_LEVEL_INFO 7 +#define KVM_DEV_ARM_VGIC_GRP_LEVEL_INFO 7 #define KVM_DEV_ARM_VGIC_GRP_ITS_REGS 8 -#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT 10 -#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_MASK \ - (0x3fffffULL << KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT) -#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INTID_MASK 0x3ff -#define VGIC_LEVEL_INFO_LINE_LEVEL 0 -#define KVM_DEV_ARM_VGIC_CTRL_INIT 0 -#define KVM_DEV_ARM_ITS_SAVE_TABLES 1 -#define KVM_DEV_ARM_ITS_RESTORE_TABLES 2 -#define KVM_DEV_ARM_VGIC_SAVE_PENDING_TABLES 3 -#define KVM_DEV_ARM_ITS_CTRL_RESET 4 -#define KVM_ARM_VCPU_PMU_V3_CTRL 0 -#define KVM_ARM_VCPU_PMU_V3_IRQ 0 -#define KVM_ARM_VCPU_PMU_V3_INIT 1 -#define KVM_ARM_VCPU_TIMER_CTRL 1 -#define KVM_ARM_VCPU_TIMER_IRQ_VTIMER 0 -#define KVM_ARM_VCPU_TIMER_IRQ_PTIMER 1 -#define KVM_ARM_IRQ_TYPE_SHIFT 24 -#define KVM_ARM_IRQ_TYPE_MASK 0xff -#define KVM_ARM_IRQ_VCPU_SHIFT 16 -#define KVM_ARM_IRQ_VCPU_MASK 0xff -#define KVM_ARM_IRQ_NUM_SHIFT 0 -#define KVM_ARM_IRQ_NUM_MASK 0xffff -#define KVM_ARM_IRQ_TYPE_CPU 0 -#define KVM_ARM_IRQ_TYPE_SPI 1 -#define KVM_ARM_IRQ_TYPE_PPI 2 -#define KVM_ARM_IRQ_CPU_IRQ 0 -#define KVM_ARM_IRQ_CPU_FIQ 1 -#define KVM_ARM_IRQ_GIC_MAX 127 -#define KVM_NR_IRQCHIPS 1 -#define KVM_PSCI_FN_BASE 0x95c1ba5e -#define KVM_PSCI_FN(n) (KVM_PSCI_FN_BASE + (n)) -#define KVM_PSCI_FN_CPU_SUSPEND KVM_PSCI_FN(0) -#define KVM_PSCI_FN_CPU_OFF KVM_PSCI_FN(1) -#define KVM_PSCI_FN_CPU_ON KVM_PSCI_FN(2) -#define KVM_PSCI_FN_MIGRATE KVM_PSCI_FN(3) -#define KVM_PSCI_RET_SUCCESS PSCI_RET_SUCCESS -#define KVM_PSCI_RET_NI PSCI_RET_NOT_SUPPORTED -#define KVM_PSCI_RET_INVAL PSCI_RET_INVALID_PARAMS -#define KVM_PSCI_RET_DENIED PSCI_RET_DENIED +#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT 10 +#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_MASK (0x3fffffULL << KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT) +#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INTID_MASK 0x3ff +#define VGIC_LEVEL_INFO_LINE_LEVEL 0 +#define KVM_DEV_ARM_VGIC_CTRL_INIT 0 +#define KVM_DEV_ARM_ITS_SAVE_TABLES 1 +#define KVM_DEV_ARM_ITS_RESTORE_TABLES 2 +#define KVM_DEV_ARM_VGIC_SAVE_PENDING_TABLES 3 +#define KVM_DEV_ARM_ITS_CTRL_RESET 4 +#define KVM_ARM_VCPU_PMU_V3_CTRL 0 +#define KVM_ARM_VCPU_PMU_V3_IRQ 0 +#define KVM_ARM_VCPU_PMU_V3_INIT 1 +#define KVM_ARM_VCPU_PMU_V3_FILTER 2 +#define KVM_ARM_VCPU_TIMER_CTRL 1 +#define KVM_ARM_VCPU_TIMER_IRQ_VTIMER 0 +#define KVM_ARM_VCPU_TIMER_IRQ_PTIMER 1 +#define KVM_ARM_VCPU_PVTIME_CTRL 2 +#define KVM_ARM_VCPU_PVTIME_IPA 0 +#define KVM_ARM_IRQ_VCPU2_SHIFT 28 +#define KVM_ARM_IRQ_VCPU2_MASK 0xf +#define KVM_ARM_IRQ_TYPE_SHIFT 24 +#define KVM_ARM_IRQ_TYPE_MASK 0xf +#define KVM_ARM_IRQ_VCPU_SHIFT 16 +#define KVM_ARM_IRQ_VCPU_MASK 0xff +#define KVM_ARM_IRQ_NUM_SHIFT 0 +#define KVM_ARM_IRQ_NUM_MASK 0xffff +#define KVM_ARM_IRQ_TYPE_CPU 0 +#define KVM_ARM_IRQ_TYPE_SPI 1 +#define KVM_ARM_IRQ_TYPE_PPI 2 +#define KVM_ARM_IRQ_CPU_IRQ 0 +#define KVM_ARM_IRQ_CPU_FIQ 1 +#define KVM_ARM_IRQ_GIC_MAX 127 +#define KVM_NR_IRQCHIPS 1 +#define KVM_PSCI_FN_BASE 0x95c1ba5e +#define KVM_PSCI_FN(n) (KVM_PSCI_FN_BASE + (n)) +#define KVM_PSCI_FN_CPU_SUSPEND KVM_PSCI_FN(0) +#define KVM_PSCI_FN_CPU_OFF KVM_PSCI_FN(1) +#define KVM_PSCI_FN_CPU_ON KVM_PSCI_FN(2) +#define KVM_PSCI_FN_MIGRATE KVM_PSCI_FN(3) +#define KVM_PSCI_RET_SUCCESS PSCI_RET_SUCCESS +#define KVM_PSCI_RET_NI PSCI_RET_NOT_SUPPORTED +#define KVM_PSCI_RET_INVAL PSCI_RET_INVALID_PARAMS +#define KVM_PSCI_RET_DENIED PSCI_RET_DENIED #endif #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/kvm_para.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/kvm_para.h index c74c294b5fefaae09b36ba01fd2f924a8a682593..e19f7a0f56a9c5691409edd0193726bc88d773ea 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/kvm_para.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/kvm_para.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/mman.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/mman.h index 432432648a0df6092c19324e542c0fbc7a2d91c8..98f72cf8eb615cdece7fdf1c2c889a52c055496a 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/mman.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/mman.h @@ -1,6 +1,24 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI__ASM_MMAN_H +#define _UAPI__ASM_MMAN_H #include +#define PROT_BTI 0x10 +#define PROT_MTE 0x20 +#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/msgbuf.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/msgbuf.h index a361e7ccf978bff0be529f7423cb104d62a1bf1d..7809e3cea52eacc7c912e2e9872471e82cf1a83e 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/msgbuf.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/msgbuf.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/param.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/param.h index 3346751bc1ec9d2553b1ca8d5b7b05993a001b0c..3bd70ed74ed0037cac177ec6c55f9a4801df7914 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/param.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/param.h @@ -1,10 +1,23 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_PARAM_H #define __ASM_PARAM_H -#define EXEC_PAGESIZE 65536 +#define EXEC_PAGESIZE 65536 #include #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/perf_regs.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/perf_regs.h index 4d625724f3370143259a27355d6fb77daea5f619..71d496f201eaf058e34aa18b0a85c35861f7f58c 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/perf_regs.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/perf_regs.h @@ -1,44 +1,57 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _ASM_ARM64_PERF_REGS_H #define _ASM_ARM64_PERF_REGS_H enum perf_event_arm_regs { - PERF_REG_ARM64_X0, - PERF_REG_ARM64_X1, - PERF_REG_ARM64_X2, - PERF_REG_ARM64_X3, - PERF_REG_ARM64_X4, - PERF_REG_ARM64_X5, - PERF_REG_ARM64_X6, - PERF_REG_ARM64_X7, - PERF_REG_ARM64_X8, - PERF_REG_ARM64_X9, - PERF_REG_ARM64_X10, - PERF_REG_ARM64_X11, - PERF_REG_ARM64_X12, - PERF_REG_ARM64_X13, - PERF_REG_ARM64_X14, - PERF_REG_ARM64_X15, - PERF_REG_ARM64_X16, - PERF_REG_ARM64_X17, - PERF_REG_ARM64_X18, - PERF_REG_ARM64_X19, - PERF_REG_ARM64_X20, - PERF_REG_ARM64_X21, - PERF_REG_ARM64_X22, - PERF_REG_ARM64_X23, - PERF_REG_ARM64_X24, - PERF_REG_ARM64_X25, - PERF_REG_ARM64_X26, - PERF_REG_ARM64_X27, - PERF_REG_ARM64_X28, - PERF_REG_ARM64_X29, - PERF_REG_ARM64_LR, - PERF_REG_ARM64_SP, - PERF_REG_ARM64_PC, - PERF_REG_ARM64_MAX, + PERF_REG_ARM64_X0, + PERF_REG_ARM64_X1, + PERF_REG_ARM64_X2, + PERF_REG_ARM64_X3, + PERF_REG_ARM64_X4, + PERF_REG_ARM64_X5, + PERF_REG_ARM64_X6, + PERF_REG_ARM64_X7, + PERF_REG_ARM64_X8, + PERF_REG_ARM64_X9, + PERF_REG_ARM64_X10, + PERF_REG_ARM64_X11, + PERF_REG_ARM64_X12, + PERF_REG_ARM64_X13, + PERF_REG_ARM64_X14, + PERF_REG_ARM64_X15, + PERF_REG_ARM64_X16, + PERF_REG_ARM64_X17, + PERF_REG_ARM64_X18, + PERF_REG_ARM64_X19, + PERF_REG_ARM64_X20, + PERF_REG_ARM64_X21, + PERF_REG_ARM64_X22, + PERF_REG_ARM64_X23, + PERF_REG_ARM64_X24, + PERF_REG_ARM64_X25, + PERF_REG_ARM64_X26, + PERF_REG_ARM64_X27, + PERF_REG_ARM64_X28, + PERF_REG_ARM64_X29, + PERF_REG_ARM64_LR, + PERF_REG_ARM64_SP, + PERF_REG_ARM64_PC, + PERF_REG_ARM64_MAX, }; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/poll.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/poll.h index 93f531dc33bcef86a5ee498f83115588dffa1b81..d7e8adca93b2b180c72b562b147e6a973e58d25c 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/poll.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/poll.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/posix_types.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/posix_types.h index a5d7eda1b27a800e53936c225d66b0cfcff33994..9ae7bfccbb366c0251de72a99fac7b7ebe92514b 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/posix_types.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/posix_types.h @@ -1,8 +1,21 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_POSIX_TYPES_H #define __ASM_POSIX_TYPES_H typedef unsigned short __kernel_old_uid_t; diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ptrace.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ptrace.h index 3d3a53ad738172532b2d983a75cd2c4f34e2477d..480efcfe161226e1bc4c459d9d4c98074716e0aa 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ptrace.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ptrace.h @@ -1,114 +1,129 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef __ASM_PTRACE_H -#define __ASM_PTRACE_H +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI__ASM_PTRACE_H +#define _UAPI__ASM_PTRACE_H #include #include -#include -#define PSR_MODE_EL0t 0x00000000 -#define PSR_MODE_EL1t 0x00000004 -#define PSR_MODE_EL1h 0x00000005 -#define PSR_MODE_EL2t 0x00000008 -#define PSR_MODE_EL2h 0x00000009 -#define PSR_MODE_EL3t 0x0000000c -#define PSR_MODE_EL3h 0x0000000d -#define PSR_MODE_MASK 0x0000000f -#define PSR_MODE32_BIT 0x00000010 -#define PSR_F_BIT 0x00000040 -#define PSR_I_BIT 0x00000080 -#define PSR_A_BIT 0x00000100 -#define PSR_D_BIT 0x00000200 -#define PSR_SSBS_BIT 0x00001000 -#define PSR_PAN_BIT 0x00400000 -#define PSR_UAO_BIT 0x00800000 -#define PSR_DIT_BIT 0x01000000 -#define PSR_V_BIT 0x10000000 -#define PSR_C_BIT 0x20000000 -#define PSR_Z_BIT 0x40000000 -#define PSR_N_BIT 0x80000000 -#define PSR_f 0xff000000 -#define PSR_s 0x00ff0000 -#define PSR_x 0x0000ff00 -#define PSR_c 0x000000ff +#include +#define PSR_MODE_EL0t 0x00000000 +#define PSR_MODE_EL1t 0x00000004 +#define PSR_MODE_EL1h 0x00000005 +#define PSR_MODE_EL2t 0x00000008 +#define PSR_MODE_EL2h 0x00000009 +#define PSR_MODE_EL3t 0x0000000c +#define PSR_MODE_EL3h 0x0000000d +#define PSR_MODE_MASK 0x0000000f +#define PSR_MODE32_BIT 0x00000010 +#define PSR_F_BIT 0x00000040 +#define PSR_I_BIT 0x00000080 +#define PSR_A_BIT 0x00000100 +#define PSR_D_BIT 0x00000200 +#define PSR_BTYPE_MASK 0x00000c00 +#define PSR_SSBS_BIT 0x00001000 +#define PSR_PAN_BIT 0x00400000 +#define PSR_UAO_BIT 0x00800000 +#define PSR_DIT_BIT 0x01000000 +#define PSR_TCO_BIT 0x02000000 +#define PSR_V_BIT 0x10000000 +#define PSR_C_BIT 0x20000000 +#define PSR_Z_BIT 0x40000000 +#define PSR_N_BIT 0x80000000 +#define PSR_BTYPE_SHIFT 10 +#define PSR_f 0xff000000 +#define PSR_s 0x00ff0000 +#define PSR_x 0x0000ff00 +#define PSR_c 0x000000ff +#define PSR_BTYPE_NONE (0b00 << PSR_BTYPE_SHIFT) +#define PSR_BTYPE_JC (0b01 << PSR_BTYPE_SHIFT) +#define PSR_BTYPE_C (0b10 << PSR_BTYPE_SHIFT) +#define PSR_BTYPE_J (0b11 << PSR_BTYPE_SHIFT) +#define PTRACE_SYSEMU 31 +#define PTRACE_SYSEMU_SINGLESTEP 32 +#define PTRACE_PEEKMTETAGS 33 +#define PTRACE_POKEMTETAGS 34 #ifndef __ASSEMBLY__ struct user_pt_regs { - __u64 regs[31]; - __u64 sp; - __u64 pc; - __u64 pstate; + __u64 regs[31]; + __u64 sp; + __u64 pc; + __u64 pstate; }; struct user_fpsimd_state { - __uint128_t vregs[32]; - __u32 fpsr; - __u32 fpcr; - __u32 __reserved[2]; + __uint128_t vregs[32]; + __u32 fpsr; + __u32 fpcr; + __u32 __reserved[2]; }; struct user_hwdebug_state { - __u32 dbg_info; - __u32 pad; - struct { - __u64 addr; - __u32 ctrl; - __u32 pad; - } dbg_regs[16]; + __u32 dbg_info; + __u32 pad; + struct { + __u64 addr; + __u32 ctrl; + __u32 pad; + } dbg_regs[16]; }; struct user_sve_header { - __u32 size; - __u32 max_size; - __u16 vl; - __u16 max_vl; - __u16 flags; - __u16 __reserved; + __u32 size; + __u32 max_size; + __u16 vl; + __u16 max_vl; + __u16 flags; + __u16 __reserved; +}; +#define SVE_PT_REGS_MASK (1 << 0) +#define SVE_PT_REGS_FPSIMD 0 +#define SVE_PT_REGS_SVE SVE_PT_REGS_MASK +#define SVE_PT_VL_INHERIT ((1 << 17) >> 16) +#define SVE_PT_VL_ONEXEC ((1 << 18) >> 16) +#define SVE_PT_REGS_OFFSET ((sizeof(struct user_sve_header) + (__SVE_VQ_BYTES - 1)) / __SVE_VQ_BYTES * __SVE_VQ_BYTES) +#define SVE_PT_FPSIMD_OFFSET SVE_PT_REGS_OFFSET +#define SVE_PT_FPSIMD_SIZE(vq,flags) (sizeof(struct user_fpsimd_state)) +#define SVE_PT_SVE_ZREG_SIZE(vq) __SVE_ZREG_SIZE(vq) +#define SVE_PT_SVE_PREG_SIZE(vq) __SVE_PREG_SIZE(vq) +#define SVE_PT_SVE_FFR_SIZE(vq) __SVE_FFR_SIZE(vq) +#define SVE_PT_SVE_FPSR_SIZE sizeof(__u32) +#define SVE_PT_SVE_FPCR_SIZE sizeof(__u32) +#define SVE_PT_SVE_OFFSET SVE_PT_REGS_OFFSET +#define SVE_PT_SVE_ZREGS_OFFSET (SVE_PT_REGS_OFFSET + __SVE_ZREGS_OFFSET) +#define SVE_PT_SVE_ZREG_OFFSET(vq,n) (SVE_PT_REGS_OFFSET + __SVE_ZREG_OFFSET(vq, n)) +#define SVE_PT_SVE_ZREGS_SIZE(vq) (SVE_PT_SVE_ZREG_OFFSET(vq, __SVE_NUM_ZREGS) - SVE_PT_SVE_ZREGS_OFFSET) +#define SVE_PT_SVE_PREGS_OFFSET(vq) (SVE_PT_REGS_OFFSET + __SVE_PREGS_OFFSET(vq)) +#define SVE_PT_SVE_PREG_OFFSET(vq,n) (SVE_PT_REGS_OFFSET + __SVE_PREG_OFFSET(vq, n)) +#define SVE_PT_SVE_PREGS_SIZE(vq) (SVE_PT_SVE_PREG_OFFSET(vq, __SVE_NUM_PREGS) - SVE_PT_SVE_PREGS_OFFSET(vq)) +#define SVE_PT_SVE_FFR_OFFSET(vq) (SVE_PT_REGS_OFFSET + __SVE_FFR_OFFSET(vq)) +#define SVE_PT_SVE_FPSR_OFFSET(vq) ((SVE_PT_SVE_FFR_OFFSET(vq) + SVE_PT_SVE_FFR_SIZE(vq) + (__SVE_VQ_BYTES - 1)) / __SVE_VQ_BYTES * __SVE_VQ_BYTES) +#define SVE_PT_SVE_FPCR_OFFSET(vq) (SVE_PT_SVE_FPSR_OFFSET(vq) + SVE_PT_SVE_FPSR_SIZE) +#define SVE_PT_SVE_SIZE(vq,flags) ((SVE_PT_SVE_FPCR_OFFSET(vq) + SVE_PT_SVE_FPCR_SIZE - SVE_PT_SVE_OFFSET + (__SVE_VQ_BYTES - 1)) / __SVE_VQ_BYTES * __SVE_VQ_BYTES) +#define SVE_PT_SIZE(vq,flags) (((flags) & SVE_PT_REGS_MASK) == SVE_PT_REGS_SVE ? SVE_PT_SVE_OFFSET + SVE_PT_SVE_SIZE(vq, flags) : SVE_PT_FPSIMD_OFFSET + SVE_PT_FPSIMD_SIZE(vq, flags)) +struct user_pac_mask { + __u64 data_mask; + __u64 insn_mask; +}; +struct user_pac_address_keys { + __uint128_t apiakey; + __uint128_t apibkey; + __uint128_t apdakey; + __uint128_t apdbkey; +}; +struct user_pac_generic_keys { + __uint128_t apgakey; }; -#define SVE_PT_REGS_MASK (1 << 0) -#define SVE_PT_REGS_FPSIMD 0 -#define SVE_PT_REGS_SVE SVE_PT_REGS_MASK -#define SVE_PT_VL_INHERIT ((1 << 17) >> 16) -#define SVE_PT_VL_ONEXEC ((1 << 18) >> 16) -#define SVE_PT_REGS_OFFSET \ - ((sizeof(struct user_sve_header) + (SVE_VQ_BYTES - 1)) \ - / SVE_VQ_BYTES * SVE_VQ_BYTES) -#define SVE_PT_FPSIMD_OFFSET SVE_PT_REGS_OFFSET -#define SVE_PT_FPSIMD_SIZE(vq, flags) (sizeof(struct user_fpsimd_state)) -#define SVE_PT_SVE_ZREG_SIZE(vq) SVE_SIG_ZREG_SIZE(vq) -#define SVE_PT_SVE_PREG_SIZE(vq) SVE_SIG_PREG_SIZE(vq) -#define SVE_PT_SVE_FFR_SIZE(vq) SVE_SIG_FFR_SIZE(vq) -#define SVE_PT_SVE_FPSR_SIZE sizeof(__u32) -#define SVE_PT_SVE_FPCR_SIZE sizeof(__u32) -#define __SVE_SIG_TO_PT(offset) \ - ((offset) - SVE_SIG_REGS_OFFSET + SVE_PT_REGS_OFFSET) -#define SVE_PT_SVE_OFFSET SVE_PT_REGS_OFFSET -#define SVE_PT_SVE_ZREGS_OFFSET \ - __SVE_SIG_TO_PT(SVE_SIG_ZREGS_OFFSET) -#define SVE_PT_SVE_ZREG_OFFSET(vq, n) \ - __SVE_SIG_TO_PT(SVE_SIG_ZREG_OFFSET(vq, n)) -#define SVE_PT_SVE_ZREGS_SIZE(vq) \ - (SVE_PT_SVE_ZREG_OFFSET(vq, SVE_NUM_ZREGS) - SVE_PT_SVE_ZREGS_OFFSET) -#define SVE_PT_SVE_PREGS_OFFSET(vq) \ - __SVE_SIG_TO_PT(SVE_SIG_PREGS_OFFSET(vq)) -#define SVE_PT_SVE_PREG_OFFSET(vq, n) \ - __SVE_SIG_TO_PT(SVE_SIG_PREG_OFFSET(vq, n)) -#define SVE_PT_SVE_PREGS_SIZE(vq) \ - (SVE_PT_SVE_PREG_OFFSET(vq, SVE_NUM_PREGS) - \ - SVE_PT_SVE_PREGS_OFFSET(vq)) -#define SVE_PT_SVE_FFR_OFFSET(vq) \ - __SVE_SIG_TO_PT(SVE_SIG_FFR_OFFSET(vq)) -#define SVE_PT_SVE_FPSR_OFFSET(vq) \ - ((SVE_PT_SVE_FFR_OFFSET(vq) + SVE_PT_SVE_FFR_SIZE(vq) + \ - (SVE_VQ_BYTES - 1)) \ - / SVE_VQ_BYTES * SVE_VQ_BYTES) -#define SVE_PT_SVE_FPCR_OFFSET(vq) \ - (SVE_PT_SVE_FPSR_OFFSET(vq) + SVE_PT_SVE_FPSR_SIZE) -#define SVE_PT_SVE_SIZE(vq, flags) \ - ((SVE_PT_SVE_FPCR_OFFSET(vq) + SVE_PT_SVE_FPCR_SIZE \ - - SVE_PT_SVE_OFFSET + (SVE_VQ_BYTES - 1)) \ - / SVE_VQ_BYTES * SVE_VQ_BYTES) -#define SVE_PT_SIZE(vq, flags) \ - (((flags) & SVE_PT_REGS_MASK) == SVE_PT_REGS_SVE ? \ - SVE_PT_SVE_OFFSET + SVE_PT_SVE_SIZE(vq, flags) \ - : SVE_PT_FPSIMD_OFFSET + SVE_PT_FPSIMD_SIZE(vq, flags)) #endif #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/resource.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/resource.h index 728000e7657825f34b6eb69fc1b5e0eabc76a765..371adb52f99aa576ee7b8da2a14a0485ce7f9e31 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/resource.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/resource.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sembuf.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sembuf.h index 1769cec451524383f0ecf0d5282fc0e33a76ea5a..6ce6549b09c4e17cff2886fd24a8e46640896235 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sembuf.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sembuf.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/setup.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/setup.h index 8a38565db144c228bf74710c0e48daf15865376e..eac94e0983a8f738d383abe7f63834967209f873 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/setup.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/setup.h @@ -1,10 +1,23 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_SETUP_H #define __ASM_SETUP_H #include -#define COMMAND_LINE_SIZE 2048 +#define COMMAND_LINE_SIZE 2048 #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/shmbuf.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/shmbuf.h index ada99043a09a4fa58f552cd66682a29365ecc997..fe8b1bea0fdab18f3c6d070926a0e4c4defcb891 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/shmbuf.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/shmbuf.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sigcontext.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sigcontext.h index e01162e43f0d4b4fd79ebc0eb09ef8861e9abfff..518079d35072ea014f82723fb1fd522e240c3753 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sigcontext.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sigcontext.h @@ -1,83 +1,85 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef __ASM_SIGCONTEXT_H -#define __ASM_SIGCONTEXT_H +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI__ASM_SIGCONTEXT_H +#define _UAPI__ASM_SIGCONTEXT_H #ifndef __ASSEMBLY__ #include struct sigcontext { - __u64 fault_address; - - __u64 regs[31]; - __u64 sp; - __u64 pc; - __u64 pstate; - - __u8 __reserved[4096] __attribute__((__aligned__(16))); + __u64 fault_address; + __u64 regs[31]; + __u64 sp; + __u64 pc; + __u64 pstate; + __u8 __reserved[4096] __attribute__((__aligned__(16))); }; struct _aarch64_ctx { - __u32 magic; - __u32 size; + __u32 magic; + __u32 size; }; -#define FPSIMD_MAGIC 0x46508001 +#define FPSIMD_MAGIC 0x46508001 struct fpsimd_context { - struct _aarch64_ctx head; - __u32 fpsr; - __u32 fpcr; - __uint128_t vregs[32]; + struct _aarch64_ctx head; + __u32 fpsr; + __u32 fpcr; + __uint128_t vregs[32]; }; -#define ESR_MAGIC 0x45535201 +#define ESR_MAGIC 0x45535201 struct esr_context { - struct _aarch64_ctx head; - __u64 esr; + struct _aarch64_ctx head; + __u64 esr; }; -#define EXTRA_MAGIC 0x45585401 +#define EXTRA_MAGIC 0x45585401 struct extra_context { - struct _aarch64_ctx head; - __u64 datap; - __u32 size; - __u32 __reserved[3]; + struct _aarch64_ctx head; + __u64 datap; + __u32 size; + __u32 __reserved[3]; }; -#define SVE_MAGIC 0x53564501 +#define SVE_MAGIC 0x53564501 struct sve_context { - struct _aarch64_ctx head; - __u16 vl; - __u16 __reserved[3]; + struct _aarch64_ctx head; + __u16 vl; + __u16 __reserved[3]; }; #endif -#define SVE_VQ_BYTES 16 -#define SVE_VQ_MIN 1 -#define SVE_VQ_MAX 512 -#define SVE_VL_MIN (SVE_VQ_MIN * SVE_VQ_BYTES) -#define SVE_VL_MAX (SVE_VQ_MAX * SVE_VQ_BYTES) -#define SVE_NUM_ZREGS 32 -#define SVE_NUM_PREGS 16 -#define sve_vl_valid(vl) \ - ((vl) % SVE_VQ_BYTES == 0 && (vl) >= SVE_VL_MIN && (vl) <= SVE_VL_MAX) -#define sve_vq_from_vl(vl) ((vl) / SVE_VQ_BYTES) -#define sve_vl_from_vq(vq) ((vq) * SVE_VQ_BYTES) -#define SVE_SIG_ZREG_SIZE(vq) ((__u32)(vq) * SVE_VQ_BYTES) -#define SVE_SIG_PREG_SIZE(vq) ((__u32)(vq) * (SVE_VQ_BYTES / 8)) -#define SVE_SIG_FFR_SIZE(vq) SVE_SIG_PREG_SIZE(vq) -#define SVE_SIG_REGS_OFFSET \ - ((sizeof(struct sve_context) + (SVE_VQ_BYTES - 1)) \ - / SVE_VQ_BYTES * SVE_VQ_BYTES) -#define SVE_SIG_ZREGS_OFFSET SVE_SIG_REGS_OFFSET -#define SVE_SIG_ZREG_OFFSET(vq, n) \ - (SVE_SIG_ZREGS_OFFSET + SVE_SIG_ZREG_SIZE(vq) * (n)) -#define SVE_SIG_ZREGS_SIZE(vq) \ - (SVE_SIG_ZREG_OFFSET(vq, SVE_NUM_ZREGS) - SVE_SIG_ZREGS_OFFSET) -#define SVE_SIG_PREGS_OFFSET(vq) \ - (SVE_SIG_ZREGS_OFFSET + SVE_SIG_ZREGS_SIZE(vq)) -#define SVE_SIG_PREG_OFFSET(vq, n) \ - (SVE_SIG_PREGS_OFFSET(vq) + SVE_SIG_PREG_SIZE(vq) * (n)) -#define SVE_SIG_PREGS_SIZE(vq) \ - (SVE_SIG_PREG_OFFSET(vq, SVE_NUM_PREGS) - SVE_SIG_PREGS_OFFSET(vq)) -#define SVE_SIG_FFR_OFFSET(vq) \ - (SVE_SIG_PREGS_OFFSET(vq) + SVE_SIG_PREGS_SIZE(vq)) -#define SVE_SIG_REGS_SIZE(vq) \ - (SVE_SIG_FFR_OFFSET(vq) + SVE_SIG_FFR_SIZE(vq) - SVE_SIG_REGS_OFFSET) +#include +#define SVE_VQ_BYTES __SVE_VQ_BYTES +#define SVE_VQ_MIN __SVE_VQ_MIN +#define SVE_VQ_MAX __SVE_VQ_MAX +#define SVE_VL_MIN __SVE_VL_MIN +#define SVE_VL_MAX __SVE_VL_MAX +#define SVE_NUM_ZREGS __SVE_NUM_ZREGS +#define SVE_NUM_PREGS __SVE_NUM_PREGS +#define sve_vl_valid(vl) __sve_vl_valid(vl) +#define sve_vq_from_vl(vl) __sve_vq_from_vl(vl) +#define sve_vl_from_vq(vq) __sve_vl_from_vq(vq) +#define SVE_SIG_ZREG_SIZE(vq) __SVE_ZREG_SIZE(vq) +#define SVE_SIG_PREG_SIZE(vq) __SVE_PREG_SIZE(vq) +#define SVE_SIG_FFR_SIZE(vq) __SVE_FFR_SIZE(vq) +#define SVE_SIG_REGS_OFFSET ((sizeof(struct sve_context) + (__SVE_VQ_BYTES - 1)) / __SVE_VQ_BYTES * __SVE_VQ_BYTES) +#define SVE_SIG_ZREGS_OFFSET (SVE_SIG_REGS_OFFSET + __SVE_ZREGS_OFFSET) +#define SVE_SIG_ZREG_OFFSET(vq,n) (SVE_SIG_REGS_OFFSET + __SVE_ZREG_OFFSET(vq, n)) +#define SVE_SIG_ZREGS_SIZE(vq) __SVE_ZREGS_SIZE(vq) +#define SVE_SIG_PREGS_OFFSET(vq) (SVE_SIG_REGS_OFFSET + __SVE_PREGS_OFFSET(vq)) +#define SVE_SIG_PREG_OFFSET(vq,n) (SVE_SIG_REGS_OFFSET + __SVE_PREG_OFFSET(vq, n)) +#define SVE_SIG_PREGS_SIZE(vq) __SVE_PREGS_SIZE(vq) +#define SVE_SIG_FFR_OFFSET(vq) (SVE_SIG_REGS_OFFSET + __SVE_FFR_OFFSET(vq)) +#define SVE_SIG_REGS_SIZE(vq) (__SVE_FFR_OFFSET(vq) + __SVE_FFR_SIZE(vq)) #define SVE_SIG_CONTEXT_SIZE(vq) (SVE_SIG_REGS_OFFSET + SVE_SIG_REGS_SIZE(vq)) #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/siginfo.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/siginfo.h index a1f3c608381ca1d4b0004098388d2cb18de46c73..a31ebb2d65ee8b0ddcd311b60e1438f0b2bc4e19 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/siginfo.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/siginfo.h @@ -1,10 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef __ASM_SIGINFO_H -#define __ASM_SIGINFO_H -#define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include -#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/signal.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/signal.h index 92cecc0022a19ef7897743a620b4641197dbc59d..7630b75d4cc4b0a82f0f059c40751d8a608f5a79 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/signal.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/signal.h @@ -1,12 +1,25 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_SIGNAL_H #define __ASM_SIGNAL_H -#define SA_RESTORER 0x04000000 +#define SA_RESTORER 0x04000000 #define MINSIGSTKSZ 5120 -#define SIGSTKSZ 16384 +#define SIGSTKSZ 16384 #include #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/socket.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/socket.h index b61e0f466b990c9d6e62f5fd9e530d9735139c35..50a9874cc601fd98b3562c343f5960ceacc04099 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/socket.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/socket.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sockios.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sockios.h index 9cb632b833d10708c8e94ad81d134dd44332a634..710db92bbb2e214394de4bb66ecb2396f0e25c99 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sockios.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sockios.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/stat.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/stat.h index ca7a36987f0b355814f715774a4da1bcf4ef3e12..af7ebfcbfd29dff665449a93df200ff84a2e0293 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/stat.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/stat.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/statfs.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/statfs.h index 857514253fb1b6247763fb2f7012b948ff803056..4a96c7e08ff8e2a5ec5b322a4210b64a9fe6e471 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/statfs.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/statfs.h @@ -1,10 +1,23 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_STATFS_H #define __ASM_STATFS_H -#define ARCH_PACK_COMPAT_STATFS64 __attribute__((packed,aligned(4))) +#define ARCH_PACK_COMPAT_STATFS64 __attribute__((packed, aligned(4))) #include #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sve_context.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sve_context.h new file mode 100644 index 0000000000000000000000000000000000000000..ff0063e1839d478e1810d33eb7d19ea67002bc0d --- /dev/null +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/sve_context.h @@ -0,0 +1,42 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI__ASM_SVE_CONTEXT_H +#define _UAPI__ASM_SVE_CONTEXT_H +#include +#define __SVE_VQ_BYTES 16 +#define __SVE_VQ_MIN 1 +#define __SVE_VQ_MAX 512 +#define __SVE_VL_MIN (__SVE_VQ_MIN * __SVE_VQ_BYTES) +#define __SVE_VL_MAX (__SVE_VQ_MAX * __SVE_VQ_BYTES) +#define __SVE_NUM_ZREGS 32 +#define __SVE_NUM_PREGS 16 +#define __sve_vl_valid(vl) ((vl) % __SVE_VQ_BYTES == 0 && (vl) >= __SVE_VL_MIN && (vl) <= __SVE_VL_MAX) +#define __sve_vq_from_vl(vl) ((vl) / __SVE_VQ_BYTES) +#define __sve_vl_from_vq(vq) ((vq) * __SVE_VQ_BYTES) +#define __SVE_ZREG_SIZE(vq) ((__u32) (vq) * __SVE_VQ_BYTES) +#define __SVE_PREG_SIZE(vq) ((__u32) (vq) * (__SVE_VQ_BYTES / 8)) +#define __SVE_FFR_SIZE(vq) __SVE_PREG_SIZE(vq) +#define __SVE_ZREGS_OFFSET 0 +#define __SVE_ZREG_OFFSET(vq,n) (__SVE_ZREGS_OFFSET + __SVE_ZREG_SIZE(vq) * (n)) +#define __SVE_ZREGS_SIZE(vq) (__SVE_ZREG_OFFSET(vq, __SVE_NUM_ZREGS) - __SVE_ZREGS_OFFSET) +#define __SVE_PREGS_OFFSET(vq) (__SVE_ZREGS_OFFSET + __SVE_ZREGS_SIZE(vq)) +#define __SVE_PREG_OFFSET(vq,n) (__SVE_PREGS_OFFSET(vq) + __SVE_PREG_SIZE(vq) * (n)) +#define __SVE_PREGS_SIZE(vq) (__SVE_PREG_OFFSET(vq, __SVE_NUM_PREGS) - __SVE_PREGS_OFFSET(vq)) +#define __SVE_FFR_OFFSET(vq) (__SVE_PREGS_OFFSET(vq) + __SVE_PREGS_SIZE(vq)) +#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/swab.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/swab.h index 5a266466c5726140465a01ad17261fad8e66916a..0049f5340d746b77fbced1258debd123c2ae007b 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/swab.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/swab.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/termbits.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/termbits.h index a3723def452bd096a7135f6c1f2b4c9ea76c8da1..42af6fe24e6b7435861df31e7040b893266affe2 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/termbits.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/termbits.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/termios.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/termios.h index 0555809eefc00df59fdc1ef02116419a1094088e..feca4c60ef3486c940ade2a9dc2aec2358aa768c 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/termios.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/termios.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/types.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/types.h index f65195ef4df02c388c3af7b11112fa8442f9a41e..8250f434578cb206560f3ff28d4b3e3c4635f76b 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/types.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/types.h @@ -1,6 +1,19 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ucontext.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ucontext.h index 273ff978d0e9c1cf11d70642a5e9c7b6036731e7..24dc60a6bc3de928e47c6c252a87bac1e345b255 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ucontext.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/ucontext.h @@ -1,19 +1,30 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef __ASM_UCONTEXT_H -#define __ASM_UCONTEXT_H +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI__ASM_UCONTEXT_H +#define _UAPI__ASM_UCONTEXT_H #include struct ucontext { - unsigned long uc_flags; - struct ucontext *uc_link; - stack_t uc_stack; - sigset_t uc_sigmask; - - __u8 __linux_unused[1024 / 8 - sizeof(sigset_t)]; - - struct sigcontext uc_mcontext; + unsigned long uc_flags; + struct ucontext * uc_link; + stack_t uc_stack; + sigset_t uc_sigmask; + __u8 __linux_unused[1024 / 8 - sizeof(sigset_t)]; + struct sigcontext uc_mcontext; }; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/unistd.h b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/unistd.h index 61a6d662b16d897fbb2b728491e60df4e59298f3..e93f3f1c22da44522874d5376008ce984df98527 100644 --- a/linux-5.10/prebuilts/usr/include/asm-arm64/asm/unistd.h +++ b/linux-5.10/prebuilts/usr/include/asm-arm64/asm/unistd.h @@ -1,7 +1,24 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_NEW_STAT +#define __ARCH_WANT_SET_GET_RLIMIT +#define __ARCH_WANT_TIME32_SYSCALLS +#define __ARCH_WANT_SYS_CLONE3 #include diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/Kbuild b/linux-5.10/prebuilts/usr/include/asm-generic/Kbuild deleted file mode 100644 index ebb180aac74e310c6b03b3eb0acfee3e8ffa45c8..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-generic/Kbuild +++ /dev/null @@ -1,36 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# -# Headers that are mandatory in usr/include/asm/ -# (This file is not included when SRCARCH=um since UML does not support UAPI.) - -mandatory-y += auxvec.h -mandatory-y += bitsperlong.h -mandatory-y += bpf_perf_event.h -mandatory-y += byteorder.h -mandatory-y += errno.h -mandatory-y += fcntl.h -mandatory-y += ioctl.h -mandatory-y += ioctls.h -mandatory-y += ipcbuf.h -mandatory-y += mman.h -mandatory-y += msgbuf.h -mandatory-y += param.h -mandatory-y += poll.h -mandatory-y += posix_types.h -mandatory-y += ptrace.h -mandatory-y += resource.h -mandatory-y += sembuf.h -mandatory-y += setup.h -mandatory-y += shmbuf.h -mandatory-y += sigcontext.h -mandatory-y += siginfo.h -mandatory-y += signal.h -mandatory-y += socket.h -mandatory-y += sockios.h -mandatory-y += stat.h -mandatory-y += statfs.h -mandatory-y += swab.h -mandatory-y += termbits.h -mandatory-y += termios.h -mandatory-y += types.h -mandatory-y += unistd.h diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/auxvec.h b/linux-5.10/prebuilts/usr/include/asm-generic/auxvec.h index 8c5c6002e68405c510d0a238810c55056d74e01e..fad637b4678bdfe0e3b388c4dcceead05bd3659d 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/auxvec.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/auxvec.h @@ -1,8 +1,21 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_AUXVEC_H #define __ASM_GENERIC_AUXVEC_H #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/bitsperlong.h b/linux-5.10/prebuilts/usr/include/asm-generic/bitsperlong.h index 6e1e10825e643af55dec444647324c0f66f11a1d..8fb379f40ea90365388d6225666f5c0a4ca73b45 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/bitsperlong.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/bitsperlong.h @@ -1,8 +1,21 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI__ASM_GENERIC_BITS_PER_LONG #define _UAPI__ASM_GENERIC_BITS_PER_LONG #ifndef __BITS_PER_LONG diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/bpf_perf_event.h b/linux-5.10/prebuilts/usr/include/asm-generic/bpf_perf_event.h index cdabc70e5d7831103fba30ac7128dffd6296c026..794927be18d49462434052143d8eb61e92bebfdf 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/bpf_perf_event.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/bpf_perf_event.h @@ -1,8 +1,21 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI__ASM_GENERIC_BPF_PERF_EVENT_H__ #define _UAPI__ASM_GENERIC_BPF_PERF_EVENT_H__ #include diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/errno-base.h b/linux-5.10/prebuilts/usr/include/asm-generic/errno-base.h index 8a5e61f769227cea0aec9200c5ba1e118fa7d68a..bdfb8111dd9f47368cc040e4df4839b43bd582c5 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/errno-base.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/errno-base.h @@ -1,42 +1,55 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _ASM_GENERIC_ERRNO_BASE_H #define _ASM_GENERIC_ERRNO_BASE_H -#define EPERM 1 -#define ENOENT 2 -#define ESRCH 3 -#define EINTR 4 -#define EIO 5 -#define ENXIO 6 -#define E2BIG 7 -#define ENOEXEC 8 -#define EBADF 9 -#define ECHILD 10 -#define EAGAIN 11 -#define ENOMEM 12 -#define EACCES 13 -#define EFAULT 14 -#define ENOTBLK 15 -#define EBUSY 16 -#define EEXIST 17 -#define EXDEV 18 -#define ENODEV 19 -#define ENOTDIR 20 -#define EISDIR 21 -#define EINVAL 22 -#define ENFILE 23 -#define EMFILE 24 -#define ENOTTY 25 -#define ETXTBSY 26 -#define EFBIG 27 -#define ENOSPC 28 -#define ESPIPE 29 -#define EROFS 30 -#define EMLINK 31 -#define EPIPE 32 -#define EDOM 33 -#define ERANGE 34 +#define EPERM 1 +#define ENOENT 2 +#define ESRCH 3 +#define EINTR 4 +#define EIO 5 +#define ENXIO 6 +#define E2BIG 7 +#define ENOEXEC 8 +#define EBADF 9 +#define ECHILD 10 +#define EAGAIN 11 +#define ENOMEM 12 +#define EACCES 13 +#define EFAULT 14 +#define ENOTBLK 15 +#define EBUSY 16 +#define EEXIST 17 +#define EXDEV 18 +#define ENODEV 19 +#define ENOTDIR 20 +#define EISDIR 21 +#define EINVAL 22 +#define ENFILE 23 +#define EMFILE 24 +#define ENOTTY 25 +#define ETXTBSY 26 +#define EFBIG 27 +#define ENOSPC 28 +#define ESPIPE 29 +#define EROFS 30 +#define EMLINK 31 +#define EPIPE 32 +#define EDOM 33 +#define ERANGE 34 #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/errno.h b/linux-5.10/prebuilts/usr/include/asm-generic/errno.h index c6f7a49494055b63d461e3947e7d2de204e9640f..6a2c28536b5e43365f90e8abb5cb8497debac1f9 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/errno.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/errno.h @@ -1,108 +1,121 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _ASM_GENERIC_ERRNO_H #define _ASM_GENERIC_ERRNO_H #include -#define EDEADLK 35 -#define ENAMETOOLONG 36 -#define ENOLCK 37 -#define ENOSYS 38 -#define ENOTEMPTY 39 -#define ELOOP 40 -#define EWOULDBLOCK EAGAIN -#define ENOMSG 42 -#define EIDRM 43 -#define ECHRNG 44 -#define EL2NSYNC 45 -#define EL3HLT 46 -#define EL3RST 47 -#define ELNRNG 48 -#define EUNATCH 49 -#define ENOCSI 50 -#define EL2HLT 51 -#define EBADE 52 -#define EBADR 53 -#define EXFULL 54 -#define ENOANO 55 -#define EBADRQC 56 -#define EBADSLT 57 -#define EDEADLOCK EDEADLK -#define EBFONT 59 -#define ENOSTR 60 -#define ENODATA 61 -#define ETIME 62 -#define ENOSR 63 -#define ENONET 64 -#define ENOPKG 65 -#define EREMOTE 66 -#define ENOLINK 67 -#define EADV 68 -#define ESRMNT 69 -#define ECOMM 70 -#define EPROTO 71 -#define EMULTIHOP 72 -#define EDOTDOT 73 -#define EBADMSG 74 -#define EOVERFLOW 75 -#define ENOTUNIQ 76 -#define EBADFD 77 -#define EREMCHG 78 -#define ELIBACC 79 -#define ELIBBAD 80 -#define ELIBSCN 81 -#define ELIBMAX 82 -#define ELIBEXEC 83 -#define EILSEQ 84 -#define ERESTART 85 -#define ESTRPIPE 86 -#define EUSERS 87 -#define ENOTSOCK 88 -#define EDESTADDRREQ 89 -#define EMSGSIZE 90 -#define EPROTOTYPE 91 -#define ENOPROTOOPT 92 -#define EPROTONOSUPPORT 93 -#define ESOCKTNOSUPPORT 94 -#define EOPNOTSUPP 95 -#define EPFNOSUPPORT 96 -#define EAFNOSUPPORT 97 -#define EADDRINUSE 98 -#define EADDRNOTAVAIL 99 -#define ENETDOWN 100 -#define ENETUNREACH 101 -#define ENETRESET 102 -#define ECONNABORTED 103 -#define ECONNRESET 104 -#define ENOBUFS 105 -#define EISCONN 106 -#define ENOTCONN 107 -#define ESHUTDOWN 108 -#define ETOOMANYREFS 109 -#define ETIMEDOUT 110 -#define ECONNREFUSED 111 -#define EHOSTDOWN 112 -#define EHOSTUNREACH 113 -#define EALREADY 114 -#define EINPROGRESS 115 -#define ESTALE 116 -#define EUCLEAN 117 -#define ENOTNAM 118 -#define ENAVAIL 119 -#define EISNAM 120 -#define EREMOTEIO 121 -#define EDQUOT 122 -#define ENOMEDIUM 123 -#define EMEDIUMTYPE 124 -#define ECANCELED 125 -#define ENOKEY 126 -#define EKEYEXPIRED 127 -#define EKEYREVOKED 128 -#define EKEYREJECTED 129 -#define EOWNERDEAD 130 -#define ENOTRECOVERABLE 131 -#define ERFKILL 132 -#define EHWPOISON 133 +#define EDEADLK 35 +#define ENAMETOOLONG 36 +#define ENOLCK 37 +#define ENOSYS 38 +#define ENOTEMPTY 39 +#define ELOOP 40 +#define EWOULDBLOCK EAGAIN +#define ENOMSG 42 +#define EIDRM 43 +#define ECHRNG 44 +#define EL2NSYNC 45 +#define EL3HLT 46 +#define EL3RST 47 +#define ELNRNG 48 +#define EUNATCH 49 +#define ENOCSI 50 +#define EL2HLT 51 +#define EBADE 52 +#define EBADR 53 +#define EXFULL 54 +#define ENOANO 55 +#define EBADRQC 56 +#define EBADSLT 57 +#define EDEADLOCK EDEADLK +#define EBFONT 59 +#define ENOSTR 60 +#define ENODATA 61 +#define ETIME 62 +#define ENOSR 63 +#define ENONET 64 +#define ENOPKG 65 +#define EREMOTE 66 +#define ENOLINK 67 +#define EADV 68 +#define ESRMNT 69 +#define ECOMM 70 +#define EPROTO 71 +#define EMULTIHOP 72 +#define EDOTDOT 73 +#define EBADMSG 74 +#define EOVERFLOW 75 +#define ENOTUNIQ 76 +#define EBADFD 77 +#define EREMCHG 78 +#define ELIBACC 79 +#define ELIBBAD 80 +#define ELIBSCN 81 +#define ELIBMAX 82 +#define ELIBEXEC 83 +#define EILSEQ 84 +#define ERESTART 85 +#define ESTRPIPE 86 +#define EUSERS 87 +#define ENOTSOCK 88 +#define EDESTADDRREQ 89 +#define EMSGSIZE 90 +#define EPROTOTYPE 91 +#define ENOPROTOOPT 92 +#define EPROTONOSUPPORT 93 +#define ESOCKTNOSUPPORT 94 +#define EOPNOTSUPP 95 +#define EPFNOSUPPORT 96 +#define EAFNOSUPPORT 97 +#define EADDRINUSE 98 +#define EADDRNOTAVAIL 99 +#define ENETDOWN 100 +#define ENETUNREACH 101 +#define ENETRESET 102 +#define ECONNABORTED 103 +#define ECONNRESET 104 +#define ENOBUFS 105 +#define EISCONN 106 +#define ENOTCONN 107 +#define ESHUTDOWN 108 +#define ETOOMANYREFS 109 +#define ETIMEDOUT 110 +#define ECONNREFUSED 111 +#define EHOSTDOWN 112 +#define EHOSTUNREACH 113 +#define EALREADY 114 +#define EINPROGRESS 115 +#define ESTALE 116 +#define EUCLEAN 117 +#define ENOTNAM 118 +#define ENAVAIL 119 +#define EISNAM 120 +#define EREMOTEIO 121 +#define EDQUOT 122 +#define ENOMEDIUM 123 +#define EMEDIUMTYPE 124 +#define ECANCELED 125 +#define ENOKEY 126 +#define EKEYEXPIRED 127 +#define EKEYREVOKED 128 +#define EKEYREJECTED 129 +#define EOWNERDEAD 130 +#define ENOTRECOVERABLE 131 +#define ERFKILL 132 +#define EHWPOISON 133 #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/fcntl.h b/linux-5.10/prebuilts/usr/include/asm-generic/fcntl.h index add4feb1a778c0dbae12bef5b360f81a385290c1..0afcf06c6b8ea831bbebd0938869dcbbe9eaeb5b 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/fcntl.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/fcntl.h @@ -1,137 +1,152 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _ASM_GENERIC_FCNTL_H #define _ASM_GENERIC_FCNTL_H + #include -#define O_ACCMODE 00000003 -#define O_RDONLY 00000000 -#define O_WRONLY 00000001 -#define O_RDWR 00000002 +#define O_ACCMODE 00000003 +#define O_RDONLY 00000000 +#define O_WRONLY 00000001 +#define O_RDWR 00000002 #ifndef O_CREAT -#define O_CREAT 00000100 +#define O_CREAT 00000100 #endif #ifndef O_EXCL -#define O_EXCL 00000200 +#define O_EXCL 00000200 #endif #ifndef O_NOCTTY -#define O_NOCTTY 00000400 +#define O_NOCTTY 00000400 #endif #ifndef O_TRUNC -#define O_TRUNC 00001000 +#define O_TRUNC 00001000 #endif #ifndef O_APPEND -#define O_APPEND 00002000 +#define O_APPEND 00002000 #endif #ifndef O_NONBLOCK -#define O_NONBLOCK 00004000 +#define O_NONBLOCK 00004000 #endif #ifndef O_DSYNC -#define O_DSYNC 00010000 +#define O_DSYNC 00010000 #endif #ifndef FASYNC -#define FASYNC 00020000 +#define FASYNC 00020000 #endif #ifndef O_DIRECT -#define O_DIRECT 00040000 +#define O_DIRECT 00040000 #endif #ifndef O_LARGEFILE -#define O_LARGEFILE 00100000 +#define O_LARGEFILE 00100000 #endif #ifndef O_DIRECTORY -#define O_DIRECTORY 00200000 +#define O_DIRECTORY 00200000 #endif #ifndef O_NOFOLLOW -#define O_NOFOLLOW 00400000 +#define O_NOFOLLOW 00400000 #endif #ifndef O_NOATIME -#define O_NOATIME 01000000 +#define O_NOATIME 01000000 #endif #ifndef O_CLOEXEC -#define O_CLOEXEC 02000000 +#define O_CLOEXEC 02000000 #endif #ifndef O_SYNC -#define __O_SYNC 04000000 -#define O_SYNC (__O_SYNC|O_DSYNC) +#define __O_SYNC 04000000 +#define O_SYNC (__O_SYNC | O_DSYNC) #endif #ifndef O_PATH -#define O_PATH 010000000 +#define O_PATH 010000000 #endif #ifndef __O_TMPFILE -#define __O_TMPFILE 020000000 +#define __O_TMPFILE 020000000 #endif #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY) #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT) #ifndef O_NDELAY -#define O_NDELAY O_NONBLOCK +#define O_NDELAY O_NONBLOCK #endif -#define F_DUPFD 0 -#define F_GETFD 1 -#define F_SETFD 2 -#define F_GETFL 3 -#define F_SETFL 4 +#define F_DUPFD 0 +#define F_GETFD 1 +#define F_SETFD 2 +#define F_GETFL 3 +#define F_SETFL 4 #ifndef F_GETLK -#define F_GETLK 5 -#define F_SETLK 6 -#define F_SETLKW 7 +#define F_GETLK 5 +#define F_SETLK 6 +#define F_SETLKW 7 #endif #ifndef F_SETOWN -#define F_SETOWN 8 -#define F_GETOWN 9 +#define F_SETOWN 8 +#define F_GETOWN 9 #endif #ifndef F_SETSIG -#define F_SETSIG 10 -#define F_GETSIG 11 +#define F_SETSIG 10 +#define F_GETSIG 11 #endif #ifndef __LP64__ #ifndef F_GETLK64 -#define F_GETLK64 12 -#define F_SETLK64 13 -#define F_SETLKW64 14 +#define F_GETLK64 12 +#define F_SETLK64 13 +#define F_SETLKW64 14 #endif #endif #ifndef F_SETOWN_EX -#define F_SETOWN_EX 15 -#define F_GETOWN_EX 16 +#define F_SETOWN_EX 15 +#define F_GETOWN_EX 16 #endif #ifndef F_GETOWNER_UIDS -#define F_GETOWNER_UIDS 17 -#endif -#define F_OFD_GETLK 36 -#define F_OFD_SETLK 37 -#define F_OFD_SETLKW 38 -#define F_OWNER_TID 0 -#define F_OWNER_PID 1 -#define F_OWNER_PGRP 2 +#define F_GETOWNER_UIDS 17 +#endif +#define F_OFD_GETLK 36 +#define F_OFD_SETLK 37 +#define F_OFD_SETLKW 38 +#define F_OWNER_TID 0 +#define F_OWNER_PID 1 +#define F_OWNER_PGRP 2 struct f_owner_ex { - int type; - __kernel_pid_t pid; + int type; + __kernel_pid_t pid; }; -#define FD_CLOEXEC 1 +#define FD_CLOEXEC 1 #ifndef F_RDLCK -#define F_RDLCK 0 -#define F_WRLCK 1 -#define F_UNLCK 2 +#define F_RDLCK 0 +#define F_WRLCK 1 +#define F_UNLCK 2 #endif #ifndef F_EXLCK -#define F_EXLCK 4 -#define F_SHLCK 8 -#endif -#define LOCK_SH 1 -#define LOCK_EX 2 -#define LOCK_NB 4 -#define LOCK_UN 8 -#define LOCK_MAND 32 -#define LOCK_READ 64 -#define LOCK_WRITE 128 -#define LOCK_RW 192 -#define F_LINUX_SPECIFIC_BASE 1024 +#define F_EXLCK 4 +#define F_SHLCK 8 +#endif +#define LOCK_SH 1 +#define LOCK_EX 2 +#define LOCK_NB 4 +#define LOCK_UN 8 +#define LOCK_MAND 32 +#define LOCK_READ 64 +#define LOCK_WRITE 128 +#define LOCK_RW 192 +#define F_LINUX_SPECIFIC_BASE 1024 #ifndef HAVE_ARCH_STRUCT_FLOCK #ifndef __ARCH_FLOCK_PAD #define __ARCH_FLOCK_PAD #endif + struct flock { short l_type; short l_whence; @@ -145,6 +160,7 @@ struct flock { #ifndef __ARCH_FLOCK64_PAD #define __ARCH_FLOCK64_PAD #endif + struct flock64 { short l_type; short l_whence; diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/hugetlb_encode.h b/linux-5.10/prebuilts/usr/include/asm-generic/hugetlb_encode.h index 4b73617826711a7fdca522c3f3fc34e02cdf9cbb..73d81805025fbe6a42756432ea60d1fe57de6bd2 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/hugetlb_encode.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/hugetlb_encode.h @@ -1,23 +1,36 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _ASM_GENERIC_HUGETLB_ENCODE_H_ #define _ASM_GENERIC_HUGETLB_ENCODE_H_ -#define HUGETLB_FLAG_ENCODE_SHIFT 26 -#define HUGETLB_FLAG_ENCODE_MASK 0x3f -#define HUGETLB_FLAG_ENCODE_16KB (14 << HUGETLB_FLAG_ENCODE_SHIFT) -#define HUGETLB_FLAG_ENCODE_64KB (16 << HUGETLB_FLAG_ENCODE_SHIFT) -#define HUGETLB_FLAG_ENCODE_512KB (19 << HUGETLB_FLAG_ENCODE_SHIFT) -#define HUGETLB_FLAG_ENCODE_1MB (20 << HUGETLB_FLAG_ENCODE_SHIFT) -#define HUGETLB_FLAG_ENCODE_2MB (21 << HUGETLB_FLAG_ENCODE_SHIFT) -#define HUGETLB_FLAG_ENCODE_8MB (23 << HUGETLB_FLAG_ENCODE_SHIFT) -#define HUGETLB_FLAG_ENCODE_16MB (24 << HUGETLB_FLAG_ENCODE_SHIFT) -#define HUGETLB_FLAG_ENCODE_32MB (25 << HUGETLB_FLAG_ENCODE_SHIFT) -#define HUGETLB_FLAG_ENCODE_256MB (28 << HUGETLB_FLAG_ENCODE_SHIFT) -#define HUGETLB_FLAG_ENCODE_512MB (29 << HUGETLB_FLAG_ENCODE_SHIFT) -#define HUGETLB_FLAG_ENCODE_1GB (30 << HUGETLB_FLAG_ENCODE_SHIFT) -#define HUGETLB_FLAG_ENCODE_2GB (31 << HUGETLB_FLAG_ENCODE_SHIFT) -#define HUGETLB_FLAG_ENCODE_16GB (34 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_SHIFT 26 +#define HUGETLB_FLAG_ENCODE_MASK 0x3f +#define HUGETLB_FLAG_ENCODE_16KB (14 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_64KB (16 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_512KB (19 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_1MB (20 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_2MB (21 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_8MB (23 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_16MB (24 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_32MB (25 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_256MB (28 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_512MB (29 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_1GB (30 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_2GB (31 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_16GB (34 << HUGETLB_FLAG_ENCODE_SHIFT) #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/int-l64.h b/linux-5.10/prebuilts/usr/include/asm-generic/int-l64.h index 39adb2d444211da2e0b373e44d168dbaba967c6d..6ddf7404e73c5dc6503cd68425e4d647806d7975 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/int-l64.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/int-l64.h @@ -1,8 +1,21 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI_ASM_GENERIC_INT_L64_H #define _UAPI_ASM_GENERIC_INT_L64_H #include diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/int-ll64.h b/linux-5.10/prebuilts/usr/include/asm-generic/int-ll64.h index 668470e57228f5cdf6eab3db8ee8bd220e4e013d..dcad2eb5aaf9e6e847430e6aa3f2fc44a92046e2 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/int-ll64.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/int-ll64.h @@ -1,8 +1,21 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI_ASM_GENERIC_INT_LL64_H #define _UAPI_ASM_GENERIC_INT_LL64_H #include diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/ioctl.h b/linux-5.10/prebuilts/usr/include/asm-generic/ioctl.h index bcf57f41379b7555ce687e1247fdd1c0ee10703d..84c2ec838894af3b67a89afc8a5bb3258c9b7927 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/ioctl.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/ioctl.h @@ -1,57 +1,64 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI_ASM_GENERIC_IOCTL_H #define _UAPI_ASM_GENERIC_IOCTL_H -#define _IOC_NRBITS 8 -#define _IOC_TYPEBITS 8 +#define _IOC_NRBITS 8 +#define _IOC_TYPEBITS 8 #ifndef _IOC_SIZEBITS -# define _IOC_SIZEBITS 14 +#define _IOC_SIZEBITS 14 #endif #ifndef _IOC_DIRBITS -# define _IOC_DIRBITS 2 +#define _IOC_DIRBITS 2 #endif -#define _IOC_NRMASK ((1 << _IOC_NRBITS)-1) -#define _IOC_TYPEMASK ((1 << _IOC_TYPEBITS)-1) -#define _IOC_SIZEMASK ((1 << _IOC_SIZEBITS)-1) -#define _IOC_DIRMASK ((1 << _IOC_DIRBITS)-1) -#define _IOC_NRSHIFT 0 -#define _IOC_TYPESHIFT (_IOC_NRSHIFT+_IOC_NRBITS) -#define _IOC_SIZESHIFT (_IOC_TYPESHIFT+_IOC_TYPEBITS) -#define _IOC_DIRSHIFT (_IOC_SIZESHIFT+_IOC_SIZEBITS) +#define _IOC_NRMASK ((1 << _IOC_NRBITS) - 1) +#define _IOC_TYPEMASK ((1 << _IOC_TYPEBITS) - 1) +#define _IOC_SIZEMASK ((1 << _IOC_SIZEBITS) - 1) +#define _IOC_DIRMASK ((1 << _IOC_DIRBITS) - 1) +#define _IOC_NRSHIFT 0 +#define _IOC_TYPESHIFT (_IOC_NRSHIFT + _IOC_NRBITS) +#define _IOC_SIZESHIFT (_IOC_TYPESHIFT + _IOC_TYPEBITS) +#define _IOC_DIRSHIFT (_IOC_SIZESHIFT + _IOC_SIZEBITS) #ifndef _IOC_NONE -# define _IOC_NONE 0U +#define _IOC_NONE 0U #endif #ifndef _IOC_WRITE -# define _IOC_WRITE 1U +#define _IOC_WRITE 1U #endif #ifndef _IOC_READ -# define _IOC_READ 2U +#define _IOC_READ 2U #endif -#define _IOC(dir,type,nr,size) \ - (((dir) << _IOC_DIRSHIFT) | \ - ((type) << _IOC_TYPESHIFT) | \ - ((nr) << _IOC_NRSHIFT) | \ - ((size) << _IOC_SIZESHIFT)) -#ifndef __KERNEL__ +#define _IOC(dir,type,nr,size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | ((nr) << _IOC_NRSHIFT) | ((size) << _IOC_SIZESHIFT)) #define _IOC_TYPECHECK(t) (sizeof(t)) -#endif -#define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) -#define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) -#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) -#define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) -#define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) -#define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) -#define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) -#define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) -#define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) -#define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) -#define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) -#define IOC_IN (_IOC_WRITE << _IOC_DIRSHIFT) -#define IOC_OUT (_IOC_READ << _IOC_DIRSHIFT) -#define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT) -#define IOCSIZE_MASK (_IOC_SIZEMASK << _IOC_SIZESHIFT) -#define IOCSIZE_SHIFT (_IOC_SIZESHIFT) +#define _IO(type,nr) _IOC(_IOC_NONE, (type), (nr), 0) +#define _IOR(type,nr,size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size))) +#define _IOW(type,nr,size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) +#define _IOWR(type,nr,size) _IOC(_IOC_READ | _IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) +#define _IOR_BAD(type,nr,size) _IOC(_IOC_READ, (type), (nr), sizeof(size)) +#define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE, (type), (nr), sizeof(size)) +#define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ | _IOC_WRITE, (type), (nr), sizeof(size)) +#define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) +#define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) +#define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) +#define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) +#define IOC_IN (_IOC_WRITE << _IOC_DIRSHIFT) +#define IOC_OUT (_IOC_READ << _IOC_DIRSHIFT) +#define IOC_INOUT ((_IOC_WRITE | _IOC_READ) << _IOC_DIRSHIFT) +#define IOCSIZE_MASK (_IOC_SIZEMASK << _IOC_SIZESHIFT) +#define IOCSIZE_SHIFT (_IOC_SIZESHIFT) #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/ioctls.h b/linux-5.10/prebuilts/usr/include/asm-generic/ioctls.h index 046f1b3fe3fab01a34087c9a678677de917a2e0a..f8a4357727df909eefebac75d3dcc4e4c1595cca 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/ioctls.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/ioctls.h @@ -1,99 +1,112 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_IOCTLS_H #define __ASM_GENERIC_IOCTLS_H #include -#define TCGETS 0x5401 -#define TCSETS 0x5402 -#define TCSETSW 0x5403 -#define TCSETSF 0x5404 -#define TCGETA 0x5405 -#define TCSETA 0x5406 -#define TCSETAW 0x5407 -#define TCSETAF 0x5408 -#define TCSBRK 0x5409 -#define TCXONC 0x540A -#define TCFLSH 0x540B -#define TIOCEXCL 0x540C -#define TIOCNXCL 0x540D -#define TIOCSCTTY 0x540E -#define TIOCGPGRP 0x540F -#define TIOCSPGRP 0x5410 -#define TIOCOUTQ 0x5411 -#define TIOCSTI 0x5412 -#define TIOCGWINSZ 0x5413 -#define TIOCSWINSZ 0x5414 -#define TIOCMGET 0x5415 -#define TIOCMBIS 0x5416 -#define TIOCMBIC 0x5417 -#define TIOCMSET 0x5418 -#define TIOCGSOFTCAR 0x5419 -#define TIOCSSOFTCAR 0x541A -#define FIONREAD 0x541B -#define TIOCINQ FIONREAD -#define TIOCLINUX 0x541C -#define TIOCCONS 0x541D -#define TIOCGSERIAL 0x541E -#define TIOCSSERIAL 0x541F -#define TIOCPKT 0x5420 -#define FIONBIO 0x5421 -#define TIOCNOTTY 0x5422 -#define TIOCSETD 0x5423 -#define TIOCGETD 0x5424 -#define TCSBRKP 0x5425 -#define TIOCSBRK 0x5427 -#define TIOCCBRK 0x5428 -#define TIOCGSID 0x5429 -#define TCGETS2 _IOR('T', 0x2A, struct termios2) -#define TCSETS2 _IOW('T', 0x2B, struct termios2) -#define TCSETSW2 _IOW('T', 0x2C, struct termios2) -#define TCSETSF2 _IOW('T', 0x2D, struct termios2) -#define TIOCGRS485 0x542E +#define TCGETS 0x5401 +#define TCSETS 0x5402 +#define TCSETSW 0x5403 +#define TCSETSF 0x5404 +#define TCGETA 0x5405 +#define TCSETA 0x5406 +#define TCSETAW 0x5407 +#define TCSETAF 0x5408 +#define TCSBRK 0x5409 +#define TCXONC 0x540A +#define TCFLSH 0x540B +#define TIOCEXCL 0x540C +#define TIOCNXCL 0x540D +#define TIOCSCTTY 0x540E +#define TIOCGPGRP 0x540F +#define TIOCSPGRP 0x5410 +#define TIOCOUTQ 0x5411 +#define TIOCSTI 0x5412 +#define TIOCGWINSZ 0x5413 +#define TIOCSWINSZ 0x5414 +#define TIOCMGET 0x5415 +#define TIOCMBIS 0x5416 +#define TIOCMBIC 0x5417 +#define TIOCMSET 0x5418 +#define TIOCGSOFTCAR 0x5419 +#define TIOCSSOFTCAR 0x541A +#define FIONREAD 0x541B +#define TIOCINQ FIONREAD +#define TIOCLINUX 0x541C +#define TIOCCONS 0x541D +#define TIOCGSERIAL 0x541E +#define TIOCSSERIAL 0x541F +#define TIOCPKT 0x5420 +#define FIONBIO 0x5421 +#define TIOCNOTTY 0x5422 +#define TIOCSETD 0x5423 +#define TIOCGETD 0x5424 +#define TCSBRKP 0x5425 +#define TIOCSBRK 0x5427 +#define TIOCCBRK 0x5428 +#define TIOCGSID 0x5429 +#define TCGETS2 _IOR('T', 0x2A, struct termios2) +#define TCSETS2 _IOW('T', 0x2B, struct termios2) +#define TCSETSW2 _IOW('T', 0x2C, struct termios2) +#define TCSETSF2 _IOW('T', 0x2D, struct termios2) +#define TIOCGRS485 0x542E #ifndef TIOCSRS485 -#define TIOCSRS485 0x542F +#define TIOCSRS485 0x542F #endif -#define TIOCGPTN _IOR('T', 0x30, unsigned int) -#define TIOCSPTLCK _IOW('T', 0x31, int) -#define TIOCGDEV _IOR('T', 0x32, unsigned int) -#define TCGETX 0x5432 -#define TCSETX 0x5433 -#define TCSETXF 0x5434 -#define TCSETXW 0x5435 -#define TIOCSIG _IOW('T', 0x36, int) -#define TIOCVHANGUP 0x5437 -#define TIOCGPKT _IOR('T', 0x38, int) -#define TIOCGPTLCK _IOR('T', 0x39, int) -#define TIOCGEXCL _IOR('T', 0x40, int) -#define TIOCGPTPEER _IO('T', 0x41) -#define TIOCGISO7816 _IOR('T', 0x42, struct serial_iso7816) -#define TIOCSISO7816 _IOWR('T', 0x43, struct serial_iso7816) -#define FIONCLEX 0x5450 -#define FIOCLEX 0x5451 -#define FIOASYNC 0x5452 -#define TIOCSERCONFIG 0x5453 -#define TIOCSERGWILD 0x5454 -#define TIOCSERSWILD 0x5455 -#define TIOCGLCKTRMIOS 0x5456 -#define TIOCSLCKTRMIOS 0x5457 -#define TIOCSERGSTRUCT 0x5458 -#define TIOCSERGETLSR 0x5459 +#define TIOCGPTN _IOR('T', 0x30, unsigned int) +#define TIOCSPTLCK _IOW('T', 0x31, int) +#define TIOCGDEV _IOR('T', 0x32, unsigned int) +#define TCGETX 0x5432 +#define TCSETX 0x5433 +#define TCSETXF 0x5434 +#define TCSETXW 0x5435 +#define TIOCSIG _IOW('T', 0x36, int) +#define TIOCVHANGUP 0x5437 +#define TIOCGPKT _IOR('T', 0x38, int) +#define TIOCGPTLCK _IOR('T', 0x39, int) +#define TIOCGEXCL _IOR('T', 0x40, int) +#define TIOCGPTPEER _IO('T', 0x41) +#define TIOCGISO7816 _IOR('T', 0x42, struct serial_iso7816) +#define TIOCSISO7816 _IOWR('T', 0x43, struct serial_iso7816) +#define FIONCLEX 0x5450 +#define FIOCLEX 0x5451 +#define FIOASYNC 0x5452 +#define TIOCSERCONFIG 0x5453 +#define TIOCSERGWILD 0x5454 +#define TIOCSERSWILD 0x5455 +#define TIOCGLCKTRMIOS 0x5456 +#define TIOCSLCKTRMIOS 0x5457 +#define TIOCSERGSTRUCT 0x5458 +#define TIOCSERGETLSR 0x5459 #define TIOCSERGETMULTI 0x545A #define TIOCSERSETMULTI 0x545B -#define TIOCMIWAIT 0x545C -#define TIOCGICOUNT 0x545D +#define TIOCMIWAIT 0x545C +#define TIOCGICOUNT 0x545D #ifndef FIOQSIZE -# define FIOQSIZE 0x5460 +#define FIOQSIZE 0x5460 #endif -#define TIOCPKT_DATA 0 -#define TIOCPKT_FLUSHREAD 1 -#define TIOCPKT_FLUSHWRITE 2 -#define TIOCPKT_STOP 4 -#define TIOCPKT_START 8 -#define TIOCPKT_NOSTOP 16 -#define TIOCPKT_DOSTOP 32 -#define TIOCPKT_IOCTL 64 -#define TIOCSER_TEMT 0x01 +#define TIOCPKT_DATA 0 +#define TIOCPKT_FLUSHREAD 1 +#define TIOCPKT_FLUSHWRITE 2 +#define TIOCPKT_STOP 4 +#define TIOCPKT_START 8 +#define TIOCPKT_NOSTOP 16 +#define TIOCPKT_DOSTOP 32 +#define TIOCPKT_IOCTL 64 +#define TIOCSER_TEMT 0x01 #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/ipcbuf.h b/linux-5.10/prebuilts/usr/include/asm-generic/ipcbuf.h index 06abd1d230d71095382dd4b55177e6f5142b5e58..40c45ab13e7f6ba88952896c4de4b59fde06cd3a 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/ipcbuf.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/ipcbuf.h @@ -1,23 +1,35 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_IPCBUF_H #define __ASM_GENERIC_IPCBUF_H #include struct ipc64_perm { - __kernel_key_t key; - __kernel_uid32_t uid; - __kernel_gid32_t gid; - __kernel_uid32_t cuid; - __kernel_gid32_t cgid; - __kernel_mode_t mode; - - unsigned char __pad1[4 - sizeof(__kernel_mode_t)]; - unsigned short seq; - unsigned short __pad2; - __kernel_ulong_t __unused1; - __kernel_ulong_t __unused2; + __kernel_key_t key; + __kernel_uid32_t uid; + __kernel_gid32_t gid; + __kernel_uid32_t cuid; + __kernel_gid32_t cgid; + __kernel_mode_t mode; + unsigned char __pad1[4 - sizeof(__kernel_mode_t)]; + unsigned short seq; + unsigned short __pad2; + __kernel_ulong_t __unused1; + __kernel_ulong_t __unused2; }; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/kvm_para.h b/linux-5.10/prebuilts/usr/include/asm-generic/kvm_para.h index 4d4215081466285174a787bfb0c4085e75d99786..878419c24c8cc606dc89b7c3502adb0bae6858a8 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/kvm_para.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/kvm_para.h @@ -1,5 +1,18 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/mman-common.h b/linux-5.10/prebuilts/usr/include/asm-generic/mman-common.h index b53843215ec09d1605e33e9870934dc65529c660..a088ce5c28d238ac8fda7e961c3b9c84295fd154 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/mman-common.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/mman-common.h @@ -1,55 +1,67 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_MMAN_COMMON_H #define __ASM_GENERIC_MMAN_COMMON_H -#define PROT_READ 0x1 -#define PROT_WRITE 0x2 -#define PROT_EXEC 0x4 -#define PROT_SEM 0x8 -#define PROT_NONE 0x0 -#define PROT_GROWSDOWN 0x01000000 -#define PROT_GROWSUP 0x02000000 -#define MAP_TYPE 0x0f -#define MAP_FIXED 0x10 -#define MAP_ANONYMOUS 0x20 -#define MAP_POPULATE 0x008000 -#define MAP_NONBLOCK 0x010000 -#define MAP_STACK 0x020000 -#define MAP_HUGETLB 0x040000 -#define MAP_SYNC 0x080000 -#define MAP_FIXED_NOREPLACE 0x100000 +#define PROT_READ 0x1 +#define PROT_WRITE 0x2 +#define PROT_EXEC 0x4 +#define PROT_SEM 0x8 +#define PROT_NONE 0x0 +#define PROT_GROWSDOWN 0x01000000 +#define PROT_GROWSUP 0x02000000 +#define MAP_TYPE 0x0f +#define MAP_FIXED 0x10 +#define MAP_ANONYMOUS 0x20 +#define MAP_POPULATE 0x008000 +#define MAP_NONBLOCK 0x010000 +#define MAP_STACK 0x020000 +#define MAP_HUGETLB 0x040000 +#define MAP_SYNC 0x080000 +#define MAP_FIXED_NOREPLACE 0x100000 #define MAP_UNINITIALIZED 0x4000000 -#define MLOCK_ONFAULT 0x01 -#define MS_ASYNC 1 -#define MS_INVALIDATE 2 -#define MS_SYNC 4 -#define MADV_NORMAL 0 -#define MADV_RANDOM 1 -#define MADV_SEQUENTIAL 2 -#define MADV_WILLNEED 3 -#define MADV_DONTNEED 4 -#define MADV_FREE 8 -#define MADV_REMOVE 9 -#define MADV_DONTFORK 10 -#define MADV_DOFORK 11 -#define MADV_HWPOISON 100 +#define MLOCK_ONFAULT 0x01 +#define MS_ASYNC 1 +#define MS_INVALIDATE 2 +#define MS_SYNC 4 +#define MADV_NORMAL 0 +#define MADV_RANDOM 1 +#define MADV_SEQUENTIAL 2 +#define MADV_WILLNEED 3 +#define MADV_DONTNEED 4 +#define MADV_FREE 8 +#define MADV_REMOVE 9 +#define MADV_DONTFORK 10 +#define MADV_DOFORK 11 +#define MADV_HWPOISON 100 #define MADV_SOFT_OFFLINE 101 -#define MADV_MERGEABLE 12 +#define MADV_MERGEABLE 12 #define MADV_UNMERGEABLE 13 -#define MADV_HUGEPAGE 14 -#define MADV_NOHUGEPAGE 15 -#define MADV_DONTDUMP 16 -#define MADV_DODUMP 17 +#define MADV_HUGEPAGE 14 +#define MADV_NOHUGEPAGE 15 +#define MADV_DONTDUMP 16 +#define MADV_DODUMP 17 #define MADV_WIPEONFORK 18 #define MADV_KEEPONFORK 19 -#define MADV_COLD 20 -#define MADV_PAGEOUT 21 -#define MAP_FILE 0 -#define PKEY_DISABLE_ACCESS 0x1 -#define PKEY_DISABLE_WRITE 0x2 -#define PKEY_ACCESS_MASK (PKEY_DISABLE_ACCESS |\ - PKEY_DISABLE_WRITE) +#define MADV_COLD 20 +#define MADV_PAGEOUT 21 +#define MAP_FILE 0 +#define PKEY_DISABLE_ACCESS 0x1 +#define PKEY_DISABLE_WRITE 0x2 +#define PKEY_ACCESS_MASK (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE) #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/mman.h b/linux-5.10/prebuilts/usr/include/asm-generic/mman.h index e52d887abd24c1d42fcf43feaffbc8b414d5ebc8..33d43f7e9346fa7f8d60ba3091ef6b95c53b3a17 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/mman.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/mman.h @@ -1,17 +1,30 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_MMAN_H #define __ASM_GENERIC_MMAN_H #include -#define MAP_GROWSDOWN 0x0100 -#define MAP_DENYWRITE 0x0800 -#define MAP_EXECUTABLE 0x1000 -#define MAP_LOCKED 0x2000 -#define MAP_NORESERVE 0x4000 -#define MCL_CURRENT 1 -#define MCL_FUTURE 2 -#define MCL_ONFAULT 4 +#define MAP_GROWSDOWN 0x0100 +#define MAP_DENYWRITE 0x0800 +#define MAP_EXECUTABLE 0x1000 +#define MAP_LOCKED 0x2000 +#define MAP_NORESERVE 0x4000 +#define MCL_CURRENT 1 +#define MCL_FUTURE 2 +#define MCL_ONFAULT 4 #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/msgbuf.h b/linux-5.10/prebuilts/usr/include/asm-generic/msgbuf.h index 56430453f5396d5df06f22519892ea534de4b444..827d05090602599203438e1db5ce8527ef923b5f 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/msgbuf.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/msgbuf.h @@ -1,32 +1,45 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_MSGBUF_H #define __ASM_GENERIC_MSGBUF_H #include #include struct msqid64_ds { - struct ipc64_perm msg_perm; + struct ipc64_perm msg_perm; #if __BITS_PER_LONG == 64 - long msg_stime; - long msg_rtime; - long msg_ctime; + long msg_stime; + long msg_rtime; + long msg_ctime; #else - unsigned long msg_stime; - unsigned long msg_stime_high; - unsigned long msg_rtime; - unsigned long msg_rtime_high; - unsigned long msg_ctime; - unsigned long msg_ctime_high; + unsigned long msg_stime; + unsigned long msg_stime_high; + unsigned long msg_rtime; + unsigned long msg_rtime_high; + unsigned long msg_ctime; + unsigned long msg_ctime_high; #endif - unsigned long msg_cbytes; - unsigned long msg_qnum; - unsigned long msg_qbytes; - __kernel_pid_t msg_lspid; - __kernel_pid_t msg_lrpid; - unsigned long __unused4; - unsigned long __unused5; + unsigned long msg_cbytes; + unsigned long msg_qnum; + unsigned long msg_qbytes; + __kernel_pid_t msg_lspid; + __kernel_pid_t msg_lrpid; + unsigned long __unused4; + unsigned long __unused5; }; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/param.h b/linux-5.10/prebuilts/usr/include/asm-generic/param.h index eef41a7b4c0b18b29ba7a712e9142d8bf33a4bd2..7897799b7fc2bec39dd20b9d9d4f46229070352b 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/param.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/param.h @@ -1,18 +1,31 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI__ASM_GENERIC_PARAM_H #define _UAPI__ASM_GENERIC_PARAM_H #ifndef HZ #define HZ 100 #endif #ifndef EXEC_PAGESIZE -#define EXEC_PAGESIZE 4096 +#define EXEC_PAGESIZE 4096 #endif #ifndef NOGROUP -#define NOGROUP (-1) +#define NOGROUP (- 1) #endif -#define MAXHOSTNAMELEN 64 +#define MAXHOSTNAMELEN 64 #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/poll.h b/linux-5.10/prebuilts/usr/include/asm-generic/poll.h index 345be723de6562361a3475e1f833749080655511..372bc7734237cf6e123ad4fbd7fe386c8d104be6 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/poll.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/poll.h @@ -1,38 +1,51 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_POLL_H #define __ASM_GENERIC_POLL_H -#define POLLIN 0x0001 -#define POLLPRI 0x0002 -#define POLLOUT 0x0004 -#define POLLERR 0x0008 -#define POLLHUP 0x0010 -#define POLLNVAL 0x0020 -#define POLLRDNORM 0x0040 -#define POLLRDBAND 0x0080 +#define POLLIN 0x0001 +#define POLLPRI 0x0002 +#define POLLOUT 0x0004 +#define POLLERR 0x0008 +#define POLLHUP 0x0010 +#define POLLNVAL 0x0020 +#define POLLRDNORM 0x0040 +#define POLLRDBAND 0x0080 #ifndef POLLWRNORM -#define POLLWRNORM 0x0100 +#define POLLWRNORM 0x0100 #endif #ifndef POLLWRBAND -#define POLLWRBAND 0x0200 +#define POLLWRBAND 0x0200 #endif #ifndef POLLMSG -#define POLLMSG 0x0400 +#define POLLMSG 0x0400 #endif #ifndef POLLREMOVE -#define POLLREMOVE 0x1000 +#define POLLREMOVE 0x1000 #endif #ifndef POLLRDHUP -#define POLLRDHUP 0x2000 +#define POLLRDHUP 0x2000 #endif -#define POLLFREE (__force __poll_t)0x4000 -#define POLL_BUSY_LOOP (__force __poll_t)0x8000 +#define POLLFREE (__force __poll_t) 0x4000 +#define POLL_BUSY_LOOP (__force __poll_t) 0x8000 struct pollfd { - int fd; - short events; - short revents; + int fd; + short events; + short revents; }; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/posix_types.h b/linux-5.10/prebuilts/usr/include/asm-generic/posix_types.h index 74b30a63ec2f49c5fa7e0bacef6927d76b478bf9..4045127168cc597c6c2ed853312613a8f57b1a28 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/posix_types.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/posix_types.h @@ -1,75 +1,86 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_POSIX_TYPES_H #define __ASM_GENERIC_POSIX_TYPES_H #include #ifndef __kernel_long_t -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; +typedef long __kernel_long_t; +typedef unsigned long __kernel_ulong_t; #endif #ifndef __kernel_ino_t typedef __kernel_ulong_t __kernel_ino_t; #endif #ifndef __kernel_mode_t -typedef unsigned int __kernel_mode_t; +typedef unsigned int __kernel_mode_t; #endif #ifndef __kernel_pid_t -typedef int __kernel_pid_t; +typedef int __kernel_pid_t; #endif #ifndef __kernel_ipc_pid_t -typedef int __kernel_ipc_pid_t; +typedef int __kernel_ipc_pid_t; #endif #ifndef __kernel_uid_t -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; +typedef unsigned int __kernel_uid_t; +typedef unsigned int __kernel_gid_t; #endif #ifndef __kernel_suseconds_t -typedef __kernel_long_t __kernel_suseconds_t; +typedef __kernel_long_t __kernel_suseconds_t; #endif #ifndef __kernel_daddr_t -typedef int __kernel_daddr_t; +typedef int __kernel_daddr_t; #endif #ifndef __kernel_uid32_t -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; +typedef unsigned int __kernel_uid32_t; +typedef unsigned int __kernel_gid32_t; #endif #ifndef __kernel_old_uid_t -typedef __kernel_uid_t __kernel_old_uid_t; -typedef __kernel_gid_t __kernel_old_gid_t; +typedef __kernel_uid_t __kernel_old_uid_t; +typedef __kernel_gid_t __kernel_old_gid_t; #endif #ifndef __kernel_old_dev_t -typedef unsigned int __kernel_old_dev_t; +typedef unsigned int __kernel_old_dev_t; #endif #ifndef __kernel_size_t #if __BITS_PER_LONG != 64 -typedef unsigned int __kernel_size_t; -typedef int __kernel_ssize_t; -typedef int __kernel_ptrdiff_t; +typedef unsigned int __kernel_size_t; +typedef int __kernel_ssize_t; +typedef int __kernel_ptrdiff_t; #else typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; +typedef __kernel_long_t __kernel_ssize_t; +typedef __kernel_long_t __kernel_ptrdiff_t; #endif #endif #ifndef __kernel_fsid_t typedef struct { - int val[2]; + int val[2]; } __kernel_fsid_t; #endif -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -#ifndef __KERNEL__ -typedef __kernel_long_t __kernel_time_t; -#endif +typedef __kernel_long_t __kernel_off_t; +typedef long long __kernel_loff_t; +typedef __kernel_long_t __kernel_old_time_t; +typedef __kernel_long_t __kernel_time_t; typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char * __kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; +typedef __kernel_long_t __kernel_clock_t; +typedef int __kernel_timer_t; +typedef int __kernel_clockid_t; +typedef char * __kernel_caddr_t; +typedef unsigned short __kernel_uid16_t; +typedef unsigned short __kernel_gid16_t; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/resource.h b/linux-5.10/prebuilts/usr/include/asm-generic/resource.h index c50de8c38e9bd2b6f1e2e1f5db734befb6a69af4..843910b20d17ae0e7afd4e193210db05ecffe6a2 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/resource.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/resource.h @@ -1,38 +1,51 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI_ASM_GENERIC_RESOURCE_H #define _UAPI_ASM_GENERIC_RESOURCE_H -#define RLIMIT_CPU 0 -#define RLIMIT_FSIZE 1 -#define RLIMIT_DATA 2 -#define RLIMIT_STACK 3 -#define RLIMIT_CORE 4 +#define RLIMIT_CPU 0 +#define RLIMIT_FSIZE 1 +#define RLIMIT_DATA 2 +#define RLIMIT_STACK 3 +#define RLIMIT_CORE 4 #ifndef RLIMIT_RSS -# define RLIMIT_RSS 5 +#define RLIMIT_RSS 5 #endif #ifndef RLIMIT_NPROC -# define RLIMIT_NPROC 6 +#define RLIMIT_NPROC 6 #endif #ifndef RLIMIT_NOFILE -# define RLIMIT_NOFILE 7 +#define RLIMIT_NOFILE 7 #endif #ifndef RLIMIT_MEMLOCK -# define RLIMIT_MEMLOCK 8 +#define RLIMIT_MEMLOCK 8 #endif #ifndef RLIMIT_AS -# define RLIMIT_AS 9 +#define RLIMIT_AS 9 #endif -#define RLIMIT_LOCKS 10 -#define RLIMIT_SIGPENDING 11 -#define RLIMIT_MSGQUEUE 12 -#define RLIMIT_NICE 13 -#define RLIMIT_RTPRIO 14 -#define RLIMIT_RTTIME 15 -#define RLIM_NLIMITS 16 +#define RLIMIT_LOCKS 10 +#define RLIMIT_SIGPENDING 11 +#define RLIMIT_MSGQUEUE 12 +#define RLIMIT_NICE 13 +#define RLIMIT_RTPRIO 14 +#define RLIMIT_RTTIME 15 +#define RLIM_NLIMITS 16 #ifndef RLIM_INFINITY -# define RLIM_INFINITY (~0UL) +#define RLIM_INFINITY (~0UL) #endif #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/sembuf.h b/linux-5.10/prebuilts/usr/include/asm-generic/sembuf.h index 2ad4893e17da78b3e025270bf6065ddf538591cd..46306f77cd36a25f79025da2ebfdb065a6088d0e 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/sembuf.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/sembuf.h @@ -1,25 +1,38 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_SEMBUF_H #define __ASM_GENERIC_SEMBUF_H #include #include struct semid64_ds { - struct ipc64_perm sem_perm; + struct ipc64_perm sem_perm; #if __BITS_PER_LONG == 64 - long sem_otime; - long sem_ctime; + long sem_otime; + long sem_ctime; #else - unsigned long sem_otime; - unsigned long sem_otime_high; - unsigned long sem_ctime; - unsigned long sem_ctime_high; + unsigned long sem_otime; + unsigned long sem_otime_high; + unsigned long sem_ctime; + unsigned long sem_ctime_high; #endif - unsigned long sem_nsems; - unsigned long __unused3; - unsigned long __unused4; + unsigned long sem_nsems; + unsigned long __unused3; + unsigned long __unused4; }; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/setup.h b/linux-5.10/prebuilts/usr/include/asm-generic/setup.h index 9a3cf37946f3a3d730259b24c5ad0eb8272841e4..f44a6ddb240f3e54504b6ea0d54a9d57b8cb940b 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/setup.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/setup.h @@ -1,9 +1,22 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_SETUP_H #define __ASM_GENERIC_SETUP_H -#define COMMAND_LINE_SIZE 512 +#define COMMAND_LINE_SIZE 512 #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/shmbuf.h b/linux-5.10/prebuilts/usr/include/asm-generic/shmbuf.h index dd013a89edc585075dd3f1491759e03dc88e949e..067ffbcd8a2755cc8acee39c08ffec6258ddf208 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/shmbuf.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/shmbuf.h @@ -1,41 +1,54 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_SHMBUF_H #define __ASM_GENERIC_SHMBUF_H #include struct shmid64_ds { - struct ipc64_perm shm_perm; - size_t shm_segsz; + struct ipc64_perm shm_perm; + size_t shm_segsz; #if __BITS_PER_LONG == 64 - long shm_atime; - long shm_dtime; - long shm_ctime; + long shm_atime; + long shm_dtime; + long shm_ctime; #else - unsigned long shm_atime; - unsigned long shm_atime_high; - unsigned long shm_dtime; - unsigned long shm_dtime_high; - unsigned long shm_ctime; - unsigned long shm_ctime_high; + unsigned long shm_atime; + unsigned long shm_atime_high; + unsigned long shm_dtime; + unsigned long shm_dtime_high; + unsigned long shm_ctime; + unsigned long shm_ctime_high; #endif - __kernel_pid_t shm_cpid; - __kernel_pid_t shm_lpid; - unsigned long shm_nattch; - unsigned long __unused4; - unsigned long __unused5; + __kernel_pid_t shm_cpid; + __kernel_pid_t shm_lpid; + unsigned long shm_nattch; + unsigned long __unused4; + unsigned long __unused5; }; struct shminfo64 { - unsigned long shmmax; - unsigned long shmmin; - unsigned long shmmni; - unsigned long shmseg; - unsigned long shmall; - unsigned long __unused1; - unsigned long __unused2; - unsigned long __unused3; - unsigned long __unused4; + unsigned long shmmax; + unsigned long shmmin; + unsigned long shmmni; + unsigned long shmseg; + unsigned long shmall; + unsigned long __unused1; + unsigned long __unused2; + unsigned long __unused3; + unsigned long __unused4; }; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/shmparam.h b/linux-5.10/prebuilts/usr/include/asm-generic/shmparam.h deleted file mode 100644 index c98928a870c9adf9abb2467782fdbfe376e870f1..0000000000000000000000000000000000000000 --- a/linux-5.10/prebuilts/usr/include/asm-generic/shmparam.h +++ /dev/null @@ -1,9 +0,0 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ -#ifndef __ASM_GENERIC_SHMPARAM_H -#define __ASM_GENERIC_SHMPARAM_H -#define SHMLBA PAGE_SIZE -#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/siginfo.h b/linux-5.10/prebuilts/usr/include/asm-generic/siginfo.h index 438ee1986199f81996404e6eae2c0baaf7eb0399..16a85c35b8a918926428a4f3e4ca5936cd18bddd 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/siginfo.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/siginfo.h @@ -1,17 +1,30 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI_ASM_GENERIC_SIGINFO_H #define _UAPI_ASM_GENERIC_SIGINFO_H #include #include typedef union sigval { - int sival_int; - void __user *sival_ptr; + int sival_int; + void __user * sival_ptr; } sigval_t; -#define SI_MAX_SIZE 128 +#define SI_MAX_SIZE 128 #ifndef __ARCH_SI_BAND_T #define __ARCH_SI_BAND_T long #endif @@ -22,228 +35,206 @@ typedef union sigval { #define __ARCH_SI_ATTRIBUTES #endif union __sifields { - - struct { - __kernel_pid_t _pid; - __kernel_uid32_t _uid; - } _kill; - - struct { - __kernel_timer_t _tid; - int _overrun; - sigval_t _sigval; - int _sys_private; - } _timer; - - struct { - __kernel_pid_t _pid; - __kernel_uid32_t _uid; - sigval_t _sigval; - } _rt; - - struct { - __kernel_pid_t _pid; - __kernel_uid32_t _uid; - int _status; - __ARCH_SI_CLOCK_T _utime; - __ARCH_SI_CLOCK_T _stime; - } _sigchld; - - struct { - void __user *_addr; + struct { + __kernel_pid_t _pid; + __kernel_uid32_t _uid; + } _kill; + struct { + __kernel_timer_t _tid; + int _overrun; + sigval_t _sigval; + int _sys_private; + } _timer; + struct { + __kernel_pid_t _pid; + __kernel_uid32_t _uid; + sigval_t _sigval; + } _rt; + struct { + __kernel_pid_t _pid; + __kernel_uid32_t _uid; + int _status; + __ARCH_SI_CLOCK_T _utime; + __ARCH_SI_CLOCK_T _stime; + } _sigchld; + struct { + void __user * _addr; #ifdef __ARCH_SI_TRAPNO - int _trapno; + int _trapno; #endif #ifdef __ia64__ - int _imm; - unsigned int _flags; - unsigned long _isr; + int _imm; + unsigned int _flags; + unsigned long _isr; #endif -#define __ADDR_BND_PKEY_PAD (__alignof__(void *) < sizeof(short) ? \ - sizeof(short) : __alignof__(void *)) - union { - - short _addr_lsb; - - struct { - char _dummy_bnd[__ADDR_BND_PKEY_PAD]; - void __user *_lower; - void __user *_upper; - } _addr_bnd; - - struct { - char _dummy_pkey[__ADDR_BND_PKEY_PAD]; - __u32 _pkey; - } _addr_pkey; - }; - } _sigfault; - - struct { - __ARCH_SI_BAND_T _band; - int _fd; - } _sigpoll; - - struct { - void __user *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; +#define __ADDR_BND_PKEY_PAD (__alignof__(void *) < sizeof(short) ? sizeof(short) : __alignof__(void *)) + union { + short _addr_lsb; + struct { + char _dummy_bnd[__ADDR_BND_PKEY_PAD]; + void __user * _lower; + void __user * _upper; + } _addr_bnd; + struct { + char _dummy_pkey[__ADDR_BND_PKEY_PAD]; + __u32 _pkey; + } _addr_pkey; + }; + } _sigfault; + struct { + __ARCH_SI_BAND_T _band; + int _fd; + } _sigpoll; + struct { + void __user * _call_addr; + int _syscall; + unsigned int _arch; + } _sigsys; }; #ifndef __ARCH_HAS_SWAPPED_SIGINFO -#define __SIGINFO \ -struct { \ - int si_signo; \ - int si_errno; \ - int si_code; \ - union __sifields _sifields; \ +#define __SIGINFO struct { int si_signo; int si_errno; int si_code; union __sifields _sifields; \ } #else -#define __SIGINFO \ -struct { \ - int si_signo; \ - int si_code; \ - int si_errno; \ - union __sifields _sifields; \ +#define __SIGINFO struct { int si_signo; int si_code; int si_errno; union __sifields _sifields; \ } #endif typedef struct siginfo { - union { - __SIGINFO; - int _si_pad[SI_MAX_SIZE/sizeof(int)]; - }; + union { + __SIGINFO; + int _si_pad[SI_MAX_SIZE / sizeof(int)]; + }; } __ARCH_SI_ATTRIBUTES siginfo_t; -#define si_pid _sifields._kill._pid -#define si_uid _sifields._kill._uid -#define si_tid _sifields._timer._tid -#define si_overrun _sifields._timer._overrun -#define si_sys_private _sifields._timer._sys_private -#define si_status _sifields._sigchld._status -#define si_utime _sifields._sigchld._utime -#define si_stime _sifields._sigchld._stime -#define si_value _sifields._rt._sigval -#define si_int _sifields._rt._sigval.sival_int -#define si_ptr _sifields._rt._sigval.sival_ptr -#define si_addr _sifields._sigfault._addr +#define si_pid _sifields._kill._pid +#define si_uid _sifields._kill._uid +#define si_tid _sifields._timer._tid +#define si_overrun _sifields._timer._overrun +#define si_sys_private _sifields._timer._sys_private +#define si_status _sifields._sigchld._status +#define si_utime _sifields._sigchld._utime +#define si_stime _sifields._sigchld._stime +#define si_value _sifields._rt._sigval +#define si_int _sifields._rt._sigval.sival_int +#define si_ptr _sifields._rt._sigval.sival_ptr +#define si_addr _sifields._sigfault._addr #ifdef __ARCH_SI_TRAPNO -#define si_trapno _sifields._sigfault._trapno +#define si_trapno _sifields._sigfault._trapno #endif -#define si_addr_lsb _sifields._sigfault._addr_lsb -#define si_lower _sifields._sigfault._addr_bnd._lower -#define si_upper _sifields._sigfault._addr_bnd._upper -#define si_pkey _sifields._sigfault._addr_pkey._pkey -#define si_band _sifields._sigpoll._band -#define si_fd _sifields._sigpoll._fd -#define si_call_addr _sifields._sigsys._call_addr -#define si_syscall _sifields._sigsys._syscall -#define si_arch _sifields._sigsys._arch -#define SI_USER 0 -#define SI_KERNEL 0x80 -#define SI_QUEUE -1 -#define SI_TIMER -2 -#define SI_MESGQ -3 -#define SI_ASYNCIO -4 -#define SI_SIGIO -5 -#define SI_TKILL -6 -#define SI_DETHREAD -7 -#define SI_ASYNCNL -60 -#define SI_FROMUSER(siptr) ((siptr)->si_code <= 0) -#define SI_FROMKERNEL(siptr) ((siptr)->si_code > 0) -#define ILL_ILLOPC 1 -#define ILL_ILLOPN 2 -#define ILL_ILLADR 3 -#define ILL_ILLTRP 4 -#define ILL_PRVOPC 5 -#define ILL_PRVREG 6 -#define ILL_COPROC 7 -#define ILL_BADSTK 8 -#define ILL_BADIADDR 9 -#define __ILL_BREAK 10 -#define __ILL_BNDMOD 11 -#define NSIGILL 11 -#define FPE_INTDIV 1 -#define FPE_INTOVF 2 -#define FPE_FLTDIV 3 -#define FPE_FLTOVF 4 -#define FPE_FLTUND 5 -#define FPE_FLTRES 6 -#define FPE_FLTINV 7 -#define FPE_FLTSUB 8 -#define __FPE_DECOVF 9 -#define __FPE_DECDIV 10 -#define __FPE_DECERR 11 -#define __FPE_INVASC 12 -#define __FPE_INVDEC 13 -#define FPE_FLTUNK 14 -#define FPE_CONDTRAP 15 -#define NSIGFPE 15 -#define SEGV_MAPERR 1 -#define SEGV_ACCERR 2 -#define SEGV_BNDERR 3 +#define si_addr_lsb _sifields._sigfault._addr_lsb +#define si_lower _sifields._sigfault._addr_bnd._lower +#define si_upper _sifields._sigfault._addr_bnd._upper +#define si_pkey _sifields._sigfault._addr_pkey._pkey +#define si_band _sifields._sigpoll._band +#define si_fd _sifields._sigpoll._fd +#define si_call_addr _sifields._sigsys._call_addr +#define si_syscall _sifields._sigsys._syscall +#define si_arch _sifields._sigsys._arch +#define SI_USER 0 +#define SI_KERNEL 0x80 +#define SI_QUEUE - 1 +#define SI_TIMER - 2 +#define SI_MESGQ - 3 +#define SI_ASYNCIO - 4 +#define SI_SIGIO - 5 +#define SI_TKILL - 6 +#define SI_DETHREAD - 7 +#define SI_ASYNCNL - 60 +#define SI_FROMUSER(siptr) ((siptr)->si_code <= 0) +#define SI_FROMKERNEL(siptr) ((siptr)->si_code > 0) +#define ILL_ILLOPC 1 +#define ILL_ILLOPN 2 +#define ILL_ILLADR 3 +#define ILL_ILLTRP 4 +#define ILL_PRVOPC 5 +#define ILL_PRVREG 6 +#define ILL_COPROC 7 +#define ILL_BADSTK 8 +#define ILL_BADIADDR 9 +#define __ILL_BREAK 10 +#define __ILL_BNDMOD 11 +#define NSIGILL 11 +#define FPE_INTDIV 1 +#define FPE_INTOVF 2 +#define FPE_FLTDIV 3 +#define FPE_FLTOVF 4 +#define FPE_FLTUND 5 +#define FPE_FLTRES 6 +#define FPE_FLTINV 7 +#define FPE_FLTSUB 8 +#define __FPE_DECOVF 9 +#define __FPE_DECDIV 10 +#define __FPE_DECERR 11 +#define __FPE_INVASC 12 +#define __FPE_INVDEC 13 +#define FPE_FLTUNK 14 +#define FPE_CONDTRAP 15 +#define NSIGFPE 15 +#define SEGV_MAPERR 1 +#define SEGV_ACCERR 2 +#define SEGV_BNDERR 3 #ifdef __ia64__ -# define __SEGV_PSTKOVF 4 +#define __SEGV_PSTKOVF 4 #else -# define SEGV_PKUERR 4 +#define SEGV_PKUERR 4 #endif -#define SEGV_ACCADI 5 -#define SEGV_ADIDERR 6 -#define SEGV_ADIPERR 7 -#define SEGV_MTEAERR 8 -#define SEGV_MTESERR 9 -#define NSIGSEGV 9 -#define BUS_ADRALN 1 -#define BUS_ADRERR 2 -#define BUS_OBJERR 3 -#define BUS_MCEERR_AR 4 -#define BUS_MCEERR_AO 5 -#define NSIGBUS 5 -#define TRAP_BRKPT 1 -#define TRAP_TRACE 2 -#define TRAP_BRANCH 3 -#define TRAP_HWBKPT 4 -#define TRAP_UNK 5 -#define NSIGTRAP 5 -#define CLD_EXITED 1 -#define CLD_KILLED 2 -#define CLD_DUMPED 3 -#define CLD_TRAPPED 4 -#define CLD_STOPPED 5 -#define CLD_CONTINUED 6 -#define NSIGCHLD 6 -#define POLL_IN 1 -#define POLL_OUT 2 -#define POLL_MSG 3 -#define POLL_ERR 4 -#define POLL_PRI 5 -#define POLL_HUP 6 -#define NSIGPOLL 6 -#define SYS_SECCOMP 1 -#define NSIGSYS 1 -#define EMT_TAGOVF 1 -#define NSIGEMT 1 -#define SIGEV_SIGNAL 0 -#define SIGEV_NONE 1 -#define SIGEV_THREAD 2 +#define SEGV_ACCADI 5 +#define SEGV_ADIDERR 6 +#define SEGV_ADIPERR 7 +#define SEGV_MTEAERR 8 +#define SEGV_MTESERR 9 +#define NSIGSEGV 9 +#define BUS_ADRALN 1 +#define BUS_ADRERR 2 +#define BUS_OBJERR 3 +#define BUS_MCEERR_AR 4 +#define BUS_MCEERR_AO 5 +#define NSIGBUS 5 +#define TRAP_BRKPT 1 +#define TRAP_TRACE 2 +#define TRAP_BRANCH 3 +#define TRAP_HWBKPT 4 +#define TRAP_UNK 5 +#define NSIGTRAP 5 +#define CLD_EXITED 1 +#define CLD_KILLED 2 +#define CLD_DUMPED 3 +#define CLD_TRAPPED 4 +#define CLD_STOPPED 5 +#define CLD_CONTINUED 6 +#define NSIGCHLD 6 +#define POLL_IN 1 +#define POLL_OUT 2 +#define POLL_MSG 3 +#define POLL_ERR 4 +#define POLL_PRI 5 +#define POLL_HUP 6 +#define NSIGPOLL 6 +#define SYS_SECCOMP 1 +#define NSIGSYS 1 +#define EMT_TAGOVF 1 +#define NSIGEMT 1 +#define SIGEV_SIGNAL 0 +#define SIGEV_NONE 1 +#define SIGEV_THREAD 2 #define SIGEV_THREAD_ID 4 #ifndef __ARCH_SIGEV_PREAMBLE_SIZE -#define __ARCH_SIGEV_PREAMBLE_SIZE (sizeof(int) * 2 + sizeof(sigval_t)) +#define __ARCH_SIGEV_PREAMBLE_SIZE (sizeof(int) * 2 + sizeof(sigval_t)) #endif -#define SIGEV_MAX_SIZE 64 -#define SIGEV_PAD_SIZE ((SIGEV_MAX_SIZE - __ARCH_SIGEV_PREAMBLE_SIZE) \ - / sizeof(int)) +#define SIGEV_MAX_SIZE 64 +#define SIGEV_PAD_SIZE ((SIGEV_MAX_SIZE - __ARCH_SIGEV_PREAMBLE_SIZE) / sizeof(int)) typedef struct sigevent { - sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - union { - int _pad[SIGEV_PAD_SIZE]; - int _tid; - struct { - void (*_function)(sigval_t); - void *_attribute; - } _sigev_thread; - } _sigev_un; + sigval_t sigev_value; + int sigev_signo; + int sigev_notify; + union { + int _pad[SIGEV_PAD_SIZE]; + int _tid; + struct { + void(* _function) (sigval_t); + void * _attribute; + } _sigev_thread; + } _sigev_un; } sigevent_t; -#define sigev_notify_function _sigev_un._sigev_thread._function -#define sigev_notify_attributes _sigev_un._sigev_thread._attribute -#define sigev_notify_thread_id _sigev_un._tid +#define sigev_notify_function _sigev_un._sigev_thread._function +#define sigev_notify_attributes _sigev_un._sigev_thread._attribute +#define sigev_notify_thread_id _sigev_un._tid #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/signal-defs.h b/linux-5.10/prebuilts/usr/include/asm-generic/signal-defs.h index 6cde6c0cf93582bd40b9570b3ee3769959dab738..a6de2e4032dcbc43f74320a43a47166761b2f618 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/signal-defs.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/signal-defs.h @@ -1,27 +1,40 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_SIGNAL_DEFS_H #define __ASM_GENERIC_SIGNAL_DEFS_H #include #ifndef SIG_BLOCK -#define SIG_BLOCK 0 +#define SIG_BLOCK 0 #endif #ifndef SIG_UNBLOCK -#define SIG_UNBLOCK 1 +#define SIG_UNBLOCK 1 #endif #ifndef SIG_SETMASK -#define SIG_SETMASK 2 +#define SIG_SETMASK 2 #endif #ifndef __ASSEMBLY__ typedef void __signalfn_t(int); -typedef __signalfn_t __user *__sighandler_t; +typedef __signalfn_t __user * __sighandler_t; typedef void __restorefn_t(void); -typedef __restorefn_t __user *__sigrestore_t; -#define SIG_DFL ((__force __sighandler_t)0) -#define SIG_IGN ((__force __sighandler_t)1) -#define SIG_ERR ((__force __sighandler_t)-1) +typedef __restorefn_t __user * __sigrestore_t; +#define SIG_DFL ((__force __sighandler_t) 0) +#define SIG_IGN ((__force __sighandler_t) 1) +#define SIG_ERR ((__force __sighandler_t) - 1) #endif #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/signal.h b/linux-5.10/prebuilts/usr/include/asm-generic/signal.h index 30d3768737ab2b667e5c1cfba6dbdeffa44d7db3..1210cbc31893baa0fa607b70f6b6c4276accbf41 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/signal.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/signal.h @@ -1,88 +1,99 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI__ASM_GENERIC_SIGNAL_H #define _UAPI__ASM_GENERIC_SIGNAL_H #include -#define _KERNEL__NSIG 64 -#define _NSIG_BPW __BITS_PER_LONG -#define _NSIG_WORDS (_KERNEL__NSIG / _NSIG_BPW) -#define SIGHUP 1 -#define SIGINT 2 -#define SIGQUIT 3 -#define SIGILL 4 -#define SIGTRAP 5 -#define SIGABRT 6 -#define SIGIOT 6 -#define SIGBUS 7 -#define SIGFPE 8 -#define SIGKILL 9 -#define SIGUSR1 10 -#define SIGSEGV 11 -#define SIGUSR2 12 -#define SIGPIPE 13 -#define SIGALRM 14 -#define SIGTERM 15 -#define SIGSTKFLT 16 -#define SIGCHLD 17 -#define SIGCONT 18 -#define SIGSTOP 19 -#define SIGTSTP 20 -#define SIGTTIN 21 -#define SIGTTOU 22 -#define SIGURG 23 -#define SIGXCPU 24 -#define SIGXFSZ 25 -#define SIGVTALRM 26 -#define SIGPROF 27 -#define SIGWINCH 28 -#define SIGIO 29 -#define SIGPOLL SIGIO -#define SIGPWR 30 -#define SIGSYS 31 -#define SIGUNUSED 31 -#define __SIGRTMIN 32 +#define _KERNEL__NSIG 64 +#define _NSIG_BPW __BITS_PER_LONG +#define _NSIG_WORDS (_KERNEL__NSIG / _NSIG_BPW) +#define SIGHUP 1 +#define SIGINT 2 +#define SIGQUIT 3 +#define SIGILL 4 +#define SIGTRAP 5 +#define SIGABRT 6 +#define SIGIOT 6 +#define SIGBUS 7 +#define SIGFPE 8 +#define SIGKILL 9 +#define SIGUSR1 10 +#define SIGSEGV 11 +#define SIGUSR2 12 +#define SIGPIPE 13 +#define SIGALRM 14 +#define SIGTERM 15 +#define SIGSTKFLT 16 +#define SIGCHLD 17 +#define SIGCONT 18 +#define SIGSTOP 19 +#define SIGTSTP 20 +#define SIGTTIN 21 +#define SIGTTOU 22 +#define SIGURG 23 +#define SIGXCPU 24 +#define SIGXFSZ 25 +#define SIGVTALRM 26 +#define SIGPROF 27 +#define SIGWINCH 28 +#define SIGIO 29 +#define SIGPOLL SIGIO +#define SIGPWR 30 +#define SIGSYS 31 +#define SIGUNUSED 31 +#define __SIGRTMIN 32 #ifndef __SIGRTMAX -#define __SIGRTMAX _KERNEL__NSIG +#define __SIGRTMAX _KERNEL__NSIG #endif -#define SA_NOCLDSTOP 0x00000001 -#define SA_NOCLDWAIT 0x00000002 -#define SA_SIGINFO 0x00000004 -#define SA_ONSTACK 0x08000000 -#define SA_RESTART 0x10000000 -#define SA_NODEFER 0x40000000 -#define SA_RESETHAND 0x80000000 -#define SA_NOMASK SA_NODEFER -#define SA_ONESHOT SA_RESETHAND -#if !defined MINSIGSTKSZ || !defined SIGSTKSZ -#define MINSIGSTKSZ 2048 -#define SIGSTKSZ 8192 +#define SA_NOCLDSTOP 0x00000001 +#define SA_NOCLDWAIT 0x00000002 +#define SA_SIGINFO 0x00000004 +#define SA_ONSTACK 0x08000000 +#define SA_RESTART 0x10000000 +#define SA_NODEFER 0x40000000 +#define SA_RESETHAND 0x80000000 +#define SA_NOMASK SA_NODEFER +#define SA_ONESHOT SA_RESETHAND +#if !defined(MINSIGSTKSZ) || !defined(SIGSTKSZ) +#define MINSIGSTKSZ 2048 +#define SIGSTKSZ 8192 #endif #ifndef __ASSEMBLY__ typedef struct { - unsigned long sig[_NSIG_WORDS]; + unsigned long sig[_NSIG_WORDS]; } sigset_t; typedef unsigned long old_sigset_t; #include #ifdef SA_RESTORER #define __ARCH_HAS_SA_RESTORER #endif -#ifndef __KERNEL__ struct sigaction { - __sighandler_t sa_handler; - unsigned long sa_flags; + __sighandler_t sa_handler; + unsigned long sa_flags; #ifdef SA_RESTORER - __sigrestore_t sa_restorer; + __sigrestore_t sa_restorer; #endif - sigset_t sa_mask; + sigset_t sa_mask; }; -#endif typedef struct sigaltstack { - void __user *ss_sp; - int ss_flags; - size_t ss_size; + void __user * ss_sp; + int ss_flags; + size_t ss_size; } stack_t; #endif #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/socket.h b/linux-5.10/prebuilts/usr/include/asm-generic/socket.h index 41abdc3bb3a1eb0cb38a2ecf2b09a94a0f52964d..11557aa91e1bafd5dd91b111cf46088c65d3de70 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/socket.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/socket.h @@ -1,94 +1,106 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_SOCKET_H #define __ASM_GENERIC_SOCKET_H #include #include -#define SOL_SOCKET 1 -#define SO_DEBUG 1 -#define SO_REUSEADDR 2 -#define SO_TYPE 3 -#define SO_ERROR 4 -#define SO_DONTROUTE 5 -#define SO_BROADCAST 6 -#define SO_SNDBUF 7 -#define SO_RCVBUF 8 -#define SO_SNDBUFFORCE 32 -#define SO_RCVBUFFORCE 33 -#define SO_KEEPALIVE 9 -#define SO_OOBINLINE 10 -#define SO_NO_CHECK 11 -#define SO_PRIORITY 12 -#define SO_LINGER 13 -#define SO_BSDCOMPAT 14 -#define SO_REUSEPORT 15 +#define SOL_SOCKET 1 +#define SO_DEBUG 1 +#define SO_REUSEADDR 2 +#define SO_TYPE 3 +#define SO_ERROR 4 +#define SO_DONTROUTE 5 +#define SO_BROADCAST 6 +#define SO_SNDBUF 7 +#define SO_RCVBUF 8 +#define SO_SNDBUFFORCE 32 +#define SO_RCVBUFFORCE 33 +#define SO_KEEPALIVE 9 +#define SO_OOBINLINE 10 +#define SO_NO_CHECK 11 +#define SO_PRIORITY 12 +#define SO_LINGER 13 +#define SO_BSDCOMPAT 14 +#define SO_REUSEPORT 15 #ifndef SO_PASSCRED -#define SO_PASSCRED 16 -#define SO_PEERCRED 17 -#define SO_RCVLOWAT 18 -#define SO_SNDLOWAT 19 -#define SO_RCVTIMEO_OLD 20 -#define SO_SNDTIMEO_OLD 21 +#define SO_PASSCRED 16 +#define SO_PEERCRED 17 +#define SO_RCVLOWAT 18 +#define SO_SNDLOWAT 19 +#define SO_RCVTIMEO_OLD 20 +#define SO_SNDTIMEO_OLD 21 #endif -#define SO_SECURITY_AUTHENTICATION 22 -#define SO_SECURITY_ENCRYPTION_TRANSPORT 23 -#define SO_SECURITY_ENCRYPTION_NETWORK 24 -#define SO_BINDTODEVICE 25 -#define SO_ATTACH_FILTER 26 -#define SO_DETACH_FILTER 27 -#define SO_GET_FILTER SO_ATTACH_FILTER -#define SO_PEERNAME 28 -#define SO_ACCEPTCONN 30 -#define SO_PEERSEC 31 -#define SO_PASSSEC 34 -#define SO_MARK 36 -#define SO_PROTOCOL 38 -#define SO_DOMAIN 39 -#define SO_RXQ_OVFL 40 -#define SO_WIFI_STATUS 41 -#define SCM_WIFI_STATUS SO_WIFI_STATUS -#define SO_PEEK_OFF 42 -#define SO_NOFCS 43 -#define SO_LOCK_FILTER 44 -#define SO_SELECT_ERR_QUEUE 45 -#define SO_BUSY_POLL 46 -#define SO_MAX_PACING_RATE 47 -#define SO_BPF_EXTENSIONS 48 -#define SO_INCOMING_CPU 49 -#define SO_ATTACH_BPF 50 -#define SO_DETACH_BPF SO_DETACH_FILTER -#define SO_ATTACH_REUSEPORT_CBPF 51 -#define SO_ATTACH_REUSEPORT_EBPF 52 -#define SO_CNX_ADVICE 53 -#define SCM_TIMESTAMPING_OPT_STATS 54 -#define SO_MEMINFO 55 -#define SO_INCOMING_NAPI_ID 56 -#define SO_COOKIE 57 -#define SCM_TIMESTAMPING_PKTINFO 58 -#define SO_PEERGROUPS 59 -#define SO_ZEROCOPY 60 -#define SO_TXTIME 61 -#define SCM_TXTIME SO_TXTIME -#define SO_BINDTOIFINDEX 62 -#define SO_TIMESTAMP_OLD 29 -#define SO_TIMESTAMPNS_OLD 35 -#define SO_TIMESTAMPING_OLD 37 -#define SO_TIMESTAMP_NEW 63 -#define SO_TIMESTAMPNS_NEW 64 -#define SO_TIMESTAMPING_NEW 65 -#define SO_RCVTIMEO_NEW 66 -#define SO_SNDTIMEO_NEW 67 +#define SO_SECURITY_AUTHENTICATION 22 +#define SO_SECURITY_ENCRYPTION_TRANSPORT 23 +#define SO_SECURITY_ENCRYPTION_NETWORK 24 +#define SO_BINDTODEVICE 25 +#define SO_ATTACH_FILTER 26 +#define SO_DETACH_FILTER 27 +#define SO_GET_FILTER SO_ATTACH_FILTER +#define SO_PEERNAME 28 +#define SO_ACCEPTCONN 30 +#define SO_PEERSEC 31 +#define SO_PASSSEC 34 +#define SO_MARK 36 +#define SO_PROTOCOL 38 +#define SO_DOMAIN 39 +#define SO_RXQ_OVFL 40 +#define SO_WIFI_STATUS 41 +#define SCM_WIFI_STATUS SO_WIFI_STATUS +#define SO_PEEK_OFF 42 +#define SO_NOFCS 43 +#define SO_LOCK_FILTER 44 +#define SO_SELECT_ERR_QUEUE 45 +#define SO_BUSY_POLL 46 +#define SO_MAX_PACING_RATE 47 +#define SO_BPF_EXTENSIONS 48 +#define SO_INCOMING_CPU 49 +#define SO_ATTACH_BPF 50 +#define SO_DETACH_BPF SO_DETACH_FILTER +#define SO_ATTACH_REUSEPORT_CBPF 51 +#define SO_ATTACH_REUSEPORT_EBPF 52 +#define SO_CNX_ADVICE 53 +#define SCM_TIMESTAMPING_OPT_STATS 54 +#define SO_MEMINFO 55 +#define SO_INCOMING_NAPI_ID 56 +#define SO_COOKIE 57 +#define SCM_TIMESTAMPING_PKTINFO 58 +#define SO_PEERGROUPS 59 +#define SO_ZEROCOPY 60 +#define SO_TXTIME 61 +#define SCM_TXTIME SO_TXTIME +#define SO_BINDTOIFINDEX 62 +#define SO_TIMESTAMP_OLD 29 +#define SO_TIMESTAMPNS_OLD 35 +#define SO_TIMESTAMPING_OLD 37 +#define SO_TIMESTAMP_NEW 63 +#define SO_TIMESTAMPNS_NEW 64 +#define SO_TIMESTAMPING_NEW 65 +#define SO_RCVTIMEO_NEW 66 +#define SO_SNDTIMEO_NEW 67 #define SO_DETACH_REUSEPORT_BPF 68 -#if !defined(__KERNEL__) -#if __BITS_PER_LONG == 64 || (defined(__x86_64__) && defined(__ILP32__)) -#define SO_TIMESTAMP SO_TIMESTAMP_OLD -#define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD -#define SO_TIMESTAMPING SO_TIMESTAMPING_OLD -#define SO_RCVTIMEO SO_RCVTIMEO_OLD -#define SO_SNDTIMEO SO_SNDTIMEO_OLD +#if __BITS_PER_LONG == 64 || defined(__x86_64__) && defined(__ILP32__) +#define SO_TIMESTAMP SO_TIMESTAMP_OLD +#define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD +#define SO_TIMESTAMPING SO_TIMESTAMPING_OLD +#define SO_RCVTIMEO SO_RCVTIMEO_OLD +#define SO_SNDTIMEO SO_SNDTIMEO_OLD #else #define SO_TIMESTAMP (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMP_OLD : SO_TIMESTAMP_NEW) #define SO_TIMESTAMPNS (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMPNS_OLD : SO_TIMESTAMPNS_NEW) @@ -96,8 +108,7 @@ #define SO_RCVTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_RCVTIMEO_OLD : SO_RCVTIMEO_NEW) #define SO_SNDTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_SNDTIMEO_OLD : SO_SNDTIMEO_NEW) #endif -#define SCM_TIMESTAMP SO_TIMESTAMP -#define SCM_TIMESTAMPNS SO_TIMESTAMPNS -#define SCM_TIMESTAMPING SO_TIMESTAMPING -#endif +#define SCM_TIMESTAMP SO_TIMESTAMP +#define SCM_TIMESTAMPNS SO_TIMESTAMPNS +#define SCM_TIMESTAMPING SO_TIMESTAMPING #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/sockios.h b/linux-5.10/prebuilts/usr/include/asm-generic/sockios.h index b0b968a38b8260a747941ca49f6fcaf308dbd89d..afbc6ad356bcddc7b5e5bbf144bb5a3a2db46320 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/sockios.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/sockios.h @@ -1,15 +1,28 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_SOCKIOS_H #define __ASM_GENERIC_SOCKIOS_H -#define FIOSETOWN 0x8901 -#define SIOCSPGRP 0x8902 -#define FIOGETOWN 0x8903 -#define SIOCGPGRP 0x8904 -#define SIOCATMARK 0x8905 -#define SIOCGSTAMP_OLD 0x8906 +#define FIOSETOWN 0x8901 +#define SIOCSPGRP 0x8902 +#define FIOGETOWN 0x8903 +#define SIOCGPGRP 0x8904 +#define SIOCATMARK 0x8905 +#define SIOCGSTAMP_OLD 0x8906 #define SIOCGSTAMPNS_OLD 0x8907 #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/stat.h b/linux-5.10/prebuilts/usr/include/asm-generic/stat.h index f8accc32287cca02b921cc259a0b2bea7efd6bf7..9cc00f2b057402a5f8081f910b1065d561a21dbf 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/stat.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/stat.h @@ -1,56 +1,69 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_STAT_H #define __ASM_GENERIC_STAT_H #include #define STAT_HAVE_NSEC 1 struct stat { - unsigned long st_dev; - unsigned long st_ino; - unsigned int st_mode; - unsigned int st_nlink; - unsigned int st_uid; - unsigned int st_gid; - unsigned long st_rdev; - unsigned long __pad1; - long st_size; - int st_blksize; - int __pad2; - long st_blocks; - long st_atime; - unsigned long st_atime_nsec; - long st_mtime; - unsigned long st_mtime_nsec; - long st_ctime; - unsigned long st_ctime_nsec; - unsigned int __unused4; - unsigned int __unused5; + unsigned long st_dev; + unsigned long st_ino; + unsigned int st_mode; + unsigned int st_nlink; + unsigned int st_uid; + unsigned int st_gid; + unsigned long st_rdev; + unsigned long __pad1; + long st_size; + int st_blksize; + int __pad2; + long st_blocks; + long st_atime; + unsigned long st_atime_nsec; + long st_mtime; + unsigned long st_mtime_nsec; + long st_ctime; + unsigned long st_ctime_nsec; + unsigned int __unused4; + unsigned int __unused5; }; #if __BITS_PER_LONG != 64 || defined(__ARCH_WANT_STAT64) struct stat64 { - unsigned long long st_dev; - unsigned long long st_ino; - unsigned int st_mode; - unsigned int st_nlink; - unsigned int st_uid; - unsigned int st_gid; - unsigned long long st_rdev; - unsigned long long __pad1; - long long st_size; - int st_blksize; - int __pad2; - long long st_blocks; - int st_atime; - unsigned int st_atime_nsec; - int st_mtime; - unsigned int st_mtime_nsec; - int st_ctime; - unsigned int st_ctime_nsec; - unsigned int __unused4; - unsigned int __unused5; + unsigned long long st_dev; + unsigned long long st_ino; + unsigned int st_mode; + unsigned int st_nlink; + unsigned int st_uid; + unsigned int st_gid; + unsigned long long st_rdev; + unsigned long long __pad1; + long long st_size; + int st_blksize; + int __pad2; + long long st_blocks; + int st_atime; + unsigned int st_atime_nsec; + int st_mtime; + unsigned int st_mtime_nsec; + int st_ctime; + unsigned int st_ctime_nsec; + unsigned int __unused4; + unsigned int __unused5; }; #endif #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/statfs.h b/linux-5.10/prebuilts/usr/include/asm-generic/statfs.h index 0a095cdbfac3c9cb5c5884b1f5623d69a735cfb1..7184ce9c540bac13c7bd685a718f613984f91479 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/statfs.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/statfs.h @@ -1,8 +1,21 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI_GENERIC_STATFS_H #define _UAPI_GENERIC_STATFS_H #include @@ -14,51 +27,51 @@ #endif #endif struct statfs { - __statfs_word f_type; - __statfs_word f_bsize; - __statfs_word f_blocks; - __statfs_word f_bfree; - __statfs_word f_bavail; - __statfs_word f_files; - __statfs_word f_ffree; - __kernel_fsid_t f_fsid; - __statfs_word f_namelen; - __statfs_word f_frsize; - __statfs_word f_flags; - __statfs_word f_spare[4]; + __statfs_word f_type; + __statfs_word f_bsize; + __statfs_word f_blocks; + __statfs_word f_bfree; + __statfs_word f_bavail; + __statfs_word f_files; + __statfs_word f_ffree; + __kernel_fsid_t f_fsid; + __statfs_word f_namelen; + __statfs_word f_frsize; + __statfs_word f_flags; + __statfs_word f_spare[4]; }; #ifndef ARCH_PACK_STATFS64 #define ARCH_PACK_STATFS64 #endif struct statfs64 { - __statfs_word f_type; - __statfs_word f_bsize; - __u64 f_blocks; - __u64 f_bfree; - __u64 f_bavail; - __u64 f_files; - __u64 f_ffree; - __kernel_fsid_t f_fsid; - __statfs_word f_namelen; - __statfs_word f_frsize; - __statfs_word f_flags; - __statfs_word f_spare[4]; + __statfs_word f_type; + __statfs_word f_bsize; + __u64 f_blocks; + __u64 f_bfree; + __u64 f_bavail; + __u64 f_files; + __u64 f_ffree; + __kernel_fsid_t f_fsid; + __statfs_word f_namelen; + __statfs_word f_frsize; + __statfs_word f_flags; + __statfs_word f_spare[4]; } ARCH_PACK_STATFS64; #ifndef ARCH_PACK_COMPAT_STATFS64 #define ARCH_PACK_COMPAT_STATFS64 #endif struct compat_statfs64 { - __u32 f_type; - __u32 f_bsize; - __u64 f_blocks; - __u64 f_bfree; - __u64 f_bavail; - __u64 f_files; - __u64 f_ffree; - __kernel_fsid_t f_fsid; - __u32 f_namelen; - __u32 f_frsize; - __u32 f_flags; - __u32 f_spare[4]; + __u32 f_type; + __u32 f_bsize; + __u64 f_blocks; + __u64 f_bfree; + __u64 f_bavail; + __u64 f_files; + __u64 f_ffree; + __kernel_fsid_t f_fsid; + __u32 f_namelen; + __u32 f_frsize; + __u32 f_flags; + __u32 f_spare[4]; } ARCH_PACK_COMPAT_STATFS64; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/swab.h b/linux-5.10/prebuilts/usr/include/asm-generic/swab.h index 69a900482a2f93393e70399f8fc71317c30e4333..b6119db91a92e50bf25916618eab8415347c059e 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/swab.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/swab.h @@ -1,13 +1,26 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _ASM_GENERIC_SWAB_H #define _ASM_GENERIC_SWAB_H #include #if __BITS_PER_LONG == 32 -#if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__) +#if defined(__GNUC__) && !defined(__STRICT_ANSI__) #define __SWAB_64_THRU_32__ #endif #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/termbits.h b/linux-5.10/prebuilts/usr/include/asm-generic/termbits.h index 216c4e52a39431791f0b8dc2059a376da0fbca53..b59296487c57007e9a8e3380a8b18edbb74000eb 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/termbits.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/termbits.h @@ -1,42 +1,55 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_TERMBITS_H #define __ASM_GENERIC_TERMBITS_H #include -typedef unsigned char cc_t; -typedef unsigned int speed_t; -typedef unsigned int tcflag_t; +typedef unsigned char cc_t; +typedef unsigned int speed_t; +typedef unsigned int tcflag_t; #define NCCS 19 struct termios { - tcflag_t c_iflag; - tcflag_t c_oflag; - tcflag_t c_cflag; - tcflag_t c_lflag; - cc_t c_line; - cc_t c_cc[NCCS]; + tcflag_t c_iflag; + tcflag_t c_oflag; + tcflag_t c_cflag; + tcflag_t c_lflag; + cc_t c_line; + cc_t c_cc[NCCS]; }; struct termios2 { - tcflag_t c_iflag; - tcflag_t c_oflag; - tcflag_t c_cflag; - tcflag_t c_lflag; - cc_t c_line; - cc_t c_cc[NCCS]; - speed_t c_ispeed; - speed_t c_ospeed; + tcflag_t c_iflag; + tcflag_t c_oflag; + tcflag_t c_cflag; + tcflag_t c_lflag; + cc_t c_line; + cc_t c_cc[NCCS]; + speed_t c_ispeed; + speed_t c_ospeed; }; struct ktermios { - tcflag_t c_iflag; - tcflag_t c_oflag; - tcflag_t c_cflag; - tcflag_t c_lflag; - cc_t c_line; - cc_t c_cc[NCCS]; - speed_t c_ispeed; - speed_t c_ospeed; + tcflag_t c_iflag; + tcflag_t c_oflag; + tcflag_t c_cflag; + tcflag_t c_lflag; + cc_t c_line; + cc_t c_cc[NCCS]; + speed_t c_ispeed; + speed_t c_ospeed; }; #define VINTR 0 #define VQUIT 1 @@ -55,127 +68,127 @@ struct ktermios { #define VWERASE 14 #define VLNEXT 15 #define VEOL2 16 -#define IGNBRK 0000001 -#define BRKINT 0000002 -#define IGNPAR 0000004 -#define PARMRK 0000010 -#define INPCK 0000020 -#define ISTRIP 0000040 -#define INLCR 0000100 -#define IGNCR 0000200 -#define ICRNL 0000400 -#define IUCLC 0001000 -#define IXON 0002000 -#define IXANY 0004000 -#define IXOFF 0010000 -#define IMAXBEL 0020000 -#define IUTF8 0040000 -#define OPOST 0000001 -#define OLCUC 0000002 -#define ONLCR 0000004 -#define OCRNL 0000010 -#define ONOCR 0000020 -#define ONLRET 0000040 -#define OFILL 0000100 -#define OFDEL 0000200 -#define NLDLY 0000400 -#define NL0 0000000 -#define NL1 0000400 -#define CRDLY 0003000 -#define CR0 0000000 -#define CR1 0001000 -#define CR2 0002000 -#define CR3 0003000 -#define TABDLY 0014000 -#define TAB0 0000000 -#define TAB1 0004000 -#define TAB2 0010000 -#define TAB3 0014000 -#define XTABS 0014000 -#define BSDLY 0020000 -#define BS0 0000000 -#define BS1 0020000 -#define VTDLY 0040000 -#define VT0 0000000 -#define VT1 0040000 -#define FFDLY 0100000 -#define FF0 0000000 -#define FF1 0100000 -#define CBAUD 0010017 -#define B0 0000000 -#define B50 0000001 -#define B75 0000002 -#define B110 0000003 -#define B134 0000004 -#define B150 0000005 -#define B200 0000006 -#define B300 0000007 -#define B600 0000010 -#define B1200 0000011 -#define B1800 0000012 -#define B2400 0000013 -#define B4800 0000014 -#define B9600 0000015 -#define B19200 0000016 -#define B38400 0000017 +#define IGNBRK 0000001 +#define BRKINT 0000002 +#define IGNPAR 0000004 +#define PARMRK 0000010 +#define INPCK 0000020 +#define ISTRIP 0000040 +#define INLCR 0000100 +#define IGNCR 0000200 +#define ICRNL 0000400 +#define IUCLC 0001000 +#define IXON 0002000 +#define IXANY 0004000 +#define IXOFF 0010000 +#define IMAXBEL 0020000 +#define IUTF8 0040000 +#define OPOST 0000001 +#define OLCUC 0000002 +#define ONLCR 0000004 +#define OCRNL 0000010 +#define ONOCR 0000020 +#define ONLRET 0000040 +#define OFILL 0000100 +#define OFDEL 0000200 +#define NLDLY 0000400 +#define NL0 0000000 +#define NL1 0000400 +#define CRDLY 0003000 +#define CR0 0000000 +#define CR1 0001000 +#define CR2 0002000 +#define CR3 0003000 +#define TABDLY 0014000 +#define TAB0 0000000 +#define TAB1 0004000 +#define TAB2 0010000 +#define TAB3 0014000 +#define XTABS 0014000 +#define BSDLY 0020000 +#define BS0 0000000 +#define BS1 0020000 +#define VTDLY 0040000 +#define VT0 0000000 +#define VT1 0040000 +#define FFDLY 0100000 +#define FF0 0000000 +#define FF1 0100000 +#define CBAUD 0010017 +#define B0 0000000 +#define B50 0000001 +#define B75 0000002 +#define B110 0000003 +#define B134 0000004 +#define B150 0000005 +#define B200 0000006 +#define B300 0000007 +#define B600 0000010 +#define B1200 0000011 +#define B1800 0000012 +#define B2400 0000013 +#define B4800 0000014 +#define B9600 0000015 +#define B19200 0000016 +#define B38400 0000017 #define EXTA B19200 #define EXTB B38400 -#define CSIZE 0000060 -#define CS5 0000000 -#define CS6 0000020 -#define CS7 0000040 -#define CS8 0000060 -#define CSTOPB 0000100 -#define CREAD 0000200 -#define PARENB 0000400 -#define PARODD 0001000 -#define HUPCL 0002000 -#define CLOCAL 0004000 +#define CSIZE 0000060 +#define CS5 0000000 +#define CS6 0000020 +#define CS7 0000040 +#define CS8 0000060 +#define CSTOPB 0000100 +#define CREAD 0000200 +#define PARENB 0000400 +#define PARODD 0001000 +#define HUPCL 0002000 +#define CLOCAL 0004000 #define CBAUDEX 0010000 -#define BOTHER 0010000 -#define B57600 0010001 -#define B115200 0010002 -#define B230400 0010003 -#define B460800 0010004 -#define B500000 0010005 -#define B576000 0010006 -#define B921600 0010007 -#define B1000000 0010010 -#define B1152000 0010011 -#define B1500000 0010012 -#define B2000000 0010013 -#define B2500000 0010014 -#define B3000000 0010015 -#define B3500000 0010016 -#define B4000000 0010017 -#define CIBAUD 002003600000 -#define CMSPAR 010000000000 -#define CRTSCTS 020000000000 -#define IBSHIFT 16 -#define ISIG 0000001 -#define ICANON 0000002 -#define XCASE 0000004 -#define ECHO 0000010 -#define ECHOE 0000020 -#define ECHOK 0000040 -#define ECHONL 0000100 -#define NOFLSH 0000200 -#define TOSTOP 0000400 -#define ECHOCTL 0001000 -#define ECHOPRT 0002000 -#define ECHOKE 0004000 -#define FLUSHO 0010000 -#define PENDIN 0040000 -#define IEXTEN 0100000 -#define EXTPROC 0200000 -#define TCOOFF 0 -#define TCOON 1 -#define TCIOFF 2 -#define TCION 3 -#define TCIFLUSH 0 -#define TCOFLUSH 1 -#define TCIOFLUSH 2 -#define TCSANOW 0 -#define TCSADRAIN 1 -#define TCSAFLUSH 2 +#define BOTHER 0010000 +#define B57600 0010001 +#define B115200 0010002 +#define B230400 0010003 +#define B460800 0010004 +#define B500000 0010005 +#define B576000 0010006 +#define B921600 0010007 +#define B1000000 0010010 +#define B1152000 0010011 +#define B1500000 0010012 +#define B2000000 0010013 +#define B2500000 0010014 +#define B3000000 0010015 +#define B3500000 0010016 +#define B4000000 0010017 +#define CIBAUD 002003600000 +#define CMSPAR 010000000000 +#define CRTSCTS 020000000000 +#define IBSHIFT 16 +#define ISIG 0000001 +#define ICANON 0000002 +#define XCASE 0000004 +#define ECHO 0000010 +#define ECHOE 0000020 +#define ECHOK 0000040 +#define ECHONL 0000100 +#define NOFLSH 0000200 +#define TOSTOP 0000400 +#define ECHOCTL 0001000 +#define ECHOPRT 0002000 +#define ECHOKE 0004000 +#define FLUSHO 0010000 +#define PENDIN 0040000 +#define IEXTEN 0100000 +#define EXTPROC 0200000 +#define TCOOFF 0 +#define TCOON 1 +#define TCIOFF 2 +#define TCION 3 +#define TCIFLUSH 0 +#define TCOFLUSH 1 +#define TCIOFLUSH 2 +#define TCSANOW 0 +#define TCSADRAIN 1 +#define TCSAFLUSH 2 #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/termios.h b/linux-5.10/prebuilts/usr/include/asm-generic/termios.h index e98ad8771bbf4cb6fc848d70accb968d478540a8..77b260b67b3fd2622ade33ba1fe8bfd296feccc6 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/termios.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/termios.h @@ -1,39 +1,52 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _UAPI_ASM_GENERIC_TERMIOS_H #define _UAPI_ASM_GENERIC_TERMIOS_H #include #include struct winsize { - unsigned short ws_row; - unsigned short ws_col; - unsigned short ws_xpixel; - unsigned short ws_ypixel; + unsigned short ws_row; + unsigned short ws_col; + unsigned short ws_xpixel; + unsigned short ws_ypixel; }; #define NCC 8 struct termio { - unsigned short c_iflag; - unsigned short c_oflag; - unsigned short c_cflag; - unsigned short c_lflag; - unsigned char c_line; - unsigned char c_cc[NCC]; + unsigned short c_iflag; + unsigned short c_oflag; + unsigned short c_cflag; + unsigned short c_lflag; + unsigned char c_line; + unsigned char c_cc[NCC]; }; -#define TIOCM_LE 0x001 -#define TIOCM_DTR 0x002 -#define TIOCM_RTS 0x004 -#define TIOCM_ST 0x008 -#define TIOCM_SR 0x010 -#define TIOCM_CTS 0x020 -#define TIOCM_CAR 0x040 -#define TIOCM_RNG 0x080 -#define TIOCM_DSR 0x100 -#define TIOCM_CD TIOCM_CAR -#define TIOCM_RI TIOCM_RNG -#define TIOCM_OUT1 0x2000 -#define TIOCM_OUT2 0x4000 -#define TIOCM_LOOP 0x8000 +#define TIOCM_LE 0x001 +#define TIOCM_DTR 0x002 +#define TIOCM_RTS 0x004 +#define TIOCM_ST 0x008 +#define TIOCM_SR 0x010 +#define TIOCM_CTS 0x020 +#define TIOCM_CAR 0x040 +#define TIOCM_RNG 0x080 +#define TIOCM_DSR 0x100 +#define TIOCM_CD TIOCM_CAR +#define TIOCM_RI TIOCM_RNG +#define TIOCM_OUT1 0x2000 +#define TIOCM_OUT2 0x4000 +#define TIOCM_LOOP 0x8000 #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/types.h b/linux-5.10/prebuilts/usr/include/asm-generic/types.h index 3d2f29978dd0f9c3763023802cda0a0b84bc4447..ea6e7df9e5604f75229112a981925826d6f567e1 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/types.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/types.h @@ -1,8 +1,21 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef _ASM_GENERIC_TYPES_H #define _ASM_GENERIC_TYPES_H #include diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/ucontext.h b/linux-5.10/prebuilts/usr/include/asm-generic/ucontext.h index 537a301e869ee82e108453c8507e7e77a697e5b1..17d8f70b70e458a22518fe37afd17784844fc71c 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/ucontext.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/ucontext.h @@ -1,15 +1,28 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #ifndef __ASM_GENERIC_UCONTEXT_H #define __ASM_GENERIC_UCONTEXT_H struct ucontext { - unsigned long uc_flags; - struct ucontext *uc_link; - stack_t uc_stack; - struct sigcontext uc_mcontext; - sigset_t uc_sigmask; + unsigned long uc_flags; + struct ucontext * uc_link; + stack_t uc_stack; + struct sigcontext uc_mcontext; + sigset_t uc_sigmask; }; #endif diff --git a/linux-5.10/prebuilts/usr/include/asm-generic/unistd.h b/linux-5.10/prebuilts/usr/include/asm-generic/unistd.h index 0c45eb3a5c48f4ffd171dda2e023ecc4854c39a3..412e751c726a9ac37ca598c94703f1ce75436a00 100644 --- a/linux-5.10/prebuilts/usr/include/asm-generic/unistd.h +++ b/linux-5.10/prebuilts/usr/include/asm-generic/unistd.h @@ -1,728 +1,406 @@ -/* - * This header was generated from the Linux kernel headers by update_headers.py, - * to provide necessary information from kernel to userspace, such as constants, - * structures, and macros, and thus, contains no copyrightable information. - */ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ #include #ifndef __SYSCALL -#define __SYSCALL(x, y) +#define __SYSCALL(x,y) #endif #if __BITS_PER_LONG == 32 || defined(__SYSCALL_COMPAT) -#define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _32) +#define __SC_3264(_nr,_32,_64) __SYSCALL(_nr, _32) #else -#define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _64) +#define __SC_3264(_nr,_32,_64) __SYSCALL(_nr, _64) #endif #ifdef __SYSCALL_COMPAT -#define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _comp) -#define __SC_COMP_3264(_nr, _32, _64, _comp) __SYSCALL(_nr, _comp) +#define __SC_COMP(_nr,_sys,_comp) __SYSCALL(_nr, _comp) +#define __SC_COMP_3264(_nr,_32,_64,_comp) __SYSCALL(_nr, _comp) #else -#define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys) -#define __SC_COMP_3264(_nr, _32, _64, _comp) __SC_3264(_nr, _32, _64) +#define __SC_COMP(_nr,_sys,_comp) __SYSCALL(_nr, _sys) +#define __SC_COMP_3264(_nr,_32,_64,_comp) __SC_3264(_nr, _32, _64) #endif #define __NR_io_setup 0 -__SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup) #define __NR_io_destroy 1 -__SYSCALL(__NR_io_destroy, sys_io_destroy) #define __NR_io_submit 2 -__SC_COMP(__NR_io_submit, sys_io_submit, compat_sys_io_submit) #define __NR_io_cancel 3 -__SYSCALL(__NR_io_cancel, sys_io_cancel) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_io_getevents 4 -__SC_3264(__NR_io_getevents, sys_io_getevents_time32, sys_io_getevents) #endif #define __NR_setxattr 5 -__SYSCALL(__NR_setxattr, sys_setxattr) #define __NR_lsetxattr 6 -__SYSCALL(__NR_lsetxattr, sys_lsetxattr) #define __NR_fsetxattr 7 -__SYSCALL(__NR_fsetxattr, sys_fsetxattr) #define __NR_getxattr 8 -__SYSCALL(__NR_getxattr, sys_getxattr) #define __NR_lgetxattr 9 -__SYSCALL(__NR_lgetxattr, sys_lgetxattr) #define __NR_fgetxattr 10 -__SYSCALL(__NR_fgetxattr, sys_fgetxattr) #define __NR_listxattr 11 -__SYSCALL(__NR_listxattr, sys_listxattr) #define __NR_llistxattr 12 -__SYSCALL(__NR_llistxattr, sys_llistxattr) #define __NR_flistxattr 13 -__SYSCALL(__NR_flistxattr, sys_flistxattr) #define __NR_removexattr 14 -__SYSCALL(__NR_removexattr, sys_removexattr) #define __NR_lremovexattr 15 -__SYSCALL(__NR_lremovexattr, sys_lremovexattr) #define __NR_fremovexattr 16 -__SYSCALL(__NR_fremovexattr, sys_fremovexattr) #define __NR_getcwd 17 -__SYSCALL(__NR_getcwd, sys_getcwd) #define __NR_lookup_dcookie 18 -__SC_COMP(__NR_lookup_dcookie, sys_lookup_dcookie, compat_sys_lookup_dcookie) #define __NR_eventfd2 19 -__SYSCALL(__NR_eventfd2, sys_eventfd2) #define __NR_epoll_create1 20 -__SYSCALL(__NR_epoll_create1, sys_epoll_create1) #define __NR_epoll_ctl 21 -__SYSCALL(__NR_epoll_ctl, sys_epoll_ctl) #define __NR_epoll_pwait 22 -__SC_COMP(__NR_epoll_pwait, sys_epoll_pwait, compat_sys_epoll_pwait) #define __NR_dup 23 -__SYSCALL(__NR_dup, sys_dup) #define __NR_dup3 24 -__SYSCALL(__NR_dup3, sys_dup3) #define __NR3264_fcntl 25 -__SC_COMP_3264(__NR3264_fcntl, sys_fcntl64, sys_fcntl, compat_sys_fcntl64) #define __NR_inotify_init1 26 -__SYSCALL(__NR_inotify_init1, sys_inotify_init1) #define __NR_inotify_add_watch 27 -__SYSCALL(__NR_inotify_add_watch, sys_inotify_add_watch) #define __NR_inotify_rm_watch 28 -__SYSCALL(__NR_inotify_rm_watch, sys_inotify_rm_watch) #define __NR_ioctl 29 -__SC_COMP(__NR_ioctl, sys_ioctl, compat_sys_ioctl) #define __NR_ioprio_set 30 -__SYSCALL(__NR_ioprio_set, sys_ioprio_set) #define __NR_ioprio_get 31 -__SYSCALL(__NR_ioprio_get, sys_ioprio_get) #define __NR_flock 32 -__SYSCALL(__NR_flock, sys_flock) #define __NR_mknodat 33 -__SYSCALL(__NR_mknodat, sys_mknodat) #define __NR_mkdirat 34 -__SYSCALL(__NR_mkdirat, sys_mkdirat) #define __NR_unlinkat 35 -__SYSCALL(__NR_unlinkat, sys_unlinkat) #define __NR_symlinkat 36 -__SYSCALL(__NR_symlinkat, sys_symlinkat) #define __NR_linkat 37 -__SYSCALL(__NR_linkat, sys_linkat) #ifdef __ARCH_WANT_RENAMEAT #define __NR_renameat 38 -__SYSCALL(__NR_renameat, sys_renameat) #endif #define __NR_umount2 39 -__SYSCALL(__NR_umount2, sys_umount) #define __NR_mount 40 -__SYSCALL(__NR_mount, sys_mount) #define __NR_pivot_root 41 -__SYSCALL(__NR_pivot_root, sys_pivot_root) #define __NR_nfsservctl 42 -__SYSCALL(__NR_nfsservctl, sys_ni_syscall) #define __NR3264_statfs 43 -__SC_COMP_3264(__NR3264_statfs, sys_statfs64, sys_statfs, \ - compat_sys_statfs64) #define __NR3264_fstatfs 44 -__SC_COMP_3264(__NR3264_fstatfs, sys_fstatfs64, sys_fstatfs, \ - compat_sys_fstatfs64) #define __NR3264_truncate 45 -__SC_COMP_3264(__NR3264_truncate, sys_truncate64, sys_truncate, \ - compat_sys_truncate64) #define __NR3264_ftruncate 46 -__SC_COMP_3264(__NR3264_ftruncate, sys_ftruncate64, sys_ftruncate, \ - compat_sys_ftruncate64) #define __NR_fallocate 47 -__SC_COMP(__NR_fallocate, sys_fallocate, compat_sys_fallocate) #define __NR_faccessat 48 -__SYSCALL(__NR_faccessat, sys_faccessat) #define __NR_chdir 49 -__SYSCALL(__NR_chdir, sys_chdir) #define __NR_fchdir 50 -__SYSCALL(__NR_fchdir, sys_fchdir) #define __NR_chroot 51 -__SYSCALL(__NR_chroot, sys_chroot) #define __NR_fchmod 52 -__SYSCALL(__NR_fchmod, sys_fchmod) #define __NR_fchmodat 53 -__SYSCALL(__NR_fchmodat, sys_fchmodat) #define __NR_fchownat 54 -__SYSCALL(__NR_fchownat, sys_fchownat) #define __NR_fchown 55 -__SYSCALL(__NR_fchown, sys_fchown) #define __NR_openat 56 -__SYSCALL(__NR_openat, sys_openat) #define __NR_close 57 -__SYSCALL(__NR_close, sys_close) #define __NR_vhangup 58 -__SYSCALL(__NR_vhangup, sys_vhangup) #define __NR_pipe2 59 -__SYSCALL(__NR_pipe2, sys_pipe2) #define __NR_quotactl 60 -__SYSCALL(__NR_quotactl, sys_quotactl) #define __NR_getdents64 61 -__SYSCALL(__NR_getdents64, sys_getdents64) #define __NR3264_lseek 62 -__SC_3264(__NR3264_lseek, sys_llseek, sys_lseek) #define __NR_read 63 -__SYSCALL(__NR_read, sys_read) #define __NR_write 64 -__SYSCALL(__NR_write, sys_write) #define __NR_readv 65 -__SC_COMP(__NR_readv, sys_readv, sys_readv) #define __NR_writev 66 -__SC_COMP(__NR_writev, sys_writev, sys_writev) #define __NR_pread64 67 -__SC_COMP(__NR_pread64, sys_pread64, compat_sys_pread64) #define __NR_pwrite64 68 -__SC_COMP(__NR_pwrite64, sys_pwrite64, compat_sys_pwrite64) #define __NR_preadv 69 -__SC_COMP(__NR_preadv, sys_preadv, compat_sys_preadv) #define __NR_pwritev 70 -__SC_COMP(__NR_pwritev, sys_pwritev, compat_sys_pwritev) #define __NR3264_sendfile 71 -__SYSCALL(__NR3264_sendfile, sys_sendfile64) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_pselect6 72 -__SC_COMP_3264(__NR_pselect6, sys_pselect6_time32, sys_pselect6, compat_sys_pselect6_time32) #define __NR_ppoll 73 -__SC_COMP_3264(__NR_ppoll, sys_ppoll_time32, sys_ppoll, compat_sys_ppoll_time32) #endif #define __NR_signalfd4 74 -__SC_COMP(__NR_signalfd4, sys_signalfd4, compat_sys_signalfd4) #define __NR_vmsplice 75 -__SYSCALL(__NR_vmsplice, sys_vmsplice) #define __NR_splice 76 -__SYSCALL(__NR_splice, sys_splice) #define __NR_tee 77 -__SYSCALL(__NR_tee, sys_tee) #define __NR_readlinkat 78 -__SYSCALL(__NR_readlinkat, sys_readlinkat) #if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64) #define __NR3264_fstatat 79 -__SC_3264(__NR3264_fstatat, sys_fstatat64, sys_newfstatat) #define __NR3264_fstat 80 -__SC_3264(__NR3264_fstat, sys_fstat64, sys_newfstat) #endif #define __NR_sync 81 -__SYSCALL(__NR_sync, sys_sync) #define __NR_fsync 82 -__SYSCALL(__NR_fsync, sys_fsync) #define __NR_fdatasync 83 -__SYSCALL(__NR_fdatasync, sys_fdatasync) #ifdef __ARCH_WANT_SYNC_FILE_RANGE2 #define __NR_sync_file_range2 84 -__SC_COMP(__NR_sync_file_range2, sys_sync_file_range2, \ - compat_sys_sync_file_range2) #else #define __NR_sync_file_range 84 -__SC_COMP(__NR_sync_file_range, sys_sync_file_range, \ - compat_sys_sync_file_range) #endif #define __NR_timerfd_create 85 -__SYSCALL(__NR_timerfd_create, sys_timerfd_create) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_timerfd_settime 86 -__SC_3264(__NR_timerfd_settime, sys_timerfd_settime32, \ - sys_timerfd_settime) #define __NR_timerfd_gettime 87 -__SC_3264(__NR_timerfd_gettime, sys_timerfd_gettime32, \ - sys_timerfd_gettime) #endif #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_utimensat 88 -__SC_3264(__NR_utimensat, sys_utimensat_time32, sys_utimensat) #endif #define __NR_acct 89 -__SYSCALL(__NR_acct, sys_acct) #define __NR_capget 90 -__SYSCALL(__NR_capget, sys_capget) #define __NR_capset 91 -__SYSCALL(__NR_capset, sys_capset) #define __NR_personality 92 -__SYSCALL(__NR_personality, sys_personality) #define __NR_exit 93 -__SYSCALL(__NR_exit, sys_exit) #define __NR_exit_group 94 -__SYSCALL(__NR_exit_group, sys_exit_group) #define __NR_waitid 95 -__SC_COMP(__NR_waitid, sys_waitid, compat_sys_waitid) #define __NR_set_tid_address 96 -__SYSCALL(__NR_set_tid_address, sys_set_tid_address) #define __NR_unshare 97 -__SYSCALL(__NR_unshare, sys_unshare) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_futex 98 -__SC_3264(__NR_futex, sys_futex_time32, sys_futex) #endif #define __NR_set_robust_list 99 -__SC_COMP(__NR_set_robust_list, sys_set_robust_list, \ - compat_sys_set_robust_list) #define __NR_get_robust_list 100 -__SC_COMP(__NR_get_robust_list, sys_get_robust_list, \ - compat_sys_get_robust_list) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_nanosleep 101 -__SC_3264(__NR_nanosleep, sys_nanosleep_time32, sys_nanosleep) #endif #define __NR_getitimer 102 -__SC_COMP(__NR_getitimer, sys_getitimer, compat_sys_getitimer) #define __NR_setitimer 103 -__SC_COMP(__NR_setitimer, sys_setitimer, compat_sys_setitimer) #define __NR_kexec_load 104 -__SC_COMP(__NR_kexec_load, sys_kexec_load, compat_sys_kexec_load) #define __NR_init_module 105 -__SYSCALL(__NR_init_module, sys_init_module) #define __NR_delete_module 106 -__SYSCALL(__NR_delete_module, sys_delete_module) #define __NR_timer_create 107 -__SC_COMP(__NR_timer_create, sys_timer_create, compat_sys_timer_create) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_timer_gettime 108 -__SC_3264(__NR_timer_gettime, sys_timer_gettime32, sys_timer_gettime) #endif #define __NR_timer_getoverrun 109 -__SYSCALL(__NR_timer_getoverrun, sys_timer_getoverrun) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_timer_settime 110 -__SC_3264(__NR_timer_settime, sys_timer_settime32, sys_timer_settime) #endif #define __NR_timer_delete 111 -__SYSCALL(__NR_timer_delete, sys_timer_delete) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_clock_settime 112 -__SC_3264(__NR_clock_settime, sys_clock_settime32, sys_clock_settime) #define __NR_clock_gettime 113 -__SC_3264(__NR_clock_gettime, sys_clock_gettime32, sys_clock_gettime) #define __NR_clock_getres 114 -__SC_3264(__NR_clock_getres, sys_clock_getres_time32, sys_clock_getres) #define __NR_clock_nanosleep 115 -__SC_3264(__NR_clock_nanosleep, sys_clock_nanosleep_time32, \ - sys_clock_nanosleep) #endif #define __NR_syslog 116 -__SYSCALL(__NR_syslog, sys_syslog) #define __NR_ptrace 117 -__SYSCALL(__NR_ptrace, sys_ptrace) #define __NR_sched_setparam 118 -__SYSCALL(__NR_sched_setparam, sys_sched_setparam) #define __NR_sched_setscheduler 119 -__SYSCALL(__NR_sched_setscheduler, sys_sched_setscheduler) #define __NR_sched_getscheduler 120 -__SYSCALL(__NR_sched_getscheduler, sys_sched_getscheduler) #define __NR_sched_getparam 121 -__SYSCALL(__NR_sched_getparam, sys_sched_getparam) #define __NR_sched_setaffinity 122 -__SC_COMP(__NR_sched_setaffinity, sys_sched_setaffinity, \ - compat_sys_sched_setaffinity) #define __NR_sched_getaffinity 123 -__SC_COMP(__NR_sched_getaffinity, sys_sched_getaffinity, \ - compat_sys_sched_getaffinity) #define __NR_sched_yield 124 -__SYSCALL(__NR_sched_yield, sys_sched_yield) #define __NR_sched_get_priority_max 125 -__SYSCALL(__NR_sched_get_priority_max, sys_sched_get_priority_max) #define __NR_sched_get_priority_min 126 -__SYSCALL(__NR_sched_get_priority_min, sys_sched_get_priority_min) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_sched_rr_get_interval 127 -__SC_3264(__NR_sched_rr_get_interval, sys_sched_rr_get_interval_time32, \ - sys_sched_rr_get_interval) #endif #define __NR_restart_syscall 128 -__SYSCALL(__NR_restart_syscall, sys_restart_syscall) #define __NR_kill 129 -__SYSCALL(__NR_kill, sys_kill) #define __NR_tkill 130 -__SYSCALL(__NR_tkill, sys_tkill) #define __NR_tgkill 131 -__SYSCALL(__NR_tgkill, sys_tgkill) #define __NR_sigaltstack 132 -__SC_COMP(__NR_sigaltstack, sys_sigaltstack, compat_sys_sigaltstack) #define __NR_rt_sigsuspend 133 -__SC_COMP(__NR_rt_sigsuspend, sys_rt_sigsuspend, compat_sys_rt_sigsuspend) #define __NR_rt_sigaction 134 -__SC_COMP(__NR_rt_sigaction, sys_rt_sigaction, compat_sys_rt_sigaction) #define __NR_rt_sigprocmask 135 -__SC_COMP(__NR_rt_sigprocmask, sys_rt_sigprocmask, compat_sys_rt_sigprocmask) #define __NR_rt_sigpending 136 -__SC_COMP(__NR_rt_sigpending, sys_rt_sigpending, compat_sys_rt_sigpending) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_rt_sigtimedwait 137 -__SC_COMP_3264(__NR_rt_sigtimedwait, sys_rt_sigtimedwait_time32, \ - sys_rt_sigtimedwait, compat_sys_rt_sigtimedwait_time32) #endif #define __NR_rt_sigqueueinfo 138 -__SC_COMP(__NR_rt_sigqueueinfo, sys_rt_sigqueueinfo, \ - compat_sys_rt_sigqueueinfo) #define __NR_rt_sigreturn 139 -__SC_COMP(__NR_rt_sigreturn, sys_rt_sigreturn, compat_sys_rt_sigreturn) #define __NR_setpriority 140 -__SYSCALL(__NR_setpriority, sys_setpriority) #define __NR_getpriority 141 -__SYSCALL(__NR_getpriority, sys_getpriority) #define __NR_reboot 142 -__SYSCALL(__NR_reboot, sys_reboot) #define __NR_setregid 143 -__SYSCALL(__NR_setregid, sys_setregid) #define __NR_setgid 144 -__SYSCALL(__NR_setgid, sys_setgid) #define __NR_setreuid 145 -__SYSCALL(__NR_setreuid, sys_setreuid) #define __NR_setuid 146 -__SYSCALL(__NR_setuid, sys_setuid) #define __NR_setresuid 147 -__SYSCALL(__NR_setresuid, sys_setresuid) #define __NR_getresuid 148 -__SYSCALL(__NR_getresuid, sys_getresuid) #define __NR_setresgid 149 -__SYSCALL(__NR_setresgid, sys_setresgid) #define __NR_getresgid 150 -__SYSCALL(__NR_getresgid, sys_getresgid) #define __NR_setfsuid 151 -__SYSCALL(__NR_setfsuid, sys_setfsuid) #define __NR_setfsgid 152 -__SYSCALL(__NR_setfsgid, sys_setfsgid) #define __NR_times 153 -__SC_COMP(__NR_times, sys_times, compat_sys_times) #define __NR_setpgid 154 -__SYSCALL(__NR_setpgid, sys_setpgid) #define __NR_getpgid 155 -__SYSCALL(__NR_getpgid, sys_getpgid) #define __NR_getsid 156 -__SYSCALL(__NR_getsid, sys_getsid) #define __NR_setsid 157 -__SYSCALL(__NR_setsid, sys_setsid) #define __NR_getgroups 158 -__SYSCALL(__NR_getgroups, sys_getgroups) #define __NR_setgroups 159 -__SYSCALL(__NR_setgroups, sys_setgroups) #define __NR_uname 160 -__SYSCALL(__NR_uname, sys_newuname) #define __NR_sethostname 161 -__SYSCALL(__NR_sethostname, sys_sethostname) #define __NR_setdomainname 162 -__SYSCALL(__NR_setdomainname, sys_setdomainname) #ifdef __ARCH_WANT_SET_GET_RLIMIT #define __NR_getrlimit 163 -__SC_COMP(__NR_getrlimit, sys_getrlimit, compat_sys_getrlimit) #define __NR_setrlimit 164 -__SC_COMP(__NR_setrlimit, sys_setrlimit, compat_sys_setrlimit) #endif #define __NR_getrusage 165 -__SC_COMP(__NR_getrusage, sys_getrusage, compat_sys_getrusage) #define __NR_umask 166 -__SYSCALL(__NR_umask, sys_umask) #define __NR_prctl 167 -__SYSCALL(__NR_prctl, sys_prctl) #define __NR_getcpu 168 -__SYSCALL(__NR_getcpu, sys_getcpu) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_gettimeofday 169 -__SC_COMP(__NR_gettimeofday, sys_gettimeofday, compat_sys_gettimeofday) #define __NR_settimeofday 170 -__SC_COMP(__NR_settimeofday, sys_settimeofday, compat_sys_settimeofday) #define __NR_adjtimex 171 -__SC_3264(__NR_adjtimex, sys_adjtimex_time32, sys_adjtimex) #endif #define __NR_getpid 172 -__SYSCALL(__NR_getpid, sys_getpid) #define __NR_getppid 173 -__SYSCALL(__NR_getppid, sys_getppid) #define __NR_getuid 174 -__SYSCALL(__NR_getuid, sys_getuid) #define __NR_geteuid 175 -__SYSCALL(__NR_geteuid, sys_geteuid) #define __NR_getgid 176 -__SYSCALL(__NR_getgid, sys_getgid) #define __NR_getegid 177 -__SYSCALL(__NR_getegid, sys_getegid) #define __NR_gettid 178 -__SYSCALL(__NR_gettid, sys_gettid) #define __NR_sysinfo 179 -__SC_COMP(__NR_sysinfo, sys_sysinfo, compat_sys_sysinfo) #define __NR_mq_open 180 -__SC_COMP(__NR_mq_open, sys_mq_open, compat_sys_mq_open) #define __NR_mq_unlink 181 -__SYSCALL(__NR_mq_unlink, sys_mq_unlink) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_mq_timedsend 182 -__SC_3264(__NR_mq_timedsend, sys_mq_timedsend_time32, sys_mq_timedsend) #define __NR_mq_timedreceive 183 -__SC_3264(__NR_mq_timedreceive, sys_mq_timedreceive_time32, \ - sys_mq_timedreceive) #endif #define __NR_mq_notify 184 -__SC_COMP(__NR_mq_notify, sys_mq_notify, compat_sys_mq_notify) #define __NR_mq_getsetattr 185 -__SC_COMP(__NR_mq_getsetattr, sys_mq_getsetattr, compat_sys_mq_getsetattr) #define __NR_msgget 186 -__SYSCALL(__NR_msgget, sys_msgget) #define __NR_msgctl 187 -__SC_COMP(__NR_msgctl, sys_msgctl, compat_sys_msgctl) #define __NR_msgrcv 188 -__SC_COMP(__NR_msgrcv, sys_msgrcv, compat_sys_msgrcv) #define __NR_msgsnd 189 -__SC_COMP(__NR_msgsnd, sys_msgsnd, compat_sys_msgsnd) #define __NR_semget 190 -__SYSCALL(__NR_semget, sys_semget) #define __NR_semctl 191 -__SC_COMP(__NR_semctl, sys_semctl, compat_sys_semctl) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_semtimedop 192 -__SC_3264(__NR_semtimedop, sys_semtimedop_time32, sys_semtimedop) #endif #define __NR_semop 193 -__SYSCALL(__NR_semop, sys_semop) #define __NR_shmget 194 -__SYSCALL(__NR_shmget, sys_shmget) #define __NR_shmctl 195 -__SC_COMP(__NR_shmctl, sys_shmctl, compat_sys_shmctl) #define __NR_shmat 196 -__SC_COMP(__NR_shmat, sys_shmat, compat_sys_shmat) #define __NR_shmdt 197 -__SYSCALL(__NR_shmdt, sys_shmdt) #define __NR_socket 198 -__SYSCALL(__NR_socket, sys_socket) #define __NR_socketpair 199 -__SYSCALL(__NR_socketpair, sys_socketpair) #define __NR_bind 200 -__SYSCALL(__NR_bind, sys_bind) #define __NR_listen 201 -__SYSCALL(__NR_listen, sys_listen) #define __NR_accept 202 -__SYSCALL(__NR_accept, sys_accept) #define __NR_connect 203 -__SYSCALL(__NR_connect, sys_connect) #define __NR_getsockname 204 -__SYSCALL(__NR_getsockname, sys_getsockname) #define __NR_getpeername 205 -__SYSCALL(__NR_getpeername, sys_getpeername) #define __NR_sendto 206 -__SYSCALL(__NR_sendto, sys_sendto) #define __NR_recvfrom 207 -__SC_COMP(__NR_recvfrom, sys_recvfrom, compat_sys_recvfrom) #define __NR_setsockopt 208 -__SC_COMP(__NR_setsockopt, sys_setsockopt, sys_setsockopt) #define __NR_getsockopt 209 -__SC_COMP(__NR_getsockopt, sys_getsockopt, sys_getsockopt) #define __NR_shutdown 210 -__SYSCALL(__NR_shutdown, sys_shutdown) #define __NR_sendmsg 211 -__SC_COMP(__NR_sendmsg, sys_sendmsg, compat_sys_sendmsg) #define __NR_recvmsg 212 -__SC_COMP(__NR_recvmsg, sys_recvmsg, compat_sys_recvmsg) #define __NR_readahead 213 -__SC_COMP(__NR_readahead, sys_readahead, compat_sys_readahead) #define __NR_brk 214 -__SYSCALL(__NR_brk, sys_brk) #define __NR_munmap 215 -__SYSCALL(__NR_munmap, sys_munmap) #define __NR_mremap 216 -__SYSCALL(__NR_mremap, sys_mremap) #define __NR_add_key 217 -__SYSCALL(__NR_add_key, sys_add_key) #define __NR_request_key 218 -__SYSCALL(__NR_request_key, sys_request_key) #define __NR_keyctl 219 -__SC_COMP(__NR_keyctl, sys_keyctl, compat_sys_keyctl) #define __NR_clone 220 -__SYSCALL(__NR_clone, sys_clone) #define __NR_execve 221 -__SC_COMP(__NR_execve, sys_execve, compat_sys_execve) #define __NR3264_mmap 222 -__SC_3264(__NR3264_mmap, sys_mmap2, sys_mmap) #define __NR3264_fadvise64 223 -__SC_COMP(__NR3264_fadvise64, sys_fadvise64_64, compat_sys_fadvise64_64) #ifndef __ARCH_NOMMU #define __NR_swapon 224 -__SYSCALL(__NR_swapon, sys_swapon) #define __NR_swapoff 225 -__SYSCALL(__NR_swapoff, sys_swapoff) #define __NR_mprotect 226 -__SYSCALL(__NR_mprotect, sys_mprotect) #define __NR_msync 227 -__SYSCALL(__NR_msync, sys_msync) #define __NR_mlock 228 -__SYSCALL(__NR_mlock, sys_mlock) #define __NR_munlock 229 -__SYSCALL(__NR_munlock, sys_munlock) #define __NR_mlockall 230 -__SYSCALL(__NR_mlockall, sys_mlockall) #define __NR_munlockall 231 -__SYSCALL(__NR_munlockall, sys_munlockall) #define __NR_mincore 232 -__SYSCALL(__NR_mincore, sys_mincore) #define __NR_madvise 233 -__SYSCALL(__NR_madvise, sys_madvise) #define __NR_remap_file_pages 234 -__SYSCALL(__NR_remap_file_pages, sys_remap_file_pages) #define __NR_mbind 235 -__SC_COMP(__NR_mbind, sys_mbind, compat_sys_mbind) #define __NR_get_mempolicy 236 -__SC_COMP(__NR_get_mempolicy, sys_get_mempolicy, compat_sys_get_mempolicy) #define __NR_set_mempolicy 237 -__SC_COMP(__NR_set_mempolicy, sys_set_mempolicy, compat_sys_set_mempolicy) #define __NR_migrate_pages 238 -__SC_COMP(__NR_migrate_pages, sys_migrate_pages, compat_sys_migrate_pages) #define __NR_move_pages 239 -__SC_COMP(__NR_move_pages, sys_move_pages, compat_sys_move_pages) #endif #define __NR_rt_tgsigqueueinfo 240 -__SC_COMP(__NR_rt_tgsigqueueinfo, sys_rt_tgsigqueueinfo, \ - compat_sys_rt_tgsigqueueinfo) #define __NR_perf_event_open 241 -__SYSCALL(__NR_perf_event_open, sys_perf_event_open) #define __NR_accept4 242 -__SYSCALL(__NR_accept4, sys_accept4) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_recvmmsg 243 -__SC_COMP_3264(__NR_recvmmsg, sys_recvmmsg_time32, sys_recvmmsg, compat_sys_recvmmsg_time32) #endif #define __NR_arch_specific_syscall 244 #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_wait4 260 -__SC_COMP(__NR_wait4, sys_wait4, compat_sys_wait4) #endif #define __NR_prlimit64 261 -__SYSCALL(__NR_prlimit64, sys_prlimit64) #define __NR_fanotify_init 262 -__SYSCALL(__NR_fanotify_init, sys_fanotify_init) #define __NR_fanotify_mark 263 -__SYSCALL(__NR_fanotify_mark, sys_fanotify_mark) -#define __NR_name_to_handle_at 264 -__SYSCALL(__NR_name_to_handle_at, sys_name_to_handle_at) -#define __NR_open_by_handle_at 265 -__SYSCALL(__NR_open_by_handle_at, sys_open_by_handle_at) +#define __NR_name_to_handle_at 264 +#define __NR_open_by_handle_at 265 #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_clock_adjtime 266 -__SC_3264(__NR_clock_adjtime, sys_clock_adjtime32, sys_clock_adjtime) #endif #define __NR_syncfs 267 -__SYSCALL(__NR_syncfs, sys_syncfs) #define __NR_setns 268 -__SYSCALL(__NR_setns, sys_setns) #define __NR_sendmmsg 269 -__SC_COMP(__NR_sendmmsg, sys_sendmmsg, compat_sys_sendmmsg) #define __NR_process_vm_readv 270 -__SYSCALL(__NR_process_vm_readv, sys_process_vm_readv) #define __NR_process_vm_writev 271 -__SYSCALL(__NR_process_vm_writev, sys_process_vm_writev) #define __NR_kcmp 272 -__SYSCALL(__NR_kcmp, sys_kcmp) #define __NR_finit_module 273 -__SYSCALL(__NR_finit_module, sys_finit_module) #define __NR_sched_setattr 274 -__SYSCALL(__NR_sched_setattr, sys_sched_setattr) #define __NR_sched_getattr 275 -__SYSCALL(__NR_sched_getattr, sys_sched_getattr) #define __NR_renameat2 276 -__SYSCALL(__NR_renameat2, sys_renameat2) #define __NR_seccomp 277 -__SYSCALL(__NR_seccomp, sys_seccomp) #define __NR_getrandom 278 -__SYSCALL(__NR_getrandom, sys_getrandom) #define __NR_memfd_create 279 -__SYSCALL(__NR_memfd_create, sys_memfd_create) #define __NR_bpf 280 -__SYSCALL(__NR_bpf, sys_bpf) #define __NR_execveat 281 -__SC_COMP(__NR_execveat, sys_execveat, compat_sys_execveat) #define __NR_userfaultfd 282 -__SYSCALL(__NR_userfaultfd, sys_userfaultfd) #define __NR_membarrier 283 -__SYSCALL(__NR_membarrier, sys_membarrier) #define __NR_mlock2 284 -__SYSCALL(__NR_mlock2, sys_mlock2) #define __NR_copy_file_range 285 -__SYSCALL(__NR_copy_file_range, sys_copy_file_range) #define __NR_preadv2 286 -__SC_COMP(__NR_preadv2, sys_preadv2, compat_sys_preadv2) #define __NR_pwritev2 287 -__SC_COMP(__NR_pwritev2, sys_pwritev2, compat_sys_pwritev2) #define __NR_pkey_mprotect 288 -__SYSCALL(__NR_pkey_mprotect, sys_pkey_mprotect) #define __NR_pkey_alloc 289 -__SYSCALL(__NR_pkey_alloc, sys_pkey_alloc) #define __NR_pkey_free 290 -__SYSCALL(__NR_pkey_free, sys_pkey_free) #define __NR_statx 291 -__SYSCALL(__NR_statx, sys_statx) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_io_pgetevents 292 -__SC_COMP_3264(__NR_io_pgetevents, sys_io_pgetevents_time32, sys_io_pgetevents, compat_sys_io_pgetevents) #endif #define __NR_rseq 293 -__SYSCALL(__NR_rseq, sys_rseq) #define __NR_kexec_file_load 294 -__SYSCALL(__NR_kexec_file_load, sys_kexec_file_load) #if __BITS_PER_LONG == 32 #define __NR_clock_gettime64 403 -__SYSCALL(__NR_clock_gettime64, sys_clock_gettime) #define __NR_clock_settime64 404 -__SYSCALL(__NR_clock_settime64, sys_clock_settime) #define __NR_clock_adjtime64 405 -__SYSCALL(__NR_clock_adjtime64, sys_clock_adjtime) #define __NR_clock_getres_time64 406 -__SYSCALL(__NR_clock_getres_time64, sys_clock_getres) #define __NR_clock_nanosleep_time64 407 -__SYSCALL(__NR_clock_nanosleep_time64, sys_clock_nanosleep) #define __NR_timer_gettime64 408 -__SYSCALL(__NR_timer_gettime64, sys_timer_gettime) #define __NR_timer_settime64 409 -__SYSCALL(__NR_timer_settime64, sys_timer_settime) #define __NR_timerfd_gettime64 410 -__SYSCALL(__NR_timerfd_gettime64, sys_timerfd_gettime) #define __NR_timerfd_settime64 411 -__SYSCALL(__NR_timerfd_settime64, sys_timerfd_settime) #define __NR_utimensat_time64 412 -__SYSCALL(__NR_utimensat_time64, sys_utimensat) #define __NR_pselect6_time64 413 -__SC_COMP(__NR_pselect6_time64, sys_pselect6, compat_sys_pselect6_time64) #define __NR_ppoll_time64 414 -__SC_COMP(__NR_ppoll_time64, sys_ppoll, compat_sys_ppoll_time64) #define __NR_io_pgetevents_time64 416 -__SYSCALL(__NR_io_pgetevents_time64, sys_io_pgetevents) #define __NR_recvmmsg_time64 417 -__SC_COMP(__NR_recvmmsg_time64, sys_recvmmsg, compat_sys_recvmmsg_time64) #define __NR_mq_timedsend_time64 418 -__SYSCALL(__NR_mq_timedsend_time64, sys_mq_timedsend) #define __NR_mq_timedreceive_time64 419 -__SYSCALL(__NR_mq_timedreceive_time64, sys_mq_timedreceive) #define __NR_semtimedop_time64 420 -__SYSCALL(__NR_semtimedop_time64, sys_semtimedop) #define __NR_rt_sigtimedwait_time64 421 -__SC_COMP(__NR_rt_sigtimedwait_time64, sys_rt_sigtimedwait, compat_sys_rt_sigtimedwait_time64) #define __NR_futex_time64 422 -__SYSCALL(__NR_futex_time64, sys_futex) #define __NR_sched_rr_get_interval_time64 423 -__SYSCALL(__NR_sched_rr_get_interval_time64, sys_sched_rr_get_interval) #endif #define __NR_pidfd_send_signal 424 -__SYSCALL(__NR_pidfd_send_signal, sys_pidfd_send_signal) #define __NR_io_uring_setup 425 -__SYSCALL(__NR_io_uring_setup, sys_io_uring_setup) #define __NR_io_uring_enter 426 -__SYSCALL(__NR_io_uring_enter, sys_io_uring_enter) #define __NR_io_uring_register 427 -__SYSCALL(__NR_io_uring_register, sys_io_uring_register) #define __NR_open_tree 428 -__SYSCALL(__NR_open_tree, sys_open_tree) #define __NR_move_mount 429 -__SYSCALL(__NR_move_mount, sys_move_mount) #define __NR_fsopen 430 -__SYSCALL(__NR_fsopen, sys_fsopen) #define __NR_fsconfig 431 -__SYSCALL(__NR_fsconfig, sys_fsconfig) #define __NR_fsmount 432 -__SYSCALL(__NR_fsmount, sys_fsmount) #define __NR_fspick 433 -__SYSCALL(__NR_fspick, sys_fspick) #define __NR_pidfd_open 434 -__SYSCALL(__NR_pidfd_open, sys_pidfd_open) #ifdef __ARCH_WANT_SYS_CLONE3 #define __NR_clone3 435 -__SYSCALL(__NR_clone3, sys_clone3) #endif #define __NR_close_range 436 -__SYSCALL(__NR_close_range, sys_close_range) #define __NR_openat2 437 -__SYSCALL(__NR_openat2, sys_openat2) #define __NR_pidfd_getfd 438 -__SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd) #define __NR_faccessat2 439 -__SYSCALL(__NR_faccessat2, sys_faccessat2) #define __NR_process_madvise 440 -__SYSCALL(__NR_process_madvise, sys_process_madvise) #undef __NR_syscalls #define __NR_syscalls 441 #if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT) diff --git a/linux-5.10/prebuilts/usr/include/asm-x86/asm/a.out.h b/linux-5.10/prebuilts/usr/include/asm-x86/asm/a.out.h new file mode 100644 index 0000000000000000000000000000000000000000..3a1b8457e19b513f95698976ee893786df6eecc3 --- /dev/null +++ b/linux-5.10/prebuilts/usr/include/asm-x86/asm/a.out.h @@ -0,0 +1,34 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _ASM_X86_A_OUT_H +#define _ASM_X86_A_OUT_H +struct exec { + unsigned int a_info; + unsigned a_text; + unsigned a_data; + unsigned a_bss; + unsigned a_syms; + unsigned a_entry; + unsigned a_trsize; + unsigned a_drsize; +}; +#define N_TRSIZE(a) ((a).a_trsize) +#define N_DRSIZE(a) ((a).a_drsize) +#define N_SYMSIZE(a) ((a).a_syms) +#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-x86/asm/auxvec.h b/linux-5.10/prebuilts/usr/include/asm-x86/asm/auxvec.h new file mode 100644 index 0000000000000000000000000000000000000000..4fd53f07b54367cc2aa2fad886f1b70c542167b7 --- /dev/null +++ b/linux-5.10/prebuilts/usr/include/asm-x86/asm/auxvec.h @@ -0,0 +1,26 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _ASM_X86_AUXVEC_H +#define _ASM_X86_AUXVEC_H +#ifdef __i386__ +#define AT_SYSINFO 32 +#endif +#define AT_SYSINFO_EHDR 33 +#define AT_VECTOR_SIZE_ARCH 2 +#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-x86/asm/bitsperlong.h b/linux-5.10/prebuilts/usr/include/asm-x86/asm/bitsperlong.h new file mode 100644 index 0000000000000000000000000000000000000000..7eca377b6a64c934f7da3b5accbf323d0c2d8dec --- /dev/null +++ b/linux-5.10/prebuilts/usr/include/asm-x86/asm/bitsperlong.h @@ -0,0 +1,27 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef __ASM_X86_BITSPERLONG_H +#define __ASM_X86_BITSPERLONG_H +#if defined(__x86_64__) && !defined(__ILP32__) +#define __BITS_PER_LONG 64 +#else +#define __BITS_PER_LONG 32 +#endif +#include +#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-x86/asm/boot.h b/linux-5.10/prebuilts/usr/include/asm-x86/asm/boot.h new file mode 100644 index 0000000000000000000000000000000000000000..7cbb69165a8e10af79890483608465ec7a7a96b6 --- /dev/null +++ b/linux-5.10/prebuilts/usr/include/asm-x86/asm/boot.h @@ -0,0 +1,24 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI_ASM_X86_BOOT_H +#define _UAPI_ASM_X86_BOOT_H +#define NORMAL_VGA 0xffff +#define EXTENDED_VGA 0xfffe +#define ASK_VGA 0xfffd +#endif diff --git a/linux-5.10/prebuilts/usr/include/asm-x86/asm/bootparam.h b/linux-5.10/prebuilts/usr/include/asm-x86/asm/bootparam.h new file mode 100644 index 0000000000000000000000000000000000000000..7401135506d5d8a278826a11bb52d2f1950cfc56 --- /dev/null +++ b/linux-5.10/prebuilts/usr/include/asm-x86/asm/bootparam.h @@ -0,0 +1,195 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _ASM_X86_BOOTPARAM_H +#define _ASM_X86_BOOTPARAM_H +#define SETUP_NONE 0 +#define SETUP_E820_EXT 1 +#define SETUP_DTB 2 +#define SETUP_PCI 3 +#define SETUP_EFI 4 +#define SETUP_APPLE_PROPERTIES 5 +#define SETUP_JAILHOUSE 6 +#define SETUP_INDIRECT (1 << 31) +#define SETUP_TYPE_MAX (SETUP_INDIRECT | SETUP_JAILHOUSE) +#define RAMDISK_IMAGE_START_MASK 0x07FF +#define RAMDISK_PROMPT_FLAG 0x8000 +#define RAMDISK_LOAD_FLAG 0x4000 +#define LOADED_HIGH (1 << 0) +#define KASLR_FLAG (1 << 1) +#define QUIET_FLAG (1 << 5) +#define KEEP_SEGMENTS (1 << 6) +#define CAN_USE_HEAP (1 << 7) +#define XLF_KERNEL_64 (1 << 0) +#define XLF_CAN_BE_LOADED_ABOVE_4G (1 << 1) +#define XLF_EFI_HANDOVER_32 (1 << 2) +#define XLF_EFI_HANDOVER_64 (1 << 3) +#define XLF_EFI_KEXEC (1 << 4) +#define XLF_5LEVEL (1 << 5) +#define XLF_5LEVEL_ENABLED (1 << 6) +#ifndef __ASSEMBLY__ +#include +#include +#include +#include +#include +#include