| author | |
| committer | |
| log | 1b8f0d8b56a578dbd699021dd14ea80d743b7cf8 |
| tree | 007f7cf5ce218faa9bb0483ef4ad60ff09b93a20 |
| parent | 968c969e2ad4b3941727a5738636488f6f5ed10b |
62 files changed, 2465 insertions(+), 904 deletions(-)
lib/libc/include/aarch64-linux-gnu/bits/floatn.h created+97| ... | ... | @@ -0,0 +1,97 @@ |
| 1 | /* Macros to control TS 18661-3 glibc features on ldbl-128 platforms. | |
| 2 | Copyright (C) 2017-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _BITS_FLOATN_H | |
| 20 | #define _BITS_FLOATN_H | |
| 21 | ||
| 22 | #include <features.h> | |
| 23 | #include <bits/long-double.h> | |
| 24 | ||
| 25 | /* Defined to 1 if the current compiler invocation provides a | |
| 26 | floating-point type with the IEEE 754 binary128 format, and this | |
| 27 | glibc includes corresponding *f128 interfaces for it. */ | |
| 28 | #ifndef __NO_LONG_DOUBLE_MATH | |
| 29 | # define __HAVE_FLOAT128 1 | |
| 30 | #else | |
| 31 | /* glibc does not support _Float128 for platforms where long double is | |
| 32 | normally binary128 when building with long double as binary64. | |
| 33 | GCC's default for supported scalar modes does not support it either | |
| 34 | in that case. */ | |
| 35 | # define __HAVE_FLOAT128 0 | |
| 36 | #endif | |
| 37 | ||
| 38 | /* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct | |
| 39 | from the default float, double and long double types in this glibc. */ | |
| 40 | #define __HAVE_DISTINCT_FLOAT128 0 | |
| 41 | ||
| 42 | /* Defined to 1 if the current compiler invocation provides a | |
| 43 | floating-point type with the right format for _Float64x, and this | |
| 44 | glibc includes corresponding *f64x interfaces for it. */ | |
| 45 | #define __HAVE_FLOAT64X __HAVE_FLOAT128 | |
| 46 | ||
| 47 | /* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format | |
| 48 | of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has | |
| 49 | the format of _Float128, which must be different from that of long | |
| 50 | double. */ | |
| 51 | #define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128 | |
| 52 | ||
| 53 | #ifndef __ASSEMBLER__ | |
| 54 | ||
| 55 | /* Defined to concatenate the literal suffix to be used with _Float128 | |
| 56 | types, if __HAVE_FLOAT128 is 1. */ | |
| 57 | # if __HAVE_FLOAT128 | |
| 58 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 59 | /* The literal suffix f128 exists only since GCC 7.0. */ | |
| 60 | # define __f128(x) x##l | |
| 61 | # else | |
| 62 | # define __f128(x) x##f128 | |
| 63 | # endif | |
| 64 | # endif | |
| 65 | ||
| 66 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */ | |
| 67 | # if __HAVE_FLOAT128 | |
| 68 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 69 | # define __CFLOAT128 _Complex long double | |
| 70 | # else | |
| 71 | # define __CFLOAT128 _Complex _Float128 | |
| 72 | # endif | |
| 73 | # endif | |
| 74 | ||
| 75 | /* The remaining of this file provides support for older compilers. */ | |
| 76 | # if __HAVE_FLOAT128 | |
| 77 | ||
| 78 | /* The type _Float128 exists only since GCC 7.0. */ | |
| 79 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 80 | typedef long double _Float128; | |
| 81 | # endif | |
| 82 | ||
| 83 | /* Various built-in functions do not exist before GCC 7.0. */ | |
| 84 | # if !__GNUC_PREREQ (7, 0) | |
| 85 | # define __builtin_huge_valf128() (__builtin_huge_vall ()) | |
| 86 | # define __builtin_inff128() (__builtin_infl ()) | |
| 87 | # define __builtin_nanf128(x) (__builtin_nanl (x)) | |
| 88 | # define __builtin_nansf128(x) (__builtin_nansl (x)) | |
| 89 | # endif | |
| 90 | ||
| 91 | # endif | |
| 92 | ||
| 93 | #endif /* !__ASSEMBLER__. */ | |
| 94 | ||
| 95 | #include <bits/floatn-common.h> | |
| 96 | ||
| 97 | #endif /* _BITS_FLOATN_H */ | |
| \ No newline at end of file |
lib/libc/include/aarch64_be-linux-gnu/bits/floatn.h created+97| ... | ... | @@ -0,0 +1,97 @@ |
| 1 | /* Macros to control TS 18661-3 glibc features on ldbl-128 platforms. | |
| 2 | Copyright (C) 2017-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _BITS_FLOATN_H | |
| 20 | #define _BITS_FLOATN_H | |
| 21 | ||
| 22 | #include <features.h> | |
| 23 | #include <bits/long-double.h> | |
| 24 | ||
| 25 | /* Defined to 1 if the current compiler invocation provides a | |
| 26 | floating-point type with the IEEE 754 binary128 format, and this | |
| 27 | glibc includes corresponding *f128 interfaces for it. */ | |
| 28 | #ifndef __NO_LONG_DOUBLE_MATH | |
| 29 | # define __HAVE_FLOAT128 1 | |
| 30 | #else | |
| 31 | /* glibc does not support _Float128 for platforms where long double is | |
| 32 | normally binary128 when building with long double as binary64. | |
| 33 | GCC's default for supported scalar modes does not support it either | |
| 34 | in that case. */ | |
| 35 | # define __HAVE_FLOAT128 0 | |
| 36 | #endif | |
| 37 | ||
| 38 | /* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct | |
| 39 | from the default float, double and long double types in this glibc. */ | |
| 40 | #define __HAVE_DISTINCT_FLOAT128 0 | |
| 41 | ||
| 42 | /* Defined to 1 if the current compiler invocation provides a | |
| 43 | floating-point type with the right format for _Float64x, and this | |
| 44 | glibc includes corresponding *f64x interfaces for it. */ | |
| 45 | #define __HAVE_FLOAT64X __HAVE_FLOAT128 | |
| 46 | ||
| 47 | /* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format | |
| 48 | of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has | |
| 49 | the format of _Float128, which must be different from that of long | |
| 50 | double. */ | |
| 51 | #define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128 | |
| 52 | ||
| 53 | #ifndef __ASSEMBLER__ | |
| 54 | ||
| 55 | /* Defined to concatenate the literal suffix to be used with _Float128 | |
| 56 | types, if __HAVE_FLOAT128 is 1. */ | |
| 57 | # if __HAVE_FLOAT128 | |
| 58 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 59 | /* The literal suffix f128 exists only since GCC 7.0. */ | |
| 60 | # define __f128(x) x##l | |
| 61 | # else | |
| 62 | # define __f128(x) x##f128 | |
| 63 | # endif | |
| 64 | # endif | |
| 65 | ||
| 66 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */ | |
| 67 | # if __HAVE_FLOAT128 | |
| 68 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 69 | # define __CFLOAT128 _Complex long double | |
| 70 | # else | |
| 71 | # define __CFLOAT128 _Complex _Float128 | |
| 72 | # endif | |
| 73 | # endif | |
| 74 | ||
| 75 | /* The remaining of this file provides support for older compilers. */ | |
| 76 | # if __HAVE_FLOAT128 | |
| 77 | ||
| 78 | /* The type _Float128 exists only since GCC 7.0. */ | |
| 79 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 80 | typedef long double _Float128; | |
| 81 | # endif | |
| 82 | ||
| 83 | /* Various built-in functions do not exist before GCC 7.0. */ | |
| 84 | # if !__GNUC_PREREQ (7, 0) | |
| 85 | # define __builtin_huge_valf128() (__builtin_huge_vall ()) | |
| 86 | # define __builtin_inff128() (__builtin_infl ()) | |
| 87 | # define __builtin_nanf128(x) (__builtin_nanl (x)) | |
| 88 | # define __builtin_nansf128(x) (__builtin_nansl (x)) | |
| 89 | # endif | |
| 90 | ||
| 91 | # endif | |
| 92 | ||
| 93 | #endif /* !__ASSEMBLER__. */ | |
| 94 | ||
| 95 | #include <bits/floatn-common.h> | |
| 96 | ||
| 97 | #endif /* _BITS_FLOATN_H */ | |
| \ No newline at end of file |
lib/libc/include/arm-linux-gnueabi/bits/floatn.h deleted-52| ... | ... | @@ -1,52 +0,0 @@ |
| 1 | /* Macros to control TS 18661-3 glibc features. | |
| 2 | Copyright (C) 2017-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | /* Defined to 1 if the current compiler invocation provides a | |
| 20 | floating-point type with the IEEE 754 binary128 format, and this glibc | |
| 21 | includes corresponding *f128 interfaces for it. */ | |
| 22 | #define __HAVE_FLOAT128 0 | |
| 23 | ||
| 24 | /* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct | |
| 25 | from the default float, double and long double types in this glibc. */ | |
| 26 | #define __HAVE_DISTINCT_FLOAT128 0 | |
| 27 | ||
| 28 | /* Defined to 1 if the current compiler invocation provides a | |
| 29 | floating-point type with the right format for _Float64x, and this | |
| 30 | glibc includes corresponding *f64x interfaces for it. */ | |
| 31 | #define __HAVE_FLOAT64X 0 | |
| 32 | ||
| 33 | /* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format | |
| 34 | of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has | |
| 35 | the format of _Float128, which must be different from that of long | |
| 36 | double. */ | |
| 37 | #define __HAVE_FLOAT64X_LONG_DOUBLE 0 | |
| 38 | ||
| 39 | #ifndef __ASSEMBLER__ | |
| 40 | ||
| 41 | /* Defined to concatenate the literal suffix to be used with _Float128 | |
| 42 | types, if __HAVE_FLOAT128 is 1. | |
| 43 | E.g.: #define __f128(x) x##f128. */ | |
| 44 | # undef __f128 | |
| 45 | ||
| 46 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. | |
| 47 | E.g.: #define __CFLOAT128 _Complex _Float128. */ | |
| 48 | # undef __CFLOAT128 | |
| 49 | ||
| 50 | #endif /* !__ASSEMBLER__. */ | |
| 51 | ||
| 52 | #include <bits/floatn-common.h> | |
| \ No newline at end of file |
lib/libc/include/arm-linux-gnueabi/bits/struct_rwlock.h deleted-61| ... | ... | @@ -1,61 +0,0 @@ |
| 1 | /* Default read-write lock implementation struct definitions. | |
| 2 | Copyright (C) 2019-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef __RWLOCK_INTERNAL_H | |
| 20 | #define __RWLOCK_INTERNAL_H | |
| 21 | ||
| 22 | #include <bits/endian.h> | |
| 23 | ||
| 24 | /* Generic struct for both POSIX read-write lock. New ports are expected | |
| 25 | to use the default layout, however archictetures can redefine it to add | |
| 26 | arch-specific extensions (such as lock-elision). The struct have a size | |
| 27 | of 32 bytes on both LP32 and LP64 architectures. */ | |
| 28 | ||
| 29 | struct __pthread_rwlock_arch_t | |
| 30 | { | |
| 31 | unsigned int __readers; | |
| 32 | unsigned int __writers; | |
| 33 | unsigned int __wrphase_futex; | |
| 34 | unsigned int __writers_futex; | |
| 35 | unsigned int __pad3; | |
| 36 | unsigned int __pad4; | |
| 37 | /* FLAGS must stay at its position in the structure to maintain | |
| 38 | binary compatibility. */ | |
| 39 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 40 | unsigned char __pad1; | |
| 41 | unsigned char __pad2; | |
| 42 | unsigned char __shared; | |
| 43 | unsigned char __flags; | |
| 44 | #else | |
| 45 | unsigned char __flags; | |
| 46 | unsigned char __shared; | |
| 47 | unsigned char __pad1; | |
| 48 | unsigned char __pad2; | |
| 49 | #endif | |
| 50 | int __cur_writer; | |
| 51 | }; | |
| 52 | ||
| 53 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 54 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 55 | 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0 | |
| 56 | #else | |
| 57 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 58 | 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0 | |
| 59 | #endif | |
| 60 | ||
| 61 | #endif | |
| \ No newline at end of file |
lib/libc/include/arm-linux-gnueabi/bits/wordsize.h deleted-21| ... | ... | @@ -1,21 +0,0 @@ |
| 1 | /* Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library; if not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #define __WORDSIZE			32 | |
| 19 | #define __WORDSIZE_TIME64_COMPAT32	0 | |
| 20 | #define __WORDSIZE32_SIZE_ULONG		0 | |
| 21 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| \ No newline at end of file |
lib/libc/include/arm-linux-gnueabihf/bits/floatn.h deleted-52| ... | ... | @@ -1,52 +0,0 @@ |
| 1 | /* Macros to control TS 18661-3 glibc features. | |
| 2 | Copyright (C) 2017-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | /* Defined to 1 if the current compiler invocation provides a | |
| 20 | floating-point type with the IEEE 754 binary128 format, and this glibc | |
| 21 | includes corresponding *f128 interfaces for it. */ | |
| 22 | #define __HAVE_FLOAT128 0 | |
| 23 | ||
| 24 | /* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct | |
| 25 | from the default float, double and long double types in this glibc. */ | |
| 26 | #define __HAVE_DISTINCT_FLOAT128 0 | |
| 27 | ||
| 28 | /* Defined to 1 if the current compiler invocation provides a | |
| 29 | floating-point type with the right format for _Float64x, and this | |
| 30 | glibc includes corresponding *f64x interfaces for it. */ | |
| 31 | #define __HAVE_FLOAT64X 0 | |
| 32 | ||
| 33 | /* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format | |
| 34 | of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has | |
| 35 | the format of _Float128, which must be different from that of long | |
| 36 | double. */ | |
| 37 | #define __HAVE_FLOAT64X_LONG_DOUBLE 0 | |
| 38 | ||
| 39 | #ifndef __ASSEMBLER__ | |
| 40 | ||
| 41 | /* Defined to concatenate the literal suffix to be used with _Float128 | |
| 42 | types, if __HAVE_FLOAT128 is 1. | |
| 43 | E.g.: #define __f128(x) x##f128. */ | |
| 44 | # undef __f128 | |
| 45 | ||
| 46 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. | |
| 47 | E.g.: #define __CFLOAT128 _Complex _Float128. */ | |
| 48 | # undef __CFLOAT128 | |
| 49 | ||
| 50 | #endif /* !__ASSEMBLER__. */ | |
| 51 | ||
| 52 | #include <bits/floatn-common.h> | |
| \ No newline at end of file |
lib/libc/include/arm-linux-gnueabihf/bits/struct_rwlock.h deleted-61| ... | ... | @@ -1,61 +0,0 @@ |
| 1 | /* Default read-write lock implementation struct definitions. | |
| 2 | Copyright (C) 2019-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef __RWLOCK_INTERNAL_H | |
| 20 | #define __RWLOCK_INTERNAL_H | |
| 21 | ||
| 22 | #include <bits/endian.h> | |
| 23 | ||
| 24 | /* Generic struct for both POSIX read-write lock. New ports are expected | |
| 25 | to use the default layout, however archictetures can redefine it to add | |
| 26 | arch-specific extensions (such as lock-elision). The struct have a size | |
| 27 | of 32 bytes on both LP32 and LP64 architectures. */ | |
| 28 | ||
| 29 | struct __pthread_rwlock_arch_t | |
| 30 | { | |
| 31 | unsigned int __readers; | |
| 32 | unsigned int __writers; | |
| 33 | unsigned int __wrphase_futex; | |
| 34 | unsigned int __writers_futex; | |
| 35 | unsigned int __pad3; | |
| 36 | unsigned int __pad4; | |
| 37 | /* FLAGS must stay at its position in the structure to maintain | |
| 38 | binary compatibility. */ | |
| 39 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 40 | unsigned char __pad1; | |
| 41 | unsigned char __pad2; | |
| 42 | unsigned char __shared; | |
| 43 | unsigned char __flags; | |
| 44 | #else | |
| 45 | unsigned char __flags; | |
| 46 | unsigned char __shared; | |
| 47 | unsigned char __pad1; | |
| 48 | unsigned char __pad2; | |
| 49 | #endif | |
| 50 | int __cur_writer; | |
| 51 | }; | |
| 52 | ||
| 53 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 54 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 55 | 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0 | |
| 56 | #else | |
| 57 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 58 | 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0 | |
| 59 | #endif | |
| 60 | ||
| 61 | #endif | |
| \ No newline at end of file |
lib/libc/include/arm-linux-gnueabihf/bits/wordsize.h deleted-21| ... | ... | @@ -1,21 +0,0 @@ |
| 1 | /* Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library; if not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #define __WORDSIZE			32 | |
| 19 | #define __WORDSIZE_TIME64_COMPAT32	0 | |
| 20 | #define __WORDSIZE32_SIZE_ULONG		0 | |
| 21 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| \ No newline at end of file |
lib/libc/include/armeb-linux-gnueabi/bits/floatn.h deleted-52| ... | ... | @@ -1,52 +0,0 @@ |
| 1 | /* Macros to control TS 18661-3 glibc features. | |
| 2 | Copyright (C) 2017-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | /* Defined to 1 if the current compiler invocation provides a | |
| 20 | floating-point type with the IEEE 754 binary128 format, and this glibc | |
| 21 | includes corresponding *f128 interfaces for it. */ | |
| 22 | #define __HAVE_FLOAT128 0 | |
| 23 | ||
| 24 | /* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct | |
| 25 | from the default float, double and long double types in this glibc. */ | |
| 26 | #define __HAVE_DISTINCT_FLOAT128 0 | |
| 27 | ||
| 28 | /* Defined to 1 if the current compiler invocation provides a | |
| 29 | floating-point type with the right format for _Float64x, and this | |
| 30 | glibc includes corresponding *f64x interfaces for it. */ | |
| 31 | #define __HAVE_FLOAT64X 0 | |
| 32 | ||
| 33 | /* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format | |
| 34 | of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has | |
| 35 | the format of _Float128, which must be different from that of long | |
| 36 | double. */ | |
| 37 | #define __HAVE_FLOAT64X_LONG_DOUBLE 0 | |
| 38 | ||
| 39 | #ifndef __ASSEMBLER__ | |
| 40 | ||
| 41 | /* Defined to concatenate the literal suffix to be used with _Float128 | |
| 42 | types, if __HAVE_FLOAT128 is 1. | |
| 43 | E.g.: #define __f128(x) x##f128. */ | |
| 44 | # undef __f128 | |
| 45 | ||
| 46 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. | |
| 47 | E.g.: #define __CFLOAT128 _Complex _Float128. */ | |
| 48 | # undef __CFLOAT128 | |
| 49 | ||
| 50 | #endif /* !__ASSEMBLER__. */ | |
| 51 | ||
| 52 | #include <bits/floatn-common.h> | |
| \ No newline at end of file |
lib/libc/include/armeb-linux-gnueabi/bits/struct_rwlock.h deleted-61| ... | ... | @@ -1,61 +0,0 @@ |
| 1 | /* Default read-write lock implementation struct definitions. | |
| 2 | Copyright (C) 2019-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef __RWLOCK_INTERNAL_H | |
| 20 | #define __RWLOCK_INTERNAL_H | |
| 21 | ||
| 22 | #include <bits/endian.h> | |
| 23 | ||
| 24 | /* Generic struct for both POSIX read-write lock. New ports are expected | |
| 25 | to use the default layout, however archictetures can redefine it to add | |
| 26 | arch-specific extensions (such as lock-elision). The struct have a size | |
| 27 | of 32 bytes on both LP32 and LP64 architectures. */ | |
| 28 | ||
| 29 | struct __pthread_rwlock_arch_t | |
| 30 | { | |
| 31 | unsigned int __readers; | |
| 32 | unsigned int __writers; | |
| 33 | unsigned int __wrphase_futex; | |
| 34 | unsigned int __writers_futex; | |
| 35 | unsigned int __pad3; | |
| 36 | unsigned int __pad4; | |
| 37 | /* FLAGS must stay at its position in the structure to maintain | |
| 38 | binary compatibility. */ | |
| 39 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 40 | unsigned char __pad1; | |
| 41 | unsigned char __pad2; | |
| 42 | unsigned char __shared; | |
| 43 | unsigned char __flags; | |
| 44 | #else | |
| 45 | unsigned char __flags; | |
| 46 | unsigned char __shared; | |
| 47 | unsigned char __pad1; | |
| 48 | unsigned char __pad2; | |
| 49 | #endif | |
| 50 | int __cur_writer; | |
| 51 | }; | |
| 52 | ||
| 53 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 54 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 55 | 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0 | |
| 56 | #else | |
| 57 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 58 | 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0 | |
| 59 | #endif | |
| 60 | ||
| 61 | #endif | |
| \ No newline at end of file |
lib/libc/include/armeb-linux-gnueabi/bits/wordsize.h deleted-21| ... | ... | @@ -1,21 +0,0 @@ |
| 1 | /* Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library; if not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #define __WORDSIZE			32 | |
| 19 | #define __WORDSIZE_TIME64_COMPAT32	0 | |
| 20 | #define __WORDSIZE32_SIZE_ULONG		0 | |
| 21 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| \ No newline at end of file |
lib/libc/include/armeb-linux-gnueabihf/bits/floatn.h deleted-52| ... | ... | @@ -1,52 +0,0 @@ |
| 1 | /* Macros to control TS 18661-3 glibc features. | |
| 2 | Copyright (C) 2017-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | /* Defined to 1 if the current compiler invocation provides a | |
| 20 | floating-point type with the IEEE 754 binary128 format, and this glibc | |
| 21 | includes corresponding *f128 interfaces for it. */ | |
| 22 | #define __HAVE_FLOAT128 0 | |
| 23 | ||
| 24 | /* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct | |
| 25 | from the default float, double and long double types in this glibc. */ | |
| 26 | #define __HAVE_DISTINCT_FLOAT128 0 | |
| 27 | ||
| 28 | /* Defined to 1 if the current compiler invocation provides a | |
| 29 | floating-point type with the right format for _Float64x, and this | |
| 30 | glibc includes corresponding *f64x interfaces for it. */ | |
| 31 | #define __HAVE_FLOAT64X 0 | |
| 32 | ||
| 33 | /* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format | |
| 34 | of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has | |
| 35 | the format of _Float128, which must be different from that of long | |
| 36 | double. */ | |
| 37 | #define __HAVE_FLOAT64X_LONG_DOUBLE 0 | |
| 38 | ||
| 39 | #ifndef __ASSEMBLER__ | |
| 40 | ||
| 41 | /* Defined to concatenate the literal suffix to be used with _Float128 | |
| 42 | types, if __HAVE_FLOAT128 is 1. | |
| 43 | E.g.: #define __f128(x) x##f128. */ | |
| 44 | # undef __f128 | |
| 45 | ||
| 46 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. | |
| 47 | E.g.: #define __CFLOAT128 _Complex _Float128. */ | |
| 48 | # undef __CFLOAT128 | |
| 49 | ||
| 50 | #endif /* !__ASSEMBLER__. */ | |
| 51 | ||
| 52 | #include <bits/floatn-common.h> | |
| \ No newline at end of file |
lib/libc/include/armeb-linux-gnueabihf/bits/struct_rwlock.h deleted-61| ... | ... | @@ -1,61 +0,0 @@ |
| 1 | /* Default read-write lock implementation struct definitions. | |
| 2 | Copyright (C) 2019-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef __RWLOCK_INTERNAL_H | |
| 20 | #define __RWLOCK_INTERNAL_H | |
| 21 | ||
| 22 | #include <bits/endian.h> | |
| 23 | ||
| 24 | /* Generic struct for both POSIX read-write lock. New ports are expected | |
| 25 | to use the default layout, however archictetures can redefine it to add | |
| 26 | arch-specific extensions (such as lock-elision). The struct have a size | |
| 27 | of 32 bytes on both LP32 and LP64 architectures. */ | |
| 28 | ||
| 29 | struct __pthread_rwlock_arch_t | |
| 30 | { | |
| 31 | unsigned int __readers; | |
| 32 | unsigned int __writers; | |
| 33 | unsigned int __wrphase_futex; | |
| 34 | unsigned int __writers_futex; | |
| 35 | unsigned int __pad3; | |
| 36 | unsigned int __pad4; | |
| 37 | /* FLAGS must stay at its position in the structure to maintain | |
| 38 | binary compatibility. */ | |
| 39 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 40 | unsigned char __pad1; | |
| 41 | unsigned char __pad2; | |
| 42 | unsigned char __shared; | |
| 43 | unsigned char __flags; | |
| 44 | #else | |
| 45 | unsigned char __flags; | |
| 46 | unsigned char __shared; | |
| 47 | unsigned char __pad1; | |
| 48 | unsigned char __pad2; | |
| 49 | #endif | |
| 50 | int __cur_writer; | |
| 51 | }; | |
| 52 | ||
| 53 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 54 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 55 | 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0 | |
| 56 | #else | |
| 57 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 58 | 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0 | |
| 59 | #endif | |
| 60 | ||
| 61 | #endif | |
| \ No newline at end of file |
lib/libc/include/armeb-linux-gnueabihf/bits/wordsize.h deleted-21| ... | ... | @@ -1,21 +0,0 @@ |
| 1 | /* Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library; if not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #define __WORDSIZE			32 | |
| 19 | #define __WORDSIZE_TIME64_COMPAT32	0 | |
| 20 | #define __WORDSIZE32_SIZE_ULONG		0 | |
| 21 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| \ No newline at end of file |
lib/libc/include/csky-linux-gnueabi/bits/floatn.h deleted-52| ... | ... | @@ -1,52 +0,0 @@ |
| 1 | /* Macros to control TS 18661-3 glibc features. | |
| 2 | Copyright (C) 2017-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | /* Defined to 1 if the current compiler invocation provides a | |
| 20 | floating-point type with the IEEE 754 binary128 format, and this glibc | |
| 21 | includes corresponding *f128 interfaces for it. */ | |
| 22 | #define __HAVE_FLOAT128 0 | |
| 23 | ||
| 24 | /* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct | |
| 25 | from the default float, double and long double types in this glibc. */ | |
| 26 | #define __HAVE_DISTINCT_FLOAT128 0 | |
| 27 | ||
| 28 | /* Defined to 1 if the current compiler invocation provides a | |
| 29 | floating-point type with the right format for _Float64x, and this | |
| 30 | glibc includes corresponding *f64x interfaces for it. */ | |
| 31 | #define __HAVE_FLOAT64X 0 | |
| 32 | ||
| 33 | /* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format | |
| 34 | of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has | |
| 35 | the format of _Float128, which must be different from that of long | |
| 36 | double. */ | |
| 37 | #define __HAVE_FLOAT64X_LONG_DOUBLE 0 | |
| 38 | ||
| 39 | #ifndef __ASSEMBLER__ | |
| 40 | ||
| 41 | /* Defined to concatenate the literal suffix to be used with _Float128 | |
| 42 | types, if __HAVE_FLOAT128 is 1. | |
| 43 | E.g.: #define __f128(x) x##f128. */ | |
| 44 | # undef __f128 | |
| 45 | ||
| 46 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. | |
| 47 | E.g.: #define __CFLOAT128 _Complex _Float128. */ | |
| 48 | # undef __CFLOAT128 | |
| 49 | ||
| 50 | #endif /* !__ASSEMBLER__. */ | |
| 51 | ||
| 52 | #include <bits/floatn-common.h> | |
| \ No newline at end of file |
lib/libc/include/csky-linux-gnueabi/bits/struct_rwlock.h deleted-61| ... | ... | @@ -1,61 +0,0 @@ |
| 1 | /* Default read-write lock implementation struct definitions. | |
| 2 | Copyright (C) 2019-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef __RWLOCK_INTERNAL_H | |
| 20 | #define __RWLOCK_INTERNAL_H | |
| 21 | ||
| 22 | #include <bits/endian.h> | |
| 23 | ||
| 24 | /* Generic struct for both POSIX read-write lock. New ports are expected | |
| 25 | to use the default layout, however archictetures can redefine it to add | |
| 26 | arch-specific extensions (such as lock-elision). The struct have a size | |
| 27 | of 32 bytes on both LP32 and LP64 architectures. */ | |
| 28 | ||
| 29 | struct __pthread_rwlock_arch_t | |
| 30 | { | |
| 31 | unsigned int __readers; | |
| 32 | unsigned int __writers; | |
| 33 | unsigned int __wrphase_futex; | |
| 34 | unsigned int __writers_futex; | |
| 35 | unsigned int __pad3; | |
| 36 | unsigned int __pad4; | |
| 37 | /* FLAGS must stay at its position in the structure to maintain | |
| 38 | binary compatibility. */ | |
| 39 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 40 | unsigned char __pad1; | |
| 41 | unsigned char __pad2; | |
| 42 | unsigned char __shared; | |
| 43 | unsigned char __flags; | |
| 44 | #else | |
| 45 | unsigned char __flags; | |
| 46 | unsigned char __shared; | |
| 47 | unsigned char __pad1; | |
| 48 | unsigned char __pad2; | |
| 49 | #endif | |
| 50 | int __cur_writer; | |
| 51 | }; | |
| 52 | ||
| 53 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 54 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 55 | 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0 | |
| 56 | #else | |
| 57 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 58 | 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0 | |
| 59 | #endif | |
| 60 | ||
| 61 | #endif | |
| \ No newline at end of file |
lib/libc/include/csky-linux-gnueabi/bits/wordsize.h deleted-21| ... | ... | @@ -1,21 +0,0 @@ |
| 1 | /* Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library; if not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #define __WORDSIZE			32 | |
| 19 | #define __WORDSIZE_TIME64_COMPAT32	0 | |
| 20 | #define __WORDSIZE32_SIZE_ULONG		0 | |
| 21 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| \ No newline at end of file |
lib/libc/include/csky-linux-gnueabihf/bits/floatn.h deleted-52| ... | ... | @@ -1,52 +0,0 @@ |
| 1 | /* Macros to control TS 18661-3 glibc features. | |
| 2 | Copyright (C) 2017-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | /* Defined to 1 if the current compiler invocation provides a | |
| 20 | floating-point type with the IEEE 754 binary128 format, and this glibc | |
| 21 | includes corresponding *f128 interfaces for it. */ | |
| 22 | #define __HAVE_FLOAT128 0 | |
| 23 | ||
| 24 | /* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct | |
| 25 | from the default float, double and long double types in this glibc. */ | |
| 26 | #define __HAVE_DISTINCT_FLOAT128 0 | |
| 27 | ||
| 28 | /* Defined to 1 if the current compiler invocation provides a | |
| 29 | floating-point type with the right format for _Float64x, and this | |
| 30 | glibc includes corresponding *f64x interfaces for it. */ | |
| 31 | #define __HAVE_FLOAT64X 0 | |
| 32 | ||
| 33 | /* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format | |
| 34 | of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has | |
| 35 | the format of _Float128, which must be different from that of long | |
| 36 | double. */ | |
| 37 | #define __HAVE_FLOAT64X_LONG_DOUBLE 0 | |
| 38 | ||
| 39 | #ifndef __ASSEMBLER__ | |
| 40 | ||
| 41 | /* Defined to concatenate the literal suffix to be used with _Float128 | |
| 42 | types, if __HAVE_FLOAT128 is 1. | |
| 43 | E.g.: #define __f128(x) x##f128. */ | |
| 44 | # undef __f128 | |
| 45 | ||
| 46 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. | |
| 47 | E.g.: #define __CFLOAT128 _Complex _Float128. */ | |
| 48 | # undef __CFLOAT128 | |
| 49 | ||
| 50 | #endif /* !__ASSEMBLER__. */ | |
| 51 | ||
| 52 | #include <bits/floatn-common.h> | |
| \ No newline at end of file |
lib/libc/include/csky-linux-gnueabihf/bits/struct_rwlock.h deleted-61| ... | ... | @@ -1,61 +0,0 @@ |
| 1 | /* Default read-write lock implementation struct definitions. | |
| 2 | Copyright (C) 2019-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef __RWLOCK_INTERNAL_H | |
| 20 | #define __RWLOCK_INTERNAL_H | |
| 21 | ||
| 22 | #include <bits/endian.h> | |
| 23 | ||
| 24 | /* Generic struct for both POSIX read-write lock. New ports are expected | |
| 25 | to use the default layout, however archictetures can redefine it to add | |
| 26 | arch-specific extensions (such as lock-elision). The struct have a size | |
| 27 | of 32 bytes on both LP32 and LP64 architectures. */ | |
| 28 | ||
| 29 | struct __pthread_rwlock_arch_t | |
| 30 | { | |
| 31 | unsigned int __readers; | |
| 32 | unsigned int __writers; | |
| 33 | unsigned int __wrphase_futex; | |
| 34 | unsigned int __writers_futex; | |
| 35 | unsigned int __pad3; | |
| 36 | unsigned int __pad4; | |
| 37 | /* FLAGS must stay at its position in the structure to maintain | |
| 38 | binary compatibility. */ | |
| 39 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 40 | unsigned char __pad1; | |
| 41 | unsigned char __pad2; | |
| 42 | unsigned char __shared; | |
| 43 | unsigned char __flags; | |
| 44 | #else | |
| 45 | unsigned char __flags; | |
| 46 | unsigned char __shared; | |
| 47 | unsigned char __pad1; | |
| 48 | unsigned char __pad2; | |
| 49 | #endif | |
| 50 | int __cur_writer; | |
| 51 | }; | |
| 52 | ||
| 53 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 54 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 55 | 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0 | |
| 56 | #else | |
| 57 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 58 | 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0 | |
| 59 | #endif | |
| 60 | ||
| 61 | #endif | |
| \ No newline at end of file |
lib/libc/include/csky-linux-gnueabihf/bits/wordsize.h deleted-21| ... | ... | @@ -1,21 +0,0 @@ |
| 1 | /* Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library; if not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #define __WORDSIZE			32 | |
| 19 | #define __WORDSIZE_TIME64_COMPAT32	0 | |
| 20 | #define __WORDSIZE32_SIZE_ULONG		0 | |
| 21 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| \ No newline at end of file |
lib/libc/include/generic-glibc/bits/floatn.h+13-58| ... | ... | @@ -1,4 +1,4 @@ |
| 1 | /* Macros to control TS 18661-3 glibc features on ldbl-128 platforms. | |
| 1 | /* Macros to control TS 18661-3 glibc features. | |
| 2 | 2 | Copyright (C) 2017-2021 Free Software Foundation, Inc. |
| 3 | 3 | This file is part of the GNU C Library. |
| 4 | 4 | |
| ... | ... | @@ -16,24 +16,10 @@ |
| 16 | 16 | License along with the GNU C Library; if not, see |
| 17 | 17 | <https://www.gnu.org/licenses/>. */ |
| 18 | 18 | |
| 19 | #ifndef _BITS_FLOATN_H | |
| 20 | #define _BITS_FLOATN_H | |
| 21 | ||
| 22 | #include <features.h> | |
| 23 | #include <bits/long-double.h> | |
| 24 | ||
| 25 | 19 | /* Defined to 1 if the current compiler invocation provides a |
| 26 | floating-point type with the IEEE 754 binary128 format, and this | |
| 27 | glibc includes corresponding *f128 interfaces for it. */ | |
| 28 | #ifndef __NO_LONG_DOUBLE_MATH | |
| 29 | # define __HAVE_FLOAT128 1 | |
| 30 | #else | |
| 31 | /* glibc does not support _Float128 for platforms where long double is | |
| 32 | normally binary128 when building with long double as binary64. | |
| 33 | GCC's default for supported scalar modes does not support it either | |
| 34 | in that case. */ | |
| 35 | # define __HAVE_FLOAT128 0 | |
| 36 | #endif | |
| 20 | floating-point type with the IEEE 754 binary128 format, and this glibc | |
| 21 | includes corresponding *f128 interfaces for it. */ | |
| 22 | #define __HAVE_FLOAT128 0 | |
| 37 | 23 | |
| 38 | 24 | /* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct |
| 39 | 25 | from the default float, double and long double types in this glibc. */ |
| ... | ... | @@ -42,56 +28,25 @@ |
| 42 | 28 | /* Defined to 1 if the current compiler invocation provides a |
| 43 | 29 | floating-point type with the right format for _Float64x, and this |
| 44 | 30 | glibc includes corresponding *f64x interfaces for it. */ |
| 45 | #define __HAVE_FLOAT64X __HAVE_FLOAT128 | |
| 31 | #define __HAVE_FLOAT64X 0 | |
| 46 | 32 | |
| 47 | 33 | /* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format |
| 48 | 34 | of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has |
| 49 | 35 | the format of _Float128, which must be different from that of long |
| 50 | 36 | double. */ |
| 51 | #define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128 | |
| 37 | #define __HAVE_FLOAT64X_LONG_DOUBLE 0 | |
| 52 | 38 | |
| 53 | 39 | #ifndef __ASSEMBLER__ |
| 54 | 40 | |
| 55 | 41 | /* Defined to concatenate the literal suffix to be used with _Float128 |
| 56 | types, if __HAVE_FLOAT128 is 1. */ | |
| 57 | # if __HAVE_FLOAT128 | |
| 58 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 59 | /* The literal suffix f128 exists only since GCC 7.0. */ | |
| 60 | # define __f128(x) x##l | |
| 61 | # else | |
| 62 | # define __f128(x) x##f128 | |
| 63 | # endif | |
| 64 | # endif | |
| 65 | ||
| 66 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */ | |
| 67 | # if __HAVE_FLOAT128 | |
| 68 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 69 | # define __CFLOAT128 _Complex long double | |
| 70 | # else | |
| 71 | # define __CFLOAT128 _Complex _Float128 | |
| 72 | # endif | |
| 73 | # endif | |
| 74 | ||
| 75 | /* The remaining of this file provides support for older compilers. */ | |
| 76 | # if __HAVE_FLOAT128 | |
| 42 | types, if __HAVE_FLOAT128 is 1. | |
| 43 | E.g.: #define __f128(x) x##f128. */ | |
| 44 | # undef __f128 | |
| 77 | 45 | |
| 78 | /* The type _Float128 exists only since GCC 7.0. */ | |
| 79 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 80 | typedef long double _Float128; | |
| 81 | # endif | |
| 82 | ||
| 83 | /* Various built-in functions do not exist before GCC 7.0. */ | |
| 84 | # if !__GNUC_PREREQ (7, 0) | |
| 85 | # define __builtin_huge_valf128() (__builtin_huge_vall ()) | |
| 86 | # define __builtin_inff128() (__builtin_infl ()) | |
| 87 | # define __builtin_nanf128(x) (__builtin_nanl (x)) | |
| 88 | # define __builtin_nansf128(x) (__builtin_nansl (x)) | |
| 89 | # endif | |
| 90 | ||
| 91 | # endif | |
| 46 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. | |
| 47 | E.g.: #define __CFLOAT128 _Complex _Float128. */ | |
| 48 | # undef __CFLOAT128 | |
| 92 | 49 | |
| 93 | 50 | #endif /* !__ASSEMBLER__. */ |
| 94 | 51 | |
| 95 | #include <bits/floatn-common.h> | |
| 96 | ||
| 97 | #endif /* _BITS_FLOATN_H */ | |
| \ No newline at end of file | ||
| 52 | #include <bits/floatn-common.h> | |
| \ No newline at end of file |
lib/libc/include/generic-glibc/bits/struct_rwlock.h+17-27| ... | ... | @@ -1,4 +1,4 @@ |
| 1 | /* MIPS internal rwlock struct definitions. | |
| 1 | /* Default read-write lock implementation struct definitions. | |
| 2 | 2 | Copyright (C) 2019-2021 Free Software Foundation, Inc. |
| 3 | 3 | This file is part of the GNU C Library. |
| 4 | 4 | |
| ... | ... | @@ -16,8 +16,15 @@ |
| 16 | 16 | License along with the GNU C Library; if not, see |
| 17 | 17 | <http://www.gnu.org/licenses/>. */ |
| 18 | 18 | |
| 19 | #ifndef _RWLOCK_INTERNAL_H | |
| 20 | #define _RWLOCK_INTERNAL_H | |
| 19 | #ifndef __RWLOCK_INTERNAL_H | |
| 20 | #define __RWLOCK_INTERNAL_H | |
| 21 | ||
| 22 | #include <bits/endian.h> | |
| 23 | ||
| 24 | /* Generic struct for both POSIX read-write lock. New ports are expected | |
| 25 | to use the default layout, however archictetures can redefine it to add | |
| 26 | arch-specific extensions (such as lock-elision). The struct have a size | |
| 27 | of 32 bytes on both LP32 and LP64 architectures. */ | |
| 21 | 28 | |
| 22 | 29 | struct __pthread_rwlock_arch_t |
| 23 | 30 | { |
| ... | ... | @@ -27,45 +34,28 @@ struct __pthread_rwlock_arch_t |
| 27 | 34 | unsigned int __writers_futex; |
| 28 | 35 | unsigned int __pad3; |
| 29 | 36 | unsigned int __pad4; |
| 30 | #if _MIPS_SIM == _ABI64 | |
| 31 | int __cur_writer; | |
| 32 | int __shared; | |
| 33 | unsigned long int __pad1; | |
| 34 | unsigned long int __pad2; | |
| 35 | /* FLAGS must stay at this position in the structure to maintain | |
| 37 | /* FLAGS must stay at its position in the structure to maintain | |
| 36 | 38 | binary compatibility. */ |
| 37 | unsigned int __flags; | |
| 38 | # else | |
| 39 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 39 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 40 | 40 | unsigned char __pad1; |
| 41 | 41 | unsigned char __pad2; |
| 42 | 42 | unsigned char __shared; |
| 43 | /* FLAGS must stay at this position in the structure to maintain | |
| 44 | binary compatibility. */ | |
| 45 | 43 | unsigned char __flags; |
| 46 | # else | |
| 47 | /* FLAGS must stay at this position in the structure to maintain | |
| 48 | binary compatibility. */ | |
| 44 | #else | |
| 49 | 45 | unsigned char __flags; |
| 50 | 46 | unsigned char __shared; |
| 51 | 47 | unsigned char __pad1; |
| 52 | 48 | unsigned char __pad2; |
| 53 | # endif | |
| 54 | int __cur_writer; | |
| 55 | 49 | #endif |
| 50 | int __cur_writer; | |
| 56 | 51 | }; |
| 57 | 52 | |
| 58 | #if _MIPS_SIM == _ABI64 | |
| 53 | #if __BYTE_ORDER == __BIG_ENDIAN | |
| 59 | 54 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ |
| 60 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags | |
| 61 | #else | |
| 62 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 63 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 64 | 55 | 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0 |
| 65 | # else | |
| 66 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 56 | #else | |
| 57 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 67 | 58 | 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0 |
| 68 | # endif | |
| 69 | 59 | #endif |
| 70 | 60 | |
| 71 | 61 | #endif |
| \ No newline at end of file |
lib/libc/include/generic-glibc/bits/wordsize.h+5-15| ... | ... | @@ -1,4 +1,4 @@ |
| 1 | /* Copyright (C) 2002-2021 Free Software Foundation, Inc. | |
| 1 | /* Copyright (C) 1999-2021 Free Software Foundation, Inc. | |
| 2 | 2 | This file is part of the GNU C Library. |
| 3 | 3 | |
| 4 | 4 | The GNU C Library is free software; you can redistribute it and/or |
| ... | ... | @@ -12,20 +12,10 @@ |
| 12 | 12 | Lesser General Public License for more details. |
| 13 | 13 | |
| 14 | 14 | You should have received a copy of the GNU Lesser General Public |
| 15 | License along with the GNU C Library. If not, see | |
| 15 | License along with the GNU C Library; if not, see | |
| 16 | 16 | <https://www.gnu.org/licenses/>. */ |
| 17 | 17 | |
| 18 | #include <sgidefs.h> | |
| 19 | ||
| 20 | #define __WORDSIZE			_MIPS_SZPTR | |
| 21 | ||
| 22 | #if _MIPS_SIM == _ABI64 | |
| 23 | # define __WORDSIZE_TIME64_COMPAT32	1 | |
| 24 | #else | |
| 25 | # define __WORDSIZE_TIME64_COMPAT32	0 | |
| 26 | #endif | |
| 27 | ||
| 28 | #if __WORDSIZE == 32 | |
| 18 | #define __WORDSIZE			32 | |
| 19 | #define __WORDSIZE_TIME64_COMPAT32	0 | |
| 29 | 20 | #define __WORDSIZE32_SIZE_ULONG		0 |
| 30 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| 31 | #endif | |
| \ No newline at end of file | ||
| 21 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/a.out.h created+3| ... | ... | @@ -0,0 +1,3 @@ |
| 1 | #ifndef __A_OUT_GNU_H__ | |
| 2 | # error "Never use <bits/a.out.h> directly; include <a.out.h> instead." | |
| 3 | #endif | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/endianness.h created+11| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | #ifndef _BITS_ENDIANNESS_H | |
| 2 | #define _BITS_ENDIANNESS_H 1 | |
| 3 | ||
| 4 | #ifndef _BITS_ENDIAN_H | |
| 5 | # error "Never use <bits/endianness.h> directly; include <endian.h> instead." | |
| 6 | #endif | |
| 7 | ||
| 8 | /* m68k is big-endian. */ | |
| 9 | #define __BYTE_ORDER __BIG_ENDIAN | |
| 10 | ||
| 11 | #endif /* bits/endianness.h */ | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/fcntl.h created+54| ... | ... | @@ -0,0 +1,54 @@ |
| 1 | /* O_*, F_*, FD_* bit values for Linux. | |
| 2 | Copyright (C) 2000-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library. If not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef	_FCNTL_H | |
| 20 | # error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead." | |
| 21 | #endif | |
| 22 | ||
| 23 | #define __O_DIRECTORY	 040000	/* Must be a directory.	 */ | |
| 24 | #define __O_NOFOLLOW	0100000	/* Do not follow links.	 */ | |
| 25 | #define __O_DIRECT	0200000	/* Direct disk access.	*/ | |
| 26 | #define __O_LARGEFILE	0400000 | |
| 27 | ||
| 28 | struct flock | |
| 29 | { | |
| 30 | short int l_type;	/* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK.	*/ | |
| 31 | short int l_whence;	/* Where `l_start' is relative to (like `lseek'). */ | |
| 32 | #ifndef __USE_FILE_OFFSET64 | |
| 33 | __off_t l_start;	/* Offset where the lock begins. */ | |
| 34 | __off_t l_len;	/* Size of the locked area; zero means until EOF. */ | |
| 35 | #else | |
| 36 | __off64_t l_start;	/* Offset where the lock begins. */ | |
| 37 | __off64_t l_len;	/* Size of the locked area; zero means until EOF. */ | |
| 38 | #endif | |
| 39 | __pid_t l_pid;	/* Process holding the lock. */ | |
| 40 | }; | |
| 41 | ||
| 42 | #ifdef __USE_LARGEFILE64 | |
| 43 | struct flock64 | |
| 44 | { | |
| 45 | short int l_type;	/* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK.	*/ | |
| 46 | short int l_whence;	/* Where `l_start' is relative to (like `lseek'). */ | |
| 47 | __off64_t l_start;	/* Offset where the lock begins. */ | |
| 48 | __off64_t l_len;	/* Size of the locked area; zero means until EOF. */ | |
| 49 | __pid_t l_pid;	/* Process holding the lock. */ | |
| 50 | }; | |
| 51 | #endif | |
| 52 | ||
| 53 | /* Include generic Linux declarations. */ | |
| 54 | #include <bits/fcntl-linux.h> | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/fenv.h created+131| ... | ... | @@ -0,0 +1,131 @@ |
| 1 | /* Copyright (C) 1997-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library. If not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #ifndef _FENV_H | |
| 19 | # error "Never use <bits/fenv.h> directly; include <fenv.h> instead." | |
| 20 | #endif | |
| 21 | ||
| 22 | ||
| 23 | #if defined __HAVE_68881__ || defined __HAVE_FPU__ || defined __mcffpu__ | |
| 24 | ||
| 25 | /* Define bits representing the exception. We use the bit positions of | |
| 26 | the appropriate bits in the FPSR Accrued Exception Byte. */ | |
| 27 | enum | |
| 28 | { | |
| 29 | FE_INEXACT = | |
| 30 | # define FE_INEXACT	(1 << 3) | |
| 31 | FE_INEXACT, | |
| 32 | FE_DIVBYZERO = | |
| 33 | # define FE_DIVBYZERO	(1 << 4) | |
| 34 | FE_DIVBYZERO, | |
| 35 | FE_UNDERFLOW = | |
| 36 | # define FE_UNDERFLOW	(1 << 5) | |
| 37 | FE_UNDERFLOW, | |
| 38 | FE_OVERFLOW = | |
| 39 | # define FE_OVERFLOW	(1 << 6) | |
| 40 | FE_OVERFLOW, | |
| 41 | FE_INVALID = | |
| 42 | # define FE_INVALID	(1 << 7) | |
| 43 | FE_INVALID | |
| 44 | }; | |
| 45 | ||
| 46 | # define FE_ALL_EXCEPT \ | |
| 47 | 	(FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID) | |
| 48 | ||
| 49 | /* The m68k FPU supports all of the four defined rounding modes. We use | |
| 50 | the bit positions in the FPCR Mode Control Byte as the values for the | |
| 51 | appropriate macros. */ | |
| 52 | enum | |
| 53 | { | |
| 54 | FE_TONEAREST = | |
| 55 | # define FE_TONEAREST	0 | |
| 56 | FE_TONEAREST, | |
| 57 | FE_TOWARDZERO = | |
| 58 | # define FE_TOWARDZERO	(1 << 4) | |
| 59 | FE_TOWARDZERO, | |
| 60 | FE_DOWNWARD = | |
| 61 | # define FE_DOWNWARD	(2 << 4) | |
| 62 | FE_DOWNWARD, | |
| 63 | FE_UPWARD = | |
| 64 | # define FE_UPWARD	(3 << 4) | |
| 65 | FE_UPWARD | |
| 66 | }; | |
| 67 | ||
| 68 | #else | |
| 69 | ||
| 70 | /* In the soft-float case, only rounding to nearest is supported, with | |
| 71 | no exceptions. */ | |
| 72 | ||
| 73 | # define FE_ALL_EXCEPT 0 | |
| 74 | ||
| 75 | enum | |
| 76 | { | |
| 77 | __FE_UNDEFINED = -1, | |
| 78 | ||
| 79 | FE_TONEAREST = | |
| 80 | # define FE_TONEAREST	0 | |
| 81 | FE_TONEAREST | |
| 82 | }; | |
| 83 | ||
| 84 | #endif | |
| 85 | ||
| 86 | ||
| 87 | /* Type representing exception flags. */ | |
| 88 | typedef unsigned int fexcept_t; | |
| 89 | ||
| 90 | ||
| 91 | #if defined __HAVE_68881__ || defined __HAVE_FPU__ || defined __mcffpu__ | |
| 92 | ||
| 93 | /* Type representing floating-point environment. This structure | |
| 94 | corresponds to the layout of the block written by `fmovem'. */ | |
| 95 | typedef struct | |
| 96 | { | |
| 97 | unsigned int __control_register; | |
| 98 | unsigned int __status_register; | |
| 99 | unsigned int __instruction_address; | |
| 100 | } | |
| 101 | fenv_t; | |
| 102 | ||
| 103 | #else | |
| 104 | ||
| 105 | /* Keep ABI compatibility with the type used in the generic | |
| 106 | bits/fenv.h, formerly used for no-FPU ColdFire. */ | |
| 107 | typedef struct | |
| 108 | { | |
| 109 | fexcept_t __excepts; | |
| 110 | } | |
| 111 | fenv_t; | |
| 112 | ||
| 113 | #endif | |
| 114 | ||
| 115 | /* If the default argument is used we use this value. */ | |
| 116 | #define FE_DFL_ENV	((const fenv_t *) -1) | |
| 117 | ||
| 118 | #if defined __USE_GNU && (defined __HAVE_68881__	\ | |
| 119 | 			 || defined __HAVE_FPU__	\ | |
| 120 | 			 || defined __mcffpu__) | |
| 121 | /* Floating-point environment where none of the exceptions are masked. */ | |
| 122 | # define FE_NOMASK_ENV	((const fenv_t *) -2) | |
| 123 | #endif | |
| 124 | ||
| 125 | #if __GLIBC_USE (IEC_60559_BFP_EXT_C2X) | |
| 126 | /* Type representing floating-point control modes. */ | |
| 127 | typedef unsigned int femode_t; | |
| 128 | ||
| 129 | /* Default floating-point control modes. */ | |
| 130 | # define FE_DFL_MODE	((const femode_t *) -1L) | |
| 131 | #endif | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/flt-eval-method.h created+25| ... | ... | @@ -0,0 +1,25 @@ |
| 1 | /* Define __GLIBC_FLT_EVAL_METHOD. M68K version. | |
| 2 | Copyright (C) 2016-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _MATH_H | |
| 20 | # error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead." | |
| 21 | #endif | |
| 22 | ||
| 23 | /* The m68k FPUs evaluate all values in the 96-bit floating-point | |
| 24 | format which is also available for the user as 'long double'. */ | |
| 25 | #define __GLIBC_FLT_EVAL_METHOD	2 | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/fp-logb.h created+24| ... | ... | @@ -0,0 +1,24 @@ |
| 1 | /* Define __FP_LOGB0_IS_MIN and __FP_LOGBNAN_IS_MIN. M68K version. | |
| 2 | Copyright (C) 2016-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _MATH_H | |
| 20 | # error "Never use <bits/fp-logb.h> directly; include <math.h> instead." | |
| 21 | #endif | |
| 22 | ||
| 23 | #define __FP_LOGB0_IS_MIN	1 | |
| 24 | #define __FP_LOGBNAN_IS_MIN	0 | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/iscanonical.h created+54| ... | ... | @@ -0,0 +1,54 @@ |
| 1 | /* Define iscanonical macro. ldbl-96 version. | |
| 2 | Copyright (C) 2016-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _MATH_H | |
| 20 | # error "Never use <bits/iscanonical.h> directly; include <math.h> instead." | |
| 21 | #endif | |
| 22 | ||
| 23 | extern int __iscanonicall (long double __x) | |
| 24 | __THROW __attribute__ ((__const__)); | |
| 25 | #define __iscanonicalf(x) ((void) (__typeof (x)) (x), 1) | |
| 26 | #define __iscanonical(x) ((void) (__typeof (x)) (x), 1) | |
| 27 | #if __HAVE_DISTINCT_FLOAT128 | |
| 28 | # define __iscanonicalf128(x) ((void) (__typeof (x)) (x), 1) | |
| 29 | #endif | |
| 30 | ||
| 31 | /* Return nonzero value if X is canonical. In IEEE interchange binary | |
| 32 | formats, all values are canonical, but the argument must still be | |
| 33 | converted to its semantic type for any exceptions arising from the | |
| 34 | conversion, before being discarded; in extended precision, there | |
| 35 | are encodings that are not consistently handled as corresponding to | |
| 36 | any particular value of the type, and we return 0 for those. */ | |
| 37 | #ifndef __cplusplus | |
| 38 | # define iscanonical(x) __MATH_TG ((x), __iscanonical, (x)) | |
| 39 | #else | |
| 40 | /* In C++ mode, __MATH_TG cannot be used, because it relies on | |
| 41 | __builtin_types_compatible_p, which is a C-only builtin. On the | |
| 42 | other hand, overloading provides the means to distinguish between | |
| 43 | the floating-point types. The overloading resolution will match | |
| 44 | the correct parameter (regardless of type qualifiers (i.e.: const | |
| 45 | and volatile)). */ | |
| 46 | extern "C++" { | |
| 47 | inline int iscanonical (float __val) { return __iscanonicalf (__val); } | |
| 48 | inline int iscanonical (double __val) { return __iscanonical (__val); } | |
| 49 | inline int iscanonical (long double __val) { return __iscanonicall (__val); } | |
| 50 | # if __HAVE_DISTINCT_FLOAT128 | |
| 51 | inline int iscanonical (_Float128 __val) { return __iscanonicalf128 (__val); } | |
| 52 | # endif | |
| 53 | } | |
| 54 | #endif /* __cplusplus */ | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/link.h created+57| ... | ... | @@ -0,0 +1,57 @@ |
| 1 | /* Copyright (C) 2005-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library. If not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #ifndef	_LINK_H | |
| 19 | # error "Never include <bits/link.h> directly; use <link.h> instead." | |
| 20 | #endif | |
| 21 | ||
| 22 | ||
| 23 | /* Registers for entry into PLT on M68K. */ | |
| 24 | typedef struct La_m68k_regs | |
| 25 | { | |
| 26 | uint32_t lr_a0; | |
| 27 | uint32_t lr_a1; | |
| 28 | uint32_t lr_sp; | |
| 29 | } La_m68k_regs; | |
| 30 | ||
| 31 | /* Return values for calls from PLT on M68K. */ | |
| 32 | typedef struct La_m68k_retval | |
| 33 | { | |
| 34 | uint32_t lrv_d0; | |
| 35 | uint32_t lrv_d1; | |
| 36 | uint32_t lrv_a0; | |
| 37 | long double lrv_fp0; | |
| 38 | } La_m68k_retval; | |
| 39 | ||
| 40 | ||
| 41 | __BEGIN_DECLS | |
| 42 | ||
| 43 | extern Elf32_Addr la_m68k_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx, | |
| 44 | 					uintptr_t *__refcook, | |
| 45 | 					uintptr_t *__defcook, | |
| 46 | 					La_m68k_regs *__regs, | |
| 47 | 					unsigned int *__flags, | |
| 48 | 					const char *__symname, | |
| 49 | 					long int *__framesizep); | |
| 50 | extern unsigned int la_m68k_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx, | |
| 51 | 					 uintptr_t *__refcook, | |
| 52 | 					 uintptr_t *__defcook, | |
| 53 | 					 const La_m68k_regs *__inregs, | |
| 54 | 					 La_m68k_retval *__outregs, | |
| 55 | 					 const char *__symname); | |
| 56 | ||
| 57 | __END_DECLS | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/long-double.h created+21| ... | ... | @@ -0,0 +1,21 @@ |
| 1 | /* Properties of long double type. ldbl-96 version. | |
| 2 | Copyright (C) 2016-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | /* long double is distinct from double, so there is nothing to | |
| 20 | define here. */ | |
| 21 | #define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0 | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/poll.h created+49| ... | ... | @@ -0,0 +1,49 @@ |
| 1 | /* Copyright (C) 1997-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library. If not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #ifndef _SYS_POLL_H | |
| 19 | # error "Never use <bits/poll.h> directly; include <sys/poll.h> instead." | |
| 20 | #endif | |
| 21 | ||
| 22 | /* Event types that can be polled for. These bits may be set in `events' | |
| 23 | to indicate the interesting event types; they will appear in `revents' | |
| 24 | to indicate the status of the file descriptor. */ | |
| 25 | #define POLLIN		0x001		/* There is data to read. */ | |
| 26 | #define POLLPRI		0x002		/* There is urgent data to read. */ | |
| 27 | #define POLLOUT		0x004		/* Writing now will not block. */ | |
| 28 | ||
| 29 | #if defined __USE_XOPEN || defined __USE_XOPEN2K8 | |
| 30 | /* These values are defined in XPG4.2. */ | |
| 31 | # define POLLRDNORM	0x040		/* Normal data may be read. */ | |
| 32 | # define POLLRDBAND	0x080		/* Priority data may be read. */ | |
| 33 | # define POLLWRNORM	POLLOUT		/* Writing now will not block. */ | |
| 34 | # define POLLWRBAND	0x100		/* Priority data may be written. */ | |
| 35 | #endif | |
| 36 | ||
| 37 | #ifdef __USE_GNU | |
| 38 | /* These are extensions for Linux. */ | |
| 39 | # define POLLMSG	0x400 | |
| 40 | # define POLLREMOVE	0x1000 | |
| 41 | # define POLLRDHUP	0x2000 | |
| 42 | #endif | |
| 43 | ||
| 44 | /* Event types always implicitly polled for. These bits need not be set in | |
| 45 | `events', but they will appear in `revents' to indicate the status of | |
| 46 | the file descriptor. */ | |
| 47 | #define POLLERR		0x008		/* Error condition. */ | |
| 48 | #define POLLHUP		0x010		/* Hung up. */ | |
| 49 | #define POLLNVAL	0x020		/* Invalid polling request. */ | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/procfs-id.h created+25| ... | ... | @@ -0,0 +1,25 @@ |
| 1 | /* Types of pr_uid and pr_gid in struct elf_prpsinfo. M68K version. | |
| 2 | Copyright (C) 2018-2021 Free Software Foundation, Inc. | |
| 3 | ||
| 4 | This file is part of the GNU C Library. | |
| 5 | ||
| 6 | The GNU C Library is free software; you can redistribute it and/or | |
| 7 | modify it under the terms of the GNU Lesser General Public | |
| 8 | License as published by the Free Software Foundation; either | |
| 9 | version 2.1 of the License, or (at your option) any later version. | |
| 10 | ||
| 11 | The GNU C Library is distributed in the hope that it will be useful, | |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 14 | Lesser General Public License for more details. | |
| 15 | ||
| 16 | You should have received a copy of the GNU Lesser General Public | |
| 17 | License along with the GNU C Library; if not, see | |
| 18 | <https://www.gnu.org/licenses/>. */ | |
| 19 | ||
| 20 | #ifndef _SYS_PROCFS_H | |
| 21 | # error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead." | |
| 22 | #endif | |
| 23 | ||
| 24 | typedef unsigned short int __pr_uid_t; | |
| 25 | typedef unsigned short int __pr_gid_t; | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/procfs.h created+34| ... | ... | @@ -0,0 +1,34 @@ |
| 1 | /* Types for registers for sys/procfs.h. M68K version. | |
| 2 | Copyright (C) 1996-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library. If not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _SYS_PROCFS_H | |
| 20 | # error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead." | |
| 21 | #endif | |
| 22 | ||
| 23 | /* Type for a general-purpose register. */ | |
| 24 | typedef unsigned long elf_greg_t; | |
| 25 | ||
| 26 | /* And the whole bunch of them. We could have used `struct | |
| 27 | user_regs_struct' directly in the typedef, but tradition says that | |
| 28 | the register set is an array, which does have some peculiar | |
| 29 | semantics, so leave it that way. */ | |
| 30 | #define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof (elf_greg_t)) | |
| 31 | typedef elf_greg_t elf_gregset_t[ELF_NGREG]; | |
| 32 | ||
| 33 | /* Register set for the floating-point registers. */ | |
| 34 | typedef struct user_m68kfp_struct elf_fpregset_t; | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/pthreadtypes-arch.h created+37| ... | ... | @@ -0,0 +1,37 @@ |
| 1 | /* Copyright (C) 2010-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | Contributed by Maxim Kuvyrkov <maxim@codesourcery.com>, 2010. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library. If not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _BITS_PTHREADTYPES_ARCH_H | |
| 20 | #define _BITS_PTHREADTYPES_ARCH_H	1 | |
| 21 | ||
| 22 | #include <bits/endian.h> | |
| 23 | ||
| 24 | #define __SIZEOF_PTHREAD_ATTR_T 36 | |
| 25 | #define __SIZEOF_PTHREAD_MUTEX_T 24 | |
| 26 | #define __SIZEOF_PTHREAD_MUTEXATTR_T 4 | |
| 27 | #define __SIZEOF_PTHREAD_COND_T 48 | |
| 28 | #define __SIZEOF_PTHREAD_CONDATTR_T 4 | |
| 29 | #define __SIZEOF_PTHREAD_RWLOCK_T 32 | |
| 30 | #define __SIZEOF_PTHREAD_RWLOCKATTR_T 8 | |
| 31 | #define __SIZEOF_PTHREAD_BARRIER_T 20 | |
| 32 | #define __SIZEOF_PTHREAD_BARRIERATTR_T 4 | |
| 33 | ||
| 34 | #define __LOCK_ALIGNMENT __attribute__ ((__aligned__ (4))) | |
| 35 | #define __ONCE_ALIGNMENT __attribute__ ((__aligned__ (4))) | |
| 36 | ||
| 37 | #endif	/* bits/pthreadtypes.h */ | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/semaphore.h created+35| ... | ... | @@ -0,0 +1,35 @@ |
| 1 | /* Copyright (C) 2010-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | Contributed by Maxim Kuvyrkov <maxim@codesourcery.com>, 2010. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library. If not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _SEMAPHORE_H | |
| 20 | # error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead." | |
| 21 | #endif | |
| 22 | ||
| 23 | ||
| 24 | #define __SIZEOF_SEM_T	16 | |
| 25 | ||
| 26 | ||
| 27 | /* Value returned if `sem_open' failed. */ | |
| 28 | #define SEM_FAILED ((sem_t *) 0) | |
| 29 | ||
| 30 | ||
| 31 | typedef union | |
| 32 | { | |
| 33 | char __size[__SIZEOF_SEM_T]; | |
| 34 | long int __align __attribute__ ((__aligned__ (4))); | |
| 35 | } sem_t; | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/setjmp.h created+46| ... | ... | @@ -0,0 +1,46 @@ |
| 1 | /* Copyright (C) 1997-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library. If not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | /* Define the machine-dependent type `jmp_buf'. m68k version. */ | |
| 19 | #ifndef _BITS_SETJMP_H | |
| 20 | #define _BITS_SETJMP_H	1 | |
| 21 | ||
| 22 | #if !defined _SETJMP_H && !defined _PTHREAD_H | |
| 23 | # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead." | |
| 24 | #endif | |
| 25 | ||
| 26 | typedef struct __jmp_buf_internal_tag | |
| 27 | { | |
| 28 | /* There are eight 4-byte data registers, but D0 is not saved. */ | |
| 29 | long int __dregs[7]; | |
| 30 | ||
| 31 | /* There are six 4-byte address registers, plus the FP and SP. */ | |
| 32 | int *__aregs[6]; | |
| 33 | int *__fp; | |
| 34 | int *__sp; | |
| 35 | ||
| 36 | #if defined __HAVE_68881__ || defined __HAVE_FPU__ | |
| 37 | /* There are eight floating point registers which | |
| 38 | are saved in IEEE 96-bit extended format. */ | |
| 39 | char __fpregs[8 * (96 / 8)]; | |
| 40 | #elif defined __mcffpu__ | |
| 41 | char __fpregs[8 * (64 / 8)]; | |
| 42 | #endif | |
| 43 | ||
| 44 | } __jmp_buf[1]; | |
| 45 | ||
| 46 | #endif	/* bits/setjmp.h */ | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/sockaddr.h created+42| ... | ... | @@ -0,0 +1,42 @@ |
| 1 | /* Definition of struct sockaddr_* members and sizes, Linux/m68k version. | |
| 2 | Copyright (C) 1995-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | /* | |
| 20 | * Never include this file directly; use <sys/socket.h> instead. | |
| 21 | */ | |
| 22 | ||
| 23 | #ifndef _BITS_SOCKADDR_H | |
| 24 | #define _BITS_SOCKADDR_H	1 | |
| 25 | ||
| 26 | ||
| 27 | /* POSIX.1g specifies this type name for the `sa_family' member. */ | |
| 28 | typedef unsigned short int sa_family_t; | |
| 29 | ||
| 30 | /* This macro is used to declare the initial common members | |
| 31 | of the data types used for socket addresses, `struct sockaddr', | |
| 32 | `struct sockaddr_in', `struct sockaddr_un', etc. */ | |
| 33 | ||
| 34 | #define	__SOCKADDR_COMMON(sa_prefix) \ | |
| 35 | sa_family_t sa_prefix##family | |
| 36 | ||
| 37 | #define __SOCKADDR_COMMON_SIZE	(sizeof (unsigned short int)) | |
| 38 | ||
| 39 | /* Size of struct sockaddr_storage. */ | |
| 40 | #define _SS_SIZE 126 | |
| 41 | ||
| 42 | #endif	/* bits/sockaddr.h */ | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/bits/struct_stat.h created+127| ... | ... | @@ -0,0 +1,127 @@ |
| 1 | /* Definition for struct stat. | |
| 2 | Copyright (C) 2020-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library. If not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #if !defined _SYS_STAT_H && !defined _FCNTL_H | |
| 20 | # error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead." | |
| 21 | #endif | |
| 22 | ||
| 23 | #ifndef _BITS_STRUCT_STAT_H | |
| 24 | #define _BITS_STRUCT_STAT_H	1 | |
| 25 | ||
| 26 | struct stat | |
| 27 | { | |
| 28 | __dev_t st_dev;			/* Device. */ | |
| 29 | unsigned short int __pad1; | |
| 30 | #ifndef __USE_FILE_OFFSET64 | |
| 31 | __ino_t st_ino;			/* File serial number.	*/ | |
| 32 | #else | |
| 33 | __ino_t __st_ino;			/* 32bit file serial number.	*/ | |
| 34 | #endif | |
| 35 | __mode_t st_mode;			/* File mode. */ | |
| 36 | __nlink_t st_nlink;			/* Link count. */ | |
| 37 | __uid_t st_uid;			/* User ID of the file's owner.	*/ | |
| 38 | __gid_t st_gid;			/* Group ID of the file's group.*/ | |
| 39 | __dev_t st_rdev;			/* Device number, if device. */ | |
| 40 | unsigned short int __pad2; | |
| 41 | #ifndef __USE_FILE_OFFSET64 | |
| 42 | __off_t st_size;			/* Size of file, in bytes. */ | |
| 43 | #else | |
| 44 | __off64_t st_size;			/* Size of file, in bytes. */ | |
| 45 | #endif | |
| 46 | __blksize_t st_blksize;		/* Optimal block size for I/O. */ | |
| 47 | ||
| 48 | #ifndef __USE_FILE_OFFSET64 | |
| 49 | __blkcnt_t st_blocks;		/* Number 512-byte blocks allocated. */ | |
| 50 | #else | |
| 51 | __blkcnt64_t st_blocks;		/* Number 512-byte blocks allocated. */ | |
| 52 | #endif | |
| 53 | #ifdef __USE_XOPEN2K8 | |
| 54 | /* Nanosecond resolution timestamps are stored in a format | |
| 55 | equivalent to 'struct timespec'. This is the type used | |
| 56 | whenever possible but the Unix namespace rules do not allow the | |
| 57 | identifier 'timespec' to appear in the <sys/stat.h> header. | |
| 58 | Therefore we have to handle the use of this header in strictly | |
| 59 | standard-compliant sources special. */ | |
| 60 | struct timespec st_atim;		/* Time of last access. */ | |
| 61 | struct timespec st_mtim;		/* Time of last modification. */ | |
| 62 | struct timespec st_ctim;		/* Time of last status change. */ | |
| 63 | # define st_atime st_atim.tv_sec	/* Backward compatibility. */ | |
| 64 | # define st_mtime st_mtim.tv_sec | |
| 65 | # define st_ctime st_ctim.tv_sec | |
| 66 | #else | |
| 67 | __time_t st_atime;			/* Time of last access. */ | |
| 68 | unsigned long int st_atimensec;	/* Nscecs of last access. */ | |
| 69 | __time_t st_mtime;			/* Time of last modification. */ | |
| 70 | unsigned long int st_mtimensec;	/* Nsecs of last modification. */ | |
| 71 | __time_t st_ctime;			/* Time of last status change. */ | |
| 72 | unsigned long int st_ctimensec;	/* Nsecs of last status change. */ | |
| 73 | #endif | |
| 74 | #ifndef __USE_FILE_OFFSET64 | |
| 75 | unsigned long int __glibc_reserved4; | |
| 76 | unsigned long int __glibc_reserved5; | |
| 77 | #else | |
| 78 | __ino64_t st_ino;			/* File serial number.	*/ | |
| 79 | #endif | |
| 80 | }; | |
| 81 | ||
| 82 | #ifdef __USE_LARGEFILE64 | |
| 83 | struct stat64 | |
| 84 | { | |
| 85 | __dev_t st_dev;			/* Device. */ | |
| 86 | unsigned short int __pad1; | |
| 87 | ||
| 88 | __ino_t __st_ino;			/* 32bit file serial number.	*/ | |
| 89 | __mode_t st_mode;			/* File mode. */ | |
| 90 | __nlink_t st_nlink;			/* Link count. */ | |
| 91 | __uid_t st_uid;			/* User ID of the file's owner.	*/ | |
| 92 | __gid_t st_gid;			/* Group ID of the file's group.*/ | |
| 93 | __dev_t st_rdev;			/* Device number, if device. */ | |
| 94 | unsigned short int __pad2; | |
| 95 | __off64_t st_size;			/* Size of file, in bytes. */ | |
| 96 | __blksize_t st_blksize;		/* Optimal block size for I/O. */ | |
| 97 | ||
| 98 | __blkcnt64_t st_blocks;		/* Number 512-byte blocks allocated. */ | |
| 99 | # ifdef __USE_XOPEN2K8 | |
| 100 | /* Nanosecond resolution timestamps are stored in a format | |
| 101 | equivalent to 'struct timespec'. This is the type used | |
| 102 | whenever possible but the Unix namespace rules do not allow the | |
| 103 | identifier 'timespec' to appear in the <sys/stat.h> header. | |
| 104 | Therefore we have to handle the use of this header in strictly | |
| 105 | standard-compliant sources special. */ | |
| 106 | struct timespec st_atim;		/* Time of last access. */ | |
| 107 | struct timespec st_mtim;		/* Time of last modification. */ | |
| 108 | struct timespec st_ctim;		/* Time of last status change. */ | |
| 109 | # else | |
| 110 | __time_t st_atime;			/* Time of last access. */ | |
| 111 | unsigned long int st_atimensec;	/* Nscecs of last access. */ | |
| 112 | __time_t st_mtime;			/* Time of last modification. */ | |
| 113 | unsigned long int st_mtimensec;	/* Nsecs of last modification. */ | |
| 114 | __time_t st_ctime;			/* Time of last status change. */ | |
| 115 | unsigned long int st_ctimensec;	/* Nsecs of last status change. */ | |
| 116 | # endif | |
| 117 | __ino64_t st_ino;			/* File serial number.		*/ | |
| 118 | }; | |
| 119 | #endif | |
| 120 | ||
| 121 | /* Tell code we have these members. */ | |
| 122 | #define	_STATBUF_ST_BLKSIZE | |
| 123 | #define _STATBUF_ST_RDEV | |
| 124 | /* Nanosecond resolution time values are supported. */ | |
| 125 | #define _STATBUF_ST_NSEC | |
| 126 | ||
| 127 | #endif /* _BITS_STRUCT_STAT_H */ | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/fpu_control.h created+118| ... | ... | @@ -0,0 +1,118 @@ |
| 1 | /* 68k FPU control word definitions. | |
| 2 | Copyright (C) 1996-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library. If not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _FPU_CONTROL_H | |
| 20 | #define _FPU_CONTROL_H | |
| 21 | ||
| 22 | /* | |
| 23 | * Motorola floating point control register bits. | |
| 24 | * | |
| 25 | * 31-16 -> reserved (read as 0, ignored on write) | |
| 26 | * 15 -> enable trap for BSUN exception | |
| 27 | * 14 -> enable trap for SNAN exception | |
| 28 | * 13 -> enable trap for OPERR exception | |
| 29 | * 12 -> enable trap for OVFL exception | |
| 30 | * 11 -> enable trap for UNFL exception | |
| 31 | * 10 -> enable trap for DZ exception | |
| 32 | * 9 -> enable trap for INEX2 exception (INEX on Coldfire) | |
| 33 | * 8 -> enable trap for INEX1 exception (IDE on Coldfire) | |
| 34 | * 7-6 -> Precision Control (only bit 6 is used on Coldfire) | |
| 35 | * 5-4 -> Rounding Control | |
| 36 | * 3-0 -> zero (read as 0, write as 0) | |
| 37 | * | |
| 38 | * | |
| 39 | * Precision Control: | |
| 40 | * 00 - round to extended precision | |
| 41 | * 01 - round to single precision | |
| 42 | * 10 - round to double precision | |
| 43 | * 11 - undefined | |
| 44 | * | |
| 45 | * Rounding Control: | |
| 46 | * 00 - rounding to nearest (RN) | |
| 47 | * 01 - rounding toward zero (RZ) | |
| 48 | * 10 - rounding (down)toward minus infinity (RM) | |
| 49 | * 11 - rounding (up) toward plus infinity (RP) | |
| 50 | * | |
| 51 | * The hardware default is 0x0000. I choose 0x5400. | |
| 52 | */ | |
| 53 | ||
| 54 | #include <features.h> | |
| 55 | ||
| 56 | #if defined (__mcoldfire__) && !defined (__mcffpu__) | |
| 57 | ||
| 58 | # define _FPU_RESERVED 0xffffffff | |
| 59 | # define _FPU_DEFAULT 0x00000000 | |
| 60 | # define _FPU_GETCW(cw) ((cw) = 0) | |
| 61 | # define _FPU_SETCW(cw) ((void) (cw)) | |
| 62 | ||
| 63 | #else | |
| 64 | ||
| 65 | /* masking of interrupts */ | |
| 66 | # define _FPU_MASK_BSUN 0x8000 | |
| 67 | # define _FPU_MASK_SNAN 0x4000 | |
| 68 | # define _FPU_MASK_OPERR 0x2000 | |
| 69 | # define _FPU_MASK_OVFL 0x1000 | |
| 70 | # define _FPU_MASK_UNFL 0x0800 | |
| 71 | # define _FPU_MASK_DZ 0x0400 | |
| 72 | # define _FPU_MASK_INEX1 0x0200 | |
| 73 | # define _FPU_MASK_INEX2 0x0100 | |
| 74 | ||
| 75 | /* precision control */ | |
| 76 | # ifdef __mcoldfire__ | |
| 77 | # define _FPU_DOUBLE 0x00 | |
| 78 | # else | |
| 79 | # define _FPU_EXTENDED 0x00 /* RECOMMENDED */ | |
| 80 | # define _FPU_DOUBLE 0x80 | |
| 81 | # endif | |
| 82 | # define _FPU_SINGLE 0x40 /* DO NOT USE */ | |
| 83 | ||
| 84 | /* rounding control */ | |
| 85 | # define _FPU_RC_NEAREST 0x00 /* RECOMMENDED */ | |
| 86 | # define _FPU_RC_ZERO 0x10 | |
| 87 | # define _FPU_RC_DOWN 0x20 | |
| 88 | # define _FPU_RC_UP 0x30 | |
| 89 | ||
| 90 | # ifdef __mcoldfire__ | |
| 91 | # define _FPU_RESERVED 0xFFFF800F | |
| 92 | # else | |
| 93 | # define _FPU_RESERVED 0xFFFF000F /* Reserved bits in fpucr */ | |
| 94 | # endif | |
| 95 | ||
| 96 | ||
| 97 | /* Now two recommended fpucr */ | |
| 98 | ||
| 99 | /* The fdlibm code requires no interrupts for exceptions. Don't | |
| 100 | change the rounding mode, it would break long double I/O! */ | |
| 101 | # define _FPU_DEFAULT 0x00000000 | |
| 102 | ||
| 103 | /* IEEE: same as above, but exceptions. We must make it non-zero so | |
| 104 | that __setfpucw works. This bit will be ignored. */ | |
| 105 | # define _FPU_IEEE 0x00000001 | |
| 106 | ||
| 107 | /* Macros for accessing the hardware control word. */ | |
| 108 | # define _FPU_GETCW(cw) __asm__ ("fmove%.l %!, %0" : "=dm" (cw)) | |
| 109 | # define _FPU_SETCW(cw) __asm__ volatile ("fmove%.l %0, %!" : : "dm" (cw)) | |
| 110 | #endif | |
| 111 | ||
| 112 | /* Type of the control word. */ | |
| 113 | typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__SI__))); | |
| 114 | ||
| 115 | /* Default control word set at startup. */ | |
| 116 | extern fpu_control_t __fpu_control; | |
| 117 | ||
| 118 | #endif /* _M68K_FPU_CONTROL_H */ | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/gnu/lib-names.h created+31| ... | ... | @@ -0,0 +1,31 @@ |
| 1 | /* This file is automatically generated. | |
| 2 | It defines macros to allow user program to find the shared | |
| 3 | library files which come as part of GNU libc. */ | |
| 4 | #ifndef __GNU_LIB_NAMES_H | |
| 5 | #define __GNU_LIB_NAMES_H	1 | |
| 6 | ||
| 7 | #define LD_SO "ld.so.1" | |
| 8 | #define LIBANL_SO "libanl.so.1" | |
| 9 | #define LIBBROKENLOCALE_SO "libBrokenLocale.so.1" | |
| 10 | #define LIBCRYPT_SO "libcrypt.so.1" | |
| 11 | #define LIBC_SO "libc.so.6" | |
| 12 | #define LIBDL_SO "libdl.so.2" | |
| 13 | #define LIBGCC_S_SO "libgcc_s.so.2" | |
| 14 | #define LIBMVEC_SO "libmvec.so.1" | |
| 15 | #define LIBM_SO "libm.so.6" | |
| 16 | #define LIBNSL_SO "libnsl.so.1" | |
| 17 | #define LIBNSS_COMPAT_SO "libnss_compat.so.2" | |
| 18 | #define LIBNSS_DB_SO "libnss_db.so.2" | |
| 19 | #define LIBNSS_DNS_SO "libnss_dns.so.2" | |
| 20 | #define LIBNSS_FILES_SO "libnss_files.so.2" | |
| 21 | #define LIBNSS_HESIOD_SO "libnss_hesiod.so.2" | |
| 22 | #define LIBNSS_LDAP_SO "libnss_ldap.so.2" | |
| 23 | #define LIBNSS_TEST1_SO "libnss_test1.so.2" | |
| 24 | #define LIBNSS_TEST2_SO "libnss_test2.so.2" | |
| 25 | #define LIBPTHREAD_SO "libpthread.so.0" | |
| 26 | #define LIBRESOLV_SO "libresolv.so.2" | |
| 27 | #define LIBRT_SO "librt.so.1" | |
| 28 | #define LIBTHREAD_DB_SO "libthread_db.so.1" | |
| 29 | #define LIBUTIL_SO "libutil.so.1" | |
| 30 | ||
| 31 | #endif	/* gnu/lib-names.h */ | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/gnu/stubs.h created+16| ... | ... | @@ -0,0 +1,16 @@ |
| 1 | /* This file is automatically generated. | |
| 2 | It defines a symbol `__stub_FUNCTION' for each function | |
| 3 | in the C library which is a stub, meaning it will fail | |
| 4 | every time called, usually setting errno to ENOSYS. */ | |
| 5 | ||
| 6 | #ifdef _LIBC | |
| 7 | #error Applications may not define the macro _LIBC | |
| 8 | #endif | |
| 9 | ||
| 10 | #define __stub_chflags | |
| 11 | #define __stub_fchflags | |
| 12 | #define __stub_gtty | |
| 13 | #define __stub_revoke | |
| 14 | #define __stub_setlogin | |
| 15 | #define __stub_sigreturn | |
| 16 | #define __stub_stty | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/sys/reg.h created+101| ... | ... | @@ -0,0 +1,101 @@ |
| 1 | /* Copyright (C) 1998-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library. If not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #ifndef _SYS_REG_H | |
| 19 | #define _SYS_REG_H	1 | |
| 20 | ||
| 21 | /* Index into an array of 4 byte integers returned from ptrace for | |
| 22 | location of the users' stored general purpose registers. */ | |
| 23 | ||
| 24 | enum | |
| 25 | { | |
| 26 | PT_D1 = 0, | |
| 27 | #define PT_D1 PT_D1 | |
| 28 | PT_D2 = 1, | |
| 29 | #define PT_D2 PT_D2 | |
| 30 | PT_D3 = 2, | |
| 31 | #define PT_D3 PT_D3 | |
| 32 | PT_D4 = 3, | |
| 33 | #define PT_D4 PT_D4 | |
| 34 | PT_D5 = 4, | |
| 35 | #define PT_D5 PT_D5 | |
| 36 | PT_D6 = 5, | |
| 37 | #define PT_D6 PT_D6 | |
| 38 | PT_D7 = 6, | |
| 39 | #define PT_D7 PT_D7 | |
| 40 | PT_A0 = 7, | |
| 41 | #define PT_A0 PT_A0 | |
| 42 | PT_A1 = 8, | |
| 43 | #define PT_A1 PT_A1 | |
| 44 | PT_A2 = 9, | |
| 45 | #define PT_A2 PT_A2 | |
| 46 | PT_A3 = 10, | |
| 47 | #define PT_A3 PT_A3 | |
| 48 | PT_A4 = 11, | |
| 49 | #define PT_A4 PT_A4 | |
| 50 | PT_A5 = 12, | |
| 51 | #define PT_A5 PT_A5 | |
| 52 | PT_A6 = 13, | |
| 53 | #define PT_A6 PT_A6 | |
| 54 | PT_D0 = 14, | |
| 55 | #define PT_D0 PT_D0 | |
| 56 | PT_USP = 15, | |
| 57 | #define PT_USP PT_USP | |
| 58 | PT_ORIG_D0 = 16, | |
| 59 | #define PT_ORIG_D0 PT_ORIG_D0 | |
| 60 | PT_SR = 17, | |
| 61 | #define PT_SR PT_SR | |
| 62 | PT_PC = 18, | |
| 63 | #define PT_PC PT_PC | |
| 64 | ||
| 65 | #ifdef __mcoldfire__ | |
| 66 | PT_FP0 = 21, | |
| 67 | PT_FP1 = 23, | |
| 68 | PT_FP2 = 25, | |
| 69 | PT_FP3 = 27, | |
| 70 | PT_FP4 = 29, | |
| 71 | PT_FP5 = 31, | |
| 72 | PT_FP6 = 33, | |
| 73 | PT_FP7 = 35, | |
| 74 | #else | |
| 75 | PT_FP0 = 21, | |
| 76 | PT_FP1 = 24, | |
| 77 | PT_FP2 = 27, | |
| 78 | PT_FP3 = 30, | |
| 79 | PT_FP4 = 33, | |
| 80 | PT_FP5 = 36, | |
| 81 | PT_FP6 = 39, | |
| 82 | PT_FP7 = 42, | |
| 83 | #endif | |
| 84 | #define PT_FP0 PT_FP0 | |
| 85 | #define PT_FP1 PT_FP1 | |
| 86 | #define PT_FP2 PT_FP2 | |
| 87 | #define PT_FP3 PT_FP3 | |
| 88 | #define PT_FP4 PT_FP4 | |
| 89 | #define PT_FP5 PT_FP5 | |
| 90 | #define PT_FP6 PT_FP6 | |
| 91 | #define PT_FP7 PT_FP7 | |
| 92 | ||
| 93 | PT_FPCR = 45, | |
| 94 | #define PT_FPCR PT_FPCR | |
| 95 | PT_FPSR = 46, | |
| 96 | #define PT_FPSR PT_FPSR | |
| 97 | PT_FPIAR = 47 | |
| 98 | #define PT_FPIAR PT_FPIAR | |
| 99 | }; | |
| 100 | ||
| 101 | #endif	/* _SYS_REG_H */ | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/sys/ucontext.h created+130| ... | ... | @@ -0,0 +1,130 @@ |
| 1 | /* Copyright (C) 1997-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library. If not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | /* System V/m68k ABI compliant context switching support. */ | |
| 19 | ||
| 20 | #ifndef _SYS_UCONTEXT_H | |
| 21 | #define _SYS_UCONTEXT_H	1 | |
| 22 | ||
| 23 | #include <features.h> | |
| 24 | ||
| 25 | #include <bits/types/sigset_t.h> | |
| 26 | #include <bits/types/stack_t.h> | |
| 27 | ||
| 28 | ||
| 29 | /* Type for general register. */ | |
| 30 | typedef int greg_t; | |
| 31 | ||
| 32 | /* Number of general registers. */ | |
| 33 | #define __NGREG	18 | |
| 34 | #ifdef __USE_MISC | |
| 35 | # define NGREG	__NGREG | |
| 36 | #endif | |
| 37 | ||
| 38 | /* Container for all general registers. */ | |
| 39 | typedef greg_t gregset_t[__NGREG]; | |
| 40 | ||
| 41 | #ifdef __USE_MISC | |
| 42 | /* Number of each register is the `gregset_t' array. */ | |
| 43 | enum | |
| 44 | { | |
| 45 | R_D0 = 0, | |
| 46 | # define R_D0	R_D0 | |
| 47 | R_D1 = 1, | |
| 48 | # define R_D1	R_D1 | |
| 49 | R_D2 = 2, | |
| 50 | # define R_D2	R_D2 | |
| 51 | R_D3 = 3, | |
| 52 | # define R_D3	R_D3 | |
| 53 | R_D4 = 4, | |
| 54 | # define R_D4	R_D4 | |
| 55 | R_D5 = 5, | |
| 56 | # define R_D5	R_D5 | |
| 57 | R_D6 = 6, | |
| 58 | # define R_D6	R_D6 | |
| 59 | R_D7 = 7, | |
| 60 | # define R_D7	R_D7 | |
| 61 | R_A0 = 8, | |
| 62 | # define R_A0	R_A0 | |
| 63 | R_A1 = 9, | |
| 64 | # define R_A1	R_A1 | |
| 65 | R_A2 = 10, | |
| 66 | # define R_A2	R_A2 | |
| 67 | R_A3 = 11, | |
| 68 | # define R_A3	R_A3 | |
| 69 | R_A4 = 12, | |
| 70 | # define R_A4	R_A4 | |
| 71 | R_A5 = 13, | |
| 72 | # define R_A5	R_A5 | |
| 73 | R_A6 = 14, | |
| 74 | # define R_A6	R_A6 | |
| 75 | R_A7 = 15, | |
| 76 | # define R_A7	R_A7 | |
| 77 | R_SP = 15, | |
| 78 | # define R_SP	R_SP | |
| 79 | R_PC = 16, | |
| 80 | # define R_PC	R_PC | |
| 81 | R_PS = 17 | |
| 82 | # define R_PS	R_PS | |
| 83 | }; | |
| 84 | #endif | |
| 85 | ||
| 86 | #ifdef __USE_MISC | |
| 87 | # define __ctx(fld) fld | |
| 88 | #else | |
| 89 | # define __ctx(fld) __ ## fld | |
| 90 | #endif | |
| 91 | ||
| 92 | /* Structure to describe FPU registers. */ | |
| 93 | typedef struct | |
| 94 | { | |
| 95 | int __ctx(f_pcr); | |
| 96 | int __ctx(f_psr); | |
| 97 | int __ctx(f_fpiaddr); | |
| 98 | #ifdef __mcoldfire__ | |
| 99 | int __ctx(f_fpregs)[8][2]; | |
| 100 | #else | |
| 101 | int __ctx(f_fpregs)[8][3]; | |
| 102 | #endif | |
| 103 | } fpregset_t; | |
| 104 | ||
| 105 | /* Context to describe whole processor state. */ | |
| 106 | typedef struct | |
| 107 | { | |
| 108 | int __ctx(version); | |
| 109 | gregset_t __ctx(gregs); | |
| 110 | fpregset_t __ctx(fpregs); | |
| 111 | } mcontext_t; | |
| 112 | ||
| 113 | #ifdef __USE_MISC | |
| 114 | # define MCONTEXT_VERSION 2 | |
| 115 | #endif | |
| 116 | ||
| 117 | /* Userlevel context. */ | |
| 118 | typedef struct ucontext_t | |
| 119 | { | |
| 120 | unsigned long __ctx(uc_flags); | |
| 121 | struct ucontext_t *uc_link; | |
| 122 | stack_t uc_stack; | |
| 123 | mcontext_t uc_mcontext; | |
| 124 | unsigned long __glibc_reserved1[80]; | |
| 125 | sigset_t uc_sigmask; | |
| 126 | } ucontext_t; | |
| 127 | ||
| 128 | #undef __ctx | |
| 129 | ||
| 130 | #endif /* sys/ucontext.h */ | |
| \ No newline at end of file |
lib/libc/include/m68k-linux-gnu/sys/user.h created+65| ... | ... | @@ -0,0 +1,65 @@ |
| 1 | /* Copyright (C) 2008-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library. If not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #ifndef _SYS_USER_H | |
| 19 | #define _SYS_USER_H	1 | |
| 20 | ||
| 21 | /* The whole purpose of this file is for GDB and GDB only. Don't read | |
| 22 | too much into it. Don't use it for anything other than GDB unless | |
| 23 | you know what you are doing. */ | |
| 24 | ||
| 25 | struct user_m68kfp_struct { | |
| 26 | 	unsigned long fpregs[8*3]; | |
| 27 | 	unsigned long fpcntl[3]; | |
| 28 | }; | |
| 29 | ||
| 30 | struct user_regs_struct { | |
| 31 | 	long d1, d2, d3, d4, d5, d6, d7; | |
| 32 | 	long a0, a1, a2, a3, a4, a5, a6; | |
| 33 | 	long d0; | |
| 34 | 	long usp; | |
| 35 | 	long orig_d0; | |
| 36 | 	short stkadj; | |
| 37 | 	short sr; | |
| 38 | 	long pc; | |
| 39 | 	short fmtvec; | |
| 40 | 	short __fill; | |
| 41 | }; | |
| 42 | ||
| 43 | struct user { | |
| 44 | 	struct user_regs_struct regs; | |
| 45 | 	int u_fpvalid; | |
| 46 | 	struct user_m68kfp_struct m68kfp; | |
| 47 | 	unsigned long int u_tsize; | |
| 48 | 	unsigned long int u_dsize; | |
| 49 | 	unsigned long int u_ssize; | |
| 50 | 	unsigned long start_code; | |
| 51 | 	unsigned long start_stack; | |
| 52 | 	long int signal; | |
| 53 | 	int reserved; | |
| 54 | 	unsigned long u_ar0; | |
| 55 | 	struct user_m68kfp_struct *u_fpstate; | |
| 56 | 	unsigned long magic; | |
| 57 | 	char u_comm[32]; | |
| 58 | }; | |
| 59 | ||
| 60 | #define NBPG 4096 | |
| 61 | #define UPAGES 1 | |
| 62 | #define HOST_TEXT_START_ADDR u.start_code | |
| 63 | #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) | |
| 64 | ||
| 65 | #endif | |
| \ No newline at end of file |
lib/libc/include/mips-linux-gnu/bits/struct_rwlock.h created+71| ... | ... | @@ -0,0 +1,71 @@ |
| 1 | /* MIPS internal rwlock struct definitions. | |
| 2 | Copyright (C) 2019-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _RWLOCK_INTERNAL_H | |
| 20 | #define _RWLOCK_INTERNAL_H | |
| 21 | ||
| 22 | struct __pthread_rwlock_arch_t | |
| 23 | { | |
| 24 | unsigned int __readers; | |
| 25 | unsigned int __writers; | |
| 26 | unsigned int __wrphase_futex; | |
| 27 | unsigned int __writers_futex; | |
| 28 | unsigned int __pad3; | |
| 29 | unsigned int __pad4; | |
| 30 | #if _MIPS_SIM == _ABI64 | |
| 31 | int __cur_writer; | |
| 32 | int __shared; | |
| 33 | unsigned long int __pad1; | |
| 34 | unsigned long int __pad2; | |
| 35 | /* FLAGS must stay at this position in the structure to maintain | |
| 36 | binary compatibility. */ | |
| 37 | unsigned int __flags; | |
| 38 | # else | |
| 39 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 40 | unsigned char __pad1; | |
| 41 | unsigned char __pad2; | |
| 42 | unsigned char __shared; | |
| 43 | /* FLAGS must stay at this position in the structure to maintain | |
| 44 | binary compatibility. */ | |
| 45 | unsigned char __flags; | |
| 46 | # else | |
| 47 | /* FLAGS must stay at this position in the structure to maintain | |
| 48 | binary compatibility. */ | |
| 49 | unsigned char __flags; | |
| 50 | unsigned char __shared; | |
| 51 | unsigned char __pad1; | |
| 52 | unsigned char __pad2; | |
| 53 | # endif | |
| 54 | int __cur_writer; | |
| 55 | #endif | |
| 56 | }; | |
| 57 | ||
| 58 | #if _MIPS_SIM == _ABI64 | |
| 59 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 60 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags | |
| 61 | #else | |
| 62 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 63 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 64 | 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0 | |
| 65 | # else | |
| 66 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 67 | 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0 | |
| 68 | # endif | |
| 69 | #endif | |
| 70 | ||
| 71 | #endif | |
| \ No newline at end of file |
lib/libc/include/mips-linux-gnu/bits/wordsize.h created+31| ... | ... | @@ -0,0 +1,31 @@ |
| 1 | /* Copyright (C) 2002-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library. If not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #include <sgidefs.h> | |
| 19 | ||
| 20 | #define __WORDSIZE			_MIPS_SZPTR | |
| 21 | ||
| 22 | #if _MIPS_SIM == _ABI64 | |
| 23 | # define __WORDSIZE_TIME64_COMPAT32	1 | |
| 24 | #else | |
| 25 | # define __WORDSIZE_TIME64_COMPAT32	0 | |
| 26 | #endif | |
| 27 | ||
| 28 | #if __WORDSIZE == 32 | |
| 29 | #define __WORDSIZE32_SIZE_ULONG		0 | |
| 30 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| 31 | #endif | |
| \ No newline at end of file |
lib/libc/include/mips64-linux-gnuabi64/bits/struct_rwlock.h created+71| ... | ... | @@ -0,0 +1,71 @@ |
| 1 | /* MIPS internal rwlock struct definitions. | |
| 2 | Copyright (C) 2019-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _RWLOCK_INTERNAL_H | |
| 20 | #define _RWLOCK_INTERNAL_H | |
| 21 | ||
| 22 | struct __pthread_rwlock_arch_t | |
| 23 | { | |
| 24 | unsigned int __readers; | |
| 25 | unsigned int __writers; | |
| 26 | unsigned int __wrphase_futex; | |
| 27 | unsigned int __writers_futex; | |
| 28 | unsigned int __pad3; | |
| 29 | unsigned int __pad4; | |
| 30 | #if _MIPS_SIM == _ABI64 | |
| 31 | int __cur_writer; | |
| 32 | int __shared; | |
| 33 | unsigned long int __pad1; | |
| 34 | unsigned long int __pad2; | |
| 35 | /* FLAGS must stay at this position in the structure to maintain | |
| 36 | binary compatibility. */ | |
| 37 | unsigned int __flags; | |
| 38 | # else | |
| 39 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 40 | unsigned char __pad1; | |
| 41 | unsigned char __pad2; | |
| 42 | unsigned char __shared; | |
| 43 | /* FLAGS must stay at this position in the structure to maintain | |
| 44 | binary compatibility. */ | |
| 45 | unsigned char __flags; | |
| 46 | # else | |
| 47 | /* FLAGS must stay at this position in the structure to maintain | |
| 48 | binary compatibility. */ | |
| 49 | unsigned char __flags; | |
| 50 | unsigned char __shared; | |
| 51 | unsigned char __pad1; | |
| 52 | unsigned char __pad2; | |
| 53 | # endif | |
| 54 | int __cur_writer; | |
| 55 | #endif | |
| 56 | }; | |
| 57 | ||
| 58 | #if _MIPS_SIM == _ABI64 | |
| 59 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 60 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags | |
| 61 | #else | |
| 62 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 63 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 64 | 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0 | |
| 65 | # else | |
| 66 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 67 | 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0 | |
| 68 | # endif | |
| 69 | #endif | |
| 70 | ||
| 71 | #endif | |
| \ No newline at end of file |
lib/libc/include/mips64-linux-gnuabi64/bits/wordsize.h created+31| ... | ... | @@ -0,0 +1,31 @@ |
| 1 | /* Copyright (C) 2002-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library. If not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #include <sgidefs.h> | |
| 19 | ||
| 20 | #define __WORDSIZE			_MIPS_SZPTR | |
| 21 | ||
| 22 | #if _MIPS_SIM == _ABI64 | |
| 23 | # define __WORDSIZE_TIME64_COMPAT32	1 | |
| 24 | #else | |
| 25 | # define __WORDSIZE_TIME64_COMPAT32	0 | |
| 26 | #endif | |
| 27 | ||
| 28 | #if __WORDSIZE == 32 | |
| 29 | #define __WORDSIZE32_SIZE_ULONG		0 | |
| 30 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| 31 | #endif | |
| \ No newline at end of file |
lib/libc/include/mips64-linux-gnuabin32/bits/struct_rwlock.h created+71| ... | ... | @@ -0,0 +1,71 @@ |
| 1 | /* MIPS internal rwlock struct definitions. | |
| 2 | Copyright (C) 2019-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _RWLOCK_INTERNAL_H | |
| 20 | #define _RWLOCK_INTERNAL_H | |
| 21 | ||
| 22 | struct __pthread_rwlock_arch_t | |
| 23 | { | |
| 24 | unsigned int __readers; | |
| 25 | unsigned int __writers; | |
| 26 | unsigned int __wrphase_futex; | |
| 27 | unsigned int __writers_futex; | |
| 28 | unsigned int __pad3; | |
| 29 | unsigned int __pad4; | |
| 30 | #if _MIPS_SIM == _ABI64 | |
| 31 | int __cur_writer; | |
| 32 | int __shared; | |
| 33 | unsigned long int __pad1; | |
| 34 | unsigned long int __pad2; | |
| 35 | /* FLAGS must stay at this position in the structure to maintain | |
| 36 | binary compatibility. */ | |
| 37 | unsigned int __flags; | |
| 38 | # else | |
| 39 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 40 | unsigned char __pad1; | |
| 41 | unsigned char __pad2; | |
| 42 | unsigned char __shared; | |
| 43 | /* FLAGS must stay at this position in the structure to maintain | |
| 44 | binary compatibility. */ | |
| 45 | unsigned char __flags; | |
| 46 | # else | |
| 47 | /* FLAGS must stay at this position in the structure to maintain | |
| 48 | binary compatibility. */ | |
| 49 | unsigned char __flags; | |
| 50 | unsigned char __shared; | |
| 51 | unsigned char __pad1; | |
| 52 | unsigned char __pad2; | |
| 53 | # endif | |
| 54 | int __cur_writer; | |
| 55 | #endif | |
| 56 | }; | |
| 57 | ||
| 58 | #if _MIPS_SIM == _ABI64 | |
| 59 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 60 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags | |
| 61 | #else | |
| 62 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 63 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 64 | 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0 | |
| 65 | # else | |
| 66 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 67 | 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0 | |
| 68 | # endif | |
| 69 | #endif | |
| 70 | ||
| 71 | #endif | |
| \ No newline at end of file |
lib/libc/include/mips64-linux-gnuabin32/bits/wordsize.h created+31| ... | ... | @@ -0,0 +1,31 @@ |
| 1 | /* Copyright (C) 2002-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library. If not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #include <sgidefs.h> | |
| 19 | ||
| 20 | #define __WORDSIZE			_MIPS_SZPTR | |
| 21 | ||
| 22 | #if _MIPS_SIM == _ABI64 | |
| 23 | # define __WORDSIZE_TIME64_COMPAT32	1 | |
| 24 | #else | |
| 25 | # define __WORDSIZE_TIME64_COMPAT32	0 | |
| 26 | #endif | |
| 27 | ||
| 28 | #if __WORDSIZE == 32 | |
| 29 | #define __WORDSIZE32_SIZE_ULONG		0 | |
| 30 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| 31 | #endif | |
| \ No newline at end of file |
lib/libc/include/mips64el-linux-gnuabi64/bits/struct_rwlock.h created+71| ... | ... | @@ -0,0 +1,71 @@ |
| 1 | /* MIPS internal rwlock struct definitions. | |
| 2 | Copyright (C) 2019-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _RWLOCK_INTERNAL_H | |
| 20 | #define _RWLOCK_INTERNAL_H | |
| 21 | ||
| 22 | struct __pthread_rwlock_arch_t | |
| 23 | { | |
| 24 | unsigned int __readers; | |
| 25 | unsigned int __writers; | |
| 26 | unsigned int __wrphase_futex; | |
| 27 | unsigned int __writers_futex; | |
| 28 | unsigned int __pad3; | |
| 29 | unsigned int __pad4; | |
| 30 | #if _MIPS_SIM == _ABI64 | |
| 31 | int __cur_writer; | |
| 32 | int __shared; | |
| 33 | unsigned long int __pad1; | |
| 34 | unsigned long int __pad2; | |
| 35 | /* FLAGS must stay at this position in the structure to maintain | |
| 36 | binary compatibility. */ | |
| 37 | unsigned int __flags; | |
| 38 | # else | |
| 39 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 40 | unsigned char __pad1; | |
| 41 | unsigned char __pad2; | |
| 42 | unsigned char __shared; | |
| 43 | /* FLAGS must stay at this position in the structure to maintain | |
| 44 | binary compatibility. */ | |
| 45 | unsigned char __flags; | |
| 46 | # else | |
| 47 | /* FLAGS must stay at this position in the structure to maintain | |
| 48 | binary compatibility. */ | |
| 49 | unsigned char __flags; | |
| 50 | unsigned char __shared; | |
| 51 | unsigned char __pad1; | |
| 52 | unsigned char __pad2; | |
| 53 | # endif | |
| 54 | int __cur_writer; | |
| 55 | #endif | |
| 56 | }; | |
| 57 | ||
| 58 | #if _MIPS_SIM == _ABI64 | |
| 59 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 60 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags | |
| 61 | #else | |
| 62 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 63 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 64 | 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0 | |
| 65 | # else | |
| 66 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 67 | 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0 | |
| 68 | # endif | |
| 69 | #endif | |
| 70 | ||
| 71 | #endif | |
| \ No newline at end of file |
lib/libc/include/mips64el-linux-gnuabi64/bits/wordsize.h created+31| ... | ... | @@ -0,0 +1,31 @@ |
| 1 | /* Copyright (C) 2002-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library. If not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #include <sgidefs.h> | |
| 19 | ||
| 20 | #define __WORDSIZE			_MIPS_SZPTR | |
| 21 | ||
| 22 | #if _MIPS_SIM == _ABI64 | |
| 23 | # define __WORDSIZE_TIME64_COMPAT32	1 | |
| 24 | #else | |
| 25 | # define __WORDSIZE_TIME64_COMPAT32	0 | |
| 26 | #endif | |
| 27 | ||
| 28 | #if __WORDSIZE == 32 | |
| 29 | #define __WORDSIZE32_SIZE_ULONG		0 | |
| 30 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| 31 | #endif | |
| \ No newline at end of file |
lib/libc/include/mips64el-linux-gnuabin32/bits/struct_rwlock.h created+71| ... | ... | @@ -0,0 +1,71 @@ |
| 1 | /* MIPS internal rwlock struct definitions. | |
| 2 | Copyright (C) 2019-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _RWLOCK_INTERNAL_H | |
| 20 | #define _RWLOCK_INTERNAL_H | |
| 21 | ||
| 22 | struct __pthread_rwlock_arch_t | |
| 23 | { | |
| 24 | unsigned int __readers; | |
| 25 | unsigned int __writers; | |
| 26 | unsigned int __wrphase_futex; | |
| 27 | unsigned int __writers_futex; | |
| 28 | unsigned int __pad3; | |
| 29 | unsigned int __pad4; | |
| 30 | #if _MIPS_SIM == _ABI64 | |
| 31 | int __cur_writer; | |
| 32 | int __shared; | |
| 33 | unsigned long int __pad1; | |
| 34 | unsigned long int __pad2; | |
| 35 | /* FLAGS must stay at this position in the structure to maintain | |
| 36 | binary compatibility. */ | |
| 37 | unsigned int __flags; | |
| 38 | # else | |
| 39 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 40 | unsigned char __pad1; | |
| 41 | unsigned char __pad2; | |
| 42 | unsigned char __shared; | |
| 43 | /* FLAGS must stay at this position in the structure to maintain | |
| 44 | binary compatibility. */ | |
| 45 | unsigned char __flags; | |
| 46 | # else | |
| 47 | /* FLAGS must stay at this position in the structure to maintain | |
| 48 | binary compatibility. */ | |
| 49 | unsigned char __flags; | |
| 50 | unsigned char __shared; | |
| 51 | unsigned char __pad1; | |
| 52 | unsigned char __pad2; | |
| 53 | # endif | |
| 54 | int __cur_writer; | |
| 55 | #endif | |
| 56 | }; | |
| 57 | ||
| 58 | #if _MIPS_SIM == _ABI64 | |
| 59 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 60 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags | |
| 61 | #else | |
| 62 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 63 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 64 | 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0 | |
| 65 | # else | |
| 66 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 67 | 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0 | |
| 68 | # endif | |
| 69 | #endif | |
| 70 | ||
| 71 | #endif | |
| \ No newline at end of file |
lib/libc/include/mips64el-linux-gnuabin32/bits/wordsize.h created+31| ... | ... | @@ -0,0 +1,31 @@ |
| 1 | /* Copyright (C) 2002-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library. If not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #include <sgidefs.h> | |
| 19 | ||
| 20 | #define __WORDSIZE			_MIPS_SZPTR | |
| 21 | ||
| 22 | #if _MIPS_SIM == _ABI64 | |
| 23 | # define __WORDSIZE_TIME64_COMPAT32	1 | |
| 24 | #else | |
| 25 | # define __WORDSIZE_TIME64_COMPAT32	0 | |
| 26 | #endif | |
| 27 | ||
| 28 | #if __WORDSIZE == 32 | |
| 29 | #define __WORDSIZE32_SIZE_ULONG		0 | |
| 30 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| 31 | #endif | |
| \ No newline at end of file |
lib/libc/include/mipsel-linux-gnu/bits/struct_rwlock.h created+71| ... | ... | @@ -0,0 +1,71 @@ |
| 1 | /* MIPS internal rwlock struct definitions. | |
| 2 | Copyright (C) 2019-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _RWLOCK_INTERNAL_H | |
| 20 | #define _RWLOCK_INTERNAL_H | |
| 21 | ||
| 22 | struct __pthread_rwlock_arch_t | |
| 23 | { | |
| 24 | unsigned int __readers; | |
| 25 | unsigned int __writers; | |
| 26 | unsigned int __wrphase_futex; | |
| 27 | unsigned int __writers_futex; | |
| 28 | unsigned int __pad3; | |
| 29 | unsigned int __pad4; | |
| 30 | #if _MIPS_SIM == _ABI64 | |
| 31 | int __cur_writer; | |
| 32 | int __shared; | |
| 33 | unsigned long int __pad1; | |
| 34 | unsigned long int __pad2; | |
| 35 | /* FLAGS must stay at this position in the structure to maintain | |
| 36 | binary compatibility. */ | |
| 37 | unsigned int __flags; | |
| 38 | # else | |
| 39 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 40 | unsigned char __pad1; | |
| 41 | unsigned char __pad2; | |
| 42 | unsigned char __shared; | |
| 43 | /* FLAGS must stay at this position in the structure to maintain | |
| 44 | binary compatibility. */ | |
| 45 | unsigned char __flags; | |
| 46 | # else | |
| 47 | /* FLAGS must stay at this position in the structure to maintain | |
| 48 | binary compatibility. */ | |
| 49 | unsigned char __flags; | |
| 50 | unsigned char __shared; | |
| 51 | unsigned char __pad1; | |
| 52 | unsigned char __pad2; | |
| 53 | # endif | |
| 54 | int __cur_writer; | |
| 55 | #endif | |
| 56 | }; | |
| 57 | ||
| 58 | #if _MIPS_SIM == _ABI64 | |
| 59 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 60 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags | |
| 61 | #else | |
| 62 | # if __BYTE_ORDER == __BIG_ENDIAN | |
| 63 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 64 | 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0 | |
| 65 | # else | |
| 66 | # define __PTHREAD_RWLOCK_INITIALIZER(__flags) \ | |
| 67 | 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0 | |
| 68 | # endif | |
| 69 | #endif | |
| 70 | ||
| 71 | #endif | |
| \ No newline at end of file |
lib/libc/include/mipsel-linux-gnu/bits/wordsize.h created+31| ... | ... | @@ -0,0 +1,31 @@ |
| 1 | /* Copyright (C) 2002-2021 Free Software Foundation, Inc. | |
| 2 | This file is part of the GNU C Library. | |
| 3 | ||
| 4 | The GNU C Library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | The GNU C Library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with the GNU C Library. If not, see | |
| 16 | <https://www.gnu.org/licenses/>. */ | |
| 17 | ||
| 18 | #include <sgidefs.h> | |
| 19 | ||
| 20 | #define __WORDSIZE			_MIPS_SZPTR | |
| 21 | ||
| 22 | #if _MIPS_SIM == _ABI64 | |
| 23 | # define __WORDSIZE_TIME64_COMPAT32	1 | |
| 24 | #else | |
| 25 | # define __WORDSIZE_TIME64_COMPAT32	0 | |
| 26 | #endif | |
| 27 | ||
| 28 | #if __WORDSIZE == 32 | |
| 29 | #define __WORDSIZE32_SIZE_ULONG		0 | |
| 30 | #define __WORDSIZE32_PTRDIFF_LONG	0 | |
| 31 | #endif | |
| \ No newline at end of file |
lib/libc/include/riscv64-linux-gnu/bits/floatn.h created+97| ... | ... | @@ -0,0 +1,97 @@ |
| 1 | /* Macros to control TS 18661-3 glibc features on ldbl-128 platforms. | |
| 2 | Copyright (C) 2017-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _BITS_FLOATN_H | |
| 20 | #define _BITS_FLOATN_H | |
| 21 | ||
| 22 | #include <features.h> | |
| 23 | #include <bits/long-double.h> | |
| 24 | ||
| 25 | /* Defined to 1 if the current compiler invocation provides a | |
| 26 | floating-point type with the IEEE 754 binary128 format, and this | |
| 27 | glibc includes corresponding *f128 interfaces for it. */ | |
| 28 | #ifndef __NO_LONG_DOUBLE_MATH | |
| 29 | # define __HAVE_FLOAT128 1 | |
| 30 | #else | |
| 31 | /* glibc does not support _Float128 for platforms where long double is | |
| 32 | normally binary128 when building with long double as binary64. | |
| 33 | GCC's default for supported scalar modes does not support it either | |
| 34 | in that case. */ | |
| 35 | # define __HAVE_FLOAT128 0 | |
| 36 | #endif | |
| 37 | ||
| 38 | /* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct | |
| 39 | from the default float, double and long double types in this glibc. */ | |
| 40 | #define __HAVE_DISTINCT_FLOAT128 0 | |
| 41 | ||
| 42 | /* Defined to 1 if the current compiler invocation provides a | |
| 43 | floating-point type with the right format for _Float64x, and this | |
| 44 | glibc includes corresponding *f64x interfaces for it. */ | |
| 45 | #define __HAVE_FLOAT64X __HAVE_FLOAT128 | |
| 46 | ||
| 47 | /* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format | |
| 48 | of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has | |
| 49 | the format of _Float128, which must be different from that of long | |
| 50 | double. */ | |
| 51 | #define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128 | |
| 52 | ||
| 53 | #ifndef __ASSEMBLER__ | |
| 54 | ||
| 55 | /* Defined to concatenate the literal suffix to be used with _Float128 | |
| 56 | types, if __HAVE_FLOAT128 is 1. */ | |
| 57 | # if __HAVE_FLOAT128 | |
| 58 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 59 | /* The literal suffix f128 exists only since GCC 7.0. */ | |
| 60 | # define __f128(x) x##l | |
| 61 | # else | |
| 62 | # define __f128(x) x##f128 | |
| 63 | # endif | |
| 64 | # endif | |
| 65 | ||
| 66 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */ | |
| 67 | # if __HAVE_FLOAT128 | |
| 68 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 69 | # define __CFLOAT128 _Complex long double | |
| 70 | # else | |
| 71 | # define __CFLOAT128 _Complex _Float128 | |
| 72 | # endif | |
| 73 | # endif | |
| 74 | ||
| 75 | /* The remaining of this file provides support for older compilers. */ | |
| 76 | # if __HAVE_FLOAT128 | |
| 77 | ||
| 78 | /* The type _Float128 exists only since GCC 7.0. */ | |
| 79 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 80 | typedef long double _Float128; | |
| 81 | # endif | |
| 82 | ||
| 83 | /* Various built-in functions do not exist before GCC 7.0. */ | |
| 84 | # if !__GNUC_PREREQ (7, 0) | |
| 85 | # define __builtin_huge_valf128() (__builtin_huge_vall ()) | |
| 86 | # define __builtin_inff128() (__builtin_infl ()) | |
| 87 | # define __builtin_nanf128(x) (__builtin_nanl (x)) | |
| 88 | # define __builtin_nansf128(x) (__builtin_nansl (x)) | |
| 89 | # endif | |
| 90 | ||
| 91 | # endif | |
| 92 | ||
| 93 | #endif /* !__ASSEMBLER__. */ | |
| 94 | ||
| 95 | #include <bits/floatn-common.h> | |
| 96 | ||
| 97 | #endif /* _BITS_FLOATN_H */ | |
| \ No newline at end of file |
lib/libc/include/s390x-linux-gnu/bits/floatn.h created+97| ... | ... | @@ -0,0 +1,97 @@ |
| 1 | /* Macros to control TS 18661-3 glibc features on ldbl-128 platforms. | |
| 2 | Copyright (C) 2017-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _BITS_FLOATN_H | |
| 20 | #define _BITS_FLOATN_H | |
| 21 | ||
| 22 | #include <features.h> | |
| 23 | #include <bits/long-double.h> | |
| 24 | ||
| 25 | /* Defined to 1 if the current compiler invocation provides a | |
| 26 | floating-point type with the IEEE 754 binary128 format, and this | |
| 27 | glibc includes corresponding *f128 interfaces for it. */ | |
| 28 | #ifndef __NO_LONG_DOUBLE_MATH | |
| 29 | # define __HAVE_FLOAT128 1 | |
| 30 | #else | |
| 31 | /* glibc does not support _Float128 for platforms where long double is | |
| 32 | normally binary128 when building with long double as binary64. | |
| 33 | GCC's default for supported scalar modes does not support it either | |
| 34 | in that case. */ | |
| 35 | # define __HAVE_FLOAT128 0 | |
| 36 | #endif | |
| 37 | ||
| 38 | /* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct | |
| 39 | from the default float, double and long double types in this glibc. */ | |
| 40 | #define __HAVE_DISTINCT_FLOAT128 0 | |
| 41 | ||
| 42 | /* Defined to 1 if the current compiler invocation provides a | |
| 43 | floating-point type with the right format for _Float64x, and this | |
| 44 | glibc includes corresponding *f64x interfaces for it. */ | |
| 45 | #define __HAVE_FLOAT64X __HAVE_FLOAT128 | |
| 46 | ||
| 47 | /* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format | |
| 48 | of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has | |
| 49 | the format of _Float128, which must be different from that of long | |
| 50 | double. */ | |
| 51 | #define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128 | |
| 52 | ||
| 53 | #ifndef __ASSEMBLER__ | |
| 54 | ||
| 55 | /* Defined to concatenate the literal suffix to be used with _Float128 | |
| 56 | types, if __HAVE_FLOAT128 is 1. */ | |
| 57 | # if __HAVE_FLOAT128 | |
| 58 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 59 | /* The literal suffix f128 exists only since GCC 7.0. */ | |
| 60 | # define __f128(x) x##l | |
| 61 | # else | |
| 62 | # define __f128(x) x##f128 | |
| 63 | # endif | |
| 64 | # endif | |
| 65 | ||
| 66 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */ | |
| 67 | # if __HAVE_FLOAT128 | |
| 68 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 69 | # define __CFLOAT128 _Complex long double | |
| 70 | # else | |
| 71 | # define __CFLOAT128 _Complex _Float128 | |
| 72 | # endif | |
| 73 | # endif | |
| 74 | ||
| 75 | /* The remaining of this file provides support for older compilers. */ | |
| 76 | # if __HAVE_FLOAT128 | |
| 77 | ||
| 78 | /* The type _Float128 exists only since GCC 7.0. */ | |
| 79 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 80 | typedef long double _Float128; | |
| 81 | # endif | |
| 82 | ||
| 83 | /* Various built-in functions do not exist before GCC 7.0. */ | |
| 84 | # if !__GNUC_PREREQ (7, 0) | |
| 85 | # define __builtin_huge_valf128() (__builtin_huge_vall ()) | |
| 86 | # define __builtin_inff128() (__builtin_infl ()) | |
| 87 | # define __builtin_nanf128(x) (__builtin_nanl (x)) | |
| 88 | # define __builtin_nansf128(x) (__builtin_nansl (x)) | |
| 89 | # endif | |
| 90 | ||
| 91 | # endif | |
| 92 | ||
| 93 | #endif /* !__ASSEMBLER__. */ | |
| 94 | ||
| 95 | #include <bits/floatn-common.h> | |
| 96 | ||
| 97 | #endif /* _BITS_FLOATN_H */ | |
| \ No newline at end of file |
lib/libc/include/sparc-linux-gnu/bits/floatn.h created+97| ... | ... | @@ -0,0 +1,97 @@ |
| 1 | /* Macros to control TS 18661-3 glibc features on ldbl-128 platforms. | |
| 2 | Copyright (C) 2017-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _BITS_FLOATN_H | |
| 20 | #define _BITS_FLOATN_H | |
| 21 | ||
| 22 | #include <features.h> | |
| 23 | #include <bits/long-double.h> | |
| 24 | ||
| 25 | /* Defined to 1 if the current compiler invocation provides a | |
| 26 | floating-point type with the IEEE 754 binary128 format, and this | |
| 27 | glibc includes corresponding *f128 interfaces for it. */ | |
| 28 | #ifndef __NO_LONG_DOUBLE_MATH | |
| 29 | # define __HAVE_FLOAT128 1 | |
| 30 | #else | |
| 31 | /* glibc does not support _Float128 for platforms where long double is | |
| 32 | normally binary128 when building with long double as binary64. | |
| 33 | GCC's default for supported scalar modes does not support it either | |
| 34 | in that case. */ | |
| 35 | # define __HAVE_FLOAT128 0 | |
| 36 | #endif | |
| 37 | ||
| 38 | /* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct | |
| 39 | from the default float, double and long double types in this glibc. */ | |
| 40 | #define __HAVE_DISTINCT_FLOAT128 0 | |
| 41 | ||
| 42 | /* Defined to 1 if the current compiler invocation provides a | |
| 43 | floating-point type with the right format for _Float64x, and this | |
| 44 | glibc includes corresponding *f64x interfaces for it. */ | |
| 45 | #define __HAVE_FLOAT64X __HAVE_FLOAT128 | |
| 46 | ||
| 47 | /* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format | |
| 48 | of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has | |
| 49 | the format of _Float128, which must be different from that of long | |
| 50 | double. */ | |
| 51 | #define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128 | |
| 52 | ||
| 53 | #ifndef __ASSEMBLER__ | |
| 54 | ||
| 55 | /* Defined to concatenate the literal suffix to be used with _Float128 | |
| 56 | types, if __HAVE_FLOAT128 is 1. */ | |
| 57 | # if __HAVE_FLOAT128 | |
| 58 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 59 | /* The literal suffix f128 exists only since GCC 7.0. */ | |
| 60 | # define __f128(x) x##l | |
| 61 | # else | |
| 62 | # define __f128(x) x##f128 | |
| 63 | # endif | |
| 64 | # endif | |
| 65 | ||
| 66 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */ | |
| 67 | # if __HAVE_FLOAT128 | |
| 68 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 69 | # define __CFLOAT128 _Complex long double | |
| 70 | # else | |
| 71 | # define __CFLOAT128 _Complex _Float128 | |
| 72 | # endif | |
| 73 | # endif | |
| 74 | ||
| 75 | /* The remaining of this file provides support for older compilers. */ | |
| 76 | # if __HAVE_FLOAT128 | |
| 77 | ||
| 78 | /* The type _Float128 exists only since GCC 7.0. */ | |
| 79 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 80 | typedef long double _Float128; | |
| 81 | # endif | |
| 82 | ||
| 83 | /* Various built-in functions do not exist before GCC 7.0. */ | |
| 84 | # if !__GNUC_PREREQ (7, 0) | |
| 85 | # define __builtin_huge_valf128() (__builtin_huge_vall ()) | |
| 86 | # define __builtin_inff128() (__builtin_infl ()) | |
| 87 | # define __builtin_nanf128(x) (__builtin_nanl (x)) | |
| 88 | # define __builtin_nansf128(x) (__builtin_nansl (x)) | |
| 89 | # endif | |
| 90 | ||
| 91 | # endif | |
| 92 | ||
| 93 | #endif /* !__ASSEMBLER__. */ | |
| 94 | ||
| 95 | #include <bits/floatn-common.h> | |
| 96 | ||
| 97 | #endif /* _BITS_FLOATN_H */ | |
| \ No newline at end of file |
lib/libc/include/sparcv9-linux-gnu/bits/floatn.h created+97| ... | ... | @@ -0,0 +1,97 @@ |
| 1 | /* Macros to control TS 18661-3 glibc features on ldbl-128 platforms. | |
| 2 | Copyright (C) 2017-2021 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <https://www.gnu.org/licenses/>. */ | |
| 18 | ||
| 19 | #ifndef _BITS_FLOATN_H | |
| 20 | #define _BITS_FLOATN_H | |
| 21 | ||
| 22 | #include <features.h> | |
| 23 | #include <bits/long-double.h> | |
| 24 | ||
| 25 | /* Defined to 1 if the current compiler invocation provides a | |
| 26 | floating-point type with the IEEE 754 binary128 format, and this | |
| 27 | glibc includes corresponding *f128 interfaces for it. */ | |
| 28 | #ifndef __NO_LONG_DOUBLE_MATH | |
| 29 | # define __HAVE_FLOAT128 1 | |
| 30 | #else | |
| 31 | /* glibc does not support _Float128 for platforms where long double is | |
| 32 | normally binary128 when building with long double as binary64. | |
| 33 | GCC's default for supported scalar modes does not support it either | |
| 34 | in that case. */ | |
| 35 | # define __HAVE_FLOAT128 0 | |
| 36 | #endif | |
| 37 | ||
| 38 | /* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct | |
| 39 | from the default float, double and long double types in this glibc. */ | |
| 40 | #define __HAVE_DISTINCT_FLOAT128 0 | |
| 41 | ||
| 42 | /* Defined to 1 if the current compiler invocation provides a | |
| 43 | floating-point type with the right format for _Float64x, and this | |
| 44 | glibc includes corresponding *f64x interfaces for it. */ | |
| 45 | #define __HAVE_FLOAT64X __HAVE_FLOAT128 | |
| 46 | ||
| 47 | /* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format | |
| 48 | of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has | |
| 49 | the format of _Float128, which must be different from that of long | |
| 50 | double. */ | |
| 51 | #define __HAVE_FLOAT64X_LONG_DOUBLE __HAVE_FLOAT128 | |
| 52 | ||
| 53 | #ifndef __ASSEMBLER__ | |
| 54 | ||
| 55 | /* Defined to concatenate the literal suffix to be used with _Float128 | |
| 56 | types, if __HAVE_FLOAT128 is 1. */ | |
| 57 | # if __HAVE_FLOAT128 | |
| 58 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 59 | /* The literal suffix f128 exists only since GCC 7.0. */ | |
| 60 | # define __f128(x) x##l | |
| 61 | # else | |
| 62 | # define __f128(x) x##f128 | |
| 63 | # endif | |
| 64 | # endif | |
| 65 | ||
| 66 | /* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. */ | |
| 67 | # if __HAVE_FLOAT128 | |
| 68 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 69 | # define __CFLOAT128 _Complex long double | |
| 70 | # else | |
| 71 | # define __CFLOAT128 _Complex _Float128 | |
| 72 | # endif | |
| 73 | # endif | |
| 74 | ||
| 75 | /* The remaining of this file provides support for older compilers. */ | |
| 76 | # if __HAVE_FLOAT128 | |
| 77 | ||
| 78 | /* The type _Float128 exists only since GCC 7.0. */ | |
| 79 | # if !__GNUC_PREREQ (7, 0) || defined __cplusplus | |
| 80 | typedef long double _Float128; | |
| 81 | # endif | |
| 82 | ||
| 83 | /* Various built-in functions do not exist before GCC 7.0. */ | |
| 84 | # if !__GNUC_PREREQ (7, 0) | |
| 85 | # define __builtin_huge_valf128() (__builtin_huge_vall ()) | |
| 86 | # define __builtin_inff128() (__builtin_infl ()) | |
| 87 | # define __builtin_nanf128(x) (__builtin_nanl (x)) | |
| 88 | # define __builtin_nansf128(x) (__builtin_nansl (x)) | |
| 89 | # endif | |
| 90 | ||
| 91 | # endif | |
| 92 | ||
| 93 | #endif /* !__ASSEMBLER__. */ | |
| 94 | ||
| 95 | #include <bits/floatn-common.h> | |
| 96 | ||
| 97 | #endif /* _BITS_FLOATN_H */ | |
| \ No newline at end of file |