| author | |
| committer | |
| log | 3ec27ae648246667e7d8258256ebb06683125037 |
| tree | c3542f4847de63464b6679247abf8cbae7cfb643 |
| parent | 94cf5b26f4fc764ca10bd7611c46156c29d254d7 |
| signature |
Adds mips64-linux-muslabin32 and x86_64-linux-muslx32 headers.54 files changed, 3860 insertions(+), 18 deletions(-)
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 | |||