| author | |
| committer | |
| log | 53d7a7b3c023f0c26ae7ecc070645096d9adb3dd |
| tree | caab5da344027e147babd43890f54fce5de5a4d0 |
| parent | e27b4647d86e3bdaf2c4fd95db2e7d359afd7fc4 |
| parent | a5bc9cbb15f415f3c8bded3b8026c7cf326b7c12 |
| signature |
Some initial work on x32 and n32 ABI support159 files changed, 6787 insertions(+), 5870 deletions(-)
lib/compiler/aro/aro/target.zig+15-4| ... | @@ -437,9 +437,18 @@ pub fn ldEmulationOption(target: std.Target, arm_endianness: ?std.builtin.Endian | ... | @@ -437,9 +437,18 @@ pub fn ldEmulationOption(target: std.Target, arm_endianness: ?std.builtin.Endian |
| 437 | .loongarch64 => "elf64loongarch", | 437 | .loongarch64 => "elf64loongarch", |
| 438 | .mips => "elf32btsmip", | 438 | .mips => "elf32btsmip", |
| 439 | .mipsel => "elf32ltsmip", | 439 | .mipsel => "elf32ltsmip", |
| 440 | .mips64 => if (target.abi == .gnuabin32) "elf32btsmipn32" else "elf64btsmip", | 440 | .mips64 => switch (target.abi) { |
| 441 | .mips64el => if (target.abi == .gnuabin32) "elf32ltsmipn32" else "elf64ltsmip", | 441 | .gnuabin32, .muslabin32 => "elf32btsmipn32", |
| 442 | .x86_64 => if (target.abi == .gnux32 or target.abi == .muslx32) "elf32_x86_64" else "elf_x86_64", | 442 | else => "elf64btsmip", |
| 443 | }, | ||
| 444 | .mips64el => switch (target.abi) { | ||
| 445 | .gnuabin32, .muslabin32 => "elf32ltsmipn32", | ||
| 446 | else => "elf64ltsmip", | ||
| 447 | }, | ||
| 448 | .x86_64 => switch (target.abi) { | ||
| 449 | .gnux32, .muslx32 => "elf32_x86_64", | ||
| 450 | else => "elf_x86_64", | ||
| 451 | }, | ||
| 443 | .ve => "elf64ve", | 452 | .ve => "elf64ve", |
| 444 | .csky => "cskyelf_linux", | 453 | .csky => "cskyelf_linux", |
| 445 | else => null, | 454 | else => null, |
| ... | @@ -684,13 +693,15 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 { | ... | @@ -684,13 +693,15 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 { |
| 684 | .gnuf32 => "gnuf32", | 693 | .gnuf32 => "gnuf32", |
| 685 | .gnusf => "gnusf", | 694 | .gnusf => "gnusf", |
| 686 | .gnux32 => "gnux32", | 695 | .gnux32 => "gnux32", |
| 687 | .gnuilp32 => "gnuilp32", | 696 | .gnuilp32 => "gnu_ilp32", |
| 688 | .code16 => "code16", | 697 | .code16 => "code16", |
| 689 | .eabi => "eabi", | 698 | .eabi => "eabi", |
| 690 | .eabihf => "eabihf", | 699 | .eabihf => "eabihf", |
| 691 | .android => "android", | 700 | .android => "android", |
| 692 | .androideabi => "androideabi", | 701 | .androideabi => "androideabi", |
| 693 | .musl => "musl", | 702 | .musl => "musl", |
| 703 | .muslabin32 => "muslabin32", | ||
| 704 | .muslabi64 => "muslabi64", | ||
| 694 | .musleabi => "musleabi", | 705 | .musleabi => "musleabi", |
| 695 | .musleabihf => "musleabihf", | 706 | .musleabihf => "musleabihf", |
| 696 | .muslx32 => "muslx32", | 707 | .muslx32 => "muslx32", |
lib/libc/glibc/sysdeps/x86_64/x32/sysdep.h+1| ... | @@ -17,6 +17,7 @@ | ... | @@ -17,6 +17,7 @@ |
| 17 | <https://www.gnu.org/licenses/>. */ | 17 | <https://www.gnu.org/licenses/>. */ |
| 18 | 18 | ||
| 19 | #include <sysdeps/x86_64/sysdep.h> | 19 | #include <sysdeps/x86_64/sysdep.h> |
| 20 | #undef LP_SIZE | ||
| 20 | #ifdef __ASSEMBLER__ | 21 | #ifdef __ASSEMBLER__ |
| 21 | # define LP_SIZE 4 | 22 | # define LP_SIZE 4 |
| 22 | #else | 23 | #else |
lib/libc/include/aarch64-linux-musl/bits/stdint.h created+20| ... | @@ -0,0 +1,20 @@ | ||
| 1 | typedef int32_t int_fast16_t; | ||
| 2 | typedef int32_t int_fast32_t; | ||
| 3 | typedef uint32_t uint_fast16_t; | ||
| 4 | typedef uint32_t uint_fast32_t; | ||
| 5 | |||
| 6 | #define INT_FAST16_MIN INT32_MIN | ||
| 7 | #define INT_FAST32_MIN INT32_MIN | ||
| 8 | |||
| 9 | #define INT_FAST16_MAX INT32_MAX | ||
| 10 | #define INT_FAST32_MAX INT32_MAX | ||
| 11 | |||
| 12 | #define UINT_FAST16_MAX UINT32_MAX | ||
| 13 | #define UINT_FAST32_MAX UINT32_MAX | ||
| 14 | |||
| 15 | #define INTPTR_MIN INT64_MIN | ||
| 16 | #define INTPTR_MAX INT64_MAX | ||
| 17 | #define UINTPTR_MAX UINT64_MAX | ||
| 18 | #define PTRDIFF_MIN INT64_MIN | ||
| 19 | #define PTRDIFF_MAX INT64_MAX | ||
| 20 | #define SIZE_MAX UINT64_MAX | ||
| \ No newline at end of file | |||
lib/libc/include/generic-musl/bits/alltypes.h created+408| ... | @@ -0,0 +1,408 @@ | ||
| 1 | #define _REDIR_TIME64 1 | ||
| 2 | #define _Addr int | ||
| 3 | #define _Int64 long long | ||
| 4 | #define _Reg int | ||
| 5 | |||
| 6 | #if _MIPSEL || __MIPSEL || __MIPSEL__ | ||
| 7 | #define __BYTE_ORDER 1234 | ||
| 8 | #else | ||
| 9 | #define __BYTE_ORDER 4321 | ||
| 10 | #endif | ||
| 11 | |||
| 12 | #define __LONG_MAX 0x7fffffffL | ||
| 13 | |||
| 14 | #ifndef __cplusplus | ||
| 15 | #if defined(__NEED_wchar_t) && !defined(__DEFINED_wchar_t) | ||
| 16 | typedef int wchar_t; | ||
| 17 | #define __DEFINED_wchar_t | ||
| 18 | #endif | ||
| 19 | |||
| 20 | #endif | ||
| 21 | |||
| 22 | #if defined(__NEED_float_t) && !defined(__DEFINED_float_t) | ||
| 23 | typedef float float_t; | ||
| 24 | #define __DEFINED_float_t | ||
| 25 | #endif | ||
| 26 | |||
| 27 | #if defined(__NEED_double_t) && !defined(__DEFINED_double_t) | ||
| 28 | typedef double double_t; | ||
| 29 | #define __DEFINED_double_t | ||
| 30 | #endif | ||
| 31 | |||
| 32 | |||
| 33 | #if defined(__NEED_max_align_t) && !defined(__DEFINED_max_align_t) | ||
| 34 | typedef struct { long long __ll; long double __ld; } max_align_t; | ||
| 35 | #define __DEFINED_max_align_t | ||
| 36 | #endif | ||
| 37 | |||
| 38 | #define __LITTLE_ENDIAN 1234 | ||
| 39 | #define __BIG_ENDIAN 4321 | ||
| 40 | #define __USE_TIME_BITS64 1 | ||
| 41 | |||
| 42 | #if defined(__NEED_size_t) && !defined(__DEFINED_size_t) | ||
| 43 | typedef unsigned _Addr size_t; | ||
| 44 | #define __DEFINED_size_t | ||
| 45 | #endif | ||
| 46 | |||
| 47 | #if defined(__NEED_uintptr_t) && !defined(__DEFINED_uintptr_t) | ||
| 48 | typedef unsigned _Addr uintptr_t; | ||
| 49 | #define __DEFINED_uintptr_t | ||
| 50 | #endif | ||
| 51 | |||
| 52 | #if defined(__NEED_ptrdiff_t) && !defined(__DEFINED_ptrdiff_t) | ||
| 53 | typedef _Addr ptrdiff_t; | ||
| 54 | #define __DEFINED_ptrdiff_t | ||
| 55 | #endif | ||
| 56 | |||
| 57 | #if defined(__NEED_ssize_t) && !defined(__DEFINED_ssize_t) | ||
| 58 | typedef _Addr ssize_t; | ||
| 59 | #define __DEFINED_ssize_t | ||
| 60 | #endif | ||
| 61 | |||
| 62 | #if defined(__NEED_intptr_t) && !defined(__DEFINED_intptr_t) | ||
| 63 | typedef _Addr intptr_t; | ||
| 64 | #define __DEFINED_intptr_t | ||
| 65 | #endif | ||
| 66 | |||
| 67 | #if defined(__NEED_regoff_t) && !defined(__DEFINED_regoff_t) | ||
| 68 | typedef _Addr regoff_t; | ||
| 69 | #define __DEFINED_regoff_t | ||
| 70 | #endif | ||
| 71 | |||
| 72 | #if defined(__NEED_register_t) && !defined(__DEFINED_register_t) | ||
| 73 | typedef _Reg register_t; | ||
| 74 | #define __DEFINED_register_t | ||
| 75 | #endif | ||
| 76 | |||
| 77 | #if defined(__NEED_time_t) && !defined(__DEFINED_time_t) | ||
| 78 | typedef _Int64 time_t; | ||
| 79 | #define __DEFINED_time_t | ||
| 80 | #endif | ||
| 81 | |||
| 82 | #if defined(__NEED_suseconds_t) && !defined(__DEFINED_suseconds_t) | ||
| 83 | typedef _Int64 suseconds_t; | ||
| 84 | #define __DEFINED_suseconds_t | ||
| 85 | #endif | ||
| 86 | |||
| 87 | |||
| 88 | #if defined(__NEED_int8_t) && !defined(__DEFINED_int8_t) | ||
| 89 | typedef signed char int8_t; | ||
| 90 | #define __DEFINED_int8_t | ||
| 91 | #endif | ||
| 92 | |||
| 93 | #if defined(__NEED_int16_t) && !defined(__DEFINED_int16_t) | ||
| 94 | typedef signed short int16_t; | ||
| 95 | #define __DEFINED_int16_t | ||
| 96 | #endif | ||
| 97 | |||
| 98 | #if defined(__NEED_int32_t) && !defined(__DEFINED_int32_t) | ||
| 99 | typedef signed int int32_t; | ||
| 100 | #define __DEFINED_int32_t | ||
| 101 | #endif | ||
| 102 | |||
| 103 | #if defined(__NEED_int64_t) && !defined(__DEFINED_int64_t) | ||
| 104 | typedef signed _Int64 int64_t; | ||
| 105 | #define __DEFINED_int64_t | ||
| 106 | #endif | ||
| 107 | |||
| 108 | #if defined(__NEED_intmax_t) && !defined(__DEFINED_intmax_t) | ||
| 109 | typedef signed _Int64 intmax_t; | ||
| 110 | #define __DEFINED_intmax_t | ||
| 111 | #endif | ||
| 112 | |||
| 113 | #if defined(__NEED_uint8_t) && !defined(__DEFINED_uint8_t) | ||
| 114 | typedef unsigned char uint8_t; | ||
| 115 | #define __DEFINED_uint8_t | ||
| 116 | #endif | ||
| 117 | |||
| 118 | #if defined(__NEED_uint16_t) && !defined(__DEFINED_uint16_t) | ||
| 119 | typedef unsigned short uint16_t; | ||
| 120 | #define __DEFINED_uint16_t | ||
| 121 | #endif | ||
| 122 | |||
| 123 | #if defined(__NEED_uint32_t) && !defined(__DEFINED_uint32_t) | ||
| 124 | typedef unsigned int uint32_t; | ||
| 125 | #define __DEFINED_uint32_t | ||
| 126 | #endif | ||
| 127 | |||
| 128 | #if defined(__NEED_uint64_t) && !defined(__DEFINED_uint64_t) | ||
| 129 | typedef unsigned _Int64 uint64_t; | ||
| 130 | #define __DEFINED_uint64_t | ||
| 131 | #endif | ||
| 132 | |||
| 133 | #if defined(__NEED_u_int64_t) && !defined(__DEFINED_u_int64_t) | ||
| 134 | typedef unsigned _Int64 u_int64_t; | ||
| 135 | #define __DEFINED_u_int64_t | ||
| 136 | #endif | ||
| 137 | |||
| 138 | #if defined(__NEED_uintmax_t) && !defined(__DEFINED_uintmax_t) | ||
| 139 | typedef unsigned _Int64 uintmax_t; | ||
| 140 | #define __DEFINED_uintmax_t | ||
| 141 | #endif | ||
| 142 | |||
| 143 | |||
| 144 | #if defined(__NEED_mode_t) && !defined(__DEFINED_mode_t) | ||
| 145 | typedef unsigned mode_t; | ||
| 146 | #define __DEFINED_mode_t | ||
| 147 | #endif | ||
| 148 | |||
| 149 | #if defined(__NEED_nlink_t) && !defined(__DEFINED_nlink_t) | ||
| 150 | typedef unsigned _Reg nlink_t; | ||
| 151 | #define __DEFINED_nlink_t | ||
| 152 | #endif | ||
| 153 | |||
| 154 | #if defined(__NEED_off_t) && !defined(__DEFINED_off_t) | ||
| 155 | typedef _Int64 off_t; | ||
| 156 | #define __DEFINED_off_t | ||
| 157 | #endif | ||
| 158 | |||
| 159 | #if defined(__NEED_ino_t) && !defined(__DEFINED_ino_t) | ||
| 160 | typedef unsigned _Int64 ino_t; | ||
| 161 | #define __DEFINED_ino_t | ||
| 162 | #endif | ||
| 163 | |||
| 164 | #if defined(__NEED_dev_t) && !defined(__DEFINED_dev_t) | ||
| 165 | typedef unsigned _Int64 dev_t; | ||
| 166 | #define __DEFINED_dev_t | ||
| 167 | #endif | ||
| 168 | |||
| 169 | #if defined(__NEED_blksize_t) && !defined(__DEFINED_blksize_t) | ||
| 170 | typedef long blksize_t; | ||
| 171 | #define __DEFINED_blksize_t | ||
| 172 | #endif | ||
| 173 | |||
| 174 | #if defined(__NEED_blkcnt_t) && !defined(__DEFINED_blkcnt_t) | ||
| 175 | typedef _Int64 blkcnt_t; | ||
| 176 | #define __DEFINED_blkcnt_t | ||
| 177 | #endif | ||
| 178 | |||
| 179 | #if defined(__NEED_fsblkcnt_t) && !defined(__DEFINED_fsblkcnt_t) | ||
| 180 | typedef unsigned _Int64 fsblkcnt_t; | ||
| 181 | #define __DEFINED_fsblkcnt_t | ||
| 182 | #endif | ||
| 183 | |||
| 184 | #if defined(__NEED_fsfilcnt_t) && !defined(__DEFINED_fsfilcnt_t) | ||
| 185 | typedef unsigned _Int64 fsfilcnt_t; | ||
| 186 | #define __DEFINED_fsfilcnt_t | ||
| 187 | #endif | ||
| 188 | |||
| 189 | |||
| 190 | #if defined(__NEED_wint_t) && !defined(__DEFINED_wint_t) | ||
| 191 | typedef unsigned wint_t; | ||
| 192 | #define __DEFINED_wint_t | ||
| 193 | #endif | ||
| 194 | |||
| 195 | #if defined(__NEED_wctype_t) && !defined(__DEFINED_wctype_t) | ||
| 196 | typedef unsigned long wctype_t; | ||
| 197 | #define __DEFINED_wctype_t | ||
| 198 | #endif | ||
| 199 | |||
| 200 | |||
| 201 | #if defined(__NEED_timer_t) && !defined(__DEFINED_timer_t) | ||
| 202 | typedef void * timer_t; | ||
| 203 | #define __DEFINED_timer_t | ||
| 204 | #endif | ||
| 205 | |||
| 206 | #if defined(__NEED_clockid_t) && !defined(__DEFINED_clockid_t) | ||
| 207 | typedef int clockid_t; | ||
| 208 | #define __DEFINED_clockid_t | ||
| 209 | #endif | ||
| 210 | |||
| 211 | #if defined(__NEED_clock_t) && !defined(__DEFINED_clock_t) | ||
| 212 | typedef long clock_t; | ||
| 213 | #define __DEFINED_clock_t | ||
| 214 | #endif | ||
| 215 | |||
| 216 | #if defined(__NEED_struct_timeval) && !defined(__DEFINED_struct_timeval) | ||
| 217 | struct timeval { time_t tv_sec; suseconds_t tv_usec; }; | ||
| 218 | #define __DEFINED_struct_timeval | ||
| 219 | #endif | ||
| 220 | |||
| 221 | #if defined(__NEED_struct_timespec) && !defined(__DEFINED_struct_timespec) | ||
| 222 | struct timespec { time_t tv_sec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER==4321); long tv_nsec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER!=4321); }; | ||
| 223 | #define __DEFINED_struct_timespec | ||
| 224 | #endif | ||
| 225 | |||
| 226 | |||
| 227 | #if defined(__NEED_pid_t) && !defined(__DEFINED_pid_t) | ||
| 228 | typedef int pid_t; | ||
| 229 | #define __DEFINED_pid_t | ||
| 230 | #endif | ||
| 231 | |||
| 232 | #if defined(__NEED_id_t) && !defined(__DEFINED_id_t) | ||
| 233 | typedef unsigned id_t; | ||
| 234 | #define __DEFINED_id_t | ||
| 235 | #endif | ||
| 236 | |||
| 237 | #if defined(__NEED_uid_t) && !defined(__DEFINED_uid_t) | ||
| 238 | typedef unsigned uid_t; | ||
| 239 | #define __DEFINED_uid_t | ||
| 240 | #endif | ||
| 241 | |||
| 242 | #if defined(__NEED_gid_t) && !defined(__DEFINED_gid_t) | ||
| 243 | typedef unsigned gid_t; | ||
| 244 | #define __DEFINED_gid_t | ||
| 245 | #endif | ||
| 246 | |||
| 247 | #if defined(__NEED_key_t) && !defined(__DEFINED_key_t) | ||
| 248 | typedef int key_t; | ||
| 249 | #define __DEFINED_key_t | ||
| 250 | #endif | ||
| 251 | |||
| 252 | #if defined(__NEED_useconds_t) && !defined(__DEFINED_useconds_t) | ||
| 253 | typedef unsigned useconds_t; | ||
| 254 | #define __DEFINED_useconds_t | ||
| 255 | #endif | ||
| 256 | |||
| 257 | |||
| 258 | #ifdef __cplusplus | ||
| 259 | #if defined(__NEED_pthread_t) && !defined(__DEFINED_pthread_t) | ||
| 260 | typedef unsigned long pthread_t; | ||
| 261 | #define __DEFINED_pthread_t | ||
| 262 | #endif | ||
| 263 | |||
| 264 | #else | ||
| 265 | #if defined(__NEED_pthread_t) && !defined(__DEFINED_pthread_t) | ||
| 266 | typedef struct __pthread * pthread_t; | ||
| 267 | #define __DEFINED_pthread_t | ||
| 268 | #endif | ||
| 269 | |||
| 270 | #endif | ||
| 271 | #if defined(__NEED_pthread_once_t) && !defined(__DEFINED_pthread_once_t) | ||
| 272 | typedef int pthread_once_t; | ||
| 273 | #define __DEFINED_pthread_once_t | ||
| 274 | #endif | ||
| 275 | |||
| 276 | #if defined(__NEED_pthread_key_t) && !defined(__DEFINED_pthread_key_t) | ||
| 277 | typedef unsigned pthread_key_t; | ||
| 278 | #define __DEFINED_pthread_key_t | ||
| 279 | #endif | ||
| 280 | |||
| 281 | #if defined(__NEED_pthread_spinlock_t) && !defined(__DEFINED_pthread_spinlock_t) | ||
| 282 | typedef int pthread_spinlock_t; | ||
| 283 | #define __DEFINED_pthread_spinlock_t | ||
| 284 | #endif | ||
| 285 | |||
| 286 | #if defined(__NEED_pthread_mutexattr_t) && !defined(__DEFINED_pthread_mutexattr_t) | ||
| 287 | typedef struct { unsigned __attr; } pthread_mutexattr_t; | ||
| 288 | #define __DEFINED_pthread_mutexattr_t | ||
| 289 | #endif | ||
| 290 | |||
| 291 | #if defined(__NEED_pthread_condattr_t) && !defined(__DEFINED_pthread_condattr_t) | ||
| 292 | typedef struct { unsigned __attr; } pthread_condattr_t; | ||
| 293 | #define __DEFINED_pthread_condattr_t | ||
| 294 | #endif | ||
| 295 | |||
| 296 | #if defined(__NEED_pthread_barrierattr_t) && !defined(__DEFINED_pthread_barrierattr_t) | ||
| 297 | typedef struct { unsigned __attr; } pthread_barrierattr_t; | ||
| 298 | #define __DEFINED_pthread_barrierattr_t | ||
| 299 | #endif | ||
| 300 | |||
| 301 | #if defined(__NEED_pthread_rwlockattr_t) && !defined(__DEFINED_pthread_rwlockattr_t) | ||
| 302 | typedef struct { unsigned __attr[2]; } pthread_rwlockattr_t; | ||
| 303 | #define __DEFINED_pthread_rwlockattr_t | ||
| 304 | #endif | ||
| 305 | |||
| 306 | |||
| 307 | #if defined(__NEED_struct__IO_FILE) && !defined(__DEFINED_struct__IO_FILE) | ||
| 308 | struct _IO_FILE { char __x; }; | ||
| 309 | #define __DEFINED_struct__IO_FILE | ||
| 310 | #endif | ||
| 311 | |||
| 312 | #if defined(__NEED_FILE) && !defined(__DEFINED_FILE) | ||
| 313 | typedef struct _IO_FILE FILE; | ||
| 314 | #define __DEFINED_FILE | ||
| 315 | #endif | ||
| 316 | |||
| 317 | |||
| 318 | #if defined(__NEED_va_list) && !defined(__DEFINED_va_list) | ||
| 319 | typedef __builtin_va_list va_list; | ||
| 320 | #define __DEFINED_va_list | ||
| 321 | #endif | ||
| 322 | |||
| 323 | #if defined(__NEED___isoc_va_list) && !defined(__DEFINED___isoc_va_list) | ||
| 324 | typedef __builtin_va_list __isoc_va_list; | ||
| 325 | #define __DEFINED___isoc_va_list | ||
| 326 | #endif | ||
| 327 | |||
| 328 | |||
| 329 | #if defined(__NEED_mbstate_t) && !defined(__DEFINED_mbstate_t) | ||
| 330 | typedef struct __mbstate_t { unsigned __opaque1, __opaque2; } mbstate_t; | ||
| 331 | #define __DEFINED_mbstate_t | ||
| 332 | #endif | ||
| 333 | |||
| 334 | |||
| 335 | #if defined(__NEED_locale_t) && !defined(__DEFINED_locale_t) | ||
| 336 | typedef struct __locale_struct * locale_t; | ||
| 337 | #define __DEFINED_locale_t | ||
| 338 | #endif | ||
| 339 | |||
| 340 | |||
| 341 | #if defined(__NEED_sigset_t) && !defined(__DEFINED_sigset_t) | ||
| 342 | typedef struct __sigset_t { unsigned long __bits[128/sizeof(long)]; } sigset_t; | ||
| 343 | #define __DEFINED_sigset_t | ||
| 344 | #endif | ||
| 345 | |||
| 346 | |||
| 347 | #if defined(__NEED_struct_iovec) && !defined(__DEFINED_struct_iovec) | ||
| 348 | struct iovec { void *iov_base; size_t iov_len; }; | ||
| 349 | #define __DEFINED_struct_iovec | ||
| 350 | #endif | ||
| 351 | |||
| 352 | |||
| 353 | #if defined(__NEED_struct_winsize) && !defined(__DEFINED_struct_winsize) | ||
| 354 | struct winsize { unsigned short ws_row, ws_col, ws_xpixel, ws_ypixel; }; | ||
| 355 | #define __DEFINED_struct_winsize | ||
| 356 | #endif | ||
| 357 | |||
| 358 | |||
| 359 | #if defined(__NEED_socklen_t) && !defined(__DEFINED_socklen_t) | ||
| 360 | typedef unsigned socklen_t; | ||
| 361 | #define __DEFINED_socklen_t | ||
| 362 | #endif | ||
| 363 | |||
| 364 | #if defined(__NEED_sa_family_t) && !defined(__DEFINED_sa_family_t) | ||
| 365 | typedef unsigned short sa_family_t; | ||
| 366 | #define __DEFINED_sa_family_t | ||
| 367 | #endif | ||
| 368 | |||
| 369 | |||
| 370 | #if defined(__NEED_pthread_attr_t) && !defined(__DEFINED_pthread_attr_t) | ||
| 371 | typedef struct { union { int __i[sizeof(long)==8?14:9]; volatile int __vi[sizeof(long)==8?14:9]; unsigned long __s[sizeof(long)==8?7:9]; } __u; } pthread_attr_t; | ||
| 372 | #define __DEFINED_pthread_attr_t | ||
| 373 | #endif | ||
| 374 | |||
| 375 | #if defined(__NEED_pthread_mutex_t) && !defined(__DEFINED_pthread_mutex_t) | ||
| 376 | typedef struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatile void *volatile __p[sizeof(long)==8?5:6]; } __u; } pthread_mutex_t; | ||
| 377 | #define __DEFINED_pthread_mutex_t | ||
| 378 | #endif | ||
| 379 | |||
| 380 | #if defined(__NEED_mtx_t) && !defined(__DEFINED_mtx_t) | ||
| 381 | typedef struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatile void *volatile __p[sizeof(long)==8?5:6]; } __u; } mtx_t; | ||
| 382 | #define __DEFINED_mtx_t | ||
| 383 | #endif | ||
| 384 | |||
| 385 | #if defined(__NEED_pthread_cond_t) && !defined(__DEFINED_pthread_cond_t) | ||
| 386 | typedef struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)]; } __u; } pthread_cond_t; | ||
| 387 | #define __DEFINED_pthread_cond_t | ||
| 388 | #endif | ||
| 389 | |||
| 390 | #if defined(__NEED_cnd_t) && !defined(__DEFINED_cnd_t) | ||
| 391 | typedef struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)]; } __u; } cnd_t; | ||
| 392 | #define __DEFINED_cnd_t | ||
| 393 | #endif | ||
| 394 | |||
| 395 | #if defined(__NEED_pthread_rwlock_t) && !defined(__DEFINED_pthread_rwlock_t) | ||
| 396 | typedef struct { union { int __i[sizeof(long)==8?14:8]; volatile int __vi[sizeof(long)==8?14:8]; void *__p[sizeof(long)==8?7:8]; } __u; } pthread_rwlock_t; | ||
| 397 | #define __DEFINED_pthread_rwlock_t | ||
| 398 | #endif | ||
| 399 | |||
| 400 | #if defined(__NEED_pthread_barrier_t) && !defined(__DEFINED_pthread_barrier_t) | ||
| 401 | typedef struct { union { int __i[sizeof(long)==8?8:5]; volatile int __vi[sizeof(long)==8?8:5]; void *__p[sizeof(long)==8?4:5]; } __u; } pthread_barrier_t; | ||
| 402 | #define __DEFINED_pthread_barrier_t | ||
| 403 | #endif | ||
| 404 | |||
| 405 | |||
| 406 | #undef _Addr | ||
| 407 | #undef _Int64 | ||
| 408 | #undef _Reg | ||
| \ No newline at end of file | |||
lib/libc/include/generic-musl/bits/fenv.h+29-12| ... | @@ -1,17 +1,34 @@ | ... | @@ -1,17 +1,34 @@ |
| 1 | #define FE_INVALID 16 | 1 | #define FE_INVALID 1 |
| 2 | #define FE_DIVBYZERO 8 | 2 | #define __FE_DENORM 2 |
| 3 | #define FE_OVERFLOW 4 | 3 | #define FE_DIVBYZERO 4 |
| 4 | #define FE_UNDERFLOW 2 | 4 | #define FE_OVERFLOW 8 |
| 5 | #define FE_INEXACT 1 | 5 | #define FE_UNDERFLOW 16 |
| 6 | #define FE_INEXACT 32 | ||
| 6 | 7 | ||
| 7 | #define FE_ALL_EXCEPT 31 | 8 | #define FE_ALL_EXCEPT 63 |
| 8 | 9 | ||
| 9 | #define FE_TONEAREST 0 | 10 | #define FE_TONEAREST 0 |
| 10 | #define FE_DOWNWARD 2 | 11 | #define FE_DOWNWARD 0x400 |
| 11 | #define FE_UPWARD 3 | 12 | #define FE_UPWARD 0x800 |
| 12 | #define FE_TOWARDZERO 1 | 13 | #define FE_TOWARDZERO 0xc00 |
| 13 | 14 | ||
| 14 | typedef unsigned int fexcept_t; | 15 | typedef unsigned short fexcept_t; |
| 15 | typedef unsigned int fenv_t; | 16 | |
| 17 | typedef struct { | ||
| 18 | 	unsigned short __control_word; | ||
| 19 | 	unsigned short __unused1; | ||
| 20 | 	unsigned short __status_word; | ||
| 21 | 	unsigned short __unused2; | ||
| 22 | 	unsigned short __tags; | ||
| 23 | 	unsigned short __unused3; | ||
| 24 | 	unsigned int __eip; | ||
| 25 | 	unsigned short __cs_selector; | ||
| 26 | 	unsigned int __opcode:11; | ||
| 27 | 	unsigned int __unused4:5; | ||
| 28 | 	unsigned int __data_offset; | ||
| 29 | 	unsigned short __data_selector; | ||
| 30 | 	unsigned short __unused5; | ||
| 31 | 	unsigned int __mxcsr; | ||
| 32 | } fenv_t; | ||
| 16 | 33 | ||
| 17 | #define FE_DFL_ENV ((const fenv_t *) -1) | 34 | #define FE_DFL_ENV ((const fenv_t *) -1) |
| \ No newline at end of file | |||
lib/libc/include/generic-musl/bits/setjmp.h created+1| ... | @@ -0,0 +1 @@ | ||
| 1 | typedef unsigned long long __jmp_buf[23]; | ||
| \ No newline at end of file | |||
lib/libc/include/generic-musl/bits/signal.h created+142| ... | @@ -0,0 +1,142 @@ | ||
| 1 | #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ | ||
| 2 | || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 3 | |||
| 4 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 5 | #define MINSIGSTKSZ 2048 | ||
| 6 | #define SIGSTKSZ 8192 | ||
| 7 | #endif | ||
| 8 | |||
| 9 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 10 | typedef unsigned long long greg_t, gregset_t[32]; | ||
| 11 | |||
| 12 | typedef struct { | ||
| 13 | 	union { | ||
| 14 | 		double fp_dregs[32]; | ||
| 15 | 		struct { | ||
| 16 | 			float _fp_fregs; | ||
| 17 | 			unsigned _fp_pad; | ||
| 18 | 		} fp_fregs[32]; | ||
| 19 | 	} fp_r; | ||
| 20 | } fpregset_t; | ||
| 21 | |||
| 22 | struct sigcontext { | ||
| 23 | 	unsigned long long sc_regs[32]; | ||
| 24 | 	unsigned long long sc_fpregs[32]; | ||
| 25 | 	unsigned long long sc_mdhi; | ||
| 26 | 	unsigned long long sc_hi1; | ||
| 27 | 	unsigned long long sc_hi2; | ||
| 28 | 	unsigned long long sc_hi3; | ||
| 29 | 	unsigned long long sc_mdlo; | ||
| 30 | 	unsigned long long sc_lo1; | ||
| 31 | 	unsigned long long sc_lo2; | ||
| 32 | 	unsigned long long sc_lo3; | ||
| 33 | 	unsigned long long sc_pc; | ||
| 34 | 	unsigned int sc_fpc_csr; | ||
| 35 | 	unsigned int sc_used_math; | ||
| 36 | 	unsigned int sc_dsp; | ||
| 37 | 	unsigned int sc_reserved; | ||
| 38 | }; | ||
| 39 | |||
| 40 | typedef struct { | ||
| 41 | 	gregset_t gregs; | ||
| 42 | 	fpregset_t fpregs; | ||
| 43 | 	greg_t mdhi; | ||
| 44 | 	greg_t hi1; | ||
| 45 | 	greg_t hi2; | ||
| 46 | 	greg_t hi3; | ||
| 47 | 	greg_t mdlo; | ||
| 48 | 	greg_t lo1; | ||
| 49 | 	greg_t lo2; | ||
| 50 | 	greg_t lo3; | ||
| 51 | 	greg_t pc; | ||
| 52 | 	unsigned int fpc_csr; | ||
| 53 | 	unsigned int used_math; | ||
| 54 | 	unsigned int dsp; | ||
| 55 | 	unsigned int reserved; | ||
| 56 | } mcontext_t; | ||
| 57 | |||
| 58 | #else | ||
| 59 | typedef struct { | ||
| 60 | 	unsigned long long __mc1[32]; | ||
| 61 | 	double __mc2[32]; | ||
| 62 | 	unsigned long long __mc3[9]; | ||
| 63 | 	unsigned __mc4[4]; | ||
| 64 | } mcontext_t; | ||
| 65 | #endif | ||
| 66 | |||
| 67 | struct sigaltstack { | ||
| 68 | 	void *ss_sp; | ||
| 69 | 	size_t ss_size; | ||
| 70 | 	int ss_flags; | ||
| 71 | }; | ||
| 72 | |||
| 73 | typedef struct __ucontext { | ||
| 74 | 	unsigned long uc_flags; | ||
| 75 | 	struct __ucontext *uc_link; | ||
| 76 | 	stack_t uc_stack; | ||
| 77 | 	mcontext_t uc_mcontext; | ||
| 78 | 	sigset_t uc_sigmask; | ||
| 79 | } ucontext_t; | ||
| 80 | |||
| 81 | #define SA_NOCLDSTOP 1 | ||
| 82 | #define SA_NOCLDWAIT 0x10000 | ||
| 83 | #define SA_SIGINFO 8 | ||
| 84 | #define SA_ONSTACK 0x08000000 | ||
| 85 | #define SA_RESTART 0x10000000 | ||
| 86 | #define SA_NODEFER 0x40000000 | ||
| 87 | #define SA_RESETHAND 0x80000000 | ||
| 88 | |||
| 89 | #undef SIG_BLOCK | ||
| 90 | #undef SIG_UNBLOCK | ||
| 91 | #undef SIG_SETMASK | ||
| 92 | #define SIG_BLOCK 1 | ||
| 93 | #define SIG_UNBLOCK 2 | ||
| 94 | #define SIG_SETMASK 3 | ||
| 95 | |||
| 96 | #undef SI_ASYNCIO | ||
| 97 | #undef SI_MESGQ | ||
| 98 | #undef SI_TIMER | ||
| 99 | #define SI_ASYNCIO (-2) | ||
| 100 | #define SI_MESGQ (-4) | ||
| 101 | #define SI_TIMER (-3) | ||
| 102 | |||
| 103 | #define __SI_SWAP_ERRNO_CODE | ||
| 104 | |||
| 105 | #endif | ||
| 106 | |||
| 107 | #define SIGHUP 1 | ||
| 108 | #define SIGINT 2 | ||
| 109 | #define SIGQUIT 3 | ||
| 110 | #define SIGILL 4 | ||
| 111 | #define SIGTRAP 5 | ||
| 112 | #define SIGABRT 6 | ||
| 113 | #define SIGIOT SIGABRT | ||
| 114 | #define SIGEMT 7 | ||
| 115 | #define SIGFPE 8 | ||
| 116 | #define SIGKILL 9 | ||
| 117 | #define SIGBUS 10 | ||
| 118 | #define SIGSEGV 11 | ||
| 119 | #define SIGSYS 12 | ||
| 120 | #define SIGPIPE 13 | ||
| 121 | #define SIGALRM 14 | ||
| 122 | #define SIGTERM 15 | ||
| 123 | #define SIGUSR1 16 | ||
| 124 | #define SIGUSR2 17 | ||
| 125 | #define SIGCHLD 18 | ||
| 126 | #define SIGPWR 19 | ||
| 127 | #define SIGWINCH 20 | ||
| 128 | #define SIGURG 21 | ||
| 129 | #define SIGIO 22 | ||
| 130 | #define SIGPOLL SIGIO | ||
| 131 | #define SIGSTOP 23 | ||
| 132 | #define SIGTSTP 24 | ||
| 133 | #define SIGCONT 25 | ||
| 134 | #define SIGTTIN 26 | ||
| 135 | #define SIGTTOU 27 | ||
| 136 | #define SIGVTALRM 28 | ||
| 137 | #define SIGPROF 29 | ||
| 138 | #define SIGXCPU 30 | ||
| 139 | #define SIGXFSZ 31 | ||
| 140 | #define SIGUNUSED SIGSYS | ||
| 141 | |||
| 142 | #define _NSIG 128 | ||
| \ No newline at end of file | |||
lib/libc/include/generic-musl/bits/stdint.h+6-6| ... | @@ -12,9 +12,9 @@ typedef uint32_t uint_fast32_t; | ... | @@ -12,9 +12,9 @@ typedef uint32_t uint_fast32_t; |
| 12 | #define UINT_FAST16_MAX UINT32_MAX | 12 | #define UINT_FAST16_MAX UINT32_MAX |
| 13 | #define UINT_FAST32_MAX UINT32_MAX | 13 | #define UINT_FAST32_MAX UINT32_MAX |
| 14 | 14 | ||
| 15 | #define INTPTR_MIN INT64_MIN | ||
| 16 | #define INTPTR_MAX INT64_MAX | ||
| 17 | #define UINTPTR_MAX UINT64_MAX | ||
| 18 | #define PTRDIFF_MIN INT64_MIN | ||
| 19 | #define PTRDIFF_MAX INT64_MAX | ||
| 20 | #define SIZE_MAX UINT64_MAX | ||
| \ No newline at end of file | |||
| 15 | #define INTPTR_MIN INT32_MIN | ||
| 16 | #define INTPTR_MAX INT32_MAX | ||
| 17 | #define UINTPTR_MAX UINT32_MAX | ||
| 18 | #define PTRDIFF_MIN INT32_MIN | ||
| 19 | #define PTRDIFF_MAX INT32_MAX | ||
| 20 | #define SIZE_MAX UINT32_MAX | ||
| \ No newline at end of file | |||
lib/libc/include/loongarch64-linux-musl/bits/stdint.h created+20| ... | @@ -0,0 +1,20 @@ | ||
| 1 | typedef int32_t int_fast16_t; | ||
| 2 | typedef int32_t int_fast32_t; | ||
| 3 | typedef uint32_t uint_fast16_t; | ||
| 4 | typedef uint32_t uint_fast32_t; | ||
| 5 | |||
| 6 | #define INT_FAST16_MIN INT32_MIN | ||
| 7 | #define INT_FAST32_MIN INT32_MIN | ||
| 8 | |||
| 9 | #define INT_FAST16_MAX INT32_MAX | ||
| 10 | #define INT_FAST32_MAX INT32_MAX | ||
| 11 | |||
| 12 | #define UINT_FAST16_MAX UINT32_MAX | ||
| 13 | #define UINT_FAST32_MAX UINT32_MAX | ||
| 14 | |||
| 15 | #define INTPTR_MIN INT64_MIN | ||
| 16 | #define INTPTR_MAX INT64_MAX | ||
| 17 | #define UINTPTR_MAX UINT64_MAX | ||
| 18 | #define PTRDIFF_MIN INT64_MIN | ||
| 19 | #define PTRDIFF_MAX INT64_MAX | ||
| 20 | #define SIZE_MAX UINT64_MAX | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-musl/bits/stdint.h created+20| ... | @@ -0,0 +1,20 @@ | ||
| 1 | typedef int32_t int_fast16_t; | ||
| 2 | typedef int32_t int_fast32_t; | ||
| 3 | typedef uint32_t uint_fast16_t; | ||
| 4 | typedef uint32_t uint_fast32_t; | ||
| 5 | |||
| 6 | #define INT_FAST16_MIN INT32_MIN | ||
| 7 | #define INT_FAST32_MIN INT32_MIN | ||
| 8 | |||
| 9 | #define INT_FAST16_MAX INT32_MAX | ||
| 10 | #define INT_FAST32_MAX INT32_MAX | ||
| 11 | |||
| 12 | #define UINT_FAST16_MAX UINT32_MAX | ||
| 13 | #define UINT_FAST32_MAX UINT32_MAX | ||
| 14 | |||
| 15 | #define INTPTR_MIN INT64_MIN | ||
| 16 | #define INTPTR_MAX INT64_MAX | ||
| 17 | #define UINTPTR_MAX UINT64_MAX | ||
| 18 | #define PTRDIFF_MIN INT64_MIN | ||
| 19 | #define PTRDIFF_MAX INT64_MAX | ||
| 20 | #define SIZE_MAX UINT64_MAX | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/errno.h created+134| ... | @@ -0,0 +1,134 @@ | ||
| 1 | #define EPERM 1 | ||
| 2 | #define ENOENT 2 | ||
| 3 | #define ESRCH 3 | ||
| 4 | #define EINTR 4 | ||
| 5 | #define EIO 5 | ||
| 6 | #define ENXIO 6 | ||
| 7 | #define E2BIG 7 | ||
| 8 | #define ENOEXEC 8 | ||
| 9 | #define EBADF 9 | ||
| 10 | #define ECHILD 10 | ||
| 11 | #define EAGAIN 11 | ||
| 12 | #define ENOMEM 12 | ||
| 13 | #define EACCES 13 | ||
| 14 | #define EFAULT 14 | ||
| 15 | #define ENOTBLK 15 | ||
| 16 | #define EBUSY 16 | ||
| 17 | #define EEXIST 17 | ||
| 18 | #define EXDEV 18 | ||
| 19 | #define ENODEV 19 | ||
| 20 | #define ENOTDIR 20 | ||
| 21 | #define EISDIR 21 | ||
| 22 | #define EINVAL 22 | ||
| 23 | #define ENFILE 23 | ||
| 24 | #define EMFILE 24 | ||
| 25 | #define ENOTTY 25 | ||
| 26 | #define ETXTBSY 26 | ||
| 27 | #define EFBIG 27 | ||
| 28 | #define ENOSPC 28 | ||
| 29 | #define ESPIPE 29 | ||
| 30 | #define EROFS 30 | ||
| 31 | #define EMLINK 31 | ||
| 32 | #define EPIPE 32 | ||
| 33 | #define EDOM 33 | ||
| 34 | #define ERANGE 34 | ||
| 35 | #define ENOMSG 35 | ||
| 36 | #define EIDRM 36 | ||
| 37 | #define ECHRNG 37 | ||
| 38 | #define EL2NSYNC 38 | ||
| 39 | #define EL3HLT 39 | ||
| 40 | #define EL3RST 40 | ||
| 41 | #define ELNRNG 41 | ||
| 42 | #define EUNATCH 42 | ||
| 43 | #define ENOCSI 43 | ||
| 44 | #define EL2HLT 44 | ||
| 45 | #define EDEADLK 45 | ||
| 46 | #define ENOLCK 46 | ||
| 47 | #define EBADE 50 | ||
| 48 | #define EBADR 51 | ||
| 49 | #define EXFULL 52 | ||
| 50 | #define ENOANO 53 | ||
| 51 | #define EBADRQC 54 | ||
| 52 | #define EBADSLT 55 | ||
| 53 | #define EDEADLOCK 56 | ||
| 54 | #define EBFONT 59 | ||
| 55 | #define ENOSTR 60 | ||
| 56 | #define ENODATA 61 | ||
| 57 | #define ETIME 62 | ||
| 58 | #define ENOSR 63 | ||
| 59 | #define ENONET 64 | ||
| 60 | #define ENOPKG 65 | ||
| 61 | #define EREMOTE 66 | ||
| 62 | #define ENOLINK 67 | ||
| 63 | #define EADV 68 | ||
| 64 | #define ESRMNT 69 | ||
| 65 | #define ECOMM 70 | ||
| 66 | #define EPROTO 71 | ||
| 67 | #define EDOTDOT 73 | ||
| 68 | #define EMULTIHOP 74 | ||
| 69 | #define EBADMSG 77 | ||
| 70 | #define ENAMETOOLONG 78 | ||
| 71 | #define EOVERFLOW 79 | ||
| 72 | #define ENOTUNIQ 80 | ||
| 73 | #define EBADFD 81 | ||
| 74 | #define EREMCHG 82 | ||
| 75 | #define ELIBACC 83 | ||
| 76 | #define ELIBBAD 84 | ||
| 77 | #define ELIBSCN 85 | ||
| 78 | #define ELIBMAX 86 | ||
| 79 | #define ELIBEXEC 87 | ||
| 80 | #define EILSEQ 88 | ||
| 81 | #define ENOSYS 89 | ||
| 82 | #define ELOOP 90 | ||
| 83 | #define ERESTART 91 | ||
| 84 | #define ESTRPIPE 92 | ||
| 85 | #define ENOTEMPTY 93 | ||
| 86 | #define EUSERS 94 | ||
| 87 | #define ENOTSOCK 95 | ||
| 88 | #define EDESTADDRREQ 96 | ||
| 89 | #define EMSGSIZE 97 | ||
| 90 | #define EPROTOTYPE 98 | ||
| 91 | #define ENOPROTOOPT 99 | ||
| 92 | #define EPROTONOSUPPORT 120 | ||
| 93 | #define ESOCKTNOSUPPORT 121 | ||
| 94 | #define EOPNOTSUPP 122 | ||
| 95 | #define ENOTSUP EOPNOTSUPP | ||
| 96 | #define EPFNOSUPPORT 123 | ||
| 97 | #define EAFNOSUPPORT 124 | ||
| 98 | #define EADDRINUSE 125 | ||
| 99 | #define EADDRNOTAVAIL 126 | ||
| 100 | #define ENETDOWN 127 | ||
| 101 | #define ENETUNREACH 128 | ||
| 102 | #define ENETRESET 129 | ||
| 103 | #define ECONNABORTED 130 | ||
| 104 | #define ECONNRESET 131 | ||
| 105 | #define ENOBUFS 132 | ||
| 106 | #define EISCONN 133 | ||
| 107 | #define ENOTCONN 134 | ||
| 108 | #define EUCLEAN 135 | ||
| 109 | #define ENOTNAM 137 | ||
| 110 | #define ENAVAIL 138 | ||
| 111 | #define EISNAM 139 | ||
| 112 | #define EREMOTEIO 140 | ||
| 113 | #define ESHUTDOWN 143 | ||
| 114 | #define ETOOMANYREFS 144 | ||
| 115 | #define ETIMEDOUT 145 | ||
| 116 | #define ECONNREFUSED 146 | ||
| 117 | #define EHOSTDOWN 147 | ||
| 118 | #define EHOSTUNREACH 148 | ||
| 119 | #define EWOULDBLOCK EAGAIN | ||
| 120 | #define EALREADY 149 | ||
| 121 | #define EINPROGRESS 150 | ||
| 122 | #define ESTALE 151 | ||
| 123 | #define ECANCELED 158 | ||
| 124 | #define ENOMEDIUM 159 | ||
| 125 | #define EMEDIUMTYPE 160 | ||
| 126 | #define ENOKEY 161 | ||
| 127 | #define EKEYEXPIRED 162 | ||
| 128 | #define EKEYREVOKED 163 | ||
| 129 | #define EKEYREJECTED 164 | ||
| 130 | #define EOWNERDEAD 165 | ||
| 131 | #define ENOTRECOVERABLE 166 | ||
| 132 | #define ERFKILL 167 | ||
| 133 | #define EHWPOISON 168 | ||
| 134 | #define EDQUOT 1133 | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/fcntl.h created+40| ... | @@ -0,0 +1,40 @@ | ||
| 1 | #define O_CREAT 0400 | ||
| 2 | #define O_EXCL 02000 | ||
| 3 | #define O_NOCTTY 04000 | ||
| 4 | #define O_TRUNC 01000 | ||
| 5 | #define O_APPEND 0010 | ||
| 6 | #define O_NONBLOCK 0200 | ||
| 7 | #define O_DSYNC 0020 | ||
| 8 | #define O_SYNC 040020 | ||
| 9 | #define O_RSYNC 040020 | ||
| 10 | #define O_DIRECTORY 0200000 | ||
| 11 | #define O_NOFOLLOW 0400000 | ||
| 12 | #define O_CLOEXEC 02000000 | ||
| 13 | |||
| 14 | #define O_ASYNC 010000 | ||
| 15 | #define O_DIRECT 0100000 | ||
| 16 | #define O_LARGEFILE 020000 | ||
| 17 | #define O_NOATIME 01000000 | ||
| 18 | #define O_PATH 010000000 | ||
| 19 | #define O_TMPFILE 020200000 | ||
| 20 | #define O_NDELAY O_NONBLOCK | ||
| 21 | |||
| 22 | #define F_DUPFD 0 | ||
| 23 | #define F_GETFD 1 | ||
| 24 | #define F_SETFD 2 | ||
| 25 | #define F_GETFL 3 | ||
| 26 | #define F_SETFL 4 | ||
| 27 | |||
| 28 | #define F_SETOWN 24 | ||
| 29 | #define F_GETOWN 23 | ||
| 30 | #define F_SETSIG 10 | ||
| 31 | #define F_GETSIG 11 | ||
| 32 | |||
| 33 | #define F_GETLK 33 | ||
| 34 | #define F_SETLK 34 | ||
| 35 | #define F_SETLKW 35 | ||
| 36 | |||
| 37 | #define F_SETOWN_EX 15 | ||
| 38 | #define F_GETOWN_EX 16 | ||
| 39 | |||
| 40 | #define F_GETOWNER_UIDS 17 | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/fenv.h created+25| ... | @@ -0,0 +1,25 @@ | ||
| 1 | #ifdef __mips_soft_float | ||
| 2 | #define FE_ALL_EXCEPT 0 | ||
| 3 | #define FE_TONEAREST 0 | ||
| 4 | #else | ||
| 5 | #define FE_INEXACT 4 | ||
| 6 | #define FE_UNDERFLOW 8 | ||
| 7 | #define FE_OVERFLOW 16 | ||
| 8 | #define FE_DIVBYZERO 32 | ||
| 9 | #define FE_INVALID 64 | ||
| 10 | |||
| 11 | #define FE_ALL_EXCEPT 124 | ||
| 12 | |||
| 13 | #define FE_TONEAREST 0 | ||
| 14 | #define FE_TOWARDZERO 1 | ||
| 15 | #define FE_UPWARD 2 | ||
| 16 | #define FE_DOWNWARD 3 | ||
| 17 | #endif | ||
| 18 | |||
| 19 | typedef unsigned short fexcept_t; | ||
| 20 | |||
| 21 | typedef struct { | ||
| 22 | 	unsigned __cw; | ||
| 23 | } fenv_t; | ||
| 24 | |||
| 25 | #define FE_DFL_ENV ((const fenv_t *) -1) | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/hwcap.h created+3| ... | @@ -0,0 +1,3 @@ | ||
| 1 | #define HWCAP_MIPS_R6		(1 << 0) | ||
| 2 | #define HWCAP_MIPS_MSA		(1 << 1) | ||
| 3 | #define HWCAP_MIPS_CRC32	(1 << 2) | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/ioctl.h created+114| ... | @@ -0,0 +1,114 @@ | ||
| 1 | #define _IOC(a,b,c,d) ( ((a)<<29) | ((b)<<8) | (c) | ((d)<<16) ) | ||
| 2 | #define _IOC_NONE 1U | ||
| 3 | #define _IOC_READ 2U | ||
| 4 | #define _IOC_WRITE 4U | ||
| 5 | |||
| 6 | #define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0) | ||
| 7 | #define _IOW(a,b,c) _IOC(_IOC_WRITE,(a),(b),sizeof(c)) | ||
| 8 | #define _IOR(a,b,c) _IOC(_IOC_READ,(a),(b),sizeof(c)) | ||
| 9 | #define _IOWR(a,b,c) _IOC(_IOC_READ|_IOC_WRITE,(a),(b),sizeof(c)) | ||
| 10 | |||
| 11 | #define TCGETA		0x5401 | ||
| 12 | #define TCSETA		0x5402 | ||
| 13 | #define TCSETAW		0x5403 | ||
| 14 | #define TCSETAF		0x5404 | ||
| 15 | #define TCSBRK		0x5405 | ||
| 16 | #define TCXONC		0x5406 | ||
| 17 | #define TCFLSH		0x5407 | ||
| 18 | #define TCGETS		0x540D | ||
| 19 | #define TCSETS		0x540E | ||
| 20 | #define TCSETSW		0x540F | ||
| 21 | #define TCSETSF		0x5410 | ||
| 22 | |||
| 23 | #define TIOCEXCL	0x740D | ||
| 24 | #define TIOCNXCL	0x740E | ||
| 25 | #define TIOCOUTQ	0x7472 | ||
| 26 | #define TIOCSTI		0x5472 | ||
| 27 | #define TIOCMGET	0x741D | ||
| 28 | #define TIOCMBIS	0x741B | ||
| 29 | #define TIOCMBIC	0x741C | ||
| 30 | #define TIOCMSET	0x741A | ||
| 31 | |||
| 32 | #define TIOCPKT		0x5470 | ||
| 33 | #define TIOCSWINSZ	_IOW('t', 103, struct winsize) | ||
| 34 | #define TIOCGWINSZ	_IOR('t', 104, struct winsize) | ||
| 35 | #define TIOCNOTTY	0x5471 | ||
| 36 | #define TIOCSETD	0x7401 | ||
| 37 | #define TIOCGETD	0x7400 | ||
| 38 | |||
| 39 | #define FIOCLEX		0x6601 | ||
| 40 | #define FIONCLEX	0x6602 | ||
| 41 | #define FIOASYNC	0x667D | ||
| 42 | #define FIONBIO		0x667E | ||
| 43 | #define FIOQSIZE	0x667F | ||
| 44 | |||
| 45 | #define TIOCGLTC 0x7474 | ||
| 46 | #define TIOCSLTC 0x7475 | ||
| 47 | #define TIOCSPGRP	_IOW('t', 118, int) | ||
| 48 | #define TIOCGPGRP	_IOR('t', 119, int) | ||
| 49 | #define TIOCCONS	_IOW('t', 120, int) | ||
| 50 | |||
| 51 | #define FIONREAD	0x467F | ||
| 52 | #define TIOCINQ		FIONREAD | ||
| 53 | |||
| 54 | #define TIOCGETP 0x7408 | ||
| 55 | #define TIOCSETP 0x7409 | ||
| 56 | #define TIOCSETN 0x740A | ||
| 57 | |||
| 58 | #define TIOCSBRK	0x5427 | ||
| 59 | #define TIOCCBRK	0x5428 | ||
| 60 | #define TIOCGSID	0x7416 | ||
| 61 | #define TIOCGRS485	_IOR('T', 0x2E, char[32]) | ||
| 62 | #define TIOCSRS485	_IOWR('T', 0x2F, char[32]) | ||
| 63 | #define TIOCGPTN	_IOR('T', 0x30, unsigned int) | ||
| 64 | #define TIOCSPTLCK	_IOW('T', 0x31, int) | ||
| 65 | #define TIOCGDEV	_IOR('T', 0x32, unsigned int) | ||
| 66 | #define TIOCSIG		_IOW('T', 0x36, int) | ||
| 67 | #define TIOCVHANGUP	0x5437 | ||
| 68 | #define TIOCGPKT	_IOR('T', 0x38, int) | ||
| 69 | #define TIOCGPTLCK	_IOR('T', 0x39, int) | ||
| 70 | #define TIOCGEXCL	_IOR('T', 0x40, int) | ||
| 71 | #define TIOCGPTPEER	_IO('T', 0x41) | ||
| 72 | |||
| 73 | #define TIOCSCTTY	0x5480 | ||
| 74 | #define TIOCGSOFTCAR	0x5481 | ||
| 75 | #define TIOCSSOFTCAR	0x5482 | ||
| 76 | #define TIOCLINUX	0x5483 | ||
| 77 | #define TIOCGSERIAL	0x5484 | ||
| 78 | #define TIOCSSERIAL	0x5485 | ||
| 79 | #define TCSBRKP		0x5486 | ||
| 80 | |||
| 81 | #define TIOCSERCONFIG	0x5488 | ||
| 82 | #define TIOCSERGWILD	0x5489 | ||
| 83 | #define TIOCSERSWILD	0x548A | ||
| 84 | #define TIOCGLCKTRMIOS	0x548B | ||
| 85 | #define TIOCSLCKTRMIOS	0x548C | ||
| 86 | #define TIOCSERGSTRUCT	0x548D | ||
| 87 | #define TIOCSERGETLSR 0x548E | ||
| 88 | #define TIOCSERGETMULTI 0x548F | ||
| 89 | #define TIOCSERSETMULTI 0x5490 | ||
| 90 | #define TIOCMIWAIT	0x5491 | ||
| 91 | #define TIOCGICOUNT	0x5492 | ||
| 92 | |||
| 93 | #define TIOCM_LE	0x001 | ||
| 94 | #define TIOCM_DTR	0x002 | ||
| 95 | #define TIOCM_RTS	0x004 | ||
| 96 | #define TIOCM_ST	0x010 | ||
| 97 | #define TIOCM_SR	0x020 | ||
| 98 | #define TIOCM_CTS	0x040 | ||
| 99 | #define TIOCM_CAR	0x100 | ||
| 100 | #define TIOCM_CD	TIOCM_CAR | ||
| 101 | #define TIOCM_RNG	0x200 | ||
| 102 | #define TIOCM_RI	TIOCM_RNG | ||
| 103 | #define TIOCM_DSR	0x400 | ||
| 104 | #define TIOCM_OUT1	0x2000 | ||
| 105 | #define TIOCM_OUT2	0x4000 | ||
| 106 | #define TIOCM_LOOP	0x8000 | ||
| 107 | |||
| 108 | #define FIOGETOWN _IOR('f', 123, int) | ||
| 109 | #define FIOSETOWN _IOW('f', 124, int) | ||
| 110 | #define SIOCATMARK _IOR('s', 7, int) | ||
| 111 | #define SIOCSPGRP _IOW('s', 8, pid_t) | ||
| 112 | #define SIOCGPGRP _IOR('s', 9, pid_t) | ||
| 113 | #define SIOCGSTAMP _IOR(0x89, 6, char[16]) | ||
| 114 | #define SIOCGSTAMPNS _IOR(0x89, 7, char[16]) | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/ipcstat.h created+1| ... | @@ -0,0 +1 @@ | ||
| 1 | #define IPC_STAT 0x102 | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/mman.h created+25| ... | @@ -0,0 +1,25 @@ | ||
| 1 | #undef MAP_ANON | ||
| 2 | #define MAP_ANON 0x800 | ||
| 3 | #undef MAP_NORESERVE | ||
| 4 | #define MAP_NORESERVE 0x0400 | ||
| 5 | #undef MAP_GROWSDOWN | ||
| 6 | #define MAP_GROWSDOWN 0x1000 | ||
| 7 | #undef MAP_DENYWRITE | ||
| 8 | #define MAP_DENYWRITE 0x2000 | ||
| 9 | #undef MAP_EXECUTABLE | ||
| 10 | #define MAP_EXECUTABLE 0x4000 | ||
| 11 | #undef MAP_LOCKED | ||
| 12 | #define MAP_LOCKED 0x8000 | ||
| 13 | #undef MAP_POPULATE | ||
| 14 | #define MAP_POPULATE 0x10000 | ||
| 15 | #undef MAP_NONBLOCK | ||
| 16 | #define MAP_NONBLOCK 0x20000 | ||
| 17 | #undef MAP_STACK | ||
| 18 | #define MAP_STACK 0x40000 | ||
| 19 | #undef MAP_HUGETLB | ||
| 20 | #define MAP_HUGETLB 0x80000 | ||
| 21 | #undef MAP_SYNC | ||
| 22 | |||
| 23 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 24 | #undef MADV_SOFT_OFFLINE | ||
| 25 | #endif | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/msg.h created+27| ... | @@ -0,0 +1,27 @@ | ||
| 1 | struct msqid_ds { | ||
| 2 | 	struct ipc_perm msg_perm; | ||
| 3 | #if _MIPSEL || __MIPSEL || __MIPSEL__ | ||
| 4 | 	unsigned long __msg_stime_lo; | ||
| 5 | 	unsigned long __msg_stime_hi; | ||
| 6 | 	unsigned long __msg_rtime_lo; | ||
| 7 | 	unsigned long __msg_rtime_hi; | ||
| 8 | 	unsigned long __msg_ctime_lo; | ||
| 9 | 	unsigned long __msg_ctime_hi; | ||
| 10 | #else | ||
| 11 | 	unsigned long __msg_stime_hi; | ||
| 12 | 	unsigned long __msg_stime_lo; | ||
| 13 | 	unsigned long __msg_rtime_hi; | ||
| 14 | 	unsigned long __msg_rtime_lo; | ||
| 15 | 	unsigned long __msg_ctime_hi; | ||
| 16 | 	unsigned long __msg_ctime_lo; | ||
| 17 | #endif | ||
| 18 | 	unsigned long msg_cbytes; | ||
| 19 | 	msgqnum_t msg_qnum; | ||
| 20 | 	msglen_t msg_qbytes; | ||
| 21 | 	pid_t msg_lspid; | ||
| 22 | 	pid_t msg_lrpid; | ||
| 23 | 	unsigned long __unused[2]; | ||
| 24 | 	time_t msg_stime; | ||
| 25 | 	time_t msg_rtime; | ||
| 26 | 	time_t msg_ctime; | ||
| 27 | }; | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/poll.h created+2| ... | @@ -0,0 +1,2 @@ | ||
| 1 | #define POLLWRNORM POLLOUT | ||
| 2 | #define POLLWRBAND 0x100 | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/ptrace.h created+9| ... | @@ -0,0 +1,9 @@ | ||
| 1 | #define PTRACE_GET_THREAD_AREA	25 | ||
| 2 | #define PTRACE_SET_THREAD_AREA	26 | ||
| 3 | #define PTRACE_PEEKTEXT_3264	0xc0 | ||
| 4 | #define PTRACE_PEEKDATA_3264	0xc1 | ||
| 5 | #define PTRACE_POKETEXT_3264	0xc2 | ||
| 6 | #define PTRACE_POKEDATA_3264	0xc3 | ||
| 7 | #define PTRACE_GET_THREAD_AREA_3264	0xc4 | ||
| 8 | #define PTRACE_GET_WATCH_REGS	0xd0 | ||
| 9 | #define PTRACE_SET_WATCH_REGS	0xd1 | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/reg.h created+47| ... | @@ -0,0 +1,47 @@ | ||
| 1 | #undef __WORDSIZE | ||
| 2 | #define __WORDSIZE 64 | ||
| 3 | |||
| 4 | #define EF_R0 0 | ||
| 5 | #define EF_R1 1 | ||
| 6 | #define EF_R2 2 | ||
| 7 | #define EF_R3 3 | ||
| 8 | #define EF_R4 4 | ||
| 9 | #define EF_R5 5 | ||
| 10 | #define EF_R6 6 | ||
| 11 | #define EF_R7 7 | ||
| 12 | #define EF_R8 8 | ||
| 13 | #define EF_R9 9 | ||
| 14 | #define EF_R10 10 | ||
| 15 | #define EF_R11 11 | ||
| 16 | #define EF_R12 12 | ||
| 17 | #define EF_R13 13 | ||
| 18 | #define EF_R14 14 | ||
| 19 | #define EF_R15 15 | ||
| 20 | #define EF_R16 16 | ||
| 21 | #define EF_R17 17 | ||
| 22 | #define EF_R18 18 | ||
| 23 | #define EF_R19 19 | ||
| 24 | #define EF_R20 20 | ||
| 25 | #define EF_R21 21 | ||
| 26 | #define EF_R22 22 | ||
| 27 | #define EF_R23 23 | ||
| 28 | #define EF_R24 24 | ||
| 29 | #define EF_R25 25 | ||
| 30 | |||
| 31 | #define EF_R26 26 | ||
| 32 | #define EF_R27 27 | ||
| 33 | #define EF_R28 28 | ||
| 34 | #define EF_R29 29 | ||
| 35 | #define EF_R30 30 | ||
| 36 | #define EF_R31 31 | ||
| 37 | |||
| 38 | #define EF_LO 32 | ||
| 39 | #define EF_HI 33 | ||
| 40 | |||
| 41 | #define EF_CP0_EPC 34 | ||
| 42 | #define EF_CP0_BADVADDR 35 | ||
| 43 | #define EF_CP0_STATUS 36 | ||
| 44 | #define EF_CP0_CAUSE 37 | ||
| 45 | #define EF_UNUSED0 38 | ||
| 46 | |||
| 47 | #define EF_SIZE 304 | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/resource.h created+5| ... | @@ -0,0 +1,5 @@ | ||
| 1 | #define RLIMIT_NOFILE 5 | ||
| 2 | #define RLIMIT_AS 6 | ||
| 3 | #define RLIMIT_RSS 7 | ||
| 4 | #define RLIMIT_NPROC 8 | ||
| 5 | #define RLIMIT_MEMLOCK 9 | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/sem.h created+16| ... | @@ -0,0 +1,16 @@ | ||
| 1 | struct semid_ds { | ||
| 2 | 	struct ipc_perm sem_perm; | ||
| 3 | 	unsigned long __sem_otime_lo; | ||
| 4 | 	unsigned long __sem_ctime_lo; | ||
| 5 | #if __BYTE_ORDER == __LITTLE_ENDIAN | ||
| 6 | 	unsigned short sem_nsems; | ||
| 7 | 	char __sem_nsems_pad[sizeof(long)-sizeof(short)]; | ||
| 8 | #else | ||
| 9 | 	char __sem_nsems_pad[sizeof(long)-sizeof(short)]; | ||
| 10 | 	unsigned short sem_nsems; | ||
| 11 | #endif | ||
| 12 | 	unsigned long __sem_otime_hi; | ||
| 13 | 	unsigned long __sem_ctime_hi; | ||
| 14 | 	time_t sem_otime; | ||
| 15 | 	time_t sem_ctime; | ||
| 16 | }; | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/shm.h created+29| ... | @@ -0,0 +1,29 @@ | ||
| 1 | #define SHMLBA 4096 | ||
| 2 | |||
| 3 | struct shmid_ds { | ||
| 4 | 	struct ipc_perm shm_perm; | ||
| 5 | 	size_t shm_segsz; | ||
| 6 | 	unsigned long __shm_atime_lo; | ||
| 7 | 	unsigned long __shm_dtime_lo; | ||
| 8 | 	unsigned long __shm_ctime_lo; | ||
| 9 | 	pid_t shm_cpid; | ||
| 10 | 	pid_t shm_lpid; | ||
| 11 | 	unsigned long shm_nattch; | ||
| 12 | 	unsigned short __shm_atime_hi; | ||
| 13 | 	unsigned short __shm_dtime_hi; | ||
| 14 | 	unsigned short __shm_ctime_hi; | ||
| 15 | 	unsigned short __pad1; | ||
| 16 | 	time_t shm_atime; | ||
| 17 | 	time_t shm_dtime; | ||
| 18 | 	time_t shm_ctime; | ||
| 19 | }; | ||
| 20 | |||
| 21 | struct shminfo { | ||
| 22 | 	unsigned long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4]; | ||
| 23 | }; | ||
| 24 | |||
| 25 | struct shm_info { | ||
| 26 | 	int __used_ids; | ||
| 27 | 	unsigned long shm_tot, shm_rss, shm_swp; | ||
| 28 | 	unsigned long __swap_attempts, __swap_successes; | ||
| 29 | }; | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/socket.h created+35| ... | @@ -0,0 +1,35 @@ | ||
| 1 | #define SOCK_STREAM 2 | ||
| 2 | #define SOCK_DGRAM 1 | ||
| 3 | |||
| 4 | #define SOL_SOCKET 65535 | ||
| 5 | |||
| 6 | #define SO_DEBUG 1 | ||
| 7 | |||
| 8 | #define SO_REUSEADDR 0x0004 | ||
| 9 | #define SO_KEEPALIVE 0x0008 | ||
| 10 | #define SO_DONTROUTE 0x0010 | ||
| 11 | #define SO_BROADCAST 0x0020 | ||
| 12 | #define SO_LINGER 0x0080 | ||
| 13 | #define SO_OOBINLINE 0x0100 | ||
| 14 | #define SO_REUSEPORT 0x0200 | ||
| 15 | #define SO_SNDBUF 0x1001 | ||
| 16 | #define SO_RCVBUF 0x1002 | ||
| 17 | #define SO_SNDLOWAT 0x1003 | ||
| 18 | #define SO_RCVLOWAT 0x1004 | ||
| 19 | #define SO_ERROR 0x1007 | ||
| 20 | #define SO_TYPE 0x1008 | ||
| 21 | #define SO_ACCEPTCONN 0x1009 | ||
| 22 | #define SO_PROTOCOL 0x1028 | ||
| 23 | #define SO_DOMAIN 0x1029 | ||
| 24 | |||
| 25 | #define SO_NO_CHECK 11 | ||
| 26 | #define SO_PRIORITY 12 | ||
| 27 | #define SO_BSDCOMPAT 14 | ||
| 28 | #define SO_PASSCRED 17 | ||
| 29 | #define SO_PEERCRED 18 | ||
| 30 | #define SO_PEERSEC 30 | ||
| 31 | #define SO_SNDBUFFORCE 31 | ||
| 32 | #define SO_RCVBUFFORCE 33 | ||
| 33 | |||
| 34 | #define SOCK_NONBLOCK 0200 | ||
| 35 | #define SOCK_CLOEXEC 02000000 | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/stat.h created+23| ... | @@ -0,0 +1,23 @@ | ||
| 1 | struct stat { | ||
| 2 | 	dev_t st_dev; | ||
| 3 | 	long __pad1[2]; | ||
| 4 | 	ino_t st_ino; | ||
| 5 | 	mode_t st_mode; | ||
| 6 | 	nlink_t st_nlink; | ||
| 7 | 	uid_t st_uid; | ||
| 8 | 	gid_t st_gid; | ||
| 9 | 	dev_t st_rdev; | ||
| 10 | 	long __pad2[2]; | ||
| 11 | 	off_t st_size; | ||
| 12 | 	struct { | ||
| 13 | 		long tv_sec; | ||
| 14 | 		long tv_nsec; | ||
| 15 | 	} __st_atim32, __st_mtim32, __st_ctim32; | ||
| 16 | 	blksize_t st_blksize; | ||
| 17 | 	long __pad3; | ||
| 18 | 	blkcnt_t st_blocks; | ||
| 19 | 	struct timespec st_atim; | ||
| 20 | 	struct timespec st_mtim; | ||
| 21 | 	struct timespec st_ctim; | ||
| 22 | 	long __pad4[2]; | ||
| 23 | }; | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/statfs.h created+8| ... | @@ -0,0 +1,8 @@ | ||
| 1 | struct statfs { | ||
| 2 | 	unsigned long f_type, f_bsize, f_frsize; | ||
| 3 | 	fsblkcnt_t f_blocks, f_bfree; | ||
| 4 | 	fsfilcnt_t f_files, f_ffree; | ||
| 5 | 	fsblkcnt_t f_bavail; | ||
| 6 | 	fsid_t f_fsid; | ||
| 7 | 	unsigned long f_namelen, f_flags, f_spare[5]; | ||
| 8 | }; | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/syscall.h created+759| ... | @@ -0,0 +1,759 @@ | ||
| 1 | #define __NR_read			6000 | ||
| 2 | #define __NR_write			6001 | ||
| 3 | #define __NR_open			6002 | ||
| 4 | #define __NR_close			6003 | ||
| 5 | #define __NR_stat			6004 | ||
| 6 | #define __NR_fstat			6005 | ||
| 7 | #define __NR_lstat			6006 | ||
| 8 | #define __NR_poll			6007 | ||
| 9 | #define __NR_lseek			6008 | ||
| 10 | #define __NR_mmap			6009 | ||
| 11 | #define __NR_mprotect			6010 | ||
| 12 | #define __NR_munmap			6011 | ||
| 13 | #define __NR_brk			6012 | ||
| 14 | #define __NR_rt_sigaction		6013 | ||
| 15 | #define __NR_rt_sigprocmask		6014 | ||
| 16 | #define __NR_ioctl			6015 | ||
| 17 | #define __NR_pread64			6016 | ||
| 18 | #define __NR_pwrite64			6017 | ||
| 19 | #define __NR_readv			6018 | ||
| 20 | #define __NR_writev			6019 | ||
| 21 | #define __NR_access			6020 | ||
| 22 | #define __NR_pipe			6021 | ||
| 23 | #define __NR__newselect			6022 | ||
| 24 | #define __NR_sched_yield		6023 | ||
| 25 | #define __NR_mremap			6024 | ||
| 26 | #define __NR_msync			6025 | ||
| 27 | #define __NR_mincore			6026 | ||
| 28 | #define __NR_madvise			6027 | ||
| 29 | #define __NR_shmget			6028 | ||
| 30 | #define __NR_shmat			6029 | ||
| 31 | #define __NR_shmctl			6030 | ||
| 32 | #define __NR_dup			6031 | ||
| 33 | #define __NR_dup2			6032 | ||
| 34 | #define __NR_pause			6033 | ||
| 35 | #define __NR_nanosleep			6034 | ||
| 36 | #define __NR_getitimer			6035 | ||
| 37 | #define __NR_setitimer			6036 | ||
| 38 | #define __NR_alarm			6037 | ||
| 39 | #define __NR_getpid			6038 | ||
| 40 | #define __NR_sendfile			6039 | ||
| 41 | #define __NR_socket			6040 | ||
| 42 | #define __NR_connect			6041 | ||
| 43 | #define __NR_accept			6042 | ||
| 44 | #define __NR_sendto			6043 | ||
| 45 | #define __NR_recvfrom			6044 | ||
| 46 | #define __NR_sendmsg			6045 | ||
| 47 | #define __NR_recvmsg			6046 | ||
| 48 | #define __NR_shutdown			6047 | ||
| 49 | #define __NR_bind			6048 | ||
| 50 | #define __NR_listen			6049 | ||
| 51 | #define __NR_getsockname		6050 | ||
| 52 | #define __NR_getpeername		6051 | ||
| 53 | #define __NR_socketpair			6052 | ||
| 54 | #define __NR_setsockopt			6053 | ||
| 55 | #define __NR_getsockopt			6054 | ||
| 56 | #define __NR_clone			6055 | ||
| 57 | #define __NR_fork			6056 | ||
| 58 | #define __NR_execve			6057 | ||
| 59 | #define __NR_exit			6058 | ||
| 60 | #define __NR_wait4			6059 | ||
| 61 | #define __NR_kill			6060 | ||
| 62 | #define __NR_uname			6061 | ||
| 63 | #define __NR_semget			6062 | ||
| 64 | #define __NR_semop			6063 | ||
| 65 | #define __NR_semctl			6064 | ||
| 66 | #define __NR_shmdt			6065 | ||
| 67 | #define __NR_msgget			6066 | ||
| 68 | #define __NR_msgsnd			6067 | ||
| 69 | #define __NR_msgrcv			6068 | ||
| 70 | #define __NR_msgctl			6069 | ||
| 71 | #define __NR_fcntl			6070 | ||
| 72 | #define __NR_flock			6071 | ||
| 73 | #define __NR_fsync			6072 | ||
| 74 | #define __NR_fdatasync			6073 | ||
| 75 | #define __NR_truncate			6074 | ||
| 76 | #define __NR_ftruncate			6075 | ||
| 77 | #define __NR_getdents			6076 | ||
| 78 | #define __NR_getcwd			6077 | ||
| 79 | #define __NR_chdir			6078 | ||
| 80 | #define __NR_fchdir			6079 | ||
| 81 | #define __NR_rename			6080 | ||
| 82 | #define __NR_mkdir			6081 | ||
| 83 | #define __NR_rmdir			6082 | ||
| 84 | #define __NR_creat			6083 | ||
| 85 | #define __NR_link			6084 | ||
| 86 | #define __NR_unlink			6085 | ||
| 87 | #define __NR_symlink			6086 | ||
| 88 | #define __NR_readlink			6087 | ||
| 89 | #define __NR_chmod			6088 | ||
| 90 | #define __NR_fchmod			6089 | ||
| 91 | #define __NR_chown			6090 | ||
| 92 | #define __NR_fchown			6091 | ||
| 93 | #define __NR_lchown			6092 | ||
| 94 | #define __NR_umask			6093 | ||
| 95 | #define __NR_gettimeofday_time32		6094 | ||
| 96 | #define __NR_getrlimit			6095 | ||
| 97 | #define __NR_getrusage			6096 | ||
| 98 | #define __NR_sysinfo			6097 | ||
| 99 | #define __NR_times			6098 | ||
| 100 | #define __NR_ptrace			6099 | ||
| 101 | #define __NR_getuid			6100 | ||
| 102 | #define __NR_syslog			6101 | ||
| 103 | #define __NR_getgid			6102 | ||
| 104 | #define __NR_setuid			6103 | ||
| 105 | #define __NR_setgid			6104 | ||
| 106 | #define __NR_geteuid			6105 | ||
| 107 | #define __NR_getegid			6106 | ||
| 108 | #define __NR_setpgid			6107 | ||
| 109 | #define __NR_getppid			6108 | ||
| 110 | #define __NR_getpgrp			6109 | ||
| 111 | #define __NR_setsid			6110 | ||
| 112 | #define __NR_setreuid			6111 | ||
| 113 | #define __NR_setregid			6112 | ||
| 114 | #define __NR_getgroups			6113 | ||
| 115 | #define __NR_setgroups			6114 | ||
| 116 | #define __NR_setresuid			6115 | ||
| 117 | #define __NR_getresuid			6116 | ||
| 118 | #define __NR_setresgid			6117 | ||
| 119 | #define __NR_getresgid			6118 | ||
| 120 | #define __NR_getpgid			6119 | ||
| 121 | #define __NR_setfsuid			6120 | ||
| 122 | #define __NR_setfsgid			6121 | ||
| 123 | #define __NR_getsid			6122 | ||
| 124 | #define __NR_capget			6123 | ||
| 125 | #define __NR_capset			6124 | ||
| 126 | #define __NR_rt_sigpending		6125 | ||
| 127 | #define __NR_rt_sigtimedwait		6126 | ||
| 128 | #define __NR_rt_sigqueueinfo		6127 | ||
| 129 | #define __NR_rt_sigsuspend		6128 | ||
| 130 | #define __NR_sigaltstack		6129 | ||
| 131 | #define __NR_utime			6130 | ||
| 132 | #define __NR_mknod			6131 | ||
| 133 | #define __NR_personality		6132 | ||
| 134 | #define __NR_ustat			6133 | ||
| 135 | #define __NR_statfs			6134 | ||
| 136 | #define __NR_fstatfs			6135 | ||
| 137 | #define __NR_sysfs			6136 | ||
| 138 | #define __NR_getpriority		6137 | ||
| 139 | #define __NR_setpriority		6138 | ||
| 140 | #define __NR_sched_setparam		6139 | ||
| 141 | #define __NR_sched_getparam		6140 | ||
| 142 | #define __NR_sched_setscheduler		6141 | ||
| 143 | #define __NR_sched_getscheduler		6142 | ||
| 144 | #define __NR_sched_get_priority_max	6143 | ||
| 145 | #define __NR_sched_get_priority_min	6144 | ||
| 146 | #define __NR_sched_rr_get_interval	6145 | ||
| 147 | #define __NR_mlock			6146 | ||
| 148 | #define __NR_munlock			6147 | ||
| 149 | #define __NR_mlockall			6148 | ||
| 150 | #define __NR_munlockall			6149 | ||
| 151 | #define __NR_vhangup			6150 | ||
| 152 | #define __NR_pivot_root			6151 | ||
| 153 | #define __NR__sysctl			6152 | ||
| 154 | #define __NR_prctl			6153 | ||
| 155 | #define __NR_adjtimex			6154 | ||
| 156 | #define __NR_setrlimit			6155 | ||
| 157 | #define __NR_chroot			6156 | ||
| 158 | #define __NR_sync			6157 | ||
| 159 | #define __NR_acct			6158 | ||
| 160 | #define __NR_settimeofday_time32		6159 | ||
| 161 | #define __NR_mount			6160 | ||
| 162 | #define __NR_umount2			6161 | ||
| 163 | #define __NR_swapon			6162 | ||
| 164 | #define __NR_swapoff			6163 | ||
| 165 | #define __NR_reboot			6164 | ||
| 166 | #define __NR_sethostname		6165 | ||
| 167 | #define __NR_setdomainname		6166 | ||
| 168 | #define __NR_create_module		6167 | ||
| 169 | #define __NR_init_module		6168 | ||
| 170 | #define __NR_delete_module		6169 | ||
| 171 | #define __NR_get_kernel_syms		6170 | ||
| 172 | #define __NR_query_module		6171 | ||
| 173 | #define __NR_quotactl			6172 | ||
| 174 | #define __NR_nfsservctl			6173 | ||
| 175 | #define __NR_getpmsg			6174 | ||
| 176 | #define __NR_putpmsg			6175 | ||
| 177 | #define __NR_afs_syscall		6176 | ||
| 178 | #define __NR_reserved177		6177 | ||
| 179 | #define __NR_gettid			6178 | ||
| 180 | #define __NR_readahead			6179 | ||
| 181 | #define __NR_setxattr			6180 | ||
| 182 | #define __NR_lsetxattr			6181 | ||
| 183 | #define __NR_fsetxattr			6182 | ||
| 184 | #define __NR_getxattr			6183 | ||
| 185 | #define __NR_lgetxattr			6184 | ||
| 186 | #define __NR_fgetxattr			6185 | ||
| 187 | #define __NR_listxattr			6186 | ||
| 188 | #define __NR_llistxattr			6187 | ||
| 189 | #define __NR_flistxattr			6188 | ||
| 190 | #define __NR_removexattr		6189 | ||
| 191 | #define __NR_lremovexattr		6190 | ||
| 192 | #define __NR_fremovexattr		6191 | ||
| 193 | #define __NR_tkill			6192 | ||
| 194 | #define __NR_reserved193		6193 | ||
| 195 | #define __NR_futex			6194 | ||
| 196 | #define __NR_sched_setaffinity		6195 | ||
| 197 | #define __NR_sched_getaffinity		6196 | ||
| 198 | #define __NR_cacheflush			6197 | ||
| 199 | #define __NR_cachectl			6198 | ||
| 200 | #define __NR_sysmips			6199 | ||
| 201 | #define __NR_io_setup			6200 | ||
| 202 | #define __NR_io_destroy			6201 | ||
| 203 | #define __NR_io_getevents		6202 | ||
| 204 | #define __NR_io_submit			6203 | ||
| 205 | #define __NR_io_cancel			6204 | ||
| 206 | #define __NR_exit_group			6205 | ||
| 207 | #define __NR_lookup_dcookie		6206 | ||
| 208 | #define __NR_epoll_create		6207 | ||
| 209 | #define __NR_epoll_ctl			6208 | ||
| 210 | #define __NR_epoll_wait			6209 | ||
| 211 | #define __NR_remap_file_pages		6210 | ||
| 212 | #define __NR_rt_sigreturn		6211 | ||
| 213 | #define __NR_fcntl64			6212 | ||
| 214 | #define __NR_set_tid_address		6213 | ||
| 215 | #define __NR_restart_syscall		6214 | ||
| 216 | #define __NR_semtimedop			6215 | ||
| 217 | #define __NR_fadvise64			6216 | ||
| 218 | #define __NR_statfs64			6217 | ||
| 219 | #define __NR_fstatfs64			6218 | ||
| 220 | #define __NR_sendfile64			6219 | ||
| 221 | #define __NR_timer_create		6220 | ||
| 222 | #define __NR_timer_settime32		6221 | ||
| 223 | #define __NR_timer_gettime32		6222 | ||
| 224 | #define __NR_timer_getoverrun		6223 | ||
| 225 | #define __NR_timer_delete		6224 | ||
| 226 | #define __NR_clock_settime32		6225 | ||
| 227 | #define __NR_clock_gettime32		6226 | ||
| 228 | #define __NR_clock_getres_time32		6227 | ||
| 229 | #define __NR_clock_nanosleep_time32		6228 | ||
| 230 | #define __NR_tgkill			6229 | ||
| 231 | #define __NR_utimes			6230 | ||
| 232 | #define __NR_mbind			6231 | ||
| 233 | #define __NR_get_mempolicy		6232 | ||
| 234 | #define __NR_set_mempolicy		6233 | ||
| 235 | #define __NR_mq_open			6234 | ||
| 236 | #define __NR_mq_unlink			6235 | ||
| 237 | #define __NR_mq_timedsend		6236 | ||
| 238 | #define __NR_mq_timedreceive		6237 | ||
| 239 | #define __NR_mq_notify			6238 | ||
| 240 | #define __NR_mq_getsetattr		6239 | ||
| 241 | #define __NR_vserver			6240 | ||
| 242 | #define __NR_waitid			6241 | ||
| 243 | #define __NR_add_key			6243 | ||
| 244 | #define __NR_request_key		6244 | ||
| 245 | #define __NR_keyctl			6245 | ||
| 246 | #define __NR_set_thread_area		6246 | ||
| 247 | #define __NR_inotify_init		6247 | ||
| 248 | #define __NR_inotify_add_watch		6248 | ||
| 249 | #define __NR_inotify_rm_watch		6249 | ||
| 250 | #define __NR_migrate_pages		6250 | ||
| 251 | #define __NR_openat			6251 | ||
| 252 | #define __NR_mkdirat			6252 | ||
| 253 | #define __NR_mknodat			6253 | ||
| 254 | #define __NR_fchownat			6254 | ||
| 255 | #define __NR_futimesat			6255 | ||
| 256 | #define __NR_newfstatat			6256 | ||
| 257 | #define __NR_unlinkat			6257 | ||
| 258 | #define __NR_renameat			6258 | ||
| 259 | #define __NR_linkat			6259 | ||
| 260 | #define __NR_symlinkat			6260 | ||
| 261 | #define __NR_readlinkat			6261 | ||
| 262 | #define __NR_fchmodat			6262 | ||
| 263 | #define __NR_faccessat			6263 | ||
| 264 | #define __NR_pselect6			6264 | ||
| 265 | #define __NR_ppoll			6265 | ||
| 266 | #define __NR_unshare			6266 | ||
| 267 | #define __NR_splice			6267 | ||
| 268 | #define __NR_sync_file_range		6268 | ||
| 269 | #define __NR_tee			6269 | ||
| 270 | #define __NR_vmsplice			6270 | ||
| 271 | #define __NR_move_pages			6271 | ||
| 272 | #define __NR_set_robust_list		6272 | ||
| 273 | #define __NR_get_robust_list		6273 | ||
| 274 | #define __NR_kexec_load			6274 | ||
| 275 | #define __NR_getcpu			6275 | ||
| 276 | #define __NR_epoll_pwait		6276 | ||
| 277 | #define __NR_ioprio_set			6277 | ||
| 278 | #define __NR_ioprio_get			6278 | ||
| 279 | #define __NR_utimensat			6279 | ||
| 280 | #define __NR_signalfd			6280 | ||
| 281 | #define __NR_timerfd			6281 | ||
| 282 | #define __NR_eventfd			6282 | ||
| 283 | #define __NR_fallocate			6283 | ||
| 284 | #define __NR_timerfd_create		6284 | ||
| 285 | #define __NR_timerfd_gettime32		6285 | ||
| 286 | #define __NR_timerfd_settime32		6286 | ||
| 287 | #define __NR_signalfd4			6287 | ||
| 288 | #define __NR_eventfd2			6288 | ||
| 289 | #define __NR_epoll_create1		6289 | ||
| 290 | #define __NR_dup3			6290 | ||
| 291 | #define __NR_pipe2			6291 | ||
| 292 | #define __NR_inotify_init1		6292 | ||
| 293 | #define __NR_preadv			6293 | ||
| 294 | #define __NR_pwritev			6294 | ||
| 295 | #define __NR_rt_tgsigqueueinfo		6295 | ||
| 296 | #define __NR_perf_event_open		6296 | ||
| 297 | #define __NR_accept4			6297 | ||
| 298 | #define __NR_recvmmsg			6298 | ||
| 299 | #define __NR_getdents64			6299 | ||
| 300 | #define __NR_fanotify_init		6300 | ||
| 301 | #define __NR_fanotify_mark		6301 | ||
| 302 | #define __NR_prlimit64			6302 | ||
| 303 | #define __NR_name_to_handle_at		6303 | ||
| 304 | #define __NR_open_by_handle_at		6304 | ||
| 305 | #define __NR_clock_adjtime		6305 | ||
| 306 | #define __NR_syncfs			6306 | ||
| 307 | #define __NR_sendmmsg			6307 | ||
| 308 | #define __NR_setns			6308 | ||
| 309 | #define __NR_process_vm_readv		6309 | ||
| 310 | #define __NR_process_vm_writev		6310 | ||
| 311 | #define __NR_kcmp			6311 | ||
| 312 | #define __NR_finit_module		6312 | ||
| 313 | #define __NR_sched_setattr		6313 | ||
| 314 | #define __NR_sched_getattr		6314 | ||
| 315 | #define __NR_renameat2			6315 | ||
| 316 | #define __NR_seccomp			6316 | ||
| 317 | #define __NR_getrandom			6317 | ||
| 318 | #define __NR_memfd_create		6318 | ||
| 319 | #define __NR_bpf			6319 | ||
| 320 | #define __NR_execveat			6320 | ||
| 321 | #define __NR_userfaultfd		6321 | ||
| 322 | #define __NR_membarrier			6322 | ||
| 323 | #define __NR_mlock2			6323 | ||
| 324 | #define __NR_copy_file_range		6324 | ||
| 325 | #define __NR_preadv2			6325 | ||
| 326 | #define __NR_pwritev2			6326 | ||
| 327 | #define __NR_pkey_mprotect		6327 | ||
| 328 | #define __NR_pkey_alloc			6328 | ||
| 329 | #define __NR_pkey_free			6329 | ||
| 330 | #define __NR_statx			6330 | ||
| 331 | #define __NR_rseq			6331 | ||
| 332 | #define __NR_io_pgetevents		6332 | ||
| 333 | #define __NR_clock_gettime64		6403 | ||
| 334 | #define __NR_clock_settime64		6404 | ||
| 335 | #define __NR_clock_adjtime64		6405 | ||
| 336 | #define __NR_clock_getres_time64	6406 | ||
| 337 | #define __NR_clock_nanosleep_time64	6407 | ||
| 338 | #define __NR_timer_gettime64		6408 | ||
| 339 | #define __NR_timer_settime64		6409 | ||
| 340 | #define __NR_timerfd_gettime64		6410 | ||
| 341 | #define __NR_timerfd_settime64		6411 | ||
| 342 | #define __NR_utimensat_time64		6412 | ||
| 343 | #define __NR_pselect6_time64		6413 | ||
| 344 | #define __NR_ppoll_time64		6414 | ||
| 345 | #define __NR_io_pgetevents_time64	6416 | ||
| 346 | #define __NR_recvmmsg_time64		6417 | ||
| 347 | #define __NR_mq_timedsend_time64	6418 | ||
| 348 | #define __NR_mq_timedreceive_time64	6419 | ||
| 349 | #define __NR_semtimedop_time64		6420 | ||
| 350 | #define __NR_rt_sigtimedwait_time64	6421 | ||
| 351 | #define __NR_futex_time64		6422 | ||
| 352 | #define __NR_sched_rr_get_interval_time64 6423 | ||
| 353 | #define __NR_pidfd_send_signal		6424 | ||
| 354 | #define __NR_io_uring_setup		6425 | ||
| 355 | #define __NR_io_uring_enter		6426 | ||
| 356 | #define __NR_io_uring_register		6427 | ||
| 357 | #define __NR_open_tree		6428 | ||
| 358 | #define __NR_move_mount		6429 | ||
| 359 | #define __NR_fsopen		6430 | ||
| 360 | #define __NR_fsconfig		6431 | ||
| 361 | #define __NR_fsmount		6432 | ||
| 362 | #define __NR_fspick		6433 | ||
| 363 | #define __NR_pidfd_open		6434 | ||
| 364 | #define __NR_clone3		6435 | ||
| 365 | #define __NR_close_range	6436 | ||
| 366 | #define __NR_openat2		6437 | ||
| 367 | #define __NR_pidfd_getfd	6438 | ||
| 368 | #define __NR_faccessat2		6439 | ||
| 369 | #define __NR_process_madvise	6440 | ||
| 370 | #define __NR_epoll_pwait2	6441 | ||
| 371 | #define __NR_mount_setattr	6442 | ||
| 372 | #define __NR_landlock_create_ruleset	6444 | ||
| 373 | #define __NR_landlock_add_rule	6445 | ||
| 374 | #define __NR_landlock_restrict_self	6446 | ||
| 375 | #define __NR_process_mrelease	6448 | ||
| 376 | #define __NR_futex_waitv	6449 | ||
| 377 | #define __NR_set_mempolicy_home_node	6450 | ||
| 378 | #define __NR_cachestat		6451 | ||
| 379 | #define __NR_fchmodat2		6452 | ||
| 380 | |||
| 381 | #define SYS_read			6000 | ||
| 382 | #define SYS_write			6001 | ||
| 383 | #define SYS_open			6002 | ||
| 384 | #define SYS_close			6003 | ||
| 385 | #define SYS_stat			6004 | ||
| 386 | #define SYS_fstat			6005 | ||
| 387 | #define SYS_lstat			6006 | ||
| 388 | #define SYS_poll			6007 | ||
| 389 | #define SYS_lseek			6008 | ||
| 390 | #define SYS_mmap			6009 | ||
| 391 | #define SYS_mprotect			6010 | ||
| 392 | #define SYS_munmap			6011 | ||
| 393 | #define SYS_brk			6012 | ||
| 394 | #define SYS_rt_sigaction		6013 | ||
| 395 | #define SYS_rt_sigprocmask		6014 | ||
| 396 | #define SYS_ioctl			6015 | ||
| 397 | #define SYS_pread64			6016 | ||
| 398 | #define SYS_pwrite64			6017 | ||
| 399 | #define SYS_readv			6018 | ||
| 400 | #define SYS_writev			6019 | ||
| 401 | #define SYS_access			6020 | ||
| 402 | #define SYS_pipe			6021 | ||
| 403 | #define SYS__newselect			6022 | ||
| 404 | #define SYS_sched_yield		6023 | ||
| 405 | #define SYS_mremap			6024 | ||
| 406 | #define SYS_msync			6025 | ||
| 407 | #define SYS_mincore			6026 | ||
| 408 | #define SYS_madvise			6027 | ||
| 409 | #define SYS_shmget			6028 | ||
| 410 | #define SYS_shmat			6029 | ||
| 411 | #define SYS_shmctl			6030 | ||
| 412 | #define SYS_dup			6031 | ||
| 413 | #define SYS_dup2			6032 | ||
| 414 | #define SYS_pause			6033 | ||
| 415 | #define SYS_nanosleep			6034 | ||
| 416 | #define SYS_getitimer			6035 | ||
| 417 | #define SYS_setitimer			6036 | ||
| 418 | #define SYS_alarm			6037 | ||
| 419 | #define SYS_getpid			6038 | ||
| 420 | #define SYS_sendfile			6039 | ||
| 421 | #define SYS_socket			6040 | ||
| 422 | #define SYS_connect			6041 | ||
| 423 | #define SYS_accept			6042 | ||
| 424 | #define SYS_sendto			6043 | ||
| 425 | #define SYS_recvfrom			6044 | ||
| 426 | #define SYS_sendmsg			6045 | ||
| 427 | #define SYS_recvmsg			6046 | ||
| 428 | #define SYS_shutdown			6047 | ||
| 429 | #define SYS_bind			6048 | ||
| 430 | #define SYS_listen			6049 | ||
| 431 | #define SYS_getsockname		6050 | ||
| 432 | #define SYS_getpeername		6051 | ||
| 433 | #define SYS_socketpair			6052 | ||
| 434 | #define SYS_setsockopt			6053 | ||
| 435 | #define SYS_getsockopt			6054 | ||
| 436 | #define SYS_clone			6055 | ||
| 437 | #define SYS_fork			6056 | ||
| 438 | #define SYS_execve			6057 | ||
| 439 | #define SYS_exit			6058 | ||
| 440 | #define SYS_wait4			6059 | ||
| 441 | #define SYS_kill			6060 | ||
| 442 | #define SYS_uname			6061 | ||
| 443 | #define SYS_semget			6062 | ||
| 444 | #define SYS_semop			6063 | ||
| 445 | #define SYS_semctl			6064 | ||
| 446 | #define SYS_shmdt			6065 | ||
| 447 | #define SYS_msgget			6066 | ||
| 448 | #define SYS_msgsnd			6067 | ||
| 449 | #define SYS_msgrcv			6068 | ||
| 450 | #define SYS_msgctl			6069 | ||
| 451 | #define SYS_fcntl			6070 | ||
| 452 | #define SYS_flock			6071 | ||
| 453 | #define SYS_fsync			6072 | ||
| 454 | #define SYS_fdatasync			6073 | ||
| 455 | #define SYS_truncate			6074 | ||
| 456 | #define SYS_ftruncate			6075 | ||
| 457 | #define SYS_getdents			6076 | ||
| 458 | #define SYS_getcwd			6077 | ||
| 459 | #define SYS_chdir			6078 | ||
| 460 | #define SYS_fchdir			6079 | ||
| 461 | #define SYS_rename			6080 | ||
| 462 | #define SYS_mkdir			6081 | ||
| 463 | #define SYS_rmdir			6082 | ||
| 464 | #define SYS_creat			6083 | ||
| 465 | #define SYS_link			6084 | ||
| 466 | #define SYS_unlink			6085 | ||
| 467 | #define SYS_symlink			6086 | ||
| 468 | #define SYS_readlink			6087 | ||
| 469 | #define SYS_chmod			6088 | ||
| 470 | #define SYS_fchmod			6089 | ||
| 471 | #define SYS_chown			6090 | ||
| 472 | #define SYS_fchown			6091 | ||
| 473 | #define SYS_lchown			6092 | ||
| 474 | #define SYS_umask			6093 | ||
| 475 | #define SYS_gettimeofday_time32		6094 | ||
| 476 | #define SYS_getrlimit			6095 | ||
| 477 | #define SYS_getrusage			6096 | ||
| 478 | #define SYS_sysinfo			6097 | ||
| 479 | #define SYS_times			6098 | ||
| 480 | #define SYS_ptrace			6099 | ||
| 481 | #define SYS_getuid			6100 | ||
| 482 | #define SYS_syslog			6101 | ||
| 483 | #define SYS_getgid			6102 | ||
| 484 | #define SYS_setuid			6103 | ||
| 485 | #define SYS_setgid			6104 | ||
| 486 | #define SYS_geteuid			6105 | ||
| 487 | #define SYS_getegid			6106 | ||
| 488 | #define SYS_setpgid			6107 | ||
| 489 | #define SYS_getppid			6108 | ||
| 490 | #define SYS_getpgrp			6109 | ||
| 491 | #define SYS_setsid			6110 | ||
| 492 | #define SYS_setreuid			6111 | ||
| 493 | #define SYS_setregid			6112 | ||
| 494 | #define SYS_getgroups			6113 | ||
| 495 | #define SYS_setgroups			6114 | ||
| 496 | #define SYS_setresuid			6115 | ||
| 497 | #define SYS_getresuid			6116 | ||
| 498 | #define SYS_setresgid			6117 | ||
| 499 | #define SYS_getresgid			6118 | ||
| 500 | #define SYS_getpgid			6119 | ||
| 501 | #define SYS_setfsuid			6120 | ||
| 502 | #define SYS_setfsgid			6121 | ||
| 503 | #define SYS_getsid			6122 | ||
| 504 | #define SYS_capget			6123 | ||
| 505 | #define SYS_capset			6124 | ||
| 506 | #define SYS_rt_sigpending		6125 | ||
| 507 | #define SYS_rt_sigtimedwait		6126 | ||
| 508 | #define SYS_rt_sigqueueinfo		6127 | ||
| 509 | #define SYS_rt_sigsuspend		6128 | ||
| 510 | #define SYS_sigaltstack		6129 | ||
| 511 | #define SYS_utime			6130 | ||
| 512 | #define SYS_mknod			6131 | ||
| 513 | #define SYS_personality		6132 | ||
| 514 | #define SYS_ustat			6133 | ||
| 515 | #define SYS_statfs			6134 | ||
| 516 | #define SYS_fstatfs			6135 | ||
| 517 | #define SYS_sysfs			6136 | ||
| 518 | #define SYS_getpriority		6137 | ||
| 519 | #define SYS_setpriority		6138 | ||
| 520 | #define SYS_sched_setparam		6139 | ||
| 521 | #define SYS_sched_getparam		6140 | ||
| 522 | #define SYS_sched_setscheduler		6141 | ||
| 523 | #define SYS_sched_getscheduler		6142 | ||
| 524 | #define SYS_sched_get_priority_max	6143 | ||
| 525 | #define SYS_sched_get_priority_min	6144 | ||
| 526 | #define SYS_sched_rr_get_interval	6145 | ||
| 527 | #define SYS_mlock			6146 | ||
| 528 | #define SYS_munlock			6147 | ||
| 529 | #define SYS_mlockall			6148 | ||
| 530 | #define SYS_munlockall			6149 | ||
| 531 | #define SYS_vhangup			6150 | ||
| 532 | #define SYS_pivot_root			6151 | ||
| 533 | #define SYS__sysctl			6152 | ||
| 534 | #define SYS_prctl			6153 | ||
| 535 | #define SYS_adjtimex			6154 | ||
| 536 | #define SYS_setrlimit			6155 | ||
| 537 | #define SYS_chroot			6156 | ||
| 538 | #define SYS_sync			6157 | ||
| 539 | #define SYS_acct			6158 | ||
| 540 | #define SYS_settimeofday_time32		6159 | ||
| 541 | #define SYS_mount			6160 | ||
| 542 | #define SYS_umount2			6161 | ||
| 543 | #define SYS_swapon			6162 | ||
| 544 | #define SYS_swapoff			6163 | ||
| 545 | #define SYS_reboot			6164 | ||
| 546 | #define SYS_sethostname		6165 | ||
| 547 | #define SYS_setdomainname		6166 | ||
| 548 | #define SYS_create_module		6167 | ||
| 549 | #define SYS_init_module		6168 | ||
| 550 | #define SYS_delete_module		6169 | ||
| 551 | #define SYS_get_kernel_syms		6170 | ||
| 552 | #define SYS_query_module		6171 | ||
| 553 | #define SYS_quotactl			6172 | ||
| 554 | #define SYS_nfsservctl			6173 | ||
| 555 | #define SYS_getpmsg			6174 | ||
| 556 | #define SYS_putpmsg			6175 | ||
| 557 | #define SYS_afs_syscall		6176 | ||
| 558 | #define SYS_reserved177		6177 | ||
| 559 | #define SYS_gettid			6178 | ||
| 560 | #define SYS_readahead			6179 | ||
| 561 | #define SYS_setxattr			6180 | ||
| 562 | #define SYS_lsetxattr			6181 | ||
| 563 | #define SYS_fsetxattr			6182 | ||
| 564 | #define SYS_getxattr			6183 | ||
| 565 | #define SYS_lgetxattr			6184 | ||
| 566 | #define SYS_fgetxattr			6185 | ||
| 567 | #define SYS_listxattr			6186 | ||
| 568 | #define SYS_llistxattr			6187 | ||
| 569 | #define SYS_flistxattr			6188 | ||
| 570 | #define SYS_removexattr		6189 | ||
| 571 | #define SYS_lremovexattr		6190 | ||
| 572 | #define SYS_fremovexattr		6191 | ||
| 573 | #define SYS_tkill			6192 | ||
| 574 | #define SYS_reserved193		6193 | ||
| 575 | #define SYS_futex			6194 | ||
| 576 | #define SYS_sched_setaffinity		6195 | ||
| 577 | #define SYS_sched_getaffinity		6196 | ||
| 578 | #define SYS_cacheflush			6197 | ||
| 579 | #define SYS_cachectl			6198 | ||
| 580 | #define SYS_sysmips			6199 | ||
| 581 | #define SYS_io_setup			6200 | ||
| 582 | #define SYS_io_destroy			6201 | ||
| 583 | #define SYS_io_getevents		6202 | ||
| 584 | #define SYS_io_submit			6203 | ||
| 585 | #define SYS_io_cancel			6204 | ||
| 586 | #define SYS_exit_group			6205 | ||
| 587 | #define SYS_lookup_dcookie		6206 | ||
| 588 | #define SYS_epoll_create		6207 | ||
| 589 | #define SYS_epoll_ctl			6208 | ||
| 590 | #define SYS_epoll_wait			6209 | ||
| 591 | #define SYS_remap_file_pages		6210 | ||
| 592 | #define SYS_rt_sigreturn		6211 | ||
| 593 | #define SYS_fcntl64			6212 | ||
| 594 | #define SYS_set_tid_address		6213 | ||
| 595 | #define SYS_restart_syscall		6214 | ||
| 596 | #define SYS_semtimedop			6215 | ||
| 597 | #define SYS_fadvise64			6216 | ||
| 598 | #define SYS_statfs64			6217 | ||
| 599 | #define SYS_fstatfs64			6218 | ||
| 600 | #define SYS_sendfile64			6219 | ||
| 601 | #define SYS_timer_create		6220 | ||
| 602 | #define SYS_timer_settime32		6221 | ||
| 603 | #define SYS_timer_gettime32		6222 | ||
| 604 | #define SYS_timer_getoverrun		6223 | ||
| 605 | #define SYS_timer_delete		6224 | ||
| 606 | #define SYS_clock_settime32		6225 | ||
| 607 | #define SYS_clock_gettime32		6226 | ||
| 608 | #define SYS_clock_getres_time32		6227 | ||
| 609 | #define SYS_clock_nanosleep_time32		6228 | ||
| 610 | #define SYS_tgkill			6229 | ||
| 611 | #define SYS_utimes			6230 | ||
| 612 | #define SYS_mbind			6231 | ||
| 613 | #define SYS_get_mempolicy		6232 | ||
| 614 | #define SYS_set_mempolicy		6233 | ||
| 615 | #define SYS_mq_open			6234 | ||
| 616 | #define SYS_mq_unlink			6235 | ||
| 617 | #define SYS_mq_timedsend		6236 | ||
| 618 | #define SYS_mq_timedreceive		6237 | ||
| 619 | #define SYS_mq_notify			6238 | ||
| 620 | #define SYS_mq_getsetattr		6239 | ||
| 621 | #define SYS_vserver			6240 | ||
| 622 | #define SYS_waitid			6241 | ||
| 623 | #define SYS_add_key			6243 | ||
| 624 | #define SYS_request_key		6244 | ||
| 625 | #define SYS_keyctl			6245 | ||
| 626 | #define SYS_set_thread_area		6246 | ||
| 627 | #define SYS_inotify_init		6247 | ||
| 628 | #define SYS_inotify_add_watch		6248 | ||
| 629 | #define SYS_inotify_rm_watch		6249 | ||
| 630 | #define SYS_migrate_pages		6250 | ||
| 631 | #define SYS_openat			6251 | ||
| 632 | #define SYS_mkdirat			6252 | ||
| 633 | #define SYS_mknodat			6253 | ||
| 634 | #define SYS_fchownat			6254 | ||
| 635 | #define SYS_futimesat			6255 | ||
| 636 | #define SYS_newfstatat			6256 | ||
| 637 | #define SYS_unlinkat			6257 | ||
| 638 | #define SYS_renameat			6258 | ||
| 639 | #define SYS_linkat			6259 | ||
| 640 | #define SYS_symlinkat			6260 | ||
| 641 | #define SYS_readlinkat			6261 | ||
| 642 | #define SYS_fchmodat			6262 | ||
| 643 | #define SYS_faccessat			6263 | ||
| 644 | #define SYS_pselect6			6264 | ||
| 645 | #define SYS_ppoll			6265 | ||
| 646 | #define SYS_unshare			6266 | ||
| 647 | #define SYS_splice			6267 | ||
| 648 | #define SYS_sync_file_range		6268 | ||
| 649 | #define SYS_tee			6269 | ||
| 650 | #define SYS_vmsplice			6270 | ||
| 651 | #define SYS_move_pages			6271 | ||
| 652 | #define SYS_set_robust_list		6272 | ||
| 653 | #define SYS_get_robust_list		6273 | ||
| 654 | #define SYS_kexec_load			6274 | ||
| 655 | #define SYS_getcpu			6275 | ||
| 656 | #define SYS_epoll_pwait		6276 | ||
| 657 | #define SYS_ioprio_set			6277 | ||
| 658 | #define SYS_ioprio_get			6278 | ||
| 659 | #define SYS_utimensat			6279 | ||
| 660 | #define SYS_signalfd			6280 | ||
| 661 | #define SYS_timerfd			6281 | ||
| 662 | #define SYS_eventfd			6282 | ||
| 663 | #define SYS_fallocate			6283 | ||
| 664 | #define SYS_timerfd_create		6284 | ||
| 665 | #define SYS_timerfd_gettime32		6285 | ||
| 666 | #define SYS_timerfd_settime32		6286 | ||
| 667 | #define SYS_signalfd4			6287 | ||
| 668 | #define SYS_eventfd2			6288 | ||
| 669 | #define SYS_epoll_create1		6289 | ||
| 670 | #define SYS_dup3			6290 | ||
| 671 | #define SYS_pipe2			6291 | ||
| 672 | #define SYS_inotify_init1		6292 | ||
| 673 | #define SYS_preadv			6293 | ||
| 674 | #define SYS_pwritev			6294 | ||
| 675 | #define SYS_rt_tgsigqueueinfo		6295 | ||
| 676 | #define SYS_perf_event_open		6296 | ||
| 677 | #define SYS_accept4			6297 | ||
| 678 | #define SYS_recvmmsg			6298 | ||
| 679 | #define SYS_getdents64			6299 | ||
| 680 | #define SYS_fanotify_init		6300 | ||
| 681 | #define SYS_fanotify_mark		6301 | ||
| 682 | #define SYS_prlimit64			6302 | ||
| 683 | #define SYS_name_to_handle_at		6303 | ||
| 684 | #define SYS_open_by_handle_at		6304 | ||
| 685 | #define SYS_clock_adjtime		6305 | ||
| 686 | #define SYS_syncfs			6306 | ||
| 687 | #define SYS_sendmmsg			6307 | ||
| 688 | #define SYS_setns			6308 | ||
| 689 | #define SYS_process_vm_readv		6309 | ||
| 690 | #define SYS_process_vm_writev		6310 | ||
| 691 | #define SYS_kcmp			6311 | ||
| 692 | #define SYS_finit_module		6312 | ||
| 693 | #define SYS_sched_setattr		6313 | ||
| 694 | #define SYS_sched_getattr		6314 | ||
| 695 | #define SYS_renameat2			6315 | ||
| 696 | #define SYS_seccomp			6316 | ||
| 697 | #define SYS_getrandom			6317 | ||
| 698 | #define SYS_memfd_create		6318 | ||
| 699 | #define SYS_bpf			6319 | ||
| 700 | #define SYS_execveat			6320 | ||
| 701 | #define SYS_userfaultfd		6321 | ||
| 702 | #define SYS_membarrier			6322 | ||
| 703 | #define SYS_mlock2			6323 | ||
| 704 | #define SYS_copy_file_range		6324 | ||
| 705 | #define SYS_preadv2			6325 | ||
| 706 | #define SYS_pwritev2			6326 | ||
| 707 | #define SYS_pkey_mprotect		6327 | ||
| 708 | #define SYS_pkey_alloc			6328 | ||
| 709 | #define SYS_pkey_free			6329 | ||
| 710 | #define SYS_statx			6330 | ||
| 711 | #define SYS_rseq			6331 | ||
| 712 | #define SYS_io_pgetevents		6332 | ||
| 713 | #define SYS_clock_gettime64		6403 | ||
| 714 | #define SYS_clock_settime64		6404 | ||
| 715 | #define SYS_clock_adjtime64		6405 | ||
| 716 | #define SYS_clock_getres_time64	6406 | ||
| 717 | #define SYS_clock_nanosleep_time64	6407 | ||
| 718 | #define SYS_timer_gettime64		6408 | ||
| 719 | #define SYS_timer_settime64		6409 | ||
| 720 | #define SYS_timerfd_gettime64		6410 | ||
| 721 | #define SYS_timerfd_settime64		6411 | ||
| 722 | #define SYS_utimensat_time64		6412 | ||
| 723 | #define SYS_pselect6_time64		6413 | ||
| 724 | #define SYS_ppoll_time64		6414 | ||
| 725 | #define SYS_io_pgetevents_time64	6416 | ||
| 726 | #define SYS_recvmmsg_time64		6417 | ||
| 727 | #define SYS_mq_timedsend_time64	6418 | ||
| 728 | #define SYS_mq_timedreceive_time64	6419 | ||
| 729 | #define SYS_semtimedop_time64		6420 | ||
| 730 | #define SYS_rt_sigtimedwait_time64	6421 | ||
| 731 | #define SYS_futex_time64		6422 | ||
| 732 | #define SYS_sched_rr_get_interval_time64 6423 | ||
| 733 | #define SYS_pidfd_send_signal		6424 | ||
| 734 | #define SYS_io_uring_setup		6425 | ||
| 735 | #define SYS_io_uring_enter		6426 | ||
| 736 | #define SYS_io_uring_register		6427 | ||
| 737 | #define SYS_open_tree		6428 | ||
| 738 | #define SYS_move_mount		6429 | ||
| 739 | #define SYS_fsopen		6430 | ||
| 740 | #define SYS_fsconfig		6431 | ||
| 741 | #define SYS_fsmount		6432 | ||
| 742 | #define SYS_fspick		6433 | ||
| 743 | #define SYS_pidfd_open		6434 | ||
| 744 | #define SYS_clone3		6435 | ||
| 745 | #define SYS_close_range	6436 | ||
| 746 | #define SYS_openat2		6437 | ||
| 747 | #define SYS_pidfd_getfd	6438 | ||
| 748 | #define SYS_faccessat2		6439 | ||
| 749 | #define SYS_process_madvise	6440 | ||
| 750 | #define SYS_epoll_pwait2	6441 | ||
| 751 | #define SYS_mount_setattr	6442 | ||
| 752 | #define SYS_landlock_create_ruleset	6444 | ||
| 753 | #define SYS_landlock_add_rule	6445 | ||
| 754 | #define SYS_landlock_restrict_self	6446 | ||
| 755 | #define SYS_process_mrelease	6448 | ||
| 756 | #define SYS_futex_waitv	6449 | ||
| 757 | #define SYS_set_mempolicy_home_node	6450 | ||
| 758 | #define SYS_cachestat		6451 | ||
| 759 | #define SYS_fchmodat2		6452 | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/termios.h created+169| ... | @@ -0,0 +1,169 @@ | ||
| 1 | struct termios { | ||
| 2 | 	tcflag_t c_iflag; | ||
| 3 | 	tcflag_t c_oflag; | ||
| 4 | 	tcflag_t c_cflag; | ||
| 5 | 	tcflag_t c_lflag; | ||
| 6 | 	cc_t c_line; | ||
| 7 | 	cc_t c_cc[NCCS]; | ||
| 8 | 	speed_t __c_ispeed; | ||
| 9 | 	speed_t __c_ospeed; | ||
| 10 | }; | ||
| 11 | |||
| 12 | #define VINTR 0 | ||
| 13 | #define VQUIT 1 | ||
| 14 | #define VERASE 2 | ||
| 15 | #define VKILL 3 | ||
| 16 | #define VMIN 4 | ||
| 17 | #define VTIME 5 | ||
| 18 | #define VEOL2 6 | ||
| 19 | #define VSWTC 7 | ||
| 20 | #define VSWTCH 7 | ||
| 21 | #define VSTART 8 | ||
| 22 | #define VSTOP 9 | ||
| 23 | #define VSUSP 10 | ||
| 24 | #define VREPRINT 12 | ||
| 25 | #define VDISCARD 13 | ||
| 26 | #define VWERASE 14 | ||
| 27 | #define VLNEXT 15 | ||
| 28 | #define VEOF 16 | ||
| 29 | #define VEOL 17 | ||
| 30 | |||
| 31 | #define IGNBRK 0000001 | ||
| 32 | #define BRKINT 0000002 | ||
| 33 | #define IGNPAR 0000004 | ||
| 34 | #define PARMRK 0000010 | ||
| 35 | #define INPCK 0000020 | ||
| 36 | #define ISTRIP 0000040 | ||
| 37 | #define INLCR 0000100 | ||
| 38 | #define IGNCR 0000200 | ||
| 39 | #define ICRNL 0000400 | ||
| 40 | #define IUCLC 0001000 | ||
| 41 | #define IXON 0002000 | ||
| 42 | #define IXANY 0004000 | ||
| 43 | #define IXOFF 0010000 | ||
| 44 | #define IMAXBEL 0020000 | ||
| 45 | #define IUTF8 0040000 | ||
| 46 | |||
| 47 | #define OPOST 0000001 | ||
| 48 | #define OLCUC 0000002 | ||
| 49 | #define ONLCR 0000004 | ||
| 50 | #define OCRNL 0000010 | ||
| 51 | #define ONOCR 0000020 | ||
| 52 | #define ONLRET 0000040 | ||
| 53 | #define OFILL 0000100 | ||
| 54 | #define OFDEL 0000200 | ||
| 55 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_XOPEN_SOURCE) | ||
| 56 | #define NLDLY 0000400 | ||
| 57 | #define NL0 0000000 | ||
| 58 | #define NL1 0000400 | ||
| 59 | #define CRDLY 0003000 | ||
| 60 | #define CR0 0000000 | ||
| 61 | #define CR1 0001000 | ||
| 62 | #define CR2 0002000 | ||
| 63 | #define CR3 0003000 | ||
| 64 | #define TABDLY 0014000 | ||
| 65 | #define TAB0 0000000 | ||
| 66 | #define TAB1 0004000 | ||
| 67 | #define TAB2 0010000 | ||
| 68 | #define TAB3 0014000 | ||
| 69 | #define BSDLY 0020000 | ||
| 70 | #define BS0 0000000 | ||
| 71 | #define BS1 0020000 | ||
| 72 | #define FFDLY 0100000 | ||
| 73 | #define FF0 0000000 | ||
| 74 | #define FF1 0100000 | ||
| 75 | #endif | ||
| 76 | |||
| 77 | #define VTDLY 0040000 | ||
| 78 | #define VT0 0000000 | ||
| 79 | #define VT1 0040000 | ||
| 80 | |||
| 81 | #define B0 0000000 | ||
| 82 | #define B50 0000001 | ||
| 83 | #define B75 0000002 | ||
| 84 | #define B110 0000003 | ||
| 85 | #define B134 0000004 | ||
| 86 | #define B150 0000005 | ||
| 87 | #define B200 0000006 | ||
| 88 | #define B300 0000007 | ||
| 89 | #define B600 0000010 | ||
| 90 | #define B1200 0000011 | ||
| 91 | #define B1800 0000012 | ||
| 92 | #define B2400 0000013 | ||
| 93 | #define B4800 0000014 | ||
| 94 | #define B9600 0000015 | ||
| 95 | #define B19200 0000016 | ||
| 96 | #define B38400 0000017 | ||
| 97 | |||
| 98 | #define B57600 0010001 | ||
| 99 | #define B115200 0010002 | ||
| 100 | #define B230400 0010003 | ||
| 101 | #define B460800 0010004 | ||
| 102 | #define B500000 0010005 | ||
| 103 | #define B576000 0010006 | ||
| 104 | #define B921600 0010007 | ||
| 105 | #define B1000000 0010010 | ||
| 106 | #define B1152000 0010011 | ||
| 107 | #define B1500000 0010012 | ||
| 108 | #define B2000000 0010013 | ||
| 109 | #define B2500000 0010014 | ||
| 110 | #define B3000000 0010015 | ||
| 111 | #define B3500000 0010016 | ||
| 112 | #define B4000000 0010017 | ||
| 113 | |||
| 114 | #define CSIZE 0000060 | ||
| 115 | #define CS5 0000000 | ||
| 116 | #define CS6 0000020 | ||
| 117 | #define CS7 0000040 | ||
| 118 | #define CS8 0000060 | ||
| 119 | #define CSTOPB 0000100 | ||
| 120 | #define CREAD 0000200 | ||
| 121 | #define PARENB 0000400 | ||
| 122 | #define PARODD 0001000 | ||
| 123 | #define HUPCL 0002000 | ||
| 124 | #define CLOCAL 0004000 | ||
| 125 | |||
| 126 | #define ISIG 0000001 | ||
| 127 | #define ICANON 0000002 | ||
| 128 | #define ECHO 0000010 | ||
| 129 | #define ECHOE 0000020 | ||
| 130 | #define ECHOK 0000040 | ||
| 131 | #define ECHONL 0000100 | ||
| 132 | #define NOFLSH 0000200 | ||
| 133 | #define IEXTEN 0000400 | ||
| 134 | #define TOSTOP 0100000 | ||
| 135 | #define ITOSTOP 0100000 | ||
| 136 | |||
| 137 | #define TCOOFF 0 | ||
| 138 | #define TCOON 1 | ||
| 139 | #define TCIOFF 2 | ||
| 140 | #define TCION 3 | ||
| 141 | |||
| 142 | #define TCIFLUSH 0 | ||
| 143 | #define TCOFLUSH 1 | ||
| 144 | #define TCIOFLUSH 2 | ||
| 145 | |||
| 146 | #define TCSANOW 0 | ||
| 147 | #define TCSADRAIN 1 | ||
| 148 | #define TCSAFLUSH 2 | ||
| 149 | |||
| 150 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 151 | #define EXTA 0000016 | ||
| 152 | #define EXTB 0000017 | ||
| 153 | #define CBAUD 0010017 | ||
| 154 | #define CBAUDEX 0010000 | ||
| 155 | #define CIBAUD 002003600000 | ||
| 156 | #define CMSPAR 010000000000 | ||
| 157 | #define CRTSCTS 020000000000 | ||
| 158 | |||
| 159 | #define XCASE 0000004 | ||
| 160 | #define ECHOCTL 0001000 | ||
| 161 | #define ECHOPRT 0002000 | ||
| 162 | #define ECHOKE 0004000 | ||
| 163 | #define FLUSHO 0020000 | ||
| 164 | #define PENDIN 0040000 | ||
| 165 | #define EXTPROC 0200000 | ||
| 166 | |||
| 167 | #define XTABS 0014000 | ||
| 168 | #define TIOCSER_TEMT 1 | ||
| 169 | #endif | ||
| \ No newline at end of file | |||
lib/libc/include/mips64-linux-muslabin32/bits/user.h created+15| ... | @@ -0,0 +1,15 @@ | ||
| 1 | struct user { | ||
| 2 | 	unsigned long regs[102]; | ||
| 3 | 	unsigned long u_tsize, u_dsize, u_ssize; | ||
| 4 | 	unsigned long long start_code, start_data, start_stack; | ||
| 5 | 	long long signal; | ||
| 6 | 	unsigned long long *u_ar0; | ||
| 7 | 	unsigned long long magic; | ||
| 8 | 	char u_comm[32]; | ||
| 9 | }; | ||
| 10 | |||
| 11 | #define ELF_NGREG 45 | ||
| 12 | #define ELF_NFPREG 33 | ||
| 13 | |||
| 14 | typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG]; | ||
| 15 | typedef double elf_fpreg_t, elf_fpregset_t[ELF_NFPREG]; | ||
| \ No newline at end of file | |||
lib/libc/include/powerpc64-linux-musl/bits/stdint.h created+20| ... | @@ -0,0 +1,20 @@ | ||
| 1 | typedef int32_t int_fast16_t; | ||
| 2 | typedef int32_t int_fast32_t; | ||
| 3 | typedef uint32_t uint_fast16_t; | ||
| 4 | typedef uint32_t uint_fast32_t; | ||
| 5 | |||
| 6 | #define INT_FAST16_MIN INT32_MIN | ||
| 7 | #define INT_FAST32_MIN INT32_MIN | ||
| 8 | |||
| 9 | #define INT_FAST16_MAX INT32_MAX | ||
| 10 | #define INT_FAST32_MAX INT32_MAX | ||
| 11 | |||
| 12 | #define UINT_FAST16_MAX UINT32_MAX | ||
| 13 | #define UINT_FAST32_MAX UINT32_MAX | ||
| 14 | |||
| 15 | #define INTPTR_MIN INT64_MIN | ||
| 16 | #define INTPTR_MAX INT64_MAX | ||
| 17 | #define UINTPTR_MAX UINT64_MAX | ||
| 18 | #define PTRDIFF_MIN INT64_MIN | ||
| 19 | #define PTRDIFF_MAX INT64_MAX | ||
| 20 | #define SIZE_MAX UINT64_MAX | ||
| \ No newline at end of file | |||
lib/libc/include/riscv32-linux-musl/bits/fenv.h created+17| ... | @@ -0,0 +1,17 @@ | ||
| 1 | #define FE_INVALID 16 | ||
| 2 | #define FE_DIVBYZERO 8 | ||
| 3 | #define FE_OVERFLOW 4 | ||
| 4 | #define FE_UNDERFLOW 2 | ||
| 5 | #define FE_INEXACT 1 | ||
| 6 | |||
| 7 | #define FE_ALL_EXCEPT 31 | ||
| 8 | |||
| 9 | #define FE_TONEAREST 0 | ||
| 10 | #define FE_DOWNWARD 2 | ||
| 11 | #define FE_UPWARD 3 | ||
| 12 | #define FE_TOWARDZERO 1 | ||
| 13 | |||
| 14 | typedef unsigned int fexcept_t; | ||
| 15 | typedef unsigned int fenv_t; | ||
| 16 | |||
| 17 | #define FE_DFL_ENV ((const fenv_t *) -1) | ||
| \ No newline at end of file | |||
lib/libc/include/riscv64-linux-musl/bits/fenv.h created+17| ... | @@ -0,0 +1,17 @@ | ||
| 1 | #define FE_INVALID 16 | ||
| 2 | #define FE_DIVBYZERO 8 | ||
| 3 | #define FE_OVERFLOW 4 | ||
| 4 | #define FE_UNDERFLOW 2 | ||
| 5 | #define FE_INEXACT 1 | ||
| 6 | |||
| 7 | #define FE_ALL_EXCEPT 31 | ||
| 8 | |||
| 9 | #define FE_TONEAREST 0 | ||
| 10 | #define FE_DOWNWARD 2 | ||
| 11 | #define FE_UPWARD 3 | ||
| 12 | #define FE_TOWARDZERO 1 | ||
| 13 | |||
| 14 | typedef unsigned int fexcept_t; | ||
| 15 | typedef unsigned int fenv_t; | ||
| 16 | |||
| 17 | #define FE_DFL_ENV ((const fenv_t *) -1) | ||
| \ No newline at end of file | |||
lib/libc/include/riscv64-linux-musl/bits/stdint.h created+20| ... | @@ -0,0 +1,20 @@ | ||
| 1 | typedef int32_t int_fast16_t; | ||
| 2 | typedef int32_t int_fast32_t; | ||
| 3 | typedef uint32_t uint_fast16_t; | ||
| 4 | typedef uint32_t uint_fast32_t; | ||
| 5 | |||
| 6 | #define INT_FAST16_MIN INT32_MIN | ||
| 7 | #define INT_FAST32_MIN INT32_MIN | ||
| 8 | |||
| 9 | #define INT_FAST16_MAX INT32_MAX | ||
| 10 | #define INT_FAST32_MAX INT32_MAX | ||
| 11 | |||
| 12 | #define UINT_FAST16_MAX UINT32_MAX | ||
| 13 | #define UINT_FAST32_MAX UINT32_MAX | ||
| 14 | |||
| 15 | #define INTPTR_MIN INT64_MIN | ||
| 16 | #define INTPTR_MAX INT64_MAX | ||
| 17 | #define UINTPTR_MAX UINT64_MAX | ||
| 18 | #define PTRDIFF_MIN INT64_MIN | ||
| 19 | #define PTRDIFF_MAX INT64_MAX | ||
| 20 | #define SIZE_MAX UINT64_MAX | ||
| \ No newline at end of file | |||
lib/libc/include/s390x-linux-musl/bits/stdint.h created+20| ... | @@ -0,0 +1,20 @@ | ||
| 1 | typedef int32_t int_fast16_t; | ||
| 2 | typedef int32_t int_fast32_t; | ||
| 3 | typedef uint32_t uint_fast16_t; | ||
| 4 | typedef uint32_t uint_fast32_t; | ||
| 5 | |||
| 6 | #define INT_FAST16_MIN INT32_MIN | ||
| 7 | #define INT_FAST32_MIN INT32_MIN | ||
| 8 | |||
| 9 | #define INT_FAST16_MAX INT32_MAX | ||
| 10 | #define INT_FAST32_MAX INT32_MAX | ||
| 11 | |||
| 12 | #define UINT_FAST16_MAX UINT32_MAX | ||
| 13 | #define UINT_FAST32_MAX UINT32_MAX | ||
| 14 | |||
| 15 | #define INTPTR_MIN INT64_MIN | ||
| 16 | #define INTPTR_MAX INT64_MAX | ||
| 17 | #define UINTPTR_MAX UINT64_MAX | ||
| 18 | #define PTRDIFF_MIN INT64_MIN | ||
| 19 | #define PTRDIFF_MAX INT64_MAX | ||
| 20 | #define SIZE_MAX UINT64_MAX | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-musl/bits/stdint.h created+20| ... | @@ -0,0 +1,20 @@ | ||
| 1 | typedef int32_t int_fast16_t; | ||
| 2 | typedef int32_t int_fast32_t; | ||
| 3 | typedef uint32_t uint_fast16_t; | ||
| 4 | typedef uint32_t uint_fast32_t; | ||
| 5 | |||
| 6 | #define INT_FAST16_MIN INT32_MIN | ||
| 7 | #define INT_FAST32_MIN INT32_MIN | ||
| 8 | |||
| 9 | #define INT_FAST16_MAX INT32_MAX | ||
| 10 | #define INT_FAST32_MAX INT32_MAX | ||
| 11 | |||
| 12 | #define UINT_FAST16_MAX UINT32_MAX | ||
| 13 | #define UINT_FAST32_MAX UINT32_MAX | ||
| 14 | |||
| 15 | #define INTPTR_MIN INT64_MIN | ||
| 16 | #define INTPTR_MAX INT64_MAX | ||
| 17 | #define UINTPTR_MAX UINT64_MAX | ||
| 18 | #define PTRDIFF_MIN INT64_MIN | ||
| 19 | #define PTRDIFF_MAX INT64_MAX | ||
| 20 | #define SIZE_MAX UINT64_MAX | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/alltypes.h created+423| ... | @@ -0,0 +1,423 @@ | ||
| 1 | #define _Addr int | ||
| 2 | #define _Int64 long long | ||
| 3 | #define _Reg long long | ||
| 4 | |||
| 5 | #define __BYTE_ORDER 1234 | ||
| 6 | #define __LONG_MAX 0x7fffffffL | ||
| 7 | |||
| 8 | #ifndef __cplusplus | ||
| 9 | #ifdef __WCHAR_TYPE__ | ||
| 10 | #if defined(__NEED_wchar_t) && !defined(__DEFINED_wchar_t) | ||
| 11 | typedef __WCHAR_TYPE__ wchar_t; | ||
| 12 | #define __DEFINED_wchar_t | ||
| 13 | #endif | ||
| 14 | |||
| 15 | #else | ||
| 16 | #if defined(__NEED_wchar_t) && !defined(__DEFINED_wchar_t) | ||
| 17 | typedef long wchar_t; | ||
| 18 | #define __DEFINED_wchar_t | ||
| 19 | #endif | ||
| 20 | |||
| 21 | #endif | ||
| 22 | #endif | ||
| 23 | |||
| 24 | #if defined(__FLT_EVAL_METHOD__) && __FLT_EVAL_METHOD__ == 2 | ||
| 25 | #if defined(__NEED_float_t) && !defined(__DEFINED_float_t) | ||
| 26 | typedef long double float_t; | ||
| 27 | #define __DEFINED_float_t | ||
| 28 | #endif | ||
| 29 | |||
| 30 | #if defined(__NEED_double_t) && !defined(__DEFINED_double_t) | ||
| 31 | typedef long double double_t; | ||
| 32 | #define __DEFINED_double_t | ||
| 33 | #endif | ||
| 34 | |||
| 35 | #else | ||
| 36 | #if defined(__NEED_float_t) && !defined(__DEFINED_float_t) | ||
| 37 | typedef float float_t; | ||
| 38 | #define __DEFINED_float_t | ||
| 39 | #endif | ||
| 40 | |||
| 41 | #if defined(__NEED_double_t) && !defined(__DEFINED_double_t) | ||
| 42 | typedef double double_t; | ||
| 43 | #define __DEFINED_double_t | ||
| 44 | #endif | ||
| 45 | |||
| 46 | #endif | ||
| 47 | |||
| 48 | #if defined(__NEED_max_align_t) && !defined(__DEFINED_max_align_t) | ||
| 49 | typedef struct { long long __ll; long double __ld; } max_align_t; | ||
| 50 | #define __DEFINED_max_align_t | ||
| 51 | #endif | ||
| 52 | |||
| 53 | #define __LITTLE_ENDIAN 1234 | ||
| 54 | #define __BIG_ENDIAN 4321 | ||
| 55 | #define __USE_TIME_BITS64 1 | ||
| 56 | |||
| 57 | #if defined(__NEED_size_t) && !defined(__DEFINED_size_t) | ||
| 58 | typedef unsigned _Addr size_t; | ||
| 59 | #define __DEFINED_size_t | ||
| 60 | #endif | ||
| 61 | |||
| 62 | #if defined(__NEED_uintptr_t) && !defined(__DEFINED_uintptr_t) | ||
| 63 | typedef unsigned _Addr uintptr_t; | ||
| 64 | #define __DEFINED_uintptr_t | ||
| 65 | #endif | ||
| 66 | |||
| 67 | #if defined(__NEED_ptrdiff_t) && !defined(__DEFINED_ptrdiff_t) | ||
| 68 | typedef _Addr ptrdiff_t; | ||
| 69 | #define __DEFINED_ptrdiff_t | ||
| 70 | #endif | ||
| 71 | |||
| 72 | #if defined(__NEED_ssize_t) && !defined(__DEFINED_ssize_t) | ||
| 73 | typedef _Addr ssize_t; | ||
| 74 | #define __DEFINED_ssize_t | ||
| 75 | #endif | ||
| 76 | |||
| 77 | #if defined(__NEED_intptr_t) && !defined(__DEFINED_intptr_t) | ||
| 78 | typedef _Addr intptr_t; | ||
| 79 | #define __DEFINED_intptr_t | ||
| 80 | #endif | ||
| 81 | |||
| 82 | #if defined(__NEED_regoff_t) && !defined(__DEFINED_regoff_t) | ||
| 83 | typedef _Addr regoff_t; | ||
| 84 | #define __DEFINED_regoff_t | ||
| 85 | #endif | ||
| 86 | |||
| 87 | #if defined(__NEED_register_t) && !defined(__DEFINED_register_t) | ||
| 88 | typedef _Reg register_t; | ||
| 89 | #define __DEFINED_register_t | ||
| 90 | #endif | ||
| 91 | |||
| 92 | #if defined(__NEED_time_t) && !defined(__DEFINED_time_t) | ||
| 93 | typedef _Int64 time_t; | ||
| 94 | #define __DEFINED_time_t | ||
| 95 | #endif | ||
| 96 | |||
| 97 | #if defined(__NEED_suseconds_t) && !defined(__DEFINED_suseconds_t) | ||
| 98 | typedef _Int64 suseconds_t; | ||
| 99 | #define __DEFINED_suseconds_t | ||
| 100 | #endif | ||
| 101 | |||
| 102 | |||
| 103 | #if defined(__NEED_int8_t) && !defined(__DEFINED_int8_t) | ||
| 104 | typedef signed char int8_t; | ||
| 105 | #define __DEFINED_int8_t | ||
| 106 | #endif | ||
| 107 | |||
| 108 | #if defined(__NEED_int16_t) && !defined(__DEFINED_int16_t) | ||
| 109 | typedef signed short int16_t; | ||
| 110 | #define __DEFINED_int16_t | ||
| 111 | #endif | ||
| 112 | |||
| 113 | #if defined(__NEED_int32_t) && !defined(__DEFINED_int32_t) | ||
| 114 | typedef signed int int32_t; | ||
| 115 | #define __DEFINED_int32_t | ||
| 116 | #endif | ||
| 117 | |||
| 118 | #if defined(__NEED_int64_t) && !defined(__DEFINED_int64_t) | ||
| 119 | typedef signed _Int64 int64_t; | ||
| 120 | #define __DEFINED_int64_t | ||
| 121 | #endif | ||
| 122 | |||
| 123 | #if defined(__NEED_intmax_t) && !defined(__DEFINED_intmax_t) | ||
| 124 | typedef signed _Int64 intmax_t; | ||
| 125 | #define __DEFINED_intmax_t | ||
| 126 | #endif | ||
| 127 | |||
| 128 | #if defined(__NEED_uint8_t) && !defined(__DEFINED_uint8_t) | ||
| 129 | typedef unsigned char uint8_t; | ||
| 130 | #define __DEFINED_uint8_t | ||
| 131 | #endif | ||
| 132 | |||
| 133 | #if defined(__NEED_uint16_t) && !defined(__DEFINED_uint16_t) | ||
| 134 | typedef unsigned short uint16_t; | ||
| 135 | #define __DEFINED_uint16_t | ||
| 136 | #endif | ||
| 137 | |||
| 138 | #if defined(__NEED_uint32_t) && !defined(__DEFINED_uint32_t) | ||
| 139 | typedef unsigned int uint32_t; | ||
| 140 | #define __DEFINED_uint32_t | ||
| 141 | #endif | ||
| 142 | |||
| 143 | #if defined(__NEED_uint64_t) && !defined(__DEFINED_uint64_t) | ||
| 144 | typedef unsigned _Int64 uint64_t; | ||
| 145 | #define __DEFINED_uint64_t | ||
| 146 | #endif | ||
| 147 | |||
| 148 | #if defined(__NEED_u_int64_t) && !defined(__DEFINED_u_int64_t) | ||
| 149 | typedef unsigned _Int64 u_int64_t; | ||
| 150 | #define __DEFINED_u_int64_t | ||
| 151 | #endif | ||
| 152 | |||
| 153 | #if defined(__NEED_uintmax_t) && !defined(__DEFINED_uintmax_t) | ||
| 154 | typedef unsigned _Int64 uintmax_t; | ||
| 155 | #define __DEFINED_uintmax_t | ||
| 156 | #endif | ||
| 157 | |||
| 158 | |||
| 159 | #if defined(__NEED_mode_t) && !defined(__DEFINED_mode_t) | ||
| 160 | typedef unsigned mode_t; | ||
| 161 | #define __DEFINED_mode_t | ||
| 162 | #endif | ||
| 163 | |||
| 164 | #if defined(__NEED_nlink_t) && !defined(__DEFINED_nlink_t) | ||
| 165 | typedef unsigned _Reg nlink_t; | ||
| 166 | #define __DEFINED_nlink_t | ||
| 167 | #endif | ||
| 168 | |||
| 169 | #if defined(__NEED_off_t) && !defined(__DEFINED_off_t) | ||
| 170 | typedef _Int64 off_t; | ||
| 171 | #define __DEFINED_off_t | ||
| 172 | #endif | ||
| 173 | |||
| 174 | #if defined(__NEED_ino_t) && !defined(__DEFINED_ino_t) | ||
| 175 | typedef unsigned _Int64 ino_t; | ||
| 176 | #define __DEFINED_ino_t | ||
| 177 | #endif | ||
| 178 | |||
| 179 | #if defined(__NEED_dev_t) && !defined(__DEFINED_dev_t) | ||
| 180 | typedef unsigned _Int64 dev_t; | ||
| 181 | #define __DEFINED_dev_t | ||
| 182 | #endif | ||
| 183 | |||
| 184 | #if defined(__NEED_blksize_t) && !defined(__DEFINED_blksize_t) | ||
| 185 | typedef long blksize_t; | ||
| 186 | #define __DEFINED_blksize_t | ||
| 187 | #endif | ||
| 188 | |||
| 189 | #if defined(__NEED_blkcnt_t) && !defined(__DEFINED_blkcnt_t) | ||
| 190 | typedef _Int64 blkcnt_t; | ||
| 191 | #define __DEFINED_blkcnt_t | ||
| 192 | #endif | ||
| 193 | |||
| 194 | #if defined(__NEED_fsblkcnt_t) && !defined(__DEFINED_fsblkcnt_t) | ||
| 195 | typedef unsigned _Int64 fsblkcnt_t; | ||
| 196 | #define __DEFINED_fsblkcnt_t | ||
| 197 | #endif | ||
| 198 | |||
| 199 | #if defined(__NEED_fsfilcnt_t) && !defined(__DEFINED_fsfilcnt_t) | ||
| 200 | typedef unsigned _Int64 fsfilcnt_t; | ||
| 201 | #define __DEFINED_fsfilcnt_t | ||
| 202 | #endif | ||
| 203 | |||
| 204 | |||
| 205 | #if defined(__NEED_wint_t) && !defined(__DEFINED_wint_t) | ||
| 206 | typedef unsigned wint_t; | ||
| 207 | #define __DEFINED_wint_t | ||
| 208 | #endif | ||
| 209 | |||
| 210 | #if defined(__NEED_wctype_t) && !defined(__DEFINED_wctype_t) | ||
| 211 | typedef unsigned long wctype_t; | ||
| 212 | #define __DEFINED_wctype_t | ||
| 213 | #endif | ||
| 214 | |||
| 215 | |||
| 216 | #if defined(__NEED_timer_t) && !defined(__DEFINED_timer_t) | ||
| 217 | typedef void * timer_t; | ||
| 218 | #define __DEFINED_timer_t | ||
| 219 | #endif | ||
| 220 | |||
| 221 | #if defined(__NEED_clockid_t) && !defined(__DEFINED_clockid_t) | ||
| 222 | typedef int clockid_t; | ||
| 223 | #define __DEFINED_clockid_t | ||
| 224 | #endif | ||
| 225 | |||
| 226 | #if defined(__NEED_clock_t) && !defined(__DEFINED_clock_t) | ||
| 227 | typedef long clock_t; | ||
| 228 | #define __DEFINED_clock_t | ||
| 229 | #endif | ||
| 230 | |||
| 231 | #if defined(__NEED_struct_timeval) && !defined(__DEFINED_struct_timeval) | ||
| 232 | struct timeval { time_t tv_sec; suseconds_t tv_usec; }; | ||
| 233 | #define __DEFINED_struct_timeval | ||
| 234 | #endif | ||
| 235 | |||
| 236 | #if defined(__NEED_struct_timespec) && !defined(__DEFINED_struct_timespec) | ||
| 237 | struct timespec { time_t tv_sec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER==4321); long tv_nsec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER!=4321); }; | ||
| 238 | #define __DEFINED_struct_timespec | ||
| 239 | #endif | ||
| 240 | |||
| 241 | |||
| 242 | #if defined(__NEED_pid_t) && !defined(__DEFINED_pid_t) | ||
| 243 | typedef int pid_t; | ||
| 244 | #define __DEFINED_pid_t | ||
| 245 | #endif | ||
| 246 | |||
| 247 | #if defined(__NEED_id_t) && !defined(__DEFINED_id_t) | ||
| 248 | typedef unsigned id_t; | ||
| 249 | #define __DEFINED_id_t | ||
| 250 | #endif | ||
| 251 | |||
| 252 | #if defined(__NEED_uid_t) && !defined(__DEFINED_uid_t) | ||
| 253 | typedef unsigned uid_t; | ||
| 254 | #define __DEFINED_uid_t | ||
| 255 | #endif | ||
| 256 | |||
| 257 | #if defined(__NEED_gid_t) && !defined(__DEFINED_gid_t) | ||
| 258 | typedef unsigned gid_t; | ||
| 259 | #define __DEFINED_gid_t | ||
| 260 | #endif | ||
| 261 | |||
| 262 | #if defined(__NEED_key_t) && !defined(__DEFINED_key_t) | ||
| 263 | typedef int key_t; | ||
| 264 | #define __DEFINED_key_t | ||
| 265 | #endif | ||
| 266 | |||
| 267 | #if defined(__NEED_useconds_t) && !defined(__DEFINED_useconds_t) | ||
| 268 | typedef unsigned useconds_t; | ||
| 269 | #define __DEFINED_useconds_t | ||
| 270 | #endif | ||
| 271 | |||
| 272 | |||
| 273 | #ifdef __cplusplus | ||
| 274 | #if defined(__NEED_pthread_t) && !defined(__DEFINED_pthread_t) | ||
| 275 | typedef unsigned long pthread_t; | ||
| 276 | #define __DEFINED_pthread_t | ||
| 277 | #endif | ||
| 278 | |||
| 279 | #else | ||
| 280 | #if defined(__NEED_pthread_t) && !defined(__DEFINED_pthread_t) | ||
| 281 | typedef struct __pthread * pthread_t; | ||
| 282 | #define __DEFINED_pthread_t | ||
| 283 | #endif | ||
| 284 | |||
| 285 | #endif | ||
| 286 | #if defined(__NEED_pthread_once_t) && !defined(__DEFINED_pthread_once_t) | ||
| 287 | typedef int pthread_once_t; | ||
| 288 | #define __DEFINED_pthread_once_t | ||
| 289 | #endif | ||
| 290 | |||
| 291 | #if defined(__NEED_pthread_key_t) && !defined(__DEFINED_pthread_key_t) | ||
| 292 | typedef unsigned pthread_key_t; | ||
| 293 | #define __DEFINED_pthread_key_t | ||
| 294 | #endif | ||
| 295 | |||
| 296 | #if defined(__NEED_pthread_spinlock_t) && !defined(__DEFINED_pthread_spinlock_t) | ||
| 297 | typedef int pthread_spinlock_t; | ||
| 298 | #define __DEFINED_pthread_spinlock_t | ||
| 299 | #endif | ||
| 300 | |||
| 301 | #if defined(__NEED_pthread_mutexattr_t) && !defined(__DEFINED_pthread_mutexattr_t) | ||
| 302 | typedef struct { unsigned __attr; } pthread_mutexattr_t; | ||
| 303 | #define __DEFINED_pthread_mutexattr_t | ||
| 304 | #endif | ||
| 305 | |||
| 306 | #if defined(__NEED_pthread_condattr_t) && !defined(__DEFINED_pthread_condattr_t) | ||
| 307 | typedef struct { unsigned __attr; } pthread_condattr_t; | ||
| 308 | #define __DEFINED_pthread_condattr_t | ||
| 309 | #endif | ||
| 310 | |||
| 311 | #if defined(__NEED_pthread_barrierattr_t) && !defined(__DEFINED_pthread_barrierattr_t) | ||
| 312 | typedef struct { unsigned __attr; } pthread_barrierattr_t; | ||
| 313 | #define __DEFINED_pthread_barrierattr_t | ||
| 314 | #endif | ||
| 315 | |||
| 316 | #if defined(__NEED_pthread_rwlockattr_t) && !defined(__DEFINED_pthread_rwlockattr_t) | ||
| 317 | typedef struct { unsigned __attr[2]; } pthread_rwlockattr_t; | ||
| 318 | #define __DEFINED_pthread_rwlockattr_t | ||
| 319 | #endif | ||
| 320 | |||
| 321 | |||
| 322 | #if defined(__NEED_struct__IO_FILE) && !defined(__DEFINED_struct__IO_FILE) | ||
| 323 | struct _IO_FILE { char __x; }; | ||
| 324 | #define __DEFINED_struct__IO_FILE | ||
| 325 | #endif | ||
| 326 | |||
| 327 | #if defined(__NEED_FILE) && !defined(__DEFINED_FILE) | ||
| 328 | typedef struct _IO_FILE FILE; | ||
| 329 | #define __DEFINED_FILE | ||
| 330 | #endif | ||
| 331 | |||
| 332 | |||
| 333 | #if defined(__NEED_va_list) && !defined(__DEFINED_va_list) | ||
| 334 | typedef __builtin_va_list va_list; | ||
| 335 | #define __DEFINED_va_list | ||
| 336 | #endif | ||
| 337 | |||
| 338 | #if defined(__NEED___isoc_va_list) && !defined(__DEFINED___isoc_va_list) | ||
| 339 | typedef __builtin_va_list __isoc_va_list; | ||
| 340 | #define __DEFINED___isoc_va_list | ||
| 341 | #endif | ||
| 342 | |||
| 343 | |||
| 344 | #if defined(__NEED_mbstate_t) && !defined(__DEFINED_mbstate_t) | ||
| 345 | typedef struct __mbstate_t { unsigned __opaque1, __opaque2; } mbstate_t; | ||
| 346 | #define __DEFINED_mbstate_t | ||
| 347 | #endif | ||
| 348 | |||
| 349 | |||
| 350 | #if defined(__NEED_locale_t) && !defined(__DEFINED_locale_t) | ||
| 351 | typedef struct __locale_struct * locale_t; | ||
| 352 | #define __DEFINED_locale_t | ||
| 353 | #endif | ||
| 354 | |||
| 355 | |||
| 356 | #if defined(__NEED_sigset_t) && !defined(__DEFINED_sigset_t) | ||
| 357 | typedef struct __sigset_t { unsigned long __bits[128/sizeof(long)]; } sigset_t; | ||
| 358 | #define __DEFINED_sigset_t | ||
| 359 | #endif | ||
| 360 | |||
| 361 | |||
| 362 | #if defined(__NEED_struct_iovec) && !defined(__DEFINED_struct_iovec) | ||
| 363 | struct iovec { void *iov_base; size_t iov_len; }; | ||
| 364 | #define __DEFINED_struct_iovec | ||
| 365 | #endif | ||
| 366 | |||
| 367 | |||
| 368 | #if defined(__NEED_struct_winsize) && !defined(__DEFINED_struct_winsize) | ||
| 369 | struct winsize { unsigned short ws_row, ws_col, ws_xpixel, ws_ypixel; }; | ||
| 370 | #define __DEFINED_struct_winsize | ||
| 371 | #endif | ||
| 372 | |||
| 373 | |||
| 374 | #if defined(__NEED_socklen_t) && !defined(__DEFINED_socklen_t) | ||
| 375 | typedef unsigned socklen_t; | ||
| 376 | #define __DEFINED_socklen_t | ||
| 377 | #endif | ||
| 378 | |||
| 379 | #if defined(__NEED_sa_family_t) && !defined(__DEFINED_sa_family_t) | ||
| 380 | typedef unsigned short sa_family_t; | ||
| 381 | #define __DEFINED_sa_family_t | ||
| 382 | #endif | ||
| 383 | |||
| 384 | |||
| 385 | #if defined(__NEED_pthread_attr_t) && !defined(__DEFINED_pthread_attr_t) | ||
| 386 | typedef struct { union { int __i[sizeof(long)==8?14:9]; volatile int __vi[sizeof(long)==8?14:9]; unsigned long __s[sizeof(long)==8?7:9]; } __u; } pthread_attr_t; | ||
| 387 | #define __DEFINED_pthread_attr_t | ||
| 388 | #endif | ||
| 389 | |||
| 390 | #if defined(__NEED_pthread_mutex_t) && !defined(__DEFINED_pthread_mutex_t) | ||
| 391 | typedef struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatile void *volatile __p[sizeof(long)==8?5:6]; } __u; } pthread_mutex_t; | ||
| 392 | #define __DEFINED_pthread_mutex_t | ||
| 393 | #endif | ||
| 394 | |||
| 395 | #if defined(__NEED_mtx_t) && !defined(__DEFINED_mtx_t) | ||
| 396 | typedef struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatile void *volatile __p[sizeof(long)==8?5:6]; } __u; } mtx_t; | ||
| 397 | #define __DEFINED_mtx_t | ||
| 398 | #endif | ||
| 399 | |||
| 400 | #if defined(__NEED_pthread_cond_t) && !defined(__DEFINED_pthread_cond_t) | ||
| 401 | typedef struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)]; } __u; } pthread_cond_t; | ||
| 402 | #define __DEFINED_pthread_cond_t | ||
| 403 | #endif | ||
| 404 | |||
| 405 | #if defined(__NEED_cnd_t) && !defined(__DEFINED_cnd_t) | ||
| 406 | typedef struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)]; } __u; } cnd_t; | ||
| 407 | #define __DEFINED_cnd_t | ||
| 408 | #endif | ||
| 409 | |||
| 410 | #if defined(__NEED_pthread_rwlock_t) && !defined(__DEFINED_pthread_rwlock_t) | ||
| 411 | typedef struct { union { int __i[sizeof(long)==8?14:8]; volatile int __vi[sizeof(long)==8?14:8]; void *__p[sizeof(long)==8?7:8]; } __u; } pthread_rwlock_t; | ||
| 412 | #define __DEFINED_pthread_rwlock_t | ||
| 413 | #endif | ||
| 414 | |||
| 415 | #if defined(__NEED_pthread_barrier_t) && !defined(__DEFINED_pthread_barrier_t) | ||
| 416 | typedef struct { union { int __i[sizeof(long)==8?8:5]; volatile int __vi[sizeof(long)==8?8:5]; void *__p[sizeof(long)==8?4:5]; } __u; } pthread_barrier_t; | ||
| 417 | #define __DEFINED_pthread_barrier_t | ||
| 418 | #endif | ||
| 419 | |||
| 420 | |||
| 421 | #undef _Addr | ||
| 422 | #undef _Int64 | ||
| 423 | #undef _Reg | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/fcntl.h created+40| ... | @@ -0,0 +1,40 @@ | ||
| 1 | #define O_CREAT 0100 | ||
| 2 | #define O_EXCL 0200 | ||
| 3 | #define O_NOCTTY 0400 | ||
| 4 | #define O_TRUNC 01000 | ||
| 5 | #define O_APPEND 02000 | ||
| 6 | #define O_NONBLOCK 04000 | ||
| 7 | #define O_DSYNC 010000 | ||
| 8 | #define O_SYNC 04010000 | ||
| 9 | #define O_RSYNC 04010000 | ||
| 10 | #define O_DIRECTORY 0200000 | ||
| 11 | #define O_NOFOLLOW 0400000 | ||
| 12 | #define O_CLOEXEC 02000000 | ||
| 13 | |||
| 14 | #define O_ASYNC 020000 | ||
| 15 | #define O_DIRECT 040000 | ||
| 16 | #define O_LARGEFILE 0100000 | ||
| 17 | #define O_NOATIME 01000000 | ||
| 18 | #define O_PATH 010000000 | ||
| 19 | #define O_TMPFILE 020200000 | ||
| 20 | #define O_NDELAY O_NONBLOCK | ||
| 21 | |||
| 22 | #define F_DUPFD 0 | ||
| 23 | #define F_GETFD 1 | ||
| 24 | #define F_SETFD 2 | ||
| 25 | #define F_GETFL 3 | ||
| 26 | #define F_SETFL 4 | ||
| 27 | |||
| 28 | #define F_SETOWN 8 | ||
| 29 | #define F_GETOWN 9 | ||
| 30 | #define F_SETSIG 10 | ||
| 31 | #define F_GETSIG 11 | ||
| 32 | |||
| 33 | #define F_GETLK 5 | ||
| 34 | #define F_SETLK 6 | ||
| 35 | #define F_SETLKW 7 | ||
| 36 | |||
| 37 | #define F_SETOWN_EX 15 | ||
| 38 | #define F_GETOWN_EX 16 | ||
| 39 | |||
| 40 | #define F_GETOWNER_UIDS 17 | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/float.h created+20| ... | @@ -0,0 +1,20 @@ | ||
| 1 | #ifdef __FLT_EVAL_METHOD__ | ||
| 2 | #define FLT_EVAL_METHOD __FLT_EVAL_METHOD__ | ||
| 3 | #else | ||
| 4 | #define FLT_EVAL_METHOD 0 | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #define LDBL_TRUE_MIN 3.6451995318824746025e-4951L | ||
| 8 | #define LDBL_MIN 3.3621031431120935063e-4932L | ||
| 9 | #define LDBL_MAX 1.1897314953572317650e+4932L | ||
| 10 | #define LDBL_EPSILON 1.0842021724855044340e-19L | ||
| 11 | |||
| 12 | #define LDBL_MANT_DIG 64 | ||
| 13 | #define LDBL_MIN_EXP (-16381) | ||
| 14 | #define LDBL_MAX_EXP 16384 | ||
| 15 | |||
| 16 | #define LDBL_DIG 18 | ||
| 17 | #define LDBL_MIN_10_EXP (-4931) | ||
| 18 | #define LDBL_MAX_10_EXP 4932 | ||
| 19 | |||
| 20 | #define DECIMAL_DIG 21 | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/io.h created+77| ... | @@ -0,0 +1,77 @@ | ||
| 1 | static __inline void outb(unsigned char __val, unsigned short __port) | ||
| 2 | { | ||
| 3 | 	__asm__ volatile ("outb %0,%1" : : "a" (__val), "dN" (__port)); | ||
| 4 | } | ||
| 5 | |||
| 6 | static __inline void outw(unsigned short __val, unsigned short __port) | ||
| 7 | { | ||
| 8 | 	__asm__ volatile ("outw %0,%1" : : "a" (__val), "dN" (__port)); | ||
| 9 | } | ||
| 10 | |||
| 11 | static __inline void outl(unsigned int __val, unsigned short __port) | ||
| 12 | { | ||
| 13 | 	__asm__ volatile ("outl %0,%1" : : "a" (__val), "dN" (__port)); | ||
| 14 | } | ||
| 15 | |||
| 16 | static __inline unsigned char inb(unsigned short __port) | ||
| 17 | { | ||
| 18 | 	unsigned char __val; | ||
| 19 | 	__asm__ volatile ("inb %1,%0" : "=a" (__val) : "dN" (__port)); | ||
| 20 | 	return __val; | ||
| 21 | } | ||
| 22 | |||
| 23 | static __inline unsigned short inw(unsigned short __port) | ||
| 24 | { | ||
| 25 | 	unsigned short __val; | ||
| 26 | 	__asm__ volatile ("inw %1,%0" : "=a" (__val) : "dN" (__port)); | ||
| 27 | 	return __val; | ||
| 28 | } | ||
| 29 | |||
| 30 | static __inline unsigned int inl(unsigned short __port) | ||
| 31 | { | ||
| 32 | 	unsigned int __val; | ||
| 33 | 	__asm__ volatile ("inl %1,%0" : "=a" (__val) : "dN" (__port)); | ||
| 34 | 	return __val; | ||
| 35 | } | ||
| 36 | |||
| 37 | static __inline void outsb(unsigned short __port, const void *__buf, unsigned long __n) | ||
| 38 | { | ||
| 39 | 	__asm__ volatile ("cld; rep; outsb" | ||
| 40 | 		 : "+S" (__buf), "+c" (__n) | ||
| 41 | 		 : "d" (__port)); | ||
| 42 | } | ||
| 43 | |||
| 44 | static __inline void outsw(unsigned short __port, const void *__buf, unsigned long __n) | ||
| 45 | { | ||
| 46 | 	__asm__ volatile ("cld; rep; outsw" | ||
| 47 | 		 : "+S" (__buf), "+c" (__n) | ||
| 48 | 		 : "d" (__port)); | ||
| 49 | } | ||
| 50 | |||
| 51 | static __inline void outsl(unsigned short __port, const void *__buf, unsigned long __n) | ||
| 52 | { | ||
| 53 | 	__asm__ volatile ("cld; rep; outsl" | ||
| 54 | 		 : "+S" (__buf), "+c"(__n) | ||
| 55 | 		 : "d" (__port)); | ||
| 56 | } | ||
| 57 | |||
| 58 | static __inline void insb(unsigned short __port, void *__buf, unsigned long __n) | ||
| 59 | { | ||
| 60 | 	__asm__ volatile ("cld; rep; insb" | ||
| 61 | 		 : "+D" (__buf), "+c" (__n) | ||
| 62 | 		 : "d" (__port)); | ||
| 63 | } | ||
| 64 | |||
| 65 | static __inline void insw(unsigned short __port, void *__buf, unsigned long __n) | ||
| 66 | { | ||
| 67 | 	__asm__ volatile ("cld; rep; insw" | ||
| 68 | 		 : "+D" (__buf), "+c" (__n) | ||
| 69 | 		 : "d" (__port)); | ||
| 70 | } | ||
| 71 | |||
| 72 | static __inline void insl(unsigned short __port, void *__buf, unsigned long __n) | ||
| 73 | { | ||
| 74 | 	__asm__ volatile ("cld; rep; insl" | ||
| 75 | 		 : "+D" (__buf), "+c" (__n) | ||
| 76 | 		 : "d" (__port)); | ||
| 77 | } | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/ioctl_fix.h created+4| ... | @@ -0,0 +1,4 @@ | ||
| 1 | #undef SIOCGSTAMP | ||
| 2 | #undef SIOCGSTAMPNS | ||
| 3 | #define SIOCGSTAMP 0x8906 | ||
| 4 | #define SIOCGSTAMPNS 0x8907 | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/ipc.h created+11| ... | @@ -0,0 +1,11 @@ | ||
| 1 | struct ipc_perm { | ||
| 2 | 	key_t __ipc_perm_key; | ||
| 3 | 	uid_t uid; | ||
| 4 | 	gid_t gid; | ||
| 5 | 	uid_t cuid; | ||
| 6 | 	gid_t cgid; | ||
| 7 | 	mode_t mode; | ||
| 8 | 	int __ipc_perm_seq; | ||
| 9 | 	long long __pad1; | ||
| 10 | 	long long __pad2; | ||
| 11 | }; | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/limits.h created+1| ... | @@ -0,0 +1 @@ | ||
| 1 | #define PAGESIZE 4096 | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/mman.h created+1| ... | @@ -0,0 +1 @@ | ||
| 1 | #define MAP_32BIT 0x40 | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/msg.h created+15| ... | @@ -0,0 +1,15 @@ | ||
| 1 | struct msqid_ds { | ||
| 2 | 	struct ipc_perm msg_perm; | ||
| 3 | 	time_t msg_stime; | ||
| 4 | 	time_t msg_rtime; | ||
| 5 | 	time_t msg_ctime; | ||
| 6 | 	unsigned long msg_cbytes; | ||
| 7 | 	long __unused1; | ||
| 8 | 	msgqnum_t msg_qnum; | ||
| 9 | 	long __unused2; | ||
| 10 | 	msglen_t msg_qbytes; | ||
| 11 | 	long __unused3; | ||
| 12 | 	pid_t msg_lspid; | ||
| 13 | 	pid_t msg_lrpid; | ||
| 14 | 	unsigned long long __unused[2]; | ||
| 15 | }; | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/ptrace.h created+13| ... | @@ -0,0 +1,13 @@ | ||
| 1 | #define PTRACE_GET_THREAD_AREA		25 | ||
| 2 | #define PTRACE_SET_THREAD_AREA		26 | ||
| 3 | #define PTRACE_ARCH_PRCTL		30 | ||
| 4 | #define PTRACE_SYSEMU			31 | ||
| 5 | #define PTRACE_SYSEMU_SINGLESTEP	32 | ||
| 6 | #define PTRACE_SINGLEBLOCK		33 | ||
| 7 | |||
| 8 | #define PT_GET_THREAD_AREA PTRACE_GET_THREAD_AREA | ||
| 9 | #define PT_SET_THREAD_AREA PTRACE_SET_THREAD_AREA | ||
| 10 | #define PT_ARCH_PRCTL PTRACE_ARCH_PRCTL | ||
| 11 | #define PT_SYSEMU PTRACE_SYSEMU | ||
| 12 | #define PT_SYSEMU_SINGLESTEP PTRACE_SYSEMU_SINGLESTEP | ||
| 13 | #define PT_STEPBLOCK PTRACE_SINGLEBLOCK | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/reg.h created+29| ... | @@ -0,0 +1,29 @@ | ||
| 1 | #undef __WORDSIZE | ||
| 2 | #define __WORDSIZE 32 | ||
| 3 | #define R15 0 | ||
| 4 | #define R14 1 | ||
| 5 | #define R13 2 | ||
| 6 | #define R12 3 | ||
| 7 | #define RBP 4 | ||
| 8 | #define RBX 5 | ||
| 9 | #define R11 6 | ||
| 10 | #define R10 7 | ||
| 11 | #define R9 8 | ||
| 12 | #define R8 9 | ||
| 13 | #define RAX 10 | ||
| 14 | #define RCX 11 | ||
| 15 | #define RDX 12 | ||
| 16 | #define RSI 13 | ||
| 17 | #define RDI 14 | ||
| 18 | #define ORIG_RAX 15 | ||
| 19 | #define RIP 16 | ||
| 20 | #define CS 17 | ||
| 21 | #define EFLAGS 18 | ||
| 22 | #define RSP 19 | ||
| 23 | #define SS 20 | ||
| 24 | #define FS_BASE 21 | ||
| 25 | #define GS_BASE 22 | ||
| 26 | #define DS 23 | ||
| 27 | #define ES 24 | ||
| 28 | #define FS 25 | ||
| 29 | #define GS 26 | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/sem.h created+11| ... | @@ -0,0 +1,11 @@ | ||
| 1 | struct semid_ds { | ||
| 2 | 	struct ipc_perm sem_perm; | ||
| 3 | 	time_t sem_otime; | ||
| 4 | 	long long __unused1; | ||
| 5 | 	time_t sem_ctime; | ||
| 6 | 	long long __unused2; | ||
| 7 | 	unsigned short sem_nsems; | ||
| 8 | 	char __sem_nsems_pad[sizeof(long long)-sizeof(short)]; | ||
| 9 | 	long long __unused3; | ||
| 10 | 	long long __unused4; | ||
| 11 | }; | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/setjmp.h created+1| ... | @@ -0,0 +1 @@ | ||
| 1 | typedef unsigned long long __jmp_buf[8]; | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/shm.h created+32| ... | @@ -0,0 +1,32 @@ | ||
| 1 | #define SHMLBA 4096 | ||
| 2 | |||
| 3 | struct shmid_ds { | ||
| 4 | 	struct ipc_perm shm_perm; | ||
| 5 | 	size_t shm_segsz; | ||
| 6 | 	time_t shm_atime; | ||
| 7 | 	time_t shm_dtime; | ||
| 8 | 	time_t shm_ctime; | ||
| 9 | 	pid_t shm_cpid; | ||
| 10 | 	pid_t shm_lpid; | ||
| 11 | 	unsigned long shm_nattch; | ||
| 12 | 	unsigned long __pad0; | ||
| 13 | 	unsigned long long __pad1; | ||
| 14 | 	unsigned long long __pad2; | ||
| 15 | }; | ||
| 16 | |||
| 17 | struct shminfo { | ||
| 18 | 	unsigned long shmmax, __pad0, shmmin, __pad1, shmmni, __pad2, | ||
| 19 | 	 shmseg, __pad3, shmall, __pad4; | ||
| 20 | 	unsigned long long __unused[4]; | ||
| 21 | }; | ||
| 22 | |||
| 23 | struct shm_info { | ||
| 24 | 	int __used_ids; | ||
| 25 | 	int __pad_ids; | ||
| 26 | 	unsigned long shm_tot, __pad0, shm_rss, __pad1, shm_swp, __pad2; | ||
| 27 | 	unsigned long __swap_attempts, __pad3, __swap_successes, __pad4; | ||
| 28 | } | ||
| 29 | #ifdef __GNUC__ | ||
| 30 | __attribute__((__aligned__(8))) | ||
| 31 | #endif | ||
| 32 | ; | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/signal.h created+152| ... | @@ -0,0 +1,152 @@ | ||
| 1 | #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ | ||
| 2 | || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 3 | |||
| 4 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 5 | #define MINSIGSTKSZ 2048 | ||
| 6 | #define SIGSTKSZ 8192 | ||
| 7 | #endif | ||
| 8 | |||
| 9 | #ifdef _GNU_SOURCE | ||
| 10 | enum { REG_R8 = 0 }; | ||
| 11 | #define REG_R8 REG_R8 | ||
| 12 | enum { REG_R9 = 1 }; | ||
| 13 | #define REG_R9 REG_R9 | ||
| 14 | enum { REG_R10 = 2 }; | ||
| 15 | #define REG_R10 REG_R10 | ||
| 16 | enum { REG_R11 = 3 }; | ||
| 17 | #define REG_R11 REG_R11 | ||
| 18 | enum { REG_R12 = 4 }; | ||
| 19 | #define REG_R12 REG_R12 | ||
| 20 | enum { REG_R13 = 5 }; | ||
| 21 | #define REG_R13 REG_R13 | ||
| 22 | enum { REG_R14 = 6 }; | ||
| 23 | #define REG_R14 REG_R14 | ||
| 24 | enum { REG_R15 = 7 }; | ||
| 25 | #define REG_R15 REG_R15 | ||
| 26 | enum { REG_RDI = 8 }; | ||
| 27 | #define REG_RDI REG_RDI | ||
| 28 | enum { REG_RSI = 9 }; | ||
| 29 | #define REG_RSI REG_RSI | ||
| 30 | enum { REG_RBP = 10 }; | ||
| 31 | #define REG_RBP REG_RBP | ||
| 32 | enum { REG_RBX = 11 }; | ||
| 33 | #define REG_RBX REG_RBX | ||
| 34 | enum { REG_RDX = 12 }; | ||
| 35 | #define REG_RDX REG_RDX | ||
| 36 | enum { REG_RAX = 13 }; | ||
| 37 | #define REG_RAX REG_RAX | ||
| 38 | enum { REG_RCX = 14 }; | ||
| 39 | #define REG_RCX REG_RCX | ||
| 40 | enum { REG_RSP = 15 }; | ||
| 41 | #define REG_RSP REG_RSP | ||
| 42 | enum { REG_RIP = 16 }; | ||
| 43 | #define REG_RIP REG_RIP | ||
| 44 | enum { REG_EFL = 17 }; | ||
| 45 | #define REG_EFL REG_EFL | ||
| 46 | enum { REG_CSGSFS = 18 }; | ||
| 47 | #define REG_CSGSFS REG_CSGSFS | ||
| 48 | enum { REG_ERR = 19 }; | ||
| 49 | #define REG_ERR REG_ERR | ||
| 50 | enum { REG_TRAPNO = 20 }; | ||
| 51 | #define REG_TRAPNO REG_TRAPNO | ||
| 52 | enum { REG_OLDMASK = 21 }; | ||
| 53 | #define REG_OLDMASK REG_OLDMASK | ||
| 54 | enum { REG_CR2 = 22 }; | ||
| 55 | #define REG_CR2 REG_CR2 | ||
| 56 | #endif | ||
| 57 | |||
| 58 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 59 | typedef long long greg_t, gregset_t[23]; | ||
| 60 | typedef struct _fpstate { | ||
| 61 | 	unsigned short cwd, swd, ftw, fop; | ||
| 62 | 	unsigned long long rip, rdp; | ||
| 63 | 	unsigned mxcsr, mxcr_mask; | ||
| 64 | 	struct { | ||
| 65 | 		unsigned short significand[4], exponent, padding[3]; | ||
| 66 | 	} _st[8]; | ||
| 67 | 	struct { | ||
| 68 | 		unsigned element[4]; | ||
| 69 | 	} _xmm[16]; | ||
| 70 | 	unsigned padding[24]; | ||
| 71 | } *fpregset_t; | ||
| 72 | struct sigcontext { | ||
| 73 | 	unsigned long long r8, r9, r10, r11, r12, r13, r14, r15; | ||
| 74 | 	unsigned long long rdi, rsi, rbp, rbx, rdx, rax, rcx, rsp, rip, eflags; | ||
| 75 | 	unsigned short cs, gs, fs, __pad0; | ||
| 76 | 	unsigned long long err, trapno, oldmask, cr2; | ||
| 77 | 	struct _fpstate *fpstate; | ||
| 78 | 	unsigned long long __reserved1[8]; | ||
| 79 | }; | ||
| 80 | typedef struct { | ||
| 81 | 	gregset_t gregs; | ||
| 82 | 	fpregset_t fpregs; | ||
| 83 | 	unsigned long long __reserved1[8]; | ||
| 84 | } mcontext_t; | ||
| 85 | #else | ||
| 86 | typedef struct { | ||
| 87 | 	unsigned long long __space[32]; | ||
| 88 | } mcontext_t; | ||
| 89 | #endif | ||
| 90 | |||
| 91 | struct sigaltstack { | ||
| 92 | 	void *ss_sp; | ||
| 93 | 	int ss_flags; | ||
| 94 | 	size_t ss_size; | ||
| 95 | }; | ||
| 96 | |||
| 97 | typedef struct __ucontext { | ||
| 98 | 	unsigned long uc_flags; | ||
| 99 | 	struct __ucontext *uc_link; | ||
| 100 | 	stack_t uc_stack; | ||
| 101 | 	mcontext_t uc_mcontext; | ||
| 102 | 	sigset_t uc_sigmask; | ||
| 103 | 	unsigned long long __fpregs_mem[64]; | ||
| 104 | } ucontext_t; | ||
| 105 | |||
| 106 | #define SA_NOCLDSTOP 1 | ||
| 107 | #define SA_NOCLDWAIT 2 | ||
| 108 | #define SA_SIGINFO 4 | ||
| 109 | #define SA_ONSTACK 0x08000000 | ||
| 110 | #define SA_RESTART 0x10000000 | ||
| 111 | #define SA_NODEFER 0x40000000 | ||
| 112 | #define SA_RESETHAND 0x80000000 | ||
| 113 | #define SA_RESTORER 0x04000000 | ||
| 114 | |||
| 115 | #endif | ||
| 116 | |||
| 117 | #define SIGHUP 1 | ||
| 118 | #define SIGINT 2 | ||
| 119 | #define SIGQUIT 3 | ||
| 120 | #define SIGILL 4 | ||
| 121 | #define SIGTRAP 5 | ||
| 122 | #define SIGABRT 6 | ||
| 123 | #define SIGIOT SIGABRT | ||
| 124 | #define SIGBUS 7 | ||
| 125 | #define SIGFPE 8 | ||
| 126 | #define SIGKILL 9 | ||
| 127 | #define SIGUSR1 10 | ||
| 128 | #define SIGSEGV 11 | ||
| 129 | #define SIGUSR2 12 | ||
| 130 | #define SIGPIPE 13 | ||
| 131 | #define SIGALRM 14 | ||
| 132 | #define SIGTERM 15 | ||
| 133 | #define SIGSTKFLT 16 | ||
| 134 | #define SIGCHLD 17 | ||
| 135 | #define SIGCONT 18 | ||
| 136 | #define SIGSTOP 19 | ||
| 137 | #define SIGTSTP 20 | ||
| 138 | #define SIGTTIN 21 | ||
| 139 | #define SIGTTOU 22 | ||
| 140 | #define SIGURG 23 | ||
| 141 | #define SIGXCPU 24 | ||
| 142 | #define SIGXFSZ 25 | ||
| 143 | #define SIGVTALRM 26 | ||
| 144 | #define SIGPROF 27 | ||
| 145 | #define SIGWINCH 28 | ||
| 146 | #define SIGIO 29 | ||
| 147 | #define SIGPOLL 29 | ||
| 148 | #define SIGPWR 30 | ||
| 149 | #define SIGSYS 31 | ||
| 150 | #define SIGUNUSED SIGSYS | ||
| 151 | |||
| 152 | #define _NSIG 65 | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/socket.h created+5| ... | @@ -0,0 +1,5 @@ | ||
| 1 | #define SO_RCVTIMEO 20 | ||
| 2 | #define SO_SNDTIMEO 21 | ||
| 3 | #define SO_TIMESTAMP 29 | ||
| 4 | #define SO_TIMESTAMPNS 35 | ||
| 5 | #define SO_TIMESTAMPING 37 | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/stat.h created+22| ... | @@ -0,0 +1,22 @@ | ||
| 1 | /* copied from kernel definition, but with padding replaced | ||
| 2 | * by the corresponding correctly-sized userspace types. */ | ||
| 3 | |||
| 4 | struct stat { | ||
| 5 | 	dev_t st_dev; | ||
| 6 | 	ino_t st_ino; | ||
| 7 | 	nlink_t st_nlink; | ||
| 8 | |||
| 9 | 	mode_t st_mode; | ||
| 10 | 	uid_t st_uid; | ||
| 11 | 	gid_t st_gid; | ||
| 12 | 	unsigned int __pad0; | ||
| 13 | 	dev_t st_rdev; | ||
| 14 | 	off_t st_size; | ||
| 15 | 	blksize_t st_blksize; | ||
| 16 | 	blkcnt_t st_blocks; | ||
| 17 | |||
| 18 | 	struct timespec st_atim; | ||
| 19 | 	struct timespec st_mtim; | ||
| 20 | 	struct timespec st_ctim; | ||
| 21 | 	long long __unused[3]; | ||
| 22 | }; | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/statfs.h created+9| ... | @@ -0,0 +1,9 @@ | ||
| 1 | struct statfs { | ||
| 2 | 	unsigned long f_type, __pad0, f_bsize, __pad1; | ||
| 3 | 	fsblkcnt_t f_blocks, f_bfree, f_bavail; | ||
| 4 | 	fsfilcnt_t f_files, f_ffree; | ||
| 5 | 	fsid_t f_fsid; | ||
| 6 | 	unsigned long f_namelen, __pad2, f_frsize, __pad3; | ||
| 7 | 	unsigned long f_flags, __pad4; | ||
| 8 | 	unsigned long long f_spare[4]; | ||
| 9 | }; | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/syscall.h created+707| ... | @@ -0,0 +1,707 @@ | ||
| 1 | #define __NR_read (0x40000000 + 0) | ||
| 2 | #define __NR_write (0x40000000 + 1) | ||
| 3 | #define __NR_open (0x40000000 + 2) | ||
| 4 | #define __NR_close (0x40000000 + 3) | ||
| 5 | #define __NR_stat (0x40000000 + 4) | ||
| 6 | #define __NR_fstat (0x40000000 + 5) | ||
| 7 | #define __NR_lstat (0x40000000 + 6) | ||
| 8 | #define __NR_poll (0x40000000 + 7) | ||
| 9 | #define __NR_lseek (0x40000000 + 8) | ||
| 10 | #define __NR_mmap (0x40000000 + 9) | ||
| 11 | #define __NR_mprotect (0x40000000 + 10) | ||
| 12 | #define __NR_munmap (0x40000000 + 11) | ||
| 13 | #define __NR_brk (0x40000000 + 12) | ||
| 14 | #define __NR_rt_sigprocmask (0x40000000 + 14) | ||
| 15 | #define __NR_pread64 (0x40000000 + 17) | ||
| 16 | #define __NR_pwrite64 (0x40000000 + 18) | ||
| 17 | #define __NR_access (0x40000000 + 21) | ||
| 18 | #define __NR_pipe (0x40000000 + 22) | ||
| 19 | #define __NR_select (0x40000000 + 23) | ||
| 20 | #define __NR_sched_yield (0x40000000 + 24) | ||
| 21 | #define __NR_mremap (0x40000000 + 25) | ||
| 22 | #define __NR_msync (0x40000000 + 26) | ||
| 23 | #define __NR_mincore (0x40000000 + 27) | ||
| 24 | #define __NR_madvise (0x40000000 + 28) | ||
| 25 | #define __NR_shmget (0x40000000 + 29) | ||
| 26 | #define __NR_shmat (0x40000000 + 30) | ||
| 27 | #define __NR_shmctl (0x40000000 + 31) | ||
| 28 | #define __NR_dup (0x40000000 + 32) | ||
| 29 | #define __NR_dup2 (0x40000000 + 33) | ||
| 30 | #define __NR_pause (0x40000000 + 34) | ||
| 31 | #define __NR_nanosleep (0x40000000 + 35) | ||
| 32 | #define __NR_getitimer (0x40000000 + 36) | ||
| 33 | #define __NR_alarm (0x40000000 + 37) | ||
| 34 | #define __NR_setitimer (0x40000000 + 38) | ||
| 35 | #define __NR_getpid (0x40000000 + 39) | ||
| 36 | #define __NR_sendfile (0x40000000 + 40) | ||
| 37 | #define __NR_socket (0x40000000 + 41) | ||
| 38 | #define __NR_connect (0x40000000 + 42) | ||
| 39 | #define __NR_accept (0x40000000 + 43) | ||
| 40 | #define __NR_sendto (0x40000000 + 44) | ||
| 41 | #define __NR_shutdown (0x40000000 + 48) | ||
| 42 | #define __NR_bind (0x40000000 + 49) | ||
| 43 | #define __NR_listen (0x40000000 + 50) | ||
| 44 | #define __NR_getsockname (0x40000000 + 51) | ||
| 45 | #define __NR_getpeername (0x40000000 + 52) | ||
| 46 | #define __NR_socketpair (0x40000000 + 53) | ||
| 47 | #define __NR_clone (0x40000000 + 56) | ||
| 48 | #define __NR_fork (0x40000000 + 57) | ||
| 49 | #define __NR_vfork (0x40000000 + 58) | ||
| 50 | #define __NR_exit (0x40000000 + 60) | ||
| 51 | #define __NR_wait4 (0x40000000 + 61) | ||
| 52 | #define __NR_kill (0x40000000 + 62) | ||
| 53 | #define __NR_uname (0x40000000 + 63) | ||
| 54 | #define __NR_semget (0x40000000 + 64) | ||
| 55 | #define __NR_semop (0x40000000 + 65) | ||
| 56 | #define __NR_semctl (0x40000000 + 66) | ||
| 57 | #define __NR_shmdt (0x40000000 + 67) | ||
| 58 | #define __NR_msgget (0x40000000 + 68) | ||
| 59 | #define __NR_msgsnd (0x40000000 + 69) | ||
| 60 | #define __NR_msgrcv (0x40000000 + 70) | ||
| 61 | #define __NR_msgctl (0x40000000 + 71) | ||
| 62 | #define __NR_fcntl (0x40000000 + 72) | ||
| 63 | #define __NR_flock (0x40000000 + 73) | ||
| 64 | #define __NR_fsync (0x40000000 + 74) | ||
| 65 | #define __NR_fdatasync (0x40000000 + 75) | ||
| 66 | #define __NR_truncate (0x40000000 + 76) | ||
| 67 | #define __NR_ftruncate (0x40000000 + 77) | ||
| 68 | #define __NR_getdents (0x40000000 + 78) | ||
| 69 | #define __NR_getcwd (0x40000000 + 79) | ||
| 70 | #define __NR_chdir (0x40000000 + 80) | ||
| 71 | #define __NR_fchdir (0x40000000 + 81) | ||
| 72 | #define __NR_rename (0x40000000 + 82) | ||
| 73 | #define __NR_mkdir (0x40000000 + 83) | ||
| 74 | #define __NR_rmdir (0x40000000 + 84) | ||
| 75 | #define __NR_creat (0x40000000 + 85) | ||
| 76 | #define __NR_link (0x40000000 + 86) | ||
| 77 | #define __NR_unlink (0x40000000 + 87) | ||
| 78 | #define __NR_symlink (0x40000000 + 88) | ||
| 79 | #define __NR_readlink (0x40000000 + 89) | ||
| 80 | #define __NR_chmod (0x40000000 + 90) | ||
| 81 | #define __NR_fchmod (0x40000000 + 91) | ||
| 82 | #define __NR_chown (0x40000000 + 92) | ||
| 83 | #define __NR_fchown (0x40000000 + 93) | ||
| 84 | #define __NR_lchown (0x40000000 + 94) | ||
| 85 | #define __NR_umask (0x40000000 + 95) | ||
| 86 | #define __NR_gettimeofday (0x40000000 + 96) | ||
| 87 | #define __NR_getrlimit (0x40000000 + 97) | ||
| 88 | #define __NR_getrusage (0x40000000 + 98) | ||
| 89 | #define __NR_sysinfo (0x40000000 + 99) | ||
| 90 | #define __NR_times (0x40000000 + 100) | ||
| 91 | #define __NR_getuid (0x40000000 + 102) | ||
| 92 | #define __NR_syslog (0x40000000 + 103) | ||
| 93 | #define __NR_getgid (0x40000000 + 104) | ||
| 94 | #define __NR_setuid (0x40000000 + 105) | ||
| 95 | #define __NR_setgid (0x40000000 + 106) | ||
| 96 | #define __NR_geteuid (0x40000000 + 107) | ||
| 97 | #define __NR_getegid (0x40000000 + 108) | ||
| 98 | #define __NR_setpgid (0x40000000 + 109) | ||
| 99 | #define __NR_getppid (0x40000000 + 110) | ||
| 100 | #define __NR_getpgrp (0x40000000 + 111) | ||
| 101 | #define __NR_setsid (0x40000000 + 112) | ||
| 102 | #define __NR_setreuid (0x40000000 + 113) | ||
| 103 | #define __NR_setregid (0x40000000 + 114) | ||
| 104 | #define __NR_getgroups (0x40000000 + 115) | ||
| 105 | #define __NR_setgroups (0x40000000 + 116) | ||
| 106 | #define __NR_setresuid (0x40000000 + 117) | ||
| 107 | #define __NR_getresuid (0x40000000 + 118) | ||
| 108 | #define __NR_setresgid (0x40000000 + 119) | ||
| 109 | #define __NR_getresgid (0x40000000 + 120) | ||
| 110 | #define __NR_getpgid (0x40000000 + 121) | ||
| 111 | #define __NR_setfsuid (0x40000000 + 122) | ||
| 112 | #define __NR_setfsgid (0x40000000 + 123) | ||
| 113 | #define __NR_getsid (0x40000000 + 124) | ||
| 114 | #define __NR_capget (0x40000000 + 125) | ||
| 115 | #define __NR_capset (0x40000000 + 126) | ||
| 116 | #define __NR_rt_sigsuspend (0x40000000 + 130) | ||
| 117 | #define __NR_utime (0x40000000 + 132) | ||
| 118 | #define __NR_mknod (0x40000000 + 133) | ||
| 119 | #define __NR_personality (0x40000000 + 135) | ||
| 120 | #define __NR_ustat (0x40000000 + 136) | ||
| 121 | #define __NR_statfs (0x40000000 + 137) | ||
| 122 | #define __NR_fstatfs (0x40000000 + 138) | ||
| 123 | #define __NR_sysfs (0x40000000 + 139) | ||
| 124 | #define __NR_getpriority (0x40000000 + 140) | ||
| 125 | #define __NR_setpriority (0x40000000 + 141) | ||
| 126 | #define __NR_sched_setparam (0x40000000 + 142) | ||
| 127 | #define __NR_sched_getparam (0x40000000 + 143) | ||
| 128 | #define __NR_sched_setscheduler (0x40000000 + 144) | ||
| 129 | #define __NR_sched_getscheduler (0x40000000 + 145) | ||
| 130 | #define __NR_sched_get_priority_max (0x40000000 + 146) | ||
| 131 | #define __NR_sched_get_priority_min (0x40000000 + 147) | ||
| 132 | #define __NR_sched_rr_get_interval (0x40000000 + 148) | ||
| 133 | #define __NR_mlock (0x40000000 + 149) | ||
| 134 | #define __NR_munlock (0x40000000 + 150) | ||
| 135 | #define __NR_mlockall (0x40000000 + 151) | ||
| 136 | #define __NR_munlockall (0x40000000 + 152) | ||
| 137 | #define __NR_vhangup (0x40000000 + 153) | ||
| 138 | #define __NR_modify_ldt (0x40000000 + 154) | ||
| 139 | #define __NR_pivot_root (0x40000000 + 155) | ||
| 140 | #define __NR_prctl (0x40000000 + 157) | ||
| 141 | #define __NR_arch_prctl (0x40000000 + 158) | ||
| 142 | #define __NR_adjtimex (0x40000000 + 159) | ||
| 143 | #define __NR_setrlimit (0x40000000 + 160) | ||
| 144 | #define __NR_chroot (0x40000000 + 161) | ||
| 145 | #define __NR_sync (0x40000000 + 162) | ||
| 146 | #define __NR_acct (0x40000000 + 163) | ||
| 147 | #define __NR_settimeofday (0x40000000 + 164) | ||
| 148 | #define __NR_mount (0x40000000 + 165) | ||
| 149 | #define __NR_umount2 (0x40000000 + 166) | ||
| 150 | #define __NR_swapon (0x40000000 + 167) | ||
| 151 | #define __NR_swapoff (0x40000000 + 168) | ||
| 152 | #define __NR_reboot (0x40000000 + 169) | ||
| 153 | #define __NR_sethostname (0x40000000 + 170) | ||
| 154 | #define __NR_setdomainname (0x40000000 + 171) | ||
| 155 | #define __NR_iopl (0x40000000 + 172) | ||
| 156 | #define __NR_ioperm (0x40000000 + 173) | ||
| 157 | #define __NR_init_module (0x40000000 + 175) | ||
| 158 | #define __NR_delete_module (0x40000000 + 176) | ||
| 159 | #define __NR_quotactl (0x40000000 + 179) | ||
| 160 | #define __NR_getpmsg (0x40000000 + 181) | ||
| 161 | #define __NR_putpmsg (0x40000000 + 182) | ||
| 162 | #define __NR_afs_syscall (0x40000000 + 183) | ||
| 163 | #define __NR_tuxcall (0x40000000 + 184) | ||
| 164 | #define __NR_security (0x40000000 + 185) | ||
| 165 | #define __NR_gettid (0x40000000 + 186) | ||
| 166 | #define __NR_readahead (0x40000000 + 187) | ||
| 167 | #define __NR_setxattr (0x40000000 + 188) | ||
| 168 | #define __NR_lsetxattr (0x40000000 + 189) | ||
| 169 | #define __NR_fsetxattr (0x40000000 + 190) | ||
| 170 | #define __NR_getxattr (0x40000000 + 191) | ||
| 171 | #define __NR_lgetxattr (0x40000000 + 192) | ||
| 172 | #define __NR_fgetxattr (0x40000000 + 193) | ||
| 173 | #define __NR_listxattr (0x40000000 + 194) | ||
| 174 | #define __NR_llistxattr (0x40000000 + 195) | ||
| 175 | #define __NR_flistxattr (0x40000000 + 196) | ||
| 176 | #define __NR_removexattr (0x40000000 + 197) | ||
| 177 | #define __NR_lremovexattr (0x40000000 + 198) | ||
| 178 | #define __NR_fremovexattr (0x40000000 + 199) | ||
| 179 | #define __NR_tkill (0x40000000 + 200) | ||
| 180 | #define __NR_time (0x40000000 + 201) | ||
| 181 | #define __NR_futex (0x40000000 + 202) | ||
| 182 | #define __NR_sched_setaffinity (0x40000000 + 203) | ||
| 183 | #define __NR_sched_getaffinity (0x40000000 + 204) | ||
| 184 | #define __NR_io_destroy (0x40000000 + 207) | ||
| 185 | #define __NR_io_getevents (0x40000000 + 208) | ||
| 186 | #define __NR_io_cancel (0x40000000 + 210) | ||
| 187 | #define __NR_lookup_dcookie (0x40000000 + 212) | ||
| 188 | #define __NR_epoll_create (0x40000000 + 213) | ||
| 189 | #define __NR_remap_file_pages (0x40000000 + 216) | ||
| 190 | #define __NR_getdents64 (0x40000000 + 217) | ||
| 191 | #define __NR_set_tid_address (0x40000000 + 218) | ||
| 192 | #define __NR_restart_syscall (0x40000000 + 219) | ||
| 193 | #define __NR_semtimedop (0x40000000 + 220) | ||
| 194 | #define __NR_fadvise64 (0x40000000 + 221) | ||
| 195 | #define __NR_timer_settime (0x40000000 + 223) | ||
| 196 | #define __NR_timer_gettime (0x40000000 + 224) | ||
| 197 | #define __NR_timer_getoverrun (0x40000000 + 225) | ||
| 198 | #define __NR_timer_delete (0x40000000 + 226) | ||
| 199 | #define __NR_clock_settime (0x40000000 + 227) | ||
| 200 | #define __NR_clock_gettime (0x40000000 + 228) | ||
| 201 | #define __NR_clock_getres (0x40000000 + 229) | ||
| 202 | #define __NR_clock_nanosleep (0x40000000 + 230) | ||
| 203 | #define __NR_exit_group (0x40000000 + 231) | ||
| 204 | #define __NR_epoll_wait (0x40000000 + 232) | ||
| 205 | #define __NR_epoll_ctl (0x40000000 + 233) | ||
| 206 | #define __NR_tgkill (0x40000000 + 234) | ||
| 207 | #define __NR_utimes (0x40000000 + 235) | ||
| 208 | #define __NR_mbind (0x40000000 + 237) | ||
| 209 | #define __NR_set_mempolicy (0x40000000 + 238) | ||
| 210 | #define __NR_get_mempolicy (0x40000000 + 239) | ||
| 211 | #define __NR_mq_open (0x40000000 + 240) | ||
| 212 | #define __NR_mq_unlink (0x40000000 + 241) | ||
| 213 | #define __NR_mq_timedsend (0x40000000 + 242) | ||
| 214 | #define __NR_mq_timedreceive (0x40000000 + 243) | ||
| 215 | #define __NR_mq_getsetattr (0x40000000 + 245) | ||
| 216 | #define __NR_add_key (0x40000000 + 248) | ||
| 217 | #define __NR_request_key (0x40000000 + 249) | ||
| 218 | #define __NR_keyctl (0x40000000 + 250) | ||
| 219 | #define __NR_ioprio_set (0x40000000 + 251) | ||
| 220 | #define __NR_ioprio_get (0x40000000 + 252) | ||
| 221 | #define __NR_inotify_init (0x40000000 + 253) | ||
| 222 | #define __NR_inotify_add_watch (0x40000000 + 254) | ||
| 223 | #define __NR_inotify_rm_watch (0x40000000 + 255) | ||
| 224 | #define __NR_migrate_pages (0x40000000 + 256) | ||
| 225 | #define __NR_openat (0x40000000 + 257) | ||
| 226 | #define __NR_mkdirat (0x40000000 + 258) | ||
| 227 | #define __NR_mknodat (0x40000000 + 259) | ||
| 228 | #define __NR_fchownat (0x40000000 + 260) | ||
| 229 | #define __NR_futimesat (0x40000000 + 261) | ||
| 230 | #define __NR_newfstatat (0x40000000 + 262) | ||
| 231 | #define __NR_unlinkat (0x40000000 + 263) | ||
| 232 | #define __NR_renameat (0x40000000 + 264) | ||
| 233 | #define __NR_linkat (0x40000000 + 265) | ||
| 234 | #define __NR_symlinkat (0x40000000 + 266) | ||
| 235 | #define __NR_readlinkat (0x40000000 + 267) | ||
| 236 | #define __NR_fchmodat (0x40000000 + 268) | ||
| 237 | #define __NR_faccessat (0x40000000 + 269) | ||
| 238 | #define __NR_pselect6 (0x40000000 + 270) | ||
| 239 | #define __NR_ppoll (0x40000000 + 271) | ||
| 240 | #define __NR_unshare (0x40000000 + 272) | ||
| 241 | #define __NR_splice (0x40000000 + 275) | ||
| 242 | #define __NR_tee (0x40000000 + 276) | ||
| 243 | #define __NR_sync_file_range (0x40000000 + 277) | ||
| 244 | #define __NR_utimensat (0x40000000 + 280) | ||
| 245 | #define __NR_epoll_pwait (0x40000000 + 281) | ||
| 246 | #define __NR_signalfd (0x40000000 + 282) | ||
| 247 | #define __NR_timerfd_create (0x40000000 + 283) | ||
| 248 | #define __NR_eventfd (0x40000000 + 284) | ||
| 249 | #define __NR_fallocate (0x40000000 + 285) | ||
| 250 | #define __NR_timerfd_settime (0x40000000 + 286) | ||
| 251 | #define __NR_timerfd_gettime (0x40000000 + 287) | ||
| 252 | #define __NR_accept4 (0x40000000 + 288) | ||
| 253 | #define __NR_signalfd4 (0x40000000 + 289) | ||
| 254 | #define __NR_eventfd2 (0x40000000 + 290) | ||
| 255 | #define __NR_epoll_create1 (0x40000000 + 291) | ||
| 256 | #define __NR_dup3 (0x40000000 + 292) | ||
| 257 | #define __NR_pipe2 (0x40000000 + 293) | ||
| 258 | #define __NR_inotify_init1 (0x40000000 + 294) | ||
| 259 | #define __NR_perf_event_open (0x40000000 + 298) | ||
| 260 | #define __NR_fanotify_init (0x40000000 + 300) | ||
| 261 | #define __NR_fanotify_mark (0x40000000 + 301) | ||
| 262 | #define __NR_prlimit64 (0x40000000 + 302) | ||
| 263 | #define __NR_name_to_handle_at (0x40000000 + 303) | ||
| 264 | #define __NR_open_by_handle_at (0x40000000 + 304) | ||
| 265 | #define __NR_clock_adjtime (0x40000000 + 305) | ||
| 266 | #define __NR_syncfs (0x40000000 + 306) | ||
| 267 | #define __NR_setns (0x40000000 + 308) | ||
| 268 | #define __NR_getcpu (0x40000000 + 309) | ||
| 269 | #define __NR_kcmp (0x40000000 + 312) | ||
| 270 | #define __NR_finit_module (0x40000000 + 313) | ||
| 271 | #define __NR_sched_setattr (0x40000000 + 314) | ||
| 272 | #define __NR_sched_getattr (0x40000000 + 315) | ||
| 273 | #define __NR_renameat2 (0x40000000 + 316) | ||
| 274 | #define __NR_seccomp (0x40000000 + 317) | ||
| 275 | #define __NR_getrandom (0x40000000 + 318) | ||
| 276 | #define __NR_memfd_create (0x40000000 + 319) | ||
| 277 | #define __NR_kexec_file_load (0x40000000 + 320) | ||
| 278 | #define __NR_bpf (0x40000000 + 321) | ||
| 279 | #define __NR_userfaultfd (0x40000000 + 323) | ||
| 280 | #define __NR_membarrier (0x40000000 + 324) | ||
| 281 | #define __NR_mlock2 (0x40000000 + 325) | ||
| 282 | #define __NR_copy_file_range (0x40000000 + 326) | ||
| 283 | #define __NR_pkey_mprotect (0x40000000 + 329) | ||
| 284 | #define __NR_pkey_alloc (0x40000000 + 330) | ||
| 285 | #define __NR_pkey_free (0x40000000 + 331) | ||
| 286 | #define __NR_statx (0x40000000 + 332) | ||
| 287 | #define __NR_io_pgetevents (0x40000000 + 333) | ||
| 288 | #define __NR_rseq (0x40000000 + 334) | ||
| 289 | #define __NR_pidfd_send_signal (0x40000000 + 424) | ||
| 290 | #define __NR_io_uring_setup (0x40000000 + 425) | ||
| 291 | #define __NR_io_uring_enter (0x40000000 + 426) | ||
| 292 | #define __NR_io_uring_register (0x40000000 + 427) | ||
| 293 | #define __NR_open_tree		(0x40000000 + 428) | ||
| 294 | #define __NR_move_mount		(0x40000000 + 429) | ||
| 295 | #define __NR_fsopen		(0x40000000 + 430) | ||
| 296 | #define __NR_fsconfig		(0x40000000 + 431) | ||
| 297 | #define __NR_fsmount		(0x40000000 + 432) | ||
| 298 | #define __NR_fspick		(0x40000000 + 433) | ||
| 299 | #define __NR_pidfd_open		(0x40000000 + 434) | ||
| 300 | #define __NR_clone3		(0x40000000 + 435) | ||
| 301 | #define __NR_close_range	(0x40000000 + 436) | ||
| 302 | #define __NR_openat2		(0x40000000 + 437) | ||
| 303 | #define __NR_pidfd_getfd	(0x40000000 + 438) | ||
| 304 | #define __NR_faccessat2		(0x40000000 + 439) | ||
| 305 | #define __NR_process_madvise	(0x40000000 + 440) | ||
| 306 | #define __NR_epoll_pwait2	(0x40000000 + 441) | ||
| 307 | #define __NR_mount_setattr	(0x40000000 + 442) | ||
| 308 | #define __NR_landlock_create_ruleset	(0x40000000 + 444) | ||
| 309 | #define __NR_landlock_add_rule	(0x40000000 + 445) | ||
| 310 | #define __NR_landlock_restrict_self	(0x40000000 + 446) | ||
| 311 | #define __NR_memfd_secret	(0x40000000 + 447) | ||
| 312 | #define __NR_process_mrelease	(0x40000000 + 448) | ||
| 313 | #define __NR_futex_waitv	(0x40000000 + 449) | ||
| 314 | #define __NR_set_mempolicy_home_node	(0x40000000 + 450) | ||
| 315 | #define __NR_cachestat		(0x40000000 + 451) | ||
| 316 | #define __NR_fchmodat2		(0x40000000 + 452) | ||
| 317 | |||
| 318 | |||
| 319 | #define __NR_rt_sigaction (0x40000000 + 512) | ||
| 320 | #define __NR_rt_sigreturn (0x40000000 + 513) | ||
| 321 | #define __NR_ioctl (0x40000000 + 514) | ||
| 322 | #define __NR_readv (0x40000000 + 515) | ||
| 323 | #define __NR_writev (0x40000000 + 516) | ||
| 324 | #define __NR_recvfrom (0x40000000 + 517) | ||
| 325 | #define __NR_sendmsg (0x40000000 + 518) | ||
| 326 | #define __NR_recvmsg (0x40000000 + 519) | ||
| 327 | #define __NR_execve (0x40000000 + 520) | ||
| 328 | #define __NR_ptrace (0x40000000 + 521) | ||
| 329 | #define __NR_rt_sigpending (0x40000000 + 522) | ||
| 330 | #define __NR_rt_sigtimedwait (0x40000000 + 523) | ||
| 331 | #define __NR_rt_sigqueueinfo (0x40000000 + 524) | ||
| 332 | #define __NR_sigaltstack (0x40000000 + 525) | ||
| 333 | #define __NR_timer_create (0x40000000 + 526) | ||
| 334 | #define __NR_mq_notify (0x40000000 + 527) | ||
| 335 | #define __NR_kexec_load (0x40000000 + 528) | ||
| 336 | #define __NR_waitid (0x40000000 + 529) | ||
| 337 | #define __NR_set_robust_list (0x40000000 + 530) | ||
| 338 | #define __NR_get_robust_list (0x40000000 + 531) | ||
| 339 | #define __NR_vmsplice (0x40000000 + 532) | ||
| 340 | #define __NR_move_pages (0x40000000 + 533) | ||
| 341 | #define __NR_preadv (0x40000000 + 534) | ||
| 342 | #define __NR_pwritev (0x40000000 + 535) | ||
| 343 | #define __NR_rt_tgsigqueueinfo (0x40000000 + 536) | ||
| 344 | #define __NR_recvmmsg (0x40000000 + 537) | ||
| 345 | #define __NR_sendmmsg (0x40000000 + 538) | ||
| 346 | #define __NR_process_vm_readv (0x40000000 + 539) | ||
| 347 | #define __NR_process_vm_writev (0x40000000 + 540) | ||
| 348 | #define __NR_setsockopt (0x40000000 + 541) | ||
| 349 | #define __NR_getsockopt (0x40000000 + 542) | ||
| 350 | #define __NR_io_setup (0x40000000 + 543) | ||
| 351 | #define __NR_io_submit (0x40000000 + 544) | ||
| 352 | #define __NR_execveat (0x40000000 + 545) | ||
| 353 | #define __NR_preadv2 (0x40000000 + 546) | ||
| 354 | #define __NR_pwritev2 (0x40000000 + 547) | ||
| 355 | |||
| 356 | #define SYS_read (0x40000000 + 0) | ||
| 357 | #define SYS_write (0x40000000 + 1) | ||
| 358 | #define SYS_open (0x40000000 + 2) | ||
| 359 | #define SYS_close (0x40000000 + 3) | ||
| 360 | #define SYS_stat (0x40000000 + 4) | ||
| 361 | #define SYS_fstat (0x40000000 + 5) | ||
| 362 | #define SYS_lstat (0x40000000 + 6) | ||
| 363 | #define SYS_poll (0x40000000 + 7) | ||
| 364 | #define SYS_lseek (0x40000000 + 8) | ||
| 365 | #define SYS_mmap (0x40000000 + 9) | ||
| 366 | #define SYS_mprotect (0x40000000 + 10) | ||
| 367 | #define SYS_munmap (0x40000000 + 11) | ||
| 368 | #define SYS_brk (0x40000000 + 12) | ||
| 369 | #define SYS_rt_sigprocmask (0x40000000 + 14) | ||
| 370 | #define SYS_pread64 (0x40000000 + 17) | ||
| 371 | #define SYS_pwrite64 (0x40000000 + 18) | ||
| 372 | #define SYS_access (0x40000000 + 21) | ||
| 373 | #define SYS_pipe (0x40000000 + 22) | ||
| 374 | #define SYS_select (0x40000000 + 23) | ||
| 375 | #define SYS_sched_yield (0x40000000 + 24) | ||
| 376 | #define SYS_mremap (0x40000000 + 25) | ||
| 377 | #define SYS_msync (0x40000000 + 26) | ||
| 378 | #define SYS_mincore (0x40000000 + 27) | ||
| 379 | #define SYS_madvise (0x40000000 + 28) | ||
| 380 | #define SYS_shmget (0x40000000 + 29) | ||
| 381 | #define SYS_shmat (0x40000000 + 30) | ||
| 382 | #define SYS_shmctl (0x40000000 + 31) | ||
| 383 | #define SYS_dup (0x40000000 + 32) | ||
| 384 | #define SYS_dup2 (0x40000000 + 33) | ||
| 385 | #define SYS_pause (0x40000000 + 34) | ||
| 386 | #define SYS_nanosleep (0x40000000 + 35) | ||
| 387 | #define SYS_getitimer (0x40000000 + 36) | ||
| 388 | #define SYS_alarm (0x40000000 + 37) | ||
| 389 | #define SYS_setitimer (0x40000000 + 38) | ||
| 390 | #define SYS_getpid (0x40000000 + 39) | ||
| 391 | #define SYS_sendfile (0x40000000 + 40) | ||
| 392 | #define SYS_socket (0x40000000 + 41) | ||
| 393 | #define SYS_connect (0x40000000 + 42) | ||
| 394 | #define SYS_accept (0x40000000 + 43) | ||
| 395 | #define SYS_sendto (0x40000000 + 44) | ||
| 396 | #define SYS_shutdown (0x40000000 + 48) | ||
| 397 | #define SYS_bind (0x40000000 + 49) | ||
| 398 | #define SYS_listen (0x40000000 + 50) | ||
| 399 | #define SYS_getsockname (0x40000000 + 51) | ||
| 400 | #define SYS_getpeername (0x40000000 + 52) | ||
| 401 | #define SYS_socketpair (0x40000000 + 53) | ||
| 402 | #define SYS_clone (0x40000000 + 56) | ||
| 403 | #define SYS_fork (0x40000000 + 57) | ||
| 404 | #define SYS_vfork (0x40000000 + 58) | ||
| 405 | #define SYS_exit (0x40000000 + 60) | ||
| 406 | #define SYS_wait4 (0x40000000 + 61) | ||
| 407 | #define SYS_kill (0x40000000 + 62) | ||
| 408 | #define SYS_uname (0x40000000 + 63) | ||
| 409 | #define SYS_semget (0x40000000 + 64) | ||
| 410 | #define SYS_semop (0x40000000 + 65) | ||
| 411 | #define SYS_semctl (0x40000000 + 66) | ||
| 412 | #define SYS_shmdt (0x40000000 + 67) | ||
| 413 | #define SYS_msgget (0x40000000 + 68) | ||
| 414 | #define SYS_msgsnd (0x40000000 + 69) | ||
| 415 | #define SYS_msgrcv (0x40000000 + 70) | ||
| 416 | #define SYS_msgctl (0x40000000 + 71) | ||
| 417 | #define SYS_fcntl (0x40000000 + 72) | ||
| 418 | #define SYS_flock (0x40000000 + 73) | ||
| 419 | #define SYS_fsync (0x40000000 + 74) | ||
| 420 | #define SYS_fdatasync (0x40000000 + 75) | ||
| 421 | #define SYS_truncate (0x40000000 + 76) | ||
| 422 | #define SYS_ftruncate (0x40000000 + 77) | ||
| 423 | #define SYS_getdents (0x40000000 + 78) | ||
| 424 | #define SYS_getcwd (0x40000000 + 79) | ||
| 425 | #define SYS_chdir (0x40000000 + 80) | ||
| 426 | #define SYS_fchdir (0x40000000 + 81) | ||
| 427 | #define SYS_rename (0x40000000 + 82) | ||
| 428 | #define SYS_mkdir (0x40000000 + 83) | ||
| 429 | #define SYS_rmdir (0x40000000 + 84) | ||
| 430 | #define SYS_creat (0x40000000 + 85) | ||
| 431 | #define SYS_link (0x40000000 + 86) | ||
| 432 | #define SYS_unlink (0x40000000 + 87) | ||
| 433 | #define SYS_symlink (0x40000000 + 88) | ||
| 434 | #define SYS_readlink (0x40000000 + 89) | ||
| 435 | #define SYS_chmod (0x40000000 + 90) | ||
| 436 | #define SYS_fchmod (0x40000000 + 91) | ||
| 437 | #define SYS_chown (0x40000000 + 92) | ||
| 438 | #define SYS_fchown (0x40000000 + 93) | ||
| 439 | #define SYS_lchown (0x40000000 + 94) | ||
| 440 | #define SYS_umask (0x40000000 + 95) | ||
| 441 | #define SYS_gettimeofday (0x40000000 + 96) | ||
| 442 | #define SYS_getrlimit (0x40000000 + 97) | ||
| 443 | #define SYS_getrusage (0x40000000 + 98) | ||
| 444 | #define SYS_sysinfo (0x40000000 + 99) | ||
| 445 | #define SYS_times (0x40000000 + 100) | ||
| 446 | #define SYS_getuid (0x40000000 + 102) | ||
| 447 | #define SYS_syslog (0x40000000 + 103) | ||
| 448 | #define SYS_getgid (0x40000000 + 104) | ||
| 449 | #define SYS_setuid (0x40000000 + 105) | ||
| 450 | #define SYS_setgid (0x40000000 + 106) | ||
| 451 | #define SYS_geteuid (0x40000000 + 107) | ||
| 452 | #define SYS_getegid (0x40000000 + 108) | ||
| 453 | #define SYS_setpgid (0x40000000 + 109) | ||
| 454 | #define SYS_getppid (0x40000000 + 110) | ||
| 455 | #define SYS_getpgrp (0x40000000 + 111) | ||
| 456 | #define SYS_setsid (0x40000000 + 112) | ||
| 457 | #define SYS_setreuid (0x40000000 + 113) | ||
| 458 | #define SYS_setregid (0x40000000 + 114) | ||
| 459 | #define SYS_getgroups (0x40000000 + 115) | ||
| 460 | #define SYS_setgroups (0x40000000 + 116) | ||
| 461 | #define SYS_setresuid (0x40000000 + 117) | ||
| 462 | #define SYS_getresuid (0x40000000 + 118) | ||
| 463 | #define SYS_setresgid (0x40000000 + 119) | ||
| 464 | #define SYS_getresgid (0x40000000 + 120) | ||
| 465 | #define SYS_getpgid (0x40000000 + 121) | ||
| 466 | #define SYS_setfsuid (0x40000000 + 122) | ||
| 467 | #define SYS_setfsgid (0x40000000 + 123) | ||
| 468 | #define SYS_getsid (0x40000000 + 124) | ||
| 469 | #define SYS_capget (0x40000000 + 125) | ||
| 470 | #define SYS_capset (0x40000000 + 126) | ||
| 471 | #define SYS_rt_sigsuspend (0x40000000 + 130) | ||
| 472 | #define SYS_utime (0x40000000 + 132) | ||
| 473 | #define SYS_mknod (0x40000000 + 133) | ||
| 474 | #define SYS_personality (0x40000000 + 135) | ||
| 475 | #define SYS_ustat (0x40000000 + 136) | ||
| 476 | #define SYS_statfs (0x40000000 + 137) | ||
| 477 | #define SYS_fstatfs (0x40000000 + 138) | ||
| 478 | #define SYS_sysfs (0x40000000 + 139) | ||
| 479 | #define SYS_getpriority (0x40000000 + 140) | ||
| 480 | #define SYS_setpriority (0x40000000 + 141) | ||
| 481 | #define SYS_sched_setparam (0x40000000 + 142) | ||
| 482 | #define SYS_sched_getparam (0x40000000 + 143) | ||
| 483 | #define SYS_sched_setscheduler (0x40000000 + 144) | ||
| 484 | #define SYS_sched_getscheduler (0x40000000 + 145) | ||
| 485 | #define SYS_sched_get_priority_max (0x40000000 + 146) | ||
| 486 | #define SYS_sched_get_priority_min (0x40000000 + 147) | ||
| 487 | #define SYS_sched_rr_get_interval (0x40000000 + 148) | ||
| 488 | #define SYS_mlock (0x40000000 + 149) | ||
| 489 | #define SYS_munlock (0x40000000 + 150) | ||
| 490 | #define SYS_mlockall (0x40000000 + 151) | ||
| 491 | #define SYS_munlockall (0x40000000 + 152) | ||
| 492 | #define SYS_vhangup (0x40000000 + 153) | ||
| 493 | #define SYS_modify_ldt (0x40000000 + 154) | ||
| 494 | #define SYS_pivot_root (0x40000000 + 155) | ||
| 495 | #define SYS_prctl (0x40000000 + 157) | ||
| 496 | #define SYS_arch_prctl (0x40000000 + 158) | ||
| 497 | #define SYS_adjtimex (0x40000000 + 159) | ||
| 498 | #define SYS_setrlimit (0x40000000 + 160) | ||
| 499 | #define SYS_chroot (0x40000000 + 161) | ||
| 500 | #define SYS_sync (0x40000000 + 162) | ||
| 501 | #define SYS_acct (0x40000000 + 163) | ||
| 502 | #define SYS_settimeofday (0x40000000 + 164) | ||
| 503 | #define SYS_mount (0x40000000 + 165) | ||
| 504 | #define SYS_umount2 (0x40000000 + 166) | ||
| 505 | #define SYS_swapon (0x40000000 + 167) | ||
| 506 | #define SYS_swapoff (0x40000000 + 168) | ||
| 507 | #define SYS_reboot (0x40000000 + 169) | ||
| 508 | #define SYS_sethostname (0x40000000 + 170) | ||
| 509 | #define SYS_setdomainname (0x40000000 + 171) | ||
| 510 | #define SYS_iopl (0x40000000 + 172) | ||
| 511 | #define SYS_ioperm (0x40000000 + 173) | ||
| 512 | #define SYS_init_module (0x40000000 + 175) | ||
| 513 | #define SYS_delete_module (0x40000000 + 176) | ||
| 514 | #define SYS_quotactl (0x40000000 + 179) | ||
| 515 | #define SYS_getpmsg (0x40000000 + 181) | ||
| 516 | #define SYS_putpmsg (0x40000000 + 182) | ||
| 517 | #define SYS_afs_syscall (0x40000000 + 183) | ||
| 518 | #define SYS_tuxcall (0x40000000 + 184) | ||
| 519 | #define SYS_security (0x40000000 + 185) | ||
| 520 | #define SYS_gettid (0x40000000 + 186) | ||
| 521 | #define SYS_readahead (0x40000000 + 187) | ||
| 522 | #define SYS_setxattr (0x40000000 + 188) | ||
| 523 | #define SYS_lsetxattr (0x40000000 + 189) | ||
| 524 | #define SYS_fsetxattr (0x40000000 + 190) | ||
| 525 | #define SYS_getxattr (0x40000000 + 191) | ||
| 526 | #define SYS_lgetxattr (0x40000000 + 192) | ||
| 527 | #define SYS_fgetxattr (0x40000000 + 193) | ||
| 528 | #define SYS_listxattr (0x40000000 + 194) | ||
| 529 | #define SYS_llistxattr (0x40000000 + 195) | ||
| 530 | #define SYS_flistxattr (0x40000000 + 196) | ||
| 531 | #define SYS_removexattr (0x40000000 + 197) | ||
| 532 | #define SYS_lremovexattr (0x40000000 + 198) | ||
| 533 | #define SYS_fremovexattr (0x40000000 + 199) | ||
| 534 | #define SYS_tkill (0x40000000 + 200) | ||
| 535 | #define SYS_time (0x40000000 + 201) | ||
| 536 | #define SYS_futex (0x40000000 + 202) | ||
| 537 | #define SYS_sched_setaffinity (0x40000000 + 203) | ||
| 538 | #define SYS_sched_getaffinity (0x40000000 + 204) | ||
| 539 | #define SYS_io_destroy (0x40000000 + 207) | ||
| 540 | #define SYS_io_getevents (0x40000000 + 208) | ||
| 541 | #define SYS_io_cancel (0x40000000 + 210) | ||
| 542 | #define SYS_lookup_dcookie (0x40000000 + 212) | ||
| 543 | #define SYS_epoll_create (0x40000000 + 213) | ||
| 544 | #define SYS_remap_file_pages (0x40000000 + 216) | ||
| 545 | #define SYS_getdents64 (0x40000000 + 217) | ||
| 546 | #define SYS_set_tid_address (0x40000000 + 218) | ||
| 547 | #define SYS_restart_syscall (0x40000000 + 219) | ||
| 548 | #define SYS_semtimedop (0x40000000 + 220) | ||
| 549 | #define SYS_fadvise64 (0x40000000 + 221) | ||
| 550 | #define SYS_timer_settime (0x40000000 + 223) | ||
| 551 | #define SYS_timer_gettime (0x40000000 + 224) | ||
| 552 | #define SYS_timer_getoverrun (0x40000000 + 225) | ||
| 553 | #define SYS_timer_delete (0x40000000 + 226) | ||
| 554 | #define SYS_clock_settime (0x40000000 + 227) | ||
| 555 | #define SYS_clock_gettime (0x40000000 + 228) | ||
| 556 | #define SYS_clock_getres (0x40000000 + 229) | ||
| 557 | #define SYS_clock_nanosleep (0x40000000 + 230) | ||
| 558 | #define SYS_exit_group (0x40000000 + 231) | ||
| 559 | #define SYS_epoll_wait (0x40000000 + 232) | ||
| 560 | #define SYS_epoll_ctl (0x40000000 + 233) | ||
| 561 | #define SYS_tgkill (0x40000000 + 234) | ||
| 562 | #define SYS_utimes (0x40000000 + 235) | ||
| 563 | #define SYS_mbind (0x40000000 + 237) | ||
| 564 | #define SYS_set_mempolicy (0x40000000 + 238) | ||
| 565 | #define SYS_get_mempolicy (0x40000000 + 239) | ||
| 566 | #define SYS_mq_open (0x40000000 + 240) | ||
| 567 | #define SYS_mq_unlink (0x40000000 + 241) | ||
| 568 | #define SYS_mq_timedsend (0x40000000 + 242) | ||
| 569 | #define SYS_mq_timedreceive (0x40000000 + 243) | ||
| 570 | #define SYS_mq_getsetattr (0x40000000 + 245) | ||
| 571 | #define SYS_add_key (0x40000000 + 248) | ||
| 572 | #define SYS_request_key (0x40000000 + 249) | ||
| 573 | #define SYS_keyctl (0x40000000 + 250) | ||
| 574 | #define SYS_ioprio_set (0x40000000 + 251) | ||
| 575 | #define SYS_ioprio_get (0x40000000 + 252) | ||
| 576 | #define SYS_inotify_init (0x40000000 + 253) | ||
| 577 | #define SYS_inotify_add_watch (0x40000000 + 254) | ||
| 578 | #define SYS_inotify_rm_watch (0x40000000 + 255) | ||
| 579 | #define SYS_migrate_pages (0x40000000 + 256) | ||
| 580 | #define SYS_openat (0x40000000 + 257) | ||
| 581 | #define SYS_mkdirat (0x40000000 + 258) | ||
| 582 | #define SYS_mknodat (0x40000000 + 259) | ||
| 583 | #define SYS_fchownat (0x40000000 + 260) | ||
| 584 | #define SYS_futimesat (0x40000000 + 261) | ||
| 585 | #define SYS_newfstatat (0x40000000 + 262) | ||
| 586 | #define SYS_unlinkat (0x40000000 + 263) | ||
| 587 | #define SYS_renameat (0x40000000 + 264) | ||
| 588 | #define SYS_linkat (0x40000000 + 265) | ||
| 589 | #define SYS_symlinkat (0x40000000 + 266) | ||
| 590 | #define SYS_readlinkat (0x40000000 + 267) | ||
| 591 | #define SYS_fchmodat (0x40000000 + 268) | ||
| 592 | #define SYS_faccessat (0x40000000 + 269) | ||
| 593 | #define SYS_pselect6 (0x40000000 + 270) | ||
| 594 | #define SYS_ppoll (0x40000000 + 271) | ||
| 595 | #define SYS_unshare (0x40000000 + 272) | ||
| 596 | #define SYS_splice (0x40000000 + 275) | ||
| 597 | #define SYS_tee (0x40000000 + 276) | ||
| 598 | #define SYS_sync_file_range (0x40000000 + 277) | ||
| 599 | #define SYS_utimensat (0x40000000 + 280) | ||
| 600 | #define SYS_epoll_pwait (0x40000000 + 281) | ||
| 601 | #define SYS_signalfd (0x40000000 + 282) | ||
| 602 | #define SYS_timerfd_create (0x40000000 + 283) | ||
| 603 | #define SYS_eventfd (0x40000000 + 284) | ||
| 604 | #define SYS_fallocate (0x40000000 + 285) | ||
| 605 | #define SYS_timerfd_settime (0x40000000 + 286) | ||
| 606 | #define SYS_timerfd_gettime (0x40000000 + 287) | ||
| 607 | #define SYS_accept4 (0x40000000 + 288) | ||
| 608 | #define SYS_signalfd4 (0x40000000 + 289) | ||
| 609 | #define SYS_eventfd2 (0x40000000 + 290) | ||
| 610 | #define SYS_epoll_create1 (0x40000000 + 291) | ||
| 611 | #define SYS_dup3 (0x40000000 + 292) | ||
| 612 | #define SYS_pipe2 (0x40000000 + 293) | ||
| 613 | #define SYS_inotify_init1 (0x40000000 + 294) | ||
| 614 | #define SYS_perf_event_open (0x40000000 + 298) | ||
| 615 | #define SYS_fanotify_init (0x40000000 + 300) | ||
| 616 | #define SYS_fanotify_mark (0x40000000 + 301) | ||
| 617 | #define SYS_prlimit64 (0x40000000 + 302) | ||
| 618 | #define SYS_name_to_handle_at (0x40000000 + 303) | ||
| 619 | #define SYS_open_by_handle_at (0x40000000 + 304) | ||
| 620 | #define SYS_clock_adjtime (0x40000000 + 305) | ||
| 621 | #define SYS_syncfs (0x40000000 + 306) | ||
| 622 | #define SYS_setns (0x40000000 + 308) | ||
| 623 | #define SYS_getcpu (0x40000000 + 309) | ||
| 624 | #define SYS_kcmp (0x40000000 + 312) | ||
| 625 | #define SYS_finit_module (0x40000000 + 313) | ||
| 626 | #define SYS_sched_setattr (0x40000000 + 314) | ||
| 627 | #define SYS_sched_getattr (0x40000000 + 315) | ||
| 628 | #define SYS_renameat2 (0x40000000 + 316) | ||
| 629 | #define SYS_seccomp (0x40000000 + 317) | ||
| 630 | #define SYS_getrandom (0x40000000 + 318) | ||
| 631 | #define SYS_memfd_create (0x40000000 + 319) | ||
| 632 | #define SYS_kexec_file_load (0x40000000 + 320) | ||
| 633 | #define SYS_bpf (0x40000000 + 321) | ||
| 634 | #define SYS_userfaultfd (0x40000000 + 323) | ||
| 635 | #define SYS_membarrier (0x40000000 + 324) | ||
| 636 | #define SYS_mlock2 (0x40000000 + 325) | ||
| 637 | #define SYS_copy_file_range (0x40000000 + 326) | ||
| 638 | #define SYS_pkey_mprotect (0x40000000 + 329) | ||
| 639 | #define SYS_pkey_alloc (0x40000000 + 330) | ||
| 640 | #define SYS_pkey_free (0x40000000 + 331) | ||
| 641 | #define SYS_statx (0x40000000 + 332) | ||
| 642 | #define SYS_io_pgetevents (0x40000000 + 333) | ||
| 643 | #define SYS_rseq (0x40000000 + 334) | ||
| 644 | #define SYS_pidfd_send_signal (0x40000000 + 424) | ||
| 645 | #define SYS_io_uring_setup (0x40000000 + 425) | ||
| 646 | #define SYS_io_uring_enter (0x40000000 + 426) | ||
| 647 | #define SYS_io_uring_register (0x40000000 + 427) | ||
| 648 | #define SYS_open_tree		(0x40000000 + 428) | ||
| 649 | #define SYS_move_mount		(0x40000000 + 429) | ||
| 650 | #define SYS_fsopen		(0x40000000 + 430) | ||
| 651 | #define SYS_fsconfig		(0x40000000 + 431) | ||
| 652 | #define SYS_fsmount		(0x40000000 + 432) | ||
| 653 | #define SYS_fspick		(0x40000000 + 433) | ||
| 654 | #define SYS_pidfd_open		(0x40000000 + 434) | ||
| 655 | #define SYS_clone3		(0x40000000 + 435) | ||
| 656 | #define SYS_close_range	(0x40000000 + 436) | ||
| 657 | #define SYS_openat2		(0x40000000 + 437) | ||
| 658 | #define SYS_pidfd_getfd	(0x40000000 + 438) | ||
| 659 | #define SYS_faccessat2		(0x40000000 + 439) | ||
| 660 | #define SYS_process_madvise	(0x40000000 + 440) | ||
| 661 | #define SYS_epoll_pwait2	(0x40000000 + 441) | ||
| 662 | #define SYS_mount_setattr	(0x40000000 + 442) | ||
| 663 | #define SYS_landlock_create_ruleset	(0x40000000 + 444) | ||
| 664 | #define SYS_landlock_add_rule	(0x40000000 + 445) | ||
| 665 | #define SYS_landlock_restrict_self	(0x40000000 + 446) | ||
| 666 | #define SYS_memfd_secret	(0x40000000 + 447) | ||
| 667 | #define SYS_process_mrelease	(0x40000000 + 448) | ||
| 668 | #define SYS_futex_waitv	(0x40000000 + 449) | ||
| 669 | #define SYS_set_mempolicy_home_node	(0x40000000 + 450) | ||
| 670 | #define SYS_cachestat		(0x40000000 + 451) | ||
| 671 | #define SYS_fchmodat2		(0x40000000 + 452) | ||
| 672 | #define SYS_rt_sigaction (0x40000000 + 512) | ||
| 673 | #define SYS_rt_sigreturn (0x40000000 + 513) | ||
| 674 | #define SYS_ioctl (0x40000000 + 514) | ||
| 675 | #define SYS_readv (0x40000000 + 515) | ||
| 676 | #define SYS_writev (0x40000000 + 516) | ||
| 677 | #define SYS_recvfrom (0x40000000 + 517) | ||
| 678 | #define SYS_sendmsg (0x40000000 + 518) | ||
| 679 | #define SYS_recvmsg (0x40000000 + 519) | ||
| 680 | #define SYS_execve (0x40000000 + 520) | ||
| 681 | #define SYS_ptrace (0x40000000 + 521) | ||
| 682 | #define SYS_rt_sigpending (0x40000000 + 522) | ||
| 683 | #define SYS_rt_sigtimedwait (0x40000000 + 523) | ||
| 684 | #define SYS_rt_sigqueueinfo (0x40000000 + 524) | ||
| 685 | #define SYS_sigaltstack (0x40000000 + 525) | ||
| 686 | #define SYS_timer_create (0x40000000 + 526) | ||
| 687 | #define SYS_mq_notify (0x40000000 + 527) | ||
| 688 | #define SYS_kexec_load (0x40000000 + 528) | ||
| 689 | #define SYS_waitid (0x40000000 + 529) | ||
| 690 | #define SYS_set_robust_list (0x40000000 + 530) | ||
| 691 | #define SYS_get_robust_list (0x40000000 + 531) | ||
| 692 | #define SYS_vmsplice (0x40000000 + 532) | ||
| 693 | #define SYS_move_pages (0x40000000 + 533) | ||
| 694 | #define SYS_preadv (0x40000000 + 534) | ||
| 695 | #define SYS_pwritev (0x40000000 + 535) | ||
| 696 | #define SYS_rt_tgsigqueueinfo (0x40000000 + 536) | ||
| 697 | #define SYS_recvmmsg (0x40000000 + 537) | ||
| 698 | #define SYS_sendmmsg (0x40000000 + 538) | ||
| 699 | #define SYS_process_vm_readv (0x40000000 + 539) | ||
| 700 | #define SYS_process_vm_writev (0x40000000 + 540) | ||
| 701 | #define SYS_setsockopt (0x40000000 + 541) | ||
| 702 | #define SYS_getsockopt (0x40000000 + 542) | ||
| 703 | #define SYS_io_setup (0x40000000 + 543) | ||
| 704 | #define SYS_io_submit (0x40000000 + 544) | ||
| 705 | #define SYS_execveat (0x40000000 + 545) | ||
| 706 | #define SYS_preadv2 (0x40000000 + 546) | ||
| 707 | #define SYS_pwritev2 (0x40000000 + 547) | ||
| \ No newline at end of file | |||
lib/libc/include/x86_64-linux-muslx32/bits/user.h created+41| ... | @@ -0,0 +1,41 @@ | ||
| 1 | #undef __WORDSIZE | ||
| 2 | #define __WORDSIZE 32 | ||
| 3 | |||
| 4 | typedef struct user_fpregs_struct { | ||
| 5 | 	uint16_t cwd, swd, ftw, fop; | ||
| 6 | 	uint64_t rip, rdp; | ||
| 7 | 	uint32_t mxcsr, mxcr_mask; | ||
| 8 | 	uint32_t st_space[32], xmm_space[64], padding[24]; | ||
| 9 | } elf_fpregset_t; | ||
| 10 | |||
| 11 | struct user_regs_struct { | ||
| 12 | 	unsigned long r15, r14, r13, r12, rbp, rbx, r11, r10, r9, r8; | ||
| 13 | 	unsigned long rax, rcx, rdx, rsi, rdi, orig_rax, rip; | ||
| 14 | 	unsigned long cs, eflags, rsp, ss, fs_base, gs_base, ds, es, fs, gs; | ||
| 15 | }; | ||
| 16 | #define ELF_NGREG 27 | ||
| 17 | typedef unsigned long long elf_greg_t, elf_gregset_t[ELF_NGREG]; | ||
| 18 | |||
| 19 | struct user { | ||
| 20 | 	struct user_regs_struct		regs; | ||
| 21 | 	int				u_fpvalid; | ||
| 22 | 	struct user_fpregs_struct	i387; | ||
| 23 | 	unsigned long			u_tsize; | ||
| 24 | 	unsigned long			u_dsize; | ||
| 25 | 	unsigned long			u_ssize; | ||
| 26 | 	unsigned long			start_code; | ||
| 27 | 	unsigned long			start_stack; | ||
| 28 | 	long				signal; | ||
| 29 | 	int				reserved; | ||
| 30 | 	struct user_regs_struct		*u_ar0; | ||
| 31 | 	struct user_fpregs_struct	*u_fpstate; | ||
| 32 | 	unsigned long			magic; | ||
| 33 | 	char				u_comm[32]; | ||
| 34 | 	unsigned long			u_debugreg[8]; | ||
| 35 | }; | ||
| 36 | |||
| 37 | #define PAGE_MASK		(~(PAGESIZE-1)) | ||
| 38 | #define NBPG			PAGESIZE | ||
| 39 | #define UPAGES			1 | ||
| 40 | #define HOST_TEXT_START_ADDR	(u.start_code) | ||
| 41 | #define HOST_STACK_END_ADDR	(u.start_stack + u.u_ssize * NBPG) | ||
| \ No newline at end of file | |||
lib/libc/musl/arch/aarch64/bits/alltypes.h.in deleted-24| ... | @@ -1,24 +0,0 @@ | ||
| 1 | #define _Addr long | ||
| 2 | #define _Int64 long | ||
| 3 | #define _Reg long | ||
| 4 | |||
| 5 | #if __AARCH64EB__ | ||
| 6 | #define __BYTE_ORDER 4321 | ||
| 7 | #else | ||
| 8 | #define __BYTE_ORDER 1234 | ||
| 9 | #endif | ||
| 10 | |||
| 11 | #define __LONG_MAX 0x7fffffffffffffffL | ||
| 12 | |||
| 13 | #ifndef __cplusplus | ||
| 14 | TYPEDEF unsigned wchar_t; | ||
| 15 | #endif | ||
| 16 | TYPEDEF unsigned wint_t; | ||
| 17 | |||
| 18 | TYPEDEF int blksize_t; | ||
| 19 | TYPEDEF unsigned int nlink_t; | ||
| 20 | |||
| 21 | TYPEDEF float float_t; | ||
| 22 | TYPEDEF double double_t; | ||
| 23 | |||
| 24 | TYPEDEF struct { long long __ll; long double __ld; } max_align_t; | ||
lib/libc/musl/arch/aarch64/bits/syscall.h.in deleted-307| ... | @@ -1,307 +0,0 @@ | ||
| 1 | #define __NR_io_setup 0 | ||
| 2 | #define __NR_io_destroy 1 | ||
| 3 | #define __NR_io_submit 2 | ||
| 4 | #define __NR_io_cancel 3 | ||
| 5 | #define __NR_io_getevents 4 | ||
| 6 | #define __NR_setxattr 5 | ||
| 7 | #define __NR_lsetxattr 6 | ||
| 8 | #define __NR_fsetxattr 7 | ||
| 9 | #define __NR_getxattr 8 | ||
| 10 | #define __NR_lgetxattr 9 | ||
| 11 | #define __NR_fgetxattr 10 | ||
| 12 | #define __NR_listxattr 11 | ||
| 13 | #define __NR_llistxattr 12 | ||
| 14 | #define __NR_flistxattr 13 | ||
| 15 | #define __NR_removexattr 14 | ||
| 16 | #define __NR_lremovexattr 15 | ||
| 17 | #define __NR_fremovexattr 16 | ||
| 18 | #define __NR_getcwd 17 | ||
| 19 | #define __NR_lookup_dcookie 18 | ||
| 20 | #define __NR_eventfd2 19 | ||
| 21 | #define __NR_epoll_create1 20 | ||
| 22 | #define __NR_epoll_ctl 21 | ||
| 23 | #define __NR_epoll_pwait 22 | ||
| 24 | #define __NR_dup 23 | ||
| 25 | #define __NR_dup3 24 | ||
| 26 | #define __NR_fcntl 25 | ||
| 27 | #define __NR_inotify_init1 26 | ||
| 28 | #define __NR_inotify_add_watch 27 | ||
| 29 | #define __NR_inotify_rm_watch 28 | ||
| 30 | #define __NR_ioctl 29 | ||
| 31 | #define __NR_ioprio_set 30 | ||
| 32 | #define __NR_ioprio_get 31 | ||
| 33 | #define __NR_flock 32 | ||
| 34 | #define __NR_mknodat 33 | ||
| 35 | #define __NR_mkdirat 34 | ||
| 36 | #define __NR_unlinkat 35 | ||
| 37 | #define __NR_symlinkat 36 | ||
| 38 | #define __NR_linkat 37 | ||
| 39 | #define __NR_renameat 38 | ||
| 40 | #define __NR_umount2 39 | ||
| 41 | #define __NR_mount 40 | ||
| 42 | #define __NR_pivot_root 41 | ||
| 43 | #define __NR_nfsservctl 42 | ||
| 44 | #define __NR_statfs 43 | ||
| 45 | #define __NR_fstatfs 44 | ||
| 46 | #define __NR_truncate 45 | ||
| 47 | #define __NR_ftruncate 46 | ||
| 48 | #define __NR_fallocate 47 | ||
| 49 | #define __NR_faccessat 48 | ||
| 50 | #define __NR_chdir 49 | ||
| 51 | #define __NR_fchdir 50 | ||
| 52 | #define __NR_chroot 51 | ||
| 53 | #define __NR_fchmod 52 | ||
| 54 | #define __NR_fchmodat 53 | ||
| 55 | #define __NR_fchownat 54 | ||
| 56 | #define __NR_fchown 55 | ||
| 57 | #define __NR_openat 56 | ||
| 58 | #define __NR_close 57 | ||
| 59 | #define __NR_vhangup 58 | ||
| 60 | #define __NR_pipe2 59 | ||
| 61 | #define __NR_quotactl 60 | ||
| 62 | #define __NR_getdents64 61 | ||
| 63 | #define __NR_lseek 62 | ||
| 64 | #define __NR_read 63 | ||
| 65 | #define __NR_write 64 | ||
| 66 | #define __NR_readv 65 | ||
| 67 | #define __NR_writev 66 | ||
| 68 | #define __NR_pread64 67 | ||
| 69 | #define __NR_pwrite64 68 | ||
| 70 | #define __NR_preadv 69 | ||
| 71 | #define __NR_pwritev 70 | ||
| 72 | #define __NR_sendfile 71 | ||
| 73 | #define __NR_pselect6 72 | ||
| 74 | #define __NR_ppoll 73 | ||
| 75 | #define __NR_signalfd4 74 | ||
| 76 | #define __NR_vmsplice 75 | ||
| 77 | #define __NR_splice 76 | ||
| 78 | #define __NR_tee 77 | ||
| 79 | #define __NR_readlinkat 78 | ||
| 80 | #define __NR_newfstatat 79 | ||
| 81 | #define __NR_fstat 80 | ||
| 82 | #define __NR_sync 81 | ||
| 83 | #define __NR_fsync 82 | ||
| 84 | #define __NR_fdatasync 83 | ||
| 85 | #define __NR_sync_file_range 84 | ||
| 86 | #define __NR_timerfd_create 85 | ||
| 87 | #define __NR_timerfd_settime 86 | ||
| 88 | #define __NR_timerfd_gettime 87 | ||
| 89 | #define __NR_utimensat 88 | ||
| 90 | #define __NR_acct 89 | ||
| 91 | #define __NR_capget 90 | ||
| 92 | #define __NR_capset 91 | ||
| 93 | #define __NR_personality 92 | ||
| 94 | #define __NR_exit 93 | ||
| 95 | #define __NR_exit_group 94 | ||
| 96 | #define __NR_waitid 95 | ||
| 97 | #define __NR_set_tid_address 96 | ||
| 98 | #define __NR_unshare 97 | ||
| 99 | #define __NR_futex 98 | ||
| 100 | #define __NR_set_robust_list 99 | ||
| 101 | #define __NR_get_robust_list 100 | ||
| 102 | #define __NR_nanosleep 101 | ||
| 103 | #define __NR_getitimer 102 | ||
| 104 | #define __NR_setitimer 103 | ||
| 105 | #define __NR_kexec_load 104 | ||
| 106 | #define __NR_init_module 105 | ||
| 107 | #define __NR_delete_module 106 | ||
| 108 | #define __NR_timer_create 107 | ||
| 109 | #define __NR_timer_gettime 108 | ||
| 110 | #define __NR_timer_getoverrun 109 | ||
| 111 | #define __NR_timer_settime 110 | ||
| 112 | #define __NR_timer_delete 111 | ||
| 113 | #define __NR_clock_settime 112 | ||
| 114 | #define __NR_clock_gettime 113 | ||
| 115 | #define __NR_clock_getres 114 | ||
| 116 | #define __NR_clock_nanosleep 115 | ||
| 117 | #define __NR_syslog 116 | ||
| 118 | #define __NR_ptrace 117 | ||
| 119 | #define __NR_sched_setparam 118 | ||
| 120 | #define __NR_sched_setscheduler 119 | ||
| 121 | #define __NR_sched_getscheduler 120 | ||
| 122 | #define __NR_sched_getparam 121 | ||
| 123 | #define __NR_sched_setaffinity 122 | ||
| 124 | #define __NR_sched_getaffinity 123 | ||
| 125 | #define __NR_sched_yield 124 | ||
| 126 | #define __NR_sched_get_priority_max 125 | ||
| 127 | #define __NR_sched_get_priority_min 126 | ||
| 128 | #define __NR_sched_rr_get_interval 127 | ||
| 129 | #define __NR_restart_syscall 128 | ||
| 130 | #define __NR_kill 129 | ||
| 131 | #define __NR_tkill 130 | ||
| 132 | #define __NR_tgkill 131 | ||
| 133 | #define __NR_sigaltstack 132 | ||
| 134 | #define __NR_rt_sigsuspend 133 | ||
| 135 | #define __NR_rt_sigaction 134 | ||
| 136 | #define __NR_rt_sigprocmask 135 | ||
| 137 | #define __NR_rt_sigpending 136 | ||
| 138 | #define __NR_rt_sigtimedwait 137 | ||
| 139 | #define __NR_rt_sigqueueinfo 138 | ||
| 140 | #define __NR_rt_sigreturn 139 | ||
| 141 | #define __NR_setpriority 140 | ||
| 142 | #define __NR_getpriority 141 | ||
| 143 | #define __NR_reboot 142 | ||
| 144 | #define __NR_setregid 143 | ||
| 145 | #define __NR_setgid 144 | ||
| 146 | #define __NR_setreuid 145 | ||
| 147 | #define __NR_setuid 146 | ||
| 148 | #define __NR_setresuid 147 | ||
| 149 | #define __NR_getresuid 148 | ||
| 150 | #define __NR_setresgid 149 | ||
| 151 | #define __NR_getresgid 150 | ||
| 152 | #define __NR_setfsuid 151 | ||
| 153 | #define __NR_setfsgid 152 | ||
| 154 | #define __NR_times 153 | ||
| 155 | #define __NR_setpgid 154 | ||
| 156 | #define __NR_getpgid 155 | ||
| 157 | #define __NR_getsid 156 | ||
| 158 | #define __NR_setsid 157 | ||
| 159 | #define __NR_getgroups 158 | ||
| 160 | #define __NR_setgroups 159 | ||
| 161 | #define __NR_uname 160 | ||
| 162 | #define __NR_sethostname 161 | ||
| 163 | #define __NR_setdomainname 162 | ||
| 164 | #define __NR_getrlimit 163 | ||
| 165 | #define __NR_setrlimit 164 | ||
| 166 | #define __NR_getrusage 165 | ||
| 167 | #define __NR_umask 166 | ||
| 168 | #define __NR_prctl 167 | ||
| 169 | #define __NR_getcpu 168 | ||
| 170 | #define __NR_gettimeofday 169 | ||
| 171 | #define __NR_settimeofday 170 | ||
| 172 | #define __NR_adjtimex 171 | ||
| 173 | #define __NR_getpid 172 | ||
| 174 | #define __NR_getppid 173 | ||
| 175 | #define __NR_getuid 174 | ||
| 176 | #define __NR_geteuid 175 | ||
| 177 | #define __NR_getgid 176 | ||
| 178 | #define __NR_getegid 177 | ||
| 179 | #define __NR_gettid 178 | ||
| 180 | #define __NR_sysinfo 179 | ||
| 181 | #define __NR_mq_open 180 | ||
| 182 | #define __NR_mq_unlink 181 | ||
| 183 | #define __NR_mq_timedsend 182 | ||
| 184 | #define __NR_mq_timedreceive 183 | ||
| 185 | #define __NR_mq_notify 184 | ||
| 186 | #define __NR_mq_getsetattr 185 | ||
| 187 | #define __NR_msgget 186 | ||
| 188 | #define __NR_msgctl 187 | ||
| 189 | #define __NR_msgrcv 188 | ||
| 190 | #define __NR_msgsnd 189 | ||
| 191 | #define __NR_semget 190 | ||
| 192 | #define __NR_semctl 191 | ||
| 193 | #define __NR_semtimedop 192 | ||
| 194 | #define __NR_semop 193 | ||
| 195 | #define __NR_shmget 194 | ||
| 196 | #define __NR_shmctl 195 | ||
| 197 | #define __NR_shmat 196 | ||
| 198 | #define __NR_shmdt 197 | ||
| 199 | #define __NR_socket 198 | ||
| 200 | #define __NR_socketpair 199 | ||
| 201 | #define __NR_bind 200 | ||
| 202 | #define __NR_listen 201 | ||
| 203 | #define __NR_accept 202 | ||
| 204 | #define __NR_connect 203 | ||
| 205 | #define __NR_getsockname 204 | ||
| 206 | #define __NR_getpeername 205 | ||
| 207 | #define __NR_sendto 206 | ||
| 208 | #define __NR_recvfrom 207 | ||
| 209 | #define __NR_setsockopt 208 | ||
| 210 | #define __NR_getsockopt 209 | ||
| 211 | #define __NR_shutdown 210 | ||
| 212 | #define __NR_sendmsg 211 | ||
| 213 | #define __NR_recvmsg 212 | ||
| 214 | #define __NR_readahead 213 | ||
| 215 | #define __NR_brk 214 | ||
| 216 | #define __NR_munmap 215 | ||
| 217 | #define __NR_mremap 216 | ||
| 218 | #define __NR_add_key 217 | ||
| 219 | #define __NR_request_key 218 | ||
| 220 | #define __NR_keyctl 219 | ||
| 221 | #define __NR_clone 220 | ||
| 222 | #define __NR_execve 221 | ||
| 223 | #define __NR_mmap 222 | ||
| 224 | #define __NR_fadvise64 223 | ||
| 225 | #define __NR_swapon 224 | ||
| 226 | #define __NR_swapoff 225 | ||
| 227 | #define __NR_mprotect 226 | ||
| 228 | #define __NR_msync 227 | ||
| 229 | #define __NR_mlock 228 | ||
| 230 | #define __NR_munlock 229 | ||
| 231 | #define __NR_mlockall 230 | ||
| 232 | #define __NR_munlockall 231 | ||
| 233 | #define __NR_mincore 232 | ||
| 234 | #define __NR_madvise 233 | ||
| 235 | #define __NR_remap_file_pages 234 | ||
| 236 | #define __NR_mbind 235 | ||
| 237 | #define __NR_get_mempolicy 236 | ||
| 238 | #define __NR_set_mempolicy 237 | ||
| 239 | #define __NR_migrate_pages 238 | ||
| 240 | #define __NR_move_pages 239 | ||
| 241 | #define __NR_rt_tgsigqueueinfo 240 | ||
| 242 | #define __NR_perf_event_open 241 | ||
| 243 | #define __NR_accept4 242 | ||
| 244 | #define __NR_recvmmsg 243 | ||
| 245 | #define __NR_wait4 260 | ||
| 246 | #define __NR_prlimit64 261 | ||
| 247 | #define __NR_fanotify_init 262 | ||
| 248 | #define __NR_fanotify_mark 263 | ||
| 249 | #define __NR_name_to_handle_at 264 | ||
| 250 | #define __NR_open_by_handle_at 265 | ||
| 251 | #define __NR_clock_adjtime 266 | ||
| 252 | #define __NR_syncfs 267 | ||
| 253 | #define __NR_setns 268 | ||
| 254 | #define __NR_sendmmsg 269 | ||
| 255 | #define __NR_process_vm_readv 270 | ||
| 256 | #define __NR_process_vm_writev 271 | ||
| 257 | #define __NR_kcmp 272 | ||
| 258 | #define __NR_finit_module 273 | ||
| 259 | #define __NR_sched_setattr 274 | ||
| 260 | #define __NR_sched_getattr 275 | ||
| 261 | #define __NR_renameat2 276 | ||
| 262 | #define __NR_seccomp 277 | ||
| 263 | #define __NR_getrandom 278 | ||
| 264 | #define __NR_memfd_create 279 | ||
| 265 | #define __NR_bpf 280 | ||
| 266 | #define __NR_execveat 281 | ||
| 267 | #define __NR_userfaultfd 282 | ||
| 268 | #define __NR_membarrier 283 | ||
| 269 | #define __NR_mlock2 284 | ||
| 270 | #define __NR_copy_file_range 285 | ||
| 271 | #define __NR_preadv2 286 | ||
| 272 | #define __NR_pwritev2 287 | ||
| 273 | #define __NR_pkey_mprotect 288 | ||
| 274 | #define __NR_pkey_alloc 289 | ||
| 275 | #define __NR_pkey_free 290 | ||
| 276 | #define __NR_statx 291 | ||
| 277 | #define __NR_io_pgetevents 292 | ||
| 278 | #define __NR_rseq 293 | ||
| 279 | #define __NR_kexec_file_load 294 | ||
| 280 | #define __NR_pidfd_send_signal 424 | ||
| 281 | #define __NR_io_uring_setup 425 | ||
| 282 | #define __NR_io_uring_enter 426 | ||
| 283 | #define __NR_io_uring_register 427 | ||
| 284 | #define __NR_open_tree		428 | ||
| 285 | #define __NR_move_mount		429 | ||
| 286 | #define __NR_fsopen		430 | ||
| 287 | #define __NR_fsconfig		431 | ||
| 288 | #define __NR_fsmount		432 | ||
| 289 | #define __NR_fspick		433 | ||
| 290 | #define __NR_pidfd_open		434 | ||
| 291 | #define __NR_clone3		435 | ||
| 292 | #define __NR_close_range	436 | ||
| 293 | #define __NR_openat2		437 | ||
| 294 | #define __NR_pidfd_getfd	438 | ||
| 295 | #define __NR_faccessat2		439 | ||
| 296 | #define __NR_process_madvise	440 | ||
| 297 | #define __NR_epoll_pwait2	441 | ||
| 298 | #define __NR_mount_setattr	442 | ||
| 299 | #define __NR_landlock_create_ruleset	444 | ||
| 300 | #define __NR_landlock_add_rule	445 | ||
| 301 | #define __NR_landlock_restrict_self	446 | ||
| 302 | #define __NR_process_mrelease	448 | ||
| 303 | #define __NR_futex_waitv	449 | ||
| 304 | #define __NR_set_mempolicy_home_node	450 | ||
| 305 | #define __NR_cachestat		451 | ||
| 306 | #define __NR_fchmodat2		452 | ||
| 307 | |||
lib/libc/musl/arch/arm/bits/alltypes.h.in deleted-21| ... | @@ -1,21 +0,0 @@ | ||
| 1 | #define _REDIR_TIME64 1 | ||
| 2 | #define _Addr int | ||
| 3 | #define _Int64 long long | ||
| 4 | #define _Reg int | ||
| 5 | |||
| 6 | #if __ARMEB__ | ||
| 7 | #define __BYTE_ORDER 4321 | ||
| 8 | #else | ||
| 9 | #define __BYTE_ORDER 1234 | ||
| 10 | #endif | ||
| 11 | |||
| 12 | #define __LONG_MAX 0x7fffffffL | ||
| 13 | |||
| 14 | #ifndef __cplusplus | ||
| 15 | TYPEDEF unsigned wchar_t; | ||
| 16 | #endif | ||
| 17 | |||
| 18 | TYPEDEF float float_t; | ||
| 19 | TYPEDEF double double_t; | ||
| 20 | |||
| 21 | TYPEDEF struct { long long __ll; long double __ld; } max_align_t; | ||
lib/libc/musl/arch/arm/bits/syscall.h.in deleted-414| ... | @@ -1,414 +0,0 @@ | ||
| 1 | #define __NR_restart_syscall	0 | ||
| 2 | #define __NR_exit	1 | ||
| 3 | #define __NR_fork	2 | ||
| 4 | #define __NR_read	3 | ||
| 5 | #define __NR_write	4 | ||
| 6 | #define __NR_open	5 | ||
| 7 | #define __NR_close	6 | ||
| 8 | #define __NR_creat	8 | ||
| 9 | #define __NR_link	9 | ||
| 10 | #define __NR_unlink	10 | ||
| 11 | #define __NR_execve	11 | ||
| 12 | #define __NR_chdir	12 | ||
| 13 | #define __NR_mknod	14 | ||
| 14 | #define __NR_chmod	15 | ||
| 15 | #define __NR_lchown	16 | ||
| 16 | #define __NR_lseek	19 | ||
| 17 | #define __NR_getpid	20 | ||
| 18 | #define __NR_mount	21 | ||
| 19 | #define __NR_setuid	23 | ||
| 20 | #define __NR_getuid	24 | ||
| 21 | #define __NR_ptrace	26 | ||
| 22 | #define __NR_pause	29 | ||
| 23 | #define __NR_access	33 | ||
| 24 | #define __NR_nice	34 | ||
| 25 | #define __NR_sync	36 | ||
| 26 | #define __NR_kill	37 | ||
| 27 | #define __NR_rename	38 | ||
| 28 | #define __NR_mkdir	39 | ||
| 29 | #define __NR_rmdir	40 | ||
| 30 | #define __NR_dup	41 | ||
| 31 | #define __NR_pipe	42 | ||
| 32 | #define __NR_times	43 | ||
| 33 | #define __NR_brk	45 | ||
| 34 | #define __NR_setgid	46 | ||
| 35 | #define __NR_getgid	47 | ||
| 36 | #define __NR_geteuid	49 | ||
| 37 | #define __NR_getegid	50 | ||
| 38 | #define __NR_acct	51 | ||
| 39 | #define __NR_umount2	52 | ||
| 40 | #define __NR_ioctl	54 | ||
| 41 | #define __NR_fcntl	55 | ||
| 42 | #define __NR_setpgid	57 | ||
| 43 | #define __NR_umask	60 | ||
| 44 | #define __NR_chroot	61 | ||
| 45 | #define __NR_ustat	62 | ||
| 46 | #define __NR_dup2	63 | ||
| 47 | #define __NR_getppid	64 | ||
| 48 | #define __NR_getpgrp	65 | ||
| 49 | #define __NR_setsid	66 | ||
| 50 | #define __NR_sigaction	67 | ||
| 51 | #define __NR_setreuid	70 | ||
| 52 | #define __NR_setregid	71 | ||
| 53 | #define __NR_sigsuspend	72 | ||
| 54 | #define __NR_sigpending	73 | ||
| 55 | #define __NR_sethostname	74 | ||
| 56 | #define __NR_setrlimit	75 | ||
| 57 | #define __NR_getrusage	77 | ||
| 58 | #define __NR_gettimeofday_time32	78 | ||
| 59 | #define __NR_settimeofday_time32	79 | ||
| 60 | #define __NR_getgroups	80 | ||
| 61 | #define __NR_setgroups	81 | ||
| 62 | #define __NR_symlink	83 | ||
| 63 | #define __NR_readlink	85 | ||
| 64 | #define __NR_uselib	86 | ||
| 65 | #define __NR_swapon	87 | ||
| 66 | #define __NR_reboot	88 | ||
| 67 | #define __NR_munmap	91 | ||
| 68 | #define __NR_truncate	92 | ||
| 69 | #define __NR_ftruncate	93 | ||
| 70 | #define __NR_fchmod	94 | ||
| 71 | #define __NR_fchown	95 | ||
| 72 | #define __NR_getpriority	96 | ||
| 73 | #define __NR_setpriority	97 | ||
| 74 | #define __NR_statfs	99 | ||
| 75 | #define __NR_fstatfs	100 | ||
| 76 | #define __NR_syslog	103 | ||
| 77 | #define __NR_setitimer	104 | ||
| 78 | #define __NR_getitimer	105 | ||
| 79 | #define __NR_stat	106 | ||
| 80 | #define __NR_lstat	107 | ||
| 81 | #define __NR_fstat	108 | ||
| 82 | #define __NR_vhangup	111 | ||
| 83 | #define __NR_wait4	114 | ||
| 84 | #define __NR_swapoff	115 | ||
| 85 | #define __NR_sysinfo	116 | ||
| 86 | #define __NR_fsync	118 | ||
| 87 | #define __NR_sigreturn	119 | ||
| 88 | #define __NR_clone	120 | ||
| 89 | #define __NR_setdomainname	121 | ||
| 90 | #define __NR_uname	122 | ||
| 91 | #define __NR_adjtimex	124 | ||
| 92 | #define __NR_mprotect	125 | ||
| 93 | #define __NR_sigprocmask	126 | ||
| 94 | #define __NR_init_module	128 | ||
| 95 | #define __NR_delete_module	129 | ||
| 96 | #define __NR_quotactl	131 | ||
| 97 | #define __NR_getpgid	132 | ||
| 98 | #define __NR_fchdir	133 | ||
| 99 | #define __NR_bdflush	134 | ||
| 100 | #define __NR_sysfs	135 | ||
| 101 | #define __NR_personality	136 | ||
| 102 | #define __NR_setfsuid	138 | ||
| 103 | #define __NR_setfsgid	139 | ||
| 104 | #define __NR__llseek	140 | ||
| 105 | #define __NR_getdents	141 | ||
| 106 | #define __NR__newselect	142 | ||
| 107 | #define __NR_flock	143 | ||
| 108 | #define __NR_msync	144 | ||
| 109 | #define __NR_readv	145 | ||
| 110 | #define __NR_writev	146 | ||
| 111 | #define __NR_getsid	147 | ||
| 112 | #define __NR_fdatasync	148 | ||
| 113 | #define __NR__sysctl	149 | ||
| 114 | #define __NR_mlock	150 | ||
| 115 | #define __NR_munlock	151 | ||
| 116 | #define __NR_mlockall	152 | ||
| 117 | #define __NR_munlockall	153 | ||
| 118 | #define __NR_sched_setparam	154 | ||
| 119 | #define __NR_sched_getparam	155 | ||
| 120 | #define __NR_sched_setscheduler	156 | ||
| 121 | #define __NR_sched_getscheduler	157 | ||
| 122 | #define __NR_sched_yield	158 | ||
| 123 | #define __NR_sched_get_priority_max	159 | ||
| 124 | #define __NR_sched_get_priority_min	160 | ||
| 125 | #define __NR_sched_rr_get_interval	161 | ||
| 126 | #define __NR_nanosleep	162 | ||
| 127 | #define __NR_mremap	163 | ||
| 128 | #define __NR_setresuid	164 | ||
| 129 | #define __NR_getresuid	165 | ||
| 130 | #define __NR_poll	168 | ||
| 131 | #define __NR_nfsservctl	169 | ||
| 132 | #define __NR_setresgid	170 | ||
| 133 | #define __NR_getresgid	171 | ||
| 134 | #define __NR_prctl	172 | ||
| 135 | #define __NR_rt_sigreturn	173 | ||
| 136 | #define __NR_rt_sigaction	174 | ||
| 137 | #define __NR_rt_sigprocmask	175 | ||
| 138 | #define __NR_rt_sigpending	176 | ||
| 139 | #define __NR_rt_sigtimedwait	177 | ||
| 140 | #define __NR_rt_sigqueueinfo	178 | ||
| 141 | #define __NR_rt_sigsuspend	179 | ||
| 142 | #define __NR_pread64	180 | ||
| 143 | #define __NR_pwrite64	181 | ||
| 144 | #define __NR_chown	182 | ||
| 145 | #define __NR_getcwd	183 | ||
| 146 | #define __NR_capget	184 | ||
| 147 | #define __NR_capset	185 | ||
| 148 | #define __NR_sigaltstack	186 | ||
| 149 | #define __NR_sendfile	187 | ||
| 150 | #define __NR_vfork	190 | ||
| 151 | #define __NR_ugetrlimit	191 | ||
| 152 | #define __NR_mmap2	192 | ||
| 153 | #define __NR_truncate64	193 | ||
| 154 | #define __NR_ftruncate64	194 | ||
| 155 | #define __NR_stat64	195 | ||
| 156 | #define __NR_lstat64	196 | ||
| 157 | #define __NR_fstat64	197 | ||
| 158 | #define __NR_lchown32	198 | ||
| 159 | #define __NR_getuid32	199 | ||
| 160 | #define __NR_getgid32	200 | ||
| 161 | #define __NR_geteuid32	201 | ||
| 162 | #define __NR_getegid32	202 | ||
| 163 | #define __NR_setreuid32	203 | ||
| 164 | #define __NR_setregid32	204 | ||
| 165 | #define __NR_getgroups32	205 | ||
| 166 | #define __NR_setgroups32	206 | ||
| 167 | #define __NR_fchown32	207 | ||
| 168 | #define __NR_setresuid32	208 | ||
| 169 | #define __NR_getresuid32	209 | ||
| 170 | #define __NR_setresgid32	210 | ||
| 171 | #define __NR_getresgid32	211 | ||
| 172 | #define __NR_chown32	212 | ||
| 173 | #define __NR_setuid32	213 | ||
| 174 | #define __NR_setgid32	214 | ||
| 175 | #define __NR_setfsuid32	215 | ||
| 176 | #define __NR_setfsgid32	216 | ||
| 177 | #define __NR_getdents64	217 | ||
| 178 | #define __NR_pivot_root	218 | ||
| 179 | #define __NR_mincore	219 | ||
| 180 | #define __NR_madvise	220 | ||
| 181 | #define __NR_fcntl64	221 | ||
| 182 | #define __NR_gettid	224 | ||
| 183 | #define __NR_readahead	225 | ||
| 184 | #define __NR_setxattr	226 | ||
| 185 | #define __NR_lsetxattr	227 | ||
| 186 | #define __NR_fsetxattr	228 | ||
| 187 | #define __NR_getxattr	229 | ||
| 188 | #define __NR_lgetxattr	230 | ||
| 189 | #define __NR_fgetxattr	231 | ||
| 190 | #define __NR_listxattr	232 | ||
| 191 | #define __NR_llistxattr	233 | ||
| 192 | #define __NR_flistxattr	234 | ||
| 193 | #define __NR_removexattr	235 | ||
| 194 | #define __NR_lremovexattr	236 | ||
| 195 | #define __NR_fremovexattr	237 | ||
| 196 | #define __NR_tkill	238 | ||
| 197 | #define __NR_sendfile64	239 | ||
| 198 | #define __NR_futex	240 | ||
| 199 | #define __NR_sched_setaffinity	241 | ||
| 200 | #define __NR_sched_getaffinity	242 | ||
| 201 | #define __NR_io_setup	243 | ||
| 202 | #define __NR_io_destroy	244 | ||
| 203 | #define __NR_io_getevents	245 | ||
| 204 | #define __NR_io_submit	246 | ||
| 205 | #define __NR_io_cancel	247 | ||
| 206 | #define __NR_exit_group	248 | ||
| 207 | #define __NR_lookup_dcookie	249 | ||
| 208 | #define __NR_epoll_create	250 | ||
| 209 | #define __NR_epoll_ctl	251 | ||
| 210 | #define __NR_epoll_wait	252 | ||
| 211 | #define __NR_remap_file_pages	253 | ||
| 212 | #define __NR_set_tid_address	256 | ||
| 213 | #define __NR_timer_create	257 | ||
| 214 | #define __NR_timer_settime32	258 | ||
| 215 | #define __NR_timer_gettime32	259 | ||
| 216 | #define __NR_timer_getoverrun	260 | ||
| 217 | #define __NR_timer_delete	261 | ||
| 218 | #define __NR_clock_settime32	262 | ||
| 219 | #define __NR_clock_gettime32	263 | ||
| 220 | #define __NR_clock_getres_time32	264 | ||
| 221 | #define __NR_clock_nanosleep_time32	265 | ||
| 222 | #define __NR_statfs64	266 | ||
| 223 | #define __NR_fstatfs64	267 | ||
| 224 | #define __NR_tgkill	268 | ||
| 225 | #define __NR_utimes	269 | ||
| 226 | #define __NR_fadvise64_64	270 | ||
| 227 | #define __NR_arm_fadvise64_64	270 | ||
| 228 | #define __NR_pciconfig_iobase	271 | ||
| 229 | #define __NR_pciconfig_read	272 | ||
| 230 | #define __NR_pciconfig_write	273 | ||
| 231 | #define __NR_mq_open	274 | ||
| 232 | #define __NR_mq_unlink	275 | ||
| 233 | #define __NR_mq_timedsend	276 | ||
| 234 | #define __NR_mq_timedreceive	277 | ||
| 235 | #define __NR_mq_notify	278 | ||
| 236 | #define __NR_mq_getsetattr	279 | ||
| 237 | #define __NR_waitid	280 | ||
| 238 | #define __NR_socket	281 | ||
| 239 | #define __NR_bind	282 | ||
| 240 | #define __NR_connect	283 | ||
| 241 | #define __NR_listen	284 | ||
| 242 | #define __NR_accept	285 | ||
| 243 | #define __NR_getsockname	286 | ||
| 244 | #define __NR_getpeername	287 | ||
| 245 | #define __NR_socketpair	288 | ||
| 246 | #define __NR_send	289 | ||
| 247 | #define __NR_sendto	290 | ||
| 248 | #define __NR_recv	291 | ||
| 249 | #define __NR_recvfrom	292 | ||
| 250 | #define __NR_shutdown	293 | ||
| 251 | #define __NR_setsockopt	294 | ||
| 252 | #define __NR_getsockopt	295 | ||
| 253 | #define __NR_sendmsg	296 | ||
| 254 | #define __NR_recvmsg	297 | ||
| 255 | #define __NR_semop	298 | ||
| 256 | #define __NR_semget	299 | ||
| 257 | #define __NR_semctl	300 | ||
| 258 | #define __NR_msgsnd	301 | ||
| 259 | #define __NR_msgrcv	302 | ||
| 260 | #define __NR_msgget	303 | ||
| 261 | #define __NR_msgctl	304 | ||
| 262 | #define __NR_shmat	305 | ||
| 263 | #define __NR_shmdt	306 | ||
| 264 | #define __NR_shmget	307 | ||
| 265 | #define __NR_shmctl	308 | ||
| 266 | #define __NR_add_key	309 | ||
| 267 | #define __NR_request_key	310 | ||
| 268 | #define __NR_keyctl	311 | ||
| 269 | #define __NR_semtimedop	312 | ||
| 270 | #define __NR_vserver	313 | ||
| 271 | #define __NR_ioprio_set	314 | ||
| 272 | #define __NR_ioprio_get	315 | ||
| 273 | #define __NR_inotify_init	316 | ||
| 274 | #define __NR_inotify_add_watch	317 | ||
| 275 | #define __NR_inotify_rm_watch	318 | ||
| 276 | #define __NR_mbind	319 | ||
| 277 | #define __NR_get_mempolicy	320 | ||
| 278 | #define __NR_set_mempolicy	321 | ||
| 279 | #define __NR_openat	322 | ||
| 280 | #define __NR_mkdirat	323 | ||
| 281 | #define __NR_mknodat	324 | ||
| 282 | #define __NR_fchownat	325 | ||
| 283 | #define __NR_futimesat	326 | ||
| 284 | #define __NR_fstatat64	327 | ||
| 285 | #define __NR_unlinkat	328 | ||
| 286 | #define __NR_renameat	329 | ||
| 287 | #define __NR_linkat	330 | ||
| 288 | #define __NR_symlinkat	331 | ||
| 289 | #define __NR_readlinkat	332 | ||
| 290 | #define __NR_fchmodat	333 | ||
| 291 | #define __NR_faccessat	334 | ||
| 292 | #define __NR_pselect6	335 | ||
| 293 | #define __NR_ppoll	336 | ||
| 294 | #define __NR_unshare	337 | ||
| 295 | #define __NR_set_robust_list	338 | ||
| 296 | #define __NR_get_robust_list	339 | ||
| 297 | #define __NR_splice	340 | ||
| 298 | #define __NR_sync_file_range2	341 | ||
| 299 | #define __NR_arm_sync_file_range	341 | ||
| 300 | #define __NR_tee	342 | ||
| 301 | #define __NR_vmsplice	343 | ||
| 302 | #define __NR_move_pages	344 | ||
| 303 | #define __NR_getcpu	345 | ||
| 304 | #define __NR_epoll_pwait	346 | ||
| 305 | #define __NR_kexec_load	347 | ||
| 306 | #define __NR_utimensat	348 | ||
| 307 | #define __NR_signalfd	349 | ||
| 308 | #define __NR_timerfd_create	350 | ||
| 309 | #define __NR_eventfd	351 | ||
| 310 | #define __NR_fallocate	352 | ||
| 311 | #define __NR_timerfd_settime32	353 | ||
| 312 | #define __NR_timerfd_gettime32	354 | ||
| 313 | #define __NR_signalfd4	355 | ||
| 314 | #define __NR_eventfd2	356 | ||
| 315 | #define __NR_epoll_create1	357 | ||
| 316 | #define __NR_dup3	358 | ||
| 317 | #define __NR_pipe2	359 | ||
| 318 | #define __NR_inotify_init1	360 | ||
| 319 | #define __NR_preadv	361 | ||
| 320 | #define __NR_pwritev	362 | ||
| 321 | #define __NR_rt_tgsigqueueinfo	363 | ||
| 322 | #define __NR_perf_event_open	364 | ||
| 323 | #define __NR_recvmmsg	365 | ||
| 324 | #define __NR_accept4	366 | ||
| 325 | #define __NR_fanotify_init	367 | ||
| 326 | #define __NR_fanotify_mark	368 | ||
| 327 | #define __NR_prlimit64	369 | ||
| 328 | #define __NR_name_to_handle_at	370 | ||
| 329 | #define __NR_open_by_handle_at	371 | ||
| 330 | #define __NR_clock_adjtime	372 | ||
| 331 | #define __NR_syncfs	373 | ||
| 332 | #define __NR_sendmmsg	374 | ||
| 333 | #define __NR_setns	375 | ||
| 334 | #define __NR_process_vm_readv	376 | ||
| 335 | #define __NR_process_vm_writev	377 | ||
| 336 | #define __NR_kcmp		378 | ||
| 337 | #define __NR_finit_module	379 | ||
| 338 | #define __NR_sched_setattr	380 | ||
| 339 | #define __NR_sched_getattr	381 | ||
| 340 | #define __NR_renameat2	382 | ||
| 341 | #define __NR_seccomp	383 | ||
| 342 | #define __NR_getrandom	384 | ||
| 343 | #define __NR_memfd_create	385 | ||
| 344 | #define __NR_bpf	386 | ||
| 345 | #define __NR_execveat	387 | ||
| 346 | #define __NR_userfaultfd	388 | ||
| 347 | #define __NR_membarrier		389 | ||
| 348 | #define __NR_mlock2		390 | ||
| 349 | #define __NR_copy_file_range	391 | ||
| 350 | #define __NR_preadv2	392 | ||
| 351 | #define __NR_pwritev2	393 | ||
| 352 | #define __NR_pkey_mprotect	394 | ||
| 353 | #define __NR_pkey_alloc	395 | ||
| 354 | #define __NR_pkey_free	396 | ||
| 355 | #define __NR_statx	397 | ||
| 356 | #define __NR_rseq	398 | ||
| 357 | #define __NR_io_pgetevents	399 | ||
| 358 | #define __NR_migrate_pages	400 | ||
| 359 | #define __NR_kexec_file_load	401 | ||
| 360 | #define __NR_clock_gettime64	403 | ||
| 361 | #define __NR_clock_settime64	404 | ||
| 362 | #define __NR_clock_adjtime64	405 | ||
| 363 | #define __NR_clock_getres_time64	406 | ||
| 364 | #define __NR_clock_nanosleep_time64	407 | ||
| 365 | #define __NR_timer_gettime64	408 | ||
| 366 | #define __NR_timer_settime64	409 | ||
| 367 | #define __NR_timerfd_gettime64	410 | ||
| 368 | #define __NR_timerfd_settime64	411 | ||
| 369 | #define __NR_utimensat_time64	412 | ||
| 370 | #define __NR_pselect6_time64	413 | ||
| 371 | #define __NR_ppoll_time64	414 | ||
| 372 | #define __NR_io_pgetevents_time64	416 | ||
| 373 | #define __NR_recvmmsg_time64	417 | ||
| 374 | #define __NR_mq_timedsend_time64	418 | ||
| 375 | #define __NR_mq_timedreceive_time64	419 | ||
| 376 | #define __NR_semtimedop_time64	420 | ||
| 377 | #define __NR_rt_sigtimedwait_time64	421 | ||
| 378 | #define __NR_futex_time64	422 | ||
| 379 | #define __NR_sched_rr_get_interval_time64	423 | ||
| 380 | #define __NR_pidfd_send_signal	424 | ||
| 381 | #define __NR_io_uring_setup	425 | ||
| 382 | #define __NR_io_uring_enter	426 | ||
| 383 | #define __NR_io_uring_register	427 | ||
| 384 | #define __NR_open_tree		428 | ||
| 385 | #define __NR_move_mount		429 | ||
| 386 | #define __NR_fsopen		430 | ||
| 387 | #define __NR_fsconfig		431 | ||
| 388 | #define __NR_fsmount		432 | ||
| 389 | #define __NR_fspick		433 | ||
| 390 | #define __NR_pidfd_open		434 | ||
| 391 | #define __NR_clone3		435 | ||
| 392 | #define __NR_close_range	436 | ||
| 393 | #define __NR_openat2		437 | ||
| 394 | #define __NR_pidfd_getfd	438 | ||
| 395 | #define __NR_faccessat2		439 | ||
| 396 | #define __NR_process_madvise	440 | ||
| 397 | #define __NR_epoll_pwait2	441 | ||
| 398 | #define __NR_mount_setattr	442 | ||
| 399 | #define __NR_landlock_create_ruleset	444 | ||
| 400 | #define __NR_landlock_add_rule	445 | ||
| 401 | #define __NR_landlock_restrict_self	446 | ||
| 402 | #define __NR_process_mrelease	448 | ||
| 403 | #define __NR_futex_waitv	449 | ||
| 404 | #define __NR_set_mempolicy_home_node	450 | ||
| 405 | #define __NR_cachestat		451 | ||
| 406 | #define __NR_fchmodat2		452 | ||
| 407 | |||
| 408 | #define __ARM_NR_breakpoint	0x0f0001 | ||
| 409 | #define __ARM_NR_cacheflush	0x0f0002 | ||
| 410 | #define __ARM_NR_usr26		0x0f0003 | ||
| 411 | #define __ARM_NR_usr32		0x0f0004 | ||
| 412 | #define __ARM_NR_set_tls	0x0f0005 | ||
| 413 | #define __ARM_NR_get_tls	0x0f0006 | ||
| 414 | |||
lib/libc/musl/arch/i386/bits/alltypes.h.in deleted-31| ... | @@ -1,31 +0,0 @@ | ||
| 1 | #define _REDIR_TIME64 1 | ||
| 2 | #define _Addr int | ||
| 3 | #define _Int64 long long | ||
| 4 | #define _Reg int | ||
| 5 | |||
| 6 | #define __BYTE_ORDER 1234 | ||
| 7 | #define __LONG_MAX 0x7fffffffL | ||
| 8 | |||
| 9 | #ifndef __cplusplus | ||
| 10 | #ifdef __WCHAR_TYPE__ | ||
| 11 | TYPEDEF __WCHAR_TYPE__ wchar_t; | ||
| 12 | #else | ||
| 13 | TYPEDEF long wchar_t; | ||
| 14 | #endif | ||
| 15 | #endif | ||
| 16 | |||
| 17 | #if defined(__FLT_EVAL_METHOD__) && __FLT_EVAL_METHOD__ == 0 | ||
| 18 | TYPEDEF float float_t; | ||
| 19 | TYPEDEF double double_t; | ||
| 20 | #else | ||
| 21 | TYPEDEF long double float_t; | ||
| 22 | TYPEDEF long double double_t; | ||
| 23 | #endif | ||
| 24 | |||
| 25 | #if !defined(__cplusplus) | ||
| 26 | TYPEDEF struct { _Alignas(8) long long __ll; long double __ld; } max_align_t; | ||
| 27 | #elif defined(__GNUC__) | ||
| 28 | TYPEDEF struct { __attribute__((__aligned__(8))) long long __ll; long double __ld; } max_align_t; | ||
| 29 | #else | ||
| 30 | TYPEDEF struct { alignas(8) long long __ll; long double __ld; } max_align_t; | ||
| 31 | #endif | ||
lib/libc/musl/arch/i386/bits/syscall.h.in deleted-445| ... | @@ -1,445 +0,0 @@ | ||
| 1 | #define __NR_restart_syscall 0 | ||
| 2 | #define __NR_exit		 1 | ||
| 3 | #define __NR_fork		 2 | ||
| 4 | #define __NR_read		 3 | ||
| 5 | #define __NR_write		 4 | ||
| 6 | #define __NR_open		 5 | ||
| 7 | #define __NR_close		 6 | ||
| 8 | #define __NR_waitpid		 7 | ||
| 9 | #define __NR_creat		 8 | ||
| 10 | #define __NR_link		 9 | ||
| 11 | #define __NR_unlink		 10 | ||
| 12 | #define __NR_execve		 11 | ||
| 13 | #define __NR_chdir		 12 | ||
| 14 | #define __NR_time		 13 | ||
| 15 | #define __NR_mknod		 14 | ||
| 16 | #define __NR_chmod		 15 | ||
| 17 | #define __NR_lchown		 16 | ||
| 18 | #define __NR_break		 17 | ||
| 19 | #define __NR_oldstat		 18 | ||
| 20 | #define __NR_lseek		 19 | ||
| 21 | #define __NR_getpid		 20 | ||
| 22 | #define __NR_mount		 21 | ||
| 23 | #define __NR_umount		 22 | ||
| 24 | #define __NR_setuid		 23 | ||
| 25 | #define __NR_getuid		 24 | ||
| 26 | #define __NR_stime		 25 | ||
| 27 | #define __NR_ptrace		 26 | ||
| 28 | #define __NR_alarm		 27 | ||
| 29 | #define __NR_oldfstat		 28 | ||
| 30 | #define __NR_pause		 29 | ||
| 31 | #define __NR_utime		 30 | ||
| 32 | #define __NR_stty		 31 | ||
| 33 | #define __NR_gtty		 32 | ||
| 34 | #define __NR_access		 33 | ||
| 35 | #define __NR_nice		 34 | ||
| 36 | #define __NR_ftime		 35 | ||
| 37 | #define __NR_sync		 36 | ||
| 38 | #define __NR_kill		 37 | ||
| 39 | #define __NR_rename		 38 | ||
| 40 | #define __NR_mkdir		 39 | ||
| 41 | #define __NR_rmdir		 40 | ||
| 42 | #define __NR_dup		 41 | ||
| 43 | #define __NR_pipe		 42 | ||
| 44 | #define __NR_times		 43 | ||
| 45 | #define __NR_prof		 44 | ||
| 46 | #define __NR_brk		 45 | ||
| 47 | #define __NR_setgid		 46 | ||
| 48 | #define __NR_getgid		 47 | ||
| 49 | #define __NR_signal		 48 | ||
| 50 | #define __NR_geteuid		 49 | ||
| 51 | #define __NR_getegid		 50 | ||
| 52 | #define __NR_acct		 51 | ||
| 53 | #define __NR_umount2		 52 | ||
| 54 | #define __NR_lock		 53 | ||
| 55 | #define __NR_ioctl		 54 | ||
| 56 | #define __NR_fcntl		 55 | ||
| 57 | #define __NR_mpx		 56 | ||
| 58 | #define __NR_setpgid		 57 | ||
| 59 | #define __NR_ulimit		 58 | ||
| 60 | #define __NR_oldolduname	 59 | ||
| 61 | #define __NR_umask		 60 | ||
| 62 | #define __NR_chroot		 61 | ||
| 63 | #define __NR_ustat		 62 | ||
| 64 | #define __NR_dup2		 63 | ||
| 65 | #define __NR_getppid		 64 | ||
| 66 | #define __NR_getpgrp		 65 | ||
| 67 | #define __NR_setsid		 66 | ||
| 68 | #define __NR_sigaction		 67 | ||
| 69 | #define __NR_sgetmask		 68 | ||
| 70 | #define __NR_ssetmask		 69 | ||
| 71 | #define __NR_setreuid		 70 | ||
| 72 | #define __NR_setregid		 71 | ||
| 73 | #define __NR_sigsuspend		 72 | ||
| 74 | #define __NR_sigpending		 73 | ||
| 75 | #define __NR_sethostname	 74 | ||
| 76 | #define __NR_setrlimit		 75 | ||
| 77 | #define __NR_getrlimit		 76 /* Back compatible 2Gig limited rlimit */ | ||
| 78 | #define __NR_getrusage		 77 | ||
| 79 | #define __NR_gettimeofday_time32	 78 | ||
| 80 | #define __NR_settimeofday_time32	 79 | ||
| 81 | #define __NR_getgroups		 80 | ||
| 82 | #define __NR_setgroups		 81 | ||
| 83 | #define __NR_select		 82 | ||
| 84 | #define __NR_symlink		 83 | ||
| 85 | #define __NR_oldlstat		 84 | ||
| 86 | #define __NR_readlink		 85 | ||
| 87 | #define __NR_uselib		 86 | ||
| 88 | #define __NR_swapon		 87 | ||
| 89 | #define __NR_reboot		 88 | ||
| 90 | #define __NR_readdir		 89 | ||
| 91 | #define __NR_mmap		 90 | ||
| 92 | #define __NR_munmap		 91 | ||
| 93 | #define __NR_truncate		 92 | ||
| 94 | #define __NR_ftruncate		 93 | ||
| 95 | #define __NR_fchmod		 94 | ||
| 96 | #define __NR_fchown		 95 | ||
| 97 | #define __NR_getpriority	 96 | ||
| 98 | #define __NR_setpriority	 97 | ||
| 99 | #define __NR_profil		 98 | ||
| 100 | #define __NR_statfs		99 | ||
| 101 | #define __NR_fstatfs		100 | ||
| 102 | #define __NR_ioperm		101 | ||
| 103 | #define __NR_socketcall		102 | ||
| 104 | #define __NR_syslog		103 | ||
| 105 | #define __NR_setitimer		104 | ||
| 106 | #define __NR_getitimer		105 | ||
| 107 | #define __NR_stat		106 | ||
| 108 | #define __NR_lstat		107 | ||
| 109 | #define __NR_fstat		108 | ||
| 110 | #define __NR_olduname		109 | ||
| 111 | #define __NR_iopl		110 | ||
| 112 | #define __NR_vhangup		111 | ||
| 113 | #define __NR_idle		112 | ||
| 114 | #define __NR_vm86old		113 | ||
| 115 | #define __NR_wait4		114 | ||
| 116 | #define __NR_swapoff		115 | ||
| 117 | #define __NR_sysinfo		116 | ||
| 118 | #define __NR_ipc		117 | ||
| 119 | #define __NR_fsync		118 | ||
| 120 | #define __NR_sigreturn		119 | ||
| 121 | #define __NR_clone		120 | ||
| 122 | #define __NR_setdomainname	121 | ||
| 123 | #define __NR_uname		122 | ||
| 124 | #define __NR_modify_ldt		123 | ||
| 125 | #define __NR_adjtimex		124 | ||
| 126 | #define __NR_mprotect		125 | ||
| 127 | #define __NR_sigprocmask	126 | ||
| 128 | #define __NR_create_module	127 | ||
| 129 | #define __NR_init_module	128 | ||
| 130 | #define __NR_delete_module	129 | ||
| 131 | #define __NR_get_kernel_syms	130 | ||
| 132 | #define __NR_quotactl		131 | ||
| 133 | #define __NR_getpgid		132 | ||
| 134 | #define __NR_fchdir		133 | ||
| 135 | #define __NR_bdflush		134 | ||
| 136 | #define __NR_sysfs		135 | ||
| 137 | #define __NR_personality	136 | ||
| 138 | #define __NR_afs_syscall	137 | ||
| 139 | #define __NR_setfsuid		138 | ||
| 140 | #define __NR_setfsgid		139 | ||
| 141 | #define __NR__llseek		140 | ||
| 142 | #define __NR_getdents		141 | ||
| 143 | #define __NR__newselect		142 | ||
| 144 | #define __NR_flock		143 | ||
| 145 | #define __NR_msync		144 | ||
| 146 | #define __NR_readv		145 | ||
| 147 | #define __NR_writev		146 | ||
| 148 | #define __NR_getsid		147 | ||
| 149 | #define __NR_fdatasync		148 | ||
| 150 | #define __NR__sysctl		149 | ||
| 151 | #define __NR_mlock		150 | ||
| 152 | #define __NR_munlock		151 | ||
| 153 | #define __NR_mlockall		152 | ||
| 154 | #define __NR_munlockall		153 | ||
| 155 | #define __NR_sched_setparam		154 | ||
| 156 | #define __NR_sched_getparam		155 | ||
| 157 | #define __NR_sched_setscheduler		156 | ||
| 158 | #define __NR_sched_getscheduler		157 | ||
| 159 | #define __NR_sched_yield		158 | ||
| 160 | #define __NR_sched_get_priority_max	159 | ||
| 161 | #define __NR_sched_get_priority_min	160 | ||
| 162 | #define __NR_sched_rr_get_interval	161 | ||
| 163 | #define __NR_nanosleep		162 | ||
| 164 | #define __NR_mremap		163 | ||
| 165 | #define __NR_setresuid		164 | ||
| 166 | #define __NR_getresuid		165 | ||
| 167 | #define __NR_vm86		166 | ||
| 168 | #define __NR_query_module	167 | ||
| 169 | #define __NR_poll		168 | ||
| 170 | #define __NR_nfsservctl		169 | ||
| 171 | #define __NR_setresgid		170 | ||
| 172 | #define __NR_getresgid		171 | ||
| 173 | #define __NR_prctl 172 | ||
| 174 | #define __NR_rt_sigreturn	173 | ||
| 175 | #define __NR_rt_sigaction	174 | ||
| 176 | #define __NR_rt_sigprocmask	175 | ||
| 177 | #define __NR_rt_sigpending	176 | ||
| 178 | #define __NR_rt_sigtimedwait	177 | ||
| 179 | #define __NR_rt_sigqueueinfo	178 | ||
| 180 | #define __NR_rt_sigsuspend	179 | ||
| 181 | #define __NR_pread64		180 | ||
| 182 | #define __NR_pwrite64		181 | ||
| 183 | #define __NR_chown		182 | ||
| 184 | #define __NR_getcwd		183 | ||
| 185 | #define __NR_capget		184 | ||
| 186 | #define __NR_capset		185 | ||
| 187 | #define __NR_sigaltstack	186 | ||
| 188 | #define __NR_sendfile		187 | ||
| 189 | #define __NR_getpmsg		188 | ||
| 190 | #define __NR_putpmsg		189 | ||
| 191 | #define __NR_vfork		190 | ||
| 192 | #define __NR_ugetrlimit		191 | ||
| 193 | #define __NR_mmap2		192 | ||
| 194 | #define __NR_truncate64		193 | ||
| 195 | #define __NR_ftruncate64	194 | ||
| 196 | #define __NR_stat64		195 | ||
| 197 | #define __NR_lstat64		196 | ||
| 198 | #define __NR_fstat64		197 | ||
| 199 | #define __NR_lchown32		198 | ||
| 200 | #define __NR_getuid32		199 | ||
| 201 | #define __NR_getgid32		200 | ||
| 202 | #define __NR_geteuid32		201 | ||
| 203 | #define __NR_getegid32		202 | ||
| 204 | #define __NR_setreuid32		203 | ||
| 205 | #define __NR_setregid32		204 | ||
| 206 | #define __NR_getgroups32	205 | ||
| 207 | #define __NR_setgroups32	206 | ||
| 208 | #define __NR_fchown32		207 | ||
| 209 | #define __NR_setresuid32	208 | ||
| 210 | #define __NR_getresuid32	209 | ||
| 211 | #define __NR_setresgid32	210 | ||
| 212 | #define __NR_getresgid32	211 | ||
| 213 | #define __NR_chown32		212 | ||
| 214 | #define __NR_setuid32		213 | ||
| 215 | #define __NR_setgid32		214 | ||
| 216 | #define __NR_setfsuid32		215 | ||
| 217 | #define __NR_setfsgid32		216 | ||
| 218 | #define __NR_pivot_root		217 | ||
| 219 | #define __NR_mincore		218 | ||
| 220 | #define __NR_madvise		219 | ||
| 221 | #define __NR_getdents64		220 | ||
| 222 | #define __NR_fcntl64		221 | ||
| 223 | /* 223 is unused */ | ||
| 224 | #define __NR_gettid		224 | ||
| 225 | #define __NR_readahead		225 | ||
| 226 | #define __NR_setxattr		226 | ||
| 227 | #define __NR_lsetxattr		227 | ||
| 228 | #define __NR_fsetxattr		228 | ||
| 229 | #define __NR_getxattr		229 | ||
| 230 | #define __NR_lgetxattr		230 | ||
| 231 | #define __NR_fgetxattr		231 | ||
| 232 | #define __NR_listxattr		232 | ||
| 233 | #define __NR_llistxattr		233 | ||
| 234 | #define __NR_flistxattr		234 | ||
| 235 | #define __NR_removexattr	235 | ||
| 236 | #define __NR_lremovexattr	236 | ||
| 237 | #define __NR_fremovexattr	237 | ||
| 238 | #define __NR_tkill		238 | ||
| 239 | #define __NR_sendfile64		239 | ||
| 240 | #define __NR_futex		240 | ||
| 241 | #define __NR_sched_setaffinity	241 | ||
| 242 | #define __NR_sched_getaffinity	242 | ||
| 243 | #define __NR_set_thread_area	243 | ||
| 244 | #define __NR_get_thread_area	244 | ||
| 245 | #define __NR_io_setup		245 | ||
| 246 | #define __NR_io_destroy		246 | ||
| 247 | #define __NR_io_getevents	247 | ||
| 248 | #define __NR_io_submit		248 | ||
| 249 | #define __NR_io_cancel		249 | ||
| 250 | #define __NR_fadvise64		250 | ||
| 251 | /* 251 is available for reuse (was briefly sys_set_zone_reclaim) */ | ||
| 252 | #define __NR_exit_group		252 | ||
| 253 | #define __NR_lookup_dcookie	253 | ||
| 254 | #define __NR_epoll_create	254 | ||
| 255 | #define __NR_epoll_ctl		255 | ||
| 256 | #define __NR_epoll_wait		256 | ||
| 257 | #define __NR_remap_file_pages	257 | ||
| 258 | #define __NR_set_tid_address	258 | ||
| 259 | #define __NR_timer_create	259 | ||
| 260 | #define __NR_timer_settime32	(__NR_timer_create+1) | ||
| 261 | #define __NR_timer_gettime32	(__NR_timer_create+2) | ||
| 262 | #define __NR_timer_getoverrun	(__NR_timer_create+3) | ||
| 263 | #define __NR_timer_delete	(__NR_timer_create+4) | ||
| 264 | #define __NR_clock_settime32	(__NR_timer_create+5) | ||
| 265 | #define __NR_clock_gettime32	(__NR_timer_create+6) | ||
| 266 | #define __NR_clock_getres_time32	(__NR_timer_create+7) | ||
| 267 | #define __NR_clock_nanosleep_time32	(__NR_timer_create+8) | ||
| 268 | #define __NR_statfs64		268 | ||
| 269 | #define __NR_fstatfs64		269 | ||
| 270 | #define __NR_tgkill		270 | ||
| 271 | #define __NR_utimes		271 | ||
| 272 | #define __NR_fadvise64_64	272 | ||
| 273 | #define __NR_vserver		273 | ||
| 274 | #define __NR_mbind		274 | ||
| 275 | #define __NR_get_mempolicy	275 | ||
| 276 | #define __NR_set_mempolicy	276 | ||
| 277 | #define __NR_mq_open 		277 | ||
| 278 | #define __NR_mq_unlink		(__NR_mq_open+1) | ||
| 279 | #define __NR_mq_timedsend	(__NR_mq_open+2) | ||
| 280 | #define __NR_mq_timedreceive	(__NR_mq_open+3) | ||
| 281 | #define __NR_mq_notify		(__NR_mq_open+4) | ||
| 282 | #define __NR_mq_getsetattr	(__NR_mq_open+5) | ||
| 283 | #define __NR_kexec_load		283 | ||
| 284 | #define __NR_waitid		284 | ||
| 285 | /* #define __NR_sys_setaltroot	285 */ | ||
| 286 | #define __NR_add_key		286 | ||
| 287 | #define __NR_request_key	287 | ||
| 288 | #define __NR_keyctl		288 | ||
| 289 | #define __NR_ioprio_set		289 | ||
| 290 | #define __NR_ioprio_get		290 | ||
| 291 | #define __NR_inotify_init	291 | ||
| 292 | #define __NR_inotify_add_watch	292 | ||
| 293 | #define __NR_inotify_rm_watch	293 | ||
| 294 | #define __NR_migrate_pages	294 | ||
| 295 | #define __NR_openat		295 | ||
| 296 | #define __NR_mkdirat		296 | ||
| 297 | #define __NR_mknodat		297 | ||
| 298 | #define __NR_fchownat		298 | ||
| 299 | #define __NR_futimesat		299 | ||
| 300 | #define __NR_fstatat64		300 | ||
| 301 | #define __NR_unlinkat		301 | ||
| 302 | #define __NR_renameat		302 | ||
| 303 | #define __NR_linkat		303 | ||
| 304 | #define __NR_symlinkat		304 | ||
| 305 | #define __NR_readlinkat		305 | ||
| 306 | #define __NR_fchmodat		306 | ||
| 307 | #define __NR_faccessat		307 | ||
| 308 | #define __NR_pselect6		308 | ||
| 309 | #define __NR_ppoll		309 | ||
| 310 | #define __NR_unshare		310 | ||
| 311 | #define __NR_set_robust_list	311 | ||
| 312 | #define __NR_get_robust_list	312 | ||
| 313 | #define __NR_splice		313 | ||
| 314 | #define __NR_sync_file_range	314 | ||
| 315 | #define __NR_tee		315 | ||
| 316 | #define __NR_vmsplice		316 | ||
| 317 | #define __NR_move_pages		317 | ||
| 318 | #define __NR_getcpu		318 | ||
| 319 | #define __NR_epoll_pwait	319 | ||
| 320 | #define __NR_utimensat		320 | ||
| 321 | #define __NR_signalfd		321 | ||
| 322 | #define __NR_timerfd_create	322 | ||
| 323 | #define __NR_eventfd		323 | ||
| 324 | #define __NR_fallocate		324 | ||
| 325 | #define __NR_timerfd_settime32	325 | ||
| 326 | #define __NR_timerfd_gettime32	326 | ||
| 327 | #define __NR_signalfd4		327 | ||
| 328 | #define __NR_eventfd2		328 | ||
| 329 | #define __NR_epoll_create1	329 | ||
| 330 | #define __NR_dup3		330 | ||
| 331 | #define __NR_pipe2		331 | ||
| 332 | #define __NR_inotify_init1	332 | ||
| 333 | #define __NR_preadv		333 | ||
| 334 | #define __NR_pwritev		334 | ||
| 335 | #define __NR_rt_tgsigqueueinfo	335 | ||
| 336 | #define __NR_perf_event_open	336 | ||
| 337 | #define __NR_recvmmsg		337 | ||
| 338 | #define __NR_fanotify_init	338 | ||
| 339 | #define __NR_fanotify_mark	339 | ||
| 340 | #define __NR_prlimit64		340 | ||
| 341 | #define __NR_name_to_handle_at	341 | ||
| 342 | #define __NR_open_by_handle_at	342 | ||
| 343 | #define __NR_clock_adjtime	343 | ||
| 344 | #define __NR_syncfs		344 | ||
| 345 | #define __NR_sendmmsg		345 | ||
| 346 | #define __NR_setns		346 | ||
| 347 | #define __NR_process_vm_readv	347 | ||
| 348 | #define __NR_process_vm_writev	348 | ||
| 349 | #define __NR_kcmp		349 | ||
| 350 | #define __NR_finit_module	350 | ||
| 351 | #define __NR_sched_setattr	351 | ||
| 352 | #define __NR_sched_getattr	352 | ||
| 353 | #define __NR_renameat2		353 | ||
| 354 | #define __NR_seccomp		354 | ||
| 355 | #define __NR_getrandom		355 | ||
| 356 | #define __NR_memfd_create	356 | ||
| 357 | #define __NR_bpf		357 | ||
| 358 | #define __NR_execveat		358 | ||
| 359 | #define __NR_socket		359 | ||
| 360 | #define __NR_socketpair		360 | ||
| 361 | #define __NR_bind		361 | ||
| 362 | #define __NR_connect		362 | ||
| 363 | #define __NR_listen		363 | ||
| 364 | #define __NR_accept4		364 | ||
| 365 | #define __NR_getsockopt		365 | ||
| 366 | #define __NR_setsockopt		366 | ||
| 367 | #define __NR_getsockname	367 | ||
| 368 | #define __NR_getpeername	368 | ||
| 369 | #define __NR_sendto		369 | ||
| 370 | #define __NR_sendmsg		370 | ||
| 371 | #define __NR_recvfrom		371 | ||
| 372 | #define __NR_recvmsg		372 | ||
| 373 | #define __NR_shutdown		373 | ||
| 374 | #define __NR_userfaultfd	374 | ||
| 375 | #define __NR_membarrier		375 | ||
| 376 | #define __NR_mlock2		376 | ||
| 377 | #define __NR_copy_file_range	377 | ||
| 378 | #define __NR_preadv2		378 | ||
| 379 | #define __NR_pwritev2		379 | ||
| 380 | #define __NR_pkey_mprotect	380 | ||
| 381 | #define __NR_pkey_alloc		381 | ||
| 382 | #define __NR_pkey_free		382 | ||
| 383 | #define __NR_statx		383 | ||
| 384 | #define __NR_arch_prctl		384 | ||
| 385 | #define __NR_io_pgetevents	385 | ||
| 386 | #define __NR_rseq		386 | ||
| 387 | #define __NR_semget		393 | ||
| 388 | #define __NR_semctl		394 | ||
| 389 | #define __NR_shmget		395 | ||
| 390 | #define __NR_shmctl		396 | ||
| 391 | #define __NR_shmat		397 | ||
| 392 | #define __NR_shmdt		398 | ||
| 393 | #define __NR_msgget		399 | ||
| 394 | #define __NR_msgsnd		400 | ||
| 395 | #define __NR_msgrcv		401 | ||
| 396 | #define __NR_msgctl		402 | ||
| 397 | #define __NR_clock_gettime64	403 | ||
| 398 | #define __NR_clock_settime64	404 | ||
| 399 | #define __NR_clock_adjtime64	405 | ||
| 400 | #define __NR_clock_getres_time64 406 | ||
| 401 | #define __NR_clock_nanosleep_time64 407 | ||
| 402 | #define __NR_timer_gettime64	408 | ||
| 403 | #define __NR_timer_settime64	409 | ||
| 404 | #define __NR_timerfd_gettime64	410 | ||
| 405 | #define __NR_timerfd_settime64	411 | ||
| 406 | #define __NR_utimensat_time64	412 | ||
| 407 | #define __NR_pselect6_time64	413 | ||
| 408 | #define __NR_ppoll_time64	414 | ||
| 409 | #define __NR_io_pgetevents_time64 416 | ||
| 410 | #define __NR_recvmmsg_time64	417 | ||
| 411 | #define __NR_mq_timedsend_time64 418 | ||
| 412 | #define __NR_mq_timedreceive_time64 419 | ||
| 413 | #define __NR_semtimedop_time64	420 | ||
| 414 | #define __NR_rt_sigtimedwait_time64 421 | ||
| 415 | #define __NR_futex_time64	422 | ||
| 416 | #define __NR_sched_rr_get_interval_time64 423 | ||
| 417 | #define __NR_pidfd_send_signal	424 | ||
| 418 | #define __NR_io_uring_setup	425 | ||
| 419 | #define __NR_io_uring_enter	426 | ||
| 420 | #define __NR_io_uring_register	427 | ||
| 421 | #define __NR_open_tree		428 | ||
| 422 | #define __NR_move_mount		429 | ||
| 423 | #define __NR_fsopen		430 | ||
| 424 | #define __NR_fsconfig		431 | ||
| 425 | #define __NR_fsmount		432 | ||
| 426 | #define __NR_fspick		433 | ||
| 427 | #define __NR_pidfd_open		434 | ||
| 428 | #define __NR_clone3		435 | ||
| 429 | #define __NR_close_range	436 | ||
| 430 | #define __NR_openat2		437 | ||
| 431 | #define __NR_pidfd_getfd	438 | ||
| 432 | #define __NR_faccessat2		439 | ||
| 433 | #define __NR_process_madvise	440 | ||
| 434 | #define __NR_epoll_pwait2	441 | ||
| 435 | #define __NR_mount_setattr	442 | ||
| 436 | #define __NR_landlock_create_ruleset	444 | ||
| 437 | #define __NR_landlock_add_rule	445 | ||
| 438 | #define __NR_landlock_restrict_self	446 | ||
| 439 | #define __NR_memfd_secret	447 | ||
| 440 | #define __NR_process_mrelease	448 | ||
| 441 | #define __NR_futex_waitv	449 | ||
| 442 | #define __NR_set_mempolicy_home_node	450 | ||
| 443 | #define __NR_cachestat		451 | ||
| 444 | #define __NR_fchmodat2		452 | ||
| 445 | |||
lib/libc/musl/arch/loongarch64/bits/alltypes.h.in deleted-18| ... | @@ -1,18 +0,0 @@ | ||
| 1 | #define _Addr long | ||
| 2 | #define _Int64 long | ||
| 3 | #define _Reg long | ||
| 4 | |||
| 5 | #define __BYTE_ORDER 1234 | ||
| 6 | #define __LONG_MAX 0x7fffffffffffffffL | ||
| 7 | |||
| 8 | #ifndef __cplusplus | ||
| 9 | TYPEDEF int wchar_t; | ||
| 10 | #endif | ||
| 11 | |||
| 12 | TYPEDEF float float_t; | ||
| 13 | TYPEDEF double double_t; | ||
| 14 | |||
| 15 | TYPEDEF struct { long long __ll; long double __ld; } max_align_t; | ||
| 16 | |||
| 17 | TYPEDEF unsigned nlink_t; | ||
| 18 | TYPEDEF int blksize_t; | ||
lib/libc/musl/arch/loongarch64/bits/syscall.h.in deleted-316| ... | @@ -1,316 +0,0 @@ | ||
| 1 | #define __NR_io_setup 0 | ||
| 2 | #define __NR_io_destroy 1 | ||
| 3 | #define __NR_io_submit 2 | ||
| 4 | #define __NR_io_cancel 3 | ||
| 5 | #define __NR_io_getevents 4 | ||
| 6 | #define __NR_setxattr 5 | ||
| 7 | #define __NR_lsetxattr 6 | ||
| 8 | #define __NR_fsetxattr 7 | ||
| 9 | #define __NR_getxattr 8 | ||
| 10 | #define __NR_lgetxattr 9 | ||
| 11 | #define __NR_fgetxattr 10 | ||
| 12 | #define __NR_listxattr 11 | ||
| 13 | #define __NR_llistxattr 12 | ||
| 14 | #define __NR_flistxattr 13 | ||
| 15 | #define __NR_removexattr 14 | ||
| 16 | #define __NR_lremovexattr 15 | ||
| 17 | #define __NR_fremovexattr 16 | ||
| 18 | #define __NR_getcwd 17 | ||
| 19 | #define __NR_lookup_dcookie 18 | ||
| 20 | #define __NR_eventfd2 19 | ||
| 21 | #define __NR_epoll_create1 20 | ||
| 22 | #define __NR_epoll_ctl 21 | ||
| 23 | #define __NR_epoll_pwait 22 | ||
| 24 | #define __NR_dup 23 | ||
| 25 | #define __NR_dup3 24 | ||
| 26 | #define __NR3264_fcntl 25 | ||
| 27 | #define __NR_inotify_init1 26 | ||
| 28 | #define __NR_inotify_add_watch 27 | ||
| 29 | #define __NR_inotify_rm_watch 28 | ||
| 30 | #define __NR_ioctl 29 | ||
| 31 | #define __NR_ioprio_set 30 | ||
| 32 | #define __NR_ioprio_get 31 | ||
| 33 | #define __NR_flock 32 | ||
| 34 | #define __NR_mknodat 33 | ||
| 35 | #define __NR_mkdirat 34 | ||
| 36 | #define __NR_unlinkat 35 | ||
| 37 | #define __NR_symlinkat 36 | ||
| 38 | #define __NR_linkat 37 | ||
| 39 | #define __NR_umount2 39 | ||
| 40 | #define __NR_mount 40 | ||
| 41 | #define __NR_pivot_root 41 | ||
| 42 | #define __NR_nfsservctl 42 | ||
| 43 | #define __NR3264_statfs 43 | ||
| 44 | #define __NR3264_fstatfs 44 | ||
| 45 | #define __NR3264_truncate 45 | ||
| 46 | #define __NR3264_ftruncate 46 | ||
| 47 | #define __NR_fallocate 47 | ||
| 48 | #define __NR_faccessat 48 | ||
| 49 | #define __NR_chdir 49 | ||
| 50 | #define __NR_fchdir 50 | ||
| 51 | #define __NR_chroot 51 | ||
| 52 | #define __NR_fchmod 52 | ||
| 53 | #define __NR_fchmodat 53 | ||
| 54 | #define __NR_fchownat 54 | ||
| 55 | #define __NR_fchown 55 | ||
| 56 | #define __NR_openat 56 | ||
| 57 | #define __NR_close 57 | ||
| 58 | #define __NR_vhangup 58 | ||
| 59 | #define __NR_pipe2 59 | ||
| 60 | #define __NR_quotactl 60 | ||
| 61 | #define __NR_getdents64 61 | ||
| 62 | #define __NR3264_lseek 62 | ||
| 63 | #define __NR_read 63 | ||
| 64 | #define __NR_write 64 | ||
| 65 | #define __NR_readv 65 | ||
| 66 | #define __NR_writev 66 | ||
| 67 | #define __NR_pread64 67 | ||
| 68 | #define __NR_pwrite64 68 | ||
| 69 | #define __NR_preadv 69 | ||
| 70 | #define __NR_pwritev 70 | ||
| 71 | #define __NR3264_sendfile 71 | ||
| 72 | #define __NR_pselect6 72 | ||
| 73 | #define __NR_ppoll 73 | ||
| 74 | #define __NR_signalfd4 74 | ||
| 75 | #define __NR_vmsplice 75 | ||
| 76 | #define __NR_splice 76 | ||
| 77 | #define __NR_tee 77 | ||
| 78 | #define __NR_readlinkat 78 | ||
| 79 | #define __NR_sync 81 | ||
| 80 | #define __NR_fsync 82 | ||
| 81 | #define __NR_fdatasync 83 | ||
| 82 | #define __NR_sync_file_range 84 | ||
| 83 | #define __NR_timerfd_create 85 | ||
| 84 | #define __NR_timerfd_settime 86 | ||
| 85 | #define __NR_timerfd_gettime 87 | ||
| 86 | #define __NR_utimensat 88 | ||
| 87 | #define __NR_acct 89 | ||
| 88 | #define __NR_capget 90 | ||
| 89 | #define __NR_capset 91 | ||
| 90 | #define __NR_personality 92 | ||
| 91 | #define __NR_exit 93 | ||
| 92 | #define __NR_exit_group 94 | ||
| 93 | #define __NR_waitid 95 | ||
| 94 | #define __NR_set_tid_address 96 | ||
| 95 | #define __NR_unshare 97 | ||
| 96 | #define __NR_futex 98 | ||
| 97 | #define __NR_set_robust_list 99 | ||
| 98 | #define __NR_get_robust_list 100 | ||
| 99 | #define __NR_nanosleep 101 | ||
| 100 | #define __NR_getitimer 102 | ||
| 101 | #define __NR_setitimer 103 | ||
| 102 | #define __NR_kexec_load 104 | ||
| 103 | #define __NR_init_module 105 | ||
| 104 | #define __NR_delete_module 106 | ||
| 105 | #define __NR_timer_create 107 | ||
| 106 | #define __NR_timer_gettime 108 | ||
| 107 | #define __NR_timer_getoverrun 109 | ||
| 108 | #define __NR_timer_settime 110 | ||
| 109 | #define __NR_timer_delete 111 | ||
| 110 | #define __NR_clock_settime 112 | ||
| 111 | #define __NR_clock_gettime 113 | ||
| 112 | #define __NR_clock_getres 114 | ||
| 113 | #define __NR_clock_nanosleep 115 | ||
| 114 | #define __NR_syslog 116 | ||
| 115 | #define __NR_ptrace 117 | ||
| 116 | #define __NR_sched_setparam 118 | ||
| 117 | #define __NR_sched_setscheduler 119 | ||
| 118 | #define __NR_sched_getscheduler 120 | ||
| 119 | #define __NR_sched_getparam 121 | ||
| 120 | #define __NR_sched_setaffinity 122 | ||
| 121 | #define __NR_sched_getaffinity 123 | ||
| 122 | #define __NR_sched_yield 124 | ||
| 123 | #define __NR_sched_get_priority_max 125 | ||
| 124 | #define __NR_sched_get_priority_min 126 | ||
| 125 | #define __NR_sched_rr_get_interval 127 | ||
| 126 | #define __NR_restart_syscall 128 | ||
| 127 | #define __NR_kill 129 | ||
| 128 | #define __NR_tkill 130 | ||
| 129 | #define __NR_tgkill 131 | ||
| 130 | #define __NR_sigaltstack 132 | ||
| 131 | #define __NR_rt_sigsuspend 133 | ||
| 132 | #define __NR_rt_sigaction 134 | ||
| 133 | #define __NR_rt_sigprocmask 135 | ||
| 134 | #define __NR_rt_sigpending 136 | ||
| 135 | #define __NR_rt_sigtimedwait 137 | ||
| 136 | #define __NR_rt_sigqueueinfo 138 | ||
| 137 | #define __NR_rt_sigreturn 139 | ||
| 138 | #define __NR_setpriority 140 | ||
| 139 | #define __NR_getpriority 141 | ||
| 140 | #define __NR_reboot 142 | ||
| 141 | #define __NR_setregid 143 | ||
| 142 | #define __NR_setgid 144 | ||
| 143 | #define __NR_setreuid 145 | ||
| 144 | #define __NR_setuid 146 | ||
| 145 | #define __NR_setresuid 147 | ||
| 146 | #define __NR_getresuid 148 | ||
| 147 | #define __NR_setresgid 149 | ||
| 148 | #define __NR_getresgid 150 | ||
| 149 | #define __NR_setfsuid 151 | ||
| 150 | #define __NR_setfsgid 152 | ||
| 151 | #define __NR_times 153 | ||
| 152 | #define __NR_setpgid 154 | ||
| 153 | #define __NR_getpgid 155 | ||
| 154 | #define __NR_getsid 156 | ||
| 155 | #define __NR_setsid 157 | ||
| 156 | #define __NR_getgroups 158 | ||
| 157 | #define __NR_setgroups 159 | ||
| 158 | #define __NR_uname 160 | ||
| 159 | #define __NR_sethostname 161 | ||
| 160 | #define __NR_setdomainname 162 | ||
| 161 | #define __NR_getrusage 165 | ||
| 162 | #define __NR_umask 166 | ||
| 163 | #define __NR_prctl 167 | ||
| 164 | #define __NR_getcpu 168 | ||
| 165 | #define __NR_gettimeofday 169 | ||
| 166 | #define __NR_settimeofday 170 | ||
| 167 | #define __NR_adjtimex 171 | ||
| 168 | #define __NR_getpid 172 | ||
| 169 | #define __NR_getppid 173 | ||
| 170 | #define __NR_getuid 174 | ||
| 171 | #define __NR_geteuid 175 | ||
| 172 | #define __NR_getgid 176 | ||
| 173 | #define __NR_getegid 177 | ||
| 174 | #define __NR_gettid 178 | ||
| 175 | #define __NR_sysinfo 179 | ||
| 176 | #define __NR_mq_open 180 | ||
| 177 | #define __NR_mq_unlink 181 | ||
| 178 | #define __NR_mq_timedsend 182 | ||
| 179 | #define __NR_mq_timedreceive 183 | ||
| 180 | #define __NR_mq_notify 184 | ||
| 181 | #define __NR_mq_getsetattr 185 | ||
| 182 | #define __NR_msgget 186 | ||
| 183 | #define __NR_msgctl 187 | ||
| 184 | #define __NR_msgrcv 188 | ||
| 185 | #define __NR_msgsnd 189 | ||
| 186 | #define __NR_semget 190 | ||
| 187 | #define __NR_semctl 191 | ||
| 188 | #define __NR_semtimedop 192 | ||
| 189 | #define __NR_semop 193 | ||
| 190 | #define __NR_shmget 194 | ||
| 191 | #define __NR_shmctl 195 | ||
| 192 | #define __NR_shmat 196 | ||
| 193 | #define __NR_shmdt 197 | ||
| 194 | #define __NR_socket 198 | ||
| 195 | #define __NR_socketpair 199 | ||
| 196 | #define __NR_bind 200 | ||
| 197 | #define __NR_listen 201 | ||
| 198 | #define __NR_accept 202 | ||
| 199 | #define __NR_connect 203 | ||
| 200 | #define __NR_getsockname 204 | ||
| 201 | #define __NR_getpeername 205 | ||
| 202 | #define __NR_sendto 206 | ||
| 203 | #define __NR_recvfrom 207 | ||
| 204 | #define __NR_setsockopt 208 | ||
| 205 | #define __NR_getsockopt 209 | ||
| 206 | #define __NR_shutdown 210 | ||
| 207 | #define __NR_sendmsg 211 | ||
| 208 | #define __NR_recvmsg 212 | ||
| 209 | #define __NR_readahead 213 | ||
| 210 | #define __NR_brk 214 | ||
| 211 | #define __NR_munmap 215 | ||
| 212 | #define __NR_mremap 216 | ||
| 213 | #define __NR_add_key 217 | ||
| 214 | #define __NR_request_key 218 | ||
| 215 | #define __NR_keyctl 219 | ||
| 216 | #define __NR_clone 220 | ||
| 217 | #define __NR_execve 221 | ||
| 218 | #define __NR3264_mmap 222 | ||
| 219 | #define __NR3264_fadvise64 223 | ||
| 220 | #define __NR_swapon 224 | ||
| 221 | #define __NR_swapoff 225 | ||
| 222 | #define __NR_mprotect 226 | ||
| 223 | #define __NR_msync 227 | ||
| 224 | #define __NR_mlock 228 | ||
| 225 | #define __NR_munlock 229 | ||
| 226 | #define __NR_mlockall 230 | ||
| 227 | #define __NR_munlockall 231 | ||
| 228 | #define __NR_mincore 232 | ||
| 229 | #define __NR_madvise 233 | ||
| 230 | #define __NR_remap_file_pages 234 | ||
| 231 | #define __NR_mbind 235 | ||
| 232 | #define __NR_get_mempolicy 236 | ||
| 233 | #define __NR_set_mempolicy 237 | ||
| 234 | #define __NR_migrate_pages 238 | ||
| 235 | #define __NR_move_pages 239 | ||
| 236 | #define __NR_rt_tgsigqueueinfo 240 | ||
| 237 | #define __NR_perf_event_open 241 | ||
| 238 | #define __NR_accept4 242 | ||
| 239 | #define __NR_recvmmsg 243 | ||
| 240 | #define __NR_arch_specific_syscall 244 | ||
| 241 | #define __NR_wait4 260 | ||
| 242 | #define __NR_prlimit64 261 | ||
| 243 | #define __NR_fanotify_init 262 | ||
| 244 | #define __NR_fanotify_mark 263 | ||
| 245 | #define __NR_name_to_handle_at 264 | ||
| 246 | #define __NR_open_by_handle_at 265 | ||
| 247 | #define __NR_clock_adjtime 266 | ||
| 248 | #define __NR_syncfs 267 | ||
| 249 | #define __NR_setns 268 | ||
| 250 | #define __NR_sendmmsg 269 | ||
| 251 | #define __NR_process_vm_readv 270 | ||
| 252 | #define __NR_process_vm_writev 271 | ||
| 253 | #define __NR_kcmp 272 | ||
| 254 | #define __NR_finit_module 273 | ||
| 255 | #define __NR_sched_setattr 274 | ||
| 256 | #define __NR_sched_getattr 275 | ||
| 257 | #define __NR_renameat2 276 | ||
| 258 | #define __NR_seccomp 277 | ||
| 259 | #define __NR_getrandom 278 | ||
| 260 | #define __NR_memfd_create 279 | ||
| 261 | #define __NR_bpf 280 | ||
| 262 | #define __NR_execveat 281 | ||
| 263 | #define __NR_userfaultfd 282 | ||
| 264 | #define __NR_membarrier 283 | ||
| 265 | #define __NR_mlock2 284 | ||
| 266 | #define __NR_copy_file_range 285 | ||
| 267 | #define __NR_preadv2 286 | ||
| 268 | #define __NR_pwritev2 287 | ||
| 269 | #define __NR_pkey_mprotect 288 | ||
| 270 | #define __NR_pkey_alloc 289 | ||
| 271 | #define __NR_pkey_free 290 | ||
| 272 | #define __NR_statx 291 | ||
| 273 | #define __NR_io_pgetevents 292 | ||
| 274 | #define __NR_rseq 293 | ||
| 275 | #define __NR_kexec_file_load 294 | ||
| 276 | #define __NR_pidfd_send_signal 424 | ||
| 277 | #define __NR_io_uring_setup 425 | ||
| 278 | #define __NR_io_uring_enter 426 | ||
| 279 | #define __NR_io_uring_register 427 | ||
| 280 | #define __NR_open_tree 428 | ||
| 281 | #define __NR_move_mount 429 | ||
| 282 | #define __NR_fsopen 430 | ||
| 283 | #define __NR_fsconfig 431 | ||
| 284 | #define __NR_fsmount 432 | ||
| 285 | #define __NR_fspick 433 | ||
| 286 | #define __NR_pidfd_open 434 | ||
| 287 | #define __NR_clone3 435 | ||
| 288 | #define __NR_close_range 436 | ||
| 289 | #define __NR_openat2 437 | ||
| 290 | #define __NR_pidfd_getfd 438 | ||
| 291 | #define __NR_faccessat2 439 | ||
| 292 | #define __NR_process_madvise 440 | ||
| 293 | #define __NR_epoll_pwait2 441 | ||
| 294 | #define __NR_mount_setattr 442 | ||
| 295 | #define __NR_quotactl_fd 443 | ||
| 296 | #define __NR_landlock_create_ruleset 444 | ||
| 297 | #define __NR_landlock_add_rule 445 | ||
| 298 | #define __NR_landlock_restrict_self 446 | ||
| 299 | #define __NR_process_mrelease 448 | ||
| 300 | #define __NR_futex_waitv 449 | ||
| 301 | #define __NR_set_mempolicy_home_node 450 | ||
| 302 | #define __NR_cachestat 451 | ||
| 303 | #define __NR_fchmodat2 452 | ||
| 304 | #define __NR_map_shadow_stack 453 | ||
| 305 | #define __NR_futex_wake 454 | ||
| 306 | #define __NR_futex_wait 455 | ||
| 307 | #define __NR_futex_requeue 456 | ||
| 308 | #define __NR_fcntl __NR3264_fcntl | ||
| 309 | #define __NR_statfs __NR3264_statfs | ||
| 310 | #define __NR_fstatfs __NR3264_fstatfs | ||
| 311 | #define __NR_truncate __NR3264_truncate | ||
| 312 | #define __NR_ftruncate __NR3264_ftruncate | ||
| 313 | #define __NR_lseek __NR3264_lseek | ||
| 314 | #define __NR_sendfile __NR3264_sendfile | ||
| 315 | #define __NR_mmap __NR3264_mmap | ||
| 316 | #define __NR_fadvise64 __NR3264_fadvise64 | ||
lib/libc/musl/arch/m68k/bits/alltypes.h.in deleted-25| ... | @@ -1,25 +0,0 @@ | ||
| 1 | #define _REDIR_TIME64 1 | ||
| 2 | #define _Addr int | ||
| 3 | #define _Int64 long long | ||
| 4 | #define _Reg int | ||
| 5 | |||
| 6 | #define __BYTE_ORDER 4321 | ||
| 7 | #define __LONG_MAX 0x7fffffffL | ||
| 8 | |||
| 9 | #ifndef __cplusplus | ||
| 10 | #ifdef __WCHAR_TYPE__ | ||
| 11 | TYPEDEF __WCHAR_TYPE__ wchar_t; | ||
| 12 | #else | ||
| 13 | TYPEDEF long wchar_t; | ||
| 14 | #endif | ||
| 15 | #endif | ||
| 16 | |||
| 17 | #if __mcffpu__ | ||
| 18 | TYPEDEF float float_t; | ||
| 19 | TYPEDEF double double_t; | ||
| 20 | #else | ||
| 21 | TYPEDEF long double float_t; | ||
| 22 | TYPEDEF long double double_t; | ||
| 23 | #endif | ||
| 24 | |||
| 25 | TYPEDEF struct { long long __ll; long double __ld; } max_align_t; | ||
lib/libc/musl/arch/m68k/bits/syscall.h.in deleted-423| ... | @@ -1,423 +0,0 @@ | ||
| 1 | #define __NR_restart_syscall	 0 | ||
| 2 | #define __NR_exit		 1 | ||
| 3 | #define __NR_fork		 2 | ||
| 4 | #define __NR_read		 3 | ||
| 5 | #define __NR_write		 4 | ||
| 6 | #define __NR_open		 5 | ||
| 7 | #define __NR_close		 6 | ||
| 8 | #define __NR_waitpid		 7 | ||
| 9 | #define __NR_creat		 8 | ||
| 10 | #define __NR_link		 9 | ||
| 11 | #define __NR_unlink		 10 | ||
| 12 | #define __NR_execve		 11 | ||
| 13 | #define __NR_chdir		 12 | ||
| 14 | #define __NR_time		 13 | ||
| 15 | #define __NR_mknod		 14 | ||
| 16 | #define __NR_chmod		 15 | ||
| 17 | #define __NR_chown		 16 | ||
| 18 | #define __NR_oldstat		 18 | ||
| 19 | #define __NR_lseek		 19 | ||
| 20 | #define __NR_getpid		 20 | ||
| 21 | #define __NR_mount		 21 | ||
| 22 | #define __NR_umount		 22 | ||
| 23 | #define __NR_setuid		 23 | ||
| 24 | #define __NR_getuid		 24 | ||
| 25 | #define __NR_stime		 25 | ||
| 26 | #define __NR_ptrace		 26 | ||
| 27 | #define __NR_alarm		 27 | ||
| 28 | #define __NR_oldfstat		 28 | ||
| 29 | #define __NR_pause		 29 | ||
| 30 | #define __NR_utime		 30 | ||
| 31 | #define __NR_access		 33 | ||
| 32 | #define __NR_nice		 34 | ||
| 33 | #define __NR_sync		 36 | ||
| 34 | #define __NR_kill		 37 | ||
| 35 | #define __NR_rename		 38 | ||
| 36 | #define __NR_mkdir		 39 | ||
| 37 | #define __NR_rmdir		 40 | ||
| 38 | #define __NR_dup		 41 | ||
| 39 | #define __NR_pipe		 42 | ||
| 40 | #define __NR_times		 43 | ||
| 41 | #define __NR_brk		 45 | ||
| 42 | #define __NR_setgid		 46 | ||
| 43 | #define __NR_getgid		 47 | ||
| 44 | #define __NR_signal		 48 | ||
| 45 | #define __NR_geteuid		 49 | ||
| 46 | #define __NR_getegid		 50 | ||
| 47 | #define __NR_acct		 51 | ||
| 48 | #define __NR_umount2		 52 | ||
| 49 | #define __NR_ioctl		 54 | ||
| 50 | #define __NR_fcntl		 55 | ||
| 51 | #define __NR_setpgid		 57 | ||
| 52 | #define __NR_umask		 60 | ||
| 53 | #define __NR_chroot		 61 | ||
| 54 | #define __NR_ustat		 62 | ||
| 55 | #define __NR_dup2		 63 | ||
| 56 | #define __NR_getppid		 64 | ||
| 57 | #define __NR_getpgrp		 65 | ||
| 58 | #define __NR_setsid		 66 | ||
| 59 | #define __NR_sigaction		 67 | ||
| 60 | #define __NR_sgetmask		 68 | ||
| 61 | #define __NR_ssetmask		 69 | ||
| 62 | #define __NR_setreuid		 70 | ||
| 63 | #define __NR_setregid		 71 | ||
| 64 | #define __NR_sigsuspend		 72 | ||
| 65 | #define __NR_sigpending		 73 | ||
| 66 | #define __NR_sethostname	 74 | ||
| 67 | #define __NR_setrlimit		 75 | ||
| 68 | #define __NR_getrlimit		 76 | ||
| 69 | #define __NR_getrusage		 77 | ||
| 70 | #define __NR_gettimeofday_time32	 78 | ||
| 71 | #define __NR_settimeofday_time32	 79 | ||
| 72 | #define __NR_getgroups		 80 | ||
| 73 | #define __NR_setgroups		 81 | ||
| 74 | #define __NR_select		 82 | ||
| 75 | #define __NR_symlink		 83 | ||
| 76 | #define __NR_oldlstat		 84 | ||
| 77 | #define __NR_readlink		 85 | ||
| 78 | #define __NR_uselib		 86 | ||
| 79 | #define __NR_swapon		 87 | ||
| 80 | #define __NR_reboot		 88 | ||
| 81 | #define __NR_readdir		 89 | ||
| 82 | #define __NR_mmap		 90 | ||
| 83 | #define __NR_munmap		 91 | ||
| 84 | #define __NR_truncate		 92 | ||
| 85 | #define __NR_ftruncate		 93 | ||
| 86 | #define __NR_fchmod		 94 | ||
| 87 | #define __NR_fchown		 95 | ||
| 88 | #define __NR_getpriority	 96 | ||
| 89 | #define __NR_setpriority	 97 | ||
| 90 | #define __NR_statfs		 99 | ||
| 91 | #define __NR_fstatfs		100 | ||
| 92 | #define __NR_socketcall		102 | ||
| 93 | #define __NR_syslog		103 | ||
| 94 | #define __NR_setitimer		104 | ||
| 95 | #define __NR_getitimer		105 | ||
| 96 | #define __NR_stat		106 | ||
| 97 | #define __NR_lstat		107 | ||
| 98 | #define __NR_fstat		108 | ||
| 99 | #define __NR_vhangup		111 | ||
| 100 | #define __NR_wait4		114 | ||
| 101 | #define __NR_swapoff		115 | ||
| 102 | #define __NR_sysinfo		116 | ||
| 103 | #define __NR_ipc		117 | ||
| 104 | #define __NR_fsync		118 | ||
| 105 | #define __NR_sigreturn		119 | ||
| 106 | #define __NR_clone		120 | ||
| 107 | #define __NR_setdomainname	121 | ||
| 108 | #define __NR_uname		122 | ||
| 109 | #define __NR_cacheflush		123 | ||
| 110 | #define __NR_adjtimex		124 | ||
| 111 | #define __NR_mprotect		125 | ||
| 112 | #define __NR_sigprocmask	126 | ||
| 113 | #define __NR_create_module	127 | ||
| 114 | #define __NR_init_module	128 | ||
| 115 | #define __NR_delete_module	129 | ||
| 116 | #define __NR_get_kernel_syms	130 | ||
| 117 | #define __NR_quotactl		131 | ||
| 118 | #define __NR_getpgid		132 | ||
| 119 | #define __NR_fchdir		133 | ||
| 120 | #define __NR_bdflush		134 | ||
| 121 | #define __NR_sysfs		135 | ||
| 122 | #define __NR_personality	136 | ||
| 123 | #define __NR_setfsuid		138 | ||
| 124 | #define __NR_setfsgid		139 | ||
| 125 | #define __NR__llseek		140 | ||
| 126 | #define __NR_getdents		141 | ||
| 127 | #define __NR__newselect		142 | ||
| 128 | #define __NR_flock		143 | ||
| 129 | #define __NR_msync		144 | ||
| 130 | #define __NR_readv		145 | ||
| 131 | #define __NR_writev		146 | ||
| 132 | #define __NR_getsid		147 | ||
| 133 | #define __NR_fdatasync		148 | ||
| 134 | #define __NR__sysctl		149 | ||
| 135 | #define __NR_mlock		150 | ||
| 136 | #define __NR_munlock		151 | ||
| 137 | #define __NR_mlockall		152 | ||
| 138 | #define __NR_munlockall		153 | ||
| 139 | #define __NR_sched_setparam		154 | ||
| 140 | #define __NR_sched_getparam		155 | ||
| 141 | #define __NR_sched_setscheduler		156 | ||
| 142 | #define __NR_sched_getscheduler		157 | ||
| 143 | #define __NR_sched_yield		158 | ||
| 144 | #define __NR_sched_get_priority_max	159 | ||
| 145 | #define __NR_sched_get_priority_min	160 | ||
| 146 | #define __NR_sched_rr_get_interval	161 | ||
| 147 | #define __NR_nanosleep		162 | ||
| 148 | #define __NR_mremap		163 | ||
| 149 | #define __NR_setresuid		164 | ||
| 150 | #define __NR_getresuid		165 | ||
| 151 | #define __NR_getpagesize	166 | ||
| 152 | #define __NR_query_module	167 | ||
| 153 | #define __NR_poll		168 | ||
| 154 | #define __NR_nfsservctl		169 | ||
| 155 | #define __NR_setresgid		170 | ||
| 156 | #define __NR_getresgid		171 | ||
| 157 | #define __NR_prctl		172 | ||
| 158 | #define __NR_rt_sigreturn	173 | ||
| 159 | #define __NR_rt_sigaction	174 | ||
| 160 | #define __NR_rt_sigprocmask	175 | ||
| 161 | #define __NR_rt_sigpending	176 | ||
| 162 | #define __NR_rt_sigtimedwait	177 | ||
| 163 | #define __NR_rt_sigqueueinfo	178 | ||
| 164 | #define __NR_rt_sigsuspend	179 | ||
| 165 | #define __NR_pread64		180 | ||
| 166 | #define __NR_pwrite64		181 | ||
| 167 | #define __NR_lchown		182 | ||
| 168 | #define __NR_getcwd		183 | ||
| 169 | #define __NR_capget		184 | ||
| 170 | #define __NR_capset		185 | ||
| 171 | #define __NR_sigaltstack	186 | ||
| 172 | #define __NR_sendfile		187 | ||
| 173 | #define __NR_getpmsg		188 | ||
| 174 | #define __NR_putpmsg		189 | ||
| 175 | #define __NR_vfork		190 | ||
| 176 | #define __NR_ugetrlimit		191 | ||
| 177 | #define __NR_mmap2		192 | ||
| 178 | #define __NR_truncate64		193 | ||
| 179 | #define __NR_ftruncate64	194 | ||
| 180 | #define __NR_stat64		195 | ||
| 181 | #define __NR_lstat64		196 | ||
| 182 | #define __NR_fstat64		197 | ||
| 183 | #define __NR_chown32		198 | ||
| 184 | #define __NR_getuid32		199 | ||
| 185 | #define __NR_getgid32		200 | ||
| 186 | #define __NR_geteuid32		201 | ||
| 187 | #define __NR_getegid32		202 | ||
| 188 | #define __NR_setreuid32		203 | ||
| 189 | #define __NR_setregid32		204 | ||
| 190 | #define __NR_getgroups32	205 | ||
| 191 | #define __NR_setgroups32	206 | ||
| 192 | #define __NR_fchown32		207 | ||
| 193 | #define __NR_setresuid32	208 | ||
| 194 | #define __NR_getresuid32	209 | ||
| 195 | #define __NR_setresgid32	210 | ||
| 196 | #define __NR_getresgid32	211 | ||
| 197 | #define __NR_lchown32		212 | ||
| 198 | #define __NR_setuid32		213 | ||
| 199 | #define __NR_setgid32		214 | ||
| 200 | #define __NR_setfsuid32		215 | ||
| 201 | #define __NR_setfsgid32		216 | ||
| 202 | #define __NR_pivot_root		217 | ||
| 203 | #define __NR_getdents64		220 | ||
| 204 | #define __NR_gettid		221 | ||
| 205 | #define __NR_tkill		222 | ||
| 206 | #define __NR_setxattr		223 | ||
| 207 | #define __NR_lsetxattr		224 | ||
| 208 | #define __NR_fsetxattr		225 | ||
| 209 | #define __NR_getxattr		226 | ||
| 210 | #define __NR_lgetxattr		227 | ||
| 211 | #define __NR_fgetxattr		228 | ||
| 212 | #define __NR_listxattr		229 | ||
| 213 | #define __NR_llistxattr		230 | ||
| 214 | #define __NR_flistxattr		231 | ||
| 215 | #define __NR_removexattr	232 | ||
| 216 | #define __NR_lremovexattr	233 | ||
| 217 | #define __NR_fremovexattr	234 | ||
| 218 | #define __NR_futex		235 | ||
| 219 | #define __NR_sendfile64		236 | ||
| 220 | #define __NR_mincore		237 | ||
| 221 | #define __NR_madvise		238 | ||
| 222 | #define __NR_fcntl64		239 | ||
| 223 | #define __NR_readahead		240 | ||
| 224 | #define __NR_io_setup		241 | ||
| 225 | #define __NR_io_destroy		242 | ||
| 226 | #define __NR_io_getevents	243 | ||
| 227 | #define __NR_io_submit		244 | ||
| 228 | #define __NR_io_cancel		245 | ||
| 229 | #define __NR_fadvise64		246 | ||
| 230 | #define __NR_exit_group		247 | ||
| 231 | #define __NR_lookup_dcookie	248 | ||
| 232 | #define __NR_epoll_create	249 | ||
| 233 | #define __NR_epoll_ctl		250 | ||
| 234 | #define __NR_epoll_wait		251 | ||
| 235 | #define __NR_remap_file_pages	252 | ||
| 236 | #define __NR_set_tid_address	253 | ||
| 237 | #define __NR_timer_create	254 | ||
| 238 | #define __NR_timer_settime32	255 | ||
| 239 | #define __NR_timer_gettime32	256 | ||
| 240 | #define __NR_timer_getoverrun	257 | ||
| 241 | #define __NR_timer_delete	258 | ||
| 242 | #define __NR_clock_settime32	259 | ||
| 243 | #define __NR_clock_gettime32	260 | ||
| 244 | #define __NR_clock_getres_time32	261 | ||
| 245 | #define __NR_clock_nanosleep_time32	262 | ||
| 246 | #define __NR_statfs64		263 | ||
| 247 | #define __NR_fstatfs64		264 | ||
| 248 | #define __NR_tgkill		265 | ||
| 249 | #define __NR_utimes		266 | ||
| 250 | #define __NR_fadvise64_64	267 | ||
| 251 | #define __NR_mbind		268 | ||
| 252 | #define __NR_get_mempolicy	269 | ||
| 253 | #define __NR_set_mempolicy	270 | ||
| 254 | #define __NR_mq_open		271 | ||
| 255 | #define __NR_mq_unlink		272 | ||
| 256 | #define __NR_mq_timedsend	273 | ||
| 257 | #define __NR_mq_timedreceive	274 | ||
| 258 | #define __NR_mq_notify		275 | ||
| 259 | #define __NR_mq_getsetattr	276 | ||
| 260 | #define __NR_waitid		277 | ||
| 261 | #define __NR_add_key		279 | ||
| 262 | #define __NR_request_key	280 | ||
| 263 | #define __NR_keyctl		281 | ||
| 264 | #define __NR_ioprio_set		282 | ||
| 265 | #define __NR_ioprio_get		283 | ||
| 266 | #define __NR_inotify_init	284 | ||
| 267 | #define __NR_inotify_add_watch	285 | ||
| 268 | #define __NR_inotify_rm_watch	286 | ||
| 269 | #define __NR_migrate_pages	287 | ||
| 270 | #define __NR_openat		288 | ||
| 271 | #define __NR_mkdirat		289 | ||
| 272 | #define __NR_mknodat		290 | ||
| 273 | #define __NR_fchownat		291 | ||
| 274 | #define __NR_futimesat		292 | ||
| 275 | #define __NR_fstatat64		293 | ||
| 276 | #define __NR_unlinkat		294 | ||
| 277 | #define __NR_renameat		295 | ||
| 278 | #define __NR_linkat		296 | ||
| 279 | #define __NR_symlinkat		297 | ||
| 280 | #define __NR_readlinkat		298 | ||
| 281 | #define __NR_fchmodat		299 | ||
| 282 | #define __NR_faccessat		300 | ||
| 283 | #define __NR_pselect6		301 | ||
| 284 | #define __NR_ppoll		302 | ||
| 285 | #define __NR_unshare		303 | ||
| 286 | #define __NR_set_robust_list	304 | ||
| 287 | #define __NR_get_robust_list	305 | ||
| 288 | #define __NR_splice		306 | ||
| 289 | #define __NR_sync_file_range	307 | ||
| 290 | #define __NR_tee		308 | ||
| 291 | #define __NR_vmsplice		309 | ||
| 292 | #define __NR_move_pages		310 | ||
| 293 | #define __NR_sched_setaffinity	311 | ||
| 294 | #define __NR_sched_getaffinity	312 | ||
| 295 | #define __NR_kexec_load		313 | ||
| 296 | #define __NR_getcpu		314 | ||
| 297 | #define __NR_epoll_pwait	315 | ||
| 298 | #define __NR_utimensat		316 | ||
| 299 | #define __NR_signalfd		317 | ||
| 300 | #define __NR_timerfd_create	318 | ||
| 301 | #define __NR_eventfd		319 | ||
| 302 | #define __NR_fallocate		320 | ||
| 303 | #define __NR_timerfd_settime32	321 | ||
| 304 | #define __NR_timerfd_gettime32	322 | ||
| 305 | #define __NR_signalfd4		323 | ||
| 306 | #define __NR_eventfd2		324 | ||
| 307 | #define __NR_epoll_create1	325 | ||
| 308 | #define __NR_dup3		326 | ||
| 309 | #define __NR_pipe2		327 | ||
| 310 | #define __NR_inotify_init1	328 | ||
| 311 | #define __NR_preadv		329 | ||
| 312 | #define __NR_pwritev		330 | ||
| 313 | #define __NR_rt_tgsigqueueinfo	331 | ||
| 314 | #define __NR_perf_event_open	332 | ||
| 315 | #define __NR_get_thread_area	333 | ||
| 316 | #define __NR_set_thread_area	334 | ||
| 317 | #define __NR_atomic_cmpxchg_32	335 | ||
| 318 | #define __NR_atomic_barrier	336 | ||
| 319 | #define __NR_fanotify_init	337 | ||
| 320 | #define __NR_fanotify_mark	338 | ||
| 321 | #define __NR_prlimit64		339 | ||
| 322 | #define __NR_name_to_handle_at	340 | ||
| 323 | #define __NR_open_by_handle_at	341 | ||
| 324 | #define __NR_clock_adjtime	342 | ||
| 325 | #define __NR_syncfs		343 | ||
| 326 | #define __NR_setns		344 | ||
| 327 | #define __NR_process_vm_readv	345 | ||
| 328 | #define __NR_process_vm_writev	346 | ||
| 329 | #define __NR_kcmp		347 | ||
| 330 | #define __NR_finit_module	348 | ||
| 331 | #define __NR_sched_setattr	349 | ||
| 332 | #define __NR_sched_getattr	350 | ||
| 333 | #define __NR_renameat2		351 | ||
| 334 | #define __NR_getrandom		352 | ||
| 335 | #define __NR_memfd_create	353 | ||
| 336 | #define __NR_bpf		354 | ||
| 337 | #define __NR_execveat		355 | ||
| 338 | #define __NR_socket		356 | ||
| 339 | #define __NR_socketpair		357 | ||
| 340 | #define __NR_bind		358 | ||
| 341 | #define __NR_connect		359 | ||
| 342 | #define __NR_listen		360 | ||
| 343 | #define __NR_accept4		361 | ||
| 344 | #define __NR_getsockopt		362 | ||
| 345 | #define __NR_setsockopt		363 | ||
| 346 | #define __NR_getsockname	364 | ||
| 347 | #define __NR_getpeername	365 | ||
| 348 | #define __NR_sendto		366 | ||
| 349 | #define __NR_sendmsg		367 | ||
| 350 | #define __NR_recvfrom		368 | ||
| 351 | #define __NR_recvmsg		369 | ||
| 352 | #define __NR_shutdown		370 | ||
| 353 | #define __NR_recvmmsg		371 | ||
| 354 | #define __NR_sendmmsg		372 | ||
| 355 | #define __NR_userfaultfd	373 | ||
| 356 | #define __NR_membarrier		374 | ||
| 357 | #define __NR_mlock2		375 | ||
| 358 | #define __NR_copy_file_range	376 | ||
| 359 | #define __NR_preadv2		377 | ||
| 360 | #define __NR_pwritev2		378 | ||
| 361 | #define __NR_statx		379 | ||
| 362 | #define __NR_seccomp		380 | ||
| 363 | #define __NR_pkey_mprotect	381 | ||
| 364 | #define __NR_pkey_alloc		382 | ||
| 365 | #define __NR_pkey_free		383 | ||
| 366 | #define __NR_rseq		384 | ||
| 367 | #define __NR_semget		393 | ||
| 368 | #define __NR_semctl		394 | ||
| 369 | #define __NR_shmget		395 | ||
| 370 | #define __NR_shmctl		396 | ||
| 371 | #define __NR_shmat		397 | ||
| 372 | #define __NR_shmdt		398 | ||
| 373 | #define __NR_msgget		399 | ||
| 374 | #define __NR_msgsnd		400 | ||
| 375 | #define __NR_msgrcv		401 | ||
| 376 | #define __NR_msgctl		402 | ||
| 377 | #define __NR_clock_gettime64	403 | ||
| 378 | #define __NR_clock_settime64	404 | ||
| 379 | #define __NR_clock_adjtime64	405 | ||
| 380 | #define __NR_clock_getres_time64 406 | ||
| 381 | #define __NR_clock_nanosleep_time64 407 | ||
| 382 | #define __NR_timer_gettime64	408 | ||
| 383 | #define __NR_timer_settime64	409 | ||
| 384 | #define __NR_timerfd_gettime64	410 | ||
| 385 | #define __NR_timerfd_settime64	411 | ||
| 386 | #define __NR_utimensat_time64	412 | ||
| 387 | #define __NR_pselect6_time64	413 | ||
| 388 | #define __NR_ppoll_time64	414 | ||
| 389 | #define __NR_io_pgetevents_time64 416 | ||
| 390 | #define __NR_recvmmsg_time64	417 | ||
| 391 | #define __NR_mq_timedsend_time64 418 | ||
| 392 | #define __NR_mq_timedreceive_time64 419 | ||
| 393 | #define __NR_semtimedop_time64	420 | ||
| 394 | #define __NR_rt_sigtimedwait_time64 421 | ||
| 395 | #define __NR_futex_time64	422 | ||
| 396 | #define __NR_sched_rr_get_interval_time64 423 | ||
| 397 | #define __NR_pidfd_send_signal	424 | ||
| 398 | #define __NR_io_uring_setup	425 | ||
| 399 | #define __NR_io_uring_enter	426 | ||
| 400 | #define __NR_io_uring_register	427 | ||
| 401 | #define __NR_open_tree		428 | ||
| 402 | #define __NR_move_mount		429 | ||
| 403 | #define __NR_fsopen		430 | ||
| 404 | #define __NR_fsconfig		431 | ||
| 405 | #define __NR_fsmount		432 | ||
| 406 | #define __NR_fspick		433 | ||
| 407 | #define __NR_pidfd_open		434 | ||
| 408 | #define __NR_clone3		435 | ||
| 409 | #define __NR_close_range	436 | ||
| 410 | #define __NR_openat2		437 | ||
| 411 | #define __NR_pidfd_getfd	438 | ||
| 412 | #define __NR_faccessat2		439 | ||
| 413 | #define __NR_process_madvise	440 | ||
| 414 | #define __NR_epoll_pwait2	441 | ||
| 415 | #define __NR_mount_setattr	442 | ||
| 416 | #define __NR_landlock_create_ruleset	444 | ||
| 417 | #define __NR_landlock_add_rule	445 | ||
| 418 | #define __NR_landlock_restrict_self	446 | ||
| 419 | #define __NR_process_mrelease	448 | ||
| 420 | #define __NR_futex_waitv	449 | ||
| 421 | #define __NR_set_mempolicy_home_node	450 | ||
| 422 | #define __NR_cachestat		451 | ||
| 423 | #define __NR_fchmodat2		452 | ||
lib/libc/musl/arch/mips/bits/alltypes.h.in deleted-21| ... | @@ -1,21 +0,0 @@ | ||
| 1 | #define _REDIR_TIME64 1 | ||
| 2 | #define _Addr int | ||
| 3 | #define _Int64 long long | ||
| 4 | #define _Reg int | ||
| 5 | |||
| 6 | #if _MIPSEL || __MIPSEL || __MIPSEL__ | ||
| 7 | #define __BYTE_ORDER 1234 | ||
| 8 | #else | ||
| 9 | #define __BYTE_ORDER 4321 | ||
| 10 | #endif | ||
| 11 | |||
| 12 | #define __LONG_MAX 0x7fffffffL | ||
| 13 | |||
| 14 | #ifndef __cplusplus | ||
| 15 | TYPEDEF int wchar_t; | ||
| 16 | #endif | ||
| 17 | |||
| 18 | TYPEDEF float float_t; | ||
| 19 | TYPEDEF double double_t; | ||
| 20 | |||
| 21 | TYPEDEF struct { long long __ll; long double __ld; } max_align_t; | ||
lib/libc/musl/arch/mips/bits/syscall.h.in deleted-426| ... | @@ -1,426 +0,0 @@ | ||
| 1 | #define __NR_syscall 4000 | ||
| 2 | #define __NR_exit 4001 | ||
| 3 | #define __NR_fork 4002 | ||
| 4 | #define __NR_read 4003 | ||
| 5 | #define __NR_write 4004 | ||
| 6 | #define __NR_open 4005 | ||
| 7 | #define __NR_close 4006 | ||
| 8 | #define __NR_waitpid 4007 | ||
| 9 | #define __NR_creat 4008 | ||
| 10 | #define __NR_link 4009 | ||
| 11 | #define __NR_unlink 4010 | ||
| 12 | #define __NR_execve 4011 | ||
| 13 | #define __NR_chdir 4012 | ||
| 14 | #define __NR_time 4013 | ||
| 15 | #define __NR_mknod 4014 | ||
| 16 | #define __NR_chmod 4015 | ||
| 17 | #define __NR_lchown 4016 | ||
| 18 | #define __NR_break 4017 | ||
| 19 | #define __NR_unused18 4018 | ||
| 20 | #define __NR_lseek 4019 | ||
| 21 | #define __NR_getpid 4020 | ||
| 22 | #define __NR_mount 4021 | ||
| 23 | #define __NR_umount 4022 | ||
| 24 | #define __NR_setuid 4023 | ||
| 25 | #define __NR_getuid 4024 | ||
| 26 | #define __NR_stime 4025 | ||
| 27 | #define __NR_ptrace 4026 | ||
| 28 | #define __NR_alarm 4027 | ||
| 29 | #define __NR_unused28 4028 | ||
| 30 | #define __NR_pause 4029 | ||
| 31 | #define __NR_utime 4030 | ||
| 32 | #define __NR_stty 4031 | ||
| 33 | #define __NR_gtty 4032 | ||
| 34 | #define __NR_access 4033 | ||
| 35 | #define __NR_nice 4034 | ||
| 36 | #define __NR_ftime 4035 | ||
| 37 | #define __NR_sync 4036 | ||
| 38 | #define __NR_kill 4037 | ||
| 39 | #define __NR_rename 4038 | ||
| 40 | #define __NR_mkdir 4039 | ||
| 41 | #define __NR_rmdir 4040 | ||
| 42 | #define __NR_dup 4041 | ||
| 43 | #define __NR_pipe 4042 | ||
| 44 | #define __NR_times 4043 | ||
| 45 | #define __NR_prof 4044 | ||
| 46 | #define __NR_brk 4045 | ||
| 47 | #define __NR_setgid 4046 | ||
| 48 | #define __NR_getgid 4047 | ||
| 49 | #define __NR_signal 4048 | ||
| 50 | #define __NR_geteuid 4049 | ||
| 51 | #define __NR_getegid 4050 | ||
| 52 | #define __NR_acct 4051 | ||
| 53 | #define __NR_umount2 4052 | ||
| 54 | #define __NR_lock 4053 | ||
| 55 | #define __NR_ioctl 4054 | ||
| 56 | #define __NR_fcntl 4055 | ||
| 57 | #define __NR_mpx 4056 | ||
| 58 | #define __NR_setpgid 4057 | ||
| 59 | #define __NR_ulimit 4058 | ||
| 60 | #define __NR_unused59 4059 | ||
| 61 | #define __NR_umask 4060 | ||
| 62 | #define __NR_chroot 4061 | ||
| 63 | #define __NR_ustat 4062 | ||
| 64 | #define __NR_dup2 4063 | ||
| 65 | #define __NR_getppid 4064 | ||
| 66 | #define __NR_getpgrp 4065 | ||
| 67 | #define __NR_setsid 4066 | ||
| 68 | #define __NR_sigaction 4067 | ||
| 69 | #define __NR_sgetmask 4068 | ||
| 70 | #define __NR_ssetmask 4069 | ||
| 71 | #define __NR_setreuid 4070 | ||
| 72 | #define __NR_setregid 4071 | ||
| 73 | #define __NR_sigsuspend 4072 | ||
| 74 | #define __NR_sigpending 4073 | ||
| 75 | #define __NR_sethostname 4074 | ||
| 76 | #define __NR_setrlimit 4075 | ||
| 77 | #define __NR_getrlimit 4076 | ||
| 78 | #define __NR_getrusage 4077 | ||
| 79 | #define __NR_gettimeofday_time32 4078 | ||
| 80 | #define __NR_settimeofday_time32 4079 | ||
| 81 | #define __NR_getgroups 4080 | ||
| 82 | #define __NR_setgroups 4081 | ||
| 83 | #define __NR_reserved82 4082 | ||
| 84 | #define __NR_symlink 4083 | ||
| 85 | #define __NR_unused84 4084 | ||
| 86 | #define __NR_readlink 4085 | ||
| 87 | #define __NR_uselib 4086 | ||
| 88 | #define __NR_swapon 4087 | ||
| 89 | #define __NR_reboot 4088 | ||
| 90 | #define __NR_readdir 4089 | ||
| 91 | #define __NR_mmap 4090 | ||
| 92 | #define __NR_munmap 4091 | ||
| 93 | #define __NR_truncate 4092 | ||
| 94 | #define __NR_ftruncate 4093 | ||
| 95 | #define __NR_fchmod 4094 | ||
| 96 | #define __NR_fchown 4095 | ||
| 97 | #define __NR_getpriority 4096 | ||
| 98 | #define __NR_setpriority 4097 | ||
| 99 | #define __NR_profil 4098 | ||
| 100 | #define __NR_statfs 4099 | ||
| 101 | #define __NR_fstatfs 4100 | ||
| 102 | #define __NR_ioperm 4101 | ||
| 103 | #define __NR_socketcall 4102 | ||
| 104 | #define __NR_syslog 4103 | ||
| 105 | #define __NR_setitimer 4104 | ||
| 106 | #define __NR_getitimer 4105 | ||
| 107 | #define __NR_stat 4106 | ||
| 108 | #define __NR_lstat 4107 | ||
| 109 | #define __NR_fstat 4108 | ||
| 110 | #define __NR_unused109 4109 | ||
| 111 | #define __NR_iopl 4110 | ||
| 112 | #define __NR_vhangup 4111 | ||
| 113 | #define __NR_idle 4112 | ||
| 114 | #define __NR_vm86 4113 | ||
| 115 | #define __NR_wait4 4114 | ||
| 116 | #define __NR_swapoff 4115 | ||
| 117 | #define __NR_sysinfo 4116 | ||
| 118 | #define __NR_ipc 4117 | ||
| 119 | #define __NR_fsync 4118 | ||
| 120 | #define __NR_sigreturn 4119 | ||
| 121 | #define __NR_clone 4120 | ||
| 122 | #define __NR_setdomainname 4121 | ||
| 123 | #define __NR_uname 4122 | ||
| 124 | #define __NR_modify_ldt 4123 | ||
| 125 | #define __NR_adjtimex 4124 | ||
| 126 | #define __NR_mprotect 4125 | ||
| 127 | #define __NR_sigprocmask 4126 | ||
| 128 | #define __NR_create_module 4127 | ||
| 129 | #define __NR_init_module 4128 | ||
| 130 | #define __NR_delete_module 4129 | ||
| 131 | #define __NR_get_kernel_syms 4130 | ||
| 132 | #define __NR_quotactl 4131 | ||
| 133 | #define __NR_getpgid 4132 | ||
| 134 | #define __NR_fchdir 4133 | ||
| 135 | #define __NR_bdflush 4134 | ||
| 136 | #define __NR_sysfs 4135 | ||
| 137 | #define __NR_personality 4136 | ||
| 138 | #define __NR_afs_syscall 4137 | ||
| 139 | #define __NR_setfsuid 4138 | ||
| 140 | #define __NR_setfsgid 4139 | ||
| 141 | #define __NR__llseek 4140 | ||
| 142 | #define __NR_getdents 4141 | ||
| 143 | #define __NR__newselect 4142 | ||
| 144 | #define __NR_flock 4143 | ||
| 145 | #define __NR_msync 4144 | ||
| 146 | #define __NR_readv 4145 | ||
| 147 | #define __NR_writev 4146 | ||
| 148 | #define __NR_cacheflush 4147 | ||
| 149 | #define __NR_cachectl 4148 | ||
| 150 | #define __NR_sysmips 4149 | ||
| 151 | #define __NR_unused150 4150 | ||
| 152 | #define __NR_getsid 4151 | ||
| 153 | #define __NR_fdatasync 4152 | ||
| 154 | #define __NR__sysctl 4153 | ||
| 155 | #define __NR_mlock 4154 | ||
| 156 | #define __NR_munlock 4155 | ||
| 157 | #define __NR_mlockall 4156 | ||
| 158 | #define __NR_munlockall 4157 | ||
| 159 | #define __NR_sched_setparam 4158 | ||
| 160 | #define __NR_sched_getparam 4159 | ||
| 161 | #define __NR_sched_setscheduler 4160 | ||
| 162 | #define __NR_sched_getscheduler 4161 | ||
| 163 | #define __NR_sched_yield 4162 | ||
| 164 | #define __NR_sched_get_priority_max 4163 | ||
| 165 | #define __NR_sched_get_priority_min 4164 | ||
| 166 | #define __NR_sched_rr_get_interval 4165 | ||
| 167 | #define __NR_nanosleep 4166 | ||
| 168 | #define __NR_mremap 4167 | ||
| 169 | #define __NR_accept 4168 | ||
| 170 | #define __NR_bind 4169 | ||
| 171 | #define __NR_connect 4170 | ||
| 172 | #define __NR_getpeername 4171 | ||
| 173 | #define __NR_getsockname 4172 | ||
| 174 | #define __NR_getsockopt 4173 | ||
| 175 | #define __NR_listen 4174 | ||
| 176 | #define __NR_recv 4175 | ||
| 177 | #define __NR_recvfrom 4176 | ||
| 178 | #define __NR_recvmsg 4177 | ||
| 179 | #define __NR_send 4178 | ||
| 180 | #define __NR_sendmsg 4179 | ||
| 181 | #define __NR_sendto 4180 | ||
| 182 | #define __NR_setsockopt 4181 | ||
| 183 | #define __NR_shutdown 4182 | ||
| 184 | #define __NR_socket 4183 | ||
| 185 | #define __NR_socketpair 4184 | ||
| 186 | #define __NR_setresuid 4185 | ||
| 187 | #define __NR_getresuid 4186 | ||
| 188 | #define __NR_query_module 4187 | ||
| 189 | #define __NR_poll 4188 | ||
| 190 | #define __NR_nfsservctl 4189 | ||
| 191 | #define __NR_setresgid 4190 | ||
| 192 | #define __NR_getresgid 4191 | ||
| 193 | #define __NR_prctl 4192 | ||
| 194 | #define __NR_rt_sigreturn 4193 | ||
| 195 | #define __NR_rt_sigaction 4194 | ||
| 196 | #define __NR_rt_sigprocmask 4195 | ||
| 197 | #define __NR_rt_sigpending 4196 | ||
| 198 | #define __NR_rt_sigtimedwait 4197 | ||
| 199 | #define __NR_rt_sigqueueinfo 4198 | ||
| 200 | #define __NR_rt_sigsuspend 4199 | ||
| 201 | #define __NR_pread64 4200 | ||
| 202 | #define __NR_pwrite64 4201 | ||
| 203 | #define __NR_chown 4202 | ||
| 204 | #define __NR_getcwd 4203 | ||
| 205 | #define __NR_capget 4204 | ||
| 206 | #define __NR_capset 4205 | ||
| 207 | #define __NR_sigaltstack 4206 | ||
| 208 | #define __NR_sendfile 4207 | ||
| 209 | #define __NR_getpmsg 4208 | ||
| 210 | #define __NR_putpmsg 4209 | ||
| 211 | #define __NR_mmap2 4210 | ||
| 212 | #define __NR_truncate64 4211 | ||
| 213 | #define __NR_ftruncate64 4212 | ||
| 214 | #define __NR_stat64 4213 | ||
| 215 | #define __NR_lstat64 4214 | ||
| 216 | #define __NR_fstat64 4215 | ||
| 217 | #define __NR_pivot_root 4216 | ||
| 218 | #define __NR_mincore 4217 | ||
| 219 | #define __NR_madvise 4218 | ||
| 220 | #define __NR_getdents64 4219 | ||
| 221 | #define __NR_fcntl64 4220 | ||
| 222 | #define __NR_reserved221 4221 | ||
| 223 | #define __NR_gettid 4222 | ||
| 224 | #define __NR_readahead 4223 | ||
| 225 | #define __NR_setxattr 4224 | ||
| 226 | #define __NR_lsetxattr 4225 | ||
| 227 | #define __NR_fsetxattr 4226 | ||
| 228 | #define __NR_getxattr 4227 | ||
| 229 | #define __NR_lgetxattr 4228 | ||
| 230 | #define __NR_fgetxattr 4229 | ||
| 231 | #define __NR_listxattr 4230 | ||
| 232 | #define __NR_llistxattr 4231 | ||
| 233 | #define __NR_flistxattr 4232 | ||
| 234 | #define __NR_removexattr 4233 | ||
| 235 | #define __NR_lremovexattr 4234 | ||
| 236 | #define __NR_fremovexattr 4235 | ||
| 237 | #define __NR_tkill 4236 | ||
| 238 | #define __NR_sendfile64 4237 | ||
| 239 | #define __NR_futex 4238 | ||
| 240 | #define __NR_sched_setaffinity 4239 | ||
| 241 | #define __NR_sched_getaffinity 4240 | ||
| 242 | #define __NR_io_setup 4241 | ||
| 243 | #define __NR_io_destroy 4242 | ||
| 244 | #define __NR_io_getevents 4243 | ||
| 245 | #define __NR_io_submit 4244 | ||
| 246 | #define __NR_io_cancel 4245 | ||
| 247 | #define __NR_exit_group 4246 | ||
| 248 | #define __NR_lookup_dcookie 4247 | ||
| 249 | #define __NR_epoll_create 4248 | ||
| 250 | #define __NR_epoll_ctl 4249 | ||
| 251 | #define __NR_epoll_wait 4250 | ||
| 252 | #define __NR_remap_file_pages 4251 | ||
| 253 | #define __NR_set_tid_address 4252 | ||
| 254 | #define __NR_restart_syscall 4253 | ||
| 255 | #define __NR_fadvise64 4254 | ||
| 256 | #define __NR_statfs64 4255 | ||
| 257 | #define __NR_fstatfs64 4256 | ||
| 258 | #define __NR_timer_create 4257 | ||
| 259 | #define __NR_timer_settime32 4258 | ||
| 260 | #define __NR_timer_gettime32 4259 | ||
| 261 | #define __NR_timer_getoverrun 4260 | ||
| 262 | #define __NR_timer_delete 4261 | ||
| 263 | #define __NR_clock_settime32 4262 | ||
| 264 | #define __NR_clock_gettime32 4263 | ||
| 265 | #define __NR_clock_getres_time32 4264 | ||
| 266 | #define __NR_clock_nanosleep_time32 4265 | ||
| 267 | #define __NR_tgkill 4266 | ||
| 268 | #define __NR_utimes 4267 | ||
| 269 | #define __NR_mbind 4268 | ||
| 270 | #define __NR_get_mempolicy 4269 | ||
| 271 | #define __NR_set_mempolicy 4270 | ||
| 272 | #define __NR_mq_open 4271 | ||
| 273 | #define __NR_mq_unlink 4272 | ||
| 274 | #define __NR_mq_timedsend 4273 | ||
| 275 | #define __NR_mq_timedreceive 4274 | ||
| 276 | #define __NR_mq_notify 4275 | ||
| 277 | #define __NR_mq_getsetattr 4276 | ||
| 278 | #define __NR_vserver 4277 | ||
| 279 | #define __NR_waitid 4278 | ||
| 280 | #define __NR_add_key 4280 | ||
| 281 | #define __NR_request_key 4281 | ||
| 282 | #define __NR_keyctl 4282 | ||
| 283 | #define __NR_set_thread_area 4283 | ||
| 284 | #define __NR_inotify_init 4284 | ||
| 285 | #define __NR_inotify_add_watch 4285 | ||
| 286 | #define __NR_inotify_rm_watch 4286 | ||
| 287 | #define __NR_migrate_pages 4287 | ||
| 288 | #define __NR_openat 4288 | ||
| 289 | #define __NR_mkdirat 4289 | ||
| 290 | #define __NR_mknodat 4290 | ||
| 291 | #define __NR_fchownat 4291 | ||
| 292 | #define __NR_futimesat 4292 | ||
| 293 | #define __NR_fstatat64 4293 | ||
| 294 | #define __NR_unlinkat 4294 | ||
| 295 | #define __NR_renameat 4295 | ||
| 296 | #define __NR_linkat 4296 | ||
| 297 | #define __NR_symlinkat 4297 | ||
| 298 | #define __NR_readlinkat 4298 | ||
| 299 | #define __NR_fchmodat 4299 | ||
| 300 | #define __NR_faccessat 4300 | ||
| 301 | #define __NR_pselect6 4301 | ||
| 302 | #define __NR_ppoll 4302 | ||
| 303 | #define __NR_unshare 4303 | ||
| 304 | #define __NR_splice 4304 | ||
| 305 | #define __NR_sync_file_range 4305 | ||
| 306 | #define __NR_tee 4306 | ||
| 307 | #define __NR_vmsplice 4307 | ||
| 308 | #define __NR_move_pages 4308 | ||
| 309 | #define __NR_set_robust_list 4309 | ||
| 310 | #define __NR_get_robust_list 4310 | ||
| 311 | #define __NR_kexec_load 4311 | ||
| 312 | #define __NR_getcpu 4312 | ||
| 313 | #define __NR_epoll_pwait 4313 | ||
| 314 | #define __NR_ioprio_set 4314 | ||
| 315 | #define __NR_ioprio_get 4315 | ||
| 316 | #define __NR_utimensat 4316 | ||
| 317 | #define __NR_signalfd 4317 | ||
| 318 | #define __NR_timerfd 4318 | ||
| 319 | #define __NR_eventfd 4319 | ||
| 320 | #define __NR_fallocate 4320 | ||
| 321 | #define __NR_timerfd_create 4321 | ||
| 322 | #define __NR_timerfd_gettime32 4322 | ||
| 323 | #define __NR_timerfd_settime32 4323 | ||
| 324 | #define __NR_signalfd4 4324 | ||
| 325 | #define __NR_eventfd2 4325 | ||
| 326 | #define __NR_epoll_create1 4326 | ||
| 327 | #define __NR_dup3 4327 | ||
| 328 | #define __NR_pipe2 4328 | ||
| 329 | #define __NR_inotify_init1 4329 | ||
| 330 | #define __NR_preadv 4330 | ||
| 331 | #define __NR_pwritev 4331 | ||
| 332 | #define __NR_rt_tgsigqueueinfo 4332 | ||
| 333 | #define __NR_perf_event_open 4333 | ||
| 334 | #define __NR_accept4 4334 | ||
| 335 | #define __NR_recvmmsg 4335 | ||
| 336 | #define __NR_fanotify_init 4336 | ||
| 337 | #define __NR_fanotify_mark 4337 | ||
| 338 | #define __NR_prlimit64 4338 | ||
| 339 | #define __NR_name_to_handle_at 4339 | ||
| 340 | #define __NR_open_by_handle_at 4340 | ||
| 341 | #define __NR_clock_adjtime 4341 | ||
| 342 | #define __NR_syncfs 4342 | ||
| 343 | #define __NR_sendmmsg 4343 | ||
| 344 | #define __NR_setns 4344 | ||
| 345 | #define __NR_process_vm_readv 4345 | ||
| 346 | #define __NR_process_vm_writev 4346 | ||
| 347 | #define __NR_kcmp 4347 | ||
| 348 | #define __NR_finit_module 4348 | ||
| 349 | #define __NR_sched_setattr 4349 | ||
| 350 | #define __NR_sched_getattr 4350 | ||
| 351 | #define __NR_renameat2 4351 | ||
| 352 | #define __NR_seccomp 4352 | ||
| 353 | #define __NR_getrandom 4353 | ||
| 354 | #define __NR_memfd_create 4354 | ||
| 355 | #define __NR_bpf 4355 | ||
| 356 | #define __NR_execveat 4356 | ||
| 357 | #define __NR_userfaultfd 4357 | ||
| 358 | #define __NR_membarrier 4358 | ||
| 359 | #define __NR_mlock2 4359 | ||
| 360 | #define __NR_copy_file_range 4360 | ||
| 361 | #define __NR_preadv2 4361 | ||
| 362 | #define __NR_pwritev2 4362 | ||
| 363 | #define __NR_pkey_mprotect 4363 | ||
| 364 | #define __NR_pkey_alloc 4364 | ||
| 365 | #define __NR_pkey_free 4365 | ||
| 366 | #define __NR_statx 4366 | ||
| 367 | #define __NR_rseq 4367 | ||
| 368 | #define __NR_io_pgetevents 4368 | ||
| 369 | #define __NR_semget 4393 | ||
| 370 | #define __NR_semctl 4394 | ||
| 371 | #define __NR_shmget 4395 | ||
| 372 | #define __NR_shmctl 4396 | ||
| 373 | #define __NR_shmat 4397 | ||
| 374 | #define __NR_shmdt 4398 | ||
| 375 | #define __NR_msgget 4399 | ||
| 376 | #define __NR_msgsnd 4400 | ||
| 377 | #define __NR_msgrcv 4401 | ||
| 378 | #define __NR_msgctl 4402 | ||
| 379 | #define __NR_clock_gettime64 4403 | ||
| 380 | #define __NR_clock_settime64 4404 | ||
| 381 | #define __NR_clock_adjtime64 4405 | ||
| 382 | #define __NR_clock_getres_time64 4406 | ||
| 383 | #define __NR_clock_nanosleep_time64 4407 | ||
| 384 | #define __NR_timer_gettime64 4408 | ||
| 385 | #define __NR_timer_settime64 4409 | ||
| 386 | #define __NR_timerfd_gettime64 4410 | ||
| 387 | #define __NR_timerfd_settime64 4411 | ||
| 388 | #define __NR_utimensat_time64 4412 | ||
| 389 | #define __NR_pselect6_time64 4413 | ||
| 390 | #define __NR_ppoll_time64 4414 | ||
| 391 | #define __NR_io_pgetevents_time64 4416 | ||
| 392 | #define __NR_recvmmsg_time64 4417 | ||
| 393 | #define __NR_mq_timedsend_time64 4418 | ||
| 394 | #define __NR_mq_timedreceive_time64 4419 | ||
| 395 | #define __NR_semtimedop_time64 4420 | ||
| 396 | #define __NR_rt_sigtimedwait_time64 4421 | ||
| 397 | #define __NR_futex_time64 4422 | ||
| 398 | #define __NR_sched_rr_get_interval_time64 4423 | ||
| 399 | #define __NR_pidfd_send_signal 4424 | ||
| 400 | #define __NR_io_uring_setup 4425 | ||
| 401 | #define __NR_io_uring_enter 4426 | ||
| 402 | #define __NR_io_uring_register 4427 | ||
| 403 | #define __NR_open_tree		4428 | ||
| 404 | #define __NR_move_mount		4429 | ||
| 405 | #define __NR_fsopen		4430 | ||
| 406 | #define __NR_fsconfig		4431 | ||
| 407 | #define __NR_fsmount		4432 | ||
| 408 | #define __NR_fspick		4433 | ||
| 409 | #define __NR_pidfd_open		4434 | ||
| 410 | #define __NR_clone3		4435 | ||
| 411 | #define __NR_close_range	4436 | ||
| 412 | #define __NR_openat2		4437 | ||
| 413 | #define __NR_pidfd_getfd	4438 | ||
| 414 | #define __NR_faccessat2		4439 | ||
| 415 | #define __NR_process_madvise	4440 | ||
| 416 | #define __NR_epoll_pwait2	4441 | ||
| 417 | #define __NR_mount_setattr	4442 | ||
| 418 | #define __NR_landlock_create_ruleset	4444 | ||
| 419 | #define __NR_landlock_add_rule	4445 | ||
| 420 | #define __NR_landlock_restrict_self	4446 | ||
| 421 | #define __NR_process_mrelease	4448 | ||
| 422 | #define __NR_futex_waitv	4449 | ||
| 423 | #define __NR_set_mempolicy_home_node	4450 | ||
| 424 | #define __NR_cachestat		4451 | ||
| 425 | #define __NR_fchmodat2		4452 | ||
| 426 | |||
lib/libc/musl/arch/mips64/bits/alltypes.h.in deleted-22| ... | @@ -1,22 +0,0 @@ | ||
| 1 | #define _Addr long | ||
| 2 | #define _Int64 long | ||
| 3 | #define _Reg long | ||
| 4 | |||
| 5 | #if _MIPSEL || __MIPSEL || __MIPSEL__ | ||
| 6 | #define __BYTE_ORDER 1234 | ||
| 7 | #else | ||
| 8 | #define __BYTE_ORDER 4321 | ||
| 9 | #endif | ||
| 10 | |||
| 11 | #define __LONG_MAX 0x7fffffffffffffffL | ||
| 12 | |||
| 13 | #ifndef __cplusplus | ||
| 14 | TYPEDEF int wchar_t; | ||
| 15 | #endif | ||
| 16 | |||
| 17 | TYPEDEF float float_t; | ||
| 18 | TYPEDEF double double_t; | ||
| 19 | |||
| 20 | TYPEDEF struct { long long __ll; long double __ld; } max_align_t; | ||
| 21 | |||
| 22 | TYPEDEF unsigned nlink_t; | ||
lib/libc/musl/arch/mips64/bits/syscall.h.in deleted-356| ... | @@ -1,356 +0,0 @@ | ||
| 1 | #define __NR_read			5000 | ||
| 2 | #define __NR_write			5001 | ||
| 3 | #define __NR_open			5002 | ||
| 4 | #define __NR_close			5003 | ||
| 5 | #define __NR_stat			5004 | ||
| 6 | #define __NR_fstat			5005 | ||
| 7 | #define __NR_lstat			5006 | ||
| 8 | #define __NR_poll			5007 | ||
| 9 | #define __NR_lseek			5008 | ||
| 10 | #define __NR_mmap			5009 | ||
| 11 | #define __NR_mprotect			5010 | ||
| 12 | #define __NR_munmap			5011 | ||
| 13 | #define __NR_brk			5012 | ||
| 14 | #define __NR_rt_sigaction		5013 | ||
| 15 | #define __NR_rt_sigprocmask		5014 | ||
| 16 | #define __NR_ioctl			5015 | ||
| 17 | #define __NR_pread64			5016 | ||
| 18 | #define __NR_pwrite64			5017 | ||
| 19 | #define __NR_readv			5018 | ||
| 20 | #define __NR_writev			5019 | ||
| 21 | #define __NR_access			5020 | ||
| 22 | #define __NR_pipe			5021 | ||
| 23 | #define __NR__newselect			5022 | ||
| 24 | #define __NR_sched_yield		5023 | ||
| 25 | #define __NR_mremap			5024 | ||
| 26 | #define __NR_msync			5025 | ||
| 27 | #define __NR_mincore			5026 | ||
| 28 | #define __NR_madvise			5027 | ||
| 29 | #define __NR_shmget			5028 | ||
| 30 | #define __NR_shmat			5029 | ||
| 31 | #define __NR_shmctl			5030 | ||
| 32 | #define __NR_dup			5031 | ||
| 33 | #define __NR_dup2			5032 | ||
| 34 | #define __NR_pause			5033 | ||
| 35 | #define __NR_nanosleep			5034 | ||
| 36 | #define __NR_getitimer			5035 | ||
| 37 | #define __NR_setitimer			5036 | ||
| 38 | #define __NR_alarm			5037 | ||
| 39 | #define __NR_getpid			5038 | ||
| 40 | #define __NR_sendfile			5039 | ||
| 41 | #define __NR_socket			5040 | ||
| 42 | #define __NR_connect			5041 | ||
| 43 | #define __NR_accept			5042 | ||
| 44 | #define __NR_sendto			5043 | ||
| 45 | #define __NR_recvfrom			5044 | ||
| 46 | #define __NR_sendmsg			5045 | ||
| 47 | #define __NR_recvmsg			5046 | ||
| 48 | #define __NR_shutdown			5047 | ||
| 49 | #define __NR_bind			5048 | ||
| 50 | #define __NR_listen			5049 | ||
| 51 | #define __NR_getsockname		5050 | ||
| 52 | #define __NR_getpeername		5051 | ||
| 53 | #define __NR_socketpair			5052 | ||
| 54 | #define __NR_setsockopt			5053 | ||
| 55 | #define __NR_getsockopt			5054 | ||
| 56 | #define __NR_clone			5055 | ||
| 57 | #define __NR_fork			5056 | ||
| 58 | #define __NR_execve			5057 | ||
| 59 | #define __NR_exit			5058 | ||
| 60 | #define __NR_wait4			5059 | ||
| 61 | #define __NR_kill			5060 | ||
| 62 | #define __NR_uname			5061 | ||
| 63 | #define __NR_semget			5062 | ||
| 64 | #define __NR_semop			5063 | ||
| 65 | #define __NR_semctl			5064 | ||
| 66 | #define __NR_shmdt			5065 | ||
| 67 | #define __NR_msgget			5066 | ||
| 68 | #define __NR_msgsnd			5067 | ||
| 69 | #define __NR_msgrcv			5068 | ||
| 70 | #define __NR_msgctl			5069 | ||
| 71 | #define __NR_fcntl			5070 | ||
| 72 | #define __NR_flock			5071 | ||
| 73 | #define __NR_fsync			5072 | ||
| 74 | #define __NR_fdatasync			5073 | ||
| 75 | #define __NR_truncate			5074 | ||
| 76 | #define __NR_ftruncate			5075 | ||
| 77 | #define __NR_getdents			5076 | ||
| 78 | #define __NR_getcwd			5077 | ||
| 79 | #define __NR_chdir			5078 | ||
| 80 | #define __NR_fchdir			5079 | ||
| 81 | #define __NR_rename			5080 | ||
| 82 | #define __NR_mkdir			5081 | ||
| 83 | #define __NR_rmdir			5082 | ||
| 84 | #define __NR_creat			5083 | ||
| 85 | #define __NR_link			5084 | ||
| 86 | #define __NR_unlink			5085 | ||
| 87 | #define __NR_symlink			5086 | ||
| 88 | #define __NR_readlink			5087 | ||
| 89 | #define __NR_chmod			5088 | ||
| 90 | #define __NR_fchmod			5089 | ||
| 91 | #define __NR_chown			5090 | ||
| 92 | #define __NR_fchown			5091 | ||
| 93 | #define __NR_lchown			5092 | ||
| 94 | #define __NR_umask			5093 | ||
| 95 | #define __NR_gettimeofday		5094 | ||
| 96 | #define __NR_getrlimit			5095 | ||
| 97 | #define __NR_getrusage			5096 | ||
| 98 | #define __NR_sysinfo			5097 | ||
| 99 | #define __NR_times			5098 | ||
| 100 | #define __NR_ptrace			5099 | ||
| 101 | #define __NR_getuid			5100 | ||
| 102 | #define __NR_syslog			5101 | ||
| 103 | #define __NR_getgid			5102 | ||
| 104 | #define __NR_setuid			5103 | ||
| 105 | #define __NR_setgid			5104 | ||
| 106 | #define __NR_geteuid			5105 | ||
| 107 | #define __NR_getegid			5106 | ||
| 108 | #define __NR_setpgid			5107 | ||
| 109 | #define __NR_getppid			5108 | ||
| 110 | #define __NR_getpgrp			5109 | ||
| 111 | #define __NR_setsid			5110 | ||
| 112 | #define __NR_setreuid			5111 | ||
| 113 | #define __NR_setregid			5112 | ||
| 114 | #define __NR_getgroups			5113 | ||
| 115 | #define __NR_setgroups			5114 | ||
| 116 | #define __NR_setresuid			5115 | ||
| 117 | #define __NR_getresuid			5116 | ||
| 118 | #define __NR_setresgid			5117 | ||
| 119 | #define __NR_getresgid			5118 | ||
| 120 | #define __NR_getpgid			5119 | ||
| 121 | #define __NR_setfsuid			5120 | ||
| 122 | #define __NR_setfsgid			5121 | ||
| 123 | #define __NR_getsid			5122 | ||
| 124 | #define __NR_capget			5123 | ||
| 125 | #define __NR_capset			5124 | ||
| 126 | #define __NR_rt_sigpending		5125 | ||
| 127 | #define __NR_rt_sigtimedwait		5126 | ||
| 128 | #define __NR_rt_sigqueueinfo		5127 | ||
| 129 | #define __NR_rt_sigsuspend		5128 | ||
| 130 | #define __NR_sigaltstack		5129 | ||
| 131 | #define __NR_utime			5130 | ||
| 132 | #define __NR_mknod			5131 | ||
| 133 | #define __NR_personality		5132 | ||
| 134 | #define __NR_ustat			5133 | ||
| 135 | #define __NR_statfs			5134 | ||
| 136 | #define __NR_fstatfs			5135 | ||
| 137 | #define __NR_sysfs			5136 | ||
| 138 | #define __NR_getpriority		5137 | ||
| 139 | #define __NR_setpriority		5138 | ||
| 140 | #define __NR_sched_setparam		5139 | ||
| 141 | #define __NR_sched_getparam		5140 | ||
| 142 | #define __NR_sched_setscheduler		5141 | ||
| 143 | #define __NR_sched_getscheduler		5142 | ||
| 144 | #define __NR_sched_get_priority_max	5143 | ||
| 145 | #define __NR_sched_get_priority_min	5144 | ||
| 146 | #define __NR_sched_rr_get_interval	5145 | ||
| 147 | #define __NR_mlock			5146 | ||
| 148 | #define __NR_munlock			5147 | ||
| 149 | #define __NR_mlockall			5148 | ||
| 150 | #define __NR_munlockall			5149 | ||
| 151 | #define __NR_vhangup			5150 | ||
| 152 | #define __NR_pivot_root			5151 | ||
| 153 | #define __NR__sysctl			5152 | ||
| 154 | #define __NR_prctl			5153 | ||
| 155 | #define __NR_adjtimex			5154 | ||
| 156 | #define __NR_setrlimit			5155 | ||
| 157 | #define __NR_chroot			5156 | ||
| 158 | #define __NR_sync			5157 | ||
| 159 | #define __NR_acct			5158 | ||
| 160 | #define __NR_settimeofday		5159 | ||
| 161 | #define __NR_mount			5160 | ||
| 162 | #define __NR_umount2			5161 | ||
| 163 | #define __NR_swapon			5162 | ||
| 164 | #define __NR_swapoff			5163 | ||
| 165 | #define __NR_reboot			5164 | ||
| 166 | #define __NR_sethostname		5165 | ||
| 167 | #define __NR_setdomainname		5166 | ||
| 168 | #define __NR_create_module		5167 | ||
| 169 | #define __NR_init_module		5168 | ||
| 170 | #define __NR_delete_module		5169 | ||
| 171 | #define __NR_get_kernel_syms		5170 | ||
| 172 | #define __NR_query_module		5171 | ||
| 173 | #define __NR_quotactl			5172 | ||
| 174 | #define __NR_nfsservctl			5173 | ||
| 175 | #define __NR_getpmsg			5174 | ||
| 176 | #define __NR_putpmsg			5175 | ||
| 177 | #define __NR_afs_syscall		5176 | ||
| 178 | #define __NR_reserved177		5177 | ||
| 179 | #define __NR_gettid			5178 | ||
| 180 | #define __NR_readahead			5179 | ||
| 181 | #define __NR_setxattr			5180 | ||
| 182 | #define __NR_lsetxattr			5181 | ||
| 183 | #define __NR_fsetxattr			5182 | ||
| 184 | #define __NR_getxattr			5183 | ||
| 185 | #define __NR_lgetxattr			5184 | ||
| 186 | #define __NR_fgetxattr			5185 | ||
| 187 | #define __NR_listxattr			5186 | ||
| 188 | #define __NR_llistxattr			5187 | ||
| 189 | #define __NR_flistxattr			5188 | ||
| 190 | #define __NR_removexattr		5189 | ||
| 191 | #define __NR_lremovexattr		5190 | ||
| 192 | #define __NR_fremovexattr		5191 | ||
| 193 | #define __NR_tkill			5192 | ||
| 194 | #define __NR_reserved193		5193 | ||
| 195 | #define __NR_futex			5194 | ||
| 196 | #define __NR_sched_setaffinity		5195 | ||
| 197 | #define __NR_sched_getaffinity		5196 | ||
| 198 | #define __NR_cacheflush			5197 | ||
| 199 | #define __NR_cachectl			5198 | ||
| 200 | #define __NR_sysmips			5199 | ||
| 201 | #define __NR_io_setup			5200 | ||
| 202 | #define __NR_io_destroy			5201 | ||
| 203 | #define __NR_io_getevents		5202 | ||
| 204 | #define __NR_io_submit			5203 | ||
| 205 | #define __NR_io_cancel			5204 | ||
| 206 | #define __NR_exit_group			5205 | ||
| 207 | #define __NR_lookup_dcookie		5206 | ||
| 208 | #define __NR_epoll_create		5207 | ||
| 209 | #define __NR_epoll_ctl			5208 | ||
| 210 | #define __NR_epoll_wait			5209 | ||
| 211 | #define __NR_remap_file_pages		5210 | ||
| 212 | #define __NR_rt_sigreturn		5211 | ||
| 213 | #define __NR_set_tid_address		5212 | ||
| 214 | #define __NR_restart_syscall		5213 | ||
| 215 | #define __NR_semtimedop			5214 | ||
| 216 | #define __NR_fadvise64			5215 | ||
| 217 | #define __NR_timer_create		5216 | ||
| 218 | #define __NR_timer_settime		5217 | ||
| 219 | #define __NR_timer_gettime		5218 | ||
| 220 | #define __NR_timer_getoverrun		5219 | ||
| 221 | #define __NR_timer_delete		5220 | ||
| 222 | #define __NR_clock_settime		5221 | ||
| 223 | #define __NR_clock_gettime		5222 | ||
| 224 | #define __NR_clock_getres		5223 | ||
| 225 | #define __NR_clock_nanosleep		5224 | ||
| 226 | #define __NR_tgkill			5225 | ||
| 227 | #define __NR_utimes			5226 | ||
| 228 | #define __NR_mbind			5227 | ||
| 229 | #define __NR_get_mempolicy		5228 | ||
| 230 | #define __NR_set_mempolicy		5229 | ||
| 231 | #define __NR_mq_open			5230 | ||
| 232 | #define __NR_mq_unlink			5231 | ||
| 233 | #define __NR_mq_timedsend		5232 | ||
| 234 | #define __NR_mq_timedreceive		5233 | ||
| 235 | #define __NR_mq_notify			5234 | ||
| 236 | #define __NR_mq_getsetattr		5235 | ||
| 237 | #define __NR_vserver			5236 | ||
| 238 | #define __NR_waitid			5237 | ||
| 239 | #define __NR_add_key			5239 | ||
| 240 | #define __NR_request_key		5240 | ||
| 241 | #define __NR_keyctl			5241 | ||
| 242 | #define __NR_set_thread_area		5242 | ||
| 243 | #define __NR_inotify_init		5243 | ||
| 244 | #define __NR_inotify_add_watch		5244 | ||
| 245 | #define __NR_inotify_rm_watch		5245 | ||
| 246 | #define __NR_migrate_pages		5246 | ||
| 247 | #define __NR_openat			5247 | ||
| 248 | #define __NR_mkdirat			5248 | ||
| 249 | #define __NR_mknodat			5249 | ||
| 250 | #define __NR_fchownat			5250 | ||
| 251 | #define __NR_futimesat			5251 | ||
| 252 | #define __NR_newfstatat			5252 | ||
| 253 | #define __NR_unlinkat			5253 | ||
| 254 | #define __NR_renameat			5254 | ||
| 255 | #define __NR_linkat			5255 | ||
| 256 | #define __NR_symlinkat			5256 | ||
| 257 | #define __NR_readlinkat			5257 | ||
| 258 | #define __NR_fchmodat			5258 | ||
| 259 | #define __NR_faccessat			5259 | ||
| 260 | #define __NR_pselect6			5260 | ||
| 261 | #define __NR_ppoll			5261 | ||
| 262 | #define __NR_unshare			5262 | ||
| 263 | #define __NR_splice			5263 | ||
| 264 | #define __NR_sync_file_range		5264 | ||
| 265 | #define __NR_tee			5265 | ||
| 266 | #define __NR_vmsplice			5266 | ||
| 267 | #define __NR_move_pages			5267 | ||
| 268 | #define __NR_set_robust_list		5268 | ||
| 269 | #define __NR_get_robust_list		5269 | ||
| 270 | #define __NR_kexec_load			5270 | ||
| 271 | #define __NR_getcpu			5271 | ||
| 272 | #define __NR_epoll_pwait		5272 | ||
| 273 | #define __NR_ioprio_set			5273 | ||
| 274 | #define __NR_ioprio_get			5274 | ||
| 275 | #define __NR_utimensat			5275 | ||
| 276 | #define __NR_signalfd			5276 | ||
| 277 | #define __NR_timerfd			5277 | ||
| 278 | #define __NR_eventfd			5278 | ||
| 279 | #define __NR_fallocate			5279 | ||
| 280 | #define __NR_timerfd_create		5280 | ||
| 281 | #define __NR_timerfd_gettime		5281 | ||
| 282 | #define __NR_timerfd_settime		5282 | ||
| 283 | #define __NR_signalfd4			5283 | ||
| 284 | #define __NR_eventfd2			5284 | ||
| 285 | #define __NR_epoll_create1		5285 | ||
| 286 | #define __NR_dup3			5286 | ||
| 287 | #define __NR_pipe2			5287 | ||
| 288 | #define __NR_inotify_init1		5288 | ||
| 289 | #define __NR_preadv			5289 | ||
| 290 | #define __NR_pwritev			5290 | ||
| 291 | #define __NR_rt_tgsigqueueinfo		5291 | ||
| 292 | #define __NR_perf_event_open		5292 | ||
| 293 | #define __NR_accept4			5293 | ||
| 294 | #define __NR_recvmmsg			5294 | ||
| 295 | #define __NR_fanotify_init		5295 | ||
| 296 | #define __NR_fanotify_mark		5296 | ||
| 297 | #define __NR_prlimit64			5297 | ||
| 298 | #define __NR_name_to_handle_at		5298 | ||
| 299 | #define __NR_open_by_handle_at		5299 | ||
| 300 | #define __NR_clock_adjtime		5300 | ||
| 301 | #define __NR_syncfs			5301 | ||
| 302 | #define __NR_sendmmsg			5302 | ||
| 303 | #define __NR_setns			5303 | ||
| 304 | #define __NR_process_vm_readv		5304 | ||
| 305 | #define __NR_process_vm_writev		5305 | ||
| 306 | #define __NR_kcmp			5306 | ||
| 307 | #define __NR_finit_module		5307 | ||
| 308 | #define __NR_getdents64			5308 | ||
| 309 | #define __NR_sched_setattr		5309 | ||
| 310 | #define __NR_sched_getattr		5310 | ||
| 311 | #define __NR_renameat2			5311 | ||
| 312 | #define __NR_seccomp			5312 | ||
| 313 | #define __NR_getrandom			5313 | ||
| 314 | #define __NR_memfd_create		5314 | ||
| 315 | #define __NR_bpf			5315 | ||
| 316 | #define __NR_execveat			5316 | ||
| 317 | #define __NR_userfaultfd		5317 | ||
| 318 | #define __NR_membarrier			5318 | ||
| 319 | #define __NR_mlock2			5319 | ||
| 320 | #define __NR_copy_file_range		5320 | ||
| 321 | #define __NR_preadv2			5321 | ||
| 322 | #define __NR_pwritev2			5322 | ||
| 323 | #define __NR_pkey_mprotect		5323 | ||
| 324 | #define __NR_pkey_alloc			5324 | ||
| 325 | #define __NR_pkey_free			5325 | ||
| 326 | #define __NR_statx			5326 | ||
| 327 | #define __NR_rseq			5327 | ||
| 328 | #define __NR_io_pgetevents		5328 | ||
| 329 | #define __NR_pidfd_send_signal		5424 | ||
| 330 | #define __NR_io_uring_setup		5425 | ||
| 331 | #define __NR_io_uring_enter		5426 | ||
| 332 | #define __NR_io_uring_register		5427 | ||
| 333 | #define __NR_open_tree		5428 | ||
| 334 | #define __NR_move_mount		5429 | ||
| 335 | #define __NR_fsopen		5430 | ||
| 336 | #define __NR_fsconfig		5431 | ||
| 337 | #define __NR_fsmount		5432 | ||
| 338 | #define __NR_fspick		5433 | ||
| 339 | #define __NR_pidfd_open		5434 | ||
| 340 | #define __NR_clone3		5435 | ||
| 341 | #define __NR_close_range	5436 | ||
| 342 | #define __NR_openat2		5437 | ||
| 343 | #define __NR_pidfd_getfd	5438 | ||
| 344 | #define __NR_faccessat2		5439 | ||
| 345 | #define __NR_process_madvise	5440 | ||
| 346 | #define __NR_epoll_pwait2	5441 | ||
| 347 | #define __NR_mount_setattr	5442 | ||
| 348 | #define __NR_landlock_create_ruleset	5444 | ||
| 349 | #define __NR_landlock_add_rule	5445 | ||
| 350 | #define __NR_landlock_restrict_self	5446 | ||
| 351 | #define __NR_process_mrelease	5448 | ||
| 352 | #define __NR_futex_waitv	5449 | ||
| 353 | #define __NR_set_mempolicy_home_node	5450 | ||
| 354 | #define __NR_cachestat		5451 | ||
| 355 | #define __NR_fchmodat2		5452 | ||
| 356 | |||
lib/libc/musl/arch/mipsn32/atomic_arch.h created+52| ... | @@ -0,0 +1,52 @@ | ||
| 1 | #if __mips_isa_rev < 6 | ||
| 2 | #define LLSC_M "m" | ||
| 3 | #else | ||
| 4 | #define LLSC_M "ZC" | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #define a_ll a_ll | ||
| 8 | static inline int a_ll(volatile int *p) | ||
| 9 | { | ||
| 10 | 	int v; | ||
| 11 | #if __mips < 2 | ||
| 12 | 	__asm__ __volatile__ ( | ||
| 13 | 		".set push ; .set mips2\n\t" | ||
| 14 | 		"ll %0, %1" | ||
| 15 | 		"\n\t.set pop" | ||
| 16 | 		: "=r"(v) : "m"(*p)); | ||
| 17 | #else | ||
| 18 | 	__asm__ __volatile__ ( | ||
| 19 | 		"ll %0, %1" | ||
| 20 | 		: "=r"(v) : LLSC_M(*p)); | ||
| 21 | #endif | ||
| 22 | 	return v; | ||
| 23 | } | ||
| 24 | |||
| 25 | #define a_sc a_sc | ||
| 26 | static inline int a_sc(volatile int *p, int v) | ||
| 27 | { | ||
| 28 | 	int r; | ||
| 29 | #if __mips < 2 | ||
| 30 | 	__asm__ __volatile__ ( | ||
| 31 | 		".set push ; .set mips2\n\t" | ||
| 32 | 		"sc %0, %1" | ||
| 33 | 		"\n\t.set pop" | ||
| 34 | 		: "=r"(r), "=m"(*p) : "0"(v) : "memory"); | ||
| 35 | #else | ||
| 36 | 	__asm__ __volatile__ ( | ||
| 37 | 		"sc %0, %1" | ||
| 38 | 		: "=r"(r), "="LLSC_M(*p) : "0"(v) : "memory"); | ||
| 39 | #endif | ||
| 40 | 	return r; | ||
| 41 | } | ||
| 42 | |||
| 43 | #define a_barrier a_barrier | ||
| 44 | static inline void a_barrier() | ||
| 45 | { | ||
| 46 | 	__asm__ __volatile__ ("sync" : : : "memory"); | ||
| 47 | } | ||
| 48 | |||
| 49 | #define a_pre_llsc a_barrier | ||
| 50 | #define a_post_llsc a_barrier | ||
| 51 | |||
| 52 | #undef LLSC_M | ||
lib/libc/musl/arch/mipsn32/bits/errno.h created+134| ... | @@ -0,0 +1,134 @@ | ||
| 1 | #define EPERM 1 | ||
| 2 | #define ENOENT 2 | ||
| 3 | #define ESRCH 3 | ||
| 4 | #define EINTR 4 | ||
| 5 | #define EIO 5 | ||
| 6 | #define ENXIO 6 | ||
| 7 | #define E2BIG 7 | ||
| 8 | #define ENOEXEC 8 | ||
| 9 | #define EBADF 9 | ||
| 10 | #define ECHILD 10 | ||
| 11 | #define EAGAIN 11 | ||
| 12 | #define ENOMEM 12 | ||
| 13 | #define EACCES 13 | ||
| 14 | #define EFAULT 14 | ||
| 15 | #define ENOTBLK 15 | ||
| 16 | #define EBUSY 16 | ||
| 17 | #define EEXIST 17 | ||
| 18 | #define EXDEV 18 | ||
| 19 | #define ENODEV 19 | ||
| 20 | #define ENOTDIR 20 | ||
| 21 | #define EISDIR 21 | ||
| 22 | #define EINVAL 22 | ||
| 23 | #define ENFILE 23 | ||
| 24 | #define EMFILE 24 | ||
| 25 | #define ENOTTY 25 | ||
| 26 | #define ETXTBSY 26 | ||
| 27 | #define EFBIG 27 | ||
| 28 | #define ENOSPC 28 | ||
| 29 | #define ESPIPE 29 | ||
| 30 | #define EROFS 30 | ||
| 31 | #define EMLINK 31 | ||
| 32 | #define EPIPE 32 | ||
| 33 | #define EDOM 33 | ||
| 34 | #define ERANGE 34 | ||
| 35 | #define ENOMSG 35 | ||
| 36 | #define EIDRM 36 | ||
| 37 | #define ECHRNG 37 | ||
| 38 | #define EL2NSYNC 38 | ||
| 39 | #define EL3HLT 39 | ||
| 40 | #define EL3RST 40 | ||
| 41 | #define ELNRNG 41 | ||
| 42 | #define EUNATCH 42 | ||
| 43 | #define ENOCSI 43 | ||
| 44 | #define EL2HLT 44 | ||
| 45 | #define EDEADLK 45 | ||
| 46 | #define ENOLCK 46 | ||
| 47 | #define EBADE 50 | ||
| 48 | #define EBADR 51 | ||
| 49 | #define EXFULL 52 | ||
| 50 | #define ENOANO 53 | ||
| 51 | #define EBADRQC 54 | ||
| 52 | #define EBADSLT 55 | ||
| 53 | #define EDEADLOCK 56 | ||
| 54 | #define EBFONT 59 | ||
| 55 | #define ENOSTR 60 | ||
| 56 | #define ENODATA 61 | ||
| 57 | #define ETIME 62 | ||
| 58 | #define ENOSR 63 | ||
| 59 | #define ENONET 64 | ||
| 60 | #define ENOPKG 65 | ||
| 61 | #define EREMOTE 66 | ||
| 62 | #define ENOLINK 67 | ||
| 63 | #define EADV 68 | ||
| 64 | #define ESRMNT 69 | ||
| 65 | #define ECOMM 70 | ||
| 66 | #define EPROTO 71 | ||
| 67 | #define EDOTDOT 73 | ||
| 68 | #define EMULTIHOP 74 | ||
| 69 | #define EBADMSG 77 | ||
| 70 | #define ENAMETOOLONG 78 | ||
| 71 | #define EOVERFLOW 79 | ||
| 72 | #define ENOTUNIQ 80 | ||
| 73 | #define EBADFD 81 | ||
| 74 | #define EREMCHG 82 | ||
| 75 | #define ELIBACC 83 | ||
| 76 | #define ELIBBAD 84 | ||
| 77 | #define ELIBSCN 85 | ||
| 78 | #define ELIBMAX 86 | ||
| 79 | #define ELIBEXEC 87 | ||
| 80 | #define EILSEQ 88 | ||
| 81 | #define ENOSYS 89 | ||
| 82 | #define ELOOP 90 | ||
| 83 | #define ERESTART 91 | ||
| 84 | #define ESTRPIPE 92 | ||
| 85 | #define ENOTEMPTY 93 | ||
| 86 | #define EUSERS 94 | ||
| 87 | #define ENOTSOCK 95 | ||
| 88 | #define EDESTADDRREQ 96 | ||
| 89 | #define EMSGSIZE 97 | ||
| 90 | #define EPROTOTYPE 98 | ||
| 91 | #define ENOPROTOOPT 99 | ||
| 92 | #define EPROTONOSUPPORT 120 | ||
| 93 | #define ESOCKTNOSUPPORT 121 | ||
| 94 | #define EOPNOTSUPP 122 | ||
| 95 | #define ENOTSUP EOPNOTSUPP | ||
| 96 | #define EPFNOSUPPORT 123 | ||
| 97 | #define EAFNOSUPPORT 124 | ||
| 98 | #define EADDRINUSE 125 | ||
| 99 | #define EADDRNOTAVAIL 126 | ||
| 100 | #define ENETDOWN 127 | ||
| 101 | #define ENETUNREACH 128 | ||
| 102 | #define ENETRESET 129 | ||
| 103 | #define ECONNABORTED 130 | ||
| 104 | #define ECONNRESET 131 | ||
| 105 | #define ENOBUFS 132 | ||
| 106 | #define EISCONN 133 | ||
| 107 | #define ENOTCONN 134 | ||
| 108 | #define EUCLEAN 135 | ||
| 109 | #define ENOTNAM 137 | ||
| 110 | #define ENAVAIL 138 | ||
| 111 | #define EISNAM 139 | ||
| 112 | #define EREMOTEIO 140 | ||
| 113 | #define ESHUTDOWN 143 | ||
| 114 | #define ETOOMANYREFS 144 | ||
| 115 | #define ETIMEDOUT 145 | ||
| 116 | #define ECONNREFUSED 146 | ||
| 117 | #define EHOSTDOWN 147 | ||
| 118 | #define EHOSTUNREACH 148 | ||
| 119 | #define EWOULDBLOCK EAGAIN | ||
| 120 | #define EALREADY 149 | ||
| 121 | #define EINPROGRESS 150 | ||
| 122 | #define ESTALE 151 | ||
| 123 | #define ECANCELED 158 | ||
| 124 | #define ENOMEDIUM 159 | ||
| 125 | #define EMEDIUMTYPE 160 | ||
| 126 | #define ENOKEY 161 | ||
| 127 | #define EKEYEXPIRED 162 | ||
| 128 | #define EKEYREVOKED 163 | ||
| 129 | #define EKEYREJECTED 164 | ||
| 130 | #define EOWNERDEAD 165 | ||
| 131 | #define ENOTRECOVERABLE 166 | ||
| 132 | #define ERFKILL 167 | ||
| 133 | #define EHWPOISON 168 | ||
| 134 | #define EDQUOT 1133 | ||
lib/libc/musl/arch/mipsn32/bits/fcntl.h created+40| ... | @@ -0,0 +1,40 @@ | ||
| 1 | #define O_CREAT 0400 | ||
| 2 | #define O_EXCL 02000 | ||
| 3 | #define O_NOCTTY 04000 | ||
| 4 | #define O_TRUNC 01000 | ||
| 5 | #define O_APPEND 0010 | ||
| 6 | #define O_NONBLOCK 0200 | ||
| 7 | #define O_DSYNC 0020 | ||
| 8 | #define O_SYNC 040020 | ||
| 9 | #define O_RSYNC 040020 | ||
| 10 | #define O_DIRECTORY 0200000 | ||
| 11 | #define O_NOFOLLOW 0400000 | ||
| 12 | #define O_CLOEXEC 02000000 | ||
| 13 | |||
| 14 | #define O_ASYNC 010000 | ||
| 15 | #define O_DIRECT 0100000 | ||
| 16 | #define O_LARGEFILE 020000 | ||
| 17 | #define O_NOATIME 01000000 | ||
| 18 | #define O_PATH 010000000 | ||
| 19 | #define O_TMPFILE 020200000 | ||
| 20 | #define O_NDELAY O_NONBLOCK | ||
| 21 | |||
| 22 | #define F_DUPFD 0 | ||
| 23 | #define F_GETFD 1 | ||
| 24 | #define F_SETFD 2 | ||
| 25 | #define F_GETFL 3 | ||
| 26 | #define F_SETFL 4 | ||
| 27 | |||
| 28 | #define F_SETOWN 24 | ||
| 29 | #define F_GETOWN 23 | ||
| 30 | #define F_SETSIG 10 | ||
| 31 | #define F_GETSIG 11 | ||
| 32 | |||
| 33 | #define F_GETLK 33 | ||
| 34 | #define F_SETLK 34 | ||
| 35 | #define F_SETLKW 35 | ||
| 36 | |||
| 37 | #define F_SETOWN_EX 15 | ||
| 38 | #define F_GETOWN_EX 16 | ||
| 39 | |||
| 40 | #define F_GETOWNER_UIDS 17 | ||
lib/libc/musl/arch/mipsn32/bits/fenv.h created+25| ... | @@ -0,0 +1,25 @@ | ||
| 1 | #ifdef __mips_soft_float | ||
| 2 | #define FE_ALL_EXCEPT 0 | ||
| 3 | #define FE_TONEAREST 0 | ||
| 4 | #else | ||
| 5 | #define FE_INEXACT 4 | ||
| 6 | #define FE_UNDERFLOW 8 | ||
| 7 | #define FE_OVERFLOW 16 | ||
| 8 | #define FE_DIVBYZERO 32 | ||
| 9 | #define FE_INVALID 64 | ||
| 10 | |||
| 11 | #define FE_ALL_EXCEPT 124 | ||
| 12 | |||
| 13 | #define FE_TONEAREST 0 | ||
| 14 | #define FE_TOWARDZERO 1 | ||
| 15 | #define FE_UPWARD 2 | ||
| 16 | #define FE_DOWNWARD 3 | ||
| 17 | #endif | ||
| 18 | |||
| 19 | typedef unsigned short fexcept_t; | ||
| 20 | |||
| 21 | typedef struct { | ||
| 22 | 	unsigned __cw; | ||
| 23 | } fenv_t; | ||
| 24 | |||
| 25 | #define FE_DFL_ENV ((const fenv_t *) -1) | ||
lib/libc/musl/arch/mipsn32/bits/float.h created+16| ... | @@ -0,0 +1,16 @@ | ||
| 1 | #define FLT_EVAL_METHOD 0 | ||
| 2 | |||
| 3 | #define LDBL_TRUE_MIN 6.47517511943802511092443895822764655e-4966L | ||
| 4 | #define LDBL_MIN 3.36210314311209350626267781732175260e-4932L | ||
| 5 | #define LDBL_MAX 1.18973149535723176508575932662800702e+4932L | ||
| 6 | #define LDBL_EPSILON 1.92592994438723585305597794258492732e-34L | ||
| 7 | |||
| 8 | #define LDBL_MANT_DIG 113 | ||
| 9 | #define LDBL_MIN_EXP (-16381) | ||
| 10 | #define LDBL_MAX_EXP 16384 | ||
| 11 | |||
| 12 | #define LDBL_DIG 33 | ||
| 13 | #define LDBL_MIN_10_EXP (-4931) | ||
| 14 | #define LDBL_MAX_10_EXP 4932 | ||
| 15 | |||
| 16 | #define DECIMAL_DIG 36 | ||
lib/libc/musl/arch/mipsn32/bits/hwcap.h created+3| ... | @@ -0,0 +1,3 @@ | ||
| 1 | #define HWCAP_MIPS_R6		(1 << 0) | ||
| 2 | #define HWCAP_MIPS_MSA		(1 << 1) | ||
| 3 | #define HWCAP_MIPS_CRC32	(1 << 2) | ||
lib/libc/musl/arch/mipsn32/bits/ioctl.h created+114| ... | @@ -0,0 +1,114 @@ | ||
| 1 | #define _IOC(a,b,c,d) ( ((a)<<29) | ((b)<<8) | (c) | ((d)<<16) ) | ||
| 2 | #define _IOC_NONE 1U | ||
| 3 | #define _IOC_READ 2U | ||
| 4 | #define _IOC_WRITE 4U | ||
| 5 | |||
| 6 | #define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0) | ||
| 7 | #define _IOW(a,b,c) _IOC(_IOC_WRITE,(a),(b),sizeof(c)) | ||
| 8 | #define _IOR(a,b,c) _IOC(_IOC_READ,(a),(b),sizeof(c)) | ||
| 9 | #define _IOWR(a,b,c) _IOC(_IOC_READ|_IOC_WRITE,(a),(b),sizeof(c)) | ||
| 10 | |||
| 11 | #define TCGETA		0x5401 | ||
| 12 | #define TCSETA		0x5402 | ||
| 13 | #define TCSETAW		0x5403 | ||
| 14 | #define TCSETAF		0x5404 | ||
| 15 | #define TCSBRK		0x5405 | ||
| 16 | #define TCXONC		0x5406 | ||
| 17 | #define TCFLSH		0x5407 | ||
| 18 | #define TCGETS		0x540D | ||
| 19 | #define TCSETS		0x540E | ||
| 20 | #define TCSETSW		0x540F | ||
| 21 | #define TCSETSF		0x5410 | ||
| 22 | |||
| 23 | #define TIOCEXCL	0x740D | ||
| 24 | #define TIOCNXCL	0x740E | ||
| 25 | #define TIOCOUTQ	0x7472 | ||
| 26 | #define TIOCSTI		0x5472 | ||
| 27 | #define TIOCMGET	0x741D | ||
| 28 | #define TIOCMBIS	0x741B | ||
| 29 | #define TIOCMBIC	0x741C | ||
| 30 | #define TIOCMSET	0x741A | ||
| 31 | |||
| 32 | #define TIOCPKT		0x5470 | ||
| 33 | #define TIOCSWINSZ	_IOW('t', 103, struct winsize) | ||
| 34 | #define TIOCGWINSZ	_IOR('t', 104, struct winsize) | ||
| 35 | #define TIOCNOTTY	0x5471 | ||
| 36 | #define TIOCSETD	0x7401 | ||
| 37 | #define TIOCGETD	0x7400 | ||
| 38 | |||
| 39 | #define FIOCLEX		0x6601 | ||
| 40 | #define FIONCLEX	0x6602 | ||
| 41 | #define FIOASYNC	0x667D | ||
| 42 | #define FIONBIO		0x667E | ||
| 43 | #define FIOQSIZE	0x667F | ||
| 44 | |||
| 45 | #define TIOCGLTC 0x7474 | ||
| 46 | #define TIOCSLTC 0x7475 | ||
| 47 | #define TIOCSPGRP	_IOW('t', 118, int) | ||
| 48 | #define TIOCGPGRP	_IOR('t', 119, int) | ||
| 49 | #define TIOCCONS	_IOW('t', 120, int) | ||
| 50 | |||
| 51 | #define FIONREAD	0x467F | ||
| 52 | #define TIOCINQ		FIONREAD | ||
| 53 | |||
| 54 | #define TIOCGETP 0x7408 | ||
| 55 | #define TIOCSETP 0x7409 | ||
| 56 | #define TIOCSETN 0x740A | ||
| 57 | |||
| 58 | #define TIOCSBRK	0x5427 | ||
| 59 | #define TIOCCBRK	0x5428 | ||
| 60 | #define TIOCGSID	0x7416 | ||
| 61 | #define TIOCGRS485	_IOR('T', 0x2E, char[32]) | ||
| 62 | #define TIOCSRS485	_IOWR('T', 0x2F, char[32]) | ||
| 63 | #define TIOCGPTN	_IOR('T', 0x30, unsigned int) | ||
| 64 | #define TIOCSPTLCK	_IOW('T', 0x31, int) | ||
| 65 | #define TIOCGDEV	_IOR('T', 0x32, unsigned int) | ||
| 66 | #define TIOCSIG		_IOW('T', 0x36, int) | ||
| 67 | #define TIOCVHANGUP	0x5437 | ||
| 68 | #define TIOCGPKT	_IOR('T', 0x38, int) | ||
| 69 | #define TIOCGPTLCK	_IOR('T', 0x39, int) | ||
| 70 | #define TIOCGEXCL	_IOR('T', 0x40, int) | ||
| 71 | #define TIOCGPTPEER	_IO('T', 0x41) | ||
| 72 | |||
| 73 | #define TIOCSCTTY	0x5480 | ||
| 74 | #define TIOCGSOFTCAR	0x5481 | ||
| 75 | #define TIOCSSOFTCAR	0x5482 | ||
| 76 | #define TIOCLINUX	0x5483 | ||
| 77 | #define TIOCGSERIAL	0x5484 | ||
| 78 | #define TIOCSSERIAL	0x5485 | ||
| 79 | #define TCSBRKP		0x5486 | ||
| 80 | |||
| 81 | #define TIOCSERCONFIG	0x5488 | ||
| 82 | #define TIOCSERGWILD	0x5489 | ||
| 83 | #define TIOCSERSWILD	0x548A | ||
| 84 | #define TIOCGLCKTRMIOS	0x548B | ||
| 85 | #define TIOCSLCKTRMIOS	0x548C | ||
| 86 | #define TIOCSERGSTRUCT	0x548D | ||
| 87 | #define TIOCSERGETLSR 0x548E | ||
| 88 | #define TIOCSERGETMULTI 0x548F | ||
| 89 | #define TIOCSERSETMULTI 0x5490 | ||
| 90 | #define TIOCMIWAIT	0x5491 | ||
| 91 | #define TIOCGICOUNT	0x5492 | ||
| 92 | |||
| 93 | #define TIOCM_LE	0x001 | ||
| 94 | #define TIOCM_DTR	0x002 | ||
| 95 | #define TIOCM_RTS	0x004 | ||
| 96 | #define TIOCM_ST	0x010 | ||
| 97 | #define TIOCM_SR	0x020 | ||
| 98 | #define TIOCM_CTS	0x040 | ||
| 99 | #define TIOCM_CAR	0x100 | ||
| 100 | #define TIOCM_CD	TIOCM_CAR | ||
| 101 | #define TIOCM_RNG	0x200 | ||
| 102 | #define TIOCM_RI	TIOCM_RNG | ||
| 103 | #define TIOCM_DSR	0x400 | ||
| 104 | #define TIOCM_OUT1	0x2000 | ||
| 105 | #define TIOCM_OUT2	0x4000 | ||
| 106 | #define TIOCM_LOOP	0x8000 | ||
| 107 | |||
| 108 | #define FIOGETOWN _IOR('f', 123, int) | ||
| 109 | #define FIOSETOWN _IOW('f', 124, int) | ||
| 110 | #define SIOCATMARK _IOR('s', 7, int) | ||
| 111 | #define SIOCSPGRP _IOW('s', 8, pid_t) | ||
| 112 | #define SIOCGPGRP _IOR('s', 9, pid_t) | ||
| 113 | #define SIOCGSTAMP _IOR(0x89, 6, char[16]) | ||
| 114 | #define SIOCGSTAMPNS _IOR(0x89, 7, char[16]) | ||
lib/libc/musl/arch/mipsn32/bits/ipcstat.h created+1| ... | @@ -0,0 +1 @@ | ||
| 1 | #define IPC_STAT 0x102 | ||
lib/libc/musl/arch/mipsn32/bits/mman.h created+25| ... | @@ -0,0 +1,25 @@ | ||
| 1 | #undef MAP_ANON | ||
| 2 | #define MAP_ANON 0x800 | ||
| 3 | #undef MAP_NORESERVE | ||
| 4 | #define MAP_NORESERVE 0x0400 | ||
| 5 | #undef MAP_GROWSDOWN | ||
| 6 | #define MAP_GROWSDOWN 0x1000 | ||
| 7 | #undef MAP_DENYWRITE | ||
| 8 | #define MAP_DENYWRITE 0x2000 | ||
| 9 | #undef MAP_EXECUTABLE | ||
| 10 | #define MAP_EXECUTABLE 0x4000 | ||
| 11 | #undef MAP_LOCKED | ||
| 12 | #define MAP_LOCKED 0x8000 | ||
| 13 | #undef MAP_POPULATE | ||
| 14 | #define MAP_POPULATE 0x10000 | ||
| 15 | #undef MAP_NONBLOCK | ||
| 16 | #define MAP_NONBLOCK 0x20000 | ||
| 17 | #undef MAP_STACK | ||
| 18 | #define MAP_STACK 0x40000 | ||
| 19 | #undef MAP_HUGETLB | ||
| 20 | #define MAP_HUGETLB 0x80000 | ||
| 21 | #undef MAP_SYNC | ||
| 22 | |||
| 23 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 24 | #undef MADV_SOFT_OFFLINE | ||
| 25 | #endif | ||
lib/libc/musl/arch/mipsn32/bits/msg.h created+27| ... | @@ -0,0 +1,27 @@ | ||
| 1 | struct msqid_ds { | ||
| 2 | 	struct ipc_perm msg_perm; | ||
| 3 | #if _MIPSEL || __MIPSEL || __MIPSEL__ | ||
| 4 | 	unsigned long __msg_stime_lo; | ||
| 5 | 	unsigned long __msg_stime_hi; | ||
| 6 | 	unsigned long __msg_rtime_lo; | ||
| 7 | 	unsigned long __msg_rtime_hi; | ||
| 8 | 	unsigned long __msg_ctime_lo; | ||
| 9 | 	unsigned long __msg_ctime_hi; | ||
| 10 | #else | ||
| 11 | 	unsigned long __msg_stime_hi; | ||
| 12 | 	unsigned long __msg_stime_lo; | ||
| 13 | 	unsigned long __msg_rtime_hi; | ||
| 14 | 	unsigned long __msg_rtime_lo; | ||
| 15 | 	unsigned long __msg_ctime_hi; | ||
| 16 | 	unsigned long __msg_ctime_lo; | ||
| 17 | #endif | ||
| 18 | 	unsigned long msg_cbytes; | ||
| 19 | 	msgqnum_t msg_qnum; | ||
| 20 | 	msglen_t msg_qbytes; | ||
| 21 | 	pid_t msg_lspid; | ||
| 22 | 	pid_t msg_lrpid; | ||
| 23 | 	unsigned long __unused[2]; | ||
| 24 | 	time_t msg_stime; | ||
| 25 | 	time_t msg_rtime; | ||
| 26 | 	time_t msg_ctime; | ||
| 27 | }; | ||
lib/libc/musl/arch/mipsn32/bits/poll.h created+2| ... | @@ -0,0 +1,2 @@ | ||
| 1 | #define POLLWRNORM POLLOUT | ||
| 2 | #define POLLWRBAND 0x100 | ||
lib/libc/musl/arch/mipsn32/bits/posix.h created+2| ... | @@ -0,0 +1,2 @@ | ||
| 1 | #define _POSIX_V6_ILP32_OFFBIG 1 | ||
| 2 | #define _POSIX_V7_ILP32_OFFBIG 1 | ||
lib/libc/musl/arch/mipsn32/bits/ptrace.h created+9| ... | @@ -0,0 +1,9 @@ | ||
| 1 | #define PTRACE_GET_THREAD_AREA	25 | ||
| 2 | #define PTRACE_SET_THREAD_AREA	26 | ||
| 3 | #define PTRACE_PEEKTEXT_3264	0xc0 | ||
| 4 | #define PTRACE_PEEKDATA_3264	0xc1 | ||
| 5 | #define PTRACE_POKETEXT_3264	0xc2 | ||
| 6 | #define PTRACE_POKEDATA_3264	0xc3 | ||
| 7 | #define PTRACE_GET_THREAD_AREA_3264	0xc4 | ||
| 8 | #define PTRACE_GET_WATCH_REGS	0xd0 | ||
| 9 | #define PTRACE_SET_WATCH_REGS	0xd1 | ||
lib/libc/musl/arch/mipsn32/bits/reg.h created+47| ... | @@ -0,0 +1,47 @@ | ||
| 1 | #undef __WORDSIZE | ||
| 2 | #define __WORDSIZE 64 | ||
| 3 | |||
| 4 | #define EF_R0 0 | ||
| 5 | #define EF_R1 1 | ||
| 6 | #define EF_R2 2 | ||
| 7 | #define EF_R3 3 | ||
| 8 | #define EF_R4 4 | ||
| 9 | #define EF_R5 5 | ||
| 10 | #define EF_R6 6 | ||
| 11 | #define EF_R7 7 | ||
| 12 | #define EF_R8 8 | ||
| 13 | #define EF_R9 9 | ||
| 14 | #define EF_R10 10 | ||
| 15 | #define EF_R11 11 | ||
| 16 | #define EF_R12 12 | ||
| 17 | #define EF_R13 13 | ||
| 18 | #define EF_R14 14 | ||
| 19 | #define EF_R15 15 | ||
| 20 | #define EF_R16 16 | ||
| 21 | #define EF_R17 17 | ||
| 22 | #define EF_R18 18 | ||
| 23 | #define EF_R19 19 | ||
| 24 | #define EF_R20 20 | ||
| 25 | #define EF_R21 21 | ||
| 26 | #define EF_R22 22 | ||
| 27 | #define EF_R23 23 | ||
| 28 | #define EF_R24 24 | ||
| 29 | #define EF_R25 25 | ||
| 30 | |||
| 31 | #define EF_R26 26 | ||
| 32 | #define EF_R27 27 | ||
| 33 | #define EF_R28 28 | ||
| 34 | #define EF_R29 29 | ||
| 35 | #define EF_R30 30 | ||
| 36 | #define EF_R31 31 | ||
| 37 | |||
| 38 | #define EF_LO 32 | ||
| 39 | #define EF_HI 33 | ||
| 40 | |||
| 41 | #define EF_CP0_EPC 34 | ||
| 42 | #define EF_CP0_BADVADDR 35 | ||
| 43 | #define EF_CP0_STATUS 36 | ||
| 44 | #define EF_CP0_CAUSE 37 | ||
| 45 | #define EF_UNUSED0 38 | ||
| 46 | |||
| 47 | #define EF_SIZE 304 | ||
lib/libc/musl/arch/mipsn32/bits/resource.h created+5| ... | @@ -0,0 +1,5 @@ | ||
| 1 | #define RLIMIT_NOFILE 5 | ||
| 2 | #define RLIMIT_AS 6 | ||
| 3 | #define RLIMIT_RSS 7 | ||
| 4 | #define RLIMIT_NPROC 8 | ||
| 5 | #define RLIMIT_MEMLOCK 9 | ||
lib/libc/musl/arch/mipsn32/bits/sem.h created+16| ... | @@ -0,0 +1,16 @@ | ||
| 1 | struct semid_ds { | ||
| 2 | 	struct ipc_perm sem_perm; | ||
| 3 | 	unsigned long __sem_otime_lo; | ||
| 4 | 	unsigned long __sem_ctime_lo; | ||
| 5 | #if __BYTE_ORDER == __LITTLE_ENDIAN | ||
| 6 | 	unsigned short sem_nsems; | ||
| 7 | 	char __sem_nsems_pad[sizeof(long)-sizeof(short)]; | ||
| 8 | #else | ||
| 9 | 	char __sem_nsems_pad[sizeof(long)-sizeof(short)]; | ||
| 10 | 	unsigned short sem_nsems; | ||
| 11 | #endif | ||
| 12 | 	unsigned long __sem_otime_hi; | ||
| 13 | 	unsigned long __sem_ctime_hi; | ||
| 14 | 	time_t sem_otime; | ||
| 15 | 	time_t sem_ctime; | ||
| 16 | }; | ||
lib/libc/musl/arch/mipsn32/bits/setjmp.h created+1| ... | @@ -0,0 +1 @@ | ||
| 1 | typedef unsigned long long __jmp_buf[23]; | ||
lib/libc/musl/arch/mipsn32/bits/shm.h created+29| ... | @@ -0,0 +1,29 @@ | ||
| 1 | #define SHMLBA 4096 | ||
| 2 | |||
| 3 | struct shmid_ds { | ||
| 4 | 	struct ipc_perm shm_perm; | ||
| 5 | 	size_t shm_segsz; | ||
| 6 | 	unsigned long __shm_atime_lo; | ||
| 7 | 	unsigned long __shm_dtime_lo; | ||
| 8 | 	unsigned long __shm_ctime_lo; | ||
| 9 | 	pid_t shm_cpid; | ||
| 10 | 	pid_t shm_lpid; | ||
| 11 | 	unsigned long shm_nattch; | ||
| 12 | 	unsigned short __shm_atime_hi; | ||
| 13 | 	unsigned short __shm_dtime_hi; | ||
| 14 | 	unsigned short __shm_ctime_hi; | ||
| 15 | 	unsigned short __pad1; | ||
| 16 | 	time_t shm_atime; | ||
| 17 | 	time_t shm_dtime; | ||
| 18 | 	time_t shm_ctime; | ||
| 19 | }; | ||
| 20 | |||
| 21 | struct shminfo { | ||
| 22 | 	unsigned long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4]; | ||
| 23 | }; | ||
| 24 | |||
| 25 | struct shm_info { | ||
| 26 | 	int __used_ids; | ||
| 27 | 	unsigned long shm_tot, shm_rss, shm_swp; | ||
| 28 | 	unsigned long __swap_attempts, __swap_successes; | ||
| 29 | }; | ||
lib/libc/musl/arch/mipsn32/bits/signal.h created+142| ... | @@ -0,0 +1,142 @@ | ||
| 1 | #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ | ||
| 2 | || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 3 | |||
| 4 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 5 | #define MINSIGSTKSZ 2048 | ||
| 6 | #define SIGSTKSZ 8192 | ||
| 7 | #endif | ||
| 8 | |||
| 9 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 10 | typedef unsigned long long greg_t, gregset_t[32]; | ||
| 11 | |||
| 12 | typedef struct { | ||
| 13 | 	union { | ||
| 14 | 		double fp_dregs[32]; | ||
| 15 | 		struct { | ||
| 16 | 			float _fp_fregs; | ||
| 17 | 			unsigned _fp_pad; | ||
| 18 | 		} fp_fregs[32]; | ||
| 19 | 	} fp_r; | ||
| 20 | } fpregset_t; | ||
| 21 | |||
| 22 | struct sigcontext { | ||
| 23 | 	unsigned long long sc_regs[32]; | ||
| 24 | 	unsigned long long sc_fpregs[32]; | ||
| 25 | 	unsigned long long sc_mdhi; | ||
| 26 | 	unsigned long long sc_hi1; | ||
| 27 | 	unsigned long long sc_hi2; | ||
| 28 | 	unsigned long long sc_hi3; | ||
| 29 | 	unsigned long long sc_mdlo; | ||
| 30 | 	unsigned long long sc_lo1; | ||
| 31 | 	unsigned long long sc_lo2; | ||
| 32 | 	unsigned long long sc_lo3; | ||
| 33 | 	unsigned long long sc_pc; | ||
| 34 | 	unsigned int sc_fpc_csr; | ||
| 35 | 	unsigned int sc_used_math; | ||
| 36 | 	unsigned int sc_dsp; | ||
| 37 | 	unsigned int sc_reserved; | ||
| 38 | }; | ||
| 39 | |||
| 40 | typedef struct { | ||
| 41 | 	gregset_t gregs; | ||
| 42 | 	fpregset_t fpregs; | ||
| 43 | 	greg_t mdhi; | ||
| 44 | 	greg_t hi1; | ||
| 45 | 	greg_t hi2; | ||
| 46 | 	greg_t hi3; | ||
| 47 | 	greg_t mdlo; | ||
| 48 | 	greg_t lo1; | ||
| 49 | 	greg_t lo2; | ||
| 50 | 	greg_t lo3; | ||
| 51 | 	greg_t pc; | ||
| 52 | 	unsigned int fpc_csr; | ||
| 53 | 	unsigned int used_math; | ||
| 54 | 	unsigned int dsp; | ||
| 55 | 	unsigned int reserved; | ||
| 56 | } mcontext_t; | ||
| 57 | |||
| 58 | #else | ||
| 59 | typedef struct { | ||
| 60 | 	unsigned long long __mc1[32]; | ||
| 61 | 	double __mc2[32]; | ||
| 62 | 	unsigned long long __mc3[9]; | ||
| 63 | 	unsigned __mc4[4]; | ||
| 64 | } mcontext_t; | ||
| 65 | #endif | ||
| 66 | |||
| 67 | struct sigaltstack { | ||
| 68 | 	void *ss_sp; | ||
| 69 | 	size_t ss_size; | ||
| 70 | 	int ss_flags; | ||
| 71 | }; | ||
| 72 | |||
| 73 | typedef struct __ucontext { | ||
| 74 | 	unsigned long uc_flags; | ||
| 75 | 	struct __ucontext *uc_link; | ||
| 76 | 	stack_t uc_stack; | ||
| 77 | 	mcontext_t uc_mcontext; | ||
| 78 | 	sigset_t uc_sigmask; | ||
| 79 | } ucontext_t; | ||
| 80 | |||
| 81 | #define SA_NOCLDSTOP 1 | ||
| 82 | #define SA_NOCLDWAIT 0x10000 | ||
| 83 | #define SA_SIGINFO 8 | ||
| 84 | #define SA_ONSTACK 0x08000000 | ||
| 85 | #define SA_RESTART 0x10000000 | ||
| 86 | #define SA_NODEFER 0x40000000 | ||
| 87 | #define SA_RESETHAND 0x80000000 | ||
| 88 | |||
| 89 | #undef SIG_BLOCK | ||
| 90 | #undef SIG_UNBLOCK | ||
| 91 | #undef SIG_SETMASK | ||
| 92 | #define SIG_BLOCK 1 | ||
| 93 | #define SIG_UNBLOCK 2 | ||
| 94 | #define SIG_SETMASK 3 | ||
| 95 | |||
| 96 | #undef SI_ASYNCIO | ||
| 97 | #undef SI_MESGQ | ||
| 98 | #undef SI_TIMER | ||
| 99 | #define SI_ASYNCIO (-2) | ||
| 100 | #define SI_MESGQ (-4) | ||
| 101 | #define SI_TIMER (-3) | ||
| 102 | |||
| 103 | #define __SI_SWAP_ERRNO_CODE | ||
| 104 | |||
| 105 | #endif | ||
| 106 | |||
| 107 | #define SIGHUP 1 | ||
| 108 | #define SIGINT 2 | ||
| 109 | #define SIGQUIT 3 | ||
| 110 | #define SIGILL 4 | ||
| 111 | #define SIGTRAP 5 | ||
| 112 | #define SIGABRT 6 | ||
| 113 | #define SIGIOT SIGABRT | ||
| 114 | #define SIGEMT 7 | ||
| 115 | #define SIGFPE 8 | ||
| 116 | #define SIGKILL 9 | ||
| 117 | #define SIGBUS 10 | ||
| 118 | #define SIGSEGV 11 | ||
| 119 | #define SIGSYS 12 | ||
| 120 | #define SIGPIPE 13 | ||
| 121 | #define SIGALRM 14 | ||
| 122 | #define SIGTERM 15 | ||
| 123 | #define SIGUSR1 16 | ||
| 124 | #define SIGUSR2 17 | ||
| 125 | #define SIGCHLD 18 | ||
| 126 | #define SIGPWR 19 | ||
| 127 | #define SIGWINCH 20 | ||
| 128 | #define SIGURG 21 | ||
| 129 | #define SIGIO 22 | ||
| 130 | #define SIGPOLL SIGIO | ||
| 131 | #define SIGSTOP 23 | ||
| 132 | #define SIGTSTP 24 | ||
| 133 | #define SIGCONT 25 | ||
| 134 | #define SIGTTIN 26 | ||
| 135 | #define SIGTTOU 27 | ||
| 136 | #define SIGVTALRM 28 | ||
| 137 | #define SIGPROF 29 | ||
| 138 | #define SIGXCPU 30 | ||
| 139 | #define SIGXFSZ 31 | ||
| 140 | #define SIGUNUSED SIGSYS | ||
| 141 | |||
| 142 | #define _NSIG 128 | ||
lib/libc/musl/arch/mipsn32/bits/socket.h created+35| ... | @@ -0,0 +1,35 @@ | ||
| 1 | #define SOCK_STREAM 2 | ||
| 2 | #define SOCK_DGRAM 1 | ||
| 3 | |||
| 4 | #define SOL_SOCKET 65535 | ||
| 5 | |||
| 6 | #define SO_DEBUG 1 | ||
| 7 | |||
| 8 | #define SO_REUSEADDR 0x0004 | ||
| 9 | #define SO_KEEPALIVE 0x0008 | ||
| 10 | #define SO_DONTROUTE 0x0010 | ||
| 11 | #define SO_BROADCAST 0x0020 | ||
| 12 | #define SO_LINGER 0x0080 | ||
| 13 | #define SO_OOBINLINE 0x0100 | ||
| 14 | #define SO_REUSEPORT 0x0200 | ||
| 15 | #define SO_SNDBUF 0x1001 | ||
| 16 | #define SO_RCVBUF 0x1002 | ||
| 17 | #define SO_SNDLOWAT 0x1003 | ||
| 18 | #define SO_RCVLOWAT 0x1004 | ||
| 19 | #define SO_ERROR 0x1007 | ||
| 20 | #define SO_TYPE 0x1008 | ||
| 21 | #define SO_ACCEPTCONN 0x1009 | ||
| 22 | #define SO_PROTOCOL 0x1028 | ||
| 23 | #define SO_DOMAIN 0x1029 | ||
| 24 | |||
| 25 | #define SO_NO_CHECK 11 | ||
| 26 | #define SO_PRIORITY 12 | ||
| 27 | #define SO_BSDCOMPAT 14 | ||
| 28 | #define SO_PASSCRED 17 | ||
| 29 | #define SO_PEERCRED 18 | ||
| 30 | #define SO_PEERSEC 30 | ||
| 31 | #define SO_SNDBUFFORCE 31 | ||
| 32 | #define SO_RCVBUFFORCE 33 | ||
| 33 | |||
| 34 | #define SOCK_NONBLOCK 0200 | ||
| 35 | #define SOCK_CLOEXEC 02000000 | ||
lib/libc/musl/arch/mipsn32/bits/stat.h created+23| ... | @@ -0,0 +1,23 @@ | ||
| 1 | struct stat { | ||
| 2 | 	dev_t st_dev; | ||
| 3 | 	long __pad1[2]; | ||
| 4 | 	ino_t st_ino; | ||
| 5 | 	mode_t st_mode; | ||
| 6 | 	nlink_t st_nlink; | ||
| 7 | 	uid_t st_uid; | ||
| 8 | 	gid_t st_gid; | ||
| 9 | 	dev_t st_rdev; | ||
| 10 | 	long __pad2[2]; | ||
| 11 | 	off_t st_size; | ||
| 12 | 	struct { | ||
| 13 | 		long tv_sec; | ||
| 14 | 		long tv_nsec; | ||
| 15 | 	} __st_atim32, __st_mtim32, __st_ctim32; | ||
| 16 | 	blksize_t st_blksize; | ||
| 17 | 	long __pad3; | ||
| 18 | 	blkcnt_t st_blocks; | ||
| 19 | 	struct timespec st_atim; | ||
| 20 | 	struct timespec st_mtim; | ||
| 21 | 	struct timespec st_ctim; | ||
| 22 | 	long __pad4[2]; | ||
| 23 | }; | ||
lib/libc/musl/arch/mipsn32/bits/statfs.h created+8| ... | @@ -0,0 +1,8 @@ | ||
| 1 | struct statfs { | ||
| 2 | 	unsigned long f_type, f_bsize, f_frsize; | ||
| 3 | 	fsblkcnt_t f_blocks, f_bfree; | ||
| 4 | 	fsfilcnt_t f_files, f_ffree; | ||
| 5 | 	fsblkcnt_t f_bavail; | ||
| 6 | 	fsid_t f_fsid; | ||
| 7 | 	unsigned long f_namelen, f_flags, f_spare[5]; | ||
| 8 | }; | ||
lib/libc/musl/arch/mipsn32/bits/stdint.h created+20| ... | @@ -0,0 +1,20 @@ | ||
| 1 | typedef int32_t int_fast16_t; | ||
| 2 | typedef int32_t int_fast32_t; | ||
| 3 | typedef uint32_t uint_fast16_t; | ||
| 4 | typedef uint32_t uint_fast32_t; | ||
| 5 | |||
| 6 | #define INT_FAST16_MIN INT32_MIN | ||
| 7 | #define INT_FAST32_MIN INT32_MIN | ||
| 8 | |||
| 9 | #define INT_FAST16_MAX INT32_MAX | ||
| 10 | #define INT_FAST32_MAX INT32_MAX | ||
| 11 | |||
| 12 | #define UINT_FAST16_MAX UINT32_MAX | ||
| 13 | #define UINT_FAST32_MAX UINT32_MAX | ||
| 14 | |||
| 15 | #define INTPTR_MIN INT32_MIN | ||
| 16 | #define INTPTR_MAX INT32_MAX | ||
| 17 | #define UINTPTR_MAX UINT32_MAX | ||
| 18 | #define PTRDIFF_MIN INT32_MIN | ||
| 19 | #define PTRDIFF_MAX INT32_MAX | ||
| 20 | #define SIZE_MAX UINT32_MAX | ||
lib/libc/musl/arch/mipsn32/bits/termios.h created+169| ... | @@ -0,0 +1,169 @@ | ||
| 1 | struct termios { | ||
| 2 | 	tcflag_t c_iflag; | ||
| 3 | 	tcflag_t c_oflag; | ||
| 4 | 	tcflag_t c_cflag; | ||
| 5 | 	tcflag_t c_lflag; | ||
| 6 | 	cc_t c_line; | ||
| 7 | 	cc_t c_cc[NCCS]; | ||
| 8 | 	speed_t __c_ispeed; | ||
| 9 | 	speed_t __c_ospeed; | ||
| 10 | }; | ||
| 11 | |||
| 12 | #define VINTR 0 | ||
| 13 | #define VQUIT 1 | ||
| 14 | #define VERASE 2 | ||
| 15 | #define VKILL 3 | ||
| 16 | #define VMIN 4 | ||
| 17 | #define VTIME 5 | ||
| 18 | #define VEOL2 6 | ||
| 19 | #define VSWTC 7 | ||
| 20 | #define VSWTCH 7 | ||
| 21 | #define VSTART 8 | ||
| 22 | #define VSTOP 9 | ||
| 23 | #define VSUSP 10 | ||
| 24 | #define VREPRINT 12 | ||
| 25 | #define VDISCARD 13 | ||
| 26 | #define VWERASE 14 | ||
| 27 | #define VLNEXT 15 | ||
| 28 | #define VEOF 16 | ||
| 29 | #define VEOL 17 | ||
| 30 | |||
| 31 | #define IGNBRK 0000001 | ||
| 32 | #define BRKINT 0000002 | ||
| 33 | #define IGNPAR 0000004 | ||
| 34 | #define PARMRK 0000010 | ||
| 35 | #define INPCK 0000020 | ||
| 36 | #define ISTRIP 0000040 | ||
| 37 | #define INLCR 0000100 | ||
| 38 | #define IGNCR 0000200 | ||
| 39 | #define ICRNL 0000400 | ||
| 40 | #define IUCLC 0001000 | ||
| 41 | #define IXON 0002000 | ||
| 42 | #define IXANY 0004000 | ||
| 43 | #define IXOFF 0010000 | ||
| 44 | #define IMAXBEL 0020000 | ||
| 45 | #define IUTF8 0040000 | ||
| 46 | |||
| 47 | #define OPOST 0000001 | ||
| 48 | #define OLCUC 0000002 | ||
| 49 | #define ONLCR 0000004 | ||
| 50 | #define OCRNL 0000010 | ||
| 51 | #define ONOCR 0000020 | ||
| 52 | #define ONLRET 0000040 | ||
| 53 | #define OFILL 0000100 | ||
| 54 | #define OFDEL 0000200 | ||
| 55 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_XOPEN_SOURCE) | ||
| 56 | #define NLDLY 0000400 | ||
| 57 | #define NL0 0000000 | ||
| 58 | #define NL1 0000400 | ||
| 59 | #define CRDLY 0003000 | ||
| 60 | #define CR0 0000000 | ||
| 61 | #define CR1 0001000 | ||
| 62 | #define CR2 0002000 | ||
| 63 | #define CR3 0003000 | ||
| 64 | #define TABDLY 0014000 | ||
| 65 | #define TAB0 0000000 | ||
| 66 | #define TAB1 0004000 | ||
| 67 | #define TAB2 0010000 | ||
| 68 | #define TAB3 0014000 | ||
| 69 | #define BSDLY 0020000 | ||
| 70 | #define BS0 0000000 | ||
| 71 | #define BS1 0020000 | ||
| 72 | #define FFDLY 0100000 | ||
| 73 | #define FF0 0000000 | ||
| 74 | #define FF1 0100000 | ||
| 75 | #endif | ||
| 76 | |||
| 77 | #define VTDLY 0040000 | ||
| 78 | #define VT0 0000000 | ||
| 79 | #define VT1 0040000 | ||
| 80 | |||
| 81 | #define B0 0000000 | ||
| 82 | #define B50 0000001 | ||
| 83 | #define B75 0000002 | ||
| 84 | #define B110 0000003 | ||
| 85 | #define B134 0000004 | ||
| 86 | #define B150 0000005 | ||
| 87 | #define B200 0000006 | ||
| 88 | #define B300 0000007 | ||
| 89 | #define B600 0000010 | ||
| 90 | #define B1200 0000011 | ||
| 91 | #define B1800 0000012 | ||
| 92 | #define B2400 0000013 | ||
| 93 | #define B4800 0000014 | ||
| 94 | #define B9600 0000015 | ||
| 95 | #define B19200 0000016 | ||
| 96 | #define B38400 0000017 | ||
| 97 | |||
| 98 | #define B57600 0010001 | ||
| 99 | #define B115200 0010002 | ||
| 100 | #define B230400 0010003 | ||
| 101 | #define B460800 0010004 | ||
| 102 | #define B500000 0010005 | ||
| 103 | #define B576000 0010006 | ||
| 104 | #define B921600 0010007 | ||
| 105 | #define B1000000 0010010 | ||
| 106 | #define B1152000 0010011 | ||
| 107 | #define B1500000 0010012 | ||
| 108 | #define B2000000 0010013 | ||
| 109 | #define B2500000 0010014 | ||
| 110 | #define B3000000 0010015 | ||
| 111 | #define B3500000 0010016 | ||
| 112 | #define B4000000 0010017 | ||
| 113 | |||
| 114 | #define CSIZE 0000060 | ||
| 115 | #define CS5 0000000 | ||
| 116 | #define CS6 0000020 | ||
| 117 | #define CS7 0000040 | ||
| 118 | #define CS8 0000060 | ||
| 119 | #define CSTOPB 0000100 | ||
| 120 | #define CREAD 0000200 | ||
| 121 | #define PARENB 0000400 | ||
| 122 | #define PARODD 0001000 | ||
| 123 | #define HUPCL 0002000 | ||
| 124 | #define CLOCAL 0004000 | ||
| 125 | |||
| 126 | #define ISIG 0000001 | ||
| 127 | #define ICANON 0000002 | ||
| 128 | #define ECHO 0000010 | ||
| 129 | #define ECHOE 0000020 | ||
| 130 | #define ECHOK 0000040 | ||
| 131 | #define ECHONL 0000100 | ||
| 132 | #define NOFLSH 0000200 | ||
| 133 | #define IEXTEN 0000400 | ||
| 134 | #define TOSTOP 0100000 | ||
| 135 | #define ITOSTOP 0100000 | ||
| 136 | |||
| 137 | #define TCOOFF 0 | ||
| 138 | #define TCOON 1 | ||
| 139 | #define TCIOFF 2 | ||
| 140 | #define TCION 3 | ||
| 141 | |||
| 142 | #define TCIFLUSH 0 | ||
| 143 | #define TCOFLUSH 1 | ||
| 144 | #define TCIOFLUSH 2 | ||
| 145 | |||
| 146 | #define TCSANOW 0 | ||
| 147 | #define TCSADRAIN 1 | ||
| 148 | #define TCSAFLUSH 2 | ||
| 149 | |||
| 150 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 151 | #define EXTA 0000016 | ||
| 152 | #define EXTB 0000017 | ||
| 153 | #define CBAUD 0010017 | ||
| 154 | #define CBAUDEX 0010000 | ||
| 155 | #define CIBAUD 002003600000 | ||
| 156 | #define CMSPAR 010000000000 | ||
| 157 | #define CRTSCTS 020000000000 | ||
| 158 | |||
| 159 | #define XCASE 0000004 | ||
| 160 | #define ECHOCTL 0001000 | ||
| 161 | #define ECHOPRT 0002000 | ||
| 162 | #define ECHOKE 0004000 | ||
| 163 | #define FLUSHO 0020000 | ||
| 164 | #define PENDIN 0040000 | ||
| 165 | #define EXTPROC 0200000 | ||
| 166 | |||
| 167 | #define XTABS 0014000 | ||
| 168 | #define TIOCSER_TEMT 1 | ||
| 169 | #endif | ||
lib/libc/musl/arch/mipsn32/bits/user.h created+15| ... | @@ -0,0 +1,15 @@ | ||
| 1 | struct user { | ||
| 2 | 	unsigned long regs[102]; | ||
| 3 | 	unsigned long u_tsize, u_dsize, u_ssize; | ||
| 4 | 	unsigned long long start_code, start_data, start_stack; | ||
| 5 | 	long long signal; | ||
| 6 | 	unsigned long long *u_ar0; | ||
| 7 | 	unsigned long long magic; | ||
| 8 | 	char u_comm[32]; | ||
| 9 | }; | ||
| 10 | |||
| 11 | #define ELF_NGREG 45 | ||
| 12 | #define ELF_NFPREG 33 | ||
| 13 | |||
| 14 | typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG]; | ||
| 15 | typedef double elf_fpreg_t, elf_fpregset_t[ELF_NFPREG]; | ||
lib/libc/musl/arch/mipsn32/crt_arch.h created+32| ... | @@ -0,0 +1,32 @@ | ||
| 1 | __asm__( | ||
| 2 | ".set push\n" | ||
| 3 | ".set noreorder\n" | ||
| 4 | ".text \n" | ||
| 5 | ".global _" START "\n" | ||
| 6 | ".global " START "\n" | ||
| 7 | ".global " START "_data\n" | ||
| 8 | ".type _" START ", @function\n" | ||
| 9 | ".type " START ", @function\n" | ||
| 10 | ".type " START "_data, @function\n" | ||
| 11 | "_" START ":\n" | ||
| 12 | "" START ":\n" | ||
| 13 | "	bal 1f \n" | ||
| 14 | "	move $fp, $0 \n" | ||
| 15 | "" START "_data: \n" | ||
| 16 | "	.gpword " START "_data \n" | ||
| 17 | "	.gpword " START "_c \n" | ||
| 18 | ".weak _DYNAMIC \n" | ||
| 19 | ".hidden _DYNAMIC \n" | ||
| 20 | "	.gpword _DYNAMIC \n" | ||
| 21 | "1:	lw $gp, 0($ra) \n" | ||
| 22 | "	subu $gp, $ra, $gp \n" | ||
| 23 | "	move $4, $sp \n" | ||
| 24 | "	lw $5, 8($ra) \n" | ||
| 25 | "	addu $5, $5, $gp \n" | ||
| 26 | "	lw $25, 4($ra) \n" | ||
| 27 | "	addu $25, $25, $gp \n" | ||
| 28 | "	and $sp, $sp, -8 \n" | ||
| 29 | "	jalr $25 \n" | ||
| 30 | "	subu $sp, $sp, 16 \n" | ||
| 31 | ".set pop \n" | ||
| 32 | ); | ||
lib/libc/musl/arch/mipsn32/ksigaction.h created+10| ... | @@ -0,0 +1,10 @@ | ||
| 1 | #include <features.h> | ||
| 2 | |||
| 3 | struct k_sigaction { | ||
| 4 | 	unsigned flags; | ||
| 5 | 	void (*handler)(int); | ||
| 6 | 	unsigned long mask[4]; | ||
| 7 | 	void *unused; | ||
| 8 | }; | ||
| 9 | |||
| 10 | hidden void __restore(), __restore_rt(); | ||
lib/libc/musl/arch/mipsn32/kstat.h created+22| ... | @@ -0,0 +1,22 @@ | ||
| 1 | struct kstat { | ||
| 2 | 	unsigned st_dev; | ||
| 3 | 	long __pad1[3]; | ||
| 4 | 	ino_t st_ino; | ||
| 5 | 	mode_t st_mode; | ||
| 6 | 	nlink_t st_nlink; | ||
| 7 | 	uid_t st_uid; | ||
| 8 | 	gid_t st_gid; | ||
| 9 | 	unsigned st_rdev; | ||
| 10 | 	long __pad2[3]; | ||
| 11 | 	off_t st_size; | ||
| 12 | 	long st_atime_sec; | ||
| 13 | 	long st_atime_nsec; | ||
| 14 | 	long st_mtime_sec; | ||
| 15 | 	long st_mtime_nsec; | ||
| 16 | 	long st_ctime_sec; | ||
| 17 | 	long st_ctime_nsec; | ||
| 18 | 	blksize_t st_blksize; | ||
| 19 | 	long __pad3; | ||
| 20 | 	blkcnt_t st_blocks; | ||
| 21 | 	long __pad4[14]; | ||
| 22 | }; | ||
lib/libc/musl/arch/mipsn32/pthread_arch.h created+19| ... | @@ -0,0 +1,19 @@ | ||
| 1 | static inline uintptr_t __get_tp() | ||
| 2 | { | ||
| 3 | #if __mips_isa_rev < 2 | ||
| 4 | 	register uintptr_t tp __asm__("$3"); | ||
| 5 | 	__asm__ (".word 0x7c03e83b" : "=r" (tp) ); | ||
| 6 | #else | ||
| 7 | 	uintptr_t tp; | ||
| 8 | 	__asm__ ("rdhwr %0, $29" : "=r" (tp) ); | ||
| 9 | #endif | ||
| 10 | 	return tp; | ||
| 11 | } | ||
| 12 | |||
| 13 | #define TLS_ABOVE_TP | ||
| 14 | #define GAP_ABOVE_TP 0 | ||
| 15 | |||
| 16 | #define TP_OFFSET 0x7000 | ||
| 17 | #define DTP_OFFSET 0x8000 | ||
| 18 | |||
| 19 | #define MC_PC pc | ||
lib/libc/musl/arch/mipsn32/reloc.h created+51| ... | @@ -0,0 +1,51 @@ | ||
| 1 | #if __mips_isa_rev >= 6 | ||
| 2 | #define ISA_SUFFIX "r6" | ||
| 3 | #else | ||
| 4 | #define ISA_SUFFIX "" | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #if __BYTE_ORDER == __LITTLE_ENDIAN | ||
| 8 | #define ENDIAN_SUFFIX "el" | ||
| 9 | #else | ||
| 10 | #define ENDIAN_SUFFIX "" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | #ifdef __mips_soft_float | ||
| 14 | #define FP_SUFFIX "-sf" | ||
| 15 | #else | ||
| 16 | #define FP_SUFFIX "" | ||
| 17 | #endif | ||
| 18 | |||
| 19 | #define LDSO_ARCH "mipsn32" ISA_SUFFIX ENDIAN_SUFFIX FP_SUFFIX | ||
| 20 | |||
| 21 | #define TPOFF_K (-0x7000) | ||
| 22 | |||
| 23 | #define REL_SYM_OR_REL R_MIPS_REL32 | ||
| 24 | #define REL_PLT R_MIPS_JUMP_SLOT | ||
| 25 | #define REL_COPY R_MIPS_COPY | ||
| 26 | #define REL_DTPMOD R_MIPS_TLS_DTPMOD32 | ||
| 27 | #define REL_DTPOFF R_MIPS_TLS_DTPREL32 | ||
| 28 | #define REL_TPOFF R_MIPS_TLS_TPREL32 | ||
| 29 | |||
| 30 | #define NEED_MIPS_GOT_RELOCS 1 | ||
| 31 | #define DT_DEBUG_INDIRECT DT_MIPS_RLD_MAP | ||
| 32 | #define DT_DEBUG_INDIRECT_REL DT_MIPS_RLD_MAP_REL | ||
| 33 | #define ARCH_SYM_REJECT_UND(s) (!((s)->st_other & STO_MIPS_PLT)) | ||
| 34 | |||
| 35 | #define CRTJMP(pc,sp) __asm__ __volatile__( \ | ||
| 36 | 	"move $sp,%1 ; jr %0" : : "r"(pc), "r"(sp) : "memory" ) | ||
| 37 | |||
| 38 | #define GETFUNCSYM(fp, sym, got) __asm__ ( \ | ||
| 39 | 	".hidden " #sym "\n" \ | ||
| 40 | 	".set push \n" \ | ||
| 41 | 	".set noreorder \n" \ | ||
| 42 | 	"	bal 1f \n" \ | ||
| 43 | 	"	nop \n" \ | ||
| 44 | 	"	.gpword . \n" \ | ||
| 45 | 	"	.gpword " #sym " \n" \ | ||
| 46 | 	"1:	lw %0, ($ra) \n" \ | ||
| 47 | 	"	subu %0, $ra, %0 \n" \ | ||
| 48 | 	"	lw $ra, 4($ra) \n" \ | ||
| 49 | 	"	addu %0, %0, $ra \n" \ | ||
| 50 | 	".set pop \n" \ | ||
| 51 | 	: "=r"(*(fp)) : : "memory", "ra" ) | ||
lib/libc/musl/arch/mipsn32/syscall_arch.h created+130| ... | @@ -0,0 +1,130 @@ | ||
| 1 | #define __SYSCALL_LL_E(x) (x) | ||
| 2 | #define __SYSCALL_LL_O(x) (x) | ||
| 3 | |||
| 4 | #define SYSCALL_RLIM_INFINITY (-1UL/2) | ||
| 5 | |||
| 6 | #if __mips_isa_rev >= 6 | ||
| 7 | #define SYSCALL_CLOBBERLIST \ | ||
| 8 | 	"$1", "$3", "$10", "$11", "$12", "$13", \ | ||
| 9 | 	"$14", "$15", "$24", "$25", "memory" | ||
| 10 | #else | ||
| 11 | #define SYSCALL_CLOBBERLIST \ | ||
| 12 | 	"$1", "$3", "$10", "$11", "$12", "$13", \ | ||
| 13 | 	"$14", "$15", "$24", "$25", "hi", "lo", "memory" | ||
| 14 | #endif | ||
| 15 | |||
| 16 | static inline long __syscall0(long n) | ||
| 17 | { | ||
| 18 | 	register long r7 __asm__("$7"); | ||
| 19 | 	register long r2 __asm__("$2"); | ||
| 20 | 	__asm__ __volatile__ ( | ||
| 21 | 		"daddu $2,$0,%2 ; syscall" | ||
| 22 | 		: "=&r"(r2), "=r"(r7) | ||
| 23 | 		: "ir"(n), "0"(r2) | ||
| 24 | 		: SYSCALL_CLOBBERLIST); | ||
| 25 | 	return r7 && r2>0 ? -r2 : r2; | ||
| 26 | } | ||
| 27 | |||
| 28 | static inline long __syscall1(long n, long a) | ||
| 29 | { | ||
| 30 | 	register long r4 __asm__("$4") = a; | ||
| 31 | 	register long r7 __asm__("$7"); | ||
| 32 | 	register long r2 __asm__("$2"); | ||
| 33 | 	__asm__ __volatile__ ( | ||
| 34 | 		"daddu $2,$0,%2 ; syscall" | ||
| 35 | 		: "=&r"(r2), "=r"(r7) | ||
| 36 | 		: "ir"(n), "0"(r2), "r"(r4) | ||
| 37 | 		: SYSCALL_CLOBBERLIST); | ||
| 38 | 	return r7 && r2>0 ? -r2 : r2; | ||
| 39 | } | ||
| 40 | |||
| 41 | static inline long __syscall2(long n, long a, long b) | ||
| 42 | { | ||
| 43 | 	register long r4 __asm__("$4") = a; | ||
| 44 | 	register long r5 __asm__("$5") = b; | ||
| 45 | 	register long r7 __asm__("$7"); | ||
| 46 | 	register long r2 __asm__("$2"); | ||
| 47 | |||
| 48 | 	__asm__ __volatile__ ( | ||
| 49 | 		"daddu $2,$0,%2 ; syscall" | ||
| 50 | 		: "=&r"(r2), "=r"(r7) | ||
| 51 | 		: "ir"(n), "0"(r2), "r"(r4), "r"(r5) | ||
| 52 | 		: SYSCALL_CLOBBERLIST); | ||
| 53 | 	return r7 && r2>0 ? -r2 : r2; | ||
| 54 | } | ||
| 55 | |||
| 56 | static inline long __syscall3(long n, long a, long b, long c) | ||
| 57 | { | ||
| 58 | 	register long r4 __asm__("$4") = a; | ||
| 59 | 	register long r5 __asm__("$5") = b; | ||
| 60 | 	register long r6 __asm__("$6") = c; | ||
| 61 | 	register long r7 __asm__("$7"); | ||
| 62 | 	register long r2 __asm__("$2"); | ||
| 63 | |||
| 64 | 	__asm__ __volatile__ ( | ||
| 65 | 		"daddu $2,$0,%2 ; syscall" | ||
| 66 | 		: "=&r"(r2), "=r"(r7) | ||
| 67 | 		: "ir"(n), "0"(r2), "r"(r4), "r"(r5), "r"(r6) | ||
| 68 | 		: SYSCALL_CLOBBERLIST); | ||
| 69 | 	return r7 && r2>0 ? -r2 : r2; | ||
| 70 | } | ||
| 71 | |||
| 72 | static inline long __syscall4(long n, long a, long b, long c, long d) | ||
| 73 | { | ||
| 74 | 	register long r4 __asm__("$4") = a; | ||
| 75 | 	register long r5 __asm__("$5") = b; | ||
| 76 | 	register long r6 __asm__("$6") = c; | ||
| 77 | 	register long r7 __asm__("$7") = d; | ||
| 78 | 	register long r2 __asm__("$2"); | ||
| 79 | |||
| 80 | 	__asm__ __volatile__ ( | ||
| 81 | 		"daddu $2,$0,%2 ; syscall" | ||
| 82 | 		: "=&r"(r2), "+r"(r7) | ||
| 83 | 		: "ir"(n), "0"(r2), "r"(r4), "r"(r5), "r"(r6) | ||
| 84 | 		: SYSCALL_CLOBBERLIST); | ||
| 85 | 	return r7 && r2>0 ? -r2 : r2; | ||
| 86 | } | ||
| 87 | |||
| 88 | static inline long __syscall5(long n, long a, long b, long c, long d, long e) | ||
| 89 | { | ||
| 90 | 	register long r4 __asm__("$4") = a; | ||
| 91 | 	register long r5 __asm__("$5") = b; | ||
| 92 | 	register long r6 __asm__("$6") = c; | ||
| 93 | 	register long r7 __asm__("$7") = d; | ||
| 94 | 	register long r8 __asm__("$8") = e; | ||
| 95 | 	register long r2 __asm__("$2"); | ||
| 96 | |||
| 97 | 	__asm__ __volatile__ ( | ||
| 98 | 		"daddu $2,$0,%2 ; syscall" | ||
| 99 | 		: "=&r"(r2), "+r"(r7) | ||
| 100 | 		: "ir"(n), "0"(r2), "r"(r4), "r"(r5), "r"(r6), "r"(r8) | ||
| 101 | 		: SYSCALL_CLOBBERLIST); | ||
| 102 | 	return r7 && r2>0 ? -r2 : r2; | ||
| 103 | } | ||
| 104 | |||
| 105 | static inline long __syscall6(long n, long a, long b, long c, long d, long e, long f) | ||
| 106 | { | ||
| 107 | 	register long r4 __asm__("$4") = a; | ||
| 108 | 	register long r5 __asm__("$5") = b; | ||
| 109 | 	register long r6 __asm__("$6") = c; | ||
| 110 | 	register long r7 __asm__("$7") = d; | ||
| 111 | 	register long r8 __asm__("$8") = e; | ||
| 112 | 	register long r9 __asm__("$9") = f; | ||
| 113 | 	register long r2 __asm__("$2"); | ||
| 114 | |||
| 115 | 	__asm__ __volatile__ ( | ||
| 116 | 		"daddu $2,$0,%2 ; syscall" | ||
| 117 | 		: "=&r"(r2), "+r"(r7) | ||
| 118 | 		: "ir"(n), "0"(r2), "r"(r4), "r"(r5), "r"(r6), "r"(r8), "r"(r9) | ||
| 119 | 		: SYSCALL_CLOBBERLIST); | ||
| 120 | 	return r7 && r2>0 ? -r2 : r2; | ||
| 121 | } | ||
| 122 | |||
| 123 | #define VDSO_USEFUL | ||
| 124 | #define VDSO_CGT32_SYM "__vdso_clock_gettime" | ||
| 125 | #define VDSO_CGT32_VER "LINUX_2.6" | ||
| 126 | #define VDSO_CGT_SYM "__vdso_clock_gettime64" | ||
| 127 | #define VDSO_CGT_VER "LINUX_2.6" | ||
| 128 | |||
| 129 | #define SO_SNDTIMEO_OLD 0x1005 | ||
| 130 | #define SO_RCVTIMEO_OLD 0x1006 | ||
lib/libc/musl/arch/powerpc/bits/alltypes.h.in deleted-20| ... | @@ -1,20 +0,0 @@ | ||
| 1 | #define _REDIR_TIME64 1 | ||
| 2 | #define _Addr int | ||
| 3 | #define _Int64 long long | ||
| 4 | #define _Reg int | ||
| 5 | |||
| 6 | #define __BYTE_ORDER 4321 | ||
| 7 | #define __LONG_MAX 0x7fffffffL | ||
| 8 | |||
| 9 | #ifndef __cplusplus | ||
| 10 | #ifdef __WCHAR_TYPE__ | ||
| 11 | TYPEDEF __WCHAR_TYPE__ wchar_t; | ||
| 12 | #else | ||
| 13 | TYPEDEF long wchar_t; | ||
| 14 | #endif | ||
| 15 | #endif | ||
| 16 | |||
| 17 | TYPEDEF float float_t; | ||
| 18 | TYPEDEF double double_t; | ||
| 19 | |||
| 20 | TYPEDEF struct { long long __ll; long double __ld; } max_align_t; | ||
lib/libc/musl/arch/powerpc/bits/syscall.h.in deleted-433| ... | @@ -1,433 +0,0 @@ | ||
| 1 | #define __NR_restart_syscall 0 | ||
| 2 | #define __NR_exit 1 | ||
| 3 | #define __NR_fork 2 | ||
| 4 | #define __NR_read 3 | ||
| 5 | #define __NR_write 4 | ||
| 6 | #define __NR_open 5 | ||
| 7 | #define __NR_close 6 | ||
| 8 | #define __NR_waitpid 7 | ||
| 9 | #define __NR_creat 8 | ||
| 10 | #define __NR_link 9 | ||
| 11 | #define __NR_unlink 10 | ||
| 12 | #define __NR_execve 11 | ||
| 13 | #define __NR_chdir 12 | ||
| 14 | #define __NR_time 13 | ||
| 15 | #define __NR_mknod 14 | ||
| 16 | #define __NR_chmod 15 | ||
| 17 | #define __NR_lchown 16 | ||
| 18 | #define __NR_break 17 | ||
| 19 | #define __NR_oldstat 18 | ||
| 20 | #define __NR_lseek 19 | ||
| 21 | #define __NR_getpid 20 | ||
| 22 | #define __NR_mount 21 | ||
| 23 | #define __NR_umount 22 | ||
| 24 | #define __NR_setuid 23 | ||
| 25 | #define __NR_getuid 24 | ||
| 26 | #define __NR_stime 25 | ||
| 27 | #define __NR_ptrace 26 | ||
| 28 | #define __NR_alarm 27 | ||
| 29 | #define __NR_oldfstat 28 | ||
| 30 | #define __NR_pause 29 | ||
| 31 | #define __NR_utime 30 | ||
| 32 | #define __NR_stty 31 | ||
| 33 | #define __NR_gtty 32 | ||
| 34 | #define __NR_access 33 | ||
| 35 | #define __NR_nice 34 | ||
| 36 | #define __NR_ftime 35 | ||
| 37 | #define __NR_sync 36 | ||
| 38 | #define __NR_kill 37 | ||
| 39 | #define __NR_rename 38 | ||
| 40 | #define __NR_mkdir 39 | ||
| 41 | #define __NR_rmdir 40 | ||
| 42 | #define __NR_dup 41 | ||
| 43 | #define __NR_pipe 42 | ||
| 44 | #define __NR_times 43 | ||
| 45 | #define __NR_prof 44 | ||
| 46 | #define __NR_brk 45 | ||
| 47 | #define __NR_setgid 46 | ||
| 48 | #define __NR_getgid 47 | ||
| 49 | #define __NR_signal 48 | ||
| 50 | #define __NR_geteuid 49 | ||
| 51 | #define __NR_getegid 50 | ||
| 52 | #define __NR_acct 51 | ||
| 53 | #define __NR_umount2 52 | ||
| 54 | #define __NR_lock 53 | ||
| 55 | #define __NR_ioctl 54 | ||
| 56 | #define __NR_fcntl 55 | ||
| 57 | #define __NR_mpx 56 | ||
| 58 | #define __NR_setpgid 57 | ||
| 59 | #define __NR_ulimit 58 | ||
| 60 | #define __NR_oldolduname 59 | ||
| 61 | #define __NR_umask 60 | ||
| 62 | #define __NR_chroot 61 | ||
| 63 | #define __NR_ustat 62 | ||
| 64 | #define __NR_dup2 63 | ||
| 65 | #define __NR_getppid 64 | ||
| 66 | #define __NR_getpgrp 65 | ||
| 67 | #define __NR_setsid 66 | ||
| 68 | #define __NR_sigaction 67 | ||
| 69 | #define __NR_sgetmask 68 | ||
| 70 | #define __NR_ssetmask 69 | ||
| 71 | #define __NR_setreuid 70 | ||
| 72 | #define __NR_setregid 71 | ||
| 73 | #define __NR_sigsuspend 72 | ||
| 74 | #define __NR_sigpending 73 | ||
| 75 | #define __NR_sethostname 74 | ||
| 76 | #define __NR_setrlimit 75 | ||
| 77 | #define __NR_getrlimit 76 | ||
| 78 | #define __NR_getrusage 77 | ||
| 79 | #define __NR_gettimeofday_time32 78 | ||
| 80 | #define __NR_settimeofday_time32 79 | ||
| 81 | #define __NR_getgroups 80 | ||
| 82 | #define __NR_setgroups 81 | ||
| 83 | #define __NR_select 82 | ||
| 84 | #define __NR_symlink 83 | ||
| 85 | #define __NR_oldlstat 84 | ||
| 86 | #define __NR_readlink 85 | ||
| 87 | #define __NR_uselib 86 | ||
| 88 | #define __NR_swapon 87 | ||
| 89 | #define __NR_reboot 88 | ||
| 90 | #define __NR_readdir 89 | ||
| 91 | #define __NR_mmap 90 | ||
| 92 | #define __NR_munmap 91 | ||
| 93 | #define __NR_truncate 92 | ||
| 94 | #define __NR_ftruncate 93 | ||
| 95 | #define __NR_fchmod 94 | ||
| 96 | #define __NR_fchown 95 | ||
| 97 | #define __NR_getpriority 96 | ||
| 98 | #define __NR_setpriority 97 | ||
| 99 | #define __NR_profil 98 | ||
| 100 | #define __NR_statfs 99 | ||
| 101 | #define __NR_fstatfs 100 | ||
| 102 | #define __NR_ioperm 101 | ||
| 103 | #define __NR_socketcall 102 | ||
| 104 | #define __NR_syslog 103 | ||
| 105 | #define __NR_setitimer 104 | ||
| 106 | #define __NR_getitimer 105 | ||
| 107 | #define __NR_stat 106 | ||
| 108 | #define __NR_lstat 107 | ||
| 109 | #define __NR_fstat 108 | ||
| 110 | #define __NR_olduname 109 | ||
| 111 | #define __NR_iopl 110 | ||
| 112 | #define __NR_vhangup 111 | ||
| 113 | #define __NR_idle 112 | ||
| 114 | #define __NR_vm86 113 | ||
| 115 | #define __NR_wait4 114 | ||
| 116 | #define __NR_swapoff 115 | ||
| 117 | #define __NR_sysinfo 116 | ||
| 118 | #define __NR_ipc 117 | ||
| 119 | #define __NR_fsync 118 | ||
| 120 | #define __NR_sigreturn 119 | ||
| 121 | #define __NR_clone 120 | ||
| 122 | #define __NR_setdomainname 121 | ||
| 123 | #define __NR_uname 122 | ||
| 124 | #define __NR_modify_ldt 123 | ||
| 125 | #define __NR_adjtimex 124 | ||
| 126 | #define __NR_mprotect 125 | ||
| 127 | #define __NR_sigprocmask 126 | ||
| 128 | #define __NR_create_module 127 | ||
| 129 | #define __NR_init_module 128 | ||
| 130 | #define __NR_delete_module 129 | ||
| 131 | #define __NR_get_kernel_syms 130 | ||
| 132 | #define __NR_quotactl 131 | ||
| 133 | #define __NR_getpgid 132 | ||
| 134 | #define __NR_fchdir 133 | ||
| 135 | #define __NR_bdflush 134 | ||
| 136 | #define __NR_sysfs 135 | ||
| 137 | #define __NR_personality 136 | ||
| 138 | #define __NR_afs_syscall 137 | ||
| 139 | #define __NR_setfsuid 138 | ||
| 140 | #define __NR_setfsgid 139 | ||
| 141 | #define __NR__llseek 140 | ||
| 142 | #define __NR_getdents 141 | ||
| 143 | #define __NR__newselect 142 | ||
| 144 | #define __NR_flock 143 | ||
| 145 | #define __NR_msync 144 | ||
| 146 | #define __NR_readv 145 | ||
| 147 | #define __NR_writev 146 | ||
| 148 | #define __NR_getsid 147 | ||
| 149 | #define __NR_fdatasync 148 | ||
| 150 | #define __NR__sysctl 149 | ||
| 151 | #define __NR_mlock 150 | ||
| 152 | #define __NR_munlock 151 | ||
| 153 | #define __NR_mlockall 152 | ||
| 154 | #define __NR_munlockall 153 | ||
| 155 | #define __NR_sched_setparam 154 | ||
| 156 | #define __NR_sched_getparam 155 | ||
| 157 | #define __NR_sched_setscheduler 156 | ||
| 158 | #define __NR_sched_getscheduler 157 | ||
| 159 | #define __NR_sched_yield 158 | ||
| 160 | #define __NR_sched_get_priority_max 159 | ||
| 161 | #define __NR_sched_get_priority_min 160 | ||
| 162 | #define __NR_sched_rr_get_interval 161 | ||
| 163 | #define __NR_nanosleep 162 | ||
| 164 | #define __NR_mremap 163 | ||
| 165 | #define __NR_setresuid 164 | ||
| 166 | #define __NR_getresuid 165 | ||
| 167 | #define __NR_query_module 166 | ||
| 168 | #define __NR_poll 167 | ||
| 169 | #define __NR_nfsservctl 168 | ||
| 170 | #define __NR_setresgid 169 | ||
| 171 | #define __NR_getresgid 170 | ||
| 172 | #define __NR_prctl 171 | ||
| 173 | #define __NR_rt_sigreturn 172 | ||
| 174 | #define __NR_rt_sigaction 173 | ||
| 175 | #define __NR_rt_sigprocmask 174 | ||
| 176 | #define __NR_rt_sigpending 175 | ||
| 177 | #define __NR_rt_sigtimedwait 176 | ||
| 178 | #define __NR_rt_sigqueueinfo 177 | ||
| 179 | #define __NR_rt_sigsuspend 178 | ||
| 180 | #define __NR_pread64 179 | ||
| 181 | #define __NR_pwrite64 180 | ||
| 182 | #define __NR_chown 181 | ||
| 183 | #define __NR_getcwd 182 | ||
| 184 | #define __NR_capget 183 | ||
| 185 | #define __NR_capset 184 | ||
| 186 | #define __NR_sigaltstack 185 | ||
| 187 | #define __NR_sendfile 186 | ||
| 188 | #define __NR_getpmsg 187 | ||
| 189 | #define __NR_putpmsg 188 | ||
| 190 | #define __NR_vfork 189 | ||
| 191 | #define __NR_ugetrlimit 190 | ||
| 192 | #define __NR_readahead 191 | ||
| 193 | #define __NR_mmap2 192 | ||
| 194 | #define __NR_truncate64 193 | ||
| 195 | #define __NR_ftruncate64 194 | ||
| 196 | #define __NR_stat64 195 | ||
| 197 | #define __NR_lstat64 196 | ||
| 198 | #define __NR_fstat64 197 | ||
| 199 | #define __NR_pciconfig_read 198 | ||
| 200 | #define __NR_pciconfig_write 199 | ||
| 201 | #define __NR_pciconfig_iobase 200 | ||
| 202 | #define __NR_multiplexer 201 | ||
| 203 | #define __NR_getdents64 202 | ||
| 204 | #define __NR_pivot_root 203 | ||
| 205 | #define __NR_fcntl64 204 | ||
| 206 | #define __NR_madvise 205 | ||
| 207 | #define __NR_mincore 206 | ||
| 208 | #define __NR_gettid 207 | ||
| 209 | #define __NR_tkill 208 | ||
| 210 | #define __NR_setxattr 209 | ||
| 211 | #define __NR_lsetxattr 210 | ||
| 212 | #define __NR_fsetxattr 211 | ||
| 213 | #define __NR_getxattr 212 | ||
| 214 | #define __NR_lgetxattr 213 | ||
| 215 | #define __NR_fgetxattr 214 | ||
| 216 | #define __NR_listxattr 215 | ||
| 217 | #define __NR_llistxattr 216 | ||
| 218 | #define __NR_flistxattr 217 | ||
| 219 | #define __NR_removexattr 218 | ||
| 220 | #define __NR_lremovexattr 219 | ||
| 221 | #define __NR_fremovexattr 220 | ||
| 222 | #define __NR_futex 221 | ||
| 223 | #define __NR_sched_setaffinity 222 | ||
| 224 | #define __NR_sched_getaffinity 223 | ||
| 225 | #define __NR_tuxcall 225 | ||
| 226 | #define __NR_sendfile64 226 | ||
| 227 | #define __NR_io_setup 227 | ||
| 228 | #define __NR_io_destroy 228 | ||
| 229 | #define __NR_io_getevents 229 | ||
| 230 | #define __NR_io_submit 230 | ||
| 231 | #define __NR_io_cancel 231 | ||
| 232 | #define __NR_set_tid_address 232 | ||
| 233 | #define __NR_fadvise64 233 | ||
| 234 | #define __NR_exit_group 234 | ||
| 235 | #define __NR_lookup_dcookie 235 | ||
| 236 | #define __NR_epoll_create 236 | ||
| 237 | #define __NR_epoll_ctl 237 | ||
| 238 | #define __NR_epoll_wait 238 | ||
| 239 | #define __NR_remap_file_pages 239 | ||
| 240 | #define __NR_timer_create 240 | ||
| 241 | #define __NR_timer_settime32 241 | ||
| 242 | #define __NR_timer_gettime32 242 | ||
| 243 | #define __NR_timer_getoverrun 243 | ||
| 244 | #define __NR_timer_delete 244 | ||
| 245 | #define __NR_clock_settime32 245 | ||
| 246 | #define __NR_clock_gettime32 246 | ||
| 247 | #define __NR_clock_getres_time32 247 | ||
| 248 | #define __NR_clock_nanosleep_time32 248 | ||
| 249 | #define __NR_swapcontext 249 | ||
| 250 | #define __NR_tgkill 250 | ||
| 251 | #define __NR_utimes 251 | ||
| 252 | #define __NR_statfs64 252 | ||
| 253 | #define __NR_fstatfs64 253 | ||
| 254 | #define __NR_fadvise64_64 254 | ||
| 255 | #define __NR_rtas		255 | ||
| 256 | #define __NR_sys_debug_setcontext 256 | ||
| 257 | #define __NR_migrate_pages	258 | ||
| 258 | #define __NR_mbind		259 | ||
| 259 | #define __NR_get_mempolicy	260 | ||
| 260 | #define __NR_set_mempolicy	261 | ||
| 261 | #define __NR_mq_open		262 | ||
| 262 | #define __NR_mq_unlink		263 | ||
| 263 | #define __NR_mq_timedsend	264 | ||
| 264 | #define __NR_mq_timedreceive	265 | ||
| 265 | #define __NR_mq_notify		266 | ||
| 266 | #define __NR_mq_getsetattr	267 | ||
| 267 | #define __NR_kexec_load		268 | ||
| 268 | #define __NR_add_key		269 | ||
| 269 | #define __NR_request_key	270 | ||
| 270 | #define __NR_keyctl		271 | ||
| 271 | #define __NR_waitid		272 | ||
| 272 | #define __NR_ioprio_set		273 | ||
| 273 | #define __NR_ioprio_get		274 | ||
| 274 | #define __NR_inotify_init	275 | ||
| 275 | #define __NR_inotify_add_watch	276 | ||
| 276 | #define __NR_inotify_rm_watch	277 | ||
| 277 | #define __NR_spu_run		278 | ||
| 278 | #define __NR_spu_create		279 | ||
| 279 | #define __NR_pselect6		280 | ||
| 280 | #define __NR_ppoll		281 | ||
| 281 | #define __NR_unshare		282 | ||
| 282 | #define __NR_splice		283 | ||
| 283 | #define __NR_tee		284 | ||
| 284 | #define __NR_vmsplice		285 | ||
| 285 | #define __NR_openat		286 | ||
| 286 | #define __NR_mkdirat		287 | ||
| 287 | #define __NR_mknodat		288 | ||
| 288 | #define __NR_fchownat		289 | ||
| 289 | #define __NR_futimesat		290 | ||
| 290 | #define __NR_fstatat64		291 | ||
| 291 | #define __NR_unlinkat		292 | ||
| 292 | #define __NR_renameat		293 | ||
| 293 | #define __NR_linkat		294 | ||
| 294 | #define __NR_symlinkat		295 | ||
| 295 | #define __NR_readlinkat		296 | ||
| 296 | #define __NR_fchmodat		297 | ||
| 297 | #define __NR_faccessat		298 | ||
| 298 | #define __NR_get_robust_list	299 | ||
| 299 | #define __NR_set_robust_list	300 | ||
| 300 | #define __NR_move_pages		301 | ||
| 301 | #define __NR_getcpu		302 | ||
| 302 | #define __NR_epoll_pwait	303 | ||
| 303 | #define __NR_utimensat		304 | ||
| 304 | #define __NR_signalfd		305 | ||
| 305 | #define __NR_timerfd_create 306 | ||
| 306 | #define __NR_eventfd		307 | ||
| 307 | #define __NR_sync_file_range2	308 | ||
| 308 | #define __NR_fallocate		309 | ||
| 309 | #define __NR_subpage_prot		310 | ||
| 310 | #define __NR_timerfd_settime32	311 | ||
| 311 | #define __NR_timerfd_gettime32	312 | ||
| 312 | #define __NR_signalfd4		313 | ||
| 313 | #define __NR_eventfd2		314 | ||
| 314 | #define __NR_epoll_create1	315 | ||
| 315 | #define __NR_dup3			316 | ||
| 316 | #define __NR_pipe2		317 | ||
| 317 | #define __NR_inotify_init1	318 | ||
| 318 | #define __NR_perf_event_open 319 | ||
| 319 | #define __NR_preadv 320 | ||
| 320 | #define __NR_pwritev 321 | ||
| 321 | #define __NR_rt_tgsigqueueinfo 322 | ||
| 322 | #define __NR_fanotify_init 323 | ||
| 323 | #define __NR_fanotify_mark 324 | ||
| 324 | #define __NR_prlimit64 325 | ||
| 325 | #define __NR_socket 326 | ||
| 326 | #define __NR_bind 327 | ||
| 327 | #define __NR_connect 328 | ||
| 328 | #define __NR_listen 329 | ||
| 329 | #define __NR_accept 330 | ||
| 330 | #define __NR_getsockname 331 | ||
| 331 | #define __NR_getpeername 332 | ||
| 332 | #define __NR_socketpair 333 | ||
| 333 | #define __NR_send 334 | ||
| 334 | #define __NR_sendto 335 | ||
| 335 | #define __NR_recv 336 | ||
| 336 | #define __NR_recvfrom 337 | ||
| 337 | #define __NR_shutdown 338 | ||
| 338 | #define __NR_setsockopt 339 | ||
| 339 | #define __NR_getsockopt 340 | ||
| 340 | #define __NR_sendmsg 341 | ||
| 341 | #define __NR_recvmsg 342 | ||
| 342 | #define __NR_recvmmsg 343 | ||
| 343 | #define __NR_accept4 344 | ||
| 344 | #define __NR_name_to_handle_at 345 | ||
| 345 | #define __NR_open_by_handle_at 346 | ||
| 346 | #define __NR_clock_adjtime 347 | ||
| 347 | #define __NR_syncfs 348 | ||
| 348 | #define __NR_sendmmsg 349 | ||
| 349 | #define __NR_setns 350 | ||
| 350 | #define __NR_process_vm_readv 351 | ||
| 351 | #define __NR_process_vm_writev 352 | ||
| 352 | #define __NR_finit_module 353 | ||
| 353 | #define __NR_kcmp 354 | ||
| 354 | #define __NR_sched_setattr 355 | ||
| 355 | #define __NR_sched_getattr 356 | ||
| 356 | #define __NR_renameat2 357 | ||
| 357 | #define __NR_seccomp 358 | ||
| 358 | #define __NR_getrandom 359 | ||
| 359 | #define __NR_memfd_create 360 | ||
| 360 | #define __NR_bpf 361 | ||
| 361 | #define __NR_execveat 362 | ||
| 362 | #define __NR_switch_endian 363 | ||
| 363 | #define __NR_userfaultfd 364 | ||
| 364 | #define __NR_membarrier 365 | ||
| 365 | #define __NR_mlock2 378 | ||
| 366 | #define __NR_copy_file_range 379 | ||
| 367 | #define __NR_preadv2 380 | ||
| 368 | #define __NR_pwritev2 381 | ||
| 369 | #define __NR_kexec_file_load 382 | ||
| 370 | #define __NR_statx 383 | ||
| 371 | #define __NR_pkey_alloc 384 | ||
| 372 | #define __NR_pkey_free 385 | ||
| 373 | #define __NR_pkey_mprotect 386 | ||
| 374 | #define __NR_rseq 387 | ||
| 375 | #define __NR_io_pgetevents 388 | ||
| 376 | #define __NR_semget 393 | ||
| 377 | #define __NR_semctl 394 | ||
| 378 | #define __NR_shmget 395 | ||
| 379 | #define __NR_shmctl 396 | ||
| 380 | #define __NR_shmat 397 | ||
| 381 | #define __NR_shmdt 398 | ||
| 382 | #define __NR_msgget 399 | ||
| 383 | #define __NR_msgsnd 400 | ||
| 384 | #define __NR_msgrcv 401 | ||
| 385 | #define __NR_msgctl 402 | ||
| 386 | #define __NR_clock_gettime64 403 | ||
| 387 | #define __NR_clock_settime64 404 | ||
| 388 | #define __NR_clock_adjtime64 405 | ||
| 389 | #define __NR_clock_getres_time64 406 | ||
| 390 | #define __NR_clock_nanosleep_time64 407 | ||
| 391 | #define __NR_timer_gettime64 408 | ||
| 392 | #define __NR_timer_settime64 409 | ||
| 393 | #define __NR_timerfd_gettime64 410 | ||
| 394 | #define __NR_timerfd_settime64 411 | ||
| 395 | #define __NR_utimensat_time64 412 | ||
| 396 | #define __NR_pselect6_time64 413 | ||
| 397 | #define __NR_ppoll_time64 414 | ||
| 398 | #define __NR_io_pgetevents_time64 416 | ||
| 399 | #define __NR_recvmmsg_time64 417 | ||
| 400 | #define __NR_mq_timedsend_time64 418 | ||
| 401 | #define __NR_mq_timedreceive_time64 419 | ||
| 402 | #define __NR_semtimedop_time64 420 | ||
| 403 | #define __NR_rt_sigtimedwait_time64 421 | ||
| 404 | #define __NR_futex_time64 422 | ||
| 405 | #define __NR_sched_rr_get_interval_time64 423 | ||
| 406 | #define __NR_pidfd_send_signal 424 | ||
| 407 | #define __NR_io_uring_setup 425 | ||
| 408 | #define __NR_io_uring_enter 426 | ||
| 409 | #define __NR_io_uring_register 427 | ||
| 410 | #define __NR_open_tree		428 | ||
| 411 | #define __NR_move_mount		429 | ||
| 412 | #define __NR_fsopen		430 | ||
| 413 | #define __NR_fsconfig		431 | ||
| 414 | #define __NR_fsmount		432 | ||
| 415 | #define __NR_fspick		433 | ||
| 416 | #define __NR_pidfd_open		434 | ||
| 417 | #define __NR_clone3		435 | ||
| 418 | #define __NR_close_range	436 | ||
| 419 | #define __NR_openat2		437 | ||
| 420 | #define __NR_pidfd_getfd	438 | ||
| 421 | #define __NR_faccessat2		439 | ||
| 422 | #define __NR_process_madvise	440 | ||
| 423 | #define __NR_epoll_pwait2	441 | ||
| 424 | #define __NR_mount_setattr	442 | ||
| 425 | #define __NR_landlock_create_ruleset	444 | ||
| 426 | #define __NR_landlock_add_rule	445 | ||
| 427 | #define __NR_landlock_restrict_self	446 | ||
| 428 | #define __NR_process_mrelease	448 | ||
| 429 | #define __NR_futex_waitv	449 | ||
| 430 | #define __NR_set_mempolicy_home_node	450 | ||
| 431 | #define __NR_cachestat		451 | ||
| 432 | #define __NR_fchmodat2		452 | ||
| 433 | |||
lib/libc/musl/arch/powerpc64/bits/alltypes.h.in deleted-20| ... | @@ -1,20 +0,0 @@ | ||
| 1 | #define _Addr long | ||
| 2 | #define _Int64 long | ||
| 3 | #define _Reg long | ||
| 4 | |||
| 5 | #if __BIG_ENDIAN__ | ||
| 6 | #define __BYTE_ORDER 4321 | ||
| 7 | #else | ||
| 8 | #define __BYTE_ORDER 1234 | ||
| 9 | #endif | ||
| 10 | |||
| 11 | #define __LONG_MAX 0x7fffffffffffffffL | ||
| 12 | |||
| 13 | #ifndef __cplusplus | ||
| 14 | TYPEDEF int wchar_t; | ||
| 15 | #endif | ||
| 16 | |||
| 17 | TYPEDEF float float_t; | ||
| 18 | TYPEDEF double double_t; | ||
| 19 | |||
| 20 | TYPEDEF struct { long long __ll; long double __ld; } max_align_t; | ||
lib/libc/musl/arch/powerpc64/bits/syscall.h.in deleted-405| ... | @@ -1,405 +0,0 @@ | ||
| 1 | #define __NR_restart_syscall 0 | ||
| 2 | #define __NR_exit 1 | ||
| 3 | #define __NR_fork 2 | ||
| 4 | #define __NR_read 3 | ||
| 5 | #define __NR_write 4 | ||
| 6 | #define __NR_open 5 | ||
| 7 | #define __NR_close 6 | ||
| 8 | #define __NR_waitpid 7 | ||
| 9 | #define __NR_creat 8 | ||
| 10 | #define __NR_link 9 | ||
| 11 | #define __NR_unlink 10 | ||
| 12 | #define __NR_execve 11 | ||
| 13 | #define __NR_chdir 12 | ||
| 14 | #define __NR_time 13 | ||
| 15 | #define __NR_mknod 14 | ||
| 16 | #define __NR_chmod 15 | ||
| 17 | #define __NR_lchown 16 | ||
| 18 | #define __NR_break 17 | ||
| 19 | #define __NR_oldstat 18 | ||
| 20 | #define __NR_lseek 19 | ||
| 21 | #define __NR_getpid 20 | ||
| 22 | #define __NR_mount 21 | ||
| 23 | #define __NR_umount 22 | ||
| 24 | #define __NR_setuid 23 | ||
| 25 | #define __NR_getuid 24 | ||
| 26 | #define __NR_stime 25 | ||
| 27 | #define __NR_ptrace 26 | ||
| 28 | #define __NR_alarm 27 | ||
| 29 | #define __NR_oldfstat 28 | ||
| 30 | #define __NR_pause 29 | ||
| 31 | #define __NR_utime 30 | ||
| 32 | #define __NR_stty 31 | ||
| 33 | #define __NR_gtty 32 | ||
| 34 | #define __NR_access 33 | ||
| 35 | #define __NR_nice 34 | ||
| 36 | #define __NR_ftime 35 | ||
| 37 | #define __NR_sync 36 | ||
| 38 | #define __NR_kill 37 | ||
| 39 | #define __NR_rename 38 | ||
| 40 | #define __NR_mkdir 39 | ||
| 41 | #define __NR_rmdir 40 | ||
| 42 | #define __NR_dup 41 | ||
| 43 | #define __NR_pipe 42 | ||
| 44 | #define __NR_times 43 | ||
| 45 | #define __NR_prof 44 | ||
| 46 | #define __NR_brk 45 | ||
| 47 | #define __NR_setgid 46 | ||
| 48 | #define __NR_getgid 47 | ||
| 49 | #define __NR_signal 48 | ||
| 50 | #define __NR_geteuid 49 | ||
| 51 | #define __NR_getegid 50 | ||
| 52 | #define __NR_acct 51 | ||
| 53 | #define __NR_umount2 52 | ||
| 54 | #define __NR_lock 53 | ||
| 55 | #define __NR_ioctl 54 | ||
| 56 | #define __NR_fcntl 55 | ||
| 57 | #define __NR_mpx 56 | ||
| 58 | #define __NR_setpgid 57 | ||
| 59 | #define __NR_ulimit 58 | ||
| 60 | #define __NR_oldolduname 59 | ||
| 61 | #define __NR_umask 60 | ||
| 62 | #define __NR_chroot 61 | ||
| 63 | #define __NR_ustat 62 | ||
| 64 | #define __NR_dup2 63 | ||
| 65 | #define __NR_getppid 64 | ||
| 66 | #define __NR_getpgrp 65 | ||
| 67 | #define __NR_setsid 66 | ||
| 68 | #define __NR_sigaction 67 | ||
| 69 | #define __NR_sgetmask 68 | ||
| 70 | #define __NR_ssetmask 69 | ||
| 71 | #define __NR_setreuid 70 | ||
| 72 | #define __NR_setregid 71 | ||
| 73 | #define __NR_sigsuspend 72 | ||
| 74 | #define __NR_sigpending 73 | ||
| 75 | #define __NR_sethostname 74 | ||
| 76 | #define __NR_setrlimit 75 | ||
| 77 | #define __NR_getrlimit 76 | ||
| 78 | #define __NR_getrusage 77 | ||
| 79 | #define __NR_gettimeofday 78 | ||
| 80 | #define __NR_settimeofday 79 | ||
| 81 | #define __NR_getgroups 80 | ||
| 82 | #define __NR_setgroups 81 | ||
| 83 | #define __NR_select 82 | ||
| 84 | #define __NR_symlink 83 | ||
| 85 | #define __NR_oldlstat 84 | ||
| 86 | #define __NR_readlink 85 | ||
| 87 | #define __NR_uselib 86 | ||
| 88 | #define __NR_swapon 87 | ||
| 89 | #define __NR_reboot 88 | ||
| 90 | #define __NR_readdir 89 | ||
| 91 | #define __NR_mmap 90 | ||
| 92 | #define __NR_munmap 91 | ||
| 93 | #define __NR_truncate 92 | ||
| 94 | #define __NR_ftruncate 93 | ||
| 95 | #define __NR_fchmod 94 | ||
| 96 | #define __NR_fchown 95 | ||
| 97 | #define __NR_getpriority 96 | ||
| 98 | #define __NR_setpriority 97 | ||
| 99 | #define __NR_profil 98 | ||
| 100 | #define __NR_statfs 99 | ||
| 101 | #define __NR_fstatfs 100 | ||
| 102 | #define __NR_ioperm 101 | ||
| 103 | #define __NR_socketcall 102 | ||
| 104 | #define __NR_syslog 103 | ||
| 105 | #define __NR_setitimer 104 | ||
| 106 | #define __NR_getitimer 105 | ||
| 107 | #define __NR_stat 106 | ||
| 108 | #define __NR_lstat 107 | ||
| 109 | #define __NR_fstat 108 | ||
| 110 | #define __NR_olduname 109 | ||
| 111 | #define __NR_iopl 110 | ||
| 112 | #define __NR_vhangup 111 | ||
| 113 | #define __NR_idle 112 | ||
| 114 | #define __NR_vm86 113 | ||
| 115 | #define __NR_wait4 114 | ||
| 116 | #define __NR_swapoff 115 | ||
| 117 | #define __NR_sysinfo 116 | ||
| 118 | #define __NR_ipc 117 | ||
| 119 | #define __NR_fsync 118 | ||
| 120 | #define __NR_sigreturn 119 | ||
| 121 | #define __NR_clone 120 | ||
| 122 | #define __NR_setdomainname 121 | ||
| 123 | #define __NR_uname 122 | ||
| 124 | #define __NR_modify_ldt 123 | ||
| 125 | #define __NR_adjtimex 124 | ||
| 126 | #define __NR_mprotect 125 | ||
| 127 | #define __NR_sigprocmask 126 | ||
| 128 | #define __NR_create_module 127 | ||
| 129 | #define __NR_init_module 128 | ||
| 130 | #define __NR_delete_module 129 | ||
| 131 | #define __NR_get_kernel_syms 130 | ||
| 132 | #define __NR_quotactl 131 | ||
| 133 | #define __NR_getpgid 132 | ||
| 134 | #define __NR_fchdir 133 | ||
| 135 | #define __NR_bdflush 134 | ||
| 136 | #define __NR_sysfs 135 | ||
| 137 | #define __NR_personality 136 | ||
| 138 | #define __NR_afs_syscall 137 | ||
| 139 | #define __NR_setfsuid 138 | ||
| 140 | #define __NR_setfsgid 139 | ||
| 141 | #define __NR__llseek 140 | ||
| 142 | #define __NR_getdents 141 | ||
| 143 | #define __NR__newselect 142 | ||
| 144 | #define __NR_flock 143 | ||
| 145 | #define __NR_msync 144 | ||
| 146 | #define __NR_readv 145 | ||
| 147 | #define __NR_writev 146 | ||
| 148 | #define __NR_getsid 147 | ||
| 149 | #define __NR_fdatasync 148 | ||
| 150 | #define __NR__sysctl 149 | ||
| 151 | #define __NR_mlock 150 | ||
| 152 | #define __NR_munlock 151 | ||
| 153 | #define __NR_mlockall 152 | ||
| 154 | #define __NR_munlockall 153 | ||
| 155 | #define __NR_sched_setparam 154 | ||
| 156 | #define __NR_sched_getparam 155 | ||
| 157 | #define __NR_sched_setscheduler 156 | ||
| 158 | #define __NR_sched_getscheduler 157 | ||
| 159 | #define __NR_sched_yield 158 | ||
| 160 | #define __NR_sched_get_priority_max 159 | ||
| 161 | #define __NR_sched_get_priority_min 160 | ||
| 162 | #define __NR_sched_rr_get_interval 161 | ||
| 163 | #define __NR_nanosleep 162 | ||
| 164 | #define __NR_mremap 163 | ||
| 165 | #define __NR_setresuid 164 | ||
| 166 | #define __NR_getresuid 165 | ||
| 167 | #define __NR_query_module 166 | ||
| 168 | #define __NR_poll 167 | ||
| 169 | #define __NR_nfsservctl 168 | ||
| 170 | #define __NR_setresgid 169 | ||
| 171 | #define __NR_getresgid 170 | ||
| 172 | #define __NR_prctl 171 | ||
| 173 | #define __NR_rt_sigreturn 172 | ||
| 174 | #define __NR_rt_sigaction 173 | ||
| 175 | #define __NR_rt_sigprocmask 174 | ||
| 176 | #define __NR_rt_sigpending 175 | ||
| 177 | #define __NR_rt_sigtimedwait 176 | ||
| 178 | #define __NR_rt_sigqueueinfo 177 | ||
| 179 | #define __NR_rt_sigsuspend 178 | ||
| 180 | #define __NR_pread64 179 | ||
| 181 | #define __NR_pwrite64 180 | ||
| 182 | #define __NR_chown 181 | ||
| 183 | #define __NR_getcwd 182 | ||
| 184 | #define __NR_capget 183 | ||
| 185 | #define __NR_capset 184 | ||
| 186 | #define __NR_sigaltstack 185 | ||
| 187 | #define __NR_sendfile 186 | ||
| 188 | #define __NR_getpmsg 187 | ||
| 189 | #define __NR_putpmsg 188 | ||
| 190 | #define __NR_vfork 189 | ||
| 191 | #define __NR_ugetrlimit 190 | ||
| 192 | #define __NR_readahead 191 | ||
| 193 | #define __NR_pciconfig_read 198 | ||
| 194 | #define __NR_pciconfig_write 199 | ||
| 195 | #define __NR_pciconfig_iobase 200 | ||
| 196 | #define __NR_multiplexer 201 | ||
| 197 | #define __NR_getdents64 202 | ||
| 198 | #define __NR_pivot_root 203 | ||
| 199 | #define __NR_madvise 205 | ||
| 200 | #define __NR_mincore 206 | ||
| 201 | #define __NR_gettid 207 | ||
| 202 | #define __NR_tkill 208 | ||
| 203 | #define __NR_setxattr 209 | ||
| 204 | #define __NR_lsetxattr 210 | ||
| 205 | #define __NR_fsetxattr 211 | ||
| 206 | #define __NR_getxattr 212 | ||
| 207 | #define __NR_lgetxattr 213 | ||
| 208 | #define __NR_fgetxattr 214 | ||
| 209 | #define __NR_listxattr 215 | ||
| 210 | #define __NR_llistxattr 216 | ||
| 211 | #define __NR_flistxattr 217 | ||
| 212 | #define __NR_removexattr 218 | ||
| 213 | #define __NR_lremovexattr 219 | ||
| 214 | #define __NR_fremovexattr 220 | ||
| 215 | #define __NR_futex 221 | ||
| 216 | #define __NR_sched_setaffinity 222 | ||
| 217 | #define __NR_sched_getaffinity 223 | ||
| 218 | #define __NR_tuxcall 225 | ||
| 219 | #define __NR_io_setup 227 | ||
| 220 | #define __NR_io_destroy 228 | ||
| 221 | #define __NR_io_getevents 229 | ||
| 222 | #define __NR_io_submit 230 | ||
| 223 | #define __NR_io_cancel 231 | ||
| 224 | #define __NR_set_tid_address 232 | ||
| 225 | #define __NR_fadvise64 233 | ||
| 226 | #define __NR_exit_group 234 | ||
| 227 | #define __NR_lookup_dcookie 235 | ||
| 228 | #define __NR_epoll_create 236 | ||
| 229 | #define __NR_epoll_ctl 237 | ||
| 230 | #define __NR_epoll_wait 238 | ||
| 231 | #define __NR_remap_file_pages 239 | ||
| 232 | #define __NR_timer_create 240 | ||
| 233 | #define __NR_timer_settime 241 | ||
| 234 | #define __NR_timer_gettime 242 | ||
| 235 | #define __NR_timer_getoverrun 243 | ||
| 236 | #define __NR_timer_delete 244 | ||
| 237 | #define __NR_clock_settime 245 | ||
| 238 | #define __NR_clock_gettime 246 | ||
| 239 | #define __NR_clock_getres 247 | ||
| 240 | #define __NR_clock_nanosleep 248 | ||
| 241 | #define __NR_swapcontext 249 | ||
| 242 | #define __NR_tgkill 250 | ||
| 243 | #define __NR_utimes 251 | ||
| 244 | #define __NR_statfs64 252 | ||
| 245 | #define __NR_fstatfs64 253 | ||
| 246 | #define __NR_rtas 255 | ||
| 247 | #define __NR_sys_debug_setcontext 256 | ||
| 248 | #define __NR_migrate_pages 258 | ||
| 249 | #define __NR_mbind 259 | ||
| 250 | #define __NR_get_mempolicy 260 | ||
| 251 | #define __NR_set_mempolicy 261 | ||
| 252 | #define __NR_mq_open 262 | ||
| 253 | #define __NR_mq_unlink 263 | ||
| 254 | #define __NR_mq_timedsend 264 | ||
| 255 | #define __NR_mq_timedreceive 265 | ||
| 256 | #define __NR_mq_notify 266 | ||
| 257 | #define __NR_mq_getsetattr 267 | ||
| 258 | #define __NR_kexec_load 268 | ||
| 259 | #define __NR_add_key 269 | ||
| 260 | #define __NR_request_key 270 | ||
| 261 | #define __NR_keyctl 271 | ||
| 262 | #define __NR_waitid 272 | ||
| 263 | #define __NR_ioprio_set 273 | ||
| 264 | #define __NR_ioprio_get 274 | ||
| 265 | #define __NR_inotify_init 275 | ||
| 266 | #define __NR_inotify_add_watch 276 | ||
| 267 | #define __NR_inotify_rm_watch 277 | ||
| 268 | #define __NR_spu_run 278 | ||
| 269 | #define __NR_spu_create 279 | ||
| 270 | #define __NR_pselect6 280 | ||
| 271 | #define __NR_ppoll 281 | ||
| 272 | #define __NR_unshare 282 | ||
| 273 | #define __NR_splice 283 | ||
| 274 | #define __NR_tee 284 | ||
| 275 | #define __NR_vmsplice 285 | ||
| 276 | #define __NR_openat 286 | ||
| 277 | #define __NR_mkdirat 287 | ||
| 278 | #define __NR_mknodat 288 | ||
| 279 | #define __NR_fchownat 289 | ||
| 280 | #define __NR_futimesat 290 | ||
| 281 | #define __NR_newfstatat 291 | ||
| 282 | #define __NR_unlinkat 292 | ||
| 283 | #define __NR_renameat 293 | ||
| 284 | #define __NR_linkat 294 | ||
| 285 | #define __NR_symlinkat 295 | ||
| 286 | #define __NR_readlinkat 296 | ||
| 287 | #define __NR_fchmodat 297 | ||
| 288 | #define __NR_faccessat 298 | ||
| 289 | #define __NR_get_robust_list 299 | ||
| 290 | #define __NR_set_robust_list 300 | ||
| 291 | #define __NR_move_pages 301 | ||
| 292 | #define __NR_getcpu 302 | ||
| 293 | #define __NR_epoll_pwait 303 | ||
| 294 | #define __NR_utimensat 304 | ||
| 295 | #define __NR_signalfd 305 | ||
| 296 | #define __NR_timerfd_create 306 | ||
| 297 | #define __NR_eventfd 307 | ||
| 298 | #define __NR_sync_file_range2 308 | ||
| 299 | #define __NR_fallocate 309 | ||
| 300 | #define __NR_subpage_prot 310 | ||
| 301 | #define __NR_timerfd_settime 311 | ||
| 302 | #define __NR_timerfd_gettime 312 | ||
| 303 | #define __NR_signalfd4 313 | ||
| 304 | #define __NR_eventfd2 314 | ||
| 305 | #define __NR_epoll_create1 315 | ||
| 306 | #define __NR_dup3 316 | ||
| 307 | #define __NR_pipe2 317 | ||
| 308 | #define __NR_inotify_init1 318 | ||
| 309 | #define __NR_perf_event_open 319 | ||
| 310 | #define __NR_preadv 320 | ||
| 311 | #define __NR_pwritev 321 | ||
| 312 | #define __NR_rt_tgsigqueueinfo 322 | ||
| 313 | #define __NR_fanotify_init 323 | ||
| 314 | #define __NR_fanotify_mark 324 | ||
| 315 | #define __NR_prlimit64 325 | ||
| 316 | #define __NR_socket 326 | ||
| 317 | #define __NR_bind 327 | ||
| 318 | #define __NR_connect 328 | ||
| 319 | #define __NR_listen 329 | ||
| 320 | #define __NR_accept 330 | ||
| 321 | #define __NR_getsockname 331 | ||
| 322 | #define __NR_getpeername 332 | ||
| 323 | #define __NR_socketpair 333 | ||
| 324 | #define __NR_send 334 | ||
| 325 | #define __NR_sendto 335 | ||
| 326 | #define __NR_recv 336 | ||
| 327 | #define __NR_recvfrom 337 | ||
| 328 | #define __NR_shutdown 338 | ||
| 329 | #define __NR_setsockopt 339 | ||
| 330 | #define __NR_getsockopt 340 | ||
| 331 | #define __NR_sendmsg 341 | ||
| 332 | #define __NR_recvmsg 342 | ||
| 333 | #define __NR_recvmmsg 343 | ||
| 334 | #define __NR_accept4 344 | ||
| 335 | #define __NR_name_to_handle_at 345 | ||
| 336 | #define __NR_open_by_handle_at 346 | ||
| 337 | #define __NR_clock_adjtime 347 | ||
| 338 | #define __NR_syncfs 348 | ||
| 339 | #define __NR_sendmmsg 349 | ||
| 340 | #define __NR_setns 350 | ||
| 341 | #define __NR_process_vm_readv 351 | ||
| 342 | #define __NR_process_vm_writev 352 | ||
| 343 | #define __NR_finit_module 353 | ||
| 344 | #define __NR_kcmp 354 | ||
| 345 | #define __NR_sched_setattr 355 | ||
| 346 | #define __NR_sched_getattr 356 | ||
| 347 | #define __NR_renameat2 357 | ||
| 348 | #define __NR_seccomp 358 | ||
| 349 | #define __NR_getrandom 359 | ||
| 350 | #define __NR_memfd_create 360 | ||
| 351 | #define __NR_bpf 361 | ||
| 352 | #define __NR_execveat 362 | ||
| 353 | #define __NR_switch_endian 363 | ||
| 354 | #define __NR_userfaultfd 364 | ||
| 355 | #define __NR_membarrier 365 | ||
| 356 | #define __NR_mlock2 378 | ||
| 357 | #define __NR_copy_file_range 379 | ||
| 358 | #define __NR_preadv2 380 | ||
| 359 | #define __NR_pwritev2 381 | ||
| 360 | #define __NR_kexec_file_load 382 | ||
| 361 | #define __NR_statx 383 | ||
| 362 | #define __NR_pkey_alloc 384 | ||
| 363 | #define __NR_pkey_free 385 | ||
| 364 | #define __NR_pkey_mprotect 386 | ||
| 365 | #define __NR_rseq 387 | ||
| 366 | #define __NR_io_pgetevents 388 | ||
| 367 | #define __NR_semtimedop 392 | ||
| 368 | #define __NR_semget 393 | ||
| 369 | #define __NR_semctl 394 | ||
| 370 | #define __NR_shmget 395 | ||
| 371 | #define __NR_shmctl 396 | ||
| 372 | #define __NR_shmat 397 | ||
| 373 | #define __NR_shmdt 398 | ||
| 374 | #define __NR_msgget 399 | ||
| 375 | #define __NR_msgsnd 400 | ||
| 376 | #define __NR_msgrcv 401 | ||
| 377 | #define __NR_msgctl 402 | ||
| 378 | #define __NR_pidfd_send_signal 424 | ||
| 379 | #define __NR_io_uring_setup 425 | ||
| 380 | #define __NR_io_uring_enter 426 | ||
| 381 | #define __NR_io_uring_register 427 | ||
| 382 | #define __NR_open_tree		428 | ||
| 383 | #define __NR_move_mount		429 | ||
| 384 | #define __NR_fsopen		430 | ||
| 385 | #define __NR_fsconfig		431 | ||
| 386 | #define __NR_fsmount		432 | ||
| 387 | #define __NR_fspick		433 | ||
| 388 | #define __NR_pidfd_open		434 | ||
| 389 | #define __NR_clone3		435 | ||
| 390 | #define __NR_close_range	436 | ||
| 391 | #define __NR_openat2		437 | ||
| 392 | #define __NR_pidfd_getfd	438 | ||
| 393 | #define __NR_faccessat2		439 | ||
| 394 | #define __NR_process_madvise	440 | ||
| 395 | #define __NR_epoll_pwait2	441 | ||
| 396 | #define __NR_mount_setattr	442 | ||
| 397 | #define __NR_landlock_create_ruleset	444 | ||
| 398 | #define __NR_landlock_add_rule	445 | ||
| 399 | #define __NR_landlock_restrict_self	446 | ||
| 400 | #define __NR_process_mrelease	448 | ||
| 401 | #define __NR_futex_waitv	449 | ||
| 402 | #define __NR_set_mempolicy_home_node	450 | ||
| 403 | #define __NR_cachestat		451 | ||
| 404 | #define __NR_fchmodat2		452 | ||
| 405 | |||
lib/libc/musl/arch/riscv32/bits/alltypes.h.in deleted-18| ... | @@ -1,18 +0,0 @@ | ||
| 1 | #define _Addr int | ||
| 2 | #define _Int64 long long | ||
| 3 | #define _Reg int | ||
| 4 | |||
| 5 | #define __BYTE_ORDER 1234 | ||
| 6 | #define __LONG_MAX 0x7fffffffL | ||
| 7 | |||
| 8 | #ifndef __cplusplus | ||
| 9 | TYPEDEF int wchar_t; | ||
| 10 | #endif | ||
| 11 | |||
| 12 | TYPEDEF int blksize_t; | ||
| 13 | TYPEDEF unsigned int nlink_t; | ||
| 14 | |||
| 15 | TYPEDEF float float_t; | ||
| 16 | TYPEDEF double double_t; | ||
| 17 | |||
| 18 | TYPEDEF struct { long long __ll; long double __ld; } max_align_t; | ||
lib/libc/musl/arch/riscv32/bits/syscall.h.in deleted-300| ... | @@ -1,300 +0,0 @@ | ||
| 1 | #define __NR_io_setup 0 | ||
| 2 | #define __NR_io_destroy 1 | ||
| 3 | #define __NR_io_submit 2 | ||
| 4 | #define __NR_io_cancel 3 | ||
| 5 | #define __NR_setxattr 5 | ||
| 6 | #define __NR_lsetxattr 6 | ||
| 7 | #define __NR_fsetxattr 7 | ||
| 8 | #define __NR_getxattr 8 | ||
| 9 | #define __NR_lgetxattr 9 | ||
| 10 | #define __NR_fgetxattr 10 | ||
| 11 | #define __NR_listxattr 11 | ||
| 12 | #define __NR_llistxattr 12 | ||
| 13 | #define __NR_flistxattr 13 | ||
| 14 | #define __NR_removexattr 14 | ||
| 15 | #define __NR_lremovexattr 15 | ||
| 16 | #define __NR_fremovexattr 16 | ||
| 17 | #define __NR_getcwd 17 | ||
| 18 | #define __NR_lookup_dcookie 18 | ||
| 19 | #define __NR_eventfd2 19 | ||
| 20 | #define __NR_epoll_create1 20 | ||
| 21 | #define __NR_epoll_ctl 21 | ||
| 22 | #define __NR_epoll_pwait 22 | ||
| 23 | #define __NR_dup 23 | ||
| 24 | #define __NR_dup3 24 | ||
| 25 | #define __NR_fcntl64 25 | ||
| 26 | #define __NR_inotify_init1 26 | ||
| 27 | #define __NR_inotify_add_watch 27 | ||
| 28 | #define __NR_inotify_rm_watch 28 | ||
| 29 | #define __NR_ioctl 29 | ||
| 30 | #define __NR_ioprio_set 30 | ||
| 31 | #define __NR_ioprio_get 31 | ||
| 32 | #define __NR_flock 32 | ||
| 33 | #define __NR_mknodat 33 | ||
| 34 | #define __NR_mkdirat 34 | ||
| 35 | #define __NR_unlinkat 35 | ||
| 36 | #define __NR_symlinkat 36 | ||
| 37 | #define __NR_linkat 37 | ||
| 38 | #define __NR_umount2 39 | ||
| 39 | #define __NR_mount 40 | ||
| 40 | #define __NR_pivot_root 41 | ||
| 41 | #define __NR_nfsservctl 42 | ||
| 42 | #define __NR_statfs64 43 | ||
| 43 | #define __NR_fstatfs64 44 | ||
| 44 | #define __NR_truncate64 45 | ||
| 45 | #define __NR_ftruncate64 46 | ||
| 46 | #define __NR_fallocate 47 | ||
| 47 | #define __NR_faccessat 48 | ||
| 48 | #define __NR_chdir 49 | ||
| 49 | #define __NR_fchdir 50 | ||
| 50 | #define __NR_chroot 51 | ||
| 51 | #define __NR_fchmod 52 | ||
| 52 | #define __NR_fchmodat 53 | ||
| 53 | #define __NR_fchownat 54 | ||
| 54 | #define __NR_fchown 55 | ||
| 55 | #define __NR_openat 56 | ||
| 56 | #define __NR_close 57 | ||
| 57 | #define __NR_vhangup 58 | ||
| 58 | #define __NR_pipe2 59 | ||
| 59 | #define __NR_quotactl 60 | ||
| 60 | #define __NR_getdents64 61 | ||
| 61 | #define __NR__llseek 62 | ||
| 62 | #define __NR_read 63 | ||
| 63 | #define __NR_write 64 | ||
| 64 | #define __NR_readv 65 | ||
| 65 | #define __NR_writev 66 | ||
| 66 | #define __NR_pread64 67 | ||
| 67 | #define __NR_pwrite64 68 | ||
| 68 | #define __NR_preadv 69 | ||
| 69 | #define __NR_pwritev 70 | ||
| 70 | #define __NR_sendfile64 71 | ||
| 71 | #define __NR_signalfd4 74 | ||
| 72 | #define __NR_vmsplice 75 | ||
| 73 | #define __NR_splice 76 | ||
| 74 | #define __NR_tee 77 | ||
| 75 | #define __NR_readlinkat 78 | ||
| 76 | #define __NR_sync 81 | ||
| 77 | #define __NR_fsync 82 | ||
| 78 | #define __NR_fdatasync 83 | ||
| 79 | #define __NR_sync_file_range 84 | ||
| 80 | #define __NR_timerfd_create 85 | ||
| 81 | #define __NR_acct 89 | ||
| 82 | #define __NR_capget 90 | ||
| 83 | #define __NR_capset 91 | ||
| 84 | #define __NR_personality 92 | ||
| 85 | #define __NR_exit 93 | ||
| 86 | #define __NR_exit_group 94 | ||
| 87 | #define __NR_waitid 95 | ||
| 88 | #define __NR_set_tid_address 96 | ||
| 89 | #define __NR_unshare 97 | ||
| 90 | #define __NR_set_robust_list 99 | ||
| 91 | #define __NR_get_robust_list 100 | ||
| 92 | #define __NR_nanosleep 101 | ||
| 93 | #define __NR_getitimer 102 | ||
| 94 | #define __NR_setitimer 103 | ||
| 95 | #define __NR_kexec_load 104 | ||
| 96 | #define __NR_init_module 105 | ||
| 97 | #define __NR_delete_module 106 | ||
| 98 | #define __NR_timer_create 107 | ||
| 99 | #define __NR_timer_getoverrun 109 | ||
| 100 | #define __NR_timer_delete 111 | ||
| 101 | #define __NR_syslog 116 | ||
| 102 | #define __NR_ptrace 117 | ||
| 103 | #define __NR_sched_setparam 118 | ||
| 104 | #define __NR_sched_setscheduler 119 | ||
| 105 | #define __NR_sched_getscheduler 120 | ||
| 106 | #define __NR_sched_getparam 121 | ||
| 107 | #define __NR_sched_setaffinity 122 | ||
| 108 | #define __NR_sched_getaffinity 123 | ||
| 109 | #define __NR_sched_yield 124 | ||
| 110 | #define __NR_sched_get_priority_max 125 | ||
| 111 | #define __NR_sched_get_priority_min 126 | ||
| 112 | #define __NR_restart_syscall 128 | ||
| 113 | #define __NR_kill 129 | ||
| 114 | #define __NR_tkill 130 | ||
| 115 | #define __NR_tgkill 131 | ||
| 116 | #define __NR_sigaltstack 132 | ||
| 117 | #define __NR_rt_sigsuspend 133 | ||
| 118 | #define __NR_rt_sigaction 134 | ||
| 119 | #define __NR_rt_sigprocmask 135 | ||
| 120 | #define __NR_rt_sigpending 136 | ||
| 121 | #define __NR_rt_sigqueueinfo 138 | ||
| 122 | #define __NR_rt_sigreturn 139 | ||
| 123 | #define __NR_setpriority 140 | ||
| 124 | #define __NR_getpriority 141 | ||
| 125 | #define __NR_reboot 142 | ||
| 126 | #define __NR_setregid 143 | ||
| 127 | #define __NR_setgid 144 | ||
| 128 | #define __NR_setreuid 145 | ||
| 129 | #define __NR_setuid 146 | ||
| 130 | #define __NR_setresuid 147 | ||
| 131 | #define __NR_getresuid 148 | ||
| 132 | #define __NR_setresgid 149 | ||
| 133 | #define __NR_getresgid 150 | ||
| 134 | #define __NR_setfsuid 151 | ||
| 135 | #define __NR_setfsgid 152 | ||
| 136 | #define __NR_times 153 | ||
| 137 | #define __NR_setpgid 154 | ||
| 138 | #define __NR_getpgid 155 | ||
| 139 | #define __NR_getsid 156 | ||
| 140 | #define __NR_setsid 157 | ||
| 141 | #define __NR_getgroups 158 | ||
| 142 | #define __NR_setgroups 159 | ||
| 143 | #define __NR_uname 160 | ||
| 144 | #define __NR_sethostname 161 | ||
| 145 | #define __NR_setdomainname 162 | ||
| 146 | #define __NR_getrusage 165 | ||
| 147 | #define __NR_umask 166 | ||
| 148 | #define __NR_prctl 167 | ||
| 149 | #define __NR_getcpu 168 | ||
| 150 | #define __NR_getpid 172 | ||
| 151 | #define __NR_getppid 173 | ||
| 152 | #define __NR_getuid 174 | ||
| 153 | #define __NR_geteuid 175 | ||
| 154 | #define __NR_getgid 176 | ||
| 155 | #define __NR_getegid 177 | ||
| 156 | #define __NR_gettid 178 | ||
| 157 | #define __NR_sysinfo 179 | ||
| 158 | #define __NR_mq_open 180 | ||
| 159 | #define __NR_mq_unlink 181 | ||
| 160 | #define __NR_mq_notify 184 | ||
| 161 | #define __NR_mq_getsetattr 185 | ||
| 162 | #define __NR_msgget 186 | ||
| 163 | #define __NR_msgctl 187 | ||
| 164 | #define __NR_msgrcv 188 | ||
| 165 | #define __NR_msgsnd 189 | ||
| 166 | #define __NR_semget 190 | ||
| 167 | #define __NR_semctl 191 | ||
| 168 | #define __NR_semop 193 | ||
| 169 | #define __NR_shmget 194 | ||
| 170 | #define __NR_shmctl 195 | ||
| 171 | #define __NR_shmat 196 | ||
| 172 | #define __NR_shmdt 197 | ||
| 173 | #define __NR_socket 198 | ||
| 174 | #define __NR_socketpair 199 | ||
| 175 | #define __NR_bind 200 | ||
| 176 | #define __NR_listen 201 | ||
| 177 | #define __NR_accept 202 | ||
| 178 | #define __NR_connect 203 | ||
| 179 | #define __NR_getsockname 204 | ||
| 180 | #define __NR_getpeername 205 | ||
| 181 | #define __NR_sendto 206 | ||
| 182 | #define __NR_recvfrom 207 | ||
| 183 | #define __NR_setsockopt 208 | ||
| 184 | #define __NR_getsockopt 209 | ||
| 185 | #define __NR_shutdown 210 | ||
| 186 | #define __NR_sendmsg 211 | ||
| 187 | #define __NR_recvmsg 212 | ||
| 188 | #define __NR_readahead 213 | ||
| 189 | #define __NR_brk 214 | ||
| 190 | #define __NR_munmap 215 | ||
| 191 | #define __NR_mremap 216 | ||
| 192 | #define __NR_add_key 217 | ||
| 193 | #define __NR_request_key 218 | ||
| 194 | #define __NR_keyctl 219 | ||
| 195 | #define __NR_clone 220 | ||
| 196 | #define __NR_execve 221 | ||
| 197 | #define __NR_mmap2 222 | ||
| 198 | #define __NR_fadvise64_64 223 | ||
| 199 | #define __NR_swapon 224 | ||
| 200 | #define __NR_swapoff 225 | ||
| 201 | #define __NR_mprotect 226 | ||
| 202 | #define __NR_msync 227 | ||
| 203 | #define __NR_mlock 228 | ||
| 204 | #define __NR_munlock 229 | ||
| 205 | #define __NR_mlockall 230 | ||
| 206 | #define __NR_munlockall 231 | ||
| 207 | #define __NR_mincore 232 | ||
| 208 | #define __NR_madvise 233 | ||
| 209 | #define __NR_remap_file_pages 234 | ||
| 210 | #define __NR_mbind 235 | ||
| 211 | #define __NR_get_mempolicy 236 | ||
| 212 | #define __NR_set_mempolicy 237 | ||
| 213 | #define __NR_migrate_pages 238 | ||
| 214 | #define __NR_move_pages 239 | ||
| 215 | #define __NR_rt_tgsigqueueinfo 240 | ||
| 216 | #define __NR_perf_event_open 241 | ||
| 217 | #define __NR_accept4 242 | ||
| 218 | #define __NR_arch_specific_syscall 244 | ||
| 219 | #define __NR_prlimit64 261 | ||
| 220 | #define __NR_fanotify_init 262 | ||
| 221 | #define __NR_fanotify_mark 263 | ||
| 222 | #define __NR_name_to_handle_at 264 | ||
| 223 | #define __NR_open_by_handle_at 265 | ||
| 224 | #define __NR_syncfs 267 | ||
| 225 | #define __NR_setns 268 | ||
| 226 | #define __NR_sendmmsg 269 | ||
| 227 | #define __NR_process_vm_readv 270 | ||
| 228 | #define __NR_process_vm_writev 271 | ||
| 229 | #define __NR_kcmp 272 | ||
| 230 | #define __NR_finit_module 273 | ||
| 231 | #define __NR_sched_setattr 274 | ||
| 232 | #define __NR_sched_getattr 275 | ||
| 233 | #define __NR_renameat2 276 | ||
| 234 | #define __NR_seccomp 277 | ||
| 235 | #define __NR_getrandom 278 | ||
| 236 | #define __NR_memfd_create 279 | ||
| 237 | #define __NR_bpf 280 | ||
| 238 | #define __NR_execveat 281 | ||
| 239 | #define __NR_userfaultfd 282 | ||
| 240 | #define __NR_membarrier 283 | ||
| 241 | #define __NR_mlock2 284 | ||
| 242 | #define __NR_copy_file_range 285 | ||
| 243 | #define __NR_preadv2 286 | ||
| 244 | #define __NR_pwritev2 287 | ||
| 245 | #define __NR_pkey_mprotect 288 | ||
| 246 | #define __NR_pkey_alloc 289 | ||
| 247 | #define __NR_pkey_free 290 | ||
| 248 | #define __NR_statx 291 | ||
| 249 | #define __NR_rseq 293 | ||
| 250 | #define __NR_kexec_file_load 294 | ||
| 251 | #define __NR_clock_gettime64		403 | ||
| 252 | #define __NR_clock_settime64		404 | ||
| 253 | #define __NR_clock_adjtime64		405 | ||
| 254 | #define __NR_clock_getres_time64	406 | ||
| 255 | #define __NR_clock_nanosleep_time64	407 | ||
| 256 | #define __NR_timer_gettime64		408 | ||
| 257 | #define __NR_timer_settime64		409 | ||
| 258 | #define __NR_timerfd_gettime64		410 | ||
| 259 | #define __NR_timerfd_settime64		411 | ||
| 260 | #define __NR_utimensat_time64		412 | ||
| 261 | #define __NR_pselect6_time64		413 | ||
| 262 | #define __NR_ppoll_time64		414 | ||
| 263 | #define __NR_io_pgetevents_time64	416 | ||
| 264 | #define __NR_recvmmsg_time64		417 | ||
| 265 | #define __NR_mq_timedsend_time64	418 | ||
| 266 | #define __NR_mq_timedreceive_time64	419 | ||
| 267 | #define __NR_semtimedop_time64		420 | ||
| 268 | #define __NR_rt_sigtimedwait_time64	421 | ||
| 269 | #define __NR_futex_time64		422 | ||
| 270 | #define __NR_sched_rr_get_interval_time64 423 | ||
| 271 | #define __NR_pidfd_send_signal 424 | ||
| 272 | #define __NR_io_uring_setup 425 | ||
| 273 | #define __NR_io_uring_enter 426 | ||
| 274 | #define __NR_io_uring_register 427 | ||
| 275 | #define __NR_open_tree		428 | ||
| 276 | #define __NR_move_mount		429 | ||
| 277 | #define __NR_fsopen		430 | ||
| 278 | #define __NR_fsconfig		431 | ||
| 279 | #define __NR_fsmount		432 | ||
| 280 | #define __NR_fspick		433 | ||
| 281 | #define __NR_pidfd_open		434 | ||
| 282 | #define __NR_clone3		435 | ||
| 283 | #define __NR_openat2		437 | ||
| 284 | #define __NR_pidfd_getfd	438 | ||
| 285 | #define __NR_faccessat2		439 | ||
| 286 | #define __NR_process_madvise	440 | ||
| 287 | #define __NR_epoll_pwait2	441 | ||
| 288 | #define __NR_mount_setattr	442 | ||
| 289 | #define __NR_landlock_create_ruleset	444 | ||
| 290 | #define __NR_landlock_add_rule	445 | ||
| 291 | #define __NR_landlock_restrict_self	446 | ||
| 292 | #define __NR_process_mrelease	448 | ||
| 293 | #define __NR_futex_waitv	449 | ||
| 294 | #define __NR_set_mempolicy_home_node	450 | ||
| 295 | #define __NR_cachestat		451 | ||
| 296 | #define __NR_fchmodat2		452 | ||
| 297 | #define __NR_futex __NR_futex_time64 | ||
| 298 | |||
| 299 | #define __NR_sysriscv __NR_arch_specific_syscall | ||
| 300 | #define __NR_riscv_flush_icache (__NR_sysriscv + 15) | ||
lib/libc/musl/arch/riscv64/bits/alltypes.h.in deleted-18| ... | @@ -1,18 +0,0 @@ | ||
| 1 | #define _Addr long | ||
| 2 | #define _Int64 long | ||
| 3 | #define _Reg long | ||
| 4 | |||
| 5 | #define __BYTE_ORDER 1234 | ||
| 6 | #define __LONG_MAX 0x7fffffffffffffffL | ||
| 7 | |||
| 8 | #ifndef __cplusplus | ||
| 9 | TYPEDEF int wchar_t; | ||
| 10 | #endif | ||
| 11 | |||
| 12 | TYPEDEF int blksize_t; | ||
| 13 | TYPEDEF unsigned int nlink_t; | ||
| 14 | |||
| 15 | TYPEDEF float float_t; | ||
| 16 | TYPEDEF double double_t; | ||
| 17 | |||
| 18 | TYPEDEF struct { long long __ll; long double __ld; } max_align_t; | ||
lib/libc/musl/arch/riscv64/bits/syscall.h.in deleted-309| ... | @@ -1,309 +0,0 @@ | ||
| 1 | #define __NR_io_setup 0 | ||
| 2 | #define __NR_io_destroy 1 | ||
| 3 | #define __NR_io_submit 2 | ||
| 4 | #define __NR_io_cancel 3 | ||
| 5 | #define __NR_io_getevents 4 | ||
| 6 | #define __NR_setxattr 5 | ||
| 7 | #define __NR_lsetxattr 6 | ||
| 8 | #define __NR_fsetxattr 7 | ||
| 9 | #define __NR_getxattr 8 | ||
| 10 | #define __NR_lgetxattr 9 | ||
| 11 | #define __NR_fgetxattr 10 | ||
| 12 | #define __NR_listxattr 11 | ||
| 13 | #define __NR_llistxattr 12 | ||
| 14 | #define __NR_flistxattr 13 | ||
| 15 | #define __NR_removexattr 14 | ||
| 16 | #define __NR_lremovexattr 15 | ||
| 17 | #define __NR_fremovexattr 16 | ||
| 18 | #define __NR_getcwd 17 | ||
| 19 | #define __NR_lookup_dcookie 18 | ||
| 20 | #define __NR_eventfd2 19 | ||
| 21 | #define __NR_epoll_create1 20 | ||
| 22 | #define __NR_epoll_ctl 21 | ||
| 23 | #define __NR_epoll_pwait 22 | ||
| 24 | #define __NR_dup 23 | ||
| 25 | #define __NR_dup3 24 | ||
| 26 | #define __NR_fcntl 25 | ||
| 27 | #define __NR_inotify_init1 26 | ||
| 28 | #define __NR_inotify_add_watch 27 | ||
| 29 | #define __NR_inotify_rm_watch 28 | ||
| 30 | #define __NR_ioctl 29 | ||
| 31 | #define __NR_ioprio_set 30 | ||
| 32 | #define __NR_ioprio_get 31 | ||
| 33 | #define __NR_flock 32 | ||
| 34 | #define __NR_mknodat 33 | ||
| 35 | #define __NR_mkdirat 34 | ||
| 36 | #define __NR_unlinkat 35 | ||
| 37 | #define __NR_symlinkat 36 | ||
| 38 | #define __NR_linkat 37 | ||
| 39 | #define __NR_umount2 39 | ||
| 40 | #define __NR_mount 40 | ||
| 41 | #define __NR_pivot_root 41 | ||
| 42 | #define __NR_nfsservctl 42 | ||
| 43 | #define __NR_statfs 43 | ||
| 44 | #define __NR_fstatfs 44 | ||
| 45 | #define __NR_truncate 45 | ||
| 46 | #define __NR_ftruncate 46 | ||
| 47 | #define __NR_fallocate 47 | ||
| 48 | #define __NR_faccessat 48 | ||
| 49 | #define __NR_chdir 49 | ||
| 50 | #define __NR_fchdir 50 | ||
| 51 | #define __NR_chroot 51 | ||
| 52 | #define __NR_fchmod 52 | ||
| 53 | #define __NR_fchmodat 53 | ||
| 54 | #define __NR_fchownat 54 | ||
| 55 | #define __NR_fchown 55 | ||
| 56 | #define __NR_openat 56 | ||
| 57 | #define __NR_close 57 | ||
| 58 | #define __NR_vhangup 58 | ||
| 59 | #define __NR_pipe2 59 | ||
| 60 | #define __NR_quotactl 60 | ||
| 61 | #define __NR_getdents64 61 | ||
| 62 | #define __NR_lseek 62 | ||
| 63 | #define __NR_read 63 | ||
| 64 | #define __NR_write 64 | ||
| 65 | #define __NR_readv 65 | ||
| 66 | #define __NR_writev 66 | ||
| 67 | #define __NR_pread64 67 | ||
| 68 | #define __NR_pwrite64 68 | ||
| 69 | #define __NR_preadv 69 | ||
| 70 | #define __NR_pwritev 70 | ||
| 71 | #define __NR_sendfile 71 | ||
| 72 | #define __NR_pselect6 72 | ||
| 73 | #define __NR_ppoll 73 | ||
| 74 | #define __NR_signalfd4 74 | ||
| 75 | #define __NR_vmsplice 75 | ||
| 76 | #define __NR_splice 76 | ||
| 77 | #define __NR_tee 77 | ||
| 78 | #define __NR_readlinkat 78 | ||
| 79 | #define __NR_newfstatat 79 | ||
| 80 | #define __NR_fstat 80 | ||
| 81 | #define __NR_sync 81 | ||
| 82 | #define __NR_fsync 82 | ||
| 83 | #define __NR_fdatasync 83 | ||
| 84 | #define __NR_sync_file_range 84 | ||
| 85 | #define __NR_timerfd_create 85 | ||
| 86 | #define __NR_timerfd_settime 86 | ||
| 87 | #define __NR_timerfd_gettime 87 | ||
| 88 | #define __NR_utimensat 88 | ||
| 89 | #define __NR_acct 89 | ||
| 90 | #define __NR_capget 90 | ||
| 91 | #define __NR_capset 91 | ||
| 92 | #define __NR_personality 92 | ||
| 93 | #define __NR_exit 93 | ||
| 94 | #define __NR_exit_group 94 | ||
| 95 | #define __NR_waitid 95 | ||
| 96 | #define __NR_set_tid_address 96 | ||
| 97 | #define __NR_unshare 97 | ||
| 98 | #define __NR_futex 98 | ||
| 99 | #define __NR_set_robust_list 99 | ||
| 100 | #define __NR_get_robust_list 100 | ||
| 101 | #define __NR_nanosleep 101 | ||
| 102 | #define __NR_getitimer 102 | ||
| 103 | #define __NR_setitimer 103 | ||
| 104 | #define __NR_kexec_load 104 | ||
| 105 | #define __NR_init_module 105 | ||
| 106 | #define __NR_delete_module 106 | ||
| 107 | #define __NR_timer_create 107 | ||
| 108 | #define __NR_timer_gettime 108 | ||
| 109 | #define __NR_timer_getoverrun 109 | ||
| 110 | #define __NR_timer_settime 110 | ||
| 111 | #define __NR_timer_delete 111 | ||
| 112 | #define __NR_clock_settime 112 | ||
| 113 | #define __NR_clock_gettime 113 | ||
| 114 | #define __NR_clock_getres 114 | ||
| 115 | #define __NR_clock_nanosleep 115 | ||
| 116 | #define __NR_syslog 116 | ||
| 117 | #define __NR_ptrace 117 | ||
| 118 | #define __NR_sched_setparam 118 | ||
| 119 | #define __NR_sched_setscheduler 119 | ||
| 120 | #define __NR_sched_getscheduler 120 | ||
| 121 | #define __NR_sched_getparam 121 | ||
| 122 | #define __NR_sched_setaffinity 122 | ||
| 123 | #define __NR_sched_getaffinity 123 | ||
| 124 | #define __NR_sched_yield 124 | ||
| 125 | #define __NR_sched_get_priority_max 125 | ||
| 126 | #define __NR_sched_get_priority_min 126 | ||
| 127 | #define __NR_sched_rr_get_interval 127 | ||
| 128 | #define __NR_restart_syscall 128 | ||
| 129 | #define __NR_kill 129 | ||
| 130 | #define __NR_tkill 130 | ||
| 131 | #define __NR_tgkill 131 | ||
| 132 | #define __NR_sigaltstack 132 | ||
| 133 | #define __NR_rt_sigsuspend 133 | ||
| 134 | #define __NR_rt_sigaction 134 | ||
| 135 | #define __NR_rt_sigprocmask 135 | ||
| 136 | #define __NR_rt_sigpending 136 | ||
| 137 | #define __NR_rt_sigtimedwait 137 | ||
| 138 | #define __NR_rt_sigqueueinfo 138 | ||
| 139 | #define __NR_rt_sigreturn 139 | ||
| 140 | #define __NR_setpriority 140 | ||
| 141 | #define __NR_getpriority 141 | ||
| 142 | #define __NR_reboot 142 | ||
| 143 | #define __NR_setregid 143 | ||
| 144 | #define __NR_setgid 144 | ||
| 145 | #define __NR_setreuid 145 | ||
| 146 | #define __NR_setuid 146 | ||
| 147 | #define __NR_setresuid 147 | ||
| 148 | #define __NR_getresuid 148 | ||
| 149 | #define __NR_setresgid 149 | ||
| 150 | #define __NR_getresgid 150 | ||
| 151 | #define __NR_setfsuid 151 | ||
| 152 | #define __NR_setfsgid 152 | ||
| 153 | #define __NR_times 153 | ||
| 154 | #define __NR_setpgid 154 | ||
| 155 | #define __NR_getpgid 155 | ||
| 156 | #define __NR_getsid 156 | ||
| 157 | #define __NR_setsid 157 | ||
| 158 | #define __NR_getgroups 158 | ||
| 159 | #define __NR_setgroups 159 | ||
| 160 | #define __NR_uname 160 | ||
| 161 | #define __NR_sethostname 161 | ||
| 162 | #define __NR_setdomainname 162 | ||
| 163 | #define __NR_getrlimit 163 | ||
| 164 | #define __NR_setrlimit 164 | ||
| 165 | #define __NR_getrusage 165 | ||
| 166 | #define __NR_umask 166 | ||
| 167 | #define __NR_prctl 167 | ||
| 168 | #define __NR_getcpu 168 | ||
| 169 | #define __NR_gettimeofday 169 | ||
| 170 | #define __NR_settimeofday 170 | ||
| 171 | #define __NR_adjtimex 171 | ||
| 172 | #define __NR_getpid 172 | ||
| 173 | #define __NR_getppid 173 | ||
| 174 | #define __NR_getuid 174 | ||
| 175 | #define __NR_geteuid 175 | ||
| 176 | #define __NR_getgid 176 | ||
| 177 | #define __NR_getegid 177 | ||
| 178 | #define __NR_gettid 178 | ||
| 179 | #define __NR_sysinfo 179 | ||
| 180 | #define __NR_mq_open 180 | ||
| 181 | #define __NR_mq_unlink 181 | ||
| 182 | #define __NR_mq_timedsend 182 | ||
| 183 | #define __NR_mq_timedreceive 183 | ||
| 184 | #define __NR_mq_notify 184 | ||
| 185 | #define __NR_mq_getsetattr 185 | ||
| 186 | #define __NR_msgget 186 | ||
| 187 | #define __NR_msgctl 187 | ||
| 188 | #define __NR_msgrcv 188 | ||
| 189 | #define __NR_msgsnd 189 | ||
| 190 | #define __NR_semget 190 | ||
| 191 | #define __NR_semctl 191 | ||
| 192 | #define __NR_semtimedop 192 | ||
| 193 | #define __NR_semop 193 | ||
| 194 | #define __NR_shmget 194 | ||
| 195 | #define __NR_shmctl 195 | ||
| 196 | #define __NR_shmat 196 | ||
| 197 | #define __NR_shmdt 197 | ||
| 198 | #define __NR_socket 198 | ||
| 199 | #define __NR_socketpair 199 | ||
| 200 | #define __NR_bind 200 | ||
| 201 | #define __NR_listen 201 | ||
| 202 | #define __NR_accept 202 | ||
| 203 | #define __NR_connect 203 | ||
| 204 | #define __NR_getsockname 204 | ||
| 205 | #define __NR_getpeername 205 | ||
| 206 | #define __NR_sendto 206 | ||
| 207 | #define __NR_recvfrom 207 | ||
| 208 | #define __NR_setsockopt 208 | ||
| 209 | #define __NR_getsockopt 209 | ||
| 210 | #define __NR_shutdown 210 | ||
| 211 | #define __NR_sendmsg 211 | ||
| 212 | #define __NR_recvmsg 212 | ||
| 213 | #define __NR_readahead 213 | ||
| 214 | #define __NR_brk 214 | ||
| 215 | #define __NR_munmap 215 | ||
| 216 | #define __NR_mremap 216 | ||
| 217 | #define __NR_add_key 217 | ||
| 218 | #define __NR_request_key 218 | ||
| 219 | #define __NR_keyctl 219 | ||
| 220 | #define __NR_clone 220 | ||
| 221 | #define __NR_execve 221 | ||
| 222 | #define __NR_mmap 222 | ||
| 223 | #define __NR_fadvise64 223 | ||
| 224 | #define __NR_swapon 224 | ||
| 225 | #define __NR_swapoff 225 | ||
| 226 | #define __NR_mprotect 226 | ||
| 227 | #define __NR_msync 227 | ||
| 228 | #define __NR_mlock 228 | ||
| 229 | #define __NR_munlock 229 | ||
| 230 | #define __NR_mlockall 230 | ||
| 231 | #define __NR_munlockall 231 | ||
| 232 | #define __NR_mincore 232 | ||
| 233 | #define __NR_madvise 233 | ||
| 234 | #define __NR_remap_file_pages 234 | ||
| 235 | #define __NR_mbind 235 | ||
| 236 | #define __NR_get_mempolicy 236 | ||
| 237 | #define __NR_set_mempolicy 237 | ||
| 238 | #define __NR_migrate_pages 238 | ||
| 239 | #define __NR_move_pages 239 | ||
| 240 | #define __NR_rt_tgsigqueueinfo 240 | ||
| 241 | #define __NR_perf_event_open 241 | ||
| 242 | #define __NR_accept4 242 | ||
| 243 | #define __NR_recvmmsg 243 | ||
| 244 | #define __NR_arch_specific_syscall 244 | ||
| 245 | #define __NR_wait4 260 | ||
| 246 | #define __NR_prlimit64 261 | ||
| 247 | #define __NR_fanotify_init 262 | ||
| 248 | #define __NR_fanotify_mark 263 | ||
| 249 | #define __NR_name_to_handle_at 264 | ||
| 250 | #define __NR_open_by_handle_at 265 | ||
| 251 | #define __NR_clock_adjtime 266 | ||
| 252 | #define __NR_syncfs 267 | ||
| 253 | #define __NR_setns 268 | ||
| 254 | #define __NR_sendmmsg 269 | ||
| 255 | #define __NR_process_vm_readv 270 | ||
| 256 | #define __NR_process_vm_writev 271 | ||
| 257 | #define __NR_kcmp 272 | ||
| 258 | #define __NR_finit_module 273 | ||
| 259 | #define __NR_sched_setattr 274 | ||
| 260 | #define __NR_sched_getattr 275 | ||
| 261 | #define __NR_renameat2 276 | ||
| 262 | #define __NR_seccomp 277 | ||
| 263 | #define __NR_getrandom 278 | ||
| 264 | #define __NR_memfd_create 279 | ||
| 265 | #define __NR_bpf 280 | ||
| 266 | #define __NR_execveat 281 | ||
| 267 | #define __NR_userfaultfd 282 | ||
| 268 | #define __NR_membarrier 283 | ||
| 269 | #define __NR_mlock2 284 | ||
| 270 | #define __NR_copy_file_range 285 | ||
| 271 | #define __NR_preadv2 286 | ||
| 272 | #define __NR_pwritev2 287 | ||
| 273 | #define __NR_pkey_mprotect 288 | ||
| 274 | #define __NR_pkey_alloc 289 | ||
| 275 | #define __NR_pkey_free 290 | ||
| 276 | #define __NR_statx 291 | ||
| 277 | #define __NR_io_pgetevents 292 | ||
| 278 | #define __NR_rseq 293 | ||
| 279 | #define __NR_kexec_file_load 294 | ||
| 280 | #define __NR_pidfd_send_signal 424 | ||
| 281 | #define __NR_io_uring_setup 425 | ||
| 282 | #define __NR_io_uring_enter 426 | ||
| 283 | #define __NR_io_uring_register 427 | ||
| 284 | #define __NR_open_tree		428 | ||
| 285 | #define __NR_move_mount		429 | ||
| 286 | #define __NR_fsopen		430 | ||
| 287 | #define __NR_fsconfig		431 | ||
| 288 | #define __NR_fsmount		432 | ||
| 289 | #define __NR_fspick		433 | ||
| 290 | #define __NR_pidfd_open		434 | ||
| 291 | #define __NR_clone3		435 | ||
| 292 | #define __NR_close_range	436 | ||
| 293 | #define __NR_openat2		437 | ||
| 294 | #define __NR_pidfd_getfd	438 | ||
| 295 | #define __NR_faccessat2		439 | ||
| 296 | #define __NR_process_madvise	440 | ||
| 297 | #define __NR_epoll_pwait2	441 | ||
| 298 | #define __NR_mount_setattr	442 | ||
| 299 | #define __NR_landlock_create_ruleset	444 | ||
| 300 | #define __NR_landlock_add_rule	445 | ||
| 301 | #define __NR_landlock_restrict_self	446 | ||
| 302 | #define __NR_process_mrelease	448 | ||
| 303 | #define __NR_futex_waitv	449 | ||
| 304 | #define __NR_set_mempolicy_home_node	450 | ||
| 305 | #define __NR_cachestat		451 | ||
| 306 | #define __NR_fchmodat2		452 | ||
| 307 | |||
| 308 | #define __NR_sysriscv __NR_arch_specific_syscall | ||
| 309 | #define __NR_riscv_flush_icache (__NR_sysriscv + 15) | ||
lib/libc/musl/arch/s390x/bits/alltypes.h.in deleted-19| ... | @@ -1,19 +0,0 @@ | ||
| 1 | #define _Addr long | ||
| 2 | #define _Int64 long | ||
| 3 | #define _Reg long | ||
| 4 | |||
| 5 | #define __BYTE_ORDER 4321 | ||
| 6 | #define __LONG_MAX 0x7fffffffffffffffL | ||
| 7 | |||
| 8 | #ifndef __cplusplus | ||
| 9 | TYPEDEF int wchar_t; | ||
| 10 | #endif | ||
| 11 | |||
| 12 | #if defined(__FLT_EVAL_METHOD__) && __FLT_EVAL_METHOD__ == 1 | ||
| 13 | TYPEDEF double float_t; | ||
| 14 | #else | ||
| 15 | TYPEDEF float float_t; | ||
| 16 | #endif | ||
| 17 | TYPEDEF double double_t; | ||
| 18 | |||
| 19 | TYPEDEF struct { long long __ll; long double __ld; } max_align_t; | ||
lib/libc/musl/arch/s390x/bits/syscall.h.in deleted-371| ... | @@ -1,371 +0,0 @@ | ||
| 1 | #define __NR_exit 1 | ||
| 2 | #define __NR_fork 2 | ||
| 3 | #define __NR_read 3 | ||
| 4 | #define __NR_write 4 | ||
| 5 | #define __NR_open 5 | ||
| 6 | #define __NR_close 6 | ||
| 7 | #define __NR_restart_syscall 7 | ||
| 8 | #define __NR_creat 8 | ||
| 9 | #define __NR_link 9 | ||
| 10 | #define __NR_unlink 10 | ||
| 11 | #define __NR_execve 11 | ||
| 12 | #define __NR_chdir 12 | ||
| 13 | #define __NR_mknod 14 | ||
| 14 | #define __NR_chmod 15 | ||
| 15 | #define __NR_lseek 19 | ||
| 16 | #define __NR_getpid 20 | ||
| 17 | #define __NR_mount 21 | ||
| 18 | #define __NR_umount 22 | ||
| 19 | #define __NR_ptrace 26 | ||
| 20 | #define __NR_alarm 27 | ||
| 21 | #define __NR_pause 29 | ||
| 22 | #define __NR_utime 30 | ||
| 23 | #define __NR_access 33 | ||
| 24 | #define __NR_nice 34 | ||
| 25 | #define __NR_sync 36 | ||
| 26 | #define __NR_kill 37 | ||
| 27 | #define __NR_rename 38 | ||
| 28 | #define __NR_mkdir 39 | ||
| 29 | #define __NR_rmdir 40 | ||
| 30 | #define __NR_dup 41 | ||
| 31 | #define __NR_pipe 42 | ||
| 32 | #define __NR_times 43 | ||
| 33 | #define __NR_brk 45 | ||
| 34 | #define __NR_signal 48 | ||
| 35 | #define __NR_acct 51 | ||
| 36 | #define __NR_umount2 52 | ||
| 37 | #define __NR_ioctl 54 | ||
| 38 | #define __NR_fcntl 55 | ||
| 39 | #define __NR_setpgid 57 | ||
| 40 | #define __NR_umask 60 | ||
| 41 | #define __NR_chroot 61 | ||
| 42 | #define __NR_ustat 62 | ||
| 43 | #define __NR_dup2 63 | ||
| 44 | #define __NR_getppid 64 | ||
| 45 | #define __NR_getpgrp 65 | ||
| 46 | #define __NR_setsid 66 | ||
| 47 | #define __NR_sigaction 67 | ||
| 48 | #define __NR_sigsuspend 72 | ||
| 49 | #define __NR_sigpending 73 | ||
| 50 | #define __NR_sethostname 74 | ||
| 51 | #define __NR_setrlimit 75 | ||
| 52 | #define __NR_getrusage 77 | ||
| 53 | #define __NR_gettimeofday 78 | ||
| 54 | #define __NR_settimeofday 79 | ||
| 55 | #define __NR_symlink 83 | ||
| 56 | #define __NR_readlink 85 | ||
| 57 | #define __NR_uselib 86 | ||
| 58 | #define __NR_swapon 87 | ||
| 59 | #define __NR_reboot 88 | ||
| 60 | #define __NR_readdir 89 | ||
| 61 | #define __NR_mmap 90 | ||
| 62 | #define __NR_munmap 91 | ||
| 63 | #define __NR_truncate 92 | ||
| 64 | #define __NR_ftruncate 93 | ||
| 65 | #define __NR_fchmod 94 | ||
| 66 | #define __NR_getpriority 96 | ||
| 67 | #define __NR_setpriority 97 | ||
| 68 | #define __NR_statfs 99 | ||
| 69 | #define __NR_fstatfs 100 | ||
| 70 | #define __NR_socketcall 102 | ||
| 71 | #define __NR_syslog 103 | ||
| 72 | #define __NR_setitimer 104 | ||
| 73 | #define __NR_getitimer 105 | ||
| 74 | #define __NR_stat 106 | ||
| 75 | #define __NR_lstat 107 | ||
| 76 | #define __NR_fstat 108 | ||
| 77 | #define __NR_lookup_dcookie 110 | ||
| 78 | #define __NR_vhangup 111 | ||
| 79 | #define __NR_idle 112 | ||
| 80 | #define __NR_wait4 114 | ||
| 81 | #define __NR_swapoff 115 | ||
| 82 | #define __NR_sysinfo 116 | ||
| 83 | #define __NR_ipc 117 | ||
| 84 | #define __NR_fsync 118 | ||
| 85 | #define __NR_sigreturn 119 | ||
| 86 | #define __NR_clone 120 | ||
| 87 | #define __NR_setdomainname 121 | ||
| 88 | #define __NR_uname 122 | ||
| 89 | #define __NR_adjtimex 124 | ||
| 90 | #define __NR_mprotect 125 | ||
| 91 | #define __NR_sigprocmask 126 | ||
| 92 | #define __NR_create_module 127 | ||
| 93 | #define __NR_init_module 128 | ||
| 94 | #define __NR_delete_module 129 | ||
| 95 | #define __NR_get_kernel_syms 130 | ||
| 96 | #define __NR_quotactl 131 | ||
| 97 | #define __NR_getpgid 132 | ||
| 98 | #define __NR_fchdir 133 | ||
| 99 | #define __NR_bdflush 134 | ||
| 100 | #define __NR_sysfs 135 | ||
| 101 | #define __NR_personality 136 | ||
| 102 | #define __NR_afs_syscall 137 | ||
| 103 | #define __NR_getdents 141 | ||
| 104 | #define __NR_select 142 | ||
| 105 | #define __NR_flock 143 | ||
| 106 | #define __NR_msync 144 | ||
| 107 | #define __NR_readv 145 | ||
| 108 | #define __NR_writev 146 | ||
| 109 | #define __NR_getsid 147 | ||
| 110 | #define __NR_fdatasync 148 | ||
| 111 | #define __NR__sysctl 149 | ||
| 112 | #define __NR_mlock 150 | ||
| 113 | #define __NR_munlock 151 | ||
| 114 | #define __NR_mlockall 152 | ||
| 115 | #define __NR_munlockall 153 | ||
| 116 | #define __NR_sched_setparam 154 | ||
| 117 | #define __NR_sched_getparam 155 | ||
| 118 | #define __NR_sched_setscheduler 156 | ||
| 119 | #define __NR_sched_getscheduler 157 | ||
| 120 | #define __NR_sched_yield 158 | ||
| 121 | #define __NR_sched_get_priority_max 159 | ||
| 122 | #define __NR_sched_get_priority_min 160 | ||
| 123 | #define __NR_sched_rr_get_interval 161 | ||
| 124 | #define __NR_nanosleep 162 | ||
| 125 | #define __NR_mremap 163 | ||
| 126 | #define __NR_query_module 167 | ||
| 127 | #define __NR_poll 168 | ||
| 128 | #define __NR_nfsservctl 169 | ||
| 129 | #define __NR_prctl 172 | ||
| 130 | #define __NR_rt_sigreturn 173 | ||
| 131 | #define __NR_rt_sigaction 174 | ||
| 132 | #define __NR_rt_sigprocmask 175 | ||
| 133 | #define __NR_rt_sigpending 176 | ||
| 134 | #define __NR_rt_sigtimedwait 177 | ||
| 135 | #define __NR_rt_sigqueueinfo 178 | ||
| 136 | #define __NR_rt_sigsuspend 179 | ||
| 137 | #define __NR_pread64 180 | ||
| 138 | #define __NR_pwrite64 181 | ||
| 139 | #define __NR_getcwd 183 | ||
| 140 | #define __NR_capget 184 | ||
| 141 | #define __NR_capset 185 | ||
| 142 | #define __NR_sigaltstack 186 | ||
| 143 | #define __NR_sendfile 187 | ||
| 144 | #define __NR_getpmsg 188 | ||
| 145 | #define __NR_putpmsg 189 | ||
| 146 | #define __NR_vfork 190 | ||
| 147 | #define __NR_getrlimit 191 | ||
| 148 | #define __NR_lchown 198 | ||
| 149 | #define __NR_getuid 199 | ||
| 150 | #define __NR_getgid 200 | ||
| 151 | #define __NR_geteuid 201 | ||
| 152 | #define __NR_getegid 202 | ||
| 153 | #define __NR_setreuid 203 | ||
| 154 | #define __NR_setregid 204 | ||
| 155 | #define __NR_getgroups 205 | ||
| 156 | #define __NR_setgroups 206 | ||
| 157 | #define __NR_fchown 207 | ||
| 158 | #define __NR_setresuid 208 | ||
| 159 | #define __NR_getresuid 209 | ||
| 160 | #define __NR_setresgid 210 | ||
| 161 | #define __NR_getresgid 211 | ||
| 162 | #define __NR_chown 212 | ||
| 163 | #define __NR_setuid 213 | ||
| 164 | #define __NR_setgid 214 | ||
| 165 | #define __NR_setfsuid 215 | ||
| 166 | #define __NR_setfsgid 216 | ||
| 167 | #define __NR_pivot_root 217 | ||
| 168 | #define __NR_mincore 218 | ||
| 169 | #define __NR_madvise 219 | ||
| 170 | #define __NR_getdents64 220 | ||
| 171 | #define __NR_readahead 222 | ||
| 172 | #define __NR_setxattr 224 | ||
| 173 | #define __NR_lsetxattr 225 | ||
| 174 | #define __NR_fsetxattr 226 | ||
| 175 | #define __NR_getxattr 227 | ||
| 176 | #define __NR_lgetxattr 228 | ||
| 177 | #define __NR_fgetxattr 229 | ||
| 178 | #define __NR_listxattr 230 | ||
| 179 | #define __NR_llistxattr 231 | ||
| 180 | #define __NR_flistxattr 232 | ||
| 181 | #define __NR_removexattr 233 | ||
| 182 | #define __NR_lremovexattr 234 | ||
| 183 | #define __NR_fremovexattr 235 | ||
| 184 | #define __NR_gettid 236 | ||
| 185 | #define __NR_tkill 237 | ||
| 186 | #define __NR_futex 238 | ||
| 187 | #define __NR_sched_setaffinity 239 | ||
| 188 | #define __NR_sched_getaffinity 240 | ||
| 189 | #define __NR_tgkill 241 | ||
| 190 | #define __NR_io_setup 243 | ||
| 191 | #define __NR_io_destroy 244 | ||
| 192 | #define __NR_io_getevents 245 | ||
| 193 | #define __NR_io_submit 246 | ||
| 194 | #define __NR_io_cancel 247 | ||
| 195 | #define __NR_exit_group 248 | ||
| 196 | #define __NR_epoll_create 249 | ||
| 197 | #define __NR_epoll_ctl 250 | ||
| 198 | #define __NR_epoll_wait 251 | ||
| 199 | #define __NR_set_tid_address 252 | ||
| 200 | #define __NR_fadvise64 253 | ||
| 201 | #define __NR_timer_create 254 | ||
| 202 | #define __NR_timer_settime 255 | ||
| 203 | #define __NR_timer_gettime 256 | ||
| 204 | #define __NR_timer_getoverrun 257 | ||
| 205 | #define __NR_timer_delete 258 | ||
| 206 | #define __NR_clock_settime 259 | ||
| 207 | #define __NR_clock_gettime 260 | ||
| 208 | #define __NR_clock_getres 261 | ||
| 209 | #define __NR_clock_nanosleep 262 | ||
| 210 | #define __NR_statfs64 265 | ||
| 211 | #define __NR_fstatfs64 266 | ||
| 212 | #define __NR_remap_file_pages 267 | ||
| 213 | #define __NR_mbind 268 | ||
| 214 | #define __NR_get_mempolicy 269 | ||
| 215 | #define __NR_set_mempolicy 270 | ||
| 216 | #define __NR_mq_open 271 | ||
| 217 | #define __NR_mq_unlink 272 | ||
| 218 | #define __NR_mq_timedsend 273 | ||
| 219 | #define __NR_mq_timedreceive 274 | ||
| 220 | #define __NR_mq_notify 275 | ||
| 221 | #define __NR_mq_getsetattr 276 | ||
| 222 | #define __NR_kexec_load 277 | ||
| 223 | #define __NR_add_key 278 | ||
| 224 | #define __NR_request_key 279 | ||
| 225 | #define __NR_keyctl 280 | ||
| 226 | #define __NR_waitid 281 | ||
| 227 | #define __NR_ioprio_set 282 | ||
| 228 | #define __NR_ioprio_get 283 | ||
| 229 | #define __NR_inotify_init 284 | ||
| 230 | #define __NR_inotify_add_watch 285 | ||
| 231 | #define __NR_inotify_rm_watch 286 | ||
| 232 | #define __NR_migrate_pages 287 | ||
| 233 | #define __NR_openat 288 | ||
| 234 | #define __NR_mkdirat 289 | ||
| 235 | #define __NR_mknodat 290 | ||
| 236 | #define __NR_fchownat 291 | ||
| 237 | #define __NR_futimesat 292 | ||
| 238 | #define __NR_newfstatat 293 | ||
| 239 | #define __NR_unlinkat 294 | ||
| 240 | #define __NR_renameat 295 | ||
| 241 | #define __NR_linkat 296 | ||
| 242 | #define __NR_symlinkat 297 | ||
| 243 | #define __NR_readlinkat 298 | ||
| 244 | #define __NR_fchmodat 299 | ||
| 245 | #define __NR_faccessat 300 | ||
| 246 | #define __NR_pselect6 301 | ||
| 247 | #define __NR_ppoll 302 | ||
| 248 | #define __NR_unshare 303 | ||
| 249 | #define __NR_set_robust_list 304 | ||
| 250 | #define __NR_get_robust_list 305 | ||
| 251 | #define __NR_splice 306 | ||
| 252 | #define __NR_sync_file_range 307 | ||
| 253 | #define __NR_tee 308 | ||
| 254 | #define __NR_vmsplice 309 | ||
| 255 | #define __NR_move_pages 310 | ||
| 256 | #define __NR_getcpu 311 | ||
| 257 | #define __NR_epoll_pwait 312 | ||
| 258 | #define __NR_utimes 313 | ||
| 259 | #define __NR_fallocate 314 | ||
| 260 | #define __NR_utimensat 315 | ||
| 261 | #define __NR_signalfd 316 | ||
| 262 | #define __NR_timerfd 317 | ||
| 263 | #define __NR_eventfd 318 | ||
| 264 | #define __NR_timerfd_create 319 | ||
| 265 | #define __NR_timerfd_settime 320 | ||
| 266 | #define __NR_timerfd_gettime 321 | ||
| 267 | #define __NR_signalfd4 322 | ||
| 268 | #define __NR_eventfd2 323 | ||
| 269 | #define __NR_inotify_init1 324 | ||
| 270 | #define __NR_pipe2 325 | ||
| 271 | #define __NR_dup3 326 | ||
| 272 | #define __NR_epoll_create1 327 | ||
| 273 | #define __NR_preadv 328 | ||
| 274 | #define __NR_pwritev 329 | ||
| 275 | #define __NR_rt_tgsigqueueinfo 330 | ||
| 276 | #define __NR_perf_event_open 331 | ||
| 277 | #define __NR_fanotify_init 332 | ||
| 278 | #define __NR_fanotify_mark 333 | ||
| 279 | #define __NR_prlimit64 334 | ||
| 280 | #define __NR_name_to_handle_at 335 | ||
| 281 | #define __NR_open_by_handle_at 336 | ||
| 282 | #define __NR_clock_adjtime 337 | ||
| 283 | #define __NR_syncfs 338 | ||
| 284 | #define __NR_setns 339 | ||
| 285 | #define __NR_process_vm_readv 340 | ||
| 286 | #define __NR_process_vm_writev 341 | ||
| 287 | #define __NR_s390_runtime_instr 342 | ||
| 288 | #define __NR_kcmp 343 | ||
| 289 | #define __NR_finit_module 344 | ||
| 290 | #define __NR_sched_setattr 345 | ||
| 291 | #define __NR_sched_getattr 346 | ||
| 292 | #define __NR_renameat2 347 | ||
| 293 | #define __NR_seccomp 348 | ||
| 294 | #define __NR_getrandom 349 | ||
| 295 | #define __NR_memfd_create 350 | ||
| 296 | #define __NR_bpf 351 | ||
| 297 | #define __NR_s390_pci_mmio_write 352 | ||
| 298 | #define __NR_s390_pci_mmio_read 353 | ||
| 299 | #define __NR_execveat 354 | ||
| 300 | #define __NR_userfaultfd 355 | ||
| 301 | #define __NR_membarrier 356 | ||
| 302 | #define __NR_recvmmsg 357 | ||
| 303 | #define __NR_sendmmsg 358 | ||
| 304 | #define __NR_socket 359 | ||
| 305 | #define __NR_socketpair 360 | ||
| 306 | #define __NR_bind 361 | ||
| 307 | #define __NR_connect 362 | ||
| 308 | #define __NR_listen 363 | ||
| 309 | #define __NR_accept4 364 | ||
| 310 | #define __NR_getsockopt 365 | ||
| 311 | #define __NR_setsockopt 366 | ||
| 312 | #define __NR_getsockname 367 | ||
| 313 | #define __NR_getpeername 368 | ||
| 314 | #define __NR_sendto 369 | ||
| 315 | #define __NR_sendmsg 370 | ||
| 316 | #define __NR_recvfrom 371 | ||
| 317 | #define __NR_recvmsg 372 | ||
| 318 | #define __NR_shutdown 373 | ||
| 319 | #define __NR_mlock2 374 | ||
| 320 | #define __NR_copy_file_range 375 | ||
| 321 | #define __NR_preadv2 376 | ||
| 322 | #define __NR_pwritev2 377 | ||
| 323 | #define __NR_s390_guarded_storage 378 | ||
| 324 | #define __NR_statx 379 | ||
| 325 | #define __NR_s390_sthyi 380 | ||
| 326 | #define __NR_kexec_file_load 381 | ||
| 327 | #define __NR_io_pgetevents 382 | ||
| 328 | #define __NR_rseq 383 | ||
| 329 | #define __NR_pkey_mprotect 384 | ||
| 330 | #define __NR_pkey_alloc 385 | ||
| 331 | #define __NR_pkey_free 386 | ||
| 332 | #define __NR_semtimedop 392 | ||
| 333 | #define __NR_semget 393 | ||
| 334 | #define __NR_semctl 394 | ||
| 335 | #define __NR_shmget 395 | ||
| 336 | #define __NR_shmctl 396 | ||
| 337 | #define __NR_shmat 397 | ||
| 338 | #define __NR_shmdt 398 | ||
| 339 | #define __NR_msgget 399 | ||
| 340 | #define __NR_msgsnd 400 | ||
| 341 | #define __NR_msgrcv 401 | ||
| 342 | #define __NR_msgctl 402 | ||
| 343 | #define __NR_pidfd_send_signal 424 | ||
| 344 | #define __NR_io_uring_setup 425 | ||
| 345 | #define __NR_io_uring_enter 426 | ||
| 346 | #define __NR_io_uring_register 427 | ||
| 347 | #define __NR_open_tree		428 | ||
| 348 | #define __NR_move_mount		429 | ||
| 349 | #define __NR_fsopen		430 | ||
| 350 | #define __NR_fsconfig		431 | ||
| 351 | #define __NR_fsmount		432 | ||
| 352 | #define __NR_fspick		433 | ||
| 353 | #define __NR_pidfd_open		434 | ||
| 354 | #define __NR_clone3		435 | ||
| 355 | #define __NR_close_range	436 | ||
| 356 | #define __NR_openat2		437 | ||
| 357 | #define __NR_pidfd_getfd	438 | ||
| 358 | #define __NR_faccessat2		439 | ||
| 359 | #define __NR_process_madvise	440 | ||
| 360 | #define __NR_epoll_pwait2	441 | ||
| 361 | #define __NR_mount_setattr	442 | ||
| 362 | #define __NR_landlock_create_ruleset	444 | ||
| 363 | #define __NR_landlock_add_rule	445 | ||
| 364 | #define __NR_landlock_restrict_self	446 | ||
| 365 | #define __NR_memfd_secret	447 | ||
| 366 | #define __NR_process_mrelease	448 | ||
| 367 | #define __NR_futex_waitv	449 | ||
| 368 | #define __NR_set_mempolicy_home_node	450 | ||
| 369 | #define __NR_cachestat		451 | ||
| 370 | #define __NR_fchmodat2		452 | ||
| 371 | |||
lib/libc/musl/arch/x32/atomic_arch.h created+121| ... | @@ -0,0 +1,121 @@ | ||
| 1 | #define a_cas a_cas | ||
| 2 | static inline int a_cas(volatile int *p, int t, int s) | ||
| 3 | { | ||
| 4 | 	__asm__ __volatile__ ( | ||
| 5 | 		"lock ; cmpxchg %3, %1" | ||
| 6 | 		: "=a"(t), "=m"(*p) : "a"(t), "r"(s) : "memory" ); | ||
| 7 | 	return t; | ||
| 8 | } | ||
| 9 | |||
| 10 | #define a_swap a_swap | ||
| 11 | static inline int a_swap(volatile int *p, int v) | ||
| 12 | { | ||
| 13 | 	__asm__ __volatile__( | ||
| 14 | 		"xchg %0, %1" | ||
| 15 | 		: "=r"(v), "=m"(*p) : "0"(v) : "memory" ); | ||
| 16 | 	return v; | ||
| 17 | } | ||
| 18 | |||
| 19 | #define a_fetch_add a_fetch_add | ||
| 20 | static inline int a_fetch_add(volatile int *p, int v) | ||
| 21 | { | ||
| 22 | 	__asm__ __volatile__( | ||
| 23 | 		"lock ; xadd %0, %1" | ||
| 24 | 		: "=r"(v), "=m"(*p) : "0"(v) : "memory" ); | ||
| 25 | 	return v; | ||
| 26 | } | ||
| 27 | |||
| 28 | #define a_and a_and | ||
| 29 | static inline void a_and(volatile int *p, int v) | ||
| 30 | { | ||
| 31 | 	__asm__ __volatile__( | ||
| 32 | 		"lock ; and %1, %0" | ||
| 33 | 		: "=m"(*p) : "r"(v) : "memory" ); | ||
| 34 | } | ||
| 35 | |||
| 36 | #define a_or a_or | ||
| 37 | static inline void a_or(volatile int *p, int v) | ||
| 38 | { | ||
| 39 | 	__asm__ __volatile__( | ||
| 40 | 		"lock ; or %1, %0" | ||
| 41 | 		: "=m"(*p) : "r"(v) : "memory" ); | ||
| 42 | } | ||
| 43 | |||
| 44 | #define a_and_64 a_and_64 | ||
| 45 | static inline void a_and_64(volatile uint64_t *p, uint64_t v) | ||
| 46 | { | ||
| 47 | 	__asm__ __volatile( | ||
| 48 | 		"lock ; and %1, %0" | ||
| 49 | 		 : "=m"(*p) : "r"(v) : "memory" ); | ||
| 50 | } | ||
| 51 | |||
| 52 | #define a_or_64 a_or_64 | ||
| 53 | static inline void a_or_64(volatile uint64_t *p, uint64_t v) | ||
| 54 | { | ||
| 55 | 	__asm__ __volatile__( | ||
| 56 | 		"lock ; or %1, %0" | ||
| 57 | 		 : "=m"(*p) : "r"(v) : "memory" ); | ||
| 58 | } | ||
| 59 | |||
| 60 | #define a_inc a_inc | ||
| 61 | static inline void a_inc(volatile int *p) | ||
| 62 | { | ||
| 63 | 	__asm__ __volatile__( | ||
| 64 | 		"lock ; incl %0" | ||
| 65 | 		: "=m"(*p) : "m"(*p) : "memory" ); | ||
| 66 | } | ||
| 67 | |||
| 68 | #define a_dec a_dec | ||
| 69 | static inline void a_dec(volatile int *p) | ||
| 70 | { | ||
| 71 | 	__asm__ __volatile__( | ||
| 72 | 		"lock ; decl %0" | ||
| 73 | 		: "=m"(*p) : "m"(*p) : "memory" ); | ||
| 74 | } | ||
| 75 | |||
| 76 | #define a_store a_store | ||
| 77 | static inline void a_store(volatile int *p, int x) | ||
| 78 | { | ||
| 79 | 	__asm__ __volatile__( | ||
| 80 | 		"mov %1, %0 ; lock ; orl $0,(%%rsp)" | ||
| 81 | 		: "=m"(*p) : "r"(x) : "memory" ); | ||
| 82 | } | ||
| 83 | |||
| 84 | #define a_barrier a_barrier | ||
| 85 | static inline void a_barrier() | ||
| 86 | { | ||
| 87 | 	__asm__ __volatile__( "" : : : "memory" ); | ||
| 88 | } | ||
| 89 | |||
| 90 | #define a_spin a_spin | ||
| 91 | static inline void a_spin() | ||
| 92 | { | ||
| 93 | 	__asm__ __volatile__( "pause" : : : "memory" ); | ||
| 94 | } | ||
| 95 | |||
| 96 | #define a_crash a_crash | ||
| 97 | static inline void a_crash() | ||
| 98 | { | ||
| 99 | 	__asm__ __volatile__( "hlt" : : : "memory" ); | ||
| 100 | } | ||
| 101 | |||
| 102 | #define a_ctz_64 a_ctz_64 | ||
| 103 | static inline int a_ctz_64(uint64_t x) | ||
| 104 | { | ||
| 105 | 	__asm__( "bsf %1,%0" : "=r"(x) : "r"(x) ); | ||
| 106 | 	return x; | ||
| 107 | } | ||
| 108 | |||
| 109 | #define a_ctz_32 a_ctz_32 | ||
| 110 | static inline int a_ctz_32(uint32_t x) | ||
| 111 | { | ||
| 112 | 	__asm__( "bsf %1,%0" : "=r"(x) : "r"(x) ); | ||
| 113 | 	return x; | ||
| 114 | } | ||
| 115 | |||
| 116 | #define a_clz_64 a_clz_64 | ||
| 117 | static inline int a_clz_64(uint64_t x) | ||
| 118 | { | ||
| 119 | 	__asm__( "bsr %1,%0 ; xor $63,%0" : "=r"(x) : "r"(x) ); | ||
| 120 | 	return x; | ||
| 121 | } | ||
lib/libc/musl/arch/x32/bits/fcntl.h created+40| ... | @@ -0,0 +1,40 @@ | ||
| 1 | #define O_CREAT 0100 | ||
| 2 | #define O_EXCL 0200 | ||
| 3 | #define O_NOCTTY 0400 | ||
| 4 | #define O_TRUNC 01000 | ||
| 5 | #define O_APPEND 02000 | ||
| 6 | #define O_NONBLOCK 04000 | ||
| 7 | #define O_DSYNC 010000 | ||
| 8 | #define O_SYNC 04010000 | ||
| 9 | #define O_RSYNC 04010000 | ||
| 10 | #define O_DIRECTORY 0200000 | ||
| 11 | #define O_NOFOLLOW 0400000 | ||
| 12 | #define O_CLOEXEC 02000000 | ||
| 13 | |||
| 14 | #define O_ASYNC 020000 | ||
| 15 | #define O_DIRECT 040000 | ||
| 16 | #define O_LARGEFILE 0100000 | ||
| 17 | #define O_NOATIME 01000000 | ||
| 18 | #define O_PATH 010000000 | ||
| 19 | #define O_TMPFILE 020200000 | ||
| 20 | #define O_NDELAY O_NONBLOCK | ||
| 21 | |||
| 22 | #define F_DUPFD 0 | ||
| 23 | #define F_GETFD 1 | ||
| 24 | #define F_SETFD 2 | ||
| 25 | #define F_GETFL 3 | ||
| 26 | #define F_SETFL 4 | ||
| 27 | |||
| 28 | #define F_SETOWN 8 | ||
| 29 | #define F_GETOWN 9 | ||
| 30 | #define F_SETSIG 10 | ||
| 31 | #define F_GETSIG 11 | ||
| 32 | |||
| 33 | #define F_GETLK 5 | ||
| 34 | #define F_SETLK 6 | ||
| 35 | #define F_SETLKW 7 | ||
| 36 | |||
| 37 | #define F_SETOWN_EX 15 | ||
| 38 | #define F_GETOWN_EX 16 | ||
| 39 | |||
| 40 | #define F_GETOWNER_UIDS 17 | ||
lib/libc/musl/arch/x32/bits/fenv.h created+34| ... | @@ -0,0 +1,34 @@ | ||
| 1 | #define FE_INVALID 1 | ||
| 2 | #define __FE_DENORM 2 | ||
| 3 | #define FE_DIVBYZERO 4 | ||
| 4 | #define FE_OVERFLOW 8 | ||
| 5 | #define FE_UNDERFLOW 16 | ||
| 6 | #define FE_INEXACT 32 | ||
| 7 | |||
| 8 | #define FE_ALL_EXCEPT 63 | ||
| 9 | |||
| 10 | #define FE_TONEAREST 0 | ||
| 11 | #define FE_DOWNWARD 0x400 | ||
| 12 | #define FE_UPWARD 0x800 | ||
| 13 | #define FE_TOWARDZERO 0xc00 | ||
| 14 | |||
| 15 | typedef unsigned short fexcept_t; | ||
| 16 | |||
| 17 | typedef struct { | ||
| 18 | 	unsigned short __control_word; | ||
| 19 | 	unsigned short __unused1; | ||
| 20 | 	unsigned short __status_word; | ||
| 21 | 	unsigned short __unused2; | ||
| 22 | 	unsigned short __tags; | ||
| 23 | 	unsigned short __unused3; | ||
| 24 | 	unsigned int __eip; | ||
| 25 | 	unsigned short __cs_selector; | ||
| 26 | 	unsigned int __opcode:11; | ||
| 27 | 	unsigned int __unused4:5; | ||
| 28 | 	unsigned int __data_offset; | ||
| 29 | 	unsigned short __data_selector; | ||
| 30 | 	unsigned short __unused5; | ||
| 31 | 	unsigned int __mxcsr; | ||
| 32 | } fenv_t; | ||
| 33 | |||
| 34 | #define FE_DFL_ENV ((const fenv_t *) -1) | ||
lib/libc/musl/arch/x32/bits/float.h created+20| ... | @@ -0,0 +1,20 @@ | ||
| 1 | #ifdef __FLT_EVAL_METHOD__ | ||
| 2 | #define FLT_EVAL_METHOD __FLT_EVAL_METHOD__ | ||
| 3 | #else | ||
| 4 | #define FLT_EVAL_METHOD 0 | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #define LDBL_TRUE_MIN 3.6451995318824746025e-4951L | ||
| 8 | #define LDBL_MIN 3.3621031431120935063e-4932L | ||
| 9 | #define LDBL_MAX 1.1897314953572317650e+4932L | ||
| 10 | #define LDBL_EPSILON 1.0842021724855044340e-19L | ||
| 11 | |||
| 12 | #define LDBL_MANT_DIG 64 | ||
| 13 | #define LDBL_MIN_EXP (-16381) | ||
| 14 | #define LDBL_MAX_EXP 16384 | ||
| 15 | |||
| 16 | #define LDBL_DIG 18 | ||
| 17 | #define LDBL_MIN_10_EXP (-4931) | ||
| 18 | #define LDBL_MAX_10_EXP 4932 | ||
| 19 | |||
| 20 | #define DECIMAL_DIG 21 | ||
lib/libc/musl/arch/x32/bits/io.h created+77| ... | @@ -0,0 +1,77 @@ | ||
| 1 | static __inline void outb(unsigned char __val, unsigned short __port) | ||
| 2 | { | ||
| 3 | 	__asm__ volatile ("outb %0,%1" : : "a" (__val), "dN" (__port)); | ||
| 4 | } | ||
| 5 | |||
| 6 | static __inline void outw(unsigned short __val, unsigned short __port) | ||
| 7 | { | ||
| 8 | 	__asm__ volatile ("outw %0,%1" : : "a" (__val), "dN" (__port)); | ||
| 9 | } | ||
| 10 | |||
| 11 | static __inline void outl(unsigned int __val, unsigned short __port) | ||
| 12 | { | ||
| 13 | 	__asm__ volatile ("outl %0,%1" : : "a" (__val), "dN" (__port)); | ||
| 14 | } | ||
| 15 | |||
| 16 | static __inline unsigned char inb(unsigned short __port) | ||
| 17 | { | ||
| 18 | 	unsigned char __val; | ||
| 19 | 	__asm__ volatile ("inb %1,%0" : "=a" (__val) : "dN" (__port)); | ||
| 20 | 	return __val; | ||
| 21 | } | ||
| 22 | |||
| 23 | static __inline unsigned short inw(unsigned short __port) | ||
| 24 | { | ||
| 25 | 	unsigned short __val; | ||
| 26 | 	__asm__ volatile ("inw %1,%0" : "=a" (__val) : "dN" (__port)); | ||
| 27 | 	return __val; | ||
| 28 | } | ||
| 29 | |||
| 30 | static __inline unsigned int inl(unsigned short __port) | ||
| 31 | { | ||
| 32 | 	unsigned int __val; | ||
| 33 | 	__asm__ volatile ("inl %1,%0" : "=a" (__val) : "dN" (__port)); | ||
| 34 | 	return __val; | ||
| 35 | } | ||
| 36 | |||
| 37 | static __inline void outsb(unsigned short __port, const void *__buf, unsigned long __n) | ||
| 38 | { | ||
| 39 | 	__asm__ volatile ("cld; rep; outsb" | ||
| 40 | 		 : "+S" (__buf), "+c" (__n) | ||
| 41 | 		 : "d" (__port)); | ||
| 42 | } | ||
| 43 | |||
| 44 | static __inline void outsw(unsigned short __port, const void *__buf, unsigned long __n) | ||
| 45 | { | ||
| 46 | 	__asm__ volatile ("cld; rep; outsw" | ||
| 47 | 		 : "+S" (__buf), "+c" (__n) | ||
| 48 | 		 : "d" (__port)); | ||
| 49 | } | ||
| 50 | |||
| 51 | static __inline void outsl(unsigned short __port, const void *__buf, unsigned long __n) | ||
| 52 | { | ||
| 53 | 	__asm__ volatile ("cld; rep; outsl" | ||
| 54 | 		 : "+S" (__buf), "+c"(__n) | ||
| 55 | 		 : "d" (__port)); | ||
| 56 | } | ||
| 57 | |||
| 58 | static __inline void insb(unsigned short __port, void *__buf, unsigned long __n) | ||
| 59 | { | ||
| 60 | 	__asm__ volatile ("cld; rep; insb" | ||
| 61 | 		 : "+D" (__buf), "+c" (__n) | ||
| 62 | 		 : "d" (__port)); | ||
| 63 | } | ||
| 64 | |||
| 65 | static __inline void insw(unsigned short __port, void *__buf, unsigned long __n) | ||
| 66 | { | ||
| 67 | 	__asm__ volatile ("cld; rep; insw" | ||
| 68 | 		 : "+D" (__buf), "+c" (__n) | ||
| 69 | 		 : "d" (__port)); | ||
| 70 | } | ||
| 71 | |||
| 72 | static __inline void insl(unsigned short __port, void *__buf, unsigned long __n) | ||
| 73 | { | ||
| 74 | 	__asm__ volatile ("cld; rep; insl" | ||
| 75 | 		 : "+D" (__buf), "+c" (__n) | ||
| 76 | 		 : "d" (__port)); | ||
| 77 | } | ||
lib/libc/musl/arch/x32/bits/ioctl_fix.h created+4| ... | @@ -0,0 +1,4 @@ | ||
| 1 | #undef SIOCGSTAMP | ||
| 2 | #undef SIOCGSTAMPNS | ||
| 3 | #define SIOCGSTAMP 0x8906 | ||
| 4 | #define SIOCGSTAMPNS 0x8907 | ||
lib/libc/musl/arch/x32/bits/ipc.h created+11| ... | @@ -0,0 +1,11 @@ | ||
| 1 | struct ipc_perm { | ||
| 2 | 	key_t __ipc_perm_key; | ||
| 3 | 	uid_t uid; | ||
| 4 | 	gid_t gid; | ||
| 5 | 	uid_t cuid; | ||
| 6 | 	gid_t cgid; | ||
| 7 | 	mode_t mode; | ||
| 8 | 	int __ipc_perm_seq; | ||
| 9 | 	long long __pad1; | ||
| 10 | 	long long __pad2; | ||
| 11 | }; | ||
lib/libc/musl/arch/x32/bits/limits.h created+1| ... | @@ -0,0 +1 @@ | ||
| 1 | #define PAGESIZE 4096 | ||
lib/libc/musl/arch/x32/bits/mman.h created+1| ... | @@ -0,0 +1 @@ | ||
| 1 | #define MAP_32BIT 0x40 | ||
lib/libc/musl/arch/x32/bits/msg.h created+15| ... | @@ -0,0 +1,15 @@ | ||
| 1 | struct msqid_ds { | ||
| 2 | 	struct ipc_perm msg_perm; | ||
| 3 | 	time_t msg_stime; | ||
| 4 | 	time_t msg_rtime; | ||
| 5 | 	time_t msg_ctime; | ||
| 6 | 	unsigned long msg_cbytes; | ||
| 7 | 	long __unused1; | ||
| 8 | 	msgqnum_t msg_qnum; | ||
| 9 | 	long __unused2; | ||
| 10 | 	msglen_t msg_qbytes; | ||
| 11 | 	long __unused3; | ||
| 12 | 	pid_t msg_lspid; | ||
| 13 | 	pid_t msg_lrpid; | ||
| 14 | 	unsigned long long __unused[2]; | ||
| 15 | }; | ||
lib/libc/musl/arch/x32/bits/posix.h created+2| ... | @@ -0,0 +1,2 @@ | ||
| 1 | #define _POSIX_V6_ILP32_OFFBIG 1 | ||
| 2 | #define _POSIX_V7_ILP32_OFFBIG 1 | ||
lib/libc/musl/arch/x32/bits/ptrace.h created+13| ... | @@ -0,0 +1,13 @@ | ||
| 1 | #define PTRACE_GET_THREAD_AREA		25 | ||
| 2 | #define PTRACE_SET_THREAD_AREA		26 | ||
| 3 | #define PTRACE_ARCH_PRCTL		30 | ||
| 4 | #define PTRACE_SYSEMU			31 | ||
| 5 | #define PTRACE_SYSEMU_SINGLESTEP	32 | ||
| 6 | #define PTRACE_SINGLEBLOCK		33 | ||
| 7 | |||
| 8 | #define PT_GET_THREAD_AREA PTRACE_GET_THREAD_AREA | ||
| 9 | #define PT_SET_THREAD_AREA PTRACE_SET_THREAD_AREA | ||
| 10 | #define PT_ARCH_PRCTL PTRACE_ARCH_PRCTL | ||
| 11 | #define PT_SYSEMU PTRACE_SYSEMU | ||
| 12 | #define PT_SYSEMU_SINGLESTEP PTRACE_SYSEMU_SINGLESTEP | ||
| 13 | #define PT_STEPBLOCK PTRACE_SINGLEBLOCK | ||
lib/libc/musl/arch/x32/bits/reg.h created+29| ... | @@ -0,0 +1,29 @@ | ||
| 1 | #undef __WORDSIZE | ||
| 2 | #define __WORDSIZE 32 | ||
| 3 | #define R15 0 | ||
| 4 | #define R14 1 | ||
| 5 | #define R13 2 | ||
| 6 | #define R12 3 | ||
| 7 | #define RBP 4 | ||
| 8 | #define RBX 5 | ||
| 9 | #define R11 6 | ||
| 10 | #define R10 7 | ||
| 11 | #define R9 8 | ||
| 12 | #define R8 9 | ||
| 13 | #define RAX 10 | ||
| 14 | #define RCX 11 | ||
| 15 | #define RDX 12 | ||
| 16 | #define RSI 13 | ||
| 17 | #define RDI 14 | ||
| 18 | #define ORIG_RAX 15 | ||
| 19 | #define RIP 16 | ||
| 20 | #define CS 17 | ||
| 21 | #define EFLAGS 18 | ||
| 22 | #define RSP 19 | ||
| 23 | #define SS 20 | ||
| 24 | #define FS_BASE 21 | ||
| 25 | #define GS_BASE 22 | ||
| 26 | #define DS 23 | ||
| 27 | #define ES 24 | ||
| 28 | #define FS 25 | ||
| 29 | #define GS 26 | ||
lib/libc/musl/arch/x32/bits/sem.h created+11| ... | @@ -0,0 +1,11 @@ | ||
| 1 | struct semid_ds { | ||
| 2 | 	struct ipc_perm sem_perm; | ||
| 3 | 	time_t sem_otime; | ||
| 4 | 	long long __unused1; | ||
| 5 | 	time_t sem_ctime; | ||
| 6 | 	long long __unused2; | ||
| 7 | 	unsigned short sem_nsems; | ||
| 8 | 	char __sem_nsems_pad[sizeof(long long)-sizeof(short)]; | ||
| 9 | 	long long __unused3; | ||
| 10 | 	long long __unused4; | ||
| 11 | }; | ||
lib/libc/musl/arch/x32/bits/setjmp.h created+1| ... | @@ -0,0 +1 @@ | ||
| 1 | typedef unsigned long long __jmp_buf[8]; | ||
lib/libc/musl/arch/x32/bits/shm.h created+32| ... | @@ -0,0 +1,32 @@ | ||
| 1 | #define SHMLBA 4096 | ||
| 2 | |||
| 3 | struct shmid_ds { | ||
| 4 | 	struct ipc_perm shm_perm; | ||
| 5 | 	size_t shm_segsz; | ||
| 6 | 	time_t shm_atime; | ||
| 7 | 	time_t shm_dtime; | ||
| 8 | 	time_t shm_ctime; | ||
| 9 | 	pid_t shm_cpid; | ||
| 10 | 	pid_t shm_lpid; | ||
| 11 | 	unsigned long shm_nattch; | ||
| 12 | 	unsigned long __pad0; | ||
| 13 | 	unsigned long long __pad1; | ||
| 14 | 	unsigned long long __pad2; | ||
| 15 | }; | ||
| 16 | |||
| 17 | struct shminfo { | ||
| 18 | 	unsigned long shmmax, __pad0, shmmin, __pad1, shmmni, __pad2, | ||
| 19 | 	 shmseg, __pad3, shmall, __pad4; | ||
| 20 | 	unsigned long long __unused[4]; | ||
| 21 | }; | ||
| 22 | |||
| 23 | struct shm_info { | ||
| 24 | 	int __used_ids; | ||
| 25 | 	int __pad_ids; | ||
| 26 | 	unsigned long shm_tot, __pad0, shm_rss, __pad1, shm_swp, __pad2; | ||
| 27 | 	unsigned long __swap_attempts, __pad3, __swap_successes, __pad4; | ||
| 28 | } | ||
| 29 | #ifdef __GNUC__ | ||
| 30 | __attribute__((__aligned__(8))) | ||
| 31 | #endif | ||
| 32 | ; | ||
lib/libc/musl/arch/x32/bits/signal.h created+153| ... | @@ -0,0 +1,153 @@ | ||
| 1 | #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ | ||
| 2 | || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 3 | |||
| 4 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 5 | #define MINSIGSTKSZ 2048 | ||
| 6 | #define SIGSTKSZ 8192 | ||
| 7 | #endif | ||
| 8 | |||
| 9 | #ifdef _GNU_SOURCE | ||
| 10 | enum { REG_R8 = 0 }; | ||
| 11 | #define REG_R8 REG_R8 | ||
| 12 | enum { REG_R9 = 1 }; | ||
| 13 | #define REG_R9 REG_R9 | ||
| 14 | enum { REG_R10 = 2 }; | ||
| 15 | #define REG_R10 REG_R10 | ||
| 16 | enum { REG_R11 = 3 }; | ||
| 17 | #define REG_R11 REG_R11 | ||
| 18 | enum { REG_R12 = 4 }; | ||
| 19 | #define REG_R12 REG_R12 | ||
| 20 | enum { REG_R13 = 5 }; | ||
| 21 | #define REG_R13 REG_R13 | ||
| 22 | enum { REG_R14 = 6 }; | ||
| 23 | #define REG_R14 REG_R14 | ||
| 24 | enum { REG_R15 = 7 }; | ||
| 25 | #define REG_R15 REG_R15 | ||
| 26 | enum { REG_RDI = 8 }; | ||
| 27 | #define REG_RDI REG_RDI | ||
| 28 | enum { REG_RSI = 9 }; | ||
| 29 | #define REG_RSI REG_RSI | ||
| 30 | enum { REG_RBP = 10 }; | ||
| 31 | #define REG_RBP REG_RBP | ||
| 32 | enum { REG_RBX = 11 }; | ||
| 33 | #define REG_RBX REG_RBX | ||
| 34 | enum { REG_RDX = 12 }; | ||
| 35 | #define REG_RDX REG_RDX | ||
| 36 | enum { REG_RAX = 13 }; | ||
| 37 | #define REG_RAX REG_RAX | ||
| 38 | enum { REG_RCX = 14 }; | ||
| 39 | #define REG_RCX REG_RCX | ||
| 40 | enum { REG_RSP = 15 }; | ||
| 41 | #define REG_RSP REG_RSP | ||
| 42 | enum { REG_RIP = 16 }; | ||
| 43 | #define REG_RIP REG_RIP | ||
| 44 | enum { REG_EFL = 17 }; | ||
| 45 | #define REG_EFL REG_EFL | ||
| 46 | enum { REG_CSGSFS = 18 }; | ||
| 47 | #define REG_CSGSFS REG_CSGSFS | ||
| 48 | enum { REG_ERR = 19 }; | ||
| 49 | #define REG_ERR REG_ERR | ||
| 50 | enum { REG_TRAPNO = 20 }; | ||
| 51 | #define REG_TRAPNO REG_TRAPNO | ||
| 52 | enum { REG_OLDMASK = 21 }; | ||
| 53 | #define REG_OLDMASK REG_OLDMASK | ||
| 54 | enum { REG_CR2 = 22 }; | ||
| 55 | #define REG_CR2 REG_CR2 | ||
| 56 | #endif | ||
| 57 | |||
| 58 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||
| 59 | typedef long long greg_t, gregset_t[23]; | ||
| 60 | typedef struct _fpstate { | ||
| 61 | 	unsigned short cwd, swd, ftw, fop; | ||
| 62 | 	unsigned long long rip, rdp; | ||
| 63 | 	unsigned mxcsr, mxcr_mask; | ||
| 64 | 	struct { | ||
| 65 | 		unsigned short significand[4], exponent, padding[3]; | ||
| 66 | 	} _st[8]; | ||
| 67 | 	struct { | ||
| 68 | 		unsigned element[4]; | ||
| 69 | 	} _xmm[16]; | ||
| 70 | 	unsigned padding[24]; | ||
| 71 | } *fpregset_t; | ||
| 72 | struct sigcontext { | ||
| 73 | 	unsigned long long r8, r9, r10, r11, r12, r13, r14, r15; | ||
| 74 | 	unsigned long long rdi, rsi, rbp, rbx, rdx, rax, rcx, rsp, rip, eflags; | ||
| 75 | 	unsigned short cs, gs, fs, __pad0; | ||
| 76 | 	unsigned long long err, trapno, oldmask, cr2; | ||
| 77 | 	struct _fpstate *fpstate; | ||
| 78 | 	unsigned long long __reserved1[8]; | ||
| 79 | }; | ||
| 80 | typedef struct { | ||
| 81 | 	gregset_t gregs; | ||
| 82 | 	fpregset_t fpregs; | ||
| 83 | 	unsigned long long __reserved1[8]; | ||
| 84 | } mcontext_t; | ||
| 85 | #else | ||
| 86 | typedef struct { | ||
| 87 | 	unsigned long long __space[32]; | ||
| 88 | } mcontext_t; | ||
| 89 | #endif | ||
| 90 | |||
| 91 | struct sigaltstack { | ||
| 92 | 	void *ss_sp; | ||
| 93 | 	int ss_flags; | ||
| 94 | 	size_t ss_size; | ||
| 95 | }; | ||
| 96 | |||
| 97 | typedef struct __ucontext { | ||
| 98 | 	unsigned long uc_flags; | ||
| 99 | 	struct __ucontext *uc_link; | ||
| 100 | 	stack_t uc_stack; | ||
| 101 | 	mcontext_t uc_mcontext; | ||
| 102 | 	sigset_t uc_sigmask; | ||
| 103 | 	unsigned long long __fpregs_mem[64]; | ||
| 104 | } ucontext_t; | ||
| 105 | |||
| 106 | #define SA_NOCLDSTOP 1 | ||
| 107 | #define SA_NOCLDWAIT 2 | ||
| 108 | #define SA_SIGINFO 4 | ||
| 109 | #define SA_ONSTACK 0x08000000 | ||
| 110 | #define SA_RESTART 0x10000000 | ||
| 111 | #define SA_NODEFER 0x40000000 | ||
| 112 | #define SA_RESETHAND 0x80000000 | ||
| 113 | #define SA_RESTORER 0x04000000 | ||
| 114 | |||
| 115 | #endif | ||
| 116 | |||
| 117 | #define SIGHUP 1 | ||
| 118 | #define SIGINT 2 | ||
| 119 | #define SIGQUIT 3 | ||
| 120 | #define SIGILL 4 | ||
| 121 | #define SIGTRAP 5 | ||
| 122 | #define SIGABRT 6 | ||
| 123 | #define SIGIOT SIGABRT | ||
| 124 | #define SIGBUS 7 | ||
| 125 | #define SIGFPE 8 | ||
| 126 | #define SIGKILL 9 | ||
| 127 | #define SIGUSR1 10 | ||
| 128 | #define SIGSEGV 11 | ||
| 129 | #define SIGUSR2 12 | ||
| 130 | #define SIGPIPE 13 | ||
| 131 | #define SIGALRM 14 | ||
| 132 | #define SIGTERM 15 | ||
| 133 | #define SIGSTKFLT 16 | ||
| 134 | #define SIGCHLD 17 | ||
| 135 | #define SIGCONT 18 | ||
| 136 | #define SIGSTOP 19 | ||
| 137 | #define SIGTSTP 20 | ||
| 138 | #define SIGTTIN 21 | ||
| 139 | #define SIGTTOU 22 | ||
| 140 | #define SIGURG 23 | ||
| 141 | #define SIGXCPU 24 | ||
| 142 | #define SIGXFSZ 25 | ||
| 143 | #define SIGVTALRM 26 | ||
| 144 | #define SIGPROF 27 | ||
| 145 | #define SIGWINCH 28 | ||
| 146 | #define SIGIO 29 | ||
| 147 | #define SIGPOLL 29 | ||
| 148 | #define SIGPWR 30 | ||
| 149 | #define SIGSYS 31 | ||
| 150 | #define SIGUNUSED SIGSYS | ||
| 151 | |||
| 152 | #define _NSIG 65 | ||
| 153 | |||
lib/libc/musl/arch/x32/bits/socket.h created+5| ... | @@ -0,0 +1,5 @@ | ||
| 1 | #define SO_RCVTIMEO 20 | ||
| 2 | #define SO_SNDTIMEO 21 | ||
| 3 | #define SO_TIMESTAMP 29 | ||
| 4 | #define SO_TIMESTAMPNS 35 | ||
| 5 | #define SO_TIMESTAMPING 37 | ||
lib/libc/musl/arch/x32/bits/stat.h created+22| ... | @@ -0,0 +1,22 @@ | ||
| 1 | /* copied from kernel definition, but with padding replaced | ||
| 2 | * by the corresponding correctly-sized userspace types. */ | ||
| 3 | |||
| 4 | struct stat { | ||
| 5 | 	dev_t st_dev; | ||
| 6 | 	ino_t st_ino; | ||
| 7 | 	nlink_t st_nlink; | ||
| 8 | |||
| 9 | 	mode_t st_mode; | ||
| 10 | 	uid_t st_uid; | ||
| 11 | 	gid_t st_gid; | ||
| 12 | 	unsigned int __pad0; | ||
| 13 | 	dev_t st_rdev; | ||
| 14 | 	off_t st_size; | ||
| 15 | 	blksize_t st_blksize; | ||
| 16 | 	blkcnt_t st_blocks; | ||
| 17 | |||
| 18 | 	struct timespec st_atim; | ||
| 19 | 	struct timespec st_mtim; | ||
| 20 | 	struct timespec st_ctim; | ||
| 21 | 	long long __unused[3]; | ||
| 22 | }; | ||
lib/libc/musl/arch/x32/bits/statfs.h created+9| ... | @@ -0,0 +1,9 @@ | ||
| 1 | struct statfs { | ||
| 2 | 	unsigned long f_type, __pad0, f_bsize, __pad1; | ||
| 3 | 	fsblkcnt_t f_blocks, f_bfree, f_bavail; | ||
| 4 | 	fsfilcnt_t f_files, f_ffree; | ||
| 5 | 	fsid_t f_fsid; | ||
| 6 | 	unsigned long f_namelen, __pad2, f_frsize, __pad3; | ||
| 7 | 	unsigned long f_flags, __pad4; | ||
| 8 | 	unsigned long long f_spare[4]; | ||
| 9 | }; | ||
lib/libc/musl/arch/x32/bits/stdint.h created+20| ... | @@ -0,0 +1,20 @@ | ||
| 1 | typedef int32_t int_fast16_t; | ||
| 2 | typedef int32_t int_fast32_t; | ||
| 3 | typedef uint32_t uint_fast16_t; | ||
| 4 | typedef uint32_t uint_fast32_t; | ||
| 5 | |||
| 6 | #define INT_FAST16_MIN INT32_MIN | ||
| 7 | #define INT_FAST32_MIN INT32_MIN | ||
| 8 | |||
| 9 | #define INT_FAST16_MAX INT32_MAX | ||
| 10 | #define INT_FAST32_MAX INT32_MAX | ||
| 11 | |||
| 12 | #define UINT_FAST16_MAX UINT32_MAX | ||
| 13 | #define UINT_FAST32_MAX UINT32_MAX | ||
| 14 | |||
| 15 | #define INTPTR_MIN INT32_MIN | ||
| 16 | #define INTPTR_MAX INT32_MAX | ||
| 17 | #define UINTPTR_MAX UINT32_MAX | ||
| 18 | #define PTRDIFF_MIN INT32_MIN | ||
| 19 | #define PTRDIFF_MAX INT32_MAX | ||
| 20 | #define SIZE_MAX UINT32_MAX | ||
lib/libc/musl/arch/x32/bits/user.h created+41| ... | @@ -0,0 +1,41 @@ | ||
| 1 | #undef __WORDSIZE | ||
| 2 | #define __WORDSIZE 32 | ||
| 3 | |||
| 4 | typedef struct user_fpregs_struct { | ||
| 5 | 	uint16_t cwd, swd, ftw, fop; | ||
| 6 | 	uint64_t rip, rdp; | ||
| 7 | 	uint32_t mxcsr, mxcr_mask; | ||
| 8 | 	uint32_t st_space[32], xmm_space[64], padding[24]; | ||
| 9 | } elf_fpregset_t; | ||
| 10 | |||
| 11 | struct user_regs_struct { | ||
| 12 | 	unsigned long r15, r14, r13, r12, rbp, rbx, r11, r10, r9, r8; | ||
| 13 | 	unsigned long rax, rcx, rdx, rsi, rdi, orig_rax, rip; | ||
| 14 | 	unsigned long cs, eflags, rsp, ss, fs_base, gs_base, ds, es, fs, gs; | ||
| 15 | }; | ||
| 16 | #define ELF_NGREG 27 | ||
| 17 | typedef unsigned long long elf_greg_t, elf_gregset_t[ELF_NGREG]; | ||
| 18 | |||
| 19 | struct user { | ||
| 20 | 	struct user_regs_struct		regs; | ||
| 21 | 	int				u_fpvalid; | ||
| 22 | 	struct user_fpregs_struct	i387; | ||
| 23 | 	unsigned long			u_tsize; | ||
| 24 | 	unsigned long			u_dsize; | ||
| 25 | 	unsigned long			u_ssize; | ||
| 26 | 	unsigned long			start_code; | ||
| 27 | 	unsigned long			start_stack; | ||
| 28 | 	long				signal; | ||
| 29 | 	int				reserved; | ||
| 30 | 	struct user_regs_struct		*u_ar0; | ||
| 31 | 	struct user_fpregs_struct	*u_fpstate; | ||
| 32 | 	unsigned long			magic; | ||
| 33 | 	char				u_comm[32]; | ||
| 34 | 	unsigned long			u_debugreg[8]; | ||
| 35 | }; | ||
| 36 | |||
| 37 | #define PAGE_MASK		(~(PAGESIZE-1)) | ||
| 38 | #define NBPG			PAGESIZE | ||
| 39 | #define UPAGES			1 | ||
| 40 | #define HOST_TEXT_START_ADDR	(u.start_code) | ||
| 41 | #define HOST_STACK_END_ADDR	(u.start_stack + u.u_ssize * NBPG) | ||
lib/libc/musl/arch/x32/crt_arch.h created+12| ... | @@ -0,0 +1,12 @@ | ||
| 1 | __asm__( | ||
| 2 | ".text \n" | ||
| 3 | ".global " START " \n" | ||
| 4 | START ": \n" | ||
| 5 | "	xor %rbp,%rbp \n" | ||
| 6 | "	mov %rsp,%rdi \n" | ||
| 7 | ".weak _DYNAMIC \n" | ||
| 8 | ".hidden _DYNAMIC \n" | ||
| 9 | "	lea _DYNAMIC(%rip),%rsi \n" | ||
| 10 | "	andq $-16,%rsp \n" | ||
| 11 | "	call " START "_c \n" | ||
| 12 | ); | ||
lib/libc/musl/arch/x32/ksigaction.h created+11| ... | @@ -0,0 +1,11 @@ | ||
| 1 | #include <features.h> | ||
| 2 | |||
| 3 | struct k_sigaction { | ||
| 4 | 	void (*handler)(int); | ||
| 5 | 	unsigned long flags; | ||
| 6 | 	void (*restorer)(void); | ||
| 7 | 	unsigned mask[2]; | ||
| 8 | }; | ||
| 9 | |||
| 10 | hidden void __restore_rt(); | ||
| 11 | #define __restore __restore_rt | ||
lib/libc/musl/arch/x32/kstat.h created+22| ... | @@ -0,0 +1,22 @@ | ||
| 1 | struct kstat { | ||
| 2 | 	dev_t st_dev; | ||
| 3 | 	ino_t st_ino; | ||
| 4 | 	nlink_t st_nlink; | ||
| 5 | |||
| 6 | 	mode_t st_mode; | ||
| 7 | 	uid_t st_uid; | ||
| 8 | 	gid_t st_gid; | ||
| 9 | 	unsigned int __pad0; | ||
| 10 | 	dev_t st_rdev; | ||
| 11 | 	off_t st_size; | ||
| 12 | 	blksize_t st_blksize; | ||
| 13 | 	blkcnt_t st_blocks; | ||
| 14 | |||
| 15 | 	long long st_atime_sec; | ||
| 16 | 	long st_atime_nsec; | ||
| 17 | 	long long st_mtime_sec; | ||
| 18 | 	long st_mtime_nsec; | ||
| 19 | 	long long st_ctime_sec; | ||
| 20 | 	long st_ctime_nsec; | ||
| 21 | 	long long __unused[3]; | ||
| 22 | }; | ||
lib/libc/musl/arch/x32/pthread_arch.h created+12| ... | @@ -0,0 +1,12 @@ | ||
| 1 | static inline uintptr_t __get_tp() | ||
| 2 | { | ||
| 3 | 	uintptr_t tp; | ||
| 4 | 	__asm__ ("mov %%fs:0,%0" : "=r" (tp) ); | ||
| 5 | 	return tp; | ||
| 6 | } | ||
| 7 | |||
| 8 | #define MC_PC gregs[REG_RIP] | ||
| 9 | |||
| 10 | #define CANARY_PAD | ||
| 11 | |||
| 12 | #define tls_mod_off_t unsigned long long | ||
lib/libc/musl/arch/x32/reloc.h created+31| ... | @@ -0,0 +1,31 @@ | ||
| 1 | #define LDSO_ARCH "x32" | ||
| 2 | |||
| 3 | /* FIXME: x32 is very strange in its use of 64-bit relocation types in | ||
| 4 | * a 32-bit environment. As long as the memory at reloc_addr is | ||
| 5 | * zero-filled prior to relocations, just treating 64-bit relocations | ||
| 6 | * as operating on 32-bit slots should be fine, but this should be | ||
| 7 | * checked. In particular, R_X86_64_64, R_X86_64_DTPOFF64, and | ||
| 8 | * R_X86_64_TPOFF64 may need checking. */ | ||
| 9 | |||
| 10 | /* The R_X86_64_64, R_X86_64_DTPOFF32, and R_X86_64_TPOFF32 reloc types | ||
| 11 | * were previously mapped in the switch table form of this file; however, | ||
| 12 | * they do not seem to be used/usable for anything. If needed, new | ||
| 13 | * mappings will have to be added. */ | ||
| 14 | |||
| 15 | #define REL_SYMBOLIC R_X86_64_32 | ||
| 16 | #define REL_OFFSET R_X86_64_PC32 | ||
| 17 | #define REL_GOT R_X86_64_GLOB_DAT | ||
| 18 | #define REL_PLT R_X86_64_JUMP_SLOT | ||
| 19 | #define REL_RELATIVE R_X86_64_RELATIVE | ||
| 20 | #define REL_COPY R_X86_64_COPY | ||
| 21 | #define REL_DTPMOD R_X86_64_DTPMOD64 | ||
| 22 | #define REL_DTPOFF R_X86_64_DTPOFF64 | ||
| 23 | #define REL_TPOFF R_X86_64_TPOFF64 | ||
| 24 | |||
| 25 | #define CRTJMP(pc,sp) __asm__ __volatile__( \ | ||
| 26 | 	"mov %1,%%esp ; jmp *%0" : : "r"((uint64_t)(uintptr_t)pc), "r"(sp) : "memory" ) | ||
| 27 | |||
| 28 | #define GETFUNCSYM(fp, sym, got) __asm__ ( \ | ||
| 29 | 	".hidden " #sym "\n" \ | ||
| 30 | 	"	lea " #sym "(%%rip),%0\n" \ | ||
| 31 | 	: "=r"(*fp) : : "memory" ) | ||
lib/libc/musl/arch/x32/syscall_arch.h created+93| ... | @@ -0,0 +1,93 @@ | ||
| 1 | #define __SYSCALL_LL_E(x) (x) | ||
| 2 | #define __SYSCALL_LL_O(x) (x) | ||
| 3 | |||
| 4 | #define __scc(X) sizeof(1?(X):0ULL) < 8 ? (unsigned long) (X) : (long long) (X) | ||
| 5 | typedef long long syscall_arg_t; | ||
| 6 | |||
| 7 | static __inline long __syscall0(long long n) | ||
| 8 | { | ||
| 9 | 	unsigned long ret; | ||
| 10 | 	__asm__ __volatile__ ("syscall" : "=a"(ret) : "a"(n) : "rcx", "r11", "memory"); | ||
| 11 | 	return ret; | ||
| 12 | } | ||
| 13 | |||
| 14 | static __inline long __syscall1(long long n, long long a1) | ||
| 15 | { | ||
| 16 | 	unsigned long ret; | ||
| 17 | 	__asm__ __volatile__ ("syscall" : "=a"(ret) : "a"(n), "D"(a1) : "rcx", "r11", "memory"); | ||
| 18 | 	return ret; | ||
| 19 | } | ||
| 20 | |||
| 21 | static __inline long __syscall2(long long n, long long a1, long long a2) | ||
| 22 | { | ||
| 23 | 	unsigned long ret; | ||
| 24 | 	__asm__ __volatile__ ("syscall" : "=a"(ret) : "a"(n), "D"(a1), "S"(a2) | ||
| 25 | 					: "rcx", "r11", "memory"); | ||
| 26 | 	return ret; | ||
| 27 | } | ||
| 28 | |||
| 29 | static __inline long __syscall3(long long n, long long a1, long long a2, long long a3) | ||
| 30 | { | ||
| 31 | 	unsigned long ret; | ||
| 32 | 	__asm__ __volatile__ ("syscall" : "=a"(ret) : "a"(n), "D"(a1), "S"(a2), | ||
| 33 | 						 "d"(a3) : "rcx", "r11", "memory"); | ||
| 34 | 	return ret; | ||
| 35 | } | ||
| 36 | |||
| 37 | static __inline long __syscall4(long long n, long long a1, long long a2, long long a3, | ||
| 38 | long long a4_) | ||
| 39 | { | ||
| 40 | 	unsigned long ret; | ||
| 41 | 	register long long a4 __asm__("r10") = a4_; | ||
| 42 | 	__asm__ __volatile__ ("syscall" : "=a"(ret) : "a"(n), "D"(a1), "S"(a2), | ||
| 43 | 					 "d"(a3), "r"(a4): "rcx", "r11", "memory"); | ||
| 44 | 	return ret; | ||
| 45 | } | ||
| 46 | |||
| 47 | static __inline long __syscall5(long long n, long long a1, long long a2, long long a3, | ||
| 48 | long long a4_, long long a5_) | ||
| 49 | { | ||
| 50 | 	unsigned long ret; | ||
| 51 | 	register long long a4 __asm__("r10") = a4_; | ||
| 52 | 	register long long a5 __asm__("r8") = a5_; | ||
| 53 | 	__asm__ __volatile__ ("syscall" : "=a"(ret) : "a"(n), "D"(a1), "S"(a2), | ||
| 54 | 					 "d"(a3), "r"(a4), "r"(a5) : "rcx", "r11", "memory"); | ||
| 55 | 	return ret; | ||
| 56 | } | ||
| 57 | |||
| 58 | static __inline long __syscall6(long long n, long long a1, long long a2, long long a3, | ||
| 59 | long long a4_, long long a5_, long long a6_) | ||
| 60 | { | ||
| 61 | 	unsigned long ret; | ||
| 62 | 	register long long a4 __asm__("r10") = a4_; | ||
| 63 | 	register long long a5 __asm__("r8") = a5_; | ||
| 64 | 	register long long a6 __asm__("r9") = a6_; | ||
| 65 | 	__asm__ __volatile__ ("syscall" : "=a"(ret) : "a"(n), "D"(a1), "S"(a2), | ||
| 66 | 					 "d"(a3), "r"(a4), "r"(a5), "r"(a6) : "rcx", "r11", "memory"); | ||
| 67 | 	return ret; | ||
| 68 | } | ||
| 69 | |||
| 70 | #undef SYS_futimesat | ||
| 71 | |||
| 72 | #define SYS_clock_gettime64 SYS_clock_gettime | ||
| 73 | #define SYS_clock_settime64 SYS_clock_settime | ||
| 74 | #define SYS_clock_adjtime64 SYS_clock_adjtime | ||
| 75 | #define SYS_clock_nanosleep_time64 SYS_clock_nanosleep | ||
| 76 | #define SYS_timer_gettime64 SYS_timer_gettime | ||
| 77 | #define SYS_timer_settime64 SYS_timer_settime | ||
| 78 | #define SYS_timerfd_gettime64 SYS_timerfd_gettime | ||
| 79 | #define SYS_timerfd_settime64 SYS_timerfd_settime | ||
| 80 | #define SYS_utimensat_time64 SYS_utimensat | ||
| 81 | #define SYS_pselect6_time64 SYS_pselect6 | ||
| 82 | #define SYS_ppoll_time64 SYS_ppoll | ||
| 83 | #define SYS_recvmmsg_time64 SYS_recvmmsg | ||
| 84 | #define SYS_mq_timedsend_time64 SYS_mq_timedsend | ||
| 85 | #define SYS_mq_timedreceive_time64 SYS_mq_timedreceive | ||
| 86 | #define SYS_semtimedop_time64 SYS_semtimedop | ||
| 87 | #define SYS_rt_sigtimedwait_time64 SYS_rt_sigtimedwait | ||
| 88 | #define SYS_futex_time64 SYS_futex | ||
| 89 | #define SYS_sched_rr_get_interval_time64 SYS_sched_rr_get_interval | ||
| 90 | #define SYS_getrusage_time64 SYS_getrusage | ||
| 91 | #define SYS_wait4_time64 SYS_wait4 | ||
| 92 | |||
| 93 | #define IPC_64 0 | ||
lib/libc/musl/arch/x86_64/bits/alltypes.h.in deleted-20| ... | @@ -1,20 +0,0 @@ | ||
| 1 | #define _Addr long | ||
| 2 | #define _Int64 long | ||
| 3 | #define _Reg long | ||
| 4 | |||
| 5 | #define __BYTE_ORDER 1234 | ||
| 6 | #define __LONG_MAX 0x7fffffffffffffffL | ||
| 7 | |||
| 8 | #ifndef __cplusplus | ||
| 9 | TYPEDEF int wchar_t; | ||
| 10 | #endif | ||
| 11 | |||
| 12 | #if defined(__FLT_EVAL_METHOD__) && __FLT_EVAL_METHOD__ == 2 | ||
| 13 | TYPEDEF long double float_t; | ||
| 14 | TYPEDEF long double double_t; | ||
| 15 | #else | ||
| 16 | TYPEDEF float float_t; | ||
| 17 | TYPEDEF double double_t; | ||
| 18 | #endif | ||
| 19 | |||
| 20 | TYPEDEF struct { long long __ll; long double __ld; } max_align_t; | ||
lib/libc/musl/arch/x86_64/bits/syscall.h.in deleted-364| ... | @@ -1,364 +0,0 @@ | ||
| 1 | #define __NR_read				0 | ||
| 2 | #define __NR_write				1 | ||
| 3 | #define __NR_open				2 | ||
| 4 | #define __NR_close				3 | ||
| 5 | #define __NR_stat				4 | ||
| 6 | #define __NR_fstat				5 | ||
| 7 | #define __NR_lstat				6 | ||
| 8 | #define __NR_poll				7 | ||
| 9 | #define __NR_lseek				8 | ||
| 10 | #define __NR_mmap				9 | ||
| 11 | #define __NR_mprotect			10 | ||
| 12 | #define __NR_munmap				11 | ||
| 13 | #define __NR_brk				12 | ||
| 14 | #define __NR_rt_sigaction		13 | ||
| 15 | #define __NR_rt_sigprocmask		14 | ||
| 16 | #define __NR_rt_sigreturn		15 | ||
| 17 | #define __NR_ioctl				16 | ||
| 18 | #define __NR_pread64			17 | ||
| 19 | #define __NR_pwrite64			18 | ||
| 20 | #define __NR_readv				19 | ||
| 21 | #define __NR_writev				20 | ||
| 22 | #define __NR_access				21 | ||
| 23 | #define __NR_pipe				22 | ||
| 24 | #define __NR_select				23 | ||
| 25 | #define __NR_sched_yield		24 | ||
| 26 | #define __NR_mremap				25 | ||
| 27 | #define __NR_msync				26 | ||
| 28 | #define __NR_mincore			27 | ||
| 29 | #define __NR_madvise			28 | ||
| 30 | #define __NR_shmget				29 | ||
| 31 | #define __NR_shmat				30 | ||
| 32 | #define __NR_shmctl				31 | ||
| 33 | #define __NR_dup				32 | ||
| 34 | #define __NR_dup2				33 | ||
| 35 | #define __NR_pause				34 | ||
| 36 | #define __NR_nanosleep			35 | ||
| 37 | #define __NR_getitimer			36 | ||
| 38 | #define __NR_alarm				37 | ||
| 39 | #define __NR_setitimer			38 | ||
| 40 | #define __NR_getpid				39 | ||
| 41 | #define __NR_sendfile			40 | ||
| 42 | #define __NR_socket				41 | ||
| 43 | #define __NR_connect			42 | ||
| 44 | #define __NR_accept				43 | ||
| 45 | #define __NR_sendto				44 | ||
| 46 | #define __NR_recvfrom			45 | ||
| 47 | #define __NR_sendmsg			46 | ||
| 48 | #define __NR_recvmsg			47 | ||
| 49 | #define __NR_shutdown			48 | ||
| 50 | #define __NR_bind				49 | ||
| 51 | #define __NR_listen				50 | ||
| 52 | #define __NR_getsockname		51 | ||
| 53 | #define __NR_getpeername		52 | ||
| 54 | #define __NR_socketpair			53 | ||
| 55 | #define __NR_setsockopt			54 | ||
| 56 | #define __NR_getsockopt			55 | ||
| 57 | #define __NR_clone				56 | ||
| 58 | #define __NR_fork				57 | ||
| 59 | #define __NR_vfork				58 | ||
| 60 | #define __NR_execve				59 | ||
| 61 | #define __NR_exit				60 | ||
| 62 | #define __NR_wait4				61 | ||
| 63 | #define __NR_kill				62 | ||
| 64 | #define __NR_uname				63 | ||
| 65 | #define __NR_semget				64 | ||
| 66 | #define __NR_semop				65 | ||
| 67 | #define __NR_semctl				66 | ||
| 68 | #define __NR_shmdt				67 | ||
| 69 | #define __NR_msgget				68 | ||
| 70 | #define __NR_msgsnd				69 | ||
| 71 | #define __NR_msgrcv				70 | ||
| 72 | #define __NR_msgctl				71 | ||
| 73 | #define __NR_fcntl				72 | ||
| 74 | #define __NR_flock				73 | ||
| 75 | #define __NR_fsync				74 | ||
| 76 | #define __NR_fdatasync			75 | ||
| 77 | #define __NR_truncate			76 | ||
| 78 | #define __NR_ftruncate			77 | ||
| 79 | #define __NR_getdents			78 | ||
| 80 | #define __NR_getcwd				79 | ||
| 81 | #define __NR_chdir				80 | ||
| 82 | #define __NR_fchdir				81 | ||
| 83 | #define __NR_rename				82 | ||
| 84 | #define __NR_mkdir				83 | ||
| 85 | #define __NR_rmdir				84 | ||
| 86 | #define __NR_creat				85 | ||
| 87 | #define __NR_link				86 | ||
| 88 | #define __NR_unlink				87 | ||
| 89 | #define __NR_symlink			88 | ||
| 90 | #define __NR_readlink			89 | ||
| 91 | #define __NR_chmod				90 | ||
| 92 | #define __NR_fchmod				91 | ||
| 93 | #define __NR_chown				92 | ||
| 94 | #define __NR_fchown				93 | ||
| 95 | #define __NR_lchown				94 | ||
| 96 | #define __NR_umask				95 | ||
| 97 | #define __NR_gettimeofday		96 | ||
| 98 | #define __NR_getrlimit			97 | ||
| 99 | #define __NR_getrusage			98 | ||
| 100 | #define __NR_sysinfo			99 | ||
| 101 | #define __NR_times				100 | ||
| 102 | #define __NR_ptrace				101 | ||
| 103 | #define __NR_getuid				102 | ||
| 104 | #define __NR_syslog				103 | ||
| 105 | #define __NR_getgid				104 | ||
| 106 | #define __NR_setuid				105 | ||
| 107 | #define __NR_setgid				106 | ||
| 108 | #define __NR_geteuid			107 | ||
| 109 | #define __NR_getegid			108 | ||
| 110 | #define __NR_setpgid			109 | ||
| 111 | #define __NR_getppid			110 | ||
| 112 | #define __NR_getpgrp			111 | ||
| 113 | #define __NR_setsid				112 | ||
| 114 | #define __NR_setreuid			113 | ||
| 115 | #define __NR_setregid			114 | ||
| 116 | #define __NR_getgroups			115 | ||
| 117 | #define __NR_setgroups			116 | ||
| 118 | #define __NR_setresuid			117 | ||
| 119 | #define __NR_getresuid			118 | ||
| 120 | #define __NR_setresgid			119 | ||
| 121 | #define __NR_getresgid			120 | ||
| 122 | #define __NR_getpgid			121 | ||
| 123 | #define __NR_setfsuid			122 | ||
| 124 | #define __NR_setfsgid			123 | ||
| 125 | #define __NR_getsid				124 | ||
| 126 | #define __NR_capget				125 | ||
| 127 | #define __NR_capset				126 | ||
| 128 | #define __NR_rt_sigpending		127 | ||
| 129 | #define __NR_rt_sigtimedwait	128 | ||
| 130 | #define __NR_rt_sigqueueinfo	129 | ||
| 131 | #define __NR_rt_sigsuspend		130 | ||
| 132 | #define __NR_sigaltstack		131 | ||
| 133 | #define __NR_utime				132 | ||
| 134 | #define __NR_mknod				133 | ||
| 135 | #define __NR_uselib				134 | ||
| 136 | #define __NR_personality		135 | ||
| 137 | #define __NR_ustat				136 | ||
| 138 | #define __NR_statfs				137 | ||
| 139 | #define __NR_fstatfs			138 | ||
| 140 | #define __NR_sysfs				139 | ||
| 141 | #define __NR_getpriority			140 | ||
| 142 | #define __NR_setpriority			141 | ||
| 143 | #define __NR_sched_setparam			142 | ||
| 144 | #define __NR_sched_getparam			143 | ||
| 145 | #define __NR_sched_setscheduler		144 | ||
| 146 | #define __NR_sched_getscheduler		145 | ||
| 147 | #define __NR_sched_get_priority_max	146 | ||
| 148 | #define __NR_sched_get_priority_min	147 | ||
| 149 | #define __NR_sched_rr_get_interval	148 | ||
| 150 | #define __NR_mlock					149 | ||
| 151 | #define __NR_munlock				150 | ||
| 152 | #define __NR_mlockall				151 | ||
| 153 | #define __NR_munlockall				152 | ||
| 154 | #define __NR_vhangup				153 | ||
| 155 | #define __NR_modify_ldt				154 | ||
| 156 | #define __NR_pivot_root				155 | ||
| 157 | #define __NR__sysctl				156 | ||
| 158 | #define __NR_prctl					157 | ||
| 159 | #define __NR_arch_prctl				158 | ||
| 160 | #define __NR_adjtimex				159 | ||
| 161 | #define __NR_setrlimit				160 | ||
| 162 | #define __NR_chroot					161 | ||
| 163 | #define __NR_sync					162 | ||
| 164 | #define __NR_acct					163 | ||
| 165 | #define __NR_settimeofday			164 | ||
| 166 | #define __NR_mount					165 | ||
| 167 | #define __NR_umount2				166 | ||
| 168 | #define __NR_swapon					167 | ||
| 169 | #define __NR_swapoff				168 | ||
| 170 | #define __NR_reboot					169 | ||
| 171 | #define __NR_sethostname			170 | ||
| 172 | #define __NR_setdomainname			171 | ||
| 173 | #define __NR_iopl					172 | ||
| 174 | #define __NR_ioperm					173 | ||
| 175 | #define __NR_create_module			174 | ||
| 176 | #define __NR_init_module			175 | ||
| 177 | #define __NR_delete_module			176 | ||
| 178 | #define __NR_get_kernel_syms		177 | ||
| 179 | #define __NR_query_module			178 | ||
| 180 | #define __NR_quotactl				179 | ||
| 181 | #define __NR_nfsservctl				180 | ||
| 182 | #define __NR_getpmsg				181 | ||
| 183 | #define __NR_putpmsg				182 | ||
| 184 | #define __NR_afs_syscall			183 | ||
| 185 | #define __NR_tuxcall				184 | ||
| 186 | #define __NR_security				185 | ||
| 187 | #define __NR_gettid					186 | ||
| 188 | #define __NR_readahead				187 | ||
| 189 | #define __NR_setxattr				188 | ||
| 190 | #define __NR_lsetxattr				189 | ||
| 191 | #define __NR_fsetxattr				190 | ||
| 192 | #define __NR_getxattr				191 | ||
| 193 | #define __NR_lgetxattr				192 | ||
| 194 | #define __NR_fgetxattr				193 | ||
| 195 | #define __NR_listxattr				194 | ||
| 196 | #define __NR_llistxattr				195 | ||
| 197 | #define __NR_flistxattr				196 | ||
| 198 | #define __NR_removexattr			197 | ||
| 199 | #define __NR_lremovexattr			198 | ||
| 200 | #define __NR_fremovexattr			199 | ||
| 201 | #define __NR_tkill					200 | ||
| 202 | #define __NR_time					201 | ||
| 203 | #define __NR_futex					202 | ||
| 204 | #define __NR_sched_setaffinity		203 | ||
| 205 | #define __NR_sched_getaffinity		204 | ||
| 206 | #define __NR_set_thread_area		205 | ||
| 207 | #define __NR_io_setup				206 | ||
| 208 | #define __NR_io_destroy				207 | ||
| 209 | #define __NR_io_getevents			208 | ||
| 210 | #define __NR_io_submit				209 | ||
| 211 | #define __NR_io_cancel				210 | ||
| 212 | #define __NR_get_thread_area		211 | ||
| 213 | #define __NR_lookup_dcookie			212 | ||
| 214 | #define __NR_epoll_create			213 | ||
| 215 | #define __NR_epoll_ctl_old			214 | ||
| 216 | #define __NR_epoll_wait_old			215 | ||
| 217 | #define __NR_remap_file_pages		216 | ||
| 218 | #define __NR_getdents64				217 | ||
| 219 | #define __NR_set_tid_address		218 | ||
| 220 | #define __NR_restart_syscall		219 | ||
| 221 | #define __NR_semtimedop				220 | ||
| 222 | #define __NR_fadvise64				221 | ||
| 223 | #define __NR_timer_create			222 | ||
| 224 | #define __NR_timer_settime			223 | ||
| 225 | #define __NR_timer_gettime			224 | ||
| 226 | #define __NR_timer_getoverrun		225 | ||
| 227 | #define __NR_timer_delete			226 | ||
| 228 | #define __NR_clock_settime			227 | ||
| 229 | #define __NR_clock_gettime			228 | ||
| 230 | #define __NR_clock_getres			229 | ||
| 231 | #define __NR_clock_nanosleep		230 | ||
| 232 | #define __NR_exit_group				231 | ||
| 233 | #define __NR_epoll_wait				232 | ||
| 234 | #define __NR_epoll_ctl				233 | ||
| 235 | #define __NR_tgkill					234 | ||
| 236 | #define __NR_utimes					235 | ||
| 237 | #define __NR_vserver				236 | ||
| 238 | #define __NR_mbind					237 | ||
| 239 | #define __NR_set_mempolicy			238 | ||
| 240 | #define __NR_get_mempolicy			239 | ||
| 241 | #define __NR_mq_open				240 | ||
| 242 | #define __NR_mq_unlink				241 | ||
| 243 | #define __NR_mq_timedsend			242 | ||
| 244 | #define __NR_mq_timedreceive		243 | ||
| 245 | #define __NR_mq_notify				244 | ||
| 246 | #define __NR_mq_getsetattr			245 | ||
| 247 | #define __NR_kexec_load				246 | ||
| 248 | #define __NR_waitid					247 | ||
| 249 | #define __NR_add_key				248 | ||
| 250 | #define __NR_request_key			249 | ||
| 251 | #define __NR_keyctl					250 | ||
| 252 | #define __NR_ioprio_set				251 | ||
| 253 | #define __NR_ioprio_get				252 | ||
| 254 | #define __NR_inotify_init			253 | ||
| 255 | #define __NR_inotify_add_watch		254 | ||
| 256 | #define __NR_inotify_rm_watch		255 | ||
| 257 | #define __NR_migrate_pages			256 | ||
| 258 | #define __NR_openat					257 | ||
| 259 | #define __NR_mkdirat				258 | ||
| 260 | #define __NR_mknodat				259 | ||
| 261 | #define __NR_fchownat				260 | ||
| 262 | #define __NR_futimesat				261 | ||
| 263 | #define __NR_newfstatat				262 | ||
| 264 | #define __NR_unlinkat				263 | ||
| 265 | #define __NR_renameat				264 | ||
| 266 | #define __NR_linkat					265 | ||
| 267 | #define __NR_symlinkat				266 | ||
| 268 | #define __NR_readlinkat				267 | ||
| 269 | #define __NR_fchmodat				268 | ||
| 270 | #define __NR_faccessat				269 | ||
| 271 | #define __NR_pselect6				270 | ||
| 272 | #define __NR_ppoll					271 | ||
| 273 | #define __NR_unshare				272 | ||
| 274 | #define __NR_set_robust_list		273 | ||
| 275 | #define __NR_get_robust_list		274 | ||
| 276 | #define __NR_splice					275 | ||
| 277 | #define __NR_tee					276 | ||
| 278 | #define __NR_sync_file_range		277 | ||
| 279 | #define __NR_vmsplice				278 | ||
| 280 | #define __NR_move_pages				279 | ||
| 281 | #define __NR_utimensat				280 | ||
| 282 | #define __NR_epoll_pwait			281 | ||
| 283 | #define __NR_signalfd				282 | ||
| 284 | #define __NR_timerfd_create			283 | ||
| 285 | #define __NR_eventfd				284 | ||
| 286 | #define __NR_fallocate				285 | ||
| 287 | #define __NR_timerfd_settime		286 | ||
| 288 | #define __NR_timerfd_gettime		287 | ||
| 289 | #define __NR_accept4				288 | ||
| 290 | #define __NR_signalfd4				289 | ||
| 291 | #define __NR_eventfd2				290 | ||
| 292 | #define __NR_epoll_create1			291 | ||
| 293 | #define __NR_dup3					292 | ||
| 294 | #define __NR_pipe2					293 | ||
| 295 | #define __NR_inotify_init1			294 | ||
| 296 | #define __NR_preadv					295 | ||
| 297 | #define __NR_pwritev				296 | ||
| 298 | #define __NR_rt_tgsigqueueinfo		297 | ||
| 299 | #define __NR_perf_event_open		298 | ||
| 300 | #define __NR_recvmmsg				299 | ||
| 301 | #define __NR_fanotify_init			300 | ||
| 302 | #define __NR_fanotify_mark			301 | ||
| 303 | #define __NR_prlimit64				302 | ||
| 304 | #define __NR_name_to_handle_at			303 | ||
| 305 | #define __NR_open_by_handle_at			304 | ||
| 306 | #define __NR_clock_adjtime			305 | ||
| 307 | #define __NR_syncfs				306 | ||
| 308 | #define __NR_sendmmsg				307 | ||
| 309 | #define __NR_setns				308 | ||
| 310 | #define __NR_getcpu				309 | ||
| 311 | #define __NR_process_vm_readv			310 | ||
| 312 | #define __NR_process_vm_writev			311 | ||
| 313 | #define __NR_kcmp				312 | ||
| 314 | #define __NR_finit_module			313 | ||
| 315 | #define __NR_sched_setattr			314 | ||
| 316 | #define __NR_sched_getattr			315 | ||
| 317 | #define __NR_renameat2				316 | ||
| 318 | #define __NR_seccomp				317 | ||
| 319 | #define __NR_getrandom				318 | ||
| 320 | #define __NR_memfd_create			319 | ||
| 321 | #define __NR_kexec_file_load			320 | ||
| 322 | #define __NR_bpf				321 | ||
| 323 | #define __NR_execveat				322 | ||
| 324 | #define __NR_userfaultfd			323 | ||
| 325 | #define __NR_membarrier				324 | ||
| 326 | #define __NR_mlock2				325 | ||
| 327 | #define __NR_copy_file_range			326 | ||
| 328 | #define __NR_preadv2				327 | ||
| 329 | #define __NR_pwritev2				328 | ||
| 330 | #define __NR_pkey_mprotect			329 | ||
| 331 | #define __NR_pkey_alloc				330 | ||
| 332 | #define __NR_pkey_free				331 | ||
| 333 | #define __NR_statx				332 | ||
| 334 | #define __NR_io_pgetevents			333 | ||
| 335 | #define __NR_rseq				334 | ||
| 336 | #define __NR_pidfd_send_signal			424 | ||
| 337 | #define __NR_io_uring_setup			425 | ||
| 338 | #define __NR_io_uring_enter			426 | ||
| 339 | #define __NR_io_uring_register			427 | ||
| 340 | #define __NR_open_tree		428 | ||
| 341 | #define __NR_move_mount		429 | ||
| 342 | #define __NR_fsopen		430 | ||
| 343 | #define __NR_fsconfig		431 | ||
| 344 | #define __NR_fsmount		432 | ||
| 345 | #define __NR_fspick		433 | ||
| 346 | #define __NR_pidfd_open		434 | ||
| 347 | #define __NR_clone3		435 | ||
| 348 | #define __NR_close_range	436 | ||
| 349 | #define __NR_openat2		437 | ||
| 350 | #define __NR_pidfd_getfd	438 | ||
| 351 | #define __NR_faccessat2		439 | ||
| 352 | #define __NR_process_madvise	440 | ||
| 353 | #define __NR_epoll_pwait2	441 | ||
| 354 | #define __NR_mount_setattr	442 | ||
| 355 | #define __NR_landlock_create_ruleset	444 | ||
| 356 | #define __NR_landlock_add_rule	445 | ||
| 357 | #define __NR_landlock_restrict_self	446 | ||
| 358 | #define __NR_memfd_secret	447 | ||
| 359 | #define __NR_process_mrelease	448 | ||
| 360 | #define __NR_futex_waitv	449 | ||
| 361 | #define __NR_set_mempolicy_home_node	450 | ||
| 362 | #define __NR_cachestat		451 | ||
| 363 | #define __NR_fchmodat2		452 | ||
| 364 | |||
lib/libc/musl/crt/mipsn32/crtn.s+4-2| ... | @@ -2,11 +2,13 @@ | ... | @@ -2,11 +2,13 @@ |
| 2 | .section	.init | 2 | .section	.init |
| 3 | 	ld	$gp, 16($sp) | 3 | 	ld	$gp, 16($sp) |
| 4 | 	ld	$ra, 24($sp) | 4 | 	ld	$ra, 24($sp) |
| 5 | 	j	$ra | 5 | 	# zig patch: j <reg> -> jr <reg> for https://github.com/ziglang/zig/issues/21315 |
| 6 | 	jr $ra | ||
| 6 | 	addu	$sp, $sp, 32 | 7 | 	addu	$sp, $sp, 32 |
| 7 | 8 | ||
| 8 | .section	.fini | 9 | .section	.fini |
| 9 | 	ld	$gp, 16($sp) | 10 | 	ld	$gp, 16($sp) |
| 10 | 	ld	$ra, 24($sp) | 11 | 	ld	$ra, 24($sp) |
| 11 | 	j	$ra | 12 | 	# zig patch: j <reg> -> jr <reg> for https://github.com/ziglang/zig/issues/21315 |
| 13 | 	jr $ra | ||
| 12 | 	addu	$sp, $sp, 32 | 14 | 	addu	$sp, $sp, 32 |
lib/libc/musl/include/alltypes.h.in deleted-95| ... | @@ -1,95 +0,0 @@ | ||
| 1 | #define __LITTLE_ENDIAN 1234 | ||
| 2 | #define __BIG_ENDIAN 4321 | ||
| 3 | #define __USE_TIME_BITS64 1 | ||
| 4 | |||
| 5 | TYPEDEF unsigned _Addr size_t; | ||
| 6 | TYPEDEF unsigned _Addr uintptr_t; | ||
| 7 | TYPEDEF _Addr ptrdiff_t; | ||
| 8 | TYPEDEF _Addr ssize_t; | ||
| 9 | TYPEDEF _Addr intptr_t; | ||
| 10 | TYPEDEF _Addr regoff_t; | ||
| 11 | TYPEDEF _Reg register_t; | ||
| 12 | TYPEDEF _Int64 time_t; | ||
| 13 | TYPEDEF _Int64 suseconds_t; | ||
| 14 | |||
| 15 | TYPEDEF signed char int8_t; | ||
| 16 | TYPEDEF signed short int16_t; | ||
| 17 | TYPEDEF signed int int32_t; | ||
| 18 | TYPEDEF signed _Int64 int64_t; | ||
| 19 | TYPEDEF signed _Int64 intmax_t; | ||
| 20 | TYPEDEF unsigned char uint8_t; | ||
| 21 | TYPEDEF unsigned short uint16_t; | ||
| 22 | TYPEDEF unsigned int uint32_t; | ||
| 23 | TYPEDEF unsigned _Int64 uint64_t; | ||
| 24 | TYPEDEF unsigned _Int64 u_int64_t; | ||
| 25 | TYPEDEF unsigned _Int64 uintmax_t; | ||
| 26 | |||
| 27 | TYPEDEF unsigned mode_t; | ||
| 28 | TYPEDEF unsigned _Reg nlink_t; | ||
| 29 | TYPEDEF _Int64 off_t; | ||
| 30 | TYPEDEF unsigned _Int64 ino_t; | ||
| 31 | TYPEDEF unsigned _Int64 dev_t; | ||
| 32 | TYPEDEF long blksize_t; | ||
| 33 | TYPEDEF _Int64 blkcnt_t; | ||
| 34 | TYPEDEF unsigned _Int64 fsblkcnt_t; | ||
| 35 | TYPEDEF unsigned _Int64 fsfilcnt_t; | ||
| 36 | |||
| 37 | TYPEDEF unsigned wint_t; | ||
| 38 | TYPEDEF unsigned long wctype_t; | ||
| 39 | |||
| 40 | TYPEDEF void * timer_t; | ||
| 41 | TYPEDEF int clockid_t; | ||
| 42 | TYPEDEF long clock_t; | ||
| 43 | STRUCT timeval { time_t tv_sec; suseconds_t tv_usec; }; | ||
| 44 | STRUCT timespec { time_t tv_sec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER==4321); long tv_nsec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER!=4321); }; | ||
| 45 | |||
| 46 | TYPEDEF int pid_t; | ||
| 47 | TYPEDEF unsigned id_t; | ||
| 48 | TYPEDEF unsigned uid_t; | ||
| 49 | TYPEDEF unsigned gid_t; | ||
| 50 | TYPEDEF int key_t; | ||
| 51 | TYPEDEF unsigned useconds_t; | ||
| 52 | |||
| 53 | #ifdef __cplusplus | ||
| 54 | TYPEDEF unsigned long pthread_t; | ||
| 55 | #else | ||
| 56 | TYPEDEF struct __pthread * pthread_t; | ||
| 57 | #endif | ||
| 58 | TYPEDEF int pthread_once_t; | ||
| 59 | TYPEDEF unsigned pthread_key_t; | ||
| 60 | TYPEDEF int pthread_spinlock_t; | ||
| 61 | TYPEDEF struct { unsigned __attr; } pthread_mutexattr_t; | ||
| 62 | TYPEDEF struct { unsigned __attr; } pthread_condattr_t; | ||
| 63 | TYPEDEF struct { unsigned __attr; } pthread_barrierattr_t; | ||
| 64 | TYPEDEF struct { unsigned __attr[2]; } pthread_rwlockattr_t; | ||
| 65 | |||
| 66 | STRUCT _IO_FILE { char __x; }; | ||
| 67 | TYPEDEF struct _IO_FILE FILE; | ||
| 68 | |||
| 69 | TYPEDEF __builtin_va_list va_list; | ||
| 70 | TYPEDEF __builtin_va_list __isoc_va_list; | ||
| 71 | |||
| 72 | TYPEDEF struct __mbstate_t { unsigned __opaque1, __opaque2; } mbstate_t; | ||
| 73 | |||
| 74 | TYPEDEF struct __locale_struct * locale_t; | ||
| 75 | |||
| 76 | TYPEDEF struct __sigset_t { unsigned long __bits[128/sizeof(long)]; } sigset_t; | ||
| 77 | |||
| 78 | STRUCT iovec { void *iov_base; size_t iov_len; }; | ||
| 79 | |||
| 80 | STRUCT winsize { unsigned short ws_row, ws_col, ws_xpixel, ws_ypixel; }; | ||
| 81 | |||
| 82 | TYPEDEF unsigned socklen_t; | ||
| 83 | TYPEDEF unsigned short sa_family_t; | ||
| 84 | |||
| 85 | TYPEDEF struct { union { int __i[sizeof(long)==8?14:9]; volatile int __vi[sizeof(long)==8?14:9]; unsigned long __s[sizeof(long)==8?7:9]; } __u; } pthread_attr_t; | ||
| 86 | TYPEDEF struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatile void *volatile __p[sizeof(long)==8?5:6]; } __u; } pthread_mutex_t; | ||
| 87 | TYPEDEF struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatile void *volatile __p[sizeof(long)==8?5:6]; } __u; } mtx_t; | ||
| 88 | TYPEDEF struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)]; } __u; } pthread_cond_t; | ||
| 89 | TYPEDEF struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)]; } __u; } cnd_t; | ||
| 90 | TYPEDEF struct { union { int __i[sizeof(long)==8?14:8]; volatile int __vi[sizeof(long)==8?14:8]; void *__p[sizeof(long)==8?7:8]; } __u; } pthread_rwlock_t; | ||
| 91 | TYPEDEF struct { union { int __i[sizeof(long)==8?8:5]; volatile int __vi[sizeof(long)==8?8:5]; void *__p[sizeof(long)==8?4:5]; } __u; } pthread_barrier_t; | ||
| 92 | |||
| 93 | #undef _Addr | ||
| 94 | #undef _Int64 | ||
| 95 | #undef _Reg | ||
lib/libc/musl/ldso/dlstart.c+15| ... | @@ -140,6 +140,21 @@ hidden void _dlstart_c(size_t *sp, size_t *dynv) | ... | @@ -140,6 +140,21 @@ hidden void _dlstart_c(size_t *sp, size_t *dynv) |
| 140 | 		size_t *rel_addr = (void *)(base + rel[0]); | 140 | 		size_t *rel_addr = (void *)(base + rel[0]); |
| 141 | 		*rel_addr = base + rel[2]; | 141 | 		*rel_addr = base + rel[2]; |
| 142 | 	} | 142 | 	} |
| 143 | |||
| 144 | 	rel = (void *)(base+dyn[DT_RELR]); | ||
| 145 | 	rel_size = dyn[DT_RELRSZ]; | ||
| 146 | 	size_t *relr_addr = 0; | ||
| 147 | 	for (; rel_size; rel++, rel_size-=sizeof(size_t)) { | ||
| 148 | 		if ((rel[0]&1) == 0) { | ||
| 149 | 			relr_addr = (void *)(base + rel[0]); | ||
| 150 | 			*relr_addr++ += base; | ||
| 151 | 		} else { | ||
| 152 | 			for (size_t i=0, bitmap=rel[0]; bitmap>>=1; i++) | ||
| 153 | 				if (bitmap&1) | ||
| 154 | 					relr_addr[i] += base; | ||
| 155 | 			relr_addr += 8*sizeof(size_t)-1; | ||
| 156 | 		} | ||
| 157 | 	} | ||
| 143 | #endif | 158 | #endif |
| 144 | 159 | ||
| 145 | 	stage2_func dls2; | 160 | 	stage2_func dls2; |
lib/std/Target.zig+22-6| ... | @@ -761,6 +761,8 @@ pub const Abi = enum { | ... | @@ -761,6 +761,8 @@ pub const Abi = enum { |
| 761 | android, | 761 | android, |
| 762 | androideabi, | 762 | androideabi, |
| 763 | musl, | 763 | musl, |
| 764 | muslabin32, | ||
| 765 | muslabi64, | ||
| 764 | musleabi, | 766 | musleabi, |
| 765 | musleabihf, | 767 | musleabihf, |
| 766 | muslx32, | 768 | muslx32, |
| ... | @@ -931,6 +933,8 @@ pub const Abi = enum { | ... | @@ -931,6 +933,8 @@ pub const Abi = enum { |
| 931 | pub inline fn isMusl(abi: Abi) bool { | 933 | pub inline fn isMusl(abi: Abi) bool { |
| 932 | return switch (abi) { | 934 | return switch (abi) { |
| 933 | .musl, | 935 | .musl, |
| 936 | .muslabin32, | ||
| 937 | .muslabi64, | ||
| 934 | .musleabi, | 938 | .musleabi, |
| 935 | .musleabihf, | 939 | .musleabihf, |
| 936 | .muslx32, | 940 | .muslx32, |
| ... | @@ -2287,9 +2291,9 @@ pub const DynamicLinker = struct { | ... | @@ -2287,9 +2291,9 @@ pub const DynamicLinker = struct { |
| 2287 | .mips64, | 2291 | .mips64, |
| 2288 | .mips64el, | 2292 | .mips64el, |
| 2289 | => |arch| initFmt("/lib/ld-musl-mips{s}{s}{s}.so.1", .{ | 2293 | => |arch| initFmt("/lib/ld-musl-mips{s}{s}{s}.so.1", .{ |
| 2290 | // TODO: `n32` ABI support in LLVM 20. | ||
| 2291 | switch (abi) { | 2294 | switch (abi) { |
| 2292 | .musl => "64", | 2295 | .muslabi64 => "64", |
| 2296 | .muslabin32 => "n32", | ||
| 2293 | else => return none, | 2297 | else => return none, |
| 2294 | }, | 2298 | }, |
| 2295 | if (mips.featureSetHas(cpu.features, .mips64r6)) "r6" else "", | 2299 | if (mips.featureSetHas(cpu.features, .mips64r6)) "r6" else "", |
| ... | @@ -2584,8 +2588,8 @@ pub fn standardDynamicLinkerPath(target: Target) DynamicLinker { | ... | @@ -2584,8 +2588,8 @@ pub fn standardDynamicLinkerPath(target: Target) DynamicLinker { |
| 2584 | 2588 | ||
| 2585 | pub fn ptrBitWidth_cpu_abi(cpu: Cpu, abi: Abi) u16 { | 2589 | pub fn ptrBitWidth_cpu_abi(cpu: Cpu, abi: Abi) u16 { |
| 2586 | switch (abi) { | 2590 | switch (abi) { |
| 2587 | .gnux32, .muslx32, .gnuabin32, .gnuilp32, .ilp32 => return 32, | 2591 | .gnux32, .muslx32, .gnuabin32, .muslabin32, .gnuilp32, .ilp32 => return 32, |
| 2588 | .gnuabi64 => return 64, | 2592 | .gnuabi64, .muslabi64 => return 64, |
| 2589 | else => {}, | 2593 | else => {}, |
| 2590 | } | 2594 | } |
| 2591 | return switch (cpu.arch) { | 2595 | return switch (cpu.arch) { |
| ... | @@ -2788,7 +2792,10 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 { | ... | @@ -2788,7 +2792,10 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 { |
| 2788 | .char => return 8, | 2792 | .char => return 8, |
| 2789 | .short, .ushort => return 16, | 2793 | .short, .ushort => return 16, |
| 2790 | .int, .uint, .float => return 32, | 2794 | .int, .uint, .float => return 32, |
| 2791 | .long, .ulong => return if (target.abi != .gnuabin32) 64 else 32, | 2795 | .long, .ulong => switch (target.abi) { |
| 2796 | .gnuabin32, .muslabin32 => return 32, | ||
| 2797 | else => return 64, | ||
| 2798 | }, | ||
| 2792 | .longlong, .ulonglong, .double => return 64, | 2799 | .longlong, .ulonglong, .double => return 64, |
| 2793 | .longdouble => return 128, | 2800 | .longdouble => return 128, |
| 2794 | }, | 2801 | }, |
| ... | @@ -2821,6 +2828,8 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 { | ... | @@ -2821,6 +2828,8 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 { |
| 2821 | .powerpc64le, | 2828 | .powerpc64le, |
| 2822 | => switch (target.abi) { | 2829 | => switch (target.abi) { |
| 2823 | .musl, | 2830 | .musl, |
| 2831 | .muslabin32, | ||
| 2832 | .muslabi64, | ||
| 2824 | .musleabi, | 2833 | .musleabi, |
| 2825 | .musleabihf, | 2834 | .musleabihf, |
| 2826 | .muslx32, | 2835 | .muslx32, |
| ... | @@ -2876,7 +2885,10 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 { | ... | @@ -2876,7 +2885,10 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 { |
| 2876 | .char => return 8, | 2885 | .char => return 8, |
| 2877 | .short, .ushort => return 16, | 2886 | .short, .ushort => return 16, |
| 2878 | .int, .uint, .float => return 32, | 2887 | .int, .uint, .float => return 32, |
| 2879 | .long, .ulong => return if (target.abi != .gnuabin32) 64 else 32, | 2888 | .long, .ulong => switch (target.abi) { |
| 2889 | .gnuabin32, .muslabin32 => return 32, | ||
| 2890 | else => return 64, | ||
| 2891 | }, | ||
| 2880 | .longlong, .ulonglong, .double => return 64, | 2892 | .longlong, .ulonglong, .double => return 64, |
| 2881 | .longdouble => if (target.os.tag == .freebsd) return 64 else return 128, | 2893 | .longdouble => if (target.os.tag == .freebsd) return 64 else return 128, |
| 2882 | }, | 2894 | }, |
| ... | @@ -2907,6 +2919,8 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 { | ... | @@ -2907,6 +2919,8 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 { |
| 2907 | .powerpcle, | 2919 | .powerpcle, |
| 2908 | => switch (target.abi) { | 2920 | => switch (target.abi) { |
| 2909 | .musl, | 2921 | .musl, |
| 2922 | .muslabin32, | ||
| 2923 | .muslabi64, | ||
| 2910 | .musleabi, | 2924 | .musleabi, |
| 2911 | .musleabihf, | 2925 | .musleabihf, |
| 2912 | .muslx32, | 2926 | .muslx32, |
| ... | @@ -2921,6 +2935,8 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 { | ... | @@ -2921,6 +2935,8 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 { |
| 2921 | .powerpc64le, | 2935 | .powerpc64le, |
| 2922 | => switch (target.abi) { | 2936 | => switch (target.abi) { |
| 2923 | .musl, | 2937 | .musl, |
| 2938 | .muslabin32, | ||
| 2939 | .muslabi64, | ||
| 2924 | .musleabi, | 2940 | .musleabi, |
| 2925 | .musleabihf, | 2941 | .musleabihf, |
| 2926 | .muslx32, | 2942 | .muslx32, |
lib/std/os/linux.zig+16-13| ... | @@ -122,27 +122,30 @@ pub const SECCOMP = @import("linux/seccomp.zig"); | ... | @@ -122,27 +122,30 @@ pub const SECCOMP = @import("linux/seccomp.zig"); |
| 122 | 122 | ||
| 123 | pub const syscalls = @import("linux/syscalls.zig"); | 123 | pub const syscalls = @import("linux/syscalls.zig"); |
| 124 | pub const SYS = switch (@import("builtin").cpu.arch) { | 124 | pub const SYS = switch (@import("builtin").cpu.arch) { |
| 125 | .x86 => syscalls.X86, | ||
| 126 | .x86_64 => syscalls.X64, | ||
| 127 | .aarch64, .aarch64_be => syscalls.Arm64, | ||
| 128 | .arc => syscalls.Arc, | 125 | .arc => syscalls.Arc, |
| 129 | .arm, .armeb, .thumb, .thumbeb => syscalls.Arm, | 126 | .arm, .armeb, .thumb, .thumbeb => syscalls.Arm, |
| 127 | .aarch64, .aarch64_be => syscalls.Arm64, | ||
| 130 | .csky => syscalls.CSky, | 128 | .csky => syscalls.CSky, |
| 131 | .hexagon => syscalls.Hexagon, | 129 | .hexagon => syscalls.Hexagon, |
| 130 | .loongarch64 => syscalls.LoongArch64, | ||
| 131 | .m68k => syscalls.M68k, | ||
| 132 | .mips, .mipsel => syscalls.MipsO32, | ||
| 133 | .mips64, .mips64el => switch (builtin.abi) { | ||
| 134 | .gnuabin32, .muslabin32 => syscalls.MipsN32, | ||
| 135 | else => syscalls.MipsN64, | ||
| 136 | }, | ||
| 132 | .riscv32 => syscalls.RiscV32, | 137 | .riscv32 => syscalls.RiscV32, |
| 133 | .riscv64 => syscalls.RiscV64, | 138 | .riscv64 => syscalls.RiscV64, |
| 139 | .s390x => syscalls.S390x, | ||
| 134 | .sparc => syscalls.Sparc, | 140 | .sparc => syscalls.Sparc, |
| 135 | .sparc64 => syscalls.Sparc64, | 141 | .sparc64 => syscalls.Sparc64, |
| 136 | .loongarch64 => syscalls.LoongArch64, | ||
| 137 | .m68k => syscalls.M68k, | ||
| 138 | .mips, .mipsel => syscalls.MipsO32, | ||
| 139 | .mips64, .mips64el => if (builtin.abi == .gnuabin32) | ||
| 140 | syscalls.MipsN32 | ||
| 141 | else | ||
| 142 | syscalls.MipsN64, | ||
| 143 | .powerpc, .powerpcle => syscalls.PowerPC, | 142 | .powerpc, .powerpcle => syscalls.PowerPC, |
| 144 | .powerpc64, .powerpc64le => syscalls.PowerPC64, | 143 | .powerpc64, .powerpc64le => syscalls.PowerPC64, |
| 145 | .s390x => syscalls.S390x, | 144 | .x86 => syscalls.X86, |
| 145 | .x86_64 => switch (builtin.abi) { | ||
| 146 | .gnux32, .muslx32 => syscalls.X32, | ||
| 147 | else => syscalls.X64, | ||
| 148 | }, | ||
| 146 | .xtensa => syscalls.Xtensa, | 149 | .xtensa => syscalls.Xtensa, |
| 147 | else => @compileError("The Zig Standard Library is missing syscall definitions for the target CPU architecture"), | 150 | else => @compileError("The Zig Standard Library is missing syscall definitions for the target CPU architecture"), |
| 148 | }; | 151 | }; |
| ... | @@ -8657,11 +8660,11 @@ pub const AUDIT = struct { | ... | @@ -8657,11 +8660,11 @@ pub const AUDIT = struct { |
| 8657 | .mips => .MIPS, | 8660 | .mips => .MIPS, |
| 8658 | .mipsel => .MIPSEL, | 8661 | .mipsel => .MIPSEL, |
| 8659 | .mips64 => switch (native_abi) { | 8662 | .mips64 => switch (native_abi) { |
| 8660 | .gnuabin32 => .MIPS64N32, | 8663 | .gnuabin32, .muslabin32 => .MIPS64N32, |
| 8661 | else => .MIPS64, | 8664 | else => .MIPS64, |
| 8662 | }, | 8665 | }, |
| 8663 | .mips64el => switch (native_abi) { | 8666 | .mips64el => switch (native_abi) { |
| 8664 | .gnuabin32 => .MIPSEL64N32, | 8667 | .gnuabin32, .muslabin32 => .MIPSEL64N32, |
| 8665 | else => .MIPSEL64, | 8668 | else => .MIPSEL64, |
| 8666 | }, | 8669 | }, |
| 8667 | .powerpc => .PPC, | 8670 | .powerpc => .PPC, |
lib/std/os/linux/syscalls.zig+366| ... | @@ -833,6 +833,372 @@ pub const X64 = enum(usize) { | ... | @@ -833,6 +833,372 @@ pub const X64 = enum(usize) { |
| 833 | mseal = 462, | 833 | mseal = 462, |
| 834 | }; | 834 | }; |
| 835 | 835 | ||
| 836 | pub const X32 = enum(usize) { | ||
| 837 | read = 0, | ||
| 838 | write = 1, | ||
| 839 | open = 2, | ||
| 840 | close = 3, | ||
| 841 | stat = 4, | ||
| 842 | fstat = 5, | ||
| 843 | lstat = 6, | ||
| 844 | poll = 7, | ||
| 845 | lseek = 8, | ||
| 846 | mmap = 9, | ||
| 847 | mprotect = 10, | ||
| 848 | munmap = 11, | ||
| 849 | brk = 12, | ||
| 850 | rt_sigprocmask = 14, | ||
| 851 | pread64 = 17, | ||
| 852 | pwrite64 = 18, | ||
| 853 | access = 21, | ||
| 854 | pipe = 22, | ||
| 855 | select = 23, | ||
| 856 | sched_yield = 24, | ||
| 857 | mremap = 25, | ||
| 858 | msync = 26, | ||
| 859 | mincore = 27, | ||
| 860 | madvise = 28, | ||
| 861 | shmget = 29, | ||
| 862 | shmat = 30, | ||
| 863 | shmctl = 31, | ||
| 864 | dup = 32, | ||
| 865 | dup2 = 33, | ||
| 866 | pause = 34, | ||
| 867 | nanosleep = 35, | ||
| 868 | getitimer = 36, | ||
| 869 | alarm = 37, | ||
| 870 | setitimer = 38, | ||
| 871 | getpid = 39, | ||
| 872 | sendfile = 40, | ||
| 873 | socket = 41, | ||
| 874 | connect = 42, | ||
| 875 | accept = 43, | ||
| 876 | sendto = 44, | ||
| 877 | shutdown = 48, | ||
| 878 | bind = 49, | ||
| 879 | listen = 50, | ||
| 880 | getsockname = 51, | ||
| 881 | getpeername = 52, | ||
| 882 | socketpair = 53, | ||
| 883 | clone = 56, | ||
| 884 | fork = 57, | ||
| 885 | vfork = 58, | ||
| 886 | exit = 60, | ||
| 887 | wait4 = 61, | ||
| 888 | kill = 62, | ||
| 889 | uname = 63, | ||
| 890 | semget = 64, | ||
| 891 | semop = 65, | ||
| 892 | semctl = 66, | ||
| 893 | shmdt = 67, | ||
| 894 | msgget = 68, | ||
| 895 | msgsnd = 69, | ||
| 896 | msgrcv = 70, | ||
| 897 | msgctl = 71, | ||
| 898 | fcntl = 72, | ||
| 899 | flock = 73, | ||
| 900 | fsync = 74, | ||
| 901 | fdatasync = 75, | ||
| 902 | truncate = 76, | ||
| 903 | ftruncate = 77, | ||
| 904 | getdents = 78, | ||
| 905 | getcwd = 79, | ||
| 906 | chdir = 80, | ||
| 907 | fchdir = 81, | ||
| 908 | rename = 82, | ||
| 909 | mkdir = 83, | ||
| 910 | rmdir = 84, | ||
| 911 | creat = 85, | ||
| 912 | link = 86, | ||
| 913 | unlink = 87, | ||
| 914 | symlink = 88, | ||
| 915 | readlink = 89, | ||
| 916 | chmod = 90, | ||
| 917 | fchmod = 91, | ||
| 918 | chown = 92, | ||
| 919 | fchown = 93, | ||
| 920 | lchown = 94, | ||
| 921 | umask = 95, | ||
| 922 | gettimeofday = 96, | ||
| 923 | getrlimit = 97, | ||
| 924 | getrusage = 98, | ||
| 925 | sysinfo = 99, | ||
| 926 | times = 100, | ||
| 927 | getuid = 102, | ||
| 928 | syslog = 103, | ||
| 929 | getgid = 104, | ||
| 930 | setuid = 105, | ||
| 931 | setgid = 106, | ||
| 932 | geteuid = 107, | ||
| 933 | getegid = 108, | ||
| 934 | setpgid = 109, | ||
| 935 | getppid = 110, | ||
| 936 | getpgrp = 111, | ||
| 937 | setsid = 112, | ||
| 938 | setreuid = 113, | ||
| 939 | setregid = 114, | ||
| 940 | getgroups = 115, | ||
| 941 | setgroups = 116, | ||
| 942 | setresuid = 117, | ||
| 943 | getresuid = 118, | ||
| 944 | setresgid = 119, | ||
| 945 | getresgid = 120, | ||
| 946 | getpgid = 121, | ||
| 947 | setfsuid = 122, | ||
| 948 | setfsgid = 123, | ||
| 949 | getsid = 124, | ||
| 950 | capget = 125, | ||
| 951 | capset = 126, | ||
| 952 | rt_sigsuspend = 130, | ||
| 953 | utime = 132, | ||
| 954 | mknod = 133, | ||
| 955 | personality = 135, | ||
| 956 | ustat = 136, | ||
| 957 | statfs = 137, | ||
| 958 | fstatfs = 138, | ||
| 959 | sysfs = 139, | ||
| 960 | getpriority = 140, | ||
| 961 | setpriority = 141, | ||
| 962 | sched_setparam = 142, | ||
| 963 | sched_getparam = 143, | ||
| 964 | sched_setscheduler = 144, | ||
| 965 | sched_getscheduler = 145, | ||
| 966 | sched_get_priority_max = 146, | ||
| 967 | sched_get_priority_min = 147, | ||
| 968 | sched_rr_get_interval = 148, | ||
| 969 | mlock = 149, | ||
| 970 | munlock = 150, | ||
| 971 | mlockall = 151, | ||
| 972 | munlockall = 152, | ||
| 973 | vhangup = 153, | ||
| 974 | modify_ldt = 154, | ||
| 975 | pivot_root = 155, | ||
| 976 | prctl = 157, | ||
| 977 | arch_prctl = 158, | ||
| 978 | adjtimex = 159, | ||
| 979 | setrlimit = 160, | ||
| 980 | chroot = 161, | ||
| 981 | sync = 162, | ||
| 982 | acct = 163, | ||
| 983 | settimeofday = 164, | ||
| 984 | mount = 165, | ||
| 985 | umount2 = 166, | ||
| 986 | swapon = 167, | ||
| 987 | swapoff = 168, | ||
| 988 | reboot = 169, | ||
| 989 | sethostname = 170, | ||
| 990 | setdomainname = 171, | ||
| 991 | iopl = 172, | ||
| 992 | ioperm = 173, | ||
| 993 | init_module = 175, | ||
| 994 | delete_module = 176, | ||
| 995 | quotactl = 179, | ||
| 996 | getpmsg = 181, | ||
| 997 | putpmsg = 182, | ||
| 998 | afs_syscall = 183, | ||
| 999 | tuxcall = 184, | ||
| 1000 | security = 185, | ||
| 1001 | gettid = 186, | ||
| 1002 | readahead = 187, | ||
| 1003 | setxattr = 188, | ||
| 1004 | lsetxattr = 189, | ||
| 1005 | fsetxattr = 190, | ||
| 1006 | getxattr = 191, | ||
| 1007 | lgetxattr = 192, | ||
| 1008 | fgetxattr = 193, | ||
| 1009 | listxattr = 194, | ||
| 1010 | llistxattr = 195, | ||
| 1011 | flistxattr = 196, | ||
| 1012 | removexattr = 197, | ||
| 1013 | lremovexattr = 198, | ||
| 1014 | fremovexattr = 199, | ||
| 1015 | tkill = 200, | ||
| 1016 | time = 201, | ||
| 1017 | futex = 202, | ||
| 1018 | sched_setaffinity = 203, | ||
| 1019 | sched_getaffinity = 204, | ||
| 1020 | io_destroy = 207, | ||
| 1021 | io_getevents = 208, | ||
| 1022 | io_cancel = 210, | ||
| 1023 | lookup_dcookie = 212, | ||
| 1024 | epoll_create = 213, | ||
| 1025 | remap_file_pages = 216, | ||
| 1026 | getdents64 = 217, | ||
| 1027 | set_tid_address = 218, | ||
| 1028 | restart_syscall = 219, | ||
| 1029 | semtimedop = 220, | ||
| 1030 | fadvise64 = 221, | ||
| 1031 | timer_settime = 223, | ||
| 1032 | timer_gettime = 224, | ||
| 1033 | timer_getoverrun = 225, | ||
| 1034 | timer_delete = 226, | ||
| 1035 | clock_settime = 227, | ||
| 1036 | clock_gettime = 228, | ||
| 1037 | clock_getres = 229, | ||
| 1038 | clock_nanosleep = 230, | ||
| 1039 | exit_group = 231, | ||
| 1040 | epoll_wait = 232, | ||
| 1041 | epoll_ctl = 233, | ||
| 1042 | tgkill = 234, | ||
| 1043 | utimes = 235, | ||
| 1044 | mbind = 237, | ||
| 1045 | set_mempolicy = 238, | ||
| 1046 | get_mempolicy = 239, | ||
| 1047 | mq_open = 240, | ||
| 1048 | mq_unlink = 241, | ||
| 1049 | mq_timedsend = 242, | ||
| 1050 | mq_timedreceive = 243, | ||
| 1051 | mq_getsetattr = 245, | ||
| 1052 | add_key = 248, | ||
| 1053 | request_key = 249, | ||
| 1054 | keyctl = 250, | ||
| 1055 | ioprio_set = 251, | ||
| 1056 | ioprio_get = 252, | ||
| 1057 | inotify_init = 253, | ||
| 1058 | inotify_add_watch = 254, | ||
| 1059 | inotify_rm_watch = 255, | ||
| 1060 | migrate_pages = 256, | ||
| 1061 | openat = 257, | ||
| 1062 | mkdirat = 258, | ||
| 1063 | mknodat = 259, | ||
| 1064 | fchownat = 260, | ||
| 1065 | futimesat = 261, | ||
| 1066 | fstatat64 = 262, | ||
| 1067 | unlinkat = 263, | ||
| 1068 | renameat = 264, | ||
| 1069 | linkat = 265, | ||
| 1070 | symlinkat = 266, | ||
| 1071 | readlinkat = 267, | ||
| 1072 | fchmodat = 268, | ||
| 1073 | faccessat = 269, | ||
| 1074 | pselect6 = 270, | ||
| 1075 | ppoll = 271, | ||
| 1076 | unshare = 272, | ||
| 1077 | splice = 275, | ||
| 1078 | tee = 276, | ||
| 1079 | sync_file_range = 277, | ||
| 1080 | utimensat = 280, | ||
| 1081 | epoll_pwait = 281, | ||
| 1082 | signalfd = 282, | ||
| 1083 | timerfd_create = 283, | ||
| 1084 | eventfd = 284, | ||
| 1085 | fallocate = 285, | ||
| 1086 | timerfd_settime = 286, | ||
| 1087 | timerfd_gettime = 287, | ||
| 1088 | accept4 = 288, | ||
| 1089 | signalfd4 = 289, | ||
| 1090 | eventfd2 = 290, | ||
| 1091 | epoll_create1 = 291, | ||
| 1092 | dup3 = 292, | ||
| 1093 | pipe2 = 293, | ||
| 1094 | inotify_init1 = 294, | ||
| 1095 | perf_event_open = 298, | ||
| 1096 | fanotify_init = 300, | ||
| 1097 | fanotify_mark = 301, | ||
| 1098 | prlimit64 = 302, | ||
| 1099 | name_to_handle_at = 303, | ||
| 1100 | open_by_handle_at = 304, | ||
| 1101 | clock_adjtime = 305, | ||
| 1102 | syncfs = 306, | ||
| 1103 | setns = 308, | ||
| 1104 | getcpu = 309, | ||
| 1105 | kcmp = 312, | ||
| 1106 | finit_module = 313, | ||
| 1107 | sched_setattr = 314, | ||
| 1108 | sched_getattr = 315, | ||
| 1109 | renameat2 = 316, | ||
| 1110 | seccomp = 317, | ||
| 1111 | getrandom = 318, | ||
| 1112 | memfd_create = 319, | ||
| 1113 | kexec_file_load = 320, | ||
| 1114 | bpf = 321, | ||
| 1115 | userfaultfd = 323, | ||
| 1116 | membarrier = 324, | ||
| 1117 | mlock2 = 325, | ||
| 1118 | copy_file_range = 326, | ||
| 1119 | pkey_mprotect = 329, | ||
| 1120 | pkey_alloc = 330, | ||
| 1121 | pkey_free = 331, | ||
| 1122 | statx = 332, | ||
| 1123 | io_pgetevents = 333, | ||
| 1124 | rseq = 334, | ||
| 1125 | pidfd_send_signal = 424, | ||
| 1126 | io_uring_setup = 425, | ||
| 1127 | io_uring_enter = 426, | ||
| 1128 | io_uring_register = 427, | ||
| 1129 | open_tree = 428, | ||
| 1130 | move_mount = 429, | ||
| 1131 | fsopen = 430, | ||
| 1132 | fsconfig = 431, | ||
| 1133 | fsmount = 432, | ||
| 1134 | fspick = 433, | ||
| 1135 | pidfd_open = 434, | ||
| 1136 | clone3 = 435, | ||
| 1137 | close_range = 436, | ||
| 1138 | openat2 = 437, | ||
| 1139 | pidfd_getfd = 438, | ||
| 1140 | faccessat2 = 439, | ||
| 1141 | process_madvise = 440, | ||
| 1142 | epoll_pwait2 = 441, | ||
| 1143 | mount_setattr = 442, | ||
| 1144 | quotactl_fd = 443, | ||
| 1145 | landlock_create_ruleset = 444, | ||
| 1146 | landlock_add_rule = 445, | ||
| 1147 | landlock_restrict_self = 446, | ||
| 1148 | memfd_secret = 447, | ||
| 1149 | process_mrelease = 448, | ||
| 1150 | futex_waitv = 449, | ||
| 1151 | set_mempolicy_home_node = 450, | ||
| 1152 | cachestat = 451, | ||
| 1153 | fchmodat2 = 452, | ||
| 1154 | map_shadow_stack = 453, | ||
| 1155 | futex_wake = 454, | ||
| 1156 | futex_wait = 455, | ||
| 1157 | futex_requeue = 456, | ||
| 1158 | statmount = 457, | ||
| 1159 | listmount = 458, | ||
| 1160 | lsm_get_self_attr = 459, | ||
| 1161 | lsm_set_self_attr = 460, | ||
| 1162 | lsm_list_modules = 461, | ||
| 1163 | mseal = 462, | ||
| 1164 | rt_sigaction = 512, | ||
| 1165 | rt_sigreturn = 513, | ||
| 1166 | ioctl = 514, | ||
| 1167 | readv = 515, | ||
| 1168 | writev = 516, | ||
| 1169 | recvfrom = 517, | ||
| 1170 | sendmsg = 518, | ||
| 1171 | recvmsg = 519, | ||
| 1172 | execve = 520, | ||
| 1173 | ptrace = 521, | ||
| 1174 | rt_sigpending = 522, | ||
| 1175 | rt_sigtimedwait = 523, | ||
| 1176 | rt_sigqueueinfo = 524, | ||
| 1177 | sigaltstack = 525, | ||
| 1178 | timer_create = 526, | ||
| 1179 | mq_notify = 527, | ||
| 1180 | kexec_load = 528, | ||
| 1181 | waitid = 529, | ||
| 1182 | set_robust_list = 530, | ||
| 1183 | get_robust_list = 531, | ||
| 1184 | vmsplice = 532, | ||
| 1185 | move_pages = 533, | ||
| 1186 | preadv = 534, | ||
| 1187 | pwritev = 535, | ||
| 1188 | rt_tgsigqueueinfo = 536, | ||
| 1189 | recvmmsg = 537, | ||
| 1190 | sendmmsg = 538, | ||
| 1191 | process_vm_readv = 539, | ||
| 1192 | process_vm_writev = 540, | ||
| 1193 | setsockopt = 541, | ||
| 1194 | getsockopt = 542, | ||
| 1195 | io_setup = 543, | ||
| 1196 | io_submit = 544, | ||
| 1197 | execveat = 545, | ||
| 1198 | preadv2 = 546, | ||
| 1199 | pwritev2 = 547, | ||
| 1200 | }; | ||
| 1201 | |||
| 836 | pub const Arm = enum(usize) { | 1202 | pub const Arm = enum(usize) { |
| 837 | const arm_base = 0x0f0000; | 1203 | const arm_base = 0x0f0000; |
| 838 | 1204 |
lib/std/zig/LibCDirs.zig+7-10| ... | @@ -167,21 +167,16 @@ pub fn detectFromBuilding( | ... | @@ -167,21 +167,16 @@ pub fn detectFromBuilding( |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | const generic_name = libCGenericName(target); | 169 | const generic_name = libCGenericName(target); |
| 170 | // Some architectures are handled by the same set of headers. | 170 | // Some architecture families are handled by the same set of headers. |
| 171 | const arch_name = if (target.abi.isMusl()) | 171 | const arch_name = if (target.abi.isMusl()) |
| 172 | std.zig.target.muslArchNameHeaders(target.cpu.arch) | 172 | std.zig.target.muslArchNameHeaders(target.cpu.arch) |
| 173 | else if (target.cpu.arch.isThumb()) | ||
| 174 | // ARM headers are valid for Thumb too. | ||
| 175 | switch (target.cpu.arch) { | ||
| 176 | .thumb => "arm", | ||
| 177 | .thumbeb => "armeb", | ||
| 178 | else => unreachable, | ||
| 179 | } | ||
| 180 | else | 173 | else |
| 181 | @tagName(target.cpu.arch); | 174 | @tagName(target.cpu.arch); |
| 182 | const os_name = @tagName(target.os.tag); | 175 | const os_name = @tagName(target.os.tag); |
| 183 | // Musl's headers are ABI-agnostic and so they all have the "musl" ABI name. | 176 | const abi_name = if (target.abi.isMusl()) |
| 184 | const abi_name = if (target.abi.isMusl()) "musl" else @tagName(target.abi); | 177 | std.zig.target.muslAbiNameHeaders(target.abi) |
| 178 | else | ||
| 179 | @tagName(target.abi); | ||
| 185 | const arch_include_dir = try std.fmt.allocPrint( | 180 | const arch_include_dir = try std.fmt.allocPrint( |
| 186 | arena, | 181 | arena, |
| 187 | "{s}" ++ s ++ "libc" ++ s ++ "include" ++ s ++ "{s}-{s}-{s}", | 182 | "{s}" ++ s ++ "libc" ++ s ++ "include" ++ s ++ "{s}-{s}-{s}", |
| ... | @@ -237,6 +232,8 @@ fn libCGenericName(target: std.Target) [:0]const u8 { | ... | @@ -237,6 +232,8 @@ fn libCGenericName(target: std.Target) [:0]const u8 { |
| 237 | .gnuilp32, | 232 | .gnuilp32, |
| 238 | => return "glibc", | 233 | => return "glibc", |
| 239 | .musl, | 234 | .musl, |
| 235 | .muslabin32, | ||
| 236 | .muslabi64, | ||
| 240 | .musleabi, | 237 | .musleabi, |
| 241 | .musleabihf, | 238 | .musleabihf, |
| 242 | .muslx32, | 239 | .muslx32, |
lib/std/zig/system.zig+8-8| ... | @@ -91,16 +91,16 @@ pub fn getExternalExecutor( | ... | @@ -91,16 +91,16 @@ pub fn getExternalExecutor( |
| 91 | .mips => Executor{ .qemu = "qemu-mips" }, | 91 | .mips => Executor{ .qemu = "qemu-mips" }, |
| 92 | .mipsel => Executor{ .qemu = "qemu-mipsel" }, | 92 | .mipsel => Executor{ .qemu = "qemu-mipsel" }, |
| 93 | .mips64 => Executor{ | 93 | .mips64 => Executor{ |
| 94 | .qemu = if (candidate.abi == .gnuabin32) | 94 | .qemu = switch (candidate.abi) { |
| 95 | "qemu-mipsn32" | 95 | .gnuabin32, .muslabin32 => "qemu-mipsn32", |
| 96 | else | 96 | else => "qemu-mips64", |
| 97 | "qemu-mips64", | 97 | }, |
| 98 | }, | 98 | }, |
| 99 | .mips64el => Executor{ | 99 | .mips64el => Executor{ |
| 100 | .qemu = if (candidate.abi == .gnuabin32) | 100 | .qemu = switch (candidate.abi) { |
| 101 | "qemu-mipsn32el" | 101 | .gnuabin32, .muslabin32 => "qemu-mipsn32el", |
| 102 | else | 102 | else => "qemu-mips64el", |
| 103 | "qemu-mips64el", | 103 | }, |
| 104 | }, | 104 | }, |
| 105 | .powerpc => Executor{ .qemu = "qemu-ppc" }, | 105 | .powerpc => Executor{ .qemu = "qemu-ppc" }, |
| 106 | .powerpc64 => Executor{ .qemu = "qemu-ppc64" }, | 106 | .powerpc64 => Executor{ .qemu = "qemu-ppc64" }, |
lib/std/zig/target.zig+37-22| ... | @@ -46,10 +46,12 @@ pub const available_libcs = [_]ArchOsAbi{ | ... | @@ -46,10 +46,12 @@ pub const available_libcs = [_]ArchOsAbi{ |
| 46 | .{ .arch = .mipsel, .os = .linux, .abi = .musleabihf }, | 46 | .{ .arch = .mipsel, .os = .linux, .abi = .musleabihf }, |
| 47 | .{ .arch = .mips64, .os = .linux, .abi = .gnuabi64 }, | 47 | .{ .arch = .mips64, .os = .linux, .abi = .gnuabi64 }, |
| 48 | .{ .arch = .mips64, .os = .linux, .abi = .gnuabin32 }, | 48 | .{ .arch = .mips64, .os = .linux, .abi = .gnuabin32 }, |
| 49 | .{ .arch = .mips64, .os = .linux, .abi = .musl }, | 49 | .{ .arch = .mips64, .os = .linux, .abi = .muslabi64 }, |
| 50 | .{ .arch = .mips64, .os = .linux, .abi = .muslabin32 }, | ||
| 50 | .{ .arch = .mips64el, .os = .linux, .abi = .gnuabi64 }, | 51 | .{ .arch = .mips64el, .os = .linux, .abi = .gnuabi64 }, |
| 51 | .{ .arch = .mips64el, .os = .linux, .abi = .gnuabin32 }, | 52 | .{ .arch = .mips64el, .os = .linux, .abi = .gnuabin32 }, |
| 52 | .{ .arch = .mips64el, .os = .linux, .abi = .musl }, | 53 | .{ .arch = .mips64el, .os = .linux, .abi = .muslabi64 }, |
| 54 | .{ .arch = .mips64el, .os = .linux, .abi = .muslabin32 }, | ||
| 53 | .{ .arch = .powerpc, .os = .linux, .abi = .gnueabi }, | 55 | .{ .arch = .powerpc, .os = .linux, .abi = .gnueabi }, |
| 54 | .{ .arch = .powerpc, .os = .linux, .abi = .gnueabihf }, | 56 | .{ .arch = .powerpc, .os = .linux, .abi = .gnueabihf }, |
| 55 | .{ .arch = .powerpc, .os = .linux, .abi = .musleabi }, | 57 | .{ .arch = .powerpc, .os = .linux, .abi = .musleabi }, |
| ... | @@ -74,6 +76,7 @@ pub const available_libcs = [_]ArchOsAbi{ | ... | @@ -74,6 +76,7 @@ pub const available_libcs = [_]ArchOsAbi{ |
| 74 | .{ .arch = .x86_64, .os = .linux, .abi = .gnu }, | 76 | .{ .arch = .x86_64, .os = .linux, .abi = .gnu }, |
| 75 | .{ .arch = .x86_64, .os = .linux, .abi = .gnux32 }, | 77 | .{ .arch = .x86_64, .os = .linux, .abi = .gnux32 }, |
| 76 | .{ .arch = .x86_64, .os = .linux, .abi = .musl }, | 78 | .{ .arch = .x86_64, .os = .linux, .abi = .musl }, |
| 79 | .{ .arch = .x86_64, .os = .linux, .abi = .muslx32 }, | ||
| 77 | .{ .arch = .x86_64, .os = .macos, .abi = .none, .os_ver = .{ .major = 10, .minor = 7, .patch = 0 } }, | 80 | .{ .arch = .x86_64, .os = .macos, .abi = .none, .os_ver = .{ .major = 10, .minor = 7, .patch = 0 } }, |
| 78 | .{ .arch = .x86_64, .os = .windows, .abi = .gnu }, | 81 | .{ .arch = .x86_64, .os = .windows, .abi = .gnu }, |
| 79 | }; | 82 | }; |
| ... | @@ -97,31 +100,43 @@ pub fn canBuildLibC(target: std.Target) bool { | ... | @@ -97,31 +100,43 @@ pub fn canBuildLibC(target: std.Target) bool { |
| 97 | return false; | 100 | return false; |
| 98 | } | 101 | } |
| 99 | 102 | ||
| 103 | pub fn muslArchName(arch: std.Target.Cpu.Arch, abi: std.Target.Abi) [:0]const u8 { | ||
| 104 | return switch (abi) { | ||
| 105 | .muslabin32 => "mipsn32", | ||
| 106 | .muslx32 => "x32", | ||
| 107 | else => switch (arch) { | ||
| 108 | .arm, .armeb, .thumb, .thumbeb => "arm", | ||
| 109 | .aarch64, .aarch64_be => "aarch64", | ||
| 110 | .loongarch64 => "loongarch64", | ||
| 111 | .m68k => "m68k", | ||
| 112 | .mips, .mipsel => "mips", | ||
| 113 | .mips64el, .mips64 => "mips64", | ||
| 114 | .powerpc => "powerpc", | ||
| 115 | .powerpc64, .powerpc64le => "powerpc64", | ||
| 116 | .riscv32 => "riscv32", | ||
| 117 | .riscv64 => "riscv64", | ||
| 118 | .s390x => "s390x", | ||
| 119 | .wasm32, .wasm64 => "wasm", | ||
| 120 | .x86 => "i386", | ||
| 121 | .x86_64 => "x86_64", | ||
| 122 | else => unreachable, | ||
| 123 | }, | ||
| 124 | }; | ||
| 125 | } | ||
| 126 | |||
| 100 | pub fn muslArchNameHeaders(arch: std.Target.Cpu.Arch) [:0]const u8 { | 127 | pub fn muslArchNameHeaders(arch: std.Target.Cpu.Arch) [:0]const u8 { |
| 101 | return switch (arch) { | 128 | return switch (arch) { |
| 102 | .x86 => return "x86", | 129 | .x86 => "x86", |
| 103 | else => muslArchName(arch), | 130 | else => muslArchName(arch, .musl), |
| 104 | }; | 131 | }; |
| 105 | } | 132 | } |
| 106 | 133 | ||
| 107 | pub fn muslArchName(arch: std.Target.Cpu.Arch) [:0]const u8 { | 134 | pub fn muslAbiNameHeaders(abi: std.Target.Abi) [:0]const u8 { |
| 108 | switch (arch) { | 135 | return switch (abi) { |
| 109 | .aarch64, .aarch64_be => return "aarch64", | 136 | .muslabin32 => "muslabin32", |
| 110 | .arm, .armeb, .thumb, .thumbeb => return "arm", | 137 | .muslx32 => "muslx32", |
| 111 | .x86 => return "i386", | 138 | else => "musl", |
| 112 | .loongarch64 => return "loongarch64", | 139 | }; |
| 113 | .m68k => return "m68k", | ||
| 114 | .mips, .mipsel => return "mips", | ||
| 115 | .mips64el, .mips64 => return "mips64", | ||
| 116 | .powerpc => return "powerpc", | ||
| 117 | .powerpc64, .powerpc64le => return "powerpc64", | ||
| 118 | .riscv32 => return "riscv32", | ||
| 119 | .riscv64 => return "riscv64", | ||
| 120 | .s390x => return "s390x", | ||
| 121 | .wasm32, .wasm64 => return "wasm", | ||
| 122 | .x86_64 => return "x86_64", | ||
| 123 | else => unreachable, | ||
| 124 | } | ||
| 125 | } | 140 | } |
| 126 | 141 | ||
| 127 | pub fn isLibCLibName(target: std.Target, name: []const u8) bool { | 142 | pub fn isLibCLibName(target: std.Target, name: []const u8) bool { |
src/codegen/llvm.zig+3-1| ... | @@ -263,13 +263,15 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 { | ... | @@ -263,13 +263,15 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 { |
| 263 | .gnuf32 => "gnuf32", | 263 | .gnuf32 => "gnuf32", |
| 264 | .gnusf => "gnusf", | 264 | .gnusf => "gnusf", |
| 265 | .gnux32 => "gnux32", | 265 | .gnux32 => "gnux32", |
| 266 | .gnuilp32 => "gnuilp32", | 266 | .gnuilp32 => "gnu_ilp32", |
| 267 | .code16 => "code16", | 267 | .code16 => "code16", |
| 268 | .eabi => "eabi", | 268 | .eabi => "eabi", |
| 269 | .eabihf => "eabihf", | 269 | .eabihf => "eabihf", |
| 270 | .android => "android", | 270 | .android => "android", |
| 271 | .androideabi => "androideabi", | 271 | .androideabi => "androideabi", |
| 272 | .musl => "musl", | 272 | .musl => "musl", |
| 273 | .muslabin32 => "musl", // Should be muslabin32 in LLVM 20. | ||
| 274 | .muslabi64 => "musl", // Should be muslabi64 in LLVM 20. | ||
| 273 | .musleabi => "musleabi", | 275 | .musleabi => "musleabi", |
| 274 | .musleabihf => "musleabihf", | 276 | .musleabihf => "musleabihf", |
| 275 | .muslx32 => "muslx32", | 277 | .muslx32 => "muslx32", |
src/glibc.zig+3-1| ... | @@ -1015,7 +1015,7 @@ pub fn buildSharedObjects(comp: *Compilation, prog_node: std.Progress.Node) !voi | ... | @@ -1015,7 +1015,7 @@ pub fn buildSharedObjects(comp: *Compilation, prog_node: std.Progress.Node) !voi |
| 1015 | } | 1015 | } |
| 1016 | } | 1016 | } |
| 1017 | 1017 | ||
| 1018 | try stubs_asm.appendSlice(".data\n"); | 1018 | try stubs_asm.appendSlice(".rodata\n"); |
| 1019 | 1019 | ||
| 1020 | // For some targets, the real `libc.so.6` will contain a weak reference to `_IO_stdin_used`, | 1020 | // For some targets, the real `libc.so.6` will contain a weak reference to `_IO_stdin_used`, |
| 1021 | // making the linker put the symbol in the dynamic symbol table. We likewise need to emit a | 1021 | // making the linker put the symbol in the dynamic symbol table. We likewise need to emit a |
| ... | @@ -1046,6 +1046,8 @@ pub fn buildSharedObjects(comp: *Compilation, prog_node: std.Progress.Node) !voi | ... | @@ -1046,6 +1046,8 @@ pub fn buildSharedObjects(comp: *Compilation, prog_node: std.Progress.Node) !voi |
| 1046 | }); | 1046 | }); |
| 1047 | } | 1047 | } |
| 1048 | 1048 | ||
| 1049 | try stubs_asm.appendSlice(".data\n"); | ||
| 1050 | |||
| 1049 | const obj_inclusions_len = try inc_reader.readInt(u16, .little); | 1051 | const obj_inclusions_len = try inc_reader.readInt(u16, .little); |
| 1050 | 1052 | ||
| 1051 | sym_i = 0; | 1053 | sym_i = 0; |
src/link/Elf.zig+4-4| ... | @@ -4100,21 +4100,21 @@ fn getLDMOption(target: std.Target) ?[]const u8 { | ... | @@ -4100,21 +4100,21 @@ fn getLDMOption(target: std.Target) ?[]const u8 { |
| 4100 | }, | 4100 | }, |
| 4101 | .mips64 => switch (target.os.tag) { | 4101 | .mips64 => switch (target.os.tag) { |
| 4102 | .freebsd => switch (target.abi) { | 4102 | .freebsd => switch (target.abi) { |
| 4103 | .gnuabin32 => "elf32btsmipn32_fbsd", | 4103 | .gnuabin32, .muslabin32 => "elf32btsmipn32_fbsd", |
| 4104 | else => "elf64btsmip_fbsd", | 4104 | else => "elf64btsmip_fbsd", |
| 4105 | }, | 4105 | }, |
| 4106 | else => switch (target.abi) { | 4106 | else => switch (target.abi) { |
| 4107 | .gnuabin32 => "elf32btsmipn32", | 4107 | .gnuabin32, .muslabin32 => "elf32btsmipn32", |
| 4108 | else => "elf64btsmip", | 4108 | else => "elf64btsmip", |
| 4109 | }, | 4109 | }, |
| 4110 | }, | 4110 | }, |
| 4111 | .mips64el => switch (target.os.tag) { | 4111 | .mips64el => switch (target.os.tag) { |
| 4112 | .freebsd => switch (target.abi) { | 4112 | .freebsd => switch (target.abi) { |
| 4113 | .gnuabin32 => "elf32ltsmipn32_fbsd", | 4113 | .gnuabin32, .muslabin32 => "elf32ltsmipn32_fbsd", |
| 4114 | else => "elf64ltsmip_fbsd", | 4114 | else => "elf64ltsmip_fbsd", |
| 4115 | }, | 4115 | }, |
| 4116 | else => switch (target.abi) { | 4116 | else => switch (target.abi) { |
| 4117 | .gnuabin32 => "elf32ltsmipn32", | 4117 | .gnuabin32, .muslabin32 => "elf32ltsmipn32", |
| 4118 | else => "elf64ltsmip", | 4118 | else => "elf64ltsmip", |
| 4119 | }, | 4119 | }, |
| 4120 | }, | 4120 | }, |
src/musl.zig+263-247| ... | @@ -4,7 +4,6 @@ const mem = std.mem; | ... | @@ -4,7 +4,6 @@ const mem = std.mem; |
| 4 | const path = std.fs.path; | 4 | const path = std.fs.path; |
| 5 | const assert = std.debug.assert; | 5 | const assert = std.debug.assert; |
| 6 | const Module = @import("Package/Module.zig"); | 6 | const Module = @import("Package/Module.zig"); |
| 7 | const archName = std.zig.target.muslArchName; | ||
| 8 | 7 | ||
| 9 | const Compilation = @import("Compilation.zig"); | 8 | const Compilation = @import("Compilation.zig"); |
| 10 | const build_options = @import("build_options"); | 9 | const build_options = @import("build_options"); |
| ... | @@ -113,7 +112,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro | ... | @@ -113,7 +112,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro |
| 113 | // When there is a src/<arch>/foo.* then it should substitute for src/foo.* | 112 | // When there is a src/<arch>/foo.* then it should substitute for src/foo.* |
| 114 | // Even a .s file can substitute for a .c file. | 113 | // Even a .s file can substitute for a .c file. |
| 115 | const target = comp.getTarget(); | 114 | const target = comp.getTarget(); |
| 116 | const arch_name = archName(target.cpu.arch); | 115 | const arch_name = std.zig.target.muslArchName(target.cpu.arch, target.abi); |
| 117 | var source_table = std.StringArrayHashMap(Ext).init(comp.gpa); | 116 | var source_table = std.StringArrayHashMap(Ext).init(comp.gpa); |
| 118 | defer source_table.deinit(); | 117 | defer source_table.deinit(); |
| 119 | 118 | ||
| ... | @@ -123,7 +122,17 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro | ... | @@ -123,7 +122,17 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro |
| 123 | try addSrcFile(arena, &source_table, src_file); | 122 | try addSrcFile(arena, &source_table, src_file); |
| 124 | } | 123 | } |
| 125 | 124 | ||
| 126 | const time32_compat_arch_list = [_][]const u8{ "arm", "i386", "mips", "powerpc", "m68k" }; | 125 | const time32_compat_arch_list = [_][]const u8{ |
| 126 | "arm", | ||
| 127 | "i386", | ||
| 128 | "m68k", | ||
| 129 | "microblaze", | ||
| 130 | "mips", | ||
| 131 | "mipsn32", | ||
| 132 | "or1k", | ||
| 133 | "powerpc", | ||
| 134 | "sh", | ||
| 135 | }; | ||
| 127 | for (time32_compat_arch_list) |time32_compat_arch| { | 136 | for (time32_compat_arch_list) |time32_compat_arch| { |
| 128 | if (mem.eql(u8, arch_name, time32_compat_arch)) { | 137 | if (mem.eql(u8, arch_name, time32_compat_arch)) { |
| 129 | for (compat_time32_files) |compat_time32_file| { | 138 | for (compat_time32_files) |compat_time32_file| { |
| ... | @@ -152,7 +161,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro | ... | @@ -152,7 +161,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro |
| 152 | 161 | ||
| 153 | var is_arch_specific = false; | 162 | var is_arch_specific = false; |
| 154 | // Architecture-specific implementations are under a <arch>/ folder. | 163 | // Architecture-specific implementations are under a <arch>/ folder. |
| 155 | if (isMuslArchName(dirbasename)) { | 164 | if (isArchName(dirbasename)) { |
| 156 | if (!mem.eql(u8, dirbasename, arch_name)) | 165 | if (!mem.eql(u8, dirbasename, arch_name)) |
| 157 | continue; // Not the architecture we're compiling for. | 166 | continue; // Not the architecture we're compiling for. |
| 158 | is_arch_specific = true; | 167 | is_arch_specific = true; |
| ... | @@ -296,8 +305,13 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro | ... | @@ -296,8 +305,13 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro |
| 296 | /// See lib/libc/musl/crt/ARCH/crt?.s . | 305 | /// See lib/libc/musl/crt/ARCH/crt?.s . |
| 297 | pub fn needsCrtiCrtn(target: std.Target) bool { | 306 | pub fn needsCrtiCrtn(target: std.Target) bool { |
| 298 | return switch (target.cpu.arch) { | 307 | return switch (target.cpu.arch) { |
| 299 | .riscv32, .riscv64, .wasm32, .wasm64 => false, | 308 | .loongarch64, |
| 300 | .loongarch64 => false, | 309 | .m68k, |
| 310 | .riscv32, | ||
| 311 | .riscv64, | ||
| 312 | .wasm32, | ||
| 313 | .wasm64, | ||
| 314 | => false, | ||
| 301 | else => true, | 315 | else => true, |
| 302 | }; | 316 | }; |
| 303 | } | 317 | } |
| ... | @@ -312,7 +326,7 @@ pub fn needsCrt0(output_mode: std.builtin.OutputMode, link_mode: std.builtin.Lin | ... | @@ -312,7 +326,7 @@ pub fn needsCrt0(output_mode: std.builtin.OutputMode, link_mode: std.builtin.Lin |
| 312 | }; | 326 | }; |
| 313 | } | 327 | } |
| 314 | 328 | ||
| 315 | fn isMuslArchName(name: []const u8) bool { | 329 | fn isArchName(name: []const u8) bool { |
| 316 | const musl_arch_names = [_][]const u8{ | 330 | const musl_arch_names = [_][]const u8{ |
| 317 | "aarch64", | 331 | "aarch64", |
| 318 | "arm", | 332 | "arm", |
| ... | @@ -386,10 +400,12 @@ fn addCcArgs( | ... | @@ -386,10 +400,12 @@ fn addCcArgs( |
| 386 | want_O3: bool, | 400 | want_O3: bool, |
| 387 | ) error{OutOfMemory}!void { | 401 | ) error{OutOfMemory}!void { |
| 388 | const target = comp.getTarget(); | 402 | const target = comp.getTarget(); |
| 389 | const arch_name = archName(target.cpu.arch); | 403 | const arch_name = std.zig.target.muslArchName(target.cpu.arch, target.abi); |
| 390 | const os_name = @tagName(target.os.tag); | 404 | const os_name = @tagName(target.os.tag); |
| 391 | const triple = try std.fmt.allocPrint(arena, "{s}-{s}-musl", .{ | 405 | const triple = try std.fmt.allocPrint(arena, "{s}-{s}-{s}", .{ |
| 392 | std.zig.target.muslArchNameHeaders(target.cpu.arch), os_name, | 406 | std.zig.target.muslArchNameHeaders(target.cpu.arch), |
| 407 | os_name, | ||
| 408 | std.zig.target.muslAbiNameHeaders(target.abi), | ||
| 393 | }); | 409 | }); |
| 394 | const o_arg = if (want_O3) "-O3" else "-Os"; | 410 | const o_arg = if (want_O3) "-O3" else "-Os"; |
| 395 | 411 | ||
| ... | @@ -445,7 +461,7 @@ fn addCcArgs( | ... | @@ -445,7 +461,7 @@ fn addCcArgs( |
| 445 | fn start_asm_path(comp: *Compilation, arena: Allocator, basename: []const u8) ![]const u8 { | 461 | fn start_asm_path(comp: *Compilation, arena: Allocator, basename: []const u8) ![]const u8 { |
| 446 | const target = comp.getTarget(); | 462 | const target = comp.getTarget(); |
| 447 | return comp.zig_lib_directory.join(arena, &[_][]const u8{ | 463 | return comp.zig_lib_directory.join(arena, &[_][]const u8{ |
| 448 | "libc", "musl", "crt", archName(target.cpu.arch), basename, | 464 | "libc", "musl", "crt", std.zig.target.muslArchName(target.cpu.arch, target.abi), basename, |
| 449 | }); | 465 | }); |
| 450 | } | 466 | } |
| 451 | 467 | ||
| ... | @@ -453,8 +469,6 @@ const src_files = [_][]const u8{ | ... | @@ -453,8 +469,6 @@ const src_files = [_][]const u8{ |
| 453 | "musl/src/aio/aio.c", | 469 | "musl/src/aio/aio.c", |
| 454 | "musl/src/aio/aio_suspend.c", | 470 | "musl/src/aio/aio_suspend.c", |
| 455 | "musl/src/aio/lio_listio.c", | 471 | "musl/src/aio/lio_listio.c", |
| 456 | "musl/src/complex/__cexp.c", | ||
| 457 | "musl/src/complex/__cexpf.c", | ||
| 458 | "musl/src/complex/cabs.c", | 472 | "musl/src/complex/cabs.c", |
| 459 | "musl/src/complex/cabsf.c", | 473 | "musl/src/complex/cabsf.c", |
| 460 | "musl/src/complex/cabsl.c", | 474 | "musl/src/complex/cabsl.c", |
| ... | @@ -485,7 +499,9 @@ const src_files = [_][]const u8{ | ... | @@ -485,7 +499,9 @@ const src_files = [_][]const u8{ |
| 485 | "musl/src/complex/ccoshf.c", | 499 | "musl/src/complex/ccoshf.c", |
| 486 | "musl/src/complex/ccoshl.c", | 500 | "musl/src/complex/ccoshl.c", |
| 487 | "musl/src/complex/ccosl.c", | 501 | "musl/src/complex/ccosl.c", |
| 502 | "musl/src/complex/__cexp.c", | ||
| 488 | "musl/src/complex/cexp.c", | 503 | "musl/src/complex/cexp.c", |
| 504 | "musl/src/complex/__cexpf.c", | ||
| 489 | "musl/src/complex/cexpf.c", | 505 | "musl/src/complex/cexpf.c", |
| 490 | "musl/src/complex/cexpl.c", | 506 | "musl/src/complex/cexpl.c", |
| 491 | "musl/src/complex/cimag.c", | 507 | "musl/src/complex/cimag.c", |
| ... | @@ -526,8 +542,8 @@ const src_files = [_][]const u8{ | ... | @@ -526,8 +542,8 @@ const src_files = [_][]const u8{ |
| 526 | "musl/src/conf/legacy.c", | 542 | "musl/src/conf/legacy.c", |
| 527 | "musl/src/conf/pathconf.c", | 543 | "musl/src/conf/pathconf.c", |
| 528 | "musl/src/conf/sysconf.c", | 544 | "musl/src/conf/sysconf.c", |
| 529 | "musl/src/crypt/crypt.c", | ||
| 530 | "musl/src/crypt/crypt_blowfish.c", | 545 | "musl/src/crypt/crypt_blowfish.c", |
| 546 | "musl/src/crypt/crypt.c", | ||
| 531 | "musl/src/crypt/crypt_des.c", | 547 | "musl/src/crypt/crypt_des.c", |
| 532 | "musl/src/crypt/crypt_md5.c", | 548 | "musl/src/crypt/crypt_md5.c", |
| 533 | "musl/src/crypt/crypt_r.c", | 549 | "musl/src/crypt/crypt_r.c", |
| ... | @@ -583,60 +599,60 @@ const src_files = [_][]const u8{ | ... | @@ -583,60 +599,60 @@ const src_files = [_][]const u8{ |
| 583 | "musl/src/dirent/seekdir.c", | 599 | "musl/src/dirent/seekdir.c", |
| 584 | "musl/src/dirent/telldir.c", | 600 | "musl/src/dirent/telldir.c", |
| 585 | "musl/src/dirent/versionsort.c", | 601 | "musl/src/dirent/versionsort.c", |
| 602 | "musl/src/env/clearenv.c", | ||
| 586 | "musl/src/env/__environ.c", | 603 | "musl/src/env/__environ.c", |
| 604 | "musl/src/env/getenv.c", | ||
| 587 | "musl/src/env/__init_tls.c", | 605 | "musl/src/env/__init_tls.c", |
| 588 | "musl/src/env/__libc_start_main.c", | 606 | "musl/src/env/__libc_start_main.c", |
| 589 | "musl/src/env/__reset_tls.c", | ||
| 590 | "musl/src/env/__stack_chk_fail.c", | ||
| 591 | "musl/src/env/clearenv.c", | ||
| 592 | "musl/src/env/getenv.c", | ||
| 593 | "musl/src/env/putenv.c", | 607 | "musl/src/env/putenv.c", |
| 608 | "musl/src/env/__reset_tls.c", | ||
| 594 | "musl/src/env/secure_getenv.c", | 609 | "musl/src/env/secure_getenv.c", |
| 595 | "musl/src/env/setenv.c", | 610 | "musl/src/env/setenv.c", |
| 611 | "musl/src/env/__stack_chk_fail.c", | ||
| 596 | "musl/src/env/unsetenv.c", | 612 | "musl/src/env/unsetenv.c", |
| 597 | "musl/src/errno/__errno_location.c", | 613 | "musl/src/errno/__errno_location.c", |
| 598 | "musl/src/errno/strerror.c", | 614 | "musl/src/errno/strerror.c", |
| 599 | "musl/src/exit/_Exit.c", | ||
| 600 | "musl/src/exit/abort.c", | 615 | "musl/src/exit/abort.c", |
| 601 | "musl/src/exit/abort_lock.c", | 616 | "musl/src/exit/abort_lock.c", |
| 602 | "musl/src/exit/arm/__aeabi_atexit.c", | 617 | "musl/src/exit/arm/__aeabi_atexit.c", |
| 603 | "musl/src/exit/assert.c", | 618 | "musl/src/exit/assert.c", |
| 604 | "musl/src/exit/at_quick_exit.c", | ||
| 605 | "musl/src/exit/atexit.c", | 619 | "musl/src/exit/atexit.c", |
| 620 | "musl/src/exit/at_quick_exit.c", | ||
| 606 | "musl/src/exit/exit.c", | 621 | "musl/src/exit/exit.c", |
| 622 | "musl/src/exit/_Exit.c", | ||
| 607 | "musl/src/exit/quick_exit.c", | 623 | "musl/src/exit/quick_exit.c", |
| 608 | "musl/src/fcntl/creat.c", | 624 | "musl/src/fcntl/creat.c", |
| 609 | "musl/src/fcntl/fcntl.c", | 625 | "musl/src/fcntl/fcntl.c", |
| 610 | "musl/src/fcntl/open.c", | ||
| 611 | "musl/src/fcntl/openat.c", | 626 | "musl/src/fcntl/openat.c", |
| 627 | "musl/src/fcntl/open.c", | ||
| 612 | "musl/src/fcntl/posix_fadvise.c", | 628 | "musl/src/fcntl/posix_fadvise.c", |
| 613 | "musl/src/fcntl/posix_fallocate.c", | 629 | "musl/src/fcntl/posix_fallocate.c", |
| 614 | "musl/src/fenv/__flt_rounds.c", | ||
| 615 | "musl/src/fenv/aarch64/fenv.s", | 630 | "musl/src/fenv/aarch64/fenv.s", |
| 616 | "musl/src/fenv/arm/fenv-hf.S", | ||
| 617 | "musl/src/fenv/arm/fenv.c", | 631 | "musl/src/fenv/arm/fenv.c", |
| 632 | "musl/src/fenv/arm/fenv-hf.S", | ||
| 618 | "musl/src/fenv/fegetexceptflag.c", | 633 | "musl/src/fenv/fegetexceptflag.c", |
| 619 | "musl/src/fenv/feholdexcept.c", | 634 | "musl/src/fenv/feholdexcept.c", |
| 620 | "musl/src/fenv/fenv.c", | 635 | "musl/src/fenv/fenv.c", |
| 621 | "musl/src/fenv/fesetexceptflag.c", | 636 | "musl/src/fenv/fesetexceptflag.c", |
| 622 | "musl/src/fenv/fesetround.c", | 637 | "musl/src/fenv/fesetround.c", |
| 623 | "musl/src/fenv/feupdateenv.c", | 638 | "musl/src/fenv/feupdateenv.c", |
| 639 | "musl/src/fenv/__flt_rounds.c", | ||
| 624 | "musl/src/fenv/i386/fenv.s", | 640 | "musl/src/fenv/i386/fenv.s", |
| 625 | "musl/src/fenv/loongarch64/fenv.S", | 641 | "musl/src/fenv/loongarch64/fenv.S", |
| 626 | "musl/src/fenv/m68k/fenv.c", | 642 | "musl/src/fenv/m68k/fenv.c", |
| 627 | "musl/src/fenv/mips/fenv-sf.c", | ||
| 628 | "musl/src/fenv/mips/fenv.S", | ||
| 629 | "musl/src/fenv/mips64/fenv-sf.c", | ||
| 630 | "musl/src/fenv/mips64/fenv.S", | 643 | "musl/src/fenv/mips64/fenv.S", |
| 631 | "musl/src/fenv/mipsn32/fenv-sf.c", | 644 | "musl/src/fenv/mips64/fenv-sf.c", |
| 645 | "musl/src/fenv/mips/fenv.S", | ||
| 646 | "musl/src/fenv/mips/fenv-sf.c", | ||
| 632 | "musl/src/fenv/mipsn32/fenv.S", | 647 | "musl/src/fenv/mipsn32/fenv.S", |
| 633 | "musl/src/fenv/powerpc/fenv-sf.c", | 648 | "musl/src/fenv/mipsn32/fenv-sf.c", |
| 634 | "musl/src/fenv/powerpc/fenv.S", | ||
| 635 | "musl/src/fenv/powerpc64/fenv.c", | 649 | "musl/src/fenv/powerpc64/fenv.c", |
| 636 | "musl/src/fenv/riscv32/fenv-sf.c", | 650 | "musl/src/fenv/powerpc/fenv.S", |
| 651 | "musl/src/fenv/powerpc/fenv-sf.c", | ||
| 637 | "musl/src/fenv/riscv32/fenv.S", | 652 | "musl/src/fenv/riscv32/fenv.S", |
| 638 | "musl/src/fenv/riscv64/fenv-sf.c", | 653 | "musl/src/fenv/riscv32/fenv-sf.c", |
| 639 | "musl/src/fenv/riscv64/fenv.S", | 654 | "musl/src/fenv/riscv64/fenv.S", |
| 655 | "musl/src/fenv/riscv64/fenv-sf.c", | ||
| 640 | "musl/src/fenv/s390x/fenv.c", | 656 | "musl/src/fenv/s390x/fenv.c", |
| 641 | "musl/src/fenv/sh/fenv-nofpu.c", | 657 | "musl/src/fenv/sh/fenv-nofpu.c", |
| 642 | "musl/src/fenv/sh/fenv.S", | 658 | "musl/src/fenv/sh/fenv.S", |
| ... | @@ -649,8 +665,8 @@ const src_files = [_][]const u8{ | ... | @@ -649,8 +665,8 @@ const src_files = [_][]const u8{ |
| 649 | "musl/src/internal/intscan.c", | 665 | "musl/src/internal/intscan.c", |
| 650 | "musl/src/internal/libc.c", | 666 | "musl/src/internal/libc.c", |
| 651 | "musl/src/internal/procfdname.c", | 667 | "musl/src/internal/procfdname.c", |
| 652 | "musl/src/internal/sh/__shcall.c", | ||
| 653 | "musl/src/internal/shgetc.c", | 668 | "musl/src/internal/shgetc.c", |
| 669 | "musl/src/internal/sh/__shcall.c", | ||
| 654 | "musl/src/internal/syscall_ret.c", | 670 | "musl/src/internal/syscall_ret.c", |
| 655 | "musl/src/internal/vdso.c", | 671 | "musl/src/internal/vdso.c", |
| 656 | "musl/src/internal/version.c", | 672 | "musl/src/internal/version.c", |
| ... | @@ -667,19 +683,19 @@ const src_files = [_][]const u8{ | ... | @@ -667,19 +683,19 @@ const src_files = [_][]const u8{ |
| 667 | "musl/src/ipc/shmctl.c", | 683 | "musl/src/ipc/shmctl.c", |
| 668 | "musl/src/ipc/shmdt.c", | 684 | "musl/src/ipc/shmdt.c", |
| 669 | "musl/src/ipc/shmget.c", | 685 | "musl/src/ipc/shmget.c", |
| 670 | "musl/src/ldso/__dlsym.c", | ||
| 671 | "musl/src/ldso/aarch64/dlsym.s", | 686 | "musl/src/ldso/aarch64/dlsym.s", |
| 672 | "musl/src/ldso/aarch64/tlsdesc.s", | 687 | "musl/src/ldso/aarch64/tlsdesc.s", |
| 673 | "musl/src/ldso/arm/dlsym.s", | 688 | "musl/src/ldso/arm/dlsym.s", |
| 674 | "musl/src/ldso/arm/dlsym_time64.S", | 689 | "musl/src/ldso/arm/dlsym_time64.S", |
| 675 | "musl/src/ldso/arm/find_exidx.c", | 690 | "musl/src/ldso/arm/find_exidx.c", |
| 676 | "musl/src/ldso/arm/tlsdesc.S", | 691 | "musl/src/ldso/arm/tlsdesc.S", |
| 677 | "musl/src/ldso/dl_iterate_phdr.c", | ||
| 678 | "musl/src/ldso/dladdr.c", | 692 | "musl/src/ldso/dladdr.c", |
| 679 | "musl/src/ldso/dlclose.c", | 693 | "musl/src/ldso/dlclose.c", |
| 680 | "musl/src/ldso/dlerror.c", | 694 | "musl/src/ldso/dlerror.c", |
| 681 | "musl/src/ldso/dlinfo.c", | 695 | "musl/src/ldso/dlinfo.c", |
| 696 | "musl/src/ldso/dl_iterate_phdr.c", | ||
| 682 | "musl/src/ldso/dlopen.c", | 697 | "musl/src/ldso/dlopen.c", |
| 698 | "musl/src/ldso/__dlsym.c", | ||
| 683 | "musl/src/ldso/dlsym.c", | 699 | "musl/src/ldso/dlsym.c", |
| 684 | "musl/src/ldso/i386/dlsym.s", | 700 | "musl/src/ldso/i386/dlsym.s", |
| 685 | "musl/src/ldso/i386/dlsym_time64.S", | 701 | "musl/src/ldso/i386/dlsym_time64.S", |
| ... | @@ -689,16 +705,16 @@ const src_files = [_][]const u8{ | ... | @@ -689,16 +705,16 @@ const src_files = [_][]const u8{ |
| 689 | "musl/src/ldso/m68k/dlsym_time64.S", | 705 | "musl/src/ldso/m68k/dlsym_time64.S", |
| 690 | "musl/src/ldso/microblaze/dlsym.s", | 706 | "musl/src/ldso/microblaze/dlsym.s", |
| 691 | "musl/src/ldso/microblaze/dlsym_time64.S", | 707 | "musl/src/ldso/microblaze/dlsym_time64.S", |
| 708 | "musl/src/ldso/mips64/dlsym.s", | ||
| 692 | "musl/src/ldso/mips/dlsym.s", | 709 | "musl/src/ldso/mips/dlsym.s", |
| 693 | "musl/src/ldso/mips/dlsym_time64.S", | 710 | "musl/src/ldso/mips/dlsym_time64.S", |
| 694 | "musl/src/ldso/mips64/dlsym.s", | ||
| 695 | "musl/src/ldso/mipsn32/dlsym.s", | 711 | "musl/src/ldso/mipsn32/dlsym.s", |
| 696 | "musl/src/ldso/mipsn32/dlsym_time64.S", | 712 | "musl/src/ldso/mipsn32/dlsym_time64.S", |
| 697 | "musl/src/ldso/or1k/dlsym.s", | 713 | "musl/src/ldso/or1k/dlsym.s", |
| 698 | "musl/src/ldso/or1k/dlsym_time64.S", | 714 | "musl/src/ldso/or1k/dlsym_time64.S", |
| 715 | "musl/src/ldso/powerpc64/dlsym.s", | ||
| 699 | "musl/src/ldso/powerpc/dlsym.s", | 716 | "musl/src/ldso/powerpc/dlsym.s", |
| 700 | "musl/src/ldso/powerpc/dlsym_time64.S", | 717 | "musl/src/ldso/powerpc/dlsym_time64.S", |
| 701 | "musl/src/ldso/powerpc64/dlsym.s", | ||
| 702 | "musl/src/ldso/riscv32/dlsym.s", | 718 | "musl/src/ldso/riscv32/dlsym.s", |
| 703 | "musl/src/ldso/riscv64/dlsym.s", | 719 | "musl/src/ldso/riscv64/dlsym.s", |
| 704 | "musl/src/ldso/riscv64/tlsdesc.s", | 720 | "musl/src/ldso/riscv64/tlsdesc.s", |
| ... | @@ -792,21 +808,21 @@ const src_files = [_][]const u8{ | ... | @@ -792,21 +808,21 @@ const src_files = [_][]const u8{ |
| 792 | "musl/src/linux/wait4.c", | 808 | "musl/src/linux/wait4.c", |
| 793 | "musl/src/linux/x32/sysinfo.c", | 809 | "musl/src/linux/x32/sysinfo.c", |
| 794 | "musl/src/linux/xattr.c", | 810 | "musl/src/linux/xattr.c", |
| 795 | "musl/src/locale/__lctrans.c", | ||
| 796 | "musl/src/locale/__mo_lookup.c", | ||
| 797 | "musl/src/locale/bind_textdomain_codeset.c", | 811 | "musl/src/locale/bind_textdomain_codeset.c", |
| 798 | "musl/src/locale/c_locale.c", | ||
| 799 | "musl/src/locale/catclose.c", | 812 | "musl/src/locale/catclose.c", |
| 800 | "musl/src/locale/catgets.c", | 813 | "musl/src/locale/catgets.c", |
| 801 | "musl/src/locale/catopen.c", | 814 | "musl/src/locale/catopen.c", |
| 815 | "musl/src/locale/c_locale.c", | ||
| 802 | "musl/src/locale/dcngettext.c", | 816 | "musl/src/locale/dcngettext.c", |
| 803 | "musl/src/locale/duplocale.c", | 817 | "musl/src/locale/duplocale.c", |
| 804 | "musl/src/locale/freelocale.c", | 818 | "musl/src/locale/freelocale.c", |
| 805 | "musl/src/locale/iconv.c", | 819 | "musl/src/locale/iconv.c", |
| 806 | "musl/src/locale/iconv_close.c", | 820 | "musl/src/locale/iconv_close.c", |
| 807 | "musl/src/locale/langinfo.c", | 821 | "musl/src/locale/langinfo.c", |
| 808 | "musl/src/locale/locale_map.c", | 822 | "musl/src/locale/__lctrans.c", |
| 809 | "musl/src/locale/localeconv.c", | 823 | "musl/src/locale/localeconv.c", |
| 824 | "musl/src/locale/locale_map.c", | ||
| 825 | "musl/src/locale/__mo_lookup.c", | ||
| 810 | "musl/src/locale/newlocale.c", | 826 | "musl/src/locale/newlocale.c", |
| 811 | "musl/src/locale/pleval.c", | 827 | "musl/src/locale/pleval.c", |
| 812 | "musl/src/locale/setlocale.c", | 828 | "musl/src/locale/setlocale.c", |
| ... | @@ -833,43 +849,9 @@ const src_files = [_][]const u8{ | ... | @@ -833,43 +849,9 @@ const src_files = [_][]const u8{ |
| 833 | "musl/src/malloc/oldmalloc/malloc.c", | 849 | "musl/src/malloc/oldmalloc/malloc.c", |
| 834 | "musl/src/malloc/oldmalloc/malloc_usable_size.c", | 850 | "musl/src/malloc/oldmalloc/malloc_usable_size.c", |
| 835 | "musl/src/malloc/posix_memalign.c", | 851 | "musl/src/malloc/posix_memalign.c", |
| 836 | "musl/src/malloc/realloc.c", | ||
| 837 | "musl/src/malloc/reallocarray.c", | 852 | "musl/src/malloc/reallocarray.c", |
| 853 | "musl/src/malloc/realloc.c", | ||
| 838 | "musl/src/malloc/replaced.c", | 854 | "musl/src/malloc/replaced.c", |
| 839 | "musl/src/math/__cos.c", | ||
| 840 | "musl/src/math/__cosdf.c", | ||
| 841 | "musl/src/math/__cosl.c", | ||
| 842 | "musl/src/math/__expo2.c", | ||
| 843 | "musl/src/math/__expo2f.c", | ||
| 844 | "musl/src/math/__fpclassify.c", | ||
| 845 | "musl/src/math/__fpclassifyf.c", | ||
| 846 | "musl/src/math/__fpclassifyl.c", | ||
| 847 | "musl/src/math/__invtrigl.c", | ||
| 848 | "musl/src/math/__math_divzero.c", | ||
| 849 | "musl/src/math/__math_divzerof.c", | ||
| 850 | "musl/src/math/__math_invalid.c", | ||
| 851 | "musl/src/math/__math_invalidf.c", | ||
| 852 | "musl/src/math/__math_invalidl.c", | ||
| 853 | "musl/src/math/__math_oflow.c", | ||
| 854 | "musl/src/math/__math_oflowf.c", | ||
| 855 | "musl/src/math/__math_uflow.c", | ||
| 856 | "musl/src/math/__math_uflowf.c", | ||
| 857 | "musl/src/math/__math_xflow.c", | ||
| 858 | "musl/src/math/__math_xflowf.c", | ||
| 859 | "musl/src/math/__polevll.c", | ||
| 860 | "musl/src/math/__rem_pio2.c", | ||
| 861 | "musl/src/math/__rem_pio2_large.c", | ||
| 862 | "musl/src/math/__rem_pio2f.c", | ||
| 863 | "musl/src/math/__rem_pio2l.c", | ||
| 864 | "musl/src/math/__signbit.c", | ||
| 865 | "musl/src/math/__signbitf.c", | ||
| 866 | "musl/src/math/__signbitl.c", | ||
| 867 | "musl/src/math/__sin.c", | ||
| 868 | "musl/src/math/__sindf.c", | ||
| 869 | "musl/src/math/__sinl.c", | ||
| 870 | "musl/src/math/__tan.c", | ||
| 871 | "musl/src/math/__tandf.c", | ||
| 872 | "musl/src/math/__tanl.c", | ||
| 873 | "musl/src/math/aarch64/ceil.c", | 855 | "musl/src/math/aarch64/ceil.c", |
| 874 | "musl/src/math/aarch64/ceilf.c", | 856 | "musl/src/math/aarch64/ceilf.c", |
| 875 | "musl/src/math/aarch64/fabs.c", | 857 | "musl/src/math/aarch64/fabs.c", |
| ... | @@ -918,10 +900,10 @@ const src_files = [_][]const u8{ | ... | @@ -918,10 +900,10 @@ const src_files = [_][]const u8{ |
| 918 | "musl/src/math/asinhf.c", | 900 | "musl/src/math/asinhf.c", |
| 919 | "musl/src/math/asinhl.c", | 901 | "musl/src/math/asinhl.c", |
| 920 | "musl/src/math/asinl.c", | 902 | "musl/src/math/asinl.c", |
| 921 | "musl/src/math/atan.c", | ||
| 922 | "musl/src/math/atan2.c", | 903 | "musl/src/math/atan2.c", |
| 923 | "musl/src/math/atan2f.c", | 904 | "musl/src/math/atan2f.c", |
| 924 | "musl/src/math/atan2l.c", | 905 | "musl/src/math/atan2l.c", |
| 906 | "musl/src/math/atan.c", | ||
| 925 | "musl/src/math/atanf.c", | 907 | "musl/src/math/atanf.c", |
| 926 | "musl/src/math/atanh.c", | 908 | "musl/src/math/atanh.c", |
| 927 | "musl/src/math/atanhf.c", | 909 | "musl/src/math/atanhf.c", |
| ... | @@ -936,16 +918,18 @@ const src_files = [_][]const u8{ | ... | @@ -936,16 +918,18 @@ const src_files = [_][]const u8{ |
| 936 | "musl/src/math/copysign.c", | 918 | "musl/src/math/copysign.c", |
| 937 | "musl/src/math/copysignf.c", | 919 | "musl/src/math/copysignf.c", |
| 938 | "musl/src/math/copysignl.c", | 920 | "musl/src/math/copysignl.c", |
| 921 | "musl/src/math/__cos.c", | ||
| 939 | "musl/src/math/cos.c", | 922 | "musl/src/math/cos.c", |
| 923 | "musl/src/math/__cosdf.c", | ||
| 940 | "musl/src/math/cosf.c", | 924 | "musl/src/math/cosf.c", |
| 941 | "musl/src/math/cosh.c", | 925 | "musl/src/math/cosh.c", |
| 942 | "musl/src/math/coshf.c", | 926 | "musl/src/math/coshf.c", |
| 943 | "musl/src/math/coshl.c", | 927 | "musl/src/math/coshl.c", |
| 928 | "musl/src/math/__cosl.c", | ||
| 944 | "musl/src/math/cosl.c", | 929 | "musl/src/math/cosl.c", |
| 945 | "musl/src/math/erf.c", | 930 | "musl/src/math/erf.c", |
| 946 | "musl/src/math/erff.c", | 931 | "musl/src/math/erff.c", |
| 947 | "musl/src/math/erfl.c", | 932 | "musl/src/math/erfl.c", |
| 948 | "musl/src/math/exp.c", | ||
| 949 | "musl/src/math/exp10.c", | 933 | "musl/src/math/exp10.c", |
| 950 | "musl/src/math/exp10f.c", | 934 | "musl/src/math/exp10f.c", |
| 951 | "musl/src/math/exp10l.c", | 935 | "musl/src/math/exp10l.c", |
| ... | @@ -953,12 +937,15 @@ const src_files = [_][]const u8{ | ... | @@ -953,12 +937,15 @@ const src_files = [_][]const u8{ |
| 953 | "musl/src/math/exp2f.c", | 937 | "musl/src/math/exp2f.c", |
| 954 | "musl/src/math/exp2f_data.c", | 938 | "musl/src/math/exp2f_data.c", |
| 955 | "musl/src/math/exp2l.c", | 939 | "musl/src/math/exp2l.c", |
| 940 | "musl/src/math/exp.c", | ||
| 956 | "musl/src/math/exp_data.c", | 941 | "musl/src/math/exp_data.c", |
| 957 | "musl/src/math/expf.c", | 942 | "musl/src/math/expf.c", |
| 958 | "musl/src/math/expl.c", | 943 | "musl/src/math/expl.c", |
| 959 | "musl/src/math/expm1.c", | 944 | "musl/src/math/expm1.c", |
| 960 | "musl/src/math/expm1f.c", | 945 | "musl/src/math/expm1f.c", |
| 961 | "musl/src/math/expm1l.c", | 946 | "musl/src/math/expm1l.c", |
| 947 | "musl/src/math/__expo2.c", | ||
| 948 | "musl/src/math/__expo2f.c", | ||
| 962 | "musl/src/math/fabs.c", | 949 | "musl/src/math/fabs.c", |
| 963 | "musl/src/math/fabsf.c", | 950 | "musl/src/math/fabsf.c", |
| 964 | "musl/src/math/fabsl.c", | 951 | "musl/src/math/fabsl.c", |
| ... | @@ -982,28 +969,30 @@ const src_files = [_][]const u8{ | ... | @@ -982,28 +969,30 @@ const src_files = [_][]const u8{ |
| 982 | "musl/src/math/fmod.c", | 969 | "musl/src/math/fmod.c", |
| 983 | "musl/src/math/fmodf.c", | 970 | "musl/src/math/fmodf.c", |
| 984 | "musl/src/math/fmodl.c", | 971 | "musl/src/math/fmodl.c", |
| 972 | "musl/src/math/__fpclassify.c", | ||
| 973 | "musl/src/math/__fpclassifyf.c", | ||
| 974 | "musl/src/math/__fpclassifyl.c", | ||
| 985 | "musl/src/math/frexp.c", | 975 | "musl/src/math/frexp.c", |
| 986 | "musl/src/math/frexpf.c", | 976 | "musl/src/math/frexpf.c", |
| 987 | "musl/src/math/frexpl.c", | 977 | "musl/src/math/frexpl.c", |
| 988 | "musl/src/math/hypot.c", | 978 | "musl/src/math/hypot.c", |
| 989 | "musl/src/math/hypotf.c", | 979 | "musl/src/math/hypotf.c", |
| 990 | "musl/src/math/hypotl.c", | 980 | "musl/src/math/hypotl.c", |
| 991 | "musl/src/math/i386/__invtrigl.s", | ||
| 992 | "musl/src/math/i386/acos.s", | ||
| 993 | "musl/src/math/i386/acosf.s", | 981 | "musl/src/math/i386/acosf.s", |
| 994 | "musl/src/math/i386/acosl.s", | 982 | "musl/src/math/i386/acosl.s", |
| 995 | "musl/src/math/i386/asin.s", | 983 | "musl/src/math/i386/acos.s", |
| 996 | "musl/src/math/i386/asinf.s", | 984 | "musl/src/math/i386/asinf.s", |
| 997 | "musl/src/math/i386/asinl.s", | 985 | "musl/src/math/i386/asinl.s", |
| 998 | "musl/src/math/i386/atan.s", | 986 | "musl/src/math/i386/asin.s", |
| 999 | "musl/src/math/i386/atan2.s", | ||
| 1000 | "musl/src/math/i386/atan2f.s", | 987 | "musl/src/math/i386/atan2f.s", |
| 1001 | "musl/src/math/i386/atan2l.s", | 988 | "musl/src/math/i386/atan2l.s", |
| 989 | "musl/src/math/i386/atan2.s", | ||
| 1002 | "musl/src/math/i386/atanf.s", | 990 | "musl/src/math/i386/atanf.s", |
| 1003 | "musl/src/math/i386/atanl.s", | 991 | "musl/src/math/i386/atanl.s", |
| 1004 | "musl/src/math/i386/ceil.s", | 992 | "musl/src/math/i386/atan.s", |
| 1005 | "musl/src/math/i386/ceilf.s", | 993 | "musl/src/math/i386/ceilf.s", |
| 1006 | "musl/src/math/i386/ceill.s", | 994 | "musl/src/math/i386/ceill.s", |
| 995 | "musl/src/math/i386/ceil.s", | ||
| 1007 | "musl/src/math/i386/exp2l.s", | 996 | "musl/src/math/i386/exp2l.s", |
| 1008 | "musl/src/math/i386/exp_ld.s", | 997 | "musl/src/math/i386/exp_ld.s", |
| 1009 | "musl/src/math/i386/expl.s", | 998 | "musl/src/math/i386/expl.s", |
| ... | @@ -1011,59 +1000,61 @@ const src_files = [_][]const u8{ | ... | @@ -1011,59 +1000,61 @@ const src_files = [_][]const u8{ |
| 1011 | "musl/src/math/i386/fabs.c", | 1000 | "musl/src/math/i386/fabs.c", |
| 1012 | "musl/src/math/i386/fabsf.c", | 1001 | "musl/src/math/i386/fabsf.c", |
| 1013 | "musl/src/math/i386/fabsl.c", | 1002 | "musl/src/math/i386/fabsl.c", |
| 1014 | "musl/src/math/i386/floor.s", | ||
| 1015 | "musl/src/math/i386/floorf.s", | 1003 | "musl/src/math/i386/floorf.s", |
| 1016 | "musl/src/math/i386/floorl.s", | 1004 | "musl/src/math/i386/floorl.s", |
| 1005 | "musl/src/math/i386/floor.s", | ||
| 1017 | "musl/src/math/i386/fmod.c", | 1006 | "musl/src/math/i386/fmod.c", |
| 1018 | "musl/src/math/i386/fmodf.c", | 1007 | "musl/src/math/i386/fmodf.c", |
| 1019 | "musl/src/math/i386/fmodl.c", | 1008 | "musl/src/math/i386/fmodl.c", |
| 1020 | "musl/src/math/i386/hypot.s", | ||
| 1021 | "musl/src/math/i386/hypotf.s", | 1009 | "musl/src/math/i386/hypotf.s", |
| 1022 | "musl/src/math/i386/ldexp.s", | 1010 | "musl/src/math/i386/hypot.s", |
| 1011 | "musl/src/math/i386/__invtrigl.s", | ||
| 1023 | "musl/src/math/i386/ldexpf.s", | 1012 | "musl/src/math/i386/ldexpf.s", |
| 1024 | "musl/src/math/i386/ldexpl.s", | 1013 | "musl/src/math/i386/ldexpl.s", |
| 1014 | "musl/src/math/i386/ldexp.s", | ||
| 1025 | "musl/src/math/i386/llrint.c", | 1015 | "musl/src/math/i386/llrint.c", |
| 1026 | "musl/src/math/i386/llrintf.c", | 1016 | "musl/src/math/i386/llrintf.c", |
| 1027 | "musl/src/math/i386/llrintl.c", | 1017 | "musl/src/math/i386/llrintl.c", |
| 1028 | "musl/src/math/i386/log.s", | ||
| 1029 | "musl/src/math/i386/log10.s", | ||
| 1030 | "musl/src/math/i386/log10f.s", | 1018 | "musl/src/math/i386/log10f.s", |
| 1031 | "musl/src/math/i386/log10l.s", | 1019 | "musl/src/math/i386/log10l.s", |
| 1032 | "musl/src/math/i386/log1p.s", | 1020 | "musl/src/math/i386/log10.s", |
| 1033 | "musl/src/math/i386/log1pf.s", | 1021 | "musl/src/math/i386/log1pf.s", |
| 1034 | "musl/src/math/i386/log1pl.s", | 1022 | "musl/src/math/i386/log1pl.s", |
| 1035 | "musl/src/math/i386/log2.s", | 1023 | "musl/src/math/i386/log1p.s", |
| 1036 | "musl/src/math/i386/log2f.s", | 1024 | "musl/src/math/i386/log2f.s", |
| 1037 | "musl/src/math/i386/log2l.s", | 1025 | "musl/src/math/i386/log2l.s", |
| 1026 | "musl/src/math/i386/log2.s", | ||
| 1038 | "musl/src/math/i386/logf.s", | 1027 | "musl/src/math/i386/logf.s", |
| 1039 | "musl/src/math/i386/logl.s", | 1028 | "musl/src/math/i386/logl.s", |
| 1029 | "musl/src/math/i386/log.s", | ||
| 1040 | "musl/src/math/i386/lrint.c", | 1030 | "musl/src/math/i386/lrint.c", |
| 1041 | "musl/src/math/i386/lrintf.c", | 1031 | "musl/src/math/i386/lrintf.c", |
| 1042 | "musl/src/math/i386/lrintl.c", | 1032 | "musl/src/math/i386/lrintl.c", |
| 1043 | "musl/src/math/i386/remainder.c", | 1033 | "musl/src/math/i386/remainder.c", |
| 1044 | "musl/src/math/i386/remainderf.c", | 1034 | "musl/src/math/i386/remainderf.c", |
| 1045 | "musl/src/math/i386/remainderl.c", | 1035 | "musl/src/math/i386/remainderl.c", |
| 1046 | "musl/src/math/i386/remquo.s", | ||
| 1047 | "musl/src/math/i386/remquof.s", | 1036 | "musl/src/math/i386/remquof.s", |
| 1048 | "musl/src/math/i386/remquol.s", | 1037 | "musl/src/math/i386/remquol.s", |
| 1038 | "musl/src/math/i386/remquo.s", | ||
| 1049 | "musl/src/math/i386/rint.c", | 1039 | "musl/src/math/i386/rint.c", |
| 1050 | "musl/src/math/i386/rintf.c", | 1040 | "musl/src/math/i386/rintf.c", |
| 1051 | "musl/src/math/i386/rintl.c", | 1041 | "musl/src/math/i386/rintl.c", |
| 1052 | "musl/src/math/i386/scalbln.s", | ||
| 1053 | "musl/src/math/i386/scalblnf.s", | 1042 | "musl/src/math/i386/scalblnf.s", |
| 1054 | "musl/src/math/i386/scalblnl.s", | 1043 | "musl/src/math/i386/scalblnl.s", |
| 1055 | "musl/src/math/i386/scalbn.s", | 1044 | "musl/src/math/i386/scalbln.s", |
| 1056 | "musl/src/math/i386/scalbnf.s", | 1045 | "musl/src/math/i386/scalbnf.s", |
| 1057 | "musl/src/math/i386/scalbnl.s", | 1046 | "musl/src/math/i386/scalbnl.s", |
| 1047 | "musl/src/math/i386/scalbn.s", | ||
| 1058 | "musl/src/math/i386/sqrt.c", | 1048 | "musl/src/math/i386/sqrt.c", |
| 1059 | "musl/src/math/i386/sqrtf.c", | 1049 | "musl/src/math/i386/sqrtf.c", |
| 1060 | "musl/src/math/i386/sqrtl.c", | 1050 | "musl/src/math/i386/sqrtl.c", |
| 1061 | "musl/src/math/i386/trunc.s", | ||
| 1062 | "musl/src/math/i386/truncf.s", | 1051 | "musl/src/math/i386/truncf.s", |
| 1063 | "musl/src/math/i386/truncl.s", | 1052 | "musl/src/math/i386/truncl.s", |
| 1053 | "musl/src/math/i386/trunc.s", | ||
| 1064 | "musl/src/math/ilogb.c", | 1054 | "musl/src/math/ilogb.c", |
| 1065 | "musl/src/math/ilogbf.c", | 1055 | "musl/src/math/ilogbf.c", |
| 1066 | "musl/src/math/ilogbl.c", | 1056 | "musl/src/math/ilogbl.c", |
| 1057 | "musl/src/math/__invtrigl.c", | ||
| 1067 | "musl/src/math/j0.c", | 1058 | "musl/src/math/j0.c", |
| 1068 | "musl/src/math/j0f.c", | 1059 | "musl/src/math/j0f.c", |
| 1069 | "musl/src/math/j1.c", | 1060 | "musl/src/math/j1.c", |
| ... | @@ -1074,17 +1065,16 @@ const src_files = [_][]const u8{ | ... | @@ -1074,17 +1065,16 @@ const src_files = [_][]const u8{ |
| 1074 | "musl/src/math/ldexpf.c", | 1065 | "musl/src/math/ldexpf.c", |
| 1075 | "musl/src/math/ldexpl.c", | 1066 | "musl/src/math/ldexpl.c", |
| 1076 | "musl/src/math/lgamma.c", | 1067 | "musl/src/math/lgamma.c", |
| 1077 | "musl/src/math/lgamma_r.c", | ||
| 1078 | "musl/src/math/lgammaf.c", | 1068 | "musl/src/math/lgammaf.c", |
| 1079 | "musl/src/math/lgammaf_r.c", | 1069 | "musl/src/math/lgammaf_r.c", |
| 1080 | "musl/src/math/lgammal.c", | 1070 | "musl/src/math/lgammal.c", |
| 1071 | "musl/src/math/lgamma_r.c", | ||
| 1081 | "musl/src/math/llrint.c", | 1072 | "musl/src/math/llrint.c", |
| 1082 | "musl/src/math/llrintf.c", | 1073 | "musl/src/math/llrintf.c", |
| 1083 | "musl/src/math/llrintl.c", | 1074 | "musl/src/math/llrintl.c", |
| 1084 | "musl/src/math/llround.c", | 1075 | "musl/src/math/llround.c", |
| 1085 | "musl/src/math/llroundf.c", | 1076 | "musl/src/math/llroundf.c", |
| 1086 | "musl/src/math/llroundl.c", | 1077 | "musl/src/math/llroundl.c", |
| 1087 | "musl/src/math/log.c", | ||
| 1088 | "musl/src/math/log10.c", | 1078 | "musl/src/math/log10.c", |
| 1089 | "musl/src/math/log10f.c", | 1079 | "musl/src/math/log10f.c", |
| 1090 | "musl/src/math/log10l.c", | 1080 | "musl/src/math/log10l.c", |
| ... | @@ -1096,10 +1086,11 @@ const src_files = [_][]const u8{ | ... | @@ -1096,10 +1086,11 @@ const src_files = [_][]const u8{ |
| 1096 | "musl/src/math/log2f.c", | 1086 | "musl/src/math/log2f.c", |
| 1097 | "musl/src/math/log2f_data.c", | 1087 | "musl/src/math/log2f_data.c", |
| 1098 | "musl/src/math/log2l.c", | 1088 | "musl/src/math/log2l.c", |
| 1099 | "musl/src/math/log_data.c", | ||
| 1100 | "musl/src/math/logb.c", | 1089 | "musl/src/math/logb.c", |
| 1101 | "musl/src/math/logbf.c", | 1090 | "musl/src/math/logbf.c", |
| 1102 | "musl/src/math/logbl.c", | 1091 | "musl/src/math/logbl.c", |
| 1092 | "musl/src/math/log.c", | ||
| 1093 | "musl/src/math/log_data.c", | ||
| 1103 | "musl/src/math/logf.c", | 1094 | "musl/src/math/logf.c", |
| 1104 | "musl/src/math/logf_data.c", | 1095 | "musl/src/math/logf_data.c", |
| 1105 | "musl/src/math/logl.c", | 1096 | "musl/src/math/logl.c", |
| ... | @@ -1110,6 +1101,17 @@ const src_files = [_][]const u8{ | ... | @@ -1110,6 +1101,17 @@ const src_files = [_][]const u8{ |
| 1110 | "musl/src/math/lroundf.c", | 1101 | "musl/src/math/lroundf.c", |
| 1111 | "musl/src/math/lroundl.c", | 1102 | "musl/src/math/lroundl.c", |
| 1112 | "musl/src/math/m68k/sqrtl.c", | 1103 | "musl/src/math/m68k/sqrtl.c", |
| 1104 | "musl/src/math/__math_divzero.c", | ||
| 1105 | "musl/src/math/__math_divzerof.c", | ||
| 1106 | "musl/src/math/__math_invalid.c", | ||
| 1107 | "musl/src/math/__math_invalidf.c", | ||
| 1108 | "musl/src/math/__math_invalidl.c", | ||
| 1109 | "musl/src/math/__math_oflow.c", | ||
| 1110 | "musl/src/math/__math_oflowf.c", | ||
| 1111 | "musl/src/math/__math_uflow.c", | ||
| 1112 | "musl/src/math/__math_uflowf.c", | ||
| 1113 | "musl/src/math/__math_xflow.c", | ||
| 1114 | "musl/src/math/__math_xflowf.c", | ||
| 1113 | "musl/src/math/mips/fabs.c", | 1115 | "musl/src/math/mips/fabs.c", |
| 1114 | "musl/src/math/mips/fabsf.c", | 1116 | "musl/src/math/mips/fabsf.c", |
| 1115 | "musl/src/math/mips/sqrt.c", | 1117 | "musl/src/math/mips/sqrt.c", |
| ... | @@ -1129,14 +1131,9 @@ const src_files = [_][]const u8{ | ... | @@ -1129,14 +1131,9 @@ const src_files = [_][]const u8{ |
| 1129 | "musl/src/math/nexttoward.c", | 1131 | "musl/src/math/nexttoward.c", |
| 1130 | "musl/src/math/nexttowardf.c", | 1132 | "musl/src/math/nexttowardf.c", |
| 1131 | "musl/src/math/nexttowardl.c", | 1133 | "musl/src/math/nexttowardl.c", |
| 1134 | "musl/src/math/__polevll.c", | ||
| 1132 | "musl/src/math/pow.c", | 1135 | "musl/src/math/pow.c", |
| 1133 | "musl/src/math/pow_data.c", | 1136 | "musl/src/math/pow_data.c", |
| 1134 | "musl/src/math/powerpc/fabs.c", | ||
| 1135 | "musl/src/math/powerpc/fabsf.c", | ||
| 1136 | "musl/src/math/powerpc/fma.c", | ||
| 1137 | "musl/src/math/powerpc/fmaf.c", | ||
| 1138 | "musl/src/math/powerpc/sqrt.c", | ||
| 1139 | "musl/src/math/powerpc/sqrtf.c", | ||
| 1140 | "musl/src/math/powerpc64/ceil.c", | 1137 | "musl/src/math/powerpc64/ceil.c", |
| 1141 | "musl/src/math/powerpc64/ceilf.c", | 1138 | "musl/src/math/powerpc64/ceilf.c", |
| 1142 | "musl/src/math/powerpc64/fabs.c", | 1139 | "musl/src/math/powerpc64/fabs.c", |
| ... | @@ -1159,12 +1156,22 @@ const src_files = [_][]const u8{ | ... | @@ -1159,12 +1156,22 @@ const src_files = [_][]const u8{ |
| 1159 | "musl/src/math/powerpc64/sqrtf.c", | 1156 | "musl/src/math/powerpc64/sqrtf.c", |
| 1160 | "musl/src/math/powerpc64/trunc.c", | 1157 | "musl/src/math/powerpc64/trunc.c", |
| 1161 | "musl/src/math/powerpc64/truncf.c", | 1158 | "musl/src/math/powerpc64/truncf.c", |
| 1159 | "musl/src/math/powerpc/fabs.c", | ||
| 1160 | "musl/src/math/powerpc/fabsf.c", | ||
| 1161 | "musl/src/math/powerpc/fma.c", | ||
| 1162 | "musl/src/math/powerpc/fmaf.c", | ||
| 1163 | "musl/src/math/powerpc/sqrt.c", | ||
| 1164 | "musl/src/math/powerpc/sqrtf.c", | ||
| 1162 | "musl/src/math/powf.c", | 1165 | "musl/src/math/powf.c", |
| 1163 | "musl/src/math/powf_data.c", | 1166 | "musl/src/math/powf_data.c", |
| 1164 | "musl/src/math/powl.c", | 1167 | "musl/src/math/powl.c", |
| 1165 | "musl/src/math/remainder.c", | 1168 | "musl/src/math/remainder.c", |
| 1166 | "musl/src/math/remainderf.c", | 1169 | "musl/src/math/remainderf.c", |
| 1167 | "musl/src/math/remainderl.c", | 1170 | "musl/src/math/remainderl.c", |
| 1171 | "musl/src/math/__rem_pio2.c", | ||
| 1172 | "musl/src/math/__rem_pio2f.c", | ||
| 1173 | "musl/src/math/__rem_pio2_large.c", | ||
| 1174 | "musl/src/math/__rem_pio2l.c", | ||
| 1168 | "musl/src/math/remquo.c", | 1175 | "musl/src/math/remquo.c", |
| 1169 | "musl/src/math/remquof.c", | 1176 | "musl/src/math/remquof.c", |
| 1170 | "musl/src/math/remquol.c", | 1177 | "musl/src/math/remquol.c", |
| ... | @@ -1232,27 +1239,36 @@ const src_files = [_][]const u8{ | ... | @@ -1232,27 +1239,36 @@ const src_files = [_][]const u8{ |
| 1232 | "musl/src/math/scalbn.c", | 1239 | "musl/src/math/scalbn.c", |
| 1233 | "musl/src/math/scalbnf.c", | 1240 | "musl/src/math/scalbnf.c", |
| 1234 | "musl/src/math/scalbnl.c", | 1241 | "musl/src/math/scalbnl.c", |
| 1242 | "musl/src/math/__signbit.c", | ||
| 1243 | "musl/src/math/__signbitf.c", | ||
| 1244 | "musl/src/math/__signbitl.c", | ||
| 1235 | "musl/src/math/signgam.c", | 1245 | "musl/src/math/signgam.c", |
| 1236 | "musl/src/math/significand.c", | 1246 | "musl/src/math/significand.c", |
| 1237 | "musl/src/math/significandf.c", | 1247 | "musl/src/math/significandf.c", |
| 1248 | "musl/src/math/__sin.c", | ||
| 1238 | "musl/src/math/sin.c", | 1249 | "musl/src/math/sin.c", |
| 1239 | "musl/src/math/sincos.c", | 1250 | "musl/src/math/sincos.c", |
| 1240 | "musl/src/math/sincosf.c", | 1251 | "musl/src/math/sincosf.c", |
| 1241 | "musl/src/math/sincosl.c", | 1252 | "musl/src/math/sincosl.c", |
| 1253 | "musl/src/math/__sindf.c", | ||
| 1242 | "musl/src/math/sinf.c", | 1254 | "musl/src/math/sinf.c", |
| 1243 | "musl/src/math/sinh.c", | 1255 | "musl/src/math/sinh.c", |
| 1244 | "musl/src/math/sinhf.c", | 1256 | "musl/src/math/sinhf.c", |
| 1245 | "musl/src/math/sinhl.c", | 1257 | "musl/src/math/sinhl.c", |
| 1258 | "musl/src/math/__sinl.c", | ||
| 1246 | "musl/src/math/sinl.c", | 1259 | "musl/src/math/sinl.c", |
| 1247 | "musl/src/math/sqrt.c", | 1260 | "musl/src/math/sqrt.c", |
| 1248 | "musl/src/math/sqrt_data.c", | 1261 | "musl/src/math/sqrt_data.c", |
| 1249 | "musl/src/math/sqrtf.c", | 1262 | "musl/src/math/sqrtf.c", |
| 1250 | "musl/src/math/sqrtl.c", | 1263 | "musl/src/math/sqrtl.c", |
| 1264 | "musl/src/math/__tan.c", | ||
| 1251 | "musl/src/math/tan.c", | 1265 | "musl/src/math/tan.c", |
| 1266 | "musl/src/math/__tandf.c", | ||
| 1252 | "musl/src/math/tanf.c", | 1267 | "musl/src/math/tanf.c", |
| 1253 | "musl/src/math/tanh.c", | 1268 | "musl/src/math/tanh.c", |
| 1254 | "musl/src/math/tanhf.c", | 1269 | "musl/src/math/tanhf.c", |
| 1255 | "musl/src/math/tanhl.c", | 1270 | "musl/src/math/tanhl.c", |
| 1271 | "musl/src/math/__tanl.c", | ||
| 1256 | "musl/src/math/tanl.c", | 1272 | "musl/src/math/tanl.c", |
| 1257 | "musl/src/math/tgamma.c", | 1273 | "musl/src/math/tgamma.c", |
| 1258 | "musl/src/math/tgammaf.c", | 1274 | "musl/src/math/tgammaf.c", |
| ... | @@ -1260,7 +1276,6 @@ const src_files = [_][]const u8{ | ... | @@ -1260,7 +1276,6 @@ const src_files = [_][]const u8{ |
| 1260 | "musl/src/math/trunc.c", | 1276 | "musl/src/math/trunc.c", |
| 1261 | "musl/src/math/truncf.c", | 1277 | "musl/src/math/truncf.c", |
| 1262 | "musl/src/math/truncl.c", | 1278 | "musl/src/math/truncl.c", |
| 1263 | "musl/src/math/x32/__invtrigl.s", | ||
| 1264 | "musl/src/math/x32/acosl.s", | 1279 | "musl/src/math/x32/acosl.s", |
| 1265 | "musl/src/math/x32/asinl.s", | 1280 | "musl/src/math/x32/asinl.s", |
| 1266 | "musl/src/math/x32/atan2l.s", | 1281 | "musl/src/math/x32/atan2l.s", |
| ... | @@ -1269,30 +1284,30 @@ const src_files = [_][]const u8{ | ... | @@ -1269,30 +1284,30 @@ const src_files = [_][]const u8{ |
| 1269 | "musl/src/math/x32/exp2l.s", | 1284 | "musl/src/math/x32/exp2l.s", |
| 1270 | "musl/src/math/x32/expl.s", | 1285 | "musl/src/math/x32/expl.s", |
| 1271 | "musl/src/math/x32/expm1l.s", | 1286 | "musl/src/math/x32/expm1l.s", |
| 1272 | "musl/src/math/x32/fabs.s", | ||
| 1273 | "musl/src/math/x32/fabsf.s", | 1287 | "musl/src/math/x32/fabsf.s", |
| 1274 | "musl/src/math/x32/fabsl.s", | 1288 | "musl/src/math/x32/fabsl.s", |
| 1289 | "musl/src/math/x32/fabs.s", | ||
| 1275 | "musl/src/math/x32/floorl.s", | 1290 | "musl/src/math/x32/floorl.s", |
| 1276 | "musl/src/math/x32/fma.c", | 1291 | "musl/src/math/x32/fma.c", |
| 1277 | "musl/src/math/x32/fmaf.c", | 1292 | "musl/src/math/x32/fmaf.c", |
| 1278 | "musl/src/math/x32/fmodl.s", | 1293 | "musl/src/math/x32/fmodl.s", |
| 1279 | "musl/src/math/x32/llrint.s", | 1294 | "musl/src/math/x32/__invtrigl.s", |
| 1280 | "musl/src/math/x32/llrintf.s", | 1295 | "musl/src/math/x32/llrintf.s", |
| 1281 | "musl/src/math/x32/llrintl.s", | 1296 | "musl/src/math/x32/llrintl.s", |
| 1297 | "musl/src/math/x32/llrint.s", | ||
| 1282 | "musl/src/math/x32/log10l.s", | 1298 | "musl/src/math/x32/log10l.s", |
| 1283 | "musl/src/math/x32/log1pl.s", | 1299 | "musl/src/math/x32/log1pl.s", |
| 1284 | "musl/src/math/x32/log2l.s", | 1300 | "musl/src/math/x32/log2l.s", |
| 1285 | "musl/src/math/x32/logl.s", | 1301 | "musl/src/math/x32/logl.s", |
| 1286 | "musl/src/math/x32/lrint.s", | ||
| 1287 | "musl/src/math/x32/lrintf.s", | 1302 | "musl/src/math/x32/lrintf.s", |
| 1288 | "musl/src/math/x32/lrintl.s", | 1303 | "musl/src/math/x32/lrintl.s", |
| 1304 | "musl/src/math/x32/lrint.s", | ||
| 1289 | "musl/src/math/x32/remainderl.s", | 1305 | "musl/src/math/x32/remainderl.s", |
| 1290 | "musl/src/math/x32/rintl.s", | 1306 | "musl/src/math/x32/rintl.s", |
| 1291 | "musl/src/math/x32/sqrt.s", | ||
| 1292 | "musl/src/math/x32/sqrtf.s", | 1307 | "musl/src/math/x32/sqrtf.s", |
| 1293 | "musl/src/math/x32/sqrtl.s", | 1308 | "musl/src/math/x32/sqrtl.s", |
| 1309 | "musl/src/math/x32/sqrt.s", | ||
| 1294 | "musl/src/math/x32/truncl.s", | 1310 | "musl/src/math/x32/truncl.s", |
| 1295 | "musl/src/math/x86_64/__invtrigl.s", | ||
| 1296 | "musl/src/math/x86_64/acosl.s", | 1311 | "musl/src/math/x86_64/acosl.s", |
| 1297 | "musl/src/math/x86_64/asinl.s", | 1312 | "musl/src/math/x86_64/asinl.s", |
| 1298 | "musl/src/math/x86_64/atan2l.s", | 1313 | "musl/src/math/x86_64/atan2l.s", |
| ... | @@ -1308,6 +1323,7 @@ const src_files = [_][]const u8{ | ... | @@ -1308,6 +1323,7 @@ const src_files = [_][]const u8{ |
| 1308 | "musl/src/math/x86_64/fma.c", | 1323 | "musl/src/math/x86_64/fma.c", |
| 1309 | "musl/src/math/x86_64/fmaf.c", | 1324 | "musl/src/math/x86_64/fmaf.c", |
| 1310 | "musl/src/math/x86_64/fmodl.c", | 1325 | "musl/src/math/x86_64/fmodl.c", |
| 1326 | "musl/src/math/x86_64/__invtrigl.s", | ||
| 1311 | "musl/src/math/x86_64/llrint.c", | 1327 | "musl/src/math/x86_64/llrint.c", |
| 1312 | "musl/src/math/x86_64/llrintf.c", | 1328 | "musl/src/math/x86_64/llrintf.c", |
| 1313 | "musl/src/math/x86_64/llrintl.c", | 1329 | "musl/src/math/x86_64/llrintl.c", |
| ... | @@ -1333,8 +1349,8 @@ const src_files = [_][]const u8{ | ... | @@ -1333,8 +1349,8 @@ const src_files = [_][]const u8{ |
| 1333 | "musl/src/misc/ffsll.c", | 1349 | "musl/src/misc/ffsll.c", |
| 1334 | "musl/src/misc/fmtmsg.c", | 1350 | "musl/src/misc/fmtmsg.c", |
| 1335 | "musl/src/misc/forkpty.c", | 1351 | "musl/src/misc/forkpty.c", |
| 1336 | "musl/src/misc/get_current_dir_name.c", | ||
| 1337 | "musl/src/misc/getauxval.c", | 1352 | "musl/src/misc/getauxval.c", |
| 1353 | "musl/src/misc/get_current_dir_name.c", | ||
| 1338 | "musl/src/misc/getdomainname.c", | 1354 | "musl/src/misc/getdomainname.c", |
| 1339 | "musl/src/misc/getentropy.c", | 1355 | "musl/src/misc/getentropy.c", |
| 1340 | "musl/src/misc/gethostid.c", | 1356 | "musl/src/misc/gethostid.c", |
| ... | @@ -1366,14 +1382,14 @@ const src_files = [_][]const u8{ | ... | @@ -1366,14 +1382,14 @@ const src_files = [_][]const u8{ |
| 1366 | "musl/src/misc/wordexp.c", | 1382 | "musl/src/misc/wordexp.c", |
| 1367 | "musl/src/mman/madvise.c", | 1383 | "musl/src/mman/madvise.c", |
| 1368 | "musl/src/mman/mincore.c", | 1384 | "musl/src/mman/mincore.c", |
| 1369 | "musl/src/mman/mlock.c", | ||
| 1370 | "musl/src/mman/mlockall.c", | 1385 | "musl/src/mman/mlockall.c", |
| 1386 | "musl/src/mman/mlock.c", | ||
| 1371 | "musl/src/mman/mmap.c", | 1387 | "musl/src/mman/mmap.c", |
| 1372 | "musl/src/mman/mprotect.c", | 1388 | "musl/src/mman/mprotect.c", |
| 1373 | "musl/src/mman/mremap.c", | 1389 | "musl/src/mman/mremap.c", |
| 1374 | "musl/src/mman/msync.c", | 1390 | "musl/src/mman/msync.c", |
| 1375 | "musl/src/mman/munlock.c", | ||
| 1376 | "musl/src/mman/munlockall.c", | 1391 | "musl/src/mman/munlockall.c", |
| 1392 | "musl/src/mman/munlock.c", | ||
| 1377 | "musl/src/mman/munmap.c", | 1393 | "musl/src/mman/munmap.c", |
| 1378 | "musl/src/mman/posix_madvise.c", | 1394 | "musl/src/mman/posix_madvise.c", |
| 1379 | "musl/src/mman/shm_open.c", | 1395 | "musl/src/mman/shm_open.c", |
| ... | @@ -1407,8 +1423,8 @@ const src_files = [_][]const u8{ | ... | @@ -1407,8 +1423,8 @@ const src_files = [_][]const u8{ |
| 1407 | "musl/src/multibyte/wcstombs.c", | 1423 | "musl/src/multibyte/wcstombs.c", |
| 1408 | "musl/src/multibyte/wctob.c", | 1424 | "musl/src/multibyte/wctob.c", |
| 1409 | "musl/src/multibyte/wctomb.c", | 1425 | "musl/src/multibyte/wctomb.c", |
| 1410 | "musl/src/network/accept.c", | ||
| 1411 | "musl/src/network/accept4.c", | 1426 | "musl/src/network/accept4.c", |
| 1427 | "musl/src/network/accept.c", | ||
| 1412 | "musl/src/network/bind.c", | 1428 | "musl/src/network/bind.c", |
| 1413 | "musl/src/network/connect.c", | 1429 | "musl/src/network/connect.c", |
| 1414 | "musl/src/network/dn_comp.c", | 1430 | "musl/src/network/dn_comp.c", |
| ... | @@ -1422,9 +1438,9 @@ const src_files = [_][]const u8{ | ... | @@ -1422,9 +1438,9 @@ const src_files = [_][]const u8{ |
| 1422 | "musl/src/network/getaddrinfo.c", | 1438 | "musl/src/network/getaddrinfo.c", |
| 1423 | "musl/src/network/gethostbyaddr.c", | 1439 | "musl/src/network/gethostbyaddr.c", |
| 1424 | "musl/src/network/gethostbyaddr_r.c", | 1440 | "musl/src/network/gethostbyaddr_r.c", |
| 1425 | "musl/src/network/gethostbyname.c", | ||
| 1426 | "musl/src/network/gethostbyname2.c", | 1441 | "musl/src/network/gethostbyname2.c", |
| 1427 | "musl/src/network/gethostbyname2_r.c", | 1442 | "musl/src/network/gethostbyname2_r.c", |
| 1443 | "musl/src/network/gethostbyname.c", | ||
| 1428 | "musl/src/network/gethostbyname_r.c", | 1444 | "musl/src/network/gethostbyname_r.c", |
| 1429 | "musl/src/network/getifaddrs.c", | 1445 | "musl/src/network/getifaddrs.c", |
| 1430 | "musl/src/network/getnameinfo.c", | 1446 | "musl/src/network/getnameinfo.c", |
| ... | @@ -1469,11 +1485,11 @@ const src_files = [_][]const u8{ | ... | @@ -1469,11 +1485,11 @@ const src_files = [_][]const u8{ |
| 1469 | "musl/src/network/res_init.c", | 1485 | "musl/src/network/res_init.c", |
| 1470 | "musl/src/network/res_mkquery.c", | 1486 | "musl/src/network/res_mkquery.c", |
| 1471 | "musl/src/network/res_msend.c", | 1487 | "musl/src/network/res_msend.c", |
| 1488 | "musl/src/network/resolvconf.c", | ||
| 1472 | "musl/src/network/res_query.c", | 1489 | "musl/src/network/res_query.c", |
| 1473 | "musl/src/network/res_querydomain.c", | 1490 | "musl/src/network/res_querydomain.c", |
| 1474 | "musl/src/network/res_send.c", | 1491 | "musl/src/network/res_send.c", |
| 1475 | "musl/src/network/res_state.c", | 1492 | "musl/src/network/res_state.c", |
| 1476 | "musl/src/network/resolvconf.c", | ||
| 1477 | "musl/src/network/send.c", | 1493 | "musl/src/network/send.c", |
| 1478 | "musl/src/network/sendmmsg.c", | 1494 | "musl/src/network/sendmmsg.c", |
| 1479 | "musl/src/network/sendmsg.c", | 1495 | "musl/src/network/sendmsg.c", |
| ... | @@ -1488,14 +1504,14 @@ const src_files = [_][]const u8{ | ... | @@ -1488,14 +1504,14 @@ const src_files = [_][]const u8{ |
| 1488 | "musl/src/passwd/fgetpwent.c", | 1504 | "musl/src/passwd/fgetpwent.c", |
| 1489 | "musl/src/passwd/fgetspent.c", | 1505 | "musl/src/passwd/fgetspent.c", |
| 1490 | "musl/src/passwd/getgr_a.c", | 1506 | "musl/src/passwd/getgr_a.c", |
| 1491 | "musl/src/passwd/getgr_r.c", | ||
| 1492 | "musl/src/passwd/getgrent.c", | ||
| 1493 | "musl/src/passwd/getgrent_a.c", | 1507 | "musl/src/passwd/getgrent_a.c", |
| 1508 | "musl/src/passwd/getgrent.c", | ||
| 1494 | "musl/src/passwd/getgrouplist.c", | 1509 | "musl/src/passwd/getgrouplist.c", |
| 1510 | "musl/src/passwd/getgr_r.c", | ||
| 1495 | "musl/src/passwd/getpw_a.c", | 1511 | "musl/src/passwd/getpw_a.c", |
| 1496 | "musl/src/passwd/getpw_r.c", | ||
| 1497 | "musl/src/passwd/getpwent.c", | ||
| 1498 | "musl/src/passwd/getpwent_a.c", | 1512 | "musl/src/passwd/getpwent_a.c", |
| 1513 | "musl/src/passwd/getpwent.c", | ||
| 1514 | "musl/src/passwd/getpw_r.c", | ||
| 1499 | "musl/src/passwd/getspent.c", | 1515 | "musl/src/passwd/getspent.c", |
| 1500 | "musl/src/passwd/getspnam.c", | 1516 | "musl/src/passwd/getspnam.c", |
| 1501 | "musl/src/passwd/getspnam_r.c", | 1517 | "musl/src/passwd/getspnam_r.c", |
| ... | @@ -1504,18 +1520,17 @@ const src_files = [_][]const u8{ | ... | @@ -1504,18 +1520,17 @@ const src_files = [_][]const u8{ |
| 1504 | "musl/src/passwd/putgrent.c", | 1520 | "musl/src/passwd/putgrent.c", |
| 1505 | "musl/src/passwd/putpwent.c", | 1521 | "musl/src/passwd/putpwent.c", |
| 1506 | "musl/src/passwd/putspent.c", | 1522 | "musl/src/passwd/putspent.c", |
| 1507 | "musl/src/prng/__rand48_step.c", | ||
| 1508 | "musl/src/prng/__seed48.c", | ||
| 1509 | "musl/src/prng/drand48.c", | 1523 | "musl/src/prng/drand48.c", |
| 1510 | "musl/src/prng/lcong48.c", | 1524 | "musl/src/prng/lcong48.c", |
| 1511 | "musl/src/prng/lrand48.c", | 1525 | "musl/src/prng/lrand48.c", |
| 1512 | "musl/src/prng/mrand48.c", | 1526 | "musl/src/prng/mrand48.c", |
| 1527 | "musl/src/prng/__rand48_step.c", | ||
| 1513 | "musl/src/prng/rand.c", | 1528 | "musl/src/prng/rand.c", |
| 1514 | "musl/src/prng/rand_r.c", | ||
| 1515 | "musl/src/prng/random.c", | 1529 | "musl/src/prng/random.c", |
| 1530 | "musl/src/prng/rand_r.c", | ||
| 1531 | "musl/src/prng/__seed48.c", | ||
| 1516 | "musl/src/prng/seed48.c", | 1532 | "musl/src/prng/seed48.c", |
| 1517 | "musl/src/prng/srand48.c", | 1533 | "musl/src/prng/srand48.c", |
| 1518 | "musl/src/process/_Fork.c", | ||
| 1519 | "musl/src/process/aarch64/vfork.s", | 1534 | "musl/src/process/aarch64/vfork.s", |
| 1520 | "musl/src/process/arm/vfork.s", | 1535 | "musl/src/process/arm/vfork.s", |
| 1521 | "musl/src/process/execl.c", | 1536 | "musl/src/process/execl.c", |
| ... | @@ -1526,15 +1541,8 @@ const src_files = [_][]const u8{ | ... | @@ -1526,15 +1541,8 @@ const src_files = [_][]const u8{ |
| 1526 | "musl/src/process/execvp.c", | 1541 | "musl/src/process/execvp.c", |
| 1527 | "musl/src/process/fexecve.c", | 1542 | "musl/src/process/fexecve.c", |
| 1528 | "musl/src/process/fork.c", | 1543 | "musl/src/process/fork.c", |
| 1544 | "musl/src/process/_Fork.c", | ||
| 1529 | "musl/src/process/i386/vfork.s", | 1545 | "musl/src/process/i386/vfork.s", |
| 1530 | "musl/src/process/posix_spawn.c", | ||
| 1531 | "musl/src/process/posix_spawn_file_actions_addchdir.c", | ||
| 1532 | "musl/src/process/posix_spawn_file_actions_addclose.c", | ||
| 1533 | "musl/src/process/posix_spawn_file_actions_adddup2.c", | ||
| 1534 | "musl/src/process/posix_spawn_file_actions_addfchdir.c", | ||
| 1535 | "musl/src/process/posix_spawn_file_actions_addopen.c", | ||
| 1536 | "musl/src/process/posix_spawn_file_actions_destroy.c", | ||
| 1537 | "musl/src/process/posix_spawn_file_actions_init.c", | ||
| 1538 | "musl/src/process/posix_spawnattr_destroy.c", | 1546 | "musl/src/process/posix_spawnattr_destroy.c", |
| 1539 | "musl/src/process/posix_spawnattr_getflags.c", | 1547 | "musl/src/process/posix_spawnattr_getflags.c", |
| 1540 | "musl/src/process/posix_spawnattr_getpgroup.c", | 1548 | "musl/src/process/posix_spawnattr_getpgroup.c", |
| ... | @@ -1546,6 +1554,14 @@ const src_files = [_][]const u8{ | ... | @@ -1546,6 +1554,14 @@ const src_files = [_][]const u8{ |
| 1546 | "musl/src/process/posix_spawnattr_setpgroup.c", | 1554 | "musl/src/process/posix_spawnattr_setpgroup.c", |
| 1547 | "musl/src/process/posix_spawnattr_setsigdefault.c", | 1555 | "musl/src/process/posix_spawnattr_setsigdefault.c", |
| 1548 | "musl/src/process/posix_spawnattr_setsigmask.c", | 1556 | "musl/src/process/posix_spawnattr_setsigmask.c", |
| 1557 | "musl/src/process/posix_spawn.c", | ||
| 1558 | "musl/src/process/posix_spawn_file_actions_addchdir.c", | ||
| 1559 | "musl/src/process/posix_spawn_file_actions_addclose.c", | ||
| 1560 | "musl/src/process/posix_spawn_file_actions_adddup2.c", | ||
| 1561 | "musl/src/process/posix_spawn_file_actions_addfchdir.c", | ||
| 1562 | "musl/src/process/posix_spawn_file_actions_addopen.c", | ||
| 1563 | "musl/src/process/posix_spawn_file_actions_destroy.c", | ||
| 1564 | "musl/src/process/posix_spawn_file_actions_init.c", | ||
| 1549 | "musl/src/process/posix_spawnp.c", | 1565 | "musl/src/process/posix_spawnp.c", |
| 1550 | "musl/src/process/riscv64/vfork.s", | 1566 | "musl/src/process/riscv64/vfork.s", |
| 1551 | "musl/src/process/s390x/vfork.s", | 1567 | "musl/src/process/s390x/vfork.s", |
| ... | @@ -1565,9 +1581,9 @@ const src_files = [_][]const u8{ | ... | @@ -1565,9 +1581,9 @@ const src_files = [_][]const u8{ |
| 1565 | "musl/src/regex/tre-mem.c", | 1581 | "musl/src/regex/tre-mem.c", |
| 1566 | "musl/src/sched/affinity.c", | 1582 | "musl/src/sched/affinity.c", |
| 1567 | "musl/src/sched/sched_cpucount.c", | 1583 | "musl/src/sched/sched_cpucount.c", |
| 1568 | "musl/src/sched/sched_get_priority_max.c", | ||
| 1569 | "musl/src/sched/sched_getcpu.c", | 1584 | "musl/src/sched/sched_getcpu.c", |
| 1570 | "musl/src/sched/sched_getparam.c", | 1585 | "musl/src/sched/sched_getparam.c", |
| 1586 | "musl/src/sched/sched_get_priority_max.c", | ||
| 1571 | "musl/src/sched/sched_getscheduler.c", | 1587 | "musl/src/sched/sched_getscheduler.c", |
| 1572 | "musl/src/sched/sched_rr_get_interval.c", | 1588 | "musl/src/sched/sched_rr_get_interval.c", |
| 1573 | "musl/src/sched/sched_setparam.c", | 1589 | "musl/src/sched/sched_setparam.c", |
| ... | @@ -1598,18 +1614,18 @@ const src_files = [_][]const u8{ | ... | @@ -1598,18 +1614,18 @@ const src_files = [_][]const u8{ |
| 1598 | "musl/src/setjmp/m68k/setjmp.s", | 1614 | "musl/src/setjmp/m68k/setjmp.s", |
| 1599 | "musl/src/setjmp/microblaze/longjmp.s", | 1615 | "musl/src/setjmp/microblaze/longjmp.s", |
| 1600 | "musl/src/setjmp/microblaze/setjmp.s", | 1616 | "musl/src/setjmp/microblaze/setjmp.s", |
| 1601 | "musl/src/setjmp/mips/longjmp.S", | ||
| 1602 | "musl/src/setjmp/mips/setjmp.S", | ||
| 1603 | "musl/src/setjmp/mips64/longjmp.S", | 1617 | "musl/src/setjmp/mips64/longjmp.S", |
| 1604 | "musl/src/setjmp/mips64/setjmp.S", | 1618 | "musl/src/setjmp/mips64/setjmp.S", |
| 1619 | "musl/src/setjmp/mips/longjmp.S", | ||
| 1605 | "musl/src/setjmp/mipsn32/longjmp.S", | 1620 | "musl/src/setjmp/mipsn32/longjmp.S", |
| 1606 | "musl/src/setjmp/mipsn32/setjmp.S", | 1621 | "musl/src/setjmp/mipsn32/setjmp.S", |
| 1622 | "musl/src/setjmp/mips/setjmp.S", | ||
| 1607 | "musl/src/setjmp/or1k/longjmp.s", | 1623 | "musl/src/setjmp/or1k/longjmp.s", |
| 1608 | "musl/src/setjmp/or1k/setjmp.s", | 1624 | "musl/src/setjmp/or1k/setjmp.s", |
| 1609 | "musl/src/setjmp/powerpc/longjmp.S", | ||
| 1610 | "musl/src/setjmp/powerpc/setjmp.S", | ||
| 1611 | "musl/src/setjmp/powerpc64/longjmp.s", | 1625 | "musl/src/setjmp/powerpc64/longjmp.s", |
| 1612 | "musl/src/setjmp/powerpc64/setjmp.s", | 1626 | "musl/src/setjmp/powerpc64/setjmp.s", |
| 1627 | "musl/src/setjmp/powerpc/longjmp.S", | ||
| 1628 | "musl/src/setjmp/powerpc/setjmp.S", | ||
| 1613 | "musl/src/setjmp/riscv32/longjmp.S", | 1629 | "musl/src/setjmp/riscv32/longjmp.S", |
| 1614 | "musl/src/setjmp/riscv32/setjmp.S", | 1630 | "musl/src/setjmp/riscv32/setjmp.S", |
| 1615 | "musl/src/setjmp/riscv64/longjmp.S", | 1631 | "musl/src/setjmp/riscv64/longjmp.S", |
| ... | @@ -1638,14 +1654,14 @@ const src_files = [_][]const u8{ | ... | @@ -1638,14 +1654,14 @@ const src_files = [_][]const u8{ |
| 1638 | "musl/src/signal/m68k/sigsetjmp.s", | 1654 | "musl/src/signal/m68k/sigsetjmp.s", |
| 1639 | "musl/src/signal/microblaze/restore.s", | 1655 | "musl/src/signal/microblaze/restore.s", |
| 1640 | "musl/src/signal/microblaze/sigsetjmp.s", | 1656 | "musl/src/signal/microblaze/sigsetjmp.s", |
| 1641 | "musl/src/signal/mips/sigsetjmp.s", | ||
| 1642 | "musl/src/signal/mips64/sigsetjmp.s", | 1657 | "musl/src/signal/mips64/sigsetjmp.s", |
| 1643 | "musl/src/signal/mipsn32/sigsetjmp.s", | 1658 | "musl/src/signal/mipsn32/sigsetjmp.s", |
| 1659 | "musl/src/signal/mips/sigsetjmp.s", | ||
| 1644 | "musl/src/signal/or1k/sigsetjmp.s", | 1660 | "musl/src/signal/or1k/sigsetjmp.s", |
| 1645 | "musl/src/signal/powerpc/restore.s", | ||
| 1646 | "musl/src/signal/powerpc/sigsetjmp.s", | ||
| 1647 | "musl/src/signal/powerpc64/restore.s", | 1661 | "musl/src/signal/powerpc64/restore.s", |
| 1648 | "musl/src/signal/powerpc64/sigsetjmp.s", | 1662 | "musl/src/signal/powerpc64/sigsetjmp.s", |
| 1663 | "musl/src/signal/powerpc/restore.s", | ||
| 1664 | "musl/src/signal/powerpc/sigsetjmp.s", | ||
| 1649 | "musl/src/signal/psiginfo.c", | 1665 | "musl/src/signal/psiginfo.c", |
| 1650 | "musl/src/signal/psignal.c", | 1666 | "musl/src/signal/psignal.c", |
| 1651 | "musl/src/signal/raise.c", | 1667 | "musl/src/signal/raise.c", |
| ... | @@ -1694,47 +1710,34 @@ const src_files = [_][]const u8{ | ... | @@ -1694,47 +1710,34 @@ const src_files = [_][]const u8{ |
| 1694 | "musl/src/signal/x32/sigsetjmp.s", | 1710 | "musl/src/signal/x32/sigsetjmp.s", |
| 1695 | "musl/src/signal/x86_64/restore.s", | 1711 | "musl/src/signal/x86_64/restore.s", |
| 1696 | "musl/src/signal/x86_64/sigsetjmp.s", | 1712 | "musl/src/signal/x86_64/sigsetjmp.s", |
| 1697 | "musl/src/stat/__xstat.c", | ||
| 1698 | "musl/src/stat/chmod.c", | 1713 | "musl/src/stat/chmod.c", |
| 1699 | "musl/src/stat/fchmod.c", | ||
| 1700 | "musl/src/stat/fchmodat.c", | 1714 | "musl/src/stat/fchmodat.c", |
| 1701 | "musl/src/stat/fstat.c", | 1715 | "musl/src/stat/fchmod.c", |
| 1702 | "musl/src/stat/fstatat.c", | 1716 | "musl/src/stat/fstatat.c", |
| 1717 | "musl/src/stat/fstat.c", | ||
| 1703 | "musl/src/stat/futimens.c", | 1718 | "musl/src/stat/futimens.c", |
| 1704 | "musl/src/stat/futimesat.c", | 1719 | "musl/src/stat/futimesat.c", |
| 1705 | "musl/src/stat/lchmod.c", | 1720 | "musl/src/stat/lchmod.c", |
| 1706 | "musl/src/stat/lstat.c", | 1721 | "musl/src/stat/lstat.c", |
| 1707 | "musl/src/stat/mkdir.c", | ||
| 1708 | "musl/src/stat/mkdirat.c", | 1722 | "musl/src/stat/mkdirat.c", |
| 1709 | "musl/src/stat/mkfifo.c", | 1723 | "musl/src/stat/mkdir.c", |
| 1710 | "musl/src/stat/mkfifoat.c", | 1724 | "musl/src/stat/mkfifoat.c", |
| 1711 | "musl/src/stat/mknod.c", | 1725 | "musl/src/stat/mkfifo.c", |
| 1712 | "musl/src/stat/mknodat.c", | 1726 | "musl/src/stat/mknodat.c", |
| 1727 | "musl/src/stat/mknod.c", | ||
| 1713 | "musl/src/stat/stat.c", | 1728 | "musl/src/stat/stat.c", |
| 1714 | "musl/src/stat/statvfs.c", | 1729 | "musl/src/stat/statvfs.c", |
| 1715 | "musl/src/stat/umask.c", | 1730 | "musl/src/stat/umask.c", |
| 1716 | "musl/src/stat/utimensat.c", | 1731 | "musl/src/stat/utimensat.c", |
| 1717 | "musl/src/stdio/__fclose_ca.c", | 1732 | "musl/src/stat/__xstat.c", |
| 1718 | "musl/src/stdio/__fdopen.c", | ||
| 1719 | "musl/src/stdio/__fmodeflags.c", | ||
| 1720 | "musl/src/stdio/__fopen_rb_ca.c", | ||
| 1721 | "musl/src/stdio/__lockfile.c", | ||
| 1722 | "musl/src/stdio/__overflow.c", | ||
| 1723 | "musl/src/stdio/__stdio_close.c", | ||
| 1724 | "musl/src/stdio/__stdio_exit.c", | ||
| 1725 | "musl/src/stdio/__stdio_read.c", | ||
| 1726 | "musl/src/stdio/__stdio_seek.c", | ||
| 1727 | "musl/src/stdio/__stdio_write.c", | ||
| 1728 | "musl/src/stdio/__stdout_write.c", | ||
| 1729 | "musl/src/stdio/__toread.c", | ||
| 1730 | "musl/src/stdio/__towrite.c", | ||
| 1731 | "musl/src/stdio/__uflow.c", | ||
| 1732 | "musl/src/stdio/asprintf.c", | 1733 | "musl/src/stdio/asprintf.c", |
| 1733 | "musl/src/stdio/clearerr.c", | 1734 | "musl/src/stdio/clearerr.c", |
| 1734 | "musl/src/stdio/dprintf.c", | 1735 | "musl/src/stdio/dprintf.c", |
| 1735 | "musl/src/stdio/ext.c", | ||
| 1736 | "musl/src/stdio/ext2.c", | 1736 | "musl/src/stdio/ext2.c", |
| 1737 | "musl/src/stdio/ext.c", | ||
| 1737 | "musl/src/stdio/fclose.c", | 1738 | "musl/src/stdio/fclose.c", |
| 1739 | "musl/src/stdio/__fclose_ca.c", | ||
| 1740 | "musl/src/stdio/__fdopen.c", | ||
| 1738 | "musl/src/stdio/feof.c", | 1741 | "musl/src/stdio/feof.c", |
| 1739 | "musl/src/stdio/ferror.c", | 1742 | "musl/src/stdio/ferror.c", |
| 1740 | "musl/src/stdio/fflush.c", | 1743 | "musl/src/stdio/fflush.c", |
| ... | @@ -1747,8 +1750,10 @@ const src_files = [_][]const u8{ | ... | @@ -1747,8 +1750,10 @@ const src_files = [_][]const u8{ |
| 1747 | "musl/src/stdio/fileno.c", | 1750 | "musl/src/stdio/fileno.c", |
| 1748 | "musl/src/stdio/flockfile.c", | 1751 | "musl/src/stdio/flockfile.c", |
| 1749 | "musl/src/stdio/fmemopen.c", | 1752 | "musl/src/stdio/fmemopen.c", |
| 1753 | "musl/src/stdio/__fmodeflags.c", | ||
| 1750 | "musl/src/stdio/fopen.c", | 1754 | "musl/src/stdio/fopen.c", |
| 1751 | "musl/src/stdio/fopencookie.c", | 1755 | "musl/src/stdio/fopencookie.c", |
| 1756 | "musl/src/stdio/__fopen_rb_ca.c", | ||
| 1752 | "musl/src/stdio/fprintf.c", | 1757 | "musl/src/stdio/fprintf.c", |
| 1753 | "musl/src/stdio/fputc.c", | 1758 | "musl/src/stdio/fputc.c", |
| 1754 | "musl/src/stdio/fputs.c", | 1759 | "musl/src/stdio/fputs.c", |
| ... | @@ -1767,27 +1772,29 @@ const src_files = [_][]const u8{ | ... | @@ -1767,27 +1772,29 @@ const src_files = [_][]const u8{ |
| 1767 | "musl/src/stdio/fwrite.c", | 1772 | "musl/src/stdio/fwrite.c", |
| 1768 | "musl/src/stdio/fwscanf.c", | 1773 | "musl/src/stdio/fwscanf.c", |
| 1769 | "musl/src/stdio/getc.c", | 1774 | "musl/src/stdio/getc.c", |
| 1770 | "musl/src/stdio/getc_unlocked.c", | ||
| 1771 | "musl/src/stdio/getchar.c", | 1775 | "musl/src/stdio/getchar.c", |
| 1772 | "musl/src/stdio/getchar_unlocked.c", | 1776 | "musl/src/stdio/getchar_unlocked.c", |
| 1777 | "musl/src/stdio/getc_unlocked.c", | ||
| 1773 | "musl/src/stdio/getdelim.c", | 1778 | "musl/src/stdio/getdelim.c", |
| 1774 | "musl/src/stdio/getline.c", | 1779 | "musl/src/stdio/getline.c", |
| 1775 | "musl/src/stdio/gets.c", | 1780 | "musl/src/stdio/gets.c", |
| 1776 | "musl/src/stdio/getw.c", | 1781 | "musl/src/stdio/getw.c", |
| 1777 | "musl/src/stdio/getwc.c", | 1782 | "musl/src/stdio/getwc.c", |
| 1778 | "musl/src/stdio/getwchar.c", | 1783 | "musl/src/stdio/getwchar.c", |
| 1779 | "musl/src/stdio/ofl.c", | 1784 | "musl/src/stdio/__lockfile.c", |
| 1780 | "musl/src/stdio/ofl_add.c", | 1785 | "musl/src/stdio/ofl_add.c", |
| 1786 | "musl/src/stdio/ofl.c", | ||
| 1781 | "musl/src/stdio/open_memstream.c", | 1787 | "musl/src/stdio/open_memstream.c", |
| 1782 | "musl/src/stdio/open_wmemstream.c", | 1788 | "musl/src/stdio/open_wmemstream.c", |
| 1789 | "musl/src/stdio/__overflow.c", | ||
| 1783 | "musl/src/stdio/pclose.c", | 1790 | "musl/src/stdio/pclose.c", |
| 1784 | "musl/src/stdio/perror.c", | 1791 | "musl/src/stdio/perror.c", |
| 1785 | "musl/src/stdio/popen.c", | 1792 | "musl/src/stdio/popen.c", |
| 1786 | "musl/src/stdio/printf.c", | 1793 | "musl/src/stdio/printf.c", |
| 1787 | "musl/src/stdio/putc.c", | 1794 | "musl/src/stdio/putc.c", |
| 1788 | "musl/src/stdio/putc_unlocked.c", | ||
| 1789 | "musl/src/stdio/putchar.c", | 1795 | "musl/src/stdio/putchar.c", |
| 1790 | "musl/src/stdio/putchar_unlocked.c", | 1796 | "musl/src/stdio/putchar_unlocked.c", |
| 1797 | "musl/src/stdio/putc_unlocked.c", | ||
| 1791 | "musl/src/stdio/puts.c", | 1798 | "musl/src/stdio/puts.c", |
| 1792 | "musl/src/stdio/putw.c", | 1799 | "musl/src/stdio/putw.c", |
| 1793 | "musl/src/stdio/putwc.c", | 1800 | "musl/src/stdio/putwc.c", |
| ... | @@ -1805,12 +1812,21 @@ const src_files = [_][]const u8{ | ... | @@ -1805,12 +1812,21 @@ const src_files = [_][]const u8{ |
| 1805 | "musl/src/stdio/sscanf.c", | 1812 | "musl/src/stdio/sscanf.c", |
| 1806 | "musl/src/stdio/stderr.c", | 1813 | "musl/src/stdio/stderr.c", |
| 1807 | "musl/src/stdio/stdin.c", | 1814 | "musl/src/stdio/stdin.c", |
| 1815 | "musl/src/stdio/__stdio_close.c", | ||
| 1816 | "musl/src/stdio/__stdio_exit.c", | ||
| 1817 | "musl/src/stdio/__stdio_read.c", | ||
| 1818 | "musl/src/stdio/__stdio_seek.c", | ||
| 1819 | "musl/src/stdio/__stdio_write.c", | ||
| 1808 | "musl/src/stdio/stdout.c", | 1820 | "musl/src/stdio/stdout.c", |
| 1821 | "musl/src/stdio/__stdout_write.c", | ||
| 1809 | "musl/src/stdio/swprintf.c", | 1822 | "musl/src/stdio/swprintf.c", |
| 1810 | "musl/src/stdio/swscanf.c", | 1823 | "musl/src/stdio/swscanf.c", |
| 1811 | "musl/src/stdio/tempnam.c", | 1824 | "musl/src/stdio/tempnam.c", |
| 1812 | "musl/src/stdio/tmpfile.c", | 1825 | "musl/src/stdio/tmpfile.c", |
| 1813 | "musl/src/stdio/tmpnam.c", | 1826 | "musl/src/stdio/tmpnam.c", |
| 1827 | "musl/src/stdio/__toread.c", | ||
| 1828 | "musl/src/stdio/__towrite.c", | ||
| 1829 | "musl/src/stdio/__uflow.c", | ||
| 1814 | "musl/src/stdio/ungetc.c", | 1830 | "musl/src/stdio/ungetc.c", |
| 1815 | "musl/src/stdio/ungetwc.c", | 1831 | "musl/src/stdio/ungetwc.c", |
| 1816 | "musl/src/stdio/vasprintf.c", | 1832 | "musl/src/stdio/vasprintf.c", |
| ... | @@ -1937,13 +1953,13 @@ const src_files = [_][]const u8{ | ... | @@ -1937,13 +1953,13 @@ const src_files = [_][]const u8{ |
| 1937 | "musl/src/string/x86_64/memcpy.s", | 1953 | "musl/src/string/x86_64/memcpy.s", |
| 1938 | "musl/src/string/x86_64/memmove.s", | 1954 | "musl/src/string/x86_64/memmove.s", |
| 1939 | "musl/src/string/x86_64/memset.s", | 1955 | "musl/src/string/x86_64/memset.s", |
| 1940 | "musl/src/temp/__randname.c", | ||
| 1941 | "musl/src/temp/mkdtemp.c", | 1956 | "musl/src/temp/mkdtemp.c", |
| 1942 | "musl/src/temp/mkostemp.c", | 1957 | "musl/src/temp/mkostemp.c", |
| 1943 | "musl/src/temp/mkostemps.c", | 1958 | "musl/src/temp/mkostemps.c", |
| 1944 | "musl/src/temp/mkstemp.c", | 1959 | "musl/src/temp/mkstemp.c", |
| 1945 | "musl/src/temp/mkstemps.c", | 1960 | "musl/src/temp/mkstemps.c", |
| 1946 | "musl/src/temp/mktemp.c", | 1961 | "musl/src/temp/mktemp.c", |
| 1962 | "musl/src/temp/__randname.c", | ||
| 1947 | "musl/src/termios/cfgetospeed.c", | 1963 | "musl/src/termios/cfgetospeed.c", |
| 1948 | "musl/src/termios/cfmakeraw.c", | 1964 | "musl/src/termios/cfmakeraw.c", |
| 1949 | "musl/src/termios/cfsetospeed.c", | 1965 | "musl/src/termios/cfsetospeed.c", |
| ... | @@ -1956,23 +1972,16 @@ const src_files = [_][]const u8{ | ... | @@ -1956,23 +1972,16 @@ const src_files = [_][]const u8{ |
| 1956 | "musl/src/termios/tcsendbreak.c", | 1972 | "musl/src/termios/tcsendbreak.c", |
| 1957 | "musl/src/termios/tcsetattr.c", | 1973 | "musl/src/termios/tcsetattr.c", |
| 1958 | "musl/src/termios/tcsetwinsize.c", | 1974 | "musl/src/termios/tcsetwinsize.c", |
| 1959 | "musl/src/thread/__lock.c", | ||
| 1960 | "musl/src/thread/__set_thread_area.c", | ||
| 1961 | "musl/src/thread/__syscall_cp.c", | ||
| 1962 | "musl/src/thread/__timedwait.c", | ||
| 1963 | "musl/src/thread/__tls_get_addr.c", | ||
| 1964 | "musl/src/thread/__unmapself.c", | ||
| 1965 | "musl/src/thread/__wait.c", | ||
| 1966 | "musl/src/thread/aarch64/__set_thread_area.s", | ||
| 1967 | "musl/src/thread/aarch64/__unmapself.s", | ||
| 1968 | "musl/src/thread/aarch64/clone.s", | 1975 | "musl/src/thread/aarch64/clone.s", |
| 1976 | "musl/src/thread/aarch64/__set_thread_area.s", | ||
| 1969 | "musl/src/thread/aarch64/syscall_cp.s", | 1977 | "musl/src/thread/aarch64/syscall_cp.s", |
| 1978 | "musl/src/thread/aarch64/__unmapself.s", | ||
| 1970 | "musl/src/thread/arm/__aeabi_read_tp.s", | 1979 | "musl/src/thread/arm/__aeabi_read_tp.s", |
| 1971 | "musl/src/thread/arm/__set_thread_area.c", | ||
| 1972 | "musl/src/thread/arm/__unmapself.s", | ||
| 1973 | "musl/src/thread/arm/atomics.s", | 1980 | "musl/src/thread/arm/atomics.s", |
| 1974 | "musl/src/thread/arm/clone.s", | 1981 | "musl/src/thread/arm/clone.s", |
| 1982 | "musl/src/thread/arm/__set_thread_area.c", | ||
| 1975 | "musl/src/thread/arm/syscall_cp.s", | 1983 | "musl/src/thread/arm/syscall_cp.s", |
| 1984 | "musl/src/thread/arm/__unmapself.s", | ||
| 1976 | "musl/src/thread/call_once.c", | 1985 | "musl/src/thread/call_once.c", |
| 1977 | "musl/src/thread/clone.c", | 1986 | "musl/src/thread/clone.c", |
| 1978 | "musl/src/thread/cnd_broadcast.c", | 1987 | "musl/src/thread/cnd_broadcast.c", |
| ... | @@ -1982,50 +1991,51 @@ const src_files = [_][]const u8{ | ... | @@ -1982,50 +1991,51 @@ const src_files = [_][]const u8{ |
| 1982 | "musl/src/thread/cnd_timedwait.c", | 1991 | "musl/src/thread/cnd_timedwait.c", |
| 1983 | "musl/src/thread/cnd_wait.c", | 1992 | "musl/src/thread/cnd_wait.c", |
| 1984 | "musl/src/thread/default_attr.c", | 1993 | "musl/src/thread/default_attr.c", |
| 1985 | "musl/src/thread/i386/__set_thread_area.s", | ||
| 1986 | "musl/src/thread/i386/__unmapself.s", | ||
| 1987 | "musl/src/thread/i386/clone.s", | 1994 | "musl/src/thread/i386/clone.s", |
| 1995 | "musl/src/thread/i386/__set_thread_area.s", | ||
| 1988 | "musl/src/thread/i386/syscall_cp.s", | 1996 | "musl/src/thread/i386/syscall_cp.s", |
| 1989 | "musl/src/thread/i386/tls.s", | 1997 | "musl/src/thread/i386/tls.s", |
| 1998 | "musl/src/thread/i386/__unmapself.s", | ||
| 1999 | "musl/src/thread/__lock.c", | ||
| 1990 | "musl/src/thread/lock_ptc.c", | 2000 | "musl/src/thread/lock_ptc.c", |
| 1991 | "musl/src/thread/loongarch64/__set_thread_area.s", | ||
| 1992 | "musl/src/thread/loongarch64/__unmapself.s", | ||
| 1993 | "musl/src/thread/loongarch64/clone.s", | 2001 | "musl/src/thread/loongarch64/clone.s", |
| 2002 | "musl/src/thread/loongarch64/__set_thread_area.s", | ||
| 1994 | "musl/src/thread/loongarch64/syscall_cp.s", | 2003 | "musl/src/thread/loongarch64/syscall_cp.s", |
| 1995 | "musl/src/thread/m68k/__m68k_read_tp.s", | 2004 | "musl/src/thread/loongarch64/__unmapself.s", |
| 1996 | "musl/src/thread/m68k/clone.s", | 2005 | "musl/src/thread/m68k/clone.s", |
| 2006 | "musl/src/thread/m68k/__m68k_read_tp.s", | ||
| 1997 | "musl/src/thread/m68k/syscall_cp.s", | 2007 | "musl/src/thread/m68k/syscall_cp.s", |
| 1998 | "musl/src/thread/microblaze/__set_thread_area.s", | ||
| 1999 | "musl/src/thread/microblaze/__unmapself.s", | ||
| 2000 | "musl/src/thread/microblaze/clone.s", | 2008 | "musl/src/thread/microblaze/clone.s", |
| 2009 | "musl/src/thread/microblaze/__set_thread_area.s", | ||
| 2001 | "musl/src/thread/microblaze/syscall_cp.s", | 2010 | "musl/src/thread/microblaze/syscall_cp.s", |
| 2002 | "musl/src/thread/mips/__unmapself.s", | 2011 | "musl/src/thread/microblaze/__unmapself.s", |
| 2003 | "musl/src/thread/mips/clone.s", | ||
| 2004 | "musl/src/thread/mips/syscall_cp.s", | ||
| 2005 | "musl/src/thread/mips64/__unmapself.s", | ||
| 2006 | "musl/src/thread/mips64/clone.s", | 2012 | "musl/src/thread/mips64/clone.s", |
| 2007 | "musl/src/thread/mips64/syscall_cp.s", | 2013 | "musl/src/thread/mips64/syscall_cp.s", |
| 2008 | "musl/src/thread/mipsn32/__unmapself.s", | 2014 | "musl/src/thread/mips64/__unmapself.s", |
| 2015 | "musl/src/thread/mips/clone.s", | ||
| 2009 | "musl/src/thread/mipsn32/clone.s", | 2016 | "musl/src/thread/mipsn32/clone.s", |
| 2010 | "musl/src/thread/mipsn32/syscall_cp.s", | 2017 | "musl/src/thread/mipsn32/syscall_cp.s", |
| 2018 | "musl/src/thread/mipsn32/__unmapself.s", | ||
| 2019 | "musl/src/thread/mips/syscall_cp.s", | ||
| 2020 | "musl/src/thread/mips/__unmapself.s", | ||
| 2011 | "musl/src/thread/mtx_destroy.c", | 2021 | "musl/src/thread/mtx_destroy.c", |
| 2012 | "musl/src/thread/mtx_init.c", | 2022 | "musl/src/thread/mtx_init.c", |
| 2013 | "musl/src/thread/mtx_lock.c", | 2023 | "musl/src/thread/mtx_lock.c", |
| 2014 | "musl/src/thread/mtx_timedlock.c", | 2024 | "musl/src/thread/mtx_timedlock.c", |
| 2015 | "musl/src/thread/mtx_trylock.c", | 2025 | "musl/src/thread/mtx_trylock.c", |
| 2016 | "musl/src/thread/mtx_unlock.c", | 2026 | "musl/src/thread/mtx_unlock.c", |
| 2017 | "musl/src/thread/or1k/__set_thread_area.s", | ||
| 2018 | "musl/src/thread/or1k/__unmapself.s", | ||
| 2019 | "musl/src/thread/or1k/clone.s", | 2027 | "musl/src/thread/or1k/clone.s", |
| 2028 | "musl/src/thread/or1k/__set_thread_area.s", | ||
| 2020 | "musl/src/thread/or1k/syscall_cp.s", | 2029 | "musl/src/thread/or1k/syscall_cp.s", |
| 2021 | "musl/src/thread/powerpc/__set_thread_area.s", | 2030 | "musl/src/thread/or1k/__unmapself.s", |
| 2022 | "musl/src/thread/powerpc/__unmapself.s", | ||
| 2023 | "musl/src/thread/powerpc/clone.s", | ||
| 2024 | "musl/src/thread/powerpc/syscall_cp.s", | ||
| 2025 | "musl/src/thread/powerpc64/__set_thread_area.s", | ||
| 2026 | "musl/src/thread/powerpc64/__unmapself.s", | ||
| 2027 | "musl/src/thread/powerpc64/clone.s", | 2031 | "musl/src/thread/powerpc64/clone.s", |
| 2032 | "musl/src/thread/powerpc64/__set_thread_area.s", | ||
| 2028 | "musl/src/thread/powerpc64/syscall_cp.s", | 2033 | "musl/src/thread/powerpc64/syscall_cp.s", |
| 2034 | "musl/src/thread/powerpc64/__unmapself.s", | ||
| 2035 | "musl/src/thread/powerpc/clone.s", | ||
| 2036 | "musl/src/thread/powerpc/__set_thread_area.s", | ||
| 2037 | "musl/src/thread/powerpc/syscall_cp.s", | ||
| 2038 | "musl/src/thread/powerpc/__unmapself.s", | ||
| 2029 | "musl/src/thread/pthread_atfork.c", | 2039 | "musl/src/thread/pthread_atfork.c", |
| 2030 | "musl/src/thread/pthread_attr_destroy.c", | 2040 | "musl/src/thread/pthread_attr_destroy.c", |
| 2031 | "musl/src/thread/pthread_attr_get.c", | 2041 | "musl/src/thread/pthread_attr_get.c", |
| ... | @@ -2038,24 +2048,24 @@ const src_files = [_][]const u8{ | ... | @@ -2038,24 +2048,24 @@ const src_files = [_][]const u8{ |
| 2038 | "musl/src/thread/pthread_attr_setscope.c", | 2048 | "musl/src/thread/pthread_attr_setscope.c", |
| 2039 | "musl/src/thread/pthread_attr_setstack.c", | 2049 | "musl/src/thread/pthread_attr_setstack.c", |
| 2040 | "musl/src/thread/pthread_attr_setstacksize.c", | 2050 | "musl/src/thread/pthread_attr_setstacksize.c", |
| 2041 | "musl/src/thread/pthread_barrier_destroy.c", | ||
| 2042 | "musl/src/thread/pthread_barrier_init.c", | ||
| 2043 | "musl/src/thread/pthread_barrier_wait.c", | ||
| 2044 | "musl/src/thread/pthread_barrierattr_destroy.c", | 2051 | "musl/src/thread/pthread_barrierattr_destroy.c", |
| 2045 | "musl/src/thread/pthread_barrierattr_init.c", | 2052 | "musl/src/thread/pthread_barrierattr_init.c", |
| 2046 | "musl/src/thread/pthread_barrierattr_setpshared.c", | 2053 | "musl/src/thread/pthread_barrierattr_setpshared.c", |
| 2054 | "musl/src/thread/pthread_barrier_destroy.c", | ||
| 2055 | "musl/src/thread/pthread_barrier_init.c", | ||
| 2056 | "musl/src/thread/pthread_barrier_wait.c", | ||
| 2047 | "musl/src/thread/pthread_cancel.c", | 2057 | "musl/src/thread/pthread_cancel.c", |
| 2048 | "musl/src/thread/pthread_cleanup_push.c", | 2058 | "musl/src/thread/pthread_cleanup_push.c", |
| 2059 | "musl/src/thread/pthread_condattr_destroy.c", | ||
| 2060 | "musl/src/thread/pthread_condattr_init.c", | ||
| 2061 | "musl/src/thread/pthread_condattr_setclock.c", | ||
| 2062 | "musl/src/thread/pthread_condattr_setpshared.c", | ||
| 2049 | "musl/src/thread/pthread_cond_broadcast.c", | 2063 | "musl/src/thread/pthread_cond_broadcast.c", |
| 2050 | "musl/src/thread/pthread_cond_destroy.c", | 2064 | "musl/src/thread/pthread_cond_destroy.c", |
| 2051 | "musl/src/thread/pthread_cond_init.c", | 2065 | "musl/src/thread/pthread_cond_init.c", |
| 2052 | "musl/src/thread/pthread_cond_signal.c", | 2066 | "musl/src/thread/pthread_cond_signal.c", |
| 2053 | "musl/src/thread/pthread_cond_timedwait.c", | 2067 | "musl/src/thread/pthread_cond_timedwait.c", |
| 2054 | "musl/src/thread/pthread_cond_wait.c", | 2068 | "musl/src/thread/pthread_cond_wait.c", |
| 2055 | "musl/src/thread/pthread_condattr_destroy.c", | ||
| 2056 | "musl/src/thread/pthread_condattr_init.c", | ||
| 2057 | "musl/src/thread/pthread_condattr_setclock.c", | ||
| 2058 | "musl/src/thread/pthread_condattr_setpshared.c", | ||
| 2059 | "musl/src/thread/pthread_create.c", | 2069 | "musl/src/thread/pthread_create.c", |
| 2060 | "musl/src/thread/pthread_detach.c", | 2070 | "musl/src/thread/pthread_detach.c", |
| 2061 | "musl/src/thread/pthread_equal.c", | 2071 | "musl/src/thread/pthread_equal.c", |
| ... | @@ -2068,6 +2078,12 @@ const src_files = [_][]const u8{ | ... | @@ -2068,6 +2078,12 @@ const src_files = [_][]const u8{ |
| 2068 | "musl/src/thread/pthread_join.c", | 2078 | "musl/src/thread/pthread_join.c", |
| 2069 | "musl/src/thread/pthread_key_create.c", | 2079 | "musl/src/thread/pthread_key_create.c", |
| 2070 | "musl/src/thread/pthread_kill.c", | 2080 | "musl/src/thread/pthread_kill.c", |
| 2081 | "musl/src/thread/pthread_mutexattr_destroy.c", | ||
| 2082 | "musl/src/thread/pthread_mutexattr_init.c", | ||
| 2083 | "musl/src/thread/pthread_mutexattr_setprotocol.c", | ||
| 2084 | "musl/src/thread/pthread_mutexattr_setpshared.c", | ||
| 2085 | "musl/src/thread/pthread_mutexattr_setrobust.c", | ||
| 2086 | "musl/src/thread/pthread_mutexattr_settype.c", | ||
| 2071 | "musl/src/thread/pthread_mutex_consistent.c", | 2087 | "musl/src/thread/pthread_mutex_consistent.c", |
| 2072 | "musl/src/thread/pthread_mutex_destroy.c", | 2088 | "musl/src/thread/pthread_mutex_destroy.c", |
| 2073 | "musl/src/thread/pthread_mutex_getprioceiling.c", | 2089 | "musl/src/thread/pthread_mutex_getprioceiling.c", |
| ... | @@ -2077,13 +2093,10 @@ const src_files = [_][]const u8{ | ... | @@ -2077,13 +2093,10 @@ const src_files = [_][]const u8{ |
| 2077 | "musl/src/thread/pthread_mutex_timedlock.c", | 2093 | "musl/src/thread/pthread_mutex_timedlock.c", |
| 2078 | "musl/src/thread/pthread_mutex_trylock.c", | 2094 | "musl/src/thread/pthread_mutex_trylock.c", |
| 2079 | "musl/src/thread/pthread_mutex_unlock.c", | 2095 | "musl/src/thread/pthread_mutex_unlock.c", |
| 2080 | "musl/src/thread/pthread_mutexattr_destroy.c", | ||
| 2081 | "musl/src/thread/pthread_mutexattr_init.c", | ||
| 2082 | "musl/src/thread/pthread_mutexattr_setprotocol.c", | ||
| 2083 | "musl/src/thread/pthread_mutexattr_setpshared.c", | ||
| 2084 | "musl/src/thread/pthread_mutexattr_setrobust.c", | ||
| 2085 | "musl/src/thread/pthread_mutexattr_settype.c", | ||
| 2086 | "musl/src/thread/pthread_once.c", | 2096 | "musl/src/thread/pthread_once.c", |
| 2097 | "musl/src/thread/pthread_rwlockattr_destroy.c", | ||
| 2098 | "musl/src/thread/pthread_rwlockattr_init.c", | ||
| 2099 | "musl/src/thread/pthread_rwlockattr_setpshared.c", | ||
| 2087 | "musl/src/thread/pthread_rwlock_destroy.c", | 2100 | "musl/src/thread/pthread_rwlock_destroy.c", |
| 2088 | "musl/src/thread/pthread_rwlock_init.c", | 2101 | "musl/src/thread/pthread_rwlock_init.c", |
| 2089 | "musl/src/thread/pthread_rwlock_rdlock.c", | 2102 | "musl/src/thread/pthread_rwlock_rdlock.c", |
| ... | @@ -2093,9 +2106,6 @@ const src_files = [_][]const u8{ | ... | @@ -2093,9 +2106,6 @@ const src_files = [_][]const u8{ |
| 2093 | "musl/src/thread/pthread_rwlock_trywrlock.c", | 2106 | "musl/src/thread/pthread_rwlock_trywrlock.c", |
| 2094 | "musl/src/thread/pthread_rwlock_unlock.c", | 2107 | "musl/src/thread/pthread_rwlock_unlock.c", |
| 2095 | "musl/src/thread/pthread_rwlock_wrlock.c", | 2108 | "musl/src/thread/pthread_rwlock_wrlock.c", |
| 2096 | "musl/src/thread/pthread_rwlockattr_destroy.c", | ||
| 2097 | "musl/src/thread/pthread_rwlockattr_init.c", | ||
| 2098 | "musl/src/thread/pthread_rwlockattr_setpshared.c", | ||
| 2099 | "musl/src/thread/pthread_self.c", | 2109 | "musl/src/thread/pthread_self.c", |
| 2100 | "musl/src/thread/pthread_setattr_default_np.c", | 2110 | "musl/src/thread/pthread_setattr_default_np.c", |
| 2101 | "musl/src/thread/pthread_setcancelstate.c", | 2111 | "musl/src/thread/pthread_setcancelstate.c", |
| ... | @@ -2112,19 +2122,19 @@ const src_files = [_][]const u8{ | ... | @@ -2112,19 +2122,19 @@ const src_files = [_][]const u8{ |
| 2112 | "musl/src/thread/pthread_spin_trylock.c", | 2122 | "musl/src/thread/pthread_spin_trylock.c", |
| 2113 | "musl/src/thread/pthread_spin_unlock.c", | 2123 | "musl/src/thread/pthread_spin_unlock.c", |
| 2114 | "musl/src/thread/pthread_testcancel.c", | 2124 | "musl/src/thread/pthread_testcancel.c", |
| 2115 | "musl/src/thread/riscv32/__set_thread_area.s", | ||
| 2116 | "musl/src/thread/riscv32/__unmapself.s", | ||
| 2117 | "musl/src/thread/riscv32/clone.s", | 2125 | "musl/src/thread/riscv32/clone.s", |
| 2126 | "musl/src/thread/riscv32/__set_thread_area.s", | ||
| 2118 | "musl/src/thread/riscv32/syscall_cp.s", | 2127 | "musl/src/thread/riscv32/syscall_cp.s", |
| 2119 | "musl/src/thread/riscv64/__set_thread_area.s", | 2128 | "musl/src/thread/riscv32/__unmapself.s", |
| 2120 | "musl/src/thread/riscv64/__unmapself.s", | ||
| 2121 | "musl/src/thread/riscv64/clone.s", | 2129 | "musl/src/thread/riscv64/clone.s", |
| 2130 | "musl/src/thread/riscv64/__set_thread_area.s", | ||
| 2122 | "musl/src/thread/riscv64/syscall_cp.s", | 2131 | "musl/src/thread/riscv64/syscall_cp.s", |
| 2132 | "musl/src/thread/riscv64/__unmapself.s", | ||
| 2133 | "musl/src/thread/s390x/clone.s", | ||
| 2123 | "musl/src/thread/s390x/__set_thread_area.s", | 2134 | "musl/src/thread/s390x/__set_thread_area.s", |
| 2135 | "musl/src/thread/s390x/syscall_cp.s", | ||
| 2124 | "musl/src/thread/s390x/__tls_get_offset.s", | 2136 | "musl/src/thread/s390x/__tls_get_offset.s", |
| 2125 | "musl/src/thread/s390x/__unmapself.s", | 2137 | "musl/src/thread/s390x/__unmapself.s", |
| 2126 | "musl/src/thread/s390x/clone.s", | ||
| 2127 | "musl/src/thread/s390x/syscall_cp.s", | ||
| 2128 | "musl/src/thread/sem_destroy.c", | 2138 | "musl/src/thread/sem_destroy.c", |
| 2129 | "musl/src/thread/sem_getvalue.c", | 2139 | "musl/src/thread/sem_getvalue.c", |
| 2130 | "musl/src/thread/sem_init.c", | 2140 | "musl/src/thread/sem_init.c", |
| ... | @@ -2134,38 +2144,38 @@ const src_files = [_][]const u8{ | ... | @@ -2134,38 +2144,38 @@ const src_files = [_][]const u8{ |
| 2134 | "musl/src/thread/sem_trywait.c", | 2144 | "musl/src/thread/sem_trywait.c", |
| 2135 | "musl/src/thread/sem_unlink.c", | 2145 | "musl/src/thread/sem_unlink.c", |
| 2136 | "musl/src/thread/sem_wait.c", | 2146 | "musl/src/thread/sem_wait.c", |
| 2137 | "musl/src/thread/sh/__set_thread_area.c", | 2147 | "musl/src/thread/__set_thread_area.c", |
| 2138 | "musl/src/thread/sh/__unmapself.c", | ||
| 2139 | "musl/src/thread/sh/__unmapself_mmu.s", | ||
| 2140 | "musl/src/thread/sh/atomics.s", | 2148 | "musl/src/thread/sh/atomics.s", |
| 2141 | "musl/src/thread/sh/clone.s", | 2149 | "musl/src/thread/sh/clone.s", |
| 2150 | "musl/src/thread/sh/__set_thread_area.c", | ||
| 2142 | "musl/src/thread/sh/syscall_cp.s", | 2151 | "musl/src/thread/sh/syscall_cp.s", |
| 2152 | "musl/src/thread/sh/__unmapself.c", | ||
| 2153 | "musl/src/thread/sh/__unmapself_mmu.s", | ||
| 2143 | "musl/src/thread/synccall.c", | 2154 | "musl/src/thread/synccall.c", |
| 2155 | "musl/src/thread/__syscall_cp.c", | ||
| 2144 | "musl/src/thread/syscall_cp.c", | 2156 | "musl/src/thread/syscall_cp.c", |
| 2145 | "musl/src/thread/thrd_create.c", | 2157 | "musl/src/thread/thrd_create.c", |
| 2146 | "musl/src/thread/thrd_exit.c", | 2158 | "musl/src/thread/thrd_exit.c", |
| 2147 | "musl/src/thread/thrd_join.c", | 2159 | "musl/src/thread/thrd_join.c", |
| 2148 | "musl/src/thread/thrd_sleep.c", | 2160 | "musl/src/thread/thrd_sleep.c", |
| 2149 | "musl/src/thread/thrd_yield.c", | 2161 | "musl/src/thread/thrd_yield.c", |
| 2162 | "musl/src/thread/__timedwait.c", | ||
| 2150 | "musl/src/thread/tls.c", | 2163 | "musl/src/thread/tls.c", |
| 2164 | "musl/src/thread/__tls_get_addr.c", | ||
| 2151 | "musl/src/thread/tss_create.c", | 2165 | "musl/src/thread/tss_create.c", |
| 2152 | "musl/src/thread/tss_delete.c", | 2166 | "musl/src/thread/tss_delete.c", |
| 2153 | "musl/src/thread/tss_set.c", | 2167 | "musl/src/thread/tss_set.c", |
| 2168 | "musl/src/thread/__unmapself.c", | ||
| 2154 | "musl/src/thread/vmlock.c", | 2169 | "musl/src/thread/vmlock.c", |
| 2155 | "musl/src/thread/x32/__set_thread_area.s", | 2170 | "musl/src/thread/__wait.c", |
| 2156 | "musl/src/thread/x32/__unmapself.s", | ||
| 2157 | "musl/src/thread/x32/clone.s", | 2171 | "musl/src/thread/x32/clone.s", |
| 2172 | "musl/src/thread/x32/__set_thread_area.s", | ||
| 2158 | "musl/src/thread/x32/syscall_cp.s", | 2173 | "musl/src/thread/x32/syscall_cp.s", |
| 2159 | "musl/src/thread/x86_64/__set_thread_area.s", | 2174 | "musl/src/thread/x32/__unmapself.s", |
| 2160 | "musl/src/thread/x86_64/__unmapself.s", | ||
| 2161 | "musl/src/thread/x86_64/clone.s", | 2175 | "musl/src/thread/x86_64/clone.s", |
| 2176 | "musl/src/thread/x86_64/__set_thread_area.s", | ||
| 2162 | "musl/src/thread/x86_64/syscall_cp.s", | 2177 | "musl/src/thread/x86_64/syscall_cp.s", |
| 2163 | "musl/src/time/__map_file.c", | 2178 | "musl/src/thread/x86_64/__unmapself.s", |
| 2164 | "musl/src/time/__month_to_secs.c", | ||
| 2165 | "musl/src/time/__secs_to_tm.c", | ||
| 2166 | "musl/src/time/__tm_to_secs.c", | ||
| 2167 | "musl/src/time/__tz.c", | ||
| 2168 | "musl/src/time/__year_to_secs.c", | ||
| 2169 | "musl/src/time/asctime.c", | 2179 | "musl/src/time/asctime.c", |
| 2170 | "musl/src/time/asctime_r.c", | 2180 | "musl/src/time/asctime_r.c", |
| 2171 | "musl/src/time/clock.c", | 2181 | "musl/src/time/clock.c", |
| ... | @@ -2184,8 +2194,11 @@ const src_files = [_][]const u8{ | ... | @@ -2184,8 +2194,11 @@ const src_files = [_][]const u8{ |
| 2184 | "musl/src/time/gmtime_r.c", | 2194 | "musl/src/time/gmtime_r.c", |
| 2185 | "musl/src/time/localtime.c", | 2195 | "musl/src/time/localtime.c", |
| 2186 | "musl/src/time/localtime_r.c", | 2196 | "musl/src/time/localtime_r.c", |
| 2197 | "musl/src/time/__map_file.c", | ||
| 2187 | "musl/src/time/mktime.c", | 2198 | "musl/src/time/mktime.c", |
| 2199 | "musl/src/time/__month_to_secs.c", | ||
| 2188 | "musl/src/time/nanosleep.c", | 2200 | "musl/src/time/nanosleep.c", |
| 2201 | "musl/src/time/__secs_to_tm.c", | ||
| 2189 | "musl/src/time/strftime.c", | 2202 | "musl/src/time/strftime.c", |
| 2190 | "musl/src/time/strptime.c", | 2203 | "musl/src/time/strptime.c", |
| 2191 | "musl/src/time/time.c", | 2204 | "musl/src/time/time.c", |
| ... | @@ -2197,9 +2210,11 @@ const src_files = [_][]const u8{ | ... | @@ -2197,9 +2210,11 @@ const src_files = [_][]const u8{ |
| 2197 | "musl/src/time/timer_settime.c", | 2210 | "musl/src/time/timer_settime.c", |
| 2198 | "musl/src/time/times.c", | 2211 | "musl/src/time/times.c", |
| 2199 | "musl/src/time/timespec_get.c", | 2212 | "musl/src/time/timespec_get.c", |
| 2213 | "musl/src/time/__tm_to_secs.c", | ||
| 2214 | "musl/src/time/__tz.c", | ||
| 2200 | "musl/src/time/utime.c", | 2215 | "musl/src/time/utime.c", |
| 2201 | "musl/src/time/wcsftime.c", | 2216 | "musl/src/time/wcsftime.c", |
| 2202 | "musl/src/unistd/_exit.c", | 2217 | "musl/src/time/__year_to_secs.c", |
| 2203 | "musl/src/unistd/access.c", | 2218 | "musl/src/unistd/access.c", |
| 2204 | "musl/src/unistd/acct.c", | 2219 | "musl/src/unistd/acct.c", |
| 2205 | "musl/src/unistd/alarm.c", | 2220 | "musl/src/unistd/alarm.c", |
| ... | @@ -2207,13 +2222,14 @@ const src_files = [_][]const u8{ | ... | @@ -2207,13 +2222,14 @@ const src_files = [_][]const u8{ |
| 2207 | "musl/src/unistd/chown.c", | 2222 | "musl/src/unistd/chown.c", |
| 2208 | "musl/src/unistd/close.c", | 2223 | "musl/src/unistd/close.c", |
| 2209 | "musl/src/unistd/ctermid.c", | 2224 | "musl/src/unistd/ctermid.c", |
| 2210 | "musl/src/unistd/dup.c", | ||
| 2211 | "musl/src/unistd/dup2.c", | 2225 | "musl/src/unistd/dup2.c", |
| 2212 | "musl/src/unistd/dup3.c", | 2226 | "musl/src/unistd/dup3.c", |
| 2227 | "musl/src/unistd/dup.c", | ||
| 2228 | "musl/src/unistd/_exit.c", | ||
| 2213 | "musl/src/unistd/faccessat.c", | 2229 | "musl/src/unistd/faccessat.c", |
| 2214 | "musl/src/unistd/fchdir.c", | 2230 | "musl/src/unistd/fchdir.c", |
| 2215 | "musl/src/unistd/fchown.c", | ||
| 2216 | "musl/src/unistd/fchownat.c", | 2231 | "musl/src/unistd/fchownat.c", |
| 2232 | "musl/src/unistd/fchown.c", | ||
| 2217 | "musl/src/unistd/fdatasync.c", | 2233 | "musl/src/unistd/fdatasync.c", |
| 2218 | "musl/src/unistd/fsync.c", | 2234 | "musl/src/unistd/fsync.c", |
| 2219 | "musl/src/unistd/ftruncate.c", | 2235 | "musl/src/unistd/ftruncate.c", |
| ... | @@ -2233,25 +2249,25 @@ const src_files = [_][]const u8{ | ... | @@ -2233,25 +2249,25 @@ const src_files = [_][]const u8{ |
| 2233 | "musl/src/unistd/getuid.c", | 2249 | "musl/src/unistd/getuid.c", |
| 2234 | "musl/src/unistd/isatty.c", | 2250 | "musl/src/unistd/isatty.c", |
| 2235 | "musl/src/unistd/lchown.c", | 2251 | "musl/src/unistd/lchown.c", |
| 2236 | "musl/src/unistd/link.c", | ||
| 2237 | "musl/src/unistd/linkat.c", | 2252 | "musl/src/unistd/linkat.c", |
| 2253 | "musl/src/unistd/link.c", | ||
| 2238 | "musl/src/unistd/lseek.c", | 2254 | "musl/src/unistd/lseek.c", |
| 2239 | "musl/src/unistd/mips/pipe.s", | ||
| 2240 | "musl/src/unistd/mips64/pipe.s", | 2255 | "musl/src/unistd/mips64/pipe.s", |
| 2241 | "musl/src/unistd/mipsn32/lseek.c", | 2256 | "musl/src/unistd/mipsn32/lseek.c", |
| 2242 | "musl/src/unistd/mipsn32/pipe.s", | 2257 | "musl/src/unistd/mipsn32/pipe.s", |
| 2258 | "musl/src/unistd/mips/pipe.s", | ||
| 2243 | "musl/src/unistd/nice.c", | 2259 | "musl/src/unistd/nice.c", |
| 2244 | "musl/src/unistd/pause.c", | 2260 | "musl/src/unistd/pause.c", |
| 2245 | "musl/src/unistd/pipe.c", | ||
| 2246 | "musl/src/unistd/pipe2.c", | 2261 | "musl/src/unistd/pipe2.c", |
| 2262 | "musl/src/unistd/pipe.c", | ||
| 2247 | "musl/src/unistd/posix_close.c", | 2263 | "musl/src/unistd/posix_close.c", |
| 2248 | "musl/src/unistd/pread.c", | 2264 | "musl/src/unistd/pread.c", |
| 2249 | "musl/src/unistd/preadv.c", | 2265 | "musl/src/unistd/preadv.c", |
| 2250 | "musl/src/unistd/pwrite.c", | 2266 | "musl/src/unistd/pwrite.c", |
| 2251 | "musl/src/unistd/pwritev.c", | 2267 | "musl/src/unistd/pwritev.c", |
| 2252 | "musl/src/unistd/read.c", | 2268 | "musl/src/unistd/read.c", |
| 2253 | "musl/src/unistd/readlink.c", | ||
| 2254 | "musl/src/unistd/readlinkat.c", | 2269 | "musl/src/unistd/readlinkat.c", |
| 2270 | "musl/src/unistd/readlink.c", | ||
| 2255 | "musl/src/unistd/readv.c", | 2271 | "musl/src/unistd/readv.c", |
| 2256 | "musl/src/unistd/renameat.c", | 2272 | "musl/src/unistd/renameat.c", |
| 2257 | "musl/src/unistd/rmdir.c", | 2273 | "musl/src/unistd/rmdir.c", |
| ... | @@ -2269,8 +2285,8 @@ const src_files = [_][]const u8{ | ... | @@ -2269,8 +2285,8 @@ const src_files = [_][]const u8{ |
| 2269 | "musl/src/unistd/setxid.c", | 2285 | "musl/src/unistd/setxid.c", |
| 2270 | "musl/src/unistd/sh/pipe.s", | 2286 | "musl/src/unistd/sh/pipe.s", |
| 2271 | "musl/src/unistd/sleep.c", | 2287 | "musl/src/unistd/sleep.c", |
| 2272 | "musl/src/unistd/symlink.c", | ||
| 2273 | "musl/src/unistd/symlinkat.c", | 2288 | "musl/src/unistd/symlinkat.c", |
| 2289 | "musl/src/unistd/symlink.c", | ||
| 2274 | "musl/src/unistd/sync.c", | 2290 | "musl/src/unistd/sync.c", |
| 2275 | "musl/src/unistd/tcgetpgrp.c", | 2291 | "musl/src/unistd/tcgetpgrp.c", |
| 2276 | "musl/src/unistd/tcsetpgrp.c", | 2292 | "musl/src/unistd/tcsetpgrp.c", |
| ... | @@ -2278,8 +2294,8 @@ const src_files = [_][]const u8{ | ... | @@ -2278,8 +2294,8 @@ const src_files = [_][]const u8{ |
| 2278 | "musl/src/unistd/ttyname.c", | 2294 | "musl/src/unistd/ttyname.c", |
| 2279 | "musl/src/unistd/ttyname_r.c", | 2295 | "musl/src/unistd/ttyname_r.c", |
| 2280 | "musl/src/unistd/ualarm.c", | 2296 | "musl/src/unistd/ualarm.c", |
| 2281 | "musl/src/unistd/unlink.c", | ||
| 2282 | "musl/src/unistd/unlinkat.c", | 2297 | "musl/src/unistd/unlinkat.c", |
| 2298 | "musl/src/unistd/unlink.c", | ||
| 2283 | "musl/src/unistd/usleep.c", | 2299 | "musl/src/unistd/usleep.c", |
| 2284 | "musl/src/unistd/write.c", | 2300 | "musl/src/unistd/write.c", |
| 2285 | "musl/src/unistd/writev.c", | 2301 | "musl/src/unistd/writev.c", |
| ... | @@ -2287,7 +2303,6 @@ const src_files = [_][]const u8{ | ... | @@ -2287,7 +2303,6 @@ const src_files = [_][]const u8{ |
| 2287 | }; | 2303 | }; |
| 2288 | 2304 | ||
| 2289 | const compat_time32_files = [_][]const u8{ | 2305 | const compat_time32_files = [_][]const u8{ |
| 2290 | "musl/compat/time32/__xstat.c", | ||
| 2291 | "musl/compat/time32/adjtime32.c", | 2306 | "musl/compat/time32/adjtime32.c", |
| 2292 | "musl/compat/time32/adjtimex_time32.c", | 2307 | "musl/compat/time32/adjtimex_time32.c", |
| 2293 | "musl/compat/time32/aio_suspend_time32.c", | 2308 | "musl/compat/time32/aio_suspend_time32.c", |
| ... | @@ -2300,12 +2315,12 @@ const compat_time32_files = [_][]const u8{ | ... | @@ -2300,12 +2315,12 @@ const compat_time32_files = [_][]const u8{ |
| 2300 | "musl/compat/time32/ctime32.c", | 2315 | "musl/compat/time32/ctime32.c", |
| 2301 | "musl/compat/time32/ctime32_r.c", | 2316 | "musl/compat/time32/ctime32_r.c", |
| 2302 | "musl/compat/time32/difftime32.c", | 2317 | "musl/compat/time32/difftime32.c", |
| 2303 | "musl/compat/time32/fstat_time32.c", | ||
| 2304 | "musl/compat/time32/fstatat_time32.c", | 2318 | "musl/compat/time32/fstatat_time32.c", |
| 2319 | "musl/compat/time32/fstat_time32.c", | ||
| 2305 | "musl/compat/time32/ftime32.c", | 2320 | "musl/compat/time32/ftime32.c", |
| 2306 | "musl/compat/time32/futimens_time32.c", | 2321 | "musl/compat/time32/futimens_time32.c", |
| 2307 | "musl/compat/time32/futimes_time32.c", | ||
| 2308 | "musl/compat/time32/futimesat_time32.c", | 2322 | "musl/compat/time32/futimesat_time32.c", |
| 2323 | "musl/compat/time32/futimes_time32.c", | ||
| 2309 | "musl/compat/time32/getitimer_time32.c", | 2324 | "musl/compat/time32/getitimer_time32.c", |
| 2310 | "musl/compat/time32/getrusage_time32.c", | 2325 | "musl/compat/time32/getrusage_time32.c", |
| 2311 | "musl/compat/time32/gettimeofday_time32.c", | 2326 | "musl/compat/time32/gettimeofday_time32.c", |
| ... | @@ -2330,8 +2345,8 @@ const compat_time32_files = [_][]const u8{ | ... | @@ -2330,8 +2345,8 @@ const compat_time32_files = [_][]const u8{ |
| 2330 | "musl/compat/time32/recvmmsg_time32.c", | 2345 | "musl/compat/time32/recvmmsg_time32.c", |
| 2331 | "musl/compat/time32/sched_rr_get_interval_time32.c", | 2346 | "musl/compat/time32/sched_rr_get_interval_time32.c", |
| 2332 | "musl/compat/time32/select_time32.c", | 2347 | "musl/compat/time32/select_time32.c", |
| 2333 | "musl/compat/time32/sem_timedwait_time32.c", | ||
| 2334 | "musl/compat/time32/semtimedop_time32.c", | 2348 | "musl/compat/time32/semtimedop_time32.c", |
| 2349 | "musl/compat/time32/sem_timedwait_time32.c", | ||
| 2335 | "musl/compat/time32/setitimer_time32.c", | 2350 | "musl/compat/time32/setitimer_time32.c", |
| 2336 | "musl/compat/time32/settimeofday_time32.c", | 2351 | "musl/compat/time32/settimeofday_time32.c", |
| 2337 | "musl/compat/time32/sigtimedwait_time32.c", | 2352 | "musl/compat/time32/sigtimedwait_time32.c", |
| ... | @@ -2340,14 +2355,15 @@ const compat_time32_files = [_][]const u8{ | ... | @@ -2340,14 +2355,15 @@ const compat_time32_files = [_][]const u8{ |
| 2340 | "musl/compat/time32/thrd_sleep_time32.c", | 2355 | "musl/compat/time32/thrd_sleep_time32.c", |
| 2341 | "musl/compat/time32/time32.c", | 2356 | "musl/compat/time32/time32.c", |
| 2342 | "musl/compat/time32/time32gm.c", | 2357 | "musl/compat/time32/time32gm.c", |
| 2343 | "musl/compat/time32/timer_gettime32.c", | ||
| 2344 | "musl/compat/time32/timer_settime32.c", | ||
| 2345 | "musl/compat/time32/timerfd_gettime32.c", | 2358 | "musl/compat/time32/timerfd_gettime32.c", |
| 2346 | "musl/compat/time32/timerfd_settime32.c", | 2359 | "musl/compat/time32/timerfd_settime32.c", |
| 2360 | "musl/compat/time32/timer_gettime32.c", | ||
| 2361 | "musl/compat/time32/timer_settime32.c", | ||
| 2347 | "musl/compat/time32/timespec_get_time32.c", | 2362 | "musl/compat/time32/timespec_get_time32.c", |
| 2348 | "musl/compat/time32/utime_time32.c", | ||
| 2349 | "musl/compat/time32/utimensat_time32.c", | 2363 | "musl/compat/time32/utimensat_time32.c", |
| 2350 | "musl/compat/time32/utimes_time32.c", | 2364 | "musl/compat/time32/utimes_time32.c", |
| 2365 | "musl/compat/time32/utime_time32.c", | ||
| 2351 | "musl/compat/time32/wait3_time32.c", | 2366 | "musl/compat/time32/wait3_time32.c", |
| 2352 | "musl/compat/time32/wait4_time32.c", | 2367 | "musl/compat/time32/wait4_time32.c", |
| 2368 | "musl/compat/time32/__xstat.c", | ||
| 2353 | }; | 2369 | }; |
src/target.zig+10| ... | @@ -438,6 +438,16 @@ pub fn arePointersLogical(target: std.Target, as: AddressSpace) bool { | ... | @@ -438,6 +438,16 @@ pub fn arePointersLogical(target: std.Target, as: AddressSpace) bool { |
| 438 | } | 438 | } |
| 439 | 439 | ||
| 440 | pub fn llvmMachineAbi(target: std.Target) ?[:0]const u8 { | 440 | pub fn llvmMachineAbi(target: std.Target) ?[:0]const u8 { |
| 441 | // This special-casing should be removed with LLVM 20. | ||
| 442 | switch (target.cpu.arch) { | ||
| 443 | .mips, .mipsel => return "o32", | ||
| 444 | .mips64, .mips64el => return switch (target.abi) { | ||
| 445 | .gnuabin32, .muslabin32 => "n32", | ||
| 446 | else => "n64", | ||
| 447 | }, | ||
| 448 | else => {}, | ||
| 449 | } | ||
| 450 | |||
| 441 | // LLD does not support ELFv1. Rather than having LLVM produce ELFv1 code and then linking it | 451 | // LLD does not support ELFv1. Rather than having LLVM produce ELFv1 code and then linking it |
| 442 | // into a broken ELFv2 binary, just force LLVM to use ELFv2 as well. This will break when glibc | 452 | // into a broken ELFv2 binary, just force LLVM to use ELFv2 as well. This will break when glibc |
| 443 | // is linked as glibc only supports ELFv2 for little endian, but there's nothing we can do about | 453 | // is linked as glibc only supports ELFv2 for little endian, but there's nothing we can do about |
test/llvm_targets.zig+4-2| ... | @@ -160,7 +160,8 @@ const targets = [_]std.Target.Query{ | ... | @@ -160,7 +160,8 @@ const targets = [_]std.Target.Query{ |
| 160 | .{ .cpu_arch = .mips64, .os_tag = .freestanding, .abi = .none }, | 160 | .{ .cpu_arch = .mips64, .os_tag = .freestanding, .abi = .none }, |
| 161 | .{ .cpu_arch = .mips64, .os_tag = .linux, .abi = .gnuabi64 }, | 161 | .{ .cpu_arch = .mips64, .os_tag = .linux, .abi = .gnuabi64 }, |
| 162 | .{ .cpu_arch = .mips64, .os_tag = .linux, .abi = .gnuabin32 }, | 162 | .{ .cpu_arch = .mips64, .os_tag = .linux, .abi = .gnuabin32 }, |
| 163 | .{ .cpu_arch = .mips64, .os_tag = .linux, .abi = .musl }, | 163 | .{ .cpu_arch = .mips64, .os_tag = .linux, .abi = .muslabi64 }, |
| 164 | .{ .cpu_arch = .mips64, .os_tag = .linux, .abi = .muslabin32 }, | ||
| 164 | .{ .cpu_arch = .mips64, .os_tag = .linux, .abi = .none }, | 165 | .{ .cpu_arch = .mips64, .os_tag = .linux, .abi = .none }, |
| 165 | .{ .cpu_arch = .mips64, .os_tag = .netbsd, .abi = .none }, | 166 | .{ .cpu_arch = .mips64, .os_tag = .netbsd, .abi = .none }, |
| 166 | .{ .cpu_arch = .mips64, .os_tag = .openbsd, .abi = .none }, | 167 | .{ .cpu_arch = .mips64, .os_tag = .openbsd, .abi = .none }, |
| ... | @@ -169,7 +170,8 @@ const targets = [_]std.Target.Query{ | ... | @@ -169,7 +170,8 @@ const targets = [_]std.Target.Query{ |
| 169 | .{ .cpu_arch = .mips64el, .os_tag = .freestanding, .abi = .none }, | 170 | .{ .cpu_arch = .mips64el, .os_tag = .freestanding, .abi = .none }, |
| 170 | .{ .cpu_arch = .mips64el, .os_tag = .linux, .abi = .gnuabi64 }, | 171 | .{ .cpu_arch = .mips64el, .os_tag = .linux, .abi = .gnuabi64 }, |
| 171 | .{ .cpu_arch = .mips64el, .os_tag = .linux, .abi = .gnuabin32 }, | 172 | .{ .cpu_arch = .mips64el, .os_tag = .linux, .abi = .gnuabin32 }, |
| 172 | .{ .cpu_arch = .mips64el, .os_tag = .linux, .abi = .musl }, | 173 | .{ .cpu_arch = .mips64el, .os_tag = .linux, .abi = .muslabi64 }, |
| 174 | .{ .cpu_arch = .mips64el, .os_tag = .linux, .abi = .muslabin32 }, | ||
| 173 | .{ .cpu_arch = .mips64el, .os_tag = .linux, .abi = .none }, | 175 | .{ .cpu_arch = .mips64el, .os_tag = .linux, .abi = .none }, |
| 174 | .{ .cpu_arch = .mips64el, .os_tag = .netbsd, .abi = .none }, | 176 | .{ .cpu_arch = .mips64el, .os_tag = .netbsd, .abi = .none }, |
| 175 | .{ .cpu_arch = .mips64el, .os_tag = .openbsd, .abi = .none }, | 177 | .{ .cpu_arch = .mips64el, .os_tag = .openbsd, .abi = .none }, |
test/tests.zig+2-2| ... | @@ -454,7 +454,7 @@ const test_targets = blk: { | ... | @@ -454,7 +454,7 @@ const test_targets = blk: { |
| 454 | .target = .{ | 454 | .target = .{ |
| 455 | .cpu_arch = .mips64, | 455 | .cpu_arch = .mips64, |
| 456 | .os_tag = .linux, | 456 | .os_tag = .linux, |
| 457 | .abi = .musl, | 457 | .abi = .muslabi64, |
| 458 | }, | 458 | }, |
| 459 | .link_libc = true, | 459 | .link_libc = true, |
| 460 | }, | 460 | }, |
| ... | @@ -478,7 +478,7 @@ const test_targets = blk: { | ... | @@ -478,7 +478,7 @@ const test_targets = blk: { |
| 478 | .target = .{ | 478 | .target = .{ |
| 479 | .cpu_arch = .mips64el, | 479 | .cpu_arch = .mips64el, |
| 480 | .os_tag = .linux, | 480 | .os_tag = .linux, |
| 481 | .abi = .musl, | 481 | .abi = .muslabi64, |
| 482 | }, | 482 | }, |
| 483 | .link_libc = true, | 483 | .link_libc = true, |
| 484 | }, | 484 | }, |
tools/generate_linux_syscalls.zig+16| ... | @@ -162,6 +162,22 @@ const arch_infos = [_]ArchInfo{ | ... | @@ -162,6 +162,22 @@ const arch_infos = [_]ArchInfo{ |
| 162 | .additional_enum = null, | 162 | .additional_enum = null, |
| 163 | }, | 163 | }, |
| 164 | }, | 164 | }, |
| 165 | .{ | ||
| 166 | .table = .{ | ||
| 167 | .name = "x32", | ||
| 168 | .enum_name = "X32", | ||
| 169 | .file_path = "arch/x86/entry/syscalls/syscall_64.tbl", | ||
| 170 | .process_file = &processTableBasedArch, | ||
| 171 | .filters = .{ | ||
| 172 | .abiCheckParams = .{ .abi = "64", .flow = .@"continue" }, | ||
| 173 | .fixedName = &fixedName, | ||
| 174 | .isReservedNameOld = null, | ||
| 175 | }, | ||
| 176 | .header = null, | ||
| 177 | .extra_values = null, | ||
| 178 | .additional_enum = null, | ||
| 179 | }, | ||
| 180 | }, | ||
| 165 | .{ | 181 | .{ |
| 166 | .table = .{ | 182 | .table = .{ |
| 167 | .name = "arm", | 183 | .name = "arm", |
tools/process_headers.zig+64-289| ... | @@ -19,273 +19,65 @@ const Blake3 = std.crypto.hash.Blake3; | ... | @@ -19,273 +19,65 @@ const Blake3 = std.crypto.hash.Blake3; |
| 19 | 19 | ||
| 20 | const LibCTarget = struct { | 20 | const LibCTarget = struct { |
| 21 | name: []const u8, | 21 | name: []const u8, |
| 22 | arch: MultiArch, | 22 | arch: Arch, |
| 23 | abi: MultiAbi, | 23 | abi: Abi, |
| 24 | }; | ||
| 25 | |||
| 26 | const MultiArch = union(enum) { | ||
| 27 | aarch64, | ||
| 28 | arm, | ||
| 29 | mips, | ||
| 30 | mips64, | ||
| 31 | powerpc64, | ||
| 32 | specific: Arch, | ||
| 33 | |||
| 34 | fn eql(a: MultiArch, b: MultiArch) bool { | ||
| 35 | if (@intFromEnum(a) != @intFromEnum(b)) | ||
| 36 | return false; | ||
| 37 | if (a != .specific) | ||
| 38 | return true; | ||
| 39 | return a.specific == b.specific; | ||
| 40 | } | ||
| 41 | }; | ||
| 42 | |||
| 43 | const MultiAbi = union(enum) { | ||
| 44 | musl, | ||
| 45 | specific: Abi, | ||
| 46 | |||
| 47 | fn eql(a: MultiAbi, b: MultiAbi) bool { | ||
| 48 | if (@intFromEnum(a) != @intFromEnum(b)) | ||
| 49 | return false; | ||
| 50 | if (std.meta.Tag(MultiAbi)(a) != .specific) | ||
| 51 | return true; | ||
| 52 | return a.specific == b.specific; | ||
| 53 | } | ||
| 54 | }; | 24 | }; |
| 55 | 25 | ||
| 56 | const glibc_targets = [_]LibCTarget{ | 26 | const glibc_targets = [_]LibCTarget{ |
| 57 | LibCTarget{ | 27 | .{ .name = "arc-linux-gnu", .arch = .arc, .abi = .gnu }, |
| 58 | .name = "aarch64_be-linux-gnu", | 28 | .{ .name = "arm-linux-gnueabi", .arch = .arm, .abi = .gnueabi }, |
| 59 | .arch = MultiArch{ .specific = Arch.aarch64_be }, | 29 | .{ .name = "arm-linux-gnueabihf", .arch = .arm, .abi = .gnueabihf }, |
| 60 | .abi = MultiAbi{ .specific = Abi.gnu }, | 30 | .{ .name = "armeb-linux-gnueabi", .arch = .armeb, .abi = .gnueabi }, |
| 61 | }, | 31 | .{ .name = "armeb-linux-gnueabihf", .arch = .armeb, .abi = .gnueabihf }, |
| 62 | LibCTarget{ | 32 | .{ .name = "aarch64-linux-gnu", .arch = .aarch64, .abi = .gnu }, |
| 63 | .name = "aarch64-linux-gnu", | 33 | .{ .name = "aarch64_be-linux-gnu", .arch = .aarch64_be, .abi = .gnu }, |
| 64 | .arch = MultiArch{ .specific = Arch.aarch64 }, | 34 | .{ .name = "csky-linux-gnuabiv2-soft", .arch = .csky, .abi = .gnueabi }, |
| 65 | .abi = MultiAbi{ .specific = Abi.gnu }, | 35 | .{ .name = "csky-linux-gnuabiv2", .arch = .csky, .abi = .gnueabihf }, |
| 66 | }, | 36 | .{ .name = "loongarch64-linux-gnu-lp64d", .arch = .loongarch64, .abi = .gnu }, |
| 67 | LibCTarget{ | 37 | .{ .name = "loongarch64-linux-gnu-lp64s", .arch = .loongarch64, .abi = .gnusf }, |
| 68 | .name = "armeb-linux-gnueabi", | 38 | .{ .name = "m68k-linux-gnu", .arch = .m68k, .abi = .gnu }, |
| 69 | .arch = MultiArch{ .specific = Arch.armeb }, | 39 | .{ .name = "mips-linux-gnu", .arch = .mips, .abi = .gnueabihf }, |
| 70 | .abi = MultiAbi{ .specific = Abi.gnueabi }, | 40 | .{ .name = "mips-linux-gnu-soft", .arch = .mips, .abi = .gnueabi }, |
| 71 | }, | 41 | .{ .name = "mipsel-linux-gnu-soft", .arch = .mipsel, .abi = .gnueabi }, |
| 72 | LibCTarget{ | 42 | .{ .name = "mipsel-linux-gnu", .arch = .mipsel, .abi = .gnueabihf }, |
| 73 | .name = "armeb-linux-gnueabihf", | 43 | .{ .name = "mips64-linux-gnu-n64", .arch = .mips64, .abi = .gnuabi64 }, |
| 74 | .arch = MultiArch{ .specific = Arch.armeb }, | 44 | .{ .name = "mips64-linux-gnu-n32", .arch = .mips64, .abi = .gnuabin32 }, |
| 75 | .abi = MultiAbi{ .specific = Abi.gnueabihf }, | 45 | .{ .name = "mips64el-linux-gnu-n64", .arch = .mips64el, .abi = .gnuabi64 }, |
| 76 | }, | 46 | .{ .name = "mips64el-linux-gnu-n32", .arch = .mips64el, .abi = .gnuabin32 }, |
| 77 | LibCTarget{ | 47 | .{ .name = "powerpc-linux-gnu-soft", .arch = .powerpc, .abi = .gnueabi }, |
| 78 | .name = "arm-linux-gnueabi", | 48 | .{ .name = "powerpc-linux-gnu", .arch = .powerpc, .abi = .gnueabihf }, |
| 79 | .arch = MultiArch{ .specific = Arch.arm }, | 49 | .{ .name = "powerpc64-linux-gnu", .arch = .powerpc64, .abi = .gnu }, |
| 80 | .abi = MultiAbi{ .specific = Abi.gnueabi }, | 50 | .{ .name = "powerpc64le-linux-gnu", .arch = .powerpc64le, .abi = .gnu }, |
| 81 | }, | 51 | .{ .name = "riscv32-linux-gnu-rv32imafdc-ilp32d", .arch = .riscv32, .abi = .gnu }, |
| 82 | LibCTarget{ | 52 | .{ .name = "riscv64-linux-gnu-rv64imafdc-lp64d", .arch = .riscv64, .abi = .gnu }, |
| 83 | .name = "arm-linux-gnueabihf", | 53 | .{ .name = "s390x-linux-gnu", .arch = .s390x, .abi = .gnu }, |
| 84 | .arch = MultiArch{ .specific = Arch.arm }, | 54 | .{ .name = "sparcv9-linux-gnu", .arch = .sparc, .abi = .gnu }, |
| 85 | .abi = MultiAbi{ .specific = Abi.gnueabihf }, | 55 | .{ .name = "sparc64-linux-gnu", .arch = .sparc64, .abi = .gnu }, |
| 86 | }, | 56 | .{ .name = "i686-linux-gnu", .arch = .x86, .abi = .gnu }, |
| 87 | LibCTarget{ | 57 | .{ .name = "x86_64-linux-gnu", .arch = .x86_64, .abi = .gnu }, |
| 88 | .name = "arc-linux-gnu", | 58 | .{ .name = "x86_64-linux-gnu-x32", .arch = .x86_64, .abi = .gnux32 }, |
| 89 | .arch = MultiArch{ .specific = Arch.arc }, | ||
| 90 | .abi = MultiAbi{ .specific = Abi.gnu }, | ||
| 91 | }, | ||
| 92 | LibCTarget{ | ||
| 93 | .name = "csky-linux-gnuabiv2", | ||
| 94 | .arch = MultiArch{ .specific = Arch.csky }, | ||
| 95 | .abi = MultiAbi{ .specific = Abi.gnueabihf }, | ||
| 96 | }, | ||
| 97 | LibCTarget{ | ||
| 98 | .name = "csky-linux-gnuabiv2-soft", | ||
| 99 | .arch = MultiArch{ .specific = Arch.csky }, | ||
| 100 | .abi = MultiAbi{ .specific = Abi.gnueabi }, | ||
| 101 | }, | ||
| 102 | LibCTarget{ | ||
| 103 | .name = "i686-linux-gnu", | ||
| 104 | .arch = MultiArch{ .specific = Arch.x86 }, | ||
| 105 | .abi = MultiAbi{ .specific = Abi.gnu }, | ||
| 106 | }, | ||
| 107 | LibCTarget{ | ||
| 108 | .name = "mips64el-linux-gnu-n32", | ||
| 109 | .arch = MultiArch{ .specific = Arch.mips64el }, | ||
| 110 | .abi = MultiAbi{ .specific = Abi.gnuabin32 }, | ||
| 111 | }, | ||
| 112 | LibCTarget{ | ||
| 113 | .name = "mips64el-linux-gnu-n64", | ||
| 114 | .arch = MultiArch{ .specific = Arch.mips64el }, | ||
| 115 | .abi = MultiAbi{ .specific = Abi.gnuabi64 }, | ||
| 116 | }, | ||
| 117 | LibCTarget{ | ||
| 118 | .name = "mips64-linux-gnu-n32", | ||
| 119 | .arch = MultiArch{ .specific = Arch.mips64 }, | ||
| 120 | .abi = MultiAbi{ .specific = Abi.gnuabin32 }, | ||
| 121 | }, | ||
| 122 | LibCTarget{ | ||
| 123 | .name = "mips64-linux-gnu-n64", | ||
| 124 | .arch = MultiArch{ .specific = Arch.mips64 }, | ||
| 125 | .abi = MultiAbi{ .specific = Abi.gnuabi64 }, | ||
| 126 | }, | ||
| 127 | LibCTarget{ | ||
| 128 | .name = "mipsel-linux-gnu", | ||
| 129 | .arch = MultiArch{ .specific = Arch.mipsel }, | ||
| 130 | .abi = MultiAbi{ .specific = Abi.gnueabihf }, | ||
| 131 | }, | ||
| 132 | LibCTarget{ | ||
| 133 | .name = "mipsel-linux-gnu-soft", | ||
| 134 | .arch = MultiArch{ .specific = Arch.mipsel }, | ||
| 135 | .abi = MultiAbi{ .specific = Abi.gnueabi }, | ||
| 136 | }, | ||
| 137 | LibCTarget{ | ||
| 138 | .name = "mips-linux-gnu", | ||
| 139 | .arch = MultiArch{ .specific = Arch.mips }, | ||
| 140 | .abi = MultiAbi{ .specific = Abi.gnueabihf }, | ||
| 141 | }, | ||
| 142 | LibCTarget{ | ||
| 143 | .name = "mips-linux-gnu-soft", | ||
| 144 | .arch = MultiArch{ .specific = Arch.mips }, | ||
| 145 | .abi = MultiAbi{ .specific = Abi.gnueabi }, | ||
| 146 | }, | ||
| 147 | LibCTarget{ | ||
| 148 | .name = "powerpc64le-linux-gnu", | ||
| 149 | .arch = MultiArch{ .specific = Arch.powerpc64le }, | ||
| 150 | .abi = MultiAbi{ .specific = Abi.gnu }, | ||
| 151 | }, | ||
| 152 | LibCTarget{ | ||
| 153 | .name = "powerpc64-linux-gnu", | ||
| 154 | .arch = MultiArch{ .specific = Arch.powerpc64 }, | ||
| 155 | .abi = MultiAbi{ .specific = Abi.gnu }, | ||
| 156 | }, | ||
| 157 | LibCTarget{ | ||
| 158 | .name = "powerpc-linux-gnu", | ||
| 159 | .arch = MultiArch{ .specific = Arch.powerpc }, | ||
| 160 | .abi = MultiAbi{ .specific = Abi.gnueabihf }, | ||
| 161 | }, | ||
| 162 | LibCTarget{ | ||
| 163 | .name = "powerpc-linux-gnu-soft", | ||
| 164 | .arch = MultiArch{ .specific = Arch.powerpc }, | ||
| 165 | .abi = MultiAbi{ .specific = Abi.gnueabi }, | ||
| 166 | }, | ||
| 167 | LibCTarget{ | ||
| 168 | .name = "riscv32-linux-gnu-rv32imafdc-ilp32d", | ||
| 169 | .arch = MultiArch{ .specific = Arch.riscv32 }, | ||
| 170 | .abi = MultiAbi{ .specific = Abi.gnu }, | ||
| 171 | }, | ||
| 172 | LibCTarget{ | ||
| 173 | .name = "riscv64-linux-gnu-rv64imafdc-lp64d", | ||
| 174 | .arch = MultiArch{ .specific = Arch.riscv64 }, | ||
| 175 | .abi = MultiAbi{ .specific = Abi.gnu }, | ||
| 176 | }, | ||
| 177 | LibCTarget{ | ||
| 178 | .name = "s390x-linux-gnu", | ||
| 179 | .arch = MultiArch{ .specific = Arch.s390x }, | ||
| 180 | .abi = MultiAbi{ .specific = Abi.gnu }, | ||
| 181 | }, | ||
| 182 | LibCTarget{ | ||
| 183 | .name = "sparcv9-linux-gnu", | ||
| 184 | .arch = MultiArch{ .specific = Arch.sparc }, | ||
| 185 | .abi = MultiAbi{ .specific = Abi.gnu }, | ||
| 186 | }, | ||
| 187 | LibCTarget{ | ||
| 188 | .name = "sparc64-linux-gnu", | ||
| 189 | .arch = MultiArch{ .specific = Arch.sparc64 }, | ||
| 190 | .abi = MultiAbi{ .specific = Abi.gnu }, | ||
| 191 | }, | ||
| 192 | LibCTarget{ | ||
| 193 | .name = "x86_64-linux-gnu", | ||
| 194 | .arch = MultiArch{ .specific = Arch.x86_64 }, | ||
| 195 | .abi = MultiAbi{ .specific = Abi.gnu }, | ||
| 196 | }, | ||
| 197 | LibCTarget{ | ||
| 198 | .name = "x86_64-linux-gnu-x32", | ||
| 199 | .arch = MultiArch{ .specific = Arch.x86_64 }, | ||
| 200 | .abi = MultiAbi{ .specific = Abi.gnux32 }, | ||
| 201 | }, | ||
| 202 | LibCTarget{ | ||
| 203 | .name = "m68k-linux-gnu", | ||
| 204 | .arch = MultiArch{ .specific = Arch.m68k }, | ||
| 205 | .abi = MultiAbi{ .specific = Abi.gnu }, | ||
| 206 | }, | ||
| 207 | LibCTarget{ | ||
| 208 | .name = "loongarch64-linux-gnu-lp64d", | ||
| 209 | .arch = MultiArch{ .specific = .loongarch64 }, | ||
| 210 | .abi = MultiAbi{ .specific = Abi.gnu }, | ||
| 211 | }, | ||
| 212 | LibCTarget{ | ||
| 213 | .name = "loongarch64-linux-gnu-lp64s", | ||
| 214 | .arch = MultiArch{ .specific = .loongarch64 }, | ||
| 215 | .abi = MultiAbi{ .specific = Abi.gnusf }, | ||
| 216 | }, | ||
| 217 | }; | 59 | }; |
| 218 | 60 | ||
| 219 | const musl_targets = [_]LibCTarget{ | 61 | const musl_targets = [_]LibCTarget{ |
| 220 | LibCTarget{ | 62 | .{ .name = "arm", .arch = .arm, .abi = .musl }, |
| 221 | .name = "aarch64", | 63 | .{ .name = "aarch64", .arch = .aarch64, .abi = .musl }, |
| 222 | .arch = MultiArch.aarch64, | 64 | .{ .name = "loongarch64", .arch = .loongarch64, .abi = .musl }, |
| 223 | .abi = MultiAbi.musl, | 65 | .{ .name = "m68k", .arch = .m68k, .abi = .musl }, |
| 224 | }, | 66 | .{ .name = "mips", .arch = .mips, .abi = .musl }, |
| 225 | LibCTarget{ | 67 | .{ .name = "mips64", .arch = .mips64, .abi = .musl }, |
| 226 | .name = "arm", | 68 | .{ .name = "mipsn32", .arch = .mips64, .abi = .muslabin32 }, |
| 227 | .arch = MultiArch.arm, | 69 | .{ .name = "powerpc", .arch = .powerpc, .abi = .musl }, |
| 228 | .abi = MultiAbi.musl, | 70 | .{ .name = "powerpc64", .arch = .powerpc64, .abi = .musl }, |
| 229 | }, | 71 | .{ .name = "riscv32", .arch = .riscv32, .abi = .musl }, |
| 230 | LibCTarget{ | 72 | .{ .name = "riscv64", .arch = .riscv64, .abi = .musl }, |
| 231 | .name = "i386", | 73 | .{ .name = "s390x", .arch = .s390x, .abi = .musl }, |
| 232 | .arch = MultiArch{ .specific = .x86 }, | 74 | .{ .name = "i386", .arch = .x86, .abi = .musl }, |
| 233 | .abi = MultiAbi.musl, | 75 | .{ .name = "x86_64", .arch = .x86_64, .abi = .musl }, |
| 234 | }, | 76 | .{ .name = "x32", .arch = .x86_64, .abi = .muslx32 }, |
| 235 | LibCTarget{ | ||
| 236 | .name = "loongarch64", | ||
| 237 | .arch = MultiArch{ .specific = .loongarch64 }, | ||
| 238 | .abi = MultiAbi.musl, | ||
| 239 | }, | ||
| 240 | LibCTarget{ | ||
| 241 | .name = "mips", | ||
| 242 | .arch = MultiArch.mips, | ||
| 243 | .abi = MultiAbi.musl, | ||
| 244 | }, | ||
| 245 | LibCTarget{ | ||
| 246 | .name = "mips64", | ||
| 247 | .arch = MultiArch.mips64, | ||
| 248 | .abi = MultiAbi.musl, | ||
| 249 | }, | ||
| 250 | LibCTarget{ | ||
| 251 | .name = "powerpc", | ||
| 252 | .arch = MultiArch{ .specific = .powerpc }, | ||
| 253 | .abi = MultiAbi.musl, | ||
| 254 | }, | ||
| 255 | LibCTarget{ | ||
| 256 | .name = "powerpc64", | ||
| 257 | .arch = MultiArch.powerpc64, | ||
| 258 | .abi = MultiAbi.musl, | ||
| 259 | }, | ||
| 260 | LibCTarget{ | ||
| 261 | .name = "riscv32", | ||
| 262 | .arch = MultiArch{ .specific = .riscv32 }, | ||
| 263 | .abi = MultiAbi.musl, | ||
| 264 | }, | ||
| 265 | LibCTarget{ | ||
| 266 | .name = "riscv64", | ||
| 267 | .arch = MultiArch{ .specific = .riscv64 }, | ||
| 268 | .abi = MultiAbi.musl, | ||
| 269 | }, | ||
| 270 | LibCTarget{ | ||
| 271 | .name = "s390x", | ||
| 272 | .arch = MultiArch{ .specific = .s390x }, | ||
| 273 | .abi = MultiAbi.musl, | ||
| 274 | }, | ||
| 275 | LibCTarget{ | ||
| 276 | .name = "x86_64", | ||
| 277 | .arch = MultiArch{ .specific = .x86_64 }, | ||
| 278 | .abi = MultiAbi.musl, | ||
| 279 | }, | ||
| 280 | LibCTarget{ | ||
| 281 | .name = "m68k", | ||
| 282 | .arch = MultiArch{ .specific = .m68k }, | ||
| 283 | .abi = MultiAbi{ .specific = .musl }, | ||
| 284 | }, | ||
| 285 | }; | 77 | }; |
| 286 | 78 | ||
| 287 | const DestTarget = struct { | 79 | const DestTarget = struct { |
| 288 | arch: MultiArch, | 80 | arch: Arch, |
| 289 | os: OsTag, | 81 | os: OsTag, |
| 290 | abi: Abi, | 82 | abi: Abi, |
| 291 | 83 | ||
| ... | @@ -300,7 +92,7 @@ const DestTarget = struct { | ... | @@ -300,7 +92,7 @@ const DestTarget = struct { |
| 300 | pub fn eql(self: @This(), a: DestTarget, b: DestTarget, b_index: usize) bool { | 92 | pub fn eql(self: @This(), a: DestTarget, b: DestTarget, b_index: usize) bool { |
| 301 | _ = self; | 93 | _ = self; |
| 302 | _ = b_index; | 94 | _ = b_index; |
| 303 | return a.arch.eql(b.arch) and | 95 | return a.arch == b.arch and |
| 304 | a.os == b.os and | 96 | a.os == b.os and |
| 305 | a.abi == b.abi; | 97 | a.abi == b.abi; |
| 306 | } | 98 | } |
| ... | @@ -363,22 +155,16 @@ pub fn main() !void { | ... | @@ -363,22 +155,16 @@ pub fn main() !void { |
| 363 | 155 | ||
| 364 | const out_dir = opt_out_dir orelse usageAndExit(args[0]); | 156 | const out_dir = opt_out_dir orelse usageAndExit(args[0]); |
| 365 | const abi_name = opt_abi orelse usageAndExit(args[0]); | 157 | const abi_name = opt_abi orelse usageAndExit(args[0]); |
| 366 | const vendor = if (std.mem.eql(u8, abi_name, "musl")) | 158 | const vendor = std.meta.stringToEnum(LibCVendor, abi_name) orelse { |
| 367 | LibCVendor.musl | ||
| 368 | else if (std.mem.eql(u8, abi_name, "glibc")) | ||
| 369 | LibCVendor.glibc | ||
| 370 | else { | ||
| 371 | std.debug.print("unrecognized C ABI: {s}\n", .{abi_name}); | 159 | std.debug.print("unrecognized C ABI: {s}\n", .{abi_name}); |
| 372 | usageAndExit(args[0]); | 160 | usageAndExit(args[0]); |
| 373 | }; | 161 | }; |
| 374 | const generic_name = try std.fmt.allocPrint(allocator, "generic-{s}", .{abi_name}); | ||
| 375 | 162 | ||
| 376 | // TODO compiler crashed when I wrote this the canonical way | 163 | const generic_name = try std.fmt.allocPrint(allocator, "generic-{s}", .{abi_name}); |
| 377 | var libc_targets: []const LibCTarget = undefined; | 164 | const libc_targets = switch (vendor) { |
| 378 | switch (vendor) { | 165 | .glibc => &glibc_targets, |
| 379 | .musl => libc_targets = &musl_targets, | 166 | .musl => &musl_targets, |
| 380 | .glibc => libc_targets = &glibc_targets, | 167 | }; |
| 381 | } | ||
| 382 | 168 | ||
| 383 | var path_table = PathTable.init(allocator); | 169 | var path_table = PathTable.init(allocator); |
| 384 | var hash_to_contents = HashToContents.init(allocator); | 170 | var hash_to_contents = HashToContents.init(allocator); |
| ... | @@ -390,22 +176,15 @@ pub fn main() !void { | ... | @@ -390,22 +176,15 @@ pub fn main() !void { |
| 390 | for (libc_targets) |libc_target| { | 176 | for (libc_targets) |libc_target| { |
| 391 | const dest_target = DestTarget{ | 177 | const dest_target = DestTarget{ |
| 392 | .arch = libc_target.arch, | 178 | .arch = libc_target.arch, |
| 393 | .abi = switch (vendor) { | ||
| 394 | .musl => .musl, | ||
| 395 | .glibc => libc_target.abi.specific, | ||
| 396 | }, | ||
| 397 | .os = .linux, | 179 | .os = .linux, |
| 180 | .abi = libc_target.abi, | ||
| 398 | }; | 181 | }; |
| 182 | |||
| 399 | search: for (search_paths.items) |search_path| { | 183 | search: for (search_paths.items) |search_path| { |
| 400 | var sub_path: []const []const u8 = undefined; | 184 | const sub_path = switch (vendor) { |
| 401 | switch (vendor) { | 185 | .glibc => &[_][]const u8{ search_path, libc_target.name, "usr", "include" }, |
| 402 | .musl => { | 186 | .musl => &[_][]const u8{ search_path, libc_target.name, "usr", "local", "musl", "include" }, |
| 403 | sub_path = &[_][]const u8{ search_path, libc_target.name, "usr", "local", "musl", "include" }; | 187 | }; |
| 404 | }, | ||
| 405 | .glibc => { | ||
| 406 | sub_path = &[_][]const u8{ search_path, libc_target.name, "usr", "include" }; | ||
| 407 | }, | ||
| 408 | } | ||
| 409 | const target_include_dir = try std.fs.path.join(allocator, sub_path); | 188 | const target_include_dir = try std.fs.path.join(allocator, sub_path); |
| 410 | var dir_stack = std.ArrayList([]const u8).init(allocator); | 189 | var dir_stack = std.ArrayList([]const u8).init(allocator); |
| 411 | try dir_stack.append(target_include_dir); | 190 | try dir_stack.append(target_include_dir); |
| ... | @@ -515,12 +294,8 @@ pub fn main() !void { | ... | @@ -515,12 +294,8 @@ pub fn main() !void { |
| 515 | if (contents.is_generic) continue; | 294 | if (contents.is_generic) continue; |
| 516 | 295 | ||
| 517 | const dest_target = hash_kv.key_ptr.*; | 296 | const dest_target = hash_kv.key_ptr.*; |
| 518 | const arch_name = switch (dest_target.arch) { | ||
| 519 | .specific => |a| @tagName(a), | ||
| 520 | else => @tagName(dest_target.arch), | ||
| 521 | }; | ||
| 522 | const out_subpath = try std.fmt.allocPrint(allocator, "{s}-{s}-{s}", .{ | 297 | const out_subpath = try std.fmt.allocPrint(allocator, "{s}-{s}-{s}", .{ |
| 523 | arch_name, | 298 | @tagName(dest_target.arch), |
| 524 | @tagName(dest_target.os), | 299 | @tagName(dest_target.os), |
| 525 | @tagName(dest_target.abi), | 300 | @tagName(dest_target.abi), |
| 526 | }); | 301 | }); |