Commit 63a9048baf
Changed files (941)
lib
libc
include
aarch64-linux-gnu
aarch64_be-linux-gnu
arm-linux-gnu
arm-linux-gnueabihf
arm-netbsd-eabihf
machine
armeb-linux-gnueabi
armeb-linux-gnueabihf
csky-linux-gnu
csky-linux-gnueabi
csky-linux-gnueabihf
loongarch-linux-gnu
loongarch64-linux-gnusf
mips-linux-gnu
bits
mips-linux-gnueabihf
bits
mips-netbsd-eabihf
machine
mips64-linux-gnuabi64
bits
mips64-linux-gnuabin32
bits
mips64el-linux-gnuabi64
bits
mips64el-linux-gnuabin32
bits
mipsel-linux-gnueabi
bits
mipsel-linux-gnueabihf
bits
powerpc-linux-gnu
bits
powerpc-linux-gnueabi
bits
powerpc-linux-gnueabihf
bits
powerpc64-linux-gnu
bits
powerpc64le-linux-gnu
bits
riscv-linux-gnu
bits
riscv32-linux-gnu
riscv64-linux-gnu
sparc-linux-gnu
sparc64-linux-gnu
bits
x86-linux-gnu
x86_64-linux-gnu
bits
types
finclude
x86_64-linux-gnux32
bits
types
finclude
lib/libc/include/aarch64_be-linux-gnu/gnu/lib-names-lp64_be.h → lib/libc/include/aarch64-linux-gnu/gnu/lib-names-lp64_be.h
File renamed without changes
lib/libc/include/aarch64_be-linux-gnu/gnu/stubs-lp64_be.h → lib/libc/include/aarch64-linux-gnu/gnu/stubs-lp64_be.h
File renamed without changes
lib/libc/include/aarch64_be-linux-gnu/bits/endianness.h
@@ -1,15 +0,0 @@
-#ifndef _BITS_ENDIANNESS_H
-#define _BITS_ENDIANNESS_H 1
-
-#ifndef _BITS_ENDIAN_H
-# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
-#endif
-
-/* AArch64 has selectable endianness. */
-#ifdef __AARCH64EB__
-# define __BYTE_ORDER __BIG_ENDIAN
-#else
-# define __BYTE_ORDER __LITTLE_ENDIAN
-#endif
-
-#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/fcntl.h
@@ -1,61 +0,0 @@
-/* O_*, F_*, FD_* bit values for the AArch64 Linux ABI.
- Copyright (C) 2011-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FCNTL_H
-# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
-#endif
-
-#define __O_DIRECTORY 040000
-#define __O_NOFOLLOW 0100000
-#define __O_DIRECT 0200000
-
-#ifdef __ILP32__
-# define __O_LARGEFILE 0400000
-#else
-# define __O_LARGEFILE 0
-#endif
-
-#ifdef __LP64__
-# define F_GETLK64 5
-# define F_SETLK64 6
-# define F_SETLKW64 7
-#endif
-
-struct flock
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- };
-
-#ifdef __USE_LARGEFILE64
-struct flock64
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- };
-#endif
-
-/* Include generic Linux declarations. */
-#include <bits/fcntl-linux.h>
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/fenv.h
@@ -1,82 +0,0 @@
-/* Copyright (C) 2004-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FENV_H
-# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
-#endif
-
-/* Define bits representing exceptions in the FPSR status word. */
-enum
- {
- FE_INVALID =
-#define FE_INVALID 1
- FE_INVALID,
- FE_DIVBYZERO =
-#define FE_DIVBYZERO 2
- FE_DIVBYZERO,
- FE_OVERFLOW =
-#define FE_OVERFLOW 4
- FE_OVERFLOW,
- FE_UNDERFLOW =
-#define FE_UNDERFLOW 8
- FE_UNDERFLOW,
- FE_INEXACT =
-#define FE_INEXACT 16
- FE_INEXACT,
- };
-
-/* Amount to shift by to convert an exception bit in FPSR to a an
- exception bit mask in FPCR. */
-#define FE_EXCEPT_SHIFT 8
-
-/* All supported exceptions. */
-#define FE_ALL_EXCEPT \
- (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW | FE_INEXACT)
-
-/* Define bits representing rounding modes in the FPCR Rmode field. */
-#define FE_TONEAREST 0x000000
-#define FE_UPWARD 0x400000
-#define FE_DOWNWARD 0x800000
-#define FE_TOWARDZERO 0xc00000
-
-/* Type representing exception flags. */
-typedef unsigned int fexcept_t;
-
-/* Type representing floating-point environment. */
-typedef struct
- {
- unsigned int __fpcr;
- unsigned int __fpsr;
- }
-fenv_t;
-
-/* If the default argument is used we use this value. */
-#define FE_DFL_ENV ((const fenv_t *) -1l)
-
-#ifdef __USE_GNU
-/* Floating-point environment where none of the exceptions are masked. */
-# define FE_NOMASK_ENV ((const fenv_t *) -2)
-#endif
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
-/* Type representing floating-point control modes. */
-typedef unsigned int femode_t;
-
-/* Default floating-point control modes. */
-# define FE_DFL_MODE ((const femode_t *) -1L)
-#endif
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/fp-fast.h
@@ -1,34 +0,0 @@
-/* Define FP_FAST_* macros. AArch64 version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."
-#endif
-
-#ifdef __USE_ISOC99
-
-/* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l}
- builtins are supported. */
-# define FP_FAST_FMA 1
-# define FP_FAST_FMAF 1
-
-# ifdef __FP_FAST_FMAL
-# define FP_FAST_FMAL 1
-# endif
-
-#endif
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/hwcap.h
@@ -1,122 +0,0 @@
-/* Defines for bits in AT_HWCAP. AArch64 Linux version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined (_SYS_AUXV_H)
-# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
-#endif
-
-/* The following must match the kernel's <asm/hwcap.h> and update the
- list together with sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c. */
-#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 HWCAP_GCS (1UL << 32)
-
-#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)
-#define HWCAP2_ECV (1 << 19)
-#define HWCAP2_AFP (1 << 20)
-#define HWCAP2_RPRES (1 << 21)
-#define HWCAP2_MTE3 (1 << 22)
-#define HWCAP2_SME (1 << 23)
-#define HWCAP2_SME_I16I64 (1 << 24)
-#define HWCAP2_SME_F64F64 (1 << 25)
-#define HWCAP2_SME_I8I32 (1 << 26)
-#define HWCAP2_SME_F16F32 (1 << 27)
-#define HWCAP2_SME_B16F32 (1 << 28)
-#define HWCAP2_SME_F32F32 (1 << 29)
-#define HWCAP2_SME_FA64 (1 << 30)
-#define HWCAP2_WFXT (1UL << 31)
-#define HWCAP2_EBF16 (1UL << 32)
-#define HWCAP2_SVE_EBF16 (1UL << 33)
-#define HWCAP2_CSSC (1UL << 34)
-#define HWCAP2_RPRFM (1UL << 35)
-#define HWCAP2_SVE2P1 (1UL << 36)
-#define HWCAP2_SME2 (1UL << 37)
-#define HWCAP2_SME2P1 (1UL << 38)
-#define HWCAP2_SME_I16I32 (1UL << 39)
-#define HWCAP2_SME_BI32I32 (1UL << 40)
-#define HWCAP2_SME_B16B16 (1UL << 41)
-#define HWCAP2_SME_F16F16 (1UL << 42)
-#define HWCAP2_MOPS (1UL << 43)
-#define HWCAP2_HBC (1UL << 44)
-#define HWCAP2_SVE_B16B16 (1UL << 45)
-#define HWCAP2_LRCPC3 (1UL << 46)
-#define HWCAP2_LSE128 (1UL << 47)
-#define HWCAP2_FPMR (1UL << 48)
-#define HWCAP2_LUT (1UL << 49)
-#define HWCAP2_FAMINMAX (1UL << 50)
-#define HWCAP2_F8CVT (1UL << 51)
-#define HWCAP2_F8FMA (1UL << 52)
-#define HWCAP2_F8DP4 (1UL << 53)
-#define HWCAP2_F8DP2 (1UL << 54)
-#define HWCAP2_F8E4M3 (1UL << 55)
-#define HWCAP2_F8E5M2 (1UL << 56)
-#define HWCAP2_SME_LUTV2 (1UL << 57)
-#define HWCAP2_SME_F8F16 (1UL << 58)
-#define HWCAP2_SME_F8F32 (1UL << 59)
-#define HWCAP2_SME_SF8FMA (1UL << 60)
-#define HWCAP2_SME_SF8DP4 (1UL << 61)
-#define HWCAP2_SME_SF8DP2 (1UL << 62)
-#define HWCAP2_POE (1UL << 63)
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/indirect-return.h
@@ -1,36 +0,0 @@
-/* Definition of __INDIRECT_RETURN. AArch64 version.
- Copyright (C) 2024-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _UCONTEXT_H
-# error "Never include <bits/indirect-return.h> directly; use <ucontext.h> instead."
-#endif
-
-/* __INDIRECT_RETURN indicates that swapcontext may return via
- an indirect branch. This happens when GCS is enabled, so
- add the attribute if available, otherwise returns_twice has
- a similar effect, but it prevents some code transformations
- that can cause build failures in some rare cases so it is
- only used when GCS is enabled. */
-#if __glibc_has_attribute (__indirect_return__)
-# define __INDIRECT_RETURN __attribute__ ((__indirect_return__))
-#elif __glibc_has_attribute (__returns_twice__) \
- && defined __ARM_FEATURE_GCS_DEFAULT
-# define __INDIRECT_RETURN __attribute__ ((__returns_twice__))
-#else
-# define __INDIRECT_RETURN
-#endif
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/link.h
@@ -1,68 +0,0 @@
-/* Copyright (C) 2005-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-# error "Never include <bits/link.h> directly; use <link.h> instead."
-#endif
-
-typedef union
-{
- float s;
- double d;
- long double q;
-} La_aarch64_vector;
-
-/* Registers for entry into PLT on AArch64. */
-typedef struct La_aarch64_regs
-{
- uint64_t lr_xreg[9];
- La_aarch64_vector lr_vreg[8];
- uint64_t lr_sp;
- uint64_t lr_lr;
- void *lr_vpcs;
-} La_aarch64_regs;
-
-/* Return values for calls from PLT on AArch64. */
-typedef struct La_aarch64_retval
-{
- /* Up to eight integer registers can be used for a return value. */
- uint64_t lrv_xreg[8];
- /* Up to eight V registers can be used for a return value. */
- La_aarch64_vector lrv_vreg[8];
- void *lrv_vpcs;
-} La_aarch64_retval;
-__BEGIN_DECLS
-
-extern ElfW(Addr)
-la_aarch64_gnu_pltenter (ElfW(Sym) *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_aarch64_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-
-extern unsigned int
-la_aarch64_gnu_pltexit (ElfW(Sym) *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_aarch64_regs *__inregs,
- La_aarch64_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/math-vector.h
@@ -1,308 +0,0 @@
-/* Platform-specific SIMD declarations of math functions.
-
- Copyright (C) 2023-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never include <bits/math-vector.h> directly;\
- include <math.h> instead."
-#endif
-
-/* Get default empty definitions for simd declarations. */
-#include <bits/libm-simd-decl-stubs.h>
-
-#if defined __aarch64__ && defined __FAST_MATH__ && __GNUC_PREREQ (6, 0)
-/* Requires GCC >= 6 for __attribute__ ((__simd__)). */
-# define __DECL_SIMD_aarch64 __attribute__ ((__simd__ ("notinbranch"), const))
-
-# undef __DECL_SIMD_acos
-# define __DECL_SIMD_acos __DECL_SIMD_aarch64
-# undef __DECL_SIMD_acosf
-# define __DECL_SIMD_acosf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_acosh
-# define __DECL_SIMD_acosh __DECL_SIMD_aarch64
-# undef __DECL_SIMD_acoshf
-# define __DECL_SIMD_acoshf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_asin
-# define __DECL_SIMD_asin __DECL_SIMD_aarch64
-# undef __DECL_SIMD_asinf
-# define __DECL_SIMD_asinf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_asinh
-# define __DECL_SIMD_asinh __DECL_SIMD_aarch64
-# undef __DECL_SIMD_asinhf
-# define __DECL_SIMD_asinhf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_atan
-# define __DECL_SIMD_atan __DECL_SIMD_aarch64
-# undef __DECL_SIMD_atanf
-# define __DECL_SIMD_atanf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_atanh
-# define __DECL_SIMD_atanh __DECL_SIMD_aarch64
-# undef __DECL_SIMD_atanhf
-# define __DECL_SIMD_atanhf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_atan2
-# define __DECL_SIMD_atan2 __DECL_SIMD_aarch64
-# undef __DECL_SIMD_atan2f
-# define __DECL_SIMD_atan2f __DECL_SIMD_aarch64
-# undef __DECL_SIMD_cbrt
-# define __DECL_SIMD_cbrt __DECL_SIMD_aarch64
-# undef __DECL_SIMD_cbrtf
-# define __DECL_SIMD_cbrtf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_cos
-# define __DECL_SIMD_cos __DECL_SIMD_aarch64
-# undef __DECL_SIMD_cosf
-# define __DECL_SIMD_cosf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_cosh
-# define __DECL_SIMD_cosh __DECL_SIMD_aarch64
-# undef __DECL_SIMD_coshf
-# define __DECL_SIMD_coshf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_cospi
-# define __DECL_SIMD_cospi __DECL_SIMD_aarch64
-# undef __DECL_SIMD_cospif
-# define __DECL_SIMD_cospif __DECL_SIMD_aarch64
-# undef __DECL_SIMD_erf
-# define __DECL_SIMD_erf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_erff
-# define __DECL_SIMD_erff __DECL_SIMD_aarch64
-# undef __DECL_SIMD_erfc
-# define __DECL_SIMD_erfc __DECL_SIMD_aarch64
-# undef __DECL_SIMD_erfcf
-# define __DECL_SIMD_erfcf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_exp
-# define __DECL_SIMD_exp __DECL_SIMD_aarch64
-# undef __DECL_SIMD_expf
-# define __DECL_SIMD_expf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_exp10
-# define __DECL_SIMD_exp10 __DECL_SIMD_aarch64
-# undef __DECL_SIMD_exp10f
-# define __DECL_SIMD_exp10f __DECL_SIMD_aarch64
-# undef __DECL_SIMD_exp2
-# define __DECL_SIMD_exp2 __DECL_SIMD_aarch64
-# undef __DECL_SIMD_exp2f
-# define __DECL_SIMD_exp2f __DECL_SIMD_aarch64
-# undef __DECL_SIMD_expm1
-# define __DECL_SIMD_expm1 __DECL_SIMD_aarch64
-# undef __DECL_SIMD_expm1f
-# define __DECL_SIMD_expm1f __DECL_SIMD_aarch64
-# undef __DECL_SIMD_hypot
-# define __DECL_SIMD_hypot __DECL_SIMD_aarch64
-# undef __DECL_SIMD_hypotf
-# define __DECL_SIMD_hypotf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_log
-# define __DECL_SIMD_log __DECL_SIMD_aarch64
-# undef __DECL_SIMD_logf
-# define __DECL_SIMD_logf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_log10
-# define __DECL_SIMD_log10 __DECL_SIMD_aarch64
-# undef __DECL_SIMD_log10f
-# define __DECL_SIMD_log10f __DECL_SIMD_aarch64
-# undef __DECL_SIMD_log1p
-# define __DECL_SIMD_log1p __DECL_SIMD_aarch64
-# undef __DECL_SIMD_log1pf
-# define __DECL_SIMD_log1pf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_log2
-# define __DECL_SIMD_log2 __DECL_SIMD_aarch64
-# undef __DECL_SIMD_log2f
-# define __DECL_SIMD_log2f __DECL_SIMD_aarch64
-# undef __DECL_SIMD_logp1
-# define __DECL_SIMD_logp1 __DECL_SIMD_aarch64
-# undef __DECL_SIMD_logp1f
-# define __DECL_SIMD_logp1f __DECL_SIMD_aarch64
-# undef __DECL_SIMD_pow
-# define __DECL_SIMD_pow __DECL_SIMD_aarch64
-# undef __DECL_SIMD_powf
-# define __DECL_SIMD_powf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_sin
-# define __DECL_SIMD_sin __DECL_SIMD_aarch64
-# undef __DECL_SIMD_sinf
-# define __DECL_SIMD_sinf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_sinh
-# define __DECL_SIMD_sinh __DECL_SIMD_aarch64
-# undef __DECL_SIMD_sinhf
-# define __DECL_SIMD_sinhf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_sinpi
-# define __DECL_SIMD_sinpi __DECL_SIMD_aarch64
-# undef __DECL_SIMD_sinpif
-# define __DECL_SIMD_sinpif __DECL_SIMD_aarch64
-# undef __DECL_SIMD_tan
-# define __DECL_SIMD_tan __DECL_SIMD_aarch64
-# undef __DECL_SIMD_tanf
-# define __DECL_SIMD_tanf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_tanh
-# define __DECL_SIMD_tanh __DECL_SIMD_aarch64
-# undef __DECL_SIMD_tanhf
-# define __DECL_SIMD_tanhf __DECL_SIMD_aarch64
-# undef __DECL_SIMD_tanpi
-# define __DECL_SIMD_tanpi __DECL_SIMD_aarch64
-# undef __DECL_SIMD_tanpif
-# define __DECL_SIMD_tanpif __DECL_SIMD_aarch64
-#endif
-
-#if __GNUC_PREREQ(9, 0)
-# define __ADVSIMD_VEC_MATH_SUPPORTED
-typedef __Float32x4_t __f32x4_t;
-typedef __Float64x2_t __f64x2_t;
-#elif __glibc_clang_prereq(8, 0)
-# define __ADVSIMD_VEC_MATH_SUPPORTED
-typedef __attribute__ ((__neon_vector_type__ (4))) float __f32x4_t;
-typedef __attribute__ ((__neon_vector_type__ (2))) double __f64x2_t;
-#endif
-
-#if __GNUC_PREREQ(10, 0) || __glibc_clang_prereq(11, 0)
-# define __SVE_VEC_MATH_SUPPORTED
-typedef __SVFloat32_t __sv_f32_t;
-typedef __SVFloat64_t __sv_f64_t;
-typedef __SVBool_t __sv_bool_t;
-#endif
-
-/* If vector types and vector PCS are unsupported in the working
- compiler, no choice but to omit vector math declarations. */
-
-#ifdef __ADVSIMD_VEC_MATH_SUPPORTED
-
-# define __vpcs __attribute__ ((__aarch64_vector_pcs__))
-
-__vpcs __f32x4_t _ZGVnN4vv_atan2f (__f32x4_t, __f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_acosf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_acoshf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_asinf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_asinhf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_atanf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_atanhf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_cbrtf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_cosf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_coshf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_cospif (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_erff (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_erfcf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_expf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_exp10f (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_exp2f (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_expm1f (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4vv_hypotf (__f32x4_t, __f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_logf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_log10f (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_log1pf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_log2f (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_logp1f (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4vv_powf (__f32x4_t, __f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_sinf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_sinhf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_sinpif (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_tanf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_tanhf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_tanpif (__f32x4_t);
-
-__vpcs __f64x2_t _ZGVnN2vv_atan2 (__f64x2_t, __f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_acos (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_acosh (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_asin (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_asinh (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_atan (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_atanh (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_cbrt (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_cos (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_cosh (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_cospi (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_erf (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_erfc (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_exp (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_exp10 (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_exp2 (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_expm1 (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2vv_hypot (__f64x2_t, __f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_log (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_log10 (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_log1p (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_log2 (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_logp1 (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2vv_pow (__f64x2_t, __f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_sin (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_sinh (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_sinpi (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_tan (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_tanh (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_tanpi (__f64x2_t);
-
-# undef __ADVSIMD_VEC_MATH_SUPPORTED
-#endif /* __ADVSIMD_VEC_MATH_SUPPORTED */
-
-#ifdef __SVE_VEC_MATH_SUPPORTED
-
-__sv_f32_t _ZGVsMxvv_atan2f (__sv_f32_t, __sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_acosf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_acoshf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_asinf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_asinhf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_atanf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_atanhf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_cbrtf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_cosf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_coshf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_cospif (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_erff (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_erfcf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_expf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_exp10f (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_exp2f (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_expm1f (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxvv_hypotf (__sv_f32_t, __sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_logf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_log10f (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_log1pf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_log2f (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_logp1f (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxvv_powf (__sv_f32_t, __sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_sinf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_sinhf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_sinpif (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_tanf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_tanhf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_tanpif (__sv_f32_t, __sv_bool_t);
-
-__sv_f64_t _ZGVsMxvv_atan2 (__sv_f64_t, __sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_acos (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_acosh (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_asin (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_asinh (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_atan (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_atanh (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_cbrt (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_cos (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_cosh (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_cospi (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_erf (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_erfc (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_exp (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_exp10 (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_exp2 (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_expm1 (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxvv_hypot (__sv_f64_t, __sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_log (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_log10 (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_log1p (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_log2 (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_logp1 (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxvv_pow (__sv_f64_t, __sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_sin (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_sinh (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_sinpi (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_tan (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_tanh (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_tanpi (__sv_f64_t, __sv_bool_t);
-
-# undef __SVE_VEC_MATH_SUPPORTED
-#endif /* __SVE_VEC_MATH_SUPPORTED */
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/mman.h
@@ -1,40 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/AArch64 version.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* AArch64 specific definitions, should be in sync with
- arch/arm64/include/uapi/asm/mman.h. */
-
-#define PROT_BTI 0x10
-#define PROT_MTE 0x20
-
-#ifdef __USE_GNU
-# define PKEY_UNRESTRICTED 0x0
-# define PKEY_DISABLE_ACCESS 0x1
-# define PKEY_DISABLE_WRITE 0x2
-# define PKEY_DISABLE_EXECUTE 0x4
-# define PKEY_DISABLE_READ 0x8
-#endif
-
-#include <bits/mman-map-flags-generic.h>
-
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/procfs.h
@@ -1,35 +0,0 @@
-/* Types for registers for sys/procfs.h. AArch64 version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
-#endif
-
-/* Type for a general-purpose register. */
-typedef __uint64_t elf_greg_t;
-
-/* And the whole bunch of them. We could have used `struct
- pt_regs' directly in the typedef, but tradition says that
- the register set is an array, which does have some peculiar
- semantics, so leave it that way. */
-#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof (elf_greg_t))
-typedef elf_greg_t elf_gregset_t[ELF_NGREG];
-
-/* Register set for the floating-point registers. */
-typedef struct user_fpsimd_struct elf_fpregset_t;
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/pthread_stack_min.h
@@ -1,22 +0,0 @@
-/* Definition of PTHREAD_STACK_MIN. Linux/aarch64 version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Minimum size for a thread. At least two pages for systems with 64k
- pages. */
-#define PTHREAD_STACK_MIN 131072
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/pthreadtypes-arch.h
@@ -1,47 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_PTHREADTYPES_ARCH_H
-#define _BITS_PTHREADTYPES_ARCH_H 1
-
-#include <bits/endian.h>
-
-#ifdef __ILP32__
-# define __SIZEOF_PTHREAD_ATTR_T 32
-# define __SIZEOF_PTHREAD_MUTEX_T 32
-# define __SIZEOF_PTHREAD_MUTEXATTR_T 4
-# define __SIZEOF_PTHREAD_CONDATTR_T 4
-# define __SIZEOF_PTHREAD_RWLOCK_T 48
-# define __SIZEOF_PTHREAD_BARRIER_T 20
-# define __SIZEOF_PTHREAD_BARRIERATTR_T 4
-#else
-# define __SIZEOF_PTHREAD_ATTR_T 64
-# define __SIZEOF_PTHREAD_MUTEX_T 48
-# define __SIZEOF_PTHREAD_MUTEXATTR_T 8
-# define __SIZEOF_PTHREAD_CONDATTR_T 8
-# define __SIZEOF_PTHREAD_RWLOCK_T 56
-# define __SIZEOF_PTHREAD_BARRIER_T 32
-# define __SIZEOF_PTHREAD_BARRIERATTR_T 8
-#endif
-#define __SIZEOF_PTHREAD_COND_T 48
-#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-
-#define __LOCK_ALIGNMENT
-#define __ONCE_ALIGNMENT
-
-#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/rseq.h
@@ -1,43 +0,0 @@
-/* Restartable Sequences Linux aarch64 architecture header.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RSEQ_H
-# error "Never use <bits/rseq.h> directly; include <sys/rseq.h> instead."
-#endif
-
-/* RSEQ_SIG is a signature required before each abort handler code.
-
- It is a 32-bit value that maps to actual architecture code compiled
- into applications and libraries. It needs to be defined for each
- architecture. When choosing this value, it needs to be taken into
- account that generating invalid instructions may have ill effects on
- tools like objdump, and may also have impact on the CPU speculative
- execution efficiency in some cases.
-
- aarch64 -mbig-endian generates mixed endianness code vs data:
- little-endian code and big-endian data. Ensure the RSEQ_SIG signature
- matches code endianness. */
-
-#define RSEQ_SIG_CODE 0xd428bc00 /* BRK #0x45E0. */
-
-#ifdef __AARCH64EB__
-# define RSEQ_SIG_DATA 0x00bc28d4 /* BRK #0x45E0. */
-#else
-# define RSEQ_SIG_DATA RSEQ_SIG_CODE
-#endif
-
-#define RSEQ_SIG RSEQ_SIG_DATA
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/semaphore.h
@@ -1,39 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SEMAPHORE_H
-# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
-#endif
-
-
-#ifdef __ILP32__
-# define __SIZEOF_SEM_T 16
-#else
-# define __SIZEOF_SEM_T 32
-#endif
-
-
-/* Value returned if `sem_open' failed. */
-#define SEM_FAILED ((sem_t *) 0)
-
-
-typedef union
-{
- char __size[__SIZEOF_SEM_T];
- long long int __align;
-} sem_t;
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/setjmp.h
@@ -1,33 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SETJMP_H
-#define _BITS_SETJMP_H 1
-
-#if !defined _SETJMP_H && !defined _PTHREAD_H
-# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
-#endif
-
-#ifndef _ASM
-/* Jump buffer contains:
- x19-x28, x29(fp), x30(lr), (x31)sp, d8-d15. Other registers are not
- saved. */
-__extension__ typedef unsigned long long __jmp_buf [22];
-
-#endif
-#endif
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/sigstack.h
@@ -1,32 +0,0 @@
-/* sigstack, sigaltstack definitions.
- Copyright (C) 2015-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGSTACK_H
-#define _BITS_SIGSTACK_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never include this file directly. Use <signal.h> instead"
-#endif
-
-/* Minimum stack size for a signal handler. */
-#define MINSIGSTKSZ 5120
-
-/* System default stack size. */
-#define SIGSTKSZ 16384
-
-#endif /* bits/sigstack.h */
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/struct_rwlock.h
@@ -1,41 +0,0 @@
-/* AArch64 internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
- int __cur_writer;
- int __shared;
- unsigned long int __pad1;
- unsigned long int __pad2;
- unsigned int __flags;
-};
-
-#define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
-
-#endif
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/wordsize.h
@@ -1,28 +0,0 @@
-/* Determine the wordsize from the preprocessor defines.
-
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifdef __LP64__
-# define __WORDSIZE 64
-#else
-# define __WORDSIZE 32
-# define __WORDSIZE32_SIZE_ULONG 1
-# define __WORDSIZE32_PTRDIFF_LONG 1
-#endif
-
-#define __WORDSIZE_TIME64_COMPAT32 0
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/finclude/math-vector-fortran.h
@@ -1,47 +0,0 @@
-! Platform-specific declarations of SIMD math functions for Fortran. -*- f90 -*-
-! Copyright (C) 2019-2025 Free Software Foundation, Inc.
-! This file is part of the GNU C Library.
-!
-! The GNU C Library is free software; you can redistribute it and/or
-! modify it under the terms of the GNU Lesser General Public
-! License as published by the Free Software Foundation; either
-! version 2.1 of the License, or (at your option) any later version.
-!
-! The GNU C Library is distributed in the hope that it will be useful,
-! but WITHOUT ANY WARRANTY; without even the implied warranty of
-! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-! Lesser General Public License for more details.
-!
-! You should have received a copy of the GNU Lesser General Public
-! License along with the GNU C Library; if not, see
-! <https://www.gnu.org/licenses/>.
-!GCC$ builtin (acos) attributes simd (notinbranch)
-!GCC$ builtin (acosf) attributes simd (notinbranch)
-!GCC$ builtin (asin) attributes simd (notinbranch)
-!GCC$ builtin (asinf) attributes simd (notinbranch)
-!GCC$ builtin (atan) attributes simd (notinbranch)
-!GCC$ builtin (atanf) attributes simd (notinbranch)
-!GCC$ builtin (atan2) attributes simd (notinbranch)
-!GCC$ builtin (atan2f) attributes simd (notinbranch)
-!GCC$ builtin (cos) attributes simd (notinbranch)
-!GCC$ builtin (cosf) attributes simd (notinbranch)
-!GCC$ builtin (exp) attributes simd (notinbranch)
-!GCC$ builtin (expf) attributes simd (notinbranch)
-!GCC$ builtin (exp10) attributes simd (notinbranch)
-!GCC$ builtin (exp10f) attributes simd (notinbranch)
-!GCC$ builtin (exp2) attributes simd (notinbranch)
-!GCC$ builtin (exp2f) attributes simd (notinbranch)
-!GCC$ builtin (expm1) attributes simd (notinbranch)
-!GCC$ builtin (expm1f) attributes simd (notinbranch)
-!GCC$ builtin (log) attributes simd (notinbranch)
-!GCC$ builtin (logf) attributes simd (notinbranch)
-!GCC$ builtin (log10) attributes simd (notinbranch)
-!GCC$ builtin (log10f) attributes simd (notinbranch)
-!GCC$ builtin (log1p) attributes simd (notinbranch)
-!GCC$ builtin (log1pf) attributes simd (notinbranch)
-!GCC$ builtin (log2) attributes simd (notinbranch)
-!GCC$ builtin (log2f) attributes simd (notinbranch)
-!GCC$ builtin (sin) attributes simd (notinbranch)
-!GCC$ builtin (sinf) attributes simd (notinbranch)
-!GCC$ builtin (tan) attributes simd (notinbranch)
-!GCC$ builtin (tanf) attributes simd (notinbranch)
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/gnu/lib-names.h
@@ -1,16 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#include <bits/wordsize.h>
-
-#if !defined __AARCH64EB__
-# include <gnu/lib-names-lp64.h>
-#endif
-#if defined __AARCH64EB__
-# include <gnu/lib-names-lp64_be.h>
-#endif
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/gnu/stubs.h
@@ -1,12 +0,0 @@
-/* This file is automatically generated.
- This file selects the right generated file of `__stub_FUNCTION' macros
- based on the architecture being compiled for. */
-
-#include <bits/wordsize.h>
-
-#if !defined __AARCH64EB__
-# include <gnu/stubs-lp64.h>
-#endif
-#if defined __AARCH64EB__
-# include <gnu/stubs-lp64_be.h>
-#endif
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/sys/elf.h
@@ -1,26 +0,0 @@
-/* Copyright (C) 1996-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_ELF_H
-#define _SYS_ELF_H 1
-
-#warning "This header is obsolete; use <sys/procfs.h> instead."
-
-#include <sys/procfs.h>
-
-#endif /* sys/elf.h */
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/sys/ptrace.h
@@ -1,219 +0,0 @@
-/* `ptrace' debugger support interface. Linux/AArch64 version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PTRACE_H
-#define _SYS_PTRACE_H 1
-
-#include <features.h>
-#include <bits/types.h>
-
-__BEGIN_DECLS
-
-/* Avoid collision if the linux ptrace header is already included. */
-#undef PTRACE_TRACEME
-#undef PTRACE_PEEKTEXT
-#undef PTRACE_PEEKDATA
-#undef PTRACE_PEEKUSER
-#undef PTRACE_POKETEXT
-#undef PTRACE_POKEDATA
-#undef PTRACE_POKEUSER
-#undef PTRACE_CONT
-#undef PTRACE_KILL
-#undef PTRACE_SINGLESTEP
-#undef PTRACE_ATTACH
-#undef PTRACE_DETACH
-#undef PTRACE_SYSCALL
-#undef PTRACE_SYSEMU
-#undef PTRACE_SYSEMU_SINGLESTEP
-#undef PTRACE_PEEKMTETAGS
-#undef PTRACE_POKEMTETAGS
-#undef PTRACE_SETOPTIONS
-#undef PTRACE_GETEVENTMSG
-#undef PTRACE_GETSIGINFO
-#undef PTRACE_SETSIGINFO
-#undef PTRACE_GETREGSET
-#undef PTRACE_SETREGSET
-#undef PTRACE_SEIZE
-#undef PTRACE_INTERRUPT
-#undef PTRACE_LISTEN
-#undef PTRACE_PEEKSIGINFO
-#undef PTRACE_GETSIGMASK
-#undef PTRACE_SETSIGMASK
-#undef PTRACE_SECCOMP_GET_FILTER
-#undef PTRACE_SECCOMP_GET_METADATA
-#undef PTRACE_GET_SYSCALL_INFO
-#undef PTRACE_GET_RSEQ_CONFIGURATION
-#undef PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-#undef PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-
-/* Type of the REQUEST argument to `ptrace.' */
-enum __ptrace_request
-{
- /* Indicate that the process making this request should be traced.
- All signals received by this process can be intercepted by its
- parent, and its parent can use the other `ptrace' requests. */
- PTRACE_TRACEME = 0,
-#define PT_TRACE_ME PTRACE_TRACEME
-
- /* Return the word in the process's text space at address ADDR. */
- PTRACE_PEEKTEXT = 1,
-#define PT_READ_I PTRACE_PEEKTEXT
-
- /* Return the word in the process's data space at address ADDR. */
- PTRACE_PEEKDATA = 2,
-#define PT_READ_D PTRACE_PEEKDATA
-
- /* Return the word in the process's user area at offset ADDR. */
- PTRACE_PEEKUSER = 3,
-#define PT_READ_U PTRACE_PEEKUSER
-
- /* Write the word DATA into the process's text space at address ADDR. */
- PTRACE_POKETEXT = 4,
-#define PT_WRITE_I PTRACE_POKETEXT
-
- /* Write the word DATA into the process's data space at address ADDR. */
- PTRACE_POKEDATA = 5,
-#define PT_WRITE_D PTRACE_POKEDATA
-
- /* Write the word DATA into the process's user area at offset ADDR. */
- PTRACE_POKEUSER = 6,
-#define PT_WRITE_U PTRACE_POKEUSER
-
- /* Continue the process. */
- PTRACE_CONT = 7,
-#define PT_CONTINUE PTRACE_CONT
-
- /* Kill the process. */
- PTRACE_KILL = 8,
-#define PT_KILL PTRACE_KILL
-
- /* Single step the process. */
- PTRACE_SINGLESTEP = 9,
-#define PT_STEP PTRACE_SINGLESTEP
-
- /* Attach to a process that is already running. */
- PTRACE_ATTACH = 16,
-#define PT_ATTACH PTRACE_ATTACH
-
- /* Detach from a process attached to with PTRACE_ATTACH. */
- PTRACE_DETACH = 17,
-#define PT_DETACH PTRACE_DETACH
-
- /* Continue and stop at the next entry to or return from syscall. */
- PTRACE_SYSCALL = 24,
-#define PT_SYSCALL PTRACE_SYSCALL
-
- /* Continue and stop at the next syscall, it will not be executed. */
- PTRACE_SYSEMU = 31,
-#define PT_SYSEMU PTRACE_SYSEMU
-
- /* Single step the process, the next syscall will not be executed. */
- PTRACE_SYSEMU_SINGLESTEP = 32,
-#define PT_SYSEMU_SINGLESTEP PTRACE_SYSEMU_SINGLESTEP
-
- /* Read MTE tags. */
- PTRACE_PEEKMTETAGS = 33,
-#define PT_PEEKMTETAGS PTRACE_PEEKMTETAGS
-
- /* Write MTE tags. */
- PTRACE_POKEMTETAGS = 34,
-#define PT_POKEMTETAGS PTRACE_POKEMTETAGS
-
- /* Set ptrace filter options. */
- PTRACE_SETOPTIONS = 0x4200,
-#define PT_SETOPTIONS PTRACE_SETOPTIONS
-
- /* Get last ptrace message. */
- PTRACE_GETEVENTMSG = 0x4201,
-#define PT_GETEVENTMSG PTRACE_GETEVENTMSG
-
- /* Get siginfo for process. */
- PTRACE_GETSIGINFO = 0x4202,
-#define PT_GETSIGINFO PTRACE_GETSIGINFO
-
- /* Set new siginfo for process. */
- PTRACE_SETSIGINFO = 0x4203,
-#define PT_SETSIGINFO PTRACE_SETSIGINFO
-
- /* Get register content. */
- PTRACE_GETREGSET = 0x4204,
-#define PTRACE_GETREGSET PTRACE_GETREGSET
-
- /* Set register content. */
- PTRACE_SETREGSET = 0x4205,
-#define PTRACE_SETREGSET PTRACE_SETREGSET
-
- /* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
- signal or group stop state. */
- PTRACE_SEIZE = 0x4206,
-#define PTRACE_SEIZE PTRACE_SEIZE
-
- /* Trap seized tracee. */
- PTRACE_INTERRUPT = 0x4207,
-#define PTRACE_INTERRUPT PTRACE_INTERRUPT
-
- /* Wait for next group event. */
- PTRACE_LISTEN = 0x4208,
-#define PTRACE_LISTEN PTRACE_LISTEN
-
- /* Retrieve siginfo_t structures without removing signals from a queue. */
- PTRACE_PEEKSIGINFO = 0x4209,
-#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
-
- /* Get the mask of blocked signals. */
- PTRACE_GETSIGMASK = 0x420a,
-#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
-
- /* Change the mask of blocked signals. */
- PTRACE_SETSIGMASK = 0x420b,
-#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
-
- /* Get seccomp BPF filters. */
- PTRACE_SECCOMP_GET_FILTER = 0x420c,
-#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
-
- /* Get seccomp BPF filter metadata. */
- PTRACE_SECCOMP_GET_METADATA = 0x420d,
-#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
-
- /* Get information about system call. */
- PTRACE_GET_SYSCALL_INFO = 0x420e,
-#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
-
- /* Get rseq configuration information. */
- PTRACE_GET_RSEQ_CONFIGURATION = 0x420f,
-#define PTRACE_GET_RSEQ_CONFIGURATION PTRACE_GET_RSEQ_CONFIGURATION
-
- /* Set configuration for syscall user dispatch. */
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG = 0x4210,
-#define PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-
- /* Get configuration for syscall user dispatch. */
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG = 0x4211
-#define PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-};
-
-
-#include <bits/ptrace-shared.h>
-
-__END_DECLS
-
-#endif /* _SYS_PTRACE_H */
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/sys/ucontext.h
@@ -1,78 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* System V/AArch64 ABI compliant context switching support. */
-
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include <features.h>
-
-#include <bits/types/sigset_t.h>
-#include <bits/types/stack_t.h>
-
-#ifdef __USE_MISC
-# define __ctx(fld) fld
-#else
-# define __ctx(fld) __ ## fld
-#endif
-
-#ifdef __USE_MISC
-# include <sys/procfs.h>
-
-
-typedef elf_greg_t greg_t;
-
-/* Container for all general registers. */
-typedef elf_gregset_t gregset_t;
-
-/* Structure to describe FPU registers. */
-typedef elf_fpregset_t fpregset_t;
-#endif
-
-/* Context to describe whole processor state. This only describes
- the core registers; coprocessor registers get saved elsewhere
- (e.g. in uc_regspace, or somewhere unspecified on the stack
- during non-RT signal handlers). */
-typedef struct
- {
- unsigned long long int __ctx(fault_address);
- unsigned long long int __ctx(regs)[31];
- unsigned long long int __ctx(sp);
- unsigned long long int __ctx(pc);
- unsigned long long int __ctx(pstate);
- /* This field contains extension records for additional processor
- state such as the FP/SIMD state. It has to match the definition
- of the corresponding field in the sigcontext struct, see the
- arch/arm64/include/uapi/asm/sigcontext.h linux header for details. */
- unsigned char __reserved[4096] __attribute__ ((__aligned__ (16)));
- } mcontext_t;
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long __ctx(uc_flags);
- struct ucontext_t *uc_link;
- stack_t uc_stack;
- sigset_t uc_sigmask;
- mcontext_t uc_mcontext;
- } ucontext_t;
-
-#undef __ctx
-
-#endif /* sys/ucontext.h */
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/sys/user.h
@@ -1,37 +0,0 @@
-/* Copyright (C) 2009-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_USER_H
-#define _SYS_USER_H 1
-
-struct user_regs_struct
-{
- unsigned long long regs[31];
- unsigned long long sp;
- unsigned long long pc;
- unsigned long long pstate;
-};
-
-struct user_fpsimd_struct
-{
- __uint128_t vregs[32];
- unsigned int fpsr;
- unsigned int fpcr;
-};
-
-#endif
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/fpu_control.h
@@ -1,104 +0,0 @@
-/* Copyright (C) 1996-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _AARCH64_FPU_CONTROL_H
-#define _AARCH64_FPU_CONTROL_H
-
-#include <features.h>
-
-/* Macros for accessing the FPCR and FPSR. */
-
-#if __GNUC_PREREQ (6,0)
-# define _FPU_GETCW(fpcr) (fpcr = __builtin_aarch64_get_fpcr ())
-# define _FPU_SETCW(fpcr) __builtin_aarch64_set_fpcr (fpcr)
-# define _FPU_GETFPSR(fpsr) (fpsr = __builtin_aarch64_get_fpsr ())
-# define _FPU_SETFPSR(fpsr) __builtin_aarch64_set_fpsr (fpsr)
-#else
-# define _FPU_GETCW(fpcr) \
- ({ \
- __uint64_t __fpcr; \
- __asm__ __volatile__ ("mrs %0, fpcr" : "=r" (__fpcr)); \
- fpcr = __fpcr; \
- })
-
-# define _FPU_SETCW(fpcr) \
- ({ \
- __uint64_t __fpcr = fpcr; \
- __asm__ __volatile__ ("msr fpcr, %0" : : "r" (__fpcr)); \
- })
-
-# define _FPU_GETFPSR(fpsr) \
- ({ \
- __uint64_t __fpsr; \
- __asm__ __volatile__ ("mrs %0, fpsr" : "=r" (__fpsr)); \
- fpsr = __fpsr; \
- })
-
-# define _FPU_SETFPSR(fpsr) \
- ({ \
- __uint64_t __fpsr = fpsr; \
- __asm__ __volatile__ ("msr fpsr, %0" : : "r" (__fpsr)); \
- })
-#endif
-
-/* Reserved bits should be preserved when modifying register
- contents. These two masks indicate which bits in each of FPCR and
- FPSR should not be changed. */
-
-#define _FPU_RESERVED 0xfe0fe0f8
-#define _FPU_FPSR_RESERVED 0x0fffffe0
-
-#define _FPU_DEFAULT 0x00000000
-#define _FPU_FPSR_DEFAULT 0x00000000
-
-/* Layout of FPCR and FPSR:
-
- | | | | | | | |
- 0 0 0 0 1 1 1 0 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 0 1 1 1 0 0 0 0 0
- s s s s s s s s s s s
- c c c c c c c c c c c c
- N Z C V Q A D F R R S S S L L L I U U I U O D I I U U I U O D I
- C H N Z M M T T B E E E D N N X F F Z O D N N X F F Z O
- P O O R R Z N N N E K K E E E E E C K K C C C C C
- D D I I P
- E E D D
- E E
- */
-
-#define _FPU_FPCR_RM_MASK 0xc00000
-
-#define _FPU_FPCR_MASK_IXE 0x1000
-#define _FPU_FPCR_MASK_UFE 0x0800
-#define _FPU_FPCR_MASK_OFE 0x0400
-#define _FPU_FPCR_MASK_DZE 0x0200
-#define _FPU_FPCR_MASK_IOE 0x0100
-
-#define _FPU_FPCR_IEEE \
- (_FPU_DEFAULT | _FPU_FPCR_MASK_IXE \
- | _FPU_FPCR_MASK_UFE | _FPU_FPCR_MASK_OFE \
- | _FPU_FPCR_MASK_DZE | _FPU_FPCR_MASK_IOE)
-
-#define _FPU_FPSR_IEEE 0
-
-typedef unsigned int fpu_control_t;
-typedef unsigned int fpu_fpsr_t;
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-#endif
\ No newline at end of file
lib/libc/include/arm-linux-gnueabi/bits/dl_find_object.h → lib/libc/include/arm-linux-gnu/bits/dl_find_object.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/endianness.h → lib/libc/include/arm-linux-gnu/bits/endianness.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/fcntl.h → lib/libc/include/arm-linux-gnu/bits/fcntl.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/fenv.h → lib/libc/include/arm-linux-gnu/bits/fenv.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/floatn.h → lib/libc/include/arm-linux-gnu/bits/floatn.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/hwcap.h → lib/libc/include/arm-linux-gnu/bits/hwcap.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/link.h → lib/libc/include/arm-linux-gnu/bits/link.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/long-double.h → lib/libc/include/arm-linux-gnu/bits/long-double.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/procfs-id.h → lib/libc/include/arm-linux-gnu/bits/procfs-id.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/procfs.h → lib/libc/include/arm-linux-gnu/bits/procfs.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/rseq.h → lib/libc/include/arm-linux-gnu/bits/rseq.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/setjmp.h → lib/libc/include/arm-linux-gnu/bits/setjmp.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/shmlba.h → lib/libc/include/arm-linux-gnu/bits/shmlba.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/struct_stat.h → lib/libc/include/arm-linux-gnu/bits/struct_stat.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/timesize.h → lib/libc/include/arm-linux-gnu/bits/timesize.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/typesizes.h → lib/libc/include/arm-linux-gnu/bits/typesizes.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/bits/wordsize.h → lib/libc/include/arm-linux-gnu/bits/wordsize.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/gnu/lib-names.h → lib/libc/include/arm-linux-gnu/gnu/lib-names.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/gnu/stubs.h → lib/libc/include/arm-linux-gnu/gnu/stubs.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/sys/ptrace.h → lib/libc/include/arm-linux-gnu/sys/ptrace.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/sys/ucontext.h → lib/libc/include/arm-linux-gnu/sys/ucontext.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/sys/user.h → lib/libc/include/arm-linux-gnu/sys/user.h
File renamed without changes
lib/libc/include/arm-linux-gnueabi/fpu_control.h → lib/libc/include/arm-linux-gnu/fpu_control.h
File renamed without changes
lib/libc/include/arm-linux-gnueabihf/bits/dl_find_object.h
@@ -1,25 +0,0 @@
-/* arm definitions for finding objects.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _DLFCN_H
-# error "Never use <bits/dl_find_object.h> directly; include <dlfcn.h> instead."
-#endif
-
-#define DLFO_STRUCT_HAS_EH_DBASE 0
-#define DLFO_STRUCT_HAS_EH_COUNT 1
-#define DLFO_EH_SEGMENT_TYPE PT_ARM_EXIDX
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/endianness.h
@@ -1,15 +0,0 @@
-#ifndef _BITS_ENDIANNESS_H
-#define _BITS_ENDIANNESS_H 1
-
-#ifndef _BITS_ENDIAN_H
-# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
-#endif
-
-/* ARM has selectable endianness. */
-#ifdef __ARMEB__
-#define __BYTE_ORDER __BIG_ENDIAN
-#else
-#define __BYTE_ORDER __LITTLE_ENDIAN
-#endif
-
-#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/fcntl.h
@@ -1,54 +0,0 @@
-/* O_*, F_*, FD_* bit values for Linux.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FCNTL_H
-# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
-#endif
-
-#define __O_DIRECTORY 040000 /* Must be a directory. */
-#define __O_NOFOLLOW 0100000 /* Do not follow links. */
-#define __O_DIRECT 0200000 /* Direct disk access. */
-#define __O_LARGEFILE 0400000
-
-struct flock
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
-#ifndef __USE_FILE_OFFSET64
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
-#else
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
-#endif
- __pid_t l_pid; /* Process holding the lock. */
- };
-
-#ifdef __USE_LARGEFILE64
-struct flock64
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- };
-#endif
-
-/* Include generic Linux declarations. */
-#include <bits/fcntl-linux.h>
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/fenv.h
@@ -1,90 +0,0 @@
-/* Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FENV_H
-# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
-#endif
-
-/* Define bits representing exceptions in the FPU status word. */
-enum
- {
- FE_INVALID =
-#define FE_INVALID 1
- FE_INVALID,
- FE_DIVBYZERO =
-#define FE_DIVBYZERO 2
- FE_DIVBYZERO,
- FE_OVERFLOW =
-#define FE_OVERFLOW 4
- FE_OVERFLOW,
- FE_UNDERFLOW =
-#define FE_UNDERFLOW 8
- FE_UNDERFLOW,
- FE_INEXACT =
-#define FE_INEXACT 16
- FE_INEXACT,
- };
-
-/* Amount to shift by to convert an exception to a mask bit. */
-#define FE_EXCEPT_SHIFT 8
-
-/* All supported exceptions. */
-#define FE_ALL_EXCEPT \
- (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW | FE_INEXACT)
-
-/* VFP supports all of the four defined rounding modes. */
-enum
- {
- FE_TONEAREST =
-#define FE_TONEAREST 0
- FE_TONEAREST,
- FE_UPWARD =
-#define FE_UPWARD 0x400000
- FE_UPWARD,
- FE_DOWNWARD =
-#define FE_DOWNWARD 0x800000
- FE_DOWNWARD,
- FE_TOWARDZERO =
-#define FE_TOWARDZERO 0xc00000
- FE_TOWARDZERO
- };
-
-/* Type representing exception flags. */
-typedef unsigned int fexcept_t;
-
-/* Type representing floating-point environment. */
-typedef struct
- {
- unsigned int __cw;
- }
-fenv_t;
-
-/* If the default argument is used we use this value. */
-#define FE_DFL_ENV ((const fenv_t *) -1l)
-
-#ifdef __USE_GNU
-/* Floating-point environment where none of the exceptions are masked. */
-# define FE_NOMASK_ENV ((const fenv_t *) -2)
-#endif
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
-/* Type representing floating-point control modes. */
-typedef unsigned int femode_t;
-
-/* Default floating-point control modes. */
-# define FE_DFL_MODE ((const femode_t *) -1L)
-#endif
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/hwcap.h
@@ -1,59 +0,0 @@
-/* Defines for bits in AT_HWCAP. ARM Linux version.
- Copyright (C) 2012-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)
-# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
-#endif
-
-/* The following must match the kernel's <asm/hwcap.h>. */
-#define HWCAP_ARM_SWP 1
-#define HWCAP_ARM_HALF 2
-#define HWCAP_ARM_THUMB 4
-#define HWCAP_ARM_26BIT 8
-#define HWCAP_ARM_FAST_MULT 16
-#define HWCAP_ARM_FPA 32
-#define HWCAP_ARM_VFP 64
-#define HWCAP_ARM_EDSP 128
-#define HWCAP_ARM_JAVA 256
-#define HWCAP_ARM_IWMMXT 512
-#define HWCAP_ARM_CRUNCH 1024
-#define HWCAP_ARM_THUMBEE 2048
-#define HWCAP_ARM_NEON 4096
-#define HWCAP_ARM_VFPv3 8192
-#define HWCAP_ARM_VFPv3D16 16384
-#define HWCAP_ARM_TLS 32768
-#define HWCAP_ARM_VFPv4 65536
-#define HWCAP_ARM_IDIVA 131072
-#define HWCAP_ARM_IDIVT 262144
-#define HWCAP_ARM_VFPD32 524288
-#define HWCAP_ARM_LPAE 1048576
-#define HWCAP_ARM_EVTSTRM 2097152
-#define HWCAP_FPHP 4194304
-#define HWCAP_ASIMDHP 8388608
-#define HWCAP_ASIMDDP 16777216
-#define HWCAP_ASIMDFHM 33554432
-#define HWCAP_ASIMDBF16 67108864
-#define HWCAP_I8MM 134217728
-
-#define HWCAP2_AES 1
-#define HWCAP2_PMULL 2
-#define HWCAP2_SHA1 4
-#define HWCAP2_SHA2 8
-#define HWCAP2_CRC32 16
-#define HWCAP2_SB 32
-#define HWCAP2_SSBS 64
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/link.h
@@ -1,65 +0,0 @@
-/* Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-# error "Never include <bits/link.h> directly; use <link.h> instead."
-#endif
-
-
-/* Registers for entry into PLT on ARM. */
-typedef struct La_arm_regs
-{
- uint32_t lr_reg[4];
- uint32_t lr_sp;
- uint32_t lr_lr;
- /* Coprocessor registers used for argument passing. The data
- stored here depends on the coprocessors available in the
- system which are used for function calls in the current ABI.
- VFP uses eight 64-bit registers, and iWMMXt uses ten. */
- uint32_t lr_coproc[42];
-} La_arm_regs;
-
-/* Return values for calls from PLT on ARM. */
-typedef struct La_arm_retval
-{
- /* Up to four integer registers can be used for a return value in
- some ABIs (APCS complex long double). */
- uint32_t lrv_reg[4];
-
- /* Any coprocessor registers which might be used to return values
- in the current ABI. */
- uint32_t lrv_coproc[12];
-} La_arm_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf32_Addr la_arm_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_arm_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_arm_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_arm_regs *__inregs,
- La_arm_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/procfs-id.h
@@ -1,25 +0,0 @@
-/* Types of pr_uid and pr_gid in struct elf_prpsinfo. Arm version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
-#endif
-
-typedef unsigned short int __pr_uid_t;
-typedef unsigned short int __pr_gid_t;
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/procfs.h
@@ -1,34 +0,0 @@
-/* Types for registers for sys/procfs.h. Arm version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
-#endif
-
-/* Type for a general-purpose register. */
-typedef unsigned long elf_greg_t;
-
-/* And the whole bunch of them. We could have used `struct
- user_regs' directly in the typedef, but tradition says that
- the register set is an array, which does have some peculiar
- semantics, so leave it that way. */
-#define ELF_NGREG (sizeof (struct user_regs) / sizeof (elf_greg_t))
-typedef elf_greg_t elf_gregset_t[ELF_NGREG];
-
-/* Register set for the floating-point registers. */
-typedef struct user_fpregs elf_fpregset_t;
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/rseq.h
@@ -1,83 +0,0 @@
-/* Restartable Sequences Linux arm architecture header.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RSEQ_H
-# error "Never use <bits/rseq.h> directly; include <sys/rseq.h> instead."
-#endif
-
-/*
- RSEQ_SIG is a signature required before each abort handler code.
-
- It is a 32-bit value that maps to actual architecture code compiled
- into applications and libraries. It needs to be defined for each
- architecture. When choosing this value, it needs to be taken into
- account that generating invalid instructions may have ill effects on
- tools like objdump, and may also have impact on the CPU speculative
- execution efficiency in some cases.
-
- - ARM little endian
-
- RSEQ_SIG uses the udf A32 instruction with an uncommon immediate operand
- value 0x5de3. This traps if user-space reaches this instruction by mistake,
- and the uncommon operand ensures the kernel does not move the instruction
- pointer to attacker-controlled code on rseq abort.
-
- The instruction pattern in the A32 instruction set is:
-
- e7f5def3 udf #24035 ; 0x5de3
-
- This translates to the following instruction pattern in the T16 instruction
- set:
-
- little endian:
- def3 udf #243 ; 0xf3
- e7f5 b.n <7f5>
-
- - ARMv6+ big endian (BE8):
-
- ARMv6+ -mbig-endian generates mixed endianness code vs data: little-endian
- code and big-endian data. The data value of the signature needs to have its
- byte order reversed to generate the trap instruction:
-
- Data: 0xf3def5e7
-
- Translates to this A32 instruction pattern:
-
- e7f5def3 udf #24035 ; 0x5de3
-
- Translates to this T16 instruction pattern:
-
- def3 udf #243 ; 0xf3
- e7f5 b.n <7f5>
-
- - Prior to ARMv6 big endian (BE32):
-
- Prior to ARMv6, -mbig-endian generates big-endian code and data
- (which match), so the endianness of the data representation of the
- signature should not be reversed. However, the choice between BE32
- and BE8 is done by the linker, so we cannot know whether code and
- data endianness will be mixed before the linker is invoked. So rather
- than try to play tricks with the linker, the rseq signature is simply
- data (not a trap instruction) prior to ARMv6 on big endian. This is
- why the signature is expressed as data (.word) rather than as
- instruction (.inst) in assembler. */
-
-#ifdef __ARMEB__
-# define RSEQ_SIG 0xf3def5e7 /* udf #24035 ; 0x5de3 (ARMv6+) */
-#else
-# define RSEQ_SIG 0xe7f5def3 /* udf #24035 ; 0x5de3 */
-#endif
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/setjmp.h
@@ -1,36 +0,0 @@
-/* Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Define the machine-dependent type `jmp_buf'. ARM EABI version. */
-
-#ifndef _BITS_SETJMP_H
-#define _BITS_SETJMP_H 1
-
-#if !defined _SETJMP_H && !defined _PTHREAD_H
-# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
-#endif
-
-#ifndef __ASSEMBLER__
-/* The exact set of registers saved may depend on the particular core
- in use, as some coprocessor registers may need to be saved. The C
- Library ABI requires that the buffer be 8-byte aligned, and
- recommends that the buffer contain 64 words. The first 26 words
- are occupied by sp, lr, v1-v6, sl, fp, and d8-d15. */
-typedef int __jmp_buf[64] __attribute__((__aligned__ (8)));
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/shmlba.h
@@ -1,29 +0,0 @@
-/* Define SHMLBA. ARM version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
-#endif
-
-__BEGIN_DECLS
-
-/* Segment low boundary address multiple. */
-#define SHMLBA (__getpagesize () << 2)
-extern int __getpagesize (void) __THROW __attribute__ ((__const__));
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/struct_stat.h
@@ -1,139 +0,0 @@
-/* Definition for struct stat. Linux/arm version.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
-#endif
-
-#ifndef _BITS_STRUCT_STAT_H
-#define _BITS_STRUCT_STAT_H 1
-
-#include <bits/endian.h>
-#include <bits/wordsize.h>
-
-struct stat
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-#else
- __dev_t st_dev; /* Device. */
- unsigned short int __pad1;
-# ifndef __USE_FILE_OFFSET64
- __ino_t st_ino; /* File serial number. */
-# else
- __ino_t __st_ino; /* 32bit file serial number. */
-# endif
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned short int __pad2;
-# ifndef __USE_FILE_OFFSET64
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
-# ifndef __USE_FILE_OFFSET64
- __blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
-# else
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# endif
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
-# ifndef __USE_FILE_OFFSET64
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
-#endif /* __USE_TIME64_REDIRECTS */
- };
-
-#ifdef __USE_LARGEFILE64
-struct stat64
- {
-# ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-# else
- __dev_t st_dev; /* Device. */
- unsigned int __pad1;
-
- __ino_t __st_ino; /* 32bit file serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned int __pad2;
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- __ino64_t st_ino; /* File serial number. */
-# endif /* __USE_TIME64_REDIRECTS */
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-
-#endif /* _BITS_STRUCT_STAT_H */
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/timesize.h
@@ -1,20 +0,0 @@
-/* Bit size of the time_t type at glibc build time, Linux/ARM.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Size in bits of the 'time_t' type of the default ABI. */
-#define __TIMESIZE 32
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/typesizes.h
@@ -1,74 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. ARM version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __UWORD_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#define __RLIM_T_MATCHES_RLIM64_T 0
-#define __STATFS_MATCHES_STATFS64 0
-/* And for getitimer, setitimer and rusage */
-#define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/gnu/lib-names.h
@@ -1,14 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#if !defined __ARM_PCS_VFP
-# include <gnu/lib-names-soft.h>
-#endif
-#if defined __ARM_PCS_VFP
-# include <gnu/lib-names-hard.h>
-#endif
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/gnu/stubs.h
@@ -1,11 +0,0 @@
-/* This file is automatically generated.
- This file selects the right generated file of `__stub_FUNCTION' macros
- based on the architecture being compiled for. */
-
-
-#if !defined __ARM_PCS_VFP
-# include <gnu/stubs-soft.h>
-#endif
-#if defined __ARM_PCS_VFP
-# include <gnu/stubs-hard.h>
-#endif
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/sys/ptrace.h
@@ -1,226 +0,0 @@
-/* `ptrace' debugger support interface. Linux/ARM version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PTRACE_H
-#define _SYS_PTRACE_H 1
-
-#include <features.h>
-#include <bits/types.h>
-
-__BEGIN_DECLS
-
-/* Type of the REQUEST argument to `ptrace.' */
-enum __ptrace_request
-{
- /* Indicate that the process making this request should be traced.
- All signals received by this process can be intercepted by its
- parent, and its parent can use the other `ptrace' requests. */
- PTRACE_TRACEME = 0,
-#define PT_TRACE_ME PTRACE_TRACEME
-
- /* Return the word in the process's text space at address ADDR. */
- PTRACE_PEEKTEXT = 1,
-#define PT_READ_I PTRACE_PEEKTEXT
-
- /* Return the word in the process's data space at address ADDR. */
- PTRACE_PEEKDATA = 2,
-#define PT_READ_D PTRACE_PEEKDATA
-
- /* Return the word in the process's user area at offset ADDR. */
- PTRACE_PEEKUSER = 3,
-#define PT_READ_U PTRACE_PEEKUSER
-
- /* Write the word DATA into the process's text space at address ADDR. */
- PTRACE_POKETEXT = 4,
-#define PT_WRITE_I PTRACE_POKETEXT
-
- /* Write the word DATA into the process's data space at address ADDR. */
- PTRACE_POKEDATA = 5,
-#define PT_WRITE_D PTRACE_POKEDATA
-
- /* Write the word DATA into the process's user area at offset ADDR. */
- PTRACE_POKEUSER = 6,
-#define PT_WRITE_U PTRACE_POKEUSER
-
- /* Continue the process. */
- PTRACE_CONT = 7,
-#define PT_CONTINUE PTRACE_CONT
-
- /* Kill the process. */
- PTRACE_KILL = 8,
-#define PT_KILL PTRACE_KILL
-
- /* Single step the process. */
- PTRACE_SINGLESTEP = 9,
-#define PT_STEP PTRACE_SINGLESTEP
-
- /* Get all general purpose registers used by a process. */
- PTRACE_GETREGS = 12,
-#define PT_GETREGS PTRACE_GETREGS
-
- /* Set all general purpose registers used by a process. */
- PTRACE_SETREGS = 13,
-#define PT_SETREGS PTRACE_SETREGS
-
- /* Get all floating point registers used by a process. */
- PTRACE_GETFPREGS = 14,
-#define PT_GETFPREGS PTRACE_GETFPREGS
-
- /* Set all floating point registers used by a process. */
- PTRACE_SETFPREGS = 15,
-#define PT_SETFPREGS PTRACE_SETFPREGS
-
- /* Attach to a process that is already running. */
- PTRACE_ATTACH = 16,
-#define PT_ATTACH PTRACE_ATTACH
-
- /* Detach from a process attached to with PTRACE_ATTACH. */
- PTRACE_DETACH = 17,
-#define PT_DETACH PTRACE_DETACH
-
- /* Get the iWMMXt state of a process. */
- PTRACE_GETWMMXREGS = 18,
-#define PT_GETWMMXREGS PTRACE_GETWMMXREGS
-
- /* Set the iWMMXt state of a process. */
- PTRACE_SETWMMXREGS = 19,
-#define PT_SETWMMXREGS PTRACE_SETWMMXREGS
-
- /* Get the thread pointer of a process. */
- PTRACE_GET_THREAD_AREA = 22,
-#define PT_GET_THREAD_AREA PTRACE_GET_THREAD_AREA
-
- /* Change the syscall number of a process. */
- PTRACE_SET_SYSCALL = 23,
-#define PT_SET_SYSCALL PTRACE_SET_SYSCALL
-
- /* Continue and stop at the next entry to or return from syscall. */
- PTRACE_SYSCALL = 24,
-#define PT_SYSCALL PTRACE_SYSCALL
-
- /* Get the Crunch state of a process. */
- PTRACE_GETCRUNCHREGS = 25,
-#define PT_GETCRUNCHREGS PTRACE_GETCRUNCHREGS
-
- /* Set the Crunch state of a process. */
- PTRACE_SETCRUNCHREGS = 26,
-#define PT_SETCRUNCHREGS PTRACE_SETCRUNCHREGS
-
- /* Get all VFP registers used by a process. */
- PTRACE_GETVFPREGS = 27,
-#define PT_GETVFPREGS PTRACE_GETVFPREGS
-
- /* Set all VFP registers used by a process. */
- PTRACE_SETVFPREGS = 28,
-#define PT_SETVFPREGS PTRACE_SETVFPREGS
-
- /* Get all hardware breakpoint registers. */
- PTRACE_GETHBPREGS = 29,
-#define PT_GETHBPREGS PTRACE_GETHBPREGS
-
- /* Set all hardware breakpoint registers. */
- PTRACE_SETHBPREGS = 30,
-#define PT_SETHBPREGS PTRACE_SETHBPREGS
-
- /* Get the ELF fdpic loadmap address. */
- PTRACE_GETFDPIC = 31,
-#define PT_GETFDPIC PTRACE_GETFDPIC
-
- /* Set ptrace filter options. */
- PTRACE_SETOPTIONS = 0x4200,
-#define PT_SETOPTIONS PTRACE_SETOPTIONS
-
- /* Get last ptrace message. */
- PTRACE_GETEVENTMSG = 0x4201,
-#define PT_GETEVENTMSG PTRACE_GETEVENTMSG
-
- /* Get siginfo for process. */
- PTRACE_GETSIGINFO = 0x4202,
-#define PT_GETSIGINFO PTRACE_GETSIGINFO
-
- /* Set new siginfo for process. */
- PTRACE_SETSIGINFO = 0x4203,
-#define PT_SETSIGINFO PTRACE_SETSIGINFO
-
- /* Get register content. */
- PTRACE_GETREGSET = 0x4204,
-#define PTRACE_GETREGSET PTRACE_GETREGSET
-
- /* Set register content. */
- PTRACE_SETREGSET = 0x4205,
-#define PTRACE_SETREGSET PTRACE_SETREGSET
-
- /* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
- signal or group stop state. */
- PTRACE_SEIZE = 0x4206,
-#define PTRACE_SEIZE PTRACE_SEIZE
-
- /* Trap seized tracee. */
- PTRACE_INTERRUPT = 0x4207,
-#define PTRACE_INTERRUPT PTRACE_INTERRUPT
-
- /* Wait for next group event. */
- PTRACE_LISTEN = 0x4208,
-#define PTRACE_LISTEN PTRACE_LISTEN
-
- /* Retrieve siginfo_t structures without removing signals from a queue. */
- PTRACE_PEEKSIGINFO = 0x4209,
-#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
-
- /* Get the mask of blocked signals. */
- PTRACE_GETSIGMASK = 0x420a,
-#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
-
- /* Change the mask of blocked signals. */
- PTRACE_SETSIGMASK = 0x420b,
-#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
-
- /* Get seccomp BPF filters. */
- PTRACE_SECCOMP_GET_FILTER = 0x420c,
-#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
-
- /* Get seccomp BPF filter metadata. */
- PTRACE_SECCOMP_GET_METADATA = 0x420d,
-#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
-
- /* Get information about system call. */
- PTRACE_GET_SYSCALL_INFO = 0x420e,
-#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
-
- /* Get rseq configuration information. */
- PTRACE_GET_RSEQ_CONFIGURATION = 0x420f,
-#define PTRACE_GET_RSEQ_CONFIGURATION PTRACE_GET_RSEQ_CONFIGURATION
-
- /* Set configuration for syscall user dispatch. */
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG = 0x4210,
-#define PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-
- /* Get configuration for syscall user dispatch. */
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG = 0x4211
-#define PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-};
-
-
-#include <bits/ptrace-shared.h>
-
-__END_DECLS
-
-#endif /* _SYS_PTRACE_H */
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/sys/ucontext.h
@@ -1,144 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* System V/ARM ABI compliant context switching support. */
-
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include <features.h>
-
-#include <bits/types/sigset_t.h>
-#include <bits/types/stack_t.h>
-
-
-#ifdef __USE_MISC
-# define __ctx(fld) fld
-#else
-# define __ctx(fld) __ ## fld
-#endif
-
-#ifdef __USE_MISC
-typedef int greg_t;
-
-/* Number of general registers. */
-# define NGREG 18
-
-/* Container for all general registers. */
-typedef greg_t gregset_t[NGREG];
-
-/* Number of each register is the `gregset_t' array. */
-enum
-{
- REG_R0 = 0,
-# define REG_R0 REG_R0
- REG_R1 = 1,
-# define REG_R1 REG_R1
- REG_R2 = 2,
-# define REG_R2 REG_R2
- REG_R3 = 3,
-# define REG_R3 REG_R3
- REG_R4 = 4,
-# define REG_R4 REG_R4
- REG_R5 = 5,
-# define REG_R5 REG_R5
- REG_R6 = 6,
-# define REG_R6 REG_R6
- REG_R7 = 7,
-# define REG_R7 REG_R7
- REG_R8 = 8,
-# define REG_R8 REG_R8
- REG_R9 = 9,
-# define REG_R9 REG_R9
- REG_R10 = 10,
-# define REG_R10 REG_R10
- REG_R11 = 11,
-# define REG_R11 REG_R11
- REG_R12 = 12,
-# define REG_R12 REG_R12
- REG_R13 = 13,
-# define REG_R13 REG_R13
- REG_R14 = 14,
-# define REG_R14 REG_R14
- REG_R15 = 15
-# define REG_R15 REG_R15
-};
-
-struct _libc_fpstate
-{
- struct
- {
- unsigned int sign1:1;
- unsigned int unused:15;
- unsigned int sign2:1;
- unsigned int exponent:14;
- unsigned int j:1;
- unsigned int mantissa1:31;
- unsigned int mantissa0:32;
- } fpregs[8];
- unsigned int fpsr:32;
- unsigned int fpcr:32;
- unsigned char ftype[8];
- unsigned int init_flag;
-};
-/* Structure to describe FPU registers. */
-typedef struct _libc_fpstate fpregset_t;
-#endif
-
-/* Context to describe whole processor state. This only describes
- the core registers; coprocessor registers get saved elsewhere
- (e.g. in uc_regspace, or somewhere unspecified on the stack
- during non-RT signal handlers). */
-typedef struct
- {
- unsigned long int __ctx(trap_no);
- unsigned long int __ctx(error_code);
- unsigned long int __ctx(oldmask);
- unsigned long int __ctx(arm_r0);
- unsigned long int __ctx(arm_r1);
- unsigned long int __ctx(arm_r2);
- unsigned long int __ctx(arm_r3);
- unsigned long int __ctx(arm_r4);
- unsigned long int __ctx(arm_r5);
- unsigned long int __ctx(arm_r6);
- unsigned long int __ctx(arm_r7);
- unsigned long int __ctx(arm_r8);
- unsigned long int __ctx(arm_r9);
- unsigned long int __ctx(arm_r10);
- unsigned long int __ctx(arm_fp);
- unsigned long int __ctx(arm_ip);
- unsigned long int __ctx(arm_sp);
- unsigned long int __ctx(arm_lr);
- unsigned long int __ctx(arm_pc);
- unsigned long int __ctx(arm_cpsr);
- unsigned long int __ctx(fault_address);
- } mcontext_t;
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long __ctx(uc_flags);
- struct ucontext_t *uc_link;
- stack_t uc_stack;
- mcontext_t uc_mcontext;
- sigset_t uc_sigmask;
- unsigned long __ctx(uc_regspace)[128] __attribute__((__aligned__(8)));
- } ucontext_t;
-
-#undef __ctx
-
-#endif /* sys/ucontext.h */
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/sys/user.h
@@ -1,71 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_USER_H
-#define _SYS_USER_H 1
-
-/* The whole purpose of this file is for GDB and GDB only. Don't read
- too much into it. Don't use it for anything other than GDB unless
- you know what you are doing. */
-
-struct user_fpregs
-{
- struct fp_reg
- {
- unsigned int sign1:1;
- unsigned int unused:15;
- unsigned int sign2:1;
- unsigned int exponent:14;
- unsigned int j:1;
- unsigned int mantissa1:31;
- unsigned int mantissa0:32;
- } fpregs[8];
- unsigned int fpsr:32;
- unsigned int fpcr:32;
- unsigned char ftype[8];
- unsigned int init_flag;
-};
-
-struct user_regs
-{
- unsigned long int uregs[18];
-};
-
-struct user
-{
- struct user_regs regs; /* General registers */
- int u_fpvalid; /* True if math co-processor being used. */
-
- unsigned long int u_tsize; /* Text segment size (pages). */
- unsigned long int u_dsize; /* Data segment size (pages). */
- unsigned long int u_ssize; /* Stack segment size (pages). */
-
- unsigned long start_code; /* Starting virtual address of text. */
- unsigned long start_stack; /* Starting virtual address of stack. */
-
- long int signal; /* Signal that caused the core dump. */
- int reserved; /* No longer used */
- struct user_regs *u_ar0; /* help gdb to find the general registers. */
-
- unsigned long magic; /* uniquely identify a core file */
- char u_comm[32]; /* User command that was responsible */
- int u_debugreg[8];
- struct user_fpregs u_fp; /* Floating point registers */
- struct user_fpregs *u_fp0; /* help gdb to find the FP registers. */
-};
-
-#endif /* sys/user.h */
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/fpu_control.h
@@ -1,75 +0,0 @@
-/* FPU control word definitions. ARM VFP version.
- Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FPU_CONTROL_H
-#define _FPU_CONTROL_H
-
-#if !(defined(_LIBC) && !defined(_LIBC_TEST)) && defined(__SOFTFP__)
-
-#define _FPU_RESERVED 0xffffffff
-#define _FPU_DEFAULT 0x00000000
-typedef unsigned int fpu_control_t;
-#define _FPU_GETCW(cw) (cw) = 0
-#define _FPU_SETCW(cw) (void) (cw)
-extern fpu_control_t __fpu_control;
-
-#else
-
-/* masking of interrupts */
-#define _FPU_MASK_IM 0x00000100 /* invalid operation */
-#define _FPU_MASK_ZM 0x00000200 /* divide by zero */
-#define _FPU_MASK_OM 0x00000400 /* overflow */
-#define _FPU_MASK_UM 0x00000800 /* underflow */
-#define _FPU_MASK_PM 0x00001000 /* inexact */
-
-#define _FPU_MASK_NZCV 0xf0000000 /* NZCV flags */
-#define _FPU_MASK_RM 0x00c00000 /* rounding mode */
-#define _FPU_MASK_EXCEPT 0x00001f1f /* all exception flags */
-
-/* Some bits in the FPSCR are not yet defined. They must be preserved when
- modifying the contents. */
-#define _FPU_RESERVED 0x00086060
-#define _FPU_DEFAULT 0x00000000
-
-/* Default + exceptions enabled. */
-#define _FPU_IEEE (_FPU_DEFAULT | 0x00001f00)
-
-/* Type of the control word. */
-typedef unsigned int fpu_control_t;
-
-/* Macros for accessing the hardware control word. */
-#ifdef __SOFTFP__
-/* This is fmrx %0, fpscr. */
-# define _FPU_GETCW(cw) \
- __asm__ __volatile__ ("mrc p10, 7, %0, cr1, cr0, 0" : "=r" (cw))
-/* This is fmxr fpscr, %0. */
-# define _FPU_SETCW(cw) \
- __asm__ __volatile__ ("mcr p10, 7, %0, cr1, cr0, 0" : : "r" (cw))
-#else
-# define _FPU_GETCW(cw) \
- __asm__ __volatile__ ("vmrs %0, fpscr" : "=r" (cw))
-# define _FPU_SETCW(cw) \
- __asm__ __volatile__ ("vmsr fpscr, %0" : : "r" (cw))
-#endif
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-#endif /* __SOFTFP__ */
-
-#endif /* _FPU_CONTROL_H */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/ansi.h
@@ -1,3 +0,0 @@
-/* $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $ */
-
-#include <sys/common_ansi.h>
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/aout_machdep.h
@@ -1,59 +0,0 @@
-/* $NetBSD: aout_machdep.h,v 1.8 2018/03/17 04:16:09 ryo Exp $ */
-
-/*
- * Copyright (c) 1994-1996 Mark Brinicombe.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Mark Brinicombe
- * 4. The name of the author may not be used to endorse or promote
- * products derived from this software without specific prior written
- * permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef _ARM_AOUT_MACHDEP_H_
-#define _ARM_AOUT_MACHDEP_H_
-
-#define AOUT_LDPGSZ 4096
-
-/* Relocation format. */
-
-struct relocation_info_arm6 {
- int r_address; /* offset in text or data segment */
- unsigned r_symbolnum:24;/* ordinal number of add symbol */
- unsigned r_pcrel:1; /* 1 if value should be pc-relative */
- unsigned r_length:2; /* 0=byte, 1=word, 2=long, 3=24bits shifted by 2 */
- unsigned r_extern:1; /* 1 if need to add symbol to value */
- unsigned r_neg:1; /* 1 if addend is negative */
- unsigned r_baserel:1; /* 1 if linkage table relative */
- unsigned r_jmptable:1; /* 1 if relocation to jump table */
- unsigned r_relative:1; /* 1 if load address relative */
-};
-
-#define relocation_info relocation_info_arm6
-
-/* No special executable format */
-#define cpu_exec_aout_makecmds(a, b) ENOEXEC
-
-#endif /* _ARM_AOUT_MACHDEP_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/asm.h
@@ -1,305 +0,0 @@
-/* $NetBSD: asm.h,v 1.34 2020/04/23 23:22:41 jakllsch Exp $ */
-
-/*-
- * Copyright (c) 2014 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Matt Thomas of 3am Software Foundry.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Copyright (c) 1990 The Regents of the University of California.
- * All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * from: @(#)asm.h 5.5 (Berkeley) 5/7/91
- */
-
-#ifndef _ARM_ASM_H_
-#define _ARM_ASM_H_
-
-#include <arm/cdefs.h>
-#if defined(_KERNEL_OPT)
-#include "opt_cpuoptions.h"
-#endif
-
-#ifdef __thumb__
-#define THUMB_INSN(n) n
-#else
-#define THUMB_INSN(n)
-#endif
-
-#define __BIT(n) (1 << (n))
-#define __BITS(hi,lo) ((~((~0)<<((hi)+1)))&((~0)<<(lo)))
-
-#define __LOWEST_SET_BIT(__mask) ((((__mask) - 1) & (__mask)) ^ (__mask))
-#define __SHIFTOUT(__x, __mask) (((__x) & (__mask)) / __LOWEST_SET_BIT(__mask))
-#define __SHIFTIN(__x, __mask) ((__x) * __LOWEST_SET_BIT(__mask))
-
-#define _C_LABEL(x) x
-#define _ASM_LABEL(x) x
-
-#ifdef __STDC__
-# define __CONCAT(x,y) x ## y
-# define __STRING(x) #x
-#else
-# define __CONCAT(x,y) x/**/y
-# define __STRING(x) "x"
-#endif
-
-#ifndef _ALIGN_TEXT
-# define _ALIGN_TEXT .align 2
-#endif
-
-#ifndef _TEXT_SECTION
-#define _TEXT_SECTION .text
-#endif
-
-#ifdef __arm__
-
- .syntax unified
-
-/*
- * gas/arm uses @ as a single comment character and thus cannot be used here
- * Instead it recognised the # instead of an @ symbols in .type directives
- * We define a couple of macros so that assembly code will not be dependent
- * on one or the other.
- */
-#define _ASM_TYPE_FUNCTION %function
-#define _ASM_TYPE_OBJECT %object
-#define _THUMB_ENTRY(x) \
- _TEXT_SECTION; _ALIGN_TEXT; .globl x; .type x,_ASM_TYPE_FUNCTION; \
- .thumb_func; .code 16; x:
-#define _ARM_ENTRY(x) \
- _TEXT_SECTION; _ALIGN_TEXT; .globl x; .type x,_ASM_TYPE_FUNCTION; \
- .code 32; x:
-#ifdef __thumb__
-#define _ENTRY(x) _THUMB_ENTRY(x)
-#else
-#define _ENTRY(x) _ARM_ENTRY(x)
-#endif
-#define _END(x) .size x,.-x
-
-#ifdef GPROF
-# define _PROF_PROLOGUE \
- mov ip, lr; bl __mcount
-#else
-# define _PROF_PROLOGUE
-#endif
-#endif
-
-#ifdef __aarch64__
-#define _ASM_TYPE_FUNCTION @function
-#define _ASM_TYPE_OBJECT @object
-#define _ENTRY(x) \
- _TEXT_SECTION; _ALIGN_TEXT; .globl x; .type x,_ASM_TYPE_FUNCTION; x:
-#define _END(x) .size x,.-x
-
-#ifdef GPROF
-# define _PROF_PROLOGUE \
- stp x29, x30, [sp, #-16]!; \
- mov fp, sp; \
- bl __mcount; \
- ldp x29, x30, [sp], #16;
-#else
-# define _PROF_PROLOGUE
-#endif
-
-#ifdef __PIC__
-#define GOTREF(x) :got:x
-#define GOTLO12(x) :got_lo12:x
-#else
-#define GOTREF(x) x
-#define GOTLO12(x) :lo12:x
-#endif
-#endif
-
-#ifdef ARMV85_BTI
-#define _BTI_PROLOGUE \
- .byte 0x5F, 0x24, 0x03, 0xD5 /* the "bti c" instruction */
-#else
-#define _BTI_PROLOGUE /* nothing */
-#endif
-
-#define ENTRY(y) _ENTRY(_C_LABEL(y)); _BTI_PROLOGUE ; _PROF_PROLOGUE
-#define ENTRY_NP(y) _ENTRY(_C_LABEL(y)); _BTI_PROLOGUE
-#define ENTRY_NBTI(y) _ENTRY(_C_LABEL(y))
-#define END(y) _END(_C_LABEL(y))
-#define ARM_ENTRY(y) _ARM_ENTRY(_C_LABEL(y)); _PROF_PROLOGUE
-#define ARM_ENTRY_NP(y) _ARM_ENTRY(_C_LABEL(y))
-#define THUMB_ENTRY(y) _THUMB_ENTRY(_C_LABEL(y)); _PROF_PROLOGUE
-#define THUMB_ENTRY_NP(y) _THUMB_ENTRY(_C_LABEL(y))
-#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
-#define ASENTRY_NP(y) _ENTRY(_ASM_LABEL(y))
-#define ASEND(y) _END(_ASM_LABEL(y))
-#define ARM_ASENTRY(y) _ARM_ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
-#define ARM_ASENTRY_NP(y) _ARM_ENTRY(_ASM_LABEL(y))
-#define THUMB_ASENTRY(y) _THUMB_ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
-#define THUMB_ASENTRY_NP(y) _THUMB_ENTRY(_ASM_LABEL(y))
-
-#define ASMSTR .asciz
-
-#ifdef __PIC__
-#define REL_SYM(a, b) ((a) - (b))
-#define PLT_SYM(x) x
-#define GOT_SYM(x) PIC_SYM(x, GOT)
-#define GOT_GET(x,got,sym) \
- ldr x, sym; \
- ldr x, [x, got]
-#define GOT_INIT(got,gotsym,pclabel) \
- ldr got, gotsym; \
- pclabel: add got, got, pc
-#ifdef __thumb__
-#define GOT_INITSYM(gotsym,pclabel) \
- .align 0; \
- gotsym: .word _C_LABEL(_GLOBAL_OFFSET_TABLE_) - (pclabel+4)
-#else
-#define GOT_INITSYM(gotsym,pclabel) \
- .align 0; \
- gotsym: .word _C_LABEL(_GLOBAL_OFFSET_TABLE_) - (pclabel+8)
-#endif
-
-#ifdef __STDC__
-#define PIC_SYM(x,y) x ## ( ## y ## )
-#else
-#define PIC_SYM(x,y) x/**/(/**/y/**/)
-#endif
-
-#else
-#define REL_SYM(a, b) (a)
-#define PLT_SYM(x) x
-#define GOT_SYM(x) x
-#define GOT_GET(x,got,sym) \
- ldr x, sym;
-#define GOT_INIT(got,gotsym,pclabel)
-#define GOT_INITSYM(gotsym,pclabel)
-#define PIC_SYM(x,y) x
-#endif /* __PIC__ */
-
-#define RCSID(x) .pushsection ".ident","MS",%progbits,1; \
- .asciz x; \
- .popsection
-
-#define WEAK_ALIAS(alias,sym) \
- .weak alias; \
- alias = sym
-
-/*
- * STRONG_ALIAS: create a strong alias.
- */
-#define STRONG_ALIAS(alias,sym) \
- .globl alias; \
- alias = sym
-
-#ifdef __STDC__
-#define WARN_REFERENCES(sym,msg) \
- .pushsection .gnu.warning. ## sym; \
- .ascii msg; \
- .popsection
-#else
-#define WARN_REFERENCES(sym,msg) \
- .pushsection .gnu.warning./**/sym; \
- .ascii msg; \
- .popsection
-#endif /* __STDC__ */
-
-#ifdef __thumb__
-# define XPUSH push
-# define XPOP pop
-# define XPOPRET pop {pc}
-#else
-# define XPUSH stmfd sp!,
-# define XPOP ldmfd sp!,
-# ifdef _ARM_ARCH_5
-# define XPOPRET ldmfd sp!, {pc}
-# else
-# define XPOPRET ldmfd sp!, {lr}; mov pc, lr
-# endif
-#endif
-
-#if defined(__aarch64__)
-# define RET ret
-#elif defined (_ARM_ARCH_4T)
-# define RET bx lr
-# define RETr(r) bx r
-# if defined(__thumb__)
-# if defined(_ARM_ARCH_7)
-# define RETc(c) it c; __CONCAT(bx,c) lr
-# endif
-# else
-# define RETc(c) __CONCAT(bx,c) lr
-# endif
-#else
-# define RET mov pc, lr
-# define RETr(r) mov pc, r
-# define RETc(c) __CONCAT(mov,c) pc, lr
-#endif
-
-#ifdef _ARM_ARCH_7
-#define KMODTRAMPOLINE(n) \
-_ENTRY(__wrap_ ## n) \
- movw ip, #:lower16:n; \
- movt ip, #:upper16:n; \
- bx ip
-#elif defined(_ARM_ARCH_4T)
-#define KMODTRAMPOLINE(n) \
-_ENTRY(__wrap_ ## n) \
- ldr ip, [pc]; \
- bx ip; \
- .word n
-#else
-#define KMODTRAMPOLINE(n) \
-_ENTRY(__wrap_ ## n) \
- ldr pc, [pc, #-4]; \
- .word n
-#endif
-
-#endif /* !_ARM_ASM_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/bswap.h
@@ -1,15 +0,0 @@
-/* $NetBSD: bswap.h,v 1.6 2014/01/29 01:36:43 matt Exp $ */
-
-#ifndef _ARM_BSWAP_H_
-#define _ARM_BSWAP_H_
-
-#ifdef __aarch64__
-#include <aarch64/byte_swap.h>
-#else
-#include <arm/byte_swap.h>
-#endif
-
-#define __BSWAP_RENAME
-#include <sys/bswap.h>
-
-#endif /* !_ARM_BSWAP_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/byte_swap.h
@@ -1,121 +0,0 @@
-/* $NetBSD: byte_swap.h,v 1.16 2017/01/17 11:08:50 rin Exp $ */
-
-/*-
- * Copyright (c) 1997, 1999, 2002 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Charles M. Hannum, Neil A. Carson, and Jason R. Thorpe.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ARM_BYTE_SWAP_H_
-#define _ARM_BYTE_SWAP_H_
-
-#ifdef _LOCORE
-
-#if defined(_ARM_ARCH_6) || defined(_ARM_ARCH_7)
-
-#define BSWAP16(_src, _dst, _tmp) \
- rev16 _dst, _src
-#define BSWAP32(_src, _dst, _tmp) \
- rev _dst, _src
-
-#else
-
-#define BSWAP16(_src, _dst, _tmp) \
- mov _tmp, _src, ror #8 ;\
- orr _tmp, _tmp, _tmp, lsr #16 ;\
- bic _dst, _tmp, _tmp, lsl #16
-
-#define BSWAP32(_src, _dst, _tmp) \
- eor _tmp, _src, _src, ror #16 ;\
- bic _tmp, _tmp, #0x00FF0000 ;\
- mov _dst, _src, ror #8 ;\
- eor _dst, _dst, _tmp, lsr #8
-
-#endif
-
-
-#else
-
-#ifdef __GNUC__
-#include <sys/types.h>
-__BEGIN_DECLS
-
-#define __BYTE_SWAP_U32_VARIABLE __byte_swap_u32_variable
-static __inline uint32_t
-__byte_swap_u32_variable(uint32_t v)
-{
- uint32_t t1;
-
-#ifdef _ARM_ARCH_6
- if (!__builtin_constant_p(v)) {
- __asm("rev\t%0, %1" : "=r" (v) : "0" (v));
- return v;
- }
-#endif
-
- t1 = v ^ ((v << 16) | (v >> 16));
- t1 &= 0xff00ffffU;
- v = (v >> 8) | (v << 24);
- v ^= (t1 >> 8);
-
- return v;
-}
-
-#define __BYTE_SWAP_U16_VARIABLE __byte_swap_u16_variable
-static __inline uint16_t
-__byte_swap_u16_variable(uint16_t v)
-{
-
-#ifdef _ARM_ARCH_6
- if (!__builtin_constant_p(v)) {
- uint32_t v32 = v;
- __asm("rev16\t%0, %1" : "=r" (v32) : "0" (v32));
- return (uint16_t)v32;
- }
-#elif !defined(__thumb__) && 0 /* gcc produces decent code for this */
- if (!__builtin_constant_p(v)) {
- uint32_t v0 = v;
- __asm volatile(
- "mov %0, %1, ror #8\n"
- "orr %0, %0, %0, lsr #16\n"
- "bic %0, %0, %0, lsl #16"
- : "=&r" (v0)
- : "0" (v0));
- return (uint16_t)v0;
- }
-#endif
- v &= 0xffff;
- v = (uint16_t)((v >> 8) | (v << 8));
-
- return v;
-}
-
-__END_DECLS
-#endif
-
-#endif /* _LOCORE */
-
-#endif /* _ARM_BYTE_SWAP_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/cdefs.h
@@ -1,70 +0,0 @@
-/* $NetBSD: cdefs.h,v 1.19 2020/12/01 02:43:14 rin Exp $ */
-
-#ifndef _ARM_CDEFS_H_
-#define _ARM_CDEFS_H_
-
-#ifndef __lint__
-#if (__GNUC__ == 4 && __GNUC_MINOR__ < 1) || __GNUC__ < 4
-#error GCC 4.1 or compatible required.
-#endif
-#endif
-
-
-#if defined (__ARM_ARCH_8A__) || defined (__ARM_ARCH_8A) || \
- __ARM_ARCH == 8
- /* __ARM_ARCH_8A__ is a typo */
-#define _ARM_ARCH_8
-#endif
-
-#if defined (_ARM_ARCH_8) || defined (__ARM_ARCH_7__) || \
- defined (__ARM_ARCH_7A__) || defined (__ARM_ARCH_7R__) || \
- defined (__ARM_ARCH_7M__) || defined (__ARM_ARCH_7EM__)
- /* 7R, 7M, 7EM are for non MMU arms */
-#define _ARM_ARCH_7
-#endif
-
-#if defined (_ARM_ARCH_7) || defined (__ARM_ARCH_6T2__)
-#define _ARM_ARCH_T2 /* Thumb2 */
-#endif
-
-#if defined (_ARM_ARCH_T2) || defined (__ARM_ARCH_6__) || \
- defined (__ARM_ARCH_6J__) || \
- defined (__ARM_ARCH_6K__) || defined (__ARM_ARCH_6KZ__) || \
- defined (__ARM_ARCH_6Z__) || defined (__ARM_ARCH_6ZK__) || \
- defined (__ARM_ARCH_6ZM__)
-#define _ARM_ARCH_6
-#endif
-
-#if defined (_ARM_ARCH_6) || defined (__ARM_ARCH_5T__) || \
- defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__)
-#define _ARM_ARCH_5T
-#endif
-
-#if defined (_ARM_ARCH_6) || defined (_ARM_ARCH_5T) || defined (__ARM_ARCH_5__)
-#define _ARM_ARCH_5
-#endif
-
-#if defined (_ARM_ARCH_5) || defined (__ARM_ARCH_4T__)
-#define _ARM_ARCH_4T
-#endif
-
-#if defined (_ARM_ARCH_T2) || \
- (!defined (__thumb__) && \
- (defined (_ARM_ARCH_6) || defined (__ARM_ARCH_5TE__) || \
- defined (__ARM_ARCH_5TEJ__)))
-#define _ARM_ARCH_DWORD_OK
-#endif
-
-#if defined (__ARMEB__) && defined (_ARM_ARCH_6)
-#define _ARM_ARCH_BE8
-#endif
-
-#if defined(__ARM_PCS_AAPCS64)
-#define __ALIGNBYTES (sizeof(__int128_t) - 1)
-#elif defined(__ARM_EABI__)
-#define __ALIGNBYTES (sizeof(long long) - 1)
-#else
-#define __ALIGNBYTES (sizeof(int) - 1)
-#endif
-
-#endif /* !_ARM_CDEFS_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/cpu.h
@@ -1,399 +0,0 @@
-/* $NetBSD: cpu.h,v 1.123.4.1 2023/08/09 17:42:01 martin Exp $ */
-
-/*
- * Copyright (c) 1994-1996 Mark Brinicombe.
- * Copyright (c) 1994 Brini.
- * All rights reserved.
- *
- * This code is derived from software written for Brini by Mark Brinicombe
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Brini.
- * 4. The name of the company nor the name of the author may be used to
- * endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY BRINI ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL BRINI OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * RiscBSD kernel project
- *
- * cpu.h
- *
- * CPU specific symbols
- *
- * Created : 18/09/94
- *
- * Based on kate/katelib/arm6.h
- */
-
-#ifndef _ARM_CPU_H_
-#define _ARM_CPU_H_
-
-#ifdef _KERNEL
-#ifndef _LOCORE
-
-typedef unsigned long mpidr_t;
-
-#ifdef MULTIPROCESSOR
-extern u_int arm_cpu_max;
-extern mpidr_t cpu_mpidr[];
-
-void cpu_init_secondary_processor(int);
-void cpu_boot_secondary_processors(void);
-void cpu_mpstart(void);
-bool cpu_hatched_p(u_int);
-
-void cpu_clr_mbox(int);
-void cpu_set_hatched(int);
-
-#endif
-
-struct proc;
-
-void cpu_proc_fork(struct proc *, struct proc *);
-
-#endif /* !_LOCORE */
-#endif /* _KERNEL */
-
-#ifdef __arm__
-
-/*
- * User-visible definitions
- */
-
-/* CTL_MACHDEP definitions. */
-#define CPU_DEBUG 1 /* int: misc kernel debug control */
-#define CPU_BOOTED_DEVICE 2 /* string: device we booted from */
-#define CPU_BOOTED_KERNEL 3 /* string: kernel we booted */
-#define CPU_CONSDEV 4 /* struct: dev_t of our console */
-#define CPU_POWERSAVE 5 /* int: use CPU powersave mode */
-
-#if defined(_KERNEL) || defined(_KMEMUSER)
-
-/*
- * Kernel-only definitions
- */
-
-#if !defined(_MODULE) && defined(_KERNEL_OPT)
-#include "opt_gprof.h"
-#include "opt_multiprocessor.h"
-#include "opt_cpuoptions.h"
-#include "opt_lockdebug.h"
-#include "opt_cputypes.h"
-#endif /* !_MODULE && _KERNEL_OPT */
-
-#ifndef _LOCORE
-#if defined(TPIDRPRW_IS_CURLWP) || defined(TPIDRPRW_IS_CURCPU)
-#include <arm/armreg.h>
-#endif /* TPIDRPRW_IS_CURLWP || TPIDRPRW_IS_CURCPU */
-
-/* 1 == use cpu_sleep(), 0 == don't */
-extern int cpu_do_powersave;
-extern int cpu_fpu_present;
-
-/* All the CLKF_* macros take a struct clockframe * as an argument. */
-
-/*
- * CLKF_USERMODE: Return TRUE/FALSE (1/0) depending on whether the
- * frame came from USR mode or not.
- */
-#define CLKF_USERMODE(cf) (((cf)->cf_tf.tf_spsr & PSR_MODE) == PSR_USR32_MODE)
-
-/*
- * CLKF_INTR: True if we took the interrupt from inside another
- * interrupt handler.
- */
-#if !defined(__ARM_EABI__)
-/* Hack to treat FPE time as interrupt time so we can measure it */
-#define CLKF_INTR(cf) \
- ((curcpu()->ci_intr_depth > 1) || \
- ((cf)->cf_tf.tf_spsr & PSR_MODE) == PSR_UND32_MODE)
-#else
-#define CLKF_INTR(cf) ((void)(cf), curcpu()->ci_intr_depth > 1)
-#endif
-
-/*
- * CLKF_PC: Extract the program counter from a clockframe
- */
-#define CLKF_PC(frame) (frame->cf_tf.tf_pc)
-
-/*
- * LWP_PC: Find out the program counter for the given lwp.
- */
-#define LWP_PC(l) (lwp_trapframe(l)->tf_pc)
-
-/*
- * Per-CPU information. For now we assume one CPU.
- */
-#ifdef _KERNEL
-static inline int curcpl(void);
-static inline void set_curcpl(int);
-static inline void cpu_dosoftints(void);
-#endif
-
-#include <sys/param.h>
-
-#ifdef _KMEMUSER
-#include <sys/intr.h>
-#endif
-#include <sys/atomic.h>
-#include <sys/cpu_data.h>
-#include <sys/device_if.h>
-#include <sys/evcnt.h>
-
-/*
- * Cache info variables.
- */
-#define CACHE_TYPE_VIVT 0
-#define CACHE_TYPE_xxPT 1
-#define CACHE_TYPE_VIPT 1
-#define CACHE_TYPE_PIxx 2
-#define CACHE_TYPE_PIPT 3
-
-/* PRIMARY CACHE VARIABLES */
-struct arm_cache_info {
- u_int icache_size;
- u_int icache_line_size;
- u_int icache_ways;
- u_int icache_way_size;
- u_int icache_sets;
-
- u_int dcache_size;
- u_int dcache_line_size;
- u_int dcache_ways;
- u_int dcache_way_size;
- u_int dcache_sets;
-
- uint8_t cache_type;
- bool cache_unified;
- uint8_t icache_type;
- uint8_t dcache_type;
-};
-
-struct cpu_info {
- struct cpu_data ci_data; /* MI per-cpu data */
- device_t ci_dev; /* Device corresponding to this CPU */
- cpuid_t ci_cpuid;
- uint32_t ci_arm_cpuid; /* aggregate CPU id */
- uint32_t ci_arm_cputype; /* CPU type */
- uint32_t ci_arm_cpurev; /* CPU revision */
- uint32_t ci_ctrl; /* The CPU control register */
-
- /*
- * the following are in their own cache line, as they are stored to
- * regularly by remote CPUs; when they were mixed with other fields
- * we observed frequent cache misses.
- */
- int ci_want_resched __aligned(COHERENCY_UNIT);
- /* resched() was called */
- lwp_t * ci_curlwp __aligned(COHERENCY_UNIT);
- /* current lwp */
- lwp_t * ci_onproc; /* current user LWP / kthread */
-
- /*
- * largely CPU-private.
- */
- lwp_t * ci_softlwps[SOFTINT_COUNT] __aligned(COHERENCY_UNIT);
-
- struct cpu_softc *
- ci_softc; /* platform softc */
-
- int ci_cpl; /* current processor level (spl) */
- volatile int ci_hwpl; /* current hardware priority */
- int ci_kfpu_spl;
-
- volatile u_int ci_intr_depth; /* */
- volatile u_int ci_softints;
- volatile uint32_t ci_blocked_pics;
- volatile uint32_t ci_pending_pics;
- volatile uint32_t ci_pending_ipls;
-
- lwp_t * ci_lastlwp; /* last lwp */
-
- struct evcnt ci_arm700bugcount;
- int32_t ci_mtx_count;
- int ci_mtx_oldspl;
- register_t ci_undefsave[3];
- uint32_t ci_vfp_id;
- uint64_t ci_lastintr;
-
- struct pmap_tlb_info *
- ci_tlb_info;
- struct pmap * ci_pmap_lastuser;
- struct pmap * ci_pmap_cur;
- tlb_asid_t ci_pmap_asid_cur;
-
- struct trapframe *
- ci_ddb_regs;
-
- struct evcnt ci_abt_evs[16];
- struct evcnt ci_und_ev;
- struct evcnt ci_und_cp15_ev;
- struct evcnt ci_vfp_evs[3];
-
- uint32_t ci_midr;
- uint32_t ci_actlr;
- uint32_t ci_revidr;
- uint32_t ci_mpidr;
- uint32_t ci_mvfr[2];
-
- uint32_t ci_capacity_dmips_mhz;
-
- struct arm_cache_info
- ci_cacheinfo;
-
-#if defined(GPROF) && defined(MULTIPROCESSOR)
- struct gmonparam *ci_gmon; /* MI per-cpu GPROF */
-#endif
-};
-
-extern struct cpu_info cpu_info_store[];
-
-struct lwp *arm_curlwp(void);
-struct cpu_info *arm_curcpu(void);
-
-#ifdef _KERNEL
-#if defined(_MODULE)
-
-#define curlwp arm_curlwp()
-#define curcpu() arm_curcpu()
-
-#elif defined(TPIDRPRW_IS_CURLWP)
-static inline struct lwp *
-_curlwp(void)
-{
- return (struct lwp *) armreg_tpidrprw_read();
-}
-
-static inline void
-_curlwp_set(struct lwp *l)
-{
- armreg_tpidrprw_write((uintptr_t)l);
-}
-
-// Also in <sys/lwp.h> but also here if this was included before <sys/lwp.h>
-static inline struct cpu_info *lwp_getcpu(struct lwp *);
-
-#define curlwp _curlwp()
-// curcpu() expands into two instructions: a mrc and a ldr
-#define curcpu() lwp_getcpu(_curlwp())
-#elif defined(TPIDRPRW_IS_CURCPU)
-#ifdef __HAVE_PREEMPTION
-#error __HAVE_PREEMPTION requires TPIDRPRW_IS_CURLWP
-#endif
-static inline struct cpu_info *
-curcpu(void)
-{
- return (struct cpu_info *) armreg_tpidrprw_read();
-}
-#elif !defined(MULTIPROCESSOR)
-#define curcpu() (&cpu_info_store[0])
-#elif !defined(__HAVE_PREEMPTION)
-#error MULTIPROCESSOR && !__HAVE_PREEMPTION requires TPIDRPRW_IS_CURCPU or TPIDRPRW_IS_CURLWP
-#else
-#error MULTIPROCESSOR && __HAVE_PREEMPTION requires TPIDRPRW_IS_CURLWP
-#endif /* !TPIDRPRW_IS_CURCPU && !TPIDRPRW_IS_CURLWP */
-
-#ifndef curlwp
-#define curlwp (curcpu()->ci_curlwp)
-#endif
-#define curpcb ((struct pcb *)lwp_getpcb(curlwp))
-
-#define CPU_INFO_ITERATOR int
-#if defined(_MODULE) || defined(MULTIPROCESSOR)
-extern struct cpu_info *cpu_info[];
-#define cpu_number() (curcpu()->ci_index)
-#define CPU_IS_PRIMARY(ci) ((ci)->ci_index == 0)
-#define CPU_INFO_FOREACH(cii, ci) \
- cii = 0, ci = cpu_info[0]; cii < (ncpu ? ncpu : 1) && (ci = cpu_info[cii]) != NULL; cii++
-#else
-#define cpu_number() 0
-
-#define CPU_IS_PRIMARY(ci) true
-#define CPU_INFO_FOREACH(cii, ci) \
- cii = 0, __USE(cii), ci = curcpu(); ci != NULL; ci = NULL
-#endif
-
-#define LWP0_CPU_INFO (&cpu_info_store[0])
-
-static inline int
-curcpl(void)
-{
- return curcpu()->ci_cpl;
-}
-
-static inline void
-set_curcpl(int pri)
-{
- curcpu()->ci_cpl = pri;
-}
-
-static inline void
-cpu_dosoftints(void)
-{
-#ifdef __HAVE_FAST_SOFTINTS
- void dosoftints(void);
-#ifndef __HAVE_PIC_FAST_SOFTINTS
- struct cpu_info * const ci = curcpu();
- if (ci->ci_intr_depth == 0 && (ci->ci_softints >> ci->ci_cpl) > 0)
- dosoftints();
-#endif
-#endif
-}
-
-/*
- * Scheduling glue
- */
-void cpu_signotify(struct lwp *);
-#define setsoftast(ci) (cpu_signotify((ci)->ci_onproc))
-
-/*
- * Give a profiling tick to the current process when the user profiling
- * buffer pages are invalid. On the i386, request an ast to send us
- * through trap(), marking the proc as needing a profiling tick.
- */
-#define cpu_need_proftick(l) ((l)->l_pflag |= LP_OWEUPC, \
- setsoftast(lwp_getcpu(l)))
-
-/*
- * We've already preallocated the stack for the idlelwps for additional CPUs.
- * This hook allows to return them.
- */
-vaddr_t cpu_uarea_alloc_idlelwp(struct cpu_info *);
-
-#ifdef _ARM_ARCH_6
-int cpu_maxproc_hook(int);
-#endif
-
-#endif /* _KERNEL */
-
-#endif /* !_LOCORE */
-
-#endif /* _KERNEL || _KMEMUSER */
-
-#elif defined(__aarch64__)
-
-#include <aarch64/cpu.h>
-
-#endif /* __arm__/__aarch64__ */
-
-#endif /* !_ARM_CPU_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/disklabel.h
@@ -1,105 +0,0 @@
-/* $NetBSD: disklabel.h,v 1.14 2022/05/24 19:37:39 andvar Exp $ */
-
-/*
- * Copyright (c) 1994 Mark Brinicombe.
- * Copyright (c) 1994 Brini.
- * All rights reserved.
- *
- * This code is derived from software written for Brini by Mark Brinicombe
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Brini.
- * 4. The name of the company nor the name of the author may be used to
- * endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY BRINI ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL BRINI OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * RiscBSD kernel project
- *
- * disklabel.h
- *
- * machine specific disk label info
- *
- * Created : 04/10/94
- */
-
-#ifndef _ARM_DISKLABEL_H_
-#define _ARM_DISKLABEL_H_
-
-#ifndef LABELUSESMBR
-#define LABELUSESMBR 1 /* use MBR partitionning */
-#endif
-#define LABELSECTOR 1 /* sector containing label */
-#define LABELOFFSET 0 /* offset of label in sector */
-#define MAXPARTITIONS 16 /* number of partitions */
-#define OLDMAXPARTITIONS 8 /* old number of partitions */
-#ifndef RAW_PART
-#define RAW_PART 2 /* raw partition: XX?c */
-#endif
-
-
-#ifdef __HAVE_OLD_DISKLABEL
-/*
- * We use the highest bit of the minor number for the partition number.
- * This maintains backward compatibility with device nodes created before
- * MAXPARTITIONS was increased.
- */
-#define __ARM_MAXDISKS ((1 << 20) / MAXPARTITIONS)
-#define DISKUNIT(dev) ((minor(dev) / OLDMAXPARTITIONS) % __ARM_MAXDISKS)
-#define DISKPART(dev) ((minor(dev) % OLDMAXPARTITIONS) + \
- ((minor(dev) / (__ARM_MAXDISKS * OLDMAXPARTITIONS)) * OLDMAXPARTITIONS))
-#define DISKMINOR(unit, part) \
- (((unit) * OLDMAXPARTITIONS) + ((part) % OLDMAXPARTITIONS) + \
- ((part) / OLDMAXPARTITIONS) * (__ARM_MAXDISKS * OLDMAXPARTITIONS))
-#endif
-
-#if HAVE_NBTOOL_CONFIG_H
-#include <nbinclude/sys/dkbad.h>
-#include <nbinclude/sys/disklabel_acorn.h>
-#include <nbinclude/sys/bootblock.h>
-#else
-#include <sys/dkbad.h>
-#include <sys/disklabel_acorn.h>
-#include <sys/bootblock.h>
-#endif /* HAVE_NBTOOL_CONFIG_H */
-
-struct cpu_disklabel {
- struct mbr_partition mbrparts[MBR_PART_COUNT];
-#define __HAVE_DISKLABEL_DKBAD
- struct dkbad bad;
-};
-
-#ifdef _KERNEL
-struct buf;
-struct disklabel;
-
-/* for readdisklabel. rv != 0 -> matches, msg == NULL -> success */
-int mbr_label_read(dev_t, void (*)(struct buf *), struct disklabel *,
- struct cpu_disklabel *, const char **, int *, int *);
-
-/* for writedisklabel. rv == 0 -> doesn't match, rv > 0 -> success */
-int mbr_label_locate(dev_t, void (*)(struct buf *),
- struct disklabel *, struct cpu_disklabel *, int *, int *);
-#endif /* _KERNEL */
-
-#endif /* _ARM_DISKLABEL_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/elf_machdep.h
@@ -1,163 +0,0 @@
-/* $NetBSD: elf_machdep.h,v 1.19 2017/11/06 03:47:45 christos Exp $ */
-
-#ifndef _ARM_ELF_MACHDEP_H_
-#define _ARM_ELF_MACHDEP_H_
-
-#if defined(__ARMEB__)
-#define ELF32_MACHDEP_ENDIANNESS ELFDATA2MSB
-#else
-#define ELF32_MACHDEP_ENDIANNESS ELFDATA2LSB
-#endif
-
-#define ELF64_MACHDEP_ENDIANNESS XXX /* break compilation */
-#define ELF64_MACHDEP_ID_CASES \
- /* no 64-bit ELF machine types supported */
-
-/* Processor specific flags for the ELF header e_flags field. */
-#define EF_ARM_RELEXEC 0x00000001
-#define EF_ARM_HASENTRY 0x00000002
-#define EF_ARM_INTERWORK 0x00000004 /* GNU binutils 000413 */
-#define EF_ARM_SYMSARESORTED 0x00000004 /* ARM ELF A08 */
-#define EF_ARM_APCS_26 0x00000008 /* GNU binutils 000413 */
-#define EF_ARM_DYNSYMSUSESEGIDX 0x00000008 /* ARM ELF B01 */
-#define EF_ARM_APCS_FLOAT 0x00000010 /* GNU binutils 000413 */
-#define EF_ARM_MAPSYMSFIRST 0x00000010 /* ARM ELF B01 */
-#define EF_ARM_PIC 0x00000020
-#define EF_ARM_ALIGN8 0x00000040 /* 8-bit structure alignment. */
-#define EF_ARM_NEW_ABI 0x00000080
-#define EF_ARM_OLD_ABI 0x00000100
-#define EF_ARM_SOFT_FLOAT 0x00000200
-#define EF_ARM_BE8 0x00800000
-#define EF_ARM_EABIMASK 0xff000000
-#define EF_ARM_EABI_VER1 0x01000000
-#define EF_ARM_EABI_VER2 0x02000000
-#define EF_ARM_EABI_VER3 0x03000000
-#define EF_ARM_EABI_VER4 0x04000000
-#define EF_ARM_EABI_VER5 0x05000000
-
-#define ELF32_MACHDEP_ID_CASES \
- case EM_ARM: \
- break;
-
-#define ELF32_MACHDEP_ID EM_ARM
-
-#define KERN_ELFSIZE 32
-#define ARCH_ELFSIZE 32 /* MD native binary size */
-
-/* Processor specific relocation types */
-
-#define R_ARM_NONE 0
-#define R_ARM_PC24 1
-#define R_ARM_ABS32 2
-#define R_ARM_REL32 3
-#define R_ARM_PC13 4
-#define R_ARM_ABS16 5
-#define R_ARM_ABS12 6
-#define R_ARM_THM_ABS5 7
-#define R_ARM_ABS8 8
-#define R_ARM_SBREL32 9
-#define R_ARM_THM_PC22 10
-#define R_ARM_THM_PC8 11
-#define R_ARM_AMP_VCALL9 12
-#define R_ARM_SWI24 13
-#define R_ARM_THM_SWI8 14
-#define R_ARM_XPC25 15
-#define R_ARM_THM_XPC22 16
-
-/* TLS relocations */
-#define R_ARM_TLS_DTPMOD32 17 /* ID of module containing symbol */
-#define R_ARM_TLS_DTPOFF32 18 /* Offset in TLS block */
-#define R_ARM_TLS_TPOFF32 19 /* Offset in static TLS block */
-
-/* 20-31 are reserved for ARM Linux. */
-#define R_ARM_COPY 20
-#define R_ARM_GLOB_DAT 21
-#define R_ARM_JUMP_SLOT 22
-#define R_ARM_RELATIVE 23
-#define R_ARM_GOTOFF 24
-#define R_ARM_GOTPC 25
-#define R_ARM_GOT32 26
-#define R_ARM_PLT32 27
-#define R_ARM_CALL 28
-#define R_ARM_JUMP24 29
-#define R_ARM_THM_JUMP24 30
-#define R_ARM_BASE_ABS 31
-#define R_ARM_ALU_PCREL_7_0 32
-#define R_ARM_ALU_PCREL_15_8 33
-#define R_ARM_ALU_PCREL_23_15 34
-#define R_ARM_ALU_SBREL_11_0 35
-#define R_ARM_ALU_SBREL_19_12 36
-#define R_ARM_ALU_SBREL_27_20 37 // depcreated
-#define R_ARM_TARGET1 38
-#define R_ARM_SBREL31 39 // deprecated
-#define R_ARM_V4BX 40
-#define R_ARM_TARGET2 41
-#define R_ARM_PREL31 42
-#define R_ARM_MOVW_ABS_NC 43
-#define R_ARM_MOVT_ABS 44
-#define R_ARM_MOVW_PREL_NC 45
-#define R_ARM_MOVT_PREL 46
-#define R_ARM_THM_MOVW_ABS_NC 47
-#define R_ARM_THM_MOVT_ABS 48
-#define R_ARM_THM_MOVW_PREL_NC 49
-#define R_ARM_THM_MOVT_PREL 50
-
-/* 96-111 are reserved to G++. */
-#define R_ARM_GNU_VTENTRY 100
-#define R_ARM_GNU_VTINHERIT 101
-#define R_ARM_THM_PC11 102
-#define R_ARM_THM_PC9 103
-
-/* More TLS relocations */
-#define R_ARM_TLS_GD32 104 /* PC-rel 32 bit for global dynamic */
-#define R_ARM_TLS_LDM32 105 /* PC-rel 32 bit for local dynamic */
-#define R_ARM_TLS_LDO32 106 /* 32 bit offset relative to TLS */
-#define R_ARM_TLS_IE32 107 /* PC-rel 32 bit for GOT entry of */
-#define R_ARM_TLS_LE32 108
-#define R_ARM_TLS_LDO12 109
-#define R_ARM_TLS_LE12 110
-#define R_ARM_TLS_IE12GP 111
-
-/* 112-127 are reserved for private experiments. */
-
-#define R_ARM_IRELATIVE 160
-
-#define R_ARM_RXPC25 249
-#define R_ARM_RSBREL32 250
-#define R_ARM_THM_RPC22 251
-#define R_ARM_RREL32 252
-#define R_ARM_RABS32 253
-#define R_ARM_RPC24 254
-#define R_ARM_RBASE 255
-
-#define R_TYPE(name) __CONCAT(R_ARM_,name)
-
-/* Processor specific program header flags */
-#define PF_ARM_SB 0x10000000
-#define PF_ARM_PI 0x20000000
-#define PF_ARM_ENTRY 0x80000000
-
-/* Processor specific program header types */
-#define PT_ARM_EXIDX (PT_LOPROC + 1)
-
-/* Processor specific section header flags */
-#define SHF_ENTRYSECT 0x10000000
-#define SHF_COMDEF 0x80000000
-
-/* Processor specific symbol types */
-#define STT_ARM_TFUNC STT_LOPROC
-
-#ifdef _KERNEL
-#ifdef ELFSIZE
-#define ELF_MD_PROBE_FUNC ELFNAME2(arm_netbsd,probe)
-#define ELF_MD_COREDUMP_SETUP ELFNAME2(arm_netbsd,coredump_setup)
-#endif
-
-struct exec_package;
-
-int arm_netbsd_elf32_probe(struct lwp *, struct exec_package *, void *, char *,
- vaddr_t *);
-void arm_netbsd_elf32_coredump_setup(struct lwp *, void *);
-#endif
-
-#endif /* _ARM_ELF_MACHDEP_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/endian.h
@@ -1,3 +0,0 @@
-/* $NetBSD: endian.h,v 1.3 2001/06/23 12:20:27 bjh21 Exp $ */
-
-#include <sys/endian.h>
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/endian_machdep.h
@@ -1,8 +0,0 @@
-/* $NetBSD: endian_machdep.h,v 1.9 2014/01/29 01:03:13 matt Exp $ */
-
-/* __ARMEB__ or __AARCH64EB__ is predefined when building big-endian ARM. */
-#if defined(__ARMEB__) || defined(__AARCH64EB__)
-#define _BYTE_ORDER _BIG_ENDIAN
-#else
-#define _BYTE_ORDER _LITTLE_ENDIAN
-#endif
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/fenv.h
@@ -1,67 +0,0 @@
-/* $NetBSD: fenv.h,v 1.6 2021/10/06 05:33:15 skrll Exp $ */
-
-/*
- * Based on ieeefp.h written by J.T. Conklin, Apr 28, 1995
- * Public domain.
- */
-
-#ifndef _ARM_FENV_H_
-#define _ARM_FENV_H_
-
-#include <sys/cdefs.h>
-
-#ifdef __ARM_PCS_AAPCS64
-/* AArch64 split FPSCR into two registers FPCR and FPSR */
-typedef struct {
- unsigned int __fpcr;
- unsigned int __fpsr;
-} fenv_t;
-#else
-typedef int fenv_t; /* FPSCR */
-#endif
-typedef int fexcept_t;
-
-#define FE_INVALID 0x01 /* invalid operation exception */
-#define FE_DIVBYZERO 0x02 /* divide-by-zero exception */
-#define FE_OVERFLOW 0x04 /* overflow exception */
-#define FE_UNDERFLOW 0x08 /* underflow exception */
-#define FE_INEXACT 0x10 /* imprecise (loss of precision; "inexact") */
-
-#define FE_ALL_EXCEPT 0x1f
-
-#define FE_TONEAREST 0 /* round to nearest representable number */
-#define FE_UPWARD 1 /* round toward positive infinity */
-#define FE_DOWNWARD 2 /* round toward negative infinity */
-#define FE_TOWARDZERO 3 /* round to zero (truncate) */
-
-#ifdef __SOFTFP__
-
-/*
- * Provide a platform-specific softfloat ABI.
- */
-
-#include <arm/vfpreg.h>
-
-#define __FENV_GET_FLAGS(__envp) __SHIFTOUT(*(__envp), VFP_FPSCR_CSUM)
-#define __FENV_GET_MASK(__envp) __SHIFTOUT(*(__envp), VFP_FPSCR_ESUM)
-#define __FENV_GET_ROUND(__envp) __SHIFTOUT(*(__envp), VFP_FPSCR_RMODE)
-#define __FENV_SET_FLAGS(__envp, __val) \
- *(__envp) = __SHIFTIN((__val), VFP_FPSCR_CSUM)
-#define __FENV_SET_MASK(__envp, __val) \
- *(__envp) = __SHIFTIN((__val), VFP_FPSCR_ESUM)
-#define __FENV_SET_ROUND(__envp, __val) \
- *(__envp) = __SHIFTIN((__val), VFP_FPSCR_RMODE)
-
-#define __HAVE_FENV_SOFTFLOAT_DEFS
-
-#endif /* __SOFTFP__ */
-
-__BEGIN_DECLS
-
-/* Default floating-point environment */
-extern const fenv_t __fe_dfl_env;
-#define FE_DFL_ENV (&__fe_dfl_env)
-
-__END_DECLS
-
-#endif /* _ARM_FENV_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/float.h
@@ -1,63 +0,0 @@
-/* $NetBSD: float.h,v 1.8 2014/01/29 01:10:36 matt Exp $ */
-
-/*-
- * Copyright (c) 2014 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Matt Thomas of 3am Software Foundry.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ARM_FLOAT_H_
-#define _ARM_FLOAT_H_
-
-#include <sys/cdefs.h>
-
-#ifdef __ARM_PCS_AAPCS64
-
-#define LDBL_MANT_DIG __LDBL_MANT_DIG__
-#define LDBL_DIG __LDBL_DIG__
-#define LDBL_MIN_EXP __LDBL_MIN_EXP__
-#define LDBL_MIN_10_EXP __LDBL_MIN_10_EXP__
-#define LDBL_MAX_EXP __LDBL_MAX_EXP__
-#define LDBL_MAX_10_EXP __LDBL_MAX_10_EXP__
-#define LDBL_EPSILON __LDBL_EPSILON__
-#define LDBL_MIN __LDBL_MIN__
-#define LDBL_MAX __LDBL_MAX__
-
-#endif /* __ARM_PCS_AAPCS64 */
-
-#include <sys/float_ieee754.h>
-
-#if defined(__ARM_PCS_AAPCS64) \
- && ((!defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) \
- && !defined(_XOPEN_SOURCE)) \
- || (__STDC_VERSION__ - 0) >= 199901L \
- || (_POSIX_C_SOURCE - 0) >= 200112L \
- || ((_XOPEN_SOURCE - 0) >= 600) \
- || defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE))
-#define DECIMAL_DIG __DECIMAL_DIG__
-#endif /* __ARM_PCS_AAPCS64 && ... */
-
-#endif /* !_ARM_FLOAT_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/frame.h
@@ -1,130 +0,0 @@
-/* $NetBSD: frame.h,v 1.23 2022/04/02 11:16:07 skrll Exp $ */
-
-/*
- * Copyright (c) 1994-1997 Mark Brinicombe.
- * Copyright (c) 1994 Brini.
- * All rights reserved.
- *
- * This code is derived from software written for Brini by Mark Brinicombe
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Brini.
- * 4. The name of the company nor the name of the author may be used to
- * endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY BRINI ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL BRINI OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-/*
- * arm/frame.h - Stack frames structures
- */
-
-#ifndef _ARM_FRAME_H_
-#define _ARM_FRAME_H_
-
-#ifndef _LOCORE
-
-#include <sys/signal.h>
-#include <sys/ucontext.h>
-
-/*
- * Trap frame. Pushed onto the kernel stack on a trap (synchronous exception).
- */
-
-typedef struct trapframe {
- register_t tf_spsr;
- register_t tf_fill; /* fill here so r0 will be dword aligned */
- register_t tf_r0;
- register_t tf_r1;
- register_t tf_r2;
- register_t tf_r3;
- register_t tf_r4;
- register_t tf_r5;
- register_t tf_r6;
- register_t tf_r7;
- register_t tf_r8;
- register_t tf_r9;
- register_t tf_r10;
- register_t tf_r11;
- register_t tf_r12;
- register_t tf_usr_sp;
- register_t tf_usr_lr;
- register_t tf_svc_sp;
- register_t tf_svc_lr;
- register_t tf_pc;
-} trapframe_t;
-
-/* Register numbers */
-#define tf_ip tf_r12
-#define tf_r13 tf_usr_sp
-#define tf_r14 tf_usr_lr
-#define tf_r15 tf_pc
-
-#define TRAP_USERMODE(tf) (((tf)->tf_spsr & PSR_MODE) == PSR_USR32_MODE)
-
-#define FB_R4 0
-#define FB_R5 1
-#define FB_R6 2
-#define FB_R7 3
-#define FB_R8 4
-#define FB_R9 5
-#define FB_R10 6
-#define FB_R11 7
-#define FB_R12 8
-#define FB_R13 9
-#define FB_R14 10
-#define FB_MAX 11
-struct faultbuf {
- register_t fb_reg[FB_MAX];
-};
-
-/*
- * Signal frame. Pushed onto user stack before calling sigcode.
- */
-#ifdef COMPAT_16
-struct sigframe_sigcontext {
- struct sigcontext sf_sc;
-};
-#endif
-
-/* the pointers are use in the trampoline code to locate the ucontext */
-struct sigframe_siginfo {
- siginfo_t sf_si; /* actual saved siginfo */
- ucontext_t sf_uc; /* actual saved ucontext */
-};
-
-#if defined(_KERNEL) || defined(_KMEMUSER)
-#ifdef _KERNEL
-__BEGIN_DECLS
-void sendsig_sigcontext(const ksiginfo_t *, const sigset_t *);
-void *getframe(struct lwp *, int, int *);
-__END_DECLS
-#define lwp_settrapframe(l, tf) ((l)->l_md.md_tf = (tf))
-#endif
-#define lwp_trapframe(l) ((l)->l_md.md_tf)
-#endif /* _KERNEL || _KMEMUSER */
-
-#endif /* _LOCORE */
-
-#endif /* _ARM_FRAME_H_ */
-
-/* End of frame.h */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/ieee.h
@@ -1,4 +0,0 @@
-/* $NetBSD: ieee.h,v 1.11 2014/01/31 19:38:06 matt Exp $ */
-
-#include <arm/math.h> /* for #define __HAVE_LONG_DOUBLE 128 */
-#include <sys/ieee754.h>
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/ieeefp.h
@@ -1,50 +0,0 @@
-/* $NetBSD: ieeefp.h,v 1.5 2021/10/06 05:33:15 skrll Exp $ */
-
-/*
- * Based on ieeefp.h written by J.T. Conklin, Apr 28, 1995
- * Public domain.
- */
-
-#ifndef _ARM_IEEEFP_H_
-#define _ARM_IEEEFP_H_
-
-#include <sys/featuretest.h>
-
-#if defined(_NETBSD_SOURCE) || defined(_ISOC99_SOURCE)
-
-#include <arm/fenv.h>
-
-#if !defined(_ISOC99_SOURCE)
-
-/* Exception type (used by fpsetmask() et al.) */
-
-typedef int fp_except;
-
-/* adjust for FP_* and FE_* value differences */
-#define __FPE(x) (x)
-#define __FEE(x) (x)
-#define __FPR(x) (x)
-#define __FER(x) (x)
-
-/* Bit defines for fp_except */
-
-#define FP_X_INV FE_INVALID /* invalid operation exception */
-#define FP_X_DZ FE_DIVBYZERO /* divide-by-zero exception */
-#define FP_X_OFL FE_OVERFLOW /* overflow exception */
-#define FP_X_UFL FE_UNDERFLOW /* underflow exception */
-#define FP_X_IMP FE_INEXACT /* imprecise (prec. loss; "inexact") */
-
-/* Rounding modes */
-
-typedef enum {
- FP_RN=FE_TONEAREST, /* round to nearest representable number */
- FP_RP=FE_UPWARD, /* round toward positive infinity */
- FP_RM=FE_DOWNWARD, /* round toward negative infinity */
- FP_RZ=FE_TOWARDZERO /* round to zero (truncate) */
-} fp_rnd;
-
-#endif /* !_ISOC99_SOURCE */
-
-#endif /* _NETBSD_SOURCE || _ISOC99_SOURCE */
-
-#endif /* _ARM_IEEEFP_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/int_const.h
@@ -1,74 +0,0 @@
-/* $NetBSD: int_const.h,v 1.5 2018/08/10 17:05:22 jakllsch Exp $ */
-
-/*-
- * Copyright (c) 2001 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Klaus Klein.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ARM_INT_CONST_H_
-#define _ARM_INT_CONST_H_
-
-#ifdef __INTMAX_C_SUFFIX__
-#include <sys/common_int_const.h>
-#else
-/*
- * 7.18.4 Macros for integer constants
- */
-
-/* 7.18.4.1 Macros for minimum-width integer constants */
-
-#define INT8_C(c) c
-#define INT16_C(c) c
-#define INT32_C(c) c
-#ifdef _LP64
-#define INT64_C(c) c ## L
-#else
-#define INT64_C(c) c ## LL
-#endif
-
-#define UINT8_C(c) c
-#define UINT16_C(c) c
-#define UINT32_C(c) c ## U
-#ifdef _LP64
-#define UINT64_C(c) c ## UL
-#else
-#define UINT64_C(c) c ## ULL
-#endif
-
-/* 7.18.4.2 Macros for greatest-width integer constants */
-
-#ifdef _LP64
-#define INTMAX_C(c) c ## L
-#define UINTMAX_C(c) c ## UL
-#else
-#define INTMAX_C(c) c ## LL
-#define UINTMAX_C(c) c ## ULL
-#endif
-
-#endif /* !__INTMAX_C_SUFFIX__ */
-
-#endif /* !_ARM_INT_CONST_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/int_fmtio.h
@@ -1,359 +0,0 @@
-/* $NetBSD: int_fmtio.h,v 1.10 2018/07/15 00:36:13 christos Exp $ */
-
-/*-
- * Copyright (c) 2001 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Klaus Klein.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ARM_INT_FMTIO_H_
-#define _ARM_INT_FMTIO_H_
-
-#ifdef __INTPTR_FMTd__
-#include <sys/common_int_fmtio.h>
-#else
-/*
- * 7.8.1 Macros for format specifiers
- */
-
-/* fprintf macros for signed integers */
-#define PRId8 "d" /* int8_t */
-#define PRId16 "d" /* int16_t */
-#define PRId32 "d" /* int32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRId64 "lld" /* int64_t */
-#else
-#define PRId64 "ld" /* int64_t */
-#endif
-#define PRIdLEAST8 "d" /* int_least8_t */
-#define PRIdLEAST16 "d" /* int_least16_t */
-#define PRIdLEAST32 "d" /* int_least32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIdLEAST64 "lld" /* int_least64_t */
-#else
-#define PRIdLEAST64 "ld" /* int_least64_t */
-#endif
-#define PRIdFAST8 "d" /* int_fast8_t */
-#define PRIdFAST16 "d" /* int_fast16_t */
-#define PRIdFAST32 "d" /* int_fast32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIdFAST64 "lld" /* int_fast64_t */
-#define PRIdMAX "lld" /* intmax_t */
-#else
-#define PRIdFAST64 "ld" /* int_fast64_t */
-#define PRIdMAX "ld" /* intmax_t */
-#endif
-#define PRIdPTR "ld" /* intptr_t */
-
-#define PRIi8 "i" /* int8_t */
-#define PRIi16 "i" /* int16_t */
-#define PRIi32 "i" /* int32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIi64 "lli" /* int64_t */
-#else
-#define PRIi64 "li" /* int64_t */
-#endif
-#define PRIiLEAST8 "i" /* int_least8_t */
-#define PRIiLEAST16 "i" /* int_least16_t */
-#define PRIiLEAST32 "i" /* int_least32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIiLEAST64 "lli" /* int_least64_t */
-#else
-#define PRIiLEAST64 "li" /* int_least64_t */
-#endif
-#define PRIiFAST8 "i" /* int_fast8_t */
-#define PRIiFAST16 "i" /* int_fast16_t */
-#define PRIiFAST32 "i" /* int_fast32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIiFAST64 "lli" /* int_fast64_t */
-#define PRIiMAX "lli" /* intmax_t */
-#else
-#define PRIiFAST64 "li" /* int_fast64_t */
-#define PRIiMAX "li" /* intmax_t */
-#endif
-#define PRIiPTR "li" /* intptr_t */
-
-/* fprintf macros for unsigned integers */
-
-#define PRIo8 "o" /* uint8_t */
-#define PRIo16 "o" /* uint16_t */
-#define PRIo32 "o" /* uint32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIo64 "llo" /* uint64_t */
-#else
-#define PRIo64 "lo" /* uint64_t */
-#endif
-#define PRIoLEAST8 "o" /* uint_least8_t */
-#define PRIoLEAST16 "o" /* uint_least16_t */
-#define PRIoLEAST32 "o" /* uint_least32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIoLEAST64 "llo" /* uint_least64_t */
-#else
-#define PRIoLEAST64 "lo" /* uint_least64_t */
-#endif
-#define PRIoFAST8 "o" /* uint_fast8_t */
-#define PRIoFAST16 "o" /* uint_fast16_t */
-#define PRIoFAST32 "o" /* uint_fast32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIoFAST64 "llo" /* uint_fast64_t */
-#define PRIoMAX "llo" /* uintmax_t */
-#else
-#define PRIoFAST64 "lo" /* uint_fast64_t */
-#define PRIoMAX "lo" /* uintmax_t */
-#endif
-#define PRIoPTR "lo" /* uintptr_t */
-
-#define PRIu8 "u" /* uint8_t */
-#define PRIu16 "u" /* uint16_t */
-#define PRIu32 "u" /* uint32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIu64 "llu" /* uint64_t */
-#else
-#define PRIu64 "lu" /* uint64_t */
-#endif
-#define PRIuLEAST8 "u" /* uint_least8_t */
-#define PRIuLEAST16 "u" /* uint_least16_t */
-#define PRIuLEAST32 "u" /* uint_least32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIuLEAST64 "llu" /* uint_least64_t */
-#else
-#define PRIuLEAST64 "lu" /* uint_least64_t */
-#endif
-#define PRIuFAST8 "u" /* uint_fast8_t */
-#define PRIuFAST16 "u" /* uint_fast16_t */
-#define PRIuFAST32 "u" /* uint_fast32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIuFAST64 "llu" /* uint_fast64_t */
-#define PRIuMAX "llu" /* uintmax_t */
-#else
-#define PRIuFAST64 "lu" /* uint_fast64_t */
-#define PRIuMAX "lu" /* uintmax_t */
-#endif
-#define PRIuPTR "lu" /* uintptr_t */
-
-#define PRIx8 "x" /* uint8_t */
-#define PRIx16 "x" /* uint16_t */
-#define PRIx32 "x" /* uint32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIx64 "llx" /* uint64_t */
-#else
-#define PRIx64 "lx" /* uint64_t */
-#endif
-#define PRIxLEAST8 "x" /* uint_least8_t */
-#define PRIxLEAST16 "x" /* uint_least16_t */
-#define PRIxLEAST32 "x" /* uint_least32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIxLEAST64 "llx" /* uint_least64_t */
-#else
-#define PRIxLEAST64 "lx" /* uint_least64_t */
-#endif
-#define PRIxFAST8 "x" /* uint_fast8_t */
-#define PRIxFAST16 "x" /* uint_fast16_t */
-#define PRIxFAST32 "x" /* uint_fast32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIxFAST64 "llx" /* uint_fast64_t */
-#define PRIxMAX "llx" /* uintmax_t */
-#else
-#define PRIxFAST64 "lx" /* uint_fast64_t */
-#define PRIxMAX "lx" /* uintmax_t */
-#endif
-#define PRIxPTR "lx" /* uintptr_t */
-
-#define PRIX8 "X" /* uint8_t */
-#define PRIX16 "X" /* uint16_t */
-#define PRIX32 "X" /* uint32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIX64 "llX" /* uint64_t */
-#else
-#define PRIX64 "lX" /* uint64_t */
-#endif
-#define PRIXLEAST8 "X" /* uint_least8_t */
-#define PRIXLEAST16 "X" /* uint_least16_t */
-#define PRIXLEAST32 "X" /* uint_least32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIXLEAST64 "llX" /* uint_least64_t */
-#else
-#define PRIXLEAST64 "lX" /* uint_least64_t */
-#endif
-#define PRIXFAST8 "X" /* uint_fast8_t */
-#define PRIXFAST16 "X" /* uint_fast16_t */
-#define PRIXFAST32 "X" /* uint_fast32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define PRIXFAST64 "llX" /* uint_fast64_t */
-#define PRIXMAX "llX" /* uintmax_t */
-#else
-#define PRIXFAST64 "lX" /* uint_fast64_t */
-#define PRIXMAX "lX" /* uintmax_t */
-#endif
-#define PRIXPTR "lX" /* uintptr_t */
-
-/* fscanf macros for signed integers */
-
-#define SCNd8 "hhd" /* int8_t */
-#define SCNd16 "hd" /* int16_t */
-#define SCNd32 "d" /* int32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNd64 "lld" /* int64_t */
-#else
-#define SCNd64 "ld" /* int64_t */
-#endif
-#define SCNdLEAST8 "hhd" /* int_least8_t */
-#define SCNdLEAST16 "hd" /* int_least16_t */
-#define SCNdLEAST32 "d" /* int_least32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNdLEAST64 "lld" /* int_least64_t */
-#else
-#define SCNdLEAST64 "ld" /* int_least64_t */
-#endif
-#define SCNdFAST8 "d" /* int_fast8_t */
-#define SCNdFAST16 "d" /* int_fast16_t */
-#define SCNdFAST32 "d" /* int_fast32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNdFAST64 "lld" /* int_fast64_t */
-#define SCNdMAX "lld" /* intmax_t */
-#else
-#define SCNdFAST64 "ld" /* int_fast64_t */
-#define SCNdMAX "ld" /* intmax_t */
-#endif
-#define SCNdPTR "ld" /* intptr_t */
-
-#define SCNi8 "hhi" /* int8_t */
-#define SCNi16 "hi" /* int16_t */
-#define SCNi32 "i" /* int32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNi64 "lli" /* int64_t */
-#else
-#define SCNi64 "li" /* int64_t */
-#endif
-#define SCNiLEAST8 "hhi" /* int_least8_t */
-#define SCNiLEAST16 "hi" /* int_least16_t */
-#define SCNiLEAST32 "i" /* int_least32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNiLEAST64 "lli" /* int_least64_t */
-#else
-#define SCNiLEAST64 "li" /* int_least64_t */
-#endif
-#define SCNiFAST8 "i" /* int_fast8_t */
-#define SCNiFAST16 "i" /* int_fast16_t */
-#define SCNiFAST32 "i" /* int_fast32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNiFAST64 "lli" /* int_fast64_t */
-#define SCNiMAX "lli" /* intmax_t */
-#else
-#define SCNiFAST64 "li" /* int_fast64_t */
-#define SCNiMAX "li" /* intmax_t */
-#endif
-#define SCNiPTR "li" /* intptr_t */
-
-/* fscanf macros for unsigned integers */
-
-#define SCNo8 "hho" /* uint8_t */
-#define SCNo16 "ho" /* uint16_t */
-#define SCNo32 "o" /* uint32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNo64 "llo" /* uint64_t */
-#else
-#define SCNo64 "lo" /* uint64_t */
-#endif
-#define SCNoLEAST8 "hho" /* uint_least8_t */
-#define SCNoLEAST16 "ho" /* uint_least16_t */
-#define SCNoLEAST32 "o" /* uint_least32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNoLEAST64 "llo" /* uint_least64_t */
-#else
-#define SCNoLEAST64 "lo" /* uint_least64_t */
-#endif
-#define SCNoFAST8 "o" /* uint_fast8_t */
-#define SCNoFAST16 "o" /* uint_fast16_t */
-#define SCNoFAST32 "o" /* uint_fast32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNoFAST64 "llo" /* uint_fast64_t */
-#define SCNoMAX "llo" /* uintmax_t */
-#else
-#define SCNoFAST64 "lo" /* uint_fast64_t */
-#define SCNoMAX "lo" /* uintmax_t */
-#endif
-#define SCNoPTR "lo" /* uintptr_t */
-
-#define SCNu8 "hhu" /* uint8_t */
-#define SCNu16 "hu" /* uint16_t */
-#define SCNu32 "u" /* uint32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNu64 "llu" /* uint64_t */
-#else
-#define SCNu64 "lu" /* uint64_t */
-#endif
-#define SCNuLEAST8 "hhu" /* uint_least8_t */
-#define SCNuLEAST16 "hu" /* uint_least16_t */
-#define SCNuLEAST32 "u" /* uint_least32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNuLEAST64 "llu" /* uint_least64_t */
-#else
-#define SCNuLEAST64 "lu" /* uint_least64_t */
-#endif
-#define SCNuFAST8 "u" /* uint_fast8_t */
-#define SCNuFAST16 "u" /* uint_fast16_t */
-#define SCNuFAST32 "u" /* uint_fast32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNuFAST64 "llu" /* uint_fast64_t */
-#define SCNuMAX "llu" /* uintmax_t */
-#else
-#define SCNuFAST64 "lu" /* uint_fast64_t */
-#define SCNuMAX "lu" /* uintmax_t */
-#endif
-#define SCNuPTR "lu" /* uintptr_t */
-
-#define SCNx8 "hhx" /* uint8_t */
-#define SCNx16 "hx" /* uint16_t */
-#define SCNx32 "x" /* uint32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNx64 "llx" /* uint64_t */
-#else
-#define SCNx64 "lx" /* uint64_t */
-#endif
-#define SCNxLEAST8 "hhx" /* uint_least8_t */
-#define SCNxLEAST16 "hx" /* uint_least16_t */
-#define SCNxLEAST32 "x" /* uint_least32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNxLEAST64 "llx" /* uint_least64_t */
-#else
-#define SCNxLEAST64 "lx" /* uint_least64_t */
-#endif
-#define SCNxFAST8 "x" /* uint_fast8_t */
-#define SCNxFAST16 "x" /* uint_fast16_t */
-#define SCNxFAST32 "x" /* uint_fast32_t */
-#if defined(__clang__) || !defined(_LP64)
-#define SCNxFAST64 "llx" /* uint_fast64_t */
-#define SCNxMAX "llx" /* uintmax_t */
-#else
-#define SCNxFAST64 "lx" /* uint_fast64_t */
-#define SCNxMAX "lx" /* uintmax_t */
-#endif
-#define SCNxPTR "lx" /* uintptr_t */
-
-#endif /* !__INTPTR_FMTd__ */
-
-#endif /* !_ARM_INT_FMTIO_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/int_limits.h
@@ -1,146 +0,0 @@
-/* $NetBSD: int_limits.h,v 1.12 2021/10/06 05:33:15 skrll Exp $ */
-
-/*-
- * Copyright (c) 2001 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Klaus Klein.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ARM_INT_LIMITS_H_
-#define _ARM_INT_LIMITS_H_
-
-#ifdef __SIG_ATOMIC_MAX__
-#include <sys/common_int_limits.h>
-#else
-/*
- * 7.18.2 Limits of specified-width integer types
- */
-
-/* 7.18.2.1 Limits of exact-width integer types */
-
-/* minimum values of exact-width signed integer types */
-#define INT8_MIN (-0x7f-1) /* int8_t */
-#define INT16_MIN (-0x7fff-1) /* int16_t */
-#define INT32_MIN (-0x7fffffff-1) /* int32_t */
-#define INT64_MIN (-0x7fffffffffffffffLL-1) /* int64_t */
-
-/* maximum values of exact-width signed integer types */
-#define INT8_MAX 0x7f /* int8_t */
-#define INT16_MAX 0x7fff /* int16_t */
-#define INT32_MAX 0x7fffffff /* int32_t */
-#define INT64_MAX 0x7fffffffffffffffLL /* int64_t */
-
-/* maximum values of exact-width unsigned integer types */
-#define UINT8_MAX 0xff /* uint8_t */
-#define UINT16_MAX 0xffff /* uint16_t */
-#define UINT32_MAX 0xffffffffU /* uint32_t */
-#define UINT64_MAX 0xffffffffffffffffULL /* uint64_t */
-
-/* 7.18.2.2 Limits of minimum-width integer types */
-
-/* minimum values of minimum-width signed integer types */
-#define INT_LEAST8_MIN (-0x7f-1) /* int_least8_t */
-#define INT_LEAST16_MIN (-0x7fff-1) /* int_least16_t */
-#define INT_LEAST32_MIN (-0x7fffffff-1) /* int_least32_t */
-#define INT_LEAST64_MIN (-0x7fffffffffffffffLL-1) /* int_least64_t */
-
-/* maximum values of minimum-width signed integer types */
-#define INT_LEAST8_MAX 0x7f /* int_least8_t */
-#define INT_LEAST16_MAX 0x7fff /* int_least16_t */
-#define INT_LEAST32_MAX 0x7fffffff /* int_least32_t */
-#define INT_LEAST64_MAX 0x7fffffffffffffffLL /* int_least64_t */
-
-/* maximum values of minimum-width unsigned integer types */
-#define UINT_LEAST8_MAX 0xff /* uint_least8_t */
-#define UINT_LEAST16_MAX 0xffff /* uint_least16_t */
-#define UINT_LEAST32_MAX 0xffffffffU /* uint_least32_t */
-#define UINT_LEAST64_MAX 0xffffffffffffffffULL /* uint_least64_t */
-
-/* 7.18.2.3 Limits of fastest minimum-width integer types */
-
-/* minimum values of fastest minimum-width signed integer types */
-#define INT_FAST8_MIN (-0x7fffffff-1) /* int_fast8_t */
-#define INT_FAST16_MIN (-0x7fffffff-1) /* int_fast16_t */
-#define INT_FAST32_MIN (-0x7fffffff-1) /* int_fast32_t */
-#define INT_FAST64_MIN (-0x7fffffffffffffffLL-1) /* int_fast64_t */
-
-/* maximum values of fastest minimum-width signed integer types */
-#define INT_FAST8_MAX 0x7fffffff /* int_fast8_t */
-#define INT_FAST16_MAX 0x7fffffff /* int_fast16_t */
-#define INT_FAST32_MAX 0x7fffffff /* int_fast32_t */
-#define INT_FAST64_MAX 0x7fffffffffffffffLL /* int_fast64_t */
-
-/* maximum values of fastest minimum-width unsigned integer types */
-#define UINT_FAST8_MAX 0xffffffffU /* uint_fast8_t */
-#define UINT_FAST16_MAX 0xffffffffU /* uint_fast16_t */
-#define UINT_FAST32_MAX 0xffffffffU /* uint_fast32_t */
-#define UINT_FAST64_MAX 0xffffffffffffffffULL /* uint_fast64_t */
-
-/* 7.18.2.4 Limits of integer types capable of holding object pointers */
-
-#ifdef _LP64
-#define INTPTR_MIN (-0x7fffffffffffffffL-1) /* intptr_t */
-#define INTPTR_MAX 0x7fffffffffffffffL /* intptr_t */
-#define UINTPTR_MAX 0xffffffffffffffffUL /* uintptr_t */
-#else
-#define INTPTR_MIN (-0x7fffffffL-1) /* intptr_t */
-#define INTPTR_MAX 0x7fffffffL /* intptr_t */
-#define UINTPTR_MAX 0xffffffffUL /* uintptr_t */
-#endif
-
-/* 7.18.2.5 Limits of greatest-width integer types */
-
-#define INTMAX_MIN (-0x7fffffffffffffffLL-1) /* intmax_t */
-#define INTMAX_MAX 0x7fffffffffffffffLL /* intmax_t */
-#define UINTMAX_MAX 0xffffffffffffffffULL /* uintmax_t */
-
-
-/*
- * 7.18.3 Limits of other integer types
- */
-
-/* limits of ptrdiff_t */
-#ifdef _LP64
-#define PTRDIFF_MIN (-0x7fffffffffffffffL-1) /* ptrdiff_t */
-#define PTRDIFF_MAX 0x7fffffffffffffffL /* ptrdiff_t */
-#else
-#define PTRDIFF_MIN (-0x7fffffffL-1) /* ptrdiff_t */
-#define PTRDIFF_MAX 0x7fffffffL /* ptrdiff_t */
-#endif
-
-/* limits of sig_atomic_t */
-#define SIG_ATOMIC_MIN (-0x7fffffff-1) /* sig_atomic_t */
-#define SIG_ATOMIC_MAX 0x7fffffff /* sig_atomic_t */
-
-/* limit of size_t */
-#ifdef _LP64
-#define SIZE_MAX 0xffffffffffffffffUL /* size_t */
-#else
-#define SIZE_MAX 0xffffffffUL /* size_t */
-#endif
-#endif
-
-#endif /* !_ARM_INT_LIMITS_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/int_mwgwtypes.h
@@ -1,127 +0,0 @@
-/* $NetBSD: int_mwgwtypes.h,v 1.7 2014/07/25 21:43:13 joerg Exp $ */
-
-/*-
- * Copyright (c) 2014 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Matt Thomas of 3am Software Foundry.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ARM_INT_MWGWTYPES_H_
-#define _ARM_INT_MWGWTYPES_H_
-
-#ifdef __UINT_FAST64_TYPE__
-#include <sys/common_int_mwgwtypes.h>
-#else
-/*
- * 7.18.1 Integer types
- */
-
-/* 7.18.1.2 Minimum-width integer types */
-
-#ifndef __INT_LEAST8_TYPE__
-# define __INT_LEAST8_TYPE__ signed char
-#endif
-#ifndef __UINT_LEAST8_TYPE__
-# define __UINT_LEAST8_TYPE__ unsigned char
-#endif
-#ifndef __INT_LEAST16_TYPE__
-# define __INT_LEAST16_TYPE__ short int
-#endif
-#ifndef __UINT_LEAST16_TYPE__
-# define __UINT_LEAST16_TYPE__ short unsigned int
-#endif
-#ifndef __INT_LEAST32_TYPE__
-# define __INT_LEAST32_TYPE__ int
-#endif
-#ifndef __UINT_LEAST32_TYPE__
-# define __UINT_LEAST32_TYPE__ unsigned int
-#endif
-#ifndef __INT_LEAST64_TYPE__
-# define __INT_LEAST64_TYPE__ long long int
-#endif
-#ifndef __UINT_LEAST64_TYPE__
-# define __UINT_LEAST64_TYPE__ long long unsigned int
-#endif
-
-typedef __INT_LEAST8_TYPE__ int_least8_t;
-typedef __UINT_LEAST8_TYPE__ uint_least8_t;
-typedef __INT_LEAST16_TYPE__ int_least16_t;
-typedef __UINT_LEAST16_TYPE__ uint_least16_t;
-typedef __INT_LEAST32_TYPE__ int_least32_t;
-typedef __UINT_LEAST32_TYPE__ uint_least32_t;
-typedef __INT_LEAST64_TYPE__ int_least64_t;
-typedef __UINT_LEAST64_TYPE__ uint_least64_t;
-
-/* 7.18.1.3 Fastest minimum-width integer types */
-
-#ifndef __INT_FAST8_TYPE__
-# define __INT_FAST8_TYPE__ int
-#endif
-#ifndef __UINT_FAST8_TYPE__
-# define __UINT_FAST8_TYPE__ unsigned int
-#endif
-#ifndef __INT_FAST16_TYPE__
-# define __INT_FAST16_TYPE__ int
-#endif
-#ifndef __UINT_FAST16_TYPE__
-# define __UINT_FAST16_TYPE__ unsigned int
-#endif
-#ifndef __INT_FAST32_TYPE__
-# define __INT_FAST32_TYPE__ int
-#endif
-#ifndef __UINT_FAST32_TYPE__
-# define __UINT_FAST32_TYPE__ unsigned int
-#endif
-#ifndef __INT_FAST64_TYPE__
-# define __INT_FAST64_TYPE__ long long int
-#endif
-#ifndef __UINT_FAST64_TYPE__
-# define __UINT_FAST64_TYPE__ long long unsigned int
-#endif
-
-typedef __INT_FAST8_TYPE__ int_fast8_t;
-typedef __UINT_FAST8_TYPE__ uint_fast8_t;
-typedef __INT_FAST16_TYPE__ int_fast16_t;
-typedef __UINT_FAST16_TYPE__ uint_fast16_t;
-typedef __INT_FAST32_TYPE__ int_fast32_t;
-typedef __UINT_FAST32_TYPE__ uint_fast32_t;
-typedef __INT_FAST64_TYPE__ int_fast64_t;
-typedef __UINT_FAST64_TYPE__ uint_fast64_t;
-
-/* 7.18.1.5 Greatest-width integer types */
-
-#ifndef __INTMAX_TYPE__
-# define __INTMAX_TYPE__ long long int
-#endif
-#ifndef __UINTMAX_TYPE__
-# define __UINTMAX_TYPE__ unsigned __INTMAX_TYPE__
-#endif
-
-typedef __INTMAX_TYPE__ intmax_t;
-typedef __UINTMAX_TYPE__ uintmax_t;
-#endif
-
-#endif /* !_ARM_INT_MWGWTYPES_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/int_types.h
@@ -1,99 +0,0 @@
-/* $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $ */
-
-/*-
- * Copyright (c) 2014 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Matt Thomas of 3am Software Foundry.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ARM_INT_TYPES_H_
-#define _ARM_INT_TYPES_H_
-
-#ifdef __UINTPTR_TYPE__
-#include <sys/common_int_types.h>
-#else
-#include <sys/cdefs.h>
-
-/*
- * 7.18.1 Integer types
- */
-
-/* 7.18.1.1 Exact-width integer types */
-
-#ifndef __UINT8_TYPE__
-# define __UINT8_TYPE__ unsigned char
-#endif
-#ifndef __INT8_TYPE__
-# define __INT8_TYPE__ signed char
-#endif
-#ifndef __UINT16_TYPE__
-# ifndef __INT16_TYPE__
-# define __INT16_TYPE__ short int
-# endif
-# define __UINT16_TYPE__ unsigned __INT16_TYPE__
-#endif
-#ifndef __UINT32_TYPE__
-# ifndef __INT32_TYPE__
-# define __INT32_TYPE__ int
-# endif
-# define __UINT32_TYPE__ unsigned __INT32_TYPE__
-#endif
-#ifndef __UINT64_TYPE__
-# ifndef __INT64_TYPE__
-# define __INT64_TYPE__ long long int
-# endif
-# define __UINT64_TYPE__ unsigned __INT64_TYPE__
-#endif
-
-#ifdef __clang__
-typedef signed __INT8_TYPE__ __int8_t;
-#else
-typedef __INT8_TYPE__ __int8_t;
-#endif
-typedef __UINT8_TYPE__ __uint8_t;
-typedef __INT16_TYPE__ __int16_t;
-typedef __UINT16_TYPE__ __uint16_t;
-typedef __INT32_TYPE__ __int32_t;
-typedef __UINT32_TYPE__ __uint32_t;
-typedef __INT64_TYPE__ __int64_t;
-typedef __UINT64_TYPE__ __uint64_t;
-
-#define __BIT_TYPES_DEFINED__
-
-/* 7.18.1.4 Integer types capable of holding object pointers */
-
-#ifndef __UINTPTR_TYPE__
-# ifndef __INTPTR_TYPE__
-# define __INTPTR_TYPE__ long int
-# endif
-# define __UINTPTR_TYPE__ unsigned __INTPTR_TYPE__
-#endif
-
-typedef __INTPTR_TYPE__ __intptr_t;
-typedef __UINTPTR_TYPE__ __uintptr_t;
-#endif
-
-#endif /* !_ARM_INT_TYPES_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/kcore.h
@@ -1,57 +0,0 @@
-/* $NetBSD: kcore.h,v 1.1 2008/01/01 14:06:43 chris Exp $ */
-
-/*
- * Copyright (c) 1996 Carnegie-Mellon University.
- * All rights reserved.
- *
- * Author: Chris G. Demetriou
- *
- * Permission to use, copy, modify and distribute this software and
- * its documentation is hereby granted, provided that both the copyright
- * notice and this permission notice appear in all copies of the
- * software, derivative works or modified versions, and any portions
- * thereof, and that both notices appear in supporting documentation.
- *
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
- * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
- * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
- * Carnegie Mellon requests users of this software to return to
- *
- * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
- * School of Computer Science
- * Carnegie Mellon University
- * Pittsburgh PA 15213-3890
- *
- * any improvements or extensions that they make and grant Carnegie the
- * rights to redistribute these changes.
- */
-
-/*
- * Modified for NetBSD/i386 by Jason R. Thorpe, Numerical Aerospace
- * Simulation Facility, NASA Ames Research Center.
- */
-
-#ifndef _ARM_KCORE_H_
-#define _ARM_KCORE_H_
-
-typedef struct cpu_kcore_hdr {
- uint32_t version; /* structure version */
- uint32_t flags; /* flags */
-#define KCORE_ARM_APX 0x0001 /* L1 tables are in APX
- format */
- uint32_t PAKernelL1Table; /* PA of kernel L1 table */
- uint32_t PAUserL1Table; /* PA of userland L1 table */
- uint16_t UserL1TableSize; /* size of User L1 table */
- uint32_t nmemsegs; /* Number of RAM segments */
- uint32_t omemsegs; /* offset to memsegs */
-
- /*
- * future versions will add fields here.
- */
-#if 0
- phys_ram_seg_t memsegs[]; /* RAM segments */
-#endif
-} cpu_kcore_hdr_t;
-
-#endif /* _ARM_KCORE_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/limits.h
@@ -1,109 +0,0 @@
-/* $NetBSD: limits.h,v 1.19 2019/01/21 20:28:17 dholland Exp $ */
-
-/*
- * Copyright (c) 1988 The Regents of the University of California.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * from: @(#)limits.h 7.2 (Berkeley) 6/28/90
- */
-
-#ifndef _ARM_LIMITS_H_
-#define _ARM_LIMITS_H_
-
-#include <sys/featuretest.h>
-
-#define CHAR_BIT 8 /* number of bits in a char */
-
-#define UCHAR_MAX 0xff /* max value for an unsigned char */
-#define SCHAR_MAX 0x7f /* max value for a signed char */
-#define SCHAR_MIN (-0x7f-1) /* min value for a signed char */
-
-#define USHRT_MAX 0xffff /* max value for an unsigned short */
-#define SHRT_MAX 0x7fff /* max value for a short */
-#define SHRT_MIN (-0x7fff-1) /* min value for a short */
-
-#define UINT_MAX 0xffffffffU /* max value for an unsigned int */
-#define INT_MAX 0x7fffffff /* max value for an int */
-#define INT_MIN (-0x7fffffff-1) /* min value for an int */
-
-#ifdef _LP64
-#define ULONG_MAX 0xffffffffffffffffUL /* max unsigned long */
-#define LONG_MAX 0x7fffffffffffffffL /* max signed long */
-#define LONG_MIN (-0x7fffffffffffffffL-1) /* min signed long */
-#else
-#define ULONG_MAX 0xffffffffUL /* max value for an unsigned long */
-#define LONG_MAX 0x7fffffffL /* max value for a long */
-#define LONG_MIN (-0x7fffffffL-1) /* min value for a long */
-#endif
-
-#if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \
- defined(_NETBSD_SOURCE)
-#define ULLONG_MAX 0xffffffffffffffffULL /* max unsigned long long */
-#define LLONG_MAX 0x7fffffffffffffffLL /* max signed long long */
-#define LLONG_MIN (-0x7fffffffffffffffLL-1) /* min signed long long */
-#endif
-
-#if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \
- defined(_NETBSD_SOURCE)
-#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */
-
-#if defined(_NETBSD_SOURCE)
-#define SSIZE_MIN LONG_MIN /* min value for a ssize_t */
-#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
-
-#define UQUAD_MAX 0xffffffffffffffffULL /* max unsigned quad */
-#define QUAD_MAX 0x7fffffffffffffffLL /* max signed quad */
-#define QUAD_MIN (-0x7fffffffffffffffLL-1) /* min signed quad */
-
-#endif /* _NETBSD_SOURCE */
-#endif /* _POSIX_C_SOURCE || _XOPEN_SOURCE || _NETBSD_SOURCE */
-
-#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)
-#ifdef _LP64
-#define LONG_BIT 64
-#else
-#define LONG_BIT 32
-#endif
-#define WORD_BIT 32
-
-#define DBL_DIG __DBL_DIG__
-#define DBL_MAX __DBL_MAX__
-#define DBL_MIN __DBL_MIN__
-
-#define FLT_DIG __FLT_DIG__
-#define FLT_MAX __FLT_MAX__
-#define FLT_MIN __FLT_MIN__
-
-#ifdef __ARM_PCS_AAPCS64
-#define LDBL_DIG __LDBL_DIG__
-#define LDBL_MAX __LDBL_MAX__
-#define LDBL_MIN __LDBL_MIN__
-#endif
-
-#endif /* _XOPEN_SOURCE || _NETBSD_SOURCE */
-
-#endif /* _ARM_LIMITS_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/lock.h
@@ -1,221 +0,0 @@
-/* $NetBSD: lock.h,v 1.39 2021/05/30 02:28:59 joerg Exp $ */
-
-/*-
- * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Jason R. Thorpe.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Machine-dependent spin lock operations.
- *
- * NOTE: The SWP insn used here is available only on ARM architecture
- * version 3 and later (as well as 2a). What we are going to do is
- * expect that the kernel will trap and emulate the insn. That will
- * be slow, but give us the atomicity that we need.
- */
-
-#ifndef _ARM_LOCK_H_
-#define _ARM_LOCK_H_
-
-static __inline int
-__SIMPLELOCK_LOCKED_P(const __cpu_simple_lock_t *__ptr)
-{
- return *__ptr == __SIMPLELOCK_LOCKED;
-}
-
-static __inline int
-__SIMPLELOCK_UNLOCKED_P(const __cpu_simple_lock_t *__ptr)
-{
- return *__ptr == __SIMPLELOCK_UNLOCKED;
-}
-
-static __inline void
-__cpu_simple_lock_clear(__cpu_simple_lock_t *__ptr)
-{
- *__ptr = __SIMPLELOCK_UNLOCKED;
-}
-
-static __inline void
-__cpu_simple_lock_set(__cpu_simple_lock_t *__ptr)
-{
- *__ptr = __SIMPLELOCK_LOCKED;
-}
-
-#if defined(_ARM_ARCH_6)
-static __inline unsigned int
-__arm_load_exclusive(__cpu_simple_lock_t *__alp)
-{
- unsigned int __rv;
- if (/*CONSTCOND*/sizeof(*__alp) == 1) {
- __asm __volatile("ldrexb\t%0,[%1]" : "=r"(__rv) : "r"(__alp));
- } else {
- __asm __volatile("ldrex\t%0,[%1]" : "=r"(__rv) : "r"(__alp));
- }
- return __rv;
-}
-
-/* returns 0 on success and 1 on failure */
-static __inline unsigned int
-__arm_store_exclusive(__cpu_simple_lock_t *__alp, unsigned int __val)
-{
- unsigned int __rv;
- if (/*CONSTCOND*/sizeof(*__alp) == 1) {
- __asm __volatile("strexb\t%0,%1,[%2]"
- : "=&r"(__rv) : "r"(__val), "r"(__alp) : "cc", "memory");
- } else {
- __asm __volatile("strex\t%0,%1,[%2]"
- : "=&r"(__rv) : "r"(__val), "r"(__alp) : "cc", "memory");
- }
- return __rv;
-}
-#elif defined(_KERNEL)
-static __inline unsigned char
-__swp(unsigned char __val, __cpu_simple_lock_t *__ptr)
-{
- uint32_t __val32;
- __asm volatile("swpb %0, %1, [%2]"
- : "=&r" (__val32) : "r" (__val), "r" (__ptr) : "memory");
- return __val32;
-}
-#else
-/*
- * On MP Cortex, SWP no longer guarantees atomic results. Thus we pad
- * out SWP so that when the cpu generates an undefined exception we can replace
- * the SWP/MOV instructions with the right LDREX/STREX instructions.
- *
- * This is why we force the SWP into the template needed for LDREX/STREX
- * including the extra instructions and extra register for testing the result.
- */
-static __inline int
-__swp(int __val, __cpu_simple_lock_t *__ptr)
-{
- int __tmp, __rv;
- __asm volatile(
-#if 1
- "1:\t" "swp %[__rv], %[__val], [%[__ptr]]"
- "\n\t" "b 2f"
-#else
- "1:\t" "ldrex %[__rv],[%[__ptr]]"
- "\n\t" "strex %[__tmp],%[__val],[%[__ptr]]"
-#endif
- "\n\t" "cmp %[__tmp],#0"
- "\n\t" "bne 1b"
- "\n" "2:"
- : [__rv] "=&r" (__rv), [__tmp] "=&r" (__tmp)
- : [__val] "r" (__val), [__ptr] "r" (__ptr) : "cc", "memory");
- return __rv;
-}
-#endif /* !_ARM_ARCH_6 */
-
-/* load/dmb implies load-acquire */
-static __inline void
-__arm_load_dmb(void)
-{
-#if defined(_ARM_ARCH_7)
- __asm __volatile("dmb ish" ::: "memory");
-#elif defined(_ARM_ARCH_6)
- __asm __volatile("mcr\tp15,0,%0,c7,c10,5" :: "r"(0) : "memory");
-#endif
-}
-
-/* dmb/store implies store-release */
-static __inline void
-__arm_dmb_store(void)
-{
-#if defined(_ARM_ARCH_7)
- __asm __volatile("dmb ish" ::: "memory");
-#elif defined(_ARM_ARCH_6)
- __asm __volatile("mcr\tp15,0,%0,c7,c10,5" :: "r"(0) : "memory");
-#endif
-}
-
-
-static __inline void __unused
-__cpu_simple_lock_init(__cpu_simple_lock_t *__alp)
-{
-
- *__alp = __SIMPLELOCK_UNLOCKED;
-}
-
-#if !defined(__thumb__) || defined(_ARM_ARCH_T2)
-static __inline void __unused
-__cpu_simple_lock(__cpu_simple_lock_t *__alp)
-{
-#if defined(_ARM_ARCH_6)
- do {
- /* spin */
- } while (__arm_load_exclusive(__alp) != __SIMPLELOCK_UNLOCKED
- || __arm_store_exclusive(__alp, __SIMPLELOCK_LOCKED));
- __arm_load_dmb();
-#else
- while (__swp(__SIMPLELOCK_LOCKED, __alp) != __SIMPLELOCK_UNLOCKED)
- continue;
-#endif
-}
-#else
-void __cpu_simple_lock(__cpu_simple_lock_t *);
-#endif
-
-#if !defined(__thumb__) || defined(_ARM_ARCH_T2)
-static __inline int __unused
-__cpu_simple_lock_try(__cpu_simple_lock_t *__alp)
-{
-#if defined(_ARM_ARCH_6)
- do {
- if (__arm_load_exclusive(__alp) != __SIMPLELOCK_UNLOCKED) {
- return 0;
- }
- } while (__arm_store_exclusive(__alp, __SIMPLELOCK_LOCKED));
- __arm_load_dmb();
- return 1;
-#else
- return (__swp(__SIMPLELOCK_LOCKED, __alp) == __SIMPLELOCK_UNLOCKED);
-#endif
-}
-#else
-int __cpu_simple_lock_try(__cpu_simple_lock_t *);
-#endif
-
-static __inline void __unused
-__cpu_simple_unlock(__cpu_simple_lock_t *__alp)
-{
-
-#if defined(_ARM_ARCH_8) && defined(__LP64__)
- if (sizeof(*__alp) == 1) {
- __asm __volatile("stlrb\t%w0, [%1]"
- :: "r"(__SIMPLELOCK_UNLOCKED), "r"(__alp) : "memory");
- } else {
- __asm __volatile("stlr\t%0, [%1]"
- :: "r"(__SIMPLELOCK_UNLOCKED), "r"(__alp) : "memory");
- }
-#else
- __arm_dmb_store();
- *__alp = __SIMPLELOCK_UNLOCKED;
-#endif
-}
-
-#endif /* _ARM_LOCK_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/math.h
@@ -1,6 +0,0 @@
-/* $NetBSD: math.h,v 1.4 2014/01/31 19:38:06 matt Exp $ */
-
-#define __HAVE_NANF
-#ifdef __ARM_PCS_AAPCS64
-#define __HAVE_LONG_DOUBLE 128
-#endif
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/mcontext.h
@@ -1,284 +0,0 @@
-/* $NetBSD: mcontext.h,v 1.23 2021/10/06 05:33:15 skrll Exp $ */
-
-/*-
- * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Klaus Klein and by Jason R. Thorpe of Wasabi Systems, Inc.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ARM_MCONTEXT_H_
-#define _ARM_MCONTEXT_H_
-
-#include <sys/stdint.h>
-
-/*
- * General register state
- */
-#if defined(__aarch64__)
-#define _NGREG 35 /* GR0-30, SP, PC, SPSR, TPIDR */
-#define _NGREG32 17
-typedef __uint64_t __greg_t;
-typedef unsigned int __greg32_t;
-
-typedef __greg32_t __gregset32_t[_NGREG32];
-#elif defined(__arm__)
-#define _NGREG 17
-typedef unsigned int __greg_t;
-#endif
-
-typedef __greg_t __gregset_t[_NGREG];
-
-#define _REG_R0 0
-#define _REG_R1 1
-#define _REG_R2 2
-#define _REG_R3 3
-#define _REG_R4 4
-#define _REG_R5 5
-#define _REG_R6 6
-#define _REG_R7 7
-#define _REG_R8 8
-#define _REG_R9 9
-#define _REG_R10 10
-#define _REG_R11 11
-#define _REG_R12 12
-#define _REG_R13 13
-#define _REG_R14 14
-#define _REG_R15 15
-#define _REG_CPSR 16
-
-#define _REG_X0 0
-#define _REG_X1 1
-#define _REG_X2 2
-#define _REG_X3 3
-#define _REG_X4 4
-#define _REG_X5 5
-#define _REG_X6 6
-#define _REG_X7 7
-#define _REG_X8 8
-#define _REG_X9 9
-#define _REG_X10 10
-#define _REG_X11 11
-#define _REG_X12 12
-#define _REG_X13 13
-#define _REG_X14 14
-#define _REG_X15 15
-#define _REG_X16 16
-#define _REG_X17 17
-#define _REG_X18 18
-#define _REG_X19 19
-#define _REG_X20 20
-#define _REG_X21 21
-#define _REG_X22 22
-#define _REG_X23 23
-#define _REG_X24 24
-#define _REG_X25 25
-#define _REG_X26 26
-#define _REG_X27 27
-#define _REG_X28 28
-#define _REG_X29 29
-#define _REG_X30 30
-#define _REG_X31 31
-#define _REG_ELR 32
-#define _REG_SPSR 33
-#define _REG_TPIDR 34
-
-/* Convenience synonyms */
-
-#if defined(__aarch64__)
-#define _REG_RV _REG_X0
-#define _REG_FP _REG_X29
-#define _REG_LR _REG_X30
-#define _REG_SP _REG_X31
-#define _REG_PC _REG_ELR
-#elif defined(__arm__)
-#define _REG_RV _REG_R0
-#define _REG_FP _REG_R11
-#define _REG_SP _REG_R13
-#define _REG_LR _REG_R14
-#define _REG_PC _REG_R15
-#endif
-
-/*
- * Floating point register state
- */
-#if defined(__aarch64__)
-
-#define _NFREG 32 /* Number of SIMD registers */
-
-typedef struct {
- union __freg {
- __uint8_t __b8[16];
- __uint16_t __h16[8];
- __uint32_t __s32[4];
- __uint64_t __d64[2];
- __uint128_t __q128[1];
- } __qregs[_NFREG] __aligned(16);
- __uint32_t __fpcr; /* FPCR */
- __uint32_t __fpsr; /* FPSR */
-} __fregset_t;
-
-/* Compat structures */
-typedef struct {
-#if 1 /* __ARM_EABI__ is default on aarch64 */
- unsigned int __vfp_fpscr;
- uint64_t __vfp_fstmx[32];
- unsigned int __vfp_fpsid;
-#else
- unsigned int __vfp_fpscr;
- unsigned int __vfp_fstmx[33];
- unsigned int __vfp_fpsid;
-#endif
-} __vfpregset32_t;
-
-typedef struct {
- __gregset32_t __gregs;
- __vfpregset32_t __vfpregs;
- __greg32_t _mc_tlsbase;
- __greg32_t _mc_user_tpid;
-} mcontext32_t;
-
-typedef struct {
- __gregset_t __gregs; /* General Purpose Register set */
- __fregset_t __fregs; /* FPU/SIMD Register File */
- __greg_t __spare[8]; /* future proof */
-} mcontext_t;
-
-#elif defined(__arm__)
-/* Note: the storage layout of this structure must be identical to ARMFPE! */
-typedef struct {
- unsigned int __fp_fpsr;
- struct {
- unsigned int __fp_exponent;
- unsigned int __fp_mantissa_hi;
- unsigned int __fp_mantissa_lo;
- } __fp_fr[8];
-} __fpregset_t;
-
-typedef struct {
-#ifdef __ARM_EABI__
- unsigned int __vfp_fpscr;
- uint64_t __vfp_fstmx[32];
- unsigned int __vfp_fpsid;
-#else
- unsigned int __vfp_fpscr;
- unsigned int __vfp_fstmx[33];
- unsigned int __vfp_fpsid;
-#endif
-} __vfpregset_t;
-
-typedef struct {
- __gregset_t __gregs;
- union {
- __fpregset_t __fpregs;
- __vfpregset_t __vfpregs;
- } __fpu;
- __greg_t _mc_tlsbase;
- __greg_t _mc_user_tpid;
-} mcontext_t, mcontext32_t;
-
-
-#define _UC_MACHINE_PAD 1 /* Padding appended to ucontext_t */
-
-#ifdef __ARM_EABI__
-#define __UCONTEXT_SIZE (256 + 144)
-#else
-#define __UCONTEXT_SIZE 256
-#endif
-
-#endif
-
-#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || \
- defined(__LIBPTHREAD_SOURCE__)
-
-#include <sys/tls.h>
-
-#if defined(__aarch64__)
-
-__BEGIN_DECLS
-static __inline void *
-__lwp_getprivate_fast(void)
-{
- void *__tpidr;
- __asm __volatile("mrs\t%0, tpidr_el0" : "=r"(__tpidr));
- return __tpidr;
-}
-__END_DECLS
-
-#elif defined(__arm__)
-
-__BEGIN_DECLS
-static __inline void *
-__lwp_getprivate_fast(void)
-{
-#if !defined(__thumb__) || defined(_ARM_ARCH_T2)
- extern void *_lwp_getprivate(void);
- void *rv;
- __asm("mrc p15, 0, %0, c13, c0, 3" : "=r"(rv));
- if (__predict_true(rv))
- return rv;
- /*
- * Some ARM cores are broken and don't raise an undefined fault when an
- * unrecogized mrc instruction is encountered, but just return zero.
- * To do deal with that, if we get a zero we (re-)fetch the value using
- * syscall.
- */
- return _lwp_getprivate();
-#else
- extern void *__aeabi_read_tp(void);
- return __aeabi_read_tp();
-#endif /* !__thumb__ || _ARM_ARCH_T2 */
-}
-__END_DECLS
-#endif
-
-#endif /* _RTLD_SOURCE || _LIBC_SOURCE || __LIBPTHREAD_SOURCE__ */
-
-/* Machine-dependent uc_flags */
-#define _UC_TLSBASE 0x00080000 /* see <sys/ucontext.h> */
-
-/* Machine-dependent uc_flags for arm */
-#define _UC_ARM_VFP 0x00010000 /* FPU field is VFP */
-
-/* used by signal delivery to indicate status of signal stack */
-#define _UC_SETSTACK 0x00020000
-#define _UC_CLRSTACK 0x00040000
-
-#define _UC_MACHINE_SP(uc) ((uc)->uc_mcontext.__gregs[_REG_SP])
-#define _UC_MACHINE_FP(uc) ((uc)->uc_mcontext.__gregs[_REG_FP])
-#define _UC_MACHINE_PC(uc) ((uc)->uc_mcontext.__gregs[_REG_PC])
-#define _UC_MACHINE_INTRV(uc) ((uc)->uc_mcontext.__gregs[_REG_RV])
-
-#define _UC_MACHINE_SET_PC(uc, pc) \
- _UC_MACHINE_PC(uc) = (pc)
-
-#if defined(_KERNEL)
-__BEGIN_DECLS
-void vfp_getcontext(struct lwp *, mcontext_t *, int *);
-void vfp_setcontext(struct lwp *, const mcontext_t *);
-__END_DECLS
-#endif
-
-#endif /* !_ARM_MCONTEXT_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/mutex.h
@@ -1,93 +0,0 @@
-/* $NetBSD: mutex.h,v 1.27.4.1 2023/08/09 17:42:01 martin Exp $ */
-
-/*-
- * Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Jason R. Thorpe and Andrew Doran.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ARM_MUTEX_H_
-#define _ARM_MUTEX_H_
-
-#include <sys/types.h>
-
-#ifdef _KERNEL
-#include <machine/intr.h>
-#endif
-
-/*
- * The ARM mutex implementation is troublesome, because pre-v6 ARM lacks a
- * compare-and-swap operation. However, there aren't any MP pre-v6 ARM
- * systems to speak of.
- *
- * ARMv6 and later, however, does have ldrex/strex, and can thus implement an
- * MP-safe compare-and-swap.
- *
- * So, what we have done is implement simple mutexes using a compare-and-swap.
- * We support pre-ARMv6 by implementing CAS as a restartable atomic sequence
- * that is checked by the IRQ vector.
- *
- */
-
-struct kmutex {
- union {
- /* Adaptive mutex */
- volatile uintptr_t mtxa_owner; /* 0-3 */
-
-#ifdef _KERNEL
- /* Spin mutex */
- struct {
- /*
- * Since the low bit of mtxa_owner is used to flag this
- * mutex as a spin mutex, we can't use the first byte
- * or the last byte to store the ipl or lock values.
- */
- volatile uint8_t mtxs_dummy;
- ipl_cookie_t mtxs_ipl;
- __cpu_simple_lock_t mtxs_lock;
- volatile uint8_t mtxs_unused;
- } s;
-#endif
- } u;
-};
-
-#ifdef __MUTEX_PRIVATE
-
-#define mtx_owner u.mtxa_owner
-#define mtx_ipl u.s.mtxs_ipl
-#define mtx_lock u.s.mtxs_lock
-
-#if 0
-#define __HAVE_MUTEX_STUBS 1
-#define __HAVE_SPIN_MUTEX_STUBS 1
-#endif
-#define __HAVE_SIMPLE_MUTEXES 1
-
-#endif /* __MUTEX_PRIVATE */
-
-__CTASSERT(sizeof(struct kmutex) == sizeof(uintptr_t));
-
-#endif /* _ARM_MUTEX_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/param.h
@@ -1,189 +0,0 @@
-/* $NetBSD: param.h,v 1.24 2021/07/19 10:28:58 christos Exp $ */
-
-/*
- * Copyright (c) 1994,1995 Mark Brinicombe.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the RiscBSD team.
- * 4. The name "RiscBSD" nor the name of the author may be used to
- * endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY RISCBSD ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL RISCBSD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef _ARM_PARAM_H_
-#define _ARM_PARAM_H_
-
-/*
- * Machine dependent constants for all ARM processors
- */
-
-/*
- * For KERNEL code:
- * MACHINE must be defined by the individual port. This is so that
- * uname returns the correct thing, etc.
- *
- * MACHINE_ARCH may be defined by individual ports as a temporary
- * measure while we're finishing the conversion to ELF.
- *
- * For non-KERNEL code:
- * If ELF, MACHINE and MACHINE_ARCH are forced to "arm/armeb".
- */
-
-#if defined(_KERNEL)
-# ifndef MACHINE_ARCH /* XXX For now */
-# ifndef __ARMEB__
-# ifdef __ARM_EABI__
-# define _MACHINE_ARCH earm
-# define MACHINE_ARCH "earm"
-# else
-# define _MACHINE_ARCH arm
-# define MACHINE_ARCH "arm"
-# endif
-# else
-# ifdef __ARM_EABI__
-# define _MACHINE_ARCH earmeb
-# define MACHINE_ARCH "earmeb"
-# else
-# define _MACHINE_ARCH armeb
-# define MACHINE_ARCH "armeb"
-# endif
-# endif /* __ARMEB__ */
-# endif /* MACHINE_ARCH */
-#else
-# undef _MACHINE
-# undef MACHINE
-# undef _MACHINE_ARCH
-# undef MACHINE_ARCH
-# define _MACHINE arm
-# define MACHINE "arm"
-# ifndef __ARMEB__
-# ifdef __ARM_EABI__
-# ifdef __ARM_PCS_VFP
-# ifdef _ARM_ARCH_7
-# define _MACHINE_ARCH earmv7hf
-# define MACHINE_ARCH "earmv7hf"
-# elif defined(_ARM_ARCH_6)
-# define _MACHINE_ARCH earmv6hf
-# define MACHINE_ARCH "earmv6hf"
-# else
-# define _MACHINE_ARCH earmhf
-# define MACHINE_ARCH "earmhf"
-# endif
-# else
-# ifdef _ARM_ARCH_7
-# define _MACHINE_ARCH earmv7
-# define MACHINE_ARCH "earmv7"
-# elif defined(_ARM_ARCH_6)
-# define _MACHINE_ARCH earmv6
-# define MACHINE_ARCH "earmv6"
-# elif !defined(_ARM_ARCH_5T)
-# define _MACHINE_ARCH earmv4
-# define MACHINE_ARCH "earmv4"
-# else
-# define _MACHINE_ARCH earm
-# define MACHINE_ARCH "earm"
-# endif
-# endif
-# else
-# define _MACHINE_ARCH arm
-# define MACHINE_ARCH "arm"
-# endif
-# else
-# ifdef __ARM_EABI__
-# ifdef __ARM_PCS_VFP
-# ifdef _ARM_ARCH_7
-# define _MACHINE_ARCH earmv7hfeb
-# define MACHINE_ARCH "earmv7hfeb"
-# elif defined(_ARM_ARCH_6)
-# define _MACHINE_ARCH earmv6hfeb
-# define MACHINE_ARCH "earmv6hfeb"
-# else
-# define _MACHINE_ARCH earmhfeb
-# define MACHINE_ARCH "earmhfeb"
-# endif
-# else
-# ifdef _ARM_ARCH_7
-# define _MACHINE_ARCH earmv7eb
-# define MACHINE_ARCH "earmv7eb"
-# elif defined(_ARM_ARCH_6)
-# define _MACHINE_ARCH earmv6eb
-# define MACHINE_ARCH "earmv6eb"
-# elif !defined(_ARM_ARCH_5T)
-# define _MACHINE_ARCH earmv4eb
-# define MACHINE_ARCH "earmv4eb"
-# else
-# define _MACHINE_ARCH earmeb
-# define MACHINE_ARCH "earmeb"
-# endif
-# endif
-# else
-# define _MACHINE_ARCH armeb
-# define MACHINE_ARCH "armeb"
-# endif
-# endif /* __ARMEB__ */
-#endif /* !_KERNEL */
-
-#define MAXCPUS 8
-
-#define MID_MACHINE MID_ARM6
-
-/* ARM-specific macro to align a stack pointer (downwards). */
-#define STACK_ALIGNBYTES (8 - 1)
-#ifdef __ARM_EABI__
-#define ALIGNBYTES32 3
-#else
-#define ALIGNBYTES32 7
-#endif
-
-/*
- * Constants related to network buffer management.
- * MCLBYTES must be no larger than NBPG (the software page size), and,
- * on machines that exchange pages of input or output buffers with mbuf
- * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
- * of the hardware page size.
- */
-#define MSIZE 256 /* size of an mbuf */
-
-#ifndef MCLSHIFT
-#define MCLSHIFT 11 /* convert bytes to m_buf clusters */
- /* 2K cluster can hold Ether frame */
-#endif /* MCLSHIFT */
-
-#define MCLBYTES (1 << MCLSHIFT) /* size of a m_buf cluster */
-
-#ifndef NMBCLUSTERS_MAX
-#define NMBCLUSTERS_MAX (0x4000000 / MCLBYTES) /* Limit to 64MB for clusters */
-#endif
-
-/*
- * Compatibility /dev/zero mapping.
- */
-#ifdef _KERNEL
-#ifdef COMPAT_16
-#define COMPAT_ZERODEV(x) (x == makedev(0, _DEV_ZERO_oARM))
-#endif
-#endif /* _KERNEL */
-
-#endif /* _ARM_PARAM_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/pcb.h
@@ -1,89 +0,0 @@
-/* pcb.h,v 1.14.22.2 2007/11/06 23:15:05 matt Exp */
-
-/*
- * Copyright (c) 2001 Matt Thomas <matt@3am-software.com>.
- * Copyright (c) 1994 Mark Brinicombe.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the RiscBSD team.
- * 4. The name "RiscBSD" nor the name of the author may be used to
- * endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY RISCBSD ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL RISCBSD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef _ARM_PCB_H_
-#define _ARM_PCB_H_
-
-#include <machine/frame.h>
-
-#include <arm/arm32/pte.h>
-#include <arm/reg.h>
-
-struct pcb_faultinfo {
- void *pfi_faultptep;
- vaddr_t pfi_faultaddr;
- u_int pfi_repeats;
- pid_t pfi_lastpid;
- uint8_t pfi_faulttype;
-};
-
-#define pcb_ksp pcb_sp
-
-struct pcb {
- /*
- * WARNING!
- * cpuswitchto.S relies on pcb_r8 being quad-aligned
- * (due to the use of "strd" when compiled for XSCALE)
- */
- u_int pcb_r8 __aligned(8); /* used */
- u_int pcb_r9; /* used */
- u_int pcb_r10; /* used */
- u_int pcb_r11; /* used */
- u_int pcb_r12; /* used */
- u_int pcb_sp; /* used */
- u_int pcb_lr;
- u_int pcb_pc;
-
- /*
- * ARMv6 has two user thread/process id registers which can hold
- * any 32bit quanttiies.
- */
- u_int pcb_user_pid_rw; /* p15, 0, Rd, c13, c0, 2 */
- u_int pcb_user_pid_ro; /* p15, 0, Rd, c13, c0, 3 */
-
- void * pcb_onfault; /* On fault handler */
- struct vfpreg pcb_vfp; /* VFP registers */
- struct vfpreg pcb_kernel_vfp; /* kernel VFP state */
- struct pcb_faultinfo pcb_faultinfo;
-};
-
-/*
- * No additional data for core dumps.
- */
-struct md_coredump {
- int md_empty;
-};
-
-#endif /* _ARM_PCB_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/proc.h
@@ -1,66 +0,0 @@
-/* $NetBSD: proc.h,v 1.19 2020/08/14 16:18:36 skrll Exp $ */
-
-/*
- * Copyright (c) 1994 Mark Brinicombe.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the RiscBSD team.
- * 4. The name "RiscBSD" nor the name of the author may be used to
- * endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY RISCBSD ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL RISCBSD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef _ARM_PROC_H_
-#define _ARM_PROC_H_
-
-/*
- * Machine-dependent part of the proc structure for arm.
- */
-
-struct trapframe;
-struct lwp;
-
-struct mdlwp {
- struct trapframe *md_tf;
- int md_flags;
- volatile uint32_t md_astpending;
-};
-
-/* Flags setttings for md_flags */
-#define MDLWP_NOALIGNFLT 0x00000002 /* For EXEC_AOUT */
-#define MDLWP_VFPINTR 0x00000004 /* VFP used in intr */
-
-
-struct mdproc {
- void (*md_syscall)(struct trapframe *, struct lwp *, uint32_t);
- int pmc_enabled; /* bitfield of enabled counters */
- void *pmc_state; /* port-specific pmc state */
- char md_march[12]; /* machine arch of executable */
-};
-
-#define PROC_MACHINE_ARCH(P) ((P)->p_md.md_march)
-#define PROC0_MD_INITIALIZERS .p_md = { .md_march = MACHINE_ARCH },
-
-#endif /* _ARM_PROC_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/profile.h
@@ -1,181 +0,0 @@
-/* $NetBSD: profile.h,v 1.18 2018/01/24 09:04:45 skrll Exp $ */
-
-/*
- * Copyright (c) 2001 Ben Harris
- * Copyright (c) 1995-1996 Mark Brinicombe
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Mark Brinicombe.
- * 4. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define _MCOUNT_DECL void _mcount
-
-/*
- * Cannot implement mcount in C as GCC will trash the ip register when it
- * pushes a trapframe. Pity we cannot insert assembly before the function
- * prologue.
- */
-
-#define MCOUNT_ASM_NAME "__mcount"
-#define PLTSYM
-
-#if !defined(__ARM_EABI__)
-#define MCOUNT \
- __asm(".text"); \
- __asm(".align 0"); \
- __asm(".arm"); \
- __asm(".type " MCOUNT_ASM_NAME ",%function"); \
- __asm(".global " MCOUNT_ASM_NAME); \
- __asm(MCOUNT_ASM_NAME ":"); \
- /* \
- * Preserve registers that are trashed during mcount \
- */ \
- __asm("push {r0-r3, ip, lr}"); \
- /* Check what mode we're in. EQ => 32, NE => 26 */ \
- __asm("teq r0, r0"); \
- __asm("teq pc, r15"); \
- /* \
- * find the return address for mcount, \
- * and the return address for mcount's caller. \
- * \
- * frompcindex = pc pushed by call into self. \
- */ \
- __asm("moveq r0, ip"); \
- __asm("bicne r0, ip, #0xfc000003"); \
- /* \
- * selfpc = pc pushed by mcount call \
- */ \
- __asm("moveq r1, lr"); \
- __asm("bicne r1, lr, #0xfc000003"); \
- /* \
- * Call the real mcount code \
- */ \
- __asm("bl " ___STRING(_C_LABEL(_mcount)) PLTSYM); \
- /* \
- * Restore registers that were trashed during mcount \
- */ \
- __asm("pop {r0-r3, lr}"); \
- __asm("pop {pc}"); \
- __asm(".size " MCOUNT_ASM_NAME ", .-" MCOUNT_ASM_NAME);
-#elif defined(__ARM_DWARF_EH__)
-#define MCOUNT \
- __asm(".text"); \
- __asm(".align 0"); \
- __asm(".arm"); \
- __asm(".type " MCOUNT_ASM_NAME ",%function"); \
- __asm(".global " MCOUNT_ASM_NAME); \
- __asm(MCOUNT_ASM_NAME ":"); \
- __asm(".cfi_startproc"); \
- /* \
- * Preserve registers that are trashed during mcount \
- */ \
- __asm("push {r0-r3, ip, lr}"); \
- __asm(".cfi_def_cfa_offset 24"); \
- __asm(".cfi_offset 14, -4"); \
- __asm(".cfi_offset 12, -8"); \
- __asm(".cfi_offset 3, -12"); \
- __asm(".cfi_offset 2, -16"); \
- __asm(".cfi_offset 1, -20"); \
- __asm(".cfi_offset 0, -24"); \
- /* \
- * find the return address for mcount, \
- * and the return address for mcount's caller. \
- * \
- * frompcindex = pc pushed by call into self. \
- */ \
- __asm("mov r0, ip"); \
- /* \
- * selfpc = pc pushed by mcount call \
- */ \
- __asm("mov r1, lr"); \
- /* \
- * Call the real mcount code \
- */ \
- __asm("bl " ___STRING(_C_LABEL(_mcount)) PLTSYM); \
- /* \
- * Restore registers that were trashed during mcount \
- */ \
- __asm("pop {r0-r3, lr}"); \
- __asm("pop {pc}"); \
- __asm(".cfi_endproc"); \
- __asm(".size " MCOUNT_ASM_NAME ", .-" MCOUNT_ASM_NAME);
-#else
-#define MCOUNT \
- __asm(".text"); \
- __asm(".align 0"); \
- __asm(".arm"); \
- __asm(".type " MCOUNT_ASM_NAME ",%function"); \
- __asm(".global " MCOUNT_ASM_NAME); \
- __asm(MCOUNT_ASM_NAME ":"); \
- __asm(".fnstart"); \
- __asm(".cfi_startproc"); \
- /* \
- * Preserve registers that are trashed during mcount \
- */ \
- __asm("push {r0-r3, ip, lr}"); \
- __asm(".save {r0-r3, lr}"); \
- __asm(".cfi_def_cfa_offset 24"); \
- __asm(".cfi_offset 14, -4"); \
- __asm(".cfi_offset 12, -8"); \
- __asm(".cfi_offset 3, -12"); \
- __asm(".cfi_offset 2, -16"); \
- __asm(".cfi_offset 1, -20"); \
- __asm(".cfi_offset 0, -24"); \
- /* \
- * find the return address for mcount, \
- * and the return address for mcount's caller. \
- * \
- * frompcindex = pc pushed by call into self. \
- */ \
- __asm("mov r0, ip"); \
- /* \
- * selfpc = pc pushed by mcount call \
- */ \
- __asm("mov r1, lr"); \
- /* \
- * Call the real mcount code \
- */ \
- __asm("bl " ___STRING(_C_LABEL(_mcount)) PLTSYM); \
- /* \
- * Restore registers that were trashed during mcount \
- */ \
- __asm("pop {r0-r3, lr}"); \
- __asm("pop {pc}"); \
- __asm(".cfi_endproc"); \
- __asm(".fnend"); \
- __asm(".size " MCOUNT_ASM_NAME ", .-" MCOUNT_ASM_NAME);
-#endif
-
-#ifdef _KERNEL
-#include <arm/cpufunc.h>
-/*
- * splhigh() and splx() are heavyweight, and call mcount(). Therefore
- * we disabled interrupts (IRQ, but not FIQ) directly on the CPU.
- *
- * We're lucky that the CPSR and 's' both happen to be 'int's.
- */
-#define MCOUNT_ENTER s = __set_cpsr_c(0x0080, 0x0080); /* kill IRQ */
-#define MCOUNT_EXIT __set_cpsr_c(0xffffffff, s); /* restore old value */
-#endif /* _KERNEL */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/ptrace.h
@@ -1,87 +0,0 @@
-/* $NetBSD: ptrace.h,v 1.17 2020/12/14 01:58:48 rin Exp $ */
-
-/*
- * Copyright (c) 1995 Frank Lancaster
- * Copyright (c) 1995 Tools GmbH
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by TooLs GmbH.
- * 4. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission
- *
- * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <arm/cdefs.h>
-
-/*
- * arm-dependent ptrace definitions
- */
-#if 0
-/* Exposed to userland for NetBSD 1.6 to 9. Do not reuse for other purpose. */
-#define PT_STEP (PT_FIRSTMACH + 0) /* Not implemented */
-#endif
-#define PT_GETREGS (PT_FIRSTMACH + 1)
-#define PT_SETREGS (PT_FIRSTMACH + 2)
-/* 3 and 4 are for FPE registers */
-#define PT_GETFPREGS (PT_FIRSTMACH + 5)
-#define PT_SETFPREGS (PT_FIRSTMACH + 6)
-#if 0
-/* Exposed to userland for NetBSD 8 to 9. Do not reuse for other purpose. */
-#define PT_SETSTEP (PT_FIRSTMACH + 7) /* Not implemented */
-#define PT_CLEARSTEP (PT_FIRSTMACH + 8) /* Not implemented */
-#endif
-
-#define PT_MACHDEP_STRINGS \
- "n/a PT_STEP", \
- "PT_GETREGS", \
- "PT_SETREGS", \
- "old PT_GETFPREGS", \
- "old PT_SETFPREGS", \
- "PT_GETFPREGS", \
- "PT_SETFPREGS", \
- "n/a PT_SETSTEP", \
- "n/a PT_CLEARSTEP",
-
-#include <machine/reg.h>
-#define PTRACE_REG_PC(_r) (_r)->r_pc
-#define PTRACE_REG_FP(_r) (_r)->r[11]
-#define PTRACE_REG_SET_PC(_r, _v) (_r)->r_pc = (_v)
-#define PTRACE_REG_SP(_r) (_r)->r_sp
-#define PTRACE_REG_INTRV(_r) (_r)->r[0]
-
-#define PTRACE_ILLEGAL_ASM __asm __volatile ("udf #0" : : : "memory")
-
-#if defined(__ARMEL__) || defined(_ARM_ARCH_BE8)
-#define PTRACE_BREAKPOINT ((const uint8_t[]) { 0xfe, 0xde, 0xff, 0xe7 })
-#else
-#define PTRACE_BREAKPOINT ((const uint8_t[]) { 0xe7, 0xff, 0xde, 0xfe })
-#endif
-
-#ifdef _ARM_ARCH_BE8
-#define PTRACE_BREAKPOINT_INSN 0xfedeffe7
-#else
-#define PTRACE_BREAKPOINT_INSN 0xe7ffdefe
-#endif
-
-#define PTRACE_BREAKPOINT_ASM __asm __volatile (".word " ___STRING(PTRACE_BREAKPOINT_INSN) )
-#define PTRACE_BREAKPOINT_SIZE 4
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/reg.h
@@ -1,60 +0,0 @@
-/* $NetBSD: reg.h,v 1.6 2014/01/29 00:42:15 matt Exp $ */
-
-/*
- * Copyright (C) 1994, 1995 Frank Lancaster
- * Copyright (C) 1994, 1995 TooLs GmbH.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by TooLs GmbH.
- * 4. The name of TooLs GmbH may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * @(#)reg.h 5.5 (Berkeley) 1/18/91
- */
-
-#ifndef _ARM_REG_H_
-#define _ARM_REG_H_
-
-struct reg {
- unsigned int r[13];
- unsigned int r_sp;
- unsigned int r_lr;
- unsigned int r_pc;
- unsigned int r_cpsr;
-};
-
-struct vfpreg {
- uint32_t vfp_fpexc;
- uint32_t vfp_fpscr;
- uint32_t vfp_fpinst;
- uint32_t vfp_fpinst2;
- uint64_t vfp_regs[33]; /* In case we need fstmx format. */
-};
-
-struct fpreg {
- struct vfpreg fpr_vfp;
-};
-
-
-#endif /* !_ARM_REG_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/rwlock.h
@@ -1,1 +0,0 @@
-/* $NetBSD: rwlock.h,v 1.10 2019/11/29 20:04:52 riastradh Exp $ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/setjmp.h
@@ -1,93 +0,0 @@
-/* $NetBSD: setjmp.h,v 1.5 2013/01/11 13:56:32 matt Exp $ */
-
-/*
- * machine/setjmp.h: machine dependent setjmp-related information.
- */
-
-#define _JBLEN 64 /* size, in longs, of a jmp_buf */
-
-/*
- * NOTE: The internal structure of a jmp_buf is *PRIVATE*
- * This information is provided as there is software
- * that fiddles with this with obtain the stack pointer
- * (yes really ! and its commercial !).
- *
- * Description of the setjmp buffer
- *
- * word 0 magic number (dependent on creator)
- * 13 fpscr vfp status control register
- * 14 r4 register 4
- * 15 r5 register 5
- * 16 r6 register 6
- * 17 r7 register 7
- * 18 r8 register 8
- * 19 r9 register 9
- * 20 r10 register 10 (sl)
- * 21 r11 register 11 (fp)
- * 22 r12 register 12 (ip)
- * 23 r13 register 13 (sp)
- * 24 r14 register 14 (lr)
- * 25 signal mask (dependent on magic)
- * 26 (con't)
- * 27 (con't)
- * 28 (con't)
- * 32-33 d8 (vfp register d8)
- * 34-35 d9 (vfp register d9)
- * 36-37 d10 (vfp register d10)
- * 38-39 d11 (vfp register d11)
- * 40-41 d12 (vfp register d12)
- * 42-43 d13 (vfp register d13)
- * 44-45 d14 (vfp register d14)
- * 46-47 d15 (vfp register d15)
- *
- * The magic number number identifies the jmp_buf and
- * how the buffer was created as well as providing
- * a sanity check
- *
- * A side note I should mention - Please do not tamper
- * with the floating point fields. While they are
- * always saved and restored at the moment this cannot
- * be garenteed especially if the compiler happens
- * to be generating soft-float code so no fp
- * registers will be used.
- *
- * Whilst this can be seen an encouraging people to
- * use the setjmp buffer in this way I think that it
- * is for the best then if changes occur compiles will
- * break rather than just having new builds falling over
- * mysteriously.
- */
-
-#define _JB_MAGIC__SETJMP 0x4278f500
-#define _JB_MAGIC_SETJMP 0x4278f501
-#define _JB_MAGIC__SETJMP_VFP 0x4278f502
-#define _JB_MAGIC_SETJMP_VFP 0x4278f503
-
-/* Valid for all jmp_buf's */
-
-#define _JB_MAGIC 0
-#define _JB_REG_FPSCR 13
-#define _JB_REG_R4 14
-#define _JB_REG_R5 15
-#define _JB_REG_R6 16
-#define _JB_REG_R7 17
-#define _JB_REG_R8 18
-#define _JB_REG_R9 19
-#define _JB_REG_R10 20
-#define _JB_REG_R11 21
-#define _JB_REG_R12 22
-#define _JB_REG_R13 23
-#define _JB_REG_R14 24
-
-/* Only valid with the _JB_MAGIC_SETJMP magic */
-
-#define _JB_SIGMASK 25
-
-#define _JB_REG_D8 32
-#define _JB_REG_D9 34
-#define _JB_REG_D10 36
-#define _JB_REG_D11 38
-#define _JB_REG_D12 40
-#define _JB_REG_D13 42
-#define _JB_REG_D14 44
-#define _JB_REG_D15 46
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/signal.h
@@ -1,167 +0,0 @@
-/* $NetBSD: signal.h,v 1.20 2021/10/30 19:54:58 thorpej Exp $ */
-
-/*
- * Copyright (c) 1994-1996 Mark Brinicombe.
- * Copyright (c) 1994 Brini.
- * All rights reserved.
- *
- * This code is derived from software written for Brini by Mark Brinicombe
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Brini.
- * 4. The name of the company nor the name of the author may be used to
- * endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY BRINI ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL BRINI OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * RiscBSD kernel project
- *
- * signal.h
- *
- * Architecture dependent signal types and structures
- *
- * Created : 30/09/94
- */
-
-#ifndef _ARM_SIGNAL_H_
-#define _ARM_SIGNAL_H_
-
-#include <sys/featuretest.h>
-#include <sys/sigtypes.h>
-
-#ifndef _LOCORE
-typedef int sig_atomic_t;
-#endif
-
-#if defined(__arm__)
-
-#define __HAVE_STRUCT_SIGCONTEXT
-
-#if defined(_NETBSD_SOURCE)
-
-#ifndef _LOCORE
-/*
- * Information pushed on stack when a signal is delivered.
- * This is used by the kernel to restore state following
- * execution of the signal handler. It is also made available
- * to the handler to allow it to restore state properly if
- * a non-standard exit is performed.
- */
-
-#if defined(_KERNEL)
-struct sigcontext13 {
- int sc_onstack; /* sigstack state to restore */
- int sc_mask; /* signal mask to restore (old style) */
-
- unsigned int sc_spsr;
- unsigned int sc_r0;
- unsigned int sc_r1;
- unsigned int sc_r2;
- unsigned int sc_r3;
- unsigned int sc_r4;
- unsigned int sc_r5;
- unsigned int sc_r6;
- unsigned int sc_r7;
- unsigned int sc_r8;
- unsigned int sc_r9;
- unsigned int sc_r10;
- unsigned int sc_r11;
- unsigned int sc_r12;
- unsigned int sc_usr_sp;
- unsigned int sc_usr_lr;
- unsigned int sc_svc_lr;
- unsigned int sc_pc;
-};
-#endif /* _KERNEL */
-
-#if defined(_LIBC) || defined(_KERNEL)
-struct sigcontext {
- int sc_onstack; /* sigstack state to restore */
- int __sc_mask13; /* signal mask to restore (old style) */
-
- unsigned int sc_spsr;
- unsigned int sc_r0;
- unsigned int sc_r1;
- unsigned int sc_r2;
- unsigned int sc_r3;
- unsigned int sc_r4;
- unsigned int sc_r5;
- unsigned int sc_r6;
- unsigned int sc_r7;
- unsigned int sc_r8;
- unsigned int sc_r9;
- unsigned int sc_r10;
- unsigned int sc_r11;
- unsigned int sc_r12;
- unsigned int sc_usr_sp;
- unsigned int sc_usr_lr;
- unsigned int sc_svc_lr;
- unsigned int sc_pc;
-
- sigset_t sc_mask; /* signal mask to restore (new style) */
-};
-#endif /* _LIBC || _KERNEL */
-
-#endif /* !_LOCORE */
-
-/* Signals codes */
-
-/*
- * SIGFPE codes
- *
- * see ieeefp.h for definition of FP exception codes
- */
-
-#define SIG_CODE_FPE_CODE_MASK 0x00000f00 /* Mask for exception code */
-#define SIG_CODE_FPE_CODE_SHIFT 8 /* Shift for exception code */
-#define SIG_CODE_FPE_TYPE_MASK 0x000000ff /* Mask for specific code */
-
-/*
- * SIGILL codes
- *
- * the signal code is the instruction that raised the signal
- */
-
-/*
- * SIGBUS and SIGSEGV codes
- *
- * The signal code is combination of the fault address and the fault code.
- *
- * The fault code is the coproc #15 fault status code
- *
- * The exception to this is a SIGBUS or SIGSEGV from a prefetch abort.
- * In this case the fault status code is not valid so the TYPE_MASK
- * should be treated as undefined (in practice it is the bottom 4 bits
- * of the fault address).
- */
-
-#define SIG_CODE_BUS_ADDR_MASK 0xfffffff0
-#define SIG_CODE_BUS_TYPE_MASK 0x0000000f
-#define SIG_CODE_SEGV_ADDR_MASK SIG_CODE_BUS_ADDR_MASK
-#define SIG_CODE_SEGV_TYPE_MASK SIG_CODE_BUS_TYPE_MASK
-
-#endif /* _NETBSD_SOURCE */
-#endif /* __arm__ */
-#endif /* !_ARM_SIGNAL_H_ */
-
-/* End of signal.h */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/sljit_machdep.h
@@ -1,59 +0,0 @@
-/* $NetBSD: sljit_machdep.h,v 1.1 2014/07/23 18:19:43 alnsn Exp $ */
-
-/*-
- * Copyright (c) 2014 Alexander Nasonov.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ARM_SLJITARCH_H
-#define _ARM_SLJITARCH_H
-
-#include <sys/cdefs.h>
-
-#ifdef _KERNEL
-#include <machine/types.h>
-#include <arm/cpufunc.h>
-#else
-#include <stddef.h>
-#include <stdint.h>
-#include <arm/sysarch.h>
-#endif
-
-#if defined(_ARM_ARCH_T2)
-#define SLJIT_CONFIG_ARM_THUMB2 1
-#elif defined(_ARM_ARCH_7)
-#define SLJIT_CONFIG_ARM_V7 1
-#else
-#define SLJIT_CONFIG_ARM_V5 1
-#endif
-
-#ifdef _KERNEL
-#define SLJIT_CACHE_FLUSH(from, to) \
- cpu_icache_sync_range((vaddr_t)(from), (vsize_t)((to) - (from)))
-#else
-#define SLJIT_CACHE_FLUSH(from, to) \
- (void)arm_sync_icache((uintptr_t)(from), (size_t)((to) - (from)))
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/sysarch.h
@@ -1,85 +0,0 @@
-/* $NetBSD: sysarch.h,v 1.15 2021/10/06 05:33:15 skrll Exp $ */
-
-/*
- * Copyright (c) 1996-1997 Mark Brinicombe.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Mark Brinicombe.
- * 4. The name of the company nor the name of the author may be used to
- * endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef _ARM_SYSARCH_H_
-#define _ARM_SYSARCH_H_
-
-#include <sys/cdefs.h>
-
-/*
- * Pickup definition of size_t and uintptr_t
- */
-#include <machine/ansi.h>
-#include <sys/stdint.h>
-#ifndef _KERNEL
-#include <stdbool.h>
-#endif
-
-#ifdef _BSD_SIZE_T_
-typedef _BSD_SIZE_T_ size_t;
-#undef _BSD_SIZE_T_
-#endif
-
-/*
- * Architecture specific syscalls (arm)
- */
-
-#define ARM_SYNC_ICACHE 0
-#define ARM_DRAIN_WRITEBUF 1
-#define ARM_VFP_FPSCR 2
-#define ARM_FPU_USED 3
-
-struct arm_sync_icache_args {
- uintptr_t addr; /* Virtual start address */
- size_t len; /* Region size */
-};
-
-struct arm_vfp_fpscr_args {
- uint32_t fpscr_clear; /* bits to clear */
- uint32_t fpscr_set; /* bits to set */
-};
-
-struct arm_unaligned_faults_args {
- bool enabled; /* unaligned faults are enabled */
-};
-
-#ifndef _KERNEL
-__BEGIN_DECLS
-int arm_sync_icache(uintptr_t, size_t);
-int arm_drain_writebuf(void);
-int sysarch(int, void *);
-__END_DECLS
-#endif
-
-#endif /* !_ARM_SYSARCH_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/trap.h
@@ -1,83 +0,0 @@
-/* $NetBSD: trap.h,v 1.10 2020/12/01 02:48:29 rin Exp $ */
-
-/*
- * Copyright (c) 1995 Mark Brinicombe.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Mark Brinicombe.
- * 4. The name of the company nor the name of the author may be used to
- * endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * RiscBSD kernel project
- *
- * trap.h
- *
- * Various trap definitions
- */
-
-#include <arm/cdefs.h>
-
-/*
- * Instructions used for breakpoints.
- *
- * These are undefined instructions.
- * Technically the userspace breakpoint could be a SWI but we want to
- * keep this the same as IPKDB which needs an undefined instruction as
- * a break point.
- *
- * Ideally ARM would define several standard instruction sequences for
- * use as breakpoints.
- *
- * The BKPT instruction isn't much use to us, since its behaviour is
- * unpredictable on ARMv3 and lower.
- *
- * The ARM ARM says that for maximum compatibility, we should use undefined
- * instructions that look like 0x.7f...f. .
- */
-
-#define GDB_BREAKPOINT 0xe6000011 /* Used by GDB 4.x */
-#define IPKDB_BREAKPOINT_DEAD 0xe6000010 /* was used by IPKDB */
-#define GDB5_BREAKPOINT 0xe7ffdefe /* Used by GDB 5.0 */
-#define GDB_THUMB_BREAKPOINT 0xdefe /* Thumb in GDB */
-#define KERNEL_BREAKPOINT 0xe7ffffff /* Used by DDB */
-
-/*
- * DTrace uses 0xe7fffef0 to 0xe7fffeff as breakpoints.
- * The first byte is used to encode a cond value.
- */
-#define DTRACE_BREAKPOINT 0xe7fffef0
-#define DTRACE_BREAKPOINT_MASK 0xfffffff0
-#define DTRACE_IS_BREAKPOINT(insn) ((insn & DTRACE_BREAKPOINT_MASK) == DTRACE_BREAKPOINT)
-
-#ifdef _ARM_ARCH_BE8
-#define KBPT_ASM ".word 0xfedeffe7"
-#else
-#define KBPT_ASM ".word 0xe7ffdefe"
-#endif
-
-#define USER_BREAKPOINT GDB_BREAKPOINT
-
-/* End of trap.h */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/types.h
@@ -1,107 +0,0 @@
-/* $NetBSD: types.h,v 1.40 2020/01/18 14:40:04 skrll Exp $ */
-
-/*
- * Copyright (c) 1990 The Regents of the University of California.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * from: @(#)types.h 7.5 (Berkeley) 3/9/91
- */
-
-#ifndef _ARM_TYPES_H_
-#define _ARM_TYPES_H_
-
-#include <sys/cdefs.h>
-#include <sys/featuretest.h>
-#include <arm/int_types.h>
-
-#if defined(_KERNEL)
-typedef struct label_t { /* Used by setjmp & longjmp */
- int val[11];
-} label_t;
-#endif
-
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
-typedef unsigned long paddr_t;
-typedef unsigned long psize_t;
-typedef unsigned long vaddr_t;
-typedef unsigned long vsize_t;
-#define PRIxPADDR "lx"
-#define PRIxPSIZE "lx"
-#define PRIuPSIZE "lu"
-#define PRIxVADDR "lx"
-#define PRIxVSIZE "lx"
-#define PRIuVSIZE "lu"
-
-#define VADDR_MAX ULONG_MAX
-#define PADDR_MAX ULONG_MAX
-
-typedef int register_t, register32_t;
-#define PRIxREGISTER "x"
-
-typedef unsigned short tlb_asid_t;
-#endif
-
-/*
- * This should have always been an 8-bit type, but since it's been exposed
- * to user-space, we don't want ABI breakage there.
- */
-#if defined(_KERNEL)
-typedef unsigned char __cpu_simple_lock_nv_t;
-#else
-typedef int __cpu_simple_lock_nv_t;
-#endif /* _KERNEL */
-typedef int __register_t;
-
-#define __SIMPLELOCK_LOCKED 1
-#define __SIMPLELOCK_UNLOCKED 0
-
-#define __HAVE_COMMON___TLS_GET_ADDR
-#define __HAVE_CPU_DATA_FIRST
-#define __HAVE_MINIMAL_EMUL
-#define __HAVE_NEW_STYLE_BUS_H
-#define __HAVE_OLD_DISKLABEL
-#define __HAVE_SYSCALL_INTERN
-#define __HAVE_TLS_VARIANT_I
-#define __HAVE___LWP_GETPRIVATE_FAST
-#if defined(__ARM_EABI__) && defined(_ARM_ARCH_6)
-#define __HAVE_ATOMIC64_OPS
-#endif
-#if defined(_ARM_ARCH_6)
-#define __HAVE_MAXPROC_HOOK
-#define __HAVE_UCAS_MP
-#endif
-
-#if defined(_KERNEL) || defined(_KMEMUSER)
-#define PCU_FPU 0
-#define PCU_UNIT_COUNT 1
-#endif
-
-#if defined(_KERNEL)
-#define __HAVE_RAS
-#endif
-
-#endif /* _ARM_TYPES_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/vmparam.h
@@ -1,3 +0,0 @@
-/* $NetBSD: vmparam.h,v 1.3 2013/05/01 12:00:51 matt Exp $ */
-
-#include <arm/arm32/vmparam.h>
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/machine/wchar_limits.h
@@ -1,75 +0,0 @@
-/* $NetBSD: wchar_limits.h,v 1.4 2013/01/24 10:17:00 matt Exp $ */
-
-/*-
- * Copyright (c) 2004 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Klaus Klein.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ARM_WCHAR_LIMITS_H_
-#define _ARM_WCHAR_LIMITS_H_
-
-/*
- * 7.18.3 Limits of other integer types
- */
-
-/* limits of wchar_t */
-
-#ifdef __WCHAR_MIN__
-#define WCHAR_MIN __WCHAR_MIN__ /* wchar_t */
-#elif __WCHAR_UNSIGNED__
-#define WCHAR_MIN 0U /* wchar_t */
-#else
-#define WCHAR_MIN (-0x7fffffff-1) /* wchar_t */
-#endif
-
-#ifdef __WCHAR_MAX__
-#define WCHAR_MAX __WCHAR_MAX__ /* wchar_t */
-#elif __WCHAR_UNSIGNED__
-#define WCHAR_MAX 0xffffffffU /* wchar_t */
-#else
-#define WCHAR_MAX 0x7fffffff /* wchar_t */
-#endif
-
-/* limits of wint_t */
-
-#ifdef __WINT_MIN__
-#define WINT_MIN __WINT_MIN__ /* wint_t */
-#elif __WINT_UNSIGNED__
-#define WINT_MIN 0U /* wint_t */
-#else
-#define WINT_MIN (-0x7fffffff-1) /* wint_t */
-#endif
-
-#ifdef __WINT_MAX__
-#define WINT_MAX __WINT_MAX__ /* wint_t */
-#elif __WINT_UNSIGNED__
-#define WINT_MAX 0xffffffffU /* wint_t */
-#else
-#define WINT_MAX 0x7fffffff /* wint_t */
-#endif
-
-#endif /* !_ARM_WCHAR_LIMITS_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/float.h
@@ -1,63 +0,0 @@
-/* $NetBSD: float.h,v 1.8 2014/01/29 01:10:36 matt Exp $ */
-
-/*-
- * Copyright (c) 2014 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Matt Thomas of 3am Software Foundry.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ARM_FLOAT_H_
-#define _ARM_FLOAT_H_
-
-#include <sys/cdefs.h>
-
-#ifdef __ARM_PCS_AAPCS64
-
-#define LDBL_MANT_DIG __LDBL_MANT_DIG__
-#define LDBL_DIG __LDBL_DIG__
-#define LDBL_MIN_EXP __LDBL_MIN_EXP__
-#define LDBL_MIN_10_EXP __LDBL_MIN_10_EXP__
-#define LDBL_MAX_EXP __LDBL_MAX_EXP__
-#define LDBL_MAX_10_EXP __LDBL_MAX_10_EXP__
-#define LDBL_EPSILON __LDBL_EPSILON__
-#define LDBL_MIN __LDBL_MIN__
-#define LDBL_MAX __LDBL_MAX__
-
-#endif /* __ARM_PCS_AAPCS64 */
-
-#include <sys/float_ieee754.h>
-
-#if defined(__ARM_PCS_AAPCS64) \
- && ((!defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) \
- && !defined(_XOPEN_SOURCE)) \
- || (__STDC_VERSION__ - 0) >= 199901L \
- || (_POSIX_C_SOURCE - 0) >= 200112L \
- || ((_XOPEN_SOURCE - 0) >= 600) \
- || defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE))
-#define DECIMAL_DIG __DECIMAL_DIG__
-#endif /* __ARM_PCS_AAPCS64 && ... */
-
-#endif /* !_ARM_FLOAT_H_ */
\ No newline at end of file
lib/libc/include/arm-netbsd-eabihf/unwind.h
@@ -1,102 +0,0 @@
-//===------------------------------- unwind.h -----------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//
-// C++ ABI Level 1 ABI documented at:
-// http://mentorembedded.github.io/cxx-abi/abi-eh.html
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef _UNWIND_H
-#define _UNWIND_H
-
-#include <stdint.h>
-#include <stddef.h>
-
-typedef enum {
- _URC_NO_REASON = 0,
- _URC_FOREIGN_EXCEPTION_CAUGHT = 1,
- _URC_FATAL_PHASE2_ERROR = 2,
- _URC_FATAL_PHASE1_ERROR = 3,
- _URC_NORMAL_STOP = 4,
- _URC_END_OF_STACK = 5,
- _URC_HANDLER_FOUND = 6,
- _URC_INSTALL_CONTEXT = 7,
- _URC_CONTINUE_UNWIND = 8
-} _Unwind_Reason_Code;
-
-typedef enum {
- _UA_SEARCH_PHASE = 1,
- _UA_CLEANUP_PHASE = 2,
- _UA_HANDLER_FRAME = 4,
- _UA_FORCE_UNWIND = 8,
- _UA_END_OF_STACK = 16 /* GCC extension */
-} _Unwind_Action;
-
-struct _Unwind_Context;
-
-struct _Unwind_Exception {
- uint64_t exception_class;
- void (*exception_cleanup)(_Unwind_Reason_Code, struct _Unwind_Exception *);
- uintptr_t private_1;
- uintptr_t private_2;
-} __attribute__((__aligned__));
-
-typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn)(int, _Unwind_Action, uint64_t,
- struct _Unwind_Exception *,
- struct _Unwind_Context *,
- void *);
-
-typedef _Unwind_Reason_Code (*__personality_routine)(int, _Unwind_Action,
- uint64_t,
- struct _Unwind_Exception *,
- struct _Unwind_Context *);
-
-#ifdef _UNWIND_GCC_EXTENSIONS
-struct dwarf_eh_bases {
- void *tbase;
- void *dbase;
- void *func;
-};
-#endif
-
-__BEGIN_DECLS
-
-_Unwind_Reason_Code _Unwind_RaiseException(struct _Unwind_Exception *);
-void _Unwind_Resume(struct _Unwind_Exception *) __dead;
-_Unwind_Reason_Code _Unwind_Resume_or_Rethrow(struct _Unwind_Exception *);
-_Unwind_Reason_Code _Unwind_ForcedUnwind(struct _Unwind_Exception *,
- _Unwind_Stop_Fn, void *);
-void _Unwind_DeleteException(struct _Unwind_Exception *);
-uintptr_t _Unwind_GetGR(struct _Unwind_Context *, int);
-void _Unwind_SetGR(struct _Unwind_Context *, int, uintptr_t);
-uintptr_t _Unwind_GetIP(struct _Unwind_Context *);
-uintptr_t _Unwind_GetIPInfo(struct _Unwind_Context *, int *);
-uintptr_t _Unwind_GetCFA(struct _Unwind_Context *);
-void _Unwind_SetIP(struct _Unwind_Context *, uintptr_t);
-uintptr_t _Unwind_GetRegionStart(struct _Unwind_Context *);
-uintptr_t _Unwind_GetLanguageSpecificData(struct _Unwind_Context *);
-uintptr_t _Unwind_GetDataRelBase(struct _Unwind_Context *);
-uintptr_t _Unwind_GetTextRelBase(struct _Unwind_Context *);
-
-typedef _Unwind_Reason_Code (*_Unwind_Trace_Fn)(struct _Unwind_Context *,
- void *);
-_Unwind_Reason_Code _Unwind_Backtrace(_Unwind_Trace_Fn, void *);
-void *_Unwind_FindEnclosingFunction(void *);
-
-void __register_frame(const void *);
-void __register_frame_info(const void *, void *);
-void __deregister_frame(const void *);
-void *__deregister_frame_info(const void *);
-
-#ifdef _UNWIND_GCC_EXTENSIONS
-void *_Unwind_Find_FDE(void *, struct dwarf_eh_bases *);
-#endif
-
-__END_DECLS
-
-#endif // _UNWIND_H
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/dl_find_object.h
@@ -1,25 +0,0 @@
-/* arm definitions for finding objects.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _DLFCN_H
-# error "Never use <bits/dl_find_object.h> directly; include <dlfcn.h> instead."
-#endif
-
-#define DLFO_STRUCT_HAS_EH_DBASE 0
-#define DLFO_STRUCT_HAS_EH_COUNT 1
-#define DLFO_EH_SEGMENT_TYPE PT_ARM_EXIDX
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/endianness.h
@@ -1,15 +0,0 @@
-#ifndef _BITS_ENDIANNESS_H
-#define _BITS_ENDIANNESS_H 1
-
-#ifndef _BITS_ENDIAN_H
-# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
-#endif
-
-/* ARM has selectable endianness. */
-#ifdef __ARMEB__
-#define __BYTE_ORDER __BIG_ENDIAN
-#else
-#define __BYTE_ORDER __LITTLE_ENDIAN
-#endif
-
-#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/fcntl.h
@@ -1,54 +0,0 @@
-/* O_*, F_*, FD_* bit values for Linux.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FCNTL_H
-# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
-#endif
-
-#define __O_DIRECTORY 040000 /* Must be a directory. */
-#define __O_NOFOLLOW 0100000 /* Do not follow links. */
-#define __O_DIRECT 0200000 /* Direct disk access. */
-#define __O_LARGEFILE 0400000
-
-struct flock
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
-#ifndef __USE_FILE_OFFSET64
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
-#else
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
-#endif
- __pid_t l_pid; /* Process holding the lock. */
- };
-
-#ifdef __USE_LARGEFILE64
-struct flock64
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- };
-#endif
-
-/* Include generic Linux declarations. */
-#include <bits/fcntl-linux.h>
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/fenv.h
@@ -1,90 +0,0 @@
-/* Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FENV_H
-# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
-#endif
-
-/* Define bits representing exceptions in the FPU status word. */
-enum
- {
- FE_INVALID =
-#define FE_INVALID 1
- FE_INVALID,
- FE_DIVBYZERO =
-#define FE_DIVBYZERO 2
- FE_DIVBYZERO,
- FE_OVERFLOW =
-#define FE_OVERFLOW 4
- FE_OVERFLOW,
- FE_UNDERFLOW =
-#define FE_UNDERFLOW 8
- FE_UNDERFLOW,
- FE_INEXACT =
-#define FE_INEXACT 16
- FE_INEXACT,
- };
-
-/* Amount to shift by to convert an exception to a mask bit. */
-#define FE_EXCEPT_SHIFT 8
-
-/* All supported exceptions. */
-#define FE_ALL_EXCEPT \
- (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW | FE_INEXACT)
-
-/* VFP supports all of the four defined rounding modes. */
-enum
- {
- FE_TONEAREST =
-#define FE_TONEAREST 0
- FE_TONEAREST,
- FE_UPWARD =
-#define FE_UPWARD 0x400000
- FE_UPWARD,
- FE_DOWNWARD =
-#define FE_DOWNWARD 0x800000
- FE_DOWNWARD,
- FE_TOWARDZERO =
-#define FE_TOWARDZERO 0xc00000
- FE_TOWARDZERO
- };
-
-/* Type representing exception flags. */
-typedef unsigned int fexcept_t;
-
-/* Type representing floating-point environment. */
-typedef struct
- {
- unsigned int __cw;
- }
-fenv_t;
-
-/* If the default argument is used we use this value. */
-#define FE_DFL_ENV ((const fenv_t *) -1l)
-
-#ifdef __USE_GNU
-/* Floating-point environment where none of the exceptions are masked. */
-# define FE_NOMASK_ENV ((const fenv_t *) -2)
-#endif
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
-/* Type representing floating-point control modes. */
-typedef unsigned int femode_t;
-
-/* Default floating-point control modes. */
-# define FE_DFL_MODE ((const femode_t *) -1L)
-#endif
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/floatn.h
@@ -1,52 +0,0 @@
-/* Macros to control TS 18661-3 glibc features.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this glibc
- includes corresponding *f128 interfaces for it. */
-#define __HAVE_FLOAT128 0
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#define __HAVE_DISTINCT_FLOAT128 0
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X 0
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE 0
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1.
- E.g.: #define __f128(x) x##f128. */
-# undef __f128
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1.
- E.g.: #define __CFLOAT128 _Complex _Float128. */
-# undef __CFLOAT128
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/hwcap.h
@@ -1,59 +0,0 @@
-/* Defines for bits in AT_HWCAP. ARM Linux version.
- Copyright (C) 2012-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)
-# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
-#endif
-
-/* The following must match the kernel's <asm/hwcap.h>. */
-#define HWCAP_ARM_SWP 1
-#define HWCAP_ARM_HALF 2
-#define HWCAP_ARM_THUMB 4
-#define HWCAP_ARM_26BIT 8
-#define HWCAP_ARM_FAST_MULT 16
-#define HWCAP_ARM_FPA 32
-#define HWCAP_ARM_VFP 64
-#define HWCAP_ARM_EDSP 128
-#define HWCAP_ARM_JAVA 256
-#define HWCAP_ARM_IWMMXT 512
-#define HWCAP_ARM_CRUNCH 1024
-#define HWCAP_ARM_THUMBEE 2048
-#define HWCAP_ARM_NEON 4096
-#define HWCAP_ARM_VFPv3 8192
-#define HWCAP_ARM_VFPv3D16 16384
-#define HWCAP_ARM_TLS 32768
-#define HWCAP_ARM_VFPv4 65536
-#define HWCAP_ARM_IDIVA 131072
-#define HWCAP_ARM_IDIVT 262144
-#define HWCAP_ARM_VFPD32 524288
-#define HWCAP_ARM_LPAE 1048576
-#define HWCAP_ARM_EVTSTRM 2097152
-#define HWCAP_FPHP 4194304
-#define HWCAP_ASIMDHP 8388608
-#define HWCAP_ASIMDDP 16777216
-#define HWCAP_ASIMDFHM 33554432
-#define HWCAP_ASIMDBF16 67108864
-#define HWCAP_I8MM 134217728
-
-#define HWCAP2_AES 1
-#define HWCAP2_PMULL 2
-#define HWCAP2_SHA1 4
-#define HWCAP2_SHA2 8
-#define HWCAP2_CRC32 16
-#define HWCAP2_SB 32
-#define HWCAP2_SSBS 64
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/link.h
@@ -1,65 +0,0 @@
-/* Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-# error "Never include <bits/link.h> directly; use <link.h> instead."
-#endif
-
-
-/* Registers for entry into PLT on ARM. */
-typedef struct La_arm_regs
-{
- uint32_t lr_reg[4];
- uint32_t lr_sp;
- uint32_t lr_lr;
- /* Coprocessor registers used for argument passing. The data
- stored here depends on the coprocessors available in the
- system which are used for function calls in the current ABI.
- VFP uses eight 64-bit registers, and iWMMXt uses ten. */
- uint32_t lr_coproc[42];
-} La_arm_regs;
-
-/* Return values for calls from PLT on ARM. */
-typedef struct La_arm_retval
-{
- /* Up to four integer registers can be used for a return value in
- some ABIs (APCS complex long double). */
- uint32_t lrv_reg[4];
-
- /* Any coprocessor registers which might be used to return values
- in the current ABI. */
- uint32_t lrv_coproc[12];
-} La_arm_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf32_Addr la_arm_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_arm_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_arm_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_arm_regs *__inregs,
- La_arm_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/long-double.h
@@ -1,53 +0,0 @@
-/* Properties of long double type.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* This header is included by <sys/cdefs.h>.
-
- If long double is ABI-compatible with double, it should define
- __NO_LONG_DOUBLE_MATH to 1; otherwise, it should leave
- __NO_LONG_DOUBLE_MATH undefined.
-
- If this build of the GNU C Library supports both long double
- ABI-compatible with double and some other long double format not
- ABI-compatible with double, it should define
- __LONG_DOUBLE_MATH_OPTIONAL to 1; otherwise, it should leave
- __LONG_DOUBLE_MATH_OPTIONAL undefined.
-
- If __NO_LONG_DOUBLE_MATH is already defined, this header must not
- define anything; this is needed to work with the definition of
- __NO_LONG_DOUBLE_MATH in nldbl-compat.h. */
-
-/* In the default version of this header, long double is
- ABI-compatible with double. */
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __NO_LONG_DOUBLE_MATH 1
-#endif
-
-/* The macro __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI is used to determine the
- choice of the underlying ABI of long double. It will always assume
- a constant value for each translation unit.
-
- If the value is non-zero, any API which is parameterized by the long
- double type (i.e the scanf/printf family of functions or the explicitly
- parameterized math.h functions) will be redirected to a compatible
- implementation using _Float128 ABI via symbols suffixed with ieee128.
-
- The mechanism this macro uses to acquire may be a function
- of architecture, or target specific options used to invoke the
- compiler. */
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/procfs-id.h
@@ -1,25 +0,0 @@
-/* Types of pr_uid and pr_gid in struct elf_prpsinfo. Arm version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
-#endif
-
-typedef unsigned short int __pr_uid_t;
-typedef unsigned short int __pr_gid_t;
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/procfs.h
@@ -1,34 +0,0 @@
-/* Types for registers for sys/procfs.h. Arm version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
-#endif
-
-/* Type for a general-purpose register. */
-typedef unsigned long elf_greg_t;
-
-/* And the whole bunch of them. We could have used `struct
- user_regs' directly in the typedef, but tradition says that
- the register set is an array, which does have some peculiar
- semantics, so leave it that way. */
-#define ELF_NGREG (sizeof (struct user_regs) / sizeof (elf_greg_t))
-typedef elf_greg_t elf_gregset_t[ELF_NGREG];
-
-/* Register set for the floating-point registers. */
-typedef struct user_fpregs elf_fpregset_t;
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/rseq.h
@@ -1,83 +0,0 @@
-/* Restartable Sequences Linux arm architecture header.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RSEQ_H
-# error "Never use <bits/rseq.h> directly; include <sys/rseq.h> instead."
-#endif
-
-/*
- RSEQ_SIG is a signature required before each abort handler code.
-
- It is a 32-bit value that maps to actual architecture code compiled
- into applications and libraries. It needs to be defined for each
- architecture. When choosing this value, it needs to be taken into
- account that generating invalid instructions may have ill effects on
- tools like objdump, and may also have impact on the CPU speculative
- execution efficiency in some cases.
-
- - ARM little endian
-
- RSEQ_SIG uses the udf A32 instruction with an uncommon immediate operand
- value 0x5de3. This traps if user-space reaches this instruction by mistake,
- and the uncommon operand ensures the kernel does not move the instruction
- pointer to attacker-controlled code on rseq abort.
-
- The instruction pattern in the A32 instruction set is:
-
- e7f5def3 udf #24035 ; 0x5de3
-
- This translates to the following instruction pattern in the T16 instruction
- set:
-
- little endian:
- def3 udf #243 ; 0xf3
- e7f5 b.n <7f5>
-
- - ARMv6+ big endian (BE8):
-
- ARMv6+ -mbig-endian generates mixed endianness code vs data: little-endian
- code and big-endian data. The data value of the signature needs to have its
- byte order reversed to generate the trap instruction:
-
- Data: 0xf3def5e7
-
- Translates to this A32 instruction pattern:
-
- e7f5def3 udf #24035 ; 0x5de3
-
- Translates to this T16 instruction pattern:
-
- def3 udf #243 ; 0xf3
- e7f5 b.n <7f5>
-
- - Prior to ARMv6 big endian (BE32):
-
- Prior to ARMv6, -mbig-endian generates big-endian code and data
- (which match), so the endianness of the data representation of the
- signature should not be reversed. However, the choice between BE32
- and BE8 is done by the linker, so we cannot know whether code and
- data endianness will be mixed before the linker is invoked. So rather
- than try to play tricks with the linker, the rseq signature is simply
- data (not a trap instruction) prior to ARMv6 on big endian. This is
- why the signature is expressed as data (.word) rather than as
- instruction (.inst) in assembler. */
-
-#ifdef __ARMEB__
-# define RSEQ_SIG 0xf3def5e7 /* udf #24035 ; 0x5de3 (ARMv6+) */
-#else
-# define RSEQ_SIG 0xe7f5def3 /* udf #24035 ; 0x5de3 */
-#endif
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/setjmp.h
@@ -1,36 +0,0 @@
-/* Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Define the machine-dependent type `jmp_buf'. ARM EABI version. */
-
-#ifndef _BITS_SETJMP_H
-#define _BITS_SETJMP_H 1
-
-#if !defined _SETJMP_H && !defined _PTHREAD_H
-# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
-#endif
-
-#ifndef __ASSEMBLER__
-/* The exact set of registers saved may depend on the particular core
- in use, as some coprocessor registers may need to be saved. The C
- Library ABI requires that the buffer be 8-byte aligned, and
- recommends that the buffer contain 64 words. The first 26 words
- are occupied by sp, lr, v1-v6, sl, fp, and d8-d15. */
-typedef int __jmp_buf[64] __attribute__((__aligned__ (8)));
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/shmlba.h
@@ -1,29 +0,0 @@
-/* Define SHMLBA. ARM version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
-#endif
-
-__BEGIN_DECLS
-
-/* Segment low boundary address multiple. */
-#define SHMLBA (__getpagesize () << 2)
-extern int __getpagesize (void) __THROW __attribute__ ((__const__));
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/struct_stat.h
@@ -1,139 +0,0 @@
-/* Definition for struct stat. Linux/arm version.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
-#endif
-
-#ifndef _BITS_STRUCT_STAT_H
-#define _BITS_STRUCT_STAT_H 1
-
-#include <bits/endian.h>
-#include <bits/wordsize.h>
-
-struct stat
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-#else
- __dev_t st_dev; /* Device. */
- unsigned short int __pad1;
-# ifndef __USE_FILE_OFFSET64
- __ino_t st_ino; /* File serial number. */
-# else
- __ino_t __st_ino; /* 32bit file serial number. */
-# endif
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned short int __pad2;
-# ifndef __USE_FILE_OFFSET64
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
-# ifndef __USE_FILE_OFFSET64
- __blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
-# else
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# endif
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
-# ifndef __USE_FILE_OFFSET64
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
-#endif /* __USE_TIME64_REDIRECTS */
- };
-
-#ifdef __USE_LARGEFILE64
-struct stat64
- {
-# ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-# else
- __dev_t st_dev; /* Device. */
- unsigned int __pad1;
-
- __ino_t __st_ino; /* 32bit file serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned int __pad2;
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- __ino64_t st_ino; /* File serial number. */
-# endif /* __USE_TIME64_REDIRECTS */
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-
-#endif /* _BITS_STRUCT_STAT_H */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/timesize.h
@@ -1,20 +0,0 @@
-/* Bit size of the time_t type at glibc build time, Linux/ARM.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Size in bits of the 'time_t' type of the default ABI. */
-#define __TIMESIZE 32
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/typesizes.h
@@ -1,74 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. ARM version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __UWORD_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#define __RLIM_T_MATCHES_RLIM64_T 0
-#define __STATFS_MATCHES_STATFS64 0
-/* And for getitimer, setitimer and rusage */
-#define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/wordsize.h
@@ -1,21 +0,0 @@
-/* Copyright (C) 1999-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#define __WORDSIZE 32
-#define __WORDSIZE_TIME64_COMPAT32 1
-#define __WORDSIZE32_SIZE_ULONG 0
-#define __WORDSIZE32_PTRDIFF_LONG 0
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/gnu/lib-names.h
@@ -1,14 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#if !defined __ARM_PCS_VFP
-# include <gnu/lib-names-soft.h>
-#endif
-#if defined __ARM_PCS_VFP
-# include <gnu/lib-names-hard.h>
-#endif
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/gnu/stubs.h
@@ -1,11 +0,0 @@
-/* This file is automatically generated.
- This file selects the right generated file of `__stub_FUNCTION' macros
- based on the architecture being compiled for. */
-
-
-#if !defined __ARM_PCS_VFP
-# include <gnu/stubs-soft.h>
-#endif
-#if defined __ARM_PCS_VFP
-# include <gnu/stubs-hard.h>
-#endif
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/sys/ptrace.h
@@ -1,226 +0,0 @@
-/* `ptrace' debugger support interface. Linux/ARM version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PTRACE_H
-#define _SYS_PTRACE_H 1
-
-#include <features.h>
-#include <bits/types.h>
-
-__BEGIN_DECLS
-
-/* Type of the REQUEST argument to `ptrace.' */
-enum __ptrace_request
-{
- /* Indicate that the process making this request should be traced.
- All signals received by this process can be intercepted by its
- parent, and its parent can use the other `ptrace' requests. */
- PTRACE_TRACEME = 0,
-#define PT_TRACE_ME PTRACE_TRACEME
-
- /* Return the word in the process's text space at address ADDR. */
- PTRACE_PEEKTEXT = 1,
-#define PT_READ_I PTRACE_PEEKTEXT
-
- /* Return the word in the process's data space at address ADDR. */
- PTRACE_PEEKDATA = 2,
-#define PT_READ_D PTRACE_PEEKDATA
-
- /* Return the word in the process's user area at offset ADDR. */
- PTRACE_PEEKUSER = 3,
-#define PT_READ_U PTRACE_PEEKUSER
-
- /* Write the word DATA into the process's text space at address ADDR. */
- PTRACE_POKETEXT = 4,
-#define PT_WRITE_I PTRACE_POKETEXT
-
- /* Write the word DATA into the process's data space at address ADDR. */
- PTRACE_POKEDATA = 5,
-#define PT_WRITE_D PTRACE_POKEDATA
-
- /* Write the word DATA into the process's user area at offset ADDR. */
- PTRACE_POKEUSER = 6,
-#define PT_WRITE_U PTRACE_POKEUSER
-
- /* Continue the process. */
- PTRACE_CONT = 7,
-#define PT_CONTINUE PTRACE_CONT
-
- /* Kill the process. */
- PTRACE_KILL = 8,
-#define PT_KILL PTRACE_KILL
-
- /* Single step the process. */
- PTRACE_SINGLESTEP = 9,
-#define PT_STEP PTRACE_SINGLESTEP
-
- /* Get all general purpose registers used by a process. */
- PTRACE_GETREGS = 12,
-#define PT_GETREGS PTRACE_GETREGS
-
- /* Set all general purpose registers used by a process. */
- PTRACE_SETREGS = 13,
-#define PT_SETREGS PTRACE_SETREGS
-
- /* Get all floating point registers used by a process. */
- PTRACE_GETFPREGS = 14,
-#define PT_GETFPREGS PTRACE_GETFPREGS
-
- /* Set all floating point registers used by a process. */
- PTRACE_SETFPREGS = 15,
-#define PT_SETFPREGS PTRACE_SETFPREGS
-
- /* Attach to a process that is already running. */
- PTRACE_ATTACH = 16,
-#define PT_ATTACH PTRACE_ATTACH
-
- /* Detach from a process attached to with PTRACE_ATTACH. */
- PTRACE_DETACH = 17,
-#define PT_DETACH PTRACE_DETACH
-
- /* Get the iWMMXt state of a process. */
- PTRACE_GETWMMXREGS = 18,
-#define PT_GETWMMXREGS PTRACE_GETWMMXREGS
-
- /* Set the iWMMXt state of a process. */
- PTRACE_SETWMMXREGS = 19,
-#define PT_SETWMMXREGS PTRACE_SETWMMXREGS
-
- /* Get the thread pointer of a process. */
- PTRACE_GET_THREAD_AREA = 22,
-#define PT_GET_THREAD_AREA PTRACE_GET_THREAD_AREA
-
- /* Change the syscall number of a process. */
- PTRACE_SET_SYSCALL = 23,
-#define PT_SET_SYSCALL PTRACE_SET_SYSCALL
-
- /* Continue and stop at the next entry to or return from syscall. */
- PTRACE_SYSCALL = 24,
-#define PT_SYSCALL PTRACE_SYSCALL
-
- /* Get the Crunch state of a process. */
- PTRACE_GETCRUNCHREGS = 25,
-#define PT_GETCRUNCHREGS PTRACE_GETCRUNCHREGS
-
- /* Set the Crunch state of a process. */
- PTRACE_SETCRUNCHREGS = 26,
-#define PT_SETCRUNCHREGS PTRACE_SETCRUNCHREGS
-
- /* Get all VFP registers used by a process. */
- PTRACE_GETVFPREGS = 27,
-#define PT_GETVFPREGS PTRACE_GETVFPREGS
-
- /* Set all VFP registers used by a process. */
- PTRACE_SETVFPREGS = 28,
-#define PT_SETVFPREGS PTRACE_SETVFPREGS
-
- /* Get all hardware breakpoint registers. */
- PTRACE_GETHBPREGS = 29,
-#define PT_GETHBPREGS PTRACE_GETHBPREGS
-
- /* Set all hardware breakpoint registers. */
- PTRACE_SETHBPREGS = 30,
-#define PT_SETHBPREGS PTRACE_SETHBPREGS
-
- /* Get the ELF fdpic loadmap address. */
- PTRACE_GETFDPIC = 31,
-#define PT_GETFDPIC PTRACE_GETFDPIC
-
- /* Set ptrace filter options. */
- PTRACE_SETOPTIONS = 0x4200,
-#define PT_SETOPTIONS PTRACE_SETOPTIONS
-
- /* Get last ptrace message. */
- PTRACE_GETEVENTMSG = 0x4201,
-#define PT_GETEVENTMSG PTRACE_GETEVENTMSG
-
- /* Get siginfo for process. */
- PTRACE_GETSIGINFO = 0x4202,
-#define PT_GETSIGINFO PTRACE_GETSIGINFO
-
- /* Set new siginfo for process. */
- PTRACE_SETSIGINFO = 0x4203,
-#define PT_SETSIGINFO PTRACE_SETSIGINFO
-
- /* Get register content. */
- PTRACE_GETREGSET = 0x4204,
-#define PTRACE_GETREGSET PTRACE_GETREGSET
-
- /* Set register content. */
- PTRACE_SETREGSET = 0x4205,
-#define PTRACE_SETREGSET PTRACE_SETREGSET
-
- /* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
- signal or group stop state. */
- PTRACE_SEIZE = 0x4206,
-#define PTRACE_SEIZE PTRACE_SEIZE
-
- /* Trap seized tracee. */
- PTRACE_INTERRUPT = 0x4207,
-#define PTRACE_INTERRUPT PTRACE_INTERRUPT
-
- /* Wait for next group event. */
- PTRACE_LISTEN = 0x4208,
-#define PTRACE_LISTEN PTRACE_LISTEN
-
- /* Retrieve siginfo_t structures without removing signals from a queue. */
- PTRACE_PEEKSIGINFO = 0x4209,
-#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
-
- /* Get the mask of blocked signals. */
- PTRACE_GETSIGMASK = 0x420a,
-#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
-
- /* Change the mask of blocked signals. */
- PTRACE_SETSIGMASK = 0x420b,
-#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
-
- /* Get seccomp BPF filters. */
- PTRACE_SECCOMP_GET_FILTER = 0x420c,
-#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
-
- /* Get seccomp BPF filter metadata. */
- PTRACE_SECCOMP_GET_METADATA = 0x420d,
-#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
-
- /* Get information about system call. */
- PTRACE_GET_SYSCALL_INFO = 0x420e,
-#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
-
- /* Get rseq configuration information. */
- PTRACE_GET_RSEQ_CONFIGURATION = 0x420f,
-#define PTRACE_GET_RSEQ_CONFIGURATION PTRACE_GET_RSEQ_CONFIGURATION
-
- /* Set configuration for syscall user dispatch. */
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG = 0x4210,
-#define PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-
- /* Get configuration for syscall user dispatch. */
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG = 0x4211
-#define PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-};
-
-
-#include <bits/ptrace-shared.h>
-
-__END_DECLS
-
-#endif /* _SYS_PTRACE_H */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/sys/ucontext.h
@@ -1,144 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* System V/ARM ABI compliant context switching support. */
-
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include <features.h>
-
-#include <bits/types/sigset_t.h>
-#include <bits/types/stack_t.h>
-
-
-#ifdef __USE_MISC
-# define __ctx(fld) fld
-#else
-# define __ctx(fld) __ ## fld
-#endif
-
-#ifdef __USE_MISC
-typedef int greg_t;
-
-/* Number of general registers. */
-# define NGREG 18
-
-/* Container for all general registers. */
-typedef greg_t gregset_t[NGREG];
-
-/* Number of each register is the `gregset_t' array. */
-enum
-{
- REG_R0 = 0,
-# define REG_R0 REG_R0
- REG_R1 = 1,
-# define REG_R1 REG_R1
- REG_R2 = 2,
-# define REG_R2 REG_R2
- REG_R3 = 3,
-# define REG_R3 REG_R3
- REG_R4 = 4,
-# define REG_R4 REG_R4
- REG_R5 = 5,
-# define REG_R5 REG_R5
- REG_R6 = 6,
-# define REG_R6 REG_R6
- REG_R7 = 7,
-# define REG_R7 REG_R7
- REG_R8 = 8,
-# define REG_R8 REG_R8
- REG_R9 = 9,
-# define REG_R9 REG_R9
- REG_R10 = 10,
-# define REG_R10 REG_R10
- REG_R11 = 11,
-# define REG_R11 REG_R11
- REG_R12 = 12,
-# define REG_R12 REG_R12
- REG_R13 = 13,
-# define REG_R13 REG_R13
- REG_R14 = 14,
-# define REG_R14 REG_R14
- REG_R15 = 15
-# define REG_R15 REG_R15
-};
-
-struct _libc_fpstate
-{
- struct
- {
- unsigned int sign1:1;
- unsigned int unused:15;
- unsigned int sign2:1;
- unsigned int exponent:14;
- unsigned int j:1;
- unsigned int mantissa1:31;
- unsigned int mantissa0:32;
- } fpregs[8];
- unsigned int fpsr:32;
- unsigned int fpcr:32;
- unsigned char ftype[8];
- unsigned int init_flag;
-};
-/* Structure to describe FPU registers. */
-typedef struct _libc_fpstate fpregset_t;
-#endif
-
-/* Context to describe whole processor state. This only describes
- the core registers; coprocessor registers get saved elsewhere
- (e.g. in uc_regspace, or somewhere unspecified on the stack
- during non-RT signal handlers). */
-typedef struct
- {
- unsigned long int __ctx(trap_no);
- unsigned long int __ctx(error_code);
- unsigned long int __ctx(oldmask);
- unsigned long int __ctx(arm_r0);
- unsigned long int __ctx(arm_r1);
- unsigned long int __ctx(arm_r2);
- unsigned long int __ctx(arm_r3);
- unsigned long int __ctx(arm_r4);
- unsigned long int __ctx(arm_r5);
- unsigned long int __ctx(arm_r6);
- unsigned long int __ctx(arm_r7);
- unsigned long int __ctx(arm_r8);
- unsigned long int __ctx(arm_r9);
- unsigned long int __ctx(arm_r10);
- unsigned long int __ctx(arm_fp);
- unsigned long int __ctx(arm_ip);
- unsigned long int __ctx(arm_sp);
- unsigned long int __ctx(arm_lr);
- unsigned long int __ctx(arm_pc);
- unsigned long int __ctx(arm_cpsr);
- unsigned long int __ctx(fault_address);
- } mcontext_t;
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long __ctx(uc_flags);
- struct ucontext_t *uc_link;
- stack_t uc_stack;
- mcontext_t uc_mcontext;
- sigset_t uc_sigmask;
- unsigned long __ctx(uc_regspace)[128] __attribute__((__aligned__(8)));
- } ucontext_t;
-
-#undef __ctx
-
-#endif /* sys/ucontext.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/sys/user.h
@@ -1,71 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_USER_H
-#define _SYS_USER_H 1
-
-/* The whole purpose of this file is for GDB and GDB only. Don't read
- too much into it. Don't use it for anything other than GDB unless
- you know what you are doing. */
-
-struct user_fpregs
-{
- struct fp_reg
- {
- unsigned int sign1:1;
- unsigned int unused:15;
- unsigned int sign2:1;
- unsigned int exponent:14;
- unsigned int j:1;
- unsigned int mantissa1:31;
- unsigned int mantissa0:32;
- } fpregs[8];
- unsigned int fpsr:32;
- unsigned int fpcr:32;
- unsigned char ftype[8];
- unsigned int init_flag;
-};
-
-struct user_regs
-{
- unsigned long int uregs[18];
-};
-
-struct user
-{
- struct user_regs regs; /* General registers */
- int u_fpvalid; /* True if math co-processor being used. */
-
- unsigned long int u_tsize; /* Text segment size (pages). */
- unsigned long int u_dsize; /* Data segment size (pages). */
- unsigned long int u_ssize; /* Stack segment size (pages). */
-
- unsigned long start_code; /* Starting virtual address of text. */
- unsigned long start_stack; /* Starting virtual address of stack. */
-
- long int signal; /* Signal that caused the core dump. */
- int reserved; /* No longer used */
- struct user_regs *u_ar0; /* help gdb to find the general registers. */
-
- unsigned long magic; /* uniquely identify a core file */
- char u_comm[32]; /* User command that was responsible */
- int u_debugreg[8];
- struct user_fpregs u_fp; /* Floating point registers */
- struct user_fpregs *u_fp0; /* help gdb to find the FP registers. */
-};
-
-#endif /* sys/user.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/fpu_control.h
@@ -1,75 +0,0 @@
-/* FPU control word definitions. ARM VFP version.
- Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FPU_CONTROL_H
-#define _FPU_CONTROL_H
-
-#if !(defined(_LIBC) && !defined(_LIBC_TEST)) && defined(__SOFTFP__)
-
-#define _FPU_RESERVED 0xffffffff
-#define _FPU_DEFAULT 0x00000000
-typedef unsigned int fpu_control_t;
-#define _FPU_GETCW(cw) (cw) = 0
-#define _FPU_SETCW(cw) (void) (cw)
-extern fpu_control_t __fpu_control;
-
-#else
-
-/* masking of interrupts */
-#define _FPU_MASK_IM 0x00000100 /* invalid operation */
-#define _FPU_MASK_ZM 0x00000200 /* divide by zero */
-#define _FPU_MASK_OM 0x00000400 /* overflow */
-#define _FPU_MASK_UM 0x00000800 /* underflow */
-#define _FPU_MASK_PM 0x00001000 /* inexact */
-
-#define _FPU_MASK_NZCV 0xf0000000 /* NZCV flags */
-#define _FPU_MASK_RM 0x00c00000 /* rounding mode */
-#define _FPU_MASK_EXCEPT 0x00001f1f /* all exception flags */
-
-/* Some bits in the FPSCR are not yet defined. They must be preserved when
- modifying the contents. */
-#define _FPU_RESERVED 0x00086060
-#define _FPU_DEFAULT 0x00000000
-
-/* Default + exceptions enabled. */
-#define _FPU_IEEE (_FPU_DEFAULT | 0x00001f00)
-
-/* Type of the control word. */
-typedef unsigned int fpu_control_t;
-
-/* Macros for accessing the hardware control word. */
-#ifdef __SOFTFP__
-/* This is fmrx %0, fpscr. */
-# define _FPU_GETCW(cw) \
- __asm__ __volatile__ ("mrc p10, 7, %0, cr1, cr0, 0" : "=r" (cw))
-/* This is fmxr fpscr, %0. */
-# define _FPU_SETCW(cw) \
- __asm__ __volatile__ ("mcr p10, 7, %0, cr1, cr0, 0" : : "r" (cw))
-#else
-# define _FPU_GETCW(cw) \
- __asm__ __volatile__ ("vmrs %0, fpscr" : "=r" (cw))
-# define _FPU_SETCW(cw) \
- __asm__ __volatile__ ("vmsr fpscr, %0" : : "r" (cw))
-#endif
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-#endif /* __SOFTFP__ */
-
-#endif /* _FPU_CONTROL_H */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/dl_find_object.h
@@ -1,25 +0,0 @@
-/* arm definitions for finding objects.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _DLFCN_H
-# error "Never use <bits/dl_find_object.h> directly; include <dlfcn.h> instead."
-#endif
-
-#define DLFO_STRUCT_HAS_EH_DBASE 0
-#define DLFO_STRUCT_HAS_EH_COUNT 1
-#define DLFO_EH_SEGMENT_TYPE PT_ARM_EXIDX
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/endianness.h
@@ -1,15 +0,0 @@
-#ifndef _BITS_ENDIANNESS_H
-#define _BITS_ENDIANNESS_H 1
-
-#ifndef _BITS_ENDIAN_H
-# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
-#endif
-
-/* ARM has selectable endianness. */
-#ifdef __ARMEB__
-#define __BYTE_ORDER __BIG_ENDIAN
-#else
-#define __BYTE_ORDER __LITTLE_ENDIAN
-#endif
-
-#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/fcntl.h
@@ -1,54 +0,0 @@
-/* O_*, F_*, FD_* bit values for Linux.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FCNTL_H
-# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
-#endif
-
-#define __O_DIRECTORY 040000 /* Must be a directory. */
-#define __O_NOFOLLOW 0100000 /* Do not follow links. */
-#define __O_DIRECT 0200000 /* Direct disk access. */
-#define __O_LARGEFILE 0400000
-
-struct flock
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
-#ifndef __USE_FILE_OFFSET64
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
-#else
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
-#endif
- __pid_t l_pid; /* Process holding the lock. */
- };
-
-#ifdef __USE_LARGEFILE64
-struct flock64
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- };
-#endif
-
-/* Include generic Linux declarations. */
-#include <bits/fcntl-linux.h>
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/fenv.h
@@ -1,90 +0,0 @@
-/* Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FENV_H
-# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
-#endif
-
-/* Define bits representing exceptions in the FPU status word. */
-enum
- {
- FE_INVALID =
-#define FE_INVALID 1
- FE_INVALID,
- FE_DIVBYZERO =
-#define FE_DIVBYZERO 2
- FE_DIVBYZERO,
- FE_OVERFLOW =
-#define FE_OVERFLOW 4
- FE_OVERFLOW,
- FE_UNDERFLOW =
-#define FE_UNDERFLOW 8
- FE_UNDERFLOW,
- FE_INEXACT =
-#define FE_INEXACT 16
- FE_INEXACT,
- };
-
-/* Amount to shift by to convert an exception to a mask bit. */
-#define FE_EXCEPT_SHIFT 8
-
-/* All supported exceptions. */
-#define FE_ALL_EXCEPT \
- (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW | FE_INEXACT)
-
-/* VFP supports all of the four defined rounding modes. */
-enum
- {
- FE_TONEAREST =
-#define FE_TONEAREST 0
- FE_TONEAREST,
- FE_UPWARD =
-#define FE_UPWARD 0x400000
- FE_UPWARD,
- FE_DOWNWARD =
-#define FE_DOWNWARD 0x800000
- FE_DOWNWARD,
- FE_TOWARDZERO =
-#define FE_TOWARDZERO 0xc00000
- FE_TOWARDZERO
- };
-
-/* Type representing exception flags. */
-typedef unsigned int fexcept_t;
-
-/* Type representing floating-point environment. */
-typedef struct
- {
- unsigned int __cw;
- }
-fenv_t;
-
-/* If the default argument is used we use this value. */
-#define FE_DFL_ENV ((const fenv_t *) -1l)
-
-#ifdef __USE_GNU
-/* Floating-point environment where none of the exceptions are masked. */
-# define FE_NOMASK_ENV ((const fenv_t *) -2)
-#endif
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
-/* Type representing floating-point control modes. */
-typedef unsigned int femode_t;
-
-/* Default floating-point control modes. */
-# define FE_DFL_MODE ((const femode_t *) -1L)
-#endif
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/floatn.h
@@ -1,52 +0,0 @@
-/* Macros to control TS 18661-3 glibc features.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this glibc
- includes corresponding *f128 interfaces for it. */
-#define __HAVE_FLOAT128 0
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#define __HAVE_DISTINCT_FLOAT128 0
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X 0
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE 0
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1.
- E.g.: #define __f128(x) x##f128. */
-# undef __f128
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1.
- E.g.: #define __CFLOAT128 _Complex _Float128. */
-# undef __CFLOAT128
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/hwcap.h
@@ -1,59 +0,0 @@
-/* Defines for bits in AT_HWCAP. ARM Linux version.
- Copyright (C) 2012-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)
-# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
-#endif
-
-/* The following must match the kernel's <asm/hwcap.h>. */
-#define HWCAP_ARM_SWP 1
-#define HWCAP_ARM_HALF 2
-#define HWCAP_ARM_THUMB 4
-#define HWCAP_ARM_26BIT 8
-#define HWCAP_ARM_FAST_MULT 16
-#define HWCAP_ARM_FPA 32
-#define HWCAP_ARM_VFP 64
-#define HWCAP_ARM_EDSP 128
-#define HWCAP_ARM_JAVA 256
-#define HWCAP_ARM_IWMMXT 512
-#define HWCAP_ARM_CRUNCH 1024
-#define HWCAP_ARM_THUMBEE 2048
-#define HWCAP_ARM_NEON 4096
-#define HWCAP_ARM_VFPv3 8192
-#define HWCAP_ARM_VFPv3D16 16384
-#define HWCAP_ARM_TLS 32768
-#define HWCAP_ARM_VFPv4 65536
-#define HWCAP_ARM_IDIVA 131072
-#define HWCAP_ARM_IDIVT 262144
-#define HWCAP_ARM_VFPD32 524288
-#define HWCAP_ARM_LPAE 1048576
-#define HWCAP_ARM_EVTSTRM 2097152
-#define HWCAP_FPHP 4194304
-#define HWCAP_ASIMDHP 8388608
-#define HWCAP_ASIMDDP 16777216
-#define HWCAP_ASIMDFHM 33554432
-#define HWCAP_ASIMDBF16 67108864
-#define HWCAP_I8MM 134217728
-
-#define HWCAP2_AES 1
-#define HWCAP2_PMULL 2
-#define HWCAP2_SHA1 4
-#define HWCAP2_SHA2 8
-#define HWCAP2_CRC32 16
-#define HWCAP2_SB 32
-#define HWCAP2_SSBS 64
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/link.h
@@ -1,65 +0,0 @@
-/* Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-# error "Never include <bits/link.h> directly; use <link.h> instead."
-#endif
-
-
-/* Registers for entry into PLT on ARM. */
-typedef struct La_arm_regs
-{
- uint32_t lr_reg[4];
- uint32_t lr_sp;
- uint32_t lr_lr;
- /* Coprocessor registers used for argument passing. The data
- stored here depends on the coprocessors available in the
- system which are used for function calls in the current ABI.
- VFP uses eight 64-bit registers, and iWMMXt uses ten. */
- uint32_t lr_coproc[42];
-} La_arm_regs;
-
-/* Return values for calls from PLT on ARM. */
-typedef struct La_arm_retval
-{
- /* Up to four integer registers can be used for a return value in
- some ABIs (APCS complex long double). */
- uint32_t lrv_reg[4];
-
- /* Any coprocessor registers which might be used to return values
- in the current ABI. */
- uint32_t lrv_coproc[12];
-} La_arm_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf32_Addr la_arm_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_arm_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_arm_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_arm_regs *__inregs,
- La_arm_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/long-double.h
@@ -1,53 +0,0 @@
-/* Properties of long double type.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* This header is included by <sys/cdefs.h>.
-
- If long double is ABI-compatible with double, it should define
- __NO_LONG_DOUBLE_MATH to 1; otherwise, it should leave
- __NO_LONG_DOUBLE_MATH undefined.
-
- If this build of the GNU C Library supports both long double
- ABI-compatible with double and some other long double format not
- ABI-compatible with double, it should define
- __LONG_DOUBLE_MATH_OPTIONAL to 1; otherwise, it should leave
- __LONG_DOUBLE_MATH_OPTIONAL undefined.
-
- If __NO_LONG_DOUBLE_MATH is already defined, this header must not
- define anything; this is needed to work with the definition of
- __NO_LONG_DOUBLE_MATH in nldbl-compat.h. */
-
-/* In the default version of this header, long double is
- ABI-compatible with double. */
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __NO_LONG_DOUBLE_MATH 1
-#endif
-
-/* The macro __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI is used to determine the
- choice of the underlying ABI of long double. It will always assume
- a constant value for each translation unit.
-
- If the value is non-zero, any API which is parameterized by the long
- double type (i.e the scanf/printf family of functions or the explicitly
- parameterized math.h functions) will be redirected to a compatible
- implementation using _Float128 ABI via symbols suffixed with ieee128.
-
- The mechanism this macro uses to acquire may be a function
- of architecture, or target specific options used to invoke the
- compiler. */
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/procfs-id.h
@@ -1,25 +0,0 @@
-/* Types of pr_uid and pr_gid in struct elf_prpsinfo. Arm version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
-#endif
-
-typedef unsigned short int __pr_uid_t;
-typedef unsigned short int __pr_gid_t;
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/procfs.h
@@ -1,34 +0,0 @@
-/* Types for registers for sys/procfs.h. Arm version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
-#endif
-
-/* Type for a general-purpose register. */
-typedef unsigned long elf_greg_t;
-
-/* And the whole bunch of them. We could have used `struct
- user_regs' directly in the typedef, but tradition says that
- the register set is an array, which does have some peculiar
- semantics, so leave it that way. */
-#define ELF_NGREG (sizeof (struct user_regs) / sizeof (elf_greg_t))
-typedef elf_greg_t elf_gregset_t[ELF_NGREG];
-
-/* Register set for the floating-point registers. */
-typedef struct user_fpregs elf_fpregset_t;
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/rseq.h
@@ -1,83 +0,0 @@
-/* Restartable Sequences Linux arm architecture header.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RSEQ_H
-# error "Never use <bits/rseq.h> directly; include <sys/rseq.h> instead."
-#endif
-
-/*
- RSEQ_SIG is a signature required before each abort handler code.
-
- It is a 32-bit value that maps to actual architecture code compiled
- into applications and libraries. It needs to be defined for each
- architecture. When choosing this value, it needs to be taken into
- account that generating invalid instructions may have ill effects on
- tools like objdump, and may also have impact on the CPU speculative
- execution efficiency in some cases.
-
- - ARM little endian
-
- RSEQ_SIG uses the udf A32 instruction with an uncommon immediate operand
- value 0x5de3. This traps if user-space reaches this instruction by mistake,
- and the uncommon operand ensures the kernel does not move the instruction
- pointer to attacker-controlled code on rseq abort.
-
- The instruction pattern in the A32 instruction set is:
-
- e7f5def3 udf #24035 ; 0x5de3
-
- This translates to the following instruction pattern in the T16 instruction
- set:
-
- little endian:
- def3 udf #243 ; 0xf3
- e7f5 b.n <7f5>
-
- - ARMv6+ big endian (BE8):
-
- ARMv6+ -mbig-endian generates mixed endianness code vs data: little-endian
- code and big-endian data. The data value of the signature needs to have its
- byte order reversed to generate the trap instruction:
-
- Data: 0xf3def5e7
-
- Translates to this A32 instruction pattern:
-
- e7f5def3 udf #24035 ; 0x5de3
-
- Translates to this T16 instruction pattern:
-
- def3 udf #243 ; 0xf3
- e7f5 b.n <7f5>
-
- - Prior to ARMv6 big endian (BE32):
-
- Prior to ARMv6, -mbig-endian generates big-endian code and data
- (which match), so the endianness of the data representation of the
- signature should not be reversed. However, the choice between BE32
- and BE8 is done by the linker, so we cannot know whether code and
- data endianness will be mixed before the linker is invoked. So rather
- than try to play tricks with the linker, the rseq signature is simply
- data (not a trap instruction) prior to ARMv6 on big endian. This is
- why the signature is expressed as data (.word) rather than as
- instruction (.inst) in assembler. */
-
-#ifdef __ARMEB__
-# define RSEQ_SIG 0xf3def5e7 /* udf #24035 ; 0x5de3 (ARMv6+) */
-#else
-# define RSEQ_SIG 0xe7f5def3 /* udf #24035 ; 0x5de3 */
-#endif
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/setjmp.h
@@ -1,36 +0,0 @@
-/* Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Define the machine-dependent type `jmp_buf'. ARM EABI version. */
-
-#ifndef _BITS_SETJMP_H
-#define _BITS_SETJMP_H 1
-
-#if !defined _SETJMP_H && !defined _PTHREAD_H
-# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
-#endif
-
-#ifndef __ASSEMBLER__
-/* The exact set of registers saved may depend on the particular core
- in use, as some coprocessor registers may need to be saved. The C
- Library ABI requires that the buffer be 8-byte aligned, and
- recommends that the buffer contain 64 words. The first 26 words
- are occupied by sp, lr, v1-v6, sl, fp, and d8-d15. */
-typedef int __jmp_buf[64] __attribute__((__aligned__ (8)));
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/shmlba.h
@@ -1,29 +0,0 @@
-/* Define SHMLBA. ARM version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
-#endif
-
-__BEGIN_DECLS
-
-/* Segment low boundary address multiple. */
-#define SHMLBA (__getpagesize () << 2)
-extern int __getpagesize (void) __THROW __attribute__ ((__const__));
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/struct_stat.h
@@ -1,139 +0,0 @@
-/* Definition for struct stat. Linux/arm version.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
-#endif
-
-#ifndef _BITS_STRUCT_STAT_H
-#define _BITS_STRUCT_STAT_H 1
-
-#include <bits/endian.h>
-#include <bits/wordsize.h>
-
-struct stat
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-#else
- __dev_t st_dev; /* Device. */
- unsigned short int __pad1;
-# ifndef __USE_FILE_OFFSET64
- __ino_t st_ino; /* File serial number. */
-# else
- __ino_t __st_ino; /* 32bit file serial number. */
-# endif
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned short int __pad2;
-# ifndef __USE_FILE_OFFSET64
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
-# ifndef __USE_FILE_OFFSET64
- __blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
-# else
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# endif
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
-# ifndef __USE_FILE_OFFSET64
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
-#endif /* __USE_TIME64_REDIRECTS */
- };
-
-#ifdef __USE_LARGEFILE64
-struct stat64
- {
-# ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-# else
- __dev_t st_dev; /* Device. */
- unsigned int __pad1;
-
- __ino_t __st_ino; /* 32bit file serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned int __pad2;
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- __ino64_t st_ino; /* File serial number. */
-# endif /* __USE_TIME64_REDIRECTS */
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-
-#endif /* _BITS_STRUCT_STAT_H */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/timesize.h
@@ -1,20 +0,0 @@
-/* Bit size of the time_t type at glibc build time, Linux/ARM.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Size in bits of the 'time_t' type of the default ABI. */
-#define __TIMESIZE 32
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/typesizes.h
@@ -1,74 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. ARM version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __UWORD_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#define __RLIM_T_MATCHES_RLIM64_T 0
-#define __STATFS_MATCHES_STATFS64 0
-/* And for getitimer, setitimer and rusage */
-#define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/wordsize.h
@@ -1,21 +0,0 @@
-/* Copyright (C) 1999-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#define __WORDSIZE 32
-#define __WORDSIZE_TIME64_COMPAT32 1
-#define __WORDSIZE32_SIZE_ULONG 0
-#define __WORDSIZE32_PTRDIFF_LONG 0
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/gnu/lib-names.h
@@ -1,14 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#if !defined __ARM_PCS_VFP
-# include <gnu/lib-names-soft.h>
-#endif
-#if defined __ARM_PCS_VFP
-# include <gnu/lib-names-hard.h>
-#endif
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/gnu/stubs.h
@@ -1,11 +0,0 @@
-/* This file is automatically generated.
- This file selects the right generated file of `__stub_FUNCTION' macros
- based on the architecture being compiled for. */
-
-
-#if !defined __ARM_PCS_VFP
-# include <gnu/stubs-soft.h>
-#endif
-#if defined __ARM_PCS_VFP
-# include <gnu/stubs-hard.h>
-#endif
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/sys/ptrace.h
@@ -1,226 +0,0 @@
-/* `ptrace' debugger support interface. Linux/ARM version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PTRACE_H
-#define _SYS_PTRACE_H 1
-
-#include <features.h>
-#include <bits/types.h>
-
-__BEGIN_DECLS
-
-/* Type of the REQUEST argument to `ptrace.' */
-enum __ptrace_request
-{
- /* Indicate that the process making this request should be traced.
- All signals received by this process can be intercepted by its
- parent, and its parent can use the other `ptrace' requests. */
- PTRACE_TRACEME = 0,
-#define PT_TRACE_ME PTRACE_TRACEME
-
- /* Return the word in the process's text space at address ADDR. */
- PTRACE_PEEKTEXT = 1,
-#define PT_READ_I PTRACE_PEEKTEXT
-
- /* Return the word in the process's data space at address ADDR. */
- PTRACE_PEEKDATA = 2,
-#define PT_READ_D PTRACE_PEEKDATA
-
- /* Return the word in the process's user area at offset ADDR. */
- PTRACE_PEEKUSER = 3,
-#define PT_READ_U PTRACE_PEEKUSER
-
- /* Write the word DATA into the process's text space at address ADDR. */
- PTRACE_POKETEXT = 4,
-#define PT_WRITE_I PTRACE_POKETEXT
-
- /* Write the word DATA into the process's data space at address ADDR. */
- PTRACE_POKEDATA = 5,
-#define PT_WRITE_D PTRACE_POKEDATA
-
- /* Write the word DATA into the process's user area at offset ADDR. */
- PTRACE_POKEUSER = 6,
-#define PT_WRITE_U PTRACE_POKEUSER
-
- /* Continue the process. */
- PTRACE_CONT = 7,
-#define PT_CONTINUE PTRACE_CONT
-
- /* Kill the process. */
- PTRACE_KILL = 8,
-#define PT_KILL PTRACE_KILL
-
- /* Single step the process. */
- PTRACE_SINGLESTEP = 9,
-#define PT_STEP PTRACE_SINGLESTEP
-
- /* Get all general purpose registers used by a process. */
- PTRACE_GETREGS = 12,
-#define PT_GETREGS PTRACE_GETREGS
-
- /* Set all general purpose registers used by a process. */
- PTRACE_SETREGS = 13,
-#define PT_SETREGS PTRACE_SETREGS
-
- /* Get all floating point registers used by a process. */
- PTRACE_GETFPREGS = 14,
-#define PT_GETFPREGS PTRACE_GETFPREGS
-
- /* Set all floating point registers used by a process. */
- PTRACE_SETFPREGS = 15,
-#define PT_SETFPREGS PTRACE_SETFPREGS
-
- /* Attach to a process that is already running. */
- PTRACE_ATTACH = 16,
-#define PT_ATTACH PTRACE_ATTACH
-
- /* Detach from a process attached to with PTRACE_ATTACH. */
- PTRACE_DETACH = 17,
-#define PT_DETACH PTRACE_DETACH
-
- /* Get the iWMMXt state of a process. */
- PTRACE_GETWMMXREGS = 18,
-#define PT_GETWMMXREGS PTRACE_GETWMMXREGS
-
- /* Set the iWMMXt state of a process. */
- PTRACE_SETWMMXREGS = 19,
-#define PT_SETWMMXREGS PTRACE_SETWMMXREGS
-
- /* Get the thread pointer of a process. */
- PTRACE_GET_THREAD_AREA = 22,
-#define PT_GET_THREAD_AREA PTRACE_GET_THREAD_AREA
-
- /* Change the syscall number of a process. */
- PTRACE_SET_SYSCALL = 23,
-#define PT_SET_SYSCALL PTRACE_SET_SYSCALL
-
- /* Continue and stop at the next entry to or return from syscall. */
- PTRACE_SYSCALL = 24,
-#define PT_SYSCALL PTRACE_SYSCALL
-
- /* Get the Crunch state of a process. */
- PTRACE_GETCRUNCHREGS = 25,
-#define PT_GETCRUNCHREGS PTRACE_GETCRUNCHREGS
-
- /* Set the Crunch state of a process. */
- PTRACE_SETCRUNCHREGS = 26,
-#define PT_SETCRUNCHREGS PTRACE_SETCRUNCHREGS
-
- /* Get all VFP registers used by a process. */
- PTRACE_GETVFPREGS = 27,
-#define PT_GETVFPREGS PTRACE_GETVFPREGS
-
- /* Set all VFP registers used by a process. */
- PTRACE_SETVFPREGS = 28,
-#define PT_SETVFPREGS PTRACE_SETVFPREGS
-
- /* Get all hardware breakpoint registers. */
- PTRACE_GETHBPREGS = 29,
-#define PT_GETHBPREGS PTRACE_GETHBPREGS
-
- /* Set all hardware breakpoint registers. */
- PTRACE_SETHBPREGS = 30,
-#define PT_SETHBPREGS PTRACE_SETHBPREGS
-
- /* Get the ELF fdpic loadmap address. */
- PTRACE_GETFDPIC = 31,
-#define PT_GETFDPIC PTRACE_GETFDPIC
-
- /* Set ptrace filter options. */
- PTRACE_SETOPTIONS = 0x4200,
-#define PT_SETOPTIONS PTRACE_SETOPTIONS
-
- /* Get last ptrace message. */
- PTRACE_GETEVENTMSG = 0x4201,
-#define PT_GETEVENTMSG PTRACE_GETEVENTMSG
-
- /* Get siginfo for process. */
- PTRACE_GETSIGINFO = 0x4202,
-#define PT_GETSIGINFO PTRACE_GETSIGINFO
-
- /* Set new siginfo for process. */
- PTRACE_SETSIGINFO = 0x4203,
-#define PT_SETSIGINFO PTRACE_SETSIGINFO
-
- /* Get register content. */
- PTRACE_GETREGSET = 0x4204,
-#define PTRACE_GETREGSET PTRACE_GETREGSET
-
- /* Set register content. */
- PTRACE_SETREGSET = 0x4205,
-#define PTRACE_SETREGSET PTRACE_SETREGSET
-
- /* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
- signal or group stop state. */
- PTRACE_SEIZE = 0x4206,
-#define PTRACE_SEIZE PTRACE_SEIZE
-
- /* Trap seized tracee. */
- PTRACE_INTERRUPT = 0x4207,
-#define PTRACE_INTERRUPT PTRACE_INTERRUPT
-
- /* Wait for next group event. */
- PTRACE_LISTEN = 0x4208,
-#define PTRACE_LISTEN PTRACE_LISTEN
-
- /* Retrieve siginfo_t structures without removing signals from a queue. */
- PTRACE_PEEKSIGINFO = 0x4209,
-#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
-
- /* Get the mask of blocked signals. */
- PTRACE_GETSIGMASK = 0x420a,
-#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
-
- /* Change the mask of blocked signals. */
- PTRACE_SETSIGMASK = 0x420b,
-#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
-
- /* Get seccomp BPF filters. */
- PTRACE_SECCOMP_GET_FILTER = 0x420c,
-#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
-
- /* Get seccomp BPF filter metadata. */
- PTRACE_SECCOMP_GET_METADATA = 0x420d,
-#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
-
- /* Get information about system call. */
- PTRACE_GET_SYSCALL_INFO = 0x420e,
-#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
-
- /* Get rseq configuration information. */
- PTRACE_GET_RSEQ_CONFIGURATION = 0x420f,
-#define PTRACE_GET_RSEQ_CONFIGURATION PTRACE_GET_RSEQ_CONFIGURATION
-
- /* Set configuration for syscall user dispatch. */
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG = 0x4210,
-#define PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-
- /* Get configuration for syscall user dispatch. */
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG = 0x4211
-#define PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-};
-
-
-#include <bits/ptrace-shared.h>
-
-__END_DECLS
-
-#endif /* _SYS_PTRACE_H */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/sys/ucontext.h
@@ -1,144 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* System V/ARM ABI compliant context switching support. */
-
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include <features.h>
-
-#include <bits/types/sigset_t.h>
-#include <bits/types/stack_t.h>
-
-
-#ifdef __USE_MISC
-# define __ctx(fld) fld
-#else
-# define __ctx(fld) __ ## fld
-#endif
-
-#ifdef __USE_MISC
-typedef int greg_t;
-
-/* Number of general registers. */
-# define NGREG 18
-
-/* Container for all general registers. */
-typedef greg_t gregset_t[NGREG];
-
-/* Number of each register is the `gregset_t' array. */
-enum
-{
- REG_R0 = 0,
-# define REG_R0 REG_R0
- REG_R1 = 1,
-# define REG_R1 REG_R1
- REG_R2 = 2,
-# define REG_R2 REG_R2
- REG_R3 = 3,
-# define REG_R3 REG_R3
- REG_R4 = 4,
-# define REG_R4 REG_R4
- REG_R5 = 5,
-# define REG_R5 REG_R5
- REG_R6 = 6,
-# define REG_R6 REG_R6
- REG_R7 = 7,
-# define REG_R7 REG_R7
- REG_R8 = 8,
-# define REG_R8 REG_R8
- REG_R9 = 9,
-# define REG_R9 REG_R9
- REG_R10 = 10,
-# define REG_R10 REG_R10
- REG_R11 = 11,
-# define REG_R11 REG_R11
- REG_R12 = 12,
-# define REG_R12 REG_R12
- REG_R13 = 13,
-# define REG_R13 REG_R13
- REG_R14 = 14,
-# define REG_R14 REG_R14
- REG_R15 = 15
-# define REG_R15 REG_R15
-};
-
-struct _libc_fpstate
-{
- struct
- {
- unsigned int sign1:1;
- unsigned int unused:15;
- unsigned int sign2:1;
- unsigned int exponent:14;
- unsigned int j:1;
- unsigned int mantissa1:31;
- unsigned int mantissa0:32;
- } fpregs[8];
- unsigned int fpsr:32;
- unsigned int fpcr:32;
- unsigned char ftype[8];
- unsigned int init_flag;
-};
-/* Structure to describe FPU registers. */
-typedef struct _libc_fpstate fpregset_t;
-#endif
-
-/* Context to describe whole processor state. This only describes
- the core registers; coprocessor registers get saved elsewhere
- (e.g. in uc_regspace, or somewhere unspecified on the stack
- during non-RT signal handlers). */
-typedef struct
- {
- unsigned long int __ctx(trap_no);
- unsigned long int __ctx(error_code);
- unsigned long int __ctx(oldmask);
- unsigned long int __ctx(arm_r0);
- unsigned long int __ctx(arm_r1);
- unsigned long int __ctx(arm_r2);
- unsigned long int __ctx(arm_r3);
- unsigned long int __ctx(arm_r4);
- unsigned long int __ctx(arm_r5);
- unsigned long int __ctx(arm_r6);
- unsigned long int __ctx(arm_r7);
- unsigned long int __ctx(arm_r8);
- unsigned long int __ctx(arm_r9);
- unsigned long int __ctx(arm_r10);
- unsigned long int __ctx(arm_fp);
- unsigned long int __ctx(arm_ip);
- unsigned long int __ctx(arm_sp);
- unsigned long int __ctx(arm_lr);
- unsigned long int __ctx(arm_pc);
- unsigned long int __ctx(arm_cpsr);
- unsigned long int __ctx(fault_address);
- } mcontext_t;
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long __ctx(uc_flags);
- struct ucontext_t *uc_link;
- stack_t uc_stack;
- mcontext_t uc_mcontext;
- sigset_t uc_sigmask;
- unsigned long __ctx(uc_regspace)[128] __attribute__((__aligned__(8)));
- } ucontext_t;
-
-#undef __ctx
-
-#endif /* sys/ucontext.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/sys/user.h
@@ -1,71 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_USER_H
-#define _SYS_USER_H 1
-
-/* The whole purpose of this file is for GDB and GDB only. Don't read
- too much into it. Don't use it for anything other than GDB unless
- you know what you are doing. */
-
-struct user_fpregs
-{
- struct fp_reg
- {
- unsigned int sign1:1;
- unsigned int unused:15;
- unsigned int sign2:1;
- unsigned int exponent:14;
- unsigned int j:1;
- unsigned int mantissa1:31;
- unsigned int mantissa0:32;
- } fpregs[8];
- unsigned int fpsr:32;
- unsigned int fpcr:32;
- unsigned char ftype[8];
- unsigned int init_flag;
-};
-
-struct user_regs
-{
- unsigned long int uregs[18];
-};
-
-struct user
-{
- struct user_regs regs; /* General registers */
- int u_fpvalid; /* True if math co-processor being used. */
-
- unsigned long int u_tsize; /* Text segment size (pages). */
- unsigned long int u_dsize; /* Data segment size (pages). */
- unsigned long int u_ssize; /* Stack segment size (pages). */
-
- unsigned long start_code; /* Starting virtual address of text. */
- unsigned long start_stack; /* Starting virtual address of stack. */
-
- long int signal; /* Signal that caused the core dump. */
- int reserved; /* No longer used */
- struct user_regs *u_ar0; /* help gdb to find the general registers. */
-
- unsigned long magic; /* uniquely identify a core file */
- char u_comm[32]; /* User command that was responsible */
- int u_debugreg[8];
- struct user_fpregs u_fp; /* Floating point registers */
- struct user_fpregs *u_fp0; /* help gdb to find the FP registers. */
-};
-
-#endif /* sys/user.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/fpu_control.h
@@ -1,75 +0,0 @@
-/* FPU control word definitions. ARM VFP version.
- Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FPU_CONTROL_H
-#define _FPU_CONTROL_H
-
-#if !(defined(_LIBC) && !defined(_LIBC_TEST)) && defined(__SOFTFP__)
-
-#define _FPU_RESERVED 0xffffffff
-#define _FPU_DEFAULT 0x00000000
-typedef unsigned int fpu_control_t;
-#define _FPU_GETCW(cw) (cw) = 0
-#define _FPU_SETCW(cw) (void) (cw)
-extern fpu_control_t __fpu_control;
-
-#else
-
-/* masking of interrupts */
-#define _FPU_MASK_IM 0x00000100 /* invalid operation */
-#define _FPU_MASK_ZM 0x00000200 /* divide by zero */
-#define _FPU_MASK_OM 0x00000400 /* overflow */
-#define _FPU_MASK_UM 0x00000800 /* underflow */
-#define _FPU_MASK_PM 0x00001000 /* inexact */
-
-#define _FPU_MASK_NZCV 0xf0000000 /* NZCV flags */
-#define _FPU_MASK_RM 0x00c00000 /* rounding mode */
-#define _FPU_MASK_EXCEPT 0x00001f1f /* all exception flags */
-
-/* Some bits in the FPSCR are not yet defined. They must be preserved when
- modifying the contents. */
-#define _FPU_RESERVED 0x00086060
-#define _FPU_DEFAULT 0x00000000
-
-/* Default + exceptions enabled. */
-#define _FPU_IEEE (_FPU_DEFAULT | 0x00001f00)
-
-/* Type of the control word. */
-typedef unsigned int fpu_control_t;
-
-/* Macros for accessing the hardware control word. */
-#ifdef __SOFTFP__
-/* This is fmrx %0, fpscr. */
-# define _FPU_GETCW(cw) \
- __asm__ __volatile__ ("mrc p10, 7, %0, cr1, cr0, 0" : "=r" (cw))
-/* This is fmxr fpscr, %0. */
-# define _FPU_SETCW(cw) \
- __asm__ __volatile__ ("mcr p10, 7, %0, cr1, cr0, 0" : : "r" (cw))
-#else
-# define _FPU_GETCW(cw) \
- __asm__ __volatile__ ("vmrs %0, fpscr" : "=r" (cw))
-# define _FPU_SETCW(cw) \
- __asm__ __volatile__ ("vmsr fpscr, %0" : : "r" (cw))
-#endif
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-#endif /* __SOFTFP__ */
-
-#endif /* _FPU_CONTROL_H */
\ No newline at end of file
lib/libc/include/csky-linux-gnueabi/bits/endianness.h → lib/libc/include/csky-linux-gnu/bits/endianness.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/bits/fcntl.h → lib/libc/include/csky-linux-gnu/bits/fcntl.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/bits/fenv.h → lib/libc/include/csky-linux-gnu/bits/fenv.h
File renamed without changes
lib/libc/include/arm-linux-gnueabihf/bits/floatn.h → lib/libc/include/csky-linux-gnu/bits/floatn.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/bits/link.h → lib/libc/include/csky-linux-gnu/bits/link.h
File renamed without changes
lib/libc/include/arm-linux-gnueabihf/bits/long-double.h → lib/libc/include/csky-linux-gnu/bits/long-double.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/bits/procfs.h → lib/libc/include/csky-linux-gnu/bits/procfs.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/bits/rseq.h → lib/libc/include/csky-linux-gnu/bits/rseq.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/bits/setjmp.h → lib/libc/include/csky-linux-gnu/bits/setjmp.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/bits/shmlba.h → lib/libc/include/csky-linux-gnu/bits/shmlba.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/bits/statfs.h → lib/libc/include/csky-linux-gnu/bits/statfs.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/bits/struct_stat.h → lib/libc/include/csky-linux-gnu/bits/struct_stat.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/bits/timesize.h → lib/libc/include/csky-linux-gnu/bits/timesize.h
File renamed without changes
lib/libc/include/arm-linux-gnueabihf/bits/wordsize.h → lib/libc/include/csky-linux-gnu/bits/wordsize.h
File renamed without changes
lib/libc/include/csky-linux-gnueabihf/gnu/lib-names.h → lib/libc/include/csky-linux-gnu/gnu/lib-names.h
@@ -4,8 +4,14 @@
#ifndef __GNU_LIB_NAMES_H
#define __GNU_LIB_NAMES_H 1
+// zig patch: handle both float abis in the same header
+#ifdef __CSKY_HARD_FLOAT_ABI__
#define LD_LINUX_CSKYV2_HF_SO "ld-linux-cskyv2-hf.so.1"
#define LD_SO "ld-linux-cskyv2-hf.so.1"
+#else
+#define LD_LINUX_CSKYV2_SO "ld-linux-cskyv2.so.1"
+#define LD_SO "ld-linux-cskyv2.so.1"
+#endif
#define LIBANL_SO "libanl.so.1"
#define LIBBROKENLOCALE_SO "libBrokenLocale.so.1"
#define LIBC_MALLOC_DEBUG_SO "libc_malloc_debug.so.0"
@@ -27,4 +33,4 @@
#define LIBTHREAD_DB_SO "libthread_db.so.1"
#define LIBUTIL_SO "libutil.so.1"
-#endif /* gnu/lib-names.h */
\ No newline at end of file
+#endif /* gnu/lib-names.h */
lib/libc/include/csky-linux-gnueabi/gnu/stubs.h → lib/libc/include/csky-linux-gnu/gnu/stubs.h
@@ -14,6 +14,9 @@
#define __stub___compat_uselib
#define __stub_chflags
#define __stub_fchflags
+
+// zig patch: handle both float abis in the same header
+#ifndef __CSKY_HARD_FLOAT_ABI__
#define __stub_feclearexcept
#define __stub_fedisableexcept
#define __stub_feenableexcept
@@ -31,8 +34,10 @@
#define __stub_fesetround
#define __stub_fetestexcept
#define __stub_feupdateenv
+#endif
+
#define __stub_gtty
#define __stub_revoke
#define __stub_setlogin
#define __stub_sigreturn
-#define __stub_stty
\ No newline at end of file
+#define __stub_stty
lib/libc/include/csky-linux-gnueabi/sys/cachectl.h → lib/libc/include/csky-linux-gnu/sys/cachectl.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/sys/ucontext.h → lib/libc/include/csky-linux-gnu/sys/ucontext.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/sys/user.h → lib/libc/include/csky-linux-gnu/sys/user.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/fpu_control.h → lib/libc/include/csky-linux-gnu/fpu_control.h
File renamed without changes
lib/libc/include/csky-linux-gnueabi/bits/floatn.h
@@ -1,52 +0,0 @@
-/* Macros to control TS 18661-3 glibc features.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this glibc
- includes corresponding *f128 interfaces for it. */
-#define __HAVE_FLOAT128 0
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#define __HAVE_DISTINCT_FLOAT128 0
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X 0
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE 0
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1.
- E.g.: #define __f128(x) x##f128. */
-# undef __f128
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1.
- E.g.: #define __CFLOAT128 _Complex _Float128. */
-# undef __CFLOAT128
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
\ No newline at end of file
lib/libc/include/csky-linux-gnueabi/bits/long-double.h
@@ -1,53 +0,0 @@
-/* Properties of long double type.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* This header is included by <sys/cdefs.h>.
-
- If long double is ABI-compatible with double, it should define
- __NO_LONG_DOUBLE_MATH to 1; otherwise, it should leave
- __NO_LONG_DOUBLE_MATH undefined.
-
- If this build of the GNU C Library supports both long double
- ABI-compatible with double and some other long double format not
- ABI-compatible with double, it should define
- __LONG_DOUBLE_MATH_OPTIONAL to 1; otherwise, it should leave
- __LONG_DOUBLE_MATH_OPTIONAL undefined.
-
- If __NO_LONG_DOUBLE_MATH is already defined, this header must not
- define anything; this is needed to work with the definition of
- __NO_LONG_DOUBLE_MATH in nldbl-compat.h. */
-
-/* In the default version of this header, long double is
- ABI-compatible with double. */
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __NO_LONG_DOUBLE_MATH 1
-#endif
-
-/* The macro __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI is used to determine the
- choice of the underlying ABI of long double. It will always assume
- a constant value for each translation unit.
-
- If the value is non-zero, any API which is parameterized by the long
- double type (i.e the scanf/printf family of functions or the explicitly
- parameterized math.h functions) will be redirected to a compatible
- implementation using _Float128 ABI via symbols suffixed with ieee128.
-
- The mechanism this macro uses to acquire may be a function
- of architecture, or target specific options used to invoke the
- compiler. */
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
\ No newline at end of file
lib/libc/include/csky-linux-gnueabi/bits/wordsize.h
@@ -1,21 +0,0 @@
-/* Copyright (C) 1999-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#define __WORDSIZE 32
-#define __WORDSIZE_TIME64_COMPAT32 1
-#define __WORDSIZE32_SIZE_ULONG 0
-#define __WORDSIZE32_PTRDIFF_LONG 0
\ No newline at end of file
lib/libc/include/csky-linux-gnueabi/gnu/lib-names.h
@@ -1,30 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#define LD_LINUX_CSKYV2_SO "ld-linux-cskyv2.so.1"
-#define LD_SO "ld-linux-cskyv2.so.1"
-#define LIBANL_SO "libanl.so.1"
-#define LIBBROKENLOCALE_SO "libBrokenLocale.so.1"
-#define LIBC_MALLOC_DEBUG_SO "libc_malloc_debug.so.0"
-#define LIBC_SO "libc.so.6"
-#define LIBDL_SO "libdl.so.2"
-#define LIBGCC_S_SO "libgcc_s.so.1"
-#define LIBMVEC_SO "libmvec.so.1"
-#define LIBM_SO "libm.so.6"
-#define LIBNSL_SO "libnsl.so.1"
-#define LIBNSS_COMPAT_SO "libnss_compat.so.2"
-#define LIBNSS_DB_SO "libnss_db.so.2"
-#define LIBNSS_DNS_SO "libnss_dns.so.2"
-#define LIBNSS_FILES_SO "libnss_files.so.2"
-#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
-#define LIBNSS_LDAP_SO "libnss_ldap.so.2"
-#define LIBPTHREAD_SO "libpthread.so.0"
-#define LIBRESOLV_SO "libresolv.so.2"
-#define LIBRT_SO "librt.so.1"
-#define LIBTHREAD_DB_SO "libthread_db.so.1"
-#define LIBUTIL_SO "libutil.so.1"
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/endianness.h
@@ -1,14 +0,0 @@
-#ifndef _BITS_ENDIANNESS_H
-#define _BITS_ENDIANNESS_H 1
-
-#ifndef _BITS_ENDIAN_H
-# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
-#endif
-
-#ifdef __CSKYBE__
-# error "Big endian not supported for C-SKY."
-#else
-# define __BYTE_ORDER __LITTLE_ENDIAN
-#endif
-
-#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/fcntl.h
@@ -1,55 +0,0 @@
-/* O_*, F_*, FD_* bit values for the generic Linux ABI.
- Copyright (C) 2011-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FCNTL_H
-# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 64
-# define __O_LARGEFILE 0
-#endif
-
-struct flock
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
-#ifndef __USE_FILE_OFFSET64
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
-#else
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
-#endif
- __pid_t l_pid; /* Process holding the lock. */
- };
-
-#ifdef __USE_LARGEFILE64
-struct flock64
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- };
-#endif
-
-/* Include generic Linux declarations. */
-#include <bits/fcntl-linux.h>
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/fenv.h
@@ -1,111 +0,0 @@
-/* Floating point environment. C-SKY version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FENV_H
-# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
-#endif
-
-#ifdef __csky_hard_float__
-/* Define bits representing the exception. We use the bit positions
- of the appropriate bits in the FPU control word. */
-enum
- {
- FE_INVALID =
-#define FE_INVALID 0x01
- FE_INVALID,
- FE_DIVBYZERO =
-#define FE_DIVBYZERO 0x02
- FE_DIVBYZERO,
- FE_OVERFLOW =
-#define FE_OVERFLOW 0x04
- FE_OVERFLOW,
- FE_UNDERFLOW =
-#define FE_UNDERFLOW 0x08
- FE_UNDERFLOW,
- FE_INEXACT =
-#define FE_INEXACT 0x10
- FE_INEXACT,
- __FE_DENORMAL = 0x20
- };
-
-#define FE_ALL_EXCEPT \
- (FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID)
-
-/* The C-SKY FPU supports all of the four defined rounding modes. We
- use again the bit positions in the FPU control word as the values
- for the appropriate macros. */
-enum
- {
- FE_TONEAREST =
-#define FE_TONEAREST (0x0 << 24)
- FE_TONEAREST,
- FE_TOWARDZERO =
-#define FE_TOWARDZERO (0x1 << 24)
- FE_TOWARDZERO,
- FE_UPWARD =
-#define FE_UPWARD (0x2 << 24)
- FE_UPWARD,
- FE_DOWNWARD =
-#define FE_DOWNWARD (0x3 << 24)
- FE_DOWNWARD,
- __FE_ROUND_MASK = (0x3 << 24)
- };
-
-#else
-
-/* In the soft-float case, only rounding to nearest is supported, with
- no exceptions. */
-
-enum
- {
- __FE_UNDEFINED = -1,
-
- FE_TONEAREST =
-# define FE_TONEAREST 0x0
- FE_TONEAREST
- };
-
-# define FE_ALL_EXCEPT 0
-
-#endif
-
-/* Type representing exception flags. */
-typedef unsigned int fexcept_t;
-
-/* Type representing floating-point environment. */
-typedef struct
-{
- unsigned int __fpcr;
- unsigned int __fpsr;
-} fenv_t;
-
-/* If the default argument is used we use this value. */
-#define FE_DFL_ENV ((const fenv_t *) -1)
-
-#if defined __USE_GNU && defined __csky_hard_float__
-/* Floating-point environment where none of the exceptions are masked. */
-# define FE_NOMASK_ENV ((const fenv_t *) -2)
-#endif
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
-/* Type representing floating-point control modes. */
-typedef unsigned int femode_t;
-
-/* Default floating-point control modes. */
-# define FE_DFL_MODE ((const femode_t *) -1L)
-#endif
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/floatn.h
@@ -1,52 +0,0 @@
-/* Macros to control TS 18661-3 glibc features.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this glibc
- includes corresponding *f128 interfaces for it. */
-#define __HAVE_FLOAT128 0
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#define __HAVE_DISTINCT_FLOAT128 0
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X 0
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE 0
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1.
- E.g.: #define __f128(x) x##f128. */
-# undef __f128
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1.
- E.g.: #define __CFLOAT128 _Complex _Float128. */
-# undef __CFLOAT128
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/link.h
@@ -1,55 +0,0 @@
-/* Machine-specific declarations for dynamic linker interface. C-SKY version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-# error "Never include <bits/link.h> directly; use <link.h> instead."
-#endif
-
-/* Registers for entry into PLT on C-SKY. */
-typedef struct La_csky_regs
-{
- uint32_t lr_reg[4];
- uint32_t lr_sp;
- uint32_t lr_lr;
-} La_csky_regs;
-
-/* Return values for calls from PLT on C-SKY. */
-typedef struct La_csky_retval
-{
- /* Up to four integer registers can be used for a return value. */
- uint32_t lrv_reg[4];
- uint32_t lrv_v0;
-} La_csky_retval;
-
-__BEGIN_DECLS
-
-extern Elf32_Addr la_csky_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_csky_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_csky_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_csky_regs *__inregs,
- La_csky_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/long-double.h
@@ -1,53 +0,0 @@
-/* Properties of long double type.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* This header is included by <sys/cdefs.h>.
-
- If long double is ABI-compatible with double, it should define
- __NO_LONG_DOUBLE_MATH to 1; otherwise, it should leave
- __NO_LONG_DOUBLE_MATH undefined.
-
- If this build of the GNU C Library supports both long double
- ABI-compatible with double and some other long double format not
- ABI-compatible with double, it should define
- __LONG_DOUBLE_MATH_OPTIONAL to 1; otherwise, it should leave
- __LONG_DOUBLE_MATH_OPTIONAL undefined.
-
- If __NO_LONG_DOUBLE_MATH is already defined, this header must not
- define anything; this is needed to work with the definition of
- __NO_LONG_DOUBLE_MATH in nldbl-compat.h. */
-
-/* In the default version of this header, long double is
- ABI-compatible with double. */
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __NO_LONG_DOUBLE_MATH 1
-#endif
-
-/* The macro __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI is used to determine the
- choice of the underlying ABI of long double. It will always assume
- a constant value for each translation unit.
-
- If the value is non-zero, any API which is parameterized by the long
- double type (i.e the scanf/printf family of functions or the explicitly
- parameterized math.h functions) will be redirected to a compatible
- implementation using _Float128 ABI via symbols suffixed with ieee128.
-
- The mechanism this macro uses to acquire may be a function
- of architecture, or target specific options used to invoke the
- compiler. */
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/procfs.h
@@ -1,37 +0,0 @@
-/* Types for registers for sys/procfs.h. C-SKY version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
-#endif
-
-#include <asm/ptrace.h>
-
-/* Type for a general-purpose register. */
-typedef unsigned long elf_greg_t;
-/* Type for a floating-point registers. */
-typedef unsigned long elf_fpreg_t;
-
-/* In gdb/bfd elf32-csky.c, csky_elf_grok_prstatus() use fixed size of
- elf_prstatus. It's 148 for abiv1 and 220 for abiv2, the size is enough
- for coredump and no need full sizeof (struct pt_regs). */
-#define ELF_NGREG ((sizeof (struct pt_regs) / sizeof (elf_greg_t)) - 2)
-typedef elf_greg_t elf_gregset_t[ELF_NGREG];
-
-#define ELF_NFPREG (sizeof (struct user_fp) / sizeof (elf_fpreg_t))
-typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/rseq.h
@@ -1,29 +0,0 @@
-/* Restartable Sequences architecture header. Stub version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RSEQ_H
-# error "Never use <bits/rseq.h> directly; include <sys/rseq.h> instead."
-#endif
-
-/* RSEQ_SIG is a signature required before each abort handler code.
-
- It is a 32-bit value that maps to actual architecture code compiled
- into applications and libraries. It needs to be defined for each
- architecture. When choosing this value, it needs to be taken into
- account that generating invalid instructions may have ill effects on
- tools like objdump, and may also have impact on the CPU speculative
- execution efficiency in some cases. */
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/setjmp.h
@@ -1,34 +0,0 @@
-/* Define the machine-dependent type `jmp_buf'. C-SKY version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _CSKY_BITS_SETJMP_H
-#define _CSKY_BITS_SETJMP_H 1
-
-typedef struct __jmp_buf_str
- {
- /* Stack pointer. */
- int __sp;
- int __lr;
- /* The actual core defines which registers should be saved. The
- buffer contains 32 words, keep space for future growth.
- Callee-saved registers:
- r4 ~ r11, r16 ~ r17, r26 ~r31 for abiv2; r8 ~ r14 for abiv1. */
- int __regs[32];
- } __jmp_buf[1];
-
-#endif
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/shmlba.h
@@ -1,29 +0,0 @@
-/* Define SHMLBA. C-SKY version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
-#endif
-
-__BEGIN_DECLS
-
-/* Segment low boundary address multiple. */
-#define SHMLBA (__getpagesize () << 2)
-extern int __getpagesize (void) __THROW __attribute__ ((__const__));
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/statfs.h
@@ -1,75 +0,0 @@
-/* Copyright (C) 2011-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_STATFS_H
-# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
-#endif
-
-#include <bits/endian.h>
-#include <bits/types.h>
-#include <bits/wordsize.h>
-
-#if defined __USE_FILE_OFFSET64
-# define __field64(type, type64, name) type64 name
-#elif __BYTE_ORDER == __LITTLE_ENDIAN
-# define __field64(type, type64, name) \
- type name __attribute__((__aligned__ (__alignof__ (type64)))); int __##name##_pad
-#else
-# define __field64(type, type64, name) \
- int __##name##_pad __attribute__((__aligned__ (__alignof__ (type64)))); type name
-#endif
-
-struct statfs
- {
- __SWORD_TYPE f_type;
- __SWORD_TYPE f_bsize;
- __field64(__fsblkcnt_t, __fsblkcnt64_t, f_blocks);
- __field64(__fsblkcnt_t, __fsblkcnt64_t, f_bfree);
- __field64(__fsblkcnt_t, __fsblkcnt64_t, f_bavail);
- __field64(__fsfilcnt_t, __fsfilcnt64_t, f_files);
- __field64(__fsfilcnt_t, __fsfilcnt64_t, f_ffree);
- __fsid_t f_fsid;
- __SWORD_TYPE f_namelen;
- __SWORD_TYPE f_frsize;
- __SWORD_TYPE f_flags;
- __SWORD_TYPE f_spare[4];
- };
-
-#undef __field64
-
-#ifdef __USE_LARGEFILE64
-struct statfs64
- {
- __SWORD_TYPE f_type;
- __SWORD_TYPE f_bsize;
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_bavail;
- __fsfilcnt64_t f_files;
- __fsfilcnt64_t f_ffree;
- __fsid_t f_fsid;
- __SWORD_TYPE f_namelen;
- __SWORD_TYPE f_frsize;
- __SWORD_TYPE f_flags;
- __SWORD_TYPE f_spare[4];
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATFS_F_NAMELEN
-#define _STATFS_F_FRSIZE
-#define _STATFS_F_FLAGS
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/struct_stat.h
@@ -1,135 +0,0 @@
-/* Definition for struct stat. Linux/csky version.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
-#endif
-
-#ifndef _BITS_STRUCT_STAT_H
-#define _BITS_STRUCT_STAT_H 1
-
-#include <bits/endian.h>
-#include <bits/wordsize.h>
-
-#if defined __USE_FILE_OFFSET64
-# define __field64(type, type64, name) type64 name
-#elif __WORDSIZE == 64 || defined __INO_T_MATCHES_INO64_T
-# if defined __INO_T_MATCHES_INO64_T && !defined __OFF_T_MATCHES_OFF64_T
-# error "ino_t and off_t must both be the same type"
-# endif
-# define __field64(type, type64, name) type name
-#elif __BYTE_ORDER == __LITTLE_ENDIAN
-# define __field64(type, type64, name) \
- type name __attribute__((__aligned__ (__alignof__ (type64)))); int __##name##_pad
-#else
-# define __field64(type, type64, name) \
- int __##name##_pad __attribute__((__aligned__ (__alignof__ (type64)))); type name
-#endif
-
-struct stat
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-#else
- __dev_t st_dev; /* Device. */
- __field64(__ino_t, __ino64_t, st_ino); /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- __dev_t __pad1;
- __field64(__off_t, __off64_t, st_size); /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- int __pad2;
- __field64(__blkcnt_t, __blkcnt64_t, st_blocks); /* 512-byte blocks */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- int __glibc_reserved[2];
-#endif
- };
-
-#undef __field64
-
-#ifdef __USE_LARGEFILE64
-struct stat64
- {
-# ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-# else
- __dev_t st_dev; /* Device. */
- __ino64_t st_ino; /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- __dev_t __pad1;
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- int __pad2;
- __blkcnt64_t st_blocks; /* Nr. 512-byte blocks allocated. */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- int __glibc_reserved[2];
-# endif
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-#endif /* _BITS_STRUCT_STAT_H */
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/timesize.h
@@ -1,20 +0,0 @@
-/* Bit size of the time_t type at glibc build time, Linux/csky.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Size in bits of the 'time_t' type of the default ABI. */
-#define __TIMESIZE 32
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/bits/wordsize.h
@@ -1,21 +0,0 @@
-/* Copyright (C) 1999-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#define __WORDSIZE 32
-#define __WORDSIZE_TIME64_COMPAT32 1
-#define __WORDSIZE32_SIZE_ULONG 0
-#define __WORDSIZE32_PTRDIFF_LONG 0
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/gnu/stubs.h
@@ -1,21 +0,0 @@
-/* This file is automatically generated.
- It defines a symbol `__stub_FUNCTION' for each function
- in the C library which is a stub, meaning it will fail
- every time called, usually setting errno to ENOSYS. */
-
-#ifdef _LIBC
- #error Applications may not define the macro _LIBC
-#endif
-
-#define __stub___compat_bdflush
-#define __stub___compat_create_module
-#define __stub___compat_get_kernel_syms
-#define __stub___compat_query_module
-#define __stub___compat_uselib
-#define __stub_chflags
-#define __stub_fchflags
-#define __stub_gtty
-#define __stub_revoke
-#define __stub_setlogin
-#define __stub_sigreturn
-#define __stub_stty
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/sys/cachectl.h
@@ -1,36 +0,0 @@
-/* C-SKY cache flushing interface.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_CACHECTL_H
-#define _SYS_CACHECTL_H 1
-
-#include <features.h>
-
-/* Get the kernel definition for the op bits. */
-#include <asm/cachectl.h>
-
-__BEGIN_DECLS
-
-#ifdef __USE_MISC
-extern int cacheflush (void *__addr, const int __nbytes,
- const int __op) __THROW;
-#endif
-
-__END_DECLS
-
-#endif /* sys/cachectl.h */
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/sys/ucontext.h
@@ -1,89 +0,0 @@
-/* struct ucontext definition, C-SKY version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include <features.h>
-
-#include <bits/types/sigset_t.h>
-#include <bits/types/stack_t.h>
-
-typedef struct
- {
- unsigned long __tls;
- unsigned long __lr;
- unsigned long __pc;
- unsigned long __sr;
- unsigned long __usp;
-
- /*
- * a0, a1, a2, a3:
- * abiv1: r2, r3, r4, r5
- * abiv2: r0, r1, r2, r3
- */
-
- unsigned long __orig_a0;
- unsigned long __a0;
- unsigned long __a1;
- unsigned long __a2;
- unsigned long __a3;
-
- /*
- * ABIV2: r4 ~ r13
- */
- unsigned long __regs[10];
-
- /* r16 ~ r30 */
- unsigned long __exregs[15];
-
- unsigned long __rhi;
- unsigned long __rlo;
- unsigned long __glibc_reserved;
- } gregset_t;
-
-typedef struct
- {
- unsigned long __vr[64];
- unsigned long __fcr;
- unsigned long __fesr;
- unsigned long __fid;
- unsigned long __glibc_reserved;
- } fpregset_t;
-
-/* Context to describe whole processor state. */
-typedef struct
- {
- gregset_t __gregs;
- fpregset_t __fpregs;
- } mcontext_t;
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long int __uc_flags;
- struct ucontext_t *uc_link;
- stack_t uc_stack;
- mcontext_t uc_mcontext;
- sigset_t uc_sigmask;
- } ucontext_t;
-
-#undef __ctx
-
-
-#endif /* sys/ucontext.h */
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/sys/user.h
@@ -1,23 +0,0 @@
-/* This file is not used by C-SKY GDB. ptrace can use pt_regs definition
- from linux kernel directly.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_USER_H
-#define _SYS_USER_H 1
-
-#endif /* _SYS_USER_H */
\ No newline at end of file
lib/libc/include/csky-linux-gnueabihf/fpu_control.h
@@ -1,148 +0,0 @@
-/* FPU control word bits. C-SKY version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FPU_CONTROL_H
-#define _FPU_CONTROL_H
-
-/* C-SKY FPU floating point control register bits.
-
- 31-28 -> Reserved (read as 0, write with 0).
- 27 -> 0: Flush denormalized results to zero.
- 1: Flush denormalized results to signed minimal normal number.
- 26 -> Reserved (read as 0, write with 0).
- 25-24 -> Rounding control.
- 23-6 -> Reserved (read as 0, write with 0).
- 5 -> Enable exception for input denormalized exception.
- 4 -> Enable exception for inexact exception.
- 3 -> Enable exception for underflow exception.
- 2 -> Enable exception for overflow exception.
- 1 -> Enable exception for division by zero exception.
- 0 -> Enable exception for invalid operation exception.
-
- Rounding Control:
- 00 - Rounding to nearest (RN).
- 01 - Rounding toward zero (RZ).
- 10 - Rounding (up) toward plus infinity (RP).
- 11 - Rounding (down)toward minus infinity (RM).
-
- C-SKY FPU floating point exception status register bits.
-
- 15 -> Accumulate bit for any exception.
- 14 -> Reserved (read as 0, write with 0).
- 13 -> Cause bit for input denormalized exception.
- 12 -> Cause bit for inexact exception.
- 11 -> Cause bit for underflow exception.
- 10 -> Cause bit for overflow exception.
- 9 -> Cause bit for division by zero exception.
- 8 -> Cause bit for invalid operation exception.
- 7 -> Flag bit for any exception.
- 6 -> Reserved (read as 0, write with 0).
- 5 -> Flag exception for input denormalized exception.
- 4 -> Flag exception for inexact exception.
- 3 -> Flag exception for underflow exception.
- 2 -> Flag exception for overflow exception.
- 1 -> Flag exception for division by zero exception.
- 0 -> Flag exception for invalid operation exception. */
-
-#include <features.h>
-
-#ifdef __csky_soft_float__
-
-# define _FPU_RESERVED 0xffffffff
-# define _FPU_DEFAULT 0x00000000
-typedef unsigned int fpu_control_t;
-# define _FPU_GETCW(cw) (cw) = 0
-# define _FPU_SETCW(cw) (void) (cw)
-# define _FPU_GETFPSR(cw) (cw) = 0
-# define _FPU_SETFPSR(cw) (void) (cw)
-extern fpu_control_t __fpu_control;
-
-#else /* __csky_soft_float__ */
-
-/* Masking of interrupts. */
-# define _FPU_MASK_IDE (1 << 5) /* Input denormalized exception. */
-# define _FPU_MASK_IXE (1 << 4) /* Inexact exception. */
-# define _FPU_MASK_UFE (1 << 3) /* Underflow exception. */
-# define _FPU_MASK_OFE (1 << 2) /* Overflow exception. */
-# define _FPU_MASK_DZE (1 << 1) /* Division by zero exception. */
-# define _FPU_MASK_IOE (1 << 0) /* Invalid operation exception. */
-
-# define _FPU_MASK_FEA (1 << 15) /* Case for any exception. */
-# define _FPU_MASK_FEC (1 << 7) /* Flag for any exception. */
-
-/* Flush denormalized numbers to zero. */
-# define _FPU_FLUSH_TZ 0x8000000
-
-/* Rounding control. */
-# define _FPU_RC_NEAREST (0x0 << 24) /* RECOMMENDED. */
-# define _FPU_RC_ZERO (0x1 << 24)
-# define _FPU_RC_UP (0x2 << 24)
-# define _FPU_RC_DOWN (0x3 << 24)
-
-# define _FPU_RESERVED 0xf460ffc0 /* Reserved bits in cw. */
-# define _FPU_FPSR_RESERVED 0xffff4040
-
-/* The fdlibm code requires strict IEEE double precision arithmetic,
- and no interrupts for exceptions, rounding to nearest. */
-
-# define _FPU_DEFAULT 0x00000000
-# define _FPU_FPSR_DEFAULT 0x00000000
-
-/* IEEE: same as above, but exceptions. */
-# define _FPU_FPCR_IEEE 0x0000001F
-# define _FPU_FPSR_IEEE 0x00000000
-
-/* Type of the control word. */
-typedef unsigned int fpu_control_t;
-
-/* Macros for accessing the hardware control word. */
-# if (__CSKY__ == 2)
-# define _FPU_GETCW(cw) __asm__ volatile ("mfcr %0, cr<1, 2>" : "=a" (cw))
-# define _FPU_SETCW(cw) __asm__ volatile ("mtcr %0, cr<1, 2>" : : "a" (cw))
-# define _FPU_GETFPSR(cw) __asm__ volatile ("mfcr %0, cr<2, 2>" : "=a" (cw))
-# define _FPU_SETFPSR(cw) __asm__ volatile ("mtcr %0, cr<2, 2>" : : "a" (cw))
-# else
-# define _FPU_GETCW(cw) __asm__ volatile ("1: cprcr %0, cpcr2 \n" \
- " btsti %0, 31 \n" \
- " bt 1b \n" \
- " cprcr %0, cpcr1\n" : "=b" (cw))
-
-# define _FPU_SETCW(cw) __asm__ volatile ("1: cprcr r7, cpcr2 \n" \
- " btsti r7, 31 \n" \
- " bt 1b \n" \
- " cpwcr %0, cpcr1 \n" \
- : : "b" (cw) : "r7")
-
-# define _FPU_GETFPSR(cw) __asm__ volatile ("1: cprcr %0, cpcr2 \n" \
- " btsti %0, 31 \n" \
- " bt 1b \n" \
- " cprcr %0, cpcr4\n" : "=b" (cw))
-
-# define _FPU_SETFPSR(cw) __asm__ volatile ("1: cprcr r7, cpcr2 \n" \
- " btsti r7, 31 \n" \
- " bt 1b \n" \
- " cpwcr %0, cpcr4 \n" \
- : : "b" (cw) : "r7")
-# endif /* __CSKY__ != 2 */
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-#endif /* !__csky_soft_float__ */
-
-#endif /* fpu_control.h */
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnu/bits/endianness.h → lib/libc/include/loongarch-linux-gnu/bits/endianness.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/fcntl.h → lib/libc/include/loongarch-linux-gnu/bits/fcntl.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/fenv.h → lib/libc/include/loongarch-linux-gnu/bits/fenv.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/hwcap.h → lib/libc/include/loongarch-linux-gnu/bits/hwcap.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/link.h → lib/libc/include/loongarch-linux-gnu/bits/link.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/link_lavcurrent.h → lib/libc/include/loongarch-linux-gnu/bits/link_lavcurrent.h
File renamed without changes
lib/libc/include/aarch64_be-linux-gnu/bits/long-double.h → lib/libc/include/loongarch-linux-gnu/bits/long-double.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/procfs.h → lib/libc/include/loongarch-linux-gnu/bits/procfs.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/pthread_stack_min.h → lib/libc/include/loongarch-linux-gnu/bits/pthread_stack_min.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/rseq.h → lib/libc/include/loongarch-linux-gnu/bits/rseq.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/setjmp.h → lib/libc/include/loongarch-linux-gnu/bits/setjmp.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/shmlba.h → lib/libc/include/loongarch-linux-gnu/bits/shmlba.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/sigstack.h → lib/libc/include/loongarch-linux-gnu/bits/sigstack.h
File renamed without changes
lib/libc/include/aarch64_be-linux-gnu/bits/struct_stat.h → lib/libc/include/loongarch-linux-gnu/bits/struct_stat.h
File renamed without changes
lib/libc/include/aarch64_be-linux-gnu/bits/timesize.h → lib/libc/include/loongarch-linux-gnu/bits/timesize.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/wordsize.h → lib/libc/include/loongarch-linux-gnu/bits/wordsize.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/gnu/lib-names.h → lib/libc/include/loongarch-linux-gnu/gnu/lib-names.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnusf/gnu/stubs-lp64s.h → lib/libc/include/loongarch-linux-gnu/gnu/stubs-lp64s.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/gnu/stubs.h → lib/libc/include/loongarch-linux-gnu/gnu/stubs.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/sys/asm.h → lib/libc/include/loongarch-linux-gnu/sys/asm.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/sys/ucontext.h → lib/libc/include/loongarch-linux-gnu/sys/ucontext.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/sys/user.h → lib/libc/include/loongarch-linux-gnu/sys/user.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/fpu_control.h → lib/libc/include/loongarch-linux-gnu/fpu_control.h
File renamed without changes
lib/libc/include/aarch64_be-linux-gnu/ieee754.h → lib/libc/include/loongarch-linux-gnu/ieee754.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnusf/bits/endianness.h
@@ -1,11 +0,0 @@
-#ifndef _BITS_ENDIANNESS_H
-#define _BITS_ENDIANNESS_H 1
-
-#ifndef _BITS_ENDIAN_H
-#error "Never use <bits/endianness.h> directly; include <endian.h> instead."
-#endif
-
-/* LoongArch is little-endian. */
-#define __BYTE_ORDER __LITTLE_ENDIAN
-
-#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/fcntl.h
@@ -1,61 +0,0 @@
-/* O_*, F_*, FD_* bit values for the generic Linux/LoongArch ABI.
- Copyright (C) 2022-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FCNTL_H
-#error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-/* In 64-bit ISA files are always with 64bit off_t and F_*LK64 are the same as
- non-64-bit versions. It will need to be revised for 128-bit. */
-#if __WORDSIZE == 64
-#define __O_LARGEFILE 0
-
-#define F_GETLK64 5 /* Get record locking info. */
-#define F_SETLK64 6 /* Set record locking info (non-blocking). */
-#define F_SETLKW64 7 /* Set record locking info (blocking). */
-#endif
-
-struct flock
-{
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
-#ifndef __USE_FILE_OFFSET64
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
-#else
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
-#endif
- __pid_t l_pid; /* Process holding the lock. */
-};
-
-#ifdef __USE_LARGEFILE64
-struct flock64
-{
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
-};
-#endif
-
-/* Include generic Linux declarations. */
-#include <bits/fcntl-linux.h>
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/fenv.h
@@ -1,90 +0,0 @@
-/* Floating point environment.
- Copyright (C) 2022-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FENV_H
-#error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
-#endif
-
-/* Define bits representing the exception. We use the bit positions
- of the appropriate bits in the FPU control word. */
-enum
-{
- FE_INEXACT =
-#define FE_INEXACT 0x010000
- FE_INEXACT,
- FE_UNDERFLOW =
-#define FE_UNDERFLOW 0x020000
- FE_UNDERFLOW,
- FE_OVERFLOW =
-#define FE_OVERFLOW 0x040000
- FE_OVERFLOW,
- FE_DIVBYZERO =
-#define FE_DIVBYZERO 0x080000
- FE_DIVBYZERO,
- FE_INVALID =
-#define FE_INVALID 0x100000
- FE_INVALID,
-};
-
-#define FE_ALL_EXCEPT \
- (FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID)
-
-/* The LoongArch FPU supports all of the four defined rounding modes. We
- use again the bit positions in the FPU control word as the values
- for the appropriate macros. */
-enum
-{
- FE_TONEAREST =
-#define FE_TONEAREST 0x000
- FE_TONEAREST,
- FE_TOWARDZERO =
-#define FE_TOWARDZERO 0x100
- FE_TOWARDZERO,
- FE_UPWARD =
-#define FE_UPWARD 0x200
- FE_UPWARD,
- FE_DOWNWARD =
-#define FE_DOWNWARD 0x300
- FE_DOWNWARD
-};
-
-/* Type representing exception flags. */
-typedef unsigned int fexcept_t;
-
-/* Type representing floating-point environment. This function corresponds
- to the layout of the block written by the `fstenv'. */
-typedef struct
-{
- unsigned int __fp_control_register;
-} fenv_t;
-
-/* If the default argument is used we use this value. */
-#define FE_DFL_ENV ((const fenv_t *) -1)
-
-#ifdef __USE_GNU
-/* Floating-point environment where none of the exception is masked. */
-#define FE_NOMASK_ENV ((const fenv_t *) -257)
-#endif
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
-/* Type representing floating-point control modes. */
-typedef unsigned int femode_t;
-
-/* Default floating-point control modes. */
-#define FE_DFL_MODE ((const femode_t *) -1L)
-#endif
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/hwcap.h
@@ -1,39 +0,0 @@
-/* Defines for bits in AT_HWCAP. LoongArch64 Linux version.
- Copyright (C) 2022-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#if !defined (_SYS_AUXV_H)
-# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
-#endif
-
-/* The following must match the kernel's <asm/hwcap.h>. */
-/* HWCAP flags */
-#define HWCAP_LOONGARCH_CPUCFG (1 << 0)
-#define HWCAP_LOONGARCH_LAM (1 << 1)
-#define HWCAP_LOONGARCH_UAL (1 << 2)
-#define HWCAP_LOONGARCH_FPU (1 << 3)
-#define HWCAP_LOONGARCH_LSX (1 << 4)
-#define HWCAP_LOONGARCH_LASX (1 << 5)
-#define HWCAP_LOONGARCH_CRC32 (1 << 6)
-#define HWCAP_LOONGARCH_COMPLEX (1 << 7)
-#define HWCAP_LOONGARCH_CRYPTO (1 << 8)
-#define HWCAP_LOONGARCH_LVZ (1 << 9)
-#define HWCAP_LOONGARCH_LBT_X86 (1 << 10)
-#define HWCAP_LOONGARCH_LBT_ARM (1 << 11)
-#define HWCAP_LOONGARCH_LBT_MIPS (1 << 12)
-#define HWCAP_LOONGARCH_PTW (1 << 13)
-#define HWCAP_LOONGARCH_LSPW (1 << 14)
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/link.h
@@ -1,76 +0,0 @@
-/* Machine-specific declarations for dynamic linker interface.
- Copyright (C) 2022-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-#error "Never include <bits/link.h> directly; use <link.h> instead."
-#endif
-
-#ifndef __loongarch_soft_float
-typedef float La_loongarch_vr
- __attribute__ ((__vector_size__ (16), __aligned__ (16)));
-typedef float La_loongarch_xr
- __attribute__ ((__vector_size__ (32), __aligned__ (16)));
-
-typedef union
-{
- double fpreg[4];
- La_loongarch_vr vr[2];
- La_loongarch_xr xr[1];
-} La_loongarch_vector __attribute__ ((__aligned__ (16)));
-#endif
-
-typedef struct La_loongarch_regs
-{
- unsigned long int lr_reg[8]; /* a0 - a7 */
-#ifndef __loongarch_soft_float
- La_loongarch_vector lr_vec[8]; /* fa0 - fa7 or vr0 - vr7 or xr0 - xr7*/
-#endif
- unsigned long int lr_ra;
- unsigned long int lr_sp;
-} La_loongarch_regs;
-
-/* Return values for calls from PLT on LoongArch. */
-typedef struct La_loongarch_retval
-{
- unsigned long int lrv_a0;
- unsigned long int lrv_a1;
-#ifndef __loongarch_soft_float
- La_loongarch_vector lrv_vec0;
- La_loongarch_vector lrv_vec1;
-#endif
-} La_loongarch_retval;
-
-__BEGIN_DECLS
-
-extern ElfW (Addr) la_loongarch_gnu_pltenter (ElfW (Sym) *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_loongarch_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_loongarch_gnu_pltexit (ElfW (Sym) *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_loongarch_regs *__inregs,
- La_loongarch_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/link_lavcurrent.h
@@ -1,25 +0,0 @@
-/* Data structure for communication from the run-time dynamic linker for
- loaded ELF shared objects. LAV_CURRENT definition.
- Copyright (C) 2023-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-# error "Never include <bits/link_lavcurrent.h> directly; use <link.h> instead."
-#endif
-
-/* Version numbers for la_version handshake interface. */
-#define LAV_CURRENT 3
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/long-double.h
@@ -1,21 +0,0 @@
-/* Properties of long double type. ldbl-128 version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* long double is distinct from double, so there is nothing to
- define here. */
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/procfs.h
@@ -1,52 +0,0 @@
-/* Types for registers for sys/procfs.h.
- Copyright (C) 2022-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
-#endif
-
-/* Type for a general-purpose register. */
-typedef __uint64_t elf_greg_t;
-
-/* And the whole bunch of them. We could have used `struct
- pt_regs' directly in the typedef, but tradition says that
- the register set is an array, which does have some peculiar
- semantics, so leave it that way. */
-#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof (elf_greg_t))
-typedef elf_greg_t elf_gregset_t[ELF_NGREG];
-
-#define ELF_NFPREG 34 /* 32 FPRs + 8-byte byte-vec for fcc + 4-byte FCR */
-typedef union
-{
- double d;
- float f;
-} elf_fpreg_t;
-typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
-
-typedef union
-{
- double d[2];
- float f[4];
-} __attribute__ ((__aligned__ (16))) elf_lsxregset_t[32];
-
-typedef union
-{
- double d[4];
- float f[8];
-} __attribute__ ((__aligned__ (32))) elf_lasxregset_t[32];
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/pthread_stack_min.h
@@ -1,20 +0,0 @@
-/* Definition of PTHREAD_STACK_MIN. LoongArch Linux version.
- Copyright (C) 2022-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Minimum size for a thread. At least two pages with 64k pages. */
-#define PTHREAD_STACK_MIN 131072
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/rseq.h
@@ -1,36 +0,0 @@
-/* Restartable Sequences Linux LoongArch architecture header.
- Copyright (C) 2024-2025 Free Software Foundation, Inc.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RSEQ_H
-# error "Never use <bits/rseq.h> directly; include <sys/rseq.h> instead."
-#endif
-
-/* RSEQ_SIG is a signature required before each abort handler code.
-
- It is a 32-bit value that maps to actual architecture code compiled
- into applications and libraries. It needs to be defined for each
- architecture. When choosing this value, it needs to be taken into
- account that generating invalid instructions may have ill effects on
- tools like objdump, and may also have impact on the CPU speculative
- execution efficiency in some cases.
-
- RSEQ_SIG uses the following break instruction:
-
- 0x002a0010 break 0x10
-*/
-
-#define RSEQ_SIG 0x002a0010
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/setjmp.h
@@ -1,42 +0,0 @@
-/* Define the machine-dependent type `jmp_buf'.
- Copyright (C) 2022-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LOONGARCH_BITS_SETJMP_H
-#define _LOONGARCH_BITS_SETJMP_H
-
-typedef struct __jmp_buf_internal_tag
-{
- /* Program counter. */
- long int __pc;
- /* Stack pointer. */
- long int __sp;
- /* Reserved */
- long int __x;
- /* Frame pointer. */
- long int __fp;
- /* Callee-saved registers. */
- long int __regs[9];
-
-#ifndef __loongarch_soft_float
- /* Callee-saved floating point registers. */
- double __fpregs[8];
-#endif
-
-} __jmp_buf[1];
-
-#endif /* _LOONGARCH_BITS_SETJMP_H */
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/shmlba.h
@@ -1,24 +0,0 @@
-/* Define SHMLBA. LoongArch version.
- Copyright (C) 2023-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
-#endif
-
-/* Segment low boundary address multiple. */
-#define SHMLBA 0x10000
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/sigstack.h
@@ -1,32 +0,0 @@
-/* sigstack, sigaltstack definitions.
- Copyright (C) 2022-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGSTACK_H
-#define _BITS_SIGSTACK_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never include this file directly. Use <signal.h> instead"
-#endif
-
-/* Minimum stack size for a signal handler. */
-#define MINSIGSTKSZ 4096
-
-/* System default stack size. */
-#define SIGSTKSZ 16384
-
-#endif /* bits/sigstack.h */
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/struct_stat.h
@@ -1,127 +0,0 @@
-/* Definition for struct stat.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
-#endif
-
-#ifndef _BITS_STRUCT_STAT_H
-#define _BITS_STRUCT_STAT_H 1
-
-#include <bits/endian.h>
-#include <bits/wordsize.h>
-
-#if defined __USE_FILE_OFFSET64
-# define __field64(type, type64, name) type64 name
-#elif __WORDSIZE == 64 || defined __INO_T_MATCHES_INO64_T
-# if defined __INO_T_MATCHES_INO64_T && !defined __OFF_T_MATCHES_OFF64_T
-# error "ino_t and off_t must both be the same type"
-# endif
-# define __field64(type, type64, name) type name
-#elif __BYTE_ORDER == __LITTLE_ENDIAN
-# define __field64(type, type64, name) \
- type name __attribute__((__aligned__ (__alignof__ (type64)))); int __##name##_pad
-#else
-# define __field64(type, type64, name) \
- int __##name##_pad __attribute__((__aligned__ (__alignof__ (type64)))); type name
-#endif
-
-struct stat
- {
- __dev_t st_dev; /* Device. */
- __field64(__ino_t, __ino64_t, st_ino); /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- __dev_t __pad1;
- __field64(__off_t, __off64_t, st_size); /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- int __pad2;
- __field64(__blkcnt_t, __blkcnt64_t, st_blocks); /* 512-byte blocks */
-#ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-#else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-#endif
- int __glibc_reserved[2];
- };
-
-#undef __field64
-
-#ifdef __USE_LARGEFILE64
-struct stat64
- {
- __dev_t st_dev; /* Device. */
- __ino64_t st_ino; /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- __dev_t __pad1;
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- int __pad2;
- __blkcnt64_t st_blocks; /* Nr. 512-byte blocks allocated. */
-#ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-#else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-#endif
- int __glibc_reserved[2];
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-#endif /* _BITS_STRUCT_STAT_H */
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/timesize.h
@@ -1,20 +0,0 @@
-/* Bit size of the time_t type at glibc build time, general case.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Size in bits of the 'time_t' type of the default ABI. */
-#define __TIMESIZE 64
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/bits/wordsize.h
@@ -1,19 +0,0 @@
-/* Copyright (C) 1999-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#define __WORDSIZE 64
-#define __WORDSIZE_TIME64_COMPAT32 0
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/gnu/lib-names.h
@@ -1,16 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 64 && defined __loongarch_soft_float
-# include <gnu/lib-names-lp64s.h>
-#endif
-#if __WORDSIZE == 64 && defined __loongarch_double_float
-# include <gnu/lib-names-lp64d.h>
-#endif
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/gnu/stubs.h
@@ -1,12 +0,0 @@
-/* This file is automatically generated.
- This file selects the right generated file of `__stub_FUNCTION' macros
- based on the architecture being compiled for. */
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 64 && defined __loongarch_soft_float
-# include <gnu/stubs-lp64s.h>
-#endif
-#if __WORDSIZE == 64 && defined __loongarch_double_float
-# include <gnu/stubs-lp64d.h>
-#endif
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/sys/asm.h
@@ -1,78 +0,0 @@
-/* Miscellaneous macros.
- Copyright (C) 2022-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_ASM_H
-#define _SYS_ASM_H
-
-#include <sys/regdef.h>
-#include <sysdeps/generic/sysdep.h>
-
-/* Macros to handle different pointer/register sizes for 32/64-bit code. */
-#define SZREG 8
-#define SZFREG 8
-#define SZVREG 16
-#define SZXREG 32
-#define REG_L ld.d
-#define REG_S st.d
-#define SRLI srli.d
-#define SLLI slli.d
-#define ADDI addi.d
-#define ADD add.d
-#define SUB sub.d
-#define BSTRINS bstrins.d
-#define LI li.d
-#define FREG_L fld.d
-#define FREG_S fst.d
-
-/* Declare leaf routine.
- The usage of macro LEAF/ENTRY is as follows:
- 1. LEAF(fcn) -- the align value of fcn is .align 3 (default value)
- 2. LEAF(fcn, 6) -- the align value of fcn is .align 6
-*/
-#define LEAF_IMPL(symbol, aln, ...) \
- .text; \
- .globl symbol; \
- .align aln; \
- .type symbol, @function; \
-symbol: \
- cfi_startproc;
-
-
-#define LEAF(...) LEAF_IMPL(__VA_ARGS__, 3)
-#define ENTRY(...) LEAF(__VA_ARGS__)
-
-#define LEAF_NO_ALIGN(symbol) \
- .text; \
- .globl symbol; \
- .type symbol, @function; \
-symbol: \
- cfi_startproc;
-
-#define ENTRY_NO_ALIGN(symbol) LEAF_NO_ALIGN(symbol)
-
-
-/* Mark end of function. */
-#undef END
-#define END(function) \
- cfi_endproc; \
- .size function, .- function;
-
-/* Stack alignment. */
-#define ALMASK ~15
-
-#endif /* sys/asm.h */
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/sys/ucontext.h
@@ -1,64 +0,0 @@
-/* struct ucontext definition.
- Copyright (C) 2022-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Don't rely on this, the interface is currently messed up and may need to
- be broken to be fixed. */
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include <features.h>
-
-#include <bits/types/sigset_t.h>
-#include <bits/types/stack_t.h>
-
-#ifdef __USE_MISC
-#define LARCH_NGREG 32
-
-#define LARCH_REG_RA 1
-#define LARCH_REG_SP 3
-#define LARCH_REG_S0 23
-#define LARCH_REG_S1 24
-#define LARCH_REG_A0 4
-#define LARCH_REG_S2 25
-#define LARCH_REG_NARGS 8
-
-typedef unsigned long int greg_t;
-/* Container for all general registers. */
-typedef greg_t gregset_t[32];
-#endif
-
-typedef struct mcontext_t
-{
- unsigned long long __pc;
- unsigned long long __gregs[32];
- unsigned int __flags;
- unsigned long long __extcontext[0] __attribute__((__aligned__(16)));
-} mcontext_t;
-
-/* Userlevel context. */
-typedef struct ucontext_t
-{
- unsigned long int __uc_flags;
- struct ucontext_t *uc_link;
- stack_t uc_stack;
- sigset_t uc_sigmask;
- mcontext_t uc_mcontext;
-} ucontext_t;
-
-#endif /* sys/ucontext.h */
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/sys/user.h
@@ -1,42 +0,0 @@
-/* struct user_regs_struct definition for LoongArch.
- Copyright (C) 2022-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_USER_H
-#define _SYS_USER_H 1
-
-#include <stdint.h>
-
-struct user_regs_struct
-{
- /* Saved main processor registers. */
- uint64_t regs[32];
-
- /* Saved special registers. */
- uint64_t orig_a0;
- uint64_t csr_era;
- uint64_t csr_badv;
- uint64_t reserved[10];
-};
-
-struct user_fp_struct {
- uint64_t fpr[32];
- uint64_t fcc;
- uint32_t fcsr;
-};
-
-#endif /* _SYS_USER_H */
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/fpu_control.h
@@ -1,119 +0,0 @@
-/* FPU control word bits.
- Copyright (C) 2022-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FPU_CONTROL_H
-#define _FPU_CONTROL_H
-
-/* LoongArch FPU floating point control register bits.
- *
- * 31-29 -> reserved (read as 0, can not changed by software)
- * 28 -> cause bit for invalid exception
- * 27 -> cause bit for division by zero exception
- * 26 -> cause bit for overflow exception
- * 25 -> cause bit for underflow exception
- * 24 -> cause bit for inexact exception
- * 23-21 -> reserved (read as 0, can not changed by software)
- * 20 -> flag invalid exception
- * 19 -> flag division by zero exception
- * 18 -> flag overflow exception
- * 17 -> flag underflow exception
- * 16 -> flag inexact exception
- * 9-8 -> rounding control
- * 7-5 -> reserved (read as 0, can not changed by software)
- * 4 -> enable exception for invalid exception
- * 3 -> enable exception for division by zero exception
- * 2 -> enable exception for overflow exception
- * 1 -> enable exception for underflow exception
- * 0 -> enable exception for inexact exception
- *
- *
- * Rounding Control:
- * 00 - rounding ties to even (RNE)
- * 01 - rounding toward zero (RZ)
- * 10 - rounding (up) toward plus infinity (RP)
- * 11 - rounding (down) toward minus infinity (RM)
- */
-
-#include <features.h>
-
-#ifdef __loongarch_soft_float
-
-#define _FPU_RESERVED 0xffffffff
-#define _FPU_DEFAULT 0x00000000
-typedef unsigned int fpu_control_t;
-#define _FPU_GETCW(cw) (cw) = 0
-#define _FPU_SETCW(cw) (void) (cw)
-extern fpu_control_t __fpu_control;
-
-#else /* __loongarch_soft_float */
-
-/* Masks for interrupts. */
-#define _FPU_MASK_V 0x10 /* Invalid operation */
-#define _FPU_MASK_Z 0x08 /* Division by zero */
-#define _FPU_MASK_O 0x04 /* Overflow */
-#define _FPU_MASK_U 0x02 /* Underflow */
-#define _FPU_MASK_I 0x01 /* Inexact operation */
-
-/* Flush denormalized numbers to zero. */
-#define _FPU_FLUSH_TZ 0x1000000
-
-/* Rounding control. */
-#define _FPU_RC_NEAREST 0x000 /* RECOMMENDED */
-#define _FPU_RC_ZERO 0x100
-#define _FPU_RC_UP 0x200
-#define _FPU_RC_DOWN 0x300
-/* Mask for rounding control. */
-#define _FPU_RC_MASK 0x300
-
-#define _FPU_RESERVED 0x0
-
-#define _FPU_DEFAULT 0x0
-#define _FPU_IEEE 0x1F
-
-/* Type of the control word. */
-typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__SI__)));
-
-/* Macros for accessing the hardware control word. */
-extern fpu_control_t __loongarch_fpu_getcw (void) __THROW;
-extern void __loongarch_fpu_setcw (fpu_control_t) __THROW;
-#define _FPU_GETCW(cw) __asm__ volatile ("movfcsr2gr %0,$fcsr0" : "=r"(cw))
-#define _FPU_SETCW(cw) __asm__ volatile ("movgr2fcsr $fcsr0,%0" : : "r"(cw))
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-# define _FCLASS_SNAN (1 << 0)
-# define _FCLASS_QNAN (1 << 1)
-# define _FCLASS_MINF (1 << 2)
-# define _FCLASS_MNORM (1 << 3)
-# define _FCLASS_MSUBNORM (1 << 4)
-# define _FCLASS_MZERO (1 << 5)
-# define _FCLASS_PINF (1 << 6)
-# define _FCLASS_PNORM (1 << 7)
-# define _FCLASS_PSUBNORM (1 << 8)
-# define _FCLASS_PZERO (1 << 9)
-
-# define _FCLASS_ZERO (_FCLASS_MZERO | _FCLASS_PZERO)
-# define _FCLASS_SUBNORM (_FCLASS_MSUBNORM | _FCLASS_PSUBNORM)
-# define _FCLASS_NORM (_FCLASS_MNORM | _FCLASS_PNORM)
-# define _FCLASS_INF (_FCLASS_MINF | _FCLASS_PINF)
-# define _FCLASS_NAN (_FCLASS_SNAN | _FCLASS_QNAN)
-
-#endif /* __loongarch_soft_float */
-
-#endif /* fpu_control.h */
\ No newline at end of file
lib/libc/include/loongarch64-linux-gnusf/ieee754.h
@@ -1,170 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/mips-linux-gnueabi/bits/types/stack_t.h → lib/libc/include/mips-linux-gnu/bits/types/stack_t.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/types/struct_msqid_ds.h → lib/libc/include/mips-linux-gnu/bits/types/struct_msqid_ds.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/types/struct_semid_ds.h → lib/libc/include/mips-linux-gnu/bits/types/struct_semid_ds.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/types/struct_shmid_ds.h → lib/libc/include/mips-linux-gnu/bits/types/struct_shmid_ds.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/dlfcn.h → lib/libc/include/mips-linux-gnu/bits/dlfcn.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/errno.h → lib/libc/include/mips-linux-gnu/bits/errno.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/eventfd.h → lib/libc/include/mips-linux-gnu/bits/eventfd.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/floatn.h → lib/libc/include/mips-linux-gnu/bits/floatn.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/inotify.h → lib/libc/include/mips-linux-gnu/bits/inotify.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/ioctl-types.h → lib/libc/include/mips-linux-gnu/bits/ioctl-types.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/ipctypes.h → lib/libc/include/mips-linux-gnu/bits/ipctypes.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/mman.h → lib/libc/include/mips-linux-gnu/bits/mman.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/poll.h → lib/libc/include/mips-linux-gnu/bits/poll.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/pthread_stack_min.h → lib/libc/include/mips-linux-gnu/bits/pthread_stack_min.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/pthreadtypes-arch.h → lib/libc/include/mips-linux-gnu/bits/pthreadtypes-arch.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/resource.h → lib/libc/include/mips-linux-gnu/bits/resource.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/semaphore.h → lib/libc/include/mips-linux-gnu/bits/semaphore.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/shmlba.h → lib/libc/include/mips-linux-gnu/bits/shmlba.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/sigaction.h → lib/libc/include/mips-linux-gnu/bits/sigaction.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/sigcontext.h → lib/libc/include/mips-linux-gnu/bits/sigcontext.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/siginfo-arch.h → lib/libc/include/mips-linux-gnu/bits/siginfo-arch.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/signalfd.h → lib/libc/include/mips-linux-gnu/bits/signalfd.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/signum-arch.h → lib/libc/include/mips-linux-gnu/bits/signum-arch.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/socket-constants.h → lib/libc/include/mips-linux-gnu/bits/socket-constants.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/socket_type.h → lib/libc/include/mips-linux-gnu/bits/socket_type.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/statfs.h → lib/libc/include/mips-linux-gnu/bits/statfs.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/struct_mutex.h → lib/libc/include/mips-linux-gnu/bits/struct_mutex.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/struct_rwlock.h → lib/libc/include/mips-linux-gnu/bits/struct_rwlock.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/termios-c_cc.h → lib/libc/include/mips-linux-gnu/bits/termios-c_cc.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/termios-c_lflag.h → lib/libc/include/mips-linux-gnu/bits/termios-c_lflag.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/termios-struct.h → lib/libc/include/mips-linux-gnu/bits/termios-struct.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/termios-tcflow.h → lib/libc/include/mips-linux-gnu/bits/termios-tcflow.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/timerfd.h → lib/libc/include/mips-linux-gnu/bits/timerfd.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/bits/typesizes.h → lib/libc/include/mips-linux-gnu/bits/typesizes.h
File renamed without changes
lib/libc/include/mips-linux-gnueabi/ieee754.h → lib/libc/include/mips-linux-gnu/ieee754.h
File renamed without changes
lib/libc/include/mips-linux-gnueabihf/bits/types/stack_t.h
@@ -1,33 +0,0 @@
-/* Define stack_t. MIPS Linux version.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef __stack_t_defined
-#define __stack_t_defined 1
-
-#define __need_size_t
-#include <stddef.h>
-
-/* Structure describing a signal stack. */
-typedef struct
- {
- void *ss_sp;
- size_t ss_size;
- int ss_flags;
- } stack_t;
-
-#endif
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/types/struct_msqid_ds.h
@@ -1,62 +0,0 @@
-/* Linux/MIPS implementation of the SysV message struct msqid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MSG_H
-# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
-#endif
-
-#include <bits/types/time_t.h>
-
-/* Structure of record for one message inside the kernel.
- The type `struct msg' is opaque. */
-struct msqid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_msqid64_ds_helper.h>
-#else
- struct ipc_perm msg_perm; /* structure describing operation permission */
-# if __TIMESIZE == 32
-# ifdef __MIPSEL__
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_stime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_ctime; /* time of last change */
- unsigned long int __msg_ctime_high;
-# else
- unsigned long int __msg_stime_high;
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_ctime_high;
- __time_t msg_ctime; /* time of last change */
-# endif
-# else
- __time_t msg_stime; /* time of last msgsnd command */
- __time_t msg_rtime; /* time of last msgsnd command */
- __time_t msg_ctime; /* time of last change */
-# endif
- __syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
- msgqnum_t msg_qnum; /* number of messages currently on queue */
- msglen_t msg_qbytes; /* max number of bytes allowed on queue */
- __pid_t msg_lspid; /* pid of last msgsnd() */
- __pid_t msg_lrpid; /* pid of last msgrcv() */
- __syscall_ulong_t __glibc_reserved4;
- __syscall_ulong_t __glibc_reserved5;
-#endif
-};
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/types/struct_semid_ds.h
@@ -1,36 +0,0 @@
-/* MIPS implementation of the semaphore struct semid_ds
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
-#endif
-
-/* Data structure describing a set of semaphores. */
-struct semid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_semid64_ds_helper.h>
-#else
- struct ipc_perm sem_perm; /* operation permission struct */
- __time_t sem_otime; /* last semop() time */
- __time_t sem_ctime; /* last time changed by semctl() */
- __syscall_ulong_t sem_nsems; /* number of semaphores in set */
- __syscall_ulong_t __sem_otime_high;
- __syscall_ulong_t __sem_ctime_high;
-#endif
-};
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/types/struct_shmid_ds.h
@@ -1,53 +0,0 @@
-/* Linux/MIPS implementation of the shared memory struct shmid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never include <bits/types/struct_shmid_ds.h> directly; use <sys/shm.h> instead."
-#endif
-
-/* Data structure describing a shared memory segment. */
-struct shmid_ds
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_shmid64_ds_helper.h>
-#else
- struct ipc_perm shm_perm; /* operation permission struct */
- size_t shm_segsz; /* size of segment in bytes */
-# if __TIMESIZE == 32
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# else
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# endif
- __pid_t shm_cpid; /* pid of creator */
- __pid_t shm_lpid; /* pid of last shmop */
- shmatt_t shm_nattch; /* number of current attaches */
-# if __TIMESIZE == 32
- unsigned short int __shm_atime_high;
- unsigned short int __shm_dtime_high;
- unsigned short int __shm_ctime_high;
- unsigned short int __glibc_reserved4;
-# else
- __syscall_ulong_t __glibc_reserved5;
- __syscall_ulong_t __glibc_reserved6;
-# endif
-#endif
- };
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/dlfcn.h
@@ -1,64 +0,0 @@
-/* System dependent definitions for run-time dynamic loading.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _DLFCN_H
-# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
-#endif
-
-/* The MODE argument to `dlopen' contains one of the following: */
-#define RTLD_LAZY 0x0001 /* Lazy function call binding. */
-#define RTLD_NOW 0x0002 /* Immediate function call binding. */
-#define RTLD_BINDING_MASK 0x3 /* Mask of binding time value. */
-#define RTLD_NOLOAD 0x00008 /* Do not load the object. */
-#define RTLD_DEEPBIND 0x00010 /* Use deep binding. */
-
-/* If the following bit is set in the MODE argument to `dlopen',
- the symbols of the loaded object and its dependencies are made
- visible as if the object were linked directly into the program. */
-#define RTLD_GLOBAL 0x0004
-
-/* Unix98 demands the following flag which is the inverse to RTLD_GLOBAL.
- The implementation does this by default and so we can define the
- value to zero. */
-#define RTLD_LOCAL 0
-
-/* Do not delete object when closed. */
-#define RTLD_NODELETE 0x01000
-
-#ifdef __USE_GNU
-/* To support profiling of shared objects it is a good idea to call
- the function found using `dlsym' using the following macro since
- these calls do not use the PLT. But this would mean the dynamic
- loader has no chance to find out when the function is called. The
- macro applies the necessary magic so that profiling is possible.
- Rewrite
- foo = (*fctp) (arg1, arg2);
- into
- foo = DL_CALL_FCT (fctp, (arg1, arg2));
-*/
-# define DL_CALL_FCT(fctp, args) \
- (_dl_mcount_wrapper_check ((void *) (fctp)), (*(fctp)) args)
-
-__BEGIN_DECLS
-
-/* This function calls the profiling functions. */
-extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
-
-__END_DECLS
-
-#endif
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/errno.h
@@ -1,52 +0,0 @@
-/* Error constants. MIPS/Linux specific version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_ERRNO_H
-
-#if !defined _ERRNO_H
-# error "Never include <bits/errno.h> directly; use <errno.h> instead."
-#endif
-
-# include <linux/errno.h>
-
-/* Older Linux headers do not define these constants. */
-# ifndef ENOTSUP
-# define ENOTSUP EOPNOTSUPP
-# endif
-
-# ifndef ECANCELED
-# define ECANCELED 158
-# endif
-
-# ifndef EOWNERDEAD
-# define EOWNERDEAD 165
-# endif
-
-# ifndef ENOTRECOVERABLE
-# define ENOTRECOVERABLE 166
-# endif
-
-# ifndef ERFKILL
-# define ERFKILL 167
-# endif
-
-# ifndef EHWPOISON
-# define EHWPOISON 168
-# endif
-
-#endif /* bits/errno.h. */
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/eventfd.h
@@ -1,31 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_EVENTFD_H
-# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
-#endif
-
-/* Flags for eventfd. */
-enum
- {
- EFD_SEMAPHORE = 00000001,
-#define EFD_SEMAPHORE EFD_SEMAPHORE
- EFD_CLOEXEC = 02000000,
-#define EFD_CLOEXEC EFD_CLOEXEC
- EFD_NONBLOCK = 00000200
-#define EFD_NONBLOCK EFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/floatn.h
@@ -1,97 +0,0 @@
-/* Macros to control TS 18661-3 glibc features on MIPS platforms.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_FLOATN_H
-#define _BITS_FLOATN_H
-
-#include <features.h>
-#include <bits/long-double.h>
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this
- glibc includes corresponding *f128 interfaces for it. */
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __HAVE_FLOAT128 1
-#else
-/* glibc does not support _Float128 for platforms where long double is
- normally binary128 when building with long double as binary64.
- GCC's default for supported scalar modes does not support it either
- in that case. */
-# define __HAVE_FLOAT128 0
-#endif
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#define __HAVE_DISTINCT_FLOAT128 0
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X __HAVE_FLOAT128
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-/* The literal suffix f128 exists only since GCC 7.0. */
-# define __f128(x) x##l
-# else
-# define __f128(x) x##f128
-# endif
-# endif
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-# define __CFLOAT128 _Complex long double
-# else
-# define __CFLOAT128 _Complex _Float128
-# endif
-# endif
-
-/* The remaining of this file provides support for older compilers. */
-# if __HAVE_FLOAT128
-
-/* The type _Float128 exists only since GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-typedef long double _Float128;
-# endif
-
-/* Various built-in functions do not exist before GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0)
-# define __builtin_huge_valf128() (__builtin_huge_vall ())
-# define __builtin_inff128() (__builtin_infl ())
-# define __builtin_nanf128(x) (__builtin_nanl (x))
-# define __builtin_nansf128(x) (__builtin_nansl (x))
-# endif
-
-# endif
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
-
-#endif /* _BITS_FLOATN_H */
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/inotify.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_INOTIFY_H
-# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
-#endif
-
-/* Flags for the parameter of inotify_init1. */
-enum
- {
- IN_CLOEXEC = 02000000,
-#define IN_CLOEXEC IN_CLOEXEC
- IN_NONBLOCK = 00000200
-#define IN_NONBLOCK IN_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/ioctl-types.h
@@ -1,75 +0,0 @@
-/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IOCTL_H
-# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
-#endif
-
-/* Get definition of constants for use with `ioctl'. */
-#include <asm/ioctls.h>
-
-struct winsize
- {
- unsigned short int ws_row;
- unsigned short int ws_col;
- unsigned short int ws_xpixel;
- unsigned short int ws_ypixel;
- };
-
-#define NCC 8
-struct termio
- {
- unsigned short int c_iflag; /* input mode flags */
- unsigned short int c_oflag; /* output mode flags */
- unsigned short int c_cflag; /* control mode flags */
- unsigned short int c_lflag; /* local mode flags */
- char c_line; /* line discipline */
- /* Yes, this is really NCCS. */
- unsigned char c_cc[32 /* NCCS */]; /* control characters */
- };
-
-/* modem lines */
-#define TIOCM_LE 0x001 /* line enable */
-#define TIOCM_DTR 0x002 /* data terminal ready */
-#define TIOCM_RTS 0x004 /* request to send */
-#define TIOCM_ST 0x010 /* secondary transmit */
-#define TIOCM_SR 0x020 /* secondary receive */
-#define TIOCM_CTS 0x040 /* clear to send */
-#define TIOCM_CAR 0x100 /* carrier detect */
-#define TIOCM_CD TIOCM_CAR
-#define TIOCM_RNG 0x200 /* ring */
-#define TIOCM_RI TIOCM_RNG
-#define TIOCM_DSR 0x400 /* data set ready */
-
-/* line disciplines */
-#define N_TTY 0
-#define N_SLIP 1
-#define N_MOUSE 2
-#define N_PPP 3
-#define N_STRIP 4
-#define N_AX25 5
-#define N_X25 6 /* X.25 async */
-#define N_6PACK 7
-#define N_MASC 8 /* Mobitex module */
-#define N_R3964 9 /* Simatic R3964 module */
-#define N_PROFIBUS_FDL 10 /* Profibus */
-#define N_IRDA 11 /* Linux IR */
-#define N_SMSBLOCK 12 /* SMS block mode */
-#define N_HDLC 13 /* synchronous HDLC */
-#define N_SYNC_PPP 14 /* synchronous PPP */
-#define N_HCI 15 /* Bluetooth HCI UART */
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/ipctypes.h
@@ -1,31 +0,0 @@
-/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/*
- * Never include <bits/ipctypes.h> directly.
- */
-
-#ifndef _BITS_IPCTYPES_H
-#define _BITS_IPCTYPES_H 1
-
-#include <bits/types.h>
-
-typedef __SLONG32_TYPE __ipc_pid_t;
-
-
-#endif /* bits/ipctypes.h */
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/mman.h
@@ -1,44 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* The following definitions basically come from the kernel headers.
- But the kernel header is not namespace clean. */
-
-/* These are Linux-specific. */
-#define MAP_NORESERVE 0x0400 /* don't check for reservations */
-#define MAP_GROWSDOWN 0x1000 /* stack-like segment */
-#define MAP_DENYWRITE 0x2000 /* ETXTBSY */
-#define MAP_EXECUTABLE 0x4000 /* mark it as an executable */
-#define MAP_LOCKED 0x8000 /* pages are locked */
-#define MAP_POPULATE 0x10000 /* populate (prefault) pagetables */
-#define MAP_NONBLOCK 0x20000 /* do not block on IO */
-#define MAP_STACK 0x40000 /* Allocation is for a stack. */
-#define MAP_HUGETLB 0x80000 /* Create huge page mapping. */
-#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
- underlying mapping. */
-
-#define __MAP_ANONYMOUS 0x0800
-
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
-
-#define MAP_RENAME MAP_ANONYMOUS
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/poll.h
@@ -1,49 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_POLL_H
-# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
-#endif
-
-/* Event types that can be polled for. These bits may be set in `events'
- to indicate the interesting event types; they will appear in `revents'
- to indicate the status of the file descriptor. */
-#define POLLIN 0x001 /* There is data to read. */
-#define POLLPRI 0x002 /* There is urgent data to read. */
-#define POLLOUT 0x004 /* Writing now will not block. */
-
-#if defined __USE_XOPEN || defined __USE_XOPEN2K8
-/* These values are defined in XPG4.2. */
-# define POLLRDNORM 0x040 /* Normal data may be read. */
-# define POLLRDBAND 0x080 /* Priority data may be read. */
-# define POLLWRNORM POLLOUT /* Writing now will not block. */
-# define POLLWRBAND 0x100 /* Priority data may be written. */
-#endif
-
-#ifdef __USE_GNU
-/* These are extensions for Linux. */
-# define POLLMSG 0x400
-# define POLLREMOVE 0x1000
-# define POLLRDHUP 0x2000
-#endif
-
-/* Event types always implicitly polled for. These bits need not be set in
- `events', but they will appear in `revents' to indicate the status of
- the file descriptor. */
-#define POLLERR 0x008 /* Error condition. */
-#define POLLHUP 0x010 /* Hung up. */
-#define POLLNVAL 0x020 /* Invalid polling request. */
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/pthread_stack_min.h
@@ -1,20 +0,0 @@
-/* Definition of PTHREAD_STACK_MIN. MIPS Linux version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Minimum size for a thread. At least two pages with 64k pages. */
-#define PTHREAD_STACK_MIN 131072
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/pthreadtypes-arch.h
@@ -1,44 +0,0 @@
-/* Machine-specific pthread type layouts. MIPS version.
- Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_PTHREADTYPES_ARCH_H
-#define _BITS_PTHREADTYPES_ARCH_H 1
-
-#include <bits/endian.h>
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_PTHREAD_ATTR_T 56
-# define __SIZEOF_PTHREAD_MUTEX_T 40
-# define __SIZEOF_PTHREAD_RWLOCK_T 56
-# define __SIZEOF_PTHREAD_BARRIER_T 32
-#else
-# define __SIZEOF_PTHREAD_ATTR_T 36
-# define __SIZEOF_PTHREAD_MUTEX_T 24
-# define __SIZEOF_PTHREAD_RWLOCK_T 32
-# define __SIZEOF_PTHREAD_BARRIER_T 20
-#endif
-#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
-#define __SIZEOF_PTHREAD_COND_T 48
-#define __SIZEOF_PTHREAD_CONDATTR_T 4
-#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
-
-#define __LOCK_ALIGNMENT
-#define __ONCE_ALIGNMENT
-
-#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/resource.h
@@ -1,231 +0,0 @@
-/* Bit values & structures for resource limits. Linux/MIPS version.
- Copyright (C) 1994-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RESOURCE_H
-# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
-#endif
-
-#include <bits/types.h>
-
-/* Transmute defines to enumerations. The macro re-definitions are
- necessary because some programs want to test for operating system
- features with #ifdef RUSAGE_SELF. In ISO C the reflexive
- definition is a no-op. */
-
-/* Kinds of resource limit. */
-enum __rlimit_resource
-{
- /* Per-process CPU limit, in seconds. */
- RLIMIT_CPU = 0,
-#define RLIMIT_CPU RLIMIT_CPU
-
- /* Largest file that can be created, in bytes. */
- RLIMIT_FSIZE = 1,
-#define RLIMIT_FSIZE RLIMIT_FSIZE
-
- /* Maximum size of data segment, in bytes. */
- RLIMIT_DATA = 2,
-#define RLIMIT_DATA RLIMIT_DATA
-
- /* Maximum size of stack segment, in bytes. */
- RLIMIT_STACK = 3,
-#define RLIMIT_STACK RLIMIT_STACK
-
- /* Largest core file that can be created, in bytes. */
- RLIMIT_CORE = 4,
-#define RLIMIT_CORE RLIMIT_CORE
-
- /* Largest resident set size, in bytes.
- This affects swapping; processes that are exceeding their
- resident set size will be more likely to have physical memory
- taken from them. */
- __RLIMIT_RSS = 7,
-#define RLIMIT_RSS __RLIMIT_RSS
-
- /* Number of open files. */
- RLIMIT_NOFILE = 5,
- __RLIMIT_OFILE = RLIMIT_NOFILE, /* BSD name for same. */
-#define RLIMIT_NOFILE RLIMIT_NOFILE
-#define RLIMIT_OFILE __RLIMIT_OFILE
-
- /* Address space limit (?) */
- RLIMIT_AS = 6,
-#define RLIMIT_AS RLIMIT_AS
-
- /* Number of processes. */
- __RLIMIT_NPROC = 8,
-#define RLIMIT_NPROC __RLIMIT_NPROC
-
- /* Locked-in-memory address space. */
- __RLIMIT_MEMLOCK = 9,
-#define RLIMIT_MEMLOCK __RLIMIT_MEMLOCK
-
- /* Maximum number of file locks. */
- __RLIMIT_LOCKS = 10,
-#define RLIMIT_LOCKS __RLIMIT_LOCKS
-
- /* Maximum number of pending signals. */
- __RLIMIT_SIGPENDING = 11,
-#define RLIMIT_SIGPENDING __RLIMIT_SIGPENDING
-
- /* Maximum bytes in POSIX message queues. */
- __RLIMIT_MSGQUEUE = 12,
-#define RLIMIT_MSGQUEUE __RLIMIT_MSGQUEUE
-
- /* Maximum nice priority allowed to raise to.
- Nice levels 19 .. -20 correspond to 0 .. 39
- values of this resource limit. */
- __RLIMIT_NICE = 13,
-#define RLIMIT_NICE __RLIMIT_NICE
-
- /* Maximum realtime priority allowed for non-priviledged
- processes. */
- __RLIMIT_RTPRIO = 14,
-#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
-
- /* Maximum CPU time in microseconds that a process scheduled under a real-time
- scheduling policy may consume without making a blocking system
- call before being forcibly descheduled. */
- __RLIMIT_RTTIME = 15,
-#define RLIMIT_RTTIME __RLIMIT_RTTIME
-
- __RLIMIT_NLIMITS = 16,
- __RLIM_NLIMITS = __RLIMIT_NLIMITS
-#define RLIMIT_NLIMITS __RLIMIT_NLIMITS
-#define RLIM_NLIMITS __RLIM_NLIMITS
-};
-
-/* Value to indicate that there is no limit. */
-#if _MIPS_SIM == _ABI64
-/* The N64 syscall uses this value. */
-# define RLIM_INFINITY 0xffffffffffffffffUL
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffUL
-# endif
-#else
-/* The O32 and N32 syscalls use 0x7fffffff. */
-# ifndef __USE_FILE_OFFSET64
-# define RLIM_INFINITY ((long int)(~0UL >> 1))
-# else
-# define RLIM_INFINITY 0xffffffffffffffffULL
-# endif
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffULL
-# endif
-#endif
-
-/* We can represent all limits. */
-#define RLIM_SAVED_MAX RLIM_INFINITY
-#define RLIM_SAVED_CUR RLIM_INFINITY
-
-
-/* Type for resource quantity measurement. */
-#ifndef __USE_FILE_OFFSET64
-typedef __rlim_t rlim_t;
-#else
-typedef __rlim64_t rlim_t;
-#endif
-#ifdef __USE_LARGEFILE64
-typedef __rlim64_t rlim64_t;
-#endif
-
-struct rlimit
- {
- /* The current (soft) limit. */
- rlim_t rlim_cur;
- /* The hard limit. */
- rlim_t rlim_max;
- };
-
-#ifdef __USE_LARGEFILE64
-struct rlimit64
- {
- /* The current (soft) limit. */
- rlim64_t rlim_cur;
- /* The hard limit. */
- rlim64_t rlim_max;
- };
-#endif
-
-/* Whose usage statistics do you want? */
-enum __rusage_who
-{
- /* The calling process. */
- RUSAGE_SELF = 0,
-#define RUSAGE_SELF RUSAGE_SELF
-
- /* All of its terminated child processes. */
- RUSAGE_CHILDREN = -1
-#define RUSAGE_CHILDREN RUSAGE_CHILDREN
-
-#ifdef __USE_GNU
- ,
- /* The calling thread. */
- RUSAGE_THREAD = 1
-# define RUSAGE_THREAD RUSAGE_THREAD
- /* Name for the same functionality on Solaris. */
-# define RUSAGE_LWP RUSAGE_THREAD
-#endif
-};
-
-#include <bits/types/struct_timeval.h>
-#include <bits/types/struct_rusage.h>
-
-/* Priority limits. */
-#define PRIO_MIN -20 /* Minimum priority a process can have. */
-#define PRIO_MAX 20 /* Maximum priority a process can have. */
-
-/* The type of the WHICH argument to `getpriority' and `setpriority',
- indicating what flavor of entity the WHO argument specifies. */
-enum __priority_which
-{
- PRIO_PROCESS = 0, /* WHO is a process ID. */
-#define PRIO_PROCESS PRIO_PROCESS
- PRIO_PGRP = 1, /* WHO is a process group ID. */
-#define PRIO_PGRP PRIO_PGRP
- PRIO_USER = 2 /* WHO is a user ID. */
-#define PRIO_USER PRIO_USER
-};
-
-
-__BEGIN_DECLS
-
-#ifdef __USE_GNU
-/* Modify and return resource limits of a process atomically. */
-# ifndef __USE_FILE_OFFSET64
-extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit) __THROW;
-# else
-# ifdef __REDIRECT_NTH
-extern int __REDIRECT_NTH (prlimit, (__pid_t __pid,
- enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit), prlimit64);
-# else
-# define prlimit prlimit64
-# endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int prlimit64 (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit64 *__new_limit,
- struct rlimit64 *__old_limit) __THROW;
-# endif
-#endif
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/semaphore.h
@@ -1,36 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SEMAPHORE_H
-# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
-#endif
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_SEM_T 32
-#else
-# define __SIZEOF_SEM_T 16
-#endif
-
-/* Value returned if `sem_open' failed. */
-#define SEM_FAILED ((sem_t *) 0)
-
-
-typedef union
-{
- char __size[__SIZEOF_SEM_T];
- long int __align;
-} sem_t;
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/shmlba.h
@@ -1,24 +0,0 @@
-/* Define SHMLBA. MIPS version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
-#endif
-
-/* Segment low boundary address multiple. */
-#define SHMLBA 0x40000
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/sigaction.h
@@ -1,94 +0,0 @@
-/* The proper definitions for Linux/MIPS's sigaction.
- Copyright (C) 1993-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGACTION_H
-#define _BITS_SIGACTION_H 1
-
-#ifndef _SIGNAL_H
-# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
-#endif
-
-/* Structure describing the action to be taken when a signal arrives. */
-struct sigaction
- {
- /* Special flags. */
- int sa_flags;
-
- /* Signal handler. */
-#if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED
- union
- {
- /* Used if SA_SIGINFO is not set. */
- __sighandler_t sa_handler;
- /* Used if SA_SIGINFO is set. */
- void (*sa_sigaction) (int, siginfo_t *, void *);
- }
- __sigaction_handler;
-# define sa_handler __sigaction_handler.sa_handler
-# define sa_sigaction __sigaction_handler.sa_sigaction
-#else
- __sighandler_t sa_handler;
-#endif
- /* Additional set of signals to be blocked. */
- __sigset_t sa_mask;
-
- /* The ABI says here are two unused ints following. */
- /* Restore handler. */
- void (*sa_restorer) (void);
-
-#if _MIPS_SZPTR < 64
- int sa_resv[1];
-#endif
- };
-
-/* Bits in `sa_flags'. */
-/* Please note that some Linux kernels versions use different values for these
- flags which is a bug in those kernel versions. */
-#define SA_NOCLDSTOP 0x00000001 /* Don't send SIGCHLD when children stop. */
-#define SA_NOCLDWAIT 0x00010000 /* Don't create zombie on child death. */
-#define SA_SIGINFO 0x00000008 /* Invoke signal-catching function with
- three arguments instead of one. */
-#if defined __USE_XOPEN_EXTENDED || defined __USE_MISC
-# define SA_ONSTACK 0x08000000 /* Use signal stack by using `sa_restorer'. */
-#endif
-#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
-# define SA_RESETHAND 0x80000000 /* Reset to SIG_DFL on entry to handler. */
-# define SA_RESTART 0x10000000 /* Restart syscall on signal return. */
-# define SA_NODEFER 0x40000000 /* Don't automatically block the signal when
- its handler is being executed. */
-#endif
-#ifdef __USE_MISC
-# define SA_INTERRUPT 0x20000000 /* Historical no-op. */
-
-/* Some aliases for the SA_ constants. */
-# define SA_NOMASK SA_NODEFER
-# define SA_ONESHOT SA_RESETHAND
-# define SA_STACK SA_ONSTACK
-#endif
-
-/* Values for the HOW argument to `sigprocmask'. */
-#define SIG_NOP 0 /* 0 is unused to catch errors */
-#define SIG_BLOCK 1 /* Block signals. */
-#define SIG_UNBLOCK 2 /* Unblock signals. */
-#define SIG_SETMASK 3 /* Set the set of blocked signals. */
-#ifdef __USE_MISC
-# define SIG_SETMASK32 256 /* Goodie from SGI for BSD compatibility:
- set only the low 32 bit of the sigset. */
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/sigcontext.h
@@ -1,82 +0,0 @@
-/* Copyright (C) 1996-2025 Free Software Foundation, Inc. This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGCONTEXT_H
-#define _BITS_SIGCONTEXT_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
-#endif
-
-#include <sgidefs.h>
-
-#if _MIPS_SIM == _ABIO32
-
-/* Certain unused fields were replaced with new ones in 2.6.12-rc4.
- The changes were as follows:
-
- sc_cause -> sc_hi1
- sc_badvaddr -> sc_lo1
- sc_sigset[0] -> sc_hi2
- sc_sigset[1] -> sc_lo2
- sc_sigset[2] -> sc_hi3
- sc_sigset[3] -> sc_lo3
-
- sc_regmask, sc_ownedfp and sc_fpc_eir are not used. */
-struct sigcontext {
- unsigned int sc_regmask;
- unsigned int sc_status;
- __extension__ unsigned long long sc_pc;
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- unsigned int sc_ownedfp;
- unsigned int sc_fpc_csr;
- unsigned int sc_fpc_eir;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_mdlo;
- unsigned long sc_hi1;
- unsigned long sc_lo1;
- unsigned long sc_hi2;
- unsigned long sc_lo2;
- unsigned long sc_hi3;
- unsigned long sc_lo3;
-};
-
-#else
-
-/* This structure changed in 2.6.12-rc4 when DSP support was added. */
-struct sigcontext {
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_hi1;
- __extension__ unsigned long long sc_hi2;
- __extension__ unsigned long long sc_hi3;
- __extension__ unsigned long long sc_mdlo;
- __extension__ unsigned long long sc_lo1;
- __extension__ unsigned long long sc_lo2;
- __extension__ unsigned long long sc_lo3;
- __extension__ unsigned long long sc_pc;
- unsigned int sc_fpc_csr;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- unsigned int sc_reserved;
-};
-
-#endif /* _MIPS_SIM != _ABIO32 */
-#endif
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/siginfo-arch.h
@@ -1,13 +0,0 @@
-/* Architecture-specific adjustments to siginfo_t. MIPS version. */
-#ifndef _BITS_SIGINFO_ARCH_H
-#define _BITS_SIGINFO_ARCH_H 1
-
-/* MIPS has the si_code and si_errno fields in the opposite order from
- all other architectures. */
-#define __SI_ERRNO_THEN_CODE 0
-
-/* MIPS also has different values for SI_ASYNCIO, SI_MESGQ, and SI_TIMER
- than all other architectures. */
-#define __SI_ASYNCIO_AFTER_SIGIO 0
-
-#endif
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/signalfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SIGNALFD_H
-# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
-#endif
-
-/* Flags for signalfd. */
-enum
- {
- SFD_CLOEXEC = 02000000,
-#define SFD_CLOEXEC SFD_CLOEXEC
- SFD_NONBLOCK = 00000200
-#define SFD_NONBLOCK SFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/signum-arch.h
@@ -1,65 +0,0 @@
-/* Signal number definitions. Linux/MIPS version.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGNUM_H
-#define _BITS_SIGNUM_H 1
-
-#ifndef _SIGNAL_H
-#error "Never include <bits/signum.h> directly; use <signal.h> instead."
-#endif
-
-/* Adjustments and additions to the signal number constants for
- Linux/MIPS. */
-
-#define SIGEMT 7 /* Emulator trap. */
-#define SIGPWR 19 /* Power failure imminent. */
-
-/* Historical signals specified by POSIX. */
-#define SIGBUS 10 /* Bus error. */
-#define SIGSYS 12 /* Bad system call. */
-
-/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
-#define SIGURG 21 /* Urgent data is available at a socket. */
-#define SIGSTOP 23 /* Stop, unblockable. */
-#define SIGTSTP 24 /* Keyboard stop. */
-#define SIGCONT 25 /* Continue. */
-#define SIGCHLD 18 /* Child terminated or stopped. */
-#define SIGTTIN 26 /* Background read from control terminal. */
-#define SIGTTOU 27 /* Background write to control terminal. */
-#define SIGPOLL 22 /* Pollable event occurred (System V). */
-#define SIGXCPU 30 /* CPU time limit exceeded. */
-#define SIGVTALRM 28 /* Virtual timer expired. */
-#define SIGPROF 29 /* Profiling timer expired. */
-#define SIGXFSZ 31 /* File size limit exceeded. */
-#define SIGUSR1 16 /* User-defined signal 1. */
-#define SIGUSR2 17 /* User-defined signal 2. */
-
-/* Nonstandard signals found in all modern POSIX systems
- (including both BSD and Linux). */
-#define SIGWINCH 20 /* Window size change (4.3 BSD, Sun). */
-
-/* Archaic names for compatibility. */
-#define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
-#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
-#define SIGCLD SIGCHLD /* Old System V name */
-
-/* By default no real-time signals are supported. */
-#define __SIGRTMIN 32
-#define __SIGRTMAX 127
-
-#endif /* <signal.h> included. */
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/socket-constants.h
@@ -1,70 +0,0 @@
-/* Socket constants which vary among Linux architectures. Version for MIPS.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
-#endif
-
-#define SOL_SOCKET 65535
-#define SO_ACCEPTCONN 4105
-#define SO_BROADCAST 32
-#define SO_DONTROUTE 16
-#define SO_ERROR 4103
-#define SO_KEEPALIVE 8
-#define SO_LINGER 128
-#define SO_OOBINLINE 256
-#define SO_RCVBUF 4098
-#define SO_RCVLOWAT 4100
-#define SO_REUSEADDR 4
-#define SO_SNDBUF 4097
-#define SO_SNDLOWAT 4099
-#define SO_TYPE 4104
-
-#if __TIMESIZE == 64
-# define SO_RCVTIMEO 4102
-# define SO_SNDTIMEO 4101
-# define SO_TIMESTAMP 29
-# define SO_TIMESTAMPNS 35
-# define SO_TIMESTAMPING 37
-#else
-# define SO_RCVTIMEO_OLD 4102
-# define SO_SNDTIMEO_OLD 4101
-# define SO_RCVTIMEO_NEW 66
-# define SO_SNDTIMEO_NEW 67
-
-# 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
-
-# ifdef __USE_TIME64_REDIRECTS
-# define SO_RCVTIMEO SO_RCVTIMEO_NEW
-# define SO_SNDTIMEO SO_SNDTIMEO_NEW
-# define SO_TIMESTAMP SO_TIMESTAMP_NEW
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_NEW
-# define SO_TIMESTAMPING SO_TIMESTAMPING_NEW
-# else
-# define SO_RCVTIMEO SO_RCVTIMEO_OLD
-# define SO_SNDTIMEO SO_SNDTIMEO_OLD
-# define SO_TIMESTAMP SO_TIMESTAMP_OLD
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
-# define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
-# endif
-#endif
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/socket_type.h
@@ -1,55 +0,0 @@
-/* Define enum __socket_type for Linux/MIPS.
- Copyright (C) 1991-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
-#endif
-
-/* Types of sockets. */
-enum __socket_type
-{
- SOCK_DGRAM = 1, /* Connectionless, unreliable datagrams
- of fixed maximum length. */
-#define SOCK_DGRAM SOCK_DGRAM
- SOCK_STREAM = 2, /* Sequenced, reliable, connection-based
- byte streams. */
-#define SOCK_STREAM SOCK_STREAM
- SOCK_RAW = 3, /* Raw protocol interface. */
-#define SOCK_RAW SOCK_RAW
- SOCK_RDM = 4, /* Reliably-delivered messages. */
-#define SOCK_RDM SOCK_RDM
- SOCK_SEQPACKET = 5, /* Sequenced, reliable, connection-based,
- datagrams of fixed maximum length. */
-#define SOCK_SEQPACKET SOCK_SEQPACKET
- SOCK_DCCP = 6,
-#define SOCK_DCCP SOCK_DCCP /* Datagram Congestion Control Protocol. */
- SOCK_PACKET = 10, /* Linux specific way of getting packets
- at the dev level. For writing rarp and
- other similar things on the user level. */
-#define SOCK_PACKET SOCK_PACKET
-
- /* Flags to be ORed into the type parameter of socket and socketpair and
- used for the flags parameter of paccept. */
-
- SOCK_CLOEXEC = 02000000, /* Atomically set close-on-exec flag for the
- new descriptor(s). */
-#define SOCK_CLOEXEC SOCK_CLOEXEC
- SOCK_NONBLOCK = 00000200 /* Atomically mark descriptor(s) as
- non-blocking. */
-#define SOCK_NONBLOCK SOCK_NONBLOCK
-};
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/statfs.h
@@ -1,73 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_STATFS_H
-# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
-#endif
-
-#include <bits/types.h> /* for __fsid_t and __fsblkcnt_t*/
-
-struct statfs
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
-#ifndef __USE_FILE_OFFSET64
- __fsblkcnt_t f_blocks;
- __fsblkcnt_t f_bfree;
- __fsblkcnt_t f_files;
- __fsblkcnt_t f_ffree;
- __fsblkcnt_t f_bavail;
-#else
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-#endif
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-
-#ifdef __USE_LARGEFILE64
-struct statfs64
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATFS_F_NAMELEN
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/struct_mutex.h
@@ -1,56 +0,0 @@
-/* MIPS internal mutex struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _THREAD_MUTEX_INTERNAL_H
-#define _THREAD_MUTEX_INTERNAL_H 1
-
-struct __pthread_mutex_s
-{
- int __lock;
- unsigned int __count;
- int __owner;
-#if _MIPS_SIM == _ABI64
- unsigned int __nusers;
-#endif
- /* KIND must stay at this position in the structure to maintain
- binary compatibility with static initializers. */
- int __kind;
-#if _MIPS_SIM == _ABI64
- int __spins;
- __pthread_list_t __list;
-# define __PTHREAD_MUTEX_HAVE_PREV 1
-#else
- unsigned int __nusers;
- __extension__ union
- {
- int __spins;
- __pthread_slist_t __list;
- };
-# define __PTHREAD_MUTEX_HAVE_PREV 0
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, 0, __kind, 0, { 0, 0 }
-#else
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, __kind, 0, { 0 }
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/struct_rwlock.h
@@ -1,71 +0,0 @@
-/* MIPS internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#if _MIPS_SIM == _ABI64
- int __cur_writer;
- int __shared;
- unsigned long int __pad1;
- unsigned long int __pad2;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned int __flags;
-# else
-# if __BYTE_ORDER == __BIG_ENDIAN
- unsigned char __pad1;
- unsigned char __pad2;
- unsigned char __shared;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
-# else
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- unsigned char __shared;
- unsigned char __pad1;
- unsigned char __pad2;
-# endif
- int __cur_writer;
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
-#else
-# if __BYTE_ORDER == __BIG_ENDIAN
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
-# else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
-# endif
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/termios-c_cc.h
@@ -1,43 +0,0 @@
-/* termios c_cc symbolic constant definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
-#endif
-
-/* c_cc characters */
-#define VINTR 0 /* Interrupt character [ISIG]. */
-#define VQUIT 1 /* Quit character [ISIG]. */
-#define VERASE 2 /* Erase character [ICANON]. */
-#define VKILL 3 /* Kill-line character [ICANON]. */
-#define VMIN 4 /* Minimum number of bytes read at once [!ICANON]. */
-#define VTIME 5 /* Time-out value (tenths of a second) [!ICANON]. */
-#define VEOL2 6 /* Second EOL character [ICANON]. */
-#define VSWTC 7
-#define VSWTCH VSWTC
-#define VSTART 8 /* Start (X-ON) character [IXON, IXOFF]. */
-#define VSTOP 9 /* Stop (X-OFF) character [IXON, IXOFF]. */
-#define VSUSP 10 /* Suspend character [ISIG]. */
- /* VDSUSP is not supported on Linux. */
-/* #define VDSUSP 11 / * Delayed suspend character [ISIG]. */
-#define VREPRINT 12 /* Reprint-line character [ICANON]. */
-#define VDISCARD 13 /* Discard character [IEXTEN]. */
-#define VWERASE 14 /* Word-erase character [ICANON]. */
-#define VLNEXT 15 /* Literal-next character [IEXTEN]. */
-#define VEOF 16 /* End-of-file character [ICANON]. */
-#define VEOL 17 /* End-of-line character [ICANON]. */
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/termios-c_lflag.h
@@ -1,46 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_lflag bits */
-#define ISIG 0000001 /* Enable signals. */
-#define ICANON 0000002 /* Do erase and kill processing. */
-#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
-# define XCASE 0000004
-#endif
-#define ECHO 0000010 /* Enable echo. */
-#define ECHOE 0000020 /* Visual erase for ERASE. */
-#define ECHOK 0000040 /* Echo NL after KILL. */
-#define ECHONL 0000100 /* Echo NL even if ECHO is off. */
-#define NOFLSH 0000200 /* Disable flush after interrupt. */
-#define IEXTEN 0000400 /* Enable DISCARD and LNEXT. */
-#ifdef __USE_MISC
-# define ECHOCTL 0001000 /* Echo control characters as ^X. */
-# define ECHOPRT 0002000 /* Hardcopy visual erase. */
-# define ECHOKE 0004000 /* Visual erase for KILL. */
-# define FLUSHO 0020000
-# define PENDIN 0040000 /* Retype pending input (state). */
-#endif
-#define TOSTOP 0100000 /* Send SIGTTOU for background output. */
-#define ITOSTOP TOSTOP
-#ifdef __USE_MISC
-# define EXTPROC 0200000
-#endif
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/termios-struct.h
@@ -1,34 +0,0 @@
-/* struct termios definition. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
-#endif
-
-#define NCCS 32
-struct termios
- {
- tcflag_t c_iflag; /* input mode flags */
- tcflag_t c_oflag; /* output mode flags */
- tcflag_t c_cflag; /* control mode flags */
- tcflag_t c_lflag; /* local mode flags */
- cc_t c_line; /* line discipline */
- cc_t c_cc[NCCS]; /* control characters */
-#define _HAVE_STRUCT_TERMIOS_C_ISPEED 0
-#define _HAVE_STRUCT_TERMIOS_C_OSPEED 0
- };
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/termios-tcflow.h
@@ -1,26 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
-#endif
-
-/* tcsetattr uses these */
-#define TCSANOW 0x540e /* Same as TCSETS; change immediately. */
-#define TCSADRAIN 0x540f /* Same as TCSETSW; change when pending output is written. */
-#define TCSAFLUSH 0x5410 /* Same as TCSETSF; flush pending input before changing. */
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/timerfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2008-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_TIMERFD_H
-# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
-#endif
-
-/* Bits to be set in the FLAGS parameter of `timerfd_create'. */
-enum
- {
- TFD_CLOEXEC = 02000000,
-#define TFD_CLOEXEC TFD_CLOEXEC
- TFD_NONBLOCK = 00000200
-#define TFD_NONBLOCK TFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/bits/typesizes.h
@@ -1,95 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. MIPS version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __UWORD_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#ifdef __LP64__
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for rlim_t and rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-
-/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
-# define __STATFS_MATCHES_STATFS64 1
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-
-# define __STATFS_MATCHES_STATFS64 0
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/mips-linux-gnueabihf/ieee754.h
@@ -1,326 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-
-#ifndef __LDBL_MANT_DIG__
-# include <float.h>
-# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
-#endif
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#if __LDBL_MANT_DIG__ == 113
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-
-#elif __LDBL_MANT_DIG__ == 64
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:32;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee;
-
- /* This is for NaNs in the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int one:1;
- unsigned int quiet_nan:1;
- unsigned int mantissa0:30;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
-
-#elif __LDBL_MANT_DIG__ == 53
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#endif /* __LDBL_MANT_DIG__ == 53 */
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/ansi.h
@@ -1,3 +0,0 @@
-/* $NetBSD: ansi.h,v 1.1 2002/03/07 14:43:59 simonb Exp $ */
-
-#include <mips/ansi.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/asm.h
@@ -1,3 +0,0 @@
-/* $NetBSD: asm.h,v 1.1 2002/03/07 14:43:59 simonb Exp $ */
-
-#include <mips/asm.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/bswap.h
@@ -1,3 +0,0 @@
-/* $NetBSD: bswap.h,v 1.1 2002/03/07 14:43:59 simonb Exp $ */
-
-#include <mips/bswap.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/cdefs.h
@@ -1,3 +0,0 @@
-/* $NetBSD: cdefs.h,v 1.1 2002/03/07 14:43:59 simonb Exp $ */
-
-#include <mips/cdefs.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/cpu.h
@@ -1,3 +0,0 @@
-/* $NetBSD: cpu.h,v 1.1 2002/03/07 14:43:59 simonb Exp $ */
-
-#include <mips/cpu.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/disklabel.h
@@ -1,214 +0,0 @@
-/* $NetBSD: disklabel.h,v 1.6 2017/07/24 10:04:09 mrg Exp $ */
-
-/*
- * Copyright (c) 1994 Christopher G. Demetriou
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Christopher G. Demetriou.
- * 4. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Copyright 2000, 2001
- * Broadcom Corporation. All rights reserved.
- *
- * This software is furnished under license and may be used and copied only
- * in accordance with the following terms and conditions. Subject to these
- * conditions, you may download, copy, install, use, modify and distribute
- * modified or unmodified copies of this software in source and/or binary
- * form. No title or ownership is transferred hereby.
- *
- * 1) Any source code used, modified or distributed must reproduce and
- * retain this copyright notice and list of conditions as they appear in
- * the source file.
- *
- * 2) No right is granted to use any trade name, trademark, or logo of
- * Broadcom Corporation. The "Broadcom Corporation" name may not be
- * used to endorse or promote products derived from this software
- * without the prior written permission of Broadcom Corporation.
- *
- * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
- * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE
- * FOR ANY DAMAGES WHATSOEVER, AND IN PARTICULAR, BROADCOM SHALL NOT BE
- * LIABLE FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _EVBMIPS_DISKLABEL_H_
-#define _EVBMIPS_DISKLABEL_H_
-
-#ifdef _KERNEL_OPT
-#include "opt_pmon.h"
-#include "opt_cputype.h"
-#endif
-
-#ifdef MIPS64_SB1
-
-#define LABELUSESMBR 0 /* no MBR partitionning */
-#define LABELSECTOR 1 /* sector containing label */
-#define LABELOFFSET 0 /* offset of label in sector */
-#define MAXPARTITIONS 16
-#define RAW_PART 3
-
-#ifdef __NetBSD__
-/* Pull in MBR partition definitions. */
-#if HAVE_NBTOOL_CONFIG_H
-#include <nbinclude/sys/bootblock.h>
-#else
-#include <sys/bootblock.h>
-#endif /* HAVE_NBTOOL_CONFIG_H */
-
-#ifndef __ASSEMBLER__
-#if HAVE_NBTOOL_CONFIG_H
-#include <nbinclude/sys/dkbad.h>
-#else
-#include <sys/dkbad.h>
-#endif /* HAVE_NBTOOL_CONFIG_H */
-struct cpu_disklabel {
- struct mbr_partition mbrparts[MBR_PART_COUNT];
-#define __HAVE_DISKLABEL_DKBAD
- struct dkbad bad;
-};
-#endif
-#endif
-
-/*
- * CFE boot block, modeled loosely on Alpha.
- *
- * It consists of:
- *
- * BSD disk label
- * <blank space>
- * Boot block info (5 uint_64s)
- *
- * The boot block portion looks like:
- *
- *
- * +-------+-------+-------+-------+-------+-------+-------+-------+
- * | BOOT_MAGIC_NUMBER |
- * +-------+-------+-------+-------+-------+-------+-------+-------+
- * | Flags | Reserved | Vers | Header Checksum |
- * +-------+-------+-------+-------+-------+-------+-------+-------+
- * | Secondary Loader Location (bytes) |
- * +-------+-------+-------+-------+-------+-------+-------+-------+
- * | Loader Checksum | Size of loader (bytes) |
- * +-------+-------+-------+-------+-------+-------+-------+-------+
- * | Reserved | Architecture Information |
- * +-------+-------+-------+-------+-------+-------+-------+-------+
- *
- * Boot block fields should always be read as 64-bit numbers.
- *
- */
-
-
-struct boot_block {
- uint64_t cfe_bb_data[64]; /* data (disklabel, also as below) */
-};
-#define cfe_bb_magic cfe_bb_data[59] /* magic number */
-#define cfe_bb_hdrinfo cfe_bb_data[60] /* header checksum, ver, flags */
-#define cfe_bb_secstart cfe_bb_data[61] /* secondary start (bytes) */
-#define cfe_bb_secsize cfe_bb_data[62] /* secondary size (bytes) */
-#define cfe_bb_archinfo cfe_bb_data[63] /* architecture info */
-
-#define BOOT_BLOCK_OFFSET 0 /* offset of boot block. */
-#define BOOT_BLOCK_BLOCKSIZE 512 /* block size for sec. size/start,
- * and for boot block itself
- */
-#define BOOT_BLOCK_SIZE 40 /* 5 64-bit words */
-
-#define BOOT_MAGIC_NUMBER 0x43465631424f4f54
-#define BOOT_HDR_CHECKSUM_MASK 0x00000000FFFFFFFF
-#define BOOT_HDR_VER_MASK 0x000000FF00000000
-#define BOOT_HDR_VER_SHIFT 32
-#define BOOT_HDR_FLAGS_MASK 0xFF00000000000000
-#define BOOT_SECSIZE_MASK 0x00000000FFFFFFFF
-#define BOOT_DATA_CHECKSUM_MASK 0xFFFFFFFF00000000
-#define BOOT_DATA_CHECKSUM_SHIFT 32
-#define BOOT_ARCHINFO_MASK 0x00000000FFFFFFFF
-
-#define BOOT_HDR_VERSION 1
-
-#define CHECKSUM_BOOT_BLOCK(bb,cksum) \
- do { \
- uint32_t *_ptr = (uint32_t *) (bb); \
- uint32_t _cksum; \
- int _i; \
- \
- _cksum = 0; \
- for (_i = 0; \
- _i < (BOOT_BLOCK_SIZE / sizeof (uint32_t)); \
- _i++) \
- _cksum += _ptr[_i]; \
- *(cksum) = _cksum; \
- } while (0)
-
-
-#define CHECKSUM_BOOT_DATA(data,len,cksum) \
- do { \
- uint32_t *_ptr = (uint32_t *) (data); \
- uint32_t _cksum; \
- int _i; \
- \
- _cksum = 0; \
- for (_i = 0; \
- _i < ((len) / sizeof (uint32_t)); \
- _i++) \
- _cksum += _ptr[_i]; \
- *(cksum) = _cksum; \
- } while (0)
-
-#else /* MIPS64_SB1 */
-
-#ifdef PMON
-#define LABELUSESMBR 1 /* use MBR partitionning */
-#else
-#define LABELUSESMBR 0 /* no MBR partitionning */
-#endif
-#define LABELSECTOR 0 /* sector containing label */
-#define LABELOFFSET 64 /* offset of label in sector */
-#define MAXPARTITIONS 16 /* number of partitions */
-#define RAW_PART 2 /* raw partition: xx?c */
-
-#if HAVE_NBTOOL_CONFIG_H
-#include <nbinclude/sys/dkbad.h>
-#else
-#include <sys/dkbad.h>
-#endif /* HAVE_NBTOOL_CONFIG_H */
-
-/* Just a dummy */
-struct cpu_disklabel {
-#define __HAVE_DISKLABEL_DKBAD
- struct dkbad bad; /* must have one element. */
-};
-
-#endif /* MIPS64_SB1 */
-
-#endif /* !_EVBMIPS_DISKLABEL_H_ */
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/elf_machdep.h
@@ -1,3 +0,0 @@
-/* $NetBSD: elf_machdep.h,v 1.3 2009/12/14 00:46:02 matt Exp $ */
-
-#include <mips/elf_machdep.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/endian.h
@@ -1,3 +0,0 @@
-/* $NetBSD: endian.h,v 1.1 2002/03/07 14:44:00 simonb Exp $ */
-
-#include <sys/endian.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/endian_machdep.h
@@ -1,11 +0,0 @@
-/* $NetBSD: endian_machdep.h,v 1.1 2002/03/07 14:44:00 simonb Exp $ */
-
-#if defined(__MIPSEB__)
-#define _BYTE_ORDER _BIG_ENDIAN
-#elif defined(__MIPSEL__)
-#define _BYTE_ORDER _LITTLE_ENDIAN
-#else
-#error neither __MIPSEL__ nor __MIPSEB__ are defined.
-#endif
-
-#include <mips/endian_machdep.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/fenv.h
@@ -1,3 +0,0 @@
-/* $NetBSD: fenv.h,v 1.1 2015/12/21 17:02:33 christos Exp $ */
-
-#include <mips/fenv.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/float.h
@@ -1,3 +0,0 @@
-/* $NetBSD: float.h,v 1.1 2002/03/07 14:44:00 simonb Exp $ */
-
-#include <mips/float.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/ieee.h
@@ -1,3 +0,0 @@
-/* $NetBSD: ieee.h,v 1.1 2002/03/07 14:44:00 simonb Exp $ */
-
-#include <mips/ieee.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/ieeefp.h
@@ -1,3 +0,0 @@
-/* $NetBSD: ieeefp.h,v 1.1 2002/03/07 14:44:00 simonb Exp $ */
-
-#include <mips/ieeefp.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/int_const.h
@@ -1,3 +0,0 @@
-/* $NetBSD: int_const.h,v 1.1 2002/03/07 14:44:00 simonb Exp $ */
-
-#include <mips/int_const.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/int_fmtio.h
@@ -1,3 +0,0 @@
-/* $NetBSD: int_fmtio.h,v 1.1 2002/03/07 14:44:00 simonb Exp $ */
-
-#include <mips/int_fmtio.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/int_limits.h
@@ -1,3 +0,0 @@
-/* $NetBSD: int_limits.h,v 1.1 2002/03/07 14:44:00 simonb Exp $ */
-
-#include <mips/int_limits.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/int_mwgwtypes.h
@@ -1,3 +0,0 @@
-/* $NetBSD: int_mwgwtypes.h,v 1.1 2002/03/07 14:44:00 simonb Exp $ */
-
-#include <mips/int_mwgwtypes.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/int_types.h
@@ -1,3 +0,0 @@
-/* $NetBSD: int_types.h,v 1.1 2002/03/07 14:44:00 simonb Exp $ */
-
-#include <mips/int_types.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/kcore.h
@@ -1,3 +0,0 @@
-/* $NetBSD: kcore.h,v 1.1 2002/03/07 14:44:00 simonb Exp $ */
-
-#include <mips/kcore.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/limits.h
@@ -1,3 +0,0 @@
-/* $NetBSD: limits.h,v 1.1 2002/03/07 14:44:00 simonb Exp $ */
-
-#include <mips/limits.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/lock.h
@@ -1,4 +0,0 @@
-/* $NetBSD: lock.h,v 1.1 2002/03/07 14:44:01 simonb Exp $ */
-
-/* Just use the common mips definition */
-#include <mips/lock.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/math.h
@@ -1,3 +0,0 @@
-/* $NetBSD: math.h,v 1.1 2002/03/07 14:44:01 simonb Exp $ */
-
-#include <mips/math.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/mcontext.h
@@ -1,3 +0,0 @@
-/* $NetBSD: mcontext.h,v 1.2 2003/01/17 22:47:09 thorpej Exp $ */
-
-#include <mips/mcontext.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/mutex.h
@@ -1,3 +0,0 @@
-/* $NetBSD: mutex.h,v 1.2 2007/02/09 21:55:03 ad Exp $ */
-
-#include <mips/mutex.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/param.h
@@ -1,62 +0,0 @@
-/* $NetBSD: param.h,v 1.12 2022/03/16 04:31:54 simonb Exp $ */
-
-/*
- * Copyright (c) 1988 University of Utah.
- * Copyright (c) 1992, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * the Systems Programming Group of the University of Utah Computer
- * Science Department and Ralph Campbell.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef _EVBMIPS_PARAM_H_
-#define _EVBMIPS_PARAM_H_
-
-/*
- * Machine dependent constants for MIPS evaluation boards.
- */
-
-#define _MACHINE evbmips
-#define MACHINE "evbmips"
-
-#include <mips/mips_param.h>
-
-#ifdef _KERNEL
-#ifndef _LOCORE
-
-#ifndef __HIDE_DELAY
-void delay(int n);
-#define DELAY(x) delay(x)
-#endif /* __HIDE_DELAY */
-
-#include <machine/intr.h>
-
-#endif /* !_LOCORE */
-#endif /* _KERNEL */
-
-#endif /* !_EVBMIPS_PARAM_H_ */
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/pcb.h
@@ -1,3 +0,0 @@
-/* $NetBSD: pcb.h,v 1.1 2002/03/07 14:44:01 simonb Exp $ */
-
-#include <mips/pcb.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/pmap.h
@@ -1,3 +0,0 @@
-/* $NetBSD: pmap.h,v 1.1 2002/03/07 14:44:01 simonb Exp $ */
-
-#include <mips/pmap.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/proc.h
@@ -1,3 +0,0 @@
-/* $NetBSD: proc.h,v 1.1 2002/03/07 14:44:01 simonb Exp $ */
-
-#include <mips/proc.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/profile.h
@@ -1,3 +0,0 @@
-/* $NetBSD: profile.h,v 1.1 2002/03/07 14:44:01 simonb Exp $ */
-
-#include <mips/profile.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/psl.h
@@ -1,3 +0,0 @@
-/* $NetBSD: psl.h,v 1.1 2002/03/07 14:44:01 simonb Exp $ */
-
-#include <mips/psl.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/pte.h
@@ -1,3 +0,0 @@
-/* $NetBSD: pte.h,v 1.1 2002/03/07 14:44:01 simonb Exp $ */
-
-#include <mips/pte.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/ptrace.h
@@ -1,3 +0,0 @@
-/* $NetBSD: ptrace.h,v 1.1 2002/03/07 14:44:01 simonb Exp $ */
-
-#include <mips/ptrace.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/reg.h
@@ -1,3 +0,0 @@
-/* $NetBSD: reg.h,v 1.1 2002/03/07 14:44:02 simonb Exp $ */
-
-#include <mips/reg.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/reloc.h
@@ -1,3 +0,0 @@
-/* $NetBSD: reloc.h,v 1.1 2002/03/07 14:44:02 simonb Exp $ */
-
-#include <mips/reloc.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/rwlock.h
@@ -1,3 +0,0 @@
-/* $NetBSD: rwlock.h,v 1.2 2007/02/09 21:55:03 ad Exp $ */
-
-#include <mips/rwlock.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/setjmp.h
@@ -1,3 +0,0 @@
-/* $NetBSD: setjmp.h,v 1.1 2002/03/07 14:44:02 simonb Exp $ */
-
-#include <mips/setjmp.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/signal.h
@@ -1,3 +0,0 @@
-/* $NetBSD: signal.h,v 1.1 2002/03/07 14:44:02 simonb Exp $ */
-
-#include <mips/signal.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/sljit_machdep.h
@@ -1,3 +0,0 @@
-/* $NetBSD: sljit_machdep.h,v 1.1 2014/07/23 18:19:43 alnsn Exp $ */
-
-#include <mips/sljit_machdep.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/trap.h
@@ -1,3 +0,0 @@
-/* $NetBSD: trap.h,v 1.1 2002/03/07 14:44:02 simonb Exp $ */
-
-#include <mips/trap.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/types.h
@@ -1,13 +0,0 @@
-/* $NetBSD: types.h,v 1.10 2017/01/26 15:55:09 christos Exp $ */
-
-#ifndef _EVBMIPS_TYPES_H_
-#define _EVBMIPS_TYPES_H_
-
-#define _MIPS_PADDR_T_64BIT
-
-#include <mips/types.h>
-
-#define __HAVE_NEW_STYLE_BUS_H
-#define __HAVE_COMPAT_NETBSD32
-
-#endif
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/vmparam.h
@@ -1,23 +0,0 @@
-/* $NetBSD: vmparam.h,v 1.5 2014/04/19 12:48:42 matt Exp $ */
-
-#ifndef _EVBMIPS_VMPARAM_H_
-#define _EVBMIPS_VMPARAM_H_
-
-#include <mips/vmparam.h>
-
-#define VM_PHYSSEG_MAX 32
-
-#undef VM_FREELIST_MAX
-#define VM_FREELIST_MAX 4
-#if defined(_MIPS_PADDR_T_64BIT) || defined(_LP64)
-#define VM_FREELIST_FIRST4G 3
-#endif
-#if !defined(_LP64)
-#define VM_FREELIST_FIRST512M 2
-#endif /* !_LP64 */
-#define VM_FREELIST_ISADMA 1
-
-#define VM_FREELIST_NORMALOK_P(lcv) \
- ((lcv) == VM_FREELIST_DEFAULT || (lcv) != mips_poolpage_vmfreelist)
-
-#endif /* !_EVBMIPS_VMPARAM_H_ */
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/machine/wchar_limits.h
@@ -1,3 +0,0 @@
-/* $NetBSD: wchar_limits.h,v 1.2 2005/12/11 12:17:11 christos Exp $ */
-
-#include <mips/wchar_limits.h>
\ No newline at end of file
lib/libc/include/mips-netbsd-eabihf/float.h
@@ -1,3 +0,0 @@
-/* $NetBSD: float.h,v 1.1 2002/03/07 14:44:00 simonb Exp $ */
-
-#include <mips/float.h>
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/types/stack_t.h
@@ -1,33 +0,0 @@
-/* Define stack_t. MIPS Linux version.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef __stack_t_defined
-#define __stack_t_defined 1
-
-#define __need_size_t
-#include <stddef.h>
-
-/* Structure describing a signal stack. */
-typedef struct
- {
- void *ss_sp;
- size_t ss_size;
- int ss_flags;
- } stack_t;
-
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/types/struct_msqid_ds.h
@@ -1,62 +0,0 @@
-/* Linux/MIPS implementation of the SysV message struct msqid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MSG_H
-# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
-#endif
-
-#include <bits/types/time_t.h>
-
-/* Structure of record for one message inside the kernel.
- The type `struct msg' is opaque. */
-struct msqid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_msqid64_ds_helper.h>
-#else
- struct ipc_perm msg_perm; /* structure describing operation permission */
-# if __TIMESIZE == 32
-# ifdef __MIPSEL__
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_stime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_ctime; /* time of last change */
- unsigned long int __msg_ctime_high;
-# else
- unsigned long int __msg_stime_high;
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_ctime_high;
- __time_t msg_ctime; /* time of last change */
-# endif
-# else
- __time_t msg_stime; /* time of last msgsnd command */
- __time_t msg_rtime; /* time of last msgsnd command */
- __time_t msg_ctime; /* time of last change */
-# endif
- __syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
- msgqnum_t msg_qnum; /* number of messages currently on queue */
- msglen_t msg_qbytes; /* max number of bytes allowed on queue */
- __pid_t msg_lspid; /* pid of last msgsnd() */
- __pid_t msg_lrpid; /* pid of last msgrcv() */
- __syscall_ulong_t __glibc_reserved4;
- __syscall_ulong_t __glibc_reserved5;
-#endif
-};
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/types/struct_semid_ds.h
@@ -1,36 +0,0 @@
-/* MIPS implementation of the semaphore struct semid_ds
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
-#endif
-
-/* Data structure describing a set of semaphores. */
-struct semid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_semid64_ds_helper.h>
-#else
- struct ipc_perm sem_perm; /* operation permission struct */
- __time_t sem_otime; /* last semop() time */
- __time_t sem_ctime; /* last time changed by semctl() */
- __syscall_ulong_t sem_nsems; /* number of semaphores in set */
- __syscall_ulong_t __sem_otime_high;
- __syscall_ulong_t __sem_ctime_high;
-#endif
-};
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/types/struct_shmid_ds.h
@@ -1,53 +0,0 @@
-/* Linux/MIPS implementation of the shared memory struct shmid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never include <bits/types/struct_shmid_ds.h> directly; use <sys/shm.h> instead."
-#endif
-
-/* Data structure describing a shared memory segment. */
-struct shmid_ds
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_shmid64_ds_helper.h>
-#else
- struct ipc_perm shm_perm; /* operation permission struct */
- size_t shm_segsz; /* size of segment in bytes */
-# if __TIMESIZE == 32
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# else
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# endif
- __pid_t shm_cpid; /* pid of creator */
- __pid_t shm_lpid; /* pid of last shmop */
- shmatt_t shm_nattch; /* number of current attaches */
-# if __TIMESIZE == 32
- unsigned short int __shm_atime_high;
- unsigned short int __shm_dtime_high;
- unsigned short int __shm_ctime_high;
- unsigned short int __glibc_reserved4;
-# else
- __syscall_ulong_t __glibc_reserved5;
- __syscall_ulong_t __glibc_reserved6;
-# endif
-#endif
- };
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/dlfcn.h
@@ -1,64 +0,0 @@
-/* System dependent definitions for run-time dynamic loading.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _DLFCN_H
-# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
-#endif
-
-/* The MODE argument to `dlopen' contains one of the following: */
-#define RTLD_LAZY 0x0001 /* Lazy function call binding. */
-#define RTLD_NOW 0x0002 /* Immediate function call binding. */
-#define RTLD_BINDING_MASK 0x3 /* Mask of binding time value. */
-#define RTLD_NOLOAD 0x00008 /* Do not load the object. */
-#define RTLD_DEEPBIND 0x00010 /* Use deep binding. */
-
-/* If the following bit is set in the MODE argument to `dlopen',
- the symbols of the loaded object and its dependencies are made
- visible as if the object were linked directly into the program. */
-#define RTLD_GLOBAL 0x0004
-
-/* Unix98 demands the following flag which is the inverse to RTLD_GLOBAL.
- The implementation does this by default and so we can define the
- value to zero. */
-#define RTLD_LOCAL 0
-
-/* Do not delete object when closed. */
-#define RTLD_NODELETE 0x01000
-
-#ifdef __USE_GNU
-/* To support profiling of shared objects it is a good idea to call
- the function found using `dlsym' using the following macro since
- these calls do not use the PLT. But this would mean the dynamic
- loader has no chance to find out when the function is called. The
- macro applies the necessary magic so that profiling is possible.
- Rewrite
- foo = (*fctp) (arg1, arg2);
- into
- foo = DL_CALL_FCT (fctp, (arg1, arg2));
-*/
-# define DL_CALL_FCT(fctp, args) \
- (_dl_mcount_wrapper_check ((void *) (fctp)), (*(fctp)) args)
-
-__BEGIN_DECLS
-
-/* This function calls the profiling functions. */
-extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
-
-__END_DECLS
-
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/errno.h
@@ -1,52 +0,0 @@
-/* Error constants. MIPS/Linux specific version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_ERRNO_H
-
-#if !defined _ERRNO_H
-# error "Never include <bits/errno.h> directly; use <errno.h> instead."
-#endif
-
-# include <linux/errno.h>
-
-/* Older Linux headers do not define these constants. */
-# ifndef ENOTSUP
-# define ENOTSUP EOPNOTSUPP
-# endif
-
-# ifndef ECANCELED
-# define ECANCELED 158
-# endif
-
-# ifndef EOWNERDEAD
-# define EOWNERDEAD 165
-# endif
-
-# ifndef ENOTRECOVERABLE
-# define ENOTRECOVERABLE 166
-# endif
-
-# ifndef ERFKILL
-# define ERFKILL 167
-# endif
-
-# ifndef EHWPOISON
-# define EHWPOISON 168
-# endif
-
-#endif /* bits/errno.h. */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/eventfd.h
@@ -1,31 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_EVENTFD_H
-# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
-#endif
-
-/* Flags for eventfd. */
-enum
- {
- EFD_SEMAPHORE = 00000001,
-#define EFD_SEMAPHORE EFD_SEMAPHORE
- EFD_CLOEXEC = 02000000,
-#define EFD_CLOEXEC EFD_CLOEXEC
- EFD_NONBLOCK = 00000200
-#define EFD_NONBLOCK EFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/floatn.h
@@ -1,97 +0,0 @@
-/* Macros to control TS 18661-3 glibc features on MIPS platforms.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_FLOATN_H
-#define _BITS_FLOATN_H
-
-#include <features.h>
-#include <bits/long-double.h>
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this
- glibc includes corresponding *f128 interfaces for it. */
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __HAVE_FLOAT128 1
-#else
-/* glibc does not support _Float128 for platforms where long double is
- normally binary128 when building with long double as binary64.
- GCC's default for supported scalar modes does not support it either
- in that case. */
-# define __HAVE_FLOAT128 0
-#endif
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#define __HAVE_DISTINCT_FLOAT128 0
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X __HAVE_FLOAT128
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-/* The literal suffix f128 exists only since GCC 7.0. */
-# define __f128(x) x##l
-# else
-# define __f128(x) x##f128
-# endif
-# endif
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-# define __CFLOAT128 _Complex long double
-# else
-# define __CFLOAT128 _Complex _Float128
-# endif
-# endif
-
-/* The remaining of this file provides support for older compilers. */
-# if __HAVE_FLOAT128
-
-/* The type _Float128 exists only since GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-typedef long double _Float128;
-# endif
-
-/* Various built-in functions do not exist before GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0)
-# define __builtin_huge_valf128() (__builtin_huge_vall ())
-# define __builtin_inff128() (__builtin_infl ())
-# define __builtin_nanf128(x) (__builtin_nanl (x))
-# define __builtin_nansf128(x) (__builtin_nansl (x))
-# endif
-
-# endif
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
-
-#endif /* _BITS_FLOATN_H */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/inotify.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_INOTIFY_H
-# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
-#endif
-
-/* Flags for the parameter of inotify_init1. */
-enum
- {
- IN_CLOEXEC = 02000000,
-#define IN_CLOEXEC IN_CLOEXEC
- IN_NONBLOCK = 00000200
-#define IN_NONBLOCK IN_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/ioctl-types.h
@@ -1,75 +0,0 @@
-/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IOCTL_H
-# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
-#endif
-
-/* Get definition of constants for use with `ioctl'. */
-#include <asm/ioctls.h>
-
-struct winsize
- {
- unsigned short int ws_row;
- unsigned short int ws_col;
- unsigned short int ws_xpixel;
- unsigned short int ws_ypixel;
- };
-
-#define NCC 8
-struct termio
- {
- unsigned short int c_iflag; /* input mode flags */
- unsigned short int c_oflag; /* output mode flags */
- unsigned short int c_cflag; /* control mode flags */
- unsigned short int c_lflag; /* local mode flags */
- char c_line; /* line discipline */
- /* Yes, this is really NCCS. */
- unsigned char c_cc[32 /* NCCS */]; /* control characters */
- };
-
-/* modem lines */
-#define TIOCM_LE 0x001 /* line enable */
-#define TIOCM_DTR 0x002 /* data terminal ready */
-#define TIOCM_RTS 0x004 /* request to send */
-#define TIOCM_ST 0x010 /* secondary transmit */
-#define TIOCM_SR 0x020 /* secondary receive */
-#define TIOCM_CTS 0x040 /* clear to send */
-#define TIOCM_CAR 0x100 /* carrier detect */
-#define TIOCM_CD TIOCM_CAR
-#define TIOCM_RNG 0x200 /* ring */
-#define TIOCM_RI TIOCM_RNG
-#define TIOCM_DSR 0x400 /* data set ready */
-
-/* line disciplines */
-#define N_TTY 0
-#define N_SLIP 1
-#define N_MOUSE 2
-#define N_PPP 3
-#define N_STRIP 4
-#define N_AX25 5
-#define N_X25 6 /* X.25 async */
-#define N_6PACK 7
-#define N_MASC 8 /* Mobitex module */
-#define N_R3964 9 /* Simatic R3964 module */
-#define N_PROFIBUS_FDL 10 /* Profibus */
-#define N_IRDA 11 /* Linux IR */
-#define N_SMSBLOCK 12 /* SMS block mode */
-#define N_HDLC 13 /* synchronous HDLC */
-#define N_SYNC_PPP 14 /* synchronous PPP */
-#define N_HCI 15 /* Bluetooth HCI UART */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/ipctypes.h
@@ -1,31 +0,0 @@
-/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/*
- * Never include <bits/ipctypes.h> directly.
- */
-
-#ifndef _BITS_IPCTYPES_H
-#define _BITS_IPCTYPES_H 1
-
-#include <bits/types.h>
-
-typedef __SLONG32_TYPE __ipc_pid_t;
-
-
-#endif /* bits/ipctypes.h */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/mman.h
@@ -1,44 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* The following definitions basically come from the kernel headers.
- But the kernel header is not namespace clean. */
-
-/* These are Linux-specific. */
-#define MAP_NORESERVE 0x0400 /* don't check for reservations */
-#define MAP_GROWSDOWN 0x1000 /* stack-like segment */
-#define MAP_DENYWRITE 0x2000 /* ETXTBSY */
-#define MAP_EXECUTABLE 0x4000 /* mark it as an executable */
-#define MAP_LOCKED 0x8000 /* pages are locked */
-#define MAP_POPULATE 0x10000 /* populate (prefault) pagetables */
-#define MAP_NONBLOCK 0x20000 /* do not block on IO */
-#define MAP_STACK 0x40000 /* Allocation is for a stack. */
-#define MAP_HUGETLB 0x80000 /* Create huge page mapping. */
-#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
- underlying mapping. */
-
-#define __MAP_ANONYMOUS 0x0800
-
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
-
-#define MAP_RENAME MAP_ANONYMOUS
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/poll.h
@@ -1,49 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_POLL_H
-# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
-#endif
-
-/* Event types that can be polled for. These bits may be set in `events'
- to indicate the interesting event types; they will appear in `revents'
- to indicate the status of the file descriptor. */
-#define POLLIN 0x001 /* There is data to read. */
-#define POLLPRI 0x002 /* There is urgent data to read. */
-#define POLLOUT 0x004 /* Writing now will not block. */
-
-#if defined __USE_XOPEN || defined __USE_XOPEN2K8
-/* These values are defined in XPG4.2. */
-# define POLLRDNORM 0x040 /* Normal data may be read. */
-# define POLLRDBAND 0x080 /* Priority data may be read. */
-# define POLLWRNORM POLLOUT /* Writing now will not block. */
-# define POLLWRBAND 0x100 /* Priority data may be written. */
-#endif
-
-#ifdef __USE_GNU
-/* These are extensions for Linux. */
-# define POLLMSG 0x400
-# define POLLREMOVE 0x1000
-# define POLLRDHUP 0x2000
-#endif
-
-/* Event types always implicitly polled for. These bits need not be set in
- `events', but they will appear in `revents' to indicate the status of
- the file descriptor. */
-#define POLLERR 0x008 /* Error condition. */
-#define POLLHUP 0x010 /* Hung up. */
-#define POLLNVAL 0x020 /* Invalid polling request. */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/pthread_stack_min.h
@@ -1,20 +0,0 @@
-/* Definition of PTHREAD_STACK_MIN. MIPS Linux version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Minimum size for a thread. At least two pages with 64k pages. */
-#define PTHREAD_STACK_MIN 131072
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/pthreadtypes-arch.h
@@ -1,44 +0,0 @@
-/* Machine-specific pthread type layouts. MIPS version.
- Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_PTHREADTYPES_ARCH_H
-#define _BITS_PTHREADTYPES_ARCH_H 1
-
-#include <bits/endian.h>
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_PTHREAD_ATTR_T 56
-# define __SIZEOF_PTHREAD_MUTEX_T 40
-# define __SIZEOF_PTHREAD_RWLOCK_T 56
-# define __SIZEOF_PTHREAD_BARRIER_T 32
-#else
-# define __SIZEOF_PTHREAD_ATTR_T 36
-# define __SIZEOF_PTHREAD_MUTEX_T 24
-# define __SIZEOF_PTHREAD_RWLOCK_T 32
-# define __SIZEOF_PTHREAD_BARRIER_T 20
-#endif
-#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
-#define __SIZEOF_PTHREAD_COND_T 48
-#define __SIZEOF_PTHREAD_CONDATTR_T 4
-#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
-
-#define __LOCK_ALIGNMENT
-#define __ONCE_ALIGNMENT
-
-#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/resource.h
@@ -1,231 +0,0 @@
-/* Bit values & structures for resource limits. Linux/MIPS version.
- Copyright (C) 1994-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RESOURCE_H
-# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
-#endif
-
-#include <bits/types.h>
-
-/* Transmute defines to enumerations. The macro re-definitions are
- necessary because some programs want to test for operating system
- features with #ifdef RUSAGE_SELF. In ISO C the reflexive
- definition is a no-op. */
-
-/* Kinds of resource limit. */
-enum __rlimit_resource
-{
- /* Per-process CPU limit, in seconds. */
- RLIMIT_CPU = 0,
-#define RLIMIT_CPU RLIMIT_CPU
-
- /* Largest file that can be created, in bytes. */
- RLIMIT_FSIZE = 1,
-#define RLIMIT_FSIZE RLIMIT_FSIZE
-
- /* Maximum size of data segment, in bytes. */
- RLIMIT_DATA = 2,
-#define RLIMIT_DATA RLIMIT_DATA
-
- /* Maximum size of stack segment, in bytes. */
- RLIMIT_STACK = 3,
-#define RLIMIT_STACK RLIMIT_STACK
-
- /* Largest core file that can be created, in bytes. */
- RLIMIT_CORE = 4,
-#define RLIMIT_CORE RLIMIT_CORE
-
- /* Largest resident set size, in bytes.
- This affects swapping; processes that are exceeding their
- resident set size will be more likely to have physical memory
- taken from them. */
- __RLIMIT_RSS = 7,
-#define RLIMIT_RSS __RLIMIT_RSS
-
- /* Number of open files. */
- RLIMIT_NOFILE = 5,
- __RLIMIT_OFILE = RLIMIT_NOFILE, /* BSD name for same. */
-#define RLIMIT_NOFILE RLIMIT_NOFILE
-#define RLIMIT_OFILE __RLIMIT_OFILE
-
- /* Address space limit (?) */
- RLIMIT_AS = 6,
-#define RLIMIT_AS RLIMIT_AS
-
- /* Number of processes. */
- __RLIMIT_NPROC = 8,
-#define RLIMIT_NPROC __RLIMIT_NPROC
-
- /* Locked-in-memory address space. */
- __RLIMIT_MEMLOCK = 9,
-#define RLIMIT_MEMLOCK __RLIMIT_MEMLOCK
-
- /* Maximum number of file locks. */
- __RLIMIT_LOCKS = 10,
-#define RLIMIT_LOCKS __RLIMIT_LOCKS
-
- /* Maximum number of pending signals. */
- __RLIMIT_SIGPENDING = 11,
-#define RLIMIT_SIGPENDING __RLIMIT_SIGPENDING
-
- /* Maximum bytes in POSIX message queues. */
- __RLIMIT_MSGQUEUE = 12,
-#define RLIMIT_MSGQUEUE __RLIMIT_MSGQUEUE
-
- /* Maximum nice priority allowed to raise to.
- Nice levels 19 .. -20 correspond to 0 .. 39
- values of this resource limit. */
- __RLIMIT_NICE = 13,
-#define RLIMIT_NICE __RLIMIT_NICE
-
- /* Maximum realtime priority allowed for non-priviledged
- processes. */
- __RLIMIT_RTPRIO = 14,
-#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
-
- /* Maximum CPU time in microseconds that a process scheduled under a real-time
- scheduling policy may consume without making a blocking system
- call before being forcibly descheduled. */
- __RLIMIT_RTTIME = 15,
-#define RLIMIT_RTTIME __RLIMIT_RTTIME
-
- __RLIMIT_NLIMITS = 16,
- __RLIM_NLIMITS = __RLIMIT_NLIMITS
-#define RLIMIT_NLIMITS __RLIMIT_NLIMITS
-#define RLIM_NLIMITS __RLIM_NLIMITS
-};
-
-/* Value to indicate that there is no limit. */
-#if _MIPS_SIM == _ABI64
-/* The N64 syscall uses this value. */
-# define RLIM_INFINITY 0xffffffffffffffffUL
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffUL
-# endif
-#else
-/* The O32 and N32 syscalls use 0x7fffffff. */
-# ifndef __USE_FILE_OFFSET64
-# define RLIM_INFINITY ((long int)(~0UL >> 1))
-# else
-# define RLIM_INFINITY 0xffffffffffffffffULL
-# endif
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffULL
-# endif
-#endif
-
-/* We can represent all limits. */
-#define RLIM_SAVED_MAX RLIM_INFINITY
-#define RLIM_SAVED_CUR RLIM_INFINITY
-
-
-/* Type for resource quantity measurement. */
-#ifndef __USE_FILE_OFFSET64
-typedef __rlim_t rlim_t;
-#else
-typedef __rlim64_t rlim_t;
-#endif
-#ifdef __USE_LARGEFILE64
-typedef __rlim64_t rlim64_t;
-#endif
-
-struct rlimit
- {
- /* The current (soft) limit. */
- rlim_t rlim_cur;
- /* The hard limit. */
- rlim_t rlim_max;
- };
-
-#ifdef __USE_LARGEFILE64
-struct rlimit64
- {
- /* The current (soft) limit. */
- rlim64_t rlim_cur;
- /* The hard limit. */
- rlim64_t rlim_max;
- };
-#endif
-
-/* Whose usage statistics do you want? */
-enum __rusage_who
-{
- /* The calling process. */
- RUSAGE_SELF = 0,
-#define RUSAGE_SELF RUSAGE_SELF
-
- /* All of its terminated child processes. */
- RUSAGE_CHILDREN = -1
-#define RUSAGE_CHILDREN RUSAGE_CHILDREN
-
-#ifdef __USE_GNU
- ,
- /* The calling thread. */
- RUSAGE_THREAD = 1
-# define RUSAGE_THREAD RUSAGE_THREAD
- /* Name for the same functionality on Solaris. */
-# define RUSAGE_LWP RUSAGE_THREAD
-#endif
-};
-
-#include <bits/types/struct_timeval.h>
-#include <bits/types/struct_rusage.h>
-
-/* Priority limits. */
-#define PRIO_MIN -20 /* Minimum priority a process can have. */
-#define PRIO_MAX 20 /* Maximum priority a process can have. */
-
-/* The type of the WHICH argument to `getpriority' and `setpriority',
- indicating what flavor of entity the WHO argument specifies. */
-enum __priority_which
-{
- PRIO_PROCESS = 0, /* WHO is a process ID. */
-#define PRIO_PROCESS PRIO_PROCESS
- PRIO_PGRP = 1, /* WHO is a process group ID. */
-#define PRIO_PGRP PRIO_PGRP
- PRIO_USER = 2 /* WHO is a user ID. */
-#define PRIO_USER PRIO_USER
-};
-
-
-__BEGIN_DECLS
-
-#ifdef __USE_GNU
-/* Modify and return resource limits of a process atomically. */
-# ifndef __USE_FILE_OFFSET64
-extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit) __THROW;
-# else
-# ifdef __REDIRECT_NTH
-extern int __REDIRECT_NTH (prlimit, (__pid_t __pid,
- enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit), prlimit64);
-# else
-# define prlimit prlimit64
-# endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int prlimit64 (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit64 *__new_limit,
- struct rlimit64 *__old_limit) __THROW;
-# endif
-#endif
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/semaphore.h
@@ -1,36 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SEMAPHORE_H
-# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
-#endif
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_SEM_T 32
-#else
-# define __SIZEOF_SEM_T 16
-#endif
-
-/* Value returned if `sem_open' failed. */
-#define SEM_FAILED ((sem_t *) 0)
-
-
-typedef union
-{
- char __size[__SIZEOF_SEM_T];
- long int __align;
-} sem_t;
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/shmlba.h
@@ -1,24 +0,0 @@
-/* Define SHMLBA. MIPS version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
-#endif
-
-/* Segment low boundary address multiple. */
-#define SHMLBA 0x40000
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/sigaction.h
@@ -1,94 +0,0 @@
-/* The proper definitions for Linux/MIPS's sigaction.
- Copyright (C) 1993-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGACTION_H
-#define _BITS_SIGACTION_H 1
-
-#ifndef _SIGNAL_H
-# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
-#endif
-
-/* Structure describing the action to be taken when a signal arrives. */
-struct sigaction
- {
- /* Special flags. */
- int sa_flags;
-
- /* Signal handler. */
-#if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED
- union
- {
- /* Used if SA_SIGINFO is not set. */
- __sighandler_t sa_handler;
- /* Used if SA_SIGINFO is set. */
- void (*sa_sigaction) (int, siginfo_t *, void *);
- }
- __sigaction_handler;
-# define sa_handler __sigaction_handler.sa_handler
-# define sa_sigaction __sigaction_handler.sa_sigaction
-#else
- __sighandler_t sa_handler;
-#endif
- /* Additional set of signals to be blocked. */
- __sigset_t sa_mask;
-
- /* The ABI says here are two unused ints following. */
- /* Restore handler. */
- void (*sa_restorer) (void);
-
-#if _MIPS_SZPTR < 64
- int sa_resv[1];
-#endif
- };
-
-/* Bits in `sa_flags'. */
-/* Please note that some Linux kernels versions use different values for these
- flags which is a bug in those kernel versions. */
-#define SA_NOCLDSTOP 0x00000001 /* Don't send SIGCHLD when children stop. */
-#define SA_NOCLDWAIT 0x00010000 /* Don't create zombie on child death. */
-#define SA_SIGINFO 0x00000008 /* Invoke signal-catching function with
- three arguments instead of one. */
-#if defined __USE_XOPEN_EXTENDED || defined __USE_MISC
-# define SA_ONSTACK 0x08000000 /* Use signal stack by using `sa_restorer'. */
-#endif
-#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
-# define SA_RESETHAND 0x80000000 /* Reset to SIG_DFL on entry to handler. */
-# define SA_RESTART 0x10000000 /* Restart syscall on signal return. */
-# define SA_NODEFER 0x40000000 /* Don't automatically block the signal when
- its handler is being executed. */
-#endif
-#ifdef __USE_MISC
-# define SA_INTERRUPT 0x20000000 /* Historical no-op. */
-
-/* Some aliases for the SA_ constants. */
-# define SA_NOMASK SA_NODEFER
-# define SA_ONESHOT SA_RESETHAND
-# define SA_STACK SA_ONSTACK
-#endif
-
-/* Values for the HOW argument to `sigprocmask'. */
-#define SIG_NOP 0 /* 0 is unused to catch errors */
-#define SIG_BLOCK 1 /* Block signals. */
-#define SIG_UNBLOCK 2 /* Unblock signals. */
-#define SIG_SETMASK 3 /* Set the set of blocked signals. */
-#ifdef __USE_MISC
-# define SIG_SETMASK32 256 /* Goodie from SGI for BSD compatibility:
- set only the low 32 bit of the sigset. */
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/sigcontext.h
@@ -1,82 +0,0 @@
-/* Copyright (C) 1996-2025 Free Software Foundation, Inc. This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGCONTEXT_H
-#define _BITS_SIGCONTEXT_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
-#endif
-
-#include <sgidefs.h>
-
-#if _MIPS_SIM == _ABIO32
-
-/* Certain unused fields were replaced with new ones in 2.6.12-rc4.
- The changes were as follows:
-
- sc_cause -> sc_hi1
- sc_badvaddr -> sc_lo1
- sc_sigset[0] -> sc_hi2
- sc_sigset[1] -> sc_lo2
- sc_sigset[2] -> sc_hi3
- sc_sigset[3] -> sc_lo3
-
- sc_regmask, sc_ownedfp and sc_fpc_eir are not used. */
-struct sigcontext {
- unsigned int sc_regmask;
- unsigned int sc_status;
- __extension__ unsigned long long sc_pc;
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- unsigned int sc_ownedfp;
- unsigned int sc_fpc_csr;
- unsigned int sc_fpc_eir;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_mdlo;
- unsigned long sc_hi1;
- unsigned long sc_lo1;
- unsigned long sc_hi2;
- unsigned long sc_lo2;
- unsigned long sc_hi3;
- unsigned long sc_lo3;
-};
-
-#else
-
-/* This structure changed in 2.6.12-rc4 when DSP support was added. */
-struct sigcontext {
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_hi1;
- __extension__ unsigned long long sc_hi2;
- __extension__ unsigned long long sc_hi3;
- __extension__ unsigned long long sc_mdlo;
- __extension__ unsigned long long sc_lo1;
- __extension__ unsigned long long sc_lo2;
- __extension__ unsigned long long sc_lo3;
- __extension__ unsigned long long sc_pc;
- unsigned int sc_fpc_csr;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- unsigned int sc_reserved;
-};
-
-#endif /* _MIPS_SIM != _ABIO32 */
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/siginfo-arch.h
@@ -1,13 +0,0 @@
-/* Architecture-specific adjustments to siginfo_t. MIPS version. */
-#ifndef _BITS_SIGINFO_ARCH_H
-#define _BITS_SIGINFO_ARCH_H 1
-
-/* MIPS has the si_code and si_errno fields in the opposite order from
- all other architectures. */
-#define __SI_ERRNO_THEN_CODE 0
-
-/* MIPS also has different values for SI_ASYNCIO, SI_MESGQ, and SI_TIMER
- than all other architectures. */
-#define __SI_ASYNCIO_AFTER_SIGIO 0
-
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/signalfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SIGNALFD_H
-# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
-#endif
-
-/* Flags for signalfd. */
-enum
- {
- SFD_CLOEXEC = 02000000,
-#define SFD_CLOEXEC SFD_CLOEXEC
- SFD_NONBLOCK = 00000200
-#define SFD_NONBLOCK SFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/signum-arch.h
@@ -1,65 +0,0 @@
-/* Signal number definitions. Linux/MIPS version.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGNUM_H
-#define _BITS_SIGNUM_H 1
-
-#ifndef _SIGNAL_H
-#error "Never include <bits/signum.h> directly; use <signal.h> instead."
-#endif
-
-/* Adjustments and additions to the signal number constants for
- Linux/MIPS. */
-
-#define SIGEMT 7 /* Emulator trap. */
-#define SIGPWR 19 /* Power failure imminent. */
-
-/* Historical signals specified by POSIX. */
-#define SIGBUS 10 /* Bus error. */
-#define SIGSYS 12 /* Bad system call. */
-
-/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
-#define SIGURG 21 /* Urgent data is available at a socket. */
-#define SIGSTOP 23 /* Stop, unblockable. */
-#define SIGTSTP 24 /* Keyboard stop. */
-#define SIGCONT 25 /* Continue. */
-#define SIGCHLD 18 /* Child terminated or stopped. */
-#define SIGTTIN 26 /* Background read from control terminal. */
-#define SIGTTOU 27 /* Background write to control terminal. */
-#define SIGPOLL 22 /* Pollable event occurred (System V). */
-#define SIGXCPU 30 /* CPU time limit exceeded. */
-#define SIGVTALRM 28 /* Virtual timer expired. */
-#define SIGPROF 29 /* Profiling timer expired. */
-#define SIGXFSZ 31 /* File size limit exceeded. */
-#define SIGUSR1 16 /* User-defined signal 1. */
-#define SIGUSR2 17 /* User-defined signal 2. */
-
-/* Nonstandard signals found in all modern POSIX systems
- (including both BSD and Linux). */
-#define SIGWINCH 20 /* Window size change (4.3 BSD, Sun). */
-
-/* Archaic names for compatibility. */
-#define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
-#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
-#define SIGCLD SIGCHLD /* Old System V name */
-
-/* By default no real-time signals are supported. */
-#define __SIGRTMIN 32
-#define __SIGRTMAX 127
-
-#endif /* <signal.h> included. */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/socket-constants.h
@@ -1,70 +0,0 @@
-/* Socket constants which vary among Linux architectures. Version for MIPS.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
-#endif
-
-#define SOL_SOCKET 65535
-#define SO_ACCEPTCONN 4105
-#define SO_BROADCAST 32
-#define SO_DONTROUTE 16
-#define SO_ERROR 4103
-#define SO_KEEPALIVE 8
-#define SO_LINGER 128
-#define SO_OOBINLINE 256
-#define SO_RCVBUF 4098
-#define SO_RCVLOWAT 4100
-#define SO_REUSEADDR 4
-#define SO_SNDBUF 4097
-#define SO_SNDLOWAT 4099
-#define SO_TYPE 4104
-
-#if __TIMESIZE == 64
-# define SO_RCVTIMEO 4102
-# define SO_SNDTIMEO 4101
-# define SO_TIMESTAMP 29
-# define SO_TIMESTAMPNS 35
-# define SO_TIMESTAMPING 37
-#else
-# define SO_RCVTIMEO_OLD 4102
-# define SO_SNDTIMEO_OLD 4101
-# define SO_RCVTIMEO_NEW 66
-# define SO_SNDTIMEO_NEW 67
-
-# 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
-
-# ifdef __USE_TIME64_REDIRECTS
-# define SO_RCVTIMEO SO_RCVTIMEO_NEW
-# define SO_SNDTIMEO SO_SNDTIMEO_NEW
-# define SO_TIMESTAMP SO_TIMESTAMP_NEW
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_NEW
-# define SO_TIMESTAMPING SO_TIMESTAMPING_NEW
-# else
-# define SO_RCVTIMEO SO_RCVTIMEO_OLD
-# define SO_SNDTIMEO SO_SNDTIMEO_OLD
-# define SO_TIMESTAMP SO_TIMESTAMP_OLD
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
-# define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
-# endif
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/socket_type.h
@@ -1,55 +0,0 @@
-/* Define enum __socket_type for Linux/MIPS.
- Copyright (C) 1991-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
-#endif
-
-/* Types of sockets. */
-enum __socket_type
-{
- SOCK_DGRAM = 1, /* Connectionless, unreliable datagrams
- of fixed maximum length. */
-#define SOCK_DGRAM SOCK_DGRAM
- SOCK_STREAM = 2, /* Sequenced, reliable, connection-based
- byte streams. */
-#define SOCK_STREAM SOCK_STREAM
- SOCK_RAW = 3, /* Raw protocol interface. */
-#define SOCK_RAW SOCK_RAW
- SOCK_RDM = 4, /* Reliably-delivered messages. */
-#define SOCK_RDM SOCK_RDM
- SOCK_SEQPACKET = 5, /* Sequenced, reliable, connection-based,
- datagrams of fixed maximum length. */
-#define SOCK_SEQPACKET SOCK_SEQPACKET
- SOCK_DCCP = 6,
-#define SOCK_DCCP SOCK_DCCP /* Datagram Congestion Control Protocol. */
- SOCK_PACKET = 10, /* Linux specific way of getting packets
- at the dev level. For writing rarp and
- other similar things on the user level. */
-#define SOCK_PACKET SOCK_PACKET
-
- /* Flags to be ORed into the type parameter of socket and socketpair and
- used for the flags parameter of paccept. */
-
- SOCK_CLOEXEC = 02000000, /* Atomically set close-on-exec flag for the
- new descriptor(s). */
-#define SOCK_CLOEXEC SOCK_CLOEXEC
- SOCK_NONBLOCK = 00000200 /* Atomically mark descriptor(s) as
- non-blocking. */
-#define SOCK_NONBLOCK SOCK_NONBLOCK
-};
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/statfs.h
@@ -1,73 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_STATFS_H
-# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
-#endif
-
-#include <bits/types.h> /* for __fsid_t and __fsblkcnt_t*/
-
-struct statfs
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
-#ifndef __USE_FILE_OFFSET64
- __fsblkcnt_t f_blocks;
- __fsblkcnt_t f_bfree;
- __fsblkcnt_t f_files;
- __fsblkcnt_t f_ffree;
- __fsblkcnt_t f_bavail;
-#else
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-#endif
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-
-#ifdef __USE_LARGEFILE64
-struct statfs64
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATFS_F_NAMELEN
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/struct_mutex.h
@@ -1,56 +0,0 @@
-/* MIPS internal mutex struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _THREAD_MUTEX_INTERNAL_H
-#define _THREAD_MUTEX_INTERNAL_H 1
-
-struct __pthread_mutex_s
-{
- int __lock;
- unsigned int __count;
- int __owner;
-#if _MIPS_SIM == _ABI64
- unsigned int __nusers;
-#endif
- /* KIND must stay at this position in the structure to maintain
- binary compatibility with static initializers. */
- int __kind;
-#if _MIPS_SIM == _ABI64
- int __spins;
- __pthread_list_t __list;
-# define __PTHREAD_MUTEX_HAVE_PREV 1
-#else
- unsigned int __nusers;
- __extension__ union
- {
- int __spins;
- __pthread_slist_t __list;
- };
-# define __PTHREAD_MUTEX_HAVE_PREV 0
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, 0, __kind, 0, { 0, 0 }
-#else
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, __kind, 0, { 0 }
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/struct_rwlock.h
@@ -1,71 +0,0 @@
-/* MIPS internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#if _MIPS_SIM == _ABI64
- int __cur_writer;
- int __shared;
- unsigned long int __pad1;
- unsigned long int __pad2;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned int __flags;
-# else
-# if __BYTE_ORDER == __BIG_ENDIAN
- unsigned char __pad1;
- unsigned char __pad2;
- unsigned char __shared;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
-# else
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- unsigned char __shared;
- unsigned char __pad1;
- unsigned char __pad2;
-# endif
- int __cur_writer;
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
-#else
-# if __BYTE_ORDER == __BIG_ENDIAN
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
-# else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
-# endif
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/termios-c_cc.h
@@ -1,43 +0,0 @@
-/* termios c_cc symbolic constant definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
-#endif
-
-/* c_cc characters */
-#define VINTR 0 /* Interrupt character [ISIG]. */
-#define VQUIT 1 /* Quit character [ISIG]. */
-#define VERASE 2 /* Erase character [ICANON]. */
-#define VKILL 3 /* Kill-line character [ICANON]. */
-#define VMIN 4 /* Minimum number of bytes read at once [!ICANON]. */
-#define VTIME 5 /* Time-out value (tenths of a second) [!ICANON]. */
-#define VEOL2 6 /* Second EOL character [ICANON]. */
-#define VSWTC 7
-#define VSWTCH VSWTC
-#define VSTART 8 /* Start (X-ON) character [IXON, IXOFF]. */
-#define VSTOP 9 /* Stop (X-OFF) character [IXON, IXOFF]. */
-#define VSUSP 10 /* Suspend character [ISIG]. */
- /* VDSUSP is not supported on Linux. */
-/* #define VDSUSP 11 / * Delayed suspend character [ISIG]. */
-#define VREPRINT 12 /* Reprint-line character [ICANON]. */
-#define VDISCARD 13 /* Discard character [IEXTEN]. */
-#define VWERASE 14 /* Word-erase character [ICANON]. */
-#define VLNEXT 15 /* Literal-next character [IEXTEN]. */
-#define VEOF 16 /* End-of-file character [ICANON]. */
-#define VEOL 17 /* End-of-line character [ICANON]. */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/termios-c_lflag.h
@@ -1,46 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_lflag bits */
-#define ISIG 0000001 /* Enable signals. */
-#define ICANON 0000002 /* Do erase and kill processing. */
-#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
-# define XCASE 0000004
-#endif
-#define ECHO 0000010 /* Enable echo. */
-#define ECHOE 0000020 /* Visual erase for ERASE. */
-#define ECHOK 0000040 /* Echo NL after KILL. */
-#define ECHONL 0000100 /* Echo NL even if ECHO is off. */
-#define NOFLSH 0000200 /* Disable flush after interrupt. */
-#define IEXTEN 0000400 /* Enable DISCARD and LNEXT. */
-#ifdef __USE_MISC
-# define ECHOCTL 0001000 /* Echo control characters as ^X. */
-# define ECHOPRT 0002000 /* Hardcopy visual erase. */
-# define ECHOKE 0004000 /* Visual erase for KILL. */
-# define FLUSHO 0020000
-# define PENDIN 0040000 /* Retype pending input (state). */
-#endif
-#define TOSTOP 0100000 /* Send SIGTTOU for background output. */
-#define ITOSTOP TOSTOP
-#ifdef __USE_MISC
-# define EXTPROC 0200000
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/termios-struct.h
@@ -1,34 +0,0 @@
-/* struct termios definition. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
-#endif
-
-#define NCCS 32
-struct termios
- {
- tcflag_t c_iflag; /* input mode flags */
- tcflag_t c_oflag; /* output mode flags */
- tcflag_t c_cflag; /* control mode flags */
- tcflag_t c_lflag; /* local mode flags */
- cc_t c_line; /* line discipline */
- cc_t c_cc[NCCS]; /* control characters */
-#define _HAVE_STRUCT_TERMIOS_C_ISPEED 0
-#define _HAVE_STRUCT_TERMIOS_C_OSPEED 0
- };
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/termios-tcflow.h
@@ -1,26 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
-#endif
-
-/* tcsetattr uses these */
-#define TCSANOW 0x540e /* Same as TCSETS; change immediately. */
-#define TCSADRAIN 0x540f /* Same as TCSETSW; change when pending output is written. */
-#define TCSAFLUSH 0x5410 /* Same as TCSETSF; flush pending input before changing. */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/timerfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2008-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_TIMERFD_H
-# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
-#endif
-
-/* Bits to be set in the FLAGS parameter of `timerfd_create'. */
-enum
- {
- TFD_CLOEXEC = 02000000,
-#define TFD_CLOEXEC TFD_CLOEXEC
- TFD_NONBLOCK = 00000200
-#define TFD_NONBLOCK TFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/typesizes.h
@@ -1,95 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. MIPS version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __UWORD_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#ifdef __LP64__
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for rlim_t and rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-
-/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
-# define __STATFS_MATCHES_STATFS64 1
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-
-# define __STATFS_MATCHES_STATFS64 0
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/ieee754.h
@@ -1,326 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-
-#ifndef __LDBL_MANT_DIG__
-# include <float.h>
-# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
-#endif
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#if __LDBL_MANT_DIG__ == 113
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-
-#elif __LDBL_MANT_DIG__ == 64
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:32;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee;
-
- /* This is for NaNs in the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int one:1;
- unsigned int quiet_nan:1;
- unsigned int mantissa0:30;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
-
-#elif __LDBL_MANT_DIG__ == 53
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#endif /* __LDBL_MANT_DIG__ == 53 */
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/types/stack_t.h
@@ -1,33 +0,0 @@
-/* Define stack_t. MIPS Linux version.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef __stack_t_defined
-#define __stack_t_defined 1
-
-#define __need_size_t
-#include <stddef.h>
-
-/* Structure describing a signal stack. */
-typedef struct
- {
- void *ss_sp;
- size_t ss_size;
- int ss_flags;
- } stack_t;
-
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/types/struct_msqid_ds.h
@@ -1,62 +0,0 @@
-/* Linux/MIPS implementation of the SysV message struct msqid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MSG_H
-# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
-#endif
-
-#include <bits/types/time_t.h>
-
-/* Structure of record for one message inside the kernel.
- The type `struct msg' is opaque. */
-struct msqid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_msqid64_ds_helper.h>
-#else
- struct ipc_perm msg_perm; /* structure describing operation permission */
-# if __TIMESIZE == 32
-# ifdef __MIPSEL__
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_stime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_ctime; /* time of last change */
- unsigned long int __msg_ctime_high;
-# else
- unsigned long int __msg_stime_high;
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_ctime_high;
- __time_t msg_ctime; /* time of last change */
-# endif
-# else
- __time_t msg_stime; /* time of last msgsnd command */
- __time_t msg_rtime; /* time of last msgsnd command */
- __time_t msg_ctime; /* time of last change */
-# endif
- __syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
- msgqnum_t msg_qnum; /* number of messages currently on queue */
- msglen_t msg_qbytes; /* max number of bytes allowed on queue */
- __pid_t msg_lspid; /* pid of last msgsnd() */
- __pid_t msg_lrpid; /* pid of last msgrcv() */
- __syscall_ulong_t __glibc_reserved4;
- __syscall_ulong_t __glibc_reserved5;
-#endif
-};
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/types/struct_semid_ds.h
@@ -1,36 +0,0 @@
-/* MIPS implementation of the semaphore struct semid_ds
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
-#endif
-
-/* Data structure describing a set of semaphores. */
-struct semid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_semid64_ds_helper.h>
-#else
- struct ipc_perm sem_perm; /* operation permission struct */
- __time_t sem_otime; /* last semop() time */
- __time_t sem_ctime; /* last time changed by semctl() */
- __syscall_ulong_t sem_nsems; /* number of semaphores in set */
- __syscall_ulong_t __sem_otime_high;
- __syscall_ulong_t __sem_ctime_high;
-#endif
-};
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/types/struct_shmid_ds.h
@@ -1,53 +0,0 @@
-/* Linux/MIPS implementation of the shared memory struct shmid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never include <bits/types/struct_shmid_ds.h> directly; use <sys/shm.h> instead."
-#endif
-
-/* Data structure describing a shared memory segment. */
-struct shmid_ds
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_shmid64_ds_helper.h>
-#else
- struct ipc_perm shm_perm; /* operation permission struct */
- size_t shm_segsz; /* size of segment in bytes */
-# if __TIMESIZE == 32
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# else
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# endif
- __pid_t shm_cpid; /* pid of creator */
- __pid_t shm_lpid; /* pid of last shmop */
- shmatt_t shm_nattch; /* number of current attaches */
-# if __TIMESIZE == 32
- unsigned short int __shm_atime_high;
- unsigned short int __shm_dtime_high;
- unsigned short int __shm_ctime_high;
- unsigned short int __glibc_reserved4;
-# else
- __syscall_ulong_t __glibc_reserved5;
- __syscall_ulong_t __glibc_reserved6;
-# endif
-#endif
- };
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/dlfcn.h
@@ -1,64 +0,0 @@
-/* System dependent definitions for run-time dynamic loading.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _DLFCN_H
-# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
-#endif
-
-/* The MODE argument to `dlopen' contains one of the following: */
-#define RTLD_LAZY 0x0001 /* Lazy function call binding. */
-#define RTLD_NOW 0x0002 /* Immediate function call binding. */
-#define RTLD_BINDING_MASK 0x3 /* Mask of binding time value. */
-#define RTLD_NOLOAD 0x00008 /* Do not load the object. */
-#define RTLD_DEEPBIND 0x00010 /* Use deep binding. */
-
-/* If the following bit is set in the MODE argument to `dlopen',
- the symbols of the loaded object and its dependencies are made
- visible as if the object were linked directly into the program. */
-#define RTLD_GLOBAL 0x0004
-
-/* Unix98 demands the following flag which is the inverse to RTLD_GLOBAL.
- The implementation does this by default and so we can define the
- value to zero. */
-#define RTLD_LOCAL 0
-
-/* Do not delete object when closed. */
-#define RTLD_NODELETE 0x01000
-
-#ifdef __USE_GNU
-/* To support profiling of shared objects it is a good idea to call
- the function found using `dlsym' using the following macro since
- these calls do not use the PLT. But this would mean the dynamic
- loader has no chance to find out when the function is called. The
- macro applies the necessary magic so that profiling is possible.
- Rewrite
- foo = (*fctp) (arg1, arg2);
- into
- foo = DL_CALL_FCT (fctp, (arg1, arg2));
-*/
-# define DL_CALL_FCT(fctp, args) \
- (_dl_mcount_wrapper_check ((void *) (fctp)), (*(fctp)) args)
-
-__BEGIN_DECLS
-
-/* This function calls the profiling functions. */
-extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
-
-__END_DECLS
-
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/errno.h
@@ -1,52 +0,0 @@
-/* Error constants. MIPS/Linux specific version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_ERRNO_H
-
-#if !defined _ERRNO_H
-# error "Never include <bits/errno.h> directly; use <errno.h> instead."
-#endif
-
-# include <linux/errno.h>
-
-/* Older Linux headers do not define these constants. */
-# ifndef ENOTSUP
-# define ENOTSUP EOPNOTSUPP
-# endif
-
-# ifndef ECANCELED
-# define ECANCELED 158
-# endif
-
-# ifndef EOWNERDEAD
-# define EOWNERDEAD 165
-# endif
-
-# ifndef ENOTRECOVERABLE
-# define ENOTRECOVERABLE 166
-# endif
-
-# ifndef ERFKILL
-# define ERFKILL 167
-# endif
-
-# ifndef EHWPOISON
-# define EHWPOISON 168
-# endif
-
-#endif /* bits/errno.h. */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/eventfd.h
@@ -1,31 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_EVENTFD_H
-# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
-#endif
-
-/* Flags for eventfd. */
-enum
- {
- EFD_SEMAPHORE = 00000001,
-#define EFD_SEMAPHORE EFD_SEMAPHORE
- EFD_CLOEXEC = 02000000,
-#define EFD_CLOEXEC EFD_CLOEXEC
- EFD_NONBLOCK = 00000200
-#define EFD_NONBLOCK EFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/floatn.h
@@ -1,97 +0,0 @@
-/* Macros to control TS 18661-3 glibc features on MIPS platforms.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_FLOATN_H
-#define _BITS_FLOATN_H
-
-#include <features.h>
-#include <bits/long-double.h>
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this
- glibc includes corresponding *f128 interfaces for it. */
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __HAVE_FLOAT128 1
-#else
-/* glibc does not support _Float128 for platforms where long double is
- normally binary128 when building with long double as binary64.
- GCC's default for supported scalar modes does not support it either
- in that case. */
-# define __HAVE_FLOAT128 0
-#endif
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#define __HAVE_DISTINCT_FLOAT128 0
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X __HAVE_FLOAT128
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-/* The literal suffix f128 exists only since GCC 7.0. */
-# define __f128(x) x##l
-# else
-# define __f128(x) x##f128
-# endif
-# endif
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-# define __CFLOAT128 _Complex long double
-# else
-# define __CFLOAT128 _Complex _Float128
-# endif
-# endif
-
-/* The remaining of this file provides support for older compilers. */
-# if __HAVE_FLOAT128
-
-/* The type _Float128 exists only since GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-typedef long double _Float128;
-# endif
-
-/* Various built-in functions do not exist before GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0)
-# define __builtin_huge_valf128() (__builtin_huge_vall ())
-# define __builtin_inff128() (__builtin_infl ())
-# define __builtin_nanf128(x) (__builtin_nanl (x))
-# define __builtin_nansf128(x) (__builtin_nansl (x))
-# endif
-
-# endif
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
-
-#endif /* _BITS_FLOATN_H */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/inotify.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_INOTIFY_H
-# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
-#endif
-
-/* Flags for the parameter of inotify_init1. */
-enum
- {
- IN_CLOEXEC = 02000000,
-#define IN_CLOEXEC IN_CLOEXEC
- IN_NONBLOCK = 00000200
-#define IN_NONBLOCK IN_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/ioctl-types.h
@@ -1,75 +0,0 @@
-/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IOCTL_H
-# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
-#endif
-
-/* Get definition of constants for use with `ioctl'. */
-#include <asm/ioctls.h>
-
-struct winsize
- {
- unsigned short int ws_row;
- unsigned short int ws_col;
- unsigned short int ws_xpixel;
- unsigned short int ws_ypixel;
- };
-
-#define NCC 8
-struct termio
- {
- unsigned short int c_iflag; /* input mode flags */
- unsigned short int c_oflag; /* output mode flags */
- unsigned short int c_cflag; /* control mode flags */
- unsigned short int c_lflag; /* local mode flags */
- char c_line; /* line discipline */
- /* Yes, this is really NCCS. */
- unsigned char c_cc[32 /* NCCS */]; /* control characters */
- };
-
-/* modem lines */
-#define TIOCM_LE 0x001 /* line enable */
-#define TIOCM_DTR 0x002 /* data terminal ready */
-#define TIOCM_RTS 0x004 /* request to send */
-#define TIOCM_ST 0x010 /* secondary transmit */
-#define TIOCM_SR 0x020 /* secondary receive */
-#define TIOCM_CTS 0x040 /* clear to send */
-#define TIOCM_CAR 0x100 /* carrier detect */
-#define TIOCM_CD TIOCM_CAR
-#define TIOCM_RNG 0x200 /* ring */
-#define TIOCM_RI TIOCM_RNG
-#define TIOCM_DSR 0x400 /* data set ready */
-
-/* line disciplines */
-#define N_TTY 0
-#define N_SLIP 1
-#define N_MOUSE 2
-#define N_PPP 3
-#define N_STRIP 4
-#define N_AX25 5
-#define N_X25 6 /* X.25 async */
-#define N_6PACK 7
-#define N_MASC 8 /* Mobitex module */
-#define N_R3964 9 /* Simatic R3964 module */
-#define N_PROFIBUS_FDL 10 /* Profibus */
-#define N_IRDA 11 /* Linux IR */
-#define N_SMSBLOCK 12 /* SMS block mode */
-#define N_HDLC 13 /* synchronous HDLC */
-#define N_SYNC_PPP 14 /* synchronous PPP */
-#define N_HCI 15 /* Bluetooth HCI UART */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/ipctypes.h
@@ -1,31 +0,0 @@
-/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/*
- * Never include <bits/ipctypes.h> directly.
- */
-
-#ifndef _BITS_IPCTYPES_H
-#define _BITS_IPCTYPES_H 1
-
-#include <bits/types.h>
-
-typedef __SLONG32_TYPE __ipc_pid_t;
-
-
-#endif /* bits/ipctypes.h */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/mman.h
@@ -1,44 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* The following definitions basically come from the kernel headers.
- But the kernel header is not namespace clean. */
-
-/* These are Linux-specific. */
-#define MAP_NORESERVE 0x0400 /* don't check for reservations */
-#define MAP_GROWSDOWN 0x1000 /* stack-like segment */
-#define MAP_DENYWRITE 0x2000 /* ETXTBSY */
-#define MAP_EXECUTABLE 0x4000 /* mark it as an executable */
-#define MAP_LOCKED 0x8000 /* pages are locked */
-#define MAP_POPULATE 0x10000 /* populate (prefault) pagetables */
-#define MAP_NONBLOCK 0x20000 /* do not block on IO */
-#define MAP_STACK 0x40000 /* Allocation is for a stack. */
-#define MAP_HUGETLB 0x80000 /* Create huge page mapping. */
-#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
- underlying mapping. */
-
-#define __MAP_ANONYMOUS 0x0800
-
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
-
-#define MAP_RENAME MAP_ANONYMOUS
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/poll.h
@@ -1,49 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_POLL_H
-# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
-#endif
-
-/* Event types that can be polled for. These bits may be set in `events'
- to indicate the interesting event types; they will appear in `revents'
- to indicate the status of the file descriptor. */
-#define POLLIN 0x001 /* There is data to read. */
-#define POLLPRI 0x002 /* There is urgent data to read. */
-#define POLLOUT 0x004 /* Writing now will not block. */
-
-#if defined __USE_XOPEN || defined __USE_XOPEN2K8
-/* These values are defined in XPG4.2. */
-# define POLLRDNORM 0x040 /* Normal data may be read. */
-# define POLLRDBAND 0x080 /* Priority data may be read. */
-# define POLLWRNORM POLLOUT /* Writing now will not block. */
-# define POLLWRBAND 0x100 /* Priority data may be written. */
-#endif
-
-#ifdef __USE_GNU
-/* These are extensions for Linux. */
-# define POLLMSG 0x400
-# define POLLREMOVE 0x1000
-# define POLLRDHUP 0x2000
-#endif
-
-/* Event types always implicitly polled for. These bits need not be set in
- `events', but they will appear in `revents' to indicate the status of
- the file descriptor. */
-#define POLLERR 0x008 /* Error condition. */
-#define POLLHUP 0x010 /* Hung up. */
-#define POLLNVAL 0x020 /* Invalid polling request. */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/pthread_stack_min.h
@@ -1,20 +0,0 @@
-/* Definition of PTHREAD_STACK_MIN. MIPS Linux version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Minimum size for a thread. At least two pages with 64k pages. */
-#define PTHREAD_STACK_MIN 131072
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/pthreadtypes-arch.h
@@ -1,44 +0,0 @@
-/* Machine-specific pthread type layouts. MIPS version.
- Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_PTHREADTYPES_ARCH_H
-#define _BITS_PTHREADTYPES_ARCH_H 1
-
-#include <bits/endian.h>
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_PTHREAD_ATTR_T 56
-# define __SIZEOF_PTHREAD_MUTEX_T 40
-# define __SIZEOF_PTHREAD_RWLOCK_T 56
-# define __SIZEOF_PTHREAD_BARRIER_T 32
-#else
-# define __SIZEOF_PTHREAD_ATTR_T 36
-# define __SIZEOF_PTHREAD_MUTEX_T 24
-# define __SIZEOF_PTHREAD_RWLOCK_T 32
-# define __SIZEOF_PTHREAD_BARRIER_T 20
-#endif
-#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
-#define __SIZEOF_PTHREAD_COND_T 48
-#define __SIZEOF_PTHREAD_CONDATTR_T 4
-#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
-
-#define __LOCK_ALIGNMENT
-#define __ONCE_ALIGNMENT
-
-#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/resource.h
@@ -1,231 +0,0 @@
-/* Bit values & structures for resource limits. Linux/MIPS version.
- Copyright (C) 1994-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RESOURCE_H
-# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
-#endif
-
-#include <bits/types.h>
-
-/* Transmute defines to enumerations. The macro re-definitions are
- necessary because some programs want to test for operating system
- features with #ifdef RUSAGE_SELF. In ISO C the reflexive
- definition is a no-op. */
-
-/* Kinds of resource limit. */
-enum __rlimit_resource
-{
- /* Per-process CPU limit, in seconds. */
- RLIMIT_CPU = 0,
-#define RLIMIT_CPU RLIMIT_CPU
-
- /* Largest file that can be created, in bytes. */
- RLIMIT_FSIZE = 1,
-#define RLIMIT_FSIZE RLIMIT_FSIZE
-
- /* Maximum size of data segment, in bytes. */
- RLIMIT_DATA = 2,
-#define RLIMIT_DATA RLIMIT_DATA
-
- /* Maximum size of stack segment, in bytes. */
- RLIMIT_STACK = 3,
-#define RLIMIT_STACK RLIMIT_STACK
-
- /* Largest core file that can be created, in bytes. */
- RLIMIT_CORE = 4,
-#define RLIMIT_CORE RLIMIT_CORE
-
- /* Largest resident set size, in bytes.
- This affects swapping; processes that are exceeding their
- resident set size will be more likely to have physical memory
- taken from them. */
- __RLIMIT_RSS = 7,
-#define RLIMIT_RSS __RLIMIT_RSS
-
- /* Number of open files. */
- RLIMIT_NOFILE = 5,
- __RLIMIT_OFILE = RLIMIT_NOFILE, /* BSD name for same. */
-#define RLIMIT_NOFILE RLIMIT_NOFILE
-#define RLIMIT_OFILE __RLIMIT_OFILE
-
- /* Address space limit (?) */
- RLIMIT_AS = 6,
-#define RLIMIT_AS RLIMIT_AS
-
- /* Number of processes. */
- __RLIMIT_NPROC = 8,
-#define RLIMIT_NPROC __RLIMIT_NPROC
-
- /* Locked-in-memory address space. */
- __RLIMIT_MEMLOCK = 9,
-#define RLIMIT_MEMLOCK __RLIMIT_MEMLOCK
-
- /* Maximum number of file locks. */
- __RLIMIT_LOCKS = 10,
-#define RLIMIT_LOCKS __RLIMIT_LOCKS
-
- /* Maximum number of pending signals. */
- __RLIMIT_SIGPENDING = 11,
-#define RLIMIT_SIGPENDING __RLIMIT_SIGPENDING
-
- /* Maximum bytes in POSIX message queues. */
- __RLIMIT_MSGQUEUE = 12,
-#define RLIMIT_MSGQUEUE __RLIMIT_MSGQUEUE
-
- /* Maximum nice priority allowed to raise to.
- Nice levels 19 .. -20 correspond to 0 .. 39
- values of this resource limit. */
- __RLIMIT_NICE = 13,
-#define RLIMIT_NICE __RLIMIT_NICE
-
- /* Maximum realtime priority allowed for non-priviledged
- processes. */
- __RLIMIT_RTPRIO = 14,
-#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
-
- /* Maximum CPU time in microseconds that a process scheduled under a real-time
- scheduling policy may consume without making a blocking system
- call before being forcibly descheduled. */
- __RLIMIT_RTTIME = 15,
-#define RLIMIT_RTTIME __RLIMIT_RTTIME
-
- __RLIMIT_NLIMITS = 16,
- __RLIM_NLIMITS = __RLIMIT_NLIMITS
-#define RLIMIT_NLIMITS __RLIMIT_NLIMITS
-#define RLIM_NLIMITS __RLIM_NLIMITS
-};
-
-/* Value to indicate that there is no limit. */
-#if _MIPS_SIM == _ABI64
-/* The N64 syscall uses this value. */
-# define RLIM_INFINITY 0xffffffffffffffffUL
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffUL
-# endif
-#else
-/* The O32 and N32 syscalls use 0x7fffffff. */
-# ifndef __USE_FILE_OFFSET64
-# define RLIM_INFINITY ((long int)(~0UL >> 1))
-# else
-# define RLIM_INFINITY 0xffffffffffffffffULL
-# endif
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffULL
-# endif
-#endif
-
-/* We can represent all limits. */
-#define RLIM_SAVED_MAX RLIM_INFINITY
-#define RLIM_SAVED_CUR RLIM_INFINITY
-
-
-/* Type for resource quantity measurement. */
-#ifndef __USE_FILE_OFFSET64
-typedef __rlim_t rlim_t;
-#else
-typedef __rlim64_t rlim_t;
-#endif
-#ifdef __USE_LARGEFILE64
-typedef __rlim64_t rlim64_t;
-#endif
-
-struct rlimit
- {
- /* The current (soft) limit. */
- rlim_t rlim_cur;
- /* The hard limit. */
- rlim_t rlim_max;
- };
-
-#ifdef __USE_LARGEFILE64
-struct rlimit64
- {
- /* The current (soft) limit. */
- rlim64_t rlim_cur;
- /* The hard limit. */
- rlim64_t rlim_max;
- };
-#endif
-
-/* Whose usage statistics do you want? */
-enum __rusage_who
-{
- /* The calling process. */
- RUSAGE_SELF = 0,
-#define RUSAGE_SELF RUSAGE_SELF
-
- /* All of its terminated child processes. */
- RUSAGE_CHILDREN = -1
-#define RUSAGE_CHILDREN RUSAGE_CHILDREN
-
-#ifdef __USE_GNU
- ,
- /* The calling thread. */
- RUSAGE_THREAD = 1
-# define RUSAGE_THREAD RUSAGE_THREAD
- /* Name for the same functionality on Solaris. */
-# define RUSAGE_LWP RUSAGE_THREAD
-#endif
-};
-
-#include <bits/types/struct_timeval.h>
-#include <bits/types/struct_rusage.h>
-
-/* Priority limits. */
-#define PRIO_MIN -20 /* Minimum priority a process can have. */
-#define PRIO_MAX 20 /* Maximum priority a process can have. */
-
-/* The type of the WHICH argument to `getpriority' and `setpriority',
- indicating what flavor of entity the WHO argument specifies. */
-enum __priority_which
-{
- PRIO_PROCESS = 0, /* WHO is a process ID. */
-#define PRIO_PROCESS PRIO_PROCESS
- PRIO_PGRP = 1, /* WHO is a process group ID. */
-#define PRIO_PGRP PRIO_PGRP
- PRIO_USER = 2 /* WHO is a user ID. */
-#define PRIO_USER PRIO_USER
-};
-
-
-__BEGIN_DECLS
-
-#ifdef __USE_GNU
-/* Modify and return resource limits of a process atomically. */
-# ifndef __USE_FILE_OFFSET64
-extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit) __THROW;
-# else
-# ifdef __REDIRECT_NTH
-extern int __REDIRECT_NTH (prlimit, (__pid_t __pid,
- enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit), prlimit64);
-# else
-# define prlimit prlimit64
-# endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int prlimit64 (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit64 *__new_limit,
- struct rlimit64 *__old_limit) __THROW;
-# endif
-#endif
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/semaphore.h
@@ -1,36 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SEMAPHORE_H
-# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
-#endif
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_SEM_T 32
-#else
-# define __SIZEOF_SEM_T 16
-#endif
-
-/* Value returned if `sem_open' failed. */
-#define SEM_FAILED ((sem_t *) 0)
-
-
-typedef union
-{
- char __size[__SIZEOF_SEM_T];
- long int __align;
-} sem_t;
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/shmlba.h
@@ -1,24 +0,0 @@
-/* Define SHMLBA. MIPS version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
-#endif
-
-/* Segment low boundary address multiple. */
-#define SHMLBA 0x40000
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/sigaction.h
@@ -1,94 +0,0 @@
-/* The proper definitions for Linux/MIPS's sigaction.
- Copyright (C) 1993-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGACTION_H
-#define _BITS_SIGACTION_H 1
-
-#ifndef _SIGNAL_H
-# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
-#endif
-
-/* Structure describing the action to be taken when a signal arrives. */
-struct sigaction
- {
- /* Special flags. */
- int sa_flags;
-
- /* Signal handler. */
-#if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED
- union
- {
- /* Used if SA_SIGINFO is not set. */
- __sighandler_t sa_handler;
- /* Used if SA_SIGINFO is set. */
- void (*sa_sigaction) (int, siginfo_t *, void *);
- }
- __sigaction_handler;
-# define sa_handler __sigaction_handler.sa_handler
-# define sa_sigaction __sigaction_handler.sa_sigaction
-#else
- __sighandler_t sa_handler;
-#endif
- /* Additional set of signals to be blocked. */
- __sigset_t sa_mask;
-
- /* The ABI says here are two unused ints following. */
- /* Restore handler. */
- void (*sa_restorer) (void);
-
-#if _MIPS_SZPTR < 64
- int sa_resv[1];
-#endif
- };
-
-/* Bits in `sa_flags'. */
-/* Please note that some Linux kernels versions use different values for these
- flags which is a bug in those kernel versions. */
-#define SA_NOCLDSTOP 0x00000001 /* Don't send SIGCHLD when children stop. */
-#define SA_NOCLDWAIT 0x00010000 /* Don't create zombie on child death. */
-#define SA_SIGINFO 0x00000008 /* Invoke signal-catching function with
- three arguments instead of one. */
-#if defined __USE_XOPEN_EXTENDED || defined __USE_MISC
-# define SA_ONSTACK 0x08000000 /* Use signal stack by using `sa_restorer'. */
-#endif
-#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
-# define SA_RESETHAND 0x80000000 /* Reset to SIG_DFL on entry to handler. */
-# define SA_RESTART 0x10000000 /* Restart syscall on signal return. */
-# define SA_NODEFER 0x40000000 /* Don't automatically block the signal when
- its handler is being executed. */
-#endif
-#ifdef __USE_MISC
-# define SA_INTERRUPT 0x20000000 /* Historical no-op. */
-
-/* Some aliases for the SA_ constants. */
-# define SA_NOMASK SA_NODEFER
-# define SA_ONESHOT SA_RESETHAND
-# define SA_STACK SA_ONSTACK
-#endif
-
-/* Values for the HOW argument to `sigprocmask'. */
-#define SIG_NOP 0 /* 0 is unused to catch errors */
-#define SIG_BLOCK 1 /* Block signals. */
-#define SIG_UNBLOCK 2 /* Unblock signals. */
-#define SIG_SETMASK 3 /* Set the set of blocked signals. */
-#ifdef __USE_MISC
-# define SIG_SETMASK32 256 /* Goodie from SGI for BSD compatibility:
- set only the low 32 bit of the sigset. */
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/sigcontext.h
@@ -1,82 +0,0 @@
-/* Copyright (C) 1996-2025 Free Software Foundation, Inc. This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGCONTEXT_H
-#define _BITS_SIGCONTEXT_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
-#endif
-
-#include <sgidefs.h>
-
-#if _MIPS_SIM == _ABIO32
-
-/* Certain unused fields were replaced with new ones in 2.6.12-rc4.
- The changes were as follows:
-
- sc_cause -> sc_hi1
- sc_badvaddr -> sc_lo1
- sc_sigset[0] -> sc_hi2
- sc_sigset[1] -> sc_lo2
- sc_sigset[2] -> sc_hi3
- sc_sigset[3] -> sc_lo3
-
- sc_regmask, sc_ownedfp and sc_fpc_eir are not used. */
-struct sigcontext {
- unsigned int sc_regmask;
- unsigned int sc_status;
- __extension__ unsigned long long sc_pc;
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- unsigned int sc_ownedfp;
- unsigned int sc_fpc_csr;
- unsigned int sc_fpc_eir;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_mdlo;
- unsigned long sc_hi1;
- unsigned long sc_lo1;
- unsigned long sc_hi2;
- unsigned long sc_lo2;
- unsigned long sc_hi3;
- unsigned long sc_lo3;
-};
-
-#else
-
-/* This structure changed in 2.6.12-rc4 when DSP support was added. */
-struct sigcontext {
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_hi1;
- __extension__ unsigned long long sc_hi2;
- __extension__ unsigned long long sc_hi3;
- __extension__ unsigned long long sc_mdlo;
- __extension__ unsigned long long sc_lo1;
- __extension__ unsigned long long sc_lo2;
- __extension__ unsigned long long sc_lo3;
- __extension__ unsigned long long sc_pc;
- unsigned int sc_fpc_csr;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- unsigned int sc_reserved;
-};
-
-#endif /* _MIPS_SIM != _ABIO32 */
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/siginfo-arch.h
@@ -1,13 +0,0 @@
-/* Architecture-specific adjustments to siginfo_t. MIPS version. */
-#ifndef _BITS_SIGINFO_ARCH_H
-#define _BITS_SIGINFO_ARCH_H 1
-
-/* MIPS has the si_code and si_errno fields in the opposite order from
- all other architectures. */
-#define __SI_ERRNO_THEN_CODE 0
-
-/* MIPS also has different values for SI_ASYNCIO, SI_MESGQ, and SI_TIMER
- than all other architectures. */
-#define __SI_ASYNCIO_AFTER_SIGIO 0
-
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/signalfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SIGNALFD_H
-# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
-#endif
-
-/* Flags for signalfd. */
-enum
- {
- SFD_CLOEXEC = 02000000,
-#define SFD_CLOEXEC SFD_CLOEXEC
- SFD_NONBLOCK = 00000200
-#define SFD_NONBLOCK SFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/signum-arch.h
@@ -1,65 +0,0 @@
-/* Signal number definitions. Linux/MIPS version.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGNUM_H
-#define _BITS_SIGNUM_H 1
-
-#ifndef _SIGNAL_H
-#error "Never include <bits/signum.h> directly; use <signal.h> instead."
-#endif
-
-/* Adjustments and additions to the signal number constants for
- Linux/MIPS. */
-
-#define SIGEMT 7 /* Emulator trap. */
-#define SIGPWR 19 /* Power failure imminent. */
-
-/* Historical signals specified by POSIX. */
-#define SIGBUS 10 /* Bus error. */
-#define SIGSYS 12 /* Bad system call. */
-
-/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
-#define SIGURG 21 /* Urgent data is available at a socket. */
-#define SIGSTOP 23 /* Stop, unblockable. */
-#define SIGTSTP 24 /* Keyboard stop. */
-#define SIGCONT 25 /* Continue. */
-#define SIGCHLD 18 /* Child terminated or stopped. */
-#define SIGTTIN 26 /* Background read from control terminal. */
-#define SIGTTOU 27 /* Background write to control terminal. */
-#define SIGPOLL 22 /* Pollable event occurred (System V). */
-#define SIGXCPU 30 /* CPU time limit exceeded. */
-#define SIGVTALRM 28 /* Virtual timer expired. */
-#define SIGPROF 29 /* Profiling timer expired. */
-#define SIGXFSZ 31 /* File size limit exceeded. */
-#define SIGUSR1 16 /* User-defined signal 1. */
-#define SIGUSR2 17 /* User-defined signal 2. */
-
-/* Nonstandard signals found in all modern POSIX systems
- (including both BSD and Linux). */
-#define SIGWINCH 20 /* Window size change (4.3 BSD, Sun). */
-
-/* Archaic names for compatibility. */
-#define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
-#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
-#define SIGCLD SIGCHLD /* Old System V name */
-
-/* By default no real-time signals are supported. */
-#define __SIGRTMIN 32
-#define __SIGRTMAX 127
-
-#endif /* <signal.h> included. */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/socket-constants.h
@@ -1,70 +0,0 @@
-/* Socket constants which vary among Linux architectures. Version for MIPS.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
-#endif
-
-#define SOL_SOCKET 65535
-#define SO_ACCEPTCONN 4105
-#define SO_BROADCAST 32
-#define SO_DONTROUTE 16
-#define SO_ERROR 4103
-#define SO_KEEPALIVE 8
-#define SO_LINGER 128
-#define SO_OOBINLINE 256
-#define SO_RCVBUF 4098
-#define SO_RCVLOWAT 4100
-#define SO_REUSEADDR 4
-#define SO_SNDBUF 4097
-#define SO_SNDLOWAT 4099
-#define SO_TYPE 4104
-
-#if __TIMESIZE == 64
-# define SO_RCVTIMEO 4102
-# define SO_SNDTIMEO 4101
-# define SO_TIMESTAMP 29
-# define SO_TIMESTAMPNS 35
-# define SO_TIMESTAMPING 37
-#else
-# define SO_RCVTIMEO_OLD 4102
-# define SO_SNDTIMEO_OLD 4101
-# define SO_RCVTIMEO_NEW 66
-# define SO_SNDTIMEO_NEW 67
-
-# 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
-
-# ifdef __USE_TIME64_REDIRECTS
-# define SO_RCVTIMEO SO_RCVTIMEO_NEW
-# define SO_SNDTIMEO SO_SNDTIMEO_NEW
-# define SO_TIMESTAMP SO_TIMESTAMP_NEW
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_NEW
-# define SO_TIMESTAMPING SO_TIMESTAMPING_NEW
-# else
-# define SO_RCVTIMEO SO_RCVTIMEO_OLD
-# define SO_SNDTIMEO SO_SNDTIMEO_OLD
-# define SO_TIMESTAMP SO_TIMESTAMP_OLD
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
-# define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
-# endif
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/socket_type.h
@@ -1,55 +0,0 @@
-/* Define enum __socket_type for Linux/MIPS.
- Copyright (C) 1991-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
-#endif
-
-/* Types of sockets. */
-enum __socket_type
-{
- SOCK_DGRAM = 1, /* Connectionless, unreliable datagrams
- of fixed maximum length. */
-#define SOCK_DGRAM SOCK_DGRAM
- SOCK_STREAM = 2, /* Sequenced, reliable, connection-based
- byte streams. */
-#define SOCK_STREAM SOCK_STREAM
- SOCK_RAW = 3, /* Raw protocol interface. */
-#define SOCK_RAW SOCK_RAW
- SOCK_RDM = 4, /* Reliably-delivered messages. */
-#define SOCK_RDM SOCK_RDM
- SOCK_SEQPACKET = 5, /* Sequenced, reliable, connection-based,
- datagrams of fixed maximum length. */
-#define SOCK_SEQPACKET SOCK_SEQPACKET
- SOCK_DCCP = 6,
-#define SOCK_DCCP SOCK_DCCP /* Datagram Congestion Control Protocol. */
- SOCK_PACKET = 10, /* Linux specific way of getting packets
- at the dev level. For writing rarp and
- other similar things on the user level. */
-#define SOCK_PACKET SOCK_PACKET
-
- /* Flags to be ORed into the type parameter of socket and socketpair and
- used for the flags parameter of paccept. */
-
- SOCK_CLOEXEC = 02000000, /* Atomically set close-on-exec flag for the
- new descriptor(s). */
-#define SOCK_CLOEXEC SOCK_CLOEXEC
- SOCK_NONBLOCK = 00000200 /* Atomically mark descriptor(s) as
- non-blocking. */
-#define SOCK_NONBLOCK SOCK_NONBLOCK
-};
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/statfs.h
@@ -1,73 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_STATFS_H
-# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
-#endif
-
-#include <bits/types.h> /* for __fsid_t and __fsblkcnt_t*/
-
-struct statfs
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
-#ifndef __USE_FILE_OFFSET64
- __fsblkcnt_t f_blocks;
- __fsblkcnt_t f_bfree;
- __fsblkcnt_t f_files;
- __fsblkcnt_t f_ffree;
- __fsblkcnt_t f_bavail;
-#else
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-#endif
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-
-#ifdef __USE_LARGEFILE64
-struct statfs64
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATFS_F_NAMELEN
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/struct_mutex.h
@@ -1,56 +0,0 @@
-/* MIPS internal mutex struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _THREAD_MUTEX_INTERNAL_H
-#define _THREAD_MUTEX_INTERNAL_H 1
-
-struct __pthread_mutex_s
-{
- int __lock;
- unsigned int __count;
- int __owner;
-#if _MIPS_SIM == _ABI64
- unsigned int __nusers;
-#endif
- /* KIND must stay at this position in the structure to maintain
- binary compatibility with static initializers. */
- int __kind;
-#if _MIPS_SIM == _ABI64
- int __spins;
- __pthread_list_t __list;
-# define __PTHREAD_MUTEX_HAVE_PREV 1
-#else
- unsigned int __nusers;
- __extension__ union
- {
- int __spins;
- __pthread_slist_t __list;
- };
-# define __PTHREAD_MUTEX_HAVE_PREV 0
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, 0, __kind, 0, { 0, 0 }
-#else
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, __kind, 0, { 0 }
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/struct_rwlock.h
@@ -1,71 +0,0 @@
-/* MIPS internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#if _MIPS_SIM == _ABI64
- int __cur_writer;
- int __shared;
- unsigned long int __pad1;
- unsigned long int __pad2;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned int __flags;
-# else
-# if __BYTE_ORDER == __BIG_ENDIAN
- unsigned char __pad1;
- unsigned char __pad2;
- unsigned char __shared;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
-# else
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- unsigned char __shared;
- unsigned char __pad1;
- unsigned char __pad2;
-# endif
- int __cur_writer;
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
-#else
-# if __BYTE_ORDER == __BIG_ENDIAN
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
-# else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
-# endif
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/termios-c_cc.h
@@ -1,43 +0,0 @@
-/* termios c_cc symbolic constant definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
-#endif
-
-/* c_cc characters */
-#define VINTR 0 /* Interrupt character [ISIG]. */
-#define VQUIT 1 /* Quit character [ISIG]. */
-#define VERASE 2 /* Erase character [ICANON]. */
-#define VKILL 3 /* Kill-line character [ICANON]. */
-#define VMIN 4 /* Minimum number of bytes read at once [!ICANON]. */
-#define VTIME 5 /* Time-out value (tenths of a second) [!ICANON]. */
-#define VEOL2 6 /* Second EOL character [ICANON]. */
-#define VSWTC 7
-#define VSWTCH VSWTC
-#define VSTART 8 /* Start (X-ON) character [IXON, IXOFF]. */
-#define VSTOP 9 /* Stop (X-OFF) character [IXON, IXOFF]. */
-#define VSUSP 10 /* Suspend character [ISIG]. */
- /* VDSUSP is not supported on Linux. */
-/* #define VDSUSP 11 / * Delayed suspend character [ISIG]. */
-#define VREPRINT 12 /* Reprint-line character [ICANON]. */
-#define VDISCARD 13 /* Discard character [IEXTEN]. */
-#define VWERASE 14 /* Word-erase character [ICANON]. */
-#define VLNEXT 15 /* Literal-next character [IEXTEN]. */
-#define VEOF 16 /* End-of-file character [ICANON]. */
-#define VEOL 17 /* End-of-line character [ICANON]. */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/termios-c_lflag.h
@@ -1,46 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_lflag bits */
-#define ISIG 0000001 /* Enable signals. */
-#define ICANON 0000002 /* Do erase and kill processing. */
-#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
-# define XCASE 0000004
-#endif
-#define ECHO 0000010 /* Enable echo. */
-#define ECHOE 0000020 /* Visual erase for ERASE. */
-#define ECHOK 0000040 /* Echo NL after KILL. */
-#define ECHONL 0000100 /* Echo NL even if ECHO is off. */
-#define NOFLSH 0000200 /* Disable flush after interrupt. */
-#define IEXTEN 0000400 /* Enable DISCARD and LNEXT. */
-#ifdef __USE_MISC
-# define ECHOCTL 0001000 /* Echo control characters as ^X. */
-# define ECHOPRT 0002000 /* Hardcopy visual erase. */
-# define ECHOKE 0004000 /* Visual erase for KILL. */
-# define FLUSHO 0020000
-# define PENDIN 0040000 /* Retype pending input (state). */
-#endif
-#define TOSTOP 0100000 /* Send SIGTTOU for background output. */
-#define ITOSTOP TOSTOP
-#ifdef __USE_MISC
-# define EXTPROC 0200000
-#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/termios-struct.h
@@ -1,34 +0,0 @@
-/* struct termios definition. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
-#endif
-
-#define NCCS 32
-struct termios
- {
- tcflag_t c_iflag; /* input mode flags */
- tcflag_t c_oflag; /* output mode flags */
- tcflag_t c_cflag; /* control mode flags */
- tcflag_t c_lflag; /* local mode flags */
- cc_t c_line; /* line discipline */
- cc_t c_cc[NCCS]; /* control characters */
-#define _HAVE_STRUCT_TERMIOS_C_ISPEED 0
-#define _HAVE_STRUCT_TERMIOS_C_OSPEED 0
- };
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/termios-tcflow.h
@@ -1,26 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
-#endif
-
-/* tcsetattr uses these */
-#define TCSANOW 0x540e /* Same as TCSETS; change immediately. */
-#define TCSADRAIN 0x540f /* Same as TCSETSW; change when pending output is written. */
-#define TCSAFLUSH 0x5410 /* Same as TCSETSF; flush pending input before changing. */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/timerfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2008-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_TIMERFD_H
-# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
-#endif
-
-/* Bits to be set in the FLAGS parameter of `timerfd_create'. */
-enum
- {
- TFD_CLOEXEC = 02000000,
-#define TFD_CLOEXEC TFD_CLOEXEC
- TFD_NONBLOCK = 00000200
-#define TFD_NONBLOCK TFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/typesizes.h
@@ -1,95 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. MIPS version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __UWORD_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#ifdef __LP64__
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for rlim_t and rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-
-/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
-# define __STATFS_MATCHES_STATFS64 1
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-
-# define __STATFS_MATCHES_STATFS64 0
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/ieee754.h
@@ -1,326 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-
-#ifndef __LDBL_MANT_DIG__
-# include <float.h>
-# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
-#endif
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#if __LDBL_MANT_DIG__ == 113
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-
-#elif __LDBL_MANT_DIG__ == 64
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:32;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee;
-
- /* This is for NaNs in the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int one:1;
- unsigned int quiet_nan:1;
- unsigned int mantissa0:30;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
-
-#elif __LDBL_MANT_DIG__ == 53
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#endif /* __LDBL_MANT_DIG__ == 53 */
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/types/stack_t.h
@@ -1,33 +0,0 @@
-/* Define stack_t. MIPS Linux version.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef __stack_t_defined
-#define __stack_t_defined 1
-
-#define __need_size_t
-#include <stddef.h>
-
-/* Structure describing a signal stack. */
-typedef struct
- {
- void *ss_sp;
- size_t ss_size;
- int ss_flags;
- } stack_t;
-
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/types/struct_msqid_ds.h
@@ -1,62 +0,0 @@
-/* Linux/MIPS implementation of the SysV message struct msqid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MSG_H
-# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
-#endif
-
-#include <bits/types/time_t.h>
-
-/* Structure of record for one message inside the kernel.
- The type `struct msg' is opaque. */
-struct msqid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_msqid64_ds_helper.h>
-#else
- struct ipc_perm msg_perm; /* structure describing operation permission */
-# if __TIMESIZE == 32
-# ifdef __MIPSEL__
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_stime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_ctime; /* time of last change */
- unsigned long int __msg_ctime_high;
-# else
- unsigned long int __msg_stime_high;
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_ctime_high;
- __time_t msg_ctime; /* time of last change */
-# endif
-# else
- __time_t msg_stime; /* time of last msgsnd command */
- __time_t msg_rtime; /* time of last msgsnd command */
- __time_t msg_ctime; /* time of last change */
-# endif
- __syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
- msgqnum_t msg_qnum; /* number of messages currently on queue */
- msglen_t msg_qbytes; /* max number of bytes allowed on queue */
- __pid_t msg_lspid; /* pid of last msgsnd() */
- __pid_t msg_lrpid; /* pid of last msgrcv() */
- __syscall_ulong_t __glibc_reserved4;
- __syscall_ulong_t __glibc_reserved5;
-#endif
-};
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/types/struct_semid_ds.h
@@ -1,36 +0,0 @@
-/* MIPS implementation of the semaphore struct semid_ds
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
-#endif
-
-/* Data structure describing a set of semaphores. */
-struct semid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_semid64_ds_helper.h>
-#else
- struct ipc_perm sem_perm; /* operation permission struct */
- __time_t sem_otime; /* last semop() time */
- __time_t sem_ctime; /* last time changed by semctl() */
- __syscall_ulong_t sem_nsems; /* number of semaphores in set */
- __syscall_ulong_t __sem_otime_high;
- __syscall_ulong_t __sem_ctime_high;
-#endif
-};
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/types/struct_shmid_ds.h
@@ -1,53 +0,0 @@
-/* Linux/MIPS implementation of the shared memory struct shmid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never include <bits/types/struct_shmid_ds.h> directly; use <sys/shm.h> instead."
-#endif
-
-/* Data structure describing a shared memory segment. */
-struct shmid_ds
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_shmid64_ds_helper.h>
-#else
- struct ipc_perm shm_perm; /* operation permission struct */
- size_t shm_segsz; /* size of segment in bytes */
-# if __TIMESIZE == 32
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# else
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# endif
- __pid_t shm_cpid; /* pid of creator */
- __pid_t shm_lpid; /* pid of last shmop */
- shmatt_t shm_nattch; /* number of current attaches */
-# if __TIMESIZE == 32
- unsigned short int __shm_atime_high;
- unsigned short int __shm_dtime_high;
- unsigned short int __shm_ctime_high;
- unsigned short int __glibc_reserved4;
-# else
- __syscall_ulong_t __glibc_reserved5;
- __syscall_ulong_t __glibc_reserved6;
-# endif
-#endif
- };
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/dlfcn.h
@@ -1,64 +0,0 @@
-/* System dependent definitions for run-time dynamic loading.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _DLFCN_H
-# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
-#endif
-
-/* The MODE argument to `dlopen' contains one of the following: */
-#define RTLD_LAZY 0x0001 /* Lazy function call binding. */
-#define RTLD_NOW 0x0002 /* Immediate function call binding. */
-#define RTLD_BINDING_MASK 0x3 /* Mask of binding time value. */
-#define RTLD_NOLOAD 0x00008 /* Do not load the object. */
-#define RTLD_DEEPBIND 0x00010 /* Use deep binding. */
-
-/* If the following bit is set in the MODE argument to `dlopen',
- the symbols of the loaded object and its dependencies are made
- visible as if the object were linked directly into the program. */
-#define RTLD_GLOBAL 0x0004
-
-/* Unix98 demands the following flag which is the inverse to RTLD_GLOBAL.
- The implementation does this by default and so we can define the
- value to zero. */
-#define RTLD_LOCAL 0
-
-/* Do not delete object when closed. */
-#define RTLD_NODELETE 0x01000
-
-#ifdef __USE_GNU
-/* To support profiling of shared objects it is a good idea to call
- the function found using `dlsym' using the following macro since
- these calls do not use the PLT. But this would mean the dynamic
- loader has no chance to find out when the function is called. The
- macro applies the necessary magic so that profiling is possible.
- Rewrite
- foo = (*fctp) (arg1, arg2);
- into
- foo = DL_CALL_FCT (fctp, (arg1, arg2));
-*/
-# define DL_CALL_FCT(fctp, args) \
- (_dl_mcount_wrapper_check ((void *) (fctp)), (*(fctp)) args)
-
-__BEGIN_DECLS
-
-/* This function calls the profiling functions. */
-extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
-
-__END_DECLS
-
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/errno.h
@@ -1,52 +0,0 @@
-/* Error constants. MIPS/Linux specific version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_ERRNO_H
-
-#if !defined _ERRNO_H
-# error "Never include <bits/errno.h> directly; use <errno.h> instead."
-#endif
-
-# include <linux/errno.h>
-
-/* Older Linux headers do not define these constants. */
-# ifndef ENOTSUP
-# define ENOTSUP EOPNOTSUPP
-# endif
-
-# ifndef ECANCELED
-# define ECANCELED 158
-# endif
-
-# ifndef EOWNERDEAD
-# define EOWNERDEAD 165
-# endif
-
-# ifndef ENOTRECOVERABLE
-# define ENOTRECOVERABLE 166
-# endif
-
-# ifndef ERFKILL
-# define ERFKILL 167
-# endif
-
-# ifndef EHWPOISON
-# define EHWPOISON 168
-# endif
-
-#endif /* bits/errno.h. */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/eventfd.h
@@ -1,31 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_EVENTFD_H
-# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
-#endif
-
-/* Flags for eventfd. */
-enum
- {
- EFD_SEMAPHORE = 00000001,
-#define EFD_SEMAPHORE EFD_SEMAPHORE
- EFD_CLOEXEC = 02000000,
-#define EFD_CLOEXEC EFD_CLOEXEC
- EFD_NONBLOCK = 00000200
-#define EFD_NONBLOCK EFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/floatn.h
@@ -1,97 +0,0 @@
-/* Macros to control TS 18661-3 glibc features on MIPS platforms.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_FLOATN_H
-#define _BITS_FLOATN_H
-
-#include <features.h>
-#include <bits/long-double.h>
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this
- glibc includes corresponding *f128 interfaces for it. */
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __HAVE_FLOAT128 1
-#else
-/* glibc does not support _Float128 for platforms where long double is
- normally binary128 when building with long double as binary64.
- GCC's default for supported scalar modes does not support it either
- in that case. */
-# define __HAVE_FLOAT128 0
-#endif
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#define __HAVE_DISTINCT_FLOAT128 0
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X __HAVE_FLOAT128
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-/* The literal suffix f128 exists only since GCC 7.0. */
-# define __f128(x) x##l
-# else
-# define __f128(x) x##f128
-# endif
-# endif
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-# define __CFLOAT128 _Complex long double
-# else
-# define __CFLOAT128 _Complex _Float128
-# endif
-# endif
-
-/* The remaining of this file provides support for older compilers. */
-# if __HAVE_FLOAT128
-
-/* The type _Float128 exists only since GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-typedef long double _Float128;
-# endif
-
-/* Various built-in functions do not exist before GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0)
-# define __builtin_huge_valf128() (__builtin_huge_vall ())
-# define __builtin_inff128() (__builtin_infl ())
-# define __builtin_nanf128(x) (__builtin_nanl (x))
-# define __builtin_nansf128(x) (__builtin_nansl (x))
-# endif
-
-# endif
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
-
-#endif /* _BITS_FLOATN_H */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/inotify.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_INOTIFY_H
-# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
-#endif
-
-/* Flags for the parameter of inotify_init1. */
-enum
- {
- IN_CLOEXEC = 02000000,
-#define IN_CLOEXEC IN_CLOEXEC
- IN_NONBLOCK = 00000200
-#define IN_NONBLOCK IN_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/ioctl-types.h
@@ -1,75 +0,0 @@
-/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IOCTL_H
-# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
-#endif
-
-/* Get definition of constants for use with `ioctl'. */
-#include <asm/ioctls.h>
-
-struct winsize
- {
- unsigned short int ws_row;
- unsigned short int ws_col;
- unsigned short int ws_xpixel;
- unsigned short int ws_ypixel;
- };
-
-#define NCC 8
-struct termio
- {
- unsigned short int c_iflag; /* input mode flags */
- unsigned short int c_oflag; /* output mode flags */
- unsigned short int c_cflag; /* control mode flags */
- unsigned short int c_lflag; /* local mode flags */
- char c_line; /* line discipline */
- /* Yes, this is really NCCS. */
- unsigned char c_cc[32 /* NCCS */]; /* control characters */
- };
-
-/* modem lines */
-#define TIOCM_LE 0x001 /* line enable */
-#define TIOCM_DTR 0x002 /* data terminal ready */
-#define TIOCM_RTS 0x004 /* request to send */
-#define TIOCM_ST 0x010 /* secondary transmit */
-#define TIOCM_SR 0x020 /* secondary receive */
-#define TIOCM_CTS 0x040 /* clear to send */
-#define TIOCM_CAR 0x100 /* carrier detect */
-#define TIOCM_CD TIOCM_CAR
-#define TIOCM_RNG 0x200 /* ring */
-#define TIOCM_RI TIOCM_RNG
-#define TIOCM_DSR 0x400 /* data set ready */
-
-/* line disciplines */
-#define N_TTY 0
-#define N_SLIP 1
-#define N_MOUSE 2
-#define N_PPP 3
-#define N_STRIP 4
-#define N_AX25 5
-#define N_X25 6 /* X.25 async */
-#define N_6PACK 7
-#define N_MASC 8 /* Mobitex module */
-#define N_R3964 9 /* Simatic R3964 module */
-#define N_PROFIBUS_FDL 10 /* Profibus */
-#define N_IRDA 11 /* Linux IR */
-#define N_SMSBLOCK 12 /* SMS block mode */
-#define N_HDLC 13 /* synchronous HDLC */
-#define N_SYNC_PPP 14 /* synchronous PPP */
-#define N_HCI 15 /* Bluetooth HCI UART */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/ipctypes.h
@@ -1,31 +0,0 @@
-/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/*
- * Never include <bits/ipctypes.h> directly.
- */
-
-#ifndef _BITS_IPCTYPES_H
-#define _BITS_IPCTYPES_H 1
-
-#include <bits/types.h>
-
-typedef __SLONG32_TYPE __ipc_pid_t;
-
-
-#endif /* bits/ipctypes.h */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/mman.h
@@ -1,44 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* The following definitions basically come from the kernel headers.
- But the kernel header is not namespace clean. */
-
-/* These are Linux-specific. */
-#define MAP_NORESERVE 0x0400 /* don't check for reservations */
-#define MAP_GROWSDOWN 0x1000 /* stack-like segment */
-#define MAP_DENYWRITE 0x2000 /* ETXTBSY */
-#define MAP_EXECUTABLE 0x4000 /* mark it as an executable */
-#define MAP_LOCKED 0x8000 /* pages are locked */
-#define MAP_POPULATE 0x10000 /* populate (prefault) pagetables */
-#define MAP_NONBLOCK 0x20000 /* do not block on IO */
-#define MAP_STACK 0x40000 /* Allocation is for a stack. */
-#define MAP_HUGETLB 0x80000 /* Create huge page mapping. */
-#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
- underlying mapping. */
-
-#define __MAP_ANONYMOUS 0x0800
-
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
-
-#define MAP_RENAME MAP_ANONYMOUS
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/poll.h
@@ -1,49 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_POLL_H
-# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
-#endif
-
-/* Event types that can be polled for. These bits may be set in `events'
- to indicate the interesting event types; they will appear in `revents'
- to indicate the status of the file descriptor. */
-#define POLLIN 0x001 /* There is data to read. */
-#define POLLPRI 0x002 /* There is urgent data to read. */
-#define POLLOUT 0x004 /* Writing now will not block. */
-
-#if defined __USE_XOPEN || defined __USE_XOPEN2K8
-/* These values are defined in XPG4.2. */
-# define POLLRDNORM 0x040 /* Normal data may be read. */
-# define POLLRDBAND 0x080 /* Priority data may be read. */
-# define POLLWRNORM POLLOUT /* Writing now will not block. */
-# define POLLWRBAND 0x100 /* Priority data may be written. */
-#endif
-
-#ifdef __USE_GNU
-/* These are extensions for Linux. */
-# define POLLMSG 0x400
-# define POLLREMOVE 0x1000
-# define POLLRDHUP 0x2000
-#endif
-
-/* Event types always implicitly polled for. These bits need not be set in
- `events', but they will appear in `revents' to indicate the status of
- the file descriptor. */
-#define POLLERR 0x008 /* Error condition. */
-#define POLLHUP 0x010 /* Hung up. */
-#define POLLNVAL 0x020 /* Invalid polling request. */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/pthread_stack_min.h
@@ -1,20 +0,0 @@
-/* Definition of PTHREAD_STACK_MIN. MIPS Linux version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Minimum size for a thread. At least two pages with 64k pages. */
-#define PTHREAD_STACK_MIN 131072
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/pthreadtypes-arch.h
@@ -1,44 +0,0 @@
-/* Machine-specific pthread type layouts. MIPS version.
- Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_PTHREADTYPES_ARCH_H
-#define _BITS_PTHREADTYPES_ARCH_H 1
-
-#include <bits/endian.h>
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_PTHREAD_ATTR_T 56
-# define __SIZEOF_PTHREAD_MUTEX_T 40
-# define __SIZEOF_PTHREAD_RWLOCK_T 56
-# define __SIZEOF_PTHREAD_BARRIER_T 32
-#else
-# define __SIZEOF_PTHREAD_ATTR_T 36
-# define __SIZEOF_PTHREAD_MUTEX_T 24
-# define __SIZEOF_PTHREAD_RWLOCK_T 32
-# define __SIZEOF_PTHREAD_BARRIER_T 20
-#endif
-#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
-#define __SIZEOF_PTHREAD_COND_T 48
-#define __SIZEOF_PTHREAD_CONDATTR_T 4
-#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
-
-#define __LOCK_ALIGNMENT
-#define __ONCE_ALIGNMENT
-
-#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/resource.h
@@ -1,231 +0,0 @@
-/* Bit values & structures for resource limits. Linux/MIPS version.
- Copyright (C) 1994-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RESOURCE_H
-# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
-#endif
-
-#include <bits/types.h>
-
-/* Transmute defines to enumerations. The macro re-definitions are
- necessary because some programs want to test for operating system
- features with #ifdef RUSAGE_SELF. In ISO C the reflexive
- definition is a no-op. */
-
-/* Kinds of resource limit. */
-enum __rlimit_resource
-{
- /* Per-process CPU limit, in seconds. */
- RLIMIT_CPU = 0,
-#define RLIMIT_CPU RLIMIT_CPU
-
- /* Largest file that can be created, in bytes. */
- RLIMIT_FSIZE = 1,
-#define RLIMIT_FSIZE RLIMIT_FSIZE
-
- /* Maximum size of data segment, in bytes. */
- RLIMIT_DATA = 2,
-#define RLIMIT_DATA RLIMIT_DATA
-
- /* Maximum size of stack segment, in bytes. */
- RLIMIT_STACK = 3,
-#define RLIMIT_STACK RLIMIT_STACK
-
- /* Largest core file that can be created, in bytes. */
- RLIMIT_CORE = 4,
-#define RLIMIT_CORE RLIMIT_CORE
-
- /* Largest resident set size, in bytes.
- This affects swapping; processes that are exceeding their
- resident set size will be more likely to have physical memory
- taken from them. */
- __RLIMIT_RSS = 7,
-#define RLIMIT_RSS __RLIMIT_RSS
-
- /* Number of open files. */
- RLIMIT_NOFILE = 5,
- __RLIMIT_OFILE = RLIMIT_NOFILE, /* BSD name for same. */
-#define RLIMIT_NOFILE RLIMIT_NOFILE
-#define RLIMIT_OFILE __RLIMIT_OFILE
-
- /* Address space limit (?) */
- RLIMIT_AS = 6,
-#define RLIMIT_AS RLIMIT_AS
-
- /* Number of processes. */
- __RLIMIT_NPROC = 8,
-#define RLIMIT_NPROC __RLIMIT_NPROC
-
- /* Locked-in-memory address space. */
- __RLIMIT_MEMLOCK = 9,
-#define RLIMIT_MEMLOCK __RLIMIT_MEMLOCK
-
- /* Maximum number of file locks. */
- __RLIMIT_LOCKS = 10,
-#define RLIMIT_LOCKS __RLIMIT_LOCKS
-
- /* Maximum number of pending signals. */
- __RLIMIT_SIGPENDING = 11,
-#define RLIMIT_SIGPENDING __RLIMIT_SIGPENDING
-
- /* Maximum bytes in POSIX message queues. */
- __RLIMIT_MSGQUEUE = 12,
-#define RLIMIT_MSGQUEUE __RLIMIT_MSGQUEUE
-
- /* Maximum nice priority allowed to raise to.
- Nice levels 19 .. -20 correspond to 0 .. 39
- values of this resource limit. */
- __RLIMIT_NICE = 13,
-#define RLIMIT_NICE __RLIMIT_NICE
-
- /* Maximum realtime priority allowed for non-priviledged
- processes. */
- __RLIMIT_RTPRIO = 14,
-#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
-
- /* Maximum CPU time in microseconds that a process scheduled under a real-time
- scheduling policy may consume without making a blocking system
- call before being forcibly descheduled. */
- __RLIMIT_RTTIME = 15,
-#define RLIMIT_RTTIME __RLIMIT_RTTIME
-
- __RLIMIT_NLIMITS = 16,
- __RLIM_NLIMITS = __RLIMIT_NLIMITS
-#define RLIMIT_NLIMITS __RLIMIT_NLIMITS
-#define RLIM_NLIMITS __RLIM_NLIMITS
-};
-
-/* Value to indicate that there is no limit. */
-#if _MIPS_SIM == _ABI64
-/* The N64 syscall uses this value. */
-# define RLIM_INFINITY 0xffffffffffffffffUL
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffUL
-# endif
-#else
-/* The O32 and N32 syscalls use 0x7fffffff. */
-# ifndef __USE_FILE_OFFSET64
-# define RLIM_INFINITY ((long int)(~0UL >> 1))
-# else
-# define RLIM_INFINITY 0xffffffffffffffffULL
-# endif
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffULL
-# endif
-#endif
-
-/* We can represent all limits. */
-#define RLIM_SAVED_MAX RLIM_INFINITY
-#define RLIM_SAVED_CUR RLIM_INFINITY
-
-
-/* Type for resource quantity measurement. */
-#ifndef __USE_FILE_OFFSET64
-typedef __rlim_t rlim_t;
-#else
-typedef __rlim64_t rlim_t;
-#endif
-#ifdef __USE_LARGEFILE64
-typedef __rlim64_t rlim64_t;
-#endif
-
-struct rlimit
- {
- /* The current (soft) limit. */
- rlim_t rlim_cur;
- /* The hard limit. */
- rlim_t rlim_max;
- };
-
-#ifdef __USE_LARGEFILE64
-struct rlimit64
- {
- /* The current (soft) limit. */
- rlim64_t rlim_cur;
- /* The hard limit. */
- rlim64_t rlim_max;
- };
-#endif
-
-/* Whose usage statistics do you want? */
-enum __rusage_who
-{
- /* The calling process. */
- RUSAGE_SELF = 0,
-#define RUSAGE_SELF RUSAGE_SELF
-
- /* All of its terminated child processes. */
- RUSAGE_CHILDREN = -1
-#define RUSAGE_CHILDREN RUSAGE_CHILDREN
-
-#ifdef __USE_GNU
- ,
- /* The calling thread. */
- RUSAGE_THREAD = 1
-# define RUSAGE_THREAD RUSAGE_THREAD
- /* Name for the same functionality on Solaris. */
-# define RUSAGE_LWP RUSAGE_THREAD
-#endif
-};
-
-#include <bits/types/struct_timeval.h>
-#include <bits/types/struct_rusage.h>
-
-/* Priority limits. */
-#define PRIO_MIN -20 /* Minimum priority a process can have. */
-#define PRIO_MAX 20 /* Maximum priority a process can have. */
-
-/* The type of the WHICH argument to `getpriority' and `setpriority',
- indicating what flavor of entity the WHO argument specifies. */
-enum __priority_which
-{
- PRIO_PROCESS = 0, /* WHO is a process ID. */
-#define PRIO_PROCESS PRIO_PROCESS
- PRIO_PGRP = 1, /* WHO is a process group ID. */
-#define PRIO_PGRP PRIO_PGRP
- PRIO_USER = 2 /* WHO is a user ID. */
-#define PRIO_USER PRIO_USER
-};
-
-
-__BEGIN_DECLS
-
-#ifdef __USE_GNU
-/* Modify and return resource limits of a process atomically. */
-# ifndef __USE_FILE_OFFSET64
-extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit) __THROW;
-# else
-# ifdef __REDIRECT_NTH
-extern int __REDIRECT_NTH (prlimit, (__pid_t __pid,
- enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit), prlimit64);
-# else
-# define prlimit prlimit64
-# endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int prlimit64 (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit64 *__new_limit,
- struct rlimit64 *__old_limit) __THROW;
-# endif
-#endif
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/semaphore.h
@@ -1,36 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SEMAPHORE_H
-# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
-#endif
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_SEM_T 32
-#else
-# define __SIZEOF_SEM_T 16
-#endif
-
-/* Value returned if `sem_open' failed. */
-#define SEM_FAILED ((sem_t *) 0)
-
-
-typedef union
-{
- char __size[__SIZEOF_SEM_T];
- long int __align;
-} sem_t;
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/shmlba.h
@@ -1,24 +0,0 @@
-/* Define SHMLBA. MIPS version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
-#endif
-
-/* Segment low boundary address multiple. */
-#define SHMLBA 0x40000
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/sigaction.h
@@ -1,94 +0,0 @@
-/* The proper definitions for Linux/MIPS's sigaction.
- Copyright (C) 1993-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGACTION_H
-#define _BITS_SIGACTION_H 1
-
-#ifndef _SIGNAL_H
-# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
-#endif
-
-/* Structure describing the action to be taken when a signal arrives. */
-struct sigaction
- {
- /* Special flags. */
- int sa_flags;
-
- /* Signal handler. */
-#if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED
- union
- {
- /* Used if SA_SIGINFO is not set. */
- __sighandler_t sa_handler;
- /* Used if SA_SIGINFO is set. */
- void (*sa_sigaction) (int, siginfo_t *, void *);
- }
- __sigaction_handler;
-# define sa_handler __sigaction_handler.sa_handler
-# define sa_sigaction __sigaction_handler.sa_sigaction
-#else
- __sighandler_t sa_handler;
-#endif
- /* Additional set of signals to be blocked. */
- __sigset_t sa_mask;
-
- /* The ABI says here are two unused ints following. */
- /* Restore handler. */
- void (*sa_restorer) (void);
-
-#if _MIPS_SZPTR < 64
- int sa_resv[1];
-#endif
- };
-
-/* Bits in `sa_flags'. */
-/* Please note that some Linux kernels versions use different values for these
- flags which is a bug in those kernel versions. */
-#define SA_NOCLDSTOP 0x00000001 /* Don't send SIGCHLD when children stop. */
-#define SA_NOCLDWAIT 0x00010000 /* Don't create zombie on child death. */
-#define SA_SIGINFO 0x00000008 /* Invoke signal-catching function with
- three arguments instead of one. */
-#if defined __USE_XOPEN_EXTENDED || defined __USE_MISC
-# define SA_ONSTACK 0x08000000 /* Use signal stack by using `sa_restorer'. */
-#endif
-#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
-# define SA_RESETHAND 0x80000000 /* Reset to SIG_DFL on entry to handler. */
-# define SA_RESTART 0x10000000 /* Restart syscall on signal return. */
-# define SA_NODEFER 0x40000000 /* Don't automatically block the signal when
- its handler is being executed. */
-#endif
-#ifdef __USE_MISC
-# define SA_INTERRUPT 0x20000000 /* Historical no-op. */
-
-/* Some aliases for the SA_ constants. */
-# define SA_NOMASK SA_NODEFER
-# define SA_ONESHOT SA_RESETHAND
-# define SA_STACK SA_ONSTACK
-#endif
-
-/* Values for the HOW argument to `sigprocmask'. */
-#define SIG_NOP 0 /* 0 is unused to catch errors */
-#define SIG_BLOCK 1 /* Block signals. */
-#define SIG_UNBLOCK 2 /* Unblock signals. */
-#define SIG_SETMASK 3 /* Set the set of blocked signals. */
-#ifdef __USE_MISC
-# define SIG_SETMASK32 256 /* Goodie from SGI for BSD compatibility:
- set only the low 32 bit of the sigset. */
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/sigcontext.h
@@ -1,82 +0,0 @@
-/* Copyright (C) 1996-2025 Free Software Foundation, Inc. This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGCONTEXT_H
-#define _BITS_SIGCONTEXT_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
-#endif
-
-#include <sgidefs.h>
-
-#if _MIPS_SIM == _ABIO32
-
-/* Certain unused fields were replaced with new ones in 2.6.12-rc4.
- The changes were as follows:
-
- sc_cause -> sc_hi1
- sc_badvaddr -> sc_lo1
- sc_sigset[0] -> sc_hi2
- sc_sigset[1] -> sc_lo2
- sc_sigset[2] -> sc_hi3
- sc_sigset[3] -> sc_lo3
-
- sc_regmask, sc_ownedfp and sc_fpc_eir are not used. */
-struct sigcontext {
- unsigned int sc_regmask;
- unsigned int sc_status;
- __extension__ unsigned long long sc_pc;
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- unsigned int sc_ownedfp;
- unsigned int sc_fpc_csr;
- unsigned int sc_fpc_eir;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_mdlo;
- unsigned long sc_hi1;
- unsigned long sc_lo1;
- unsigned long sc_hi2;
- unsigned long sc_lo2;
- unsigned long sc_hi3;
- unsigned long sc_lo3;
-};
-
-#else
-
-/* This structure changed in 2.6.12-rc4 when DSP support was added. */
-struct sigcontext {
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_hi1;
- __extension__ unsigned long long sc_hi2;
- __extension__ unsigned long long sc_hi3;
- __extension__ unsigned long long sc_mdlo;
- __extension__ unsigned long long sc_lo1;
- __extension__ unsigned long long sc_lo2;
- __extension__ unsigned long long sc_lo3;
- __extension__ unsigned long long sc_pc;
- unsigned int sc_fpc_csr;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- unsigned int sc_reserved;
-};
-
-#endif /* _MIPS_SIM != _ABIO32 */
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/siginfo-arch.h
@@ -1,13 +0,0 @@
-/* Architecture-specific adjustments to siginfo_t. MIPS version. */
-#ifndef _BITS_SIGINFO_ARCH_H
-#define _BITS_SIGINFO_ARCH_H 1
-
-/* MIPS has the si_code and si_errno fields in the opposite order from
- all other architectures. */
-#define __SI_ERRNO_THEN_CODE 0
-
-/* MIPS also has different values for SI_ASYNCIO, SI_MESGQ, and SI_TIMER
- than all other architectures. */
-#define __SI_ASYNCIO_AFTER_SIGIO 0
-
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/signalfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SIGNALFD_H
-# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
-#endif
-
-/* Flags for signalfd. */
-enum
- {
- SFD_CLOEXEC = 02000000,
-#define SFD_CLOEXEC SFD_CLOEXEC
- SFD_NONBLOCK = 00000200
-#define SFD_NONBLOCK SFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/signum-arch.h
@@ -1,65 +0,0 @@
-/* Signal number definitions. Linux/MIPS version.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGNUM_H
-#define _BITS_SIGNUM_H 1
-
-#ifndef _SIGNAL_H
-#error "Never include <bits/signum.h> directly; use <signal.h> instead."
-#endif
-
-/* Adjustments and additions to the signal number constants for
- Linux/MIPS. */
-
-#define SIGEMT 7 /* Emulator trap. */
-#define SIGPWR 19 /* Power failure imminent. */
-
-/* Historical signals specified by POSIX. */
-#define SIGBUS 10 /* Bus error. */
-#define SIGSYS 12 /* Bad system call. */
-
-/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
-#define SIGURG 21 /* Urgent data is available at a socket. */
-#define SIGSTOP 23 /* Stop, unblockable. */
-#define SIGTSTP 24 /* Keyboard stop. */
-#define SIGCONT 25 /* Continue. */
-#define SIGCHLD 18 /* Child terminated or stopped. */
-#define SIGTTIN 26 /* Background read from control terminal. */
-#define SIGTTOU 27 /* Background write to control terminal. */
-#define SIGPOLL 22 /* Pollable event occurred (System V). */
-#define SIGXCPU 30 /* CPU time limit exceeded. */
-#define SIGVTALRM 28 /* Virtual timer expired. */
-#define SIGPROF 29 /* Profiling timer expired. */
-#define SIGXFSZ 31 /* File size limit exceeded. */
-#define SIGUSR1 16 /* User-defined signal 1. */
-#define SIGUSR2 17 /* User-defined signal 2. */
-
-/* Nonstandard signals found in all modern POSIX systems
- (including both BSD and Linux). */
-#define SIGWINCH 20 /* Window size change (4.3 BSD, Sun). */
-
-/* Archaic names for compatibility. */
-#define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
-#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
-#define SIGCLD SIGCHLD /* Old System V name */
-
-/* By default no real-time signals are supported. */
-#define __SIGRTMIN 32
-#define __SIGRTMAX 127
-
-#endif /* <signal.h> included. */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/socket-constants.h
@@ -1,70 +0,0 @@
-/* Socket constants which vary among Linux architectures. Version for MIPS.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
-#endif
-
-#define SOL_SOCKET 65535
-#define SO_ACCEPTCONN 4105
-#define SO_BROADCAST 32
-#define SO_DONTROUTE 16
-#define SO_ERROR 4103
-#define SO_KEEPALIVE 8
-#define SO_LINGER 128
-#define SO_OOBINLINE 256
-#define SO_RCVBUF 4098
-#define SO_RCVLOWAT 4100
-#define SO_REUSEADDR 4
-#define SO_SNDBUF 4097
-#define SO_SNDLOWAT 4099
-#define SO_TYPE 4104
-
-#if __TIMESIZE == 64
-# define SO_RCVTIMEO 4102
-# define SO_SNDTIMEO 4101
-# define SO_TIMESTAMP 29
-# define SO_TIMESTAMPNS 35
-# define SO_TIMESTAMPING 37
-#else
-# define SO_RCVTIMEO_OLD 4102
-# define SO_SNDTIMEO_OLD 4101
-# define SO_RCVTIMEO_NEW 66
-# define SO_SNDTIMEO_NEW 67
-
-# 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
-
-# ifdef __USE_TIME64_REDIRECTS
-# define SO_RCVTIMEO SO_RCVTIMEO_NEW
-# define SO_SNDTIMEO SO_SNDTIMEO_NEW
-# define SO_TIMESTAMP SO_TIMESTAMP_NEW
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_NEW
-# define SO_TIMESTAMPING SO_TIMESTAMPING_NEW
-# else
-# define SO_RCVTIMEO SO_RCVTIMEO_OLD
-# define SO_SNDTIMEO SO_SNDTIMEO_OLD
-# define SO_TIMESTAMP SO_TIMESTAMP_OLD
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
-# define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
-# endif
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/socket_type.h
@@ -1,55 +0,0 @@
-/* Define enum __socket_type for Linux/MIPS.
- Copyright (C) 1991-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
-#endif
-
-/* Types of sockets. */
-enum __socket_type
-{
- SOCK_DGRAM = 1, /* Connectionless, unreliable datagrams
- of fixed maximum length. */
-#define SOCK_DGRAM SOCK_DGRAM
- SOCK_STREAM = 2, /* Sequenced, reliable, connection-based
- byte streams. */
-#define SOCK_STREAM SOCK_STREAM
- SOCK_RAW = 3, /* Raw protocol interface. */
-#define SOCK_RAW SOCK_RAW
- SOCK_RDM = 4, /* Reliably-delivered messages. */
-#define SOCK_RDM SOCK_RDM
- SOCK_SEQPACKET = 5, /* Sequenced, reliable, connection-based,
- datagrams of fixed maximum length. */
-#define SOCK_SEQPACKET SOCK_SEQPACKET
- SOCK_DCCP = 6,
-#define SOCK_DCCP SOCK_DCCP /* Datagram Congestion Control Protocol. */
- SOCK_PACKET = 10, /* Linux specific way of getting packets
- at the dev level. For writing rarp and
- other similar things on the user level. */
-#define SOCK_PACKET SOCK_PACKET
-
- /* Flags to be ORed into the type parameter of socket and socketpair and
- used for the flags parameter of paccept. */
-
- SOCK_CLOEXEC = 02000000, /* Atomically set close-on-exec flag for the
- new descriptor(s). */
-#define SOCK_CLOEXEC SOCK_CLOEXEC
- SOCK_NONBLOCK = 00000200 /* Atomically mark descriptor(s) as
- non-blocking. */
-#define SOCK_NONBLOCK SOCK_NONBLOCK
-};
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/statfs.h
@@ -1,73 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_STATFS_H
-# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
-#endif
-
-#include <bits/types.h> /* for __fsid_t and __fsblkcnt_t*/
-
-struct statfs
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
-#ifndef __USE_FILE_OFFSET64
- __fsblkcnt_t f_blocks;
- __fsblkcnt_t f_bfree;
- __fsblkcnt_t f_files;
- __fsblkcnt_t f_ffree;
- __fsblkcnt_t f_bavail;
-#else
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-#endif
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-
-#ifdef __USE_LARGEFILE64
-struct statfs64
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATFS_F_NAMELEN
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/struct_mutex.h
@@ -1,56 +0,0 @@
-/* MIPS internal mutex struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _THREAD_MUTEX_INTERNAL_H
-#define _THREAD_MUTEX_INTERNAL_H 1
-
-struct __pthread_mutex_s
-{
- int __lock;
- unsigned int __count;
- int __owner;
-#if _MIPS_SIM == _ABI64
- unsigned int __nusers;
-#endif
- /* KIND must stay at this position in the structure to maintain
- binary compatibility with static initializers. */
- int __kind;
-#if _MIPS_SIM == _ABI64
- int __spins;
- __pthread_list_t __list;
-# define __PTHREAD_MUTEX_HAVE_PREV 1
-#else
- unsigned int __nusers;
- __extension__ union
- {
- int __spins;
- __pthread_slist_t __list;
- };
-# define __PTHREAD_MUTEX_HAVE_PREV 0
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, 0, __kind, 0, { 0, 0 }
-#else
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, __kind, 0, { 0 }
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/struct_rwlock.h
@@ -1,71 +0,0 @@
-/* MIPS internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#if _MIPS_SIM == _ABI64
- int __cur_writer;
- int __shared;
- unsigned long int __pad1;
- unsigned long int __pad2;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned int __flags;
-# else
-# if __BYTE_ORDER == __BIG_ENDIAN
- unsigned char __pad1;
- unsigned char __pad2;
- unsigned char __shared;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
-# else
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- unsigned char __shared;
- unsigned char __pad1;
- unsigned char __pad2;
-# endif
- int __cur_writer;
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
-#else
-# if __BYTE_ORDER == __BIG_ENDIAN
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
-# else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
-# endif
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/termios-c_cc.h
@@ -1,43 +0,0 @@
-/* termios c_cc symbolic constant definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
-#endif
-
-/* c_cc characters */
-#define VINTR 0 /* Interrupt character [ISIG]. */
-#define VQUIT 1 /* Quit character [ISIG]. */
-#define VERASE 2 /* Erase character [ICANON]. */
-#define VKILL 3 /* Kill-line character [ICANON]. */
-#define VMIN 4 /* Minimum number of bytes read at once [!ICANON]. */
-#define VTIME 5 /* Time-out value (tenths of a second) [!ICANON]. */
-#define VEOL2 6 /* Second EOL character [ICANON]. */
-#define VSWTC 7
-#define VSWTCH VSWTC
-#define VSTART 8 /* Start (X-ON) character [IXON, IXOFF]. */
-#define VSTOP 9 /* Stop (X-OFF) character [IXON, IXOFF]. */
-#define VSUSP 10 /* Suspend character [ISIG]. */
- /* VDSUSP is not supported on Linux. */
-/* #define VDSUSP 11 / * Delayed suspend character [ISIG]. */
-#define VREPRINT 12 /* Reprint-line character [ICANON]. */
-#define VDISCARD 13 /* Discard character [IEXTEN]. */
-#define VWERASE 14 /* Word-erase character [ICANON]. */
-#define VLNEXT 15 /* Literal-next character [IEXTEN]. */
-#define VEOF 16 /* End-of-file character [ICANON]. */
-#define VEOL 17 /* End-of-line character [ICANON]. */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/termios-c_lflag.h
@@ -1,46 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_lflag bits */
-#define ISIG 0000001 /* Enable signals. */
-#define ICANON 0000002 /* Do erase and kill processing. */
-#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
-# define XCASE 0000004
-#endif
-#define ECHO 0000010 /* Enable echo. */
-#define ECHOE 0000020 /* Visual erase for ERASE. */
-#define ECHOK 0000040 /* Echo NL after KILL. */
-#define ECHONL 0000100 /* Echo NL even if ECHO is off. */
-#define NOFLSH 0000200 /* Disable flush after interrupt. */
-#define IEXTEN 0000400 /* Enable DISCARD and LNEXT. */
-#ifdef __USE_MISC
-# define ECHOCTL 0001000 /* Echo control characters as ^X. */
-# define ECHOPRT 0002000 /* Hardcopy visual erase. */
-# define ECHOKE 0004000 /* Visual erase for KILL. */
-# define FLUSHO 0020000
-# define PENDIN 0040000 /* Retype pending input (state). */
-#endif
-#define TOSTOP 0100000 /* Send SIGTTOU for background output. */
-#define ITOSTOP TOSTOP
-#ifdef __USE_MISC
-# define EXTPROC 0200000
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/termios-struct.h
@@ -1,34 +0,0 @@
-/* struct termios definition. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
-#endif
-
-#define NCCS 32
-struct termios
- {
- tcflag_t c_iflag; /* input mode flags */
- tcflag_t c_oflag; /* output mode flags */
- tcflag_t c_cflag; /* control mode flags */
- tcflag_t c_lflag; /* local mode flags */
- cc_t c_line; /* line discipline */
- cc_t c_cc[NCCS]; /* control characters */
-#define _HAVE_STRUCT_TERMIOS_C_ISPEED 0
-#define _HAVE_STRUCT_TERMIOS_C_OSPEED 0
- };
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/termios-tcflow.h
@@ -1,26 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
-#endif
-
-/* tcsetattr uses these */
-#define TCSANOW 0x540e /* Same as TCSETS; change immediately. */
-#define TCSADRAIN 0x540f /* Same as TCSETSW; change when pending output is written. */
-#define TCSAFLUSH 0x5410 /* Same as TCSETSF; flush pending input before changing. */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/timerfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2008-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_TIMERFD_H
-# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
-#endif
-
-/* Bits to be set in the FLAGS parameter of `timerfd_create'. */
-enum
- {
- TFD_CLOEXEC = 02000000,
-#define TFD_CLOEXEC TFD_CLOEXEC
- TFD_NONBLOCK = 00000200
-#define TFD_NONBLOCK TFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/typesizes.h
@@ -1,95 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. MIPS version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __UWORD_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#ifdef __LP64__
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for rlim_t and rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-
-/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
-# define __STATFS_MATCHES_STATFS64 1
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-
-# define __STATFS_MATCHES_STATFS64 0
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/ieee754.h
@@ -1,326 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-
-#ifndef __LDBL_MANT_DIG__
-# include <float.h>
-# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
-#endif
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#if __LDBL_MANT_DIG__ == 113
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-
-#elif __LDBL_MANT_DIG__ == 64
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:32;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee;
-
- /* This is for NaNs in the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int one:1;
- unsigned int quiet_nan:1;
- unsigned int mantissa0:30;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
-
-#elif __LDBL_MANT_DIG__ == 53
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#endif /* __LDBL_MANT_DIG__ == 53 */
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/types/stack_t.h
@@ -1,33 +0,0 @@
-/* Define stack_t. MIPS Linux version.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef __stack_t_defined
-#define __stack_t_defined 1
-
-#define __need_size_t
-#include <stddef.h>
-
-/* Structure describing a signal stack. */
-typedef struct
- {
- void *ss_sp;
- size_t ss_size;
- int ss_flags;
- } stack_t;
-
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/types/struct_msqid_ds.h
@@ -1,62 +0,0 @@
-/* Linux/MIPS implementation of the SysV message struct msqid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MSG_H
-# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
-#endif
-
-#include <bits/types/time_t.h>
-
-/* Structure of record for one message inside the kernel.
- The type `struct msg' is opaque. */
-struct msqid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_msqid64_ds_helper.h>
-#else
- struct ipc_perm msg_perm; /* structure describing operation permission */
-# if __TIMESIZE == 32
-# ifdef __MIPSEL__
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_stime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_ctime; /* time of last change */
- unsigned long int __msg_ctime_high;
-# else
- unsigned long int __msg_stime_high;
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_ctime_high;
- __time_t msg_ctime; /* time of last change */
-# endif
-# else
- __time_t msg_stime; /* time of last msgsnd command */
- __time_t msg_rtime; /* time of last msgsnd command */
- __time_t msg_ctime; /* time of last change */
-# endif
- __syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
- msgqnum_t msg_qnum; /* number of messages currently on queue */
- msglen_t msg_qbytes; /* max number of bytes allowed on queue */
- __pid_t msg_lspid; /* pid of last msgsnd() */
- __pid_t msg_lrpid; /* pid of last msgrcv() */
- __syscall_ulong_t __glibc_reserved4;
- __syscall_ulong_t __glibc_reserved5;
-#endif
-};
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/types/struct_semid_ds.h
@@ -1,36 +0,0 @@
-/* MIPS implementation of the semaphore struct semid_ds
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
-#endif
-
-/* Data structure describing a set of semaphores. */
-struct semid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_semid64_ds_helper.h>
-#else
- struct ipc_perm sem_perm; /* operation permission struct */
- __time_t sem_otime; /* last semop() time */
- __time_t sem_ctime; /* last time changed by semctl() */
- __syscall_ulong_t sem_nsems; /* number of semaphores in set */
- __syscall_ulong_t __sem_otime_high;
- __syscall_ulong_t __sem_ctime_high;
-#endif
-};
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/types/struct_shmid_ds.h
@@ -1,53 +0,0 @@
-/* Linux/MIPS implementation of the shared memory struct shmid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never include <bits/types/struct_shmid_ds.h> directly; use <sys/shm.h> instead."
-#endif
-
-/* Data structure describing a shared memory segment. */
-struct shmid_ds
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_shmid64_ds_helper.h>
-#else
- struct ipc_perm shm_perm; /* operation permission struct */
- size_t shm_segsz; /* size of segment in bytes */
-# if __TIMESIZE == 32
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# else
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# endif
- __pid_t shm_cpid; /* pid of creator */
- __pid_t shm_lpid; /* pid of last shmop */
- shmatt_t shm_nattch; /* number of current attaches */
-# if __TIMESIZE == 32
- unsigned short int __shm_atime_high;
- unsigned short int __shm_dtime_high;
- unsigned short int __shm_ctime_high;
- unsigned short int __glibc_reserved4;
-# else
- __syscall_ulong_t __glibc_reserved5;
- __syscall_ulong_t __glibc_reserved6;
-# endif
-#endif
- };
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/dlfcn.h
@@ -1,64 +0,0 @@
-/* System dependent definitions for run-time dynamic loading.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _DLFCN_H
-# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
-#endif
-
-/* The MODE argument to `dlopen' contains one of the following: */
-#define RTLD_LAZY 0x0001 /* Lazy function call binding. */
-#define RTLD_NOW 0x0002 /* Immediate function call binding. */
-#define RTLD_BINDING_MASK 0x3 /* Mask of binding time value. */
-#define RTLD_NOLOAD 0x00008 /* Do not load the object. */
-#define RTLD_DEEPBIND 0x00010 /* Use deep binding. */
-
-/* If the following bit is set in the MODE argument to `dlopen',
- the symbols of the loaded object and its dependencies are made
- visible as if the object were linked directly into the program. */
-#define RTLD_GLOBAL 0x0004
-
-/* Unix98 demands the following flag which is the inverse to RTLD_GLOBAL.
- The implementation does this by default and so we can define the
- value to zero. */
-#define RTLD_LOCAL 0
-
-/* Do not delete object when closed. */
-#define RTLD_NODELETE 0x01000
-
-#ifdef __USE_GNU
-/* To support profiling of shared objects it is a good idea to call
- the function found using `dlsym' using the following macro since
- these calls do not use the PLT. But this would mean the dynamic
- loader has no chance to find out when the function is called. The
- macro applies the necessary magic so that profiling is possible.
- Rewrite
- foo = (*fctp) (arg1, arg2);
- into
- foo = DL_CALL_FCT (fctp, (arg1, arg2));
-*/
-# define DL_CALL_FCT(fctp, args) \
- (_dl_mcount_wrapper_check ((void *) (fctp)), (*(fctp)) args)
-
-__BEGIN_DECLS
-
-/* This function calls the profiling functions. */
-extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
-
-__END_DECLS
-
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/errno.h
@@ -1,52 +0,0 @@
-/* Error constants. MIPS/Linux specific version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_ERRNO_H
-
-#if !defined _ERRNO_H
-# error "Never include <bits/errno.h> directly; use <errno.h> instead."
-#endif
-
-# include <linux/errno.h>
-
-/* Older Linux headers do not define these constants. */
-# ifndef ENOTSUP
-# define ENOTSUP EOPNOTSUPP
-# endif
-
-# ifndef ECANCELED
-# define ECANCELED 158
-# endif
-
-# ifndef EOWNERDEAD
-# define EOWNERDEAD 165
-# endif
-
-# ifndef ENOTRECOVERABLE
-# define ENOTRECOVERABLE 166
-# endif
-
-# ifndef ERFKILL
-# define ERFKILL 167
-# endif
-
-# ifndef EHWPOISON
-# define EHWPOISON 168
-# endif
-
-#endif /* bits/errno.h. */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/eventfd.h
@@ -1,31 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_EVENTFD_H
-# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
-#endif
-
-/* Flags for eventfd. */
-enum
- {
- EFD_SEMAPHORE = 00000001,
-#define EFD_SEMAPHORE EFD_SEMAPHORE
- EFD_CLOEXEC = 02000000,
-#define EFD_CLOEXEC EFD_CLOEXEC
- EFD_NONBLOCK = 00000200
-#define EFD_NONBLOCK EFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/floatn.h
@@ -1,97 +0,0 @@
-/* Macros to control TS 18661-3 glibc features on MIPS platforms.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_FLOATN_H
-#define _BITS_FLOATN_H
-
-#include <features.h>
-#include <bits/long-double.h>
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this
- glibc includes corresponding *f128 interfaces for it. */
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __HAVE_FLOAT128 1
-#else
-/* glibc does not support _Float128 for platforms where long double is
- normally binary128 when building with long double as binary64.
- GCC's default for supported scalar modes does not support it either
- in that case. */
-# define __HAVE_FLOAT128 0
-#endif
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#define __HAVE_DISTINCT_FLOAT128 0
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X __HAVE_FLOAT128
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-/* The literal suffix f128 exists only since GCC 7.0. */
-# define __f128(x) x##l
-# else
-# define __f128(x) x##f128
-# endif
-# endif
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-# define __CFLOAT128 _Complex long double
-# else
-# define __CFLOAT128 _Complex _Float128
-# endif
-# endif
-
-/* The remaining of this file provides support for older compilers. */
-# if __HAVE_FLOAT128
-
-/* The type _Float128 exists only since GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-typedef long double _Float128;
-# endif
-
-/* Various built-in functions do not exist before GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0)
-# define __builtin_huge_valf128() (__builtin_huge_vall ())
-# define __builtin_inff128() (__builtin_infl ())
-# define __builtin_nanf128(x) (__builtin_nanl (x))
-# define __builtin_nansf128(x) (__builtin_nansl (x))
-# endif
-
-# endif
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
-
-#endif /* _BITS_FLOATN_H */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/inotify.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_INOTIFY_H
-# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
-#endif
-
-/* Flags for the parameter of inotify_init1. */
-enum
- {
- IN_CLOEXEC = 02000000,
-#define IN_CLOEXEC IN_CLOEXEC
- IN_NONBLOCK = 00000200
-#define IN_NONBLOCK IN_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/ioctl-types.h
@@ -1,75 +0,0 @@
-/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IOCTL_H
-# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
-#endif
-
-/* Get definition of constants for use with `ioctl'. */
-#include <asm/ioctls.h>
-
-struct winsize
- {
- unsigned short int ws_row;
- unsigned short int ws_col;
- unsigned short int ws_xpixel;
- unsigned short int ws_ypixel;
- };
-
-#define NCC 8
-struct termio
- {
- unsigned short int c_iflag; /* input mode flags */
- unsigned short int c_oflag; /* output mode flags */
- unsigned short int c_cflag; /* control mode flags */
- unsigned short int c_lflag; /* local mode flags */
- char c_line; /* line discipline */
- /* Yes, this is really NCCS. */
- unsigned char c_cc[32 /* NCCS */]; /* control characters */
- };
-
-/* modem lines */
-#define TIOCM_LE 0x001 /* line enable */
-#define TIOCM_DTR 0x002 /* data terminal ready */
-#define TIOCM_RTS 0x004 /* request to send */
-#define TIOCM_ST 0x010 /* secondary transmit */
-#define TIOCM_SR 0x020 /* secondary receive */
-#define TIOCM_CTS 0x040 /* clear to send */
-#define TIOCM_CAR 0x100 /* carrier detect */
-#define TIOCM_CD TIOCM_CAR
-#define TIOCM_RNG 0x200 /* ring */
-#define TIOCM_RI TIOCM_RNG
-#define TIOCM_DSR 0x400 /* data set ready */
-
-/* line disciplines */
-#define N_TTY 0
-#define N_SLIP 1
-#define N_MOUSE 2
-#define N_PPP 3
-#define N_STRIP 4
-#define N_AX25 5
-#define N_X25 6 /* X.25 async */
-#define N_6PACK 7
-#define N_MASC 8 /* Mobitex module */
-#define N_R3964 9 /* Simatic R3964 module */
-#define N_PROFIBUS_FDL 10 /* Profibus */
-#define N_IRDA 11 /* Linux IR */
-#define N_SMSBLOCK 12 /* SMS block mode */
-#define N_HDLC 13 /* synchronous HDLC */
-#define N_SYNC_PPP 14 /* synchronous PPP */
-#define N_HCI 15 /* Bluetooth HCI UART */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/ipctypes.h
@@ -1,31 +0,0 @@
-/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/*
- * Never include <bits/ipctypes.h> directly.
- */
-
-#ifndef _BITS_IPCTYPES_H
-#define _BITS_IPCTYPES_H 1
-
-#include <bits/types.h>
-
-typedef __SLONG32_TYPE __ipc_pid_t;
-
-
-#endif /* bits/ipctypes.h */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/mman.h
@@ -1,44 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* The following definitions basically come from the kernel headers.
- But the kernel header is not namespace clean. */
-
-/* These are Linux-specific. */
-#define MAP_NORESERVE 0x0400 /* don't check for reservations */
-#define MAP_GROWSDOWN 0x1000 /* stack-like segment */
-#define MAP_DENYWRITE 0x2000 /* ETXTBSY */
-#define MAP_EXECUTABLE 0x4000 /* mark it as an executable */
-#define MAP_LOCKED 0x8000 /* pages are locked */
-#define MAP_POPULATE 0x10000 /* populate (prefault) pagetables */
-#define MAP_NONBLOCK 0x20000 /* do not block on IO */
-#define MAP_STACK 0x40000 /* Allocation is for a stack. */
-#define MAP_HUGETLB 0x80000 /* Create huge page mapping. */
-#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
- underlying mapping. */
-
-#define __MAP_ANONYMOUS 0x0800
-
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
-
-#define MAP_RENAME MAP_ANONYMOUS
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/poll.h
@@ -1,49 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_POLL_H
-# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
-#endif
-
-/* Event types that can be polled for. These bits may be set in `events'
- to indicate the interesting event types; they will appear in `revents'
- to indicate the status of the file descriptor. */
-#define POLLIN 0x001 /* There is data to read. */
-#define POLLPRI 0x002 /* There is urgent data to read. */
-#define POLLOUT 0x004 /* Writing now will not block. */
-
-#if defined __USE_XOPEN || defined __USE_XOPEN2K8
-/* These values are defined in XPG4.2. */
-# define POLLRDNORM 0x040 /* Normal data may be read. */
-# define POLLRDBAND 0x080 /* Priority data may be read. */
-# define POLLWRNORM POLLOUT /* Writing now will not block. */
-# define POLLWRBAND 0x100 /* Priority data may be written. */
-#endif
-
-#ifdef __USE_GNU
-/* These are extensions for Linux. */
-# define POLLMSG 0x400
-# define POLLREMOVE 0x1000
-# define POLLRDHUP 0x2000
-#endif
-
-/* Event types always implicitly polled for. These bits need not be set in
- `events', but they will appear in `revents' to indicate the status of
- the file descriptor. */
-#define POLLERR 0x008 /* Error condition. */
-#define POLLHUP 0x010 /* Hung up. */
-#define POLLNVAL 0x020 /* Invalid polling request. */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/pthread_stack_min.h
@@ -1,20 +0,0 @@
-/* Definition of PTHREAD_STACK_MIN. MIPS Linux version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Minimum size for a thread. At least two pages with 64k pages. */
-#define PTHREAD_STACK_MIN 131072
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/pthreadtypes-arch.h
@@ -1,44 +0,0 @@
-/* Machine-specific pthread type layouts. MIPS version.
- Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_PTHREADTYPES_ARCH_H
-#define _BITS_PTHREADTYPES_ARCH_H 1
-
-#include <bits/endian.h>
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_PTHREAD_ATTR_T 56
-# define __SIZEOF_PTHREAD_MUTEX_T 40
-# define __SIZEOF_PTHREAD_RWLOCK_T 56
-# define __SIZEOF_PTHREAD_BARRIER_T 32
-#else
-# define __SIZEOF_PTHREAD_ATTR_T 36
-# define __SIZEOF_PTHREAD_MUTEX_T 24
-# define __SIZEOF_PTHREAD_RWLOCK_T 32
-# define __SIZEOF_PTHREAD_BARRIER_T 20
-#endif
-#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
-#define __SIZEOF_PTHREAD_COND_T 48
-#define __SIZEOF_PTHREAD_CONDATTR_T 4
-#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
-
-#define __LOCK_ALIGNMENT
-#define __ONCE_ALIGNMENT
-
-#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/resource.h
@@ -1,231 +0,0 @@
-/* Bit values & structures for resource limits. Linux/MIPS version.
- Copyright (C) 1994-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RESOURCE_H
-# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
-#endif
-
-#include <bits/types.h>
-
-/* Transmute defines to enumerations. The macro re-definitions are
- necessary because some programs want to test for operating system
- features with #ifdef RUSAGE_SELF. In ISO C the reflexive
- definition is a no-op. */
-
-/* Kinds of resource limit. */
-enum __rlimit_resource
-{
- /* Per-process CPU limit, in seconds. */
- RLIMIT_CPU = 0,
-#define RLIMIT_CPU RLIMIT_CPU
-
- /* Largest file that can be created, in bytes. */
- RLIMIT_FSIZE = 1,
-#define RLIMIT_FSIZE RLIMIT_FSIZE
-
- /* Maximum size of data segment, in bytes. */
- RLIMIT_DATA = 2,
-#define RLIMIT_DATA RLIMIT_DATA
-
- /* Maximum size of stack segment, in bytes. */
- RLIMIT_STACK = 3,
-#define RLIMIT_STACK RLIMIT_STACK
-
- /* Largest core file that can be created, in bytes. */
- RLIMIT_CORE = 4,
-#define RLIMIT_CORE RLIMIT_CORE
-
- /* Largest resident set size, in bytes.
- This affects swapping; processes that are exceeding their
- resident set size will be more likely to have physical memory
- taken from them. */
- __RLIMIT_RSS = 7,
-#define RLIMIT_RSS __RLIMIT_RSS
-
- /* Number of open files. */
- RLIMIT_NOFILE = 5,
- __RLIMIT_OFILE = RLIMIT_NOFILE, /* BSD name for same. */
-#define RLIMIT_NOFILE RLIMIT_NOFILE
-#define RLIMIT_OFILE __RLIMIT_OFILE
-
- /* Address space limit (?) */
- RLIMIT_AS = 6,
-#define RLIMIT_AS RLIMIT_AS
-
- /* Number of processes. */
- __RLIMIT_NPROC = 8,
-#define RLIMIT_NPROC __RLIMIT_NPROC
-
- /* Locked-in-memory address space. */
- __RLIMIT_MEMLOCK = 9,
-#define RLIMIT_MEMLOCK __RLIMIT_MEMLOCK
-
- /* Maximum number of file locks. */
- __RLIMIT_LOCKS = 10,
-#define RLIMIT_LOCKS __RLIMIT_LOCKS
-
- /* Maximum number of pending signals. */
- __RLIMIT_SIGPENDING = 11,
-#define RLIMIT_SIGPENDING __RLIMIT_SIGPENDING
-
- /* Maximum bytes in POSIX message queues. */
- __RLIMIT_MSGQUEUE = 12,
-#define RLIMIT_MSGQUEUE __RLIMIT_MSGQUEUE
-
- /* Maximum nice priority allowed to raise to.
- Nice levels 19 .. -20 correspond to 0 .. 39
- values of this resource limit. */
- __RLIMIT_NICE = 13,
-#define RLIMIT_NICE __RLIMIT_NICE
-
- /* Maximum realtime priority allowed for non-priviledged
- processes. */
- __RLIMIT_RTPRIO = 14,
-#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
-
- /* Maximum CPU time in microseconds that a process scheduled under a real-time
- scheduling policy may consume without making a blocking system
- call before being forcibly descheduled. */
- __RLIMIT_RTTIME = 15,
-#define RLIMIT_RTTIME __RLIMIT_RTTIME
-
- __RLIMIT_NLIMITS = 16,
- __RLIM_NLIMITS = __RLIMIT_NLIMITS
-#define RLIMIT_NLIMITS __RLIMIT_NLIMITS
-#define RLIM_NLIMITS __RLIM_NLIMITS
-};
-
-/* Value to indicate that there is no limit. */
-#if _MIPS_SIM == _ABI64
-/* The N64 syscall uses this value. */
-# define RLIM_INFINITY 0xffffffffffffffffUL
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffUL
-# endif
-#else
-/* The O32 and N32 syscalls use 0x7fffffff. */
-# ifndef __USE_FILE_OFFSET64
-# define RLIM_INFINITY ((long int)(~0UL >> 1))
-# else
-# define RLIM_INFINITY 0xffffffffffffffffULL
-# endif
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffULL
-# endif
-#endif
-
-/* We can represent all limits. */
-#define RLIM_SAVED_MAX RLIM_INFINITY
-#define RLIM_SAVED_CUR RLIM_INFINITY
-
-
-/* Type for resource quantity measurement. */
-#ifndef __USE_FILE_OFFSET64
-typedef __rlim_t rlim_t;
-#else
-typedef __rlim64_t rlim_t;
-#endif
-#ifdef __USE_LARGEFILE64
-typedef __rlim64_t rlim64_t;
-#endif
-
-struct rlimit
- {
- /* The current (soft) limit. */
- rlim_t rlim_cur;
- /* The hard limit. */
- rlim_t rlim_max;
- };
-
-#ifdef __USE_LARGEFILE64
-struct rlimit64
- {
- /* The current (soft) limit. */
- rlim64_t rlim_cur;
- /* The hard limit. */
- rlim64_t rlim_max;
- };
-#endif
-
-/* Whose usage statistics do you want? */
-enum __rusage_who
-{
- /* The calling process. */
- RUSAGE_SELF = 0,
-#define RUSAGE_SELF RUSAGE_SELF
-
- /* All of its terminated child processes. */
- RUSAGE_CHILDREN = -1
-#define RUSAGE_CHILDREN RUSAGE_CHILDREN
-
-#ifdef __USE_GNU
- ,
- /* The calling thread. */
- RUSAGE_THREAD = 1
-# define RUSAGE_THREAD RUSAGE_THREAD
- /* Name for the same functionality on Solaris. */
-# define RUSAGE_LWP RUSAGE_THREAD
-#endif
-};
-
-#include <bits/types/struct_timeval.h>
-#include <bits/types/struct_rusage.h>
-
-/* Priority limits. */
-#define PRIO_MIN -20 /* Minimum priority a process can have. */
-#define PRIO_MAX 20 /* Maximum priority a process can have. */
-
-/* The type of the WHICH argument to `getpriority' and `setpriority',
- indicating what flavor of entity the WHO argument specifies. */
-enum __priority_which
-{
- PRIO_PROCESS = 0, /* WHO is a process ID. */
-#define PRIO_PROCESS PRIO_PROCESS
- PRIO_PGRP = 1, /* WHO is a process group ID. */
-#define PRIO_PGRP PRIO_PGRP
- PRIO_USER = 2 /* WHO is a user ID. */
-#define PRIO_USER PRIO_USER
-};
-
-
-__BEGIN_DECLS
-
-#ifdef __USE_GNU
-/* Modify and return resource limits of a process atomically. */
-# ifndef __USE_FILE_OFFSET64
-extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit) __THROW;
-# else
-# ifdef __REDIRECT_NTH
-extern int __REDIRECT_NTH (prlimit, (__pid_t __pid,
- enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit), prlimit64);
-# else
-# define prlimit prlimit64
-# endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int prlimit64 (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit64 *__new_limit,
- struct rlimit64 *__old_limit) __THROW;
-# endif
-#endif
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/semaphore.h
@@ -1,36 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SEMAPHORE_H
-# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
-#endif
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_SEM_T 32
-#else
-# define __SIZEOF_SEM_T 16
-#endif
-
-/* Value returned if `sem_open' failed. */
-#define SEM_FAILED ((sem_t *) 0)
-
-
-typedef union
-{
- char __size[__SIZEOF_SEM_T];
- long int __align;
-} sem_t;
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/shmlba.h
@@ -1,24 +0,0 @@
-/* Define SHMLBA. MIPS version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
-#endif
-
-/* Segment low boundary address multiple. */
-#define SHMLBA 0x40000
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/sigaction.h
@@ -1,94 +0,0 @@
-/* The proper definitions for Linux/MIPS's sigaction.
- Copyright (C) 1993-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGACTION_H
-#define _BITS_SIGACTION_H 1
-
-#ifndef _SIGNAL_H
-# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
-#endif
-
-/* Structure describing the action to be taken when a signal arrives. */
-struct sigaction
- {
- /* Special flags. */
- int sa_flags;
-
- /* Signal handler. */
-#if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED
- union
- {
- /* Used if SA_SIGINFO is not set. */
- __sighandler_t sa_handler;
- /* Used if SA_SIGINFO is set. */
- void (*sa_sigaction) (int, siginfo_t *, void *);
- }
- __sigaction_handler;
-# define sa_handler __sigaction_handler.sa_handler
-# define sa_sigaction __sigaction_handler.sa_sigaction
-#else
- __sighandler_t sa_handler;
-#endif
- /* Additional set of signals to be blocked. */
- __sigset_t sa_mask;
-
- /* The ABI says here are two unused ints following. */
- /* Restore handler. */
- void (*sa_restorer) (void);
-
-#if _MIPS_SZPTR < 64
- int sa_resv[1];
-#endif
- };
-
-/* Bits in `sa_flags'. */
-/* Please note that some Linux kernels versions use different values for these
- flags which is a bug in those kernel versions. */
-#define SA_NOCLDSTOP 0x00000001 /* Don't send SIGCHLD when children stop. */
-#define SA_NOCLDWAIT 0x00010000 /* Don't create zombie on child death. */
-#define SA_SIGINFO 0x00000008 /* Invoke signal-catching function with
- three arguments instead of one. */
-#if defined __USE_XOPEN_EXTENDED || defined __USE_MISC
-# define SA_ONSTACK 0x08000000 /* Use signal stack by using `sa_restorer'. */
-#endif
-#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
-# define SA_RESETHAND 0x80000000 /* Reset to SIG_DFL on entry to handler. */
-# define SA_RESTART 0x10000000 /* Restart syscall on signal return. */
-# define SA_NODEFER 0x40000000 /* Don't automatically block the signal when
- its handler is being executed. */
-#endif
-#ifdef __USE_MISC
-# define SA_INTERRUPT 0x20000000 /* Historical no-op. */
-
-/* Some aliases for the SA_ constants. */
-# define SA_NOMASK SA_NODEFER
-# define SA_ONESHOT SA_RESETHAND
-# define SA_STACK SA_ONSTACK
-#endif
-
-/* Values for the HOW argument to `sigprocmask'. */
-#define SIG_NOP 0 /* 0 is unused to catch errors */
-#define SIG_BLOCK 1 /* Block signals. */
-#define SIG_UNBLOCK 2 /* Unblock signals. */
-#define SIG_SETMASK 3 /* Set the set of blocked signals. */
-#ifdef __USE_MISC
-# define SIG_SETMASK32 256 /* Goodie from SGI for BSD compatibility:
- set only the low 32 bit of the sigset. */
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/sigcontext.h
@@ -1,82 +0,0 @@
-/* Copyright (C) 1996-2025 Free Software Foundation, Inc. This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGCONTEXT_H
-#define _BITS_SIGCONTEXT_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
-#endif
-
-#include <sgidefs.h>
-
-#if _MIPS_SIM == _ABIO32
-
-/* Certain unused fields were replaced with new ones in 2.6.12-rc4.
- The changes were as follows:
-
- sc_cause -> sc_hi1
- sc_badvaddr -> sc_lo1
- sc_sigset[0] -> sc_hi2
- sc_sigset[1] -> sc_lo2
- sc_sigset[2] -> sc_hi3
- sc_sigset[3] -> sc_lo3
-
- sc_regmask, sc_ownedfp and sc_fpc_eir are not used. */
-struct sigcontext {
- unsigned int sc_regmask;
- unsigned int sc_status;
- __extension__ unsigned long long sc_pc;
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- unsigned int sc_ownedfp;
- unsigned int sc_fpc_csr;
- unsigned int sc_fpc_eir;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_mdlo;
- unsigned long sc_hi1;
- unsigned long sc_lo1;
- unsigned long sc_hi2;
- unsigned long sc_lo2;
- unsigned long sc_hi3;
- unsigned long sc_lo3;
-};
-
-#else
-
-/* This structure changed in 2.6.12-rc4 when DSP support was added. */
-struct sigcontext {
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_hi1;
- __extension__ unsigned long long sc_hi2;
- __extension__ unsigned long long sc_hi3;
- __extension__ unsigned long long sc_mdlo;
- __extension__ unsigned long long sc_lo1;
- __extension__ unsigned long long sc_lo2;
- __extension__ unsigned long long sc_lo3;
- __extension__ unsigned long long sc_pc;
- unsigned int sc_fpc_csr;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- unsigned int sc_reserved;
-};
-
-#endif /* _MIPS_SIM != _ABIO32 */
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/siginfo-arch.h
@@ -1,13 +0,0 @@
-/* Architecture-specific adjustments to siginfo_t. MIPS version. */
-#ifndef _BITS_SIGINFO_ARCH_H
-#define _BITS_SIGINFO_ARCH_H 1
-
-/* MIPS has the si_code and si_errno fields in the opposite order from
- all other architectures. */
-#define __SI_ERRNO_THEN_CODE 0
-
-/* MIPS also has different values for SI_ASYNCIO, SI_MESGQ, and SI_TIMER
- than all other architectures. */
-#define __SI_ASYNCIO_AFTER_SIGIO 0
-
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/signalfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SIGNALFD_H
-# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
-#endif
-
-/* Flags for signalfd. */
-enum
- {
- SFD_CLOEXEC = 02000000,
-#define SFD_CLOEXEC SFD_CLOEXEC
- SFD_NONBLOCK = 00000200
-#define SFD_NONBLOCK SFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/signum-arch.h
@@ -1,65 +0,0 @@
-/* Signal number definitions. Linux/MIPS version.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGNUM_H
-#define _BITS_SIGNUM_H 1
-
-#ifndef _SIGNAL_H
-#error "Never include <bits/signum.h> directly; use <signal.h> instead."
-#endif
-
-/* Adjustments and additions to the signal number constants for
- Linux/MIPS. */
-
-#define SIGEMT 7 /* Emulator trap. */
-#define SIGPWR 19 /* Power failure imminent. */
-
-/* Historical signals specified by POSIX. */
-#define SIGBUS 10 /* Bus error. */
-#define SIGSYS 12 /* Bad system call. */
-
-/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
-#define SIGURG 21 /* Urgent data is available at a socket. */
-#define SIGSTOP 23 /* Stop, unblockable. */
-#define SIGTSTP 24 /* Keyboard stop. */
-#define SIGCONT 25 /* Continue. */
-#define SIGCHLD 18 /* Child terminated or stopped. */
-#define SIGTTIN 26 /* Background read from control terminal. */
-#define SIGTTOU 27 /* Background write to control terminal. */
-#define SIGPOLL 22 /* Pollable event occurred (System V). */
-#define SIGXCPU 30 /* CPU time limit exceeded. */
-#define SIGVTALRM 28 /* Virtual timer expired. */
-#define SIGPROF 29 /* Profiling timer expired. */
-#define SIGXFSZ 31 /* File size limit exceeded. */
-#define SIGUSR1 16 /* User-defined signal 1. */
-#define SIGUSR2 17 /* User-defined signal 2. */
-
-/* Nonstandard signals found in all modern POSIX systems
- (including both BSD and Linux). */
-#define SIGWINCH 20 /* Window size change (4.3 BSD, Sun). */
-
-/* Archaic names for compatibility. */
-#define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
-#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
-#define SIGCLD SIGCHLD /* Old System V name */
-
-/* By default no real-time signals are supported. */
-#define __SIGRTMIN 32
-#define __SIGRTMAX 127
-
-#endif /* <signal.h> included. */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/socket-constants.h
@@ -1,70 +0,0 @@
-/* Socket constants which vary among Linux architectures. Version for MIPS.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
-#endif
-
-#define SOL_SOCKET 65535
-#define SO_ACCEPTCONN 4105
-#define SO_BROADCAST 32
-#define SO_DONTROUTE 16
-#define SO_ERROR 4103
-#define SO_KEEPALIVE 8
-#define SO_LINGER 128
-#define SO_OOBINLINE 256
-#define SO_RCVBUF 4098
-#define SO_RCVLOWAT 4100
-#define SO_REUSEADDR 4
-#define SO_SNDBUF 4097
-#define SO_SNDLOWAT 4099
-#define SO_TYPE 4104
-
-#if __TIMESIZE == 64
-# define SO_RCVTIMEO 4102
-# define SO_SNDTIMEO 4101
-# define SO_TIMESTAMP 29
-# define SO_TIMESTAMPNS 35
-# define SO_TIMESTAMPING 37
-#else
-# define SO_RCVTIMEO_OLD 4102
-# define SO_SNDTIMEO_OLD 4101
-# define SO_RCVTIMEO_NEW 66
-# define SO_SNDTIMEO_NEW 67
-
-# 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
-
-# ifdef __USE_TIME64_REDIRECTS
-# define SO_RCVTIMEO SO_RCVTIMEO_NEW
-# define SO_SNDTIMEO SO_SNDTIMEO_NEW
-# define SO_TIMESTAMP SO_TIMESTAMP_NEW
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_NEW
-# define SO_TIMESTAMPING SO_TIMESTAMPING_NEW
-# else
-# define SO_RCVTIMEO SO_RCVTIMEO_OLD
-# define SO_SNDTIMEO SO_SNDTIMEO_OLD
-# define SO_TIMESTAMP SO_TIMESTAMP_OLD
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
-# define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
-# endif
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/socket_type.h
@@ -1,55 +0,0 @@
-/* Define enum __socket_type for Linux/MIPS.
- Copyright (C) 1991-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
-#endif
-
-/* Types of sockets. */
-enum __socket_type
-{
- SOCK_DGRAM = 1, /* Connectionless, unreliable datagrams
- of fixed maximum length. */
-#define SOCK_DGRAM SOCK_DGRAM
- SOCK_STREAM = 2, /* Sequenced, reliable, connection-based
- byte streams. */
-#define SOCK_STREAM SOCK_STREAM
- SOCK_RAW = 3, /* Raw protocol interface. */
-#define SOCK_RAW SOCK_RAW
- SOCK_RDM = 4, /* Reliably-delivered messages. */
-#define SOCK_RDM SOCK_RDM
- SOCK_SEQPACKET = 5, /* Sequenced, reliable, connection-based,
- datagrams of fixed maximum length. */
-#define SOCK_SEQPACKET SOCK_SEQPACKET
- SOCK_DCCP = 6,
-#define SOCK_DCCP SOCK_DCCP /* Datagram Congestion Control Protocol. */
- SOCK_PACKET = 10, /* Linux specific way of getting packets
- at the dev level. For writing rarp and
- other similar things on the user level. */
-#define SOCK_PACKET SOCK_PACKET
-
- /* Flags to be ORed into the type parameter of socket and socketpair and
- used for the flags parameter of paccept. */
-
- SOCK_CLOEXEC = 02000000, /* Atomically set close-on-exec flag for the
- new descriptor(s). */
-#define SOCK_CLOEXEC SOCK_CLOEXEC
- SOCK_NONBLOCK = 00000200 /* Atomically mark descriptor(s) as
- non-blocking. */
-#define SOCK_NONBLOCK SOCK_NONBLOCK
-};
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/statfs.h
@@ -1,73 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_STATFS_H
-# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
-#endif
-
-#include <bits/types.h> /* for __fsid_t and __fsblkcnt_t*/
-
-struct statfs
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
-#ifndef __USE_FILE_OFFSET64
- __fsblkcnt_t f_blocks;
- __fsblkcnt_t f_bfree;
- __fsblkcnt_t f_files;
- __fsblkcnt_t f_ffree;
- __fsblkcnt_t f_bavail;
-#else
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-#endif
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-
-#ifdef __USE_LARGEFILE64
-struct statfs64
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATFS_F_NAMELEN
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/struct_mutex.h
@@ -1,56 +0,0 @@
-/* MIPS internal mutex struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _THREAD_MUTEX_INTERNAL_H
-#define _THREAD_MUTEX_INTERNAL_H 1
-
-struct __pthread_mutex_s
-{
- int __lock;
- unsigned int __count;
- int __owner;
-#if _MIPS_SIM == _ABI64
- unsigned int __nusers;
-#endif
- /* KIND must stay at this position in the structure to maintain
- binary compatibility with static initializers. */
- int __kind;
-#if _MIPS_SIM == _ABI64
- int __spins;
- __pthread_list_t __list;
-# define __PTHREAD_MUTEX_HAVE_PREV 1
-#else
- unsigned int __nusers;
- __extension__ union
- {
- int __spins;
- __pthread_slist_t __list;
- };
-# define __PTHREAD_MUTEX_HAVE_PREV 0
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, 0, __kind, 0, { 0, 0 }
-#else
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, __kind, 0, { 0 }
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/struct_rwlock.h
@@ -1,71 +0,0 @@
-/* MIPS internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#if _MIPS_SIM == _ABI64
- int __cur_writer;
- int __shared;
- unsigned long int __pad1;
- unsigned long int __pad2;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned int __flags;
-# else
-# if __BYTE_ORDER == __BIG_ENDIAN
- unsigned char __pad1;
- unsigned char __pad2;
- unsigned char __shared;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
-# else
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- unsigned char __shared;
- unsigned char __pad1;
- unsigned char __pad2;
-# endif
- int __cur_writer;
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
-#else
-# if __BYTE_ORDER == __BIG_ENDIAN
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
-# else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
-# endif
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/termios-c_cc.h
@@ -1,43 +0,0 @@
-/* termios c_cc symbolic constant definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
-#endif
-
-/* c_cc characters */
-#define VINTR 0 /* Interrupt character [ISIG]. */
-#define VQUIT 1 /* Quit character [ISIG]. */
-#define VERASE 2 /* Erase character [ICANON]. */
-#define VKILL 3 /* Kill-line character [ICANON]. */
-#define VMIN 4 /* Minimum number of bytes read at once [!ICANON]. */
-#define VTIME 5 /* Time-out value (tenths of a second) [!ICANON]. */
-#define VEOL2 6 /* Second EOL character [ICANON]. */
-#define VSWTC 7
-#define VSWTCH VSWTC
-#define VSTART 8 /* Start (X-ON) character [IXON, IXOFF]. */
-#define VSTOP 9 /* Stop (X-OFF) character [IXON, IXOFF]. */
-#define VSUSP 10 /* Suspend character [ISIG]. */
- /* VDSUSP is not supported on Linux. */
-/* #define VDSUSP 11 / * Delayed suspend character [ISIG]. */
-#define VREPRINT 12 /* Reprint-line character [ICANON]. */
-#define VDISCARD 13 /* Discard character [IEXTEN]. */
-#define VWERASE 14 /* Word-erase character [ICANON]. */
-#define VLNEXT 15 /* Literal-next character [IEXTEN]. */
-#define VEOF 16 /* End-of-file character [ICANON]. */
-#define VEOL 17 /* End-of-line character [ICANON]. */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/termios-c_lflag.h
@@ -1,46 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_lflag bits */
-#define ISIG 0000001 /* Enable signals. */
-#define ICANON 0000002 /* Do erase and kill processing. */
-#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
-# define XCASE 0000004
-#endif
-#define ECHO 0000010 /* Enable echo. */
-#define ECHOE 0000020 /* Visual erase for ERASE. */
-#define ECHOK 0000040 /* Echo NL after KILL. */
-#define ECHONL 0000100 /* Echo NL even if ECHO is off. */
-#define NOFLSH 0000200 /* Disable flush after interrupt. */
-#define IEXTEN 0000400 /* Enable DISCARD and LNEXT. */
-#ifdef __USE_MISC
-# define ECHOCTL 0001000 /* Echo control characters as ^X. */
-# define ECHOPRT 0002000 /* Hardcopy visual erase. */
-# define ECHOKE 0004000 /* Visual erase for KILL. */
-# define FLUSHO 0020000
-# define PENDIN 0040000 /* Retype pending input (state). */
-#endif
-#define TOSTOP 0100000 /* Send SIGTTOU for background output. */
-#define ITOSTOP TOSTOP
-#ifdef __USE_MISC
-# define EXTPROC 0200000
-#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/termios-struct.h
@@ -1,34 +0,0 @@
-/* struct termios definition. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
-#endif
-
-#define NCCS 32
-struct termios
- {
- tcflag_t c_iflag; /* input mode flags */
- tcflag_t c_oflag; /* output mode flags */
- tcflag_t c_cflag; /* control mode flags */
- tcflag_t c_lflag; /* local mode flags */
- cc_t c_line; /* line discipline */
- cc_t c_cc[NCCS]; /* control characters */
-#define _HAVE_STRUCT_TERMIOS_C_ISPEED 0
-#define _HAVE_STRUCT_TERMIOS_C_OSPEED 0
- };
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/termios-tcflow.h
@@ -1,26 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
-#endif
-
-/* tcsetattr uses these */
-#define TCSANOW 0x540e /* Same as TCSETS; change immediately. */
-#define TCSADRAIN 0x540f /* Same as TCSETSW; change when pending output is written. */
-#define TCSAFLUSH 0x5410 /* Same as TCSETSF; flush pending input before changing. */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/timerfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2008-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_TIMERFD_H
-# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
-#endif
-
-/* Bits to be set in the FLAGS parameter of `timerfd_create'. */
-enum
- {
- TFD_CLOEXEC = 02000000,
-#define TFD_CLOEXEC TFD_CLOEXEC
- TFD_NONBLOCK = 00000200
-#define TFD_NONBLOCK TFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/typesizes.h
@@ -1,95 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. MIPS version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __UWORD_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#ifdef __LP64__
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for rlim_t and rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-
-/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
-# define __STATFS_MATCHES_STATFS64 1
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-
-# define __STATFS_MATCHES_STATFS64 0
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/ieee754.h
@@ -1,326 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-
-#ifndef __LDBL_MANT_DIG__
-# include <float.h>
-# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
-#endif
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#if __LDBL_MANT_DIG__ == 113
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-
-#elif __LDBL_MANT_DIG__ == 64
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:32;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee;
-
- /* This is for NaNs in the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int one:1;
- unsigned int quiet_nan:1;
- unsigned int mantissa0:30;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
-
-#elif __LDBL_MANT_DIG__ == 53
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#endif /* __LDBL_MANT_DIG__ == 53 */
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/types/stack_t.h
@@ -1,33 +0,0 @@
-/* Define stack_t. MIPS Linux version.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef __stack_t_defined
-#define __stack_t_defined 1
-
-#define __need_size_t
-#include <stddef.h>
-
-/* Structure describing a signal stack. */
-typedef struct
- {
- void *ss_sp;
- size_t ss_size;
- int ss_flags;
- } stack_t;
-
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/types/struct_msqid_ds.h
@@ -1,62 +0,0 @@
-/* Linux/MIPS implementation of the SysV message struct msqid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MSG_H
-# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
-#endif
-
-#include <bits/types/time_t.h>
-
-/* Structure of record for one message inside the kernel.
- The type `struct msg' is opaque. */
-struct msqid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_msqid64_ds_helper.h>
-#else
- struct ipc_perm msg_perm; /* structure describing operation permission */
-# if __TIMESIZE == 32
-# ifdef __MIPSEL__
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_stime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_ctime; /* time of last change */
- unsigned long int __msg_ctime_high;
-# else
- unsigned long int __msg_stime_high;
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_ctime_high;
- __time_t msg_ctime; /* time of last change */
-# endif
-# else
- __time_t msg_stime; /* time of last msgsnd command */
- __time_t msg_rtime; /* time of last msgsnd command */
- __time_t msg_ctime; /* time of last change */
-# endif
- __syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
- msgqnum_t msg_qnum; /* number of messages currently on queue */
- msglen_t msg_qbytes; /* max number of bytes allowed on queue */
- __pid_t msg_lspid; /* pid of last msgsnd() */
- __pid_t msg_lrpid; /* pid of last msgrcv() */
- __syscall_ulong_t __glibc_reserved4;
- __syscall_ulong_t __glibc_reserved5;
-#endif
-};
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/types/struct_semid_ds.h
@@ -1,36 +0,0 @@
-/* MIPS implementation of the semaphore struct semid_ds
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
-#endif
-
-/* Data structure describing a set of semaphores. */
-struct semid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_semid64_ds_helper.h>
-#else
- struct ipc_perm sem_perm; /* operation permission struct */
- __time_t sem_otime; /* last semop() time */
- __time_t sem_ctime; /* last time changed by semctl() */
- __syscall_ulong_t sem_nsems; /* number of semaphores in set */
- __syscall_ulong_t __sem_otime_high;
- __syscall_ulong_t __sem_ctime_high;
-#endif
-};
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/types/struct_shmid_ds.h
@@ -1,53 +0,0 @@
-/* Linux/MIPS implementation of the shared memory struct shmid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never include <bits/types/struct_shmid_ds.h> directly; use <sys/shm.h> instead."
-#endif
-
-/* Data structure describing a shared memory segment. */
-struct shmid_ds
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_shmid64_ds_helper.h>
-#else
- struct ipc_perm shm_perm; /* operation permission struct */
- size_t shm_segsz; /* size of segment in bytes */
-# if __TIMESIZE == 32
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# else
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# endif
- __pid_t shm_cpid; /* pid of creator */
- __pid_t shm_lpid; /* pid of last shmop */
- shmatt_t shm_nattch; /* number of current attaches */
-# if __TIMESIZE == 32
- unsigned short int __shm_atime_high;
- unsigned short int __shm_dtime_high;
- unsigned short int __shm_ctime_high;
- unsigned short int __glibc_reserved4;
-# else
- __syscall_ulong_t __glibc_reserved5;
- __syscall_ulong_t __glibc_reserved6;
-# endif
-#endif
- };
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/dlfcn.h
@@ -1,64 +0,0 @@
-/* System dependent definitions for run-time dynamic loading.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _DLFCN_H
-# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
-#endif
-
-/* The MODE argument to `dlopen' contains one of the following: */
-#define RTLD_LAZY 0x0001 /* Lazy function call binding. */
-#define RTLD_NOW 0x0002 /* Immediate function call binding. */
-#define RTLD_BINDING_MASK 0x3 /* Mask of binding time value. */
-#define RTLD_NOLOAD 0x00008 /* Do not load the object. */
-#define RTLD_DEEPBIND 0x00010 /* Use deep binding. */
-
-/* If the following bit is set in the MODE argument to `dlopen',
- the symbols of the loaded object and its dependencies are made
- visible as if the object were linked directly into the program. */
-#define RTLD_GLOBAL 0x0004
-
-/* Unix98 demands the following flag which is the inverse to RTLD_GLOBAL.
- The implementation does this by default and so we can define the
- value to zero. */
-#define RTLD_LOCAL 0
-
-/* Do not delete object when closed. */
-#define RTLD_NODELETE 0x01000
-
-#ifdef __USE_GNU
-/* To support profiling of shared objects it is a good idea to call
- the function found using `dlsym' using the following macro since
- these calls do not use the PLT. But this would mean the dynamic
- loader has no chance to find out when the function is called. The
- macro applies the necessary magic so that profiling is possible.
- Rewrite
- foo = (*fctp) (arg1, arg2);
- into
- foo = DL_CALL_FCT (fctp, (arg1, arg2));
-*/
-# define DL_CALL_FCT(fctp, args) \
- (_dl_mcount_wrapper_check ((void *) (fctp)), (*(fctp)) args)
-
-__BEGIN_DECLS
-
-/* This function calls the profiling functions. */
-extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
-
-__END_DECLS
-
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/errno.h
@@ -1,52 +0,0 @@
-/* Error constants. MIPS/Linux specific version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_ERRNO_H
-
-#if !defined _ERRNO_H
-# error "Never include <bits/errno.h> directly; use <errno.h> instead."
-#endif
-
-# include <linux/errno.h>
-
-/* Older Linux headers do not define these constants. */
-# ifndef ENOTSUP
-# define ENOTSUP EOPNOTSUPP
-# endif
-
-# ifndef ECANCELED
-# define ECANCELED 158
-# endif
-
-# ifndef EOWNERDEAD
-# define EOWNERDEAD 165
-# endif
-
-# ifndef ENOTRECOVERABLE
-# define ENOTRECOVERABLE 166
-# endif
-
-# ifndef ERFKILL
-# define ERFKILL 167
-# endif
-
-# ifndef EHWPOISON
-# define EHWPOISON 168
-# endif
-
-#endif /* bits/errno.h. */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/eventfd.h
@@ -1,31 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_EVENTFD_H
-# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
-#endif
-
-/* Flags for eventfd. */
-enum
- {
- EFD_SEMAPHORE = 00000001,
-#define EFD_SEMAPHORE EFD_SEMAPHORE
- EFD_CLOEXEC = 02000000,
-#define EFD_CLOEXEC EFD_CLOEXEC
- EFD_NONBLOCK = 00000200
-#define EFD_NONBLOCK EFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/floatn.h
@@ -1,97 +0,0 @@
-/* Macros to control TS 18661-3 glibc features on MIPS platforms.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_FLOATN_H
-#define _BITS_FLOATN_H
-
-#include <features.h>
-#include <bits/long-double.h>
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this
- glibc includes corresponding *f128 interfaces for it. */
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __HAVE_FLOAT128 1
-#else
-/* glibc does not support _Float128 for platforms where long double is
- normally binary128 when building with long double as binary64.
- GCC's default for supported scalar modes does not support it either
- in that case. */
-# define __HAVE_FLOAT128 0
-#endif
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#define __HAVE_DISTINCT_FLOAT128 0
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X __HAVE_FLOAT128
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-/* The literal suffix f128 exists only since GCC 7.0. */
-# define __f128(x) x##l
-# else
-# define __f128(x) x##f128
-# endif
-# endif
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-# define __CFLOAT128 _Complex long double
-# else
-# define __CFLOAT128 _Complex _Float128
-# endif
-# endif
-
-/* The remaining of this file provides support for older compilers. */
-# if __HAVE_FLOAT128
-
-/* The type _Float128 exists only since GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-typedef long double _Float128;
-# endif
-
-/* Various built-in functions do not exist before GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0)
-# define __builtin_huge_valf128() (__builtin_huge_vall ())
-# define __builtin_inff128() (__builtin_infl ())
-# define __builtin_nanf128(x) (__builtin_nanl (x))
-# define __builtin_nansf128(x) (__builtin_nansl (x))
-# endif
-
-# endif
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
-
-#endif /* _BITS_FLOATN_H */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/inotify.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_INOTIFY_H
-# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
-#endif
-
-/* Flags for the parameter of inotify_init1. */
-enum
- {
- IN_CLOEXEC = 02000000,
-#define IN_CLOEXEC IN_CLOEXEC
- IN_NONBLOCK = 00000200
-#define IN_NONBLOCK IN_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/ioctl-types.h
@@ -1,75 +0,0 @@
-/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IOCTL_H
-# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
-#endif
-
-/* Get definition of constants for use with `ioctl'. */
-#include <asm/ioctls.h>
-
-struct winsize
- {
- unsigned short int ws_row;
- unsigned short int ws_col;
- unsigned short int ws_xpixel;
- unsigned short int ws_ypixel;
- };
-
-#define NCC 8
-struct termio
- {
- unsigned short int c_iflag; /* input mode flags */
- unsigned short int c_oflag; /* output mode flags */
- unsigned short int c_cflag; /* control mode flags */
- unsigned short int c_lflag; /* local mode flags */
- char c_line; /* line discipline */
- /* Yes, this is really NCCS. */
- unsigned char c_cc[32 /* NCCS */]; /* control characters */
- };
-
-/* modem lines */
-#define TIOCM_LE 0x001 /* line enable */
-#define TIOCM_DTR 0x002 /* data terminal ready */
-#define TIOCM_RTS 0x004 /* request to send */
-#define TIOCM_ST 0x010 /* secondary transmit */
-#define TIOCM_SR 0x020 /* secondary receive */
-#define TIOCM_CTS 0x040 /* clear to send */
-#define TIOCM_CAR 0x100 /* carrier detect */
-#define TIOCM_CD TIOCM_CAR
-#define TIOCM_RNG 0x200 /* ring */
-#define TIOCM_RI TIOCM_RNG
-#define TIOCM_DSR 0x400 /* data set ready */
-
-/* line disciplines */
-#define N_TTY 0
-#define N_SLIP 1
-#define N_MOUSE 2
-#define N_PPP 3
-#define N_STRIP 4
-#define N_AX25 5
-#define N_X25 6 /* X.25 async */
-#define N_6PACK 7
-#define N_MASC 8 /* Mobitex module */
-#define N_R3964 9 /* Simatic R3964 module */
-#define N_PROFIBUS_FDL 10 /* Profibus */
-#define N_IRDA 11 /* Linux IR */
-#define N_SMSBLOCK 12 /* SMS block mode */
-#define N_HDLC 13 /* synchronous HDLC */
-#define N_SYNC_PPP 14 /* synchronous PPP */
-#define N_HCI 15 /* Bluetooth HCI UART */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/ipctypes.h
@@ -1,31 +0,0 @@
-/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/*
- * Never include <bits/ipctypes.h> directly.
- */
-
-#ifndef _BITS_IPCTYPES_H
-#define _BITS_IPCTYPES_H 1
-
-#include <bits/types.h>
-
-typedef __SLONG32_TYPE __ipc_pid_t;
-
-
-#endif /* bits/ipctypes.h */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/mman.h
@@ -1,44 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* The following definitions basically come from the kernel headers.
- But the kernel header is not namespace clean. */
-
-/* These are Linux-specific. */
-#define MAP_NORESERVE 0x0400 /* don't check for reservations */
-#define MAP_GROWSDOWN 0x1000 /* stack-like segment */
-#define MAP_DENYWRITE 0x2000 /* ETXTBSY */
-#define MAP_EXECUTABLE 0x4000 /* mark it as an executable */
-#define MAP_LOCKED 0x8000 /* pages are locked */
-#define MAP_POPULATE 0x10000 /* populate (prefault) pagetables */
-#define MAP_NONBLOCK 0x20000 /* do not block on IO */
-#define MAP_STACK 0x40000 /* Allocation is for a stack. */
-#define MAP_HUGETLB 0x80000 /* Create huge page mapping. */
-#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
- underlying mapping. */
-
-#define __MAP_ANONYMOUS 0x0800
-
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
-
-#define MAP_RENAME MAP_ANONYMOUS
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/poll.h
@@ -1,49 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_POLL_H
-# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
-#endif
-
-/* Event types that can be polled for. These bits may be set in `events'
- to indicate the interesting event types; they will appear in `revents'
- to indicate the status of the file descriptor. */
-#define POLLIN 0x001 /* There is data to read. */
-#define POLLPRI 0x002 /* There is urgent data to read. */
-#define POLLOUT 0x004 /* Writing now will not block. */
-
-#if defined __USE_XOPEN || defined __USE_XOPEN2K8
-/* These values are defined in XPG4.2. */
-# define POLLRDNORM 0x040 /* Normal data may be read. */
-# define POLLRDBAND 0x080 /* Priority data may be read. */
-# define POLLWRNORM POLLOUT /* Writing now will not block. */
-# define POLLWRBAND 0x100 /* Priority data may be written. */
-#endif
-
-#ifdef __USE_GNU
-/* These are extensions for Linux. */
-# define POLLMSG 0x400
-# define POLLREMOVE 0x1000
-# define POLLRDHUP 0x2000
-#endif
-
-/* Event types always implicitly polled for. These bits need not be set in
- `events', but they will appear in `revents' to indicate the status of
- the file descriptor. */
-#define POLLERR 0x008 /* Error condition. */
-#define POLLHUP 0x010 /* Hung up. */
-#define POLLNVAL 0x020 /* Invalid polling request. */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/pthread_stack_min.h
@@ -1,20 +0,0 @@
-/* Definition of PTHREAD_STACK_MIN. MIPS Linux version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Minimum size for a thread. At least two pages with 64k pages. */
-#define PTHREAD_STACK_MIN 131072
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/pthreadtypes-arch.h
@@ -1,44 +0,0 @@
-/* Machine-specific pthread type layouts. MIPS version.
- Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_PTHREADTYPES_ARCH_H
-#define _BITS_PTHREADTYPES_ARCH_H 1
-
-#include <bits/endian.h>
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_PTHREAD_ATTR_T 56
-# define __SIZEOF_PTHREAD_MUTEX_T 40
-# define __SIZEOF_PTHREAD_RWLOCK_T 56
-# define __SIZEOF_PTHREAD_BARRIER_T 32
-#else
-# define __SIZEOF_PTHREAD_ATTR_T 36
-# define __SIZEOF_PTHREAD_MUTEX_T 24
-# define __SIZEOF_PTHREAD_RWLOCK_T 32
-# define __SIZEOF_PTHREAD_BARRIER_T 20
-#endif
-#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
-#define __SIZEOF_PTHREAD_COND_T 48
-#define __SIZEOF_PTHREAD_CONDATTR_T 4
-#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
-
-#define __LOCK_ALIGNMENT
-#define __ONCE_ALIGNMENT
-
-#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/resource.h
@@ -1,231 +0,0 @@
-/* Bit values & structures for resource limits. Linux/MIPS version.
- Copyright (C) 1994-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RESOURCE_H
-# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
-#endif
-
-#include <bits/types.h>
-
-/* Transmute defines to enumerations. The macro re-definitions are
- necessary because some programs want to test for operating system
- features with #ifdef RUSAGE_SELF. In ISO C the reflexive
- definition is a no-op. */
-
-/* Kinds of resource limit. */
-enum __rlimit_resource
-{
- /* Per-process CPU limit, in seconds. */
- RLIMIT_CPU = 0,
-#define RLIMIT_CPU RLIMIT_CPU
-
- /* Largest file that can be created, in bytes. */
- RLIMIT_FSIZE = 1,
-#define RLIMIT_FSIZE RLIMIT_FSIZE
-
- /* Maximum size of data segment, in bytes. */
- RLIMIT_DATA = 2,
-#define RLIMIT_DATA RLIMIT_DATA
-
- /* Maximum size of stack segment, in bytes. */
- RLIMIT_STACK = 3,
-#define RLIMIT_STACK RLIMIT_STACK
-
- /* Largest core file that can be created, in bytes. */
- RLIMIT_CORE = 4,
-#define RLIMIT_CORE RLIMIT_CORE
-
- /* Largest resident set size, in bytes.
- This affects swapping; processes that are exceeding their
- resident set size will be more likely to have physical memory
- taken from them. */
- __RLIMIT_RSS = 7,
-#define RLIMIT_RSS __RLIMIT_RSS
-
- /* Number of open files. */
- RLIMIT_NOFILE = 5,
- __RLIMIT_OFILE = RLIMIT_NOFILE, /* BSD name for same. */
-#define RLIMIT_NOFILE RLIMIT_NOFILE
-#define RLIMIT_OFILE __RLIMIT_OFILE
-
- /* Address space limit (?) */
- RLIMIT_AS = 6,
-#define RLIMIT_AS RLIMIT_AS
-
- /* Number of processes. */
- __RLIMIT_NPROC = 8,
-#define RLIMIT_NPROC __RLIMIT_NPROC
-
- /* Locked-in-memory address space. */
- __RLIMIT_MEMLOCK = 9,
-#define RLIMIT_MEMLOCK __RLIMIT_MEMLOCK
-
- /* Maximum number of file locks. */
- __RLIMIT_LOCKS = 10,
-#define RLIMIT_LOCKS __RLIMIT_LOCKS
-
- /* Maximum number of pending signals. */
- __RLIMIT_SIGPENDING = 11,
-#define RLIMIT_SIGPENDING __RLIMIT_SIGPENDING
-
- /* Maximum bytes in POSIX message queues. */
- __RLIMIT_MSGQUEUE = 12,
-#define RLIMIT_MSGQUEUE __RLIMIT_MSGQUEUE
-
- /* Maximum nice priority allowed to raise to.
- Nice levels 19 .. -20 correspond to 0 .. 39
- values of this resource limit. */
- __RLIMIT_NICE = 13,
-#define RLIMIT_NICE __RLIMIT_NICE
-
- /* Maximum realtime priority allowed for non-priviledged
- processes. */
- __RLIMIT_RTPRIO = 14,
-#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
-
- /* Maximum CPU time in microseconds that a process scheduled under a real-time
- scheduling policy may consume without making a blocking system
- call before being forcibly descheduled. */
- __RLIMIT_RTTIME = 15,
-#define RLIMIT_RTTIME __RLIMIT_RTTIME
-
- __RLIMIT_NLIMITS = 16,
- __RLIM_NLIMITS = __RLIMIT_NLIMITS
-#define RLIMIT_NLIMITS __RLIMIT_NLIMITS
-#define RLIM_NLIMITS __RLIM_NLIMITS
-};
-
-/* Value to indicate that there is no limit. */
-#if _MIPS_SIM == _ABI64
-/* The N64 syscall uses this value. */
-# define RLIM_INFINITY 0xffffffffffffffffUL
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffUL
-# endif
-#else
-/* The O32 and N32 syscalls use 0x7fffffff. */
-# ifndef __USE_FILE_OFFSET64
-# define RLIM_INFINITY ((long int)(~0UL >> 1))
-# else
-# define RLIM_INFINITY 0xffffffffffffffffULL
-# endif
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffULL
-# endif
-#endif
-
-/* We can represent all limits. */
-#define RLIM_SAVED_MAX RLIM_INFINITY
-#define RLIM_SAVED_CUR RLIM_INFINITY
-
-
-/* Type for resource quantity measurement. */
-#ifndef __USE_FILE_OFFSET64
-typedef __rlim_t rlim_t;
-#else
-typedef __rlim64_t rlim_t;
-#endif
-#ifdef __USE_LARGEFILE64
-typedef __rlim64_t rlim64_t;
-#endif
-
-struct rlimit
- {
- /* The current (soft) limit. */
- rlim_t rlim_cur;
- /* The hard limit. */
- rlim_t rlim_max;
- };
-
-#ifdef __USE_LARGEFILE64
-struct rlimit64
- {
- /* The current (soft) limit. */
- rlim64_t rlim_cur;
- /* The hard limit. */
- rlim64_t rlim_max;
- };
-#endif
-
-/* Whose usage statistics do you want? */
-enum __rusage_who
-{
- /* The calling process. */
- RUSAGE_SELF = 0,
-#define RUSAGE_SELF RUSAGE_SELF
-
- /* All of its terminated child processes. */
- RUSAGE_CHILDREN = -1
-#define RUSAGE_CHILDREN RUSAGE_CHILDREN
-
-#ifdef __USE_GNU
- ,
- /* The calling thread. */
- RUSAGE_THREAD = 1
-# define RUSAGE_THREAD RUSAGE_THREAD
- /* Name for the same functionality on Solaris. */
-# define RUSAGE_LWP RUSAGE_THREAD
-#endif
-};
-
-#include <bits/types/struct_timeval.h>
-#include <bits/types/struct_rusage.h>
-
-/* Priority limits. */
-#define PRIO_MIN -20 /* Minimum priority a process can have. */
-#define PRIO_MAX 20 /* Maximum priority a process can have. */
-
-/* The type of the WHICH argument to `getpriority' and `setpriority',
- indicating what flavor of entity the WHO argument specifies. */
-enum __priority_which
-{
- PRIO_PROCESS = 0, /* WHO is a process ID. */
-#define PRIO_PROCESS PRIO_PROCESS
- PRIO_PGRP = 1, /* WHO is a process group ID. */
-#define PRIO_PGRP PRIO_PGRP
- PRIO_USER = 2 /* WHO is a user ID. */
-#define PRIO_USER PRIO_USER
-};
-
-
-__BEGIN_DECLS
-
-#ifdef __USE_GNU
-/* Modify and return resource limits of a process atomically. */
-# ifndef __USE_FILE_OFFSET64
-extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit) __THROW;
-# else
-# ifdef __REDIRECT_NTH
-extern int __REDIRECT_NTH (prlimit, (__pid_t __pid,
- enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit), prlimit64);
-# else
-# define prlimit prlimit64
-# endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int prlimit64 (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit64 *__new_limit,
- struct rlimit64 *__old_limit) __THROW;
-# endif
-#endif
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/semaphore.h
@@ -1,36 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SEMAPHORE_H
-# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
-#endif
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_SEM_T 32
-#else
-# define __SIZEOF_SEM_T 16
-#endif
-
-/* Value returned if `sem_open' failed. */
-#define SEM_FAILED ((sem_t *) 0)
-
-
-typedef union
-{
- char __size[__SIZEOF_SEM_T];
- long int __align;
-} sem_t;
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/shmlba.h
@@ -1,24 +0,0 @@
-/* Define SHMLBA. MIPS version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
-#endif
-
-/* Segment low boundary address multiple. */
-#define SHMLBA 0x40000
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/sigaction.h
@@ -1,94 +0,0 @@
-/* The proper definitions for Linux/MIPS's sigaction.
- Copyright (C) 1993-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGACTION_H
-#define _BITS_SIGACTION_H 1
-
-#ifndef _SIGNAL_H
-# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
-#endif
-
-/* Structure describing the action to be taken when a signal arrives. */
-struct sigaction
- {
- /* Special flags. */
- int sa_flags;
-
- /* Signal handler. */
-#if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED
- union
- {
- /* Used if SA_SIGINFO is not set. */
- __sighandler_t sa_handler;
- /* Used if SA_SIGINFO is set. */
- void (*sa_sigaction) (int, siginfo_t *, void *);
- }
- __sigaction_handler;
-# define sa_handler __sigaction_handler.sa_handler
-# define sa_sigaction __sigaction_handler.sa_sigaction
-#else
- __sighandler_t sa_handler;
-#endif
- /* Additional set of signals to be blocked. */
- __sigset_t sa_mask;
-
- /* The ABI says here are two unused ints following. */
- /* Restore handler. */
- void (*sa_restorer) (void);
-
-#if _MIPS_SZPTR < 64
- int sa_resv[1];
-#endif
- };
-
-/* Bits in `sa_flags'. */
-/* Please note that some Linux kernels versions use different values for these
- flags which is a bug in those kernel versions. */
-#define SA_NOCLDSTOP 0x00000001 /* Don't send SIGCHLD when children stop. */
-#define SA_NOCLDWAIT 0x00010000 /* Don't create zombie on child death. */
-#define SA_SIGINFO 0x00000008 /* Invoke signal-catching function with
- three arguments instead of one. */
-#if defined __USE_XOPEN_EXTENDED || defined __USE_MISC
-# define SA_ONSTACK 0x08000000 /* Use signal stack by using `sa_restorer'. */
-#endif
-#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
-# define SA_RESETHAND 0x80000000 /* Reset to SIG_DFL on entry to handler. */
-# define SA_RESTART 0x10000000 /* Restart syscall on signal return. */
-# define SA_NODEFER 0x40000000 /* Don't automatically block the signal when
- its handler is being executed. */
-#endif
-#ifdef __USE_MISC
-# define SA_INTERRUPT 0x20000000 /* Historical no-op. */
-
-/* Some aliases for the SA_ constants. */
-# define SA_NOMASK SA_NODEFER
-# define SA_ONESHOT SA_RESETHAND
-# define SA_STACK SA_ONSTACK
-#endif
-
-/* Values for the HOW argument to `sigprocmask'. */
-#define SIG_NOP 0 /* 0 is unused to catch errors */
-#define SIG_BLOCK 1 /* Block signals. */
-#define SIG_UNBLOCK 2 /* Unblock signals. */
-#define SIG_SETMASK 3 /* Set the set of blocked signals. */
-#ifdef __USE_MISC
-# define SIG_SETMASK32 256 /* Goodie from SGI for BSD compatibility:
- set only the low 32 bit of the sigset. */
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/sigcontext.h
@@ -1,82 +0,0 @@
-/* Copyright (C) 1996-2025 Free Software Foundation, Inc. This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGCONTEXT_H
-#define _BITS_SIGCONTEXT_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
-#endif
-
-#include <sgidefs.h>
-
-#if _MIPS_SIM == _ABIO32
-
-/* Certain unused fields were replaced with new ones in 2.6.12-rc4.
- The changes were as follows:
-
- sc_cause -> sc_hi1
- sc_badvaddr -> sc_lo1
- sc_sigset[0] -> sc_hi2
- sc_sigset[1] -> sc_lo2
- sc_sigset[2] -> sc_hi3
- sc_sigset[3] -> sc_lo3
-
- sc_regmask, sc_ownedfp and sc_fpc_eir are not used. */
-struct sigcontext {
- unsigned int sc_regmask;
- unsigned int sc_status;
- __extension__ unsigned long long sc_pc;
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- unsigned int sc_ownedfp;
- unsigned int sc_fpc_csr;
- unsigned int sc_fpc_eir;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_mdlo;
- unsigned long sc_hi1;
- unsigned long sc_lo1;
- unsigned long sc_hi2;
- unsigned long sc_lo2;
- unsigned long sc_hi3;
- unsigned long sc_lo3;
-};
-
-#else
-
-/* This structure changed in 2.6.12-rc4 when DSP support was added. */
-struct sigcontext {
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_hi1;
- __extension__ unsigned long long sc_hi2;
- __extension__ unsigned long long sc_hi3;
- __extension__ unsigned long long sc_mdlo;
- __extension__ unsigned long long sc_lo1;
- __extension__ unsigned long long sc_lo2;
- __extension__ unsigned long long sc_lo3;
- __extension__ unsigned long long sc_pc;
- unsigned int sc_fpc_csr;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- unsigned int sc_reserved;
-};
-
-#endif /* _MIPS_SIM != _ABIO32 */
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/siginfo-arch.h
@@ -1,13 +0,0 @@
-/* Architecture-specific adjustments to siginfo_t. MIPS version. */
-#ifndef _BITS_SIGINFO_ARCH_H
-#define _BITS_SIGINFO_ARCH_H 1
-
-/* MIPS has the si_code and si_errno fields in the opposite order from
- all other architectures. */
-#define __SI_ERRNO_THEN_CODE 0
-
-/* MIPS also has different values for SI_ASYNCIO, SI_MESGQ, and SI_TIMER
- than all other architectures. */
-#define __SI_ASYNCIO_AFTER_SIGIO 0
-
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/signalfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SIGNALFD_H
-# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
-#endif
-
-/* Flags for signalfd. */
-enum
- {
- SFD_CLOEXEC = 02000000,
-#define SFD_CLOEXEC SFD_CLOEXEC
- SFD_NONBLOCK = 00000200
-#define SFD_NONBLOCK SFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/signum-arch.h
@@ -1,65 +0,0 @@
-/* Signal number definitions. Linux/MIPS version.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGNUM_H
-#define _BITS_SIGNUM_H 1
-
-#ifndef _SIGNAL_H
-#error "Never include <bits/signum.h> directly; use <signal.h> instead."
-#endif
-
-/* Adjustments and additions to the signal number constants for
- Linux/MIPS. */
-
-#define SIGEMT 7 /* Emulator trap. */
-#define SIGPWR 19 /* Power failure imminent. */
-
-/* Historical signals specified by POSIX. */
-#define SIGBUS 10 /* Bus error. */
-#define SIGSYS 12 /* Bad system call. */
-
-/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
-#define SIGURG 21 /* Urgent data is available at a socket. */
-#define SIGSTOP 23 /* Stop, unblockable. */
-#define SIGTSTP 24 /* Keyboard stop. */
-#define SIGCONT 25 /* Continue. */
-#define SIGCHLD 18 /* Child terminated or stopped. */
-#define SIGTTIN 26 /* Background read from control terminal. */
-#define SIGTTOU 27 /* Background write to control terminal. */
-#define SIGPOLL 22 /* Pollable event occurred (System V). */
-#define SIGXCPU 30 /* CPU time limit exceeded. */
-#define SIGVTALRM 28 /* Virtual timer expired. */
-#define SIGPROF 29 /* Profiling timer expired. */
-#define SIGXFSZ 31 /* File size limit exceeded. */
-#define SIGUSR1 16 /* User-defined signal 1. */
-#define SIGUSR2 17 /* User-defined signal 2. */
-
-/* Nonstandard signals found in all modern POSIX systems
- (including both BSD and Linux). */
-#define SIGWINCH 20 /* Window size change (4.3 BSD, Sun). */
-
-/* Archaic names for compatibility. */
-#define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
-#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
-#define SIGCLD SIGCHLD /* Old System V name */
-
-/* By default no real-time signals are supported. */
-#define __SIGRTMIN 32
-#define __SIGRTMAX 127
-
-#endif /* <signal.h> included. */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/socket-constants.h
@@ -1,70 +0,0 @@
-/* Socket constants which vary among Linux architectures. Version for MIPS.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
-#endif
-
-#define SOL_SOCKET 65535
-#define SO_ACCEPTCONN 4105
-#define SO_BROADCAST 32
-#define SO_DONTROUTE 16
-#define SO_ERROR 4103
-#define SO_KEEPALIVE 8
-#define SO_LINGER 128
-#define SO_OOBINLINE 256
-#define SO_RCVBUF 4098
-#define SO_RCVLOWAT 4100
-#define SO_REUSEADDR 4
-#define SO_SNDBUF 4097
-#define SO_SNDLOWAT 4099
-#define SO_TYPE 4104
-
-#if __TIMESIZE == 64
-# define SO_RCVTIMEO 4102
-# define SO_SNDTIMEO 4101
-# define SO_TIMESTAMP 29
-# define SO_TIMESTAMPNS 35
-# define SO_TIMESTAMPING 37
-#else
-# define SO_RCVTIMEO_OLD 4102
-# define SO_SNDTIMEO_OLD 4101
-# define SO_RCVTIMEO_NEW 66
-# define SO_SNDTIMEO_NEW 67
-
-# 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
-
-# ifdef __USE_TIME64_REDIRECTS
-# define SO_RCVTIMEO SO_RCVTIMEO_NEW
-# define SO_SNDTIMEO SO_SNDTIMEO_NEW
-# define SO_TIMESTAMP SO_TIMESTAMP_NEW
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_NEW
-# define SO_TIMESTAMPING SO_TIMESTAMPING_NEW
-# else
-# define SO_RCVTIMEO SO_RCVTIMEO_OLD
-# define SO_SNDTIMEO SO_SNDTIMEO_OLD
-# define SO_TIMESTAMP SO_TIMESTAMP_OLD
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
-# define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
-# endif
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/socket_type.h
@@ -1,55 +0,0 @@
-/* Define enum __socket_type for Linux/MIPS.
- Copyright (C) 1991-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
-#endif
-
-/* Types of sockets. */
-enum __socket_type
-{
- SOCK_DGRAM = 1, /* Connectionless, unreliable datagrams
- of fixed maximum length. */
-#define SOCK_DGRAM SOCK_DGRAM
- SOCK_STREAM = 2, /* Sequenced, reliable, connection-based
- byte streams. */
-#define SOCK_STREAM SOCK_STREAM
- SOCK_RAW = 3, /* Raw protocol interface. */
-#define SOCK_RAW SOCK_RAW
- SOCK_RDM = 4, /* Reliably-delivered messages. */
-#define SOCK_RDM SOCK_RDM
- SOCK_SEQPACKET = 5, /* Sequenced, reliable, connection-based,
- datagrams of fixed maximum length. */
-#define SOCK_SEQPACKET SOCK_SEQPACKET
- SOCK_DCCP = 6,
-#define SOCK_DCCP SOCK_DCCP /* Datagram Congestion Control Protocol. */
- SOCK_PACKET = 10, /* Linux specific way of getting packets
- at the dev level. For writing rarp and
- other similar things on the user level. */
-#define SOCK_PACKET SOCK_PACKET
-
- /* Flags to be ORed into the type parameter of socket and socketpair and
- used for the flags parameter of paccept. */
-
- SOCK_CLOEXEC = 02000000, /* Atomically set close-on-exec flag for the
- new descriptor(s). */
-#define SOCK_CLOEXEC SOCK_CLOEXEC
- SOCK_NONBLOCK = 00000200 /* Atomically mark descriptor(s) as
- non-blocking. */
-#define SOCK_NONBLOCK SOCK_NONBLOCK
-};
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/statfs.h
@@ -1,73 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_STATFS_H
-# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
-#endif
-
-#include <bits/types.h> /* for __fsid_t and __fsblkcnt_t*/
-
-struct statfs
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
-#ifndef __USE_FILE_OFFSET64
- __fsblkcnt_t f_blocks;
- __fsblkcnt_t f_bfree;
- __fsblkcnt_t f_files;
- __fsblkcnt_t f_ffree;
- __fsblkcnt_t f_bavail;
-#else
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-#endif
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-
-#ifdef __USE_LARGEFILE64
-struct statfs64
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATFS_F_NAMELEN
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/struct_mutex.h
@@ -1,56 +0,0 @@
-/* MIPS internal mutex struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _THREAD_MUTEX_INTERNAL_H
-#define _THREAD_MUTEX_INTERNAL_H 1
-
-struct __pthread_mutex_s
-{
- int __lock;
- unsigned int __count;
- int __owner;
-#if _MIPS_SIM == _ABI64
- unsigned int __nusers;
-#endif
- /* KIND must stay at this position in the structure to maintain
- binary compatibility with static initializers. */
- int __kind;
-#if _MIPS_SIM == _ABI64
- int __spins;
- __pthread_list_t __list;
-# define __PTHREAD_MUTEX_HAVE_PREV 1
-#else
- unsigned int __nusers;
- __extension__ union
- {
- int __spins;
- __pthread_slist_t __list;
- };
-# define __PTHREAD_MUTEX_HAVE_PREV 0
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, 0, __kind, 0, { 0, 0 }
-#else
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, __kind, 0, { 0 }
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/struct_rwlock.h
@@ -1,71 +0,0 @@
-/* MIPS internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#if _MIPS_SIM == _ABI64
- int __cur_writer;
- int __shared;
- unsigned long int __pad1;
- unsigned long int __pad2;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned int __flags;
-# else
-# if __BYTE_ORDER == __BIG_ENDIAN
- unsigned char __pad1;
- unsigned char __pad2;
- unsigned char __shared;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
-# else
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- unsigned char __shared;
- unsigned char __pad1;
- unsigned char __pad2;
-# endif
- int __cur_writer;
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
-#else
-# if __BYTE_ORDER == __BIG_ENDIAN
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
-# else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
-# endif
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/termios-c_cc.h
@@ -1,43 +0,0 @@
-/* termios c_cc symbolic constant definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
-#endif
-
-/* c_cc characters */
-#define VINTR 0 /* Interrupt character [ISIG]. */
-#define VQUIT 1 /* Quit character [ISIG]. */
-#define VERASE 2 /* Erase character [ICANON]. */
-#define VKILL 3 /* Kill-line character [ICANON]. */
-#define VMIN 4 /* Minimum number of bytes read at once [!ICANON]. */
-#define VTIME 5 /* Time-out value (tenths of a second) [!ICANON]. */
-#define VEOL2 6 /* Second EOL character [ICANON]. */
-#define VSWTC 7
-#define VSWTCH VSWTC
-#define VSTART 8 /* Start (X-ON) character [IXON, IXOFF]. */
-#define VSTOP 9 /* Stop (X-OFF) character [IXON, IXOFF]. */
-#define VSUSP 10 /* Suspend character [ISIG]. */
- /* VDSUSP is not supported on Linux. */
-/* #define VDSUSP 11 / * Delayed suspend character [ISIG]. */
-#define VREPRINT 12 /* Reprint-line character [ICANON]. */
-#define VDISCARD 13 /* Discard character [IEXTEN]. */
-#define VWERASE 14 /* Word-erase character [ICANON]. */
-#define VLNEXT 15 /* Literal-next character [IEXTEN]. */
-#define VEOF 16 /* End-of-file character [ICANON]. */
-#define VEOL 17 /* End-of-line character [ICANON]. */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/termios-c_lflag.h
@@ -1,46 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_lflag bits */
-#define ISIG 0000001 /* Enable signals. */
-#define ICANON 0000002 /* Do erase and kill processing. */
-#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
-# define XCASE 0000004
-#endif
-#define ECHO 0000010 /* Enable echo. */
-#define ECHOE 0000020 /* Visual erase for ERASE. */
-#define ECHOK 0000040 /* Echo NL after KILL. */
-#define ECHONL 0000100 /* Echo NL even if ECHO is off. */
-#define NOFLSH 0000200 /* Disable flush after interrupt. */
-#define IEXTEN 0000400 /* Enable DISCARD and LNEXT. */
-#ifdef __USE_MISC
-# define ECHOCTL 0001000 /* Echo control characters as ^X. */
-# define ECHOPRT 0002000 /* Hardcopy visual erase. */
-# define ECHOKE 0004000 /* Visual erase for KILL. */
-# define FLUSHO 0020000
-# define PENDIN 0040000 /* Retype pending input (state). */
-#endif
-#define TOSTOP 0100000 /* Send SIGTTOU for background output. */
-#define ITOSTOP TOSTOP
-#ifdef __USE_MISC
-# define EXTPROC 0200000
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/termios-struct.h
@@ -1,34 +0,0 @@
-/* struct termios definition. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
-#endif
-
-#define NCCS 32
-struct termios
- {
- tcflag_t c_iflag; /* input mode flags */
- tcflag_t c_oflag; /* output mode flags */
- tcflag_t c_cflag; /* control mode flags */
- tcflag_t c_lflag; /* local mode flags */
- cc_t c_line; /* line discipline */
- cc_t c_cc[NCCS]; /* control characters */
-#define _HAVE_STRUCT_TERMIOS_C_ISPEED 0
-#define _HAVE_STRUCT_TERMIOS_C_OSPEED 0
- };
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/termios-tcflow.h
@@ -1,26 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
-#endif
-
-/* tcsetattr uses these */
-#define TCSANOW 0x540e /* Same as TCSETS; change immediately. */
-#define TCSADRAIN 0x540f /* Same as TCSETSW; change when pending output is written. */
-#define TCSAFLUSH 0x5410 /* Same as TCSETSF; flush pending input before changing. */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/timerfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2008-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_TIMERFD_H
-# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
-#endif
-
-/* Bits to be set in the FLAGS parameter of `timerfd_create'. */
-enum
- {
- TFD_CLOEXEC = 02000000,
-#define TFD_CLOEXEC TFD_CLOEXEC
- TFD_NONBLOCK = 00000200
-#define TFD_NONBLOCK TFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/bits/typesizes.h
@@ -1,95 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. MIPS version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __UWORD_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#ifdef __LP64__
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for rlim_t and rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-
-/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
-# define __STATFS_MATCHES_STATFS64 1
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-
-# define __STATFS_MATCHES_STATFS64 0
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabi/ieee754.h
@@ -1,326 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-
-#ifndef __LDBL_MANT_DIG__
-# include <float.h>
-# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
-#endif
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#if __LDBL_MANT_DIG__ == 113
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-
-#elif __LDBL_MANT_DIG__ == 64
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:32;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee;
-
- /* This is for NaNs in the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int one:1;
- unsigned int quiet_nan:1;
- unsigned int mantissa0:30;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
-
-#elif __LDBL_MANT_DIG__ == 53
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#endif /* __LDBL_MANT_DIG__ == 53 */
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/types/stack_t.h
@@ -1,33 +0,0 @@
-/* Define stack_t. MIPS Linux version.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef __stack_t_defined
-#define __stack_t_defined 1
-
-#define __need_size_t
-#include <stddef.h>
-
-/* Structure describing a signal stack. */
-typedef struct
- {
- void *ss_sp;
- size_t ss_size;
- int ss_flags;
- } stack_t;
-
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/types/struct_msqid_ds.h
@@ -1,62 +0,0 @@
-/* Linux/MIPS implementation of the SysV message struct msqid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MSG_H
-# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
-#endif
-
-#include <bits/types/time_t.h>
-
-/* Structure of record for one message inside the kernel.
- The type `struct msg' is opaque. */
-struct msqid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_msqid64_ds_helper.h>
-#else
- struct ipc_perm msg_perm; /* structure describing operation permission */
-# if __TIMESIZE == 32
-# ifdef __MIPSEL__
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_stime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_ctime; /* time of last change */
- unsigned long int __msg_ctime_high;
-# else
- unsigned long int __msg_stime_high;
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_ctime_high;
- __time_t msg_ctime; /* time of last change */
-# endif
-# else
- __time_t msg_stime; /* time of last msgsnd command */
- __time_t msg_rtime; /* time of last msgsnd command */
- __time_t msg_ctime; /* time of last change */
-# endif
- __syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
- msgqnum_t msg_qnum; /* number of messages currently on queue */
- msglen_t msg_qbytes; /* max number of bytes allowed on queue */
- __pid_t msg_lspid; /* pid of last msgsnd() */
- __pid_t msg_lrpid; /* pid of last msgrcv() */
- __syscall_ulong_t __glibc_reserved4;
- __syscall_ulong_t __glibc_reserved5;
-#endif
-};
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/types/struct_semid_ds.h
@@ -1,36 +0,0 @@
-/* MIPS implementation of the semaphore struct semid_ds
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
-#endif
-
-/* Data structure describing a set of semaphores. */
-struct semid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_semid64_ds_helper.h>
-#else
- struct ipc_perm sem_perm; /* operation permission struct */
- __time_t sem_otime; /* last semop() time */
- __time_t sem_ctime; /* last time changed by semctl() */
- __syscall_ulong_t sem_nsems; /* number of semaphores in set */
- __syscall_ulong_t __sem_otime_high;
- __syscall_ulong_t __sem_ctime_high;
-#endif
-};
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/types/struct_shmid_ds.h
@@ -1,53 +0,0 @@
-/* Linux/MIPS implementation of the shared memory struct shmid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never include <bits/types/struct_shmid_ds.h> directly; use <sys/shm.h> instead."
-#endif
-
-/* Data structure describing a shared memory segment. */
-struct shmid_ds
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_shmid64_ds_helper.h>
-#else
- struct ipc_perm shm_perm; /* operation permission struct */
- size_t shm_segsz; /* size of segment in bytes */
-# if __TIMESIZE == 32
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# else
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# endif
- __pid_t shm_cpid; /* pid of creator */
- __pid_t shm_lpid; /* pid of last shmop */
- shmatt_t shm_nattch; /* number of current attaches */
-# if __TIMESIZE == 32
- unsigned short int __shm_atime_high;
- unsigned short int __shm_dtime_high;
- unsigned short int __shm_ctime_high;
- unsigned short int __glibc_reserved4;
-# else
- __syscall_ulong_t __glibc_reserved5;
- __syscall_ulong_t __glibc_reserved6;
-# endif
-#endif
- };
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/dlfcn.h
@@ -1,64 +0,0 @@
-/* System dependent definitions for run-time dynamic loading.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _DLFCN_H
-# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
-#endif
-
-/* The MODE argument to `dlopen' contains one of the following: */
-#define RTLD_LAZY 0x0001 /* Lazy function call binding. */
-#define RTLD_NOW 0x0002 /* Immediate function call binding. */
-#define RTLD_BINDING_MASK 0x3 /* Mask of binding time value. */
-#define RTLD_NOLOAD 0x00008 /* Do not load the object. */
-#define RTLD_DEEPBIND 0x00010 /* Use deep binding. */
-
-/* If the following bit is set in the MODE argument to `dlopen',
- the symbols of the loaded object and its dependencies are made
- visible as if the object were linked directly into the program. */
-#define RTLD_GLOBAL 0x0004
-
-/* Unix98 demands the following flag which is the inverse to RTLD_GLOBAL.
- The implementation does this by default and so we can define the
- value to zero. */
-#define RTLD_LOCAL 0
-
-/* Do not delete object when closed. */
-#define RTLD_NODELETE 0x01000
-
-#ifdef __USE_GNU
-/* To support profiling of shared objects it is a good idea to call
- the function found using `dlsym' using the following macro since
- these calls do not use the PLT. But this would mean the dynamic
- loader has no chance to find out when the function is called. The
- macro applies the necessary magic so that profiling is possible.
- Rewrite
- foo = (*fctp) (arg1, arg2);
- into
- foo = DL_CALL_FCT (fctp, (arg1, arg2));
-*/
-# define DL_CALL_FCT(fctp, args) \
- (_dl_mcount_wrapper_check ((void *) (fctp)), (*(fctp)) args)
-
-__BEGIN_DECLS
-
-/* This function calls the profiling functions. */
-extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
-
-__END_DECLS
-
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/errno.h
@@ -1,52 +0,0 @@
-/* Error constants. MIPS/Linux specific version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_ERRNO_H
-
-#if !defined _ERRNO_H
-# error "Never include <bits/errno.h> directly; use <errno.h> instead."
-#endif
-
-# include <linux/errno.h>
-
-/* Older Linux headers do not define these constants. */
-# ifndef ENOTSUP
-# define ENOTSUP EOPNOTSUPP
-# endif
-
-# ifndef ECANCELED
-# define ECANCELED 158
-# endif
-
-# ifndef EOWNERDEAD
-# define EOWNERDEAD 165
-# endif
-
-# ifndef ENOTRECOVERABLE
-# define ENOTRECOVERABLE 166
-# endif
-
-# ifndef ERFKILL
-# define ERFKILL 167
-# endif
-
-# ifndef EHWPOISON
-# define EHWPOISON 168
-# endif
-
-#endif /* bits/errno.h. */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/eventfd.h
@@ -1,31 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_EVENTFD_H
-# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
-#endif
-
-/* Flags for eventfd. */
-enum
- {
- EFD_SEMAPHORE = 00000001,
-#define EFD_SEMAPHORE EFD_SEMAPHORE
- EFD_CLOEXEC = 02000000,
-#define EFD_CLOEXEC EFD_CLOEXEC
- EFD_NONBLOCK = 00000200
-#define EFD_NONBLOCK EFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/floatn.h
@@ -1,97 +0,0 @@
-/* Macros to control TS 18661-3 glibc features on MIPS platforms.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_FLOATN_H
-#define _BITS_FLOATN_H
-
-#include <features.h>
-#include <bits/long-double.h>
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this
- glibc includes corresponding *f128 interfaces for it. */
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __HAVE_FLOAT128 1
-#else
-/* glibc does not support _Float128 for platforms where long double is
- normally binary128 when building with long double as binary64.
- GCC's default for supported scalar modes does not support it either
- in that case. */
-# define __HAVE_FLOAT128 0
-#endif
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#define __HAVE_DISTINCT_FLOAT128 0
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X __HAVE_FLOAT128
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-/* The literal suffix f128 exists only since GCC 7.0. */
-# define __f128(x) x##l
-# else
-# define __f128(x) x##f128
-# endif
-# endif
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-# define __CFLOAT128 _Complex long double
-# else
-# define __CFLOAT128 _Complex _Float128
-# endif
-# endif
-
-/* The remaining of this file provides support for older compilers. */
-# if __HAVE_FLOAT128
-
-/* The type _Float128 exists only since GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-typedef long double _Float128;
-# endif
-
-/* Various built-in functions do not exist before GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0)
-# define __builtin_huge_valf128() (__builtin_huge_vall ())
-# define __builtin_inff128() (__builtin_infl ())
-# define __builtin_nanf128(x) (__builtin_nanl (x))
-# define __builtin_nansf128(x) (__builtin_nansl (x))
-# endif
-
-# endif
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
-
-#endif /* _BITS_FLOATN_H */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/inotify.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_INOTIFY_H
-# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
-#endif
-
-/* Flags for the parameter of inotify_init1. */
-enum
- {
- IN_CLOEXEC = 02000000,
-#define IN_CLOEXEC IN_CLOEXEC
- IN_NONBLOCK = 00000200
-#define IN_NONBLOCK IN_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/ioctl-types.h
@@ -1,75 +0,0 @@
-/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IOCTL_H
-# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
-#endif
-
-/* Get definition of constants for use with `ioctl'. */
-#include <asm/ioctls.h>
-
-struct winsize
- {
- unsigned short int ws_row;
- unsigned short int ws_col;
- unsigned short int ws_xpixel;
- unsigned short int ws_ypixel;
- };
-
-#define NCC 8
-struct termio
- {
- unsigned short int c_iflag; /* input mode flags */
- unsigned short int c_oflag; /* output mode flags */
- unsigned short int c_cflag; /* control mode flags */
- unsigned short int c_lflag; /* local mode flags */
- char c_line; /* line discipline */
- /* Yes, this is really NCCS. */
- unsigned char c_cc[32 /* NCCS */]; /* control characters */
- };
-
-/* modem lines */
-#define TIOCM_LE 0x001 /* line enable */
-#define TIOCM_DTR 0x002 /* data terminal ready */
-#define TIOCM_RTS 0x004 /* request to send */
-#define TIOCM_ST 0x010 /* secondary transmit */
-#define TIOCM_SR 0x020 /* secondary receive */
-#define TIOCM_CTS 0x040 /* clear to send */
-#define TIOCM_CAR 0x100 /* carrier detect */
-#define TIOCM_CD TIOCM_CAR
-#define TIOCM_RNG 0x200 /* ring */
-#define TIOCM_RI TIOCM_RNG
-#define TIOCM_DSR 0x400 /* data set ready */
-
-/* line disciplines */
-#define N_TTY 0
-#define N_SLIP 1
-#define N_MOUSE 2
-#define N_PPP 3
-#define N_STRIP 4
-#define N_AX25 5
-#define N_X25 6 /* X.25 async */
-#define N_6PACK 7
-#define N_MASC 8 /* Mobitex module */
-#define N_R3964 9 /* Simatic R3964 module */
-#define N_PROFIBUS_FDL 10 /* Profibus */
-#define N_IRDA 11 /* Linux IR */
-#define N_SMSBLOCK 12 /* SMS block mode */
-#define N_HDLC 13 /* synchronous HDLC */
-#define N_SYNC_PPP 14 /* synchronous PPP */
-#define N_HCI 15 /* Bluetooth HCI UART */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/ipctypes.h
@@ -1,31 +0,0 @@
-/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/*
- * Never include <bits/ipctypes.h> directly.
- */
-
-#ifndef _BITS_IPCTYPES_H
-#define _BITS_IPCTYPES_H 1
-
-#include <bits/types.h>
-
-typedef __SLONG32_TYPE __ipc_pid_t;
-
-
-#endif /* bits/ipctypes.h */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/mman.h
@@ -1,44 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/MIPS version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* The following definitions basically come from the kernel headers.
- But the kernel header is not namespace clean. */
-
-/* These are Linux-specific. */
-#define MAP_NORESERVE 0x0400 /* don't check for reservations */
-#define MAP_GROWSDOWN 0x1000 /* stack-like segment */
-#define MAP_DENYWRITE 0x2000 /* ETXTBSY */
-#define MAP_EXECUTABLE 0x4000 /* mark it as an executable */
-#define MAP_LOCKED 0x8000 /* pages are locked */
-#define MAP_POPULATE 0x10000 /* populate (prefault) pagetables */
-#define MAP_NONBLOCK 0x20000 /* do not block on IO */
-#define MAP_STACK 0x40000 /* Allocation is for a stack. */
-#define MAP_HUGETLB 0x80000 /* Create huge page mapping. */
-#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
- underlying mapping. */
-
-#define __MAP_ANONYMOUS 0x0800
-
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
-
-#define MAP_RENAME MAP_ANONYMOUS
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/poll.h
@@ -1,49 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_POLL_H
-# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
-#endif
-
-/* Event types that can be polled for. These bits may be set in `events'
- to indicate the interesting event types; they will appear in `revents'
- to indicate the status of the file descriptor. */
-#define POLLIN 0x001 /* There is data to read. */
-#define POLLPRI 0x002 /* There is urgent data to read. */
-#define POLLOUT 0x004 /* Writing now will not block. */
-
-#if defined __USE_XOPEN || defined __USE_XOPEN2K8
-/* These values are defined in XPG4.2. */
-# define POLLRDNORM 0x040 /* Normal data may be read. */
-# define POLLRDBAND 0x080 /* Priority data may be read. */
-# define POLLWRNORM POLLOUT /* Writing now will not block. */
-# define POLLWRBAND 0x100 /* Priority data may be written. */
-#endif
-
-#ifdef __USE_GNU
-/* These are extensions for Linux. */
-# define POLLMSG 0x400
-# define POLLREMOVE 0x1000
-# define POLLRDHUP 0x2000
-#endif
-
-/* Event types always implicitly polled for. These bits need not be set in
- `events', but they will appear in `revents' to indicate the status of
- the file descriptor. */
-#define POLLERR 0x008 /* Error condition. */
-#define POLLHUP 0x010 /* Hung up. */
-#define POLLNVAL 0x020 /* Invalid polling request. */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/pthread_stack_min.h
@@ -1,20 +0,0 @@
-/* Definition of PTHREAD_STACK_MIN. MIPS Linux version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Minimum size for a thread. At least two pages with 64k pages. */
-#define PTHREAD_STACK_MIN 131072
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/pthreadtypes-arch.h
@@ -1,44 +0,0 @@
-/* Machine-specific pthread type layouts. MIPS version.
- Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_PTHREADTYPES_ARCH_H
-#define _BITS_PTHREADTYPES_ARCH_H 1
-
-#include <bits/endian.h>
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_PTHREAD_ATTR_T 56
-# define __SIZEOF_PTHREAD_MUTEX_T 40
-# define __SIZEOF_PTHREAD_RWLOCK_T 56
-# define __SIZEOF_PTHREAD_BARRIER_T 32
-#else
-# define __SIZEOF_PTHREAD_ATTR_T 36
-# define __SIZEOF_PTHREAD_MUTEX_T 24
-# define __SIZEOF_PTHREAD_RWLOCK_T 32
-# define __SIZEOF_PTHREAD_BARRIER_T 20
-#endif
-#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
-#define __SIZEOF_PTHREAD_COND_T 48
-#define __SIZEOF_PTHREAD_CONDATTR_T 4
-#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
-
-#define __LOCK_ALIGNMENT
-#define __ONCE_ALIGNMENT
-
-#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/resource.h
@@ -1,231 +0,0 @@
-/* Bit values & structures for resource limits. Linux/MIPS version.
- Copyright (C) 1994-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RESOURCE_H
-# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
-#endif
-
-#include <bits/types.h>
-
-/* Transmute defines to enumerations. The macro re-definitions are
- necessary because some programs want to test for operating system
- features with #ifdef RUSAGE_SELF. In ISO C the reflexive
- definition is a no-op. */
-
-/* Kinds of resource limit. */
-enum __rlimit_resource
-{
- /* Per-process CPU limit, in seconds. */
- RLIMIT_CPU = 0,
-#define RLIMIT_CPU RLIMIT_CPU
-
- /* Largest file that can be created, in bytes. */
- RLIMIT_FSIZE = 1,
-#define RLIMIT_FSIZE RLIMIT_FSIZE
-
- /* Maximum size of data segment, in bytes. */
- RLIMIT_DATA = 2,
-#define RLIMIT_DATA RLIMIT_DATA
-
- /* Maximum size of stack segment, in bytes. */
- RLIMIT_STACK = 3,
-#define RLIMIT_STACK RLIMIT_STACK
-
- /* Largest core file that can be created, in bytes. */
- RLIMIT_CORE = 4,
-#define RLIMIT_CORE RLIMIT_CORE
-
- /* Largest resident set size, in bytes.
- This affects swapping; processes that are exceeding their
- resident set size will be more likely to have physical memory
- taken from them. */
- __RLIMIT_RSS = 7,
-#define RLIMIT_RSS __RLIMIT_RSS
-
- /* Number of open files. */
- RLIMIT_NOFILE = 5,
- __RLIMIT_OFILE = RLIMIT_NOFILE, /* BSD name for same. */
-#define RLIMIT_NOFILE RLIMIT_NOFILE
-#define RLIMIT_OFILE __RLIMIT_OFILE
-
- /* Address space limit (?) */
- RLIMIT_AS = 6,
-#define RLIMIT_AS RLIMIT_AS
-
- /* Number of processes. */
- __RLIMIT_NPROC = 8,
-#define RLIMIT_NPROC __RLIMIT_NPROC
-
- /* Locked-in-memory address space. */
- __RLIMIT_MEMLOCK = 9,
-#define RLIMIT_MEMLOCK __RLIMIT_MEMLOCK
-
- /* Maximum number of file locks. */
- __RLIMIT_LOCKS = 10,
-#define RLIMIT_LOCKS __RLIMIT_LOCKS
-
- /* Maximum number of pending signals. */
- __RLIMIT_SIGPENDING = 11,
-#define RLIMIT_SIGPENDING __RLIMIT_SIGPENDING
-
- /* Maximum bytes in POSIX message queues. */
- __RLIMIT_MSGQUEUE = 12,
-#define RLIMIT_MSGQUEUE __RLIMIT_MSGQUEUE
-
- /* Maximum nice priority allowed to raise to.
- Nice levels 19 .. -20 correspond to 0 .. 39
- values of this resource limit. */
- __RLIMIT_NICE = 13,
-#define RLIMIT_NICE __RLIMIT_NICE
-
- /* Maximum realtime priority allowed for non-priviledged
- processes. */
- __RLIMIT_RTPRIO = 14,
-#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
-
- /* Maximum CPU time in microseconds that a process scheduled under a real-time
- scheduling policy may consume without making a blocking system
- call before being forcibly descheduled. */
- __RLIMIT_RTTIME = 15,
-#define RLIMIT_RTTIME __RLIMIT_RTTIME
-
- __RLIMIT_NLIMITS = 16,
- __RLIM_NLIMITS = __RLIMIT_NLIMITS
-#define RLIMIT_NLIMITS __RLIMIT_NLIMITS
-#define RLIM_NLIMITS __RLIM_NLIMITS
-};
-
-/* Value to indicate that there is no limit. */
-#if _MIPS_SIM == _ABI64
-/* The N64 syscall uses this value. */
-# define RLIM_INFINITY 0xffffffffffffffffUL
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffUL
-# endif
-#else
-/* The O32 and N32 syscalls use 0x7fffffff. */
-# ifndef __USE_FILE_OFFSET64
-# define RLIM_INFINITY ((long int)(~0UL >> 1))
-# else
-# define RLIM_INFINITY 0xffffffffffffffffULL
-# endif
-# ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffULL
-# endif
-#endif
-
-/* We can represent all limits. */
-#define RLIM_SAVED_MAX RLIM_INFINITY
-#define RLIM_SAVED_CUR RLIM_INFINITY
-
-
-/* Type for resource quantity measurement. */
-#ifndef __USE_FILE_OFFSET64
-typedef __rlim_t rlim_t;
-#else
-typedef __rlim64_t rlim_t;
-#endif
-#ifdef __USE_LARGEFILE64
-typedef __rlim64_t rlim64_t;
-#endif
-
-struct rlimit
- {
- /* The current (soft) limit. */
- rlim_t rlim_cur;
- /* The hard limit. */
- rlim_t rlim_max;
- };
-
-#ifdef __USE_LARGEFILE64
-struct rlimit64
- {
- /* The current (soft) limit. */
- rlim64_t rlim_cur;
- /* The hard limit. */
- rlim64_t rlim_max;
- };
-#endif
-
-/* Whose usage statistics do you want? */
-enum __rusage_who
-{
- /* The calling process. */
- RUSAGE_SELF = 0,
-#define RUSAGE_SELF RUSAGE_SELF
-
- /* All of its terminated child processes. */
- RUSAGE_CHILDREN = -1
-#define RUSAGE_CHILDREN RUSAGE_CHILDREN
-
-#ifdef __USE_GNU
- ,
- /* The calling thread. */
- RUSAGE_THREAD = 1
-# define RUSAGE_THREAD RUSAGE_THREAD
- /* Name for the same functionality on Solaris. */
-# define RUSAGE_LWP RUSAGE_THREAD
-#endif
-};
-
-#include <bits/types/struct_timeval.h>
-#include <bits/types/struct_rusage.h>
-
-/* Priority limits. */
-#define PRIO_MIN -20 /* Minimum priority a process can have. */
-#define PRIO_MAX 20 /* Maximum priority a process can have. */
-
-/* The type of the WHICH argument to `getpriority' and `setpriority',
- indicating what flavor of entity the WHO argument specifies. */
-enum __priority_which
-{
- PRIO_PROCESS = 0, /* WHO is a process ID. */
-#define PRIO_PROCESS PRIO_PROCESS
- PRIO_PGRP = 1, /* WHO is a process group ID. */
-#define PRIO_PGRP PRIO_PGRP
- PRIO_USER = 2 /* WHO is a user ID. */
-#define PRIO_USER PRIO_USER
-};
-
-
-__BEGIN_DECLS
-
-#ifdef __USE_GNU
-/* Modify and return resource limits of a process atomically. */
-# ifndef __USE_FILE_OFFSET64
-extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit) __THROW;
-# else
-# ifdef __REDIRECT_NTH
-extern int __REDIRECT_NTH (prlimit, (__pid_t __pid,
- enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit), prlimit64);
-# else
-# define prlimit prlimit64
-# endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int prlimit64 (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit64 *__new_limit,
- struct rlimit64 *__old_limit) __THROW;
-# endif
-#endif
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/semaphore.h
@@ -1,36 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SEMAPHORE_H
-# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
-#endif
-
-#if _MIPS_SIM == _ABI64
-# define __SIZEOF_SEM_T 32
-#else
-# define __SIZEOF_SEM_T 16
-#endif
-
-/* Value returned if `sem_open' failed. */
-#define SEM_FAILED ((sem_t *) 0)
-
-
-typedef union
-{
- char __size[__SIZEOF_SEM_T];
- long int __align;
-} sem_t;
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/shmlba.h
@@ -1,24 +0,0 @@
-/* Define SHMLBA. MIPS version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
-#endif
-
-/* Segment low boundary address multiple. */
-#define SHMLBA 0x40000
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/sigaction.h
@@ -1,94 +0,0 @@
-/* The proper definitions for Linux/MIPS's sigaction.
- Copyright (C) 1993-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGACTION_H
-#define _BITS_SIGACTION_H 1
-
-#ifndef _SIGNAL_H
-# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
-#endif
-
-/* Structure describing the action to be taken when a signal arrives. */
-struct sigaction
- {
- /* Special flags. */
- int sa_flags;
-
- /* Signal handler. */
-#if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED
- union
- {
- /* Used if SA_SIGINFO is not set. */
- __sighandler_t sa_handler;
- /* Used if SA_SIGINFO is set. */
- void (*sa_sigaction) (int, siginfo_t *, void *);
- }
- __sigaction_handler;
-# define sa_handler __sigaction_handler.sa_handler
-# define sa_sigaction __sigaction_handler.sa_sigaction
-#else
- __sighandler_t sa_handler;
-#endif
- /* Additional set of signals to be blocked. */
- __sigset_t sa_mask;
-
- /* The ABI says here are two unused ints following. */
- /* Restore handler. */
- void (*sa_restorer) (void);
-
-#if _MIPS_SZPTR < 64
- int sa_resv[1];
-#endif
- };
-
-/* Bits in `sa_flags'. */
-/* Please note that some Linux kernels versions use different values for these
- flags which is a bug in those kernel versions. */
-#define SA_NOCLDSTOP 0x00000001 /* Don't send SIGCHLD when children stop. */
-#define SA_NOCLDWAIT 0x00010000 /* Don't create zombie on child death. */
-#define SA_SIGINFO 0x00000008 /* Invoke signal-catching function with
- three arguments instead of one. */
-#if defined __USE_XOPEN_EXTENDED || defined __USE_MISC
-# define SA_ONSTACK 0x08000000 /* Use signal stack by using `sa_restorer'. */
-#endif
-#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
-# define SA_RESETHAND 0x80000000 /* Reset to SIG_DFL on entry to handler. */
-# define SA_RESTART 0x10000000 /* Restart syscall on signal return. */
-# define SA_NODEFER 0x40000000 /* Don't automatically block the signal when
- its handler is being executed. */
-#endif
-#ifdef __USE_MISC
-# define SA_INTERRUPT 0x20000000 /* Historical no-op. */
-
-/* Some aliases for the SA_ constants. */
-# define SA_NOMASK SA_NODEFER
-# define SA_ONESHOT SA_RESETHAND
-# define SA_STACK SA_ONSTACK
-#endif
-
-/* Values for the HOW argument to `sigprocmask'. */
-#define SIG_NOP 0 /* 0 is unused to catch errors */
-#define SIG_BLOCK 1 /* Block signals. */
-#define SIG_UNBLOCK 2 /* Unblock signals. */
-#define SIG_SETMASK 3 /* Set the set of blocked signals. */
-#ifdef __USE_MISC
-# define SIG_SETMASK32 256 /* Goodie from SGI for BSD compatibility:
- set only the low 32 bit of the sigset. */
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/sigcontext.h
@@ -1,82 +0,0 @@
-/* Copyright (C) 1996-2025 Free Software Foundation, Inc. This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGCONTEXT_H
-#define _BITS_SIGCONTEXT_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
-#endif
-
-#include <sgidefs.h>
-
-#if _MIPS_SIM == _ABIO32
-
-/* Certain unused fields were replaced with new ones in 2.6.12-rc4.
- The changes were as follows:
-
- sc_cause -> sc_hi1
- sc_badvaddr -> sc_lo1
- sc_sigset[0] -> sc_hi2
- sc_sigset[1] -> sc_lo2
- sc_sigset[2] -> sc_hi3
- sc_sigset[3] -> sc_lo3
-
- sc_regmask, sc_ownedfp and sc_fpc_eir are not used. */
-struct sigcontext {
- unsigned int sc_regmask;
- unsigned int sc_status;
- __extension__ unsigned long long sc_pc;
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- unsigned int sc_ownedfp;
- unsigned int sc_fpc_csr;
- unsigned int sc_fpc_eir;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_mdlo;
- unsigned long sc_hi1;
- unsigned long sc_lo1;
- unsigned long sc_hi2;
- unsigned long sc_lo2;
- unsigned long sc_hi3;
- unsigned long sc_lo3;
-};
-
-#else
-
-/* This structure changed in 2.6.12-rc4 when DSP support was added. */
-struct sigcontext {
- __extension__ unsigned long long sc_regs[32];
- __extension__ unsigned long long sc_fpregs[32];
- __extension__ unsigned long long sc_mdhi;
- __extension__ unsigned long long sc_hi1;
- __extension__ unsigned long long sc_hi2;
- __extension__ unsigned long long sc_hi3;
- __extension__ unsigned long long sc_mdlo;
- __extension__ unsigned long long sc_lo1;
- __extension__ unsigned long long sc_lo2;
- __extension__ unsigned long long sc_lo3;
- __extension__ unsigned long long sc_pc;
- unsigned int sc_fpc_csr;
- unsigned int sc_used_math;
- unsigned int sc_dsp;
- unsigned int sc_reserved;
-};
-
-#endif /* _MIPS_SIM != _ABIO32 */
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/siginfo-arch.h
@@ -1,13 +0,0 @@
-/* Architecture-specific adjustments to siginfo_t. MIPS version. */
-#ifndef _BITS_SIGINFO_ARCH_H
-#define _BITS_SIGINFO_ARCH_H 1
-
-/* MIPS has the si_code and si_errno fields in the opposite order from
- all other architectures. */
-#define __SI_ERRNO_THEN_CODE 0
-
-/* MIPS also has different values for SI_ASYNCIO, SI_MESGQ, and SI_TIMER
- than all other architectures. */
-#define __SI_ASYNCIO_AFTER_SIGIO 0
-
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/signalfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SIGNALFD_H
-# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
-#endif
-
-/* Flags for signalfd. */
-enum
- {
- SFD_CLOEXEC = 02000000,
-#define SFD_CLOEXEC SFD_CLOEXEC
- SFD_NONBLOCK = 00000200
-#define SFD_NONBLOCK SFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/signum-arch.h
@@ -1,65 +0,0 @@
-/* Signal number definitions. Linux/MIPS version.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGNUM_H
-#define _BITS_SIGNUM_H 1
-
-#ifndef _SIGNAL_H
-#error "Never include <bits/signum.h> directly; use <signal.h> instead."
-#endif
-
-/* Adjustments and additions to the signal number constants for
- Linux/MIPS. */
-
-#define SIGEMT 7 /* Emulator trap. */
-#define SIGPWR 19 /* Power failure imminent. */
-
-/* Historical signals specified by POSIX. */
-#define SIGBUS 10 /* Bus error. */
-#define SIGSYS 12 /* Bad system call. */
-
-/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
-#define SIGURG 21 /* Urgent data is available at a socket. */
-#define SIGSTOP 23 /* Stop, unblockable. */
-#define SIGTSTP 24 /* Keyboard stop. */
-#define SIGCONT 25 /* Continue. */
-#define SIGCHLD 18 /* Child terminated or stopped. */
-#define SIGTTIN 26 /* Background read from control terminal. */
-#define SIGTTOU 27 /* Background write to control terminal. */
-#define SIGPOLL 22 /* Pollable event occurred (System V). */
-#define SIGXCPU 30 /* CPU time limit exceeded. */
-#define SIGVTALRM 28 /* Virtual timer expired. */
-#define SIGPROF 29 /* Profiling timer expired. */
-#define SIGXFSZ 31 /* File size limit exceeded. */
-#define SIGUSR1 16 /* User-defined signal 1. */
-#define SIGUSR2 17 /* User-defined signal 2. */
-
-/* Nonstandard signals found in all modern POSIX systems
- (including both BSD and Linux). */
-#define SIGWINCH 20 /* Window size change (4.3 BSD, Sun). */
-
-/* Archaic names for compatibility. */
-#define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
-#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
-#define SIGCLD SIGCHLD /* Old System V name */
-
-/* By default no real-time signals are supported. */
-#define __SIGRTMIN 32
-#define __SIGRTMAX 127
-
-#endif /* <signal.h> included. */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/socket-constants.h
@@ -1,70 +0,0 @@
-/* Socket constants which vary among Linux architectures. Version for MIPS.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
-#endif
-
-#define SOL_SOCKET 65535
-#define SO_ACCEPTCONN 4105
-#define SO_BROADCAST 32
-#define SO_DONTROUTE 16
-#define SO_ERROR 4103
-#define SO_KEEPALIVE 8
-#define SO_LINGER 128
-#define SO_OOBINLINE 256
-#define SO_RCVBUF 4098
-#define SO_RCVLOWAT 4100
-#define SO_REUSEADDR 4
-#define SO_SNDBUF 4097
-#define SO_SNDLOWAT 4099
-#define SO_TYPE 4104
-
-#if __TIMESIZE == 64
-# define SO_RCVTIMEO 4102
-# define SO_SNDTIMEO 4101
-# define SO_TIMESTAMP 29
-# define SO_TIMESTAMPNS 35
-# define SO_TIMESTAMPING 37
-#else
-# define SO_RCVTIMEO_OLD 4102
-# define SO_SNDTIMEO_OLD 4101
-# define SO_RCVTIMEO_NEW 66
-# define SO_SNDTIMEO_NEW 67
-
-# 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
-
-# ifdef __USE_TIME64_REDIRECTS
-# define SO_RCVTIMEO SO_RCVTIMEO_NEW
-# define SO_SNDTIMEO SO_SNDTIMEO_NEW
-# define SO_TIMESTAMP SO_TIMESTAMP_NEW
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_NEW
-# define SO_TIMESTAMPING SO_TIMESTAMPING_NEW
-# else
-# define SO_RCVTIMEO SO_RCVTIMEO_OLD
-# define SO_SNDTIMEO SO_SNDTIMEO_OLD
-# define SO_TIMESTAMP SO_TIMESTAMP_OLD
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
-# define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
-# endif
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/socket_type.h
@@ -1,55 +0,0 @@
-/* Define enum __socket_type for Linux/MIPS.
- Copyright (C) 1991-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
-#endif
-
-/* Types of sockets. */
-enum __socket_type
-{
- SOCK_DGRAM = 1, /* Connectionless, unreliable datagrams
- of fixed maximum length. */
-#define SOCK_DGRAM SOCK_DGRAM
- SOCK_STREAM = 2, /* Sequenced, reliable, connection-based
- byte streams. */
-#define SOCK_STREAM SOCK_STREAM
- SOCK_RAW = 3, /* Raw protocol interface. */
-#define SOCK_RAW SOCK_RAW
- SOCK_RDM = 4, /* Reliably-delivered messages. */
-#define SOCK_RDM SOCK_RDM
- SOCK_SEQPACKET = 5, /* Sequenced, reliable, connection-based,
- datagrams of fixed maximum length. */
-#define SOCK_SEQPACKET SOCK_SEQPACKET
- SOCK_DCCP = 6,
-#define SOCK_DCCP SOCK_DCCP /* Datagram Congestion Control Protocol. */
- SOCK_PACKET = 10, /* Linux specific way of getting packets
- at the dev level. For writing rarp and
- other similar things on the user level. */
-#define SOCK_PACKET SOCK_PACKET
-
- /* Flags to be ORed into the type parameter of socket and socketpair and
- used for the flags parameter of paccept. */
-
- SOCK_CLOEXEC = 02000000, /* Atomically set close-on-exec flag for the
- new descriptor(s). */
-#define SOCK_CLOEXEC SOCK_CLOEXEC
- SOCK_NONBLOCK = 00000200 /* Atomically mark descriptor(s) as
- non-blocking. */
-#define SOCK_NONBLOCK SOCK_NONBLOCK
-};
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/statfs.h
@@ -1,73 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_STATFS_H
-# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
-#endif
-
-#include <bits/types.h> /* for __fsid_t and __fsblkcnt_t*/
-
-struct statfs
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
-#ifndef __USE_FILE_OFFSET64
- __fsblkcnt_t f_blocks;
- __fsblkcnt_t f_bfree;
- __fsblkcnt_t f_files;
- __fsblkcnt_t f_ffree;
- __fsblkcnt_t f_bavail;
-#else
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-#endif
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-
-#ifdef __USE_LARGEFILE64
-struct statfs64
- {
- long int f_type;
-#define f_fstyp f_type
- long int f_bsize;
- long int f_frsize; /* Fragment size - unsupported */
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_files;
- __fsblkcnt64_t f_ffree;
- __fsblkcnt64_t f_bavail;
-
- /* Linux specials */
- __fsid_t f_fsid;
- long int f_namelen;
- long int f_flags;
- long int f_spare[5];
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATFS_F_NAMELEN
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/struct_mutex.h
@@ -1,56 +0,0 @@
-/* MIPS internal mutex struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _THREAD_MUTEX_INTERNAL_H
-#define _THREAD_MUTEX_INTERNAL_H 1
-
-struct __pthread_mutex_s
-{
- int __lock;
- unsigned int __count;
- int __owner;
-#if _MIPS_SIM == _ABI64
- unsigned int __nusers;
-#endif
- /* KIND must stay at this position in the structure to maintain
- binary compatibility with static initializers. */
- int __kind;
-#if _MIPS_SIM == _ABI64
- int __spins;
- __pthread_list_t __list;
-# define __PTHREAD_MUTEX_HAVE_PREV 1
-#else
- unsigned int __nusers;
- __extension__ union
- {
- int __spins;
- __pthread_slist_t __list;
- };
-# define __PTHREAD_MUTEX_HAVE_PREV 0
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, 0, __kind, 0, { 0, 0 }
-#else
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, __kind, 0, { 0 }
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/struct_rwlock.h
@@ -1,71 +0,0 @@
-/* MIPS internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#if _MIPS_SIM == _ABI64
- int __cur_writer;
- int __shared;
- unsigned long int __pad1;
- unsigned long int __pad2;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned int __flags;
-# else
-# if __BYTE_ORDER == __BIG_ENDIAN
- unsigned char __pad1;
- unsigned char __pad2;
- unsigned char __shared;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
-# else
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- unsigned char __shared;
- unsigned char __pad1;
- unsigned char __pad2;
-# endif
- int __cur_writer;
-#endif
-};
-
-#if _MIPS_SIM == _ABI64
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
-#else
-# if __BYTE_ORDER == __BIG_ENDIAN
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
-# else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
-# endif
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/termios-c_cc.h
@@ -1,43 +0,0 @@
-/* termios c_cc symbolic constant definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
-#endif
-
-/* c_cc characters */
-#define VINTR 0 /* Interrupt character [ISIG]. */
-#define VQUIT 1 /* Quit character [ISIG]. */
-#define VERASE 2 /* Erase character [ICANON]. */
-#define VKILL 3 /* Kill-line character [ICANON]. */
-#define VMIN 4 /* Minimum number of bytes read at once [!ICANON]. */
-#define VTIME 5 /* Time-out value (tenths of a second) [!ICANON]. */
-#define VEOL2 6 /* Second EOL character [ICANON]. */
-#define VSWTC 7
-#define VSWTCH VSWTC
-#define VSTART 8 /* Start (X-ON) character [IXON, IXOFF]. */
-#define VSTOP 9 /* Stop (X-OFF) character [IXON, IXOFF]. */
-#define VSUSP 10 /* Suspend character [ISIG]. */
- /* VDSUSP is not supported on Linux. */
-/* #define VDSUSP 11 / * Delayed suspend character [ISIG]. */
-#define VREPRINT 12 /* Reprint-line character [ICANON]. */
-#define VDISCARD 13 /* Discard character [IEXTEN]. */
-#define VWERASE 14 /* Word-erase character [ICANON]. */
-#define VLNEXT 15 /* Literal-next character [IEXTEN]. */
-#define VEOF 16 /* End-of-file character [ICANON]. */
-#define VEOL 17 /* End-of-line character [ICANON]. */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/termios-c_lflag.h
@@ -1,46 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_lflag bits */
-#define ISIG 0000001 /* Enable signals. */
-#define ICANON 0000002 /* Do erase and kill processing. */
-#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
-# define XCASE 0000004
-#endif
-#define ECHO 0000010 /* Enable echo. */
-#define ECHOE 0000020 /* Visual erase for ERASE. */
-#define ECHOK 0000040 /* Echo NL after KILL. */
-#define ECHONL 0000100 /* Echo NL even if ECHO is off. */
-#define NOFLSH 0000200 /* Disable flush after interrupt. */
-#define IEXTEN 0000400 /* Enable DISCARD and LNEXT. */
-#ifdef __USE_MISC
-# define ECHOCTL 0001000 /* Echo control characters as ^X. */
-# define ECHOPRT 0002000 /* Hardcopy visual erase. */
-# define ECHOKE 0004000 /* Visual erase for KILL. */
-# define FLUSHO 0020000
-# define PENDIN 0040000 /* Retype pending input (state). */
-#endif
-#define TOSTOP 0100000 /* Send SIGTTOU for background output. */
-#define ITOSTOP TOSTOP
-#ifdef __USE_MISC
-# define EXTPROC 0200000
-#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/termios-struct.h
@@ -1,34 +0,0 @@
-/* struct termios definition. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
-#endif
-
-#define NCCS 32
-struct termios
- {
- tcflag_t c_iflag; /* input mode flags */
- tcflag_t c_oflag; /* output mode flags */
- tcflag_t c_cflag; /* control mode flags */
- tcflag_t c_lflag; /* local mode flags */
- cc_t c_line; /* line discipline */
- cc_t c_cc[NCCS]; /* control characters */
-#define _HAVE_STRUCT_TERMIOS_C_ISPEED 0
-#define _HAVE_STRUCT_TERMIOS_C_OSPEED 0
- };
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/termios-tcflow.h
@@ -1,26 +0,0 @@
-/* termios local mode definitions. Linux/mips version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
-#endif
-
-/* tcsetattr uses these */
-#define TCSANOW 0x540e /* Same as TCSETS; change immediately. */
-#define TCSADRAIN 0x540f /* Same as TCSETSW; change when pending output is written. */
-#define TCSAFLUSH 0x5410 /* Same as TCSETSF; flush pending input before changing. */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/timerfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2008-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_TIMERFD_H
-# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
-#endif
-
-/* Bits to be set in the FLAGS parameter of `timerfd_create'. */
-enum
- {
- TFD_CLOEXEC = 02000000,
-#define TFD_CLOEXEC TFD_CLOEXEC
- TFD_NONBLOCK = 00000200
-#define TFD_NONBLOCK TFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/bits/typesizes.h
@@ -1,95 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. MIPS version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __UWORD_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#ifdef __LP64__
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for rlim_t and rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-
-/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
-# define __STATFS_MATCHES_STATFS64 1
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-
-# define __STATFS_MATCHES_STATFS64 0
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnueabihf/ieee754.h
@@ -1,326 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-
-#ifndef __LDBL_MANT_DIG__
-# include <float.h>
-# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
-#endif
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#if __LDBL_MANT_DIG__ == 113
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-
-#elif __LDBL_MANT_DIG__ == 64
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:32;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:32;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee;
-
- /* This is for NaNs in the IEEE 854 double-extended-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int empty:16;
- unsigned int one:1;
- unsigned int quiet_nan:1;
- unsigned int mantissa0:30;
- unsigned int mantissa1:32;
-#endif
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int mantissa1:32;
-# else
- unsigned int mantissa1:32;
- unsigned int mantissa0:30;
- unsigned int quiet_nan:1;
- unsigned int one:1;
- unsigned int exponent:15;
- unsigned int negative:1;
- unsigned int empty:16;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
-
-#elif __LDBL_MANT_DIG__ == 53
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
-# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
- unsigned int mantissa1:32;
-# else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-# endif
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-#endif /* __LDBL_MANT_DIG__ == 53 */
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabi/bits/types/struct_msqid_ds.h → lib/libc/include/powerpc-linux-gnu/bits/types/struct_msqid_ds.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/types/struct_semid_ds.h → lib/libc/include/powerpc-linux-gnu/bits/types/struct_semid_ds.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/types/struct_shmid_ds.h → lib/libc/include/powerpc-linux-gnu/bits/types/struct_shmid_ds.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/endianness.h → lib/libc/include/powerpc-linux-gnu/bits/endianness.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/environments.h → lib/libc/include/powerpc-linux-gnu/bits/environments.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/fcntl.h → lib/libc/include/powerpc-linux-gnu/bits/fcntl.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/fenv.h → lib/libc/include/powerpc-linux-gnu/bits/fenv.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/floatn.h → lib/libc/include/powerpc-linux-gnu/bits/floatn.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/fp-fast.h → lib/libc/include/powerpc-linux-gnu/bits/fp-fast.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/hwcap.h → lib/libc/include/powerpc-linux-gnu/bits/hwcap.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/ioctl-types.h → lib/libc/include/powerpc-linux-gnu/bits/ioctl-types.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/ipc-perm.h → lib/libc/include/powerpc-linux-gnu/bits/ipc-perm.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/iscanonical.h → lib/libc/include/powerpc-linux-gnu/bits/iscanonical.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/link.h → lib/libc/include/powerpc-linux-gnu/bits/link.h
File renamed without changes
lib/libc/include/powerpc64le-linux-gnu/bits/long-double.h → lib/libc/include/powerpc-linux-gnu/bits/long-double.h
@@ -1,5 +1,5 @@
/* Properties of long double type. ldbl-opt version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
+ Copyright (C) 2016-2025 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -23,4 +23,9 @@
# endif
#endif
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI (__LDBL_MANT_DIG__ == 113)
\ No newline at end of file
+// zig patch: handle both be and le in the same header
+#ifdef __LITTLE_ENDIAN__
+#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI (__LDBL_MANT_DIG__ == 113)
+#else
+#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
+#endif
lib/libc/include/powerpc-linux-gnueabi/bits/mman.h → lib/libc/include/powerpc-linux-gnu/bits/mman.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/procfs.h → lib/libc/include/powerpc-linux-gnu/bits/procfs.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/pthread_stack_min.h → lib/libc/include/powerpc-linux-gnu/bits/pthread_stack_min.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/rseq.h → lib/libc/include/powerpc-linux-gnu/bits/rseq.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/setjmp.h → lib/libc/include/powerpc-linux-gnu/bits/setjmp.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/sigstack.h → lib/libc/include/powerpc-linux-gnu/bits/sigstack.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/socket-constants.h → lib/libc/include/powerpc-linux-gnu/bits/socket-constants.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/struct_mutex.h → lib/libc/include/powerpc-linux-gnu/bits/struct_mutex.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/struct_rwlock.h → lib/libc/include/powerpc-linux-gnu/bits/struct_rwlock.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/struct_stat.h → lib/libc/include/powerpc-linux-gnu/bits/struct_stat.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/termios-baud.h → lib/libc/include/powerpc-linux-gnu/bits/termios-baud.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/termios-c_cc.h → lib/libc/include/powerpc-linux-gnu/bits/termios-c_cc.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/termios-c_cflag.h → lib/libc/include/powerpc-linux-gnu/bits/termios-c_cflag.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/termios-c_iflag.h → lib/libc/include/powerpc-linux-gnu/bits/termios-c_iflag.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/termios-c_lflag.h → lib/libc/include/powerpc-linux-gnu/bits/termios-c_lflag.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/termios-c_oflag.h → lib/libc/include/powerpc-linux-gnu/bits/termios-c_oflag.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/termios-misc.h → lib/libc/include/powerpc-linux-gnu/bits/termios-misc.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/timesize.h → lib/libc/include/powerpc-linux-gnu/bits/timesize.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/typesizes.h → lib/libc/include/powerpc-linux-gnu/bits/typesizes.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/wordsize.h → lib/libc/include/powerpc-linux-gnu/bits/wordsize.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/gnu/lib-names-32.h → lib/libc/include/powerpc-linux-gnu/gnu/lib-names-32.h
File renamed without changes
lib/libc/include/powerpc64-linux-gnu/gnu/lib-names-64-v1.h → lib/libc/include/powerpc-linux-gnu/gnu/lib-names-64-v1.h
File renamed without changes
lib/libc/include/powerpc64le-linux-gnu/gnu/lib-names-64-v2.h → lib/libc/include/powerpc-linux-gnu/gnu/lib-names-64-v2.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/gnu/lib-names.h → lib/libc/include/powerpc-linux-gnu/gnu/lib-names.h
File renamed without changes
lib/libc/include/powerpc64-linux-gnu/gnu/stubs-64-v1.h → lib/libc/include/powerpc-linux-gnu/gnu/stubs-64-v1.h
File renamed without changes
lib/libc/include/powerpc64le-linux-gnu/gnu/stubs-64-v2.h → lib/libc/include/powerpc-linux-gnu/gnu/stubs-64-v2.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/gnu/stubs.h → lib/libc/include/powerpc-linux-gnu/gnu/stubs.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/sys/ptrace.h → lib/libc/include/powerpc-linux-gnu/sys/ptrace.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/sys/ucontext.h → lib/libc/include/powerpc-linux-gnu/sys/ucontext.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/sys/user.h → lib/libc/include/powerpc-linux-gnu/sys/user.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/fpu_control.h → lib/libc/include/powerpc-linux-gnu/fpu_control.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/ieee754.h → lib/libc/include/powerpc-linux-gnu/ieee754.h
File renamed without changes
lib/libc/include/powerpc-linux-gnueabi/bits/long-double.h
@@ -1,25 +0,0 @@
-/* Properties of long double type. ldbl-opt version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __LONG_DOUBLE_MATH_OPTIONAL 1
-# ifndef __LONG_DOUBLE_128__
-# define __NO_LONG_DOUBLE_MATH 1
-# endif
-#endif
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/types/struct_msqid_ds.h
@@ -1,53 +0,0 @@
-/* Linux/PowerPC implementation of the SysV message struct msqid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MSG_H
-# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
-#endif
-
-#include <bits/types/time_t.h>
-
-/* Structure of record for one message inside the kernel.
- The type `struct msg' is opaque. */
-struct msqid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_msqid64_ds_helper.h>
-#else
- struct ipc_perm msg_perm; /* structure describing operation permission */
-# if __TIMESIZE == 32
- unsigned long int __msg_stime_high;
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_ctime_high;
- __time_t msg_ctime; /* time of last change */
-# else
- __time_t msg_stime; /* time of last msgsnd command */
- __time_t msg_rtime; /* time of last msgsnd command */
- __time_t msg_ctime; /* time of last change */
-# endif
- __syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
- msgqnum_t msg_qnum; /* number of messages currently on queue */
- msglen_t msg_qbytes; /* max number of bytes allowed on queue */
- __pid_t msg_lspid; /* pid of last msgsnd() */
- __pid_t msg_lrpid; /* pid of last msgrcv() */
- __syscall_ulong_t __glibc_reserved4;
- __syscall_ulong_t __glibc_reserved5;
-#endif
-};
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/types/struct_semid_ds.h
@@ -1,43 +0,0 @@
-/* PowerPC implementation of the semaphore struct semid_ds.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
-#endif
-
-/* Data structure describing a set of semaphores. */
-struct semid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_semid64_ds_helper.h>
-#else
- struct ipc_perm sem_perm; /* operation permission struct */
-# if __TIMESIZE == 32
- __syscall_ulong_t __sem_otime_high;
- __time_t sem_otime; /* last semop() time */
- __syscall_ulong_t __sem_ctime_high;
- __time_t sem_ctime; /* last time changed by semctl() */
-# else
- __time_t sem_otime; /* last semop() time */
- __time_t sem_ctime; /* last time changed by semctl() */
-# endif
- __syscall_ulong_t sem_nsems; /* number of semaphores in set */
- __syscall_ulong_t __glibc_reserved3;
- __syscall_ulong_t __glibc_reserved4;
-#endif
-};
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/types/struct_shmid_ds.h
@@ -1,50 +0,0 @@
-/* Linux/PowerPC implementation of the shared memory struct shmid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never include <bits/types/struct_shmid_ds.h> directly; use <sys/shm.h> instead."
-#endif
-
-/* Data structure describing a shared memory segment. */
-struct shmid_ds
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_shmid64_ds_helper.h>
-#else
- struct ipc_perm shm_perm; /* operation permission struct */
-# if __TIMESIZE == 32
- unsigned long int __shm_atime_high;
- __time_t shm_atime; /* time of last shmat() */
- unsigned long int __shm_dtime_high;
- __time_t shm_dtime; /* time of last shmdt() */
- unsigned long int __shm_ctime_high;
- __time_t shm_ctime; /* time of last change by shmctl() */
- unsigned long int __glibc_reserved4;
-# else
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# endif
- size_t shm_segsz; /* size of segment in bytes */
- __pid_t shm_cpid; /* pid of creator */
- __pid_t shm_lpid; /* pid of last shmop */
- shmatt_t shm_nattch; /* number of current attaches */
- __syscall_ulong_t __glibc_reserved5;
- __syscall_ulong_t __glibc_reserved6;
-#endif
- };
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/endianness.h
@@ -1,16 +0,0 @@
-#ifndef _BITS_ENDIANNESS_H
-#define _BITS_ENDIANNESS_H 1
-
-#ifndef _BITS_ENDIAN_H
-# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
-#endif
-
-/* PowerPC has selectable endianness. */
-#if defined __BIG_ENDIAN__ || defined _BIG_ENDIAN
-# define __BYTE_ORDER __BIG_ENDIAN
-#endif
-#if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
-# define __BYTE_ORDER __LITTLE_ENDIAN
-#endif
-
-#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/environments.h
@@ -1,96 +0,0 @@
-/* Copyright (C) 1999-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _UNISTD_H
-# error "Never include this file directly. Use <unistd.h> instead"
-#endif
-
-#include <bits/wordsize.h>
-
-/* This header should define the following symbols under the described
- situations. A value `1' means that the model is always supported,
- `-1' means it is never supported. Undefined means it cannot be
- statically decided.
-
- _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type
- _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type
-
- _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type
- _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type
-
- The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG,
- _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32,
- _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were
- used in previous versions of the Unix standard and are available
- only for compatibility.
-*/
-
-#if __WORDSIZE == 64
-
-/* Environments with 32-bit wide pointers are optionally provided.
- Therefore following macros aren't defined:
- # undef _POSIX_V7_ILP32_OFF32
- # undef _POSIX_V7_ILP32_OFFBIG
- # undef _POSIX_V6_ILP32_OFF32
- # undef _POSIX_V6_ILP32_OFFBIG
- # undef _XBS5_ILP32_OFF32
- # undef _XBS5_ILP32_OFFBIG
- and users need to check at runtime. */
-
-/* We also have no use (for now) for an environment with bigger pointers
- and offsets. */
-# define _POSIX_V7_LPBIG_OFFBIG -1
-# define _POSIX_V6_LPBIG_OFFBIG -1
-# define _XBS5_LPBIG_OFFBIG -1
-
-/* By default we have 64-bit wide `long int', pointers and `off_t'. */
-# define _POSIX_V7_LP64_OFF64 1
-# define _POSIX_V6_LP64_OFF64 1
-# define _XBS5_LP64_OFF64 1
-
-#else /* __WORDSIZE == 32 */
-
-/* By default we have 32-bit wide `int', `long int', pointers and `off_t'
- and all platforms support LFS. */
-# define _POSIX_V7_ILP32_OFF32 1
-# define _POSIX_V7_ILP32_OFFBIG 1
-# define _POSIX_V6_ILP32_OFF32 1
-# define _POSIX_V6_ILP32_OFFBIG 1
-# define _XBS5_ILP32_OFF32 1
-# define _XBS5_ILP32_OFFBIG 1
-
-/* We optionally provide an environment with the above size but an 64-bit
- side `off_t'. Therefore we don't define _POSIX_V7_ILP32_OFFBIG. */
-
-/* Environments with 64-bit wide pointers can be provided,
- so these macros aren't defined:
- # undef _POSIX_V7_LP64_OFF64
- # undef _POSIX_V7_LPBIG_OFFBIG
- # undef _POSIX_V6_LP64_OFF64
- # undef _POSIX_V6_LPBIG_OFFBIG
- # undef _XBS5_LP64_OFF64
- # undef _XBS5_LPBIG_OFFBIG
- and sysconf tests for it at runtime. */
-
-#endif /* __WORDSIZE == 32 */
-
-#define __ILP32_OFF32_CFLAGS "-m32"
-#define __ILP32_OFFBIG_CFLAGS "-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
-#define __ILP32_OFF32_LDFLAGS "-m32"
-#define __ILP32_OFFBIG_LDFLAGS "-m32"
-#define __LP64_OFF64_CFLAGS "-m64"
-#define __LP64_OFF64_LDFLAGS "-m64"
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/fcntl.h
@@ -1,68 +0,0 @@
-/* O_*, F_*, FD_* bit values for Linux/PowerPC.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FCNTL_H
-# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-#define __O_DIRECTORY 040000 /* Must be a directory. */
-#define __O_NOFOLLOW 0100000 /* Do not follow links. */
-#define __O_DIRECT 0400000 /* Direct disk access. */
-
-#if __WORDSIZE == 64
-/* Not necessary, files are always with 64bit off_t. */
-# define __O_LARGEFILE 0
-#else
-# define __O_LARGEFILE 0200000
-#endif
-
-#if __WORDSIZE == 64 && !defined __USE_FILE_OFFSET64
-# define F_GETLK 5
-# define F_SETLK 6
-# define F_SETLKW 7
-#endif
-
-struct flock
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
-#ifndef __USE_FILE_OFFSET64
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
-#else
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
-#endif
- __pid_t l_pid; /* Process holding the lock. */
- };
-
-#ifdef __USE_LARGEFILE64
-struct flock64
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- };
-#endif
-
-/* Include generic Linux declarations. */
-#include <bits/fcntl-linux.h>
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/fenv.h
@@ -1,180 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FENV_H
-# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
-#endif
-
-
-/* Define bits representing the exception. We use the bit positions of
- the appropriate bits in the FPSCR... */
-enum
- {
- FE_INEXACT =
-#define FE_INEXACT (1 << (31 - 6))
- FE_INEXACT,
- FE_DIVBYZERO =
-#define FE_DIVBYZERO (1 << (31 - 5))
- FE_DIVBYZERO,
- FE_UNDERFLOW =
-#define FE_UNDERFLOW (1 << (31 - 4))
- FE_UNDERFLOW,
- FE_OVERFLOW =
-#define FE_OVERFLOW (1 << (31 - 3))
- FE_OVERFLOW,
-
- /* ... except for FE_INVALID, for which we use bit 31. FE_INVALID
- actually corresponds to bits 7 through 12 and 21 through 23
- in the FPSCR, but we can't use that because the current draft
- says that it must be a power of 2. Instead we use bit 2 which
- is the summary bit for all the FE_INVALID exceptions, which
- kind of makes sense. */
- FE_INVALID =
-#define FE_INVALID (1 << (31 - 2))
- FE_INVALID,
-
-#ifdef __USE_GNU
- /* Breakdown of the FE_INVALID bits. Setting FE_INVALID on an
- input to a routine is equivalent to setting all of these bits;
- FE_INVALID will be set on output from a routine iff one of
- these bits is set. Note, though, that you can't disable or
- enable these exceptions individually. */
-
- /* Operation with a sNaN. */
- FE_INVALID_SNAN =
-# define FE_INVALID_SNAN (1 << (31 - 7))
- FE_INVALID_SNAN,
-
- /* Inf - Inf */
- FE_INVALID_ISI =
-# define FE_INVALID_ISI (1 << (31 - 8))
- FE_INVALID_ISI,
-
- /* Inf / Inf */
- FE_INVALID_IDI =
-# define FE_INVALID_IDI (1 << (31 - 9))
- FE_INVALID_IDI,
-
- /* 0 / 0 */
- FE_INVALID_ZDZ =
-# define FE_INVALID_ZDZ (1 << (31 - 10))
- FE_INVALID_ZDZ,
-
- /* Inf * 0 */
- FE_INVALID_IMZ =
-# define FE_INVALID_IMZ (1 << (31 - 11))
- FE_INVALID_IMZ,
-
- /* Comparison with a NaN. */
- FE_INVALID_COMPARE =
-# define FE_INVALID_COMPARE (1 << (31 - 12))
- FE_INVALID_COMPARE,
-
- /* Invalid operation flag for software (not set by hardware). */
- /* Note that some chips don't have this implemented, presumably
- because no-one expected anyone to write software for them %-). */
- FE_INVALID_SOFTWARE =
-# define FE_INVALID_SOFTWARE (1 << (31 - 21))
- FE_INVALID_SOFTWARE,
-
- /* Square root of negative number (including -Inf). */
- /* Note that some chips don't have this implemented. */
- FE_INVALID_SQRT =
-# define FE_INVALID_SQRT (1 << (31 - 22))
- FE_INVALID_SQRT,
-
- /* Conversion-to-integer of a NaN or a number too large or too small. */
- FE_INVALID_INTEGER_CONVERSION =
-# define FE_INVALID_INTEGER_CONVERSION (1 << (31 - 23))
- FE_INVALID_INTEGER_CONVERSION
-
-# define FE_ALL_INVALID \
- (FE_INVALID_SNAN | FE_INVALID_ISI | FE_INVALID_IDI | FE_INVALID_ZDZ \
- | FE_INVALID_IMZ | FE_INVALID_COMPARE | FE_INVALID_SOFTWARE \
- | FE_INVALID_SQRT | FE_INVALID_INTEGER_CONVERSION)
-#endif
- };
-
-#define FE_ALL_EXCEPT \
- (FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID)
-
-/* PowerPC chips support all of the four defined rounding modes. We
- use the bit pattern in the FPSCR as the values for the
- appropriate macros. */
-enum
- {
- FE_TONEAREST =
-#define FE_TONEAREST 0
- FE_TONEAREST,
- FE_TOWARDZERO =
-#define FE_TOWARDZERO 1
- FE_TOWARDZERO,
- FE_UPWARD =
-#define FE_UPWARD 2
- FE_UPWARD,
- FE_DOWNWARD =
-#define FE_DOWNWARD 3
- FE_DOWNWARD
- };
-
-/* Type representing exception flags. */
-typedef unsigned int fexcept_t;
-
-/* Type representing floating-point environment. We leave it as 'double'
- for efficiency reasons (rather than writing it to a 32-bit integer). */
-typedef double fenv_t;
-
-/* If the default argument is used we use this value. */
-extern const fenv_t __fe_dfl_env;
-#define FE_DFL_ENV (&__fe_dfl_env)
-
-#ifdef __USE_GNU
-/* Floating-point environment where all exceptions are enabled. Note that
- this is not sufficient to give you SIGFPE. */
-extern const fenv_t __fe_enabled_env;
-# define FE_ENABLED_ENV (&__fe_enabled_env)
-
-/* Floating-point environment with (processor-dependent) non-IEEE floating
- point. */
-extern const fenv_t __fe_nonieee_env;
-# define FE_NONIEEE_ENV (&__fe_nonieee_env)
-
-/* Floating-point environment with all exceptions enabled. Note that
- just evaluating this value does not change the processor exception mode.
- Passing this mask to fesetenv will result in a prctl syscall to change
- the MSR FE0/FE1 bits to "Precise Mode". On some processors this will
- result in slower floating point execution. This will last until an
- fenv or exception mask is installed that disables all FP exceptions. */
-# define FE_NOMASK_ENV FE_ENABLED_ENV
-
-/* Floating-point environment with all exceptions disabled. Note that
- just evaluating this value does not change the processor exception mode.
- Passing this mask to fesetenv will result in a prctl syscall to change
- the MSR FE0/FE1 bits to "Ignore Exceptions Mode". On most processors
- this allows the fastest possible floating point execution.*/
-# define FE_MASK_ENV FE_DFL_ENV
-
-#endif
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
-/* Type representing floating-point control modes. */
-typedef double femode_t;
-
-/* Default floating-point control modes. */
-extern const femode_t __fe_dfl_mode;
-# define FE_DFL_MODE (&__fe_dfl_mode)
-#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/floatn.h
@@ -1,122 +0,0 @@
-/* Macros to control TS 18661-3 glibc features on powerpc.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_FLOATN_H
-#define _BITS_FLOATN_H
-
-#include <features.h>
-#include <bits/long-double.h>
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this glibc
- includes corresponding *f128 interfaces for it. */
-#if defined _ARCH_PWR8 && defined __LITTLE_ENDIAN__ && (_CALL_ELF == 2) \
- && defined __FLOAT128__ && !defined __NO_LONG_DOUBLE_MATH
-# define __HAVE_FLOAT128 1
-#else
-# define __HAVE_FLOAT128 0
-#endif
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc, i.e.
- calls to the binary128 functions go to *f128 symbols instead of *l. */
-#if __HAVE_FLOAT128
-# define __HAVE_DISTINCT_FLOAT128 1
-#else
-# define __HAVE_DISTINCT_FLOAT128 0
-#endif
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X __HAVE_FLOAT128
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE 0
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-/* The literal suffix (f128) exist for powerpc only since GCC 7.0. */
-# if __LDBL_MANT_DIG__ == 113
-# define __f128(x) x##l
-# else
-# define __f128(x) x##q
-# endif
-# else
-# define __f128(x) x##f128
-# endif
-# endif
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if __LDBL_MANT_DIG__ == 113 && defined __cplusplus && !__GNUC_PREREQ (13, 0)
-typedef long double _Float128;
-# define __CFLOAT128 _Complex long double
-# elif !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-/* The type _Float128 exist for powerpc only since GCC 7.0. */
-typedef __float128 _Float128;
-/* Add a typedef for older GCC and C++ compilers which don't natively support
- _Complex _Float128. */
-typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__KC__)));
-# define __CFLOAT128 __cfloat128
-# else
-# define __CFLOAT128 _Complex _Float128
-# endif
-# endif
-
-/* The remaining of this file provides support for older compilers. */
-# if __HAVE_FLOAT128
-/* Builtin __builtin_huge_valf128 doesn't exist before GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0)
-# define __builtin_huge_valf128() ((_Float128) __builtin_huge_val ())
-# endif
-
-/* The following builtins (suffixed with 'q') are available in GCC >= 6.2,
- which is the minimum version required for float128 support on powerpc64le.
- Since GCC 7.0 the builtins suffixed with f128 are also available, then
- there is no need to redefined them. */
-# if !__GNUC_PREREQ (7, 0)
-# define __builtin_copysignf128 __builtin_copysignq
-# define __builtin_fabsf128 __builtin_fabsq
-# define __builtin_inff128 __builtin_infq
-# define __builtin_nanf128 __builtin_nanq
-# define __builtin_nansf128 __builtin_nansq
-# endif
-
-/* In math/math.h, __MATH_TG will expand signbit to __builtin_signbit*,
- e.g.: __builtin_signbitf128, before GCC 6. However, there has never
- been a __builtin_signbitf128 in GCC and the type-generic builtin is
- only available since GCC 6. */
-# if !__GNUC_PREREQ (6, 0)
-# define __builtin_signbitf128 __signbitf128
-# endif
-
-# endif
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
-
-#endif /* _BITS_FLOATN_H */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/fp-fast.h
@@ -1,39 +0,0 @@
-/* Define FP_FAST_* macros. PowerPC version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."
-#endif
-
-#ifdef __USE_ISOC99
-
-/* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l}
- builtins are supported. */
-# if (!defined _SOFT_FLOAT && !defined __NO_FPRS__) || defined __FP_FAST_FMA
-# define FP_FAST_FMA 1
-# endif
-
-# if (!defined _SOFT_FLOAT && !defined __NO_FPRS__) || defined __FP_FAST_FMAF
-# define FP_FAST_FMAF 1
-# endif
-
-# ifdef __FP_FAST_FMAL
-# define FP_FAST_FMAL 1
-# endif
-
-#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/hwcap.h
@@ -1,78 +0,0 @@
-/* Defines for bits in AT_HWCAP and AT_HWCAP2.
- Copyright (C) 2012-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
-# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
-#endif
-
-/* The bit numbers must match those in the kernel's asm/cputable.h. */
-
-/* Feature definitions in AT_HWCAP. */
-#define PPC_FEATURE_32 0x80000000 /* 32-bit mode. */
-#define PPC_FEATURE_64 0x40000000 /* 64-bit mode. */
-#define PPC_FEATURE_601_INSTR 0x20000000 /* 601 chip, Old POWER ISA. */
-#define PPC_FEATURE_HAS_ALTIVEC 0x10000000 /* SIMD/Vector Unit. */
-#define PPC_FEATURE_HAS_FPU 0x08000000 /* Floating Point Unit. */
-#define PPC_FEATURE_HAS_MMU 0x04000000 /* Memory Management Unit. */
-#define PPC_FEATURE_HAS_4xxMAC 0x02000000 /* 4xx Multiply Accumulator. */
-#define PPC_FEATURE_UNIFIED_CACHE 0x01000000 /* Unified I/D cache. */
-#define PPC_FEATURE_HAS_SPE 0x00800000 /* Signal Processing ext. */
-#define PPC_FEATURE_HAS_EFP_SINGLE 0x00400000 /* SPE Float. */
-#define PPC_FEATURE_HAS_EFP_DOUBLE 0x00200000 /* SPE Double. */
-#define PPC_FEATURE_NO_TB 0x00100000 /* 601/403gx have no timebase */
-#define PPC_FEATURE_POWER4 0x00080000 /* POWER4 ISA 2.00 */
-#define PPC_FEATURE_POWER5 0x00040000 /* POWER5 ISA 2.02 */
-#define PPC_FEATURE_POWER5_PLUS 0x00020000 /* POWER5+ ISA 2.03 */
-#define PPC_FEATURE_CELL_BE 0x00010000 /* CELL Broadband Engine */
-#define PPC_FEATURE_BOOKE 0x00008000 /* ISA Category Embedded */
-#define PPC_FEATURE_SMT 0x00004000 /* Simultaneous
- Multi-Threading */
-#define PPC_FEATURE_ICACHE_SNOOP 0x00002000
-#define PPC_FEATURE_ARCH_2_05 0x00001000 /* ISA 2.05 */
-#define PPC_FEATURE_PA6T 0x00000800 /* PA Semi 6T Core */
-#define PPC_FEATURE_HAS_DFP 0x00000400 /* Decimal FP Unit */
-#define PPC_FEATURE_POWER6_EXT 0x00000200 /* P6 + mffgpr/mftgpr */
-#define PPC_FEATURE_ARCH_2_06 0x00000100 /* ISA 2.06 */
-#define PPC_FEATURE_HAS_VSX 0x00000080 /* P7 Vector Extension. */
-#define PPC_FEATURE_PSERIES_PERFMON_COMPAT 0x00000040
-/* Reserved by the kernel. 0x00000004 Do not use. */
-#define PPC_FEATURE_TRUE_LE 0x00000002
-#define PPC_FEATURE_PPC_LE 0x00000001
-
-/* Feature definitions in AT_HWCAP2. */
-#define PPC_FEATURE2_ARCH_2_07 0x80000000 /* ISA 2.07 */
-#define PPC_FEATURE2_HAS_HTM 0x40000000 /* Hardware Transactional
- Memory */
-#define PPC_FEATURE2_HAS_DSCR 0x20000000 /* Data Stream Control
- Register */
-#define PPC_FEATURE2_HAS_EBB 0x10000000 /* Event Base Branching */
-#define PPC_FEATURE2_HAS_ISEL 0x08000000 /* Integer Select */
-#define PPC_FEATURE2_HAS_TAR 0x04000000 /* Target Address Register */
-#define PPC_FEATURE2_HAS_VEC_CRYPTO 0x02000000 /* Target supports vector
- instruction. */
-#define PPC_FEATURE2_HTM_NOSC 0x01000000 /* Kernel aborts transaction
- when a syscall is made. */
-#define PPC_FEATURE2_ARCH_3_00 0x00800000 /* ISA 3.0 */
-#define PPC_FEATURE2_HAS_IEEE128 0x00400000 /* VSX IEEE Binary Float
- 128-bit */
-#define PPC_FEATURE2_DARN 0x00200000 /* darn instruction. */
-#define PPC_FEATURE2_SCV 0x00100000 /* scv syscall. */
-#define PPC_FEATURE2_HTM_NO_SUSPEND 0x00080000 /* TM without suspended
- state. */
-#define PPC_FEATURE2_ARCH_3_1 0x00040000 /* ISA 3.1. */
-#define PPC_FEATURE2_MMA 0x00020000 /* Matrix-Multiply Assist. */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/ioctl-types.h
@@ -1,77 +0,0 @@
-/* Structure types for pre-termios terminal ioctls. Linux/powerpc version.
- Copyright (C) 2014-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IOCTL_H
-# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
-#endif
-
-/* Get definition of constants for use with `ioctl'. */
-#include <asm/ioctls.h>
-
-
-struct winsize
- {
- unsigned short int ws_row;
- unsigned short int ws_col;
- unsigned short int ws_xpixel;
- unsigned short int ws_ypixel;
- };
-
-#define NCC 10
-struct termio
- {
- unsigned short int c_iflag; /* input mode flags */
- unsigned short int c_oflag; /* output mode flags */
- unsigned short int c_cflag; /* control mode flags */
- unsigned short int c_lflag; /* local mode flags */
- unsigned char c_line; /* line discipline */
- unsigned char c_cc[NCC]; /* control characters */
-};
-
-/* modem lines */
-#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
-
-/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
-
-/* line disciplines */
-#define N_TTY 0
-#define N_SLIP 1
-#define N_MOUSE 2
-#define N_PPP 3
-#define N_STRIP 4
-#define N_AX25 5
-#define N_X25 6 /* X.25 async */
-#define N_6PACK 7
-#define N_MASC 8 /* Mobitex module */
-#define N_R3964 9 /* Simatic R3964 module */
-#define N_PROFIBUS_FDL 10 /* Profibus */
-#define N_IRDA 11 /* Linux IR */
-#define N_SMSBLOCK 12 /* SMS block mode */
-#define N_HDLC 13 /* synchronous HDLC */
-#define N_SYNC_PPP 14 /* synchronous PPP */
-#define N_HCI 15 /* Bluetooth HCI UART */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/ipc-perm.h
@@ -1,36 +0,0 @@
-/* struct ipc_perm definition. Linux/powerpc version.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IPC_H
-# error "Never use <bits/ipc-perm.h> directly; include <sys/ipc.h> instead."
-#endif
-
-/* Data structure used to pass permission information to IPC operations. */
-struct ipc_perm
- {
- __key_t __key; /* Key. */
- __uid_t uid; /* Owner's user ID. */
- __gid_t gid; /* Owner's group ID. */
- __uid_t cuid; /* Creator's user ID. */
- __gid_t cgid; /* Creator's group ID. */
- __mode_t mode; /* Read/write permission. */
- __uint32_t __seq; /* Sequence number. */
- __uint32_t __pad1;
- __uint64_t __glibc_reserved1;
- __uint64_t __glibc_reserved2;
- };
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/iscanonical.h
@@ -1,58 +0,0 @@
-/* Define iscanonical macro. ldbl-128ibm version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."
-#endif
-
-#if defined (__NO_LONG_DOUBLE_MATH) || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# define iscanonical(x) ((void) (__typeof (x)) (x), 1)
-#else
-extern int __iscanonicall (long double __x)
- __THROW __attribute__ ((__const__));
-# define __iscanonicalf(x) ((void) (__typeof (x)) (x), 1)
-# define __iscanonical(x) ((void) (__typeof (x)) (x), 1)
-# if __HAVE_DISTINCT_FLOAT128
-# define __iscanonicalf128(x) ((void) (__typeof (x)) (x), 1)
-# endif
-
-/* Return nonzero value if X is canonical. In IEEE interchange binary
- formats, all values are canonical, but the argument must still be
- converted to its semantic type for any exceptions arising from the
- conversion, before being discarded; in IBM long double, there are
- encodings that are not consistently handled as corresponding to any
- particular value of the type, and we return 0 for those. */
-# ifndef __cplusplus
-# define iscanonical(x) __MATH_TG ((x), __iscanonical, (x))
-# else
-/* In C++ mode, __MATH_TG cannot be used, because it relies on
- __builtin_types_compatible_p, which is a C-only builtin. On the
- other hand, overloading provides the means to distinguish between
- the floating-point types. The overloading resolution will match
- the correct parameter (regardless of type qualifiers (i.e.: const
- and volatile)). */
-extern "C++" {
-inline int iscanonical (float __val) { return __iscanonicalf (__val); }
-inline int iscanonical (double __val) { return __iscanonical (__val); }
-inline int iscanonical (long double __val) { return __iscanonicall (__val); }
-# if __HAVE_DISTINCT_FLOAT128
-inline int iscanonical (_Float128 __val) { return __iscanonicalf128 (__val); }
-# endif
-}
-# endif /* __cplusplus */
-#endif /* __NO_LONG_DOUBLE_MATH */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/link.h
@@ -1,156 +0,0 @@
-/* Machine-specific declarations for dynamic linker interface. PowerPC version
- Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-# error "Never include <bits/link.h> directly; use <link.h> instead."
-#endif
-
-
-#if __ELF_NATIVE_CLASS == 32
-
-/* Registers for entry into PLT on PPC32. */
-typedef struct La_ppc32_regs
-{
- uint32_t lr_reg[8];
- double lr_fp[8];
- uint32_t lr_vreg[12][4];
- uint32_t lr_r1;
- uint32_t lr_lr;
-} La_ppc32_regs;
-
-/* Return values for calls from PLT on PPC32. */
-typedef struct La_ppc32_retval
-{
- uint32_t lrv_r3;
- uint32_t lrv_r4;
- double lrv_fp[8];
- uint32_t lrv_v2[4];
-} La_ppc32_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf32_Addr la_ppc32_gnu_pltenter (Elf32_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_ppc32_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_ppc32_gnu_pltexit (Elf32_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_ppc32_regs *__inregs,
- La_ppc32_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
-
-#elif __ELF_NATIVE_CLASS == 64
-# if _CALL_ELF != 2
-
-/* Registers for entry into PLT on PPC64. */
-typedef struct La_ppc64_regs
-{
- uint64_t lr_reg[8];
- double lr_fp[13];
- uint32_t __padding;
- uint32_t lr_vrsave;
- uint32_t lr_vreg[12][4];
- uint64_t lr_r1;
- uint64_t lr_lr;
-} La_ppc64_regs;
-
-/* Return values for calls from PLT on PPC64. */
-typedef struct La_ppc64_retval
-{
- uint64_t lrv_r3;
- uint64_t lrv_r4;
- double lrv_fp[4]; /* f1-f4, float - complex long double. */
- uint32_t lrv_v2[4]; /* v2. */
-} La_ppc64_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf64_Addr la_ppc64_gnu_pltenter (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_ppc64_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_ppc64_gnu_pltexit (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_ppc64_regs *__inregs,
- La_ppc64_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
-
-# else
-
-/* Registers for entry into PLT on PPC64 in the ELFv2 ABI. */
-typedef struct La_ppc64v2_regs
-{
- uint64_t lr_reg[8];
- double lr_fp[13];
- uint32_t __padding;
- uint32_t lr_vrsave;
- uint32_t lr_vreg[12][4] __attribute__ ((aligned (16)));
- uint64_t lr_r1;
- uint64_t lr_lr;
-} La_ppc64v2_regs;
-
-/* Return values for calls from PLT on PPC64 in the ELFv2 ABI. */
-typedef struct La_ppc64v2_retval
-{
- uint64_t lrv_r3;
- uint64_t lrv_r4;
- double lrv_fp[10];
- uint32_t lrv_vreg[8][4] __attribute__ ((aligned (16)));
-} La_ppc64v2_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf64_Addr la_ppc64v2_gnu_pltenter (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_ppc64v2_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_ppc64v2_gnu_pltexit (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_ppc64v2_regs *__inregs,
- La_ppc64v2_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
-
-# endif
-#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/long-double.h
@@ -1,25 +0,0 @@
-/* Properties of long double type. ldbl-opt version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __LONG_DOUBLE_MATH_OPTIONAL 1
-# ifndef __LONG_DOUBLE_128__
-# define __NO_LONG_DOUBLE_MATH 1
-# endif
-#endif
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/mman.h
@@ -1,51 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/PowerPC version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* The following definitions basically come from the kernel headers.
- But the kernel header is not namespace clean. */
-
-#define PROT_SAO 0x10 /* Strong Access Ordering. */
-
-/* These are Linux-specific. */
-#define MAP_GROWSDOWN 0x00100 /* Stack-like segment. */
-#define MAP_DENYWRITE 0x00800 /* ETXTBSY */
-#define MAP_EXECUTABLE 0x01000 /* Mark it as an executable. */
-#define MAP_LOCKED 0x00080 /* Lock the mapping. */
-#define MAP_NORESERVE 0x00040 /* Don't check for reservations. */
-#define MAP_POPULATE 0x08000 /* Populate (prefault) pagetables. */
-#define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
-#define MAP_STACK 0x20000 /* Allocation is for a stack. */
-#define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
-#define MAP_SYNC 0x80000 /* Perform synchronous page
- faults for the mapping. */
-#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
- underlying mapping. */
-
-/* Flags for `mlockall'. */
-#define MCL_CURRENT 0x2000 /* Lock all currently mapped pages. */
-#define MCL_FUTURE 0x4000 /* Lock all additions to address
- space. */
-#define MCL_ONFAULT 0x8000 /* Lock all pages that are
- faulted in. */
-
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/procfs.h
@@ -1,49 +0,0 @@
-/* Types for registers for sys/procfs.h. PowerPC version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
-#endif
-
-#include <signal.h>
-#include <sys/ucontext.h>
-
-/* These definitions are normally provided by ucontext.h via
- asm/sigcontext.h, asm/ptrace.h, and asm/elf.h. Otherwise we define
- them here. */
-#if !defined __PPC64_ELF_H && !defined _ASM_POWERPC_ELF_H
-#define ELF_NGREG 48 /* includes nip, msr, lr, etc. */
-#define ELF_NFPREG 33 /* includes fpscr */
-#if __WORDSIZE == 32
-# define ELF_NVRREG 33 /* includes vscr */
-#else
-# define ELF_NVRREG 34 /* includes vscr */
-#endif
-
-typedef unsigned long elf_greg_t;
-typedef elf_greg_t elf_gregset_t[ELF_NGREG];
-
-typedef double elf_fpreg_t;
-typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
-
-/* Altivec registers */
-typedef struct {
- unsigned int u[4];
-} __attribute__ ((__aligned__ (16))) elf_vrreg_t;
-typedef elf_vrreg_t elf_vrregset_t[ELF_NVRREG];
-#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/pthread_stack_min.h
@@ -1,21 +0,0 @@
-/* Definition of PTHREAD_STACK_MIN. Linux/PPC version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; see the file COPYING.LIB. If
- not, see <https://www.gnu.org/licenses/>. */
-
-/* Minimum size for a thread. At least two pages for systems with 64k
- pages. */
-#define PTHREAD_STACK_MIN 131072
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/rseq.h
@@ -1,37 +0,0 @@
-/* Restartable Sequences Linux powerpc architecture header.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RSEQ_H
-# error "Never use <bits/rseq.h> directly; include <sys/rseq.h> instead."
-#endif
-
-/* RSEQ_SIG is a signature required before each abort handler code.
-
- It is a 32-bit value that maps to actual architecture code compiled
- into applications and libraries. It needs to be defined for each
- architecture. When choosing this value, it needs to be taken into
- account that generating invalid instructions may have ill effects on
- tools like objdump, and may also have impact on the CPU speculative
- execution efficiency in some cases.
-
- RSEQ_SIG uses the following trap instruction:
-
- powerpc-be: 0f e5 00 0b twui r5,11
- powerpc64-le: 0b 00 e5 0f twui r5,11
- powerpc64-be: 0f e5 00 0b twui r5,11 */
-
-#define RSEQ_SIG 0x0fe5000b
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/setjmp.h
@@ -1,50 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Define the machine-dependent type `jmp_buf'. PowerPC version. */
-#ifndef _BITS_SETJMP_H
-#define _BITS_SETJMP_H 1
-
-#if !defined _SETJMP_H && !defined _PTHREAD_H
-# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
-#endif
-
-/* The previous bits/setjmp.h had __jmp_buf defined as a structure.
- We use an array of 'long int' instead, to make writing the
- assembler easier. Naturally, user code should not depend on
- either representation. */
-
-#include <bits/wordsize.h>
-
-/* The current powerpc 32-bit Altivec ABI specifies for SVR4 ABI and EABI
- the vrsave must be at byte 248 & v20 at byte 256. So we must pad this
- correctly on 32 bit. It also insists that vecregs are only guaranteed
- 4 byte alignment so we need to use vperm in the setjmp/longjmp routines.
- We have to version the code because members like int __mask_was_saved
- in the jmp_buf will move as jmp_buf is now larger than 248 bytes. We
- cannot keep the altivec jmp_buf backward compatible with the jmp_buf. */
-#ifndef _ASM
-# if __WORDSIZE == 64
-typedef long int __jmp_buf[64] __attribute__ ((__aligned__ (16)));
-# else
-/* The alignment is not essential, i.e.the buffer can be copied to a 4 byte
- aligned buffer as per the ABI it is just added for performance reasons. */
-typedef long int __jmp_buf[64 + (12 * 4)] __attribute__ ((__aligned__ (16)));
-# endif
-#endif
-
-#endif /* bits/setjmp.h */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/sigstack.h
@@ -1,37 +0,0 @@
-/* sigstack, sigaltstack definitions.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGSTACK_H
-#define _BITS_SIGSTACK_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never include this file directly. Use <signal.h> instead"
-#endif
-
-#ifdef __powerpc64__
-#define MINSIGSTKSZ 8192
-#define SIGSTKSZ 32768
-#else
-/* Minimum stack size for a signal handler. */
-#define MINSIGSTKSZ 4096
-
-/* System default stack size. */
-#define SIGSTKSZ 16384
-#endif
-
-#endif /* bits/sigstack.h */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/socket-constants.h
@@ -1,70 +0,0 @@
-/* Socket constants which vary among Linux architectures. Version for POWER.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
-#endif
-
-#define SOL_SOCKET 1
-#define SO_ACCEPTCONN 30
-#define SO_BROADCAST 6
-#define SO_DONTROUTE 5
-#define SO_ERROR 4
-#define SO_KEEPALIVE 9
-#define SO_LINGER 13
-#define SO_OOBINLINE 10
-#define SO_RCVBUF 8
-#define SO_RCVLOWAT 16
-#define SO_REUSEADDR 2
-#define SO_SNDBUF 7
-#define SO_SNDLOWAT 17
-#define SO_TYPE 3
-
-#if __TIMESIZE == 64
-# define SO_RCVTIMEO 18
-# define SO_SNDTIMEO 19
-# define SO_TIMESTAMP 29
-# define SO_TIMESTAMPNS 35
-# define SO_TIMESTAMPING 37
-#else
-# define SO_RCVTIMEO_OLD 18
-# define SO_SNDTIMEO_OLD 19
-# define SO_RCVTIMEO_NEW 66
-# define SO_SNDTIMEO_NEW 67
-
-# 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
-
-# ifdef __USE_TIME64_REDIRECTS
-# define SO_RCVTIMEO SO_RCVTIMEO_NEW
-# define SO_SNDTIMEO SO_SNDTIMEO_NEW
-# define SO_TIMESTAMP SO_TIMESTAMP_NEW
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_NEW
-# define SO_TIMESTAMPING SO_TIMESTAMPING_NEW
-# else
-# define SO_RCVTIMEO SO_RCVTIMEO_OLD
-# define SO_SNDTIMEO SO_SNDTIMEO_OLD
-# define SO_TIMESTAMP SO_TIMESTAMP_OLD
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
-# define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
-# endif
-#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/struct_mutex.h
@@ -1,63 +0,0 @@
-/* PowerPC internal mutex struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _THREAD_MUTEX_INTERNAL_H
-#define _THREAD_MUTEX_INTERNAL_H 1
-
-struct __pthread_mutex_s
-{
- int __lock;
- unsigned int __count;
- int __owner;
-#if __WORDSIZE == 64
- unsigned int __nusers;
-#endif
- /* KIND must stay at this position in the structure to maintain
- binary compatibility with static initializers. */
- int __kind;
-#if __WORDSIZE == 64
- short __spins;
- short __elision;
- __pthread_list_t __list;
-# define __PTHREAD_MUTEX_HAVE_PREV 1
-#else
- unsigned int __nusers;
- __extension__ union
- {
- struct
- {
- short __espins;
- short __elision;
-# define __spins __elision_data.__espins
-# define __elision __elision_data.__elision
- } __elision_data;
- __pthread_slist_t __list;
- };
-# define __PTHREAD_MUTEX_HAVE_PREV 0
-#endif
-};
-
-#if __WORDSIZE == 64
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, 0, __kind, 0, 0, { 0, 0 }
-#else
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, __kind, 0, { { 0, 0 } }
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/struct_rwlock.h
@@ -1,61 +0,0 @@
-/* PowerPC internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#if __WORDSIZE == 64
- int __cur_writer;
- int __shared;
- unsigned char __rwelision;
- unsigned char __pad1[7];
- unsigned long int __pad2;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned int __flags;
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, {0, 0, 0, 0, 0, 0, 0 }
-#else
- unsigned char __rwelision;
- unsigned char __pad2;
- unsigned char __shared;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- int __cur_writer;
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-#endif
-};
-
-#if __WORDSIZE == 64
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, __flags
-#else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, 0, __flags, 0
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/struct_stat.h
@@ -1,231 +0,0 @@
-/* Definition for struct stat.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
-#endif
-
-#ifndef _BITS_STRUCT_STAT_H
-#define _BITS_STRUCT_STAT_H 1
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32
-struct stat
- {
-# ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-# else
- __dev_t st_dev; /* Device. */
-# ifndef __USE_FILE_OFFSET64
- unsigned short int __pad1;
- __ino_t st_ino; /* File serial number. */
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned short int __pad2;
-# ifndef __USE_FILE_OFFSET64
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
-# ifndef __USE_FILE_OFFSET64
- __blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
-# else
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# endif
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
-# endif /* __USE_TIME64_REDIRECTS */
- };
-
-# ifdef __USE_LARGEFILE64
-struct stat64
- {
-# ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-# else
- __dev_t st_dev; /* Device. */
- __ino64_t st_ino; /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned short int __pad2;
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
-# endif /* __USE_TIME64_REDIRECTS */
- };
-# endif /* __USE_LARGEFILE64 */
-
-#else /* __WORDSIZE == 32 */
-
-struct stat
- {
- __dev_t st_dev; /* Device. */
-# ifndef __USE_FILE_OFFSET64
- __ino_t st_ino; /* File serial number. */
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
- __nlink_t st_nlink; /* Link count. */
- __mode_t st_mode; /* File mode. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- int __pad2;
- __dev_t st_rdev; /* Device number, if device. */
-# ifndef __USE_FILE_OFFSET64
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
-# ifndef __USE_FILE_OFFSET64
- __blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
-# else
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# endif
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
- unsigned long int __glibc_reserved6;
- };
-
-# ifdef __USE_LARGEFILE64
-struct stat64
- {
- __dev_t st_dev; /* Device. */
- __ino64_t st_ino; /* File serial number. */
- __nlink_t st_nlink; /* Link count. */
- __mode_t st_mode; /* File mode. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- int __pad2;
- __dev_t st_rdev; /* Device number, if device. */
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
- unsigned long int __glibc_reserved6;
- };
-# endif /* __USE_LARGEFILE64 */
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-#endif /* _BITS_STRUCT_STAT_H */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/termios-baud.h
@@ -1,45 +0,0 @@
-/* termios baud rate selection definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."
-#endif
-
-#ifdef __USE_MISC
-# define CBAUD 0000377
-# define CBAUDEX 0000020
-# define CMSPAR 010000000000 /* mark or space (stick) parity */
-# define CRTSCTS 020000000000 /* flow control */
-#endif
-
-#define B57600 00020
-#define B115200 00021
-#define B230400 00022
-#define B460800 00023
-#define B500000 00024
-#define B576000 00025
-#define B921600 00026
-#define B1000000 00027
-#define B1152000 00030
-#define B1500000 00031
-#define B2000000 00032
-#define B2500000 00033
-#define B3000000 00034
-#define B3500000 00035
-#define B4000000 00036
-#define __MAX_BAUD B4000000
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/termios-c_cc.h
@@ -1,41 +0,0 @@
-/* termios c_cc symbolic constant definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
-#endif
-
-/* c_cc characters */
-#define VINTR 0
-#define VQUIT 1
-#define VERASE 2
-#define VKILL 3
-#define VEOF 4
-#define VMIN 5
-#define VEOL 6
-#define VTIME 7
-#define VEOL2 8
-#define VSWTC 9
-
-#define VWERASE 10
-#define VREPRINT 11
-#define VSUSP 12
-#define VSTART 13
-#define VSTOP 14
-#define VLNEXT 15
-#define VDISCARD 16
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/termios-c_cflag.h
@@ -1,39 +0,0 @@
-/* termios control mode definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cflag.h> directly; use <termios.h> instead."
-#endif
-
-#define CSIZE 00001400
-#define CS5 00000000
-#define CS6 00000400
-#define CS7 00001000
-#define CS8 00001400
-
-#define CSTOPB 00002000
-#define CREAD 00004000
-#define PARENB 00010000
-#define PARODD 00020000
-#define HUPCL 00040000
-
-#define CLOCAL 00100000
-
-#ifdef __USE_MISC
-# define ADDRB 04000000000
-#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/termios-c_iflag.h
@@ -1,38 +0,0 @@
-/* termios input mode definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_iflags.h> directly; use <termios.h> instead."
-#endif
-
-/* c_iflag bits */
-#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 IXON 0001000
-#define IXOFF 0002000
-#define IXANY 0004000
-#define IUCLC 0010000
-#define IMAXBEL 0020000
-#define IUTF8 0040000
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/termios-c_lflag.h
@@ -1,45 +0,0 @@
-/* termios local mode definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_lflag bits */
-#define ISIG 0x00000080
-#define ICANON 0x00000100
-#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
-# define XCASE 0x00004000
-#endif
-#define ECHO 0x00000008
-#define ECHOE 0x00000002
-#define ECHOK 0x00000004
-#define ECHONL 0x00000010
-#define NOFLSH 0x80000000
-#define TOSTOP 0x00400000
-#ifdef __USE_MISC
-# define ECHOCTL 0x00000040
-# define ECHOPRT 0x00000020
-# define ECHOKE 0x00000001
-# define FLUSHO 0x00800000
-# define PENDIN 0x20000000
-#endif
-#define IEXTEN 0x00000400
-#ifdef __USE_MISC
-# define EXTPROC 0x10000000
-#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/termios-c_oflag.h
@@ -1,65 +0,0 @@
-/* termios output mode definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_oflag bits */
-#define OPOST 0000001
-#define ONLCR 0000002
-#define OLCUC 0000004
-
-#define OCRNL 0000010
-#define ONOCR 0000020
-#define ONLRET 0000040
-
-#define OFILL 00000100
-#define OFDEL 00000200
-#if defined __USE_MISC || defined __USE_XOPEN
-# define NLDLY 00001400
-# define NL0 00000000
-# define NL1 00000400
-# if defined __USE_MISC
-# define NL2 00001000
-# define NL3 00001400
-# endif
-# define TABDLY 00006000
-# define TAB0 00000000
-# define TAB1 00002000
-# define TAB2 00004000
-# define TAB3 00006000
-# define CRDLY 00030000
-# define CR0 00000000
-# define CR1 00010000
-# define CR2 00020000
-# define CR3 00030000
-# define FFDLY 00040000
-# define FF0 00000000
-# define FF1 00040000
-# define BSDLY 00100000
-# define BS0 00000000
-# define BS1 00100000
-#endif
-#define VTDLY 00200000
-#define VT0 00000000
-#define VT1 00200000
-
-#ifdef __USE_MISC
-# define XTABS 00006000
-#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/termios-misc.h
@@ -1,72 +0,0 @@
-/* termios baud platform specific definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-misc.h> directly; use <termios.h> instead."
-#endif
-
-#ifdef __USE_MISC
-
-struct sgttyb {
- char sg_ispeed;
- char sg_ospeed;
- char sg_erase;
- char sg_kill;
- short sg_flags;
-};
-
-struct tchars {
- char t_intrc;
- char t_quitc;
- char t_startc;
- char t_stopc;
- char t_eofc;
- char t_brkc;
-};
-
-struct ltchars {
- char t_suspc;
- char t_dsuspc;
- char t_rprntc;
- char t_flushc;
- char t_werasc;
- char t_lnextc;
-};
-
-/* Used for packet mode */
-#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
-
-/* c_cc characters */
-#define _VINTR 0
-#define _VQUIT 1
-#define _VERASE 2
-#define _VKILL 3
-#define _VEOF 4
-#define _VMIN 5
-#define _VEOL 6
-#define _VTIME 7
-#define _VEOL2 8
-#define _VSWTC 9
-
-#endif /* __USE_MISC */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/timesize.h
@@ -1,22 +0,0 @@
-/* Bit size of the time_t type at glibc build time, Linux/PowerPC.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#include <bits/wordsize.h>
-
-/* Size in bits of the 'time_t' type of the default ABI. */
-#define __TIMESIZE __WORDSIZE
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/typesizes.h
@@ -1,95 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. PowerPC version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __UWORD_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#ifdef __LP64__
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for rlim_t and rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-
-/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
-# define __STATFS_MATCHES_STATFS64 1
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-
-# define __STATFS_MATCHES_STATFS64 0
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/bits/wordsize.h
@@ -1,10 +0,0 @@
-/* Determine the wordsize from the preprocessor defines. */
-
-#if defined __powerpc64__
-# define __WORDSIZE 64
-#else
-# define __WORDSIZE 32
-# define __WORDSIZE32_SIZE_ULONG 0
-# define __WORDSIZE32_PTRDIFF_LONG 0
-#endif
-#define __WORDSIZE_TIME64_COMPAT32 1
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/gnu/lib-names-32.h
@@ -1,26 +0,0 @@
-/* This file is automatically generated. */
-#ifndef __GNU_LIB_NAMES_H
-# error "Never use <gnu/lib-names-32.h> directly; include <gnu/lib-names.h> instead."
-#endif
-
-#define LD_SO "ld.so.1"
-#define LIBANL_SO "libanl.so.1"
-#define LIBBROKENLOCALE_SO "libBrokenLocale.so.1"
-#define LIBC_MALLOC_DEBUG_SO "libc_malloc_debug.so.0"
-#define LIBC_SO "libc.so.6"
-#define LIBDL_SO "libdl.so.2"
-#define LIBGCC_S_SO "libgcc_s.so.1"
-#define LIBMVEC_SO "libmvec.so.1"
-#define LIBM_SO "libm.so.6"
-#define LIBNSL_SO "libnsl.so.1"
-#define LIBNSS_COMPAT_SO "libnss_compat.so.2"
-#define LIBNSS_DB_SO "libnss_db.so.2"
-#define LIBNSS_DNS_SO "libnss_dns.so.2"
-#define LIBNSS_FILES_SO "libnss_files.so.2"
-#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
-#define LIBNSS_LDAP_SO "libnss_ldap.so.2"
-#define LIBPTHREAD_SO "libpthread.so.0"
-#define LIBRESOLV_SO "libresolv.so.2"
-#define LIBRT_SO "librt.so.1"
-#define LIBTHREAD_DB_SO "libthread_db.so.1"
-#define LIBUTIL_SO "libutil.so.1"
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/gnu/lib-names.h
@@ -1,19 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32
-# include <gnu/lib-names-32.h>
-#endif
-#if __WORDSIZE == 64 && _CALL_ELF != 2
-# include <gnu/lib-names-64-v1.h>
-#endif
-#if __WORDSIZE == 64 && _CALL_ELF == 2
-# include <gnu/lib-names-64-v2.h>
-#endif
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/gnu/stubs.h
@@ -1,15 +0,0 @@
-/* This file is automatically generated.
- This file selects the right generated file of `__stub_FUNCTION' macros
- based on the architecture being compiled for. */
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32
-# include <gnu/stubs-32.h>
-#endif
-#if __WORDSIZE == 64 && _CALL_ELF != 2
-# include <gnu/stubs-64-v1.h>
-#endif
-#if __WORDSIZE == 64 && _CALL_ELF == 2
-# include <gnu/stubs-64-v2.h>
-#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/sys/ptrace.h
@@ -1,289 +0,0 @@
-/* `ptrace' debugger support interface. Linux/PowerPC version.
- Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PTRACE_H
-#define _SYS_PTRACE_H 1
-
-#include <features.h>
-#include <bits/types.h>
-
-__BEGIN_DECLS
-
-#if defined _LINUX_PTRACE_H || defined _ASM_POWERPC_PTRACE_H
-/* Do not let Linux headers macros interfere with enum __ptrace_request. */
-# undef PTRACE_ATTACH
-# undef PTRACE_CONT
-# undef PTRACE_DETACH
-# undef PTRACE_GET_DEBUGREG
-# undef PTRACE_GETEVENTMSG
-# undef PTRACE_GETEVRREGS
-# undef PTRACE_GETFPREGS
-# undef PTRACE_GETREGS
-# undef PTRACE_GETREGS64
-# undef PTRACE_GETREGSET
-# undef PTRACE_GET_RSEQ_CONFIGURATION
-# undef PTRACE_GETSIGINFO
-# undef PTRACE_GETSIGMASK
-# undef PTRACE_GET_SYSCALL_INFO
-# undef PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-# undef PTRACE_GETVRREGS
-# undef PTRACE_GETVSRREGS
-# undef PTRACE_INTERRUPT
-# undef PTRACE_KILL
-# undef PTRACE_LISTEN
-# undef PTRACE_PEEKDATA
-# undef PTRACE_PEEKSIGINFO
-# undef PTRACE_PEEKTEXT
-# undef PTRACE_POKEDATA
-# undef PTRACE_POKETEXT
-# undef PTRACE_SECCOMP_GET_FILTER
-# undef PTRACE_SECCOMP_GET_METADATA
-# undef PTRACE_SEIZE
-# undef PTRACE_SET_DEBUGREG
-# undef PTRACE_SETEVRREGS
-# undef PTRACE_SETFPREGS
-# undef PTRACE_SETOPTIONS
-# undef PTRACE_SETREGS
-# undef PTRACE_SETREGS64
-# undef PTRACE_SETREGSET
-# undef PTRACE_SETSIGINFO
-# undef PTRACE_SETSIGMASK
-# undef PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-# undef PTRACE_SETVRREGS
-# undef PTRACE_SETVSRREGS
-# undef PTRACE_SINGLEBLOCK
-# undef PTRACE_SINGLESTEP
-# undef PTRACE_SYSCALL
-# undef PTRACE_SYSCALL_INFO_NONE
-# undef PTRACE_SYSCALL_INFO_ENTRY
-# undef PTRACE_SYSCALL_INFO_EXIT
-# undef PTRACE_SYSCALL_INFO_SECCOMP
-# undef PTRACE_SYSEMU
-# undef PTRACE_SYSEMU_SINGLESTEP
-# undef PTRACE_TRACEME
-#endif
-
-/* Type of the REQUEST argument to `ptrace.' */
-enum __ptrace_request
-{
- /* Indicate that the process making this request should be traced.
- All signals received by this process can be intercepted by its
- parent, and its parent can use the other `ptrace' requests. */
- PTRACE_TRACEME = 0,
-#define PT_TRACE_ME PTRACE_TRACEME
-
- /* Return the word in the process's text space at address ADDR. */
- PTRACE_PEEKTEXT = 1,
-#define PT_READ_I PTRACE_PEEKTEXT
-
- /* Return the word in the process's data space at address ADDR. */
- PTRACE_PEEKDATA = 2,
-#define PT_READ_D PTRACE_PEEKDATA
-
- /* Return the word in the process's user area at offset ADDR. */
- PTRACE_PEEKUSER = 3,
-#define PT_READ_U PTRACE_PEEKUSER
-
- /* Write the word DATA into the process's text space at address ADDR. */
- PTRACE_POKETEXT = 4,
-#define PT_WRITE_I PTRACE_POKETEXT
-
- /* Write the word DATA into the process's data space at address ADDR. */
- PTRACE_POKEDATA = 5,
-#define PT_WRITE_D PTRACE_POKEDATA
-
- /* Write the word DATA into the process's user area at offset ADDR. */
- PTRACE_POKEUSER = 6,
-#define PT_WRITE_U PTRACE_POKEUSER
-
- /* Continue the process. */
- PTRACE_CONT = 7,
-#define PT_CONTINUE PTRACE_CONT
-
- /* Kill the process. */
- PTRACE_KILL = 8,
-#define PT_KILL PTRACE_KILL
-
- /* Single step the process. */
- PTRACE_SINGLESTEP = 9,
-#define PT_STEP PTRACE_SINGLESTEP
-
- /* Get all general purpose registers used by a process. */
- PTRACE_GETREGS = 12,
-#define PT_GETREGS PTRACE_GETREGS
-
- /* Set all general purpose registers used by a process. */
- PTRACE_SETREGS = 13,
-#define PT_SETREGS PTRACE_SETREGS
-
- /* Get all floating point registers used by a process. */
- PTRACE_GETFPREGS = 14,
-#define PT_GETFPREGS PTRACE_GETFPREGS
-
- /* Set all floating point registers used by a process. */
- PTRACE_SETFPREGS = 15,
-#define PT_SETFPREGS PTRACE_SETFPREGS
-
- /* Attach to a process that is already running. */
- PTRACE_ATTACH = 16,
-#define PT_ATTACH PTRACE_ATTACH
-
- /* Detach from a process attached to with PTRACE_ATTACH. */
- PTRACE_DETACH = 17,
-#define PT_DETACH PTRACE_DETACH
-
- /* Get all altivec registers used by a process. */
- PTRACE_GETVRREGS = 18,
-#define PT_GETVRREGS PTRACE_GETVRREGS
-
- /* Set all altivec registers used by a process. */
- PTRACE_SETVRREGS = 19,
-#define PT_SETVRREGS PTRACE_SETVRREGS
-
- /* Get all SPE registers used by a process. */
- PTRACE_GETEVRREGS = 20,
-#define PT_GETEVRREGS PTRACE_GETEVRREGS
-
- /* Set all SPE registers used by a process. */
- PTRACE_SETEVRREGS = 21,
-#define PT_SETEVRREGS PTRACE_SETEVRREGS
-
- /* Same as PTRACE_GETREGS except a 32-bit process will obtain
- the full 64-bit registers. Implemented by 64-bit kernels only. */
- PTRACE_GETREGS64 = 22,
-#define PT_GETREGS64 PTRACE_GETREGS64
-
- /* Same as PTRACE_SETREGS except a 32-bit process will set
- the full 64-bit registers. Implemented by 64-bit kernels only. */
- PTRACE_SETREGS64 = 23,
-#define PT_SETREGS64 PTRACE_SETREGS64
-
- /* Continue and stop at the next entry to or return from syscall. */
- PTRACE_SYSCALL = 24,
-#define PT_SYSCALL PTRACE_SYSCALL
-
- /* Get a debug register of a process. */
- PTRACE_GET_DEBUGREG = 25,
-#define PT_GET_DEBUGREG PTRACE_GET_DEBUGREG
-
- /* Set a debug register of a process. */
- PTRACE_SET_DEBUGREG = 26,
-#define PT_SET_DEBUGREG PTRACE_SET_DEBUGREG
-
- /* Get the first 32 VSX registers of a process. */
- PTRACE_GETVSRREGS = 27,
-#define PT_GETVSRREGS PTRACE_GETVSRREGS
-
- /* Set the first 32 VSX registers of a process. */
- PTRACE_SETVSRREGS = 28,
-#define PT_SETVSRREGS PTRACE_SETVSRREGS
-
- /* Continue and stop at the next syscall, it will not be executed. */
- PTRACE_SYSEMU = 29,
-#define PT_SYSEMU PTRACE_SYSEMU
-
- /* Single step the process, the next syscall will not be executed. */
- PTRACE_SYSEMU_SINGLESTEP = 30,
-#define PT_SYSEMU_SINGLESTEP PTRACE_SYSEMU_SINGLESTEP
-
- /* Execute process until next taken branch. */
- PTRACE_SINGLEBLOCK = 256,
-#define PT_STEPBLOCK PTRACE_SINGLEBLOCK
-
- /* Set ptrace filter options. */
- PTRACE_SETOPTIONS = 0x4200,
-#define PT_SETOPTIONS PTRACE_SETOPTIONS
-
- /* Get last ptrace message. */
- PTRACE_GETEVENTMSG = 0x4201,
-#define PT_GETEVENTMSG PTRACE_GETEVENTMSG
-
- /* Get siginfo for process. */
- PTRACE_GETSIGINFO = 0x4202,
-#define PT_GETSIGINFO PTRACE_GETSIGINFO
-
- /* Set new siginfo for process. */
- PTRACE_SETSIGINFO = 0x4203,
-#define PT_SETSIGINFO PTRACE_SETSIGINFO
-
- /* Get register content. */
- PTRACE_GETREGSET = 0x4204,
-#define PTRACE_GETREGSET PTRACE_GETREGSET
-
- /* Set register content. */
- PTRACE_SETREGSET = 0x4205,
-#define PTRACE_SETREGSET PTRACE_SETREGSET
-
- /* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
- signal or group stop state. */
- PTRACE_SEIZE = 0x4206,
-#define PTRACE_SEIZE PTRACE_SEIZE
-
- /* Trap seized tracee. */
- PTRACE_INTERRUPT = 0x4207,
-#define PTRACE_INTERRUPT PTRACE_INTERRUPT
-
- /* Wait for next group event. */
- PTRACE_LISTEN = 0x4208,
-#define PTRACE_LISTEN PTRACE_LISTEN
-
- /* Retrieve siginfo_t structures without removing signals from a queue. */
- PTRACE_PEEKSIGINFO = 0x4209,
-#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
-
- /* Get the mask of blocked signals. */
- PTRACE_GETSIGMASK = 0x420a,
-#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
-
- /* Change the mask of blocked signals. */
- PTRACE_SETSIGMASK = 0x420b,
-#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
-
- /* Get seccomp BPF filters. */
- PTRACE_SECCOMP_GET_FILTER = 0x420c,
-#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
-
- /* Get seccomp BPF filter metadata. */
- PTRACE_SECCOMP_GET_METADATA = 0x420d,
-#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
-
- /* Get information about system call. */
- PTRACE_GET_SYSCALL_INFO = 0x420e,
-#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
-
- /* Get rseq configuration information. */
- PTRACE_GET_RSEQ_CONFIGURATION = 0x420f,
-#define PTRACE_GET_RSEQ_CONFIGURATION PTRACE_GET_RSEQ_CONFIGURATION
-
- /* Set configuration for syscall user dispatch. */
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG = 0x4210,
-#define PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-
- /* Get configuration for syscall user dispatch. */
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG = 0x4211
-#define PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-};
-
-
-#include <bits/ptrace-shared.h>
-
-__END_DECLS
-
-#endif /* _SYS_PTRACE_H */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/sys/ucontext.h
@@ -1,200 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include <features.h>
-
-#include <bits/types/sigset_t.h>
-#include <bits/types/stack_t.h>
-
-
-#ifdef __USE_MISC
-# define __ctx(fld) fld
-#else
-# define __ctx(fld) __ ## fld
-#endif
-
-struct __ctx(pt_regs);
-
-#if __WORDSIZE == 32
-
-/* Number of general registers. */
-# define __NGREG 48
-# ifdef __USE_MISC
-# define NGREG __NGREG
-# endif
-
-/* Container for all general registers. */
-typedef unsigned long gregset_t[__NGREG];
-
-/* Container for floating-point registers and status */
-typedef struct _libc_fpstate
-{
- double __ctx(fpregs)[32];
- double __ctx(fpscr);
- unsigned int _pad[2];
-} fpregset_t;
-
-/* Container for Altivec/VMX registers and status.
- Needs to be aligned on a 16-byte boundary. */
-typedef struct _libc_vrstate
-{
- unsigned int __ctx(vrregs)[32][4];
- unsigned int __ctx(vrsave);
- unsigned int _pad[2];
- unsigned int __ctx(vscr);
-} vrregset_t;
-
-/* Context to describe whole processor state. */
-typedef struct
-{
- gregset_t __ctx(gregs);
- fpregset_t __ctx(fpregs);
- vrregset_t __ctx(vrregs) __attribute__((__aligned__(16)));
-} mcontext_t;
-
-#else
-
-/* For 64-bit kernels with Altivec support, a machine context is exactly
- * a sigcontext. For older kernel (without Altivec) the sigcontext matches
- * the mcontext upto but not including the v_regs field. For kernels that
- * don't set AT_HWCAP or return AT_HWCAP without PPC_FEATURE_HAS_ALTIVEC the
- * v_regs field may not exist and should not be referenced. The v_regs field
- * can be referenced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC
- * is set in AT_HWCAP. */
-
-/* Number of general registers. */
-# define __NGREG 48 /* includes r0-r31, nip, msr, lr, etc. */
-# define __NFPREG 33 /* includes fp0-fp31 &fpscr. */
-# define __NVRREG 34 /* includes v0-v31, vscr, & vrsave in
- split vectors */
-# ifdef __USE_MISC
-# define NGREG __NGREG
-# define NFPREG __NFPREG
-# define NVRREG __NVRREG
-# endif
-
-typedef unsigned long gregset_t[__NGREG];
-typedef double fpregset_t[__NFPREG];
-
-/* Container for Altivec/VMX Vector Status and Control Register. Only 32-bits
- but can only be copied to/from a 128-bit vector register. So we allocated
- a whole quadword speedup save/restore. */
-typedef struct _libc_vscr
-{
-#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
- unsigned int __pad[3];
- unsigned int __ctx(vscr_word);
-#else
- unsigned int __ctx(vscr_word);
- unsigned int __pad[3];
-#endif
-} vscr_t;
-
-/* Container for Altivec/VMX registers and status.
- Must to be aligned on a 16-byte boundary. */
-typedef struct _libc_vrstate
-{
- unsigned int __ctx(vrregs)[32][4];
- vscr_t __ctx(vscr);
- unsigned int __ctx(vrsave);
- unsigned int __pad[3];
-} vrregset_t __attribute__((__aligned__(16)));
-
-typedef struct {
- unsigned long __glibc_reserved[4];
- int __ctx(signal);
- int __pad0;
- unsigned long __ctx(handler);
- unsigned long __ctx(oldmask);
- struct __ctx(pt_regs) *__ctx(regs);
- gregset_t __ctx(gp_regs);
- fpregset_t __ctx(fp_regs);
-/*
- * To maintain compatibility with current implementations the sigcontext is
- * extended by appending a pointer (v_regs) to a quadword type (elf_vrreg_t)
- * followed by an unstructured (vmx_reserve) field of 69 doublewords. This
- * allows the array of vector registers to be quadword aligned independent of
- * the alignment of the containing sigcontext or ucontext. It is the
- * responsibility of the code setting the sigcontext to set this pointer to
- * either NULL (if this processor does not support the VMX feature) or the
- * address of the first quadword within the allocated (vmx_reserve) area.
- *
- * The pointer (v_regs) of vector type (elf_vrreg_t) is essentially
- * an array of 34 quadword entries. The entries with
- * indexes 0-31 contain the corresponding vector registers. The entry with
- * index 32 contains the vscr as the last word (offset 12) within the
- * quadword. This allows the vscr to be stored as either a quadword (since
- * it must be copied via a vector register to/from storage) or as a word.
- * The entry with index 33 contains the vrsave as the first word (offset 0)
- * within the quadword.
- */
- vrregset_t *__ctx(v_regs);
- long __ctx(vmx_reserve)[__NVRREG+__NVRREG+1];
-} mcontext_t;
-
-#endif
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long int __ctx(uc_flags);
- struct ucontext_t *uc_link;
- stack_t uc_stack;
-#if __WORDSIZE == 32
- /*
- * These fields are set up this way to maximize source and
- * binary compatibility with code written for the old
- * ucontext_t definition, which didn't include space for the
- * registers.
- *
- * Different versions of the kernel have stored the registers on
- * signal delivery at different offsets from the ucontext struct.
- * Programs should thus use the uc_mcontext.uc_regs pointer to
- * find where the registers are actually stored. The registers
- * will be stored within the ucontext_t struct but not necessarily
- * at a fixed address. As a side-effect, this lets us achieve
- * 16-byte alignment for the register storage space if the
- * Altivec registers are to be saved, without requiring 16-byte
- * alignment on the whole ucontext_t.
- *
- * The uc_mcontext.regs field is included for source compatibility
- * with programs written against the older ucontext_t definition,
- * and its name should therefore not change. The uc_pad field
- * is for binary compatibility with programs compiled against the
- * old ucontext_t; it ensures that uc_mcontext.regs and uc_sigmask
- * are at the same offset as previously.
- */
- int __glibc_reserved1[7];
- union __ctx(uc_regs_ptr) {
- struct __ctx(pt_regs) *__ctx(regs);
- mcontext_t *__ctx(uc_regs);
- } uc_mcontext;
- sigset_t uc_sigmask;
- /* last for extensibility */
- char __ctx(uc_reg_space)[sizeof (mcontext_t) + 12];
-#else /* 64-bit */
- sigset_t uc_sigmask;
- mcontext_t uc_mcontext; /* last for extensibility */
-#endif
- } ucontext_t;
-
-#undef __ctx
-
-#endif /* sys/ucontext.h */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/sys/user.h
@@ -1,40 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_USER_H
-
-#define _SYS_USER_H 1
-#include <stddef.h>
-#include <features.h>
-
-#include <asm/ptrace.h>
-
-struct user {
- struct pt_regs regs; /* entire machine state */
- size_t u_tsize; /* text size (pages) */
- size_t u_dsize; /* data size (pages) */
- size_t u_ssize; /* stack size (pages) */
- unsigned long start_code; /* text starting address */
- unsigned long start_data; /* data starting address */
- unsigned long start_stack; /* stack starting address */
- long int signal; /* signal causing core dump */
- struct regs * u_ar0; /* help gdb find registers */
- unsigned long magic; /* identifies a core file */
- char u_comm[32]; /* user command name */
-};
-
-#endif /* sys/user.h */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/fpu_control.h
@@ -1,114 +0,0 @@
-/* FPU control word definitions. PowerPC version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FPU_CONTROL_H
-#define _FPU_CONTROL_H
-
-#if defined __SPE__ || (defined __NO_FPRS__ && !defined _SOFT_FLOAT)
-# error "SPE/e500 is no longer supported"
-#endif
-
-#ifdef _SOFT_FLOAT
-
-# define _FPU_RESERVED 0xffffffff
-# define _FPU_DEFAULT 0x00000000 /* Default value. */
-typedef unsigned int fpu_control_t;
-# define _FPU_GETCW(cw) (cw) = 0
-# define _FPU_SETCW(cw) (void) (cw)
-extern fpu_control_t __fpu_control;
-
-#else /* PowerPC 6xx floating-point. */
-
-/* rounding control */
-# define _FPU_RC_NEAREST 0x00 /* RECOMMENDED */
-# define _FPU_RC_DOWN 0x03
-# define _FPU_RC_UP 0x02
-# define _FPU_RC_ZERO 0x01
-
-# define _FPU_MASK_RC (_FPU_RC_NEAREST|_FPU_RC_DOWN|_FPU_RC_UP|_FPU_RC_ZERO)
-
-# define _FPU_MASK_NI 0x04 /* non-ieee mode */
-
-/* masking of interrupts */
-# define _FPU_MASK_ZM 0x10 /* zero divide */
-# define _FPU_MASK_OM 0x40 /* overflow */
-# define _FPU_MASK_UM 0x20 /* underflow */
-# define _FPU_MASK_XM 0x08 /* inexact */
-# define _FPU_MASK_IM 0x80 /* invalid operation */
-
-# define _FPU_RESERVED 0xffffff00 /* These bits are reserved are not changed. */
-
-/* The fdlibm code requires no interrupts for exceptions. */
-# define _FPU_DEFAULT 0x00000000 /* Default value. */
-
-/* IEEE: same as above, but (some) exceptions;
- we leave the 'inexact' exception off.
- */
-# define _FPU_IEEE 0x000000f0
-
-/* Type of the control word. */
-typedef unsigned int fpu_control_t;
-
-/* Macros for accessing the hardware control word. */
-# define _FPU_GETCW(cw) \
- ({union { double __d; unsigned long long __ll; } __u; \
- __asm__ __volatile__("mffs %0" : "=f" (__u.__d)); \
- (cw) = (fpu_control_t) __u.__ll; \
- (fpu_control_t) __u.__ll; \
- })
-
-# define _FPU_GET_RC_ISA300() \
- ({union { double __d; unsigned long long __ll; } __u; \
- __asm__ __volatile__( \
- ".machine push; .machine \"power9\"; mffsl %0; .machine pop" \
- : "=f" (__u.__d)); \
- (fpu_control_t) (__u.__ll & _FPU_MASK_RC); \
- })
-
-# ifdef _ARCH_PWR9
-# define _FPU_GET_RC() _FPU_GET_RC_ISA300()
-# elif defined __BUILTIN_CPU_SUPPORTS__
-# define _FPU_GET_RC() \
- ({fpu_control_t __rc; \
- __rc = __glibc_likely (__builtin_cpu_supports ("arch_3_00")) \
- ? _FPU_GET_RC_ISA300 () \
- : _FPU_GETCW (__rc) & _FPU_MASK_RC; \
- __rc; \
- })
-# else
-# define _FPU_GET_RC() \
- ({fpu_control_t __rc = _FPU_GETCW (__rc) & _FPU_MASK_RC; \
- __rc; \
- })
-# endif
-
-# define _FPU_SETCW(cw) \
- { union { double __d; unsigned long long __ll; } __u; \
- register double __fr; \
- __u.__ll = 0xfff80000LL << 32; /* This is a QNaN. */ \
- __u.__ll |= (cw) & 0xffffffffLL; \
- __fr = __u.__d; \
- __asm__ __volatile__("mtfsf 255,%0" : : "f" (__fr)); \
- }
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-#endif /* PowerPC 6xx floating-point. */
-
-#endif /* _FPU_CONTROL_H */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnueabihf/ieee754.h
@@ -1,197 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-#include <bits/floatn.h>
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-/* long double is IEEE 128 bit */
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-#endif
-
-
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0 || __GNUC_PREREQ (7, 0)
-/* IBM extended format for long double.
-
- Each long double is made up of two IEEE doubles. The value of the
- long double is the sum of the values of the two parts. The most
- significant part is required to be the value of the long double
- rounded to the nearest double, as specified by IEEE. For Inf
- values, the least significant part is required to be one of +0.0 or
- -0.0. No other requirements are made; so, for example, 1.0 may be
- represented as (1.0, +0.0) or (1.0, -0.0), and the low part of a
- NaN is don't-care. */
-union ibm_extended_long_double
- {
-# if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && __GNUC_PREREQ (7, 0)
- __ibm128 ld;
-# else
- long double ld;
-# endif
- union ieee754_double d[2];
- };
-#endif
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/types/struct_msqid_ds.h
@@ -1,53 +0,0 @@
-/* Linux/PowerPC implementation of the SysV message struct msqid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MSG_H
-# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
-#endif
-
-#include <bits/types/time_t.h>
-
-/* Structure of record for one message inside the kernel.
- The type `struct msg' is opaque. */
-struct msqid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_msqid64_ds_helper.h>
-#else
- struct ipc_perm msg_perm; /* structure describing operation permission */
-# if __TIMESIZE == 32
- unsigned long int __msg_stime_high;
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_ctime_high;
- __time_t msg_ctime; /* time of last change */
-# else
- __time_t msg_stime; /* time of last msgsnd command */
- __time_t msg_rtime; /* time of last msgsnd command */
- __time_t msg_ctime; /* time of last change */
-# endif
- __syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
- msgqnum_t msg_qnum; /* number of messages currently on queue */
- msglen_t msg_qbytes; /* max number of bytes allowed on queue */
- __pid_t msg_lspid; /* pid of last msgsnd() */
- __pid_t msg_lrpid; /* pid of last msgrcv() */
- __syscall_ulong_t __glibc_reserved4;
- __syscall_ulong_t __glibc_reserved5;
-#endif
-};
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/types/struct_semid_ds.h
@@ -1,43 +0,0 @@
-/* PowerPC implementation of the semaphore struct semid_ds.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
-#endif
-
-/* Data structure describing a set of semaphores. */
-struct semid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_semid64_ds_helper.h>
-#else
- struct ipc_perm sem_perm; /* operation permission struct */
-# if __TIMESIZE == 32
- __syscall_ulong_t __sem_otime_high;
- __time_t sem_otime; /* last semop() time */
- __syscall_ulong_t __sem_ctime_high;
- __time_t sem_ctime; /* last time changed by semctl() */
-# else
- __time_t sem_otime; /* last semop() time */
- __time_t sem_ctime; /* last time changed by semctl() */
-# endif
- __syscall_ulong_t sem_nsems; /* number of semaphores in set */
- __syscall_ulong_t __glibc_reserved3;
- __syscall_ulong_t __glibc_reserved4;
-#endif
-};
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/types/struct_shmid_ds.h
@@ -1,50 +0,0 @@
-/* Linux/PowerPC implementation of the shared memory struct shmid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never include <bits/types/struct_shmid_ds.h> directly; use <sys/shm.h> instead."
-#endif
-
-/* Data structure describing a shared memory segment. */
-struct shmid_ds
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_shmid64_ds_helper.h>
-#else
- struct ipc_perm shm_perm; /* operation permission struct */
-# if __TIMESIZE == 32
- unsigned long int __shm_atime_high;
- __time_t shm_atime; /* time of last shmat() */
- unsigned long int __shm_dtime_high;
- __time_t shm_dtime; /* time of last shmdt() */
- unsigned long int __shm_ctime_high;
- __time_t shm_ctime; /* time of last change by shmctl() */
- unsigned long int __glibc_reserved4;
-# else
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# endif
- size_t shm_segsz; /* size of segment in bytes */
- __pid_t shm_cpid; /* pid of creator */
- __pid_t shm_lpid; /* pid of last shmop */
- shmatt_t shm_nattch; /* number of current attaches */
- __syscall_ulong_t __glibc_reserved5;
- __syscall_ulong_t __glibc_reserved6;
-#endif
- };
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/endianness.h
@@ -1,16 +0,0 @@
-#ifndef _BITS_ENDIANNESS_H
-#define _BITS_ENDIANNESS_H 1
-
-#ifndef _BITS_ENDIAN_H
-# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
-#endif
-
-/* PowerPC has selectable endianness. */
-#if defined __BIG_ENDIAN__ || defined _BIG_ENDIAN
-# define __BYTE_ORDER __BIG_ENDIAN
-#endif
-#if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
-# define __BYTE_ORDER __LITTLE_ENDIAN
-#endif
-
-#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/environments.h
@@ -1,96 +0,0 @@
-/* Copyright (C) 1999-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _UNISTD_H
-# error "Never include this file directly. Use <unistd.h> instead"
-#endif
-
-#include <bits/wordsize.h>
-
-/* This header should define the following symbols under the described
- situations. A value `1' means that the model is always supported,
- `-1' means it is never supported. Undefined means it cannot be
- statically decided.
-
- _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type
- _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type
-
- _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type
- _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type
-
- The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG,
- _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32,
- _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were
- used in previous versions of the Unix standard and are available
- only for compatibility.
-*/
-
-#if __WORDSIZE == 64
-
-/* Environments with 32-bit wide pointers are optionally provided.
- Therefore following macros aren't defined:
- # undef _POSIX_V7_ILP32_OFF32
- # undef _POSIX_V7_ILP32_OFFBIG
- # undef _POSIX_V6_ILP32_OFF32
- # undef _POSIX_V6_ILP32_OFFBIG
- # undef _XBS5_ILP32_OFF32
- # undef _XBS5_ILP32_OFFBIG
- and users need to check at runtime. */
-
-/* We also have no use (for now) for an environment with bigger pointers
- and offsets. */
-# define _POSIX_V7_LPBIG_OFFBIG -1
-# define _POSIX_V6_LPBIG_OFFBIG -1
-# define _XBS5_LPBIG_OFFBIG -1
-
-/* By default we have 64-bit wide `long int', pointers and `off_t'. */
-# define _POSIX_V7_LP64_OFF64 1
-# define _POSIX_V6_LP64_OFF64 1
-# define _XBS5_LP64_OFF64 1
-
-#else /* __WORDSIZE == 32 */
-
-/* By default we have 32-bit wide `int', `long int', pointers and `off_t'
- and all platforms support LFS. */
-# define _POSIX_V7_ILP32_OFF32 1
-# define _POSIX_V7_ILP32_OFFBIG 1
-# define _POSIX_V6_ILP32_OFF32 1
-# define _POSIX_V6_ILP32_OFFBIG 1
-# define _XBS5_ILP32_OFF32 1
-# define _XBS5_ILP32_OFFBIG 1
-
-/* We optionally provide an environment with the above size but an 64-bit
- side `off_t'. Therefore we don't define _POSIX_V7_ILP32_OFFBIG. */
-
-/* Environments with 64-bit wide pointers can be provided,
- so these macros aren't defined:
- # undef _POSIX_V7_LP64_OFF64
- # undef _POSIX_V7_LPBIG_OFFBIG
- # undef _POSIX_V6_LP64_OFF64
- # undef _POSIX_V6_LPBIG_OFFBIG
- # undef _XBS5_LP64_OFF64
- # undef _XBS5_LPBIG_OFFBIG
- and sysconf tests for it at runtime. */
-
-#endif /* __WORDSIZE == 32 */
-
-#define __ILP32_OFF32_CFLAGS "-m32"
-#define __ILP32_OFFBIG_CFLAGS "-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
-#define __ILP32_OFF32_LDFLAGS "-m32"
-#define __ILP32_OFFBIG_LDFLAGS "-m32"
-#define __LP64_OFF64_CFLAGS "-m64"
-#define __LP64_OFF64_LDFLAGS "-m64"
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/fcntl.h
@@ -1,68 +0,0 @@
-/* O_*, F_*, FD_* bit values for Linux/PowerPC.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FCNTL_H
-# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-#define __O_DIRECTORY 040000 /* Must be a directory. */
-#define __O_NOFOLLOW 0100000 /* Do not follow links. */
-#define __O_DIRECT 0400000 /* Direct disk access. */
-
-#if __WORDSIZE == 64
-/* Not necessary, files are always with 64bit off_t. */
-# define __O_LARGEFILE 0
-#else
-# define __O_LARGEFILE 0200000
-#endif
-
-#if __WORDSIZE == 64 && !defined __USE_FILE_OFFSET64
-# define F_GETLK 5
-# define F_SETLK 6
-# define F_SETLKW 7
-#endif
-
-struct flock
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
-#ifndef __USE_FILE_OFFSET64
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
-#else
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
-#endif
- __pid_t l_pid; /* Process holding the lock. */
- };
-
-#ifdef __USE_LARGEFILE64
-struct flock64
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- };
-#endif
-
-/* Include generic Linux declarations. */
-#include <bits/fcntl-linux.h>
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/fenv.h
@@ -1,180 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FENV_H
-# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
-#endif
-
-
-/* Define bits representing the exception. We use the bit positions of
- the appropriate bits in the FPSCR... */
-enum
- {
- FE_INEXACT =
-#define FE_INEXACT (1 << (31 - 6))
- FE_INEXACT,
- FE_DIVBYZERO =
-#define FE_DIVBYZERO (1 << (31 - 5))
- FE_DIVBYZERO,
- FE_UNDERFLOW =
-#define FE_UNDERFLOW (1 << (31 - 4))
- FE_UNDERFLOW,
- FE_OVERFLOW =
-#define FE_OVERFLOW (1 << (31 - 3))
- FE_OVERFLOW,
-
- /* ... except for FE_INVALID, for which we use bit 31. FE_INVALID
- actually corresponds to bits 7 through 12 and 21 through 23
- in the FPSCR, but we can't use that because the current draft
- says that it must be a power of 2. Instead we use bit 2 which
- is the summary bit for all the FE_INVALID exceptions, which
- kind of makes sense. */
- FE_INVALID =
-#define FE_INVALID (1 << (31 - 2))
- FE_INVALID,
-
-#ifdef __USE_GNU
- /* Breakdown of the FE_INVALID bits. Setting FE_INVALID on an
- input to a routine is equivalent to setting all of these bits;
- FE_INVALID will be set on output from a routine iff one of
- these bits is set. Note, though, that you can't disable or
- enable these exceptions individually. */
-
- /* Operation with a sNaN. */
- FE_INVALID_SNAN =
-# define FE_INVALID_SNAN (1 << (31 - 7))
- FE_INVALID_SNAN,
-
- /* Inf - Inf */
- FE_INVALID_ISI =
-# define FE_INVALID_ISI (1 << (31 - 8))
- FE_INVALID_ISI,
-
- /* Inf / Inf */
- FE_INVALID_IDI =
-# define FE_INVALID_IDI (1 << (31 - 9))
- FE_INVALID_IDI,
-
- /* 0 / 0 */
- FE_INVALID_ZDZ =
-# define FE_INVALID_ZDZ (1 << (31 - 10))
- FE_INVALID_ZDZ,
-
- /* Inf * 0 */
- FE_INVALID_IMZ =
-# define FE_INVALID_IMZ (1 << (31 - 11))
- FE_INVALID_IMZ,
-
- /* Comparison with a NaN. */
- FE_INVALID_COMPARE =
-# define FE_INVALID_COMPARE (1 << (31 - 12))
- FE_INVALID_COMPARE,
-
- /* Invalid operation flag for software (not set by hardware). */
- /* Note that some chips don't have this implemented, presumably
- because no-one expected anyone to write software for them %-). */
- FE_INVALID_SOFTWARE =
-# define FE_INVALID_SOFTWARE (1 << (31 - 21))
- FE_INVALID_SOFTWARE,
-
- /* Square root of negative number (including -Inf). */
- /* Note that some chips don't have this implemented. */
- FE_INVALID_SQRT =
-# define FE_INVALID_SQRT (1 << (31 - 22))
- FE_INVALID_SQRT,
-
- /* Conversion-to-integer of a NaN or a number too large or too small. */
- FE_INVALID_INTEGER_CONVERSION =
-# define FE_INVALID_INTEGER_CONVERSION (1 << (31 - 23))
- FE_INVALID_INTEGER_CONVERSION
-
-# define FE_ALL_INVALID \
- (FE_INVALID_SNAN | FE_INVALID_ISI | FE_INVALID_IDI | FE_INVALID_ZDZ \
- | FE_INVALID_IMZ | FE_INVALID_COMPARE | FE_INVALID_SOFTWARE \
- | FE_INVALID_SQRT | FE_INVALID_INTEGER_CONVERSION)
-#endif
- };
-
-#define FE_ALL_EXCEPT \
- (FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID)
-
-/* PowerPC chips support all of the four defined rounding modes. We
- use the bit pattern in the FPSCR as the values for the
- appropriate macros. */
-enum
- {
- FE_TONEAREST =
-#define FE_TONEAREST 0
- FE_TONEAREST,
- FE_TOWARDZERO =
-#define FE_TOWARDZERO 1
- FE_TOWARDZERO,
- FE_UPWARD =
-#define FE_UPWARD 2
- FE_UPWARD,
- FE_DOWNWARD =
-#define FE_DOWNWARD 3
- FE_DOWNWARD
- };
-
-/* Type representing exception flags. */
-typedef unsigned int fexcept_t;
-
-/* Type representing floating-point environment. We leave it as 'double'
- for efficiency reasons (rather than writing it to a 32-bit integer). */
-typedef double fenv_t;
-
-/* If the default argument is used we use this value. */
-extern const fenv_t __fe_dfl_env;
-#define FE_DFL_ENV (&__fe_dfl_env)
-
-#ifdef __USE_GNU
-/* Floating-point environment where all exceptions are enabled. Note that
- this is not sufficient to give you SIGFPE. */
-extern const fenv_t __fe_enabled_env;
-# define FE_ENABLED_ENV (&__fe_enabled_env)
-
-/* Floating-point environment with (processor-dependent) non-IEEE floating
- point. */
-extern const fenv_t __fe_nonieee_env;
-# define FE_NONIEEE_ENV (&__fe_nonieee_env)
-
-/* Floating-point environment with all exceptions enabled. Note that
- just evaluating this value does not change the processor exception mode.
- Passing this mask to fesetenv will result in a prctl syscall to change
- the MSR FE0/FE1 bits to "Precise Mode". On some processors this will
- result in slower floating point execution. This will last until an
- fenv or exception mask is installed that disables all FP exceptions. */
-# define FE_NOMASK_ENV FE_ENABLED_ENV
-
-/* Floating-point environment with all exceptions disabled. Note that
- just evaluating this value does not change the processor exception mode.
- Passing this mask to fesetenv will result in a prctl syscall to change
- the MSR FE0/FE1 bits to "Ignore Exceptions Mode". On most processors
- this allows the fastest possible floating point execution.*/
-# define FE_MASK_ENV FE_DFL_ENV
-
-#endif
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
-/* Type representing floating-point control modes. */
-typedef double femode_t;
-
-/* Default floating-point control modes. */
-extern const femode_t __fe_dfl_mode;
-# define FE_DFL_MODE (&__fe_dfl_mode)
-#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/floatn.h
@@ -1,122 +0,0 @@
-/* Macros to control TS 18661-3 glibc features on powerpc.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_FLOATN_H
-#define _BITS_FLOATN_H
-
-#include <features.h>
-#include <bits/long-double.h>
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this glibc
- includes corresponding *f128 interfaces for it. */
-#if defined _ARCH_PWR8 && defined __LITTLE_ENDIAN__ && (_CALL_ELF == 2) \
- && defined __FLOAT128__ && !defined __NO_LONG_DOUBLE_MATH
-# define __HAVE_FLOAT128 1
-#else
-# define __HAVE_FLOAT128 0
-#endif
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc, i.e.
- calls to the binary128 functions go to *f128 symbols instead of *l. */
-#if __HAVE_FLOAT128
-# define __HAVE_DISTINCT_FLOAT128 1
-#else
-# define __HAVE_DISTINCT_FLOAT128 0
-#endif
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X __HAVE_FLOAT128
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE 0
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-/* The literal suffix (f128) exist for powerpc only since GCC 7.0. */
-# if __LDBL_MANT_DIG__ == 113
-# define __f128(x) x##l
-# else
-# define __f128(x) x##q
-# endif
-# else
-# define __f128(x) x##f128
-# endif
-# endif
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if __LDBL_MANT_DIG__ == 113 && defined __cplusplus && !__GNUC_PREREQ (13, 0)
-typedef long double _Float128;
-# define __CFLOAT128 _Complex long double
-# elif !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-/* The type _Float128 exist for powerpc only since GCC 7.0. */
-typedef __float128 _Float128;
-/* Add a typedef for older GCC and C++ compilers which don't natively support
- _Complex _Float128. */
-typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__KC__)));
-# define __CFLOAT128 __cfloat128
-# else
-# define __CFLOAT128 _Complex _Float128
-# endif
-# endif
-
-/* The remaining of this file provides support for older compilers. */
-# if __HAVE_FLOAT128
-/* Builtin __builtin_huge_valf128 doesn't exist before GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0)
-# define __builtin_huge_valf128() ((_Float128) __builtin_huge_val ())
-# endif
-
-/* The following builtins (suffixed with 'q') are available in GCC >= 6.2,
- which is the minimum version required for float128 support on powerpc64le.
- Since GCC 7.0 the builtins suffixed with f128 are also available, then
- there is no need to redefined them. */
-# if !__GNUC_PREREQ (7, 0)
-# define __builtin_copysignf128 __builtin_copysignq
-# define __builtin_fabsf128 __builtin_fabsq
-# define __builtin_inff128 __builtin_infq
-# define __builtin_nanf128 __builtin_nanq
-# define __builtin_nansf128 __builtin_nansq
-# endif
-
-/* In math/math.h, __MATH_TG will expand signbit to __builtin_signbit*,
- e.g.: __builtin_signbitf128, before GCC 6. However, there has never
- been a __builtin_signbitf128 in GCC and the type-generic builtin is
- only available since GCC 6. */
-# if !__GNUC_PREREQ (6, 0)
-# define __builtin_signbitf128 __signbitf128
-# endif
-
-# endif
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
-
-#endif /* _BITS_FLOATN_H */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/fp-fast.h
@@ -1,39 +0,0 @@
-/* Define FP_FAST_* macros. PowerPC version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."
-#endif
-
-#ifdef __USE_ISOC99
-
-/* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l}
- builtins are supported. */
-# if (!defined _SOFT_FLOAT && !defined __NO_FPRS__) || defined __FP_FAST_FMA
-# define FP_FAST_FMA 1
-# endif
-
-# if (!defined _SOFT_FLOAT && !defined __NO_FPRS__) || defined __FP_FAST_FMAF
-# define FP_FAST_FMAF 1
-# endif
-
-# ifdef __FP_FAST_FMAL
-# define FP_FAST_FMAL 1
-# endif
-
-#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/hwcap.h
@@ -1,78 +0,0 @@
-/* Defines for bits in AT_HWCAP and AT_HWCAP2.
- Copyright (C) 2012-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
-# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
-#endif
-
-/* The bit numbers must match those in the kernel's asm/cputable.h. */
-
-/* Feature definitions in AT_HWCAP. */
-#define PPC_FEATURE_32 0x80000000 /* 32-bit mode. */
-#define PPC_FEATURE_64 0x40000000 /* 64-bit mode. */
-#define PPC_FEATURE_601_INSTR 0x20000000 /* 601 chip, Old POWER ISA. */
-#define PPC_FEATURE_HAS_ALTIVEC 0x10000000 /* SIMD/Vector Unit. */
-#define PPC_FEATURE_HAS_FPU 0x08000000 /* Floating Point Unit. */
-#define PPC_FEATURE_HAS_MMU 0x04000000 /* Memory Management Unit. */
-#define PPC_FEATURE_HAS_4xxMAC 0x02000000 /* 4xx Multiply Accumulator. */
-#define PPC_FEATURE_UNIFIED_CACHE 0x01000000 /* Unified I/D cache. */
-#define PPC_FEATURE_HAS_SPE 0x00800000 /* Signal Processing ext. */
-#define PPC_FEATURE_HAS_EFP_SINGLE 0x00400000 /* SPE Float. */
-#define PPC_FEATURE_HAS_EFP_DOUBLE 0x00200000 /* SPE Double. */
-#define PPC_FEATURE_NO_TB 0x00100000 /* 601/403gx have no timebase */
-#define PPC_FEATURE_POWER4 0x00080000 /* POWER4 ISA 2.00 */
-#define PPC_FEATURE_POWER5 0x00040000 /* POWER5 ISA 2.02 */
-#define PPC_FEATURE_POWER5_PLUS 0x00020000 /* POWER5+ ISA 2.03 */
-#define PPC_FEATURE_CELL_BE 0x00010000 /* CELL Broadband Engine */
-#define PPC_FEATURE_BOOKE 0x00008000 /* ISA Category Embedded */
-#define PPC_FEATURE_SMT 0x00004000 /* Simultaneous
- Multi-Threading */
-#define PPC_FEATURE_ICACHE_SNOOP 0x00002000
-#define PPC_FEATURE_ARCH_2_05 0x00001000 /* ISA 2.05 */
-#define PPC_FEATURE_PA6T 0x00000800 /* PA Semi 6T Core */
-#define PPC_FEATURE_HAS_DFP 0x00000400 /* Decimal FP Unit */
-#define PPC_FEATURE_POWER6_EXT 0x00000200 /* P6 + mffgpr/mftgpr */
-#define PPC_FEATURE_ARCH_2_06 0x00000100 /* ISA 2.06 */
-#define PPC_FEATURE_HAS_VSX 0x00000080 /* P7 Vector Extension. */
-#define PPC_FEATURE_PSERIES_PERFMON_COMPAT 0x00000040
-/* Reserved by the kernel. 0x00000004 Do not use. */
-#define PPC_FEATURE_TRUE_LE 0x00000002
-#define PPC_FEATURE_PPC_LE 0x00000001
-
-/* Feature definitions in AT_HWCAP2. */
-#define PPC_FEATURE2_ARCH_2_07 0x80000000 /* ISA 2.07 */
-#define PPC_FEATURE2_HAS_HTM 0x40000000 /* Hardware Transactional
- Memory */
-#define PPC_FEATURE2_HAS_DSCR 0x20000000 /* Data Stream Control
- Register */
-#define PPC_FEATURE2_HAS_EBB 0x10000000 /* Event Base Branching */
-#define PPC_FEATURE2_HAS_ISEL 0x08000000 /* Integer Select */
-#define PPC_FEATURE2_HAS_TAR 0x04000000 /* Target Address Register */
-#define PPC_FEATURE2_HAS_VEC_CRYPTO 0x02000000 /* Target supports vector
- instruction. */
-#define PPC_FEATURE2_HTM_NOSC 0x01000000 /* Kernel aborts transaction
- when a syscall is made. */
-#define PPC_FEATURE2_ARCH_3_00 0x00800000 /* ISA 3.0 */
-#define PPC_FEATURE2_HAS_IEEE128 0x00400000 /* VSX IEEE Binary Float
- 128-bit */
-#define PPC_FEATURE2_DARN 0x00200000 /* darn instruction. */
-#define PPC_FEATURE2_SCV 0x00100000 /* scv syscall. */
-#define PPC_FEATURE2_HTM_NO_SUSPEND 0x00080000 /* TM without suspended
- state. */
-#define PPC_FEATURE2_ARCH_3_1 0x00040000 /* ISA 3.1. */
-#define PPC_FEATURE2_MMA 0x00020000 /* Matrix-Multiply Assist. */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/ioctl-types.h
@@ -1,77 +0,0 @@
-/* Structure types for pre-termios terminal ioctls. Linux/powerpc version.
- Copyright (C) 2014-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IOCTL_H
-# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
-#endif
-
-/* Get definition of constants for use with `ioctl'. */
-#include <asm/ioctls.h>
-
-
-struct winsize
- {
- unsigned short int ws_row;
- unsigned short int ws_col;
- unsigned short int ws_xpixel;
- unsigned short int ws_ypixel;
- };
-
-#define NCC 10
-struct termio
- {
- unsigned short int c_iflag; /* input mode flags */
- unsigned short int c_oflag; /* output mode flags */
- unsigned short int c_cflag; /* control mode flags */
- unsigned short int c_lflag; /* local mode flags */
- unsigned char c_line; /* line discipline */
- unsigned char c_cc[NCC]; /* control characters */
-};
-
-/* modem lines */
-#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
-
-/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
-
-/* line disciplines */
-#define N_TTY 0
-#define N_SLIP 1
-#define N_MOUSE 2
-#define N_PPP 3
-#define N_STRIP 4
-#define N_AX25 5
-#define N_X25 6 /* X.25 async */
-#define N_6PACK 7
-#define N_MASC 8 /* Mobitex module */
-#define N_R3964 9 /* Simatic R3964 module */
-#define N_PROFIBUS_FDL 10 /* Profibus */
-#define N_IRDA 11 /* Linux IR */
-#define N_SMSBLOCK 12 /* SMS block mode */
-#define N_HDLC 13 /* synchronous HDLC */
-#define N_SYNC_PPP 14 /* synchronous PPP */
-#define N_HCI 15 /* Bluetooth HCI UART */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/ipc-perm.h
@@ -1,36 +0,0 @@
-/* struct ipc_perm definition. Linux/powerpc version.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IPC_H
-# error "Never use <bits/ipc-perm.h> directly; include <sys/ipc.h> instead."
-#endif
-
-/* Data structure used to pass permission information to IPC operations. */
-struct ipc_perm
- {
- __key_t __key; /* Key. */
- __uid_t uid; /* Owner's user ID. */
- __gid_t gid; /* Owner's group ID. */
- __uid_t cuid; /* Creator's user ID. */
- __gid_t cgid; /* Creator's group ID. */
- __mode_t mode; /* Read/write permission. */
- __uint32_t __seq; /* Sequence number. */
- __uint32_t __pad1;
- __uint64_t __glibc_reserved1;
- __uint64_t __glibc_reserved2;
- };
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/iscanonical.h
@@ -1,58 +0,0 @@
-/* Define iscanonical macro. ldbl-128ibm version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."
-#endif
-
-#if defined (__NO_LONG_DOUBLE_MATH) || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# define iscanonical(x) ((void) (__typeof (x)) (x), 1)
-#else
-extern int __iscanonicall (long double __x)
- __THROW __attribute__ ((__const__));
-# define __iscanonicalf(x) ((void) (__typeof (x)) (x), 1)
-# define __iscanonical(x) ((void) (__typeof (x)) (x), 1)
-# if __HAVE_DISTINCT_FLOAT128
-# define __iscanonicalf128(x) ((void) (__typeof (x)) (x), 1)
-# endif
-
-/* Return nonzero value if X is canonical. In IEEE interchange binary
- formats, all values are canonical, but the argument must still be
- converted to its semantic type for any exceptions arising from the
- conversion, before being discarded; in IBM long double, there are
- encodings that are not consistently handled as corresponding to any
- particular value of the type, and we return 0 for those. */
-# ifndef __cplusplus
-# define iscanonical(x) __MATH_TG ((x), __iscanonical, (x))
-# else
-/* In C++ mode, __MATH_TG cannot be used, because it relies on
- __builtin_types_compatible_p, which is a C-only builtin. On the
- other hand, overloading provides the means to distinguish between
- the floating-point types. The overloading resolution will match
- the correct parameter (regardless of type qualifiers (i.e.: const
- and volatile)). */
-extern "C++" {
-inline int iscanonical (float __val) { return __iscanonicalf (__val); }
-inline int iscanonical (double __val) { return __iscanonical (__val); }
-inline int iscanonical (long double __val) { return __iscanonicall (__val); }
-# if __HAVE_DISTINCT_FLOAT128
-inline int iscanonical (_Float128 __val) { return __iscanonicalf128 (__val); }
-# endif
-}
-# endif /* __cplusplus */
-#endif /* __NO_LONG_DOUBLE_MATH */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/link.h
@@ -1,156 +0,0 @@
-/* Machine-specific declarations for dynamic linker interface. PowerPC version
- Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-# error "Never include <bits/link.h> directly; use <link.h> instead."
-#endif
-
-
-#if __ELF_NATIVE_CLASS == 32
-
-/* Registers for entry into PLT on PPC32. */
-typedef struct La_ppc32_regs
-{
- uint32_t lr_reg[8];
- double lr_fp[8];
- uint32_t lr_vreg[12][4];
- uint32_t lr_r1;
- uint32_t lr_lr;
-} La_ppc32_regs;
-
-/* Return values for calls from PLT on PPC32. */
-typedef struct La_ppc32_retval
-{
- uint32_t lrv_r3;
- uint32_t lrv_r4;
- double lrv_fp[8];
- uint32_t lrv_v2[4];
-} La_ppc32_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf32_Addr la_ppc32_gnu_pltenter (Elf32_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_ppc32_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_ppc32_gnu_pltexit (Elf32_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_ppc32_regs *__inregs,
- La_ppc32_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
-
-#elif __ELF_NATIVE_CLASS == 64
-# if _CALL_ELF != 2
-
-/* Registers for entry into PLT on PPC64. */
-typedef struct La_ppc64_regs
-{
- uint64_t lr_reg[8];
- double lr_fp[13];
- uint32_t __padding;
- uint32_t lr_vrsave;
- uint32_t lr_vreg[12][4];
- uint64_t lr_r1;
- uint64_t lr_lr;
-} La_ppc64_regs;
-
-/* Return values for calls from PLT on PPC64. */
-typedef struct La_ppc64_retval
-{
- uint64_t lrv_r3;
- uint64_t lrv_r4;
- double lrv_fp[4]; /* f1-f4, float - complex long double. */
- uint32_t lrv_v2[4]; /* v2. */
-} La_ppc64_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf64_Addr la_ppc64_gnu_pltenter (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_ppc64_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_ppc64_gnu_pltexit (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_ppc64_regs *__inregs,
- La_ppc64_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
-
-# else
-
-/* Registers for entry into PLT on PPC64 in the ELFv2 ABI. */
-typedef struct La_ppc64v2_regs
-{
- uint64_t lr_reg[8];
- double lr_fp[13];
- uint32_t __padding;
- uint32_t lr_vrsave;
- uint32_t lr_vreg[12][4] __attribute__ ((aligned (16)));
- uint64_t lr_r1;
- uint64_t lr_lr;
-} La_ppc64v2_regs;
-
-/* Return values for calls from PLT on PPC64 in the ELFv2 ABI. */
-typedef struct La_ppc64v2_retval
-{
- uint64_t lrv_r3;
- uint64_t lrv_r4;
- double lrv_fp[10];
- uint32_t lrv_vreg[8][4] __attribute__ ((aligned (16)));
-} La_ppc64v2_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf64_Addr la_ppc64v2_gnu_pltenter (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_ppc64v2_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_ppc64v2_gnu_pltexit (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_ppc64v2_regs *__inregs,
- La_ppc64v2_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
-
-# endif
-#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/long-double.h
@@ -1,25 +0,0 @@
-/* Properties of long double type. ldbl-opt version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __LONG_DOUBLE_MATH_OPTIONAL 1
-# ifndef __LONG_DOUBLE_128__
-# define __NO_LONG_DOUBLE_MATH 1
-# endif
-#endif
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/mman.h
@@ -1,51 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/PowerPC version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* The following definitions basically come from the kernel headers.
- But the kernel header is not namespace clean. */
-
-#define PROT_SAO 0x10 /* Strong Access Ordering. */
-
-/* These are Linux-specific. */
-#define MAP_GROWSDOWN 0x00100 /* Stack-like segment. */
-#define MAP_DENYWRITE 0x00800 /* ETXTBSY */
-#define MAP_EXECUTABLE 0x01000 /* Mark it as an executable. */
-#define MAP_LOCKED 0x00080 /* Lock the mapping. */
-#define MAP_NORESERVE 0x00040 /* Don't check for reservations. */
-#define MAP_POPULATE 0x08000 /* Populate (prefault) pagetables. */
-#define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
-#define MAP_STACK 0x20000 /* Allocation is for a stack. */
-#define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
-#define MAP_SYNC 0x80000 /* Perform synchronous page
- faults for the mapping. */
-#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
- underlying mapping. */
-
-/* Flags for `mlockall'. */
-#define MCL_CURRENT 0x2000 /* Lock all currently mapped pages. */
-#define MCL_FUTURE 0x4000 /* Lock all additions to address
- space. */
-#define MCL_ONFAULT 0x8000 /* Lock all pages that are
- faulted in. */
-
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/procfs.h
@@ -1,49 +0,0 @@
-/* Types for registers for sys/procfs.h. PowerPC version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
-#endif
-
-#include <signal.h>
-#include <sys/ucontext.h>
-
-/* These definitions are normally provided by ucontext.h via
- asm/sigcontext.h, asm/ptrace.h, and asm/elf.h. Otherwise we define
- them here. */
-#if !defined __PPC64_ELF_H && !defined _ASM_POWERPC_ELF_H
-#define ELF_NGREG 48 /* includes nip, msr, lr, etc. */
-#define ELF_NFPREG 33 /* includes fpscr */
-#if __WORDSIZE == 32
-# define ELF_NVRREG 33 /* includes vscr */
-#else
-# define ELF_NVRREG 34 /* includes vscr */
-#endif
-
-typedef unsigned long elf_greg_t;
-typedef elf_greg_t elf_gregset_t[ELF_NGREG];
-
-typedef double elf_fpreg_t;
-typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
-
-/* Altivec registers */
-typedef struct {
- unsigned int u[4];
-} __attribute__ ((__aligned__ (16))) elf_vrreg_t;
-typedef elf_vrreg_t elf_vrregset_t[ELF_NVRREG];
-#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/pthread_stack_min.h
@@ -1,21 +0,0 @@
-/* Definition of PTHREAD_STACK_MIN. Linux/PPC version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; see the file COPYING.LIB. If
- not, see <https://www.gnu.org/licenses/>. */
-
-/* Minimum size for a thread. At least two pages for systems with 64k
- pages. */
-#define PTHREAD_STACK_MIN 131072
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/rseq.h
@@ -1,37 +0,0 @@
-/* Restartable Sequences Linux powerpc architecture header.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RSEQ_H
-# error "Never use <bits/rseq.h> directly; include <sys/rseq.h> instead."
-#endif
-
-/* RSEQ_SIG is a signature required before each abort handler code.
-
- It is a 32-bit value that maps to actual architecture code compiled
- into applications and libraries. It needs to be defined for each
- architecture. When choosing this value, it needs to be taken into
- account that generating invalid instructions may have ill effects on
- tools like objdump, and may also have impact on the CPU speculative
- execution efficiency in some cases.
-
- RSEQ_SIG uses the following trap instruction:
-
- powerpc-be: 0f e5 00 0b twui r5,11
- powerpc64-le: 0b 00 e5 0f twui r5,11
- powerpc64-be: 0f e5 00 0b twui r5,11 */
-
-#define RSEQ_SIG 0x0fe5000b
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/setjmp.h
@@ -1,50 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Define the machine-dependent type `jmp_buf'. PowerPC version. */
-#ifndef _BITS_SETJMP_H
-#define _BITS_SETJMP_H 1
-
-#if !defined _SETJMP_H && !defined _PTHREAD_H
-# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
-#endif
-
-/* The previous bits/setjmp.h had __jmp_buf defined as a structure.
- We use an array of 'long int' instead, to make writing the
- assembler easier. Naturally, user code should not depend on
- either representation. */
-
-#include <bits/wordsize.h>
-
-/* The current powerpc 32-bit Altivec ABI specifies for SVR4 ABI and EABI
- the vrsave must be at byte 248 & v20 at byte 256. So we must pad this
- correctly on 32 bit. It also insists that vecregs are only guaranteed
- 4 byte alignment so we need to use vperm in the setjmp/longjmp routines.
- We have to version the code because members like int __mask_was_saved
- in the jmp_buf will move as jmp_buf is now larger than 248 bytes. We
- cannot keep the altivec jmp_buf backward compatible with the jmp_buf. */
-#ifndef _ASM
-# if __WORDSIZE == 64
-typedef long int __jmp_buf[64] __attribute__ ((__aligned__ (16)));
-# else
-/* The alignment is not essential, i.e.the buffer can be copied to a 4 byte
- aligned buffer as per the ABI it is just added for performance reasons. */
-typedef long int __jmp_buf[64 + (12 * 4)] __attribute__ ((__aligned__ (16)));
-# endif
-#endif
-
-#endif /* bits/setjmp.h */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/sigstack.h
@@ -1,37 +0,0 @@
-/* sigstack, sigaltstack definitions.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGSTACK_H
-#define _BITS_SIGSTACK_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never include this file directly. Use <signal.h> instead"
-#endif
-
-#ifdef __powerpc64__
-#define MINSIGSTKSZ 8192
-#define SIGSTKSZ 32768
-#else
-/* Minimum stack size for a signal handler. */
-#define MINSIGSTKSZ 4096
-
-/* System default stack size. */
-#define SIGSTKSZ 16384
-#endif
-
-#endif /* bits/sigstack.h */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/socket-constants.h
@@ -1,70 +0,0 @@
-/* Socket constants which vary among Linux architectures. Version for POWER.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
-#endif
-
-#define SOL_SOCKET 1
-#define SO_ACCEPTCONN 30
-#define SO_BROADCAST 6
-#define SO_DONTROUTE 5
-#define SO_ERROR 4
-#define SO_KEEPALIVE 9
-#define SO_LINGER 13
-#define SO_OOBINLINE 10
-#define SO_RCVBUF 8
-#define SO_RCVLOWAT 16
-#define SO_REUSEADDR 2
-#define SO_SNDBUF 7
-#define SO_SNDLOWAT 17
-#define SO_TYPE 3
-
-#if __TIMESIZE == 64
-# define SO_RCVTIMEO 18
-# define SO_SNDTIMEO 19
-# define SO_TIMESTAMP 29
-# define SO_TIMESTAMPNS 35
-# define SO_TIMESTAMPING 37
-#else
-# define SO_RCVTIMEO_OLD 18
-# define SO_SNDTIMEO_OLD 19
-# define SO_RCVTIMEO_NEW 66
-# define SO_SNDTIMEO_NEW 67
-
-# 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
-
-# ifdef __USE_TIME64_REDIRECTS
-# define SO_RCVTIMEO SO_RCVTIMEO_NEW
-# define SO_SNDTIMEO SO_SNDTIMEO_NEW
-# define SO_TIMESTAMP SO_TIMESTAMP_NEW
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_NEW
-# define SO_TIMESTAMPING SO_TIMESTAMPING_NEW
-# else
-# define SO_RCVTIMEO SO_RCVTIMEO_OLD
-# define SO_SNDTIMEO SO_SNDTIMEO_OLD
-# define SO_TIMESTAMP SO_TIMESTAMP_OLD
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
-# define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
-# endif
-#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/struct_mutex.h
@@ -1,63 +0,0 @@
-/* PowerPC internal mutex struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _THREAD_MUTEX_INTERNAL_H
-#define _THREAD_MUTEX_INTERNAL_H 1
-
-struct __pthread_mutex_s
-{
- int __lock;
- unsigned int __count;
- int __owner;
-#if __WORDSIZE == 64
- unsigned int __nusers;
-#endif
- /* KIND must stay at this position in the structure to maintain
- binary compatibility with static initializers. */
- int __kind;
-#if __WORDSIZE == 64
- short __spins;
- short __elision;
- __pthread_list_t __list;
-# define __PTHREAD_MUTEX_HAVE_PREV 1
-#else
- unsigned int __nusers;
- __extension__ union
- {
- struct
- {
- short __espins;
- short __elision;
-# define __spins __elision_data.__espins
-# define __elision __elision_data.__elision
- } __elision_data;
- __pthread_slist_t __list;
- };
-# define __PTHREAD_MUTEX_HAVE_PREV 0
-#endif
-};
-
-#if __WORDSIZE == 64
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, 0, __kind, 0, 0, { 0, 0 }
-#else
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, __kind, 0, { { 0, 0 } }
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/struct_rwlock.h
@@ -1,61 +0,0 @@
-/* PowerPC internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#if __WORDSIZE == 64
- int __cur_writer;
- int __shared;
- unsigned char __rwelision;
- unsigned char __pad1[7];
- unsigned long int __pad2;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned int __flags;
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, {0, 0, 0, 0, 0, 0, 0 }
-#else
- unsigned char __rwelision;
- unsigned char __pad2;
- unsigned char __shared;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- int __cur_writer;
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-#endif
-};
-
-#if __WORDSIZE == 64
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, __flags
-#else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, 0, __flags, 0
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/struct_stat.h
@@ -1,231 +0,0 @@
-/* Definition for struct stat.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
-#endif
-
-#ifndef _BITS_STRUCT_STAT_H
-#define _BITS_STRUCT_STAT_H 1
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32
-struct stat
- {
-# ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-# else
- __dev_t st_dev; /* Device. */
-# ifndef __USE_FILE_OFFSET64
- unsigned short int __pad1;
- __ino_t st_ino; /* File serial number. */
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned short int __pad2;
-# ifndef __USE_FILE_OFFSET64
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
-# ifndef __USE_FILE_OFFSET64
- __blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
-# else
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# endif
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
-# endif /* __USE_TIME64_REDIRECTS */
- };
-
-# ifdef __USE_LARGEFILE64
-struct stat64
- {
-# ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-# else
- __dev_t st_dev; /* Device. */
- __ino64_t st_ino; /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned short int __pad2;
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
-# endif /* __USE_TIME64_REDIRECTS */
- };
-# endif /* __USE_LARGEFILE64 */
-
-#else /* __WORDSIZE == 32 */
-
-struct stat
- {
- __dev_t st_dev; /* Device. */
-# ifndef __USE_FILE_OFFSET64
- __ino_t st_ino; /* File serial number. */
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
- __nlink_t st_nlink; /* Link count. */
- __mode_t st_mode; /* File mode. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- int __pad2;
- __dev_t st_rdev; /* Device number, if device. */
-# ifndef __USE_FILE_OFFSET64
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
-# ifndef __USE_FILE_OFFSET64
- __blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
-# else
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# endif
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
- unsigned long int __glibc_reserved6;
- };
-
-# ifdef __USE_LARGEFILE64
-struct stat64
- {
- __dev_t st_dev; /* Device. */
- __ino64_t st_ino; /* File serial number. */
- __nlink_t st_nlink; /* Link count. */
- __mode_t st_mode; /* File mode. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- int __pad2;
- __dev_t st_rdev; /* Device number, if device. */
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
- unsigned long int __glibc_reserved6;
- };
-# endif /* __USE_LARGEFILE64 */
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-#endif /* _BITS_STRUCT_STAT_H */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/termios-baud.h
@@ -1,45 +0,0 @@
-/* termios baud rate selection definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."
-#endif
-
-#ifdef __USE_MISC
-# define CBAUD 0000377
-# define CBAUDEX 0000020
-# define CMSPAR 010000000000 /* mark or space (stick) parity */
-# define CRTSCTS 020000000000 /* flow control */
-#endif
-
-#define B57600 00020
-#define B115200 00021
-#define B230400 00022
-#define B460800 00023
-#define B500000 00024
-#define B576000 00025
-#define B921600 00026
-#define B1000000 00027
-#define B1152000 00030
-#define B1500000 00031
-#define B2000000 00032
-#define B2500000 00033
-#define B3000000 00034
-#define B3500000 00035
-#define B4000000 00036
-#define __MAX_BAUD B4000000
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/termios-c_cc.h
@@ -1,41 +0,0 @@
-/* termios c_cc symbolic constant definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
-#endif
-
-/* c_cc characters */
-#define VINTR 0
-#define VQUIT 1
-#define VERASE 2
-#define VKILL 3
-#define VEOF 4
-#define VMIN 5
-#define VEOL 6
-#define VTIME 7
-#define VEOL2 8
-#define VSWTC 9
-
-#define VWERASE 10
-#define VREPRINT 11
-#define VSUSP 12
-#define VSTART 13
-#define VSTOP 14
-#define VLNEXT 15
-#define VDISCARD 16
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/termios-c_cflag.h
@@ -1,39 +0,0 @@
-/* termios control mode definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cflag.h> directly; use <termios.h> instead."
-#endif
-
-#define CSIZE 00001400
-#define CS5 00000000
-#define CS6 00000400
-#define CS7 00001000
-#define CS8 00001400
-
-#define CSTOPB 00002000
-#define CREAD 00004000
-#define PARENB 00010000
-#define PARODD 00020000
-#define HUPCL 00040000
-
-#define CLOCAL 00100000
-
-#ifdef __USE_MISC
-# define ADDRB 04000000000
-#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/termios-c_iflag.h
@@ -1,38 +0,0 @@
-/* termios input mode definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_iflags.h> directly; use <termios.h> instead."
-#endif
-
-/* c_iflag bits */
-#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 IXON 0001000
-#define IXOFF 0002000
-#define IXANY 0004000
-#define IUCLC 0010000
-#define IMAXBEL 0020000
-#define IUTF8 0040000
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/termios-c_lflag.h
@@ -1,45 +0,0 @@
-/* termios local mode definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_lflag bits */
-#define ISIG 0x00000080
-#define ICANON 0x00000100
-#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
-# define XCASE 0x00004000
-#endif
-#define ECHO 0x00000008
-#define ECHOE 0x00000002
-#define ECHOK 0x00000004
-#define ECHONL 0x00000010
-#define NOFLSH 0x80000000
-#define TOSTOP 0x00400000
-#ifdef __USE_MISC
-# define ECHOCTL 0x00000040
-# define ECHOPRT 0x00000020
-# define ECHOKE 0x00000001
-# define FLUSHO 0x00800000
-# define PENDIN 0x20000000
-#endif
-#define IEXTEN 0x00000400
-#ifdef __USE_MISC
-# define EXTPROC 0x10000000
-#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/termios-c_oflag.h
@@ -1,65 +0,0 @@
-/* termios output mode definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_oflag bits */
-#define OPOST 0000001
-#define ONLCR 0000002
-#define OLCUC 0000004
-
-#define OCRNL 0000010
-#define ONOCR 0000020
-#define ONLRET 0000040
-
-#define OFILL 00000100
-#define OFDEL 00000200
-#if defined __USE_MISC || defined __USE_XOPEN
-# define NLDLY 00001400
-# define NL0 00000000
-# define NL1 00000400
-# if defined __USE_MISC
-# define NL2 00001000
-# define NL3 00001400
-# endif
-# define TABDLY 00006000
-# define TAB0 00000000
-# define TAB1 00002000
-# define TAB2 00004000
-# define TAB3 00006000
-# define CRDLY 00030000
-# define CR0 00000000
-# define CR1 00010000
-# define CR2 00020000
-# define CR3 00030000
-# define FFDLY 00040000
-# define FF0 00000000
-# define FF1 00040000
-# define BSDLY 00100000
-# define BS0 00000000
-# define BS1 00100000
-#endif
-#define VTDLY 00200000
-#define VT0 00000000
-#define VT1 00200000
-
-#ifdef __USE_MISC
-# define XTABS 00006000
-#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/termios-misc.h
@@ -1,72 +0,0 @@
-/* termios baud platform specific definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-misc.h> directly; use <termios.h> instead."
-#endif
-
-#ifdef __USE_MISC
-
-struct sgttyb {
- char sg_ispeed;
- char sg_ospeed;
- char sg_erase;
- char sg_kill;
- short sg_flags;
-};
-
-struct tchars {
- char t_intrc;
- char t_quitc;
- char t_startc;
- char t_stopc;
- char t_eofc;
- char t_brkc;
-};
-
-struct ltchars {
- char t_suspc;
- char t_dsuspc;
- char t_rprntc;
- char t_flushc;
- char t_werasc;
- char t_lnextc;
-};
-
-/* Used for packet mode */
-#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
-
-/* c_cc characters */
-#define _VINTR 0
-#define _VQUIT 1
-#define _VERASE 2
-#define _VKILL 3
-#define _VEOF 4
-#define _VMIN 5
-#define _VEOL 6
-#define _VTIME 7
-#define _VEOL2 8
-#define _VSWTC 9
-
-#endif /* __USE_MISC */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/timesize.h
@@ -1,22 +0,0 @@
-/* Bit size of the time_t type at glibc build time, Linux/PowerPC.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#include <bits/wordsize.h>
-
-/* Size in bits of the 'time_t' type of the default ABI. */
-#define __TIMESIZE __WORDSIZE
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/typesizes.h
@@ -1,95 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. PowerPC version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __UWORD_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#ifdef __LP64__
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for rlim_t and rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-
-/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
-# define __STATFS_MATCHES_STATFS64 1
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-
-# define __STATFS_MATCHES_STATFS64 0
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/wordsize.h
@@ -1,10 +0,0 @@
-/* Determine the wordsize from the preprocessor defines. */
-
-#if defined __powerpc64__
-# define __WORDSIZE 64
-#else
-# define __WORDSIZE 32
-# define __WORDSIZE32_SIZE_ULONG 0
-# define __WORDSIZE32_PTRDIFF_LONG 0
-#endif
-#define __WORDSIZE_TIME64_COMPAT32 1
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/gnu/lib-names.h
@@ -1,19 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32
-# include <gnu/lib-names-32.h>
-#endif
-#if __WORDSIZE == 64 && _CALL_ELF != 2
-# include <gnu/lib-names-64-v1.h>
-#endif
-#if __WORDSIZE == 64 && _CALL_ELF == 2
-# include <gnu/lib-names-64-v2.h>
-#endif
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/gnu/stubs.h
@@ -1,15 +0,0 @@
-/* This file is automatically generated.
- This file selects the right generated file of `__stub_FUNCTION' macros
- based on the architecture being compiled for. */
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32
-# include <gnu/stubs-32.h>
-#endif
-#if __WORDSIZE == 64 && _CALL_ELF != 2
-# include <gnu/stubs-64-v1.h>
-#endif
-#if __WORDSIZE == 64 && _CALL_ELF == 2
-# include <gnu/stubs-64-v2.h>
-#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/sys/ptrace.h
@@ -1,289 +0,0 @@
-/* `ptrace' debugger support interface. Linux/PowerPC version.
- Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PTRACE_H
-#define _SYS_PTRACE_H 1
-
-#include <features.h>
-#include <bits/types.h>
-
-__BEGIN_DECLS
-
-#if defined _LINUX_PTRACE_H || defined _ASM_POWERPC_PTRACE_H
-/* Do not let Linux headers macros interfere with enum __ptrace_request. */
-# undef PTRACE_ATTACH
-# undef PTRACE_CONT
-# undef PTRACE_DETACH
-# undef PTRACE_GET_DEBUGREG
-# undef PTRACE_GETEVENTMSG
-# undef PTRACE_GETEVRREGS
-# undef PTRACE_GETFPREGS
-# undef PTRACE_GETREGS
-# undef PTRACE_GETREGS64
-# undef PTRACE_GETREGSET
-# undef PTRACE_GET_RSEQ_CONFIGURATION
-# undef PTRACE_GETSIGINFO
-# undef PTRACE_GETSIGMASK
-# undef PTRACE_GET_SYSCALL_INFO
-# undef PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-# undef PTRACE_GETVRREGS
-# undef PTRACE_GETVSRREGS
-# undef PTRACE_INTERRUPT
-# undef PTRACE_KILL
-# undef PTRACE_LISTEN
-# undef PTRACE_PEEKDATA
-# undef PTRACE_PEEKSIGINFO
-# undef PTRACE_PEEKTEXT
-# undef PTRACE_POKEDATA
-# undef PTRACE_POKETEXT
-# undef PTRACE_SECCOMP_GET_FILTER
-# undef PTRACE_SECCOMP_GET_METADATA
-# undef PTRACE_SEIZE
-# undef PTRACE_SET_DEBUGREG
-# undef PTRACE_SETEVRREGS
-# undef PTRACE_SETFPREGS
-# undef PTRACE_SETOPTIONS
-# undef PTRACE_SETREGS
-# undef PTRACE_SETREGS64
-# undef PTRACE_SETREGSET
-# undef PTRACE_SETSIGINFO
-# undef PTRACE_SETSIGMASK
-# undef PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-# undef PTRACE_SETVRREGS
-# undef PTRACE_SETVSRREGS
-# undef PTRACE_SINGLEBLOCK
-# undef PTRACE_SINGLESTEP
-# undef PTRACE_SYSCALL
-# undef PTRACE_SYSCALL_INFO_NONE
-# undef PTRACE_SYSCALL_INFO_ENTRY
-# undef PTRACE_SYSCALL_INFO_EXIT
-# undef PTRACE_SYSCALL_INFO_SECCOMP
-# undef PTRACE_SYSEMU
-# undef PTRACE_SYSEMU_SINGLESTEP
-# undef PTRACE_TRACEME
-#endif
-
-/* Type of the REQUEST argument to `ptrace.' */
-enum __ptrace_request
-{
- /* Indicate that the process making this request should be traced.
- All signals received by this process can be intercepted by its
- parent, and its parent can use the other `ptrace' requests. */
- PTRACE_TRACEME = 0,
-#define PT_TRACE_ME PTRACE_TRACEME
-
- /* Return the word in the process's text space at address ADDR. */
- PTRACE_PEEKTEXT = 1,
-#define PT_READ_I PTRACE_PEEKTEXT
-
- /* Return the word in the process's data space at address ADDR. */
- PTRACE_PEEKDATA = 2,
-#define PT_READ_D PTRACE_PEEKDATA
-
- /* Return the word in the process's user area at offset ADDR. */
- PTRACE_PEEKUSER = 3,
-#define PT_READ_U PTRACE_PEEKUSER
-
- /* Write the word DATA into the process's text space at address ADDR. */
- PTRACE_POKETEXT = 4,
-#define PT_WRITE_I PTRACE_POKETEXT
-
- /* Write the word DATA into the process's data space at address ADDR. */
- PTRACE_POKEDATA = 5,
-#define PT_WRITE_D PTRACE_POKEDATA
-
- /* Write the word DATA into the process's user area at offset ADDR. */
- PTRACE_POKEUSER = 6,
-#define PT_WRITE_U PTRACE_POKEUSER
-
- /* Continue the process. */
- PTRACE_CONT = 7,
-#define PT_CONTINUE PTRACE_CONT
-
- /* Kill the process. */
- PTRACE_KILL = 8,
-#define PT_KILL PTRACE_KILL
-
- /* Single step the process. */
- PTRACE_SINGLESTEP = 9,
-#define PT_STEP PTRACE_SINGLESTEP
-
- /* Get all general purpose registers used by a process. */
- PTRACE_GETREGS = 12,
-#define PT_GETREGS PTRACE_GETREGS
-
- /* Set all general purpose registers used by a process. */
- PTRACE_SETREGS = 13,
-#define PT_SETREGS PTRACE_SETREGS
-
- /* Get all floating point registers used by a process. */
- PTRACE_GETFPREGS = 14,
-#define PT_GETFPREGS PTRACE_GETFPREGS
-
- /* Set all floating point registers used by a process. */
- PTRACE_SETFPREGS = 15,
-#define PT_SETFPREGS PTRACE_SETFPREGS
-
- /* Attach to a process that is already running. */
- PTRACE_ATTACH = 16,
-#define PT_ATTACH PTRACE_ATTACH
-
- /* Detach from a process attached to with PTRACE_ATTACH. */
- PTRACE_DETACH = 17,
-#define PT_DETACH PTRACE_DETACH
-
- /* Get all altivec registers used by a process. */
- PTRACE_GETVRREGS = 18,
-#define PT_GETVRREGS PTRACE_GETVRREGS
-
- /* Set all altivec registers used by a process. */
- PTRACE_SETVRREGS = 19,
-#define PT_SETVRREGS PTRACE_SETVRREGS
-
- /* Get all SPE registers used by a process. */
- PTRACE_GETEVRREGS = 20,
-#define PT_GETEVRREGS PTRACE_GETEVRREGS
-
- /* Set all SPE registers used by a process. */
- PTRACE_SETEVRREGS = 21,
-#define PT_SETEVRREGS PTRACE_SETEVRREGS
-
- /* Same as PTRACE_GETREGS except a 32-bit process will obtain
- the full 64-bit registers. Implemented by 64-bit kernels only. */
- PTRACE_GETREGS64 = 22,
-#define PT_GETREGS64 PTRACE_GETREGS64
-
- /* Same as PTRACE_SETREGS except a 32-bit process will set
- the full 64-bit registers. Implemented by 64-bit kernels only. */
- PTRACE_SETREGS64 = 23,
-#define PT_SETREGS64 PTRACE_SETREGS64
-
- /* Continue and stop at the next entry to or return from syscall. */
- PTRACE_SYSCALL = 24,
-#define PT_SYSCALL PTRACE_SYSCALL
-
- /* Get a debug register of a process. */
- PTRACE_GET_DEBUGREG = 25,
-#define PT_GET_DEBUGREG PTRACE_GET_DEBUGREG
-
- /* Set a debug register of a process. */
- PTRACE_SET_DEBUGREG = 26,
-#define PT_SET_DEBUGREG PTRACE_SET_DEBUGREG
-
- /* Get the first 32 VSX registers of a process. */
- PTRACE_GETVSRREGS = 27,
-#define PT_GETVSRREGS PTRACE_GETVSRREGS
-
- /* Set the first 32 VSX registers of a process. */
- PTRACE_SETVSRREGS = 28,
-#define PT_SETVSRREGS PTRACE_SETVSRREGS
-
- /* Continue and stop at the next syscall, it will not be executed. */
- PTRACE_SYSEMU = 29,
-#define PT_SYSEMU PTRACE_SYSEMU
-
- /* Single step the process, the next syscall will not be executed. */
- PTRACE_SYSEMU_SINGLESTEP = 30,
-#define PT_SYSEMU_SINGLESTEP PTRACE_SYSEMU_SINGLESTEP
-
- /* Execute process until next taken branch. */
- PTRACE_SINGLEBLOCK = 256,
-#define PT_STEPBLOCK PTRACE_SINGLEBLOCK
-
- /* Set ptrace filter options. */
- PTRACE_SETOPTIONS = 0x4200,
-#define PT_SETOPTIONS PTRACE_SETOPTIONS
-
- /* Get last ptrace message. */
- PTRACE_GETEVENTMSG = 0x4201,
-#define PT_GETEVENTMSG PTRACE_GETEVENTMSG
-
- /* Get siginfo for process. */
- PTRACE_GETSIGINFO = 0x4202,
-#define PT_GETSIGINFO PTRACE_GETSIGINFO
-
- /* Set new siginfo for process. */
- PTRACE_SETSIGINFO = 0x4203,
-#define PT_SETSIGINFO PTRACE_SETSIGINFO
-
- /* Get register content. */
- PTRACE_GETREGSET = 0x4204,
-#define PTRACE_GETREGSET PTRACE_GETREGSET
-
- /* Set register content. */
- PTRACE_SETREGSET = 0x4205,
-#define PTRACE_SETREGSET PTRACE_SETREGSET
-
- /* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
- signal or group stop state. */
- PTRACE_SEIZE = 0x4206,
-#define PTRACE_SEIZE PTRACE_SEIZE
-
- /* Trap seized tracee. */
- PTRACE_INTERRUPT = 0x4207,
-#define PTRACE_INTERRUPT PTRACE_INTERRUPT
-
- /* Wait for next group event. */
- PTRACE_LISTEN = 0x4208,
-#define PTRACE_LISTEN PTRACE_LISTEN
-
- /* Retrieve siginfo_t structures without removing signals from a queue. */
- PTRACE_PEEKSIGINFO = 0x4209,
-#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
-
- /* Get the mask of blocked signals. */
- PTRACE_GETSIGMASK = 0x420a,
-#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
-
- /* Change the mask of blocked signals. */
- PTRACE_SETSIGMASK = 0x420b,
-#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
-
- /* Get seccomp BPF filters. */
- PTRACE_SECCOMP_GET_FILTER = 0x420c,
-#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
-
- /* Get seccomp BPF filter metadata. */
- PTRACE_SECCOMP_GET_METADATA = 0x420d,
-#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
-
- /* Get information about system call. */
- PTRACE_GET_SYSCALL_INFO = 0x420e,
-#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
-
- /* Get rseq configuration information. */
- PTRACE_GET_RSEQ_CONFIGURATION = 0x420f,
-#define PTRACE_GET_RSEQ_CONFIGURATION PTRACE_GET_RSEQ_CONFIGURATION
-
- /* Set configuration for syscall user dispatch. */
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG = 0x4210,
-#define PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-
- /* Get configuration for syscall user dispatch. */
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG = 0x4211
-#define PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-};
-
-
-#include <bits/ptrace-shared.h>
-
-__END_DECLS
-
-#endif /* _SYS_PTRACE_H */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/sys/ucontext.h
@@ -1,200 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include <features.h>
-
-#include <bits/types/sigset_t.h>
-#include <bits/types/stack_t.h>
-
-
-#ifdef __USE_MISC
-# define __ctx(fld) fld
-#else
-# define __ctx(fld) __ ## fld
-#endif
-
-struct __ctx(pt_regs);
-
-#if __WORDSIZE == 32
-
-/* Number of general registers. */
-# define __NGREG 48
-# ifdef __USE_MISC
-# define NGREG __NGREG
-# endif
-
-/* Container for all general registers. */
-typedef unsigned long gregset_t[__NGREG];
-
-/* Container for floating-point registers and status */
-typedef struct _libc_fpstate
-{
- double __ctx(fpregs)[32];
- double __ctx(fpscr);
- unsigned int _pad[2];
-} fpregset_t;
-
-/* Container for Altivec/VMX registers and status.
- Needs to be aligned on a 16-byte boundary. */
-typedef struct _libc_vrstate
-{
- unsigned int __ctx(vrregs)[32][4];
- unsigned int __ctx(vrsave);
- unsigned int _pad[2];
- unsigned int __ctx(vscr);
-} vrregset_t;
-
-/* Context to describe whole processor state. */
-typedef struct
-{
- gregset_t __ctx(gregs);
- fpregset_t __ctx(fpregs);
- vrregset_t __ctx(vrregs) __attribute__((__aligned__(16)));
-} mcontext_t;
-
-#else
-
-/* For 64-bit kernels with Altivec support, a machine context is exactly
- * a sigcontext. For older kernel (without Altivec) the sigcontext matches
- * the mcontext upto but not including the v_regs field. For kernels that
- * don't set AT_HWCAP or return AT_HWCAP without PPC_FEATURE_HAS_ALTIVEC the
- * v_regs field may not exist and should not be referenced. The v_regs field
- * can be referenced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC
- * is set in AT_HWCAP. */
-
-/* Number of general registers. */
-# define __NGREG 48 /* includes r0-r31, nip, msr, lr, etc. */
-# define __NFPREG 33 /* includes fp0-fp31 &fpscr. */
-# define __NVRREG 34 /* includes v0-v31, vscr, & vrsave in
- split vectors */
-# ifdef __USE_MISC
-# define NGREG __NGREG
-# define NFPREG __NFPREG
-# define NVRREG __NVRREG
-# endif
-
-typedef unsigned long gregset_t[__NGREG];
-typedef double fpregset_t[__NFPREG];
-
-/* Container for Altivec/VMX Vector Status and Control Register. Only 32-bits
- but can only be copied to/from a 128-bit vector register. So we allocated
- a whole quadword speedup save/restore. */
-typedef struct _libc_vscr
-{
-#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
- unsigned int __pad[3];
- unsigned int __ctx(vscr_word);
-#else
- unsigned int __ctx(vscr_word);
- unsigned int __pad[3];
-#endif
-} vscr_t;
-
-/* Container for Altivec/VMX registers and status.
- Must to be aligned on a 16-byte boundary. */
-typedef struct _libc_vrstate
-{
- unsigned int __ctx(vrregs)[32][4];
- vscr_t __ctx(vscr);
- unsigned int __ctx(vrsave);
- unsigned int __pad[3];
-} vrregset_t __attribute__((__aligned__(16)));
-
-typedef struct {
- unsigned long __glibc_reserved[4];
- int __ctx(signal);
- int __pad0;
- unsigned long __ctx(handler);
- unsigned long __ctx(oldmask);
- struct __ctx(pt_regs) *__ctx(regs);
- gregset_t __ctx(gp_regs);
- fpregset_t __ctx(fp_regs);
-/*
- * To maintain compatibility with current implementations the sigcontext is
- * extended by appending a pointer (v_regs) to a quadword type (elf_vrreg_t)
- * followed by an unstructured (vmx_reserve) field of 69 doublewords. This
- * allows the array of vector registers to be quadword aligned independent of
- * the alignment of the containing sigcontext or ucontext. It is the
- * responsibility of the code setting the sigcontext to set this pointer to
- * either NULL (if this processor does not support the VMX feature) or the
- * address of the first quadword within the allocated (vmx_reserve) area.
- *
- * The pointer (v_regs) of vector type (elf_vrreg_t) is essentially
- * an array of 34 quadword entries. The entries with
- * indexes 0-31 contain the corresponding vector registers. The entry with
- * index 32 contains the vscr as the last word (offset 12) within the
- * quadword. This allows the vscr to be stored as either a quadword (since
- * it must be copied via a vector register to/from storage) or as a word.
- * The entry with index 33 contains the vrsave as the first word (offset 0)
- * within the quadword.
- */
- vrregset_t *__ctx(v_regs);
- long __ctx(vmx_reserve)[__NVRREG+__NVRREG+1];
-} mcontext_t;
-
-#endif
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long int __ctx(uc_flags);
- struct ucontext_t *uc_link;
- stack_t uc_stack;
-#if __WORDSIZE == 32
- /*
- * These fields are set up this way to maximize source and
- * binary compatibility with code written for the old
- * ucontext_t definition, which didn't include space for the
- * registers.
- *
- * Different versions of the kernel have stored the registers on
- * signal delivery at different offsets from the ucontext struct.
- * Programs should thus use the uc_mcontext.uc_regs pointer to
- * find where the registers are actually stored. The registers
- * will be stored within the ucontext_t struct but not necessarily
- * at a fixed address. As a side-effect, this lets us achieve
- * 16-byte alignment for the register storage space if the
- * Altivec registers are to be saved, without requiring 16-byte
- * alignment on the whole ucontext_t.
- *
- * The uc_mcontext.regs field is included for source compatibility
- * with programs written against the older ucontext_t definition,
- * and its name should therefore not change. The uc_pad field
- * is for binary compatibility with programs compiled against the
- * old ucontext_t; it ensures that uc_mcontext.regs and uc_sigmask
- * are at the same offset as previously.
- */
- int __glibc_reserved1[7];
- union __ctx(uc_regs_ptr) {
- struct __ctx(pt_regs) *__ctx(regs);
- mcontext_t *__ctx(uc_regs);
- } uc_mcontext;
- sigset_t uc_sigmask;
- /* last for extensibility */
- char __ctx(uc_reg_space)[sizeof (mcontext_t) + 12];
-#else /* 64-bit */
- sigset_t uc_sigmask;
- mcontext_t uc_mcontext; /* last for extensibility */
-#endif
- } ucontext_t;
-
-#undef __ctx
-
-#endif /* sys/ucontext.h */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/sys/user.h
@@ -1,40 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_USER_H
-
-#define _SYS_USER_H 1
-#include <stddef.h>
-#include <features.h>
-
-#include <asm/ptrace.h>
-
-struct user {
- struct pt_regs regs; /* entire machine state */
- size_t u_tsize; /* text size (pages) */
- size_t u_dsize; /* data size (pages) */
- size_t u_ssize; /* stack size (pages) */
- unsigned long start_code; /* text starting address */
- unsigned long start_data; /* data starting address */
- unsigned long start_stack; /* stack starting address */
- long int signal; /* signal causing core dump */
- struct regs * u_ar0; /* help gdb find registers */
- unsigned long magic; /* identifies a core file */
- char u_comm[32]; /* user command name */
-};
-
-#endif /* sys/user.h */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/fpu_control.h
@@ -1,114 +0,0 @@
-/* FPU control word definitions. PowerPC version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FPU_CONTROL_H
-#define _FPU_CONTROL_H
-
-#if defined __SPE__ || (defined __NO_FPRS__ && !defined _SOFT_FLOAT)
-# error "SPE/e500 is no longer supported"
-#endif
-
-#ifdef _SOFT_FLOAT
-
-# define _FPU_RESERVED 0xffffffff
-# define _FPU_DEFAULT 0x00000000 /* Default value. */
-typedef unsigned int fpu_control_t;
-# define _FPU_GETCW(cw) (cw) = 0
-# define _FPU_SETCW(cw) (void) (cw)
-extern fpu_control_t __fpu_control;
-
-#else /* PowerPC 6xx floating-point. */
-
-/* rounding control */
-# define _FPU_RC_NEAREST 0x00 /* RECOMMENDED */
-# define _FPU_RC_DOWN 0x03
-# define _FPU_RC_UP 0x02
-# define _FPU_RC_ZERO 0x01
-
-# define _FPU_MASK_RC (_FPU_RC_NEAREST|_FPU_RC_DOWN|_FPU_RC_UP|_FPU_RC_ZERO)
-
-# define _FPU_MASK_NI 0x04 /* non-ieee mode */
-
-/* masking of interrupts */
-# define _FPU_MASK_ZM 0x10 /* zero divide */
-# define _FPU_MASK_OM 0x40 /* overflow */
-# define _FPU_MASK_UM 0x20 /* underflow */
-# define _FPU_MASK_XM 0x08 /* inexact */
-# define _FPU_MASK_IM 0x80 /* invalid operation */
-
-# define _FPU_RESERVED 0xffffff00 /* These bits are reserved are not changed. */
-
-/* The fdlibm code requires no interrupts for exceptions. */
-# define _FPU_DEFAULT 0x00000000 /* Default value. */
-
-/* IEEE: same as above, but (some) exceptions;
- we leave the 'inexact' exception off.
- */
-# define _FPU_IEEE 0x000000f0
-
-/* Type of the control word. */
-typedef unsigned int fpu_control_t;
-
-/* Macros for accessing the hardware control word. */
-# define _FPU_GETCW(cw) \
- ({union { double __d; unsigned long long __ll; } __u; \
- __asm__ __volatile__("mffs %0" : "=f" (__u.__d)); \
- (cw) = (fpu_control_t) __u.__ll; \
- (fpu_control_t) __u.__ll; \
- })
-
-# define _FPU_GET_RC_ISA300() \
- ({union { double __d; unsigned long long __ll; } __u; \
- __asm__ __volatile__( \
- ".machine push; .machine \"power9\"; mffsl %0; .machine pop" \
- : "=f" (__u.__d)); \
- (fpu_control_t) (__u.__ll & _FPU_MASK_RC); \
- })
-
-# ifdef _ARCH_PWR9
-# define _FPU_GET_RC() _FPU_GET_RC_ISA300()
-# elif defined __BUILTIN_CPU_SUPPORTS__
-# define _FPU_GET_RC() \
- ({fpu_control_t __rc; \
- __rc = __glibc_likely (__builtin_cpu_supports ("arch_3_00")) \
- ? _FPU_GET_RC_ISA300 () \
- : _FPU_GETCW (__rc) & _FPU_MASK_RC; \
- __rc; \
- })
-# else
-# define _FPU_GET_RC() \
- ({fpu_control_t __rc = _FPU_GETCW (__rc) & _FPU_MASK_RC; \
- __rc; \
- })
-# endif
-
-# define _FPU_SETCW(cw) \
- { union { double __d; unsigned long long __ll; } __u; \
- register double __fr; \
- __u.__ll = 0xfff80000LL << 32; /* This is a QNaN. */ \
- __u.__ll |= (cw) & 0xffffffffLL; \
- __fr = __u.__d; \
- __asm__ __volatile__("mtfsf 255,%0" : : "f" (__fr)); \
- }
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-#endif /* PowerPC 6xx floating-point. */
-
-#endif /* _FPU_CONTROL_H */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/ieee754.h
@@ -1,197 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-#include <bits/floatn.h>
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-/* long double is IEEE 128 bit */
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-#endif
-
-
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0 || __GNUC_PREREQ (7, 0)
-/* IBM extended format for long double.
-
- Each long double is made up of two IEEE doubles. The value of the
- long double is the sum of the values of the two parts. The most
- significant part is required to be the value of the long double
- rounded to the nearest double, as specified by IEEE. For Inf
- values, the least significant part is required to be one of +0.0 or
- -0.0. No other requirements are made; so, for example, 1.0 may be
- represented as (1.0, +0.0) or (1.0, -0.0), and the low part of a
- NaN is don't-care. */
-union ibm_extended_long_double
- {
-# if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && __GNUC_PREREQ (7, 0)
- __ibm128 ld;
-# else
- long double ld;
-# endif
- union ieee754_double d[2];
- };
-#endif
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/types/struct_msqid_ds.h
@@ -1,53 +0,0 @@
-/* Linux/PowerPC implementation of the SysV message struct msqid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MSG_H
-# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
-#endif
-
-#include <bits/types/time_t.h>
-
-/* Structure of record for one message inside the kernel.
- The type `struct msg' is opaque. */
-struct msqid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_msqid64_ds_helper.h>
-#else
- struct ipc_perm msg_perm; /* structure describing operation permission */
-# if __TIMESIZE == 32
- unsigned long int __msg_stime_high;
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_ctime_high;
- __time_t msg_ctime; /* time of last change */
-# else
- __time_t msg_stime; /* time of last msgsnd command */
- __time_t msg_rtime; /* time of last msgsnd command */
- __time_t msg_ctime; /* time of last change */
-# endif
- __syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
- msgqnum_t msg_qnum; /* number of messages currently on queue */
- msglen_t msg_qbytes; /* max number of bytes allowed on queue */
- __pid_t msg_lspid; /* pid of last msgsnd() */
- __pid_t msg_lrpid; /* pid of last msgrcv() */
- __syscall_ulong_t __glibc_reserved4;
- __syscall_ulong_t __glibc_reserved5;
-#endif
-};
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/types/struct_semid_ds.h
@@ -1,43 +0,0 @@
-/* PowerPC implementation of the semaphore struct semid_ds.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
-#endif
-
-/* Data structure describing a set of semaphores. */
-struct semid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_semid64_ds_helper.h>
-#else
- struct ipc_perm sem_perm; /* operation permission struct */
-# if __TIMESIZE == 32
- __syscall_ulong_t __sem_otime_high;
- __time_t sem_otime; /* last semop() time */
- __syscall_ulong_t __sem_ctime_high;
- __time_t sem_ctime; /* last time changed by semctl() */
-# else
- __time_t sem_otime; /* last semop() time */
- __time_t sem_ctime; /* last time changed by semctl() */
-# endif
- __syscall_ulong_t sem_nsems; /* number of semaphores in set */
- __syscall_ulong_t __glibc_reserved3;
- __syscall_ulong_t __glibc_reserved4;
-#endif
-};
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/types/struct_shmid_ds.h
@@ -1,50 +0,0 @@
-/* Linux/PowerPC implementation of the shared memory struct shmid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never include <bits/types/struct_shmid_ds.h> directly; use <sys/shm.h> instead."
-#endif
-
-/* Data structure describing a shared memory segment. */
-struct shmid_ds
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_shmid64_ds_helper.h>
-#else
- struct ipc_perm shm_perm; /* operation permission struct */
-# if __TIMESIZE == 32
- unsigned long int __shm_atime_high;
- __time_t shm_atime; /* time of last shmat() */
- unsigned long int __shm_dtime_high;
- __time_t shm_dtime; /* time of last shmdt() */
- unsigned long int __shm_ctime_high;
- __time_t shm_ctime; /* time of last change by shmctl() */
- unsigned long int __glibc_reserved4;
-# else
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# endif
- size_t shm_segsz; /* size of segment in bytes */
- __pid_t shm_cpid; /* pid of creator */
- __pid_t shm_lpid; /* pid of last shmop */
- shmatt_t shm_nattch; /* number of current attaches */
- __syscall_ulong_t __glibc_reserved5;
- __syscall_ulong_t __glibc_reserved6;
-#endif
- };
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/endianness.h
@@ -1,16 +0,0 @@
-#ifndef _BITS_ENDIANNESS_H
-#define _BITS_ENDIANNESS_H 1
-
-#ifndef _BITS_ENDIAN_H
-# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
-#endif
-
-/* PowerPC has selectable endianness. */
-#if defined __BIG_ENDIAN__ || defined _BIG_ENDIAN
-# define __BYTE_ORDER __BIG_ENDIAN
-#endif
-#if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
-# define __BYTE_ORDER __LITTLE_ENDIAN
-#endif
-
-#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/environments.h
@@ -1,96 +0,0 @@
-/* Copyright (C) 1999-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _UNISTD_H
-# error "Never include this file directly. Use <unistd.h> instead"
-#endif
-
-#include <bits/wordsize.h>
-
-/* This header should define the following symbols under the described
- situations. A value `1' means that the model is always supported,
- `-1' means it is never supported. Undefined means it cannot be
- statically decided.
-
- _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type
- _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type
-
- _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type
- _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type
-
- The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG,
- _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32,
- _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were
- used in previous versions of the Unix standard and are available
- only for compatibility.
-*/
-
-#if __WORDSIZE == 64
-
-/* Environments with 32-bit wide pointers are optionally provided.
- Therefore following macros aren't defined:
- # undef _POSIX_V7_ILP32_OFF32
- # undef _POSIX_V7_ILP32_OFFBIG
- # undef _POSIX_V6_ILP32_OFF32
- # undef _POSIX_V6_ILP32_OFFBIG
- # undef _XBS5_ILP32_OFF32
- # undef _XBS5_ILP32_OFFBIG
- and users need to check at runtime. */
-
-/* We also have no use (for now) for an environment with bigger pointers
- and offsets. */
-# define _POSIX_V7_LPBIG_OFFBIG -1
-# define _POSIX_V6_LPBIG_OFFBIG -1
-# define _XBS5_LPBIG_OFFBIG -1
-
-/* By default we have 64-bit wide `long int', pointers and `off_t'. */
-# define _POSIX_V7_LP64_OFF64 1
-# define _POSIX_V6_LP64_OFF64 1
-# define _XBS5_LP64_OFF64 1
-
-#else /* __WORDSIZE == 32 */
-
-/* By default we have 32-bit wide `int', `long int', pointers and `off_t'
- and all platforms support LFS. */
-# define _POSIX_V7_ILP32_OFF32 1
-# define _POSIX_V7_ILP32_OFFBIG 1
-# define _POSIX_V6_ILP32_OFF32 1
-# define _POSIX_V6_ILP32_OFFBIG 1
-# define _XBS5_ILP32_OFF32 1
-# define _XBS5_ILP32_OFFBIG 1
-
-/* We optionally provide an environment with the above size but an 64-bit
- side `off_t'. Therefore we don't define _POSIX_V7_ILP32_OFFBIG. */
-
-/* Environments with 64-bit wide pointers can be provided,
- so these macros aren't defined:
- # undef _POSIX_V7_LP64_OFF64
- # undef _POSIX_V7_LPBIG_OFFBIG
- # undef _POSIX_V6_LP64_OFF64
- # undef _POSIX_V6_LPBIG_OFFBIG
- # undef _XBS5_LP64_OFF64
- # undef _XBS5_LPBIG_OFFBIG
- and sysconf tests for it at runtime. */
-
-#endif /* __WORDSIZE == 32 */
-
-#define __ILP32_OFF32_CFLAGS "-m32"
-#define __ILP32_OFFBIG_CFLAGS "-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
-#define __ILP32_OFF32_LDFLAGS "-m32"
-#define __ILP32_OFFBIG_LDFLAGS "-m32"
-#define __LP64_OFF64_CFLAGS "-m64"
-#define __LP64_OFF64_LDFLAGS "-m64"
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/fcntl.h
@@ -1,68 +0,0 @@
-/* O_*, F_*, FD_* bit values for Linux/PowerPC.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FCNTL_H
-# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-#define __O_DIRECTORY 040000 /* Must be a directory. */
-#define __O_NOFOLLOW 0100000 /* Do not follow links. */
-#define __O_DIRECT 0400000 /* Direct disk access. */
-
-#if __WORDSIZE == 64
-/* Not necessary, files are always with 64bit off_t. */
-# define __O_LARGEFILE 0
-#else
-# define __O_LARGEFILE 0200000
-#endif
-
-#if __WORDSIZE == 64 && !defined __USE_FILE_OFFSET64
-# define F_GETLK 5
-# define F_SETLK 6
-# define F_SETLKW 7
-#endif
-
-struct flock
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
-#ifndef __USE_FILE_OFFSET64
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
-#else
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
-#endif
- __pid_t l_pid; /* Process holding the lock. */
- };
-
-#ifdef __USE_LARGEFILE64
-struct flock64
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- };
-#endif
-
-/* Include generic Linux declarations. */
-#include <bits/fcntl-linux.h>
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/fenv.h
@@ -1,180 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FENV_H
-# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
-#endif
-
-
-/* Define bits representing the exception. We use the bit positions of
- the appropriate bits in the FPSCR... */
-enum
- {
- FE_INEXACT =
-#define FE_INEXACT (1 << (31 - 6))
- FE_INEXACT,
- FE_DIVBYZERO =
-#define FE_DIVBYZERO (1 << (31 - 5))
- FE_DIVBYZERO,
- FE_UNDERFLOW =
-#define FE_UNDERFLOW (1 << (31 - 4))
- FE_UNDERFLOW,
- FE_OVERFLOW =
-#define FE_OVERFLOW (1 << (31 - 3))
- FE_OVERFLOW,
-
- /* ... except for FE_INVALID, for which we use bit 31. FE_INVALID
- actually corresponds to bits 7 through 12 and 21 through 23
- in the FPSCR, but we can't use that because the current draft
- says that it must be a power of 2. Instead we use bit 2 which
- is the summary bit for all the FE_INVALID exceptions, which
- kind of makes sense. */
- FE_INVALID =
-#define FE_INVALID (1 << (31 - 2))
- FE_INVALID,
-
-#ifdef __USE_GNU
- /* Breakdown of the FE_INVALID bits. Setting FE_INVALID on an
- input to a routine is equivalent to setting all of these bits;
- FE_INVALID will be set on output from a routine iff one of
- these bits is set. Note, though, that you can't disable or
- enable these exceptions individually. */
-
- /* Operation with a sNaN. */
- FE_INVALID_SNAN =
-# define FE_INVALID_SNAN (1 << (31 - 7))
- FE_INVALID_SNAN,
-
- /* Inf - Inf */
- FE_INVALID_ISI =
-# define FE_INVALID_ISI (1 << (31 - 8))
- FE_INVALID_ISI,
-
- /* Inf / Inf */
- FE_INVALID_IDI =
-# define FE_INVALID_IDI (1 << (31 - 9))
- FE_INVALID_IDI,
-
- /* 0 / 0 */
- FE_INVALID_ZDZ =
-# define FE_INVALID_ZDZ (1 << (31 - 10))
- FE_INVALID_ZDZ,
-
- /* Inf * 0 */
- FE_INVALID_IMZ =
-# define FE_INVALID_IMZ (1 << (31 - 11))
- FE_INVALID_IMZ,
-
- /* Comparison with a NaN. */
- FE_INVALID_COMPARE =
-# define FE_INVALID_COMPARE (1 << (31 - 12))
- FE_INVALID_COMPARE,
-
- /* Invalid operation flag for software (not set by hardware). */
- /* Note that some chips don't have this implemented, presumably
- because no-one expected anyone to write software for them %-). */
- FE_INVALID_SOFTWARE =
-# define FE_INVALID_SOFTWARE (1 << (31 - 21))
- FE_INVALID_SOFTWARE,
-
- /* Square root of negative number (including -Inf). */
- /* Note that some chips don't have this implemented. */
- FE_INVALID_SQRT =
-# define FE_INVALID_SQRT (1 << (31 - 22))
- FE_INVALID_SQRT,
-
- /* Conversion-to-integer of a NaN or a number too large or too small. */
- FE_INVALID_INTEGER_CONVERSION =
-# define FE_INVALID_INTEGER_CONVERSION (1 << (31 - 23))
- FE_INVALID_INTEGER_CONVERSION
-
-# define FE_ALL_INVALID \
- (FE_INVALID_SNAN | FE_INVALID_ISI | FE_INVALID_IDI | FE_INVALID_ZDZ \
- | FE_INVALID_IMZ | FE_INVALID_COMPARE | FE_INVALID_SOFTWARE \
- | FE_INVALID_SQRT | FE_INVALID_INTEGER_CONVERSION)
-#endif
- };
-
-#define FE_ALL_EXCEPT \
- (FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID)
-
-/* PowerPC chips support all of the four defined rounding modes. We
- use the bit pattern in the FPSCR as the values for the
- appropriate macros. */
-enum
- {
- FE_TONEAREST =
-#define FE_TONEAREST 0
- FE_TONEAREST,
- FE_TOWARDZERO =
-#define FE_TOWARDZERO 1
- FE_TOWARDZERO,
- FE_UPWARD =
-#define FE_UPWARD 2
- FE_UPWARD,
- FE_DOWNWARD =
-#define FE_DOWNWARD 3
- FE_DOWNWARD
- };
-
-/* Type representing exception flags. */
-typedef unsigned int fexcept_t;
-
-/* Type representing floating-point environment. We leave it as 'double'
- for efficiency reasons (rather than writing it to a 32-bit integer). */
-typedef double fenv_t;
-
-/* If the default argument is used we use this value. */
-extern const fenv_t __fe_dfl_env;
-#define FE_DFL_ENV (&__fe_dfl_env)
-
-#ifdef __USE_GNU
-/* Floating-point environment where all exceptions are enabled. Note that
- this is not sufficient to give you SIGFPE. */
-extern const fenv_t __fe_enabled_env;
-# define FE_ENABLED_ENV (&__fe_enabled_env)
-
-/* Floating-point environment with (processor-dependent) non-IEEE floating
- point. */
-extern const fenv_t __fe_nonieee_env;
-# define FE_NONIEEE_ENV (&__fe_nonieee_env)
-
-/* Floating-point environment with all exceptions enabled. Note that
- just evaluating this value does not change the processor exception mode.
- Passing this mask to fesetenv will result in a prctl syscall to change
- the MSR FE0/FE1 bits to "Precise Mode". On some processors this will
- result in slower floating point execution. This will last until an
- fenv or exception mask is installed that disables all FP exceptions. */
-# define FE_NOMASK_ENV FE_ENABLED_ENV
-
-/* Floating-point environment with all exceptions disabled. Note that
- just evaluating this value does not change the processor exception mode.
- Passing this mask to fesetenv will result in a prctl syscall to change
- the MSR FE0/FE1 bits to "Ignore Exceptions Mode". On most processors
- this allows the fastest possible floating point execution.*/
-# define FE_MASK_ENV FE_DFL_ENV
-
-#endif
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
-/* Type representing floating-point control modes. */
-typedef double femode_t;
-
-/* Default floating-point control modes. */
-extern const femode_t __fe_dfl_mode;
-# define FE_DFL_MODE (&__fe_dfl_mode)
-#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/floatn.h
@@ -1,122 +0,0 @@
-/* Macros to control TS 18661-3 glibc features on powerpc.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_FLOATN_H
-#define _BITS_FLOATN_H
-
-#include <features.h>
-#include <bits/long-double.h>
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this glibc
- includes corresponding *f128 interfaces for it. */
-#if defined _ARCH_PWR8 && defined __LITTLE_ENDIAN__ && (_CALL_ELF == 2) \
- && defined __FLOAT128__ && !defined __NO_LONG_DOUBLE_MATH
-# define __HAVE_FLOAT128 1
-#else
-# define __HAVE_FLOAT128 0
-#endif
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc, i.e.
- calls to the binary128 functions go to *f128 symbols instead of *l. */
-#if __HAVE_FLOAT128
-# define __HAVE_DISTINCT_FLOAT128 1
-#else
-# define __HAVE_DISTINCT_FLOAT128 0
-#endif
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X __HAVE_FLOAT128
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE 0
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-/* The literal suffix (f128) exist for powerpc only since GCC 7.0. */
-# if __LDBL_MANT_DIG__ == 113
-# define __f128(x) x##l
-# else
-# define __f128(x) x##q
-# endif
-# else
-# define __f128(x) x##f128
-# endif
-# endif
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if __LDBL_MANT_DIG__ == 113 && defined __cplusplus && !__GNUC_PREREQ (13, 0)
-typedef long double _Float128;
-# define __CFLOAT128 _Complex long double
-# elif !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
-/* The type _Float128 exist for powerpc only since GCC 7.0. */
-typedef __float128 _Float128;
-/* Add a typedef for older GCC and C++ compilers which don't natively support
- _Complex _Float128. */
-typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__KC__)));
-# define __CFLOAT128 __cfloat128
-# else
-# define __CFLOAT128 _Complex _Float128
-# endif
-# endif
-
-/* The remaining of this file provides support for older compilers. */
-# if __HAVE_FLOAT128
-/* Builtin __builtin_huge_valf128 doesn't exist before GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0)
-# define __builtin_huge_valf128() ((_Float128) __builtin_huge_val ())
-# endif
-
-/* The following builtins (suffixed with 'q') are available in GCC >= 6.2,
- which is the minimum version required for float128 support on powerpc64le.
- Since GCC 7.0 the builtins suffixed with f128 are also available, then
- there is no need to redefined them. */
-# if !__GNUC_PREREQ (7, 0)
-# define __builtin_copysignf128 __builtin_copysignq
-# define __builtin_fabsf128 __builtin_fabsq
-# define __builtin_inff128 __builtin_infq
-# define __builtin_nanf128 __builtin_nanq
-# define __builtin_nansf128 __builtin_nansq
-# endif
-
-/* In math/math.h, __MATH_TG will expand signbit to __builtin_signbit*,
- e.g.: __builtin_signbitf128, before GCC 6. However, there has never
- been a __builtin_signbitf128 in GCC and the type-generic builtin is
- only available since GCC 6. */
-# if !__GNUC_PREREQ (6, 0)
-# define __builtin_signbitf128 __signbitf128
-# endif
-
-# endif
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
-
-#endif /* _BITS_FLOATN_H */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/fp-fast.h
@@ -1,39 +0,0 @@
-/* Define FP_FAST_* macros. PowerPC version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."
-#endif
-
-#ifdef __USE_ISOC99
-
-/* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l}
- builtins are supported. */
-# if (!defined _SOFT_FLOAT && !defined __NO_FPRS__) || defined __FP_FAST_FMA
-# define FP_FAST_FMA 1
-# endif
-
-# if (!defined _SOFT_FLOAT && !defined __NO_FPRS__) || defined __FP_FAST_FMAF
-# define FP_FAST_FMAF 1
-# endif
-
-# ifdef __FP_FAST_FMAL
-# define FP_FAST_FMAL 1
-# endif
-
-#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/hwcap.h
@@ -1,78 +0,0 @@
-/* Defines for bits in AT_HWCAP and AT_HWCAP2.
- Copyright (C) 2012-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
-# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
-#endif
-
-/* The bit numbers must match those in the kernel's asm/cputable.h. */
-
-/* Feature definitions in AT_HWCAP. */
-#define PPC_FEATURE_32 0x80000000 /* 32-bit mode. */
-#define PPC_FEATURE_64 0x40000000 /* 64-bit mode. */
-#define PPC_FEATURE_601_INSTR 0x20000000 /* 601 chip, Old POWER ISA. */
-#define PPC_FEATURE_HAS_ALTIVEC 0x10000000 /* SIMD/Vector Unit. */
-#define PPC_FEATURE_HAS_FPU 0x08000000 /* Floating Point Unit. */
-#define PPC_FEATURE_HAS_MMU 0x04000000 /* Memory Management Unit. */
-#define PPC_FEATURE_HAS_4xxMAC 0x02000000 /* 4xx Multiply Accumulator. */
-#define PPC_FEATURE_UNIFIED_CACHE 0x01000000 /* Unified I/D cache. */
-#define PPC_FEATURE_HAS_SPE 0x00800000 /* Signal Processing ext. */
-#define PPC_FEATURE_HAS_EFP_SINGLE 0x00400000 /* SPE Float. */
-#define PPC_FEATURE_HAS_EFP_DOUBLE 0x00200000 /* SPE Double. */
-#define PPC_FEATURE_NO_TB 0x00100000 /* 601/403gx have no timebase */
-#define PPC_FEATURE_POWER4 0x00080000 /* POWER4 ISA 2.00 */
-#define PPC_FEATURE_POWER5 0x00040000 /* POWER5 ISA 2.02 */
-#define PPC_FEATURE_POWER5_PLUS 0x00020000 /* POWER5+ ISA 2.03 */
-#define PPC_FEATURE_CELL_BE 0x00010000 /* CELL Broadband Engine */
-#define PPC_FEATURE_BOOKE 0x00008000 /* ISA Category Embedded */
-#define PPC_FEATURE_SMT 0x00004000 /* Simultaneous
- Multi-Threading */
-#define PPC_FEATURE_ICACHE_SNOOP 0x00002000
-#define PPC_FEATURE_ARCH_2_05 0x00001000 /* ISA 2.05 */
-#define PPC_FEATURE_PA6T 0x00000800 /* PA Semi 6T Core */
-#define PPC_FEATURE_HAS_DFP 0x00000400 /* Decimal FP Unit */
-#define PPC_FEATURE_POWER6_EXT 0x00000200 /* P6 + mffgpr/mftgpr */
-#define PPC_FEATURE_ARCH_2_06 0x00000100 /* ISA 2.06 */
-#define PPC_FEATURE_HAS_VSX 0x00000080 /* P7 Vector Extension. */
-#define PPC_FEATURE_PSERIES_PERFMON_COMPAT 0x00000040
-/* Reserved by the kernel. 0x00000004 Do not use. */
-#define PPC_FEATURE_TRUE_LE 0x00000002
-#define PPC_FEATURE_PPC_LE 0x00000001
-
-/* Feature definitions in AT_HWCAP2. */
-#define PPC_FEATURE2_ARCH_2_07 0x80000000 /* ISA 2.07 */
-#define PPC_FEATURE2_HAS_HTM 0x40000000 /* Hardware Transactional
- Memory */
-#define PPC_FEATURE2_HAS_DSCR 0x20000000 /* Data Stream Control
- Register */
-#define PPC_FEATURE2_HAS_EBB 0x10000000 /* Event Base Branching */
-#define PPC_FEATURE2_HAS_ISEL 0x08000000 /* Integer Select */
-#define PPC_FEATURE2_HAS_TAR 0x04000000 /* Target Address Register */
-#define PPC_FEATURE2_HAS_VEC_CRYPTO 0x02000000 /* Target supports vector
- instruction. */
-#define PPC_FEATURE2_HTM_NOSC 0x01000000 /* Kernel aborts transaction
- when a syscall is made. */
-#define PPC_FEATURE2_ARCH_3_00 0x00800000 /* ISA 3.0 */
-#define PPC_FEATURE2_HAS_IEEE128 0x00400000 /* VSX IEEE Binary Float
- 128-bit */
-#define PPC_FEATURE2_DARN 0x00200000 /* darn instruction. */
-#define PPC_FEATURE2_SCV 0x00100000 /* scv syscall. */
-#define PPC_FEATURE2_HTM_NO_SUSPEND 0x00080000 /* TM without suspended
- state. */
-#define PPC_FEATURE2_ARCH_3_1 0x00040000 /* ISA 3.1. */
-#define PPC_FEATURE2_MMA 0x00020000 /* Matrix-Multiply Assist. */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/ioctl-types.h
@@ -1,77 +0,0 @@
-/* Structure types for pre-termios terminal ioctls. Linux/powerpc version.
- Copyright (C) 2014-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IOCTL_H
-# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
-#endif
-
-/* Get definition of constants for use with `ioctl'. */
-#include <asm/ioctls.h>
-
-
-struct winsize
- {
- unsigned short int ws_row;
- unsigned short int ws_col;
- unsigned short int ws_xpixel;
- unsigned short int ws_ypixel;
- };
-
-#define NCC 10
-struct termio
- {
- unsigned short int c_iflag; /* input mode flags */
- unsigned short int c_oflag; /* output mode flags */
- unsigned short int c_cflag; /* control mode flags */
- unsigned short int c_lflag; /* local mode flags */
- unsigned char c_line; /* line discipline */
- unsigned char c_cc[NCC]; /* control characters */
-};
-
-/* modem lines */
-#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
-
-/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
-
-/* line disciplines */
-#define N_TTY 0
-#define N_SLIP 1
-#define N_MOUSE 2
-#define N_PPP 3
-#define N_STRIP 4
-#define N_AX25 5
-#define N_X25 6 /* X.25 async */
-#define N_6PACK 7
-#define N_MASC 8 /* Mobitex module */
-#define N_R3964 9 /* Simatic R3964 module */
-#define N_PROFIBUS_FDL 10 /* Profibus */
-#define N_IRDA 11 /* Linux IR */
-#define N_SMSBLOCK 12 /* SMS block mode */
-#define N_HDLC 13 /* synchronous HDLC */
-#define N_SYNC_PPP 14 /* synchronous PPP */
-#define N_HCI 15 /* Bluetooth HCI UART */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/ipc-perm.h
@@ -1,36 +0,0 @@
-/* struct ipc_perm definition. Linux/powerpc version.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IPC_H
-# error "Never use <bits/ipc-perm.h> directly; include <sys/ipc.h> instead."
-#endif
-
-/* Data structure used to pass permission information to IPC operations. */
-struct ipc_perm
- {
- __key_t __key; /* Key. */
- __uid_t uid; /* Owner's user ID. */
- __gid_t gid; /* Owner's group ID. */
- __uid_t cuid; /* Creator's user ID. */
- __gid_t cgid; /* Creator's group ID. */
- __mode_t mode; /* Read/write permission. */
- __uint32_t __seq; /* Sequence number. */
- __uint32_t __pad1;
- __uint64_t __glibc_reserved1;
- __uint64_t __glibc_reserved2;
- };
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/iscanonical.h
@@ -1,58 +0,0 @@
-/* Define iscanonical macro. ldbl-128ibm version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."
-#endif
-
-#if defined (__NO_LONG_DOUBLE_MATH) || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-# define iscanonical(x) ((void) (__typeof (x)) (x), 1)
-#else
-extern int __iscanonicall (long double __x)
- __THROW __attribute__ ((__const__));
-# define __iscanonicalf(x) ((void) (__typeof (x)) (x), 1)
-# define __iscanonical(x) ((void) (__typeof (x)) (x), 1)
-# if __HAVE_DISTINCT_FLOAT128
-# define __iscanonicalf128(x) ((void) (__typeof (x)) (x), 1)
-# endif
-
-/* Return nonzero value if X is canonical. In IEEE interchange binary
- formats, all values are canonical, but the argument must still be
- converted to its semantic type for any exceptions arising from the
- conversion, before being discarded; in IBM long double, there are
- encodings that are not consistently handled as corresponding to any
- particular value of the type, and we return 0 for those. */
-# ifndef __cplusplus
-# define iscanonical(x) __MATH_TG ((x), __iscanonical, (x))
-# else
-/* In C++ mode, __MATH_TG cannot be used, because it relies on
- __builtin_types_compatible_p, which is a C-only builtin. On the
- other hand, overloading provides the means to distinguish between
- the floating-point types. The overloading resolution will match
- the correct parameter (regardless of type qualifiers (i.e.: const
- and volatile)). */
-extern "C++" {
-inline int iscanonical (float __val) { return __iscanonicalf (__val); }
-inline int iscanonical (double __val) { return __iscanonical (__val); }
-inline int iscanonical (long double __val) { return __iscanonicall (__val); }
-# if __HAVE_DISTINCT_FLOAT128
-inline int iscanonical (_Float128 __val) { return __iscanonicalf128 (__val); }
-# endif
-}
-# endif /* __cplusplus */
-#endif /* __NO_LONG_DOUBLE_MATH */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/link.h
@@ -1,156 +0,0 @@
-/* Machine-specific declarations for dynamic linker interface. PowerPC version
- Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-# error "Never include <bits/link.h> directly; use <link.h> instead."
-#endif
-
-
-#if __ELF_NATIVE_CLASS == 32
-
-/* Registers for entry into PLT on PPC32. */
-typedef struct La_ppc32_regs
-{
- uint32_t lr_reg[8];
- double lr_fp[8];
- uint32_t lr_vreg[12][4];
- uint32_t lr_r1;
- uint32_t lr_lr;
-} La_ppc32_regs;
-
-/* Return values for calls from PLT on PPC32. */
-typedef struct La_ppc32_retval
-{
- uint32_t lrv_r3;
- uint32_t lrv_r4;
- double lrv_fp[8];
- uint32_t lrv_v2[4];
-} La_ppc32_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf32_Addr la_ppc32_gnu_pltenter (Elf32_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_ppc32_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_ppc32_gnu_pltexit (Elf32_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_ppc32_regs *__inregs,
- La_ppc32_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
-
-#elif __ELF_NATIVE_CLASS == 64
-# if _CALL_ELF != 2
-
-/* Registers for entry into PLT on PPC64. */
-typedef struct La_ppc64_regs
-{
- uint64_t lr_reg[8];
- double lr_fp[13];
- uint32_t __padding;
- uint32_t lr_vrsave;
- uint32_t lr_vreg[12][4];
- uint64_t lr_r1;
- uint64_t lr_lr;
-} La_ppc64_regs;
-
-/* Return values for calls from PLT on PPC64. */
-typedef struct La_ppc64_retval
-{
- uint64_t lrv_r3;
- uint64_t lrv_r4;
- double lrv_fp[4]; /* f1-f4, float - complex long double. */
- uint32_t lrv_v2[4]; /* v2. */
-} La_ppc64_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf64_Addr la_ppc64_gnu_pltenter (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_ppc64_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_ppc64_gnu_pltexit (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_ppc64_regs *__inregs,
- La_ppc64_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
-
-# else
-
-/* Registers for entry into PLT on PPC64 in the ELFv2 ABI. */
-typedef struct La_ppc64v2_regs
-{
- uint64_t lr_reg[8];
- double lr_fp[13];
- uint32_t __padding;
- uint32_t lr_vrsave;
- uint32_t lr_vreg[12][4] __attribute__ ((aligned (16)));
- uint64_t lr_r1;
- uint64_t lr_lr;
-} La_ppc64v2_regs;
-
-/* Return values for calls from PLT on PPC64 in the ELFv2 ABI. */
-typedef struct La_ppc64v2_retval
-{
- uint64_t lrv_r3;
- uint64_t lrv_r4;
- double lrv_fp[10];
- uint32_t lrv_vreg[8][4] __attribute__ ((aligned (16)));
-} La_ppc64v2_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf64_Addr la_ppc64v2_gnu_pltenter (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_ppc64v2_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_ppc64v2_gnu_pltexit (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_ppc64v2_regs *__inregs,
- La_ppc64v2_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
-
-# endif
-#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/mman.h
@@ -1,51 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/PowerPC version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* The following definitions basically come from the kernel headers.
- But the kernel header is not namespace clean. */
-
-#define PROT_SAO 0x10 /* Strong Access Ordering. */
-
-/* These are Linux-specific. */
-#define MAP_GROWSDOWN 0x00100 /* Stack-like segment. */
-#define MAP_DENYWRITE 0x00800 /* ETXTBSY */
-#define MAP_EXECUTABLE 0x01000 /* Mark it as an executable. */
-#define MAP_LOCKED 0x00080 /* Lock the mapping. */
-#define MAP_NORESERVE 0x00040 /* Don't check for reservations. */
-#define MAP_POPULATE 0x08000 /* Populate (prefault) pagetables. */
-#define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
-#define MAP_STACK 0x20000 /* Allocation is for a stack. */
-#define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
-#define MAP_SYNC 0x80000 /* Perform synchronous page
- faults for the mapping. */
-#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
- underlying mapping. */
-
-/* Flags for `mlockall'. */
-#define MCL_CURRENT 0x2000 /* Lock all currently mapped pages. */
-#define MCL_FUTURE 0x4000 /* Lock all additions to address
- space. */
-#define MCL_ONFAULT 0x8000 /* Lock all pages that are
- faulted in. */
-
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/procfs.h
@@ -1,49 +0,0 @@
-/* Types for registers for sys/procfs.h. PowerPC version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
-#endif
-
-#include <signal.h>
-#include <sys/ucontext.h>
-
-/* These definitions are normally provided by ucontext.h via
- asm/sigcontext.h, asm/ptrace.h, and asm/elf.h. Otherwise we define
- them here. */
-#if !defined __PPC64_ELF_H && !defined _ASM_POWERPC_ELF_H
-#define ELF_NGREG 48 /* includes nip, msr, lr, etc. */
-#define ELF_NFPREG 33 /* includes fpscr */
-#if __WORDSIZE == 32
-# define ELF_NVRREG 33 /* includes vscr */
-#else
-# define ELF_NVRREG 34 /* includes vscr */
-#endif
-
-typedef unsigned long elf_greg_t;
-typedef elf_greg_t elf_gregset_t[ELF_NGREG];
-
-typedef double elf_fpreg_t;
-typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
-
-/* Altivec registers */
-typedef struct {
- unsigned int u[4];
-} __attribute__ ((__aligned__ (16))) elf_vrreg_t;
-typedef elf_vrreg_t elf_vrregset_t[ELF_NVRREG];
-#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/pthread_stack_min.h
@@ -1,21 +0,0 @@
-/* Definition of PTHREAD_STACK_MIN. Linux/PPC version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; see the file COPYING.LIB. If
- not, see <https://www.gnu.org/licenses/>. */
-
-/* Minimum size for a thread. At least two pages for systems with 64k
- pages. */
-#define PTHREAD_STACK_MIN 131072
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/rseq.h
@@ -1,37 +0,0 @@
-/* Restartable Sequences Linux powerpc architecture header.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RSEQ_H
-# error "Never use <bits/rseq.h> directly; include <sys/rseq.h> instead."
-#endif
-
-/* RSEQ_SIG is a signature required before each abort handler code.
-
- It is a 32-bit value that maps to actual architecture code compiled
- into applications and libraries. It needs to be defined for each
- architecture. When choosing this value, it needs to be taken into
- account that generating invalid instructions may have ill effects on
- tools like objdump, and may also have impact on the CPU speculative
- execution efficiency in some cases.
-
- RSEQ_SIG uses the following trap instruction:
-
- powerpc-be: 0f e5 00 0b twui r5,11
- powerpc64-le: 0b 00 e5 0f twui r5,11
- powerpc64-be: 0f e5 00 0b twui r5,11 */
-
-#define RSEQ_SIG 0x0fe5000b
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/setjmp.h
@@ -1,50 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Define the machine-dependent type `jmp_buf'. PowerPC version. */
-#ifndef _BITS_SETJMP_H
-#define _BITS_SETJMP_H 1
-
-#if !defined _SETJMP_H && !defined _PTHREAD_H
-# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
-#endif
-
-/* The previous bits/setjmp.h had __jmp_buf defined as a structure.
- We use an array of 'long int' instead, to make writing the
- assembler easier. Naturally, user code should not depend on
- either representation. */
-
-#include <bits/wordsize.h>
-
-/* The current powerpc 32-bit Altivec ABI specifies for SVR4 ABI and EABI
- the vrsave must be at byte 248 & v20 at byte 256. So we must pad this
- correctly on 32 bit. It also insists that vecregs are only guaranteed
- 4 byte alignment so we need to use vperm in the setjmp/longjmp routines.
- We have to version the code because members like int __mask_was_saved
- in the jmp_buf will move as jmp_buf is now larger than 248 bytes. We
- cannot keep the altivec jmp_buf backward compatible with the jmp_buf. */
-#ifndef _ASM
-# if __WORDSIZE == 64
-typedef long int __jmp_buf[64] __attribute__ ((__aligned__ (16)));
-# else
-/* The alignment is not essential, i.e.the buffer can be copied to a 4 byte
- aligned buffer as per the ABI it is just added for performance reasons. */
-typedef long int __jmp_buf[64 + (12 * 4)] __attribute__ ((__aligned__ (16)));
-# endif
-#endif
-
-#endif /* bits/setjmp.h */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/sigstack.h
@@ -1,37 +0,0 @@
-/* sigstack, sigaltstack definitions.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGSTACK_H
-#define _BITS_SIGSTACK_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never include this file directly. Use <signal.h> instead"
-#endif
-
-#ifdef __powerpc64__
-#define MINSIGSTKSZ 8192
-#define SIGSTKSZ 32768
-#else
-/* Minimum stack size for a signal handler. */
-#define MINSIGSTKSZ 4096
-
-/* System default stack size. */
-#define SIGSTKSZ 16384
-#endif
-
-#endif /* bits/sigstack.h */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/socket-constants.h
@@ -1,70 +0,0 @@
-/* Socket constants which vary among Linux architectures. Version for POWER.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
-#endif
-
-#define SOL_SOCKET 1
-#define SO_ACCEPTCONN 30
-#define SO_BROADCAST 6
-#define SO_DONTROUTE 5
-#define SO_ERROR 4
-#define SO_KEEPALIVE 9
-#define SO_LINGER 13
-#define SO_OOBINLINE 10
-#define SO_RCVBUF 8
-#define SO_RCVLOWAT 16
-#define SO_REUSEADDR 2
-#define SO_SNDBUF 7
-#define SO_SNDLOWAT 17
-#define SO_TYPE 3
-
-#if __TIMESIZE == 64
-# define SO_RCVTIMEO 18
-# define SO_SNDTIMEO 19
-# define SO_TIMESTAMP 29
-# define SO_TIMESTAMPNS 35
-# define SO_TIMESTAMPING 37
-#else
-# define SO_RCVTIMEO_OLD 18
-# define SO_SNDTIMEO_OLD 19
-# define SO_RCVTIMEO_NEW 66
-# define SO_SNDTIMEO_NEW 67
-
-# 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
-
-# ifdef __USE_TIME64_REDIRECTS
-# define SO_RCVTIMEO SO_RCVTIMEO_NEW
-# define SO_SNDTIMEO SO_SNDTIMEO_NEW
-# define SO_TIMESTAMP SO_TIMESTAMP_NEW
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_NEW
-# define SO_TIMESTAMPING SO_TIMESTAMPING_NEW
-# else
-# define SO_RCVTIMEO SO_RCVTIMEO_OLD
-# define SO_SNDTIMEO SO_SNDTIMEO_OLD
-# define SO_TIMESTAMP SO_TIMESTAMP_OLD
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
-# define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
-# endif
-#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/struct_mutex.h
@@ -1,63 +0,0 @@
-/* PowerPC internal mutex struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _THREAD_MUTEX_INTERNAL_H
-#define _THREAD_MUTEX_INTERNAL_H 1
-
-struct __pthread_mutex_s
-{
- int __lock;
- unsigned int __count;
- int __owner;
-#if __WORDSIZE == 64
- unsigned int __nusers;
-#endif
- /* KIND must stay at this position in the structure to maintain
- binary compatibility with static initializers. */
- int __kind;
-#if __WORDSIZE == 64
- short __spins;
- short __elision;
- __pthread_list_t __list;
-# define __PTHREAD_MUTEX_HAVE_PREV 1
-#else
- unsigned int __nusers;
- __extension__ union
- {
- struct
- {
- short __espins;
- short __elision;
-# define __spins __elision_data.__espins
-# define __elision __elision_data.__elision
- } __elision_data;
- __pthread_slist_t __list;
- };
-# define __PTHREAD_MUTEX_HAVE_PREV 0
-#endif
-};
-
-#if __WORDSIZE == 64
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, 0, __kind, 0, 0, { 0, 0 }
-#else
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, __kind, 0, { { 0, 0 } }
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/struct_rwlock.h
@@ -1,61 +0,0 @@
-/* PowerPC internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#if __WORDSIZE == 64
- int __cur_writer;
- int __shared;
- unsigned char __rwelision;
- unsigned char __pad1[7];
- unsigned long int __pad2;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned int __flags;
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, {0, 0, 0, 0, 0, 0, 0 }
-#else
- unsigned char __rwelision;
- unsigned char __pad2;
- unsigned char __shared;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- int __cur_writer;
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-#endif
-};
-
-#if __WORDSIZE == 64
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, __flags
-#else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, 0, __flags, 0
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/struct_stat.h
@@ -1,231 +0,0 @@
-/* Definition for struct stat.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
-#endif
-
-#ifndef _BITS_STRUCT_STAT_H
-#define _BITS_STRUCT_STAT_H 1
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32
-struct stat
- {
-# ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-# else
- __dev_t st_dev; /* Device. */
-# ifndef __USE_FILE_OFFSET64
- unsigned short int __pad1;
- __ino_t st_ino; /* File serial number. */
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned short int __pad2;
-# ifndef __USE_FILE_OFFSET64
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
-# ifndef __USE_FILE_OFFSET64
- __blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
-# else
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# endif
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
-# endif /* __USE_TIME64_REDIRECTS */
- };
-
-# ifdef __USE_LARGEFILE64
-struct stat64
- {
-# ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-# else
- __dev_t st_dev; /* Device. */
- __ino64_t st_ino; /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned short int __pad2;
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
-# endif /* __USE_TIME64_REDIRECTS */
- };
-# endif /* __USE_LARGEFILE64 */
-
-#else /* __WORDSIZE == 32 */
-
-struct stat
- {
- __dev_t st_dev; /* Device. */
-# ifndef __USE_FILE_OFFSET64
- __ino_t st_ino; /* File serial number. */
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
- __nlink_t st_nlink; /* Link count. */
- __mode_t st_mode; /* File mode. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- int __pad2;
- __dev_t st_rdev; /* Device number, if device. */
-# ifndef __USE_FILE_OFFSET64
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
-# ifndef __USE_FILE_OFFSET64
- __blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
-# else
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# endif
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
- unsigned long int __glibc_reserved6;
- };
-
-# ifdef __USE_LARGEFILE64
-struct stat64
- {
- __dev_t st_dev; /* Device. */
- __ino64_t st_ino; /* File serial number. */
- __nlink_t st_nlink; /* Link count. */
- __mode_t st_mode; /* File mode. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- int __pad2;
- __dev_t st_rdev; /* Device number, if device. */
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
- unsigned long int __glibc_reserved6;
- };
-# endif /* __USE_LARGEFILE64 */
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-#endif /* _BITS_STRUCT_STAT_H */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/termios-baud.h
@@ -1,45 +0,0 @@
-/* termios baud rate selection definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."
-#endif
-
-#ifdef __USE_MISC
-# define CBAUD 0000377
-# define CBAUDEX 0000020
-# define CMSPAR 010000000000 /* mark or space (stick) parity */
-# define CRTSCTS 020000000000 /* flow control */
-#endif
-
-#define B57600 00020
-#define B115200 00021
-#define B230400 00022
-#define B460800 00023
-#define B500000 00024
-#define B576000 00025
-#define B921600 00026
-#define B1000000 00027
-#define B1152000 00030
-#define B1500000 00031
-#define B2000000 00032
-#define B2500000 00033
-#define B3000000 00034
-#define B3500000 00035
-#define B4000000 00036
-#define __MAX_BAUD B4000000
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/termios-c_cc.h
@@ -1,41 +0,0 @@
-/* termios c_cc symbolic constant definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
-#endif
-
-/* c_cc characters */
-#define VINTR 0
-#define VQUIT 1
-#define VERASE 2
-#define VKILL 3
-#define VEOF 4
-#define VMIN 5
-#define VEOL 6
-#define VTIME 7
-#define VEOL2 8
-#define VSWTC 9
-
-#define VWERASE 10
-#define VREPRINT 11
-#define VSUSP 12
-#define VSTART 13
-#define VSTOP 14
-#define VLNEXT 15
-#define VDISCARD 16
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/termios-c_cflag.h
@@ -1,39 +0,0 @@
-/* termios control mode definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cflag.h> directly; use <termios.h> instead."
-#endif
-
-#define CSIZE 00001400
-#define CS5 00000000
-#define CS6 00000400
-#define CS7 00001000
-#define CS8 00001400
-
-#define CSTOPB 00002000
-#define CREAD 00004000
-#define PARENB 00010000
-#define PARODD 00020000
-#define HUPCL 00040000
-
-#define CLOCAL 00100000
-
-#ifdef __USE_MISC
-# define ADDRB 04000000000
-#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/termios-c_iflag.h
@@ -1,38 +0,0 @@
-/* termios input mode definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_iflags.h> directly; use <termios.h> instead."
-#endif
-
-/* c_iflag bits */
-#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 IXON 0001000
-#define IXOFF 0002000
-#define IXANY 0004000
-#define IUCLC 0010000
-#define IMAXBEL 0020000
-#define IUTF8 0040000
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/termios-c_lflag.h
@@ -1,45 +0,0 @@
-/* termios local mode definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_lflag bits */
-#define ISIG 0x00000080
-#define ICANON 0x00000100
-#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
-# define XCASE 0x00004000
-#endif
-#define ECHO 0x00000008
-#define ECHOE 0x00000002
-#define ECHOK 0x00000004
-#define ECHONL 0x00000010
-#define NOFLSH 0x80000000
-#define TOSTOP 0x00400000
-#ifdef __USE_MISC
-# define ECHOCTL 0x00000040
-# define ECHOPRT 0x00000020
-# define ECHOKE 0x00000001
-# define FLUSHO 0x00800000
-# define PENDIN 0x20000000
-#endif
-#define IEXTEN 0x00000400
-#ifdef __USE_MISC
-# define EXTPROC 0x10000000
-#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/termios-c_oflag.h
@@ -1,65 +0,0 @@
-/* termios output mode definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_oflag bits */
-#define OPOST 0000001
-#define ONLCR 0000002
-#define OLCUC 0000004
-
-#define OCRNL 0000010
-#define ONOCR 0000020
-#define ONLRET 0000040
-
-#define OFILL 00000100
-#define OFDEL 00000200
-#if defined __USE_MISC || defined __USE_XOPEN
-# define NLDLY 00001400
-# define NL0 00000000
-# define NL1 00000400
-# if defined __USE_MISC
-# define NL2 00001000
-# define NL3 00001400
-# endif
-# define TABDLY 00006000
-# define TAB0 00000000
-# define TAB1 00002000
-# define TAB2 00004000
-# define TAB3 00006000
-# define CRDLY 00030000
-# define CR0 00000000
-# define CR1 00010000
-# define CR2 00020000
-# define CR3 00030000
-# define FFDLY 00040000
-# define FF0 00000000
-# define FF1 00040000
-# define BSDLY 00100000
-# define BS0 00000000
-# define BS1 00100000
-#endif
-#define VTDLY 00200000
-#define VT0 00000000
-#define VT1 00200000
-
-#ifdef __USE_MISC
-# define XTABS 00006000
-#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/termios-misc.h
@@ -1,72 +0,0 @@
-/* termios baud platform specific definitions. Linux/powerpc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-misc.h> directly; use <termios.h> instead."
-#endif
-
-#ifdef __USE_MISC
-
-struct sgttyb {
- char sg_ispeed;
- char sg_ospeed;
- char sg_erase;
- char sg_kill;
- short sg_flags;
-};
-
-struct tchars {
- char t_intrc;
- char t_quitc;
- char t_startc;
- char t_stopc;
- char t_eofc;
- char t_brkc;
-};
-
-struct ltchars {
- char t_suspc;
- char t_dsuspc;
- char t_rprntc;
- char t_flushc;
- char t_werasc;
- char t_lnextc;
-};
-
-/* Used for packet mode */
-#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
-
-/* c_cc characters */
-#define _VINTR 0
-#define _VQUIT 1
-#define _VERASE 2
-#define _VKILL 3
-#define _VEOF 4
-#define _VMIN 5
-#define _VEOL 6
-#define _VTIME 7
-#define _VEOL2 8
-#define _VSWTC 9
-
-#endif /* __USE_MISC */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/timesize.h
@@ -1,22 +0,0 @@
-/* Bit size of the time_t type at glibc build time, Linux/PowerPC.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#include <bits/wordsize.h>
-
-/* Size in bits of the 'time_t' type of the default ABI. */
-#define __TIMESIZE __WORDSIZE
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/typesizes.h
@@ -1,95 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. PowerPC version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __UWORD_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#ifdef __LP64__
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for rlim_t and rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-
-/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
-# define __STATFS_MATCHES_STATFS64 1
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-
-# define __STATFS_MATCHES_STATFS64 0
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/wordsize.h
@@ -1,10 +0,0 @@
-/* Determine the wordsize from the preprocessor defines. */
-
-#if defined __powerpc64__
-# define __WORDSIZE 64
-#else
-# define __WORDSIZE 32
-# define __WORDSIZE32_SIZE_ULONG 0
-# define __WORDSIZE32_PTRDIFF_LONG 0
-#endif
-#define __WORDSIZE_TIME64_COMPAT32 1
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/gnu/lib-names.h
@@ -1,19 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32
-# include <gnu/lib-names-32.h>
-#endif
-#if __WORDSIZE == 64 && _CALL_ELF != 2
-# include <gnu/lib-names-64-v1.h>
-#endif
-#if __WORDSIZE == 64 && _CALL_ELF == 2
-# include <gnu/lib-names-64-v2.h>
-#endif
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/gnu/stubs.h
@@ -1,15 +0,0 @@
-/* This file is automatically generated.
- This file selects the right generated file of `__stub_FUNCTION' macros
- based on the architecture being compiled for. */
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32
-# include <gnu/stubs-32.h>
-#endif
-#if __WORDSIZE == 64 && _CALL_ELF != 2
-# include <gnu/stubs-64-v1.h>
-#endif
-#if __WORDSIZE == 64 && _CALL_ELF == 2
-# include <gnu/stubs-64-v2.h>
-#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/sys/ptrace.h
@@ -1,289 +0,0 @@
-/* `ptrace' debugger support interface. Linux/PowerPC version.
- Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PTRACE_H
-#define _SYS_PTRACE_H 1
-
-#include <features.h>
-#include <bits/types.h>
-
-__BEGIN_DECLS
-
-#if defined _LINUX_PTRACE_H || defined _ASM_POWERPC_PTRACE_H
-/* Do not let Linux headers macros interfere with enum __ptrace_request. */
-# undef PTRACE_ATTACH
-# undef PTRACE_CONT
-# undef PTRACE_DETACH
-# undef PTRACE_GET_DEBUGREG
-# undef PTRACE_GETEVENTMSG
-# undef PTRACE_GETEVRREGS
-# undef PTRACE_GETFPREGS
-# undef PTRACE_GETREGS
-# undef PTRACE_GETREGS64
-# undef PTRACE_GETREGSET
-# undef PTRACE_GET_RSEQ_CONFIGURATION
-# undef PTRACE_GETSIGINFO
-# undef PTRACE_GETSIGMASK
-# undef PTRACE_GET_SYSCALL_INFO
-# undef PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-# undef PTRACE_GETVRREGS
-# undef PTRACE_GETVSRREGS
-# undef PTRACE_INTERRUPT
-# undef PTRACE_KILL
-# undef PTRACE_LISTEN
-# undef PTRACE_PEEKDATA
-# undef PTRACE_PEEKSIGINFO
-# undef PTRACE_PEEKTEXT
-# undef PTRACE_POKEDATA
-# undef PTRACE_POKETEXT
-# undef PTRACE_SECCOMP_GET_FILTER
-# undef PTRACE_SECCOMP_GET_METADATA
-# undef PTRACE_SEIZE
-# undef PTRACE_SET_DEBUGREG
-# undef PTRACE_SETEVRREGS
-# undef PTRACE_SETFPREGS
-# undef PTRACE_SETOPTIONS
-# undef PTRACE_SETREGS
-# undef PTRACE_SETREGS64
-# undef PTRACE_SETREGSET
-# undef PTRACE_SETSIGINFO
-# undef PTRACE_SETSIGMASK
-# undef PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-# undef PTRACE_SETVRREGS
-# undef PTRACE_SETVSRREGS
-# undef PTRACE_SINGLEBLOCK
-# undef PTRACE_SINGLESTEP
-# undef PTRACE_SYSCALL
-# undef PTRACE_SYSCALL_INFO_NONE
-# undef PTRACE_SYSCALL_INFO_ENTRY
-# undef PTRACE_SYSCALL_INFO_EXIT
-# undef PTRACE_SYSCALL_INFO_SECCOMP
-# undef PTRACE_SYSEMU
-# undef PTRACE_SYSEMU_SINGLESTEP
-# undef PTRACE_TRACEME
-#endif
-
-/* Type of the REQUEST argument to `ptrace.' */
-enum __ptrace_request
-{
- /* Indicate that the process making this request should be traced.
- All signals received by this process can be intercepted by its
- parent, and its parent can use the other `ptrace' requests. */
- PTRACE_TRACEME = 0,
-#define PT_TRACE_ME PTRACE_TRACEME
-
- /* Return the word in the process's text space at address ADDR. */
- PTRACE_PEEKTEXT = 1,
-#define PT_READ_I PTRACE_PEEKTEXT
-
- /* Return the word in the process's data space at address ADDR. */
- PTRACE_PEEKDATA = 2,
-#define PT_READ_D PTRACE_PEEKDATA
-
- /* Return the word in the process's user area at offset ADDR. */
- PTRACE_PEEKUSER = 3,
-#define PT_READ_U PTRACE_PEEKUSER
-
- /* Write the word DATA into the process's text space at address ADDR. */
- PTRACE_POKETEXT = 4,
-#define PT_WRITE_I PTRACE_POKETEXT
-
- /* Write the word DATA into the process's data space at address ADDR. */
- PTRACE_POKEDATA = 5,
-#define PT_WRITE_D PTRACE_POKEDATA
-
- /* Write the word DATA into the process's user area at offset ADDR. */
- PTRACE_POKEUSER = 6,
-#define PT_WRITE_U PTRACE_POKEUSER
-
- /* Continue the process. */
- PTRACE_CONT = 7,
-#define PT_CONTINUE PTRACE_CONT
-
- /* Kill the process. */
- PTRACE_KILL = 8,
-#define PT_KILL PTRACE_KILL
-
- /* Single step the process. */
- PTRACE_SINGLESTEP = 9,
-#define PT_STEP PTRACE_SINGLESTEP
-
- /* Get all general purpose registers used by a process. */
- PTRACE_GETREGS = 12,
-#define PT_GETREGS PTRACE_GETREGS
-
- /* Set all general purpose registers used by a process. */
- PTRACE_SETREGS = 13,
-#define PT_SETREGS PTRACE_SETREGS
-
- /* Get all floating point registers used by a process. */
- PTRACE_GETFPREGS = 14,
-#define PT_GETFPREGS PTRACE_GETFPREGS
-
- /* Set all floating point registers used by a process. */
- PTRACE_SETFPREGS = 15,
-#define PT_SETFPREGS PTRACE_SETFPREGS
-
- /* Attach to a process that is already running. */
- PTRACE_ATTACH = 16,
-#define PT_ATTACH PTRACE_ATTACH
-
- /* Detach from a process attached to with PTRACE_ATTACH. */
- PTRACE_DETACH = 17,
-#define PT_DETACH PTRACE_DETACH
-
- /* Get all altivec registers used by a process. */
- PTRACE_GETVRREGS = 18,
-#define PT_GETVRREGS PTRACE_GETVRREGS
-
- /* Set all altivec registers used by a process. */
- PTRACE_SETVRREGS = 19,
-#define PT_SETVRREGS PTRACE_SETVRREGS
-
- /* Get all SPE registers used by a process. */
- PTRACE_GETEVRREGS = 20,
-#define PT_GETEVRREGS PTRACE_GETEVRREGS
-
- /* Set all SPE registers used by a process. */
- PTRACE_SETEVRREGS = 21,
-#define PT_SETEVRREGS PTRACE_SETEVRREGS
-
- /* Same as PTRACE_GETREGS except a 32-bit process will obtain
- the full 64-bit registers. Implemented by 64-bit kernels only. */
- PTRACE_GETREGS64 = 22,
-#define PT_GETREGS64 PTRACE_GETREGS64
-
- /* Same as PTRACE_SETREGS except a 32-bit process will set
- the full 64-bit registers. Implemented by 64-bit kernels only. */
- PTRACE_SETREGS64 = 23,
-#define PT_SETREGS64 PTRACE_SETREGS64
-
- /* Continue and stop at the next entry to or return from syscall. */
- PTRACE_SYSCALL = 24,
-#define PT_SYSCALL PTRACE_SYSCALL
-
- /* Get a debug register of a process. */
- PTRACE_GET_DEBUGREG = 25,
-#define PT_GET_DEBUGREG PTRACE_GET_DEBUGREG
-
- /* Set a debug register of a process. */
- PTRACE_SET_DEBUGREG = 26,
-#define PT_SET_DEBUGREG PTRACE_SET_DEBUGREG
-
- /* Get the first 32 VSX registers of a process. */
- PTRACE_GETVSRREGS = 27,
-#define PT_GETVSRREGS PTRACE_GETVSRREGS
-
- /* Set the first 32 VSX registers of a process. */
- PTRACE_SETVSRREGS = 28,
-#define PT_SETVSRREGS PTRACE_SETVSRREGS
-
- /* Continue and stop at the next syscall, it will not be executed. */
- PTRACE_SYSEMU = 29,
-#define PT_SYSEMU PTRACE_SYSEMU
-
- /* Single step the process, the next syscall will not be executed. */
- PTRACE_SYSEMU_SINGLESTEP = 30,
-#define PT_SYSEMU_SINGLESTEP PTRACE_SYSEMU_SINGLESTEP
-
- /* Execute process until next taken branch. */
- PTRACE_SINGLEBLOCK = 256,
-#define PT_STEPBLOCK PTRACE_SINGLEBLOCK
-
- /* Set ptrace filter options. */
- PTRACE_SETOPTIONS = 0x4200,
-#define PT_SETOPTIONS PTRACE_SETOPTIONS
-
- /* Get last ptrace message. */
- PTRACE_GETEVENTMSG = 0x4201,
-#define PT_GETEVENTMSG PTRACE_GETEVENTMSG
-
- /* Get siginfo for process. */
- PTRACE_GETSIGINFO = 0x4202,
-#define PT_GETSIGINFO PTRACE_GETSIGINFO
-
- /* Set new siginfo for process. */
- PTRACE_SETSIGINFO = 0x4203,
-#define PT_SETSIGINFO PTRACE_SETSIGINFO
-
- /* Get register content. */
- PTRACE_GETREGSET = 0x4204,
-#define PTRACE_GETREGSET PTRACE_GETREGSET
-
- /* Set register content. */
- PTRACE_SETREGSET = 0x4205,
-#define PTRACE_SETREGSET PTRACE_SETREGSET
-
- /* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
- signal or group stop state. */
- PTRACE_SEIZE = 0x4206,
-#define PTRACE_SEIZE PTRACE_SEIZE
-
- /* Trap seized tracee. */
- PTRACE_INTERRUPT = 0x4207,
-#define PTRACE_INTERRUPT PTRACE_INTERRUPT
-
- /* Wait for next group event. */
- PTRACE_LISTEN = 0x4208,
-#define PTRACE_LISTEN PTRACE_LISTEN
-
- /* Retrieve siginfo_t structures without removing signals from a queue. */
- PTRACE_PEEKSIGINFO = 0x4209,
-#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
-
- /* Get the mask of blocked signals. */
- PTRACE_GETSIGMASK = 0x420a,
-#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
-
- /* Change the mask of blocked signals. */
- PTRACE_SETSIGMASK = 0x420b,
-#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
-
- /* Get seccomp BPF filters. */
- PTRACE_SECCOMP_GET_FILTER = 0x420c,
-#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
-
- /* Get seccomp BPF filter metadata. */
- PTRACE_SECCOMP_GET_METADATA = 0x420d,
-#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
-
- /* Get information about system call. */
- PTRACE_GET_SYSCALL_INFO = 0x420e,
-#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
-
- /* Get rseq configuration information. */
- PTRACE_GET_RSEQ_CONFIGURATION = 0x420f,
-#define PTRACE_GET_RSEQ_CONFIGURATION PTRACE_GET_RSEQ_CONFIGURATION
-
- /* Set configuration for syscall user dispatch. */
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG = 0x4210,
-#define PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-
- /* Get configuration for syscall user dispatch. */
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG = 0x4211
-#define PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-};
-
-
-#include <bits/ptrace-shared.h>
-
-__END_DECLS
-
-#endif /* _SYS_PTRACE_H */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/sys/ucontext.h
@@ -1,200 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include <features.h>
-
-#include <bits/types/sigset_t.h>
-#include <bits/types/stack_t.h>
-
-
-#ifdef __USE_MISC
-# define __ctx(fld) fld
-#else
-# define __ctx(fld) __ ## fld
-#endif
-
-struct __ctx(pt_regs);
-
-#if __WORDSIZE == 32
-
-/* Number of general registers. */
-# define __NGREG 48
-# ifdef __USE_MISC
-# define NGREG __NGREG
-# endif
-
-/* Container for all general registers. */
-typedef unsigned long gregset_t[__NGREG];
-
-/* Container for floating-point registers and status */
-typedef struct _libc_fpstate
-{
- double __ctx(fpregs)[32];
- double __ctx(fpscr);
- unsigned int _pad[2];
-} fpregset_t;
-
-/* Container for Altivec/VMX registers and status.
- Needs to be aligned on a 16-byte boundary. */
-typedef struct _libc_vrstate
-{
- unsigned int __ctx(vrregs)[32][4];
- unsigned int __ctx(vrsave);
- unsigned int _pad[2];
- unsigned int __ctx(vscr);
-} vrregset_t;
-
-/* Context to describe whole processor state. */
-typedef struct
-{
- gregset_t __ctx(gregs);
- fpregset_t __ctx(fpregs);
- vrregset_t __ctx(vrregs) __attribute__((__aligned__(16)));
-} mcontext_t;
-
-#else
-
-/* For 64-bit kernels with Altivec support, a machine context is exactly
- * a sigcontext. For older kernel (without Altivec) the sigcontext matches
- * the mcontext upto but not including the v_regs field. For kernels that
- * don't set AT_HWCAP or return AT_HWCAP without PPC_FEATURE_HAS_ALTIVEC the
- * v_regs field may not exist and should not be referenced. The v_regs field
- * can be referenced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC
- * is set in AT_HWCAP. */
-
-/* Number of general registers. */
-# define __NGREG 48 /* includes r0-r31, nip, msr, lr, etc. */
-# define __NFPREG 33 /* includes fp0-fp31 &fpscr. */
-# define __NVRREG 34 /* includes v0-v31, vscr, & vrsave in
- split vectors */
-# ifdef __USE_MISC
-# define NGREG __NGREG
-# define NFPREG __NFPREG
-# define NVRREG __NVRREG
-# endif
-
-typedef unsigned long gregset_t[__NGREG];
-typedef double fpregset_t[__NFPREG];
-
-/* Container for Altivec/VMX Vector Status and Control Register. Only 32-bits
- but can only be copied to/from a 128-bit vector register. So we allocated
- a whole quadword speedup save/restore. */
-typedef struct _libc_vscr
-{
-#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
- unsigned int __pad[3];
- unsigned int __ctx(vscr_word);
-#else
- unsigned int __ctx(vscr_word);
- unsigned int __pad[3];
-#endif
-} vscr_t;
-
-/* Container for Altivec/VMX registers and status.
- Must to be aligned on a 16-byte boundary. */
-typedef struct _libc_vrstate
-{
- unsigned int __ctx(vrregs)[32][4];
- vscr_t __ctx(vscr);
- unsigned int __ctx(vrsave);
- unsigned int __pad[3];
-} vrregset_t __attribute__((__aligned__(16)));
-
-typedef struct {
- unsigned long __glibc_reserved[4];
- int __ctx(signal);
- int __pad0;
- unsigned long __ctx(handler);
- unsigned long __ctx(oldmask);
- struct __ctx(pt_regs) *__ctx(regs);
- gregset_t __ctx(gp_regs);
- fpregset_t __ctx(fp_regs);
-/*
- * To maintain compatibility with current implementations the sigcontext is
- * extended by appending a pointer (v_regs) to a quadword type (elf_vrreg_t)
- * followed by an unstructured (vmx_reserve) field of 69 doublewords. This
- * allows the array of vector registers to be quadword aligned independent of
- * the alignment of the containing sigcontext or ucontext. It is the
- * responsibility of the code setting the sigcontext to set this pointer to
- * either NULL (if this processor does not support the VMX feature) or the
- * address of the first quadword within the allocated (vmx_reserve) area.
- *
- * The pointer (v_regs) of vector type (elf_vrreg_t) is essentially
- * an array of 34 quadword entries. The entries with
- * indexes 0-31 contain the corresponding vector registers. The entry with
- * index 32 contains the vscr as the last word (offset 12) within the
- * quadword. This allows the vscr to be stored as either a quadword (since
- * it must be copied via a vector register to/from storage) or as a word.
- * The entry with index 33 contains the vrsave as the first word (offset 0)
- * within the quadword.
- */
- vrregset_t *__ctx(v_regs);
- long __ctx(vmx_reserve)[__NVRREG+__NVRREG+1];
-} mcontext_t;
-
-#endif
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long int __ctx(uc_flags);
- struct ucontext_t *uc_link;
- stack_t uc_stack;
-#if __WORDSIZE == 32
- /*
- * These fields are set up this way to maximize source and
- * binary compatibility with code written for the old
- * ucontext_t definition, which didn't include space for the
- * registers.
- *
- * Different versions of the kernel have stored the registers on
- * signal delivery at different offsets from the ucontext struct.
- * Programs should thus use the uc_mcontext.uc_regs pointer to
- * find where the registers are actually stored. The registers
- * will be stored within the ucontext_t struct but not necessarily
- * at a fixed address. As a side-effect, this lets us achieve
- * 16-byte alignment for the register storage space if the
- * Altivec registers are to be saved, without requiring 16-byte
- * alignment on the whole ucontext_t.
- *
- * The uc_mcontext.regs field is included for source compatibility
- * with programs written against the older ucontext_t definition,
- * and its name should therefore not change. The uc_pad field
- * is for binary compatibility with programs compiled against the
- * old ucontext_t; it ensures that uc_mcontext.regs and uc_sigmask
- * are at the same offset as previously.
- */
- int __glibc_reserved1[7];
- union __ctx(uc_regs_ptr) {
- struct __ctx(pt_regs) *__ctx(regs);
- mcontext_t *__ctx(uc_regs);
- } uc_mcontext;
- sigset_t uc_sigmask;
- /* last for extensibility */
- char __ctx(uc_reg_space)[sizeof (mcontext_t) + 12];
-#else /* 64-bit */
- sigset_t uc_sigmask;
- mcontext_t uc_mcontext; /* last for extensibility */
-#endif
- } ucontext_t;
-
-#undef __ctx
-
-#endif /* sys/ucontext.h */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/sys/user.h
@@ -1,40 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_USER_H
-
-#define _SYS_USER_H 1
-#include <stddef.h>
-#include <features.h>
-
-#include <asm/ptrace.h>
-
-struct user {
- struct pt_regs regs; /* entire machine state */
- size_t u_tsize; /* text size (pages) */
- size_t u_dsize; /* data size (pages) */
- size_t u_ssize; /* stack size (pages) */
- unsigned long start_code; /* text starting address */
- unsigned long start_data; /* data starting address */
- unsigned long start_stack; /* stack starting address */
- long int signal; /* signal causing core dump */
- struct regs * u_ar0; /* help gdb find registers */
- unsigned long magic; /* identifies a core file */
- char u_comm[32]; /* user command name */
-};
-
-#endif /* sys/user.h */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/fpu_control.h
@@ -1,114 +0,0 @@
-/* FPU control word definitions. PowerPC version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FPU_CONTROL_H
-#define _FPU_CONTROL_H
-
-#if defined __SPE__ || (defined __NO_FPRS__ && !defined _SOFT_FLOAT)
-# error "SPE/e500 is no longer supported"
-#endif
-
-#ifdef _SOFT_FLOAT
-
-# define _FPU_RESERVED 0xffffffff
-# define _FPU_DEFAULT 0x00000000 /* Default value. */
-typedef unsigned int fpu_control_t;
-# define _FPU_GETCW(cw) (cw) = 0
-# define _FPU_SETCW(cw) (void) (cw)
-extern fpu_control_t __fpu_control;
-
-#else /* PowerPC 6xx floating-point. */
-
-/* rounding control */
-# define _FPU_RC_NEAREST 0x00 /* RECOMMENDED */
-# define _FPU_RC_DOWN 0x03
-# define _FPU_RC_UP 0x02
-# define _FPU_RC_ZERO 0x01
-
-# define _FPU_MASK_RC (_FPU_RC_NEAREST|_FPU_RC_DOWN|_FPU_RC_UP|_FPU_RC_ZERO)
-
-# define _FPU_MASK_NI 0x04 /* non-ieee mode */
-
-/* masking of interrupts */
-# define _FPU_MASK_ZM 0x10 /* zero divide */
-# define _FPU_MASK_OM 0x40 /* overflow */
-# define _FPU_MASK_UM 0x20 /* underflow */
-# define _FPU_MASK_XM 0x08 /* inexact */
-# define _FPU_MASK_IM 0x80 /* invalid operation */
-
-# define _FPU_RESERVED 0xffffff00 /* These bits are reserved are not changed. */
-
-/* The fdlibm code requires no interrupts for exceptions. */
-# define _FPU_DEFAULT 0x00000000 /* Default value. */
-
-/* IEEE: same as above, but (some) exceptions;
- we leave the 'inexact' exception off.
- */
-# define _FPU_IEEE 0x000000f0
-
-/* Type of the control word. */
-typedef unsigned int fpu_control_t;
-
-/* Macros for accessing the hardware control word. */
-# define _FPU_GETCW(cw) \
- ({union { double __d; unsigned long long __ll; } __u; \
- __asm__ __volatile__("mffs %0" : "=f" (__u.__d)); \
- (cw) = (fpu_control_t) __u.__ll; \
- (fpu_control_t) __u.__ll; \
- })
-
-# define _FPU_GET_RC_ISA300() \
- ({union { double __d; unsigned long long __ll; } __u; \
- __asm__ __volatile__( \
- ".machine push; .machine \"power9\"; mffsl %0; .machine pop" \
- : "=f" (__u.__d)); \
- (fpu_control_t) (__u.__ll & _FPU_MASK_RC); \
- })
-
-# ifdef _ARCH_PWR9
-# define _FPU_GET_RC() _FPU_GET_RC_ISA300()
-# elif defined __BUILTIN_CPU_SUPPORTS__
-# define _FPU_GET_RC() \
- ({fpu_control_t __rc; \
- __rc = __glibc_likely (__builtin_cpu_supports ("arch_3_00")) \
- ? _FPU_GET_RC_ISA300 () \
- : _FPU_GETCW (__rc) & _FPU_MASK_RC; \
- __rc; \
- })
-# else
-# define _FPU_GET_RC() \
- ({fpu_control_t __rc = _FPU_GETCW (__rc) & _FPU_MASK_RC; \
- __rc; \
- })
-# endif
-
-# define _FPU_SETCW(cw) \
- { union { double __d; unsigned long long __ll; } __u; \
- register double __fr; \
- __u.__ll = 0xfff80000LL << 32; /* This is a QNaN. */ \
- __u.__ll |= (cw) & 0xffffffffLL; \
- __fr = __u.__d; \
- __asm__ __volatile__("mtfsf 255,%0" : : "f" (__fr)); \
- }
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-#endif /* PowerPC 6xx floating-point. */
-
-#endif /* _FPU_CONTROL_H */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/ieee754.h
@@ -1,197 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-#include <bits/floatn.h>
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
-/* long double is IEEE 128 bit */
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-#endif
-
-
-#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0 || __GNUC_PREREQ (7, 0)
-/* IBM extended format for long double.
-
- Each long double is made up of two IEEE doubles. The value of the
- long double is the sum of the values of the two parts. The most
- significant part is required to be the value of the long double
- rounded to the nearest double, as specified by IEEE. For Inf
- values, the least significant part is required to be one of +0.0 or
- -0.0. No other requirements are made; so, for example, 1.0 may be
- represented as (1.0, +0.0) or (1.0, -0.0), and the low part of a
- NaN is don't-care. */
-union ibm_extended_long_double
- {
-# if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && __GNUC_PREREQ (7, 0)
- __ibm128 ld;
-# else
- long double ld;
-# endif
- union ieee754_double d[2];
- };
-#endif
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/riscv32-linux-gnu/bits/endianness.h → lib/libc/include/riscv-linux-gnu/bits/endianness.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/bits/environments.h → lib/libc/include/riscv-linux-gnu/bits/environments.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/bits/fcntl.h → lib/libc/include/riscv-linux-gnu/bits/fcntl.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/bits/fenv.h → lib/libc/include/riscv-linux-gnu/bits/fenv.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/bits/link.h → lib/libc/include/riscv-linux-gnu/bits/link.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/long-double.h → lib/libc/include/riscv-linux-gnu/bits/long-double.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/bits/procfs.h → lib/libc/include/riscv-linux-gnu/bits/procfs.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/bits/pthreadtypes-arch.h → lib/libc/include/riscv-linux-gnu/bits/pthreadtypes-arch.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/bits/rseq.h → lib/libc/include/riscv-linux-gnu/bits/rseq.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/bits/setjmp.h → lib/libc/include/riscv-linux-gnu/bits/setjmp.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/bits/sigcontext.h → lib/libc/include/riscv-linux-gnu/bits/sigcontext.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/bits/struct_rwlock.h → lib/libc/include/riscv-linux-gnu/bits/struct_rwlock.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/struct_stat.h → lib/libc/include/riscv-linux-gnu/bits/struct_stat.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/bits/time64.h → lib/libc/include/riscv-linux-gnu/bits/time64.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/bits/timesize.h → lib/libc/include/riscv-linux-gnu/bits/timesize.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/bits/wordsize.h → lib/libc/include/riscv-linux-gnu/bits/wordsize.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/gnu/lib-names-ilp32d.h → lib/libc/include/riscv-linux-gnu/gnu/lib-names-ilp32d.h
File renamed without changes
lib/libc/include/riscv64-linux-gnu/gnu/lib-names-lp64d.h → lib/libc/include/riscv-linux-gnu/gnu/lib-names-lp64d.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/gnu/lib-names.h → lib/libc/include/riscv-linux-gnu/gnu/lib-names.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/gnu/stubs-ilp32d.h → lib/libc/include/riscv-linux-gnu/gnu/stubs-ilp32d.h
File renamed without changes
lib/libc/include/riscv64-linux-gnu/gnu/stubs-lp64d.h → lib/libc/include/riscv-linux-gnu/gnu/stubs-lp64d.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/gnu/stubs.h → lib/libc/include/riscv-linux-gnu/gnu/stubs.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/sys/asm.h → lib/libc/include/riscv-linux-gnu/sys/asm.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/sys/cachectl.h → lib/libc/include/riscv-linux-gnu/sys/cachectl.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/sys/ucontext.h → lib/libc/include/riscv-linux-gnu/sys/ucontext.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/sys/user.h → lib/libc/include/riscv-linux-gnu/sys/user.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/fpu_control.h → lib/libc/include/riscv-linux-gnu/fpu_control.h
File renamed without changes
lib/libc/include/loongarch64-linux-gnu/ieee754.h → lib/libc/include/riscv-linux-gnu/ieee754.h
File renamed without changes
lib/libc/include/riscv32-linux-gnu/bits/long-double.h
@@ -1,21 +0,0 @@
-/* Properties of long double type. ldbl-128 version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* long double is distinct from double, so there is nothing to
- define here. */
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
\ No newline at end of file
lib/libc/include/riscv32-linux-gnu/bits/struct_stat.h
@@ -1,127 +0,0 @@
-/* Definition for struct stat.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
-#endif
-
-#ifndef _BITS_STRUCT_STAT_H
-#define _BITS_STRUCT_STAT_H 1
-
-#include <bits/endian.h>
-#include <bits/wordsize.h>
-
-#if defined __USE_FILE_OFFSET64
-# define __field64(type, type64, name) type64 name
-#elif __WORDSIZE == 64 || defined __INO_T_MATCHES_INO64_T
-# if defined __INO_T_MATCHES_INO64_T && !defined __OFF_T_MATCHES_OFF64_T
-# error "ino_t and off_t must both be the same type"
-# endif
-# define __field64(type, type64, name) type name
-#elif __BYTE_ORDER == __LITTLE_ENDIAN
-# define __field64(type, type64, name) \
- type name __attribute__((__aligned__ (__alignof__ (type64)))); int __##name##_pad
-#else
-# define __field64(type, type64, name) \
- int __##name##_pad __attribute__((__aligned__ (__alignof__ (type64)))); type name
-#endif
-
-struct stat
- {
- __dev_t st_dev; /* Device. */
- __field64(__ino_t, __ino64_t, st_ino); /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- __dev_t __pad1;
- __field64(__off_t, __off64_t, st_size); /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- int __pad2;
- __field64(__blkcnt_t, __blkcnt64_t, st_blocks); /* 512-byte blocks */
-#ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-#else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-#endif
- int __glibc_reserved[2];
- };
-
-#undef __field64
-
-#ifdef __USE_LARGEFILE64
-struct stat64
- {
- __dev_t st_dev; /* Device. */
- __ino64_t st_ino; /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- __dev_t __pad1;
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- int __pad2;
- __blkcnt64_t st_blocks; /* Nr. 512-byte blocks allocated. */
-#ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-#else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-#endif
- int __glibc_reserved[2];
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-#endif /* _BITS_STRUCT_STAT_H */
\ No newline at end of file
lib/libc/include/riscv32-linux-gnu/bits/timesize.h
@@ -1,20 +0,0 @@
-/* Bit size of the time_t type at glibc build time, general case.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Size in bits of the 'time_t' type of the default ABI. */
-#define __TIMESIZE 64
\ No newline at end of file
lib/libc/include/riscv32-linux-gnu/ieee754.h
@@ -1,170 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/endianness.h
@@ -1,11 +0,0 @@
-#ifndef _BITS_ENDIANNESS_H
-#define _BITS_ENDIANNESS_H 1
-
-#ifndef _BITS_ENDIAN_H
-# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
-#endif
-
-/* RISC-V is little-endian. */
-#define __BYTE_ORDER __LITTLE_ENDIAN
-
-#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/environments.h
@@ -1,81 +0,0 @@
-/* Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _UNISTD_H
-# error "Never include this file directly. Use <unistd.h> instead"
-#endif
-
-#include <bits/wordsize.h>
-
-/* This header should define the following symbols under the described
- situations. A value `1' means that the model is always supported,
- `-1' means it is never supported. Undefined means it cannot be
- statically decided.
-
- _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type
- _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type
-
- _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type
- _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type
-
- The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG,
- _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32,
- _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were
- used in previous versions of the Unix standard and are available
- only for compatibility.
-*/
-
-#if __WORDSIZE == 64
-
-/* We can never provide environments with 32-bit wide pointers. */
-# define _POSIX_V7_ILP32_OFF32 -1
-# define _POSIX_V7_ILP32_OFFBIG -1
-# define _POSIX_V6_ILP32_OFF32 -1
-# define _POSIX_V6_ILP32_OFFBIG -1
-# define _XBS5_ILP32_OFF32 -1
-# define _XBS5_ILP32_OFFBIG -1
-/* We also have no use (for now) for an environment with bigger pointers
- and offsets. */
-# define _POSIX_V7_LPBIG_OFFBIG -1
-# define _POSIX_V6_LPBIG_OFFBIG -1
-# define _XBS5_LPBIG_OFFBIG -1
-
-/* By default we have 64-bit wide `long int', pointers and `off_t'. */
-# define _POSIX_V7_LP64_OFF64 1
-# define _POSIX_V6_LP64_OFF64 1
-# define _XBS5_LP64_OFF64 1
-
-#else /* __WORDSIZE == 32 */
-
-/* RISC-V requires 64-bit off_t */
-# define _POSIX_V7_ILP32_OFF32 -1
-# define _POSIX_V6_ILP32_OFF32 -1
-# define _XBS5_ILP32_OFF32 -1
-
-# define _POSIX_V7_ILP32_OFFBIG 1
-# define _POSIX_V6_ILP32_OFFBIG 1
-# define _XBS5_ILP32_OFFBIG 1
-
-/* We can never provide environments with 64-bit wide pointers. */
-# define _POSIX_V7_LP64_OFF64 -1
-# define _POSIX_V7_LPBIG_OFFBIG -1
-# define _POSIX_V6_LP64_OFF64 -1
-# define _POSIX_V6_LPBIG_OFFBIG -1
-# define _XBS5_LP64_OFF64 -1
-# define _XBS5_LPBIG_OFFBIG -1
-
-#endif /* __WORDSIZE == 32 */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/fcntl.h
@@ -1,62 +0,0 @@
-/* O_*, F_*, FD_* bit values for Linux / RISC-V.
- Copyright (C) 2011-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FCNTL_H
-# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-/* In 64-bit ISA files are always with 64bit off_t and F_*LK64 are the same as
- non-64-bit versions. It will need to be revised for 128-bit. */
-#if __WORDSIZE == 64
-# define __O_LARGEFILE 0
-
-# define F_GETLK64 5 /* Get record locking info. */
-# define F_SETLK64 6 /* Set record locking info (non-blocking). */
-# define F_SETLKW64 7 /* Set record locking info (blocking). */
-#endif
-
-struct flock
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
-#if __WORDSIZE == 64 || !defined __USE_FILE_OFFSET64
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
-#else
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
-#endif
- __pid_t l_pid; /* Process holding the lock. */
- };
-
-#ifdef __USE_LARGEFILE64
-struct flock64
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- };
-#endif
-
-/* Include generic Linux declarations. */
-#include <bits/fcntl-linux.h>
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/fenv.h
@@ -1,74 +0,0 @@
-/* Floating point environment, RISC-V version.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FENV_H
-# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
-#endif
-
-enum
- {
- FE_INEXACT =
-#define FE_INEXACT (0x01)
- FE_INEXACT,
- FE_UNDERFLOW =
-#define FE_UNDERFLOW (0x02)
- FE_UNDERFLOW,
- FE_OVERFLOW =
-#define FE_OVERFLOW (0x04)
- FE_OVERFLOW,
- FE_DIVBYZERO =
-#define FE_DIVBYZERO (0x08)
- FE_DIVBYZERO,
- FE_INVALID =
-#define FE_INVALID (0x10)
- FE_INVALID
- };
-
-#define FE_ALL_EXCEPT \
- (FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID)
-
-enum
- {
- FE_TONEAREST =
-#define FE_TONEAREST (0x0)
- FE_TONEAREST,
- FE_TOWARDZERO =
-#define FE_TOWARDZERO (0x1)
- FE_TOWARDZERO,
- FE_DOWNWARD =
-#define FE_DOWNWARD (0x2)
- FE_DOWNWARD,
- FE_UPWARD =
-#define FE_UPWARD (0x3)
- FE_UPWARD
- };
-
-
-typedef unsigned int fexcept_t;
-typedef unsigned int fenv_t;
-
-/* If the default argument is used we use this value. */
-#define FE_DFL_ENV ((__const fenv_t *) -1)
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
-/* Type representing floating-point control modes. */
-typedef unsigned int femode_t;
-
-/* Default floating-point control modes. */
-# define FE_DFL_MODE ((const femode_t *) -1L)
-#endif
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/link.h
@@ -1,56 +0,0 @@
-/* Machine-specific declarations for dynamic linker interface. RISC-V version.
- Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-# error "Never include <bits/link.h> directly; use <link.h> instead."
-#endif
-
-typedef struct La_riscv_regs
-{
- unsigned long int lr_reg[8]; /* a0 - a7 */
- double lr_fpreg[8]; /* fa0 - fa7 */
- unsigned long int lr_ra;
- unsigned long int lr_sp;
-} La_riscv_regs;
-
-/* Return values for calls from PLT on RISC-V. */
-typedef struct La_riscv_retval
-{
- unsigned long int lrv_a0;
- unsigned long int lrv_a1;
- double lrv_fa0;
- double lrv_fa1;
-} La_riscv_retval;
-
-__BEGIN_DECLS
-
-extern ElfW(Addr) la_riscv_gnu_pltenter (ElfW(Sym) *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_riscv_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_riscv_gnu_pltexit (ElfW(Sym) *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_riscv_regs *__inregs,
- La_riscv_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/long-double.h
@@ -1,21 +0,0 @@
-/* Properties of long double type. ldbl-128 version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* long double is distinct from double, so there is nothing to
- define here. */
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/procfs.h
@@ -1,31 +0,0 @@
-/* Types for registers for sys/procfs.h. RISC-V version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
-#endif
-
-#include <sys/ucontext.h>
-
-/* ELF register definitions */
-#define ELF_NGREG NGREG
-#define ELF_NFPREG NFPREG
-
-typedef unsigned long int elf_greg_t;
-typedef unsigned long int elf_gregset_t[32];
-typedef union __riscv_mc_fp_state elf_fpregset_t;
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/pthreadtypes-arch.h
@@ -1,45 +0,0 @@
-/* Machine-specific pthread type layouts. RISC-V version.
- Copyright (C) 2011-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_PTHREADTYPES_ARCH_H
-#define _BITS_PTHREADTYPES_ARCH_H 1
-
-#include <bits/endian.h>
-
-#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
-#define __SIZEOF_PTHREAD_COND_T 48
-#define __SIZEOF_PTHREAD_CONDATTR_T 4
-#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
-
-#if __WORDSIZE == 64
-# define __SIZEOF_PTHREAD_ATTR_T 56
-# define __SIZEOF_PTHREAD_MUTEX_T 40
-# define __SIZEOF_PTHREAD_RWLOCK_T 56
-# define __SIZEOF_PTHREAD_BARRIER_T 32
-#else
-# define __SIZEOF_PTHREAD_ATTR_T 32
-# define __SIZEOF_PTHREAD_MUTEX_T 32
-# define __SIZEOF_PTHREAD_RWLOCK_T 48
-# define __SIZEOF_PTHREAD_BARRIER_T 20
-#endif
-
-#define __LOCK_ALIGNMENT
-#define __ONCE_ALIGNMENT
-
-#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/rseq.h
@@ -1,44 +0,0 @@
-/* Restartable Sequences Linux riscv architecture header.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#include <bits/endian.h>
-
-#ifndef _SYS_RSEQ_H
-# error "Never use <bits/rseq.h> directly; include <sys/rseq.h> instead."
-#endif
-
-/* RSEQ_SIG is a signature required before each abort handler code.
-
- It is a 32-bit value that maps to actual architecture code compiled
- into applications and libraries. It needs to be defined for each
- architecture. When choosing this value, it needs to be taken into
- account that generating invalid instructions may have ill effects on
- tools like objdump, and may also have impact on the CPU speculative
- execution efficiency in some cases.
-
- Select the instruction "csrw mhartid, x0" as the RSEQ_SIG. Unlike
- other architectures, the ebreak instruction has no immediate field for
- distinguishing purposes. Hence, ebreak is not suitable as RSEQ_SIG.
- "csrw mhartid, x0" can also satisfy the RSEQ requirement because it
- is an uncommon instruction and will raise an illegal instruction
- exception when executed in all modes. */
-
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-#define RSEQ_SIG 0xf1401073
-#else
-/* RSEQ is currently only supported on Little-Endian. */
-#endif
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/setjmp.h
@@ -1,39 +0,0 @@
-/* Define the machine-dependent type `jmp_buf'. RISC-V version.
- Copyright (C) 2011-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _RISCV_BITS_SETJMP_H
-#define _RISCV_BITS_SETJMP_H
-
-typedef struct __jmp_buf_internal_tag
- {
- /* Program counter. */
- long int __pc;
- /* Callee-saved registers. */
- long int __regs[12];
- /* Stack pointer. */
- long int __sp;
-
- /* Callee-saved floating point registers. */
-#if defined __riscv_float_abi_double
- double __fpregs[12];
-#elif !defined __riscv_float_abi_soft
-# error unsupported FLEN
-#endif
- } __jmp_buf[1];
-
-#endif /* _RISCV_BITS_SETJMP_H */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/sigcontext.h
@@ -1,31 +0,0 @@
-/* Machine-dependent signal context structure for Linux. RISC-V version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc. This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGCONTEXT_H
-#define _BITS_SIGCONTEXT_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
-#endif
-
-struct sigcontext {
- /* gregs[0] holds the program counter. */
- unsigned long int gregs[32];
- unsigned long long int fpregs[66] __attribute__ ((__aligned__ (16)));
-};
-
-#endif
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/struct_rwlock.h
@@ -1,68 +0,0 @@
-/* RISC-V internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-/* There is a lot of padding in this structure. While it's not strictly
- necessary on RISC-V, we're going to leave it in to be on the safe side in
- case it's needed in the future. Most other architectures have the padding,
- so this gives us the same extensibility as everyone else has. */
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#if __WORDSIZE == 64
- int __cur_writer;
- int __shared;
- unsigned long int __pad1;
- unsigned long int __pad2;
- unsigned int __flags;
-#else
-# if __BYTE_ORDER == __BIG_ENDIAN
- unsigned char __pad1;
- unsigned char __pad2;
- unsigned char __shared;
- unsigned char __flags;
-# else
- unsigned char __flags;
- unsigned char __shared;
- unsigned char __pad1;
- unsigned char __pad2;
-# endif
- int __cur_writer;
-#endif
-};
-
-#if __WORDSIZE == 64
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
-#elif __BYTE_ORDER == __BIG_ENDIAN
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
-#else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/struct_stat.h
@@ -1,127 +0,0 @@
-/* Definition for struct stat.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
-#endif
-
-#ifndef _BITS_STRUCT_STAT_H
-#define _BITS_STRUCT_STAT_H 1
-
-#include <bits/endian.h>
-#include <bits/wordsize.h>
-
-#if defined __USE_FILE_OFFSET64
-# define __field64(type, type64, name) type64 name
-#elif __WORDSIZE == 64 || defined __INO_T_MATCHES_INO64_T
-# if defined __INO_T_MATCHES_INO64_T && !defined __OFF_T_MATCHES_OFF64_T
-# error "ino_t and off_t must both be the same type"
-# endif
-# define __field64(type, type64, name) type name
-#elif __BYTE_ORDER == __LITTLE_ENDIAN
-# define __field64(type, type64, name) \
- type name __attribute__((__aligned__ (__alignof__ (type64)))); int __##name##_pad
-#else
-# define __field64(type, type64, name) \
- int __##name##_pad __attribute__((__aligned__ (__alignof__ (type64)))); type name
-#endif
-
-struct stat
- {
- __dev_t st_dev; /* Device. */
- __field64(__ino_t, __ino64_t, st_ino); /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- __dev_t __pad1;
- __field64(__off_t, __off64_t, st_size); /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- int __pad2;
- __field64(__blkcnt_t, __blkcnt64_t, st_blocks); /* 512-byte blocks */
-#ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-#else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-#endif
- int __glibc_reserved[2];
- };
-
-#undef __field64
-
-#ifdef __USE_LARGEFILE64
-struct stat64
- {
- __dev_t st_dev; /* Device. */
- __ino64_t st_ino; /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- __dev_t __pad1;
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- int __pad2;
- __blkcnt64_t st_blocks; /* Nr. 512-byte blocks allocated. */
-#ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-#else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-#endif
- int __glibc_reserved[2];
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-#endif /* _BITS_STRUCT_STAT_H */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/time64.h
@@ -1,36 +0,0 @@
-/* bits/time64.h -- underlying types for __time64_t. RISC-V version.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/time64.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TIME64_H
-#define _BITS_TIME64_H 1
-
-/* Define __TIME64_T_TYPE so that it is always a 64-bit type. */
-
-#if __WORDSIZE == 64
-/* If we already have 64-bit time type then use it. */
-# define __TIME64_T_TYPE __TIME_T_TYPE
-#else
-/* Define a 64-bit time type alongsize the 32-bit one. */
-# define __TIME64_T_TYPE __SQUAD_TYPE
-#endif
-
-#endif /* bits/time64.h */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/timesize.h
@@ -1,20 +0,0 @@
-/* Bit size of the time_t type at glibc build time, general case.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Size in bits of the 'time_t' type of the default ABI. */
-#define __TIMESIZE 64
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/wordsize.h
@@ -1,30 +0,0 @@
-/* Determine the wordsize from the preprocessor defines. RISC-V version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if __riscv_xlen == (__SIZEOF_POINTER__ * 8)
-# define __WORDSIZE __riscv_xlen
-#else
-# error unsupported ABI
-#endif
-
-#define __WORDSIZE_TIME64_COMPAT32 1
-
-#if __WORDSIZE == 32
-# define __WORDSIZE32_SIZE_ULONG 0
-# define __WORDSIZE32_PTRDIFF_LONG 0
-#endif
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/gnu/lib-names.h
@@ -1,22 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32 && defined __riscv_float_abi_soft
-# include <gnu/lib-names-ilp32.h>
-#endif
-#if __WORDSIZE == 32 && defined __riscv_float_abi_double
-# include <gnu/lib-names-ilp32d.h>
-#endif
-#if __WORDSIZE == 64 && defined __riscv_float_abi_soft
-# include <gnu/lib-names-lp64.h>
-#endif
-#if __WORDSIZE == 64 && defined __riscv_float_abi_double
-# include <gnu/lib-names-lp64d.h>
-#endif
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/gnu/stubs.h
@@ -1,18 +0,0 @@
-/* This file is automatically generated.
- This file selects the right generated file of `__stub_FUNCTION' macros
- based on the architecture being compiled for. */
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32 && defined __riscv_float_abi_soft
-# include <gnu/stubs-ilp32.h>
-#endif
-#if __WORDSIZE == 32 && defined __riscv_float_abi_double
-# include <gnu/stubs-ilp32d.h>
-#endif
-#if __WORDSIZE == 64 && defined __riscv_float_abi_soft
-# include <gnu/stubs-lp64.h>
-#endif
-#if __WORDSIZE == 64 && defined __riscv_float_abi_double
-# include <gnu/stubs-lp64d.h>
-#endif
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/sys/asm.h
@@ -1,66 +0,0 @@
-/* Miscellaneous macros.
- Copyright (C) 2000-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_ASM_H
-#define _SYS_ASM_H
-
-/* Macros to handle different pointer/register sizes for 32/64-bit code. */
-#if __riscv_xlen == 64
-# define PTRLOG 3
-# define SZREG 8
-# define REG_S sd
-# define REG_L ld
-#elif __riscv_xlen == 32
-# define PTRLOG 2
-# define SZREG 4
-# define REG_S sw
-# define REG_L lw
-#else
-# error __riscv_xlen must equal 32 or 64
-#endif
-
-#if !defined __riscv_float_abi_soft
-/* For ABI uniformity, reserve 8 bytes for floats, even if double-precision
- floating-point is not supported in hardware. */
-# if defined __riscv_float_abi_double
-# define FREG_L fld
-# define FREG_S fsd
-# define SZFREG 8
-# else
-# error unsupported FLEN
-# endif
-#endif
-
-/* Declare leaf routine. */
-#define LEAF(symbol) \
- .globl symbol; \
- .align 2; \
- .type symbol,@function; \
-symbol: \
- cfi_startproc;
-
-/* Mark end of function. */
-#undef END
-#define END(function) \
- cfi_endproc; \
- .size function,.-function
-
-/* Stack alignment. */
-#define ALMASK ~15
-
-#endif /* sys/asm.h */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/sys/cachectl.h
@@ -1,32 +0,0 @@
-/* RISC-V instruction cache flushing interface
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_CACHECTL_H
-#define _SYS_CACHECTL_H 1
-
-#include <features.h>
-
-__BEGIN_DECLS
-
-extern int __riscv_flush_icache (void *__start, void *__end,
- unsigned long int __flags);
-
-__END_DECLS
-
-#endif /* sys/cachectl.h */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/sys/ucontext.h
@@ -1,110 +0,0 @@
-/* struct ucontext definition, RISC-V version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Don't rely on this, the interface is currently messed up and may need to
- be broken to be fixed. */
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include <features.h>
-
-#include <bits/types/sigset_t.h>
-#include <bits/types/stack_t.h>
-
-typedef unsigned long int __riscv_mc_gp_state[32];
-
-#ifdef __USE_MISC
-# define NGREG 32
-
-# define REG_PC 0
-# define REG_RA 1
-# define REG_SP 2
-# define REG_TP 4
-# define REG_S0 8
-# define REG_S1 9
-# define REG_A0 10
-# define REG_S2 18
-# define REG_NARGS 8
-
-typedef unsigned long int greg_t;
-
-/* Container for all general registers. */
-typedef __riscv_mc_gp_state gregset_t;
-
-/* Container for floating-point state. */
-typedef union __riscv_mc_fp_state fpregset_t;
-#endif
-
-struct __riscv_mc_f_ext_state
- {
- unsigned int __f[32];
- unsigned int __fcsr;
- };
-
-struct __riscv_mc_d_ext_state
- {
- unsigned long long int __f[32];
- unsigned int __fcsr;
- };
-
-struct __riscv_mc_q_ext_state
- {
- unsigned long long int __f[64] __attribute__ ((__aligned__ (16)));
- unsigned int __fcsr;
- /* Reserved for expansion of sigcontext structure. Currently zeroed
- upon signal, and must be zero upon sigreturn. */
- unsigned int __glibc_reserved[3];
- };
-
-union __riscv_mc_fp_state
- {
- struct __riscv_mc_f_ext_state __f;
- struct __riscv_mc_d_ext_state __d;
- struct __riscv_mc_q_ext_state __q;
- };
-
-typedef struct mcontext_t
- {
- __riscv_mc_gp_state __gregs;
- union __riscv_mc_fp_state __fpregs;
- } mcontext_t;
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long int __uc_flags;
- struct ucontext_t *uc_link;
- stack_t uc_stack;
- sigset_t uc_sigmask;
- /* There's some padding here to allow sigset_t to be expanded in the
- future. Though this is unlikely, other architectures put uc_sigmask
- at the end of this structure and explicitly state it can be
- expanded, so we didn't want to box ourselves in here. */
- char __glibc_reserved[1024 / 8 - sizeof (sigset_t)];
- /* We can't put uc_sigmask at the end of this structure because we need
- to be able to expand sigcontext in the future. For example, the
- vector ISA extension will almost certainly add ISA state. We want
- to ensure all user-visible ISA state can be saved and restored via a
- ucontext, so we're putting this at the end in order to allow for
- infinite extensibility. Since we know this will be extended and we
- assume sigset_t won't be extended an extreme amount, we're
- prioritizing this. */
- mcontext_t uc_mcontext;
- } ucontext_t;
-
-#endif /* sys/ucontext.h */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/sys/user.h
@@ -1,23 +0,0 @@
-/* Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_USER_H
-#define _SYS_USER_H 1
-
-
-
-#endif /* _SYS_USER_H */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/fpu_control.h
@@ -1,74 +0,0 @@
-/* FPU control word bits. RISC-V version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FPU_CONTROL_H
-#define _FPU_CONTROL_H
-
-#include <features.h>
-
-#ifndef __riscv_flen
-
-# define _FPU_RESERVED 0xffffffff
-# define _FPU_DEFAULT 0x00000000
-typedef unsigned int fpu_control_t;
-# define _FPU_GETCW(cw) (cw) = 0
-# define _FPU_SETCW(cw) do { } while (0)
-extern fpu_control_t __fpu_control;
-
-#else /* __riscv_flen */
-
-# define _FPU_RESERVED 0
-# define _FPU_DEFAULT 0
-# define _FPU_IEEE _FPU_DEFAULT
-
-/* Type of the control word. */
-typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__SI__)));
-
-/* Macros for accessing the hardware control word. */
-# define _FPU_GETCW(cw) __asm__ volatile ("frsr %0" : "=r" (cw))
-# define _FPU_SETCW(cw) __asm__ volatile ("fssr %z0" : : "rJ" (cw))
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-# define _FCLASS(x) (__extension__ ({ int __res; \
- if (sizeof (x) * 8 > __riscv_flen) __builtin_trap (); \
- if (sizeof (x) == 4) asm ("fclass.s %0, %1" : "=r" (__res) : "f" (x)); \
- else if (sizeof (x) == 8) asm ("fclass.d %0, %1" : "=r" (__res) : "f" (x)); \
- else __builtin_trap (); \
- __res; }))
-
-# define _FCLASS_MINF (1 << 0)
-# define _FCLASS_MNORM (1 << 1)
-# define _FCLASS_MSUBNORM (1 << 2)
-# define _FCLASS_MZERO (1 << 3)
-# define _FCLASS_PZERO (1 << 4)
-# define _FCLASS_PSUBNORM (1 << 5)
-# define _FCLASS_PNORM (1 << 6)
-# define _FCLASS_PINF (1 << 7)
-# define _FCLASS_SNAN (1 << 8)
-# define _FCLASS_QNAN (1 << 9)
-# define _FCLASS_ZERO (_FCLASS_MZERO | _FCLASS_PZERO)
-# define _FCLASS_SUBNORM (_FCLASS_MSUBNORM | _FCLASS_PSUBNORM)
-# define _FCLASS_NORM (_FCLASS_MNORM | _FCLASS_PNORM)
-# define _FCLASS_INF (_FCLASS_MINF | _FCLASS_PINF)
-# define _FCLASS_NAN (_FCLASS_SNAN | _FCLASS_QNAN)
-
-#endif /* __riscv_flen */
-
-#endif /* fpu_control.h */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/ieee754.h
@@ -1,170 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/gnu/lib-names-64.h → lib/libc/include/sparc-linux-gnu/gnu/lib-names-64.h
File renamed without changes
lib/libc/include/sparc64-linux-gnu/bits/types/struct_msqid_ds.h
@@ -1,53 +0,0 @@
-/* Linux/SPARC implementation of the SysV message struct msqid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MSG_H
-# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
-#endif
-
-#include <bits/types/time_t.h>
-
-/* Structure of record for one message inside the kernel.
- The type `struct msg' is opaque. */
-struct msqid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_msqid64_ds_helper.h>
-#else
- struct ipc_perm msg_perm; /* structure describing operation permission */
-# if __TIMESIZE == 32
- unsigned long int __msg_stime_high;
- __time_t msg_stime; /* time of last msgsnd command */
- unsigned long int __msg_rtime_high;
- __time_t msg_rtime; /* time of last msgsnd command */
- unsigned long int __msg_ctime_high;
- __time_t msg_ctime; /* time of last change */
-# else
- __time_t msg_stime; /* time of last msgsnd command */
- __time_t msg_rtime; /* time of last msgsnd command */
- __time_t msg_ctime; /* time of last change */
-# endif
- __syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
- msgqnum_t msg_qnum; /* number of messages currently on queue */
- msglen_t msg_qbytes; /* max number of bytes allowed on queue */
- __pid_t msg_lspid; /* pid of last msgsnd() */
- __pid_t msg_lrpid; /* pid of last msgrcv() */
- __syscall_ulong_t __glibc_reserved4;
- __syscall_ulong_t __glibc_reserved5;
-#endif
-};
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/types/struct_semid_ds.h
@@ -1,43 +0,0 @@
-/* Sparc implementation of the semaphore struct semid_ds
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
-#endif
-
-/* Data structure describing a set of semaphores. */
-struct semid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_semid64_ds_helper.h>
-#else
- struct ipc_perm sem_perm; /* operation permission struct */
-# if __TIMESIZE == 32
- __syscall_ulong_t __sem_otime_high;
- __time_t sem_otime; /* last semop() time */
- __syscall_ulong_t __sem_ctime_high;
- __time_t sem_ctime; /* last time changed by semctl() */
-# else
- __time_t sem_otime; /* last semop() time */
- __time_t sem_ctime; /* last time changed by semctl() */
-# endif
- __syscall_ulong_t sem_nsems; /* number of semaphores in set */
- __syscall_ulong_t __glibc_reserved3;
- __syscall_ulong_t __glibc_reserved4;
-#endif
-};
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/types/struct_shmid_ds.h
@@ -1,49 +0,0 @@
-/* Linux/SPARC implementation of the shared memory struct shmid_ds.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never include <bits/types/struct_shmid_ds.h> directly; use <sys/shm.h> instead."
-#endif
-
-/* Data structure describing a shared memory segment. */
-struct shmid_ds
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_shmid64_ds_helper.h>
-#else
- struct ipc_perm shm_perm; /* operation permission struct */
-# if __TIMESIZE == 32
- unsigned long int __shm_atime_high;
- __time_t shm_atime; /* time of last shmat() */
- unsigned long int __shm_dtime_high;
- __time_t shm_dtime; /* time of last shmdt() */
- unsigned long int __shm_ctime_high;
- __time_t shm_ctime; /* time of last change by shmctl() */
-# else
- __time_t shm_atime; /* time of last shmat() */
- __time_t shm_dtime; /* time of last shmdt() */
- __time_t shm_ctime; /* time of last change by shmctl() */
-# endif
- size_t shm_segsz; /* size of segment in bytes */
- __pid_t shm_cpid; /* pid of creator */
- __pid_t shm_lpid; /* pid of last shmop */
- shmatt_t shm_nattch; /* number of current attaches */
- __syscall_ulong_t __glibc_reserved5;
- __syscall_ulong_t __glibc_reserved6;
-#endif
- };
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/a.out.h
@@ -1,13 +0,0 @@
-#ifndef __A_OUT_GNU_H__
-# error "Never use <bits/a.out.h> directly; include <a.out.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 64
-
-/* Signal to users of this header that this architecture really doesn't
- support a.out binary format. */
-#define __NO_A_OUT_SUPPORT 1
-
-#endif
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/endianness.h
@@ -1,16 +0,0 @@
-#ifndef _BITS_ENDIANNESS_H
-#define _BITS_ENDIANNESS_H 1
-
-#ifndef _BITS_ENDIAN_H
-# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
-#endif
-
-/* Sparc is big-endian, but v9 supports endian conversion on loads/stores
- and GCC supports such a mode. Be prepared. */
-#ifdef __LITTLE_ENDIAN__
-# define __BYTE_ORDER __LITTLE_ENDIAN
-#else
-# define __BYTE_ORDER __BIG_ENDIAN
-#endif
-
-#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/environments.h
@@ -1,96 +0,0 @@
-/* Copyright (C) 1999-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _UNISTD_H
-# error "Never include this file directly. Use <unistd.h> instead"
-#endif
-
-#include <bits/wordsize.h>
-
-/* This header should define the following symbols under the described
- situations. A value `1' means that the model is always supported,
- `-1' means it is never supported. Undefined means it cannot be
- statically decided.
-
- _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type
- _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type
-
- _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type
- _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type
-
- The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG,
- _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32,
- _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were
- used in previous versions of the Unix standard and are available
- only for compatibility.
-*/
-
-#if __WORDSIZE == 64
-
-/* Environments with 32-bit wide pointers are optionally provided.
- Therefore following macros aren't defined:
- # undef _POSIX_V7_ILP32_OFF32
- # undef _POSIX_V7_ILP32_OFFBIG
- # undef _POSIX_V6_ILP32_OFF32
- # undef _POSIX_V6_ILP32_OFFBIG
- # undef _XBS5_ILP32_OFF32
- # undef _XBS5_ILP32_OFFBIG
- and users need to check at runtime. */
-
-/* We also have no use (for now) for an environment with bigger pointers
- and offsets. */
-# define _POSIX_V7_LPBIG_OFFBIG -1
-# define _POSIX_V6_LPBIG_OFFBIG -1
-# define _XBS5_LPBIG_OFFBIG -1
-
-/* By default we have 64-bit wide `long int', pointers and `off_t'. */
-# define _POSIX_V7_LP64_OFF64 1
-# define _POSIX_V6_LP64_OFF64 1
-# define _XBS5_LP64_OFF64 1
-
-#else /* __WORDSIZE == 32 */
-
-/* By default we have 32-bit wide `int', `long int', pointers and `off_t'
- and all platforms support LFS. */
-# define _POSIX_V7_ILP32_OFF32 1
-# define _POSIX_V7_ILP32_OFFBIG 1
-# define _POSIX_V6_ILP32_OFF32 1
-# define _POSIX_V6_ILP32_OFFBIG 1
-# define _XBS5_ILP32_OFF32 1
-# define _XBS5_ILP32_OFFBIG 1
-
-/* We optionally provide an environment with the above size but an 64-bit
- side `off_t'. Therefore we don't define _POSIX_V7_ILP32_OFFBIG. */
-
-/* Environments with 64-bit wide pointers can be provided,
- so these macros aren't defined:
- # undef _POSIX_V7_LP64_OFF64
- # undef _POSIX_V7_LPBIG_OFFBIG
- # undef _POSIX_V6_LP64_OFF64
- # undef _POSIX_V6_LPBIG_OFFBIG
- # undef _XBS5_LP64_OFF64
- # undef _XBS5_LPBIG_OFFBIG
- and sysconf tests for it at runtime. */
-
-#endif /* __WORDSIZE == 32 */
-
-#define __ILP32_OFF32_CFLAGS "-m32"
-#define __ILP32_OFFBIG_CFLAGS "-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
-#define __ILP32_OFF32_LDFLAGS "-m32"
-#define __ILP32_OFFBIG_LDFLAGS "-m32"
-#define __LP64_OFF64_CFLAGS "-m64"
-#define __LP64_OFF64_LDFLAGS "-m64"
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/epoll.h
@@ -1,27 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_EPOLL_H
-# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."
-#endif
-
-/* Flags to be passed to epoll_create1. */
-enum
- {
- EPOLL_CLOEXEC = 0x400000
-#define EPOLL_CLOEXEC EPOLL_CLOEXEC
- };
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/errno.h
@@ -1,53 +0,0 @@
-/* Error constants. Linux/Sparc specific version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_ERRNO_H
-#define _BITS_ERRNO_H 1
-
-#if !defined _ERRNO_H
-# error "Never include <bits/errno.h> directly; use <errno.h> instead."
-#endif
-
-# include <linux/errno.h>
-
-/* Older Linux headers do not define these constants. */
-# ifndef ENOTSUP
-# define ENOTSUP EOPNOTSUPP
-# endif
-
-# ifndef ECANCELED
-# define ECANCELED 127
-# endif
-
-# ifndef EOWNERDEAD
-# define EOWNERDEAD 132
-# endif
-
-# ifndef ENOTRECOVERABLE
-# define ENOTRECOVERABLE 133
-# endif
-
-# ifndef ERFKILL
-# define ERFKILL 134
-# endif
-
-# ifndef EHWPOISON
-# define EHWPOISON 135
-# endif
-
-#endif /* bits/errno.h. */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/eventfd.h
@@ -1,31 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_EVENTFD_H
-# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
-#endif
-
-/* Flags for eventfd. */
-enum
- {
- EFD_SEMAPHORE = 0x000001,
-#define EFD_SEMAPHORE EFD_SEMAPHORE
- EFD_CLOEXEC = 0x400000,
-#define EFD_CLOEXEC EFD_CLOEXEC
- EFD_NONBLOCK = 0x004000
-#define EFD_NONBLOCK EFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/fcntl.h
@@ -1,101 +0,0 @@
-/* O_*, F_*, FD_* bit values for Linux/SPARC.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FCNTL_H
-# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-#define O_APPEND 0x0008
-#define O_ASYNC 0x0040
-#define O_CREAT 0x0200 /* not fcntl */
-#define O_TRUNC 0x0400 /* not fcntl */
-#define O_EXCL 0x0800 /* not fcntl */
-#define O_SYNC 0x802000
-#define O_NONBLOCK 0x4000
-#define O_NDELAY (0x0004 | O_NONBLOCK)
-#define O_NOCTTY 0x8000 /* not fcntl */
-
-#define __O_DIRECTORY 0x10000 /* must be a directory */
-#define __O_NOFOLLOW 0x20000 /* don't follow links */
-#define __O_CLOEXEC 0x400000 /* Set close_on_exit. */
-
-#define __O_DIRECT 0x100000 /* direct disk access hint */
-#define __O_NOATIME 0x200000 /* Do not set atime. */
-#define __O_PATH 0x1000000 /* Resolve pathname but do not open file. */
-#define __O_TMPFILE 0x2010000 /* Atomically create nameless file. */
-
-#if __WORDSIZE == 64
-# define __O_LARGEFILE 0
-#else
-# define __O_LARGEFILE 0x40000
-#endif
-
-#define __O_DSYNC 0x2000 /* Synchronize data. */
-
-
-#define __F_GETOWN 5 /* Get owner (process receiving SIGIO). */
-#define __F_SETOWN 6 /* Set owner (process receiving SIGIO). */
-
-#ifndef __USE_FILE_OFFSET64
-# define F_GETLK 7 /* Get record locking info. */
-# define F_SETLK 8 /* Set record locking info (non-blocking). */
-# define F_SETLKW 9 /* Set record locking info (blocking). */
-#endif
-
-#if __WORDSIZE == 64
-# define F_GETLK64 7 /* Get record locking info. */
-# define F_SETLK64 8 /* Set record locking info (non-blocking). */
-# define F_SETLKW64 9 /* Set record locking info (blocking). */
-#endif
-
-/* For posix fcntl() and `l_type' field of a `struct flock' for lockf(). */
-#define F_RDLCK 1 /* Read lock. */
-#define F_WRLCK 2 /* Write lock. */
-#define F_UNLCK 3 /* Remove lock. */
-
-struct flock
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
-#ifndef __USE_FILE_OFFSET64
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
-#else
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
-#endif
- __pid_t l_pid; /* Process holding the lock. */
- short int __glibc_reserved;
- };
-
-#ifdef __USE_LARGEFILE64
-struct flock64
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- short int __glibc_reserved;
- };
-#endif
-
-/* Include generic Linux declarations. */
-#include <bits/fcntl-linux.h>
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/fenv.h
@@ -1,92 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FENV_H
-# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-
-/* Define bits representing the exception. We use the bit positions
- of the appropriate accrued exception bits from the FSR. */
-enum
- {
- FE_INVALID =
-#define FE_INVALID (1 << 9)
- FE_INVALID,
- FE_OVERFLOW =
-#define FE_OVERFLOW (1 << 8)
- FE_OVERFLOW,
- FE_UNDERFLOW =
-#define FE_UNDERFLOW (1 << 7)
- FE_UNDERFLOW,
- FE_DIVBYZERO =
-#define FE_DIVBYZERO (1 << 6)
- FE_DIVBYZERO,
- FE_INEXACT =
-#define FE_INEXACT (1 << 5)
- FE_INEXACT
- };
-
-#define FE_ALL_EXCEPT \
- (FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID)
-
-/* The Sparc FPU supports all of the four defined rounding modes. We
- use again the bit positions in the FPU control word as the values
- for the appropriate macros. */
-enum
- {
- FE_TONEAREST =
-#define FE_TONEAREST (0 << 30)
- FE_TONEAREST,
- FE_TOWARDZERO =
-#define FE_TOWARDZERO (1 << 30)
- FE_TOWARDZERO,
- FE_UPWARD =
-#define FE_UPWARD (-0x7fffffff - 1) /* (2 << 30) */
- FE_UPWARD,
- FE_DOWNWARD =
-#define FE_DOWNWARD (-0x40000000) /* (3 << 30) */
- FE_DOWNWARD
- };
-
-#define __FE_ROUND_MASK (3U << 30)
-
-
-/* Type representing exception flags. */
-typedef unsigned long int fexcept_t;
-
-
-/* Type representing floating-point environment. */
-typedef unsigned long int fenv_t;
-
-/* If the default argument is used we use this value. */
-#define FE_DFL_ENV ((const fenv_t *) -1)
-
-#ifdef __USE_GNU
-/* Floating-point environment where none of the exception is masked. */
-# define FE_NOMASK_ENV ((const fenv_t *) -2)
-#endif
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
-/* Type representing floating-point control modes. */
-typedef unsigned long int femode_t;
-
-/* Default floating-point control modes. */
-# define FE_DFL_MODE ((const femode_t *) -1L)
-#endif
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/hwcap.h
@@ -1,51 +0,0 @@
-/* Defines for bits in AT_HWCAP.
- Copyright (C) 2011-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
-# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
-#endif
-
-#define HWCAP_SPARC_FLUSH 0x00000001
-#define HWCAP_SPARC_STBAR 0x00000002
-#define HWCAP_SPARC_SWAP 0x00000004
-#define HWCAP_SPARC_MULDIV 0x00000008
-#define HWCAP_SPARC_V9 0x00000010
-#define HWCAP_SPARC_ULTRA3 0x00000020
-#define HWCAP_SPARC_BLKINIT 0x00000040
-#define HWCAP_SPARC_N2 0x00000080
-#define HWCAP_SPARC_MUL32 0x00000100
-#define HWCAP_SPARC_DIV32 0x00000200
-#define HWCAP_SPARC_FSMULD 0x00000400
-#define HWCAP_SPARC_V8PLUS 0x00000800
-#define HWCAP_SPARC_POPC 0x00001000
-#define HWCAP_SPARC_VIS 0x00002000
-#define HWCAP_SPARC_VIS2 0x00004000
-#define HWCAP_SPARC_ASI_BLK_INIT 0x00008000
-#define HWCAP_SPARC_FMAF 0x00010000
-#define HWCAP_SPARC_VIS3 0x00020000
-#define HWCAP_SPARC_HPC 0x00040000
-#define HWCAP_SPARC_RANDOM 0x00080000
-#define HWCAP_SPARC_TRANS 0x00100000
-#define HWCAP_SPARC_FJFMAU 0x00200000
-#define HWCAP_SPARC_IMA 0x00400000
-#define HWCAP_SPARC_ASI_CACHE_SPARING \
- 0x00800000
-#define HWCAP_SPARC_PAUSE 0x01000000
-#define HWCAP_SPARC_CBCOND 0x02000000
-#define HWCAP_SPARC_CRYPTO 0x04000000
-#define HWCAP_SPARC_ADP 0x08000000
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/inotify.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_INOTIFY_H
-# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
-#endif
-
-/* Flags for the parameter of inotify_init1. */
-enum
- {
- IN_CLOEXEC = 0x400000,
-#define IN_CLOEXEC IN_CLOEXEC
- IN_NONBLOCK = 0x004000
-#define IN_NONBLOCK IN_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/ioctls.h
@@ -1,36 +0,0 @@
-/* Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IOCTL_H
-# error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead."
-#endif
-
-/* Use the definitions from the kernel header files. */
-#include <asm/ioctls.h>
-
-/* Oh well, this is necessary since the kernel data structure is
- different from the user-level version. */
-#undef TCGETS
-#undef TCSETS
-#undef TCSETSW
-#undef TCSETSF
-#define TCGETS _IOR ('T', 8, char[36])
-#define TCSETS _IOW ('T', 9, char[36])
-#define TCSETSW _IOW ('T', 10, char[36])
-#define TCSETSF _IOW ('T', 11, char[36])
-
-#include <linux/sockios.h>
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/ipc-perm.h
@@ -1,36 +0,0 @@
-/* struct ipc_perm definition. Linux/sparc version.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IPC_H
-# error "Never use <bits/ipc-perm.h> directly; include <sys/ipc.h> instead."
-#endif
-
-/* Data structure used to pass permission information to IPC operations. */
-struct ipc_perm
- {
- __key_t __key; /* Key. */
- __uid_t uid; /* Owner's user ID. */
- __gid_t gid; /* Owner's group ID. */
- __uid_t cuid; /* Creator's user ID. */
- __gid_t cgid; /* Creator's group ID. */
- __mode_t mode; /* Read/write permission. */
- unsigned short int __pad1;
- unsigned short int __seq; /* Sequence number. */
- __extension__ unsigned long long int __glibc_reserved1;
- __extension__ unsigned long long int __glibc_reserved2;
- };
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/link.h
@@ -1,99 +0,0 @@
-/* Machine-specific audit interfaces for dynamic linker. SPARC version.
- Copyright (C) 2005-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-# error "Never include <bits/link.h> directly; use <link.h> instead."
-#endif
-
-#if __WORDSIZE == 32
-
-typedef struct La_sparc32_regs
-{
- uint32_t lr_lreg[8]; /* %l0 through %l7 */
- uint32_t lr_reg[6]; /* %o0 through %o5 */
- uint32_t lr_sp; /* %o6 */
- uint32_t lr_ra; /* %o7 */
- uint32_t lr_struct; /* Pass-by-reference struct pointer */
-} La_sparc32_regs;
-
-typedef struct La_sparc32_retval
-{
- uint32_t lrv_reg[2]; /* %o0 and %o1 */
- double lrv_fpreg[2]; /* %f0 and %f2 */
-} La_sparc32_retval;
-
-#else
-
-typedef struct La_sparc64_regs
-{
- uint64_t lr_lreg[8]; /* %l0 through %l7 */
- uint64_t lr_reg[6]; /* %o0 through %o5 */
- uint64_t lr_sp; /* %o6 */
- uint64_t lr_ra; /* %o7 */
- double lr_fpreg[16]; /* %f0 through %f30 */
-} La_sparc64_regs;
-
-typedef struct La_sparc64_retval
-{
- uint64_t lrv_reg[4]; /* %o0 through %o3 */
- double lrv_fprev[4]; /* %f0 through %f8 */
-} La_sparc64_retval;
-
-#endif
-
-__BEGIN_DECLS
-
-#if __WORDSIZE == 32
-
-extern Elf32_Addr la_sparc32_gnu_pltenter (Elf32_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_sparc32_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_sparc32_gnu_pltexit (Elf32_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_sparc32_regs *__inregs,
- La_sparc32_retval *__outregs,
- const char *__symname);
-
-#else
-
-extern Elf64_Addr la_sparc64_gnu_pltenter (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_sparc64_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_sparc64_gnu_pltexit (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_sparc64_regs *__inregs,
- La_sparc64_retval *__outregs,
- const char *__symname);
-
-#endif
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/long-double.h
@@ -1,27 +0,0 @@
-/* Properties of long double type. SPARC version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#include <bits/wordsize.h>
-
-#if !defined __NO_LONG_DOUBLE_MATH && __WORDSIZE == 32
-# define __LONG_DOUBLE_MATH_OPTIONAL 1
-# ifndef __LONG_DOUBLE_128__
-# define __NO_LONG_DOUBLE_MATH 1
-# endif
-#endif
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/mman.h
@@ -1,53 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/SPARC version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* The following definitions basically come from the kernel headers.
- But the kernel header is not namespace clean. */
-
-
-/* These are Linux-specific. */
-#define MAP_GROWSDOWN 0x0200 /* Stack-like segment. */
-#define MAP_DENYWRITE 0x0800 /* ETXTBSY */
-#define MAP_EXECUTABLE 0x1000 /* Mark it as an executable. */
-#define MAP_LOCKED 0x0100 /* Lock the mapping. */
-#define MAP_NORESERVE 0x0040 /* Don't check for reservations. */
-#define _MAP_NEW 0x80000000 /* Binary compatibility with SunOS. */
-#define MAP_POPULATE 0x8000 /* Populate (prefault) pagetables. */
-#define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
-#define MAP_STACK 0x20000 /* Allocation is for a stack. */
-#define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
-#define MAP_SYNC 0x80000 /* Perform synchronous page
- faults for the mapping. */
-#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
- underlying mapping. */
-
-/* Flags for `mlockall'. */
-#define MCL_CURRENT 0x2000 /* Lock all currently mapped pages. */
-#define MCL_FUTURE 0x4000 /* Lock all additions to address
- space. */
-#define MCL_ONFAULT 0x8000 /* Lock all pages that are
- faulted in. */
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
-
-/* Other flags. */
-#define MAP_RENAME MAP_ANONYMOUS
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/poll.h
@@ -1,49 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_POLL_H
-# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
-#endif
-
-/* Event types that can be polled for. These bits may be set in `events'
- to indicate the interesting event types; they will appear in `revents'
- to indicate the status of the file descriptor. */
-#define POLLIN 0x001 /* There is data to read. */
-#define POLLPRI 0x002 /* There is urgent data to read. */
-#define POLLOUT 0x004 /* Writing now will not block. */
-
-#if defined __USE_XOPEN || defined __USE_XOPEN2K8
-/* These values are defined in XPG4.2. */
-# define POLLRDNORM 0x040 /* Normal data may be read. */
-# define POLLRDBAND 0x080 /* Priority data may be read. */
-# define POLLWRNORM POLLOUT /* Writing now will not block. */
-# define POLLWRBAND 0x100 /* Priority data may be written. */
-#endif
-
-#ifdef __USE_GNU
-/* These are extensions for Linux. */
-# define POLLMSG 0x200
-# define POLLREMOVE 0x400
-# define POLLRDHUP 0x800
-#endif
-
-/* Event types always implicitly polled for. These bits need not be set in
- `events', but they will appear in `revents' to indicate the status of
- the file descriptor. */
-#define POLLERR 0x008 /* Error condition. */
-#define POLLHUP 0x010 /* Hung up. */
-#define POLLNVAL 0x020 /* Invalid polling request. */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/procfs-extra.h
@@ -1,88 +0,0 @@
-/* Extra sys/procfs.h definitions. SPARC version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs-extra.h> directly; use <sys/procfs.h> instead."
-#endif
-
-#if __WORDSIZE == 64
-
-/* Provide 32-bit variants so that BFD can read 32-bit
- core files. */
-#define ELF_NGREG32 38
-typedef struct
- {
- union
- {
- unsigned int pr_regs[32];
- double pr_dregs[16];
- } pr_fr;
- unsigned int __glibc_reserved;
- unsigned int pr_fsr;
- unsigned char pr_qcnt;
- unsigned char pr_q_entrysize;
- unsigned char pr_en;
- unsigned int pr_q[64];
- } elf_fpregset_t32;
-
-typedef unsigned int elf_greg_t32;
-typedef elf_greg_t32 elf_gregset_t32[ELF_NGREG32];
-
-struct elf_prstatus32
- {
- struct elf_siginfo pr_info; /* Info associated with signal. */
- short int pr_cursig; /* Current signal. */
- unsigned int pr_sigpend; /* Set of pending signals. */
- unsigned int pr_sighold; /* Set of held signals. */
- __pid_t pr_pid;
- __pid_t pr_ppid;
- __pid_t pr_pgrp;
- __pid_t pr_sid;
- struct
- {
- int tv_sec, tv_usec;
- } pr_utime, /* User time. */
- pr_stime, /* System time. */
- pr_cutime, /* Cumulative user time. */
- pr_cstime; /* Cumulative system time. */
- elf_gregset_t32 pr_reg; /* GP registers. */
- int pr_fpvalid; /* True if math copro being used. */
- };
-
-struct elf_prpsinfo32
- {
- char pr_state; /* Numeric process state. */
- char pr_sname; /* Char for pr_state. */
- char pr_zomb; /* Zombie. */
- char pr_nice; /* Nice val. */
- unsigned int pr_flag; /* Flags. */
- unsigned short int pr_uid;
- unsigned short int pr_gid;
- int pr_pid, pr_ppid, pr_pgrp, pr_sid;
- /* Lots missing */
- char pr_fname[16]; /* Filename of executable. */
- char pr_psargs[ELF_PRARGSZ]; /* Initial part of arg list. */
- };
-
-typedef elf_gregset_t32 prgregset32_t;
-typedef elf_fpregset_t32 prfpregset32_t;
-
-typedef struct elf_prstatus32 prstatus32_t;
-typedef struct elf_prpsinfo32 prpsinfo32_t;
-
-#endif /* sparc64 */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/procfs-id.h
@@ -1,30 +0,0 @@
-/* Types of pr_uid and pr_gid in struct elf_prpsinfo. SPARC version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
-#endif
-
-#if __WORDSIZE == 64
-typedef unsigned int __pr_uid_t;
-typedef unsigned int __pr_gid_t;
-#else
-typedef unsigned short int __pr_uid_t;
-typedef unsigned short int __pr_gid_t;
-#endif
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/procfs.h
@@ -1,61 +0,0 @@
-/* Types for registers for sys/procfs.h. SPARC version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
-#endif
-
-#include <signal.h>
-#include <sys/ucontext.h>
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 64
-
-#define ELF_NGREG 36
-
-typedef struct
- {
- unsigned long pr_regs[32];
- unsigned long pr_fsr;
- unsigned long pr_gsr;
- unsigned long pr_fprs;
- } elf_fpregset_t;
-
-#else /* sparc32 */
-
-#define ELF_NGREG 38
-
-typedef struct
- {
- union
- {
- unsigned long pr_regs[32];
- double pr_dregs[16];
- } pr_fr;
- unsigned long __glibc_reserved;
- unsigned long pr_fsr;
- unsigned char pr_qcnt;
- unsigned char pr_q_entrysize;
- unsigned char pr_en;
- unsigned int pr_q[64];
- } elf_fpregset_t;
-
-#endif /* sparc32 */
-
-typedef unsigned long elf_greg_t;
-typedef elf_greg_t elf_gregset_t[ELF_NGREG];
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/pthread_stack_min.h
@@ -1,20 +0,0 @@
-/* Definition of PTHREAD_STACK_MIN. Linux/SPARC version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public License as
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with the GNU C Library; see the file COPYING.LIB. If
- not, see <https://www.gnu.org/licenses/>. */
-
-/* Minimum size for a thread. We are free to choose a reasonable value. */
-#define PTHREAD_STACK_MIN 24576
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/resource.h
@@ -1,238 +0,0 @@
-/* Bit values & structures for resource limits. Linux/SPARC version.
- Copyright (C) 1994-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RESOURCE_H
-# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
-#endif
-
-#include <bits/types.h>
-
-/* Transmute defines to enumerations. The macro re-definitions are
- necessary because some programs want to test for operating system
- features with #ifdef RUSAGE_SELF. In ISO C the reflexive
- definition is a no-op. */
-
-/* Kinds of resource limit. */
-enum __rlimit_resource
-{
- /* Per-process CPU limit, in seconds. */
- RLIMIT_CPU = 0,
-#define RLIMIT_CPU RLIMIT_CPU
-
- /* Largest file that can be created, in bytes. */
- RLIMIT_FSIZE = 1,
-#define RLIMIT_FSIZE RLIMIT_FSIZE
-
- /* Maximum size of data segment, in bytes. */
- RLIMIT_DATA = 2,
-#define RLIMIT_DATA RLIMIT_DATA
-
- /* Maximum size of stack segment, in bytes. */
- RLIMIT_STACK = 3,
-#define RLIMIT_STACK RLIMIT_STACK
-
- /* Largest core file that can be created, in bytes. */
- RLIMIT_CORE = 4,
-#define RLIMIT_CORE RLIMIT_CORE
-
- /* Largest resident set size, in bytes.
- This affects swapping; processes that are exceeding their
- resident set size will be more likely to have physical memory
- taken from them. */
- __RLIMIT_RSS = 5,
-#define RLIMIT_RSS __RLIMIT_RSS
-
- /* Number of open files. */
- RLIMIT_NOFILE = 6,
- __RLIMIT_OFILE = RLIMIT_NOFILE, /* BSD name for same. */
-#define RLIMIT_NOFILE RLIMIT_NOFILE
-#define RLIMIT_OFILE __RLIMIT_OFILE
-
- /* Address space limit (?) */
- RLIMIT_AS = 9,
-#define RLIMIT_AS RLIMIT_AS
-
- /* Number of processes. */
- __RLIMIT_NPROC = 7,
-#define RLIMIT_NPROC __RLIMIT_NPROC
-
- /* Locked-in-memory address space. */
- __RLIMIT_MEMLOCK = 8,
-#define RLIMIT_MEMLOCK __RLIMIT_MEMLOCK
-
- /* Maximum number of file locks. */
- __RLIMIT_LOCKS = 10,
-#define RLIMIT_LOCKS __RLIMIT_LOCKS
-
- /* Maximum number of pending signals. */
- __RLIMIT_SIGPENDING = 11,
-#define RLIMIT_SIGPENDING __RLIMIT_SIGPENDING
-
- /* Maximum bytes in POSIX message queues. */
- __RLIMIT_MSGQUEUE = 12,
-#define RLIMIT_MSGQUEUE __RLIMIT_MSGQUEUE
-
- /* Maximum nice priority allowed to raise to.
- Nice levels 19 .. -20 correspond to 0 .. 39
- values of this resource limit. */
- __RLIMIT_NICE = 13,
-#define RLIMIT_NICE __RLIMIT_NICE
-
- /* Maximum realtime priority allowed for non-priviledged
- processes. */
- __RLIMIT_RTPRIO = 14,
-#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
-
- /* Maximum CPU time in microseconds that a process scheduled under a real-time
- scheduling policy may consume without making a blocking system
- call before being forcibly descheduled. */
- __RLIMIT_RTTIME = 15,
-#define RLIMIT_RTTIME __RLIMIT_RTTIME
-
- __RLIMIT_NLIMITS = 16,
- __RLIM_NLIMITS = __RLIMIT_NLIMITS
-#define RLIMIT_NLIMITS __RLIMIT_NLIMITS
-#define RLIM_NLIMITS __RLIM_NLIMITS
-};
-
-/* Value to indicate that there is no limit. */
-#if __WORDSIZE == 64
-
-#ifndef __USE_FILE_OFFSET64
-# define RLIM_INFINITY ((unsigned long int)(~0UL))
-#else
-# define RLIM_INFINITY 0xffffffffffffffffuLL
-#endif
-
-#ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffuLL
-#endif
-
-#else
-
-#ifndef __USE_FILE_OFFSET64
-# define RLIM_INFINITY ((long int)(~0UL >> 1))
-#else
-# define RLIM_INFINITY 0xffffffffffffffffLL
-#endif
-
-#ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0xffffffffffffffffLL
-#endif
-
-#endif
-
-/* We can represent all limits. */
-#define RLIM_SAVED_MAX RLIM_INFINITY
-#define RLIM_SAVED_CUR RLIM_INFINITY
-
-
-/* Type for resource quantity measurement. */
-#ifndef __USE_FILE_OFFSET64
-typedef __rlim_t rlim_t;
-#else
-typedef __rlim64_t rlim_t;
-#endif
-#ifdef __USE_LARGEFILE64
-typedef __rlim64_t rlim64_t;
-#endif
-
-struct rlimit
- {
- /* The current (soft) limit. */
- rlim_t rlim_cur;
- /* The hard limit. */
- rlim_t rlim_max;
- };
-
-#ifdef __USE_LARGEFILE64
-struct rlimit64
- {
- /* The current (soft) limit. */
- rlim64_t rlim_cur;
- /* The hard limit. */
- rlim64_t rlim_max;
- };
-#endif
-
-/* Whose usage statistics do you want? */
-enum __rusage_who
-{
- /* The calling process. */
- RUSAGE_SELF = 0,
-#define RUSAGE_SELF RUSAGE_SELF
-
- /* All of its terminated child processes. */
- RUSAGE_CHILDREN = -1
-#define RUSAGE_CHILDREN RUSAGE_CHILDREN
-
-#ifdef __USE_GNU
- ,
- /* The calling thread. */
- RUSAGE_THREAD = 1
-# define RUSAGE_THREAD RUSAGE_THREAD
- /* Name for the same functionality on Solaris. */
-# define RUSAGE_LWP RUSAGE_THREAD
-#endif
-};
-
-#include <bits/types/struct_timeval.h>
-#include <bits/types/struct_rusage.h>
-
-/* Priority limits. */
-#define PRIO_MIN -20 /* Minimum priority a process can have. */
-#define PRIO_MAX 20 /* Maximum priority a process can have. */
-
-/* The type of the WHICH argument to `getpriority' and `setpriority',
- indicating what flavor of entity the WHO argument specifies. */
-enum __priority_which
-{
- PRIO_PROCESS = 0, /* WHO is a process ID. */
-#define PRIO_PROCESS PRIO_PROCESS
- PRIO_PGRP = 1, /* WHO is a process group ID. */
-#define PRIO_PGRP PRIO_PGRP
- PRIO_USER = 2 /* WHO is a user ID. */
-#define PRIO_USER PRIO_USER
-};
-
-__BEGIN_DECLS
-
-#ifdef __USE_GNU
-/* Modify and return resource limits of a process atomically. */
-# ifndef __USE_FILE_OFFSET64
-extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit) __THROW;
-# else
-# ifdef __REDIRECT_NTH
-extern int __REDIRECT_NTH (prlimit, (__pid_t __pid,
- enum __rlimit_resource __resource,
- const struct rlimit *__new_limit,
- struct rlimit *__old_limit), prlimit64);
-# else
-# define prlimit prlimit64
-# endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int prlimit64 (__pid_t __pid, enum __rlimit_resource __resource,
- const struct rlimit64 *__new_limit,
- struct rlimit64 *__old_limit) __THROW;
-# endif
-#endif
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/rseq.h
@@ -1,29 +0,0 @@
-/* Restartable Sequences architecture header. Stub version.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RSEQ_H
-# error "Never use <bits/rseq.h> directly; include <sys/rseq.h> instead."
-#endif
-
-/* RSEQ_SIG is a signature required before each abort handler code.
-
- It is a 32-bit value that maps to actual architecture code compiled
- into applications and libraries. It needs to be defined for each
- architecture. When choosing this value, it needs to be taken into
- account that generating invalid instructions may have ill effects on
- tools like objdump, and may also have impact on the CPU speculative
- execution efficiency in some cases. */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/setjmp.h
@@ -1,67 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SETJMP_H
-#define _BITS_SETJMP_H 1
-
-#if !defined _SETJMP_H && !defined _PTHREAD_H
-# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 64
-
-#ifndef _ASM
-typedef struct __sparc64_jmp_buf
- {
- struct __sparc64_jmp_buf *__uc_link;
- unsigned long __uc_flags;
- unsigned long __uc_sigmask;
- struct __sparc64_jmp_buf_mcontext
- {
- unsigned long __mc_gregs[19];
- unsigned long __mc_fp;
- unsigned long __mc_i7;
- struct __sparc64_jmp_buf_fpu
- {
- union
- {
- unsigned int __sregs[32];
- unsigned long __dregs[32];
- long double __qregs[16];
- } __mcfpu_fpregs;
- unsigned long __mcfpu_fprs;
- unsigned long __mcfpu_gsr;
- void *__mcfpu_fq;
- unsigned char __mcfpu_qcnt;
- unsigned char __mcfpu_qentsz;
- unsigned char __mcfpu_enab;
- } __mc_fpregs;
- } __uc_mcontext;
- } __jmp_buf[1];
-#endif
-
-#else
-
-#ifndef _ASM
-typedef int __jmp_buf[3];
-#endif
-
-#endif
-
-#endif /* bits/setjmp.h */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/shmlba.h
@@ -1,29 +0,0 @@
-/* Define SHMLBA. SPARC version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
-#endif
-
-__BEGIN_DECLS
-
-/* Segment low boundary address multiple. */
-#define SHMLBA (__getshmlba ())
-extern int __getshmlba (void) __attribute__ ((__const__));
-
-__END_DECLS
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/sigaction.h
@@ -1,89 +0,0 @@
-/* The proper definitions for Linux/SPARC sigaction.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGACTION_H
-#define _BITS_SIGACTION_H 1
-
-#ifndef _SIGNAL_H
-# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-/* Structure describing the action to be taken when a signal arrives. */
-struct sigaction
- {
- /* Signal handler. */
-#if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED
- union
- {
- /* Used if SA_SIGINFO is not set. */
- __sighandler_t sa_handler;
- /* Used if SA_SIGINFO is set. */
- void (*sa_sigaction) (int, siginfo_t *, void *);
- }
- __sigaction_handler;
-# define sa_handler __sigaction_handler.sa_handler
-# define sa_sigaction __sigaction_handler.sa_sigaction
-#else
- __sighandler_t sa_handler;
-#endif
-
- /* Additional set of signals to be blocked. */
- __sigset_t sa_mask;
-
- /* Special flags. */
-#if __WORDSIZE == 64
- int __glibc_reserved0;
-#endif
- int sa_flags;
-
- /* Not used by Linux/Sparc yet. */
- void (*sa_restorer) (void);
- };
-
-
-/* Bits in `sa_flags'. */
-#define SA_NOCLDSTOP 0x00000008 /* Don't send SIGCHLD when children stop. */
-#define SA_NOCLDWAIT 0x00000100 /* Don't create zombie on child death. */
-#define SA_SIGINFO 0x00000200 /* Invoke signal-catching function with
- three arguments instead of one. */
-#if defined __USE_XOPEN_EXTENDED || defined __USE_MISC
-# define SA_ONSTACK 0x00000001 /* Use signal stack by using `sa_restorer'. */
-#endif
-#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
-# define SA_RESTART 0x00000002 /* Restart syscall on signal return. */
-# define SA_NODEFER 0x00000020 /* Don't automatically block the signal when
- its handler is being executed. */
-# define SA_RESETHAND 0x00000004 /* Reset to SIG_DFL on entry to handler. */
-#endif
-#ifdef __USE_MISC
-# define SA_INTERRUPT 0x00000010 /* Historical no-op. */
-
-/* Some aliases for the SA_ constants. */
-# define SA_NOMASK SA_NODEFER
-# define SA_ONESHOT SA_RESETHAND
-# define SA_STACK SA_ONSTACK
-#endif
-
-/* Values for the HOW argument to `sigprocmask'. */
-#define SIG_BLOCK 1 /* Block signals. */
-#define SIG_UNBLOCK 2 /* Unblock signals. */
-#define SIG_SETMASK 4 /* Set the set of blocked signals. */
-
-#endif
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/sigcontext.h
@@ -1,82 +0,0 @@
-/* Copyright (C) 2000-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGCONTEXT_H
-#define _BITS_SIGCONTEXT_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32
-
-/* It is quite hard to choose what to put here, because
- Linux/sparc32 had at least 3 totally incompatible
- signal stack layouts.
- This one is for the "new" style signals, which are
- now delivered unless SA_SIGINFO is requested. */
-
-struct sigcontext
- {
- struct
- {
- unsigned int psr;
- unsigned int pc;
- unsigned int npc;
- unsigned int y;
- unsigned int u_regs[16]; /* globals and ins */
- } si_regs;
- int si_mask;
- };
-
-#else /* sparc64 */
-
-typedef struct
- {
- unsigned int si_float_regs [64];
- unsigned long si_fsr;
- unsigned long si_gsr;
- unsigned long si_fprs;
- } __siginfo_fpu_t;
-
-struct sigcontext
- {
- char sigc_info[128];
- struct
- {
- unsigned long u_regs[16]; /* globals and ins */
- unsigned long tstate;
- unsigned long tpc;
- unsigned long tnpc;
- unsigned int y;
- unsigned int fprs;
- } sigc_regs;
- __siginfo_fpu_t * sigc_fpu_save;
- struct
- {
- void * ss_sp;
- int ss_flags;
- unsigned long ss_size;
- } sigc_stack;
- unsigned long sigc_mask;
-};
-
-#endif /* sparc64 */
-
-#endif /* bits/sigcontext.h */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/siginfo-arch.h
@@ -1,17 +0,0 @@
-/* Architecture-specific adjustments to siginfo_t. SPARC version. */
-#ifndef _BITS_SIGINFO_ARCH_H
-#define _BITS_SIGINFO_ARCH_H 1
-
-/* The kernel uses int instead of long int (as in POSIX). In 32-bit
- mode, we can still use long int, but in 64-bit mode, we need to
- deviate from POSIX. */
-#if __WORDSIZE == 64
-# define __SI_BAND_TYPE int
-#endif
-
-#define __SI_SIGFAULT_ADDL \
- int _si_trapno;
-
-#define si_trapno _sifields._sigfault._si_trapno
-
-#endif
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/siginfo-consts-arch.h
@@ -1,12 +0,0 @@
-/* Architecture-specific additional siginfo constants. SPARC version. */
-#ifndef _BITS_SIGINFO_CONSTS_ARCH_H
-#define _BITS_SIGINFO_CONSTS_ARCH_H 1
-
-/* `si_code' values for SIGEMT signal. */
-enum
-{
- EMT_TAGOVF = 1 /* Tag overflow. */
-#define EMT_TAGOVF EMT_TAGOVF
-};
-
-#endif
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/signalfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SIGNALFD_H
-# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
-#endif
-
-/* Flags for signalfd. */
-enum
- {
- SFD_CLOEXEC = 0x400000,
-#define SFD_CLOEXEC SFD_CLOEXEC
- SFD_NONBLOCK = 0x004000
-#define SFD_NONBLOCK SFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/signum-arch.h
@@ -1,66 +0,0 @@
-/* Signal number definitions. Linux/SPARC version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGNUM_ARCH_H
-#define _BITS_SIGNUM_ARCH_H 1
-
-#ifndef _SIGNAL_H
-#error "Never include <bits/signum-arch.h> directly; use <signal.h> instead."
-#endif
-
-/* Adjustments and additions to the signal number constants for
- Linux/SPARC systems. Signal values on this platform were chosen
- for SunOS binary compatibility. */
-
-#define SIGEMT 7 /* Emulator trap. */
-#define SIGLOST 29 /* Resource lost (Sun); server died (GNU). */
-#define SIGPWR SIGLOST /* Power failure imminent (SysV). */
-
-/* Historical signals specified by POSIX. */
-#define SIGBUS 10 /* Bus error. */
-#define SIGSYS 12 /* Bad system call. */
-
-/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
-#define SIGURG 16 /* Urgent data is available at a socket. */
-#define SIGSTOP 17 /* Stop, unblockable. */
-#define SIGTSTP 18 /* Keyboard stop. */
-#define SIGCONT 19 /* Continue. */
-#define SIGCHLD 20 /* Child terminated or stopped. */
-#define SIGTTIN 21 /* Background read from control terminal. */
-#define SIGTTOU 22 /* Background write to control terminal. */
-#define SIGPOLL 23 /* Pollable event occurred (System V). */
-#define SIGXCPU 24 /* CPU time limit exceeded. */
-#define SIGVTALRM 26 /* Virtual timer expired. */
-#define SIGPROF 27 /* Profiling timer expired. */
-#define SIGXFSZ 25 /* File size limit exceeded. */
-#define SIGUSR1 30 /* User-defined signal 1. */
-#define SIGUSR2 31 /* User-defined signal 2. */
-
-/* Nonstandard signals found in all modern POSIX systems
- (including both BSD and Linux). */
-#define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
-
-/* Archaic names for compatibility. */
-#define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
-#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
-#define SIGCLD SIGCHLD /* Old System V name */
-
-#define __SIGRTMIN 32
-#define __SIGRTMAX 64
-
-#endif /* <signal.h> included. */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/sigstack.h
@@ -1,32 +0,0 @@
-/* sigstack, sigaltstack definitions.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGSTACK_H
-#define _BITS_SIGSTACK_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never include this file directly. Use <signal.h> instead"
-#endif
-
-/* Minimum stack size for a signal handler. */
-#define MINSIGSTKSZ 4096
-
-/* System default stack size. */
-#define SIGSTKSZ 16384
-
-#endif /* bits/sigstack.h */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/socket-constants.h
@@ -1,70 +0,0 @@
-/* Socket constants which vary among Linux architectures. Version for SPARC.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
-#endif
-
-#define SOL_SOCKET 65535
-#define SO_ACCEPTCONN 32768
-#define SO_BROADCAST 32
-#define SO_DONTROUTE 16
-#define SO_ERROR 4103
-#define SO_KEEPALIVE 8
-#define SO_LINGER 128
-#define SO_OOBINLINE 256
-#define SO_RCVBUF 4098
-#define SO_RCVLOWAT 2048
-#define SO_REUSEADDR 4
-#define SO_SNDBUF 4097
-#define SO_SNDLOWAT 4096
-#define SO_TYPE 4104
-
-#if __TIMESIZE == 64
-# define SO_RCVTIMEO 8192
-# define SO_SNDTIMEO 16384
-# define SO_TIMESTAMP 29
-# define SO_TIMESTAMPNS 33
-# define SO_TIMESTAMPING 35
-#else
-# define SO_RCVTIMEO_OLD 8192
-# define SO_SNDTIMEO_OLD 16384
-# define SO_RCVTIMEO_NEW 68
-# define SO_SNDTIMEO_NEW 69
-
-# define SO_TIMESTAMP_OLD 0x001d
-# define SO_TIMESTAMPNS_OLD 0x0021
-# define SO_TIMESTAMPING_OLD 0x0023
-# define SO_TIMESTAMP_NEW 0x0046
-# define SO_TIMESTAMPNS_NEW 0x0042
-# define SO_TIMESTAMPING_NEW 0x0043
-
-# ifdef __USE_TIME64_REDIRECTS
-# define SO_RCVTIMEO SO_RCVTIMEO_NEW
-# define SO_SNDTIMEO SO_SNDTIMEO_NEW
-# define SO_TIMESTAMP SO_TIMESTAMP_NEW
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_NEW
-# define SO_TIMESTAMPING SO_TIMESTAMPING_NEW
-# else
-# define SO_RCVTIMEO SO_RCVTIMEO_OLD
-# define SO_SNDTIMEO SO_SNDTIMEO_OLD
-# define SO_TIMESTAMP SO_TIMESTAMP_OLD
-# define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
-# define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
-# endif
-#endif
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/socket_type.h
@@ -1,55 +0,0 @@
-/* Define enum __socket_type for Linux/SPARC.
- Copyright (C) 1991-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SOCKET_H
-# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
-#endif
-
-/* Types of sockets. */
-enum __socket_type
-{
- SOCK_STREAM = 1, /* Sequenced, reliable, connection-based
- byte streams. */
-#define SOCK_STREAM SOCK_STREAM
- SOCK_DGRAM = 2, /* Connectionless, unreliable datagrams
- of fixed maximum length. */
-#define SOCK_DGRAM SOCK_DGRAM
- SOCK_RAW = 3, /* Raw protocol interface. */
-#define SOCK_RAW SOCK_RAW
- SOCK_RDM = 4, /* Reliably-delivered messages. */
-#define SOCK_RDM SOCK_RDM
- SOCK_SEQPACKET = 5, /* Sequenced, reliable, connection-based,
- datagrams of fixed maximum length. */
-#define SOCK_SEQPACKET SOCK_SEQPACKET
- SOCK_DCCP = 6, /* Datagram Congestion Control Protocol. */
-#define SOCK_DCCP SOCK_DCCP
- SOCK_PACKET = 10, /* Linux specific way of getting packets
- at the dev level. For writing rarp and
- other similar things on the user level. */
-#define SOCK_PACKET SOCK_PACKET
-
- /* Flags to be ORed into the type parameter of socket and socketpair and
- used for the flags parameter of paccept. */
-
- SOCK_CLOEXEC = 0x400000, /* Atomically set close-on-exec flag for the
- new descriptor(s). */
-#define SOCK_CLOEXEC SOCK_CLOEXEC
- SOCK_NONBLOCK = 0x004000 /* Atomically mark descriptor(s) as
- non-blocking. */
-#define SOCK_NONBLOCK SOCK_NONBLOCK
-};
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/struct_rwlock.h
@@ -1,58 +0,0 @@
-/* SPARC internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#if __WORDSIZE == 64
- int __cur_writer;
- int __shared;
- unsigned long int __pad1;
- unsigned long int __pad2;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned int __flags;
-#else
- unsigned char __pad1;
- unsigned char __pad2;
- unsigned char __shared;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- int __cur_writer;
-#endif
-};
-
-#if __WORDSIZE == 64
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
-#else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/struct_stat.h
@@ -1,139 +0,0 @@
-/* Definition for struct stat.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
-#endif
-
-#ifndef _BITS_STRUCT_STAT_H
-#define _BITS_STRUCT_STAT_H 1
-
-#include <bits/endian.h>
-#include <bits/wordsize.h>
-
-struct stat
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-#else
- __dev_t st_dev; /* Device. */
-# if __WORDSIZE == 64 || !defined __USE_FILE_OFFSET64
- unsigned short int __pad1;
- __ino_t st_ino; /* File serial number. */
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned short int __pad2;
-# ifndef __USE_FILE_OFFSET64
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
-# ifndef __USE_FILE_OFFSET64
- __blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
-# else
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# endif
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
-#endif /* __USE_TIME64_REDIRECTS */
- };
-
-#ifdef __USE_LARGEFILE64
-struct stat64
- {
-# ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-# else
- __dev_t st_dev; /* Device. */
-# if __WORDSIZE == 64
- unsigned short int __pad1;
-# endif
- __ino64_t st_ino; /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- unsigned short int __pad2;
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-# endif
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
-# endif /* __USE_TIME64_REDIRECTS */
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-#endif /* _BITS_STRUCT_STAT_H */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/termios-baud.h
@@ -1,46 +0,0 @@
-/* termios baud rate selection definitions. Linux/sparc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."
-#endif
-
-#ifdef __USE_MISC
-# define CBAUD 0x0000100f
-# define CBAUDEX 0x00001000
-# define CIBAUD 0x100f0000 /* input baud rate (not used) */
-# define CMSPAR 0x40000000 /* mark or space (stick) parity */
-# define CRTSCTS 0x80000000 /* flow control */
-#endif
-
-#define B57600 0x00001001
-#define B115200 0x00001002
-#define B230400 0x00001003
-#define B460800 0x00001004
-#define B76800 0x00001005
-#define B153600 0x00001006
-#define B307200 0x00001007
-#define B614400 0x00001008
-#define B921600 0x00001009
-#define B500000 0x0000100a
-#define B576000 0x0000100b
-#define B1000000 0x0000100c
-#define B1152000 0x0000100d
-#define B1500000 0x0000100e
-#define B2000000 0x0000100f
-#define __MAX_BAUD B2000000
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/termios-c_cc.h
@@ -1,43 +0,0 @@
-/* termios c_cc symbolic constant definitions. Linux/sparc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
-#endif
-
-/* c_cc characters */
-#define VINTR 0
-#define VQUIT 1
-#define VERASE 2
-#define VKILL 3
-#define VEOF 4
-#define VEOL 5
-#define VEOL2 6
-#define VSWTC 7
-#define VSTART 8
-#define VSTOP 9
-#define VSUSP 10
-#define VDSUSP 11 /* SunOS POSIX nicety I do believe... */
-#define VREPRINT 12
-#define VDISCARD 13
-#define VWERASE 14
-#define VLNEXT 15
-
-/* User apps assume vmin/vtime is shared with eof/eol */
-#define VMIN VEOF
-#define VTIME VEOL
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/termios-c_oflag.h
@@ -1,64 +0,0 @@
-/* termios output mode definitions. Linux/sparc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."
-#endif
-
-/* c_oflag bits */
-#define OPOST 0x00000001
-#define OLCUC 0x00000002
-#define ONLCR 0x00000004
-#define OCRNL 0x00000008
-#define ONOCR 0x00000010
-#define ONLRET 0x00000020
-#define OFILL 0x00000040
-#define OFDEL 0x00000080
-#if defined __USE_MISC || defined __USE_XOPEN
-# define NLDLY 0x00000100
-# define NL0 0x00000000
-# define NL1 0x00000100
-# define CRDLY 0x00000600
-# define CR0 0x00000000
-# define CR1 0x00000200
-# define CR2 0x00000400
-# define CR3 0x00000600
-# define TABDLY 0x00001800
-# define TAB0 0x00000000
-# define TAB1 0x00000800
-# define TAB2 0x00001000
-# define TAB3 0x00001800
-# define BSDLY 0x00002000
-# define BS0 0x00000000
-# define BS1 0x00002000
-#define FFDLY 0x00008000
-#define FF0 0x00000000
-#define FF1 0x00008000
-#endif
-#define VTDLY 0x00004000
-#define VT0 0x00000000
-#define VT1 0x00004000
-
-# if defined __USE_GNU
-#define PAGEOUT 0x00010000 /* SUNOS specific */
-#define WRAP 0x00020000 /* SUNOS specific */
-# endif
-
-#ifdef __USE_MISC
-# define XTABS 0x00001800
-#endif
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/termios-struct.h
@@ -1,34 +0,0 @@
-/* struct termios definition. Linux/sparc version.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _TERMIOS_H
-# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
-#endif
-
-#define NCCS 17
-struct termios
- {
- tcflag_t c_iflag; /* input mode flags */
- tcflag_t c_oflag; /* output mode flags */
- tcflag_t c_cflag; /* control mode flags */
- tcflag_t c_lflag; /* local mode flags */
- cc_t c_line; /* line discipline */
- cc_t c_cc[NCCS]; /* control characters */
-#define _HAVE_STRUCT_TERMIOS_C_ISPEED 0
-#define _HAVE_STRUCT_TERMIOS_C_OSPEED 0
- };
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/timerfd.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2008-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_TIMERFD_H
-# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
-#endif
-
-/* Bits to be set in the FLAGS parameter of `timerfd_create'. */
-enum
- {
- TFD_CLOEXEC = 0x400000,
-#define TFD_CLOEXEC TFD_CLOEXEC
- TFD_NONBLOCK = 0x004000
-#define TFD_NONBLOCK TFD_NONBLOCK
- };
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/timesize.h
@@ -1,22 +0,0 @@
-/* Bit size of the time_t type at glibc build time, Linux/sparc.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#include <bits/wordsize.h>
-
-/* Size in bits of the 'time_t' type of the default ABI. */
-#define __TIMESIZE __WORDSIZE
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/typesizes.h
@@ -1,95 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. Linux/SPARC version.
- Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __U32_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __S32_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#if defined __arch64__ || defined __sparcv9
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for __rlim_t and __rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-
-/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
-# define __STATFS_MATCHES_STATFS64 1
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-
-# define __STATFS_MATCHES_STATFS64 0
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/bits/wordsize.h
@@ -1,10 +0,0 @@
-/* Determine the wordsize from the preprocessor defines. */
-
-#if defined __arch64__ || defined __sparcv9
-# define __WORDSIZE 64
-#else
-# define __WORDSIZE 32
-# define __WORDSIZE32_SIZE_ULONG 0
-# define __WORDSIZE32_PTRDIFF_LONG 0
-#endif
-#define __WORDSIZE_TIME64_COMPAT32 1
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/gnu/lib-names.h
@@ -1,16 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32
-# include <gnu/lib-names-32.h>
-#endif
-#if __WORDSIZE == 64
-# include <gnu/lib-names-64.h>
-#endif
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/gnu/stubs.h
@@ -1,12 +0,0 @@
-/* This file is automatically generated.
- This file selects the right generated file of `__stub_FUNCTION' macros
- based on the architecture being compiled for. */
-
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32
-# include <gnu/stubs-32.h>
-#endif
-#if __WORDSIZE == 64
-# include <gnu/stubs-64.h>
-#endif
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/sys/ptrace.h
@@ -1,247 +0,0 @@
-/* `ptrace' debugger support interface. Linux/SPARC version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PTRACE_H
-#define _SYS_PTRACE_H 1
-
-#include <features.h>
-#include <bits/types.h>
-#include <bits/wordsize.h>
-
-/* Linux/SPARC kernels up to 2.3.18 do not care much
- about what namespace pollution, so use a kludge now. */
-#undef PTRACE_GETREGS
-#undef PTRACE_SETREGS
-#undef PTRACE_GETFPREGS
-#undef PTRACE_SETFPREGS
-#undef PTRACE_READDATA
-#undef PTRACE_WRITEDATA
-#undef PTRACE_READTEXT
-#undef PTRACE_WRITETEXT
-#undef PTRACE_SUNDETACH
-
-__BEGIN_DECLS
-
-/* Type of the REQUEST argument to `ptrace.' */
-enum __ptrace_request
-{
- /* Indicate that the process making this request should be traced.
- All signals received by this process can be intercepted by its
- parent, and its parent can use the other `ptrace' requests. */
- PTRACE_TRACEME = 0,
-#define PT_TRACE_ME PTRACE_TRACEME
-
- /* Return the word in the process's text space at address ADDR. */
- PTRACE_PEEKTEXT = 1,
-#define PT_READ_I PTRACE_PEEKTEXT
-
- /* Return the word in the process's data space at address ADDR. */
- PTRACE_PEEKDATA = 2,
-#define PT_READ_D PTRACE_PEEKDATA
-
- /* Return the word in the process's user area at offset ADDR. */
- PTRACE_PEEKUSER = 3,
-#define PT_READ_U PTRACE_PEEKUSER
-
- /* Write the word DATA into the process's text space at address ADDR. */
- PTRACE_POKETEXT = 4,
-#define PT_WRITE_I PTRACE_POKETEXT
-
- /* Write the word DATA into the process's data space at address ADDR. */
- PTRACE_POKEDATA = 5,
-#define PT_WRITE_D PTRACE_POKEDATA
-
- /* Write the word DATA into the process's user area at offset ADDR. */
- PTRACE_POKEUSER = 6,
-#define PT_WRITE_U PTRACE_POKEUSER
-
- /* Continue the process. */
- PTRACE_CONT = 7,
-#define PT_CONTINUE PTRACE_CONT
-
- /* Kill the process. */
- PTRACE_KILL = 8,
-#define PT_KILL PTRACE_KILL
-
- /* Single step the process. */
- PTRACE_SINGLESTEP = 9,
-#define PT_STEP PTRACE_SINGLESTEP
-
- /* Detach from a process attached to with PTRACE_ATTACH. */
- PTRACE_DETACH = 11,
-#define PT_DETACH PTRACE_DETACH
-
- /* This define is needed for older programs which were
- trying to work around sparc-linux ptrace nastiness. */
-#define PTRACE_SUNDETACH PTRACE_DETACH
-
-#if __WORDSIZE == 32
-
- /* Get all general purpose registers used by a processes.
- This is not supported on all machines. */
- PTRACE_GETREGS = 12,
-#define PT_GETREGS PTRACE_GETREGS
-
- /* Set all general purpose registers used by a processes.
- This is not supported on all machines. */
- PTRACE_SETREGS = 13,
-#define PT_SETREGS PTRACE_SETREGS
-
- /* Get all floating point registers used by a processes.
- This is not supported on all machines. */
- PTRACE_GETFPREGS = 14,
-#define PT_GETFPREGS PTRACE_GETFPREGS
-
- /* Set all floating point registers used by a processes.
- This is not supported on all machines. */
- PTRACE_SETFPREGS = 15,
-#define PT_SETFPREGS PTRACE_SETFPREGS
-
-#endif
-
- /* Attach to a process that is already running. */
- PTRACE_ATTACH = 16,
-#define PT_ATTACH PTRACE_ATTACH
-
- /* Write several bytes at a time. */
- PTRACE_WRITEDATA = 17,
-#define PTRACE_WRITEDATA PTRACE_WRITEDATA
-
- /* Read several bytes at a time. */
- PTRACE_READTEXT = 18,
-#define PTRACE_READTEXT PTRACE_READTEXT
-#define PTRACE_READDATA PTRACE_READTEXT
-
- /* Write several bytes at a time. */
- PTRACE_WRITETEXT = 19,
-#define PTRACE_WRITETEXT PTRACE_WRITETEXT
-
-#if __WORDSIZE == 64
-
- /* Get all general purpose registers used by a processes.
- This is not supported on all machines. */
- PTRACE_GETREGS = 22,
-#define PT_GETREGS PTRACE_GETREGS
-
- /* Set all general purpose registers used by a processes.
- This is not supported on all machines. */
- PTRACE_SETREGS = 23,
-#define PT_SETREGS PTRACE_SETREGS
-
-#endif
-
- /* Continue and stop at the next entry to or return from syscall. */
- PTRACE_SYSCALL = 24,
-#define PTRACE_SYSCALL PTRACE_SYSCALL
-
-#if __WORDSIZE == 64
-
- /* Get all floating point registers used by a processes.
- This is not supported on all machines. */
- PTRACE_GETFPREGS = 25,
-#define PT_GETFPREGS PTRACE_GETFPREGS
-
- /* Set all floating point registers used by a processes.
- This is not supported on all machines. */
- PTRACE_SETFPREGS = 26,
-#define PT_SETFPREGS PTRACE_SETFPREGS
-
-#endif
-
- /* Set ptrace filter options. */
- PTRACE_SETOPTIONS = 0x4200,
-#define PT_SETOPTIONS PTRACE_SETOPTIONS
-
- /* Get last ptrace message. */
- PTRACE_GETEVENTMSG = 0x4201,
-#define PT_GETEVENTMSG PTRACE_GETEVENTMSG
-
- /* Get siginfo for process. */
- PTRACE_GETSIGINFO = 0x4202,
-#define PT_GETSIGINFO PTRACE_GETSIGINFO
-
- /* Set new siginfo for process. */
- PTRACE_SETSIGINFO = 0x4203,
-#define PT_SETSIGINFO PTRACE_SETSIGINFO
-
- /* Get register content. */
- PTRACE_GETREGSET = 0x4204,
-#define PTRACE_GETREGSET PTRACE_GETREGSET
-
- /* Set register content. */
- PTRACE_SETREGSET = 0x4205,
-#define PTRACE_SETREGSET PTRACE_SETREGSET
-
- /* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
- signal or group stop state. */
- PTRACE_SEIZE = 0x4206,
-#define PTRACE_SEIZE PTRACE_SEIZE
-
- /* Trap seized tracee. */
- PTRACE_INTERRUPT = 0x4207,
-#define PTRACE_INTERRUPT PTRACE_INTERRUPT
-
- /* Wait for next group event. */
- PTRACE_LISTEN = 0x4208,
-#define PTRACE_LISTEN PTRACE_LISTEN
-
- /* Retrieve siginfo_t structures without removing signals from a queue. */
- PTRACE_PEEKSIGINFO = 0x4209,
-#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
-
- /* Get the mask of blocked signals. */
- PTRACE_GETSIGMASK = 0x420a,
-#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
-
- /* Change the mask of blocked signals. */
- PTRACE_SETSIGMASK = 0x420b,
-#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
-
- /* Get seccomp BPF filters. */
- PTRACE_SECCOMP_GET_FILTER = 0x420c,
-#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
-
- /* Get seccomp BPF filter metadata. */
- PTRACE_SECCOMP_GET_METADATA = 0x420d,
-#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
-
- /* Get information about system call. */
- PTRACE_GET_SYSCALL_INFO = 0x420e,
-#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
-
- /* Get rseq configuration information. */
- PTRACE_GET_RSEQ_CONFIGURATION = 0x420f,
-#define PTRACE_GET_RSEQ_CONFIGURATION PTRACE_GET_RSEQ_CONFIGURATION
-
- /* Set configuration for syscall user dispatch. */
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG = 0x4210,
-#define PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-
- /* Get configuration for syscall user dispatch. */
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG = 0x4211
-#define PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-};
-
-
-#include <bits/ptrace-shared.h>
-
-__END_DECLS
-
-#endif /* _SYS_PTRACE_H */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/sys/ucontext.h
@@ -1,304 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include <features.h>
-
-#include <bits/types/sigset_t.h>
-#include <bits/types/stack_t.h>
-
-#include <bits/wordsize.h>
-
-
-#ifdef __USE_MISC
-# define __ctx(fld) fld
-#else
-# define __ctx(fld) __ ## fld
-#endif
-
-#if __WORDSIZE == 64
-
-#define __MC_NGREG 19
-#ifdef __USE_MISC
-# define MC_TSTATE 0
-# define MC_PC 1
-# define MC_NPC 2
-# define MC_Y 3
-# define MC_G1 4
-# define MC_G2 5
-# define MC_G3 6
-# define MC_G4 7
-# define MC_G5 8
-# define MC_G6 9
-# define MC_G7 10
-# define MC_O0 11
-# define MC_O1 12
-# define MC_O2 13
-# define MC_O3 14
-# define MC_O4 15
-# define MC_O5 16
-# define MC_O6 17
-# define MC_O7 18
-# define MC_NGREG __MC_NGREG
-#endif
-
-typedef unsigned long mc_greg_t;
-typedef mc_greg_t mc_gregset_t[__MC_NGREG];
-
-#ifdef __USE_MISC
-# define MC_MAXFPQ 16
-#endif
-struct __mc_fq {
- unsigned long *__ctx(mcfq_addr);
- unsigned int __ctx(mcfq_insn);
-};
-
-typedef struct {
- union {
- unsigned int __ctx(sregs)[32];
- unsigned long __ctx(dregs)[32];
- long double __ctx(qregs)[16];
- } __ctx(mcfpu_fregs);
- unsigned long __ctx(mcfpu_fsr);
- unsigned long __ctx(mcfpu_fprs);
- unsigned long __ctx(mcfpu_gsr);
- struct __mc_fq *__ctx(mcfpu_fq);
- unsigned char __ctx(mcfpu_qcnt);
- unsigned char __ctx(mcfpu_qentsz);
- unsigned char __ctx(mcfpu_enab);
-} mc_fpu_t;
-
-typedef struct {
- mc_gregset_t __ctx(mc_gregs);
- mc_greg_t __ctx(mc_fp);
- mc_greg_t __ctx(mc_i7);
- mc_fpu_t __ctx(mc_fpregs);
-} mcontext_t;
-
-typedef struct ucontext_t {
- struct ucontext_t *uc_link;
- unsigned long __ctx(uc_flags);
- unsigned long __uc_sigmask;
- mcontext_t uc_mcontext;
- stack_t uc_stack;
- sigset_t uc_sigmask;
-} ucontext_t;
-
-#endif /* __WORDISIZE == 64 */
-
-/*
- * Location of the users' stored registers relative to R0.
- * Usage is as an index into a gregset_t array or as u.u_ar0[XX].
- */
-#ifdef __USE_MISC
-# define REG_PSR (0)
-# define REG_PC (1)
-# define REG_nPC (2)
-# define REG_Y (3)
-# define REG_G1 (4)
-# define REG_G2 (5)
-# define REG_G3 (6)
-# define REG_G4 (7)
-# define REG_G5 (8)
-# define REG_G6 (9)
-# define REG_G7 (10)
-# define REG_O0 (11)
-# define REG_O1 (12)
-# define REG_O2 (13)
-# define REG_O3 (14)
-# define REG_O4 (15)
-# define REG_O5 (16)
-# define REG_O6 (17)
-# define REG_O7 (18)
-#endif
-
-/*
- * A gregset_t is defined as an array type for compatibility with the reference
- * source. This is important due to differences in the way the C language
- * treats arrays and structures as parameters.
- *
- * Note that NGREG is really (sizeof (struct regs) / sizeof (greg_t)),
- * but that the ABI defines it absolutely to be 21 (resp. 19).
- */
-
-#if __WORDSIZE == 64
-
-# define __NGREG 21
-# ifdef __USE_MISC
-# define REG_ASI (19)
-# define REG_FPRS (20)
-
-# define NGREG __NGREG
-# endif
-typedef long greg_t;
-
-#else /* __WORDSIZE == 32 */
-
-# define __NGREG 19
-# ifdef __USE_MISC
-# define NGREG __NGREG
-# endif
-typedef int greg_t;
-
-#endif /* __WORDSIZE == 32 */
-
-typedef greg_t gregset_t[__NGREG];
-
-/*
- * The following structures define how a register window can appear on the
- * stack. This structure is available (when required) through the `gwins'
- * field of an mcontext (nested within ucontext). SPARC_MAXWINDOW is the
- * maximum number of outstanding registers window defined in the SPARC
- * architecture (*not* implementation).
- */
-# define __SPARC_MAXREGWINDOW 31 /* max windows in SPARC arch. */
-#ifdef __USE_MISC
-# define SPARC_MAXREGWINDOW __SPARC_MAXREGWINDOW
-#endif
-struct __rwindow
- {
- greg_t __ctx(rw_local)[8]; /* locals */
- greg_t __ctx(rw_in)[8]; /* ins */
- };
-
-#ifdef __USE_MISC
-# define rw_fp __ctx(rw_in)[6] /* frame pointer */
-# define rw_rtn __ctx(rw_in)[7] /* return address */
-#endif
-
-typedef struct
- {
- int __ctx(wbcnt);
- int *__ctx(spbuf)[__SPARC_MAXREGWINDOW];
- struct __rwindow __ctx(wbuf)[__SPARC_MAXREGWINDOW];
- } gwindows_t;
-
-/*
- * Floating point definitions.
- */
-
-#ifdef __USE_MISC
-# define MAXFPQ 16 /* max # of fpu queue entries currently supported */
-#endif
-
-/*
- * struct fq defines the minimal format of a floating point instruction queue
- * entry. The size of entries in the floating point queue are implementation
- * dependent. The union FQu is guaranteed to be the first field in any ABI
- * conformant system implementation. Any additional fields provided by an
- * implementation should not be used applications designed to be ABI conformant. */
-
-struct __fpq
- {
- unsigned long *__ctx(fpq_addr); /* address */
- unsigned long __ctx(fpq_instr); /* instruction */
- };
-
-struct __fq
- {
- union /* FPU inst/addr queue */
- {
- double __ctx(whole);
- struct __fpq __ctx(fpq);
- } __ctx(FQu);
- };
-
-#ifdef __USE_MISC
-# define FPU_REGS_TYPE unsigned
-# define FPU_DREGS_TYPE unsigned long long
-# define V7_FPU_FSR_TYPE unsigned
-# define V9_FPU_FSR_TYPE unsigned long long
-# define V9_FPU_FPRS_TYPE unsigned
-#endif
-
-#if __WORDSIZE == 64
-
-typedef struct
- {
- union { /* FPU floating point regs */
- unsigned __ctx(fpu_regs)[32]; /* 32 singles */
- double __ctx(fpu_dregs)[32]; /* 32 doubles */
- long double __ctx(fpu_qregs)[16]; /* 16 quads */
- } __ctx(fpu_fr);
- struct __fq *__ctx(fpu_q); /* ptr to array of FQ entries */
- unsigned long __ctx(fpu_fsr); /* FPU status register */
- unsigned char __ctx(fpu_qcnt); /* # of entries in saved FQ */
- unsigned char __ctx(fpu_q_entrysize); /* # of bytes per FQ entry */
- unsigned char __ctx(fpu_en); /* flag signifying fpu in use */
- } fpregset_t;
-
-#else /* __WORDSIZE == 32 */
-
-typedef struct
- {
- union { /* FPU floating point regs */
- __extension__ unsigned long long __ctx(fpu_regs)[32]; /* 32 singles */
- double __ctx(fpu_dregs)[16]; /* 16 doubles */
- } __ctx(fpu_fr);
- struct __fq *__ctx(fpu_q); /* ptr to array of FQ entries */
- unsigned __ctx(fpu_fsr); /* FPU status register */
- unsigned char __ctx(fpu_qcnt); /* # of entries in saved FQ */
- unsigned char __ctx(fpu_q_entrysize); /* # of bytes per FQ entry */
- unsigned char __ctx(fpu_en); /* flag signifying fpu in use */
- } fpregset_t;
-
-/*
- * The following structure is for associating extra register state with
- * the ucontext structure and is kept within the uc_mcontext filler area.
- *
- * If (xrs_id == XRS_ID) then the xrs_ptr field is a valid pointer to
- * extra register state. The exact format of the extra register state
- * pointed to by xrs_ptr is platform-dependent.
- *
- * Note: a platform may or may not manage extra register state.
- */
-typedef struct
- {
- unsigned int __ctx(xrs_id); /* indicates xrs_ptr validity */
- void * __ctx(xrs_ptr); /* ptr to extra reg state */
- } xrs_t;
-
-#ifdef __USE_MISC
-# define XRS_ID 0x78727300 /* the string "xrs" */
-#endif
-
-typedef struct
- {
- gregset_t __ctx(gregs); /* general register set */
- gwindows_t *__ctx(gwins); /* POSSIBLE pointer to register
- windows */
- fpregset_t __ctx(fpregs); /* floating point register set */
- xrs_t __ctx(xrs); /* POSSIBLE extra register state
- association */
- long __glibc_reserved1[19];
- } mcontext_t;
-
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long __ctx(uc_flags);
- struct ucontext_t *uc_link;
- sigset_t uc_sigmask;
- stack_t uc_stack;
- mcontext_t uc_mcontext;
- } ucontext_t;
-
-#endif /* __WORDSIZE == 32 */
-#endif /* sys/ucontext.h */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/sys/user.h
@@ -1,86 +0,0 @@
-/* Copyright (C) 2003-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_USER_H
-#define _SYS_USER_H 1
-
-#include <stddef.h>
-
-struct sunos_regs
-{
- unsigned int psr, pc, npc, y;
- unsigned int regs[15];
-};
-
-struct sunos_fpqueue
-{
- unsigned int *addr;
- unsigned int inst;
-};
-
-struct sunos_fp
-{
- union
- {
- unsigned int regs[32];
- double reg_dbls[16];
- } fregs;
- unsigned int fsr;
- unsigned int flags;
- unsigned int extra;
- unsigned int fpq_count;
- struct sunos_fpqueue fpq[16];
-};
-
-struct sunos_fpu
-{
- struct sunos_fp fpstatus;
-};
-
-/* The SunOS core file header layout. */
-struct user {
- unsigned int magic;
- unsigned int len;
- struct sunos_regs regs;
- struct
- {
- unsigned char a_dynamic :1;
- unsigned char a_toolversion :7;
- unsigned char a_machtype;
- unsigned short a_info;
- unsigned int a_text;
- unsigned int a_data;
- unsigned int a_bss;
- unsigned int a_syms;
- unsigned int a_entry;
- unsigned int a_trsize;
- unsigned int a_drsize;
- } uexec;
- int signal;
- size_t u_tsize;
- size_t u_dsize;
- size_t u_ssize;
- char u_comm[17];
- struct sunos_fpu fpu;
- unsigned int sigcode;
-};
-
-#define NBPG 0x2000
-#define UPAGES 1
-#define SUNOS_CORE_MAGIC 0x080456
-
-#endif
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/a.out.h
@@ -1,174 +0,0 @@
-#ifndef __A_OUT_GNU_H__
-#define __A_OUT_GNU_H__
-
-#include <bits/a.out.h>
-
-#define __GNU_EXEC_MACROS__
-
-struct exec
-{
- unsigned char a_dynamic:1; /* A __DYNAMIC is in this image. */
- unsigned char a_toolversion:7;
- unsigned char a_machtype;
- unsigned short a_info;
- unsigned int a_text; /* Length of text, in bytes. */
- unsigned int a_data; /* Length of data, in bytes. */
- unsigned int a_bss; /* Length of bss, in bytes. */
- unsigned int a_syms; /* Length of symbol table, in bytes. */
- unsigned int a_entry; /* Where program begins. */
- unsigned int a_trsize;
- unsigned int a_drsize;
-};
-
-enum machine_type
-{
- M_OLDSUN2 = 0,
- M_68010 = 1,
- M_68020 = 2,
- M_SPARC = 3,
- M_386 = 100,
- M_MIPS1 = 151,
- M_MIPS2 = 152
-};
-
-#define N_MAGIC(exec) ((exec).a_info & 0xffff)
-#define N_MACHTYPE(exec) ((enum machine_type)(((exec).a_info >> 16) & 0xff))
-#define N_FLAGS(exec) (((exec).a_info >> 24) & 0xff)
-#define N_SET_INFO(exec, magic, type, flags) \
- ((exec).a_info = ((magic) & 0xffff) \
- | (((int)(type) & 0xff) << 16) \
- | (((flags) & 0xff) << 24))
-#define N_SET_MAGIC(exec, magic) \
- ((exec).a_info = ((exec).a_info & 0xffff0000) | ((magic) & 0xffff))
-#define N_SET_MACHTYPE(exec, machtype) \
- ((exec).a_info = \
- ((exec).a_info&0xff00ffff) | ((((int)(machtype))&0xff) << 16))
-#define N_SET_FLAGS(exec, flags) \
- ((exec).a_info = \
- ((exec).a_info&0x00ffffff) | (((flags) & 0xff) << 24))
-
-/* Code indicating object file or impure executable. */
-#define OMAGIC 0407
-/* Code indicating pure executable. */
-#define NMAGIC 0410
-/* Code indicating demand-paged executable. */
-#define ZMAGIC 0413
-/* This indicates a demand-paged executable with the header in the text.
- The first page is unmapped to help trap NULL pointer references. */
-#define QMAGIC 0314
-/* Code indicating core file. */
-#define CMAGIC 0421
-
-#define N_TRSIZE(a) ((a).a_trsize)
-#define N_DRSIZE(a) ((a).a_drsize)
-#define N_SYMSIZE(a) ((a).a_syms)
-#define N_BADMAG(x) \
- (N_MAGIC(x) != OMAGIC && N_MAGIC(x) != NMAGIC \
- && N_MAGIC(x) != ZMAGIC && N_MAGIC(x) != QMAGIC)
-#define _N_HDROFF(x) (1024 - sizeof (struct exec))
-#define N_TXTOFF(x) \
- (N_MAGIC(x) == ZMAGIC ? 0 : sizeof (struct exec))
-#define N_DATOFF(x) (N_TXTOFF(x) + (x).a_text)
-#define N_TRELOFF(x) (N_DATOFF(x) + (x).a_data)
-#define N_DRELOFF(x) (N_TRELOFF(x) + N_TRSIZE(x))
-#define N_SYMOFF(x) \
- (N_TXTOFF(x) + (x).a_text + (x).a_data + (x).a_trsize + (x).a_drsize)
-#define N_STROFF(x) (N_SYMOFF(x) + N_SYMSIZE(x))
-
-#define SPARC_PGSIZE 0x2000
-
-/* Address of text segment in memory after it is loaded. */
-#define N_TXTADDR(x) \
- (unsigned long)(((N_MAGIC(x) == ZMAGIC) && ((x).a_entry < SPARC_PGSIZE)) \
- ? 0 : SPARC_PGSIZE)
-
-/* Address of data segment in memory after it is loaded. */
-#define SEGMENT_SIZE SPARC_PGSIZE
-
-#define _N_SEGMENT_ROUND(x) (((x) + SEGMENT_SIZE - 1) & ~(SEGMENT_SIZE - 1))
-#define _N_TXTENDADDR(x) (N_TXTADDR(x)+(x).a_text)
-
-#define N_DATADDR(x) \
- (N_MAGIC(x)==OMAGIC \
- ? (N_TXTADDR(x) + (x).a_text) \
- : (unsigned long)(_N_SEGMENT_ROUND (_N_TXTENDADDR(x))))
-#define N_BSSADDR(x) (N_DATADDR(x) + (x).a_data)
-
-#if !defined (N_NLIST_DECLARED)
-struct nlist
-{
- union
- {
- char *n_name;
- struct nlist *n_next;
- long n_strx;
- } n_un;
- unsigned char n_type;
- char n_other;
- short n_desc;
- unsigned long n_value;
-};
-#endif /* no N_NLIST_DECLARED. */
-
-#define N_UNDF 0
-#define N_ABS 2
-#define N_TEXT 4
-#define N_DATA 6
-#define N_BSS 8
-#define N_FN 15
-#define N_EXT 1
-#define N_TYPE 036
-#define N_STAB 0340
-#define N_INDR 0xa
-#define N_SETA 0x14 /* Absolute set element symbol. */
-#define N_SETT 0x16 /* Text set element symbol. */
-#define N_SETD 0x18 /* Data set element symbol. */
-#define N_SETB 0x1A /* Bss set element symbol. */
-#define N_SETV 0x1C /* Pointer to set vector in data area. */
-
-#if !defined (N_RELOCATION_INFO_DECLARED)
-enum reloc_type
-{
- RELOC_8,
- RELOC_16,
- RELOC_32,
- RELOC_DISP8,
- RELOC_DISP16,
- RELOC_DISP32,
- RELOC_WDISP30,
- RELOC_WDISP22,
- RELOC_HI22,
- RELOC_22,
- RELOC_13,
- RELOC_LO10,
- RELOC_SFA_BASE,
- RELOC_SFA_OFF13,
- RELOC_BASE10,
- RELOC_BASE13,
- RELOC_BASE22,
- RELOC_PC10,
- RELOC_PC22,
- RELOC_JMP_TBL,
- RELOC_SEGOFF16,
- RELOC_GLOB_DAT,
- RELOC_JMP_SLOT,
- RELOC_RELATIVE
-};
-
-/* This structure describes a single relocation to be performed.
- The text-relocation section of the file is a vector of these structures,
- all of which apply to the text section.
- Likewise, the data-relocation section applies to the data section. */
-
-struct relocation_info
-{
- unsigned int r_address;
- unsigned int r_index:24;
- unsigned int r_extern:1;
- int r_pad:2;
- enum reloc_type r_type:5;
- int r_addend;
-};
-#endif /* no N_RELOCATION_INFO_DECLARED. */
-
-#endif /* __A_OUT_GNU_H__ */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/fpu_control.h
@@ -1,76 +0,0 @@
-/* FPU control word bits. SPARC version.
- Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FPU_CONTROL_H
-#define _FPU_CONTROL_H 1
-
-
-#include <features.h>
-#include <bits/wordsize.h>
-
-/* masking of interrupts */
-#define _FPU_MASK_IM 0x08000000
-#define _FPU_MASK_OM 0x04000000
-#define _FPU_MASK_UM 0x02000000
-#define _FPU_MASK_ZM 0x01000000
-#define _FPU_MASK_PM 0x00800000
-
-/* precision control */
-#define _FPU_EXTENDED 0x00000000 /* RECOMMENDED */
-#define _FPU_DOUBLE 0x20000000
-#define _FPU_80BIT 0x30000000
-#define _FPU_SINGLE 0x10000000 /* DO NOT USE */
-
-/* rounding control / Sparc */
-#define _FPU_RC_DOWN 0xc0000000
-#define _FPU_RC_UP 0x80000000
-#define _FPU_RC_ZERO 0x40000000
-#define _FPU_RC_NEAREST 0x0 /* RECOMMENDED */
-
-#define _FPU_RESERVED 0x303e0000 /* Reserved bits in cw */
-
-
-/* Now two recommended cw */
-
-/* Linux and IEEE default:
- - extended precision
- - rounding to nearest
- - no exceptions */
-#define _FPU_DEFAULT 0x0
-#define _FPU_IEEE 0x0
-
-/* Type of the control word. */
-typedef unsigned long int fpu_control_t;
-
-#if __WORDSIZE == 64
-# define _FPU_GETCW(cw) __asm__ __volatile__ ("stx %%fsr,%0" : "=m" (*&cw))
-# define _FPU_SETCW(cw) __asm__ __volatile__ ("ldx %0,%%fsr" : : "m" (*&cw))
-#else
-# ifdef __leon__
- /* Prevent stfsr from being placed directly after other fp instruction. */
-# define _FPU_GETCW(cw) __asm__ __volatile__ ("nop; st %%fsr,%0" : "=m" (*&cw))
-# else
-# define _FPU_GETCW(cw) __asm__ __volatile__ ("st %%fsr,%0" : "=m" (*&cw))
-# endif
-# define _FPU_SETCW(cw) __asm__ __volatile__ ("ld %0,%%fsr" : : "m" (*&cw))
-#endif
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-#endif /* fpu_control.h */
\ No newline at end of file
lib/libc/include/sparc64-linux-gnu/ieee754.h
@@ -1,170 +0,0 @@
-/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _IEEE754_H
-#define _IEEE754_H 1
-
-#include <features.h>
-
-#include <bits/endian.h>
-
-__BEGIN_DECLS
-
-union ieee754_float
- {
- float f;
-
- /* This is the IEEE 754 single-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int mantissa:23;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:23;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:8;
- unsigned int quiet_nan:1;
- unsigned int mantissa:22;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- unsigned int mantissa:22;
- unsigned int quiet_nan:1;
- unsigned int exponent:8;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee_nan;
- };
-
-#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
-
-
-union ieee754_double
- {
- double d;
-
- /* This is the IEEE 754 double-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:20;
- unsigned int mantissa1:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:20;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:11;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:19;
- unsigned int mantissa1:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa1:32;
- unsigned int mantissa0:19;
- unsigned int quiet_nan:1;
- unsigned int exponent:11;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
-
-
-union ieee854_long_double
- {
- long double d;
-
- /* This is the IEEE 854 quad-precision format. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:16;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#endif /* Big endian. */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:16;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif /* Little endian. */
- } ieee;
-
- /* This format makes it easier to see if a NaN is a signalling NaN. */
- struct
- {
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned int negative:1;
- unsigned int exponent:15;
- unsigned int quiet_nan:1;
- /* Together these comprise the mantissa. */
- unsigned int mantissa0:15;
- unsigned int mantissa1:32;
- unsigned int mantissa2:32;
- unsigned int mantissa3:32;
-#else
- /* Together these comprise the mantissa. */
- unsigned int mantissa3:32;
- unsigned int mantissa2:32;
- unsigned int mantissa1:32;
- unsigned int mantissa0:15;
- unsigned int quiet_nan:1;
- unsigned int exponent:15;
- unsigned int negative:1;
-#endif
- } ieee_nan;
- };
-
-#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
-
-__END_DECLS
-
-#endif /* ieee754.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/gnu/lib-names-64.h → lib/libc/include/x86-linux-gnu/gnu/lib-names-64.h
File renamed without changes
lib/libc/include/x86_64-linux-gnux32/gnu/lib-names-x32.h → lib/libc/include/x86-linux-gnu/gnu/lib-names-x32.h
File renamed without changes
lib/libc/include/x86_64-linux-gnu/gnu/stubs-64.h → lib/libc/include/x86-linux-gnu/gnu/stubs-64.h
File renamed without changes
lib/libc/include/x86_64-linux-gnux32/gnu/stubs-x32.h → lib/libc/include/x86-linux-gnu/gnu/stubs-x32.h
File renamed without changes
lib/libc/include/x86_64-linux-gnu/bits/types/struct_semid_ds.h
@@ -1,38 +0,0 @@
-/* x86 implementation of the semaphore struct semid_ds.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
-#endif
-
-/* Data structure describing a set of semaphores. */
-struct semid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_semid64_ds_helper.h>
-#else
- struct ipc_perm sem_perm; /* operation permission struct */
- __time_t sem_otime; /* last semop() time */
- __syscall_ulong_t __sem_otime_high;
- __time_t sem_ctime; /* last time changed by semctl() */
- __syscall_ulong_t __sem_ctime_high;
- __syscall_ulong_t sem_nsems; /* number of semaphores in set */
- __syscall_ulong_t __glibc_reserved3;
- __syscall_ulong_t __glibc_reserved4;
-#endif
-};
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/a.out.h
@@ -1,11 +0,0 @@
-#ifndef __A_OUT_GNU_H__
-# error "Never use <bits/a.out.h> directly; include <a.out.h> instead."
-#endif
-
-#ifdef __x86_64__
-
-/* Signal to users of this header that this architecture really doesn't
- support a.out binary format. */
-#define __NO_A_OUT_SUPPORT 1
-
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/dl_find_object.h
@@ -1,29 +0,0 @@
-/* x86 definitions for finding objects.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _DLFCN_H
-# error "Never use <bits/dl_find_object.h> directly; include <dlfcn.h> instead."
-#endif
-
-#ifdef __x86_64__
-# define DLFO_STRUCT_HAS_EH_DBASE 0
-#else
-# define DLFO_STRUCT_HAS_EH_DBASE 1
-#endif
-#define DLFO_STRUCT_HAS_EH_COUNT 0
-#define DLFO_EH_SEGMENT_TYPE PT_GNU_EH_FRAME
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/endianness.h
@@ -1,11 +0,0 @@
-#ifndef _BITS_ENDIANNESS_H
-#define _BITS_ENDIANNESS_H 1
-
-#ifndef _BITS_ENDIAN_H
-# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
-#endif
-
-/* i386/x86_64 are little-endian. */
-#define __BYTE_ORDER __LITTLE_ENDIAN
-
-#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/environments.h
@@ -1,105 +0,0 @@
-/* Copyright (C) 1999-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _UNISTD_H
-# error "Never include this file directly. Use <unistd.h> instead"
-#endif
-
-#include <bits/wordsize.h>
-
-/* This header should define the following symbols under the described
- situations. A value `1' means that the model is always supported,
- `-1' means it is never supported. Undefined means it cannot be
- statically decided.
-
- _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type
- _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type
-
- _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type
- _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type
-
- The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG,
- _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32,
- _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were
- used in previous versions of the Unix standard and are available
- only for compatibility.
-*/
-
-#if __WORDSIZE == 64
-
-/* Environments with 32-bit wide pointers are optionally provided.
- Therefore following macros aren't defined:
- # undef _POSIX_V7_ILP32_OFF32
- # undef _POSIX_V7_ILP32_OFFBIG
- # undef _POSIX_V6_ILP32_OFF32
- # undef _POSIX_V6_ILP32_OFFBIG
- # undef _XBS5_ILP32_OFF32
- # undef _XBS5_ILP32_OFFBIG
- and users need to check at runtime. */
-
-/* We also have no use (for now) for an environment with bigger pointers
- and offsets. */
-# define _POSIX_V7_LPBIG_OFFBIG -1
-# define _POSIX_V6_LPBIG_OFFBIG -1
-# define _XBS5_LPBIG_OFFBIG -1
-
-/* By default we have 64-bit wide `long int', pointers and `off_t'. */
-# define _POSIX_V7_LP64_OFF64 1
-# define _POSIX_V6_LP64_OFF64 1
-# define _XBS5_LP64_OFF64 1
-
-#else /* __WORDSIZE == 32 */
-
-/* We have 32-bit wide `int', `long int' and pointers and all platforms
- support LFS. -mx32 has 64-bit wide `off_t'. */
-# define _POSIX_V7_ILP32_OFFBIG 1
-# define _POSIX_V6_ILP32_OFFBIG 1
-# define _XBS5_ILP32_OFFBIG 1
-
-# ifndef __x86_64__
-/* -m32 has 32-bit wide `off_t'. */
-# define _POSIX_V7_ILP32_OFF32 1
-# define _POSIX_V6_ILP32_OFF32 1
-# define _XBS5_ILP32_OFF32 1
-# endif
-
-/* We optionally provide an environment with the above size but an 64-bit
- side `off_t'. Therefore we don't define _POSIX_V7_ILP32_OFFBIG. */
-
-/* Environments with 64-bit wide pointers can be provided,
- so these macros aren't defined:
- # undef _POSIX_V7_LP64_OFF64
- # undef _POSIX_V7_LPBIG_OFFBIG
- # undef _POSIX_V6_LP64_OFF64
- # undef _POSIX_V6_LPBIG_OFFBIG
- # undef _XBS5_LP64_OFF64
- # undef _XBS5_LPBIG_OFFBIG
- and sysconf tests for it at runtime. */
-
-#endif /* __WORDSIZE == 32 */
-
-#define __ILP32_OFF32_CFLAGS "-m32"
-#define __ILP32_OFF32_LDFLAGS "-m32"
-#if defined __x86_64__ && defined __ILP32__
-# define __ILP32_OFFBIG_CFLAGS "-mx32"
-# define __ILP32_OFFBIG_LDFLAGS "-mx32"
-#else
-# define __ILP32_OFFBIG_CFLAGS "-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
-# define __ILP32_OFFBIG_LDFLAGS "-m32"
-#endif
-#define __LP64_OFF64_CFLAGS "-m64"
-#define __LP64_OFF64_LDFLAGS "-m64"
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/epoll.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_EPOLL_H
-# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."
-#endif
-
-/* Flags to be passed to epoll_create1. */
-enum
- {
- EPOLL_CLOEXEC = 02000000
-#define EPOLL_CLOEXEC EPOLL_CLOEXEC
- };
-
-#define __EPOLL_PACKED __attribute__ ((__packed__))
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/fcntl.h
@@ -1,61 +0,0 @@
-/* O_*, F_*, FD_* bit values for Linux/x86.
- Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FCNTL_H
-# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
-#endif
-
-#ifdef __x86_64__
-# define __O_LARGEFILE 0
-#endif
-
-#ifdef __x86_64__
-/* Not necessary, we always have 64-bit offsets. */
-# define F_GETLK64 5 /* Get record locking info. */
-# define F_SETLK64 6 /* Set record locking info (non-blocking). */
-# define F_SETLKW64 7 /* Set record locking info (blocking). */
-#endif
-
-
-struct flock
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
-#ifndef __USE_FILE_OFFSET64
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
-#else
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
-#endif
- __pid_t l_pid; /* Process holding the lock. */
- };
-
-#ifdef __USE_LARGEFILE64
-struct flock64
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- };
-#endif
-
-/* Include generic Linux declarations. */
-#include <bits/fcntl-linux.h>
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/fenv.h
@@ -1,116 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FENV_H
-# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
-#endif
-
-/* Define bits representing the exception. We use the bit positions
- of the appropriate bits in the FPU control word. */
-enum
- {
- FE_INVALID =
-#define FE_INVALID 0x01
- FE_INVALID,
- __FE_DENORM = 0x02,
- FE_DIVBYZERO =
-#define FE_DIVBYZERO 0x04
- FE_DIVBYZERO,
- FE_OVERFLOW =
-#define FE_OVERFLOW 0x08
- FE_OVERFLOW,
- FE_UNDERFLOW =
-#define FE_UNDERFLOW 0x10
- FE_UNDERFLOW,
- FE_INEXACT =
-#define FE_INEXACT 0x20
- FE_INEXACT
- };
-
-#define FE_ALL_EXCEPT \
- (FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID)
-
-/* The ix87 FPU supports all of the four defined rounding modes. We
- use again the bit positions in the FPU control word as the values
- for the appropriate macros. */
-enum
- {
- FE_TONEAREST =
-#define FE_TONEAREST 0
- FE_TONEAREST,
- FE_DOWNWARD =
-#define FE_DOWNWARD 0x400
- FE_DOWNWARD,
- FE_UPWARD =
-#define FE_UPWARD 0x800
- FE_UPWARD,
- FE_TOWARDZERO =
-#define FE_TOWARDZERO 0xc00
- FE_TOWARDZERO
- };
-
-
-/* Type representing exception flags. */
-typedef unsigned short int fexcept_t;
-
-
-/* Type representing floating-point environment. This structure
- corresponds to the layout of the block written by the `fstenv'
- instruction and has additional fields for the contents of the MXCSR
- register as written by the `stmxcsr' instruction. */
-typedef struct
- {
- unsigned short int __control_word;
- unsigned short int __glibc_reserved1;
- unsigned short int __status_word;
- unsigned short int __glibc_reserved2;
- unsigned short int __tags;
- unsigned short int __glibc_reserved3;
- unsigned int __eip;
- unsigned short int __cs_selector;
- unsigned int __opcode:11;
- unsigned int __glibc_reserved4:5;
- unsigned int __data_offset;
- unsigned short int __data_selector;
- unsigned short int __glibc_reserved5;
-#ifdef __x86_64__
- unsigned int __mxcsr;
-#endif
- }
-fenv_t;
-
-/* If the default argument is used we use this value. */
-#define FE_DFL_ENV ((const fenv_t *) -1)
-
-#ifdef __USE_GNU
-/* Floating-point environment where none of the exception is masked. */
-# define FE_NOMASK_ENV ((const fenv_t *) -2)
-#endif
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
-/* Type representing floating-point control modes. */
-typedef struct
- {
- unsigned short int __control_word;
- unsigned short int __glibc_reserved;
- unsigned int __mxcsr;
- }
-femode_t;
-
-/* Default floating-point control modes. */
-# define FE_DFL_MODE ((const femode_t *) -1L)
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/floatn.h
@@ -1,129 +0,0 @@
-/* Macros to control TS 18661-3 glibc features on x86.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_FLOATN_H
-#define _BITS_FLOATN_H
-
-#include <features.h>
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this
- glibc includes corresponding *f128 interfaces for it. The required
- libgcc support was added some time after the basic compiler
- support, for x86_64 and x86. */
-#if (defined __x86_64__ \
- ? __GNUC_PREREQ (4, 3) \
- : (defined __GNU__ ? __GNUC_PREREQ (4, 5) : __GNUC_PREREQ (4, 4))) \
- || __glibc_clang_prereq (3, 4)
-# define __HAVE_FLOAT128 1
-#else
-# define __HAVE_FLOAT128 0
-#endif
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#if __HAVE_FLOAT128
-# define __HAVE_DISTINCT_FLOAT128 1
-#else
-# define __HAVE_DISTINCT_FLOAT128 0
-#endif
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X 1
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE 1
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) \
- || (defined __cplusplus && !__GNUC_PREREQ (13, 0)) \
- || defined __clang__
-/* The literal suffix f128 exists only since GCC 7.0. */
-# define __f128(x) x##q
-# else
-# define __f128(x) x##f128
-# endif
-# endif
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) \
- || (defined __cplusplus && !__GNUC_PREREQ (13, 0)) \
- || defined __clang__
-/* Add a typedef for older GCC compilers which don't natively support
- _Complex _Float128. */
-typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__TC__)));
-# define __CFLOAT128 __cfloat128
-# else
-# define __CFLOAT128 _Complex _Float128
-# endif
-# endif
-
-/* The remaining of this file provides support for older compilers. */
-# if __HAVE_FLOAT128
-
-/* The type _Float128 exists only since GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0) \
- || (defined __cplusplus && !__GNUC_PREREQ (13, 0)) \
- || __glibc_clang_prereq (3, 4)
-typedef __float128 _Float128;
-# endif
-
-/* __builtin_huge_valf128 doesn't exist before GCC 7.0 nor Clang 7.0. */
-# if !__GNUC_PREREQ (7, 0) && !__glibc_clang_prereq (7, 0)
-# define __builtin_huge_valf128() ((_Float128) __builtin_huge_val ())
-# endif
-
-/* Older GCC has only a subset of built-in functions for _Float128 on
- x86, and __builtin_infq is not usable in static initializers.
- Converting a narrower sNaN to _Float128 produces a quiet NaN, so
- attempts to use _Float128 sNaNs will not work properly with older
- compilers. */
-# if !__GNUC_PREREQ (7, 0) && !defined __clang__
-# define __builtin_copysignf128 __builtin_copysignq
-# define __builtin_fabsf128 __builtin_fabsq
-# define __builtin_inff128() ((_Float128) __builtin_inf ())
-# define __builtin_nanf128(x) ((_Float128) __builtin_nan (x))
-# define __builtin_nansf128(x) ((_Float128) __builtin_nans (x))
-# endif
-
-/* In math/math.h, __MATH_TG will expand signbit to __builtin_signbit*,
- e.g.: __builtin_signbitf128, before GCC 6. However, there has never
- been a __builtin_signbitf128 in GCC and the type-generic builtin is
- only available since GCC 6. signbit is expanded to __builtin_signbit
- after Clang 3.3. */
-# if !__GNUC_PREREQ (6, 0)
-# define __builtin_signbitf128 __signbitf128
-# endif
-
-# endif
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
-
-#endif /* _BITS_FLOATN_H */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/flt-eval-method.h
@@ -1,33 +0,0 @@
-/* Define __GLIBC_FLT_EVAL_METHOD. x86 version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead."
-#endif
-
-#ifdef __FLT_EVAL_METHOD__
-# if __FLT_EVAL_METHOD__ == -1
-# define __GLIBC_FLT_EVAL_METHOD 2
-# else
-# define __GLIBC_FLT_EVAL_METHOD __FLT_EVAL_METHOD__
-# endif
-#elif defined __x86_64__
-# define __GLIBC_FLT_EVAL_METHOD 0
-#else
-# define __GLIBC_FLT_EVAL_METHOD 2
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/fp-logb.h
@@ -1,24 +0,0 @@
-/* Define __FP_LOGB0_IS_MIN and __FP_LOGBNAN_IS_MIN. x86 version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never use <bits/fp-logb.h> directly; include <math.h> instead."
-#endif
-
-#define __FP_LOGB0_IS_MIN 1
-#define __FP_LOGBNAN_IS_MIN 1
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/indirect-return.h
@@ -1,37 +0,0 @@
-/* Definition of __INDIRECT_RETURN. x86 version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _UCONTEXT_H
-# error "Never include <bits/indirect-return.h> directly; use <ucontext.h> instead."
-#endif
-
-/* On x86, swapcontext returns via indirect branch when the shadow stack
- is enabled. Define __INDIRECT_RETURN to indicate whether swapcontext
- returns via indirect branch. */
-#if defined __CET__ && (__CET__ & 2) != 0
-# if __glibc_has_attribute (__indirect_return__)
-# define __INDIRECT_RETURN __attribute__ ((__indirect_return__))
-# else
-/* Newer compilers provide the indirect_return attribute, but without
- it we can use returns_twice to affect the optimizer in the same
- way and avoid unsafe optimizations. */
-# define __INDIRECT_RETURN __attribute__ ((__returns_twice__))
-# endif
-#else
-# define __INDIRECT_RETURN
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/ipctypes.h
@@ -1,33 +0,0 @@
-/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM.
- Copyright (C) 2012-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IPC_H
-# error "Never use <bits/ipctypes.h> directly; include <sys/ipc.h> instead."
-#endif
-
-#ifndef _BITS_IPCTYPES_H
-#define _BITS_IPCTYPES_H 1
-
-/* Used in `struct shmid_ds'. */
-# ifdef __x86_64__
-typedef int __ipc_pid_t;
-# else
-typedef unsigned short int __ipc_pid_t;
-# endif
-
-#endif /* bits/ipctypes.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/iscanonical.h
@@ -1,54 +0,0 @@
-/* Define iscanonical macro. ldbl-96 version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."
-#endif
-
-extern int __iscanonicall (long double __x)
- __THROW __attribute__ ((__const__));
-#define __iscanonicalf(x) ((void) (__typeof (x)) (x), 1)
-#define __iscanonical(x) ((void) (__typeof (x)) (x), 1)
-#if __HAVE_DISTINCT_FLOAT128
-# define __iscanonicalf128(x) ((void) (__typeof (x)) (x), 1)
-#endif
-
-/* Return nonzero value if X is canonical. In IEEE interchange binary
- formats, all values are canonical, but the argument must still be
- converted to its semantic type for any exceptions arising from the
- conversion, before being discarded; in extended precision, there
- are encodings that are not consistently handled as corresponding to
- any particular value of the type, and we return 0 for those. */
-#ifndef __cplusplus
-# define iscanonical(x) __MATH_TG ((x), __iscanonical, (x))
-#else
-/* In C++ mode, __MATH_TG cannot be used, because it relies on
- __builtin_types_compatible_p, which is a C-only builtin. On the
- other hand, overloading provides the means to distinguish between
- the floating-point types. The overloading resolution will match
- the correct parameter (regardless of type qualifiers (i.e.: const
- and volatile)). */
-extern "C++" {
-inline int iscanonical (float __val) { return __iscanonicalf (__val); }
-inline int iscanonical (double __val) { return __iscanonical (__val); }
-inline int iscanonical (long double __val) { return __iscanonicall (__val); }
-# if __HAVE_DISTINCT_FLOAT128
-inline int iscanonical (_Float128 __val) { return __iscanonicalf128 (__val); }
-# endif
-}
-#endif /* __cplusplus */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/link.h
@@ -1,159 +0,0 @@
-/* Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-# error "Never include <bits/link.h> directly; use <link.h> instead."
-#endif
-
-
-#ifndef __x86_64__
-/* Registers for entry into PLT on IA-32. */
-typedef struct La_i86_regs
-{
- uint32_t lr_edx;
- uint32_t lr_ecx;
- uint32_t lr_eax;
- uint32_t lr_ebp;
- uint32_t lr_esp;
-} La_i86_regs;
-
-/* Return values for calls from PLT on IA-32. */
-typedef struct La_i86_retval
-{
- uint32_t lrv_eax;
- uint32_t lrv_edx;
- long double lrv_st0;
- long double lrv_st1;
- uint64_t __glibc_unused1;
- uint64_t __glibc_unused2;
-} La_i86_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf32_Addr la_i86_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_i86_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_i86_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_i86_regs *__inregs,
- La_i86_retval *__outregs,
- const char *symname);
-
-__END_DECLS
-
-#else
-
-/* Registers for entry into PLT on x86-64. */
-# if __GNUC_PREREQ (4,0)
-typedef float La_x86_64_xmm __attribute__ ((__vector_size__ (16)));
-typedef float La_x86_64_ymm
- __attribute__ ((__vector_size__ (32), __aligned__ (16)));
-typedef double La_x86_64_zmm
- __attribute__ ((__vector_size__ (64), __aligned__ (16)));
-# else
-typedef float La_x86_64_xmm __attribute__ ((__mode__ (__V4SF__)));
-# endif
-
-typedef union
-{
-# if __GNUC_PREREQ (4,0)
- La_x86_64_ymm ymm[2];
- La_x86_64_zmm zmm[1];
-# endif
- La_x86_64_xmm xmm[4];
-} La_x86_64_vector __attribute__ ((__aligned__ (16)));
-
-typedef struct La_x86_64_regs
-{
- uint64_t lr_rdx;
- uint64_t lr_r8;
- uint64_t lr_r9;
- uint64_t lr_rcx;
- uint64_t lr_rsi;
- uint64_t lr_rdi;
- uint64_t lr_rbp;
- uint64_t lr_rsp;
- La_x86_64_xmm lr_xmm[8];
- La_x86_64_vector lr_vector[8];
-#ifndef __ILP32__
- __int128_t __glibc_unused1[4];
-#endif
-} La_x86_64_regs;
-
-/* Return values for calls from PLT on x86-64. */
-typedef struct La_x86_64_retval
-{
- uint64_t lrv_rax;
- uint64_t lrv_rdx;
- La_x86_64_xmm lrv_xmm0;
- La_x86_64_xmm lrv_xmm1;
- long double lrv_st0;
- long double lrv_st1;
- La_x86_64_vector lrv_vector0;
- La_x86_64_vector lrv_vector1;
-#ifndef __ILP32__
- __int128_t __glibc_unused1;
- __int128_t __glibc_unused2;
-#endif
-} La_x86_64_retval;
-
-#define La_x32_regs La_x86_64_regs
-#define La_x32_retval La_x86_64_retval
-
-__BEGIN_DECLS
-
-extern Elf64_Addr la_x86_64_gnu_pltenter (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_x86_64_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_x86_64_gnu_pltexit (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_x86_64_regs *__inregs,
- La_x86_64_retval *__outregs,
- const char *__symname);
-
-extern Elf32_Addr la_x32_gnu_pltenter (Elf32_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_x32_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_x32_gnu_pltexit (Elf32_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_x32_regs *__inregs,
- La_x32_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
-
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/long-double.h
@@ -1,21 +0,0 @@
-/* Properties of long double type. ldbl-96 version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* long double is distinct from double, so there is nothing to
- define here. */
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/math-vector.h
@@ -1,147 +0,0 @@
-/* Platform-specific SIMD declarations of math functions.
- Copyright (C) 2014-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never include <bits/math-vector.h> directly;\
- include <math.h> instead."
-#endif
-
-/* Get default empty definitions for simd declarations. */
-#include <bits/libm-simd-decl-stubs.h>
-
-#if defined __x86_64__ && defined __FAST_MATH__
-# if defined _OPENMP && _OPENMP >= 201307
-/* OpenMP case. */
-# define __DECL_SIMD_x86_64 _Pragma ("omp declare simd notinbranch")
-# elif __GNUC_PREREQ (6,0)
-/* W/o OpenMP use GCC 6.* __attribute__ ((__simd__)). */
-# define __DECL_SIMD_x86_64 __attribute__ ((__simd__ ("notinbranch")))
-# endif
-
-# ifdef __DECL_SIMD_x86_64
-# undef __DECL_SIMD_cos
-# define __DECL_SIMD_cos __DECL_SIMD_x86_64
-# undef __DECL_SIMD_cosf
-# define __DECL_SIMD_cosf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_sin
-# define __DECL_SIMD_sin __DECL_SIMD_x86_64
-# undef __DECL_SIMD_sinf
-# define __DECL_SIMD_sinf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_sincos
-# define __DECL_SIMD_sincos __DECL_SIMD_x86_64
-# undef __DECL_SIMD_sincosf
-# define __DECL_SIMD_sincosf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log
-# define __DECL_SIMD_log __DECL_SIMD_x86_64
-# undef __DECL_SIMD_logf
-# define __DECL_SIMD_logf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_exp
-# define __DECL_SIMD_exp __DECL_SIMD_x86_64
-# undef __DECL_SIMD_expf
-# define __DECL_SIMD_expf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_pow
-# define __DECL_SIMD_pow __DECL_SIMD_x86_64
-# undef __DECL_SIMD_powf
-# define __DECL_SIMD_powf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_acos
-# define __DECL_SIMD_acos __DECL_SIMD_x86_64
-# undef __DECL_SIMD_acosf
-# define __DECL_SIMD_acosf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_atan
-# define __DECL_SIMD_atan __DECL_SIMD_x86_64
-# undef __DECL_SIMD_atanf
-# define __DECL_SIMD_atanf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_asin
-# define __DECL_SIMD_asin __DECL_SIMD_x86_64
-# undef __DECL_SIMD_asinf
-# define __DECL_SIMD_asinf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_hypot
-# define __DECL_SIMD_hypot __DECL_SIMD_x86_64
-# undef __DECL_SIMD_hypotf
-# define __DECL_SIMD_hypotf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_exp2
-# define __DECL_SIMD_exp2 __DECL_SIMD_x86_64
-# undef __DECL_SIMD_exp2f
-# define __DECL_SIMD_exp2f __DECL_SIMD_x86_64
-# undef __DECL_SIMD_exp10
-# define __DECL_SIMD_exp10 __DECL_SIMD_x86_64
-# undef __DECL_SIMD_exp10f
-# define __DECL_SIMD_exp10f __DECL_SIMD_x86_64
-# undef __DECL_SIMD_cosh
-# define __DECL_SIMD_cosh __DECL_SIMD_x86_64
-# undef __DECL_SIMD_coshf
-# define __DECL_SIMD_coshf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_expm1
-# define __DECL_SIMD_expm1 __DECL_SIMD_x86_64
-# undef __DECL_SIMD_expm1f
-# define __DECL_SIMD_expm1f __DECL_SIMD_x86_64
-# undef __DECL_SIMD_sinh
-# define __DECL_SIMD_sinh __DECL_SIMD_x86_64
-# undef __DECL_SIMD_sinhf
-# define __DECL_SIMD_sinhf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_cbrt
-# define __DECL_SIMD_cbrt __DECL_SIMD_x86_64
-# undef __DECL_SIMD_cbrtf
-# define __DECL_SIMD_cbrtf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_atan2
-# define __DECL_SIMD_atan2 __DECL_SIMD_x86_64
-# undef __DECL_SIMD_atan2f
-# define __DECL_SIMD_atan2f __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log10
-# define __DECL_SIMD_log10 __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log10f
-# define __DECL_SIMD_log10f __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log2
-# define __DECL_SIMD_log2 __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log2f
-# define __DECL_SIMD_log2f __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log1p
-# define __DECL_SIMD_log1p __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log1pf
-# define __DECL_SIMD_log1pf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_atanh
-# define __DECL_SIMD_atanh __DECL_SIMD_x86_64
-# undef __DECL_SIMD_atanhf
-# define __DECL_SIMD_atanhf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_acosh
-# define __DECL_SIMD_acosh __DECL_SIMD_x86_64
-# undef __DECL_SIMD_acoshf
-# define __DECL_SIMD_acoshf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_erf
-# define __DECL_SIMD_erf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_erff
-# define __DECL_SIMD_erff __DECL_SIMD_x86_64
-# undef __DECL_SIMD_tanh
-# define __DECL_SIMD_tanh __DECL_SIMD_x86_64
-# undef __DECL_SIMD_tanhf
-# define __DECL_SIMD_tanhf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_asinh
-# define __DECL_SIMD_asinh __DECL_SIMD_x86_64
-# undef __DECL_SIMD_asinhf
-# define __DECL_SIMD_asinhf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_erfc
-# define __DECL_SIMD_erfc __DECL_SIMD_x86_64
-# undef __DECL_SIMD_erfcf
-# define __DECL_SIMD_erfcf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_tan
-# define __DECL_SIMD_tan __DECL_SIMD_x86_64
-# undef __DECL_SIMD_tanf
-# define __DECL_SIMD_tanf __DECL_SIMD_x86_64
-
-# endif
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/mman.h
@@ -1,38 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/x86_64 version.
- Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* The following definitions basically come from the kernel headers.
- But the kernel header is not namespace clean. */
-
-/* Other flags. */
-#define MAP_32BIT 0x40 /* Only give out 32-bit addresses. */
-#define MAP_ABOVE4G 0x80 /* Only map above 4GB. */
-
-#ifdef __USE_MISC
-/* Set up a restore token in the newly allocated shadow stack */
-# define SHADOW_STACK_SET_TOKEN 0x1
-#endif
-
-#include <bits/mman-map-flags-generic.h>
-
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/procfs-id.h
@@ -1,30 +0,0 @@
-/* Types of pr_uid and pr_gid in struct elf_prpsinfo. x86 version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
-#endif
-
-#if __WORDSIZE == 32
-typedef unsigned short int __pr_uid_t;
-typedef unsigned short int __pr_gid_t;
-#else
-typedef unsigned int __pr_uid_t;
-typedef unsigned int __pr_gid_t;
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/procfs.h
@@ -1,50 +0,0 @@
-/* Types for registers for sys/procfs.h. x86 version.
- Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
-#endif
-
-/* Type for a general-purpose register. */
-#ifdef __x86_64__
-__extension__ typedef unsigned long long elf_greg_t;
-#else
-typedef unsigned long elf_greg_t;
-#endif
-
-/* And the whole bunch of them. We could have used `struct
- user_regs_struct' directly in the typedef, but tradition says that
- the register set is an array, which does have some peculiar
- semantics, so leave it that way. */
-#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof (elf_greg_t))
-typedef elf_greg_t elf_gregset_t[ELF_NGREG];
-
-#ifndef __x86_64__
-/* Register set for the floating-point registers. */
-typedef struct user_fpregs_struct elf_fpregset_t;
-
-/* Register set for the extended floating-point registers. Includes
- the Pentium III SSE registers in addition to the classic
- floating-point stuff. */
-typedef struct user_fpxregs_struct elf_fpxregset_t;
-#else
-/* Register set for the extended floating-point registers. Includes
- the Pentium III SSE registers in addition to the classic
- floating-point stuff. */
-typedef struct user_fpregs_struct elf_fpregset_t;
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h
@@ -1,55 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_PTHREADTYPES_ARCH_H
-#define _BITS_PTHREADTYPES_ARCH_H 1
-
-#include <bits/wordsize.h>
-
-#ifdef __x86_64__
-# if __WORDSIZE == 64
-# define __SIZEOF_PTHREAD_MUTEX_T 40
-# define __SIZEOF_PTHREAD_ATTR_T 56
-# define __SIZEOF_PTHREAD_RWLOCK_T 56
-# define __SIZEOF_PTHREAD_BARRIER_T 32
-# else
-# define __SIZEOF_PTHREAD_MUTEX_T 32
-# define __SIZEOF_PTHREAD_ATTR_T 32
-# define __SIZEOF_PTHREAD_RWLOCK_T 44
-# define __SIZEOF_PTHREAD_BARRIER_T 20
-# endif
-#else
-# define __SIZEOF_PTHREAD_MUTEX_T 24
-# define __SIZEOF_PTHREAD_ATTR_T 36
-# define __SIZEOF_PTHREAD_RWLOCK_T 32
-# define __SIZEOF_PTHREAD_BARRIER_T 20
-#endif
-#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
-#define __SIZEOF_PTHREAD_COND_T 48
-#define __SIZEOF_PTHREAD_CONDATTR_T 4
-#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
-
-#define __LOCK_ALIGNMENT
-#define __ONCE_ALIGNMENT
-
-#ifndef __x86_64__
-/* Extra attributes for the cleanup functions. */
-# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
-#endif
-
-#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/rseq.h
@@ -1,30 +0,0 @@
-/* Restartable Sequences Linux x86 architecture header.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RSEQ_H
-# error "Never use <bits/rseq.h> directly; include <sys/rseq.h> instead."
-#endif
-
-/* RSEQ_SIG is a signature required before each abort handler code.
-
- RSEQ_SIG is used with the following reserved undefined instructions, which
- trap in user-space:
-
- x86-32: 0f b9 3d 53 30 05 53 ud1 0x53053053,%edi
- x86-64: 0f b9 3d 53 30 05 53 ud1 0x53053053(%rip),%edi */
-
-#define RSEQ_SIG 0x53053053
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/setjmp.h
@@ -1,40 +0,0 @@
-/* Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Define the machine-dependent type `jmp_buf'. x86-64 version. */
-#ifndef _BITS_SETJMP_H
-#define _BITS_SETJMP_H 1
-
-#if !defined _SETJMP_H && !defined _PTHREAD_H
-# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-#ifndef _ASM
-
-# if __WORDSIZE == 64
-typedef long int __jmp_buf[8];
-# elif defined __x86_64__
-__extension__ typedef long long int __jmp_buf[8];
-# else
-typedef int __jmp_buf[6];
-# endif
-
-#endif
-
-#endif /* bits/setjmp.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/sigcontext.h
@@ -1,196 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGCONTEXT_H
-#define _BITS_SIGCONTEXT_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
-#endif
-
-#include <bits/types.h>
-
-#define FP_XSTATE_MAGIC1 0x46505853U
-#define FP_XSTATE_MAGIC2 0x46505845U
-#define FP_XSTATE_MAGIC2_SIZE sizeof (FP_XSTATE_MAGIC2)
-
-struct _fpx_sw_bytes
-{
- __uint32_t magic1;
- __uint32_t extended_size;
- __uint64_t xstate_bv;
- __uint32_t xstate_size;
- __uint32_t __glibc_reserved1[7];
-};
-
-struct _fpreg
-{
- unsigned short significand[4];
- unsigned short exponent;
-};
-
-struct _fpxreg
-{
- unsigned short significand[4];
- unsigned short exponent;
- unsigned short __glibc_reserved1[3];
-};
-
-struct _xmmreg
-{
- __uint32_t element[4];
-};
-
-
-
-#ifndef __x86_64__
-
-struct _fpstate
-{
- /* Regular FPU environment. */
- __uint32_t cw;
- __uint32_t sw;
- __uint32_t tag;
- __uint32_t ipoff;
- __uint32_t cssel;
- __uint32_t dataoff;
- __uint32_t datasel;
- struct _fpreg _st[8];
- unsigned short status;
- unsigned short magic;
-
- /* FXSR FPU environment. */
- __uint32_t _fxsr_env[6];
- __uint32_t mxcsr;
- __uint32_t __glibc_reserved1;
- struct _fpxreg _fxsr_st[8];
- struct _xmmreg _xmm[8];
- __uint32_t __glibc_reserved2[56];
-};
-
-#ifndef sigcontext_struct
-/* Kernel headers before 2.1.1 define a struct sigcontext_struct, but
- we need sigcontext. Some packages have come to rely on
- sigcontext_struct being defined on 32-bit x86, so define this for
- their benefit. */
-# define sigcontext_struct sigcontext
-#endif
-
-#define X86_FXSR_MAGIC 0x0000
-
-struct sigcontext
-{
- unsigned short gs, __gsh;
- unsigned short fs, __fsh;
- unsigned short es, __esh;
- unsigned short ds, __dsh;
- unsigned long edi;
- unsigned long esi;
- unsigned long ebp;
- unsigned long esp;
- unsigned long ebx;
- unsigned long edx;
- unsigned long ecx;
- unsigned long eax;
- unsigned long trapno;
- unsigned long err;
- unsigned long eip;
- unsigned short cs, __csh;
- unsigned long eflags;
- unsigned long esp_at_signal;
- unsigned short ss, __ssh;
- struct _fpstate * fpstate;
- unsigned long oldmask;
- unsigned long cr2;
-};
-
-#else /* __x86_64__ */
-
-struct _fpstate
-{
- /* FPU environment matching the 64-bit FXSAVE layout. */
- __uint16_t cwd;
- __uint16_t swd;
- __uint16_t ftw;
- __uint16_t fop;
- __uint64_t rip;
- __uint64_t rdp;
- __uint32_t mxcsr;
- __uint32_t mxcr_mask;
- struct _fpxreg _st[8];
- struct _xmmreg _xmm[16];
- __uint32_t __glibc_reserved1[24];
-};
-
-struct sigcontext
-{
- __uint64_t r8;
- __uint64_t r9;
- __uint64_t r10;
- __uint64_t r11;
- __uint64_t r12;
- __uint64_t r13;
- __uint64_t r14;
- __uint64_t r15;
- __uint64_t rdi;
- __uint64_t rsi;
- __uint64_t rbp;
- __uint64_t rbx;
- __uint64_t rdx;
- __uint64_t rax;
- __uint64_t rcx;
- __uint64_t rsp;
- __uint64_t rip;
- __uint64_t eflags;
- unsigned short cs;
- unsigned short gs;
- unsigned short fs;
- unsigned short __pad0;
- __uint64_t err;
- __uint64_t trapno;
- __uint64_t oldmask;
- __uint64_t cr2;
- __extension__ union
- {
- struct _fpstate * fpstate;
- __uint64_t __fpstate_word;
- };
- __uint64_t __reserved1 [8];
-};
-
-#endif /* __x86_64__ */
-
-struct _xsave_hdr
-{
- __uint64_t xstate_bv;
- __uint64_t __glibc_reserved1[2];
- __uint64_t __glibc_reserved2[5];
-};
-
-struct _ymmh_state
-{
- __uint32_t ymmh_space[64];
-};
-
-struct _xstate
-{
- struct _fpstate fpstate;
- struct _xsave_hdr xstate_hdr;
- struct _ymmh_state ymmh;
-};
-
-#endif /* _BITS_SIGCONTEXT_H */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/siginfo-arch.h
@@ -1,17 +0,0 @@
-/* Architecture-specific adjustments to siginfo_t. x86 version. */
-#ifndef _BITS_SIGINFO_ARCH_H
-#define _BITS_SIGINFO_ARCH_H 1
-
-#if defined __x86_64__ && __WORDSIZE == 32
-/* si_utime and si_stime must be 4 byte aligned for x32 to match the
- kernel. We align siginfo_t to 8 bytes so that si_utime and
- si_stime are actually aligned to 8 bytes since their offsets are
- multiple of 8 bytes. Note: with some compilers, the alignment
- attribute would be ignored if it were put in __SI_CLOCK_T instead
- of encapsulated in a typedef. */
-typedef __clock_t __attribute__ ((__aligned__ (4))) __sigchld_clock_t;
-# define __SI_ALIGNMENT __attribute__ ((__aligned__ (8)))
-# define __SI_CLOCK_T __sigchld_clock_t
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/struct_mutex.h
@@ -1,63 +0,0 @@
-/* x86 internal mutex struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _THREAD_MUTEX_INTERNAL_H
-#define _THREAD_MUTEX_INTERNAL_H 1
-
-struct __pthread_mutex_s
-{
- int __lock;
- unsigned int __count;
- int __owner;
-#ifdef __x86_64__
- unsigned int __nusers;
-#endif
- /* KIND must stay at this position in the structure to maintain
- binary compatibility with static initializers. */
- int __kind;
-#ifdef __x86_64__
- short __spins;
- short __elision;
- __pthread_list_t __list;
-# define __PTHREAD_MUTEX_HAVE_PREV 1
-#else
- unsigned int __nusers;
- __extension__ union
- {
- struct
- {
- short __espins;
- short __eelision;
-# define __spins __elision_data.__espins
-# define __elision __elision_data.__eelision
- } __elision_data;
- __pthread_slist_t __list;
- };
-# define __PTHREAD_MUTEX_HAVE_PREV 0
-#endif
-};
-
-#ifdef __x86_64__
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, 0, __kind, 0, 0, { NULL, NULL }
-#else
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, __kind, 0, { { 0, 0 } }
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/struct_rwlock.h
@@ -1,65 +0,0 @@
-/* x86 internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#ifdef __x86_64__
- int __cur_writer;
- int __shared;
- signed char __rwelision;
-# ifdef __ILP32__
- unsigned char __pad1[3];
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0 }
-# else
- unsigned char __pad1[7];
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0, 0, 0, 0, 0 }
-# endif
- unsigned long int __pad2;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned int __flags;
-#else /* __x86_64__ */
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- unsigned char __shared;
- signed char __rwelision;
- unsigned char __pad2;
- int __cur_writer;
-#endif
-};
-
-#ifdef __x86_64__
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, __flags
-#else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/struct_stat.h
@@ -1,165 +0,0 @@
-/* Definition for struct stat.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
-#endif
-
-#ifndef _BITS_STRUCT_STAT_H
-#define _BITS_STRUCT_STAT_H 1
-
-struct stat
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-#else
- __dev_t st_dev; /* Device. */
-# ifndef __x86_64__
- unsigned short int __pad1;
-# endif
-# if defined __x86_64__ || !defined __USE_FILE_OFFSET64
- __ino_t st_ino; /* File serial number. */
-# else
- __ino_t __st_ino; /* 32bit file serial number. */
-# endif
-# ifndef __x86_64__
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
-# else
- __nlink_t st_nlink; /* Link count. */
- __mode_t st_mode; /* File mode. */
-# endif
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
-# ifdef __x86_64__
- int __pad0;
-# endif
- __dev_t st_rdev; /* Device number, if device. */
-# ifndef __x86_64__
- unsigned short int __pad2;
-# endif
-# if defined __x86_64__ || !defined __USE_FILE_OFFSET64
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-# if defined __x86_64__ || !defined __USE_FILE_OFFSET64
- __blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
-# else
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# endif
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- __syscall_ulong_t st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- __syscall_ulong_t st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- __syscall_ulong_t st_ctimensec; /* Nsecs of last status change. */
-# endif
-# ifdef __x86_64__
- __syscall_slong_t __glibc_reserved[3];
-# else
-# ifndef __USE_FILE_OFFSET64
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
-# endif
-#endif /* __USE_TIME64_REDIRECTS */
- };
-
-#ifdef __USE_LARGEFILE64
-/* Note stat64 has the same shape as stat for x86-64. */
-struct stat64
- {
-# ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-# else
- __dev_t st_dev; /* Device. */
-# ifdef __x86_64__
- __ino64_t st_ino; /* File serial number. */
- __nlink_t st_nlink; /* Link count. */
- __mode_t st_mode; /* File mode. */
-# else
- unsigned int __pad1;
- __ino_t __st_ino; /* 32bit file serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
-# endif
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
-# ifdef __x86_64__
- int __pad0;
- __dev_t st_rdev; /* Device number, if device. */
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __dev_t st_rdev; /* Device number, if device. */
- unsigned int __pad2;
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- __blkcnt64_t st_blocks; /* Nr. 512-byte blocks allocated. */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# else
- __time_t st_atime; /* Time of last access. */
- __syscall_ulong_t st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- __syscall_ulong_t st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- __syscall_ulong_t st_ctimensec; /* Nsecs of last status change. */
-# endif
-# ifdef __x86_64__
- __syscall_slong_t __glibc_reserved[3];
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
-# endif /* __USE_TIME64_REDIRECTS */
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-#endif /* _BITS_STRUCT_STAT_H */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/timesize.h
@@ -1,27 +0,0 @@
-/* Bit size of the time_t type at glibc build time, x86-64 and x32 case.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#include <bits/wordsize.h>
-
-#if defined __x86_64__ && defined __ILP32__
-/* For x32, time is 64-bit even though word size is 32-bit. */
-# define __TIMESIZE 64
-#else
-/* For others, time size is word size. */
-# define __TIMESIZE __WORDSIZE
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/typesizes.h
@@ -1,106 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
- Copyright (C) 2012-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-/* X32 kernel interface is 64-bit. */
-#if defined __x86_64__ && defined __ILP32__
-# define __SYSCALL_SLONG_TYPE __SQUAD_TYPE
-# define __SYSCALL_ULONG_TYPE __UQUAD_TYPE
-#else
-# define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-# define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#endif
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __SYSCALL_ULONG_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#ifdef __x86_64__
-# define __NLINK_T_TYPE __SYSCALL_ULONG_TYPE
-# define __FSWORD_T_TYPE __SYSCALL_SLONG_TYPE
-#else
-# define __NLINK_T_TYPE __UWORD_TYPE
-# define __FSWORD_T_TYPE __SWORD_TYPE
-#endif
-#define __OFF_T_TYPE __SYSCALL_SLONG_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __SYSCALL_ULONG_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SYSCALL_SLONG_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __SYSCALL_ULONG_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __SYSCALL_ULONG_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SYSCALL_SLONG_TYPE
-#define __TIME_T_TYPE __SYSCALL_SLONG_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SYSCALL_SLONG_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SYSCALL_SLONG_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __CPU_MASK_TYPE __SYSCALL_ULONG_TYPE
-
-#ifdef __x86_64__
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for __rlim_t and __rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-
-/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
-# define __STATFS_MATCHES_STATFS64 1
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-
-# define __STATFS_MATCHES_STATFS64 0
-
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/wordsize.h
@@ -1,16 +0,0 @@
-/* Determine the wordsize from the preprocessor defines. */
-
-#if defined __x86_64__ && !defined __ILP32__
-# define __WORDSIZE 64
-#else
-# define __WORDSIZE 32
-#define __WORDSIZE32_SIZE_ULONG 0
-#define __WORDSIZE32_PTRDIFF_LONG 0
-#endif
-
-#define __WORDSIZE_TIME64_COMPAT32 1
-
-#ifdef __x86_64__
-/* Both x86-64 and x32 use the 64-bit system call interface. */
-# define __SYSCALL_WORDSIZE 64
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/finclude/math-vector-fortran.h
@@ -1,127 +0,0 @@
-! Platform-specific declarations of SIMD math functions for Fortran. -*- f90 -*-
-! Copyright (C) 2019-2025 Free Software Foundation, Inc.
-! This file is part of the GNU C Library.
-!
-! The GNU C Library is free software; you can redistribute it and/or
-! modify it under the terms of the GNU Lesser General Public
-! License as published by the Free Software Foundation; either
-! version 2.1 of the License, or (at your option) any later version.
-!
-! The GNU C Library is distributed in the hope that it will be useful,
-! but WITHOUT ANY WARRANTY; without even the implied warranty of
-! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-! Lesser General Public License for more details.
-!
-! You should have received a copy of the GNU Lesser General Public
-! License along with the GNU C Library; if not, see
-! <https://www.gnu.org/licenses/>.
-
-!GCC$ builtin (cos) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (cosf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (sin) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (sinf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (sincos) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (sincosf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (logf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (exp) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (expf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (pow) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (powf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (acos) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (acosf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (atan) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (atanf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (asin) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (asinf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (hypot) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (hypotf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (exp2) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (exp2f) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (exp10) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (exp10f) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (cosh) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (coshf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (expm1) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (expm1f) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (sinh) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (sinhf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (cbrt) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (cbrtf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (atan2) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (atan2f) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log10) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log10f) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log2) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log2f) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log1p) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log1pf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (atanh) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (atanhf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (acosh) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (acoshf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (erf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (erff) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (tanh) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (tanhf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (asinh) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (asinhf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (erfc) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (erfcf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (tan) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (tanf) attributes simd (notinbranch) if('x86_64')
-
-!GCC$ builtin (cos) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (cosf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (sin) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (sinf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (sincos) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (sincosf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (logf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (exp) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (expf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (pow) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (powf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (acos) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (acosf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (atan) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (atanf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (asin) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (asinf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (hypot) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (hypotf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (exp2) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (exp2f) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (exp10) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (exp10f) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (cosh) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (coshf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (expm1) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (expm1f) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (sinh) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (sinhf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (cbrt) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (cbrtf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (atan2) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (atan2f) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log10) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log10f) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log2) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log2f) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log1p) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log1pf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (atanh) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (atanhf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (acosh) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (acoshf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (erf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (erff) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (tanh) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (tanhf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (asinh) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (asinhf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (erfc) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (erfcf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (tan) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (tanf) attributes simd (notinbranch) if('x32')
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/gnu/lib-names.h
@@ -1,17 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#if !defined __x86_64__
-# include <gnu/lib-names-32.h>
-#endif
-#if defined __x86_64__ && defined __LP64__
-# include <gnu/lib-names-64.h>
-#endif
-#if defined __x86_64__ && defined __ILP32__
-# include <gnu/lib-names-x32.h>
-#endif
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/gnu/stubs.h
@@ -1,14 +0,0 @@
-/* This file is automatically generated.
- This file selects the right generated file of `__stub_FUNCTION' macros
- based on the architecture being compiled for. */
-
-
-#if !defined __x86_64__
-# include <gnu/stubs-32.h>
-#endif
-#if defined __x86_64__ && defined __LP64__
-# include <gnu/stubs-64.h>
-#endif
-#if defined __x86_64__ && defined __ILP32__
-# include <gnu/stubs-x32.h>
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/sys/elf.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_ELF_H
-#define _SYS_ELF_H 1
-
-#ifdef __x86_64__
-# error This header is unsupported on x86-64.
-#else
-# warning "This header is obsolete; use <sys/procfs.h> instead."
-
-# include <sys/procfs.h>
-#endif
-
-#endif /* _SYS_ELF_H */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/sys/ptrace.h
@@ -1,216 +0,0 @@
-/* `ptrace' debugger support interface. Linux/x86 version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PTRACE_H
-#define _SYS_PTRACE_H 1
-
-#include <features.h>
-#include <bits/types.h>
-
-__BEGIN_DECLS
-
-/* Type of the REQUEST argument to `ptrace.' */
-enum __ptrace_request
-{
- /* Indicate that the process making this request should be traced.
- All signals received by this process can be intercepted by its
- parent, and its parent can use the other `ptrace' requests. */
- PTRACE_TRACEME = 0,
-#define PT_TRACE_ME PTRACE_TRACEME
-
- /* Return the word in the process's text space at address ADDR. */
- PTRACE_PEEKTEXT = 1,
-#define PT_READ_I PTRACE_PEEKTEXT
-
- /* Return the word in the process's data space at address ADDR. */
- PTRACE_PEEKDATA = 2,
-#define PT_READ_D PTRACE_PEEKDATA
-
- /* Return the word in the process's user area at offset ADDR. */
- PTRACE_PEEKUSER = 3,
-#define PT_READ_U PTRACE_PEEKUSER
-
- /* Write the word DATA into the process's text space at address ADDR. */
- PTRACE_POKETEXT = 4,
-#define PT_WRITE_I PTRACE_POKETEXT
-
- /* Write the word DATA into the process's data space at address ADDR. */
- PTRACE_POKEDATA = 5,
-#define PT_WRITE_D PTRACE_POKEDATA
-
- /* Write the word DATA into the process's user area at offset ADDR. */
- PTRACE_POKEUSER = 6,
-#define PT_WRITE_U PTRACE_POKEUSER
-
- /* Continue the process. */
- PTRACE_CONT = 7,
-#define PT_CONTINUE PTRACE_CONT
-
- /* Kill the process. */
- PTRACE_KILL = 8,
-#define PT_KILL PTRACE_KILL
-
- /* Single step the process. */
- PTRACE_SINGLESTEP = 9,
-#define PT_STEP PTRACE_SINGLESTEP
-
- /* Get all general purpose registers used by a processes. */
- PTRACE_GETREGS = 12,
-#define PT_GETREGS PTRACE_GETREGS
-
- /* Set all general purpose registers used by a processes. */
- PTRACE_SETREGS = 13,
-#define PT_SETREGS PTRACE_SETREGS
-
- /* Get all floating point registers used by a processes. */
- PTRACE_GETFPREGS = 14,
-#define PT_GETFPREGS PTRACE_GETFPREGS
-
- /* Set all floating point registers used by a processes. */
- PTRACE_SETFPREGS = 15,
-#define PT_SETFPREGS PTRACE_SETFPREGS
-
- /* Attach to a process that is already running. */
- PTRACE_ATTACH = 16,
-#define PT_ATTACH PTRACE_ATTACH
-
- /* Detach from a process attached to with PTRACE_ATTACH. */
- PTRACE_DETACH = 17,
-#define PT_DETACH PTRACE_DETACH
-
- /* Get all extended floating point registers used by a processes. */
- PTRACE_GETFPXREGS = 18,
-#define PT_GETFPXREGS PTRACE_GETFPXREGS
-
- /* Set all extended floating point registers used by a processes. */
- PTRACE_SETFPXREGS = 19,
-#define PT_SETFPXREGS PTRACE_SETFPXREGS
-
- /* Continue and stop at the next entry to or return from syscall. */
- PTRACE_SYSCALL = 24,
-#define PT_SYSCALL PTRACE_SYSCALL
-
- /* Get a TLS entry in the GDT. */
- PTRACE_GET_THREAD_AREA = 25,
-#define PT_GET_THREAD_AREA PTRACE_GET_THREAD_AREA
-
- /* Change a TLS entry in the GDT. */
- PTRACE_SET_THREAD_AREA = 26,
-#define PT_SET_THREAD_AREA PTRACE_SET_THREAD_AREA
-
-#ifdef __x86_64__
- /* Access TLS data. */
- PTRACE_ARCH_PRCTL = 30,
-# define PT_ARCH_PRCTL PTRACE_ARCH_PRCTL
-#endif
-
- /* Continue and stop at the next syscall, it will not be executed. */
- PTRACE_SYSEMU = 31,
-#define PT_SYSEMU PTRACE_SYSEMU
-
- /* Single step the process, the next syscall will not be executed. */
- PTRACE_SYSEMU_SINGLESTEP = 32,
-#define PT_SYSEMU_SINGLESTEP PTRACE_SYSEMU_SINGLESTEP
-
- /* Execute process until next taken branch. */
- PTRACE_SINGLEBLOCK = 33,
-#define PT_STEPBLOCK PTRACE_SINGLEBLOCK
-
- /* Set ptrace filter options. */
- PTRACE_SETOPTIONS = 0x4200,
-#define PT_SETOPTIONS PTRACE_SETOPTIONS
-
- /* Get last ptrace message. */
- PTRACE_GETEVENTMSG = 0x4201,
-#define PT_GETEVENTMSG PTRACE_GETEVENTMSG
-
- /* Get siginfo for process. */
- PTRACE_GETSIGINFO = 0x4202,
-#define PT_GETSIGINFO PTRACE_GETSIGINFO
-
- /* Set new siginfo for process. */
- PTRACE_SETSIGINFO = 0x4203,
-#define PT_SETSIGINFO PTRACE_SETSIGINFO
-
- /* Get register content. */
- PTRACE_GETREGSET = 0x4204,
-#define PTRACE_GETREGSET PTRACE_GETREGSET
-
- /* Set register content. */
- PTRACE_SETREGSET = 0x4205,
-#define PTRACE_SETREGSET PTRACE_SETREGSET
-
- /* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
- signal or group stop state. */
- PTRACE_SEIZE = 0x4206,
-#define PTRACE_SEIZE PTRACE_SEIZE
-
- /* Trap seized tracee. */
- PTRACE_INTERRUPT = 0x4207,
-#define PTRACE_INTERRUPT PTRACE_INTERRUPT
-
- /* Wait for next group event. */
- PTRACE_LISTEN = 0x4208,
-#define PTRACE_LISTEN PTRACE_LISTEN
-
- /* Retrieve siginfo_t structures without removing signals from a queue. */
- PTRACE_PEEKSIGINFO = 0x4209,
-#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
-
- /* Get the mask of blocked signals. */
- PTRACE_GETSIGMASK = 0x420a,
-#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
-
- /* Change the mask of blocked signals. */
- PTRACE_SETSIGMASK = 0x420b,
-#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
-
- /* Get seccomp BPF filters. */
- PTRACE_SECCOMP_GET_FILTER = 0x420c,
-#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
-
- /* Get seccomp BPF filter metadata. */
- PTRACE_SECCOMP_GET_METADATA = 0x420d,
-#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
-
- /* Get information about system call. */
- PTRACE_GET_SYSCALL_INFO = 0x420e,
-#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
-
- /* Get rseq configuration information. */
- PTRACE_GET_RSEQ_CONFIGURATION = 0x420f,
-#define PTRACE_GET_RSEQ_CONFIGURATION PTRACE_GET_RSEQ_CONFIGURATION
-
- /* Set configuration for syscall user dispatch. */
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG = 0x4210,
-#define PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-
- /* Get configuration for syscall user dispatch. */
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG = 0x4211
-#define PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-};
-
-
-#include <bits/ptrace-shared.h>
-
-__END_DECLS
-
-#endif /* _SYS_PTRACE_H */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/sys/ucontext.h
@@ -1,262 +0,0 @@
-/* Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include <features.h>
-
-#include <bits/types.h>
-#include <bits/types/sigset_t.h>
-#include <bits/types/stack_t.h>
-
-
-#ifdef __USE_MISC
-# define __ctx(fld) fld
-#else
-# define __ctx(fld) __ ## fld
-#endif
-
-#ifdef __x86_64__
-
-/* Type for general register. */
-__extension__ typedef long long int greg_t;
-
-/* Number of general registers. */
-#define __NGREG 23
-#ifdef __USE_MISC
-# define NGREG __NGREG
-#endif
-
-/* Container for all general registers. */
-typedef greg_t gregset_t[__NGREG];
-
-#ifdef __USE_GNU
-/* Number of each register in the `gregset_t' array. */
-enum
-{
- REG_R8 = 0,
-# define REG_R8 REG_R8
- REG_R9,
-# define REG_R9 REG_R9
- REG_R10,
-# define REG_R10 REG_R10
- REG_R11,
-# define REG_R11 REG_R11
- REG_R12,
-# define REG_R12 REG_R12
- REG_R13,
-# define REG_R13 REG_R13
- REG_R14,
-# define REG_R14 REG_R14
- REG_R15,
-# define REG_R15 REG_R15
- REG_RDI,
-# define REG_RDI REG_RDI
- REG_RSI,
-# define REG_RSI REG_RSI
- REG_RBP,
-# define REG_RBP REG_RBP
- REG_RBX,
-# define REG_RBX REG_RBX
- REG_RDX,
-# define REG_RDX REG_RDX
- REG_RAX,
-# define REG_RAX REG_RAX
- REG_RCX,
-# define REG_RCX REG_RCX
- REG_RSP,
-# define REG_RSP REG_RSP
- REG_RIP,
-# define REG_RIP REG_RIP
- REG_EFL,
-# define REG_EFL REG_EFL
- REG_CSGSFS, /* Actually short cs, gs, fs, __pad0. */
-# define REG_CSGSFS REG_CSGSFS
- REG_ERR,
-# define REG_ERR REG_ERR
- REG_TRAPNO,
-# define REG_TRAPNO REG_TRAPNO
- REG_OLDMASK,
-# define REG_OLDMASK REG_OLDMASK
- REG_CR2
-# define REG_CR2 REG_CR2
-};
-#endif
-
-struct _libc_fpxreg
-{
- unsigned short int __ctx(significand)[4];
- unsigned short int __ctx(exponent);
- unsigned short int __glibc_reserved1[3];
-};
-
-struct _libc_xmmreg
-{
- __uint32_t __ctx(element)[4];
-};
-
-struct _libc_fpstate
-{
- /* 64-bit FXSAVE format. */
- __uint16_t __ctx(cwd);
- __uint16_t __ctx(swd);
- __uint16_t __ctx(ftw);
- __uint16_t __ctx(fop);
- __uint64_t __ctx(rip);
- __uint64_t __ctx(rdp);
- __uint32_t __ctx(mxcsr);
- __uint32_t __ctx(mxcr_mask);
- struct _libc_fpxreg _st[8];
- struct _libc_xmmreg _xmm[16];
- __uint32_t __glibc_reserved1[24];
-};
-
-/* Structure to describe FPU registers. */
-typedef struct _libc_fpstate *fpregset_t;
-
-/* Context to describe whole processor state. */
-typedef struct
- {
- gregset_t __ctx(gregs);
- /* Note that fpregs is a pointer. */
- fpregset_t __ctx(fpregs);
- __extension__ unsigned long long __reserved1 [8];
-} mcontext_t;
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long int __ctx(uc_flags);
- struct ucontext_t *uc_link;
- stack_t uc_stack;
- mcontext_t uc_mcontext;
- sigset_t uc_sigmask;
- struct _libc_fpstate __fpregs_mem;
- __extension__ unsigned long long int __ssp[4];
- } ucontext_t;
-
-#else /* !__x86_64__ */
-
-/* Type for general register. */
-typedef int greg_t;
-
-/* Number of general registers. */
-#define __NGREG 19
-#ifdef __USE_MISC
-# define NGREG __NGREG
-#endif
-
-/* Container for all general registers. */
-typedef greg_t gregset_t[__NGREG];
-
-#ifdef __USE_GNU
-/* Number of each register is the `gregset_t' array. */
-enum
-{
- REG_GS = 0,
-# define REG_GS REG_GS
- REG_FS,
-# define REG_FS REG_FS
- REG_ES,
-# define REG_ES REG_ES
- REG_DS,
-# define REG_DS REG_DS
- REG_EDI,
-# define REG_EDI REG_EDI
- REG_ESI,
-# define REG_ESI REG_ESI
- REG_EBP,
-# define REG_EBP REG_EBP
- REG_ESP,
-# define REG_ESP REG_ESP
- REG_EBX,
-# define REG_EBX REG_EBX
- REG_EDX,
-# define REG_EDX REG_EDX
- REG_ECX,
-# define REG_ECX REG_ECX
- REG_EAX,
-# define REG_EAX REG_EAX
- REG_TRAPNO,
-# define REG_TRAPNO REG_TRAPNO
- REG_ERR,
-# define REG_ERR REG_ERR
- REG_EIP,
-# define REG_EIP REG_EIP
- REG_CS,
-# define REG_CS REG_CS
- REG_EFL,
-# define REG_EFL REG_EFL
- REG_UESP,
-# define REG_UESP REG_UESP
- REG_SS
-# define REG_SS REG_SS
-};
-#endif
-
-/* Definitions taken from the kernel headers. */
-struct _libc_fpreg
-{
- unsigned short int __ctx(significand)[4];
- unsigned short int __ctx(exponent);
-};
-
-struct _libc_fpstate
-{
- unsigned long int __ctx(cw);
- unsigned long int __ctx(sw);
- unsigned long int __ctx(tag);
- unsigned long int __ctx(ipoff);
- unsigned long int __ctx(cssel);
- unsigned long int __ctx(dataoff);
- unsigned long int __ctx(datasel);
- struct _libc_fpreg _st[8];
- unsigned long int __ctx(status);
-};
-
-/* Structure to describe FPU registers. */
-typedef struct _libc_fpstate *fpregset_t;
-
-/* Context to describe whole processor state. */
-typedef struct
- {
- gregset_t __ctx(gregs);
- /* Due to Linux's history we have to use a pointer here. The SysV/i386
- ABI requires a struct with the values. */
- fpregset_t __ctx(fpregs);
- unsigned long int __ctx(oldmask);
- unsigned long int __ctx(cr2);
- } mcontext_t;
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long int __ctx(uc_flags);
- struct ucontext_t *uc_link;
- stack_t uc_stack;
- mcontext_t uc_mcontext;
- sigset_t uc_sigmask;
- struct _libc_fpstate __fpregs_mem;
- unsigned long int __ssp[4];
- } ucontext_t;
-
-#endif /* !__x86_64__ */
-
-#undef __ctx
-
-#endif /* sys/ucontext.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/sys/user.h
@@ -1,180 +0,0 @@
-/* Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_USER_H
-#define _SYS_USER_H 1
-
-/* The whole purpose of this file is for GDB and GDB only. Don't read
- too much into it. Don't use it for anything other than GDB unless
- you know what you are doing. */
-
-#ifdef __x86_64__
-
-struct user_fpregs_struct
-{
- unsigned short int cwd;
- unsigned short int swd;
- unsigned short int ftw;
- unsigned short int fop;
- __extension__ unsigned long long int rip;
- __extension__ unsigned long long int rdp;
- unsigned int mxcsr;
- unsigned int mxcr_mask;
- unsigned int st_space[32]; /* 8*16 bytes for each FP-reg = 128 bytes */
- unsigned int xmm_space[64]; /* 16*16 bytes for each XMM-reg = 256 bytes */
- unsigned int padding[24];
-};
-
-struct user_regs_struct
-{
- __extension__ unsigned long long int r15;
- __extension__ unsigned long long int r14;
- __extension__ unsigned long long int r13;
- __extension__ unsigned long long int r12;
- __extension__ unsigned long long int rbp;
- __extension__ unsigned long long int rbx;
- __extension__ unsigned long long int r11;
- __extension__ unsigned long long int r10;
- __extension__ unsigned long long int r9;
- __extension__ unsigned long long int r8;
- __extension__ unsigned long long int rax;
- __extension__ unsigned long long int rcx;
- __extension__ unsigned long long int rdx;
- __extension__ unsigned long long int rsi;
- __extension__ unsigned long long int rdi;
- __extension__ unsigned long long int orig_rax;
- __extension__ unsigned long long int rip;
- __extension__ unsigned long long int cs;
- __extension__ unsigned long long int eflags;
- __extension__ unsigned long long int rsp;
- __extension__ unsigned long long int ss;
- __extension__ unsigned long long int fs_base;
- __extension__ unsigned long long int gs_base;
- __extension__ unsigned long long int ds;
- __extension__ unsigned long long int es;
- __extension__ unsigned long long int fs;
- __extension__ unsigned long long int gs;
-};
-
-struct user
-{
- struct user_regs_struct regs;
- int u_fpvalid;
- struct user_fpregs_struct i387;
- __extension__ unsigned long long int u_tsize;
- __extension__ unsigned long long int u_dsize;
- __extension__ unsigned long long int u_ssize;
- __extension__ unsigned long long int start_code;
- __extension__ unsigned long long int start_stack;
- __extension__ long long int signal;
- int reserved;
- __extension__ union
- {
- struct user_regs_struct* u_ar0;
- __extension__ unsigned long long int __u_ar0_word;
- };
- __extension__ union
- {
- struct user_fpregs_struct* u_fpstate;
- __extension__ unsigned long long int __u_fpstate_word;
- };
- __extension__ unsigned long long int magic;
- char u_comm [32];
- __extension__ unsigned long long int u_debugreg [8];
-};
-
-#else
-/* These are the 32-bit x86 structures. */
-struct user_fpregs_struct
-{
- long int cwd;
- long int swd;
- long int twd;
- long int fip;
- long int fcs;
- long int foo;
- long int fos;
- long int st_space [20];
-};
-
-struct user_fpxregs_struct
-{
- unsigned short int cwd;
- unsigned short int swd;
- unsigned short int twd;
- unsigned short int fop;
- long int fip;
- long int fcs;
- long int foo;
- long int fos;
- long int mxcsr;
- long int reserved;
- long int st_space[32]; /* 8*16 bytes for each FP-reg = 128 bytes */
- long int xmm_space[32]; /* 8*16 bytes for each XMM-reg = 128 bytes */
- long int padding[56];
-};
-
-struct user_regs_struct
-{
- long int ebx;
- long int ecx;
- long int edx;
- long int esi;
- long int edi;
- long int ebp;
- long int eax;
- long int xds;
- long int xes;
- long int xfs;
- long int xgs;
- long int orig_eax;
- long int eip;
- long int xcs;
- long int eflags;
- long int esp;
- long int xss;
-};
-
-struct user
-{
- struct user_regs_struct regs;
- int u_fpvalid;
- struct user_fpregs_struct i387;
- unsigned long int u_tsize;
- unsigned long int u_dsize;
- unsigned long int u_ssize;
- unsigned long int start_code;
- unsigned long int start_stack;
- long int signal;
- int reserved;
- struct user_regs_struct* u_ar0;
- struct user_fpregs_struct* u_fpstate;
- unsigned long int magic;
- char u_comm [32];
- int u_debugreg [8];
-};
-#endif /* __x86_64__ */
-
-#define PAGE_SHIFT 12
-#define PAGE_SIZE (1UL << PAGE_SHIFT)
-#define PAGE_MASK (~(PAGE_SIZE-1))
-#define NBPG PAGE_SIZE
-#define UPAGES 1
-#define HOST_TEXT_START_ADDR (u.start_code)
-#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
-
-#endif /* _SYS_USER_H */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/fpu_control.h
@@ -1,108 +0,0 @@
-/* FPU control word bits. x86 version.
- Copyright (C) 1993-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FPU_CONTROL_H
-#define _FPU_CONTROL_H 1
-
-/* Note that this file sets on x86-64 only the x87 FPU, it does not
- touch the SSE unit. */
-
-/* Here is the dirty part. Set up your 387 through the control word
- * (cw) register.
- *
- * 15-13 12 11-10 9-8 7-6 5 4 3 2 1 0
- * | reserved | IC | RC | PC | reserved | PM | UM | OM | ZM | DM | IM
- *
- * IM: Invalid operation mask
- * DM: Denormalized operand mask
- * ZM: Zero-divide mask
- * OM: Overflow mask
- * UM: Underflow mask
- * PM: Precision (inexact result) mask
- *
- * Mask bit is 1 means no interrupt.
- *
- * PC: Precision control
- * 11 - round to extended precision
- * 10 - round to double precision
- * 00 - round to single precision
- *
- * RC: Rounding control
- * 00 - rounding to nearest
- * 01 - rounding down (toward - infinity)
- * 10 - rounding up (toward + infinity)
- * 11 - rounding toward zero
- *
- * IC: Infinity control
- * That is for 8087 and 80287 only.
- *
- * The hardware default is 0x037f which we use.
- */
-
-#include <features.h>
-
-/* masking of interrupts */
-#define _FPU_MASK_IM 0x01
-#define _FPU_MASK_DM 0x02
-#define _FPU_MASK_ZM 0x04
-#define _FPU_MASK_OM 0x08
-#define _FPU_MASK_UM 0x10
-#define _FPU_MASK_PM 0x20
-
-/* precision control */
-#define _FPU_EXTENDED 0x300 /* libm requires double extended precision. */
-#define _FPU_DOUBLE 0x200
-#define _FPU_SINGLE 0x0
-
-/* rounding control */
-#define _FPU_RC_NEAREST 0x0 /* RECOMMENDED */
-#define _FPU_RC_DOWN 0x400
-#define _FPU_RC_UP 0x800
-#define _FPU_RC_ZERO 0xC00
-
-#define _FPU_RESERVED 0xF0C0 /* Reserved bits in cw */
-
-
-/* The fdlibm code requires strict IEEE double precision arithmetic,
- and no interrupts for exceptions, rounding to nearest. */
-
-#define _FPU_DEFAULT 0x037f
-
-/* IEEE: same as above. */
-#define _FPU_IEEE 0x037f
-
-/* Type of the control word. */
-typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__HI__)));
-
-/* Macros for accessing the hardware control word. "*&" is used to
- work around a bug in older versions of GCC. __volatile__ is used
- to support combination of writing the control register and reading
- it back. Without __volatile__, the old value may be used for reading
- back under compiler optimization.
-
- Note that the use of these macros is not sufficient anymore with
- recent hardware nor on x86-64. Some floating point operations are
- executed in the SSE/SSE2 engines which have their own control and
- status register. */
-#define _FPU_GETCW(cw) __asm__ __volatile__ ("fnstcw %0" : "=m" (*&cw))
-#define _FPU_SETCW(cw) __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw))
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-#endif /* fpu_control.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/types/struct_semid_ds.h
@@ -1,38 +0,0 @@
-/* x86 implementation of the semaphore struct semid_ds.
- Copyright (C) 1995-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
-#endif
-
-/* Data structure describing a set of semaphores. */
-struct semid_ds
-{
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/types/struct_semid64_ds_helper.h>
-#else
- struct ipc_perm sem_perm; /* operation permission struct */
- __time_t sem_otime; /* last semop() time */
- __syscall_ulong_t __sem_otime_high;
- __time_t sem_ctime; /* last time changed by semctl() */
- __syscall_ulong_t __sem_ctime_high;
- __syscall_ulong_t sem_nsems; /* number of semaphores in set */
- __syscall_ulong_t __glibc_reserved3;
- __syscall_ulong_t __glibc_reserved4;
-#endif
-};
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/a.out.h
@@ -1,11 +0,0 @@
-#ifndef __A_OUT_GNU_H__
-# error "Never use <bits/a.out.h> directly; include <a.out.h> instead."
-#endif
-
-#ifdef __x86_64__
-
-/* Signal to users of this header that this architecture really doesn't
- support a.out binary format. */
-#define __NO_A_OUT_SUPPORT 1
-
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/dl_find_object.h
@@ -1,29 +0,0 @@
-/* x86 definitions for finding objects.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _DLFCN_H
-# error "Never use <bits/dl_find_object.h> directly; include <dlfcn.h> instead."
-#endif
-
-#ifdef __x86_64__
-# define DLFO_STRUCT_HAS_EH_DBASE 0
-#else
-# define DLFO_STRUCT_HAS_EH_DBASE 1
-#endif
-#define DLFO_STRUCT_HAS_EH_COUNT 0
-#define DLFO_EH_SEGMENT_TYPE PT_GNU_EH_FRAME
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/endianness.h
@@ -1,11 +0,0 @@
-#ifndef _BITS_ENDIANNESS_H
-#define _BITS_ENDIANNESS_H 1
-
-#ifndef _BITS_ENDIAN_H
-# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
-#endif
-
-/* i386/x86_64 are little-endian. */
-#define __BYTE_ORDER __LITTLE_ENDIAN
-
-#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/environments.h
@@ -1,105 +0,0 @@
-/* Copyright (C) 1999-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _UNISTD_H
-# error "Never include this file directly. Use <unistd.h> instead"
-#endif
-
-#include <bits/wordsize.h>
-
-/* This header should define the following symbols under the described
- situations. A value `1' means that the model is always supported,
- `-1' means it is never supported. Undefined means it cannot be
- statically decided.
-
- _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type
- _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type
-
- _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type
- _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type
-
- The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG,
- _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32,
- _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were
- used in previous versions of the Unix standard and are available
- only for compatibility.
-*/
-
-#if __WORDSIZE == 64
-
-/* Environments with 32-bit wide pointers are optionally provided.
- Therefore following macros aren't defined:
- # undef _POSIX_V7_ILP32_OFF32
- # undef _POSIX_V7_ILP32_OFFBIG
- # undef _POSIX_V6_ILP32_OFF32
- # undef _POSIX_V6_ILP32_OFFBIG
- # undef _XBS5_ILP32_OFF32
- # undef _XBS5_ILP32_OFFBIG
- and users need to check at runtime. */
-
-/* We also have no use (for now) for an environment with bigger pointers
- and offsets. */
-# define _POSIX_V7_LPBIG_OFFBIG -1
-# define _POSIX_V6_LPBIG_OFFBIG -1
-# define _XBS5_LPBIG_OFFBIG -1
-
-/* By default we have 64-bit wide `long int', pointers and `off_t'. */
-# define _POSIX_V7_LP64_OFF64 1
-# define _POSIX_V6_LP64_OFF64 1
-# define _XBS5_LP64_OFF64 1
-
-#else /* __WORDSIZE == 32 */
-
-/* We have 32-bit wide `int', `long int' and pointers and all platforms
- support LFS. -mx32 has 64-bit wide `off_t'. */
-# define _POSIX_V7_ILP32_OFFBIG 1
-# define _POSIX_V6_ILP32_OFFBIG 1
-# define _XBS5_ILP32_OFFBIG 1
-
-# ifndef __x86_64__
-/* -m32 has 32-bit wide `off_t'. */
-# define _POSIX_V7_ILP32_OFF32 1
-# define _POSIX_V6_ILP32_OFF32 1
-# define _XBS5_ILP32_OFF32 1
-# endif
-
-/* We optionally provide an environment with the above size but an 64-bit
- side `off_t'. Therefore we don't define _POSIX_V7_ILP32_OFFBIG. */
-
-/* Environments with 64-bit wide pointers can be provided,
- so these macros aren't defined:
- # undef _POSIX_V7_LP64_OFF64
- # undef _POSIX_V7_LPBIG_OFFBIG
- # undef _POSIX_V6_LP64_OFF64
- # undef _POSIX_V6_LPBIG_OFFBIG
- # undef _XBS5_LP64_OFF64
- # undef _XBS5_LPBIG_OFFBIG
- and sysconf tests for it at runtime. */
-
-#endif /* __WORDSIZE == 32 */
-
-#define __ILP32_OFF32_CFLAGS "-m32"
-#define __ILP32_OFF32_LDFLAGS "-m32"
-#if defined __x86_64__ && defined __ILP32__
-# define __ILP32_OFFBIG_CFLAGS "-mx32"
-# define __ILP32_OFFBIG_LDFLAGS "-mx32"
-#else
-# define __ILP32_OFFBIG_CFLAGS "-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
-# define __ILP32_OFFBIG_LDFLAGS "-m32"
-#endif
-#define __LP64_OFF64_CFLAGS "-m64"
-#define __LP64_OFF64_LDFLAGS "-m64"
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/epoll.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_EPOLL_H
-# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."
-#endif
-
-/* Flags to be passed to epoll_create1. */
-enum
- {
- EPOLL_CLOEXEC = 02000000
-#define EPOLL_CLOEXEC EPOLL_CLOEXEC
- };
-
-#define __EPOLL_PACKED __attribute__ ((__packed__))
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/fcntl.h
@@ -1,61 +0,0 @@
-/* O_*, F_*, FD_* bit values for Linux/x86.
- Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FCNTL_H
-# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
-#endif
-
-#ifdef __x86_64__
-# define __O_LARGEFILE 0
-#endif
-
-#ifdef __x86_64__
-/* Not necessary, we always have 64-bit offsets. */
-# define F_GETLK64 5 /* Get record locking info. */
-# define F_SETLK64 6 /* Set record locking info (non-blocking). */
-# define F_SETLKW64 7 /* Set record locking info (blocking). */
-#endif
-
-
-struct flock
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
-#ifndef __USE_FILE_OFFSET64
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
-#else
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
-#endif
- __pid_t l_pid; /* Process holding the lock. */
- };
-
-#ifdef __USE_LARGEFILE64
-struct flock64
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- };
-#endif
-
-/* Include generic Linux declarations. */
-#include <bits/fcntl-linux.h>
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/fenv.h
@@ -1,116 +0,0 @@
-/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FENV_H
-# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
-#endif
-
-/* Define bits representing the exception. We use the bit positions
- of the appropriate bits in the FPU control word. */
-enum
- {
- FE_INVALID =
-#define FE_INVALID 0x01
- FE_INVALID,
- __FE_DENORM = 0x02,
- FE_DIVBYZERO =
-#define FE_DIVBYZERO 0x04
- FE_DIVBYZERO,
- FE_OVERFLOW =
-#define FE_OVERFLOW 0x08
- FE_OVERFLOW,
- FE_UNDERFLOW =
-#define FE_UNDERFLOW 0x10
- FE_UNDERFLOW,
- FE_INEXACT =
-#define FE_INEXACT 0x20
- FE_INEXACT
- };
-
-#define FE_ALL_EXCEPT \
- (FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID)
-
-/* The ix87 FPU supports all of the four defined rounding modes. We
- use again the bit positions in the FPU control word as the values
- for the appropriate macros. */
-enum
- {
- FE_TONEAREST =
-#define FE_TONEAREST 0
- FE_TONEAREST,
- FE_DOWNWARD =
-#define FE_DOWNWARD 0x400
- FE_DOWNWARD,
- FE_UPWARD =
-#define FE_UPWARD 0x800
- FE_UPWARD,
- FE_TOWARDZERO =
-#define FE_TOWARDZERO 0xc00
- FE_TOWARDZERO
- };
-
-
-/* Type representing exception flags. */
-typedef unsigned short int fexcept_t;
-
-
-/* Type representing floating-point environment. This structure
- corresponds to the layout of the block written by the `fstenv'
- instruction and has additional fields for the contents of the MXCSR
- register as written by the `stmxcsr' instruction. */
-typedef struct
- {
- unsigned short int __control_word;
- unsigned short int __glibc_reserved1;
- unsigned short int __status_word;
- unsigned short int __glibc_reserved2;
- unsigned short int __tags;
- unsigned short int __glibc_reserved3;
- unsigned int __eip;
- unsigned short int __cs_selector;
- unsigned int __opcode:11;
- unsigned int __glibc_reserved4:5;
- unsigned int __data_offset;
- unsigned short int __data_selector;
- unsigned short int __glibc_reserved5;
-#ifdef __x86_64__
- unsigned int __mxcsr;
-#endif
- }
-fenv_t;
-
-/* If the default argument is used we use this value. */
-#define FE_DFL_ENV ((const fenv_t *) -1)
-
-#ifdef __USE_GNU
-/* Floating-point environment where none of the exception is masked. */
-# define FE_NOMASK_ENV ((const fenv_t *) -2)
-#endif
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
-/* Type representing floating-point control modes. */
-typedef struct
- {
- unsigned short int __control_word;
- unsigned short int __glibc_reserved;
- unsigned int __mxcsr;
- }
-femode_t;
-
-/* Default floating-point control modes. */
-# define FE_DFL_MODE ((const femode_t *) -1L)
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/floatn.h
@@ -1,129 +0,0 @@
-/* Macros to control TS 18661-3 glibc features on x86.
- Copyright (C) 2017-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_FLOATN_H
-#define _BITS_FLOATN_H
-
-#include <features.h>
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this
- glibc includes corresponding *f128 interfaces for it. The required
- libgcc support was added some time after the basic compiler
- support, for x86_64 and x86. */
-#if (defined __x86_64__ \
- ? __GNUC_PREREQ (4, 3) \
- : (defined __GNU__ ? __GNUC_PREREQ (4, 5) : __GNUC_PREREQ (4, 4))) \
- || __glibc_clang_prereq (3, 4)
-# define __HAVE_FLOAT128 1
-#else
-# define __HAVE_FLOAT128 0
-#endif
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#if __HAVE_FLOAT128
-# define __HAVE_DISTINCT_FLOAT128 1
-#else
-# define __HAVE_DISTINCT_FLOAT128 0
-#endif
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X 1
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE 1
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) \
- || (defined __cplusplus && !__GNUC_PREREQ (13, 0)) \
- || defined __clang__
-/* The literal suffix f128 exists only since GCC 7.0. */
-# define __f128(x) x##q
-# else
-# define __f128(x) x##f128
-# endif
-# endif
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */
-# if __HAVE_FLOAT128
-# if !__GNUC_PREREQ (7, 0) \
- || (defined __cplusplus && !__GNUC_PREREQ (13, 0)) \
- || defined __clang__
-/* Add a typedef for older GCC compilers which don't natively support
- _Complex _Float128. */
-typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__TC__)));
-# define __CFLOAT128 __cfloat128
-# else
-# define __CFLOAT128 _Complex _Float128
-# endif
-# endif
-
-/* The remaining of this file provides support for older compilers. */
-# if __HAVE_FLOAT128
-
-/* The type _Float128 exists only since GCC 7.0. */
-# if !__GNUC_PREREQ (7, 0) \
- || (defined __cplusplus && !__GNUC_PREREQ (13, 0)) \
- || __glibc_clang_prereq (3, 4)
-typedef __float128 _Float128;
-# endif
-
-/* __builtin_huge_valf128 doesn't exist before GCC 7.0 nor Clang 7.0. */
-# if !__GNUC_PREREQ (7, 0) && !__glibc_clang_prereq (7, 0)
-# define __builtin_huge_valf128() ((_Float128) __builtin_huge_val ())
-# endif
-
-/* Older GCC has only a subset of built-in functions for _Float128 on
- x86, and __builtin_infq is not usable in static initializers.
- Converting a narrower sNaN to _Float128 produces a quiet NaN, so
- attempts to use _Float128 sNaNs will not work properly with older
- compilers. */
-# if !__GNUC_PREREQ (7, 0) && !defined __clang__
-# define __builtin_copysignf128 __builtin_copysignq
-# define __builtin_fabsf128 __builtin_fabsq
-# define __builtin_inff128() ((_Float128) __builtin_inf ())
-# define __builtin_nanf128(x) ((_Float128) __builtin_nan (x))
-# define __builtin_nansf128(x) ((_Float128) __builtin_nans (x))
-# endif
-
-/* In math/math.h, __MATH_TG will expand signbit to __builtin_signbit*,
- e.g.: __builtin_signbitf128, before GCC 6. However, there has never
- been a __builtin_signbitf128 in GCC and the type-generic builtin is
- only available since GCC 6. signbit is expanded to __builtin_signbit
- after Clang 3.3. */
-# if !__GNUC_PREREQ (6, 0)
-# define __builtin_signbitf128 __signbitf128
-# endif
-
-# endif
-
-#endif /* !__ASSEMBLER__. */
-
-#include <bits/floatn-common.h>
-
-#endif /* _BITS_FLOATN_H */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/flt-eval-method.h
@@ -1,33 +0,0 @@
-/* Define __GLIBC_FLT_EVAL_METHOD. x86 version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead."
-#endif
-
-#ifdef __FLT_EVAL_METHOD__
-# if __FLT_EVAL_METHOD__ == -1
-# define __GLIBC_FLT_EVAL_METHOD 2
-# else
-# define __GLIBC_FLT_EVAL_METHOD __FLT_EVAL_METHOD__
-# endif
-#elif defined __x86_64__
-# define __GLIBC_FLT_EVAL_METHOD 0
-#else
-# define __GLIBC_FLT_EVAL_METHOD 2
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/fp-logb.h
@@ -1,24 +0,0 @@
-/* Define __FP_LOGB0_IS_MIN and __FP_LOGBNAN_IS_MIN. x86 version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never use <bits/fp-logb.h> directly; include <math.h> instead."
-#endif
-
-#define __FP_LOGB0_IS_MIN 1
-#define __FP_LOGBNAN_IS_MIN 1
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/indirect-return.h
@@ -1,37 +0,0 @@
-/* Definition of __INDIRECT_RETURN. x86 version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _UCONTEXT_H
-# error "Never include <bits/indirect-return.h> directly; use <ucontext.h> instead."
-#endif
-
-/* On x86, swapcontext returns via indirect branch when the shadow stack
- is enabled. Define __INDIRECT_RETURN to indicate whether swapcontext
- returns via indirect branch. */
-#if defined __CET__ && (__CET__ & 2) != 0
-# if __glibc_has_attribute (__indirect_return__)
-# define __INDIRECT_RETURN __attribute__ ((__indirect_return__))
-# else
-/* Newer compilers provide the indirect_return attribute, but without
- it we can use returns_twice to affect the optimizer in the same
- way and avoid unsafe optimizations. */
-# define __INDIRECT_RETURN __attribute__ ((__returns_twice__))
-# endif
-#else
-# define __INDIRECT_RETURN
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/ipctypes.h
@@ -1,33 +0,0 @@
-/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM.
- Copyright (C) 2012-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IPC_H
-# error "Never use <bits/ipctypes.h> directly; include <sys/ipc.h> instead."
-#endif
-
-#ifndef _BITS_IPCTYPES_H
-#define _BITS_IPCTYPES_H 1
-
-/* Used in `struct shmid_ds'. */
-# ifdef __x86_64__
-typedef int __ipc_pid_t;
-# else
-typedef unsigned short int __ipc_pid_t;
-# endif
-
-#endif /* bits/ipctypes.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/iscanonical.h
@@ -1,54 +0,0 @@
-/* Define iscanonical macro. ldbl-96 version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."
-#endif
-
-extern int __iscanonicall (long double __x)
- __THROW __attribute__ ((__const__));
-#define __iscanonicalf(x) ((void) (__typeof (x)) (x), 1)
-#define __iscanonical(x) ((void) (__typeof (x)) (x), 1)
-#if __HAVE_DISTINCT_FLOAT128
-# define __iscanonicalf128(x) ((void) (__typeof (x)) (x), 1)
-#endif
-
-/* Return nonzero value if X is canonical. In IEEE interchange binary
- formats, all values are canonical, but the argument must still be
- converted to its semantic type for any exceptions arising from the
- conversion, before being discarded; in extended precision, there
- are encodings that are not consistently handled as corresponding to
- any particular value of the type, and we return 0 for those. */
-#ifndef __cplusplus
-# define iscanonical(x) __MATH_TG ((x), __iscanonical, (x))
-#else
-/* In C++ mode, __MATH_TG cannot be used, because it relies on
- __builtin_types_compatible_p, which is a C-only builtin. On the
- other hand, overloading provides the means to distinguish between
- the floating-point types. The overloading resolution will match
- the correct parameter (regardless of type qualifiers (i.e.: const
- and volatile)). */
-extern "C++" {
-inline int iscanonical (float __val) { return __iscanonicalf (__val); }
-inline int iscanonical (double __val) { return __iscanonical (__val); }
-inline int iscanonical (long double __val) { return __iscanonicall (__val); }
-# if __HAVE_DISTINCT_FLOAT128
-inline int iscanonical (_Float128 __val) { return __iscanonicalf128 (__val); }
-# endif
-}
-#endif /* __cplusplus */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/link.h
@@ -1,159 +0,0 @@
-/* Copyright (C) 2004-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _LINK_H
-# error "Never include <bits/link.h> directly; use <link.h> instead."
-#endif
-
-
-#ifndef __x86_64__
-/* Registers for entry into PLT on IA-32. */
-typedef struct La_i86_regs
-{
- uint32_t lr_edx;
- uint32_t lr_ecx;
- uint32_t lr_eax;
- uint32_t lr_ebp;
- uint32_t lr_esp;
-} La_i86_regs;
-
-/* Return values for calls from PLT on IA-32. */
-typedef struct La_i86_retval
-{
- uint32_t lrv_eax;
- uint32_t lrv_edx;
- long double lrv_st0;
- long double lrv_st1;
- uint64_t __glibc_unused1;
- uint64_t __glibc_unused2;
-} La_i86_retval;
-
-
-__BEGIN_DECLS
-
-extern Elf32_Addr la_i86_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_i86_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_i86_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_i86_regs *__inregs,
- La_i86_retval *__outregs,
- const char *symname);
-
-__END_DECLS
-
-#else
-
-/* Registers for entry into PLT on x86-64. */
-# if __GNUC_PREREQ (4,0)
-typedef float La_x86_64_xmm __attribute__ ((__vector_size__ (16)));
-typedef float La_x86_64_ymm
- __attribute__ ((__vector_size__ (32), __aligned__ (16)));
-typedef double La_x86_64_zmm
- __attribute__ ((__vector_size__ (64), __aligned__ (16)));
-# else
-typedef float La_x86_64_xmm __attribute__ ((__mode__ (__V4SF__)));
-# endif
-
-typedef union
-{
-# if __GNUC_PREREQ (4,0)
- La_x86_64_ymm ymm[2];
- La_x86_64_zmm zmm[1];
-# endif
- La_x86_64_xmm xmm[4];
-} La_x86_64_vector __attribute__ ((__aligned__ (16)));
-
-typedef struct La_x86_64_regs
-{
- uint64_t lr_rdx;
- uint64_t lr_r8;
- uint64_t lr_r9;
- uint64_t lr_rcx;
- uint64_t lr_rsi;
- uint64_t lr_rdi;
- uint64_t lr_rbp;
- uint64_t lr_rsp;
- La_x86_64_xmm lr_xmm[8];
- La_x86_64_vector lr_vector[8];
-#ifndef __ILP32__
- __int128_t __glibc_unused1[4];
-#endif
-} La_x86_64_regs;
-
-/* Return values for calls from PLT on x86-64. */
-typedef struct La_x86_64_retval
-{
- uint64_t lrv_rax;
- uint64_t lrv_rdx;
- La_x86_64_xmm lrv_xmm0;
- La_x86_64_xmm lrv_xmm1;
- long double lrv_st0;
- long double lrv_st1;
- La_x86_64_vector lrv_vector0;
- La_x86_64_vector lrv_vector1;
-#ifndef __ILP32__
- __int128_t __glibc_unused1;
- __int128_t __glibc_unused2;
-#endif
-} La_x86_64_retval;
-
-#define La_x32_regs La_x86_64_regs
-#define La_x32_retval La_x86_64_retval
-
-__BEGIN_DECLS
-
-extern Elf64_Addr la_x86_64_gnu_pltenter (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_x86_64_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_x86_64_gnu_pltexit (Elf64_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_x86_64_regs *__inregs,
- La_x86_64_retval *__outregs,
- const char *__symname);
-
-extern Elf32_Addr la_x32_gnu_pltenter (Elf32_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_x32_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_x32_gnu_pltexit (Elf32_Sym *__sym,
- unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_x32_regs *__inregs,
- La_x32_retval *__outregs,
- const char *__symname);
-
-__END_DECLS
-
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/long-double.h
@@ -1,21 +0,0 @@
-/* Properties of long double type. ldbl-96 version.
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* long double is distinct from double, so there is nothing to
- define here. */
-#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/math-vector.h
@@ -1,147 +0,0 @@
-/* Platform-specific SIMD declarations of math functions.
- Copyright (C) 2014-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never include <bits/math-vector.h> directly;\
- include <math.h> instead."
-#endif
-
-/* Get default empty definitions for simd declarations. */
-#include <bits/libm-simd-decl-stubs.h>
-
-#if defined __x86_64__ && defined __FAST_MATH__
-# if defined _OPENMP && _OPENMP >= 201307
-/* OpenMP case. */
-# define __DECL_SIMD_x86_64 _Pragma ("omp declare simd notinbranch")
-# elif __GNUC_PREREQ (6,0)
-/* W/o OpenMP use GCC 6.* __attribute__ ((__simd__)). */
-# define __DECL_SIMD_x86_64 __attribute__ ((__simd__ ("notinbranch")))
-# endif
-
-# ifdef __DECL_SIMD_x86_64
-# undef __DECL_SIMD_cos
-# define __DECL_SIMD_cos __DECL_SIMD_x86_64
-# undef __DECL_SIMD_cosf
-# define __DECL_SIMD_cosf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_sin
-# define __DECL_SIMD_sin __DECL_SIMD_x86_64
-# undef __DECL_SIMD_sinf
-# define __DECL_SIMD_sinf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_sincos
-# define __DECL_SIMD_sincos __DECL_SIMD_x86_64
-# undef __DECL_SIMD_sincosf
-# define __DECL_SIMD_sincosf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log
-# define __DECL_SIMD_log __DECL_SIMD_x86_64
-# undef __DECL_SIMD_logf
-# define __DECL_SIMD_logf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_exp
-# define __DECL_SIMD_exp __DECL_SIMD_x86_64
-# undef __DECL_SIMD_expf
-# define __DECL_SIMD_expf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_pow
-# define __DECL_SIMD_pow __DECL_SIMD_x86_64
-# undef __DECL_SIMD_powf
-# define __DECL_SIMD_powf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_acos
-# define __DECL_SIMD_acos __DECL_SIMD_x86_64
-# undef __DECL_SIMD_acosf
-# define __DECL_SIMD_acosf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_atan
-# define __DECL_SIMD_atan __DECL_SIMD_x86_64
-# undef __DECL_SIMD_atanf
-# define __DECL_SIMD_atanf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_asin
-# define __DECL_SIMD_asin __DECL_SIMD_x86_64
-# undef __DECL_SIMD_asinf
-# define __DECL_SIMD_asinf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_hypot
-# define __DECL_SIMD_hypot __DECL_SIMD_x86_64
-# undef __DECL_SIMD_hypotf
-# define __DECL_SIMD_hypotf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_exp2
-# define __DECL_SIMD_exp2 __DECL_SIMD_x86_64
-# undef __DECL_SIMD_exp2f
-# define __DECL_SIMD_exp2f __DECL_SIMD_x86_64
-# undef __DECL_SIMD_exp10
-# define __DECL_SIMD_exp10 __DECL_SIMD_x86_64
-# undef __DECL_SIMD_exp10f
-# define __DECL_SIMD_exp10f __DECL_SIMD_x86_64
-# undef __DECL_SIMD_cosh
-# define __DECL_SIMD_cosh __DECL_SIMD_x86_64
-# undef __DECL_SIMD_coshf
-# define __DECL_SIMD_coshf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_expm1
-# define __DECL_SIMD_expm1 __DECL_SIMD_x86_64
-# undef __DECL_SIMD_expm1f
-# define __DECL_SIMD_expm1f __DECL_SIMD_x86_64
-# undef __DECL_SIMD_sinh
-# define __DECL_SIMD_sinh __DECL_SIMD_x86_64
-# undef __DECL_SIMD_sinhf
-# define __DECL_SIMD_sinhf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_cbrt
-# define __DECL_SIMD_cbrt __DECL_SIMD_x86_64
-# undef __DECL_SIMD_cbrtf
-# define __DECL_SIMD_cbrtf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_atan2
-# define __DECL_SIMD_atan2 __DECL_SIMD_x86_64
-# undef __DECL_SIMD_atan2f
-# define __DECL_SIMD_atan2f __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log10
-# define __DECL_SIMD_log10 __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log10f
-# define __DECL_SIMD_log10f __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log2
-# define __DECL_SIMD_log2 __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log2f
-# define __DECL_SIMD_log2f __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log1p
-# define __DECL_SIMD_log1p __DECL_SIMD_x86_64
-# undef __DECL_SIMD_log1pf
-# define __DECL_SIMD_log1pf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_atanh
-# define __DECL_SIMD_atanh __DECL_SIMD_x86_64
-# undef __DECL_SIMD_atanhf
-# define __DECL_SIMD_atanhf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_acosh
-# define __DECL_SIMD_acosh __DECL_SIMD_x86_64
-# undef __DECL_SIMD_acoshf
-# define __DECL_SIMD_acoshf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_erf
-# define __DECL_SIMD_erf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_erff
-# define __DECL_SIMD_erff __DECL_SIMD_x86_64
-# undef __DECL_SIMD_tanh
-# define __DECL_SIMD_tanh __DECL_SIMD_x86_64
-# undef __DECL_SIMD_tanhf
-# define __DECL_SIMD_tanhf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_asinh
-# define __DECL_SIMD_asinh __DECL_SIMD_x86_64
-# undef __DECL_SIMD_asinhf
-# define __DECL_SIMD_asinhf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_erfc
-# define __DECL_SIMD_erfc __DECL_SIMD_x86_64
-# undef __DECL_SIMD_erfcf
-# define __DECL_SIMD_erfcf __DECL_SIMD_x86_64
-# undef __DECL_SIMD_tan
-# define __DECL_SIMD_tan __DECL_SIMD_x86_64
-# undef __DECL_SIMD_tanf
-# define __DECL_SIMD_tanf __DECL_SIMD_x86_64
-
-# endif
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/mman.h
@@ -1,38 +0,0 @@
-/* Definitions for POSIX memory map interface. Linux/x86_64 version.
- Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MMAN_H
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
-#endif
-
-/* The following definitions basically come from the kernel headers.
- But the kernel header is not namespace clean. */
-
-/* Other flags. */
-#define MAP_32BIT 0x40 /* Only give out 32-bit addresses. */
-#define MAP_ABOVE4G 0x80 /* Only map above 4GB. */
-
-#ifdef __USE_MISC
-/* Set up a restore token in the newly allocated shadow stack */
-# define SHADOW_STACK_SET_TOKEN 0x1
-#endif
-
-#include <bits/mman-map-flags-generic.h>
-
-/* Include generic Linux declarations. */
-#include <bits/mman-linux.h>
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/procfs-id.h
@@ -1,30 +0,0 @@
-/* Types of pr_uid and pr_gid in struct elf_prpsinfo. x86 version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
-#endif
-
-#if __WORDSIZE == 32
-typedef unsigned short int __pr_uid_t;
-typedef unsigned short int __pr_gid_t;
-#else
-typedef unsigned int __pr_uid_t;
-typedef unsigned int __pr_gid_t;
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/procfs.h
@@ -1,50 +0,0 @@
-/* Types for registers for sys/procfs.h. x86 version.
- Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
-#endif
-
-/* Type for a general-purpose register. */
-#ifdef __x86_64__
-__extension__ typedef unsigned long long elf_greg_t;
-#else
-typedef unsigned long elf_greg_t;
-#endif
-
-/* And the whole bunch of them. We could have used `struct
- user_regs_struct' directly in the typedef, but tradition says that
- the register set is an array, which does have some peculiar
- semantics, so leave it that way. */
-#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof (elf_greg_t))
-typedef elf_greg_t elf_gregset_t[ELF_NGREG];
-
-#ifndef __x86_64__
-/* Register set for the floating-point registers. */
-typedef struct user_fpregs_struct elf_fpregset_t;
-
-/* Register set for the extended floating-point registers. Includes
- the Pentium III SSE registers in addition to the classic
- floating-point stuff. */
-typedef struct user_fpxregs_struct elf_fpxregset_t;
-#else
-/* Register set for the extended floating-point registers. Includes
- the Pentium III SSE registers in addition to the classic
- floating-point stuff. */
-typedef struct user_fpregs_struct elf_fpregset_t;
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/pthreadtypes-arch.h
@@ -1,55 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_PTHREADTYPES_ARCH_H
-#define _BITS_PTHREADTYPES_ARCH_H 1
-
-#include <bits/wordsize.h>
-
-#ifdef __x86_64__
-# if __WORDSIZE == 64
-# define __SIZEOF_PTHREAD_MUTEX_T 40
-# define __SIZEOF_PTHREAD_ATTR_T 56
-# define __SIZEOF_PTHREAD_RWLOCK_T 56
-# define __SIZEOF_PTHREAD_BARRIER_T 32
-# else
-# define __SIZEOF_PTHREAD_MUTEX_T 32
-# define __SIZEOF_PTHREAD_ATTR_T 32
-# define __SIZEOF_PTHREAD_RWLOCK_T 44
-# define __SIZEOF_PTHREAD_BARRIER_T 20
-# endif
-#else
-# define __SIZEOF_PTHREAD_MUTEX_T 24
-# define __SIZEOF_PTHREAD_ATTR_T 36
-# define __SIZEOF_PTHREAD_RWLOCK_T 32
-# define __SIZEOF_PTHREAD_BARRIER_T 20
-#endif
-#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
-#define __SIZEOF_PTHREAD_COND_T 48
-#define __SIZEOF_PTHREAD_CONDATTR_T 4
-#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
-
-#define __LOCK_ALIGNMENT
-#define __ONCE_ALIGNMENT
-
-#ifndef __x86_64__
-/* Extra attributes for the cleanup functions. */
-# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
-#endif
-
-#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/rseq.h
@@ -1,30 +0,0 @@
-/* Restartable Sequences Linux x86 architecture header.
- Copyright (C) 2021-2025 Free Software Foundation, Inc.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_RSEQ_H
-# error "Never use <bits/rseq.h> directly; include <sys/rseq.h> instead."
-#endif
-
-/* RSEQ_SIG is a signature required before each abort handler code.
-
- RSEQ_SIG is used with the following reserved undefined instructions, which
- trap in user-space:
-
- x86-32: 0f b9 3d 53 30 05 53 ud1 0x53053053,%edi
- x86-64: 0f b9 3d 53 30 05 53 ud1 0x53053053(%rip),%edi */
-
-#define RSEQ_SIG 0x53053053
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/setjmp.h
@@ -1,40 +0,0 @@
-/* Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-/* Define the machine-dependent type `jmp_buf'. x86-64 version. */
-#ifndef _BITS_SETJMP_H
-#define _BITS_SETJMP_H 1
-
-#if !defined _SETJMP_H && !defined _PTHREAD_H
-# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
-#endif
-
-#include <bits/wordsize.h>
-
-#ifndef _ASM
-
-# if __WORDSIZE == 64
-typedef long int __jmp_buf[8];
-# elif defined __x86_64__
-__extension__ typedef long long int __jmp_buf[8];
-# else
-typedef int __jmp_buf[6];
-# endif
-
-#endif
-
-#endif /* bits/setjmp.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/sigcontext.h
@@ -1,196 +0,0 @@
-/* Copyright (C) 2002-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_SIGCONTEXT_H
-#define _BITS_SIGCONTEXT_H 1
-
-#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
-# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
-#endif
-
-#include <bits/types.h>
-
-#define FP_XSTATE_MAGIC1 0x46505853U
-#define FP_XSTATE_MAGIC2 0x46505845U
-#define FP_XSTATE_MAGIC2_SIZE sizeof (FP_XSTATE_MAGIC2)
-
-struct _fpx_sw_bytes
-{
- __uint32_t magic1;
- __uint32_t extended_size;
- __uint64_t xstate_bv;
- __uint32_t xstate_size;
- __uint32_t __glibc_reserved1[7];
-};
-
-struct _fpreg
-{
- unsigned short significand[4];
- unsigned short exponent;
-};
-
-struct _fpxreg
-{
- unsigned short significand[4];
- unsigned short exponent;
- unsigned short __glibc_reserved1[3];
-};
-
-struct _xmmreg
-{
- __uint32_t element[4];
-};
-
-
-
-#ifndef __x86_64__
-
-struct _fpstate
-{
- /* Regular FPU environment. */
- __uint32_t cw;
- __uint32_t sw;
- __uint32_t tag;
- __uint32_t ipoff;
- __uint32_t cssel;
- __uint32_t dataoff;
- __uint32_t datasel;
- struct _fpreg _st[8];
- unsigned short status;
- unsigned short magic;
-
- /* FXSR FPU environment. */
- __uint32_t _fxsr_env[6];
- __uint32_t mxcsr;
- __uint32_t __glibc_reserved1;
- struct _fpxreg _fxsr_st[8];
- struct _xmmreg _xmm[8];
- __uint32_t __glibc_reserved2[56];
-};
-
-#ifndef sigcontext_struct
-/* Kernel headers before 2.1.1 define a struct sigcontext_struct, but
- we need sigcontext. Some packages have come to rely on
- sigcontext_struct being defined on 32-bit x86, so define this for
- their benefit. */
-# define sigcontext_struct sigcontext
-#endif
-
-#define X86_FXSR_MAGIC 0x0000
-
-struct sigcontext
-{
- unsigned short gs, __gsh;
- unsigned short fs, __fsh;
- unsigned short es, __esh;
- unsigned short ds, __dsh;
- unsigned long edi;
- unsigned long esi;
- unsigned long ebp;
- unsigned long esp;
- unsigned long ebx;
- unsigned long edx;
- unsigned long ecx;
- unsigned long eax;
- unsigned long trapno;
- unsigned long err;
- unsigned long eip;
- unsigned short cs, __csh;
- unsigned long eflags;
- unsigned long esp_at_signal;
- unsigned short ss, __ssh;
- struct _fpstate * fpstate;
- unsigned long oldmask;
- unsigned long cr2;
-};
-
-#else /* __x86_64__ */
-
-struct _fpstate
-{
- /* FPU environment matching the 64-bit FXSAVE layout. */
- __uint16_t cwd;
- __uint16_t swd;
- __uint16_t ftw;
- __uint16_t fop;
- __uint64_t rip;
- __uint64_t rdp;
- __uint32_t mxcsr;
- __uint32_t mxcr_mask;
- struct _fpxreg _st[8];
- struct _xmmreg _xmm[16];
- __uint32_t __glibc_reserved1[24];
-};
-
-struct sigcontext
-{
- __uint64_t r8;
- __uint64_t r9;
- __uint64_t r10;
- __uint64_t r11;
- __uint64_t r12;
- __uint64_t r13;
- __uint64_t r14;
- __uint64_t r15;
- __uint64_t rdi;
- __uint64_t rsi;
- __uint64_t rbp;
- __uint64_t rbx;
- __uint64_t rdx;
- __uint64_t rax;
- __uint64_t rcx;
- __uint64_t rsp;
- __uint64_t rip;
- __uint64_t eflags;
- unsigned short cs;
- unsigned short gs;
- unsigned short fs;
- unsigned short __pad0;
- __uint64_t err;
- __uint64_t trapno;
- __uint64_t oldmask;
- __uint64_t cr2;
- __extension__ union
- {
- struct _fpstate * fpstate;
- __uint64_t __fpstate_word;
- };
- __uint64_t __reserved1 [8];
-};
-
-#endif /* __x86_64__ */
-
-struct _xsave_hdr
-{
- __uint64_t xstate_bv;
- __uint64_t __glibc_reserved1[2];
- __uint64_t __glibc_reserved2[5];
-};
-
-struct _ymmh_state
-{
- __uint32_t ymmh_space[64];
-};
-
-struct _xstate
-{
- struct _fpstate fpstate;
- struct _xsave_hdr xstate_hdr;
- struct _ymmh_state ymmh;
-};
-
-#endif /* _BITS_SIGCONTEXT_H */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/siginfo-arch.h
@@ -1,17 +0,0 @@
-/* Architecture-specific adjustments to siginfo_t. x86 version. */
-#ifndef _BITS_SIGINFO_ARCH_H
-#define _BITS_SIGINFO_ARCH_H 1
-
-#if defined __x86_64__ && __WORDSIZE == 32
-/* si_utime and si_stime must be 4 byte aligned for x32 to match the
- kernel. We align siginfo_t to 8 bytes so that si_utime and
- si_stime are actually aligned to 8 bytes since their offsets are
- multiple of 8 bytes. Note: with some compilers, the alignment
- attribute would be ignored if it were put in __SI_CLOCK_T instead
- of encapsulated in a typedef. */
-typedef __clock_t __attribute__ ((__aligned__ (4))) __sigchld_clock_t;
-# define __SI_ALIGNMENT __attribute__ ((__aligned__ (8)))
-# define __SI_CLOCK_T __sigchld_clock_t
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/struct_mutex.h
@@ -1,63 +0,0 @@
-/* x86 internal mutex struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _THREAD_MUTEX_INTERNAL_H
-#define _THREAD_MUTEX_INTERNAL_H 1
-
-struct __pthread_mutex_s
-{
- int __lock;
- unsigned int __count;
- int __owner;
-#ifdef __x86_64__
- unsigned int __nusers;
-#endif
- /* KIND must stay at this position in the structure to maintain
- binary compatibility with static initializers. */
- int __kind;
-#ifdef __x86_64__
- short __spins;
- short __elision;
- __pthread_list_t __list;
-# define __PTHREAD_MUTEX_HAVE_PREV 1
-#else
- unsigned int __nusers;
- __extension__ union
- {
- struct
- {
- short __espins;
- short __eelision;
-# define __spins __elision_data.__espins
-# define __elision __elision_data.__eelision
- } __elision_data;
- __pthread_slist_t __list;
- };
-# define __PTHREAD_MUTEX_HAVE_PREV 0
-#endif
-};
-
-#ifdef __x86_64__
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, 0, __kind, 0, 0, { NULL, NULL }
-#else
-# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, __kind, 0, { { 0, 0 } }
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/struct_rwlock.h
@@ -1,65 +0,0 @@
-/* x86 internal rwlock struct definitions.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _RWLOCK_INTERNAL_H
-#define _RWLOCK_INTERNAL_H
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#ifdef __x86_64__
- int __cur_writer;
- int __shared;
- signed char __rwelision;
-# ifdef __ILP32__
- unsigned char __pad1[3];
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0 }
-# else
- unsigned char __pad1[7];
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0, 0, 0, 0, 0 }
-# endif
- unsigned long int __pad2;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned int __flags;
-#else /* __x86_64__ */
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- unsigned char __shared;
- signed char __rwelision;
- unsigned char __pad2;
- int __cur_writer;
-#endif
-};
-
-#ifdef __x86_64__
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, __flags
-#else
-# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
- 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
-#endif
-
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/struct_stat.h
@@ -1,165 +0,0 @@
-/* Definition for struct stat.
- Copyright (C) 2020-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
-#endif
-
-#ifndef _BITS_STRUCT_STAT_H
-#define _BITS_STRUCT_STAT_H 1
-
-struct stat
- {
-#ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-#else
- __dev_t st_dev; /* Device. */
-# ifndef __x86_64__
- unsigned short int __pad1;
-# endif
-# if defined __x86_64__ || !defined __USE_FILE_OFFSET64
- __ino_t st_ino; /* File serial number. */
-# else
- __ino_t __st_ino; /* 32bit file serial number. */
-# endif
-# ifndef __x86_64__
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
-# else
- __nlink_t st_nlink; /* Link count. */
- __mode_t st_mode; /* File mode. */
-# endif
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
-# ifdef __x86_64__
- int __pad0;
-# endif
- __dev_t st_rdev; /* Device number, if device. */
-# ifndef __x86_64__
- unsigned short int __pad2;
-# endif
-# if defined __x86_64__ || !defined __USE_FILE_OFFSET64
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
-# if defined __x86_64__ || !defined __USE_FILE_OFFSET64
- __blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
-# else
- __blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
-# endif
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-# else
- __time_t st_atime; /* Time of last access. */
- __syscall_ulong_t st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- __syscall_ulong_t st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- __syscall_ulong_t st_ctimensec; /* Nsecs of last status change. */
-# endif
-# ifdef __x86_64__
- __syscall_slong_t __glibc_reserved[3];
-# else
-# ifndef __USE_FILE_OFFSET64
- unsigned long int __glibc_reserved4;
- unsigned long int __glibc_reserved5;
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
-# endif
-#endif /* __USE_TIME64_REDIRECTS */
- };
-
-#ifdef __USE_LARGEFILE64
-/* Note stat64 has the same shape as stat for x86-64. */
-struct stat64
- {
-# ifdef __USE_TIME64_REDIRECTS
-# include <bits/struct_stat_time64_helper.h>
-# else
- __dev_t st_dev; /* Device. */
-# ifdef __x86_64__
- __ino64_t st_ino; /* File serial number. */
- __nlink_t st_nlink; /* Link count. */
- __mode_t st_mode; /* File mode. */
-# else
- unsigned int __pad1;
- __ino_t __st_ino; /* 32bit file serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
-# endif
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
-# ifdef __x86_64__
- int __pad0;
- __dev_t st_rdev; /* Device number, if device. */
- __off_t st_size; /* Size of file, in bytes. */
-# else
- __dev_t st_rdev; /* Device number, if device. */
- unsigned int __pad2;
- __off64_t st_size; /* Size of file, in bytes. */
-# endif
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- __blkcnt64_t st_blocks; /* Nr. 512-byte blocks allocated. */
-# ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the <sys/stat.h> header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# else
- __time_t st_atime; /* Time of last access. */
- __syscall_ulong_t st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- __syscall_ulong_t st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- __syscall_ulong_t st_ctimensec; /* Nsecs of last status change. */
-# endif
-# ifdef __x86_64__
- __syscall_slong_t __glibc_reserved[3];
-# else
- __ino64_t st_ino; /* File serial number. */
-# endif
-# endif /* __USE_TIME64_REDIRECTS */
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-#endif /* _BITS_STRUCT_STAT_H */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/timesize.h
@@ -1,27 +0,0 @@
-/* Bit size of the time_t type at glibc build time, x86-64 and x32 case.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#include <bits/wordsize.h>
-
-#if defined __x86_64__ && defined __ILP32__
-/* For x32, time is 64-bit even though word size is 32-bit. */
-# define __TIMESIZE 64
-#else
-/* For others, time size is word size. */
-# define __TIMESIZE __WORDSIZE
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/typesizes.h
@@ -1,106 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
- Copyright (C) 2012-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _BITS_TYPES_H
-# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See <bits/types.h> for the meaning of these macros. This file exists so
- that <bits/types.h> need not vary across different GNU platforms. */
-
-/* X32 kernel interface is 64-bit. */
-#if defined __x86_64__ && defined __ILP32__
-# define __SYSCALL_SLONG_TYPE __SQUAD_TYPE
-# define __SYSCALL_ULONG_TYPE __UQUAD_TYPE
-#else
-# define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-# define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#endif
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __SYSCALL_ULONG_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#ifdef __x86_64__
-# define __NLINK_T_TYPE __SYSCALL_ULONG_TYPE
-# define __FSWORD_T_TYPE __SYSCALL_SLONG_TYPE
-#else
-# define __NLINK_T_TYPE __UWORD_TYPE
-# define __FSWORD_T_TYPE __SWORD_TYPE
-#endif
-#define __OFF_T_TYPE __SYSCALL_SLONG_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __SYSCALL_ULONG_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SYSCALL_SLONG_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __SYSCALL_ULONG_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __SYSCALL_ULONG_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SYSCALL_SLONG_TYPE
-#define __TIME_T_TYPE __SYSCALL_SLONG_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SYSCALL_SLONG_TYPE
-#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __SYSCALL_SLONG_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __CPU_MASK_TYPE __SYSCALL_ULONG_TYPE
-
-#ifdef __x86_64__
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for __rlim_t and __rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-
-/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
-# define __STATFS_MATCHES_STATFS64 1
-
-/* And for getitimer, setitimer and rusage */
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-
-# define __STATFS_MATCHES_STATFS64 0
-
-# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/wordsize.h
@@ -1,16 +0,0 @@
-/* Determine the wordsize from the preprocessor defines. */
-
-#if defined __x86_64__ && !defined __ILP32__
-# define __WORDSIZE 64
-#else
-# define __WORDSIZE 32
-#define __WORDSIZE32_SIZE_ULONG 0
-#define __WORDSIZE32_PTRDIFF_LONG 0
-#endif
-
-#define __WORDSIZE_TIME64_COMPAT32 1
-
-#ifdef __x86_64__
-/* Both x86-64 and x32 use the 64-bit system call interface. */
-# define __SYSCALL_WORDSIZE 64
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/finclude/math-vector-fortran.h
@@ -1,127 +0,0 @@
-! Platform-specific declarations of SIMD math functions for Fortran. -*- f90 -*-
-! Copyright (C) 2019-2025 Free Software Foundation, Inc.
-! This file is part of the GNU C Library.
-!
-! The GNU C Library is free software; you can redistribute it and/or
-! modify it under the terms of the GNU Lesser General Public
-! License as published by the Free Software Foundation; either
-! version 2.1 of the License, or (at your option) any later version.
-!
-! The GNU C Library is distributed in the hope that it will be useful,
-! but WITHOUT ANY WARRANTY; without even the implied warranty of
-! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-! Lesser General Public License for more details.
-!
-! You should have received a copy of the GNU Lesser General Public
-! License along with the GNU C Library; if not, see
-! <https://www.gnu.org/licenses/>.
-
-!GCC$ builtin (cos) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (cosf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (sin) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (sinf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (sincos) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (sincosf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (logf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (exp) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (expf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (pow) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (powf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (acos) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (acosf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (atan) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (atanf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (asin) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (asinf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (hypot) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (hypotf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (exp2) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (exp2f) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (exp10) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (exp10f) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (cosh) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (coshf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (expm1) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (expm1f) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (sinh) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (sinhf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (cbrt) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (cbrtf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (atan2) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (atan2f) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log10) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log10f) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log2) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log2f) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log1p) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (log1pf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (atanh) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (atanhf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (acosh) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (acoshf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (erf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (erff) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (tanh) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (tanhf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (asinh) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (asinhf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (erfc) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (erfcf) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (tan) attributes simd (notinbranch) if('x86_64')
-!GCC$ builtin (tanf) attributes simd (notinbranch) if('x86_64')
-
-!GCC$ builtin (cos) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (cosf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (sin) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (sinf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (sincos) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (sincosf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (logf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (exp) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (expf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (pow) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (powf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (acos) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (acosf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (atan) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (atanf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (asin) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (asinf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (hypot) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (hypotf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (exp2) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (exp2f) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (exp10) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (exp10f) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (cosh) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (coshf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (expm1) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (expm1f) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (sinh) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (sinhf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (cbrt) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (cbrtf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (atan2) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (atan2f) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log10) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log10f) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log2) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log2f) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log1p) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (log1pf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (atanh) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (atanhf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (acosh) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (acoshf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (erf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (erff) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (tanh) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (tanhf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (asinh) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (asinhf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (erfc) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (erfcf) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (tan) attributes simd (notinbranch) if('x32')
-!GCC$ builtin (tanf) attributes simd (notinbranch) if('x32')
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/gnu/lib-names.h
@@ -1,17 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#if !defined __x86_64__
-# include <gnu/lib-names-32.h>
-#endif
-#if defined __x86_64__ && defined __LP64__
-# include <gnu/lib-names-64.h>
-#endif
-#if defined __x86_64__ && defined __ILP32__
-# include <gnu/lib-names-x32.h>
-#endif
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/gnu/stubs.h
@@ -1,14 +0,0 @@
-/* This file is automatically generated.
- This file selects the right generated file of `__stub_FUNCTION' macros
- based on the architecture being compiled for. */
-
-
-#if !defined __x86_64__
-# include <gnu/stubs-32.h>
-#endif
-#if defined __x86_64__ && defined __LP64__
-# include <gnu/stubs-64.h>
-#endif
-#if defined __x86_64__ && defined __ILP32__
-# include <gnu/stubs-x32.h>
-#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/sys/elf.h
@@ -1,29 +0,0 @@
-/* Copyright (C) 1998-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_ELF_H
-#define _SYS_ELF_H 1
-
-#ifdef __x86_64__
-# error This header is unsupported on x86-64.
-#else
-# warning "This header is obsolete; use <sys/procfs.h> instead."
-
-# include <sys/procfs.h>
-#endif
-
-#endif /* _SYS_ELF_H */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/sys/ptrace.h
@@ -1,216 +0,0 @@
-/* `ptrace' debugger support interface. Linux/x86 version.
- Copyright (C) 1996-2025 Free Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_PTRACE_H
-#define _SYS_PTRACE_H 1
-
-#include <features.h>
-#include <bits/types.h>
-
-__BEGIN_DECLS
-
-/* Type of the REQUEST argument to `ptrace.' */
-enum __ptrace_request
-{
- /* Indicate that the process making this request should be traced.
- All signals received by this process can be intercepted by its
- parent, and its parent can use the other `ptrace' requests. */
- PTRACE_TRACEME = 0,
-#define PT_TRACE_ME PTRACE_TRACEME
-
- /* Return the word in the process's text space at address ADDR. */
- PTRACE_PEEKTEXT = 1,
-#define PT_READ_I PTRACE_PEEKTEXT
-
- /* Return the word in the process's data space at address ADDR. */
- PTRACE_PEEKDATA = 2,
-#define PT_READ_D PTRACE_PEEKDATA
-
- /* Return the word in the process's user area at offset ADDR. */
- PTRACE_PEEKUSER = 3,
-#define PT_READ_U PTRACE_PEEKUSER
-
- /* Write the word DATA into the process's text space at address ADDR. */
- PTRACE_POKETEXT = 4,
-#define PT_WRITE_I PTRACE_POKETEXT
-
- /* Write the word DATA into the process's data space at address ADDR. */
- PTRACE_POKEDATA = 5,
-#define PT_WRITE_D PTRACE_POKEDATA
-
- /* Write the word DATA into the process's user area at offset ADDR. */
- PTRACE_POKEUSER = 6,
-#define PT_WRITE_U PTRACE_POKEUSER
-
- /* Continue the process. */
- PTRACE_CONT = 7,
-#define PT_CONTINUE PTRACE_CONT
-
- /* Kill the process. */
- PTRACE_KILL = 8,
-#define PT_KILL PTRACE_KILL
-
- /* Single step the process. */
- PTRACE_SINGLESTEP = 9,
-#define PT_STEP PTRACE_SINGLESTEP
-
- /* Get all general purpose registers used by a processes. */
- PTRACE_GETREGS = 12,
-#define PT_GETREGS PTRACE_GETREGS
-
- /* Set all general purpose registers used by a processes. */
- PTRACE_SETREGS = 13,
-#define PT_SETREGS PTRACE_SETREGS
-
- /* Get all floating point registers used by a processes. */
- PTRACE_GETFPREGS = 14,
-#define PT_GETFPREGS PTRACE_GETFPREGS
-
- /* Set all floating point registers used by a processes. */
- PTRACE_SETFPREGS = 15,
-#define PT_SETFPREGS PTRACE_SETFPREGS
-
- /* Attach to a process that is already running. */
- PTRACE_ATTACH = 16,
-#define PT_ATTACH PTRACE_ATTACH
-
- /* Detach from a process attached to with PTRACE_ATTACH. */
- PTRACE_DETACH = 17,
-#define PT_DETACH PTRACE_DETACH
-
- /* Get all extended floating point registers used by a processes. */
- PTRACE_GETFPXREGS = 18,
-#define PT_GETFPXREGS PTRACE_GETFPXREGS
-
- /* Set all extended floating point registers used by a processes. */
- PTRACE_SETFPXREGS = 19,
-#define PT_SETFPXREGS PTRACE_SETFPXREGS
-
- /* Continue and stop at the next entry to or return from syscall. */
- PTRACE_SYSCALL = 24,
-#define PT_SYSCALL PTRACE_SYSCALL
-
- /* Get a TLS entry in the GDT. */
- PTRACE_GET_THREAD_AREA = 25,
-#define PT_GET_THREAD_AREA PTRACE_GET_THREAD_AREA
-
- /* Change a TLS entry in the GDT. */
- PTRACE_SET_THREAD_AREA = 26,
-#define PT_SET_THREAD_AREA PTRACE_SET_THREAD_AREA
-
-#ifdef __x86_64__
- /* Access TLS data. */
- PTRACE_ARCH_PRCTL = 30,
-# define PT_ARCH_PRCTL PTRACE_ARCH_PRCTL
-#endif
-
- /* Continue and stop at the next syscall, it will not be executed. */
- PTRACE_SYSEMU = 31,
-#define PT_SYSEMU PTRACE_SYSEMU
-
- /* Single step the process, the next syscall will not be executed. */
- PTRACE_SYSEMU_SINGLESTEP = 32,
-#define PT_SYSEMU_SINGLESTEP PTRACE_SYSEMU_SINGLESTEP
-
- /* Execute process until next taken branch. */
- PTRACE_SINGLEBLOCK = 33,
-#define PT_STEPBLOCK PTRACE_SINGLEBLOCK
-
- /* Set ptrace filter options. */
- PTRACE_SETOPTIONS = 0x4200,
-#define PT_SETOPTIONS PTRACE_SETOPTIONS
-
- /* Get last ptrace message. */
- PTRACE_GETEVENTMSG = 0x4201,
-#define PT_GETEVENTMSG PTRACE_GETEVENTMSG
-
- /* Get siginfo for process. */
- PTRACE_GETSIGINFO = 0x4202,
-#define PT_GETSIGINFO PTRACE_GETSIGINFO
-
- /* Set new siginfo for process. */
- PTRACE_SETSIGINFO = 0x4203,
-#define PT_SETSIGINFO PTRACE_SETSIGINFO
-
- /* Get register content. */
- PTRACE_GETREGSET = 0x4204,
-#define PTRACE_GETREGSET PTRACE_GETREGSET
-
- /* Set register content. */
- PTRACE_SETREGSET = 0x4205,
-#define PTRACE_SETREGSET PTRACE_SETREGSET
-
- /* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
- signal or group stop state. */
- PTRACE_SEIZE = 0x4206,
-#define PTRACE_SEIZE PTRACE_SEIZE
-
- /* Trap seized tracee. */
- PTRACE_INTERRUPT = 0x4207,
-#define PTRACE_INTERRUPT PTRACE_INTERRUPT
-
- /* Wait for next group event. */
- PTRACE_LISTEN = 0x4208,
-#define PTRACE_LISTEN PTRACE_LISTEN
-
- /* Retrieve siginfo_t structures without removing signals from a queue. */
- PTRACE_PEEKSIGINFO = 0x4209,
-#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
-
- /* Get the mask of blocked signals. */
- PTRACE_GETSIGMASK = 0x420a,
-#define PTRACE_GETSIGMASK PTRACE_GETSIGMASK
-
- /* Change the mask of blocked signals. */
- PTRACE_SETSIGMASK = 0x420b,
-#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
-
- /* Get seccomp BPF filters. */
- PTRACE_SECCOMP_GET_FILTER = 0x420c,
-#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
-
- /* Get seccomp BPF filter metadata. */
- PTRACE_SECCOMP_GET_METADATA = 0x420d,
-#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
-
- /* Get information about system call. */
- PTRACE_GET_SYSCALL_INFO = 0x420e,
-#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
-
- /* Get rseq configuration information. */
- PTRACE_GET_RSEQ_CONFIGURATION = 0x420f,
-#define PTRACE_GET_RSEQ_CONFIGURATION PTRACE_GET_RSEQ_CONFIGURATION
-
- /* Set configuration for syscall user dispatch. */
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG = 0x4210,
-#define PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
-
- /* Get configuration for syscall user dispatch. */
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG = 0x4211
-#define PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG \
- PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
-};
-
-
-#include <bits/ptrace-shared.h>
-
-__END_DECLS
-
-#endif /* _SYS_PTRACE_H */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/sys/ucontext.h
@@ -1,262 +0,0 @@
-/* Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include <features.h>
-
-#include <bits/types.h>
-#include <bits/types/sigset_t.h>
-#include <bits/types/stack_t.h>
-
-
-#ifdef __USE_MISC
-# define __ctx(fld) fld
-#else
-# define __ctx(fld) __ ## fld
-#endif
-
-#ifdef __x86_64__
-
-/* Type for general register. */
-__extension__ typedef long long int greg_t;
-
-/* Number of general registers. */
-#define __NGREG 23
-#ifdef __USE_MISC
-# define NGREG __NGREG
-#endif
-
-/* Container for all general registers. */
-typedef greg_t gregset_t[__NGREG];
-
-#ifdef __USE_GNU
-/* Number of each register in the `gregset_t' array. */
-enum
-{
- REG_R8 = 0,
-# define REG_R8 REG_R8
- REG_R9,
-# define REG_R9 REG_R9
- REG_R10,
-# define REG_R10 REG_R10
- REG_R11,
-# define REG_R11 REG_R11
- REG_R12,
-# define REG_R12 REG_R12
- REG_R13,
-# define REG_R13 REG_R13
- REG_R14,
-# define REG_R14 REG_R14
- REG_R15,
-# define REG_R15 REG_R15
- REG_RDI,
-# define REG_RDI REG_RDI
- REG_RSI,
-# define REG_RSI REG_RSI
- REG_RBP,
-# define REG_RBP REG_RBP
- REG_RBX,
-# define REG_RBX REG_RBX
- REG_RDX,
-# define REG_RDX REG_RDX
- REG_RAX,
-# define REG_RAX REG_RAX
- REG_RCX,
-# define REG_RCX REG_RCX
- REG_RSP,
-# define REG_RSP REG_RSP
- REG_RIP,
-# define REG_RIP REG_RIP
- REG_EFL,
-# define REG_EFL REG_EFL
- REG_CSGSFS, /* Actually short cs, gs, fs, __pad0. */
-# define REG_CSGSFS REG_CSGSFS
- REG_ERR,
-# define REG_ERR REG_ERR
- REG_TRAPNO,
-# define REG_TRAPNO REG_TRAPNO
- REG_OLDMASK,
-# define REG_OLDMASK REG_OLDMASK
- REG_CR2
-# define REG_CR2 REG_CR2
-};
-#endif
-
-struct _libc_fpxreg
-{
- unsigned short int __ctx(significand)[4];
- unsigned short int __ctx(exponent);
- unsigned short int __glibc_reserved1[3];
-};
-
-struct _libc_xmmreg
-{
- __uint32_t __ctx(element)[4];
-};
-
-struct _libc_fpstate
-{
- /* 64-bit FXSAVE format. */
- __uint16_t __ctx(cwd);
- __uint16_t __ctx(swd);
- __uint16_t __ctx(ftw);
- __uint16_t __ctx(fop);
- __uint64_t __ctx(rip);
- __uint64_t __ctx(rdp);
- __uint32_t __ctx(mxcsr);
- __uint32_t __ctx(mxcr_mask);
- struct _libc_fpxreg _st[8];
- struct _libc_xmmreg _xmm[16];
- __uint32_t __glibc_reserved1[24];
-};
-
-/* Structure to describe FPU registers. */
-typedef struct _libc_fpstate *fpregset_t;
-
-/* Context to describe whole processor state. */
-typedef struct
- {
- gregset_t __ctx(gregs);
- /* Note that fpregs is a pointer. */
- fpregset_t __ctx(fpregs);
- __extension__ unsigned long long __reserved1 [8];
-} mcontext_t;
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long int __ctx(uc_flags);
- struct ucontext_t *uc_link;
- stack_t uc_stack;
- mcontext_t uc_mcontext;
- sigset_t uc_sigmask;
- struct _libc_fpstate __fpregs_mem;
- __extension__ unsigned long long int __ssp[4];
- } ucontext_t;
-
-#else /* !__x86_64__ */
-
-/* Type for general register. */
-typedef int greg_t;
-
-/* Number of general registers. */
-#define __NGREG 19
-#ifdef __USE_MISC
-# define NGREG __NGREG
-#endif
-
-/* Container for all general registers. */
-typedef greg_t gregset_t[__NGREG];
-
-#ifdef __USE_GNU
-/* Number of each register is the `gregset_t' array. */
-enum
-{
- REG_GS = 0,
-# define REG_GS REG_GS
- REG_FS,
-# define REG_FS REG_FS
- REG_ES,
-# define REG_ES REG_ES
- REG_DS,
-# define REG_DS REG_DS
- REG_EDI,
-# define REG_EDI REG_EDI
- REG_ESI,
-# define REG_ESI REG_ESI
- REG_EBP,
-# define REG_EBP REG_EBP
- REG_ESP,
-# define REG_ESP REG_ESP
- REG_EBX,
-# define REG_EBX REG_EBX
- REG_EDX,
-# define REG_EDX REG_EDX
- REG_ECX,
-# define REG_ECX REG_ECX
- REG_EAX,
-# define REG_EAX REG_EAX
- REG_TRAPNO,
-# define REG_TRAPNO REG_TRAPNO
- REG_ERR,
-# define REG_ERR REG_ERR
- REG_EIP,
-# define REG_EIP REG_EIP
- REG_CS,
-# define REG_CS REG_CS
- REG_EFL,
-# define REG_EFL REG_EFL
- REG_UESP,
-# define REG_UESP REG_UESP
- REG_SS
-# define REG_SS REG_SS
-};
-#endif
-
-/* Definitions taken from the kernel headers. */
-struct _libc_fpreg
-{
- unsigned short int __ctx(significand)[4];
- unsigned short int __ctx(exponent);
-};
-
-struct _libc_fpstate
-{
- unsigned long int __ctx(cw);
- unsigned long int __ctx(sw);
- unsigned long int __ctx(tag);
- unsigned long int __ctx(ipoff);
- unsigned long int __ctx(cssel);
- unsigned long int __ctx(dataoff);
- unsigned long int __ctx(datasel);
- struct _libc_fpreg _st[8];
- unsigned long int __ctx(status);
-};
-
-/* Structure to describe FPU registers. */
-typedef struct _libc_fpstate *fpregset_t;
-
-/* Context to describe whole processor state. */
-typedef struct
- {
- gregset_t __ctx(gregs);
- /* Due to Linux's history we have to use a pointer here. The SysV/i386
- ABI requires a struct with the values. */
- fpregset_t __ctx(fpregs);
- unsigned long int __ctx(oldmask);
- unsigned long int __ctx(cr2);
- } mcontext_t;
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long int __ctx(uc_flags);
- struct ucontext_t *uc_link;
- stack_t uc_stack;
- mcontext_t uc_mcontext;
- sigset_t uc_sigmask;
- struct _libc_fpstate __fpregs_mem;
- unsigned long int __ssp[4];
- } ucontext_t;
-
-#endif /* !__x86_64__ */
-
-#undef __ctx
-
-#endif /* sys/ucontext.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/sys/user.h
@@ -1,180 +0,0 @@
-/* Copyright (C) 2001-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_USER_H
-#define _SYS_USER_H 1
-
-/* The whole purpose of this file is for GDB and GDB only. Don't read
- too much into it. Don't use it for anything other than GDB unless
- you know what you are doing. */
-
-#ifdef __x86_64__
-
-struct user_fpregs_struct
-{
- unsigned short int cwd;
- unsigned short int swd;
- unsigned short int ftw;
- unsigned short int fop;
- __extension__ unsigned long long int rip;
- __extension__ unsigned long long int rdp;
- unsigned int mxcsr;
- unsigned int mxcr_mask;
- unsigned int st_space[32]; /* 8*16 bytes for each FP-reg = 128 bytes */
- unsigned int xmm_space[64]; /* 16*16 bytes for each XMM-reg = 256 bytes */
- unsigned int padding[24];
-};
-
-struct user_regs_struct
-{
- __extension__ unsigned long long int r15;
- __extension__ unsigned long long int r14;
- __extension__ unsigned long long int r13;
- __extension__ unsigned long long int r12;
- __extension__ unsigned long long int rbp;
- __extension__ unsigned long long int rbx;
- __extension__ unsigned long long int r11;
- __extension__ unsigned long long int r10;
- __extension__ unsigned long long int r9;
- __extension__ unsigned long long int r8;
- __extension__ unsigned long long int rax;
- __extension__ unsigned long long int rcx;
- __extension__ unsigned long long int rdx;
- __extension__ unsigned long long int rsi;
- __extension__ unsigned long long int rdi;
- __extension__ unsigned long long int orig_rax;
- __extension__ unsigned long long int rip;
- __extension__ unsigned long long int cs;
- __extension__ unsigned long long int eflags;
- __extension__ unsigned long long int rsp;
- __extension__ unsigned long long int ss;
- __extension__ unsigned long long int fs_base;
- __extension__ unsigned long long int gs_base;
- __extension__ unsigned long long int ds;
- __extension__ unsigned long long int es;
- __extension__ unsigned long long int fs;
- __extension__ unsigned long long int gs;
-};
-
-struct user
-{
- struct user_regs_struct regs;
- int u_fpvalid;
- struct user_fpregs_struct i387;
- __extension__ unsigned long long int u_tsize;
- __extension__ unsigned long long int u_dsize;
- __extension__ unsigned long long int u_ssize;
- __extension__ unsigned long long int start_code;
- __extension__ unsigned long long int start_stack;
- __extension__ long long int signal;
- int reserved;
- __extension__ union
- {
- struct user_regs_struct* u_ar0;
- __extension__ unsigned long long int __u_ar0_word;
- };
- __extension__ union
- {
- struct user_fpregs_struct* u_fpstate;
- __extension__ unsigned long long int __u_fpstate_word;
- };
- __extension__ unsigned long long int magic;
- char u_comm [32];
- __extension__ unsigned long long int u_debugreg [8];
-};
-
-#else
-/* These are the 32-bit x86 structures. */
-struct user_fpregs_struct
-{
- long int cwd;
- long int swd;
- long int twd;
- long int fip;
- long int fcs;
- long int foo;
- long int fos;
- long int st_space [20];
-};
-
-struct user_fpxregs_struct
-{
- unsigned short int cwd;
- unsigned short int swd;
- unsigned short int twd;
- unsigned short int fop;
- long int fip;
- long int fcs;
- long int foo;
- long int fos;
- long int mxcsr;
- long int reserved;
- long int st_space[32]; /* 8*16 bytes for each FP-reg = 128 bytes */
- long int xmm_space[32]; /* 8*16 bytes for each XMM-reg = 128 bytes */
- long int padding[56];
-};
-
-struct user_regs_struct
-{
- long int ebx;
- long int ecx;
- long int edx;
- long int esi;
- long int edi;
- long int ebp;
- long int eax;
- long int xds;
- long int xes;
- long int xfs;
- long int xgs;
- long int orig_eax;
- long int eip;
- long int xcs;
- long int eflags;
- long int esp;
- long int xss;
-};
-
-struct user
-{
- struct user_regs_struct regs;
- int u_fpvalid;
- struct user_fpregs_struct i387;
- unsigned long int u_tsize;
- unsigned long int u_dsize;
- unsigned long int u_ssize;
- unsigned long int start_code;
- unsigned long int start_stack;
- long int signal;
- int reserved;
- struct user_regs_struct* u_ar0;
- struct user_fpregs_struct* u_fpstate;
- unsigned long int magic;
- char u_comm [32];
- int u_debugreg [8];
-};
-#endif /* __x86_64__ */
-
-#define PAGE_SHIFT 12
-#define PAGE_SIZE (1UL << PAGE_SHIFT)
-#define PAGE_MASK (~(PAGE_SIZE-1))
-#define NBPG PAGE_SIZE
-#define UPAGES 1
-#define HOST_TEXT_START_ADDR (u.start_code)
-#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
-
-#endif /* _SYS_USER_H */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/fpu_control.h
@@ -1,108 +0,0 @@
-/* FPU control word bits. x86 version.
- Copyright (C) 1993-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _FPU_CONTROL_H
-#define _FPU_CONTROL_H 1
-
-/* Note that this file sets on x86-64 only the x87 FPU, it does not
- touch the SSE unit. */
-
-/* Here is the dirty part. Set up your 387 through the control word
- * (cw) register.
- *
- * 15-13 12 11-10 9-8 7-6 5 4 3 2 1 0
- * | reserved | IC | RC | PC | reserved | PM | UM | OM | ZM | DM | IM
- *
- * IM: Invalid operation mask
- * DM: Denormalized operand mask
- * ZM: Zero-divide mask
- * OM: Overflow mask
- * UM: Underflow mask
- * PM: Precision (inexact result) mask
- *
- * Mask bit is 1 means no interrupt.
- *
- * PC: Precision control
- * 11 - round to extended precision
- * 10 - round to double precision
- * 00 - round to single precision
- *
- * RC: Rounding control
- * 00 - rounding to nearest
- * 01 - rounding down (toward - infinity)
- * 10 - rounding up (toward + infinity)
- * 11 - rounding toward zero
- *
- * IC: Infinity control
- * That is for 8087 and 80287 only.
- *
- * The hardware default is 0x037f which we use.
- */
-
-#include <features.h>
-
-/* masking of interrupts */
-#define _FPU_MASK_IM 0x01
-#define _FPU_MASK_DM 0x02
-#define _FPU_MASK_ZM 0x04
-#define _FPU_MASK_OM 0x08
-#define _FPU_MASK_UM 0x10
-#define _FPU_MASK_PM 0x20
-
-/* precision control */
-#define _FPU_EXTENDED 0x300 /* libm requires double extended precision. */
-#define _FPU_DOUBLE 0x200
-#define _FPU_SINGLE 0x0
-
-/* rounding control */
-#define _FPU_RC_NEAREST 0x0 /* RECOMMENDED */
-#define _FPU_RC_DOWN 0x400
-#define _FPU_RC_UP 0x800
-#define _FPU_RC_ZERO 0xC00
-
-#define _FPU_RESERVED 0xF0C0 /* Reserved bits in cw */
-
-
-/* The fdlibm code requires strict IEEE double precision arithmetic,
- and no interrupts for exceptions, rounding to nearest. */
-
-#define _FPU_DEFAULT 0x037f
-
-/* IEEE: same as above. */
-#define _FPU_IEEE 0x037f
-
-/* Type of the control word. */
-typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__HI__)));
-
-/* Macros for accessing the hardware control word. "*&" is used to
- work around a bug in older versions of GCC. __volatile__ is used
- to support combination of writing the control register and reading
- it back. Without __volatile__, the old value may be used for reading
- back under compiler optimization.
-
- Note that the use of these macros is not sufficient anymore with
- recent hardware nor on x86-64. Some floating point operations are
- executed in the SSE/SSE2 engines which have their own control and
- status register. */
-#define _FPU_GETCW(cw) __asm__ __volatile__ ("fnstcw %0" : "=m" (*&cw))
-#define _FPU_SETCW(cw) __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw))
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-#endif /* fpu_control.h */
\ No newline at end of file