From 0588fed15f64cc7d53eff2c599beb63ae2a589a0 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
- This function parses C code and imports the functions, types, variables, and
- compatible macro definitions into the result namespace.
+ This function parses C code and imports the functions, types, variables,
+ and compatible macro definitions into a new empty struct type, and then
+ returns that type.
{#syntax#}expression{#endsyntax#} is interpreted at compile time. The builtin functions
@@ -6320,14 +6321,22 @@ export fn @"A function name that is a complete sentence."() void {}
{#header_close#}
{#header_open|@import#}
-
- This function finds a zig file corresponding to {#syntax#}path{#endsyntax#} and imports all the
- public top level declarations into the resulting namespace.
+ This function finds a zig file corresponding to {#syntax#}path{#endsyntax#} and adds it to the build,
+ if it is not already added.
+
+ Zig source files are implicitly structs, with a name equal to the file's basename with the extension
+ truncated. {#syntax#}@import{#endsyntax#} returns the struct type corresponding to the file.
+
+ Declarations which have the {#syntax#}pub{#endsyntax#} keyword may be referenced from a different
+ source file than the one they are declared in.
{#syntax#}path{#endsyntax#} can be a relative or absolute path, or it can be the name of a package.
- If it is a relative path, it is relative to the file that contains the {#syntax#}@import{#endsyntax#}
+ If it is a relative path, it is relative to the file that contains the {#syntax#}@import{#endsyntax#}
function call.
@@ -6335,7 +6344,9 @@ export fn @"A function name that is a complete sentence."() void {}
{#syntax#}@cImport(expression) (namespace){#endsyntax#}
+ {#syntax#}@cImport(expression) type{#endsyntax#}
{#syntax#}@import(comptime path: []u8) (namespace){#endsyntax#}
+ {#syntax#}@import(comptime path: []u8) type{#endsyntax#}
{#see_also|Compile Variables|@embedFile#}
{#header_close#}
@@ -8177,28 +8188,68 @@ all your base are belong to us
zig builtin outputs the source to stdout for reference.
+
$ zig targets
Architectures:
- armv8_2a
- armv8_1a
- armv8
- armv8r
- armv8m_baseline
- armv8m_mainline
- armv7
- armv7em
- armv7m
- armv7s
- armv7k
- armv7ve
- armv6
- armv6m
- armv6k
- armv6t2
- armv5
- armv5te
- armv4t
+ arm
+ v8_4a
+ v8_3a
+ v8_2a
+ v8_1a
+ v8
+ v8r
+ v8m_baseline
+ v8m_mainline
+ v7
+ v7em
+ v7m
+ v7s
+ v7k
+ v7ve
+ v6
+ v6m
+ v6k
+ v6t2
+ v5
+ v5te
+ v4t
armeb
+ v8_4a
+ v8_3a
+ v8_2a
+ v8_1a
+ v8
+ v8r
+ v8m_baseline
+ v8m_mainline
+ v7
+ v7em
+ v7m
+ v7s
+ v7k
+ v7ve
+ v6
+ v6m
+ v6k
+ v6t2
+ v5
+ v5te
+ v4t
aarch64
+ v8_4a
+ v8_3a
+ v8_2a
+ v8_1a
+ v8
+ v8r
+ v8m_baseline
+ v8m_mainline
aarch64_be
+ v8_4a
+ v8_3a
+ v8_2a
+ v8_1a
+ v8
+ v8r
+ v8m_baseline
+ v8m_mainline
avr
bpfel
bpfeb
@@ -8208,7 +8259,6 @@ Architectures:
mips64
mips64el
msp430
- nios2
powerpc
powerpc64
powerpc64le
@@ -8220,32 +8270,58 @@ Architectures:
sparcv9
sparcel
s390x
- tce
- tcele
thumb
+ v8_4a
+ v8_3a
+ v8_2a
+ v8_1a
+ v8
+ v8r
+ v8m_baseline
+ v8m_mainline
+ v7
+ v7em
+ v7m
+ v7s
+ v7k
+ v7ve
+ v6
+ v6m
+ v6k
+ v6t2
+ v5
+ v5te
+ v4t
thumbeb
+ v8_4a
+ v8_3a
+ v8_2a
+ v8_1a
+ v8
+ v8r
+ v8m_baseline
+ v8m_mainline
+ v7
+ v7em
+ v7m
+ v7s
+ v7k
+ v7ve
+ v6
+ v6m
+ v6k
+ v6t2
+ v5
+ v5te
+ v4t
i386
x86_64 (native)
xcore
nvptx
nvptx64
- le32
- le64
- amdil
- amdil64
- hsail
- hsail64
- spir
- spir64
- kalimbav3
- kalimbav4
- kalimbav5
- shave
lanai
wasm32
wasm64
- renderscript32
- renderscript64
Operating Systems:
freestanding
@@ -8268,7 +8344,6 @@ Operating Systems:
rtems
nacl
cnk
- bitrig
aix
cuda
nvcl
@@ -8279,11 +8354,14 @@ Operating Systems:
watchos
mesa3d
contiki
+ amdpal
zen
+ uefi
-Environments:
- unknown
+C ABIs:
+ none
gnu (native)
+ gnuabin32
gnuabi64
gnueabi
gnueabihf
@@ -8298,9 +8376,8 @@ Environments:
msvc
itanium
cygnus
- amdopencl
coreclr
- opencl
+ simulator
The Zig Standard Library ({#syntax#}@import("std"){#endsyntax#}) has architecture, environment, and operating system abstractions, and thus takes additional work to support more platforms. @@ -8433,6 +8510,19 @@ fn readU32Be() u32 {}
The codepoint U+000a (LF) (which is encoded as the single-byte value 0x0a) is the line terminator character. This character always terminates a line of zig source code (except possbly the last line of the file).
For some discussion on the rationale behind these design decisions, see issue #663
{#header_close#} + + {#header_open|Keyword Reference#} ++ TODO the rest of the keywords. Most of these can just be links to the relevant section. +
+ {#header_open|Keyword: pub#} +The {#syntax#}pub{#endsyntax#} in front of a top level declaration makes the + declaration available to reference from a different file than the one it is declared in.
+TODO delete pub syntax for fields, or make it do something.
+ {#see_also|@import#} + {#header_close#} + {#header_close#} + {#header_open|Grammar#}Root <- skip ContainerMembers eof
From d21370833352369867596305dda99f8cafc69277 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Wed, 13 Mar 2019 13:45:51 -0400
Subject: [PATCH 02/24] this empty import workaround no longer necessary
---
CMakeLists.txt | 1 -
std/c.zig | 3 +--
std/empty.zig | 0
std/std.zig | 2 --
4 files changed, 1 insertion(+), 5 deletions(-)
delete mode 100644 std/empty.zig
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1f5d7e8258..a575f06481 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -476,7 +476,6 @@ set(ZIG_STD_FILES
"dwarf.zig"
"dynamic_library.zig"
"elf.zig"
- "empty.zig"
"event.zig"
"event/channel.zig"
"event/fs.zig"
diff --git a/std/c.zig b/std/c.zig
index c7c8a9c550..de54c8f690 100644
--- a/std/c.zig
+++ b/std/c.zig
@@ -7,9 +7,8 @@ pub use switch (builtin.os) {
Os.macosx, Os.ios => @import("c/darwin.zig"),
Os.freebsd => @import("c/freebsd.zig"),
Os.netbsd => @import("c/netbsd.zig"),
- else => empty_import,
+ else => struct {},
};
-const empty_import = @import("empty.zig");
// TODO https://github.com/ziglang/zig/issues/265 on this whole file
diff --git a/std/empty.zig b/std/empty.zig
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/std/std.zig b/std/std.zig
index d935f9136e..a0c6795827 100644
--- a/std/std.zig
+++ b/std/std.zig
@@ -24,7 +24,6 @@ pub const cstr = @import("cstr.zig");
pub const debug = @import("debug.zig");
pub const dwarf = @import("dwarf.zig");
pub const elf = @import("elf.zig");
-pub const empty_import = @import("empty.zig");
pub const event = @import("event.zig");
pub const fmt = @import("fmt.zig");
pub const hash = @import("hash.zig");
@@ -72,7 +71,6 @@ test "std" {
_ = @import("dwarf.zig");
_ = @import("dynamic_library.zig");
_ = @import("elf.zig");
- _ = @import("empty.zig");
_ = @import("event.zig");
_ = @import("fmt.zig");
_ = @import("hash.zig");
From 85d0f0d45bf1529db8965b8176f8021d1ca27534 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Wed, 13 Mar 2019 14:46:53 -0400
Subject: [PATCH 03/24] fix @setRuntimeSafety not able to override release
modes
---
doc/docgen.zig | 23 +++++++++++++++++++----
doc/langref.html.in | 26 +++++++++++++++++++++++++-
src/codegen.cpp | 7 +++----
3 files changed, 47 insertions(+), 9 deletions(-)
diff --git a/doc/docgen.zig b/doc/docgen.zig
index 3242220af4..75e8d2d28d 100644
--- a/doc/docgen.zig
+++ b/doc/docgen.zig
@@ -1183,11 +1183,21 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var
"--output-dir",
tmp_dir_name,
});
+ var mode_arg: []const u8 = "";
switch (code.mode) {
builtin.Mode.Debug => {},
- builtin.Mode.ReleaseSafe => try test_args.append("--release-safe"),
- builtin.Mode.ReleaseFast => try test_args.append("--release-fast"),
- builtin.Mode.ReleaseSmall => try test_args.append("--release-small"),
+ builtin.Mode.ReleaseSafe => {
+ try test_args.append("--release-safe");
+ mode_arg = " --release-safe";
+ },
+ builtin.Mode.ReleaseFast => {
+ try test_args.append("--release-fast");
+ mode_arg = " --release-fast";
+ },
+ builtin.Mode.ReleaseSmall => {
+ try test_args.append("--release-small");
+ mode_arg = " --release-small";
+ },
}
const result = try os.ChildProcess.exec(allocator, test_args.toSliceConst(), null, &env_map, max_doc_file_size);
@@ -1217,7 +1227,12 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var
}
const escaped_stderr = try escapeHtml(allocator, result.stderr);
const colored_stderr = try termColor(allocator, escaped_stderr);
- try out.print("$ zig test {}.zig\n{}
\n", code.name, colored_stderr);
+ try out.print(
+ "$ zig test {}.zig{}\n{}
\n",
+ code.name,
+ mode_arg,
+ colored_stderr,
+ );
},
Code.Id.Obj => |maybe_error_match| {
const name_plus_obj_ext = try std.fmt.allocPrint(allocator, "{}{}", code.name, obj_ext);
diff --git a/doc/langref.html.in b/doc/langref.html.in
index f9e053ee17..b8ee292462 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -6780,8 +6780,32 @@ pub const FloatMode = enum {
{#header_open|@setRuntimeSafety#}
{#syntax#}@setRuntimeSafety(safety_on: bool){#endsyntax#}
- Sets whether runtime safety checks are on for the scope that contains the function call.
+ Sets whether runtime safety checks are enabled for the scope that contains the function call.
+ {#code_begin|test_safety|integer overflow#}
+ {#code_release_fast#}
+test "@setRuntimeSafety" {
+ // The builtin applies to the scope that it is called in. So here, integer overflow
+ // will not be caught in ReleaseFast and ReleaseSmall modes:
+ // var x: u8 = 255;
+ // x += 1; // undefined behavior in ReleaseFast/ReleaseSmall modes.
+ {
+ // However this block has safety enabled, so safety checks happen here,
+ // even in ReleaseFast and ReleaseSmall modes.
+ @setRuntimeSafety(true);
+ var x: u8 = 255;
+ x += 1;
+
+ {
+ // The value can be overridden at any scope. So here integer overflow
+ // would not be caught in any build mode.
+ @setRuntimeSafety(false);
+ // var x: u8 = 255;
+ // x += 1; // undefined behavior in all build modes.
+ }
+ }
+}
+ {#code_end#}
{#header_close#}
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 22f3b5be09..9f7bef52cb 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -878,9 +878,6 @@ static bool ir_want_fast_math(CodeGen *g, IrInstruction *instruction) {
}
static bool ir_want_runtime_safety(CodeGen *g, IrInstruction *instruction) {
- if (g->build_mode == BuildModeFastRelease || g->build_mode == BuildModeSmallRelease)
- return false;
-
// TODO memoize
Scope *scope = instruction->scope;
while (scope) {
@@ -895,7 +892,9 @@ static bool ir_want_runtime_safety(CodeGen *g, IrInstruction *instruction) {
}
scope = scope->parent;
}
- return true;
+
+ return (g->build_mode != BuildModeFastRelease &&
+ g->build_mode != BuildModeSmallRelease);
}
static Buf *panic_msg_buf(PanicMsgId msg_id) {
From 5d2edac12dc9eec626977a5bf9b0630504b28c15 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Wed, 13 Mar 2019 19:33:19 -0400
Subject: [PATCH 04/24] breaking: remove --static; add -dynamic
`--static` is no longer an option. Instead, Zig makes things as static
as possible by default. `-dynamic` can be used to choose a dynamic
library rather than a static one.
`--enable-pic` is a new option. Usually it will be enabled
automatically, but in the case of build-exe with no dynamic libraries
on Linux or freestanding, Zig chooses off by default.
closes #1703
closes #1828
---
src/all_types.hpp | 12 ++++-
src/codegen.cpp | 96 +++++++++++++++++++++++++++------------
src/ir.cpp | 15 ++++--
src/libc_installation.cpp | 2 +-
src/link.cpp | 78 ++++++++++---------------------
src/main.cpp | 47 +++++++++++--------
src/target.cpp | 53 ++++++++++++++++++---
src/target.hpp | 8 +++-
std/build.zig | 38 +++++++---------
9 files changed, 212 insertions(+), 137 deletions(-)
diff --git a/src/all_types.hpp b/src/all_types.hpp
index ec14382a2b..d1d63f1062 100644
--- a/src/all_types.hpp
+++ b/src/all_types.hpp
@@ -1616,6 +1616,12 @@ enum ValgrindSupport {
ValgrindSupportEnabled,
};
+enum WantPIC {
+ WantPICAuto,
+ WantPICDisabled,
+ WantPICEnabled,
+};
+
struct CFile {
ZigList args;
const char *source_path;
@@ -1791,6 +1797,8 @@ struct CodeGen {
bool have_dllmain_crt_startup;
bool have_pub_panic;
bool have_err_ret_tracing;
+ bool have_pic;
+ bool have_dynamic_link; // this is whether the final thing will be dynamically linked. see also is_dynamic
bool c_want_stdint;
bool c_want_stdbool;
bool verbose_tokenize;
@@ -1834,13 +1842,13 @@ struct CodeGen {
const ZigTarget *zig_target;
TargetSubsystem subsystem;
ValgrindSupport valgrind_support;
- bool is_static;
+ WantPIC want_pic;
+ bool is_dynamic; // shared library rather than static library. dynamic musl rather than static musl.
bool strip_debug_symbols;
bool is_test_build;
bool is_single_threaded;
bool linker_rdynamic;
bool each_lib_rpath;
- bool disable_pic;
bool is_dummy_so;
bool disable_gen_h;
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 9f7bef52cb..11a368cda6 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -182,13 +182,13 @@ CodeGen *codegen_create(Buf *main_pkg_path, Buf *root_src_path, const ZigTarget
} else {
g->each_lib_rpath = true;
- if (target_is_darwin(g->zig_target)) {
+ if (target_os_is_darwin(g->zig_target->os)) {
init_darwin_native(g);
}
}
- if (target_requires_libc(g->zig_target)) {
+ if (target_os_requires_libc(g->zig_target->os)) {
g->libc_link_lib = create_link_lib(buf_create_from_str("c"));
g->link_libs_list.append(g->libc_link_lib);
}
@@ -3370,7 +3370,7 @@ static LLVMValueRef gen_valgrind_client_request(CodeGen *g, LLVMValueRef default
bool asm_has_side_effects = true;
bool asm_is_alignstack = false;
if (g->zig_target->arch == ZigLLVM_x86_64) {
- if (g->zig_target->os == OsLinux || target_is_darwin(g->zig_target) || g->zig_target->os == OsSolaris ||
+ if (g->zig_target->os == OsLinux || target_os_is_darwin(g->zig_target->os) || g->zig_target->os == OsSolaris ||
(g->zig_target->os == OsWindows && g->zig_target->abi != ZigLLVM_MSVC))
{
if (g->cur_fn->valgrind_client_request_array == nullptr) {
@@ -7283,7 +7283,44 @@ static const char *build_mode_to_str(BuildMode build_mode) {
zig_unreachable();
}
+static bool detect_dynamic_link(CodeGen *g) {
+ if (g->is_dynamic)
+ return true;
+ if (g->zig_target->os == OsFreestanding)
+ return false;
+ if (target_requires_pic(g->zig_target))
+ return true;
+ if (g->out_type == OutTypeExe) {
+ // If there are no dynamic libraries then we can disable PIC
+ for (size_t i = 0; i < g->link_libs_list.length; i += 1) {
+ LinkLib *link_lib = g->link_libs_list.at(i);
+ if (target_is_libc_lib_name(g->zig_target, buf_ptr(link_lib->name)))
+ continue;
+ return true;
+ }
+ return false;
+ }
+ return true;
+}
+
+static bool detect_pic(CodeGen *g) {
+ if (target_requires_pic(g->zig_target))
+ return true;
+ switch (g->want_pic) {
+ case WantPICDisabled:
+ return false;
+ case WantPICEnabled:
+ return true;
+ case WantPICAuto:
+ return g->have_dynamic_link;
+ }
+ zig_unreachable();
+}
+
Buf *codegen_generate_builtin_source(CodeGen *g) {
+ g->have_dynamic_link = detect_dynamic_link(g);
+ g->have_pic = detect_pic(g);
+
Buf *contents = buf_alloc();
// NOTE: when editing this file, you may need to make modifications to the
@@ -7683,6 +7720,7 @@ Buf *codegen_generate_builtin_source(CodeGen *g) {
buf_appendf(contents, "pub const link_libc = %s;\n", bool_to_str(g->libc_link_lib != nullptr));
buf_appendf(contents, "pub const have_error_return_tracing = %s;\n", bool_to_str(g->have_err_ret_tracing));
buf_appendf(contents, "pub const valgrind_support = %s;\n", bool_to_str(want_valgrind_support(g)));
+ buf_appendf(contents, "pub const position_independent_code = %s;\n", bool_to_str(g->have_pic));
buf_appendf(contents, "pub const __zig_test_fn_slice = {}; // overwritten later\n");
@@ -7777,6 +7815,9 @@ static void init(CodeGen *g) {
if (g->module)
return;
+ g->have_dynamic_link = detect_dynamic_link(g);
+ g->have_pic = detect_pic(g);
+
if (g->is_test_build) {
g->subsystem = TargetSubsystemConsole;
}
@@ -7807,10 +7848,7 @@ static void init(CodeGen *g) {
bool is_optimized = g->build_mode != BuildModeDebug;
LLVMCodeGenOptLevel opt_level = is_optimized ? LLVMCodeGenLevelAggressive : LLVMCodeGenLevelNone;
- if (g->out_type == OutTypeExe && g->is_static) {
- g->disable_pic = true;
- }
- LLVMRelocMode reloc_mode = g->disable_pic ? LLVMRelocStatic : LLVMRelocPIC;
+ LLVMRelocMode reloc_mode = g->have_pic ? LLVMRelocPIC: LLVMRelocStatic;
const char *target_specific_cpu_args;
const char *target_specific_features;
@@ -7892,8 +7930,13 @@ static void init(CodeGen *g) {
}
static void detect_dynamic_linker(CodeGen *g) {
- if (g->dynamic_linker_path != nullptr || g->is_static)
+ if (g->dynamic_linker_path != nullptr)
return;
+ if (!g->have_dynamic_link)
+ return;
+ if (g->out_type == OutTypeObj || (g->out_type == OutTypeLib && !g->is_dynamic))
+ return;
+
const char *standard_ld_path = target_dynamic_linker(g->zig_target);
if (standard_ld_path == nullptr)
return;
@@ -7944,13 +7987,6 @@ static void detect_libc(CodeGen *g) {
if (g->libc != nullptr || g->libc_link_lib == nullptr)
return;
- if (g->zig_target->os == OsLinux && target_abi_is_gnu(g->zig_target->abi) &&
- g->is_static && g->out_type == OutTypeExe)
- {
- fprintf(stderr, "glibc does not support static linking\n");
- exit(1);
- }
-
if (target_can_build_libc(g->zig_target)) {
const char *generic_name = target_libc_generic_name(g->zig_target);
@@ -8010,17 +8046,16 @@ static void detect_libc(CodeGen *g) {
if (want_sys_dir) {
g->libc_include_dir_list[1] = &g->libc->sys_include_dir;
}
- } else if ((g->out_type == OutTypeExe || (g->out_type == OutTypeLib && !g->is_static)) &&
- !target_is_darwin(g->zig_target))
+ } else if ((g->out_type == OutTypeExe || (g->out_type == OutTypeLib && g->is_dynamic)) &&
+ !target_os_is_darwin(g->zig_target->os))
{
+ Buf triple_buf = BUF_INIT;
+ get_target_triple(&triple_buf, g->zig_target);
fprintf(stderr,
- "Zig is unable to provide a libc for the chosen target '%s-%s-%s'.\n"
+ "Zig is unable to provide a libc for the chosen target '%s'.\n"
"The target is non-native, so Zig also cannot use the native libc installation.\n"
"Choose a target which has a libc available, or provide a libc installation text file.\n"
- "See `zig libc --help` for more details.\n",
- target_arch_name(g->zig_target->arch),
- target_os_name(g->zig_target->os),
- target_abi_name(g->zig_target->abi));
+ "See `zig libc --help` for more details.\n", buf_ptr(&triple_buf));
exit(1);
}
}
@@ -8203,7 +8238,7 @@ static void gen_root_source(CodeGen *g) {
g->bootstrap_import = add_special_code(g, create_bootstrap_pkg(g, g->root_package), "bootstrap.zig");
}
if (g->zig_target->os == OsWindows && !g->have_dllmain_crt_startup &&
- g->out_type == OutTypeLib && !g->is_static)
+ g->out_type == OutTypeLib && g->is_dynamic)
{
g->bootstrap_import = add_special_code(g, create_bootstrap_pkg(g, g->root_package), "bootstrap_lib.zig");
}
@@ -8297,7 +8332,8 @@ Error create_c_object_cache(CodeGen *g, CacheHash **out_cache_hash, bool verbose
cache_int(cache_hash, g->zig_target->abi);
cache_bool(cache_hash, g->strip_debug_symbols);
cache_int(cache_hash, g->build_mode);
- cache_bool(cache_hash, g->disable_pic);
+ cache_bool(cache_hash, g->have_pic);
+ cache_bool(cache_hash, want_valgrind_support(g));
for (size_t arg_i = 0; arg_i < g->clang_argv_len; arg_i += 1) {
cache_str(cache_hash, g->clang_argv[arg_i]);
}
@@ -8451,7 +8487,7 @@ static void gen_c_object(CodeGen *g, Buf *self_exe_path, CFile *c_file) {
args.append("-c");
args.append(buf_ptr(c_source_file));
- if (target_supports_fpic(g->zig_target) && !g->disable_pic) {
+ if (target_supports_fpic(g->zig_target) && g->have_pic) {
args.append("-fPIC");
}
@@ -9064,7 +9100,6 @@ static Error check_cache(CodeGen *g, Buf *manifest_dir, Buf *digest) {
cache_int(ch, g->zig_target->os);
cache_int(ch, g->zig_target->abi);
cache_int(ch, g->subsystem);
- cache_bool(ch, g->is_static);
cache_bool(ch, g->strip_debug_symbols);
cache_bool(ch, g->is_test_build);
if (g->is_test_build) {
@@ -9074,9 +9109,10 @@ static Error check_cache(CodeGen *g, Buf *manifest_dir, Buf *digest) {
cache_bool(ch, g->is_single_threaded);
cache_bool(ch, g->linker_rdynamic);
cache_bool(ch, g->each_lib_rpath);
- cache_bool(ch, g->disable_pic);
cache_bool(ch, g->disable_gen_h);
- cache_bool(ch, g->valgrind_support);
+ cache_bool(ch, want_valgrind_support(g));
+ cache_bool(ch, g->have_pic);
+ cache_bool(ch, g->have_dynamic_link);
cache_bool(ch, g->is_dummy_so);
cache_buf_opt(ch, g->mmacosx_version_min);
cache_buf_opt(ch, g->mios_version_min);
@@ -9150,7 +9186,7 @@ static void resolve_out_paths(CodeGen *g) {
buf_resize(out_basename, 0);
buf_append_str(out_basename, target_lib_file_prefix(g->zig_target));
buf_append_buf(out_basename, g->root_out_name);
- buf_append_str(out_basename, target_lib_file_ext(g->zig_target, g->is_static,
+ buf_append_str(out_basename, target_lib_file_ext(g->zig_target, !g->is_dynamic,
g->version_major, g->version_minor, g->version_patch));
break;
}
@@ -9182,6 +9218,8 @@ void codegen_build_and_link(CodeGen *g) {
g->output_dir = buf_create_from_str(".");
}
+ g->have_dynamic_link = detect_dynamic_link(g);
+ g->have_pic = detect_pic(g);
detect_libc(g);
detect_dynamic_linker(g);
diff --git a/src/ir.cpp b/src/ir.cpp
index 26bc375003..f138080f00 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -15543,9 +15543,8 @@ static IrInstruction *ir_analyze_container_field_ptr(IrAnalyze *ira, Buf *field_
}
static void add_link_lib_symbol(IrAnalyze *ira, Buf *lib_name, Buf *symbol_name, AstNode *source_node) {
- if (buf_eql_str(lib_name, "c") && ira->codegen->libc_link_lib == nullptr &&
- !ira->codegen->reported_bad_link_libc_error)
- {
+ bool is_libc = target_is_libc_lib_name(ira->codegen->zig_target, buf_ptr(lib_name));
+ if (is_libc && ira->codegen->libc_link_lib == nullptr && !ira->codegen->reported_bad_link_libc_error) {
ir_add_error_node(ira, source_node,
buf_sprintf("dependency on library c must be explicitly specified in the build command"));
ira->codegen->reported_bad_link_libc_error = true;
@@ -15558,6 +15557,16 @@ static void add_link_lib_symbol(IrAnalyze *ira, Buf *lib_name, Buf *symbol_name,
return;
}
}
+
+ if (!is_libc && !ira->codegen->have_pic && !ira->codegen->reported_bad_link_libc_error) {
+ ErrorMsg *msg = ir_add_error_node(ira, source_node,
+ buf_sprintf("dependency on dynamic library '%s' requires enabling Position Independent Code",
+ buf_ptr(lib_name)));
+ add_error_note(ira->codegen, msg, source_node,
+ buf_sprintf("fixed by `--library %s` or `--enable-pic`", buf_ptr(lib_name)));
+ ira->codegen->reported_bad_link_libc_error = true;
+ }
+
for (size_t i = 0; i < ira->codegen->forbidden_libs.length; i += 1) {
Buf *forbidden_lib_name = ira->codegen->forbidden_libs.at(i);
if (buf_eql_buf(lib_name, forbidden_lib_name)) {
diff --git a/src/libc_installation.cpp b/src/libc_installation.cpp
index 8a293af82a..14a9cd0b2d 100644
--- a/src/libc_installation.cpp
+++ b/src/libc_installation.cpp
@@ -102,7 +102,7 @@ Error zig_libc_parse(ZigLibCInstallation *libc, Buf *libc_file, const ZigTarget
}
if (buf_len(&libc->crt_dir) == 0) {
- if (!target_is_darwin(target)) {
+ if (!target_os_is_darwin(target->os)) {
if (verbose) {
fprintf(stderr, "crt_dir may not be empty for %s\n", target_os_name(target->os));
}
diff --git a/src/link.cpp b/src/link.cpp
index b3aa94f0ee..e4f6fd3dd0 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -35,7 +35,7 @@ static CodeGen *create_child_codegen(CodeGen *parent_gen, Buf *root_src_path, Ou
child_gen->llvm_argv = parent_gen->llvm_argv;
codegen_set_strip(child_gen, parent_gen->strip_debug_symbols);
- child_gen->disable_pic = parent_gen->disable_pic;
+ child_gen->want_pic = parent_gen->have_pic ? WantPICEnabled : WantPICDisabled;
child_gen->valgrind_support = ValgrindSupportDisabled;
codegen_set_errmsg_color(child_gen, parent_gen->err_color);
@@ -48,15 +48,6 @@ static CodeGen *create_child_codegen(CodeGen *parent_gen, Buf *root_src_path, Ou
return child_gen;
}
-
-static bool target_is_glibc(CodeGen *g) {
- return g->zig_target->os == OsLinux && target_abi_is_gnu(g->zig_target->abi);
-}
-
-static bool target_is_musl(CodeGen *g) {
- return g->zig_target->os == OsLinux && target_abi_is_musl(g->zig_target->abi);
-}
-
static const char *build_libc_object(CodeGen *parent_gen, const char *name, CFile *c_file) {
CodeGen *child_gen = create_child_codegen(parent_gen, nullptr, OutTypeObj, nullptr);
codegen_set_out_name(child_gen, buf_create_from_str(name));
@@ -97,7 +88,7 @@ static const char *build_dummy_so(CodeGen *parent, const char *name, size_t majo
CodeGen *child_gen = create_child_codegen(parent, glibc_dummy_root_src, OutTypeLib, nullptr);
codegen_set_out_name(child_gen, buf_create_from_str(name));
codegen_set_lib_version(child_gen, major_version, 0, 0);
- child_gen->is_static = false;
+ child_gen->is_dynamic = true;
child_gen->is_dummy_so = true;
codegen_build_and_link(child_gen);
return buf_ptr(&child_gen->output_file_path);
@@ -106,7 +97,6 @@ static const char *build_dummy_so(CodeGen *parent, const char *name, size_t majo
static const char *build_libunwind(CodeGen *parent) {
CodeGen *child_gen = create_child_codegen(parent, nullptr, OutTypeLib, nullptr);
codegen_set_out_name(child_gen, buf_create_from_str("unwind"));
- child_gen->is_static = true;
LinkLib *new_link_lib = codegen_add_link_lib(child_gen, buf_create_from_str("c"));
new_link_lib->provided_explicitly = false;
enum SrcKind {
@@ -490,7 +480,6 @@ static bool is_musl_arch_name(const char *name) {
static const char *build_musl(CodeGen *parent) {
CodeGen *child_gen = create_child_codegen(parent, nullptr, OutTypeLib, nullptr);
codegen_set_out_name(child_gen, buf_create_from_str("c"));
- child_gen->is_static = true;
// When there is a src//foo.* then it should substitute for src/foo.*
// Even a .s file can substitute for a .c file.
@@ -608,7 +597,7 @@ static const char *build_musl(CodeGen *parent) {
static const char *get_libc_crt_file(CodeGen *parent, const char *file) {
- if (parent->libc == nullptr && target_is_glibc(parent)) {
+ if (parent->libc == nullptr && target_is_glibc(parent->zig_target)) {
if (strcmp(file, "crti.o") == 0) {
CFile *c_file = allocate(1);
c_file->source_path = glibc_start_asm_path(parent, "crti.S");
@@ -677,7 +666,6 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {
} else if (strcmp(file, "libc_nonshared.a") == 0) {
CodeGen *child_gen = create_child_codegen(parent, nullptr, OutTypeLib, nullptr);
codegen_set_out_name(child_gen, buf_create_from_str("c_nonshared"));
- child_gen->is_static = true;
{
CFile *c_file = allocate(1);
c_file->source_path = path_from_libc(parent, "glibc" OS_SEP "csu" OS_SEP "elf-init.c");
@@ -755,7 +743,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {
} else {
zig_unreachable();
}
- } else if (parent->libc == nullptr && target_is_musl(parent)) {
+ } else if (parent->libc == nullptr && target_is_musl(parent->zig_target)) {
if (strcmp(file, "crti.o") == 0) {
return build_asm_object(parent, "crti", musl_start_asm_path(parent, "crti.s"));
} else if (strcmp(file, "crtn.o") == 0) {
@@ -799,7 +787,6 @@ static Buf *build_a_raw(CodeGen *parent_gen, const char *aname, Buf *full_path)
CodeGen *child_gen = create_child_codegen(parent_gen, full_path, child_out_type,
parent_gen->libc);
- child_gen->is_static = true;
codegen_set_out_name(child_gen, buf_create_from_str(aname));
// This is so that compiler_rt and builtin libraries know whether they
@@ -924,9 +911,9 @@ static void construct_linker_job_elf(LinkJob *lj) {
lj->args.append(getLDMOption(g->zig_target));
bool is_lib = g->out_type == OutTypeLib;
- bool is_dyn_lib = !g->is_static && is_lib;
+ bool is_dyn_lib = g->is_dynamic && is_lib;
Buf *soname = nullptr;
- if (g->is_static) {
+ if (!g->have_dynamic_link) {
if (g->zig_target->arch == ZigLLVM_arm || g->zig_target->arch == ZigLLVM_armeb ||
g->zig_target->arch == ZigLLVM_thumb || g->zig_target->arch == ZigLLVM_thumbeb)
{
@@ -948,7 +935,7 @@ static void construct_linker_job_elf(LinkJob *lj) {
const char *crt1o;
if (g->zig_target->os == OsNetBSD) {
crt1o = "crt0.o";
- } else if (g->is_static) {
+ } else if (!g->have_dynamic_link) {
crt1o = "crt1.o";
} else {
crt1o = "Scrt1.o";
@@ -994,12 +981,11 @@ static void construct_linker_job_elf(LinkJob *lj) {
lj->args.append(buf_ptr(&g->libc->crt_dir));
}
- if (!g->is_static) {
+ if (g->have_dynamic_link && (is_dyn_lib || g->out_type == OutTypeExe)) {
assert(g->dynamic_linker_path != nullptr);
lj->args.append("-dynamic-linker");
lj->args.append(buf_ptr(g->dynamic_linker_path));
}
-
}
if (is_dyn_lib) {
@@ -1012,16 +998,14 @@ static void construct_linker_job_elf(LinkJob *lj) {
lj->args.append((const char *)buf_ptr(g->link_objects.at(i)));
}
- if (g->out_type == OutTypeExe || (g->out_type == OutTypeLib && !g->is_static)) {
- if (g->libc_link_lib == nullptr && !g->is_dummy_so) {
+ if (!g->is_dummy_so && (g->out_type == OutTypeExe || is_dyn_lib)) {
+ if (g->libc_link_lib == nullptr) {
Buf *builtin_a_path = build_a(g, "builtin");
lj->args.append(buf_ptr(builtin_a_path));
}
- if (!g->is_dummy_so) {
- Buf *compiler_rt_o_path = build_compiler_rt(g);
- lj->args.append(buf_ptr(compiler_rt_o_path));
- }
+ Buf *compiler_rt_o_path = build_compiler_rt(g);
+ lj->args.append(buf_ptr(compiler_rt_o_path));
}
for (size_t i = 0; i < g->link_libs_list.length; i += 1) {
@@ -1030,17 +1014,9 @@ static void construct_linker_job_elf(LinkJob *lj) {
// libc is linked specially
continue;
}
- if (g->libc == nullptr && (target_is_glibc(g) || target_is_musl(g))) {
+ if (g->libc == nullptr && target_is_libc_lib_name(g->zig_target, buf_ptr(link_lib->name))) {
// these libraries are always linked below when targeting glibc
- if (buf_eql_str(link_lib->name, "m")) {
- continue;
- } else if (buf_eql_str(link_lib->name, "pthread")) {
- continue;
- } else if (buf_eql_str(link_lib->name, "dl")) {
- continue;
- } else if (buf_eql_str(link_lib->name, "rt")) {
- continue;
- }
+ continue;
}
Buf *arg;
if (buf_starts_with_str(link_lib->name, "/") || buf_ends_with_str(link_lib->name, ".a") ||
@@ -1057,7 +1033,7 @@ static void construct_linker_job_elf(LinkJob *lj) {
// libc dep
if (g->libc_link_lib != nullptr) {
if (g->libc != nullptr) {
- if (g->is_static) {
+ if (!g->have_dynamic_link) {
lj->args.append("--start-group");
lj->args.append("-lgcc");
lj->args.append("-lgcc_eh");
@@ -1076,7 +1052,7 @@ static void construct_linker_job_elf(LinkJob *lj) {
lj->args.append("-lgcc_s");
lj->args.append("--no-as-needed");
}
- } else if (target_is_glibc(g)) {
+ } else if (target_is_glibc(g->zig_target)) {
lj->args.append(build_libunwind(g));
lj->args.append(build_dummy_so(g, "c", 6));
lj->args.append(build_dummy_so(g, "m", 6));
@@ -1084,7 +1060,7 @@ static void construct_linker_job_elf(LinkJob *lj) {
lj->args.append(build_dummy_so(g, "dl", 2));
lj->args.append(build_dummy_so(g, "rt", 1));
lj->args.append(get_libc_crt_file(g, "libc_nonshared.a"));
- } else if (target_is_musl(g)) {
+ } else if (target_is_musl(g->zig_target)) {
lj->args.append(build_libunwind(g));
lj->args.append(build_musl(g));
} else {
@@ -1158,10 +1134,10 @@ static void add_nt_link_args(LinkJob *lj, bool is_library) {
CodeGen *g = lj->codegen;
if (lj->link_in_crt) {
- const char *lib_str = g->is_static ? "lib" : "";
+ const char *lib_str = g->is_dynamic ? "" : "lib";
const char *d_str = (g->build_mode == BuildModeDebug) ? "d" : "";
- if (g->is_static) {
+ if (!g->is_dynamic) {
Buf *cmt_lib_name = buf_sprintf("libcmt%s.lib", d_str);
lj->args.append(buf_ptr(cmt_lib_name));
} else {
@@ -1265,7 +1241,7 @@ static void construct_linker_job_coff(LinkJob *lj) {
lj->args.append(buf_ptr(buf_sprintf("-LIBPATH:%s", buf_ptr(&g->libc->crt_dir))));
}
- if (is_library && !g->is_static) {
+ if (is_library && g->is_dynamic) {
lj->args.append("-DLL");
}
@@ -1278,7 +1254,7 @@ static void construct_linker_job_coff(LinkJob *lj) {
lj->args.append((const char *)buf_ptr(g->link_objects.at(i)));
}
- if (g->out_type == OutTypeExe || (g->out_type == OutTypeLib && !g->is_static)) {
+ if (g->out_type == OutTypeExe || (g->out_type == OutTypeLib && g->is_dynamic)) {
if (g->libc_link_lib == nullptr && !g->is_dummy_so) {
Buf *builtin_a_path = build_a(g, "builtin");
lj->args.append(buf_ptr(builtin_a_path));
@@ -1457,8 +1433,8 @@ static void construct_linker_job_macho(LinkJob *lj) {
}
bool is_lib = g->out_type == OutTypeLib;
- bool is_dyn_lib = !g->is_static && is_lib;
- if (g->is_static) {
+ bool is_dyn_lib = g->is_dynamic && is_lib;
+ if (!g->is_dynamic) {
lj->args.append("-static");
} else {
lj->args.append("-dynamic");
@@ -1509,11 +1485,7 @@ static void construct_linker_job_macho(LinkJob *lj) {
if (g->out_type == OutTypeExe) {
- if (g->is_static) {
- lj->args.append("-no_pie");
- } else {
- lj->args.append("-pie");
- }
+ lj->args.append("-pie");
}
lj->args.append("-o");
@@ -1629,7 +1601,7 @@ void codegen_link(CodeGen *g) {
lj.args.append("-r");
}
- if (g->out_type == OutTypeLib && g->is_static) {
+ if (g->out_type == OutTypeLib && !g->is_dynamic) {
ZigList file_names = {};
for (size_t i = 0; i < g->link_objects.length; i += 1) {
file_names.append((const char *)buf_ptr(g->link_objects.at(i)));
diff --git a/src/main.cpp b/src/main.cpp
index bf05bb281d..81aaaaa368 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -52,7 +52,8 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) {
" --cache [auto|off|on] build in cache, print output path to stdout\n"
" --color [auto|off|on] enable or disable colored error messages\n"
" --disable-gen-h do not generate a C header file (.h)\n"
- " --disable-pic disable Position Independent Code for libraries\n"
+ " --disable-pic disable Position Independent Code\n"
+ " --enable-pic enable Position Independent Code\n"
" --disable-valgrind omit valgrind client requests in debug builds\n"
" --enable-valgrind include valgrind client requests release builds\n"
" --emit [asm|bin|llvm-ir] emit a specific file format as compilation output\n"
@@ -67,7 +68,7 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) {
" --release-safe build with optimizations on and safety on\n"
" --release-small build with size optimizations on and safety off\n"
" --single-threaded source may assume it is only used single-threaded\n"
- " --static output will be statically linked\n"
+ " -dynamic create a shared library (.so; .dll; .dylib)\n"
" --strip exclude debug symbols\n"
" -target [name] -- see the targets command\n"
" --verbose-tokenize enable compiler debug output for tokenization\n"
@@ -397,7 +398,7 @@ int main(int argc, char **argv) {
const char *in_file = nullptr;
Buf *output_dir = nullptr;
bool strip = false;
- bool is_static = false;
+ bool is_dynamic = false;
OutType out_type = OutTypeUnknown;
const char *out_name = nullptr;
bool verbose_tokenize = false;
@@ -432,7 +433,6 @@ int main(int argc, char **argv) {
size_t ver_minor = 0;
size_t ver_patch = 0;
bool timing_info = false;
- bool disable_pic = false;
const char *cache_dir = nullptr;
CliPkg *cur_pkg = allocate(1);
BuildMode build_mode = BuildModeDebug;
@@ -445,6 +445,7 @@ int main(int argc, char **argv) {
Buf *override_std_dir = nullptr;
Buf *main_pkg_path = nullptr;
ValgrindSupport valgrind_support = ValgrindSupportAuto;
+ WantPIC want_pic = WantPICAuto;
ZigList llvm_argv = {0};
llvm_argv.append("zig (LLVM option parsing)");
@@ -620,8 +621,8 @@ int main(int argc, char **argv) {
}
} else if (strcmp(arg, "--strip") == 0) {
strip = true;
- } else if (strcmp(arg, "--static") == 0) {
- is_static = true;
+ } else if (strcmp(arg, "-dynamic") == 0) {
+ is_dynamic = true;
} else if (strcmp(arg, "--verbose-tokenize") == 0) {
verbose_tokenize = true;
} else if (strcmp(arg, "--verbose-ast") == 0) {
@@ -642,12 +643,14 @@ int main(int argc, char **argv) {
each_lib_rpath = true;
} else if (strcmp(arg, "-ftime-report") == 0) {
timing_info = true;
- } else if (strcmp(arg, "--disable-pic") == 0) {
- disable_pic = true;
} else if (strcmp(arg, "--enable-valgrind") == 0) {
valgrind_support = ValgrindSupportEnabled;
} else if (strcmp(arg, "--disable-valgrind") == 0) {
valgrind_support = ValgrindSupportDisabled;
+ } else if (strcmp(arg, "--enable-pic") == 0) {
+ want_pic = WantPICEnabled;
+ } else if (strcmp(arg, "--disable-pic") == 0) {
+ want_pic = WantPICDisabled;
} else if (strcmp(arg, "--system-linker-hack") == 0) {
system_linker_hack = true;
} else if (strcmp(arg, "--single-threaded") == 0) {
@@ -904,12 +907,24 @@ int main(int argc, char **argv) {
}
if (output_dir != nullptr && enable_cache == CacheOptOn) {
- fprintf(stderr, "The --output-dir argument is incompatible with --cache on.\n");
+ fprintf(stderr, "`--output-dir` is incompatible with --cache on.\n");
+ return print_error_usage(arg0);
+ }
+
+ if (target_requires_pic(&target) && want_pic == WantPICDisabled) {
+ Buf triple_buf = BUF_INIT;
+ get_target_triple(&triple_buf, &target);
+ fprintf(stderr, "`--disable-pic` is incompatible with target '%s'\n", buf_ptr(&triple_buf));
return print_error_usage(arg0);
}
if (emit_file_type != EmitFileTypeBinary && in_file == nullptr) {
- fprintf(stderr, "A root source file is required when using --emit asm or --emit llvm-ir");
+ fprintf(stderr, "A root source file is required when using `--emit asm` or `--emit llvm-ir`\n");
+ return print_error_usage(arg0);
+ }
+
+ if (out_type != OutTypeLib && is_dynamic) {
+ fprintf(stderr, "`-dynamic` may only be specified with `build-lib`.\n");
return print_error_usage(arg0);
}
@@ -936,6 +951,7 @@ int main(int argc, char **argv) {
CodeGen *g = codegen_create(main_pkg_path, nullptr, &target,
out_type, build_mode, get_zig_lib_dir(), override_std_dir, nullptr, nullptr);
g->valgrind_support = valgrind_support;
+ g->want_pic = want_pic;
g->is_single_threaded = is_single_threaded;
Buf *builtin_source = codegen_generate_builtin_source(g);
if (fwrite(buf_ptr(builtin_source), 1, buf_len(builtin_source), stdout) != buf_len(builtin_source)) {
@@ -1027,16 +1043,9 @@ int main(int argc, char **argv) {
get_zig_lib_dir(), override_std_dir, libc, cache_dir_buf);
if (llvm_argv.length >= 2) codegen_set_llvm_argv(g, llvm_argv.items + 1, llvm_argv.length - 2);
g->valgrind_support = valgrind_support;
+ g->want_pic = want_pic;
g->subsystem = subsystem;
- if (disable_pic) {
- if (out_type != OutTypeLib || !is_static) {
- fprintf(stderr, "--disable-pic only applies to static libraries");
- return EXIT_FAILURE;
- }
- g->disable_pic = true;
- }
-
g->enable_time_report = timing_info;
codegen_set_out_name(g, buf_out_name);
codegen_set_lib_version(g, ver_major, ver_minor, ver_patch);
@@ -1049,7 +1058,7 @@ int main(int argc, char **argv) {
codegen_set_clang_argv(g, clang_argv.items, clang_argv.length);
codegen_set_strip(g, strip);
- g->is_static = is_static;
+ g->is_dynamic = is_dynamic;
g->dynamic_linker_path = dynamic_linker;
g->verbose_tokenize = verbose_tokenize;
g->verbose_ast = verbose_ast;
diff --git a/src/target.cpp b/src/target.cpp
index 440f0babe3..22d8dd2357 100644
--- a/src/target.cpp
+++ b/src/target.cpp
@@ -693,8 +693,8 @@ void get_target_triple(Buf *triple, const ZigTarget *target) {
ZigLLVMGetEnvironmentTypeName(target->abi));
}
-bool target_is_darwin(const ZigTarget *target) {
- switch (target->os) {
+bool target_os_is_darwin(Os os) {
+ switch (os) {
case OsMacOSX:
case OsIOS:
case OsWatchOS:
@@ -708,7 +708,7 @@ bool target_is_darwin(const ZigTarget *target) {
ZigLLVM_ObjectFormatType target_object_format(const ZigTarget *target) {
if (target->os == OsUefi || target->os == OsWindows) {
return ZigLLVM_COFF;
- } else if (target_is_darwin(target)) {
+ } else if (target_os_is_darwin(target->os)) {
return ZigLLVM_MachO;
}
if (target->arch == ZigLLVM_wasm32 ||
@@ -942,7 +942,7 @@ const char *target_lib_file_ext(const ZigTarget *target, bool is_static,
} else {
if (is_static) {
return ".a";
- } else if (target_is_darwin(target)) {
+ } else if (target_os_is_darwin(target->os)) {
return buf_ptr(buf_sprintf(".%" ZIG_PRI_usize ".%" ZIG_PRI_usize ".%" ZIG_PRI_usize ".dylib",
version_major, version_minor, version_patch));
} else {
@@ -1279,7 +1279,7 @@ bool target_has_valgrind_support(const ZigTarget *target) {
case ZigLLVM_UnknownArch:
zig_unreachable();
case ZigLLVM_x86_64:
- return (target->os == OsLinux || target_is_darwin(target) || target->os == OsSolaris ||
+ return (target->os == OsLinux || target_os_is_darwin(target->os) || target->os == OsSolaris ||
(target->os == OsWindows && target->abi != ZigLLVM_MSVC));
default:
return false;
@@ -1287,11 +1287,11 @@ bool target_has_valgrind_support(const ZigTarget *target) {
zig_unreachable();
}
-bool target_requires_libc(const ZigTarget *target) {
+bool target_os_requires_libc(Os os) {
// On Darwin, we always link libSystem which contains libc.
// Similarly on FreeBSD and NetBSD we always link system libc
// since this is the stable syscall interface.
- return (target_is_darwin(target) || target->os == OsFreeBSD || target->os == OsNetBSD);
+ return (target_os_is_darwin(os) || os == OsFreeBSD || os == OsNetBSD);
}
bool target_supports_fpic(const ZigTarget *target) {
@@ -1300,6 +1300,19 @@ bool target_supports_fpic(const ZigTarget *target) {
return target->os != OsWindows;
}
+bool target_requires_pic(const ZigTarget *target) {
+ // This function returns whether non-pic code is completely invalid on the given target.
+ return target->os == OsWindows || target_os_requires_libc(target->os) || target_is_glibc(target);
+}
+
+bool target_is_glibc(const ZigTarget *target) {
+ return target->os == OsLinux && target_abi_is_gnu(target->abi);
+}
+
+bool target_is_musl(const ZigTarget *target) {
+ return target->os == OsLinux && target_abi_is_musl(target->abi);
+}
+
ZigLLVM_EnvironmentType target_default_abi(ZigLLVM_ArchType arch, Os os) {
switch (os) {
case OsFreestanding:
@@ -1458,3 +1471,29 @@ const char *target_libc_generic_name(const ZigTarget *target) {
}
zig_unreachable();
}
+
+bool target_is_libc_lib_name(const ZigTarget *target, const char *name) {
+ if (strcmp(name, "c") == 0)
+ return true;
+
+ if (target_abi_is_gnu(target->abi) || target_abi_is_musl(target->abi)) {
+ if (strcmp(name, "m") == 0)
+ return true;
+ if (strcmp(name, "rt") == 0)
+ return true;
+ if (strcmp(name, "pthread") == 0)
+ return true;
+ if (strcmp(name, "crypt") == 0)
+ return true;
+ if (strcmp(name, "util") == 0)
+ return true;
+ if (strcmp(name, "xnet") == 0)
+ return true;
+ if (strcmp(name, "resolv") == 0)
+ return true;
+ if (strcmp(name, "dl") == 0)
+ return true;
+ }
+
+ return false;
+}
diff --git a/src/target.hpp b/src/target.hpp
index b79d95a530..072bfc184c 100644
--- a/src/target.hpp
+++ b/src/target.hpp
@@ -155,13 +155,17 @@ ZigLLVM_OSType get_llvm_os_type(Os os_type);
bool target_is_arm(const ZigTarget *target);
bool target_allows_addr_zero(const ZigTarget *target);
bool target_has_valgrind_support(const ZigTarget *target);
-bool target_is_darwin(const ZigTarget *target);
-bool target_requires_libc(const ZigTarget *target);
+bool target_os_is_darwin(Os os);
+bool target_os_requires_libc(Os os);
bool target_can_build_libc(const ZigTarget *target);
const char *target_libc_generic_name(const ZigTarget *target);
+bool target_is_libc_lib_name(const ZigTarget *target, const char *name);
bool target_supports_fpic(const ZigTarget *target);
+bool target_requires_pic(const ZigTarget *target);
bool target_abi_is_gnu(ZigLLVM_EnvironmentType abi);
bool target_abi_is_musl(ZigLLVM_EnvironmentType abi);
+bool target_is_glibc(const ZigTarget *target);
+bool target_is_musl(const ZigTarget *target);
uint32_t target_arch_pointer_bit_width(ZigLLVM_ArchType arch);
diff --git a/std/build.zig b/std/build.zig
index 6d1749eca9..38be979da6 100644
--- a/std/build.zig
+++ b/std/build.zig
@@ -157,10 +157,6 @@ pub const Builder = struct {
return LibExeObjStep.createExecutable(self, name, root_src, false);
}
- pub fn addStaticExecutable(self: *Builder, name: []const u8, root_src: ?[]const u8) *LibExeObjStep {
- return LibExeObjStep.createExecutable(self, name, root_src, true);
- }
-
pub fn addObject(self: *Builder, name: []const u8, root_src: ?[]const u8) *LibExeObjStep {
return LibExeObjStep.createObject(self, name, root_src);
}
@@ -920,7 +916,7 @@ pub const LibExeObjStep = struct {
target: Target,
linker_script: ?[]const u8,
out_filename: []const u8,
- static: bool,
+ is_dynamic: bool,
version: Version,
build_mode: builtin.Mode,
kind: Kind,
@@ -975,13 +971,13 @@ pub const LibExeObjStep = struct {
pub fn createSharedLibrary(builder: *Builder, name: []const u8, root_src: ?[]const u8, ver: Version) *LibExeObjStep {
const self = builder.allocator.create(LibExeObjStep) catch unreachable;
- self.* = initExtraArgs(builder, name, root_src, Kind.Lib, false, ver);
+ self.* = initExtraArgs(builder, name, root_src, Kind.Lib, true, ver);
return self;
}
pub fn createStaticLibrary(builder: *Builder, name: []const u8, root_src: ?[]const u8) *LibExeObjStep {
const self = builder.allocator.create(LibExeObjStep) catch unreachable;
- self.* = initExtraArgs(builder, name, root_src, Kind.Lib, true, builder.version(0, 0, 0));
+ self.* = initExtraArgs(builder, name, root_src, Kind.Lib, false, builder.version(0, 0, 0));
return self;
}
@@ -991,9 +987,9 @@ pub const LibExeObjStep = struct {
return self;
}
- pub fn createExecutable(builder: *Builder, name: []const u8, root_src: ?[]const u8, static: bool) *LibExeObjStep {
+ pub fn createExecutable(builder: *Builder, name: []const u8, root_src: ?[]const u8, is_dynamic: bool) *LibExeObjStep {
const self = builder.allocator.create(LibExeObjStep) catch unreachable;
- self.* = initExtraArgs(builder, name, root_src, Kind.Exe, static, builder.version(0, 0, 0));
+ self.* = initExtraArgs(builder, name, root_src, Kind.Exe, is_dynamic, builder.version(0, 0, 0));
return self;
}
@@ -1003,14 +999,14 @@ pub const LibExeObjStep = struct {
return self;
}
- fn initExtraArgs(builder: *Builder, name: []const u8, root_src: ?[]const u8, kind: Kind, static: bool, ver: Version) LibExeObjStep {
+ fn initExtraArgs(builder: *Builder, name: []const u8, root_src: ?[]const u8, kind: Kind, is_dynamic: bool, ver: Version) LibExeObjStep {
var self = LibExeObjStep{
.strip = false,
.builder = builder,
.verbose_link = false,
.verbose_cc = false,
.build_mode = builtin.Mode.Debug,
- .static = static,
+ .is_dynamic = is_dynamic,
.kind = kind,
.root_src = root_src,
.name = name,
@@ -1057,7 +1053,7 @@ pub const LibExeObjStep = struct {
self.out_filename = self.builder.fmt("test{}", self.target.exeFileExt());
},
Kind.Lib => {
- if (self.static) {
+ if (!self.is_dynamic) {
switch (self.target.getOs()) {
builtin.Os.windows => {
self.out_filename = self.builder.fmt("{}.lib", self.name);
@@ -1147,7 +1143,7 @@ pub const LibExeObjStep = struct {
}
pub fn isDynamicLibrary(self: *LibExeObjStep) bool {
- return self.kind == Kind.Lib and !self.static;
+ return self.kind == Kind.Lib and self.is_dynamic;
}
pub fn linkSystemLibrary(self: *LibExeObjStep, name: []const u8) void {
@@ -1333,7 +1329,7 @@ pub const LibExeObjStep = struct {
try zig_args.append(other.getOutputPath());
},
LibExeObjStep.Kind.Lib => {
- if (other.static or self.target.isWindows()) {
+ if (!other.is_dynamic or self.target.isWindows()) {
try zig_args.append("--object");
try zig_args.append(other.getOutputLibPath());
} else {
@@ -1413,7 +1409,7 @@ pub const LibExeObjStep = struct {
zig_args.append("--name") catch unreachable;
zig_args.append(self.name) catch unreachable;
- if (self.kind == Kind.Lib and !self.static) {
+ if (self.kind == Kind.Lib and self.is_dynamic) {
zig_args.append("--ver-major") catch unreachable;
zig_args.append(builder.fmt("{}", self.version.major)) catch unreachable;
@@ -1423,8 +1419,8 @@ pub const LibExeObjStep = struct {
zig_args.append("--ver-patch") catch unreachable;
zig_args.append(builder.fmt("{}", self.version.patch)) catch unreachable;
}
- if (self.static) {
- zig_args.append("--static") catch unreachable;
+ if (self.is_dynamic) {
+ try zig_args.append("-dynamic");
}
switch (self.target) {
@@ -1531,7 +1527,7 @@ pub const LibExeObjStep = struct {
self.output_dir = os.path.dirname(output_path).?;
}
- if (self.kind == Kind.Lib and !self.static and self.target.wantSharedLibSymLinks()) {
+ if (self.kind == Kind.Lib and self.is_dynamic and self.target.wantSharedLibSymLinks()) {
try doAtomicSymLinks(builder.allocator, self.getOutputPath(), self.major_only_filename, self.name_only_filename);
}
}
@@ -1677,7 +1673,7 @@ const InstallArtifactStep = struct {
};
self.step.dependOn(&artifact.step);
builder.pushInstalledFile(self.dest_file);
- if (self.artifact.kind == LibExeObjStep.Kind.Lib and !self.artifact.static) {
+ if (self.artifact.kind == LibExeObjStep.Kind.Lib and self.artifact.is_dynamic) {
builder.pushInstalledFile(os.path.join(
builder.allocator,
[][]const u8{ builder.lib_dir, artifact.major_only_filename },
@@ -1700,11 +1696,11 @@ const InstallArtifactStep = struct {
LibExeObjStep.Kind.Obj => unreachable,
LibExeObjStep.Kind.Test => unreachable,
LibExeObjStep.Kind.Exe => u32(0o755),
- LibExeObjStep.Kind.Lib => if (self.artifact.static) u32(0o666) else u32(0o755),
+ LibExeObjStep.Kind.Lib => if (!self.artifact.is_dynamic) u32(0o666) else u32(0o755),
},
};
try builder.copyFileMode(self.artifact.getOutputPath(), self.dest_file, mode);
- if (self.artifact.kind == LibExeObjStep.Kind.Lib and !self.artifact.static) {
+ if (self.artifact.isDynamicLibrary()) {
try doAtomicSymLinks(builder.allocator, self.dest_file, self.artifact.major_only_filename, self.artifact.name_only_filename);
}
}
From 20c36949e1d82e9e8790ca51a0f7713f6e853ff0 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Wed, 13 Mar 2019 23:15:34 -0400
Subject: [PATCH 05/24] fix target_requires_pic and reloc_mode
disable failing thread local variable test.
see #2063
---
src/codegen.cpp | 13 ++++++++++---
src/main.cpp | 5 ++++-
src/target.cpp | 5 +++--
src/target.hpp | 2 +-
std/os/test.zig | 4 ++++
test/stage1/behavior/misc.zig | 5 +++++
6 files changed, 27 insertions(+), 7 deletions(-)
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 11a368cda6..44e66c4dd8 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -7288,7 +7288,7 @@ static bool detect_dynamic_link(CodeGen *g) {
return true;
if (g->zig_target->os == OsFreestanding)
return false;
- if (target_requires_pic(g->zig_target))
+ if (target_requires_pic(g->zig_target, g->libc_link_lib != nullptr))
return true;
if (g->out_type == OutTypeExe) {
// If there are no dynamic libraries then we can disable PIC
@@ -7304,7 +7304,7 @@ static bool detect_dynamic_link(CodeGen *g) {
}
static bool detect_pic(CodeGen *g) {
- if (target_requires_pic(g->zig_target))
+ if (target_requires_pic(g->zig_target, g->libc_link_lib != nullptr))
return true;
switch (g->want_pic) {
case WantPICDisabled:
@@ -7848,7 +7848,14 @@ static void init(CodeGen *g) {
bool is_optimized = g->build_mode != BuildModeDebug;
LLVMCodeGenOptLevel opt_level = is_optimized ? LLVMCodeGenLevelAggressive : LLVMCodeGenLevelNone;
- LLVMRelocMode reloc_mode = g->have_pic ? LLVMRelocPIC: LLVMRelocStatic;
+ LLVMRelocMode reloc_mode;
+ if (g->have_pic) {
+ reloc_mode = LLVMRelocPIC;
+ } else if (g->have_dynamic_link) {
+ reloc_mode = LLVMRelocDynamicNoPic;
+ } else {
+ reloc_mode = LLVMRelocStatic;
+ }
const char *target_specific_cpu_args;
const char *target_specific_features;
diff --git a/src/main.cpp b/src/main.cpp
index 81aaaaa368..f58a00209a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -417,6 +417,7 @@ int main(int argc, char **argv) {
ZigList link_libs = {0};
ZigList forbidden_link_libs = {0};
ZigList frameworks = {0};
+ bool have_libc = false;
const char *target_string = nullptr;
bool rdynamic = false;
const char *mmacosx_version_min = nullptr;
@@ -745,6 +746,8 @@ int main(int argc, char **argv) {
} else if (strcmp(arg, "--library-path") == 0 || strcmp(arg, "-L") == 0) {
lib_dirs.append(argv[i]);
} else if (strcmp(arg, "--library") == 0) {
+ if (strcmp(argv[i], "c") == 0)
+ have_libc = true;
link_libs.append(argv[i]);
} else if (strcmp(arg, "--forbid-library") == 0) {
forbidden_link_libs.append(argv[i]);
@@ -911,7 +914,7 @@ int main(int argc, char **argv) {
return print_error_usage(arg0);
}
- if (target_requires_pic(&target) && want_pic == WantPICDisabled) {
+ if (target_requires_pic(&target, have_libc) && want_pic == WantPICDisabled) {
Buf triple_buf = BUF_INIT;
get_target_triple(&triple_buf, &target);
fprintf(stderr, "`--disable-pic` is incompatible with target '%s'\n", buf_ptr(&triple_buf));
diff --git a/src/target.cpp b/src/target.cpp
index 22d8dd2357..7239ea17ba 100644
--- a/src/target.cpp
+++ b/src/target.cpp
@@ -1300,9 +1300,10 @@ bool target_supports_fpic(const ZigTarget *target) {
return target->os != OsWindows;
}
-bool target_requires_pic(const ZigTarget *target) {
+bool target_requires_pic(const ZigTarget *target, bool linking_libc) {
// This function returns whether non-pic code is completely invalid on the given target.
- return target->os == OsWindows || target_os_requires_libc(target->os) || target_is_glibc(target);
+ return target->os == OsWindows || target_os_requires_libc(target->os) ||
+ (linking_libc && target_is_glibc(target));
}
bool target_is_glibc(const ZigTarget *target) {
diff --git a/src/target.hpp b/src/target.hpp
index 072bfc184c..d42ebcc576 100644
--- a/src/target.hpp
+++ b/src/target.hpp
@@ -161,7 +161,7 @@ bool target_can_build_libc(const ZigTarget *target);
const char *target_libc_generic_name(const ZigTarget *target);
bool target_is_libc_lib_name(const ZigTarget *target, const char *name);
bool target_supports_fpic(const ZigTarget *target);
-bool target_requires_pic(const ZigTarget *target);
+bool target_requires_pic(const ZigTarget *target, bool linking_libc);
bool target_abi_is_gnu(ZigLLVM_EnvironmentType abi);
bool target_abi_is_musl(ZigLLVM_EnvironmentType abi);
bool target_is_glibc(const ZigTarget *target);
diff --git a/std/os/test.zig b/std/os/test.zig
index ab21ea1568..943960a925 100644
--- a/std/os/test.zig
+++ b/std/os/test.zig
@@ -108,6 +108,10 @@ test "AtomicFile" {
test "thread local storage" {
if (builtin.single_threaded) return error.SkipZigTest;
+ if (!builtin.position_independent_code and !builtin.link_libc) {
+ // TODO https://github.com/ziglang/zig/issues/2063
+ return error.SkipZigTest;
+ }
const thread1 = try std.os.spawnThread({}, testTls);
const thread2 = try std.os.spawnThread({}, testTls);
testTls({});
diff --git a/test/stage1/behavior/misc.zig b/test/stage1/behavior/misc.zig
index a2d752457c..36246162f5 100644
--- a/test/stage1/behavior/misc.zig
+++ b/test/stage1/behavior/misc.zig
@@ -688,6 +688,11 @@ fn getNull() ?*i32 {
}
test "thread local variable" {
+ if (!builtin.position_independent_code and !builtin.link_libc) {
+ // TODO https://github.com/ziglang/zig/issues/2063
+ return error.SkipZigTest;
+ }
+
const S = struct {
threadlocal var t: i32 = 1234;
};
From 927efe5f4251382ced866870de4ac50ed14d72d3 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Wed, 13 Mar 2019 23:35:58 -0400
Subject: [PATCH 06/24] force windows to link against dynamic msvcrt
See #2064
---
src/link.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/link.cpp b/src/link.cpp
index e4f6fd3dd0..1fc3ad91e4 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -1134,10 +1134,12 @@ static void add_nt_link_args(LinkJob *lj, bool is_library) {
CodeGen *g = lj->codegen;
if (lj->link_in_crt) {
- const char *lib_str = g->is_dynamic ? "" : "lib";
+ // TODO: https://github.com/ziglang/zig/issues/2064
+ bool is_dynamic = true; // g->is_dynamic;
+ const char *lib_str = is_dynamic ? "" : "lib";
const char *d_str = (g->build_mode == BuildModeDebug) ? "d" : "";
- if (!g->is_dynamic) {
+ if (!is_dynamic) {
Buf *cmt_lib_name = buf_sprintf("libcmt%s.lib", d_str);
lj->args.append(buf_ptr(cmt_lib_name));
} else {
From 862ac42a6e1414d3109ec309d36000a8f22821eb Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Wed, 13 Mar 2019 23:44:13 -0400
Subject: [PATCH 07/24] ignore -lm on darwin because it's handled by libSystem
---
src/link.cpp | 14 +++++++-------
src/target.cpp | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/link.cpp b/src/link.cpp
index 1fc3ad91e4..3e71d84902 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -1526,15 +1526,15 @@ static void construct_linker_job_macho(LinkJob *lj) {
if (g->zig_target->is_native) {
for (size_t lib_i = 0; lib_i < g->link_libs_list.length; lib_i += 1) {
LinkLib *link_lib = g->link_libs_list.at(lib_i);
- if (buf_eql_str(link_lib->name, "c")) {
+ if (target_is_libc_lib_name(g->zig_target, buf_ptr(link_lib->name))) {
+ // handled by libSystem
continue;
+ }
+ if (strchr(buf_ptr(link_lib->name), '/') == nullptr) {
+ Buf *arg = buf_sprintf("-l%s", buf_ptr(link_lib->name));
+ lj->args.append(buf_ptr(arg));
} else {
- if (strchr(buf_ptr(link_lib->name), '/') == nullptr) {
- Buf *arg = buf_sprintf("-l%s", buf_ptr(link_lib->name));
- lj->args.append(buf_ptr(arg));
- } else {
- lj->args.append(buf_ptr(link_lib->name));
- }
+ lj->args.append(buf_ptr(link_lib->name));
}
}
// on Darwin, libSystem has libc in it, but also you have to use it
diff --git a/src/target.cpp b/src/target.cpp
index 7239ea17ba..a3bccabcc4 100644
--- a/src/target.cpp
+++ b/src/target.cpp
@@ -1477,7 +1477,7 @@ bool target_is_libc_lib_name(const ZigTarget *target, const char *name) {
if (strcmp(name, "c") == 0)
return true;
- if (target_abi_is_gnu(target->abi) || target_abi_is_musl(target->abi)) {
+ if (target_abi_is_gnu(target->abi) || target_abi_is_musl(target->abi) || target_os_is_darwin(target->os)) {
if (strcmp(name, "m") == 0)
return true;
if (strcmp(name, "rt") == 0)
From e861da03f9b9d1261cf32872ea942ee7a63812d3 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Thu, 14 Mar 2019 00:07:05 -0400
Subject: [PATCH 08/24] macho linking: always -dynamic for non-static-libs
---
src/link.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/link.cpp b/src/link.cpp
index 3e71d84902..32b83854b3 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -1436,7 +1436,7 @@ static void construct_linker_job_macho(LinkJob *lj) {
bool is_lib = g->out_type == OutTypeLib;
bool is_dyn_lib = g->is_dynamic && is_lib;
- if (!g->is_dynamic) {
+ if (is_lib && !g->is_dynamic) {
lj->args.append("-static");
} else {
lj->args.append("-dynamic");
From 080dd27157e79adc8e5d5b7c1dcf94919624abab Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Thu, 14 Mar 2019 11:55:29 -0400
Subject: [PATCH 09/24] breaking: fix @typeInfo handling of global error set
type
`builtin.TypeInfo.ErrorSet` is now `?[]Error`
instead of `struct{errors:[]Error}`.
closes #1936
---
doc/docgen.zig | 2 +-
src/codegen.cpp | 4 +---
src/ir.cpp | 15 +++++----------
std/fmt.zig | 4 ----
std/meta.zig | 30 +++---------------------------
std/testing.zig | 1 -
test/stage1/behavior/type_info.zig | 10 +++++++---
7 files changed, 17 insertions(+), 49 deletions(-)
diff --git a/doc/docgen.zig b/doc/docgen.zig
index 75e8d2d28d..1a9b6c1d72 100644
--- a/doc/docgen.zig
+++ b/doc/docgen.zig
@@ -707,7 +707,7 @@ const builtin_types = [][]const u8{
"f16", "f32", "f64", "f128", "c_longdouble", "c_short",
"c_ushort", "c_int", "c_uint", "c_long", "c_ulong", "c_longlong",
"c_ulonglong", "c_char", "c_void", "void", "bool", "isize",
- "usize", "noreturn", "type", "error", "comptime_int", "comptime_float",
+ "usize", "noreturn", "type", "anyerror", "comptime_int", "comptime_float",
};
fn isType(name: []const u8) bool {
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 44e66c4dd8..df907915bb 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -7581,9 +7581,7 @@ Buf *codegen_generate_builtin_source(CodeGen *g) {
" value: comptime_int,\n"
" };\n"
"\n"
- " pub const ErrorSet = struct {\n"
- " errors: []Error,\n"
- " };\n"
+ " pub const ErrorSet = ?[]Error;\n"
"\n"
" pub const EnumField = struct {\n"
" name: []const u8,\n"
diff --git a/src/ir.cpp b/src/ir.cpp
index f138080f00..61be6670a5 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -18265,21 +18265,16 @@ static Error ir_make_type_info_value(IrAnalyze *ira, IrInstruction *source_instr
result->special = ConstValSpecialStatic;
result->type = ir_type_info_get_type(ira, "ErrorSet", nullptr);
- ConstExprValue *fields = create_const_vals(1);
- result->data.x_struct.fields = fields;
-
- // errors: []TypeInfo.Error
- ensure_field_index(result->type, "errors", 0);
-
ZigType *type_info_error_type = ir_type_info_get_type(ira, "Error", nullptr);
if (!resolve_inferred_error_set(ira->codegen, type_entry, source_instr->source_node)) {
return ErrorSemanticAnalyzeFail;
}
if (type_is_global_error_set(type_entry)) {
- ir_add_error(ira, source_instr,
- buf_sprintf("TODO: compiler bug: implement @typeInfo support for anyerror. https://github.com/ziglang/zig/issues/1936"));
- return ErrorSemanticAnalyzeFail;
+ result->data.x_optional = nullptr;
+ break;
}
+ ConstExprValue *slice_val = create_const_vals(1);
+ result->data.x_optional = slice_val;
uint32_t error_count = type_entry->data.error_set.err_count;
ConstExprValue *error_array = create_const_vals(1);
@@ -18288,7 +18283,7 @@ static Error ir_make_type_info_value(IrAnalyze *ira, IrInstruction *source_instr
error_array->data.x_array.special = ConstArraySpecialNone;
error_array->data.x_array.data.s_none.elements = create_const_vals(error_count);
- init_const_slice(ira->codegen, &fields[0], error_array, 0, error_count, false);
+ init_const_slice(ira->codegen, slice_val, error_array, 0, error_count, false);
for (uint32_t error_index = 0; error_index < error_count; error_index++) {
ErrorTableEntry *error = type_entry->data.error_set.errors[error_index];
ConstExprValue *error_val = &error_array->data.x_array.data.s_none.elements[error_index];
diff --git a/std/fmt.zig b/std/fmt.zig
index e01ba2033b..202175ebd8 100644
--- a/std/fmt.zig
+++ b/std/fmt.zig
@@ -112,10 +112,6 @@ pub fn formatType(
output: fn (@typeOf(context), []const u8) Errors!void,
) Errors!void {
const T = @typeOf(value);
- if (T == anyerror) {
- try output(context, "error.");
- return output(context, @errorName(value));
- }
switch (@typeInfo(T)) {
builtin.TypeId.ComptimeInt, builtin.TypeId.Int, builtin.TypeId.Float => {
return formatValue(value, fmt, context, Errors, output);
diff --git a/std/meta.zig b/std/meta.zig
index 215c5dfad8..a8c7e4b415 100644
--- a/std/meta.zig
+++ b/std/meta.zig
@@ -13,32 +13,8 @@ const TypeInfo = builtin.TypeInfo;
pub fn tagName(v: var) []const u8 {
const T = @typeOf(v);
switch (@typeInfo(T)) {
- TypeId.Enum => |info| {
- const Tag = info.tag_type;
- inline for (info.fields) |field| {
- if (field.value == @enumToInt(v)) return field.name;
- }
-
- unreachable;
- },
- TypeId.Union => |info| {
- const UnionTag = if (info.tag_type) |UT| UT else @compileError("union is untagged");
- const Tag = @typeInfo(UnionTag).Enum.tag_type;
- inline for (info.fields) |field| {
- if (field.enum_field.?.value == @enumToInt(UnionTag(v)))
- return field.name;
- }
-
- unreachable;
- },
- TypeId.ErrorSet => |info| {
- inline for (info.errors) |err| {
- if (err.value == @errorToInt(v)) return err.name;
- }
-
- unreachable;
- },
- else => @compileError("expected enum, error set or union type, found '" ++ @typeName(T) ++ "'"),
+ TypeId.ErrorSet => return @errorName(v),
+ else => return @tagName(v),
}
}
@@ -267,7 +243,7 @@ pub fn fields(comptime T: type) switch (@typeInfo(T)) {
TypeId.Struct => |info| info.fields,
TypeId.Union => |info| info.fields,
TypeId.Enum => |info| info.fields,
- TypeId.ErrorSet => |info| info.errors,
+ TypeId.ErrorSet => |errors| errors.?, // must be non global error set
else => @compileError("Expected struct, union, error set or enum type, found '" ++ @typeName(T) ++ "'"),
};
}
diff --git a/std/testing.zig b/std/testing.zig
index be414181f2..7ed60ed2ba 100644
--- a/std/testing.zig
+++ b/std/testing.zig
@@ -5,7 +5,6 @@ const std = @import("std.zig");
/// This function is intended to be used only in tests. It prints diagnostics to stderr
/// and then aborts when actual_error_union is not expected_error.
pub fn expectError(expected_error: anyerror, actual_error_union: var) void {
- // TODO remove the workaround here for https://github.com/ziglang/zig/issues/1936
if (actual_error_union) |actual_payload| {
// TODO remove workaround here for https://github.com/ziglang/zig/issues/557
if (@sizeOf(@typeOf(actual_payload)) == 0) {
diff --git a/test/stage1/behavior/type_info.zig b/test/stage1/behavior/type_info.zig
index 3eb91d534f..8676c7628d 100644
--- a/test/stage1/behavior/type_info.zig
+++ b/test/stage1/behavior/type_info.zig
@@ -143,14 +143,18 @@ fn testErrorSet() void {
const error_set_info = @typeInfo(TestErrorSet);
expect(TypeId(error_set_info) == TypeId.ErrorSet);
- expect(error_set_info.ErrorSet.errors.len == 3);
- expect(mem.eql(u8, error_set_info.ErrorSet.errors[0].name, "First"));
- expect(error_set_info.ErrorSet.errors[2].value == @errorToInt(TestErrorSet.Third));
+ expect(error_set_info.ErrorSet.?.len == 3);
+ expect(mem.eql(u8, error_set_info.ErrorSet.?[0].name, "First"));
+ expect(error_set_info.ErrorSet.?[2].value == @errorToInt(TestErrorSet.Third));
const error_union_info = @typeInfo(TestErrorSet!usize);
expect(TypeId(error_union_info) == TypeId.ErrorUnion);
expect(error_union_info.ErrorUnion.error_set == TestErrorSet);
expect(error_union_info.ErrorUnion.payload == usize);
+
+ const global_info = @typeInfo(anyerror);
+ expect(TypeId(global_info) == TypeId.ErrorSet);
+ expect(global_info.ErrorSet == null);
}
test "type info: enum info" {
From b1c8c7973370caf638a4a278395616848c02b038 Mon Sep 17 00:00:00 2001
From: Akuli
Date: Thu, 14 Mar 2019 20:48:33 +0200
Subject: [PATCH 10/24] Add /lib/x86_64-linux-gnu or similar to default system
library search paths
this makes compiling with libraries like zlib and ncurses easier
---
std/build.zig | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/std/build.zig b/std/build.zig
index 38be979da6..558372b788 100644
--- a/std/build.zig
+++ b/std/build.zig
@@ -372,6 +372,10 @@ pub const Builder = struct {
.abi = builtin.abi,
}).linuxTriple(self.allocator);
+ // TODO: $ ld --verbose | grep SEARCH_DIR
+ // the output contains some paths that end with lib64, maybe include them too?
+ // also, what is the best possible order of things?
+
self.addNativeSystemIncludeDir("/usr/local/include");
self.addNativeSystemLibPath("/usr/local/lib");
@@ -380,6 +384,11 @@ pub const Builder = struct {
self.addNativeSystemIncludeDir("/usr/include");
self.addNativeSystemLibPath("/usr/lib");
+
+ // example: on a 64-bit debian-based linux distro, with zlib installed from apt:
+ // zlib.h is in /usr/include (added above)
+ // libz.so.1 is in /lib/x86_64-linux-gnu (added here)
+ self.addNativeSystemLibPath(self.fmt("/lib/{}", triple));
},
}
}
From 3ef9b899e4ea24af415381bf876c281d5ca9574c Mon Sep 17 00:00:00 2001
From: Jimmi Holst Christensen
Date: Fri, 15 Mar 2019 11:17:21 +0100
Subject: [PATCH 11/24] workaround for #2043
---
src/translate_c.cpp | 36 +++++++++-------
test/translate_c.zig | 100 +++++++++++++++++++++----------------------
2 files changed, 71 insertions(+), 65 deletions(-)
diff --git a/src/translate_c.cpp b/src/translate_c.cpp
index c56d31eb2d..f192779826 100644
--- a/src/translate_c.cpp
+++ b/src/translate_c.cpp
@@ -446,6 +446,12 @@ static AstNode *trans_create_node_inline_fn(Context *c, Buf *fn_name, AstNode *r
return fn_def;
}
+static AstNode *trans_create_node_grouped_expr(Context *c, AstNode *child) {
+ AstNode *node = trans_create_node(c, NodeTypeGroupedExpr);
+ node->data.grouped_expr = child;
+ return node;
+}
+
static AstNode *get_global(Context *c, Buf *name) {
{
auto entry = c->global_table.maybe_get(name);
@@ -1314,11 +1320,11 @@ static AstNode *trans_create_assign(Context *c, ResultUsed result_used, TransSco
} else {
// worst case
// c: lhs = rhs
- // zig: x: {
+ // zig: (x: {
// zig: const _tmp = rhs;
// zig: lhs = _tmp;
// zig: break :x _tmp
- // zig: }
+ // zig: })
TransScopeBlock *child_scope = trans_scope_block_create(c, scope);
Buf *label_name = buf_create_from_str("x");
@@ -1343,7 +1349,7 @@ static AstNode *trans_create_assign(Context *c, ResultUsed result_used, TransSco
AstNode *tmp_symbol_node = trans_create_node_symbol(c, tmp_var_name);
child_scope->node->data.block.statements.append(trans_create_node_break(c, label_name, tmp_symbol_node));
- return child_scope->node;
+ return trans_create_node_grouped_expr(c, child_scope->node);
}
}
@@ -1499,11 +1505,11 @@ static AstNode *trans_create_compound_assign_shift(Context *c, ResultUsed result
} else {
// need more complexity. worst case, this looks like this:
// c: lhs >>= rhs
- // zig: x: {
+ // zig: (x: {
// zig: const _ref = &lhs;
// zig: *_ref = result_type(operation_type(*_ref) >> u5(rhs));
// zig: break :x *_ref
- // zig: }
+ // zig: })
// where u5 is the appropriate type
TransScopeBlock *child_scope = trans_scope_block_create(c, scope);
@@ -1556,7 +1562,7 @@ static AstNode *trans_create_compound_assign_shift(Context *c, ResultUsed result
trans_create_node_symbol(c, tmp_var_name))));
}
- return child_scope->node;
+ return trans_create_node_grouped_expr(c, child_scope->node);
}
}
@@ -1574,11 +1580,11 @@ static AstNode *trans_create_compound_assign(Context *c, ResultUsed result_used,
} else {
// need more complexity. worst case, this looks like this:
// c: lhs += rhs
- // zig: x: {
+ // zig: (x: {
// zig: const _ref = &lhs;
// zig: *_ref = *_ref + rhs;
// zig: break :x *_ref
- // zig: }
+ // zig: })
TransScopeBlock *child_scope = trans_scope_block_create(c, scope);
Buf *label_name = buf_create_from_str("x");
@@ -1615,7 +1621,7 @@ static AstNode *trans_create_compound_assign(Context *c, ResultUsed result_used,
trans_create_node_ptr_deref(c,
trans_create_node_symbol(c, tmp_var_name))));
- return child_scope->node;
+ return trans_create_node_grouped_expr(c, child_scope->node);
}
}
@@ -1911,12 +1917,12 @@ static AstNode *trans_create_post_crement(Context *c, ResultUsed result_used, Tr
}
// worst case
// c: expr++
- // zig: x: {
+ // zig: (x: {
// zig: const _ref = &expr;
// zig: const _tmp = *_ref;
// zig: *_ref += 1;
// zig: break :x _tmp
- // zig: }
+ // zig: })
TransScopeBlock *child_scope = trans_scope_block_create(c, scope);
Buf *label_name = buf_create_from_str("x");
child_scope->node->data.block.name = label_name;
@@ -1948,7 +1954,7 @@ static AstNode *trans_create_post_crement(Context *c, ResultUsed result_used, Tr
// break :x _tmp
child_scope->node->data.block.statements.append(trans_create_node_break(c, label_name, trans_create_node_symbol(c, tmp_var_name)));
- return child_scope->node;
+ return trans_create_node_grouped_expr(c, child_scope->node);
}
static AstNode *trans_create_pre_crement(Context *c, ResultUsed result_used, TransScope *scope,
@@ -1967,11 +1973,11 @@ static AstNode *trans_create_pre_crement(Context *c, ResultUsed result_used, Tra
}
// worst case
// c: ++expr
- // zig: x: {
+ // zig: (x: {
// zig: const _ref = &expr;
// zig: *_ref += 1;
// zig: break :x *_ref
- // zig: }
+ // zig: })
TransScopeBlock *child_scope = trans_scope_block_create(c, scope);
Buf *label_name = buf_create_from_str("x");
child_scope->node->data.block.name = label_name;
@@ -1998,7 +2004,7 @@ static AstNode *trans_create_pre_crement(Context *c, ResultUsed result_used, Tra
trans_create_node_symbol(c, ref_var_name));
child_scope->node->data.block.statements.append(trans_create_node_break(c, label_name, deref_expr));
- return child_scope->node;
+ return trans_create_node_grouped_expr(c, child_scope->node);
}
static AstNode *trans_unary_operator(Context *c, ResultUsed result_used, TransScope *scope, const clang::UnaryOperator *stmt) {
diff --git a/test/translate_c.zig b/test/translate_c.zig
index e83ca74786..5ed57de2f4 100644
--- a/test/translate_c.zig
+++ b/test/translate_c.zig
@@ -643,11 +643,11 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
\\pub export fn max(a: c_int) void {
\\ var b: c_int = undefined;
\\ var c: c_int = undefined;
- \\ c = x: {
+ \\ c = (x: {
\\ const _tmp = a;
\\ b = _tmp;
\\ break :x _tmp;
- \\ };
+ \\ });
\\}
);
@@ -820,46 +820,46 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
,
\\pub export fn foo() void {
\\ var a: c_int = 0;
- \\ a += x: {
+ \\ a += (x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* + 1);
\\ break :x _ref.*;
- \\ };
- \\ a -= x: {
+ \\ });
+ \\ a -= (x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* - 1);
\\ break :x _ref.*;
- \\ };
- \\ a *= x: {
+ \\ });
+ \\ a *= (x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* * 1);
\\ break :x _ref.*;
- \\ };
- \\ a &= x: {
+ \\ });
+ \\ a &= (x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* & 1);
\\ break :x _ref.*;
- \\ };
- \\ a |= x: {
+ \\ });
+ \\ a |= (x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* | 1);
\\ break :x _ref.*;
- \\ };
- \\ a ^= x: {
+ \\ });
+ \\ a ^= (x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* ^ 1);
\\ break :x _ref.*;
- \\ };
- \\ a >>= @import("std").math.Log2Int(c_int)(x: {
+ \\ });
+ \\ a >>= @import("std").math.Log2Int(c_int)((x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* >> @import("std").math.Log2Int(c_int)(1));
\\ break :x _ref.*;
- \\ });
- \\ a <<= @import("std").math.Log2Int(c_int)(x: {
+ \\ }));
+ \\ a <<= @import("std").math.Log2Int(c_int)((x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* << @import("std").math.Log2Int(c_int)(1));
\\ break :x _ref.*;
- \\ });
+ \\ }));
\\}
);
@@ -878,46 +878,46 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
,
\\pub export fn foo() void {
\\ var a: c_uint = c_uint(0);
- \\ a +%= x: {
+ \\ a +%= (x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* +% c_uint(1));
\\ break :x _ref.*;
- \\ };
- \\ a -%= x: {
+ \\ });
+ \\ a -%= (x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* -% c_uint(1));
\\ break :x _ref.*;
- \\ };
- \\ a *%= x: {
+ \\ });
+ \\ a *%= (x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* *% c_uint(1));
\\ break :x _ref.*;
- \\ };
- \\ a &= x: {
+ \\ });
+ \\ a &= (x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* & c_uint(1));
\\ break :x _ref.*;
- \\ };
- \\ a |= x: {
+ \\ });
+ \\ a |= (x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* | c_uint(1));
\\ break :x _ref.*;
- \\ };
- \\ a ^= x: {
+ \\ });
+ \\ a ^= (x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* ^ c_uint(1));
\\ break :x _ref.*;
- \\ };
- \\ a >>= @import("std").math.Log2Int(c_uint)(x: {
+ \\ });
+ \\ a >>= @import("std").math.Log2Int(c_uint)((x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* >> @import("std").math.Log2Int(c_uint)(1));
\\ break :x _ref.*;
- \\ });
- \\ a <<= @import("std").math.Log2Int(c_uint)(x: {
+ \\ }));
+ \\ a <<= @import("std").math.Log2Int(c_uint)((x: {
\\ const _ref = &a;
\\ _ref.* = (_ref.* << @import("std").math.Log2Int(c_uint)(1));
\\ break :x _ref.*;
- \\ });
+ \\ }));
\\}
);
@@ -953,30 +953,30 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
\\ i -= 1;
\\ u +%= 1;
\\ u -%= 1;
- \\ i = x: {
+ \\ i = (x: {
\\ const _ref = &i;
\\ const _tmp = _ref.*;
\\ _ref.* += 1;
\\ break :x _tmp;
- \\ };
- \\ i = x: {
+ \\ });
+ \\ i = (x: {
\\ const _ref = &i;
\\ const _tmp = _ref.*;
\\ _ref.* -= 1;
\\ break :x _tmp;
- \\ };
- \\ u = x: {
+ \\ });
+ \\ u = (x: {
\\ const _ref = &u;
\\ const _tmp = _ref.*;
\\ _ref.* +%= 1;
\\ break :x _tmp;
- \\ };
- \\ u = x: {
+ \\ });
+ \\ u = (x: {
\\ const _ref = &u;
\\ const _tmp = _ref.*;
\\ _ref.* -%= 1;
\\ break :x _tmp;
- \\ };
+ \\ });
\\}
);
@@ -1001,26 +1001,26 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
\\ i -= 1;
\\ u +%= 1;
\\ u -%= 1;
- \\ i = x: {
+ \\ i = (x: {
\\ const _ref = &i;
\\ _ref.* += 1;
\\ break :x _ref.*;
- \\ };
- \\ i = x: {
+ \\ });
+ \\ i = (x: {
\\ const _ref = &i;
\\ _ref.* -= 1;
\\ break :x _ref.*;
- \\ };
- \\ u = x: {
+ \\ });
+ \\ u = (x: {
\\ const _ref = &u;
\\ _ref.* +%= 1;
\\ break :x _ref.*;
- \\ };
- \\ u = x: {
+ \\ });
+ \\ u = (x: {
\\ const _ref = &u;
\\ _ref.* -%= 1;
\\ break :x _ref.*;
- \\ };
+ \\ });
\\}
);
From a77b2a0810bd835aa1adcfc18d32bc66ba8f1914 Mon Sep 17 00:00:00 2001
From: Jimmi Holst Christensen
Date: Fri, 15 Mar 2019 16:12:41 +0100
Subject: [PATCH 12/24] Implemented enough of translate-c to translate assert
This required the following
* __extention__
* ({})
* Fixing if (0) ; else ;
---
src/translate_c.cpp | 51 +++++++++++++++++++----
test/translate_c.zig | 97 +++++++++++++++++++++++++-------------------
2 files changed, 99 insertions(+), 49 deletions(-)
diff --git a/src/translate_c.cpp b/src/translate_c.cpp
index c56d31eb2d..90aa9c7463 100644
--- a/src/translate_c.cpp
+++ b/src/translate_c.cpp
@@ -684,6 +684,13 @@ static bool qual_type_child_is_fn_proto(const clang::QualType &qt) {
static AstNode* trans_c_cast(Context *c, const clang::SourceLocation &source_location, clang::QualType dest_type,
clang::QualType src_type, AstNode *expr)
{
+ // The only way void pointer casts are valid C code, is if
+ // the value of the expression is ignored. We therefore just
+ // return the expr, and let the system that ignores values
+ // translate this correctly.
+ if (qual_type_canon(dest_type)->isVoidType()) {
+ return expr;
+ }
if (qual_types_equal(dest_type, src_type)) {
return expr;
}
@@ -1219,6 +1226,31 @@ static AstNode *trans_compound_stmt(Context *c, TransScope *scope, const clang::
return child_scope_block->node;
}
+static AstNode *trans_stmt_expr(Context *c, TransScope *scope, const clang::StmtExpr *stmt,
+ TransScope **out_node_scope)
+{
+ AstNode *block = trans_compound_stmt(c, scope, stmt->getSubStmt(), out_node_scope);
+ if (block == nullptr)
+ return block;
+ assert(block->type == NodeTypeBlock);
+ if (block->data.block.statements.length == 0)
+ return block;
+
+ Buf *label = buf_create_from_str("x");
+ block->data.block.name = label;
+ AstNode *return_expr = block->data.block.statements.pop();
+ if (return_expr->type == NodeTypeBinOpExpr &&
+ return_expr->data.bin_op_expr.bin_op == BinOpTypeAssign &&
+ return_expr->data.bin_op_expr.op1->type == NodeTypeSymbol)
+ {
+ Buf *symbol_buf = return_expr->data.bin_op_expr.op1->data.symbol_expr.symbol;
+ if (strcmp("_", buf_ptr(symbol_buf)) == 0)
+ return_expr = return_expr->data.bin_op_expr.op2;
+ }
+ block->data.block.statements.append(trans_create_node_break(c, label, return_expr));
+ return block;
+}
+
static AstNode *trans_return_stmt(Context *c, TransScope *scope, const clang::ReturnStmt *stmt) {
const clang::Expr *value_expr = stmt->getRetValue();
if (value_expr == nullptr) {
@@ -1459,7 +1491,7 @@ static AstNode *trans_binary_operator(Context *c, ResultUsed result_used, TransS
AstNode *rhs = trans_expr(c, result_used, &scope_block->base, stmt->getRHS(), TransRValue);
if (rhs == nullptr)
return nullptr;
- scope_block->node->data.block.statements.append(trans_create_node_break(c, label_name, maybe_suppress_result(c, result_used, rhs)));
+ scope_block->node->data.block.statements.append(trans_create_node_break(c, label_name, rhs));
return scope_block->node;
}
case clang::BO_MulAssign:
@@ -2097,8 +2129,7 @@ static AstNode *trans_unary_operator(Context *c, ResultUsed result_used, TransSc
emit_warning(c, stmt->getLocStart(), "TODO handle C translation clang::UO_Imag");
return nullptr;
case clang::UO_Extension:
- emit_warning(c, stmt->getLocStart(), "TODO handle C translation clang::UO_Extension");
- return nullptr;
+ return trans_expr(c, result_used, scope, stmt->getSubExpr(), TransLValue);
case clang::UO_Coawait:
emit_warning(c, stmt->getLocStart(), "TODO handle C translation clang::UO_Coawait");
return nullptr;
@@ -3079,6 +3110,10 @@ static AstNode *trans_continue_stmt(Context *c, TransScope *scope, const clang::
return trans_create_node(c, NodeTypeContinue);
}
+static AstNode *trans_predefined_expr(Context *c, TransScope *scope, const clang::PredefinedExpr *expr) {
+ return trans_string_literal(c, scope, expr->getFunctionName());
+}
+
static int wrap_stmt(AstNode **out_node, TransScope **out_scope, TransScope *in_scope, AstNode *result_node) {
if (result_node == nullptr)
return ErrorUnexpected;
@@ -3146,7 +3181,7 @@ static int trans_stmt_extra(Context *c, TransScope *scope, const clang::Stmt *st
return wrap_stmt(out_node, out_child_scope, scope,
trans_call_expr(c, result_used, scope, (const clang::CallExpr *)stmt));
case clang::Stmt::NullStmtClass:
- *out_node = nullptr;
+ *out_node = trans_create_node(c, NodeTypeBlock);
*out_child_scope = scope;
return ErrorNone;
case clang::Stmt::MemberExprClass:
@@ -3473,8 +3508,8 @@ static int trans_stmt_extra(Context *c, TransScope *scope, const clang::Stmt *st
emit_warning(c, stmt->getLocStart(), "TODO handle C ParenListExprClass");
return ErrorUnexpected;
case clang::Stmt::PredefinedExprClass:
- emit_warning(c, stmt->getLocStart(), "TODO handle C PredefinedExprClass");
- return ErrorUnexpected;
+ return wrap_stmt(out_node, out_child_scope, scope,
+ trans_predefined_expr(c, scope, (const clang::PredefinedExpr *)stmt));
case clang::Stmt::PseudoObjectExprClass:
emit_warning(c, stmt->getLocStart(), "TODO handle C PseudoObjectExprClass");
return ErrorUnexpected;
@@ -3485,8 +3520,8 @@ static int trans_stmt_extra(Context *c, TransScope *scope, const clang::Stmt *st
emit_warning(c, stmt->getLocStart(), "TODO handle C SizeOfPackExprClass");
return ErrorUnexpected;
case clang::Stmt::StmtExprClass:
- emit_warning(c, stmt->getLocStart(), "TODO handle C StmtExprClass");
- return ErrorUnexpected;
+ return wrap_stmt(out_node, out_child_scope, scope,
+ trans_stmt_expr(c, scope, (const clang::StmtExpr *)stmt, out_node_scope));
case clang::Stmt::SubstNonTypeTemplateParmExprClass:
emit_warning(c, stmt->getLocStart(), "TODO handle C SubstNonTypeTemplateParmExprClass");
return ErrorUnexpected;
diff --git a/test/translate_c.zig b/test/translate_c.zig
index e83ca74786..394da0ece4 100644
--- a/test/translate_c.zig
+++ b/test/translate_c.zig
@@ -59,6 +59,20 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
);
}
+ cases.add("for loop with var init but empty body",
+ \\void foo(void) {
+ \\ __func__;
+ \\ __FUNCTION__;
+ \\ __PRETTY_FUNCTION__;
+ \\}
+ ,
+ \\pub fn foo() void {
+ \\ c"foo";
+ \\ c"foo";
+ \\ c"void foo(void)";
+ \\}
+ );
+
cases.add("for loop with var init but empty body",
\\void foo(void) {
\\ for (int x = 0; x < 10; x++);
@@ -79,6 +93,7 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
, // TODO this should be if (1 != 0) break
\\pub fn foo() void {
\\ while (true) {
+ \\ {}
\\ if (!1) break;
\\ }
\\}
@@ -720,7 +735,13 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
\\ ;;;;;
\\}
,
- \\pub export fn foo() void {}
+ \\pub export fn foo() void {
+ \\ {}
+ \\ {}
+ \\ {}
+ \\ {}
+ \\ {}
+ \\}
);
cases.add("undefined array global",
@@ -795,6 +816,32 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
\\}
);
+ cases.addC("statement expression",
+ \\int foo(void) {
+ \\ return ({
+ \\ int a = 1;
+ \\ a;
+ \\ });
+ \\}
+ ,
+ \\pub export fn foo() c_int {
+ \\ return x: {
+ \\ var a: c_int = 1;
+ \\ break :x a;
+ \\ };
+ \\}
+ );
+
+ cases.addC("__extension__ cast",
+ \\int foo(void) {
+ \\ return __extension__ 1;
+ \\}
+ ,
+ \\pub export fn foo() c_int {
+ \\ return 1;
+ \\}
+ );
+
cases.addC("bitshift",
\\int foo(void) {
\\ return (1 << 2) >> 1;
@@ -1425,53 +1472,21 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
\\pub export fn bar() void {}
);
- cases.addC("u integer suffix after 0 (zero) in macro definition",
- "#define ZERO 0U"
- ,
- "pub const ZERO = c_uint(0);"
- );
+ cases.addC("u integer suffix after 0 (zero) in macro definition", "#define ZERO 0U", "pub const ZERO = c_uint(0);");
- cases.addC("l integer suffix after 0 (zero) in macro definition",
- "#define ZERO 0L"
- ,
- "pub const ZERO = c_long(0);"
- );
+ cases.addC("l integer suffix after 0 (zero) in macro definition", "#define ZERO 0L", "pub const ZERO = c_long(0);");
- cases.addC("ul integer suffix after 0 (zero) in macro definition",
- "#define ZERO 0UL"
- ,
- "pub const ZERO = c_ulong(0);"
- );
+ cases.addC("ul integer suffix after 0 (zero) in macro definition", "#define ZERO 0UL", "pub const ZERO = c_ulong(0);");
- cases.addC("lu integer suffix after 0 (zero) in macro definition",
- "#define ZERO 0LU"
- ,
- "pub const ZERO = c_ulong(0);"
- );
+ cases.addC("lu integer suffix after 0 (zero) in macro definition", "#define ZERO 0LU", "pub const ZERO = c_ulong(0);");
- cases.addC("ll integer suffix after 0 (zero) in macro definition",
- "#define ZERO 0LL"
- ,
- "pub const ZERO = c_longlong(0);"
- );
+ cases.addC("ll integer suffix after 0 (zero) in macro definition", "#define ZERO 0LL", "pub const ZERO = c_longlong(0);");
- cases.addC("ull integer suffix after 0 (zero) in macro definition",
- "#define ZERO 0ULL"
- ,
- "pub const ZERO = c_ulonglong(0);"
- );
+ cases.addC("ull integer suffix after 0 (zero) in macro definition", "#define ZERO 0ULL", "pub const ZERO = c_ulonglong(0);");
- cases.addC("llu integer suffix after 0 (zero) in macro definition",
- "#define ZERO 0LLU"
- ,
- "pub const ZERO = c_ulonglong(0);"
- );
+ cases.addC("llu integer suffix after 0 (zero) in macro definition", "#define ZERO 0LLU", "pub const ZERO = c_ulonglong(0);");
- cases.addC("bitwise not on u-suffixed 0 (zero) in macro definition",
- "#define NOT_ZERO (~0U)"
- ,
- "pub const NOT_ZERO = ~c_uint(0);"
- );
+ cases.addC("bitwise not on u-suffixed 0 (zero) in macro definition", "#define NOT_ZERO (~0U)", "pub const NOT_ZERO = ~c_uint(0);");
// cases.add("empty array with initializer",
// "int a[4] = {};"
From 5ae400fb393b4a7fb4af15b89a4101de9255b26d Mon Sep 17 00:00:00 2001
From: Jimmi HC
Date: Fri, 15 Mar 2019 19:11:46 +0100
Subject: [PATCH 13/24] fixed void cast and added the last tests
---
src/translate_c.cpp | 6 ++++-
test/translate_c.zig | 63 +++++++++++++++++++++++++++++++++++++-------
2 files changed, 59 insertions(+), 10 deletions(-)
diff --git a/src/translate_c.cpp b/src/translate_c.cpp
index 90aa9c7463..fcc050bc2d 100644
--- a/src/translate_c.cpp
+++ b/src/translate_c.cpp
@@ -2784,7 +2784,11 @@ static AstNode *trans_c_style_cast_expr(Context *c, ResultUsed result_used, Tran
if (sub_expr_node == nullptr)
return nullptr;
- return trans_c_cast(c, stmt->getLocStart(), stmt->getType(), stmt->getSubExpr()->getType(), sub_expr_node);
+ AstNode *cast = trans_c_cast(c, stmt->getLocStart(), stmt->getType(), stmt->getSubExpr()->getType(), sub_expr_node);
+ if (cast == nullptr)
+ return nullptr;
+
+ return maybe_suppress_result(c, result_used, cast);
}
static AstNode *trans_unary_expr_or_type_trait_expr(Context *c, TransScope *scope,
diff --git a/test/translate_c.zig b/test/translate_c.zig
index 394da0ece4..39b2858cd9 100644
--- a/test/translate_c.zig
+++ b/test/translate_c.zig
@@ -59,7 +59,7 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
);
}
- cases.add("for loop with var init but empty body",
+ cases.add("predefined expressions",
\\void foo(void) {
\\ __func__;
\\ __FUNCTION__;
@@ -526,11 +526,14 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
\\ return b;
\\ else
\\ return a;
+ \\
+ \\ if (a < b) ; else ;
\\}
,
\\pub export fn max(a: c_int, b: c_int) c_int {
\\ if (a < b) return b;
\\ if (a < b) return b else return a;
+ \\ if (a < b) {} else {}
\\}
);
@@ -772,6 +775,16 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
\\}
);
+ cases.addC("void cast",
+ \\void foo(int a) {
+ \\ (void) a;
+ \\}
+ ,
+ \\pub export fn foo(a: c_int) void {
+ \\ _ = a;
+ \\}
+ );
+
cases.addC("implicit cast to void *",
\\void *foo(unsigned short *x) {
\\ return x;
@@ -1472,21 +1485,53 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
\\pub export fn bar() void {}
);
- cases.addC("u integer suffix after 0 (zero) in macro definition", "#define ZERO 0U", "pub const ZERO = c_uint(0);");
+ cases.addC(
+ "u integer suffix after 0 (zero) in macro definition",
+ "#define ZERO 0U",
+ "pub const ZERO = c_uint(0);",
+ );
- cases.addC("l integer suffix after 0 (zero) in macro definition", "#define ZERO 0L", "pub const ZERO = c_long(0);");
+ cases.addC(
+ "l integer suffix after 0 (zero) in macro definition",
+ "#define ZERO 0L",
+ "pub const ZERO = c_long(0);",
+ );
- cases.addC("ul integer suffix after 0 (zero) in macro definition", "#define ZERO 0UL", "pub const ZERO = c_ulong(0);");
+ cases.addC(
+ "ul integer suffix after 0 (zero) in macro definition",
+ "#define ZERO 0UL",
+ "pub const ZERO = c_ulong(0);",
+ );
- cases.addC("lu integer suffix after 0 (zero) in macro definition", "#define ZERO 0LU", "pub const ZERO = c_ulong(0);");
+ cases.addC(
+ "lu integer suffix after 0 (zero) in macro definition",
+ "#define ZERO 0LU",
+ "pub const ZERO = c_ulong(0);",
+ );
- cases.addC("ll integer suffix after 0 (zero) in macro definition", "#define ZERO 0LL", "pub const ZERO = c_longlong(0);");
+ cases.addC(
+ "ll integer suffix after 0 (zero) in macro definition",
+ "#define ZERO 0LL",
+ "pub const ZERO = c_longlong(0);",
+ );
- cases.addC("ull integer suffix after 0 (zero) in macro definition", "#define ZERO 0ULL", "pub const ZERO = c_ulonglong(0);");
+ cases.addC(
+ "ull integer suffix after 0 (zero) in macro definition",
+ "#define ZERO 0ULL",
+ "pub const ZERO = c_ulonglong(0);",
+ );
- cases.addC("llu integer suffix after 0 (zero) in macro definition", "#define ZERO 0LLU", "pub const ZERO = c_ulonglong(0);");
+ cases.addC(
+ "llu integer suffix after 0 (zero) in macro definition",
+ "#define ZERO 0LLU",
+ "pub const ZERO = c_ulonglong(0);",
+ );
- cases.addC("bitwise not on u-suffixed 0 (zero) in macro definition", "#define NOT_ZERO (~0U)", "pub const NOT_ZERO = ~c_uint(0);");
+ cases.addC(
+ "bitwise not on u-suffixed 0 (zero) in macro definition",
+ "#define NOT_ZERO (~0U)",
+ "pub const NOT_ZERO = ~c_uint(0);",
+ );
// cases.add("empty array with initializer",
// "int a[4] = {};"
From 9c13e9b7ed9806d0f9774433d5e24359aff1b238 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Fri, 15 Mar 2019 17:47:47 -0400
Subject: [PATCH 14/24] breaking changes to std.mem.Allocator interface API
Before, allocator implementations had to provide `allocFn`,
`reallocFn`, and `freeFn`.
Now, they must provide only `reallocFn` and `shrinkFn`.
Reallocating from a zero length slice is allocation, and
shrinking to a zero length slice is freeing.
When the new memory size is less than or equal to the
previous allocation size, `reallocFn` now has the option
to return `error.OutOfMemory` to indicate that the allocator
would not be able to take advantage of the new size.
For more details see #1306. This commit closes #1306.
This commit paves the way to solving #2009.
This commit also introduces a memory leak to all coroutines.
There is an issue where a coroutine calls the function and it
frees its own stack frame, but then the return value of `shrinkFn`
is a slice, which is implemented as an sret struct. Writing to
the return pointer causes invalid memory write. We could work
around it by having a global helper function which has a void
return type and calling that instead. But instead this hack will
suffice until I rework coroutines to be non-allocating. Basically
coroutines are not supported right now until they are reworked as
in #1194.
---
src-self-hosted/ir.zig | 2 +-
src/all_types.hpp | 6 +-
src/analyze.cpp | 8 +-
src/codegen.cpp | 17 ++-
src/ir.cpp | 70 +++++----
src/ir_print.cpp | 2 +-
std/array_list.zig | 7 +-
std/buffer.zig | 2 +-
std/c.zig | 2 +-
std/debug.zig | 2 +-
std/debug/failing_allocator.zig | 35 ++---
std/heap.zig | 254 +++++++++++++++++---------------
std/math/big/int.zig | 2 +-
std/mem.zig | 176 ++++++++++++++++------
std/os.zig | 10 +-
std/os/path.zig | 4 +-
std/priority_queue.zig | 3 +-
std/segmented_list.zig | 7 +-
test/tests.zig | 18 ++-
19 files changed, 374 insertions(+), 253 deletions(-)
diff --git a/src-self-hosted/ir.zig b/src-self-hosted/ir.zig
index b184a1bfee..069e182b3a 100644
--- a/src-self-hosted/ir.zig
+++ b/src-self-hosted/ir.zig
@@ -1364,7 +1364,7 @@ pub const Builder = struct {
if (str_token[0] == 'c') {
// first we add a null
- buf = try irb.comp.gpa().realloc(u8, buf, buf.len + 1);
+ buf = try irb.comp.gpa().realloc(buf, buf.len + 1);
buf[buf.len - 1] = 0;
// next make an array value
diff --git a/src/all_types.hpp b/src/all_types.hpp
index d1d63f1062..5bc54e30e5 100644
--- a/src/all_types.hpp
+++ b/src/all_types.hpp
@@ -3356,7 +3356,7 @@ struct IrInstructionCoroPromise {
struct IrInstructionCoroAllocHelper {
IrInstruction base;
- IrInstruction *alloc_fn;
+ IrInstruction *realloc_fn;
IrInstruction *coro_size;
};
@@ -3481,8 +3481,8 @@ static const size_t stack_trace_ptr_count = 32;
#define RETURN_ADDRESSES_FIELD_NAME "return_addresses"
#define ERR_RET_TRACE_FIELD_NAME "err_ret_trace"
#define RESULT_FIELD_NAME "result"
-#define ASYNC_ALLOC_FIELD_NAME "allocFn"
-#define ASYNC_FREE_FIELD_NAME "freeFn"
+#define ASYNC_REALLOC_FIELD_NAME "reallocFn"
+#define ASYNC_SHRINK_FIELD_NAME "shrinkFn"
#define ATOMIC_STATE_FIELD_NAME "atomic_state"
// these point to data belonging to the awaiter
#define ERR_RET_TRACE_PTR_FIELD_NAME "err_ret_trace_ptr"
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 79a723b2e5..0a04a14e3f 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -3707,9 +3707,11 @@ ZigVar *add_variable(CodeGen *g, AstNode *source_node, Scope *parent_scope, Buf
ZigVar *existing_var = find_variable(g, parent_scope, name, nullptr);
if (existing_var && !existing_var->shadowable) {
- ErrorMsg *msg = add_node_error(g, source_node,
- buf_sprintf("redeclaration of variable '%s'", buf_ptr(name)));
- add_error_note(g, msg, existing_var->decl_node, buf_sprintf("previous declaration is here"));
+ if (existing_var->var_type == nullptr || !type_is_invalid(existing_var->var_type)) {
+ ErrorMsg *msg = add_node_error(g, source_node,
+ buf_sprintf("redeclaration of variable '%s'", buf_ptr(name)));
+ add_error_note(g, msg, existing_var->decl_node, buf_sprintf("previous declaration is here"));
+ }
variable_entry->var_type = g->builtin_types.entry_invalid;
} else {
ZigType *type;
diff --git a/src/codegen.cpp b/src/codegen.cpp
index df907915bb..2de1243a66 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -5177,7 +5177,7 @@ static LLVMValueRef get_coro_alloc_helper_fn_val(CodeGen *g, LLVMTypeRef alloc_f
LLVMValueRef sret_ptr = LLVMBuildAlloca(g->builder, LLVMGetElementType(alloc_fn_arg_types[0]), "");
size_t next_arg = 0;
- LLVMValueRef alloc_fn_val = LLVMGetParam(fn_val, next_arg);
+ LLVMValueRef realloc_fn_val = LLVMGetParam(fn_val, next_arg);
next_arg += 1;
LLVMValueRef stack_trace_val;
@@ -5195,15 +5195,22 @@ static LLVMValueRef get_coro_alloc_helper_fn_val(CodeGen *g, LLVMTypeRef alloc_f
LLVMValueRef alignment_val = LLVMConstInt(g->builtin_types.entry_u29->type_ref,
get_coro_frame_align_bytes(g), false);
+ ConstExprValue *zero_array = create_const_str_lit(g, buf_create_from_str(""));
+ ConstExprValue *undef_slice_zero = create_const_slice(g, zero_array, 0, 0, false);
+ render_const_val(g, undef_slice_zero, "");
+ render_const_val_global(g, undef_slice_zero, "");
+
ZigList args = {};
args.append(sret_ptr);
if (g->have_err_ret_tracing) {
args.append(stack_trace_val);
}
args.append(allocator_val);
+ args.append(undef_slice_zero->global_refs->llvm_global);
+ args.append(LLVMGetUndef(g->builtin_types.entry_u29->type_ref));
args.append(coro_size);
args.append(alignment_val);
- LLVMValueRef call_instruction = ZigLLVMBuildCall(g->builder, alloc_fn_val, args.items, args.length,
+ LLVMValueRef call_instruction = ZigLLVMBuildCall(g->builder, realloc_fn_val, args.items, args.length,
get_llvm_cc(g, CallingConventionUnspecified), ZigLLVM_FnInlineAuto, "");
set_call_instr_sret(g, call_instruction);
LLVMValueRef err_val_ptr = LLVMBuildStructGEP(g->builder, sret_ptr, err_union_err_index, "");
@@ -5239,14 +5246,14 @@ static LLVMValueRef get_coro_alloc_helper_fn_val(CodeGen *g, LLVMTypeRef alloc_f
static LLVMValueRef ir_render_coro_alloc_helper(CodeGen *g, IrExecutable *executable,
IrInstructionCoroAllocHelper *instruction)
{
- LLVMValueRef alloc_fn = ir_llvm_value(g, instruction->alloc_fn);
+ LLVMValueRef realloc_fn = ir_llvm_value(g, instruction->realloc_fn);
LLVMValueRef coro_size = ir_llvm_value(g, instruction->coro_size);
- LLVMValueRef fn_val = get_coro_alloc_helper_fn_val(g, LLVMTypeOf(alloc_fn), instruction->alloc_fn->value.type);
+ LLVMValueRef fn_val = get_coro_alloc_helper_fn_val(g, LLVMTypeOf(realloc_fn), instruction->realloc_fn->value.type);
size_t err_code_ptr_arg_index = get_async_err_code_arg_index(g, &g->cur_fn->type_entry->data.fn.fn_type_id);
size_t allocator_arg_index = get_async_allocator_arg_index(g, &g->cur_fn->type_entry->data.fn.fn_type_id);
ZigList params = {};
- params.append(alloc_fn);
+ params.append(realloc_fn);
uint32_t err_ret_trace_arg_index = get_err_ret_trace_arg_index(g, g->cur_fn);
if (err_ret_trace_arg_index != UINT32_MAX) {
params.append(LLVMGetParam(g->cur_fn_val, err_ret_trace_arg_index));
diff --git a/src/ir.cpp b/src/ir.cpp
index 61be6670a5..dc6118f453 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -2788,13 +2788,13 @@ static IrInstruction *ir_build_coro_promise(IrBuilder *irb, Scope *scope, AstNod
}
static IrInstruction *ir_build_coro_alloc_helper(IrBuilder *irb, Scope *scope, AstNode *source_node,
- IrInstruction *alloc_fn, IrInstruction *coro_size)
+ IrInstruction *realloc_fn, IrInstruction *coro_size)
{
IrInstructionCoroAllocHelper *instruction = ir_build_instruction(irb, scope, source_node);
- instruction->alloc_fn = alloc_fn;
+ instruction->realloc_fn = realloc_fn;
instruction->coro_size = coro_size;
- ir_ref_instruction(alloc_fn, irb->current_basic_block);
+ ir_ref_instruction(realloc_fn, irb->current_basic_block);
ir_ref_instruction(coro_size, irb->current_basic_block);
return &instruction->base;
@@ -3319,9 +3319,11 @@ static ZigVar *create_local_var(CodeGen *codegen, AstNode *node, Scope *parent_s
if (!skip_name_check) {
ZigVar *existing_var = find_variable(codegen, parent_scope, name, nullptr);
if (existing_var && !existing_var->shadowable) {
- ErrorMsg *msg = add_node_error(codegen, node,
- buf_sprintf("redeclaration of variable '%s'", buf_ptr(name)));
- add_error_note(codegen, msg, existing_var->decl_node, buf_sprintf("previous declaration is here"));
+ if (existing_var->var_type == nullptr || !type_is_invalid(existing_var->var_type)) {
+ ErrorMsg *msg = add_node_error(codegen, node,
+ buf_sprintf("redeclaration of variable '%s'", buf_ptr(name)));
+ add_error_note(codegen, msg, existing_var->decl_node, buf_sprintf("previous declaration is here"));
+ }
variable_entry->var_type = codegen->builtin_types.entry_invalid;
} else {
ZigType *type;
@@ -7506,10 +7508,10 @@ bool ir_gen(CodeGen *codegen, AstNode *node, Scope *scope, IrExecutable *ir_exec
ImplicitAllocatorIdArg);
irb->exec->coro_allocator_var = ir_create_var(irb, node, coro_scope, nullptr, true, true, true, const_bool_false);
ir_build_var_decl_src(irb, coro_scope, node, irb->exec->coro_allocator_var, nullptr, nullptr, implicit_allocator_ptr);
- Buf *alloc_field_name = buf_create_from_str(ASYNC_ALLOC_FIELD_NAME);
- IrInstruction *alloc_fn_ptr = ir_build_field_ptr(irb, coro_scope, node, implicit_allocator_ptr, alloc_field_name);
- IrInstruction *alloc_fn = ir_build_load_ptr(irb, coro_scope, node, alloc_fn_ptr);
- IrInstruction *maybe_coro_mem_ptr = ir_build_coro_alloc_helper(irb, coro_scope, node, alloc_fn, coro_size);
+ Buf *realloc_field_name = buf_create_from_str(ASYNC_REALLOC_FIELD_NAME);
+ IrInstruction *realloc_fn_ptr = ir_build_field_ptr(irb, coro_scope, node, implicit_allocator_ptr, realloc_field_name);
+ IrInstruction *realloc_fn = ir_build_load_ptr(irb, coro_scope, node, realloc_fn_ptr);
+ IrInstruction *maybe_coro_mem_ptr = ir_build_coro_alloc_helper(irb, coro_scope, node, realloc_fn, coro_size);
IrInstruction *alloc_result_is_ok = ir_build_test_nonnull(irb, coro_scope, node, maybe_coro_mem_ptr);
IrBasicBlock *alloc_err_block = ir_create_basic_block(irb, coro_scope, "AllocError");
IrBasicBlock *alloc_ok_block = ir_create_basic_block(irb, coro_scope, "AllocOk");
@@ -7643,11 +7645,11 @@ bool ir_gen(CodeGen *codegen, AstNode *node, Scope *scope, IrExecutable *ir_exec
merge_incoming_values[1] = await_handle_in_block;
IrInstruction *awaiter_handle = ir_build_phi(irb, scope, node, 2, merge_incoming_blocks, merge_incoming_values);
- Buf *free_field_name = buf_create_from_str(ASYNC_FREE_FIELD_NAME);
+ Buf *shrink_field_name = buf_create_from_str(ASYNC_SHRINK_FIELD_NAME);
IrInstruction *implicit_allocator_ptr = ir_build_get_implicit_allocator(irb, scope, node,
ImplicitAllocatorIdLocalVar);
- IrInstruction *free_fn_ptr = ir_build_field_ptr(irb, scope, node, implicit_allocator_ptr, free_field_name);
- IrInstruction *free_fn = ir_build_load_ptr(irb, scope, node, free_fn_ptr);
+ IrInstruction *shrink_fn_ptr = ir_build_field_ptr(irb, scope, node, implicit_allocator_ptr, shrink_field_name);
+ IrInstruction *shrink_fn = ir_build_load_ptr(irb, scope, node, shrink_fn_ptr);
IrInstruction *zero = ir_build_const_usize(irb, scope, node, 0);
IrInstruction *coro_mem_ptr_maybe = ir_build_coro_free(irb, scope, node, coro_id, irb->exec->coro_handle);
IrInstruction *u8_ptr_type_unknown_len = ir_build_const_type(irb, scope, node,
@@ -7659,11 +7661,20 @@ bool ir_gen(CodeGen *codegen, AstNode *node, Scope *scope, IrExecutable *ir_exec
IrInstruction *coro_size_ptr = ir_build_var_ptr(irb, scope, node, coro_size_var);
IrInstruction *coro_size = ir_build_load_ptr(irb, scope, node, coro_size_ptr);
IrInstruction *mem_slice = ir_build_slice(irb, scope, node, coro_mem_ptr_ref, zero, coro_size, false);
- size_t arg_count = 2;
+ size_t arg_count = 5;
IrInstruction **args = allocate(arg_count);
args[0] = implicit_allocator_ptr; // self
args[1] = mem_slice; // old_mem
- ir_build_call(irb, scope, node, nullptr, free_fn, arg_count, args, false, FnInlineAuto, false, nullptr, nullptr);
+ args[2] = ir_build_const_usize(irb, scope, node, 8); // old_align
+ // TODO: intentional memory leak here. If this is set to 0 then there is an issue where a coroutine
+ // calls the function and it frees its own stack frame, but then the return value is a slice, which
+ // is implemented as an sret struct. writing to the return pointer causes invalid memory write.
+ // We could work around it by having a global helper function which has a void return type
+ // and calling that instead. But instead this hack will suffice until I rework coroutines to be
+ // non-allocating. Basically coroutines are not supported right now until they are reworked.
+ args[3] = ir_build_const_usize(irb, scope, node, 1); // new_size
+ args[4] = ir_build_const_usize(irb, scope, node, 1); // new_align
+ ir_build_call(irb, scope, node, nullptr, shrink_fn, arg_count, args, false, FnInlineAuto, false, nullptr, nullptr);
IrBasicBlock *resume_block = ir_create_basic_block(irb, scope, "Resume");
ir_build_cond_br(irb, scope, node, resume_awaiter, resume_block, irb->exec->coro_suspend_block, const_bool_false);
@@ -13574,32 +13585,31 @@ IrInstruction *ir_get_implicit_allocator(IrAnalyze *ira, IrInstruction *source_i
static IrInstruction *ir_analyze_async_call(IrAnalyze *ira, IrInstructionCall *call_instruction, ZigFn *fn_entry, ZigType *fn_type,
IrInstruction *fn_ref, IrInstruction **casted_args, size_t arg_count, IrInstruction *async_allocator_inst)
{
- Buf *alloc_field_name = buf_create_from_str(ASYNC_ALLOC_FIELD_NAME);
- //Buf *free_field_name = buf_create_from_str("freeFn");
+ Buf *realloc_field_name = buf_create_from_str(ASYNC_REALLOC_FIELD_NAME);
assert(async_allocator_inst->value.type->id == ZigTypeIdPointer);
ZigType *container_type = async_allocator_inst->value.type->data.pointer.child_type;
- IrInstruction *field_ptr_inst = ir_analyze_container_field_ptr(ira, alloc_field_name, &call_instruction->base,
+ IrInstruction *field_ptr_inst = ir_analyze_container_field_ptr(ira, realloc_field_name, &call_instruction->base,
async_allocator_inst, container_type);
if (type_is_invalid(field_ptr_inst->value.type)) {
return ira->codegen->invalid_instruction;
}
- ZigType *ptr_to_alloc_fn_type = field_ptr_inst->value.type;
- assert(ptr_to_alloc_fn_type->id == ZigTypeIdPointer);
+ ZigType *ptr_to_realloc_fn_type = field_ptr_inst->value.type;
+ assert(ptr_to_realloc_fn_type->id == ZigTypeIdPointer);
- ZigType *alloc_fn_type = ptr_to_alloc_fn_type->data.pointer.child_type;
- if (alloc_fn_type->id != ZigTypeIdFn) {
+ ZigType *realloc_fn_type = ptr_to_realloc_fn_type->data.pointer.child_type;
+ if (realloc_fn_type->id != ZigTypeIdFn) {
ir_add_error(ira, &call_instruction->base,
- buf_sprintf("expected allocation function, found '%s'", buf_ptr(&alloc_fn_type->name)));
+ buf_sprintf("expected reallocation function, found '%s'", buf_ptr(&realloc_fn_type->name)));
return ira->codegen->invalid_instruction;
}
- ZigType *alloc_fn_return_type = alloc_fn_type->data.fn.fn_type_id.return_type;
- if (alloc_fn_return_type->id != ZigTypeIdErrorUnion) {
+ ZigType *realloc_fn_return_type = realloc_fn_type->data.fn.fn_type_id.return_type;
+ if (realloc_fn_return_type->id != ZigTypeIdErrorUnion) {
ir_add_error(ira, fn_ref,
- buf_sprintf("expected allocation function to return error union, but it returns '%s'", buf_ptr(&alloc_fn_return_type->name)));
+ buf_sprintf("expected allocation function to return error union, but it returns '%s'", buf_ptr(&realloc_fn_return_type->name)));
return ira->codegen->invalid_instruction;
}
- ZigType *alloc_fn_error_set_type = alloc_fn_return_type->data.error_union.err_set_type;
+ ZigType *alloc_fn_error_set_type = realloc_fn_return_type->data.error_union.err_set_type;
ZigType *return_type = fn_type->data.fn.fn_type_id.return_type;
ZigType *promise_type = get_promise_type(ira->codegen, return_type);
ZigType *async_return_type = get_error_union_type(ira->codegen, alloc_fn_error_set_type, promise_type);
@@ -22033,8 +22043,8 @@ static IrInstruction *ir_analyze_instruction_coro_promise(IrAnalyze *ira, IrInst
}
static IrInstruction *ir_analyze_instruction_coro_alloc_helper(IrAnalyze *ira, IrInstructionCoroAllocHelper *instruction) {
- IrInstruction *alloc_fn = instruction->alloc_fn->child;
- if (type_is_invalid(alloc_fn->value.type))
+ IrInstruction *realloc_fn = instruction->realloc_fn->child;
+ if (type_is_invalid(realloc_fn->value.type))
return ira->codegen->invalid_instruction;
IrInstruction *coro_size = instruction->coro_size->child;
@@ -22042,7 +22052,7 @@ static IrInstruction *ir_analyze_instruction_coro_alloc_helper(IrAnalyze *ira, I
return ira->codegen->invalid_instruction;
IrInstruction *result = ir_build_coro_alloc_helper(&ira->new_irb, instruction->base.scope,
- instruction->base.source_node, alloc_fn, coro_size);
+ instruction->base.source_node, realloc_fn, coro_size);
ZigType *u8_ptr_type = get_pointer_to_type(ira->codegen, ira->codegen->builtin_types.entry_u8, false);
result->value.type = get_optional_type(ira->codegen, u8_ptr_type);
return result;
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index 4572b30ded..181b7e16cf 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -1286,7 +1286,7 @@ static void ir_print_promise_result_type(IrPrint *irp, IrInstructionPromiseResul
static void ir_print_coro_alloc_helper(IrPrint *irp, IrInstructionCoroAllocHelper *instruction) {
fprintf(irp->f, "@coroAllocHelper(");
- ir_print_other_instruction(irp, instruction->alloc_fn);
+ ir_print_other_instruction(irp, instruction->realloc_fn);
fprintf(irp->f, ",");
ir_print_other_instruction(irp, instruction->coro_size);
fprintf(irp->f, ")");
diff --git a/std/array_list.zig b/std/array_list.zig
index 2c9da50972..b173dab747 100644
--- a/std/array_list.zig
+++ b/std/array_list.zig
@@ -80,7 +80,7 @@ pub fn AlignedArrayList(comptime T: type, comptime A: u29) type {
/// The caller owns the returned memory. ArrayList becomes empty.
pub fn toOwnedSlice(self: *Self) []align(A) T {
const allocator = self.allocator;
- const result = allocator.alignedShrink(T, A, self.items, self.len);
+ const result = allocator.shrink(self.items, self.len);
self.* = init(allocator);
return result;
}
@@ -144,6 +144,9 @@ pub fn AlignedArrayList(comptime T: type, comptime A: u29) type {
pub fn shrink(self: *Self, new_len: usize) void {
assert(new_len <= self.len);
self.len = new_len;
+ self.items = self.allocator.realloc(self.items, new_len) catch |e| switch (e) {
+ error.OutOfMemory => return, // no problem, capacity is still correct then.
+ };
}
pub fn ensureCapacity(self: *Self, new_capacity: usize) !void {
@@ -153,7 +156,7 @@ pub fn AlignedArrayList(comptime T: type, comptime A: u29) type {
better_capacity += better_capacity / 2 + 8;
if (better_capacity >= new_capacity) break;
}
- self.items = try self.allocator.alignedRealloc(T, A, self.items, better_capacity);
+ self.items = try self.allocator.realloc(self.items, better_capacity);
}
pub fn addOne(self: *Self) !*T {
diff --git a/std/buffer.zig b/std/buffer.zig
index 8706dfc320..32228af558 100644
--- a/std/buffer.zig
+++ b/std/buffer.zig
@@ -50,7 +50,7 @@ pub const Buffer = struct {
/// is safe to `deinit`.
pub fn toOwnedSlice(self: *Buffer) []u8 {
const allocator = self.list.allocator;
- const result = allocator.shrink(u8, self.list.items, self.len());
+ const result = allocator.shrink(self.list.items, self.len());
self.* = initNull(allocator);
return result;
}
diff --git a/std/c.zig b/std/c.zig
index de54c8f690..41ec6a3569 100644
--- a/std/c.zig
+++ b/std/c.zig
@@ -53,7 +53,7 @@ pub extern "c" fn rmdir(path: [*]const u8) c_int;
pub extern "c" fn aligned_alloc(alignment: usize, size: usize) ?*c_void;
pub extern "c" fn malloc(usize) ?*c_void;
-pub extern "c" fn realloc(*c_void, usize) ?*c_void;
+pub extern "c" fn realloc(?*c_void, usize) ?*c_void;
pub extern "c" fn free(*c_void) void;
pub extern "c" fn posix_memalign(memptr: **c_void, alignment: usize, size: usize) c_int;
diff --git a/std/debug.zig b/std/debug.zig
index df35a8e773..b666e816af 100644
--- a/std/debug.zig
+++ b/std/debug.zig
@@ -1072,7 +1072,7 @@ fn openSelfDebugInfoMacOs(allocator: *mem.Allocator) !DebugInfo {
.n_value = symbols_buf[symbol_index - 1].nlist.n_value + last_len,
};
- const symbols = allocator.shrink(MachoSymbol, symbols_buf, symbol_index);
+ const symbols = allocator.shrink(symbols_buf, symbol_index);
// Even though lld emits symbols in ascending order, this debug code
// should work for programs linked in any valid way.
diff --git a/std/debug/failing_allocator.zig b/std/debug/failing_allocator.zig
index 82093dffda..7a89460513 100644
--- a/std/debug/failing_allocator.zig
+++ b/std/debug/failing_allocator.zig
@@ -21,44 +21,37 @@ pub const FailingAllocator = struct {
.freed_bytes = 0,
.deallocations = 0,
.allocator = mem.Allocator{
- .allocFn = alloc,
.reallocFn = realloc,
- .freeFn = free,
+ .shrinkFn = shrink,
},
};
}
- fn alloc(allocator: *mem.Allocator, n: usize, alignment: u29) ![]u8 {
+ fn realloc(allocator: *mem.Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) ![]u8 {
const self = @fieldParentPtr(FailingAllocator, "allocator", allocator);
if (self.index == self.fail_index) {
return error.OutOfMemory;
}
- const result = try self.internal_allocator.allocFn(self.internal_allocator, n, alignment);
- self.allocated_bytes += result.len;
- self.index += 1;
- return result;
- }
-
- fn realloc(allocator: *mem.Allocator, old_mem: []u8, new_size: usize, alignment: u29) ![]u8 {
- const self = @fieldParentPtr(FailingAllocator, "allocator", allocator);
+ const result = try self.internal_allocator.reallocFn(
+ self.internal_allocator,
+ old_mem,
+ old_align,
+ new_size,
+ new_align,
+ );
if (new_size <= old_mem.len) {
self.freed_bytes += old_mem.len - new_size;
- return self.internal_allocator.reallocFn(self.internal_allocator, old_mem, new_size, alignment);
+ } else {
+ self.allocated_bytes += new_size - old_mem.len;
}
- if (self.index == self.fail_index) {
- return error.OutOfMemory;
- }
- const result = try self.internal_allocator.reallocFn(self.internal_allocator, old_mem, new_size, alignment);
- self.allocated_bytes += new_size - old_mem.len;
self.deallocations += 1;
self.index += 1;
return result;
}
- fn free(allocator: *mem.Allocator, bytes: []u8) void {
+ fn shrink(allocator: *mem.Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) []u8 {
const self = @fieldParentPtr(FailingAllocator, "allocator", allocator);
- self.freed_bytes += bytes.len;
- self.deallocations += 1;
- return self.internal_allocator.freeFn(self.internal_allocator, bytes);
+ self.freed_bytes += old_mem.len - new_size;
+ return self.internal_allocator.shrinkFn(self.internal_allocator, old_mem, old_align, new_size, new_align);
}
};
diff --git a/std/heap.zig b/std/heap.zig
index 0ea16c4e78..84ed469763 100644
--- a/std/heap.zig
+++ b/std/heap.zig
@@ -13,30 +13,21 @@ const Allocator = mem.Allocator;
pub const c_allocator = &c_allocator_state;
var c_allocator_state = Allocator{
- .allocFn = cAlloc,
.reallocFn = cRealloc,
- .freeFn = cFree,
+ .shrinkFn = cShrink,
};
-fn cAlloc(self: *Allocator, n: usize, alignment: u29) ![]u8 {
- assert(alignment <= @alignOf(c_longdouble));
- return if (c.malloc(n)) |buf| @ptrCast([*]u8, buf)[0..n] else error.OutOfMemory;
+fn cRealloc(self: *Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) ![]u8 {
+ assert(new_align <= @alignOf(c_longdouble));
+ const old_ptr = if (old_mem.len == 0) null else @ptrCast(*c_void, old_mem.ptr);
+ const buf = c.realloc(old_ptr, new_size) orelse return error.OutOfMemory;
+ return @ptrCast([*]u8, buf)[0..new_size];
}
-fn cRealloc(self: *Allocator, old_mem: []u8, new_size: usize, alignment: u29) ![]u8 {
+fn cShrink(self: *Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) []u8 {
const old_ptr = @ptrCast(*c_void, old_mem.ptr);
- if (c.realloc(old_ptr, new_size)) |buf| {
- return @ptrCast([*]u8, buf)[0..new_size];
- } else if (new_size <= old_mem.len) {
- return old_mem[0..new_size];
- } else {
- return error.OutOfMemory;
- }
-}
-
-fn cFree(self: *Allocator, old_mem: []u8) void {
- const old_ptr = @ptrCast(*c_void, old_mem.ptr);
- c.free(old_ptr);
+ const buf = c.realloc(old_ptr, new_size) orelse return old_mem[0..new_size];
+ return @ptrCast([*]u8, buf)[0..new_size];
}
/// This allocator makes a syscall directly for every allocation and free.
@@ -50,9 +41,8 @@ pub const DirectAllocator = struct {
pub fn init() DirectAllocator {
return DirectAllocator{
.allocator = Allocator{
- .allocFn = alloc,
.reallocFn = realloc,
- .freeFn = free,
+ .shrinkFn = shrink,
},
.heap_handle = if (builtin.os == Os.windows) null else {},
};
@@ -116,62 +106,63 @@ pub const DirectAllocator = struct {
}
}
- fn realloc(allocator: *Allocator, old_mem: []u8, new_size: usize, alignment: u29) ![]u8 {
- const self = @fieldParentPtr(DirectAllocator, "allocator", allocator);
-
+ fn shrink(allocator: *Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) []u8 {
switch (builtin.os) {
Os.linux, Os.macosx, Os.ios, Os.freebsd, Os.netbsd => {
- if (new_size <= old_mem.len) {
- const base_addr = @ptrToInt(old_mem.ptr);
- const old_addr_end = base_addr + old_mem.len;
- const new_addr_end = base_addr + new_size;
- const new_addr_end_rounded = mem.alignForward(new_addr_end, os.page_size);
- if (old_addr_end > new_addr_end_rounded) {
- _ = os.posix.munmap(new_addr_end_rounded, old_addr_end - new_addr_end_rounded);
- }
- return old_mem[0..new_size];
+ const base_addr = @ptrToInt(old_mem.ptr);
+ const old_addr_end = base_addr + old_mem.len;
+ const new_addr_end = base_addr + new_size;
+ const new_addr_end_rounded = mem.alignForward(new_addr_end, os.page_size);
+ if (old_addr_end > new_addr_end_rounded) {
+ _ = os.posix.munmap(new_addr_end_rounded, old_addr_end - new_addr_end_rounded);
}
-
- const result = try alloc(allocator, new_size, alignment);
- mem.copy(u8, result, old_mem);
- return result;
+ return old_mem[0..new_size];
},
- Os.windows => {
+ Os.windows => return realloc(allocator, old_mem, old_align, new_size, new_align) catch {
const old_adjusted_addr = @ptrToInt(old_mem.ptr);
const old_record_addr = old_adjusted_addr + old_mem.len;
const root_addr = @intToPtr(*align(1) usize, old_record_addr).*;
const old_ptr = @intToPtr(*c_void, root_addr);
- const amt = new_size + alignment + @sizeOf(usize);
- const new_ptr = os.windows.HeapReAlloc(self.heap_handle.?, 0, old_ptr, amt) orelse blk: {
- if (new_size > old_mem.len) return error.OutOfMemory;
- const new_record_addr = old_record_addr - new_size + old_mem.len;
- @intToPtr(*align(1) usize, new_record_addr).* = root_addr;
- return old_mem[0..new_size];
- };
- const offset = old_adjusted_addr - root_addr;
- const new_root_addr = @ptrToInt(new_ptr);
- const new_adjusted_addr = new_root_addr + offset;
- assert(new_adjusted_addr % alignment == 0);
- const new_record_addr = new_adjusted_addr + new_size;
- @intToPtr(*align(1) usize, new_record_addr).* = new_root_addr;
- return @intToPtr([*]u8, new_adjusted_addr)[0..new_size];
+ const new_record_addr = old_record_addr - new_size + old_mem.len;
+ @intToPtr(*align(1) usize, new_record_addr).* = root_addr;
+ return old_mem[0..new_size];
},
else => @compileError("Unsupported OS"),
}
}
- fn free(allocator: *Allocator, bytes: []u8) void {
- const self = @fieldParentPtr(DirectAllocator, "allocator", allocator);
-
+ fn realloc(allocator: *Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) ![]u8 {
switch (builtin.os) {
Os.linux, Os.macosx, Os.ios, Os.freebsd, Os.netbsd => {
- _ = os.posix.munmap(@ptrToInt(bytes.ptr), bytes.len);
+ if (new_size <= old_mem.len and new_align <= old_align) {
+ return shrink(allocator, old_mem, old_align, new_size, new_align);
+ }
+ const result = try alloc(allocator, new_size, new_align);
+ mem.copy(u8, result, old_mem);
+ _ = os.posix.munmap(@ptrToInt(old_mem.ptr), old_mem.len);
+ return result;
},
Os.windows => {
- const record_addr = @ptrToInt(bytes.ptr) + bytes.len;
- const root_addr = @intToPtr(*align(1) usize, record_addr).*;
- const ptr = @intToPtr(*c_void, root_addr);
- _ = os.windows.HeapFree(self.heap_handle.?, 0, ptr);
+ const self = @fieldParentPtr(DirectAllocator, "allocator", allocator);
+
+ const old_adjusted_addr = @ptrToInt(old_mem.ptr);
+ const old_record_addr = old_adjusted_addr + old_mem.len;
+ const root_addr = @intToPtr(*align(1) usize, old_record_addr).*;
+ const old_ptr = @intToPtr(*c_void, root_addr);
+ const amt = new_size + new_align + @sizeOf(usize);
+ const new_ptr = os.windows.HeapReAlloc(
+ self.heap_handle.?,
+ 0,
+ old_ptr,
+ amt,
+ ) orelse return error.OutOfMemory;
+ const offset = old_adjusted_addr - root_addr;
+ const new_root_addr = @ptrToInt(new_ptr);
+ const new_adjusted_addr = new_root_addr + offset;
+ assert(new_adjusted_addr % new_align == 0);
+ const new_record_addr = new_adjusted_addr + new_size;
+ @intToPtr(*align(1) usize, new_record_addr).* = new_root_addr;
+ return @intToPtr([*]u8, new_adjusted_addr)[0..new_size];
},
else => @compileError("Unsupported OS"),
}
@@ -192,9 +183,8 @@ pub const ArenaAllocator = struct {
pub fn init(child_allocator: *Allocator) ArenaAllocator {
return ArenaAllocator{
.allocator = Allocator{
- .allocFn = alloc,
.reallocFn = realloc,
- .freeFn = free,
+ .shrinkFn = shrink,
},
.child_allocator = child_allocator,
.buffer_list = std.LinkedList([]u8).init(),
@@ -253,17 +243,20 @@ pub const ArenaAllocator = struct {
}
}
- fn realloc(allocator: *Allocator, old_mem: []u8, new_size: usize, alignment: u29) ![]u8 {
- if (new_size <= old_mem.len) {
- return old_mem[0..new_size];
+ fn realloc(allocator: *Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) ![]u8 {
+ if (new_size <= old_mem.len and new_align <= new_size) {
+ // We can't do anything with the memory, so tell the client to keep it.
+ return error.OutOfMemory;
} else {
- const result = try alloc(allocator, new_size, alignment);
+ const result = try alloc(allocator, new_size, new_align);
mem.copy(u8, result, old_mem);
return result;
}
}
- fn free(allocator: *Allocator, bytes: []u8) void {}
+ fn shrink(allocator: *Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) []u8 {
+ return old_mem[0..new_size];
+ }
};
pub const FixedBufferAllocator = struct {
@@ -274,9 +267,8 @@ pub const FixedBufferAllocator = struct {
pub fn init(buffer: []u8) FixedBufferAllocator {
return FixedBufferAllocator{
.allocator = Allocator{
- .allocFn = alloc,
.reallocFn = realloc,
- .freeFn = free,
+ .shrinkFn = shrink,
},
.buffer = buffer,
.end_index = 0,
@@ -298,26 +290,31 @@ pub const FixedBufferAllocator = struct {
return result;
}
- fn realloc(allocator: *Allocator, old_mem: []u8, new_size: usize, alignment: u29) ![]u8 {
+ fn realloc(allocator: *Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) ![]u8 {
const self = @fieldParentPtr(FixedBufferAllocator, "allocator", allocator);
assert(old_mem.len <= self.end_index);
- if (new_size <= old_mem.len) {
- return old_mem[0..new_size];
- } else if (old_mem.ptr == self.buffer.ptr + self.end_index - old_mem.len) {
+ if (old_mem.ptr == self.buffer.ptr + self.end_index - old_mem.len and
+ mem.alignForward(@ptrToInt(old_mem.ptr), new_align) == @ptrToInt(old_mem.ptr))
+ {
const start_index = self.end_index - old_mem.len;
const new_end_index = start_index + new_size;
if (new_end_index > self.buffer.len) return error.OutOfMemory;
const result = self.buffer[start_index..new_end_index];
self.end_index = new_end_index;
return result;
+ } else if (new_size <= old_mem.len and new_align <= old_align) {
+ // We can't do anything with the memory, so tell the client to keep it.
+ return error.OutOfMemory;
} else {
- const result = try alloc(allocator, new_size, alignment);
+ const result = try alloc(allocator, new_size, new_align);
mem.copy(u8, result, old_mem);
return result;
}
}
- fn free(allocator: *Allocator, bytes: []u8) void {}
+ fn shrink(allocator: *Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) []u8 {
+ return old_mem[0..new_size];
+ }
};
pub const ThreadSafeFixedBufferAllocator = blk: {
@@ -333,9 +330,8 @@ pub const ThreadSafeFixedBufferAllocator = blk: {
pub fn init(buffer: []u8) ThreadSafeFixedBufferAllocator {
return ThreadSafeFixedBufferAllocator{
.allocator = Allocator{
- .allocFn = alloc,
.reallocFn = realloc,
- .freeFn = free,
+ .shrinkFn = shrink,
},
.buffer = buffer,
.end_index = 0,
@@ -357,17 +353,20 @@ pub const ThreadSafeFixedBufferAllocator = blk: {
}
}
- fn realloc(allocator: *Allocator, old_mem: []u8, new_size: usize, alignment: u29) ![]u8 {
- if (new_size <= old_mem.len) {
- return old_mem[0..new_size];
+ fn realloc(allocator: *Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) ![]u8 {
+ if (new_size <= old_mem.len and new_align <= old_align) {
+ // We can't do anything useful with the memory, tell the client to keep it.
+ return error.OutOfMemory;
} else {
- const result = try alloc(allocator, new_size, alignment);
+ const result = try alloc(allocator, new_size, new_align);
mem.copy(u8, result, old_mem);
return result;
}
}
- fn free(allocator: *Allocator, bytes: []u8) void {}
+ fn shrink(allocator: *Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) []u8 {
+ return old_mem[0..new_size];
+ }
};
}
};
@@ -378,9 +377,8 @@ pub fn stackFallback(comptime size: usize, fallback_allocator: *Allocator) Stack
.fallback_allocator = fallback_allocator,
.fixed_buffer_allocator = undefined,
.allocator = Allocator{
- .allocFn = StackFallbackAllocator(size).alloc,
.reallocFn = StackFallbackAllocator(size).realloc,
- .freeFn = StackFallbackAllocator(size).free,
+ .shrinkFn = StackFallbackAllocator(size).shrink,
},
};
}
@@ -399,13 +397,7 @@ pub fn StackFallbackAllocator(comptime size: usize) type {
return &self.allocator;
}
- fn alloc(allocator: *Allocator, n: usize, alignment: u29) ![]u8 {
- const self = @fieldParentPtr(Self, "allocator", allocator);
- return FixedBufferAllocator.alloc(&self.fixed_buffer_allocator.allocator, n, alignment) catch
- self.fallback_allocator.allocFn(self.fallback_allocator, n, alignment);
- }
-
- fn realloc(allocator: *Allocator, old_mem: []u8, new_size: usize, alignment: u29) ![]u8 {
+ fn realloc(allocator: *Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) ![]u8 {
const self = @fieldParentPtr(Self, "allocator", allocator);
const in_buffer = @ptrToInt(old_mem.ptr) >= @ptrToInt(&self.buffer) and
@ptrToInt(old_mem.ptr) < @ptrToInt(&self.buffer) + self.buffer.len;
@@ -413,37 +405,59 @@ pub fn StackFallbackAllocator(comptime size: usize) type {
return FixedBufferAllocator.realloc(
&self.fixed_buffer_allocator.allocator,
old_mem,
+ old_align,
new_size,
- alignment,
+ new_align,
) catch {
- const result = try self.fallback_allocator.allocFn(
+ const result = try self.fallback_allocator.reallocFn(
self.fallback_allocator,
+ ([*]u8)(undefined)[0..0],
+ undefined,
new_size,
- alignment,
+ new_align,
);
mem.copy(u8, result, old_mem);
return result;
};
}
- return self.fallback_allocator.reallocFn(self.fallback_allocator, old_mem, new_size, alignment);
+ return self.fallback_allocator.reallocFn(
+ self.fallback_allocator,
+ old_mem,
+ old_align,
+ new_size,
+ new_align,
+ );
}
- fn free(allocator: *Allocator, bytes: []u8) void {
+ fn shrink(allocator: *Allocator, old_mem: []u8, old_align: u29, new_size: usize, new_align: u29) []u8 {
const self = @fieldParentPtr(Self, "allocator", allocator);
- const in_buffer = @ptrToInt(bytes.ptr) >= @ptrToInt(&self.buffer) and
- @ptrToInt(bytes.ptr) < @ptrToInt(&self.buffer) + self.buffer.len;
- if (!in_buffer) {
- return self.fallback_allocator.freeFn(self.fallback_allocator, bytes);
+ const in_buffer = @ptrToInt(old_mem.ptr) >= @ptrToInt(&self.buffer) and
+ @ptrToInt(old_mem.ptr) < @ptrToInt(&self.buffer) + self.buffer.len;
+ if (in_buffer) {
+ return FixedBufferAllocator.shrink(
+ &self.fixed_buffer_allocator.allocator,
+ old_mem,
+ old_align,
+ new_size,
+ new_align,
+ );
}
+ return self.fallback_allocator.shrinkFn(
+ self.fallback_allocator,
+ old_mem,
+ old_align,
+ new_size,
+ new_align,
+ );
}
};
}
test "c_allocator" {
if (builtin.link_libc) {
- var slice = c_allocator.alloc(u8, 50) catch return;
+ var slice = try c_allocator.alloc(u8, 50);
defer c_allocator.free(slice);
- slice = c_allocator.realloc(u8, slice, 100) catch return;
+ slice = try c_allocator.realloc(slice, 100);
}
}
@@ -486,10 +500,10 @@ test "FixedBufferAllocator Reuse memory on realloc" {
var slice0 = try fixed_buffer_allocator.allocator.alloc(u8, 5);
testing.expect(slice0.len == 5);
- var slice1 = try fixed_buffer_allocator.allocator.realloc(u8, slice0, 10);
+ var slice1 = try fixed_buffer_allocator.allocator.realloc(slice0, 10);
testing.expect(slice1.ptr == slice0.ptr);
testing.expect(slice1.len == 10);
- testing.expectError(error.OutOfMemory, fixed_buffer_allocator.allocator.realloc(u8, slice1, 11));
+ testing.expectError(error.OutOfMemory, fixed_buffer_allocator.allocator.realloc(slice1, 11));
}
// check that we don't re-use the memory if it's not the most recent block
{
@@ -499,7 +513,7 @@ test "FixedBufferAllocator Reuse memory on realloc" {
slice0[0] = 1;
slice0[1] = 2;
var slice1 = try fixed_buffer_allocator.allocator.alloc(u8, 2);
- var slice2 = try fixed_buffer_allocator.allocator.realloc(u8, slice0, 4);
+ var slice2 = try fixed_buffer_allocator.allocator.realloc(slice0, 4);
testing.expect(slice0.ptr != slice2.ptr);
testing.expect(slice1.ptr != slice2.ptr);
testing.expect(slice2[0] == 1);
@@ -523,7 +537,7 @@ fn testAllocator(allocator: *mem.Allocator) !void {
item.*.* = @intCast(i32, i);
}
- slice = try allocator.realloc(*i32, slice, 20000);
+ slice = try allocator.realloc(slice, 20000);
testing.expect(slice.len == 20000);
for (slice[0..100]) |item, i| {
@@ -531,13 +545,13 @@ fn testAllocator(allocator: *mem.Allocator) !void {
allocator.destroy(item);
}
- slice = try allocator.realloc(*i32, slice, 50);
+ slice = allocator.shrink(slice, 50);
testing.expect(slice.len == 50);
- slice = try allocator.realloc(*i32, slice, 25);
+ slice = allocator.shrink(slice, 25);
testing.expect(slice.len == 25);
- slice = try allocator.realloc(*i32, slice, 0);
+ slice = allocator.shrink(slice, 0);
testing.expect(slice.len == 0);
- slice = try allocator.realloc(*i32, slice, 10);
+ slice = try allocator.realloc(slice, 10);
testing.expect(slice.len == 10);
allocator.free(slice);
@@ -548,22 +562,22 @@ fn testAllocatorAligned(allocator: *mem.Allocator, comptime alignment: u29) !voi
var slice = try allocator.alignedAlloc(u8, alignment, 10);
testing.expect(slice.len == 10);
// grow
- slice = try allocator.alignedRealloc(u8, alignment, slice, 100);
+ slice = try allocator.realloc(slice, 100);
testing.expect(slice.len == 100);
// shrink
- slice = try allocator.alignedRealloc(u8, alignment, slice, 10);
+ slice = allocator.shrink(slice, 10);
testing.expect(slice.len == 10);
// go to zero
- slice = try allocator.alignedRealloc(u8, alignment, slice, 0);
+ slice = allocator.shrink(slice, 0);
testing.expect(slice.len == 0);
// realloc from zero
- slice = try allocator.alignedRealloc(u8, alignment, slice, 100);
+ slice = try allocator.realloc(slice, 100);
testing.expect(slice.len == 100);
// shrink with shrink
- slice = allocator.alignedShrink(u8, alignment, slice, 10);
+ slice = allocator.shrink(slice, 10);
testing.expect(slice.len == 10);
// shrink to zero
- slice = allocator.alignedShrink(u8, alignment, slice, 0);
+ slice = allocator.shrink(slice, 0);
testing.expect(slice.len == 0);
}
@@ -578,19 +592,19 @@ fn testAllocatorLargeAlignment(allocator: *mem.Allocator) mem.Allocator.Error!vo
var align_mask: usize = undefined;
_ = @shlWithOverflow(usize, ~usize(0), USizeShift(@ctz(large_align)), &align_mask);
- var slice = try allocator.allocFn(allocator, 500, large_align);
+ var slice = try allocator.alignedAlloc(u8, large_align, 500);
testing.expect(@ptrToInt(slice.ptr) & align_mask == @ptrToInt(slice.ptr));
- slice = try allocator.reallocFn(allocator, slice, 100, large_align);
+ slice = allocator.shrink(slice, 100);
testing.expect(@ptrToInt(slice.ptr) & align_mask == @ptrToInt(slice.ptr));
- slice = try allocator.reallocFn(allocator, slice, 5000, large_align);
+ slice = try allocator.realloc(slice, 5000);
testing.expect(@ptrToInt(slice.ptr) & align_mask == @ptrToInt(slice.ptr));
- slice = try allocator.reallocFn(allocator, slice, 10, large_align);
+ slice = allocator.shrink(slice, 10);
testing.expect(@ptrToInt(slice.ptr) & align_mask == @ptrToInt(slice.ptr));
- slice = try allocator.reallocFn(allocator, slice, 20000, large_align);
+ slice = try allocator.realloc(slice, 20000);
testing.expect(@ptrToInt(slice.ptr) & align_mask == @ptrToInt(slice.ptr));
allocator.free(slice);
diff --git a/std/math/big/int.zig b/std/math/big/int.zig
index 7fca4a147f..bf382f0021 100644
--- a/std/math/big/int.zig
+++ b/std/math/big/int.zig
@@ -60,7 +60,7 @@ pub const Int = struct {
return;
}
- self.limbs = try self.allocator.realloc(Limb, self.limbs, capacity);
+ self.limbs = try self.allocator.realloc(self.limbs, capacity);
}
pub fn deinit(self: *Int) void {
diff --git a/std/mem.zig b/std/mem.zig
index 28f25dcbcd..9bf68698c9 100644
--- a/std/mem.zig
+++ b/std/mem.zig
@@ -11,31 +11,64 @@ const testing = std.testing;
pub const Allocator = struct {
pub const Error = error{OutOfMemory};
- /// Allocate byte_count bytes and return them in a slice, with the
- /// slice's pointer aligned at least to alignment bytes.
- /// The returned newly allocated memory is undefined.
- /// `alignment` is guaranteed to be >= 1
- /// `alignment` is guaranteed to be a power of 2
- allocFn: fn (self: *Allocator, byte_count: usize, alignment: u29) Error![]u8,
-
- /// If `new_byte_count > old_mem.len`:
- /// * `old_mem.len` is the same as what was returned from allocFn or reallocFn.
- /// * alignment >= alignment of old_mem.ptr
- ///
- /// If `new_byte_count <= old_mem.len`:
- /// * this function must return successfully.
- /// * alignment <= alignment of old_mem.ptr
- ///
+ /// Realloc is used to modify the size or alignment of an existing allocation,
+ /// as well as to provide the allocator with an opportunity to move an allocation
+ /// to a better location.
+ /// When the size/alignment is greater than the previous allocation, this function
+ /// returns `error.OutOfMemory` when the requested new allocation could not be granted.
+ /// When the size/alignment is less than or equal to the previous allocation,
+ /// this function returns `error.OutOfMemory` when the allocator decides the client
+ /// would be better off keeping the extra alignment/size. Clients will call
+ /// `shrinkFn` when they require the allocator to track a new alignment/size,
+ /// and so this function should only return success when the allocator considers
+ /// the reallocation desirable from the allocator's perspective.
+ /// As an example, `std.ArrayList` tracks a "capacity", and therefore can handle
+ /// reallocation failure, even when `new_n` <= `old_mem.len`. A `FixedBufferAllocator`
+ /// would always return `error.OutOfMemory` for `reallocFn` when the size/alignment
+ /// is less than or equal to the old allocation, because it cannot reclaim the memory,
+ /// and thus the `std.ArrayList` would be better off retaining its capacity.
/// When `reallocFn` returns,
/// `return_value[0..min(old_mem.len, new_byte_count)]` must be the same
/// as `old_mem` was when `reallocFn` is called. The bytes of
/// `return_value[old_mem.len..]` have undefined values.
- /// `alignment` is guaranteed to be >= 1
- /// `alignment` is guaranteed to be a power of 2
- reallocFn: fn (self: *Allocator, old_mem: []u8, new_byte_count: usize, alignment: u29) Error![]u8,
+ /// The returned slice must have its pointer aligned at least to `new_alignment` bytes.
+ reallocFn: fn (
+ self: *Allocator,
+ // Guaranteed to be the same as what was returned from most recent call to
+ // `reallocFn` or `shrinkFn`.
+ // If `old_mem.len == 0` then this is a new allocation and `new_byte_count`
+ // is guaranteed to be >= 1.
+ old_mem: []u8,
+ // If `old_mem.len == 0` then this is `undefined`, otherwise:
+ // Guaranteed to be the same as what was returned from most recent call to
+ // `reallocFn` or `shrinkFn`.
+ // Guaranteed to be >= 1.
+ // Guaranteed to be a power of 2.
+ old_alignment: u29,
+ // If `new_byte_count` is 0 then this is a free and it is guaranteed that
+ // `old_mem.len != 0`.
+ new_byte_count: usize,
+ // Guaranteed to be >= 1.
+ // Guaranteed to be a power of 2.
+ // Returned slice's pointer must have this alignment.
+ new_alignment: u29,
+ ) Error![]u8,
- /// Guaranteed: `old_mem.len` is the same as what was returned from `allocFn` or `reallocFn`
- freeFn: fn (self: *Allocator, old_mem: []u8) void,
+ /// This function deallocates memory. It must succeed.
+ shrinkFn: fn (
+ self: *Allocator,
+ // Guaranteed to be the same as what was returned from most recent call to
+ // `reallocFn` or `shrinkFn`.
+ old_mem: []u8,
+ // Guaranteed to be the same as what was returned from most recent call to
+ // `reallocFn` or `shrinkFn`.
+ old_alignment: u29,
+ // Guaranteed to be less than or equal to `old_mem.len`.
+ new_byte_count: usize,
+ // If `new_byte_count == 0` then this is `undefined`, otherwise:
+ // Guaranteed to be less than or equal to `old_alignment`.
+ new_alignment: u29,
+ ) []u8,
/// Call `destroy` with the result.
/// Returns undefined memory.
@@ -47,20 +80,29 @@ pub const Allocator = struct {
/// `ptr` should be the return value of `create`
pub fn destroy(self: *Allocator, ptr: var) void {
+ const T = @typeOf(ptr).Child;
+ if (@sizeOf(T) == 0) return;
const non_const_ptr = @intToPtr([*]u8, @ptrToInt(ptr));
- self.freeFn(self, non_const_ptr[0..@sizeOf(@typeOf(ptr).Child)]);
+ const shrink_result = self.shrinkFn(self, non_const_ptr[0..@sizeOf(T)], @alignOf(T), 0, 1);
+ assert(shrink_result.len == 0);
}
pub fn alloc(self: *Allocator, comptime T: type, n: usize) ![]T {
return self.alignedAlloc(T, @alignOf(T), n);
}
- pub fn alignedAlloc(self: *Allocator, comptime T: type, comptime alignment: u29, n: usize) ![]align(alignment) T {
+ pub fn alignedAlloc(
+ self: *Allocator,
+ comptime T: type,
+ comptime alignment: u29,
+ n: usize,
+ ) ![]align(alignment) T {
if (n == 0) {
return ([*]align(alignment) T)(undefined)[0..0];
}
+
const byte_count = math.mul(usize, @sizeOf(T), n) catch return Error.OutOfMemory;
- const byte_slice = try self.allocFn(self, byte_count, alignment);
+ const byte_slice = try self.reallocFn(self, ([*]u8)(undefined)[0..0], undefined, byte_count, alignment);
assert(byte_slice.len == byte_count);
// This loop gets optimized out in ReleaseFast mode
for (byte_slice) |*byte| {
@@ -69,62 +111,106 @@ pub const Allocator = struct {
return @bytesToSlice(T, @alignCast(alignment, byte_slice));
}
- pub fn realloc(self: *Allocator, comptime T: type, old_mem: []T, n: usize) ![]T {
- return self.alignedRealloc(T, @alignOf(T), @alignCast(@alignOf(T), old_mem), n);
+ /// This function requests a new byte size for an existing allocation,
+ /// which can be larger, smaller, or the same size as the old memory
+ /// allocation.
+ /// This function is preferred over `shrink`, because it can fail, even
+ /// when shrinking. This gives the allocator a chance to perform a
+ /// cheap shrink operation if possible, or otherwise return OutOfMemory,
+ /// indicating that the caller should keep their capacity, for example
+ /// in `std.ArrayList.shrink`.
+ /// If you need guaranteed success, call `shrink`.
+ /// If `new_n` is 0, this is the same as `free` and it always succeeds.
+ pub fn realloc(self: *Allocator, old_mem: var, new_n: usize) t: {
+ const Slice = @typeInfo(@typeOf(old_mem)).Pointer;
+ break :t Error![]align(Slice.alignment) Slice.child;
+ } {
+ const old_alignment = @typeInfo(@typeOf(old_mem)).Pointer.alignment;
+ return self.alignedRealloc(old_mem, old_alignment, new_n);
}
- pub fn alignedRealloc(self: *Allocator, comptime T: type, comptime alignment: u29, old_mem: []align(alignment) T, n: usize) ![]align(alignment) T {
+ /// This is the same as `realloc`, except caller may additionally request
+ /// a new alignment, which can be larger, smaller, or the same as the old
+ /// allocation.
+ pub fn alignedRealloc(
+ self: *Allocator,
+ old_mem: var,
+ comptime new_alignment: u29,
+ new_n: usize,
+ ) Error![]align(new_alignment) @typeInfo(@typeOf(old_mem)).Pointer.child {
+ const Slice = @typeInfo(@typeOf(old_mem)).Pointer;
+ const T = Slice.child;
if (old_mem.len == 0) {
- return self.alignedAlloc(T, alignment, n);
+ return self.alignedAlloc(T, new_alignment, new_n);
}
- if (n == 0) {
+ if (new_n == 0) {
self.free(old_mem);
- return ([*]align(alignment) T)(undefined)[0..0];
+ return ([*]align(new_alignment) T)(undefined)[0..0];
}
const old_byte_slice = @sliceToBytes(old_mem);
- const byte_count = math.mul(usize, @sizeOf(T), n) catch return Error.OutOfMemory;
- const byte_slice = try self.reallocFn(self, old_byte_slice, byte_count, alignment);
+ const byte_count = math.mul(usize, @sizeOf(T), new_n) catch return Error.OutOfMemory;
+ const byte_slice = try self.reallocFn(self, old_byte_slice, Slice.alignment, byte_count, new_alignment);
assert(byte_slice.len == byte_count);
- if (n > old_mem.len) {
+ if (new_n > old_mem.len) {
// This loop gets optimized out in ReleaseFast mode
for (byte_slice[old_byte_slice.len..]) |*byte| {
byte.* = undefined;
}
}
- return @bytesToSlice(T, @alignCast(alignment, byte_slice));
+ return @bytesToSlice(T, @alignCast(new_alignment, byte_slice));
}
- /// Reallocate, but `n` must be less than or equal to `old_mem.len`.
- /// Unlike `realloc`, this function cannot fail.
+ /// Prefer calling realloc to shrink if you can tolerate failure, such as
+ /// in an ArrayList data structure with a storage capacity.
+ /// Shrink always succeeds, and `new_n` must be <= `old_mem.len`.
+ /// Returned slice has same alignment as old_mem.
/// Shrinking to 0 is the same as calling `free`.
- pub fn shrink(self: *Allocator, comptime T: type, old_mem: []T, n: usize) []T {
- return self.alignedShrink(T, @alignOf(T), @alignCast(@alignOf(T), old_mem), n);
+ pub fn shrink(self: *Allocator, old_mem: var, new_n: usize) t: {
+ const Slice = @typeInfo(@typeOf(old_mem)).Pointer;
+ break :t []align(Slice.alignment) Slice.child;
+ } {
+ const old_alignment = @typeInfo(@typeOf(old_mem)).Pointer.alignment;
+ return self.alignedShrink(old_mem, old_alignment, new_n);
}
- pub fn alignedShrink(self: *Allocator, comptime T: type, comptime alignment: u29, old_mem: []align(alignment) T, n: usize) []align(alignment) T {
- if (n == 0) {
+ /// This is the same as `shrink`, except caller may additionally request
+ /// a new alignment, which must be smaller or the same as the old
+ /// allocation.
+ pub fn alignedShrink(
+ self: *Allocator,
+ old_mem: var,
+ comptime new_alignment: u29,
+ new_n: usize,
+ ) []align(new_alignment) @typeInfo(@typeOf(old_mem)).Pointer.child {
+ const Slice = @typeInfo(@typeOf(old_mem)).Pointer;
+ const T = Slice.child;
+
+ if (new_n == 0) {
self.free(old_mem);
return old_mem[0..0];
}
- assert(n <= old_mem.len);
+ assert(new_n <= old_mem.len);
+ assert(new_alignment <= Slice.alignment);
// Here we skip the overflow checking on the multiplication because
- // n <= old_mem.len and the multiplication didn't overflow for that operation.
- const byte_count = @sizeOf(T) * n;
+ // new_n <= old_mem.len and the multiplication didn't overflow for that operation.
+ const byte_count = @sizeOf(T) * new_n;
const old_byte_slice = @sliceToBytes(old_mem);
- const byte_slice = self.reallocFn(self, old_byte_slice, byte_count, alignment) catch unreachable;
+ const byte_slice = self.shrinkFn(self, old_byte_slice, Slice.alignment, byte_count, new_alignment);
assert(byte_slice.len == byte_count);
- return @bytesToSlice(T, @alignCast(alignment, byte_slice));
+ return @bytesToSlice(T, @alignCast(new_alignment, byte_slice));
}
pub fn free(self: *Allocator, memory: var) void {
+ const Slice = @typeInfo(@typeOf(memory)).Pointer;
const bytes = @sliceToBytes(memory);
if (bytes.len == 0) return;
const non_const_ptr = @intToPtr([*]u8, @ptrToInt(bytes.ptr));
- self.freeFn(self, non_const_ptr[0..bytes.len]);
+ const shrink_result = self.shrinkFn(self, non_const_ptr[0..bytes.len], Slice.alignment, 0, 1);
+ assert(shrink_result.len == 0);
}
};
diff --git a/std/os.zig b/std/os.zig
index 96745f15c7..cbbc80c47d 100644
--- a/std/os.zig
+++ b/std/os.zig
@@ -814,7 +814,7 @@ pub fn getEnvVarOwned(allocator: *mem.Allocator, key: []const u8) GetEnvVarOwned
}
if (result > buf.len) {
- buf = try allocator.realloc(u16, buf, result);
+ buf = try allocator.realloc(buf, result);
continue;
}
@@ -1648,7 +1648,7 @@ pub const Dir = struct {
switch (err) {
posix.EBADF, posix.EFAULT, posix.ENOTDIR => unreachable,
posix.EINVAL => {
- self.handle.buf = try self.allocator.realloc(u8, self.handle.buf, self.handle.buf.len * 2);
+ self.handle.buf = try self.allocator.realloc(self.handle.buf, self.handle.buf.len * 2);
continue;
},
else => return unexpectedErrorPosix(err),
@@ -1730,7 +1730,7 @@ pub const Dir = struct {
switch (err) {
posix.EBADF, posix.EFAULT, posix.ENOTDIR => unreachable,
posix.EINVAL => {
- self.handle.buf = try self.allocator.realloc(u8, self.handle.buf, self.handle.buf.len * 2);
+ self.handle.buf = try self.allocator.realloc(self.handle.buf, self.handle.buf.len * 2);
continue;
},
else => return unexpectedErrorPosix(err),
@@ -1784,7 +1784,7 @@ pub const Dir = struct {
switch (err) {
posix.EBADF, posix.EFAULT, posix.ENOTDIR => unreachable,
posix.EINVAL => {
- self.handle.buf = try self.allocator.realloc(u8, self.handle.buf, self.handle.buf.len * 2);
+ self.handle.buf = try self.allocator.realloc(self.handle.buf, self.handle.buf.len * 2);
continue;
},
else => return unexpectedErrorPosix(err),
@@ -3279,7 +3279,7 @@ pub fn cpuCount(fallback_allocator: *mem.Allocator) CpuCountError!usize {
}
return sum;
} else {
- set = try allocator.realloc(usize, set, set.len * 2);
+ set = try allocator.realloc(set, set.len * 2);
continue;
}
},
diff --git a/std/os/path.zig b/std/os/path.zig
index b68ff32408..fa8bb282eb 100644
--- a/std/os/path.zig
+++ b/std/os/path.zig
@@ -565,7 +565,7 @@ pub fn resolveWindows(allocator: *Allocator, paths: []const []const u8) ![]u8 {
result_index += 1;
}
- return allocator.shrink(u8, result, result_index);
+ return allocator.shrink(result, result_index);
}
/// This function is like a series of `cd` statements executed one after another.
@@ -634,7 +634,7 @@ pub fn resolvePosix(allocator: *Allocator, paths: []const []const u8) ![]u8 {
result_index += 1;
}
- return allocator.shrink(u8, result, result_index);
+ return allocator.shrink(result, result_index);
}
test "os.path.resolve" {
diff --git a/std/priority_queue.zig b/std/priority_queue.zig
index 0469e26743..3bc09ef5a0 100644
--- a/std/priority_queue.zig
+++ b/std/priority_queue.zig
@@ -141,7 +141,7 @@ pub fn PriorityQueue(comptime T: type) type {
better_capacity += better_capacity / 2 + 8;
if (better_capacity >= new_capacity) break;
}
- self.items = try self.allocator.realloc(T, self.items, better_capacity);
+ self.items = try self.allocator.realloc(self.items, better_capacity);
}
pub fn resize(self: *Self, new_len: usize) !void {
@@ -150,6 +150,7 @@ pub fn PriorityQueue(comptime T: type) type {
}
pub fn shrink(self: *Self, new_len: usize) void {
+ // TODO take advantage of the new realloc semantics
assert(new_len <= self.len);
self.len = new_len;
}
diff --git a/std/segmented_list.zig b/std/segmented_list.zig
index 0600fbba3f..a6603af994 100644
--- a/std/segmented_list.zig
+++ b/std/segmented_list.zig
@@ -169,11 +169,11 @@ pub fn SegmentedList(comptime T: type, comptime prealloc_item_count: usize) type
const new_cap_shelf_count = shelfCount(new_capacity);
const old_shelf_count = @intCast(ShelfIndex, self.dynamic_segments.len);
if (new_cap_shelf_count > old_shelf_count) {
- self.dynamic_segments = try self.allocator.realloc([*]T, self.dynamic_segments, new_cap_shelf_count);
+ self.dynamic_segments = try self.allocator.realloc(self.dynamic_segments, new_cap_shelf_count);
var i = old_shelf_count;
errdefer {
self.freeShelves(i, old_shelf_count);
- self.dynamic_segments = self.allocator.shrink([*]T, self.dynamic_segments, old_shelf_count);
+ self.dynamic_segments = self.allocator.shrink(self.dynamic_segments, old_shelf_count);
}
while (i < new_cap_shelf_count) : (i += 1) {
self.dynamic_segments[i] = (try self.allocator.alloc(T, shelfSize(i))).ptr;
@@ -199,11 +199,12 @@ pub fn SegmentedList(comptime T: type, comptime prealloc_item_count: usize) type
}
self.freeShelves(old_shelf_count, new_cap_shelf_count);
- self.dynamic_segments = self.allocator.shrink([*]T, self.dynamic_segments, new_cap_shelf_count);
+ self.dynamic_segments = self.allocator.shrink(self.dynamic_segments, new_cap_shelf_count);
}
pub fn shrink(self: *Self, new_len: usize) void {
assert(new_len <= self.len);
+ // TODO take advantage of the new realloc semantics
self.len = new_len;
}
diff --git a/test/tests.zig b/test/tests.zig
index ba713902ba..d0ea780b3b 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -316,11 +316,13 @@ pub const CompareOutputContext = struct {
Term.Exited => |code| {
if (code != 0) {
warn("Process {} exited with error code {}\n", full_exe_path, code);
+ printInvocation(args.toSliceConst());
return error.TestFailed;
}
},
else => {
warn("Process {} terminated unexpectedly\n", full_exe_path);
+ printInvocation(args.toSliceConst());
return error.TestFailed;
},
}
@@ -681,11 +683,13 @@ pub const CompileErrorContext = struct {
switch (term) {
Term.Exited => |code| {
if (code == 0) {
+ printInvocation(zig_args.toSliceConst());
return error.CompilationIncorrectlySucceeded;
}
},
else => {
warn("Process {} terminated unexpectedly\n", b.zig_exe);
+ printInvocation(zig_args.toSliceConst());
return error.TestFailed;
},
}
@@ -752,13 +756,6 @@ pub const CompileErrorContext = struct {
}
};
- fn printInvocation(args: []const []const u8) void {
- for (args) |arg| {
- warn("{} ", arg);
- }
- warn("\n");
- }
-
pub fn create(self: *CompileErrorContext, name: []const u8, source: []const u8, expected_lines: ...) *TestCase {
const tc = self.b.allocator.create(TestCase) catch unreachable;
tc.* = TestCase{
@@ -1240,3 +1237,10 @@ pub const GenHContext = struct {
self.step.dependOn(&cmp_h.step);
}
};
+
+fn printInvocation(args: []const []const u8) void {
+ for (args) |arg| {
+ warn("{} ", arg);
+ }
+ warn("\n");
+}
From 01fb42103115a58c4b693a600dc5379fedb4ea86 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Fri, 15 Mar 2019 18:57:07 -0400
Subject: [PATCH 15/24] fix regressions on Windows from previous commit
---
std/heap.zig | 3 ++-
std/os/windows/util.zig | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/std/heap.zig b/std/heap.zig
index 84ed469763..dd5cfa4cd7 100644
--- a/std/heap.zig
+++ b/std/heap.zig
@@ -143,8 +143,9 @@ pub const DirectAllocator = struct {
return result;
},
Os.windows => {
- const self = @fieldParentPtr(DirectAllocator, "allocator", allocator);
+ if (old_mem.len == 0) return alloc(allocator, new_size, new_align);
+ const self = @fieldParentPtr(DirectAllocator, "allocator", allocator);
const old_adjusted_addr = @ptrToInt(old_mem.ptr);
const old_record_addr = old_adjusted_addr + old_mem.len;
const root_addr = @intToPtr(*align(1) usize, old_record_addr).*;
diff --git a/std/os/windows/util.zig b/std/os/windows/util.zig
index 24039967a1..72c84502e3 100644
--- a/std/os/windows/util.zig
+++ b/std/os/windows/util.zig
@@ -197,7 +197,7 @@ pub fn createWindowsEnvBlock(allocator: *mem.Allocator, env_map: *const BufMap)
i += 1;
result[i] = 0;
i += 1;
- return allocator.shrink(u16, result, i);
+ return allocator.shrink(result, i);
}
pub fn windowsFindFirstFile(
From 4a5cd0b895d0c6093fa710ed4ecb819726b58c25 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Fri, 15 Mar 2019 23:52:11 -0400
Subject: [PATCH 16/24] fix while continue block not checking for ignored
expression
closes #957
---
src/ir.cpp | 12 +++++++++---
test/compile_errors.zig | 22 ++++++++++++++++++++++
2 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/src/ir.cpp b/src/ir.cpp
index dc6118f453..076aadb9c8 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -5462,8 +5462,10 @@ static IrInstruction *ir_gen_while_expr(IrBuilder *irb, Scope *scope, AstNode *n
IrInstruction *expr_result = ir_gen_node(irb, continue_expr_node, payload_scope);
if (expr_result == irb->codegen->invalid_instruction)
return expr_result;
- if (!instr_is_unreachable(expr_result))
+ if (!instr_is_unreachable(expr_result)) {
+ ir_mark_gen(ir_build_check_statement_is_void(irb, payload_scope, continue_expr_node, expr_result));
ir_mark_gen(ir_build_br(irb, payload_scope, node, cond_block, is_comptime));
+ }
}
ir_set_cursor_at_end_and_append_block(irb, else_block);
@@ -5544,8 +5546,10 @@ static IrInstruction *ir_gen_while_expr(IrBuilder *irb, Scope *scope, AstNode *n
IrInstruction *expr_result = ir_gen_node(irb, continue_expr_node, child_scope);
if (expr_result == irb->codegen->invalid_instruction)
return expr_result;
- if (!instr_is_unreachable(expr_result))
+ if (!instr_is_unreachable(expr_result)) {
+ ir_mark_gen(ir_build_check_statement_is_void(irb, child_scope, continue_expr_node, expr_result));
ir_mark_gen(ir_build_br(irb, child_scope, node, cond_block, is_comptime));
+ }
}
IrInstruction *else_result = nullptr;
@@ -5609,8 +5613,10 @@ static IrInstruction *ir_gen_while_expr(IrBuilder *irb, Scope *scope, AstNode *n
IrInstruction *expr_result = ir_gen_node(irb, continue_expr_node, subexpr_scope);
if (expr_result == irb->codegen->invalid_instruction)
return expr_result;
- if (!instr_is_unreachable(expr_result))
+ if (!instr_is_unreachable(expr_result)) {
+ ir_mark_gen(ir_build_check_statement_is_void(irb, scope, continue_expr_node, expr_result));
ir_mark_gen(ir_build_br(irb, scope, node, cond_block, is_comptime));
+ }
}
IrInstruction *else_result = nullptr;
diff --git a/test/compile_errors.zig b/test/compile_errors.zig
index 92df4d2d14..c6771fb457 100644
--- a/test/compile_errors.zig
+++ b/test/compile_errors.zig
@@ -2,6 +2,28 @@ const tests = @import("tests.zig");
const builtin = @import("builtin");
pub fn addCases(cases: *tests.CompileErrorContext) void {
+ cases.add(
+ "ignored expression in while continuation",
+ \\export fn a() void {
+ \\ while (true) : (bad()) {}
+ \\}
+ \\export fn b() void {
+ \\ var x: anyerror!i32 = 1234;
+ \\ while (x) |_| : (bad()) {} else |_| {}
+ \\}
+ \\export fn c() void {
+ \\ var x: ?i32 = 1234;
+ \\ while (x) |_| : (bad()) {}
+ \\}
+ \\fn bad() anyerror!void {
+ \\ return error.Bad;
+ \\}
+ ,
+ "tmp.zig:2:24: error: expression value is ignored",
+ "tmp.zig:6:25: error: expression value is ignored",
+ "tmp.zig:10:25: error: expression value is ignored",
+ );
+
cases.add(
"import outside package path",
\\comptime{
From c40448eb9a0e777c98c78d4ac0ddf08867618ea4 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Sat, 16 Mar 2019 00:18:10 -0400
Subject: [PATCH 17/24] add compile error for wrong type with `use`
closes #1557
---
src/analyze.cpp | 7 +++++++
test/compile_errors.zig | 7 +++++++
2 files changed, 14 insertions(+)
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 0a04a14e3f..cadb5dfc01 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -4367,6 +4367,13 @@ static void add_symbols_from_import(CodeGen *g, AstNode *src_use_node, AstNode *
ZigType *target_import = use_target_value->data.x_type;
assert(target_import);
+ if (target_import->id != ZigTypeIdStruct) {
+ add_node_error(g, dst_use_node,
+ buf_sprintf("expected struct, found '%s'", buf_ptr(&target_import->name)));
+ get_container_scope(dst_use_node->owner)->any_imports_failed = true;
+ return;
+ }
+
if (get_container_scope(target_import)->any_imports_failed) {
get_container_scope(dst_use_node->owner)->any_imports_failed = true;
}
diff --git a/test/compile_errors.zig b/test/compile_errors.zig
index c6771fb457..2ab5824de5 100644
--- a/test/compile_errors.zig
+++ b/test/compile_errors.zig
@@ -2,6 +2,13 @@ const tests = @import("tests.zig");
const builtin = @import("builtin");
pub fn addCases(cases: *tests.CompileErrorContext) void {
+ cases.add(
+ "usingnamespace with wrong type",
+ \\use void;
+ ,
+ "tmp.zig:1:1: error: expected struct, found 'void'",
+ );
+
cases.add(
"ignored expression in while continuation",
\\export fn a() void {
From 6d6195424d5caf0f2453b9b97dab3d7f49cd4998 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Sat, 16 Mar 2019 00:23:18 -0400
Subject: [PATCH 18/24] add regression test for invalid multiple dereferences
closes #1042
---
test/compile_errors.zig | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/test/compile_errors.zig b/test/compile_errors.zig
index 2ab5824de5..f0c5b6a450 100644
--- a/test/compile_errors.zig
+++ b/test/compile_errors.zig
@@ -2,6 +2,25 @@ const tests = @import("tests.zig");
const builtin = @import("builtin");
pub fn addCases(cases: *tests.CompileErrorContext) void {
+ cases.add(
+ "invalid multiple dereferences",
+ \\export fn a() void {
+ \\ var box = Box{ .field = 0 };
+ \\ box.*.field = 1;
+ \\}
+ \\export fn b() void {
+ \\ var box = Box{ .field = 0 };
+ \\ var boxPtr = &box;
+ \\ boxPtr.*.*.field = 1;
+ \\}
+ \\pub const Box = struct {
+ \\ field: i32,
+ \\};
+ ,
+ "tmp.zig:3:8: error: attempt to dereference non-pointer type 'Box'",
+ "tmp.zig:8:13: error: attempt to dereference non-pointer type 'Box'",
+ );
+
cases.add(
"usingnamespace with wrong type",
\\use void;
From 6abe6dbfe445fb2a2b03dc53584215dfe22afd34 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Fri, 15 Mar 2019 23:41:49 -0400
Subject: [PATCH 19/24] enable issue_339 test on macos
closes #1126
---
test/build_examples.zig | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/test/build_examples.zig b/test/build_examples.zig
index 4d9fcc6618..33a288a108 100644
--- a/test/build_examples.zig
+++ b/test/build_examples.zig
@@ -11,10 +11,7 @@ pub fn addCases(cases: *tests.BuildExamplesContext) void {
cases.addBuildFile("example/shared_library/build.zig");
cases.addBuildFile("example/mix_o_files/build.zig");
cases.addBuildFile("test/standalone/static_c_lib/build.zig");
- if (builtin.os != builtin.Os.macosx) {
- // TODO https://github.com/ziglang/zig/issues/1126
- cases.addBuildFile("test/standalone/issue_339/build.zig");
- }
+ cases.addBuildFile("test/standalone/issue_339/build.zig");
cases.addBuildFile("test/standalone/issue_794/build.zig");
cases.addBuildFile("test/standalone/pkg_import/build.zig");
cases.addBuildFile("test/standalone/use_alias/build.zig");
From c8453454e16ce6188fb80f2fed8032a16f576823 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Sun, 17 Mar 2019 13:52:45 -0400
Subject: [PATCH 20/24] add missing std lib file rb.zig to cmakelists.txt
---
CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a575f06481..a3d06f1a0e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -614,6 +614,7 @@ set(ZIG_STD_FILES
"priority_queue.zig"
"rand.zig"
"rand/ziggurat.zig"
+ "rb.zig"
"segmented_list.zig"
"sort.zig"
"special/bootstrap.zig"
From 6acabd6b577ac63274b31bd1b2ae22cc75ab2c7a Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Sun, 17 Mar 2019 14:12:55 -0400
Subject: [PATCH 21/24] when linking msvcrt, also link ntdll.lib
See #2073
---
src/link.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/link.cpp b/src/link.cpp
index 32b83854b3..2e7744b6cc 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -1157,8 +1157,9 @@ static void add_nt_link_args(LinkJob *lj, bool is_library) {
//https://msdn.microsoft.com/en-us/library/bb531344.aspx
lj->args.append("legacy_stdio_definitions.lib");
- // msvcrt depends on kernel32
+ // msvcrt depends on kernel32 and ntdll
lj->args.append("kernel32.lib");
+ lj->args.append("ntdll.lib");
} else {
lj->args.append("/NODEFAULTLIB");
if (!is_library) {
From 9171e7a7c11d2f5623a30683e1a0f510fe30b4de Mon Sep 17 00:00:00 2001
From: Jimmi Holst Christensen
Date: Mon, 18 Mar 2019 14:55:57 +0100
Subject: [PATCH 22/24] More work on ignoring values correctly
---
src/translate_c.cpp | 185 +++++++++++++++++++++++++++----------------
test/translate_c.zig | 26 +++++-
2 files changed, 138 insertions(+), 73 deletions(-)
diff --git a/src/translate_c.cpp b/src/translate_c.cpp
index fcc050bc2d..db3b8ba0e2 100644
--- a/src/translate_c.cpp
+++ b/src/translate_c.cpp
@@ -1226,8 +1226,8 @@ static AstNode *trans_compound_stmt(Context *c, TransScope *scope, const clang::
return child_scope_block->node;
}
-static AstNode *trans_stmt_expr(Context *c, TransScope *scope, const clang::StmtExpr *stmt,
- TransScope **out_node_scope)
+static AstNode *trans_stmt_expr(Context *c, ResultUsed result_used, TransScope *scope,
+ const clang::StmtExpr *stmt, TransScope **out_node_scope)
{
AstNode *block = trans_compound_stmt(c, scope, stmt->getSubStmt(), out_node_scope);
if (block == nullptr)
@@ -1248,7 +1248,7 @@ static AstNode *trans_stmt_expr(Context *c, TransScope *scope, const clang::Stmt
return_expr = return_expr->data.bin_op_expr.op2;
}
block->data.block.statements.append(trans_create_node_break(c, label, return_expr));
- return block;
+ return maybe_suppress_result(c, result_used, block);
}
static AstNode *trans_return_stmt(Context *c, TransScope *scope, const clang::ReturnStmt *stmt) {
@@ -1264,13 +1264,15 @@ static AstNode *trans_return_stmt(Context *c, TransScope *scope, const clang::Re
}
}
-static AstNode *trans_integer_literal(Context *c, const clang::IntegerLiteral *stmt) {
+static AstNode *trans_integer_literal(Context *c, ResultUsed result_used, const clang::IntegerLiteral *stmt) {
llvm::APSInt result;
if (!stmt->EvaluateAsInt(result, *reinterpret_cast(c->ctx))) {
emit_warning(c, stmt->getLocStart(), "invalid integer literal");
return nullptr;
}
- return trans_create_node_apint(c, result);
+
+ AstNode *node = trans_create_node_apint(c, result);
+ return maybe_suppress_result(c, result_used, node);
}
static AstNode *trans_conditional_operator(Context *c, ResultUsed result_used, TransScope *scope,
@@ -1407,14 +1409,17 @@ static AstNode *trans_binary_operator(Context *c, ResultUsed result_used, TransS
case clang::BO_Cmp:
emit_warning(c, stmt->getLocStart(), "TODO handle more C binary operators: clang::BO_Cmp");
return nullptr;
- case clang::BO_Mul:
- return trans_create_bin_op(c, scope, stmt->getLHS(),
+ case clang::BO_Mul: {
+ AstNode *node = trans_create_bin_op(c, scope, stmt->getLHS(),
qual_type_has_wrapping_overflow(c, stmt->getType()) ? BinOpTypeMultWrap : BinOpTypeMult,
stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
case clang::BO_Div:
if (qual_type_has_wrapping_overflow(c, stmt->getType())) {
// unsigned/float division uses the operator
- return trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeDiv, stmt->getRHS());
+ AstNode *node = trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeDiv, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
} else {
// signed integer division uses @divTrunc
AstNode *fn_call = trans_create_node_builtin_fn_call_str(c, "divTrunc");
@@ -1424,12 +1429,13 @@ static AstNode *trans_binary_operator(Context *c, ResultUsed result_used, TransS
AstNode *rhs = trans_expr(c, ResultUsedYes, scope, stmt->getRHS(), TransLValue);
if (rhs == nullptr) return nullptr;
fn_call->data.fn_call_expr.params.append(rhs);
- return fn_call;
+ return maybe_suppress_result(c, result_used, fn_call);
}
case clang::BO_Rem:
if (qual_type_has_wrapping_overflow(c, stmt->getType())) {
// unsigned/float division uses the operator
- return trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeMod, stmt->getRHS());
+ AstNode *node = trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeMod, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
} else {
// signed integer division uses @rem
AstNode *fn_call = trans_create_node_builtin_fn_call_str(c, "rem");
@@ -1439,42 +1445,72 @@ static AstNode *trans_binary_operator(Context *c, ResultUsed result_used, TransS
AstNode *rhs = trans_expr(c, ResultUsedYes, scope, stmt->getRHS(), TransLValue);
if (rhs == nullptr) return nullptr;
fn_call->data.fn_call_expr.params.append(rhs);
- return fn_call;
+ return maybe_suppress_result(c, result_used, fn_call);
}
- case clang::BO_Add:
- return trans_create_bin_op(c, scope, stmt->getLHS(),
+ case clang::BO_Add: {
+ AstNode *node = trans_create_bin_op(c, scope, stmt->getLHS(),
qual_type_has_wrapping_overflow(c, stmt->getType()) ? BinOpTypeAddWrap : BinOpTypeAdd,
stmt->getRHS());
- case clang::BO_Sub:
- return trans_create_bin_op(c, scope, stmt->getLHS(),
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_Sub: {
+ AstNode *node = trans_create_bin_op(c, scope, stmt->getLHS(),
qual_type_has_wrapping_overflow(c, stmt->getType()) ? BinOpTypeSubWrap : BinOpTypeSub,
stmt->getRHS());
- case clang::BO_Shl:
- return trans_create_shift_op(c, scope, stmt->getType(), stmt->getLHS(), BinOpTypeBitShiftLeft, stmt->getRHS());
- case clang::BO_Shr:
- return trans_create_shift_op(c, scope, stmt->getType(), stmt->getLHS(), BinOpTypeBitShiftRight, stmt->getRHS());
- case clang::BO_LT:
- return trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeCmpLessThan, stmt->getRHS());
- case clang::BO_GT:
- return trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeCmpGreaterThan, stmt->getRHS());
- case clang::BO_LE:
- return trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeCmpLessOrEq, stmt->getRHS());
- case clang::BO_GE:
- return trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeCmpGreaterOrEq, stmt->getRHS());
- case clang::BO_EQ:
- return trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeCmpEq, stmt->getRHS());
- case clang::BO_NE:
- return trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeCmpNotEq, stmt->getRHS());
- case clang::BO_And:
- return trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeBinAnd, stmt->getRHS());
- case clang::BO_Xor:
- return trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeBinXor, stmt->getRHS());
- case clang::BO_Or:
- return trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeBinOr, stmt->getRHS());
- case clang::BO_LAnd:
- return trans_create_bool_bin_op(c, scope, stmt->getLHS(), BinOpTypeBoolAnd, stmt->getRHS());
- case clang::BO_LOr:
- return trans_create_bool_bin_op(c, scope, stmt->getLHS(), BinOpTypeBoolOr, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_Shl: {
+ AstNode *node = trans_create_shift_op(c, scope, stmt->getType(), stmt->getLHS(), BinOpTypeBitShiftLeft, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_Shr: {
+ AstNode *node = trans_create_shift_op(c, scope, stmt->getType(), stmt->getLHS(), BinOpTypeBitShiftRight, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_LT: {
+ AstNode *node =trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeCmpLessThan, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_GT: {
+ AstNode *node = trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeCmpGreaterThan, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_LE: {
+ AstNode *node = trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeCmpLessOrEq, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_GE: {
+ AstNode *node = trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeCmpGreaterOrEq, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_EQ: {
+ AstNode *node = trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeCmpEq, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_NE: {
+ AstNode *node = trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeCmpNotEq, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_And: {
+ AstNode *node = trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeBinAnd, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_Xor: {
+ AstNode *node = trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeBinXor, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_Or: {
+ AstNode *node = trans_create_bin_op(c, scope, stmt->getLHS(), BinOpTypeBinOr, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_LAnd: {
+ AstNode *node = trans_create_bool_bin_op(c, scope, stmt->getLHS(), BinOpTypeBoolAnd, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
+ case clang::BO_LOr: {
+ AstNode *node = trans_create_bool_bin_op(c, scope, stmt->getLHS(), BinOpTypeBoolOr, stmt->getRHS());
+ return maybe_suppress_result(c, result_used, node);
+ }
case clang::BO_Assign:
return trans_create_assign(c, result_used, scope, stmt->getLHS(), stmt->getRHS());
case clang::BO_Comma:
@@ -1486,13 +1522,15 @@ static AstNode *trans_binary_operator(Context *c, ResultUsed result_used, TransS
AstNode *lhs = trans_expr(c, ResultUsedNo, &scope_block->base, stmt->getLHS(), TransRValue);
if (lhs == nullptr)
return nullptr;
- scope_block->node->data.block.statements.append(maybe_suppress_result(c, ResultUsedNo, lhs));
+ scope_block->node->data.block.statements.append(lhs);
- AstNode *rhs = trans_expr(c, result_used, &scope_block->base, stmt->getRHS(), TransRValue);
+ AstNode *rhs = trans_expr(c, ResultUsedYes, &scope_block->base, stmt->getRHS(), TransRValue);
if (rhs == nullptr)
return nullptr;
- scope_block->node->data.block.statements.append(trans_create_node_break(c, label_name, rhs));
- return scope_block->node;
+
+ rhs = trans_create_node_break(c, label_name, rhs);
+ scope_block->node->data.block.statements.append(rhs);
+ return maybe_suppress_result(c, result_used, scope_block->node);
}
case clang::BO_MulAssign:
case clang::BO_DivAssign:
@@ -1718,7 +1756,7 @@ static AstNode *trans_compound_assign_operator(Context *c, ResultUsed result_use
zig_unreachable();
}
-static AstNode *trans_implicit_cast_expr(Context *c, TransScope *scope, const clang::ImplicitCastExpr *stmt) {
+static AstNode *trans_implicit_cast_expr(Context *c, ResultUsed result_used, TransScope *scope, const clang::ImplicitCastExpr *stmt) {
switch (stmt->getCastKind()) {
case clang::CK_LValueToRValue:
return trans_expr(c, ResultUsedYes, scope, stmt->getSubExpr(), TransRValue);
@@ -1727,8 +1765,9 @@ static AstNode *trans_implicit_cast_expr(Context *c, TransScope *scope, const cl
AstNode *target_node = trans_expr(c, ResultUsedYes, scope, stmt->getSubExpr(), TransRValue);
if (target_node == nullptr)
return nullptr;
- return trans_c_cast(c, stmt->getExprLoc(), stmt->getType(),
+ AstNode *node = trans_c_cast(c, stmt->getExprLoc(), stmt->getType(),
stmt->getSubExpr()->getType(), target_node);
+ return maybe_suppress_result(c, result_used, node);
}
case clang::CK_FunctionToPointerDecay:
case clang::CK_ArrayToPointerDecay:
@@ -1736,7 +1775,7 @@ static AstNode *trans_implicit_cast_expr(Context *c, TransScope *scope, const cl
AstNode *target_node = trans_expr(c, ResultUsedYes, scope, stmt->getSubExpr(), TransRValue);
if (target_node == nullptr)
return nullptr;
- return target_node;
+ return maybe_suppress_result(c, result_used, target_node);
}
case clang::CK_BitCast:
{
@@ -1753,7 +1792,7 @@ static AstNode *trans_implicit_cast_expr(Context *c, TransScope *scope, const cl
AstNode *node = trans_create_node_builtin_fn_call_str(c, "ptrCast");
node->data.fn_call_expr.params.append(dest_type_node);
node->data.fn_call_expr.params.append(target_node);
- return node;
+ return maybe_suppress_result(c, result_used, node);
}
case clang::CK_NullToPointer:
return trans_create_node_unsigned(c, 0);
@@ -2746,7 +2785,9 @@ static AstNode *trans_call_expr(Context *c, ResultUsed result_used, TransScope *
return node;
}
-static AstNode *trans_member_expr(Context *c, TransScope *scope, const clang::MemberExpr *stmt) {
+static AstNode *trans_member_expr(Context *c, ResultUsed result_used, TransScope *scope,
+ const clang::MemberExpr *stmt)
+{
AstNode *container_node = trans_expr(c, ResultUsedYes, scope, stmt->getBase(), TransRValue);
if (container_node == nullptr)
return nullptr;
@@ -2758,10 +2799,10 @@ static AstNode *trans_member_expr(Context *c, TransScope *scope, const clang::Me
const char *name = decl_name(stmt->getMemberDecl());
AstNode *node = trans_create_node_field_access_str(c, container_node, name);
- return node;
+ return maybe_suppress_result(c, result_used, node);
}
-static AstNode *trans_array_subscript_expr(Context *c, TransScope *scope, const clang::ArraySubscriptExpr *stmt) {
+static AstNode *trans_array_subscript_expr(Context *c, ResultUsed result_used, TransScope *scope, const clang::ArraySubscriptExpr *stmt) {
AstNode *container_node = trans_expr(c, ResultUsedYes, scope, stmt->getBase(), TransRValue);
if (container_node == nullptr)
return nullptr;
@@ -2774,13 +2815,13 @@ static AstNode *trans_array_subscript_expr(Context *c, TransScope *scope, const
AstNode *node = trans_create_node(c, NodeTypeArrayAccessExpr);
node->data.array_access_expr.array_ref_expr = container_node;
node->data.array_access_expr.subscript = idx_node;
- return node;
+ return maybe_suppress_result(c, result_used, node);
}
static AstNode *trans_c_style_cast_expr(Context *c, ResultUsed result_used, TransScope *scope,
const clang::CStyleCastExpr *stmt, TransLRValue lrvalue)
{
- AstNode *sub_expr_node = trans_expr(c, result_used, scope, stmt->getSubExpr(), lrvalue);
+ AstNode *sub_expr_node = trans_expr(c, ResultUsedYes, scope, stmt->getSubExpr(), lrvalue);
if (sub_expr_node == nullptr)
return nullptr;
@@ -2791,8 +2832,8 @@ static AstNode *trans_c_style_cast_expr(Context *c, ResultUsed result_used, Tran
return maybe_suppress_result(c, result_used, cast);
}
-static AstNode *trans_unary_expr_or_type_trait_expr(Context *c, TransScope *scope,
- const clang::UnaryExprOrTypeTraitExpr *stmt)
+static AstNode *trans_unary_expr_or_type_trait_expr(Context *c, ResultUsed result_used,
+ TransScope *scope, const clang::UnaryExprOrTypeTraitExpr *stmt)
{
AstNode *type_node = trans_qual_type(c, stmt->getTypeOfArgument(), stmt->getLocStart());
if (type_node == nullptr)
@@ -2800,7 +2841,7 @@ static AstNode *trans_unary_expr_or_type_trait_expr(Context *c, TransScope *scop
AstNode *node = trans_create_node_builtin_fn_call_str(c, "sizeOf");
node->data.fn_call_expr.params.append(type_node);
- return node;
+ return maybe_suppress_result(c, result_used, node);
}
static AstNode *trans_do_loop(Context *c, TransScope *parent_scope, const clang::DoStmt *stmt) {
@@ -3078,11 +3119,13 @@ static int trans_switch_default(Context *c, TransScope *parent_scope, const clan
return ErrorNone;
}
-static AstNode *trans_string_literal(Context *c, TransScope *scope, const clang::StringLiteral *stmt) {
+static AstNode *trans_string_literal(Context *c, ResultUsed result_used, TransScope *scope, const clang::StringLiteral *stmt) {
switch (stmt->getKind()) {
case clang::StringLiteral::Ascii:
- case clang::StringLiteral::UTF8:
- return trans_create_node_str_lit_c(c, string_ref_to_buf(stmt->getString()));
+ case clang::StringLiteral::UTF8: {
+ AstNode *node = trans_create_node_str_lit_c(c, string_ref_to_buf(stmt->getString()));
+ return maybe_suppress_result(c, result_used, node);
+ }
case clang::StringLiteral::UTF16:
emit_warning(c, stmt->getLocStart(), "TODO support UTF16 string literals");
return nullptr;
@@ -3114,8 +3157,10 @@ static AstNode *trans_continue_stmt(Context *c, TransScope *scope, const clang::
return trans_create_node(c, NodeTypeContinue);
}
-static AstNode *trans_predefined_expr(Context *c, TransScope *scope, const clang::PredefinedExpr *expr) {
- return trans_string_literal(c, scope, expr->getFunctionName());
+static AstNode *trans_predefined_expr(Context *c, ResultUsed result_used, TransScope *scope,
+ const clang::PredefinedExpr *expr)
+{
+ return trans_string_literal(c, result_used, scope, expr->getFunctionName());
}
static int wrap_stmt(AstNode **out_node, TransScope **out_scope, TransScope *in_scope, AstNode *result_node) {
@@ -3142,7 +3187,7 @@ static int trans_stmt_extra(Context *c, TransScope *scope, const clang::Stmt *st
trans_compound_stmt(c, scope, (const clang::CompoundStmt *)stmt, out_node_scope));
case clang::Stmt::IntegerLiteralClass:
return wrap_stmt(out_node, out_child_scope, scope,
- trans_integer_literal(c, (const clang::IntegerLiteral *)stmt));
+ trans_integer_literal(c, result_used, (const clang::IntegerLiteral *)stmt));
case clang::Stmt::ConditionalOperatorClass:
return wrap_stmt(out_node, out_child_scope, scope,
trans_conditional_operator(c, result_used, scope, (const clang::ConditionalOperator *)stmt));
@@ -3154,7 +3199,7 @@ static int trans_stmt_extra(Context *c, TransScope *scope, const clang::Stmt *st
trans_compound_assign_operator(c, result_used, scope, (const clang::CompoundAssignOperator *)stmt));
case clang::Stmt::ImplicitCastExprClass:
return wrap_stmt(out_node, out_child_scope, scope,
- trans_implicit_cast_expr(c, scope, (const clang::ImplicitCastExpr *)stmt));
+ trans_implicit_cast_expr(c, result_used, scope, (const clang::ImplicitCastExpr *)stmt));
case clang::Stmt::DeclRefExprClass:
return wrap_stmt(out_node, out_child_scope, scope,
trans_decl_ref_expr(c, scope, (const clang::DeclRefExpr *)stmt, lrvalue));
@@ -3190,23 +3235,23 @@ static int trans_stmt_extra(Context *c, TransScope *scope, const clang::Stmt *st
return ErrorNone;
case clang::Stmt::MemberExprClass:
return wrap_stmt(out_node, out_child_scope, scope,
- trans_member_expr(c, scope, (const clang::MemberExpr *)stmt));
+ trans_member_expr(c, result_used, scope, (const clang::MemberExpr *)stmt));
case clang::Stmt::ArraySubscriptExprClass:
return wrap_stmt(out_node, out_child_scope, scope,
- trans_array_subscript_expr(c, scope, (const clang::ArraySubscriptExpr *)stmt));
+ trans_array_subscript_expr(c, result_used, scope, (const clang::ArraySubscriptExpr *)stmt));
case clang::Stmt::CStyleCastExprClass:
return wrap_stmt(out_node, out_child_scope, scope,
trans_c_style_cast_expr(c, result_used, scope, (const clang::CStyleCastExpr *)stmt, lrvalue));
case clang::Stmt::UnaryExprOrTypeTraitExprClass:
return wrap_stmt(out_node, out_child_scope, scope,
- trans_unary_expr_or_type_trait_expr(c, scope, (const clang::UnaryExprOrTypeTraitExpr *)stmt));
+ trans_unary_expr_or_type_trait_expr(c, result_used, scope, (const clang::UnaryExprOrTypeTraitExpr *)stmt));
case clang::Stmt::ForStmtClass: {
AstNode *node = trans_for_loop(c, scope, (const clang::ForStmt *)stmt);
return wrap_stmt(out_node, out_child_scope, scope, node);
}
case clang::Stmt::StringLiteralClass:
return wrap_stmt(out_node, out_child_scope, scope,
- trans_string_literal(c, scope, (const clang::StringLiteral *)stmt));
+ trans_string_literal(c, result_used, scope, (const clang::StringLiteral *)stmt));
case clang::Stmt::BreakStmtClass:
return wrap_stmt(out_node, out_child_scope, scope,
trans_break_stmt(c, scope, (const clang::BreakStmt *)stmt));
@@ -3513,7 +3558,7 @@ static int trans_stmt_extra(Context *c, TransScope *scope, const clang::Stmt *st
return ErrorUnexpected;
case clang::Stmt::PredefinedExprClass:
return wrap_stmt(out_node, out_child_scope, scope,
- trans_predefined_expr(c, scope, (const clang::PredefinedExpr *)stmt));
+ trans_predefined_expr(c, result_used, scope, (const clang::PredefinedExpr *)stmt));
case clang::Stmt::PseudoObjectExprClass:
emit_warning(c, stmt->getLocStart(), "TODO handle C PseudoObjectExprClass");
return ErrorUnexpected;
@@ -3525,7 +3570,7 @@ static int trans_stmt_extra(Context *c, TransScope *scope, const clang::Stmt *st
return ErrorUnexpected;
case clang::Stmt::StmtExprClass:
return wrap_stmt(out_node, out_child_scope, scope,
- trans_stmt_expr(c, scope, (const clang::StmtExpr *)stmt, out_node_scope));
+ trans_stmt_expr(c, result_used, scope, (const clang::StmtExpr *)stmt, out_node_scope));
case clang::Stmt::SubstNonTypeTemplateParmExprClass:
emit_warning(c, stmt->getLocStart(), "TODO handle C SubstNonTypeTemplateParmExprClass");
return ErrorUnexpected;
diff --git a/test/translate_c.zig b/test/translate_c.zig
index 39b2858cd9..b5a6d28e8c 100644
--- a/test/translate_c.zig
+++ b/test/translate_c.zig
@@ -67,9 +67,29 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
\\}
,
\\pub fn foo() void {
- \\ c"foo";
- \\ c"foo";
- \\ c"void foo(void)";
+ \\ _ = c"foo";
+ \\ _ = c"foo";
+ \\ _ = c"void foo(void)";
+ \\}
+ );
+
+ cases.add("ignore result",
+ \\void foo() {
+ \\ int a;
+ \\ 1;
+ \\ "hey";
+ \\ 1 + 1;
+ \\ 1 - 1;
+ \\ a = 1;
+ \\}
+ ,
+ \\pub fn foo() void {
+ \\ var a: c_int = undefined;
+ \\ _ = 1;
+ \\ _ = c"hey";
+ \\ _ = (1 + 1);
+ \\ _ = (1 - 1);
+ \\ a = 1;
\\}
);
From 7dfbeca13eca48a506bbeba6ce7a18b2a8d25ce1 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Mon, 18 Mar 2019 13:47:59 -0400
Subject: [PATCH 23/24] libc: separate linux headers from musl/glibc
---
CMakeLists.txt | 2473 ++++++++---------
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/bpf_perf_event.h | 0
.../asm/byteorder.h | 0
.../asm/fcntl.h | 0
.../asm/hwcap.h | 0
.../asm/kvm.h | 0
.../asm/kvm_para.h | 0
.../asm/param.h | 0
.../asm/perf_regs.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/setup.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/stat.h | 0
.../asm/statfs.h | 0
.../asm/ucontext.h | 0
.../asm/unistd.h | 0
.../aarch64-linux-gnu/asm/bitsperlong.h | 24 -
libc/include/aarch64-linux-gnu/asm/unistd.h | 21 -
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/bpf_perf_event.h | 0
.../asm/byteorder.h | 0
.../asm/fcntl.h | 0
.../asm/hwcap.h | 0
.../asm/kvm.h | 0
.../asm/kvm_para.h | 0
.../asm/param.h | 0
.../asm/perf_regs.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/setup.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/stat.h | 0
.../asm/statfs.h | 0
.../asm/ucontext.h | 0
.../asm/unistd.h | 0
.../aarch64_be-linux-gnu/asm/bitsperlong.h | 24 -
.../include/aarch64_be-linux-gnu/asm/unistd.h | 21 -
.../asm-generic/auxvec.h | 0
.../asm-generic/bitsperlong.h | 0
.../asm-generic/bpf_perf_event.h | 0
.../asm-generic/errno-base.h | 0
.../asm-generic/errno.h | 0
.../asm-generic/fcntl.h | 0
.../asm-generic/hugetlb_encode.h | 0
.../asm-generic/int-l64.h | 0
.../asm-generic/int-ll64.h | 0
.../asm-generic/ioctl.h | 0
.../asm-generic/ioctls.h | 0
.../asm-generic/ipcbuf.h | 0
.../asm-generic/kvm_para.h | 0
.../asm-generic/mman-common.h | 0
.../asm-generic/mman.h | 0
.../asm-generic/msgbuf.h | 0
.../asm-generic/param.h | 0
.../asm-generic/poll.h | 0
.../asm-generic/posix_types.h | 0
.../asm-generic/resource.h | 0
.../asm-generic/sembuf.h | 0
.../asm-generic/setup.h | 0
.../asm-generic/shmbuf.h | 0
.../asm-generic/shmparam.h | 0
.../asm-generic/siginfo.h | 0
.../asm-generic/signal-defs.h | 0
.../asm-generic/signal.h | 0
.../asm-generic/socket.h | 0
.../asm-generic/sockios.h | 0
.../asm-generic/stat.h | 0
.../asm-generic/statfs.h | 0
.../asm-generic/swab.h | 0
.../asm-generic/termbits.h | 0
.../asm-generic/termios.h | 0
.../asm-generic/types.h | 0
.../asm-generic/ucontext.h | 0
.../asm-generic/unistd.h | 0
.../asm/a.out.h | 0
.../asm/auxvec.h | 0
.../asm/bitfield.h | 0
.../asm/bitsperlong.h | 0
.../asm/boot.h | 0
.../asm/bootparam.h | 0
.../asm/bootx.h | 0
.../asm/bpf_perf_event.h | 0
.../asm/break.h | 0
.../asm/byteorder.h | 0
.../asm/cachectl.h | 0
.../asm/cputable.h | 0
.../asm/debugreg.h | 0
.../asm/e820.h | 0
.../{generic-musl => any-linux-any}/asm/eeh.h | 0
.../{generic-musl => any-linux-any}/asm/elf.h | 0
.../asm/epapr_hcalls.h | 0
.../asm/errno.h | 0
.../asm/fcntl.h | 0
.../asm/hw_breakpoint.h | 0
.../asm/hwcap.h | 0
.../asm/hwcap2.h | 0
.../asm/inst.h | 0
.../asm/ioctl.h | 0
.../asm/ioctls.h | 0
.../asm/ipcbuf.h | 0
.../{generic-musl => any-linux-any}/asm/ist.h | 0
.../{generic-musl => any-linux-any}/asm/kvm.h | 0
.../asm/kvm_para.h | 0
.../asm/kvm_perf.h | 0
.../{generic-musl => any-linux-any}/asm/ldt.h | 0
.../{generic-musl => any-linux-any}/asm/mce.h | 0
.../asm/mman.h | 0
.../asm/msgbuf.h | 0
.../{generic-musl => any-linux-any}/asm/msr.h | 0
.../asm/mtrr.h | 0
.../asm/nvram.h | 0
.../asm/opal-prd.h | 0
.../asm/param.h | 0
.../asm/perf_event.h | 0
.../asm/perf_regs.h | 0
.../asm/poll.h | 0
.../asm/posix_types.h | 0
.../asm/posix_types_32.h | 0
.../asm/posix_types_64.h | 0
.../asm/posix_types_x32.h | 0
.../asm/prctl.h | 0
.../asm/processor-flags.h | 0
.../asm/ps3fb.h | 0
.../asm/ptrace-abi.h | 0
.../asm/ptrace.h | 0
.../{generic-musl => any-linux-any}/asm/reg.h | 0
.../asm/resource.h | 0
.../asm/sembuf.h | 0
.../asm/setup.h | 0
.../asm/sgidefs.h | 0
.../asm/shmbuf.h | 0
.../asm/sigcontext.h | 0
.../asm/sigcontext32.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/socket.h | 0
.../asm/sockios.h | 0
.../asm/spu_info.h | 0
.../asm/stat.h | 0
.../asm/statfs.h | 0
.../{generic-musl => any-linux-any}/asm/svm.h | 0
.../asm/swab.h | 0
.../asm/syscalls.h | 0
.../asm/sysmips.h | 0
.../asm/termbits.h | 0
.../asm/termios.h | 0
.../{generic-musl => any-linux-any}/asm/tm.h | 0
.../asm/types.h | 0
.../asm/ucontext.h | 0
.../asm/unistd-common.h | 0
.../asm/unistd-eabi.h | 0
.../asm/unistd-oabi.h | 0
.../asm/unistd.h | 0
.../asm/unistd_32.h | 0
.../asm/unistd_64.h | 0
.../asm/unistd_x32.h | 0
.../asm/vm86.h | 0
.../{generic-musl => any-linux-any}/asm/vmx.h | 0
.../asm/vsyscall.h | 0
.../linux/a.out.h | 0
.../linux/acct.h | 0
.../linux/adb.h | 0
.../linux/adfs_fs.h | 0
.../linux/affs_hardblocks.h | 0
.../linux/agpgart.h | 0
.../linux/aio_abi.h | 0
.../linux/am437x-vpfe.h | 0
.../linux/android/binder.h | 0
.../linux/apm_bios.h | 0
.../linux/arcfb.h | 0
.../linux/arm_sdei.h | 0
.../linux/aspeed-lpc-ctrl.h | 0
.../linux/atalk.h | 0
.../linux/atm.h | 0
.../linux/atm_eni.h | 0
.../linux/atm_he.h | 0
.../linux/atm_idt77105.h | 0
.../linux/atm_nicstar.h | 0
.../linux/atm_tcp.h | 0
.../linux/atm_zatm.h | 0
.../linux/atmapi.h | 0
.../linux/atmarp.h | 0
.../linux/atmbr2684.h | 0
.../linux/atmclip.h | 0
.../linux/atmdev.h | 0
.../linux/atmioc.h | 0
.../linux/atmlec.h | 0
.../linux/atmmpc.h | 0
.../linux/atmppp.h | 0
.../linux/atmsap.h | 0
.../linux/atmsvc.h | 0
.../linux/audit.h | 0
.../linux/auto_dev-ioctl.h | 0
.../linux/auto_fs.h | 0
.../linux/auto_fs4.h | 0
.../linux/auxvec.h | 0
.../linux/ax25.h | 0
.../linux/b1lli.h | 0
.../linux/batadv_packet.h | 0
.../linux/batman_adv.h | 0
.../linux/baycom.h | 0
.../linux/bcache.h | 0
.../linux/bcm933xx_hcs.h | 0
.../linux/bfs_fs.h | 0
.../linux/binfmts.h | 0
.../linux/blkpg.h | 0
.../linux/blktrace_api.h | 0
.../linux/blkzoned.h | 0
.../linux/bpf.h | 0
.../linux/bpf_common.h | 0
.../linux/bpf_perf_event.h | 0
.../linux/bpfilter.h | 0
.../linux/bpqether.h | 0
.../linux/bsg.h | 0
.../linux/bt-bmc.h | 0
.../linux/btf.h | 0
.../linux/btrfs.h | 0
.../linux/btrfs_tree.h | 0
.../linux/byteorder/big_endian.h | 0
.../linux/byteorder/little_endian.h | 0
.../linux/caif/caif_socket.h | 0
.../linux/caif/if_caif.h | 0
.../linux/can.h | 0
.../linux/can/bcm.h | 0
.../linux/can/error.h | 0
.../linux/can/gw.h | 0
.../linux/can/netlink.h | 0
.../linux/can/raw.h | 0
.../linux/can/vxcan.h | 0
.../linux/capability.h | 0
.../linux/capi.h | 0
.../linux/cciss_defs.h | 0
.../linux/cciss_ioctl.h | 0
.../linux/cdrom.h | 0
.../linux/cec-funcs.h | 0
.../linux/cec.h | 0
.../linux/cgroupstats.h | 0
.../linux/chio.h | 0
.../linux/cifs/cifs_mount.h | 0
.../linux/cm4000_cs.h | 0
.../linux/cn_proc.h | 0
.../linux/coda.h | 0
.../linux/coda_psdev.h | 0
.../linux/coff.h | 0
.../linux/connector.h | 0
.../linux/const.h | 0
.../linux/coresight-stm.h | 0
.../linux/cramfs_fs.h | 0
.../linux/cryptouser.h | 0
.../linux/cuda.h | 0
.../linux/cyclades.h | 0
.../linux/cycx_cfm.h | 0
.../linux/dcbnl.h | 0
.../linux/dccp.h | 0
.../linux/devlink.h | 0
.../linux/dlm.h | 0
.../linux/dlm_device.h | 0
.../linux/dlm_netlink.h | 0
.../linux/dlm_plock.h | 0
.../linux/dlmconstants.h | 0
.../linux/dm-ioctl.h | 0
.../linux/dm-log-userspace.h | 0
.../linux/dma-buf.h | 0
.../linux/dn.h | 0
.../linux/dqblk_xfs.h | 0
.../linux/dvb/audio.h | 0
.../linux/dvb/ca.h | 0
.../linux/dvb/dmx.h | 0
.../linux/dvb/frontend.h | 0
.../linux/dvb/net.h | 0
.../linux/dvb/osd.h | 0
.../linux/dvb/version.h | 0
.../linux/dvb/video.h | 0
.../linux/edd.h | 0
.../linux/efs_fs_sb.h | 0
.../linux/elf-em.h | 0
.../linux/elf-fdpic.h | 0
.../linux/elf.h | 0
.../linux/elfcore.h | 0
.../linux/errno.h | 0
.../linux/errqueue.h | 0
.../linux/erspan.h | 0
.../linux/ethtool.h | 0
.../linux/eventpoll.h | 0
.../linux/fadvise.h | 0
.../linux/falloc.h | 0
.../linux/fanotify.h | 0
.../linux/fb.h | 0
.../linux/fcntl.h | 0
.../linux/fd.h | 0
.../linux/fdreg.h | 0
.../linux/fib_rules.h | 0
.../linux/fiemap.h | 0
.../linux/filter.h | 0
.../linux/firewire-cdev.h | 0
.../linux/firewire-constants.h | 0
.../linux/flat.h | 0
.../linux/fou.h | 0
.../linux/fpga-dfl.h | 0
.../linux/fs.h | 0
.../linux/fsi.h | 0
.../linux/fsl_hypervisor.h | 0
.../linux/fsmap.h | 0
.../linux/fuse.h | 0
.../linux/futex.h | 0
.../linux/gameport.h | 0
.../linux/gen_stats.h | 0
.../linux/genetlink.h | 0
.../linux/genwqe/genwqe_card.h | 0
.../linux/gfs2_ondisk.h | 0
.../linux/gigaset_dev.h | 0
.../linux/gpio.h | 0
.../linux/gsmmux.h | 0
.../linux/gtp.h | 0
.../linux/hash_info.h | 0
.../linux/hdlc.h | 0
.../linux/hdlc/ioctl.h | 0
.../linux/hdlcdrv.h | 0
.../linux/hdreg.h | 0
.../linux/hid.h | 0
.../linux/hiddev.h | 0
.../linux/hidraw.h | 0
.../linux/hpet.h | 0
.../linux/hsi/cs-protocol.h | 0
.../linux/hsi/hsi_char.h | 0
.../linux/hsr_netlink.h | 0
.../linux/hw_breakpoint.h | 0
.../linux/hyperv.h | 0
.../linux/hysdn_if.h | 0
.../linux/i2c-dev.h | 0
.../linux/i2c.h | 0
.../linux/i2o-dev.h | 0
.../linux/i8k.h | 0
.../linux/icmp.h | 0
.../linux/icmpv6.h | 0
.../linux/if.h | 0
.../linux/if_addr.h | 0
.../linux/if_addrlabel.h | 0
.../linux/if_alg.h | 0
.../linux/if_arcnet.h | 0
.../linux/if_arp.h | 0
.../linux/if_bonding.h | 0
.../linux/if_bridge.h | 0
.../linux/if_cablemodem.h | 0
.../linux/if_eql.h | 0
.../linux/if_ether.h | 0
.../linux/if_fc.h | 0
.../linux/if_fddi.h | 0
.../linux/if_frad.h | 0
.../linux/if_hippi.h | 0
.../linux/if_infiniband.h | 0
.../linux/if_link.h | 0
.../linux/if_ltalk.h | 0
.../linux/if_macsec.h | 0
.../linux/if_packet.h | 0
.../linux/if_phonet.h | 0
.../linux/if_plip.h | 0
.../linux/if_ppp.h | 0
.../linux/if_pppol2tp.h | 0
.../linux/if_pppox.h | 0
.../linux/if_slip.h | 0
.../linux/if_team.h | 0
.../linux/if_tun.h | 0
.../linux/if_tunnel.h | 0
.../linux/if_vlan.h | 0
.../linux/if_x25.h | 0
.../linux/if_xdp.h | 0
.../linux/ife.h | 0
.../linux/igmp.h | 0
.../linux/iio/events.h | 0
.../linux/iio/types.h | 0
.../linux/ila.h | 0
.../linux/in.h | 0
.../linux/in6.h | 0
.../linux/in_route.h | 0
.../linux/inet_diag.h | 0
.../linux/inotify.h | 0
.../linux/input-event-codes.h | 0
.../linux/input.h | 0
.../linux/ioctl.h | 0
.../linux/ip.h | 0
.../linux/ip6_tunnel.h | 0
.../linux/ip_vs.h | 0
.../linux/ipc.h | 0
.../linux/ipmi.h | 0
.../linux/ipmi_bmc.h | 0
.../linux/ipmi_msgdefs.h | 0
.../linux/ipsec.h | 0
.../linux/ipv6.h | 0
.../linux/ipv6_route.h | 0
.../linux/ipx.h | 0
.../linux/irqnr.h | 0
.../linux/isdn.h | 0
.../linux/isdn/capicmd.h | 0
.../linux/isdn_divertif.h | 0
.../linux/isdn_ppp.h | 0
.../linux/isdnif.h | 0
.../linux/iso_fs.h | 0
.../linux/ivtv.h | 0
.../linux/ivtvfb.h | 0
.../linux/jffs2.h | 0
.../linux/joystick.h | 0
.../linux/kcm.h | 0
.../linux/kcmp.h | 0
.../linux/kcov.h | 0
.../linux/kd.h | 0
.../linux/kdev_t.h | 0
.../linux/kernel-page-flags.h | 0
.../linux/kernel.h | 0
.../linux/kernelcapi.h | 0
.../linux/kexec.h | 0
.../linux/keyboard.h | 0
.../linux/keyctl.h | 0
.../linux/kfd_ioctl.h | 0
.../linux/kvm.h | 0
.../linux/kvm_para.h | 0
.../linux/l2tp.h | 0
.../linux/libc-compat.h | 0
.../linux/lightnvm.h | 0
.../linux/limits.h | 0
.../linux/lirc.h | 0
.../linux/llc.h | 0
.../linux/loop.h | 0
.../linux/lp.h | 0
.../linux/lwtunnel.h | 0
.../linux/magic.h | 0
.../linux/major.h | 0
.../linux/map_to_7segment.h | 0
.../linux/matroxfb.h | 0
.../linux/max2175.h | 0
.../linux/mdio.h | 0
.../linux/media-bus-format.h | 0
.../linux/media.h | 0
.../linux/mei.h | 0
.../linux/membarrier.h | 0
.../linux/memfd.h | 0
.../linux/mempolicy.h | 0
.../linux/meye.h | 0
.../linux/mic_common.h | 0
.../linux/mic_ioctl.h | 0
.../linux/mii.h | 0
.../linux/minix_fs.h | 0
.../linux/mman.h | 0
.../linux/mmc/ioctl.h | 0
.../linux/mmtimer.h | 0
.../linux/module.h | 0
.../linux/mpls.h | 0
.../linux/mpls_iptunnel.h | 0
.../linux/mqueue.h | 0
.../linux/mroute.h | 0
.../linux/mroute6.h | 0
.../linux/msdos_fs.h | 0
.../linux/msg.h | 0
.../linux/mtio.h | 0
.../linux/n_r3964.h | 0
.../linux/nbd-netlink.h | 0
.../linux/nbd.h | 0
.../linux/ncsi.h | 0
.../linux/ndctl.h | 0
.../linux/neighbour.h | 0
.../linux/net.h | 0
.../linux/net_dropmon.h | 0
.../linux/net_namespace.h | 0
.../linux/net_tstamp.h | 0
.../linux/netconf.h | 0
.../linux/netdevice.h | 0
.../linux/netfilter.h | 0
.../linux/netfilter/ipset/ip_set.h | 0
.../linux/netfilter/ipset/ip_set_bitmap.h | 0
.../linux/netfilter/ipset/ip_set_hash.h | 0
.../linux/netfilter/ipset/ip_set_list.h | 0
.../linux/netfilter/nf_conntrack_common.h | 0
.../linux/netfilter/nf_conntrack_ftp.h | 0
.../linux/netfilter/nf_conntrack_sctp.h | 0
.../linux/netfilter/nf_conntrack_tcp.h | 0
.../netfilter/nf_conntrack_tuple_common.h | 0
.../linux/netfilter/nf_log.h | 0
.../linux/netfilter/nf_nat.h | 0
.../linux/netfilter/nf_tables.h | 0
.../linux/netfilter/nf_tables_compat.h | 0
.../linux/netfilter/nfnetlink.h | 0
.../linux/netfilter/nfnetlink_acct.h | 0
.../linux/netfilter/nfnetlink_compat.h | 0
.../linux/netfilter/nfnetlink_conntrack.h | 0
.../linux/netfilter/nfnetlink_cthelper.h | 0
.../linux/netfilter/nfnetlink_cttimeout.h | 0
.../linux/netfilter/nfnetlink_log.h | 0
.../linux/netfilter/nfnetlink_osf.h | 0
.../linux/netfilter/nfnetlink_queue.h | 0
.../linux/netfilter/x_tables.h | 0
.../linux/netfilter/xt_AUDIT.h | 0
.../linux/netfilter/xt_CHECKSUM.h | 0
.../linux/netfilter/xt_CLASSIFY.h | 0
.../linux/netfilter/xt_CONNSECMARK.h | 0
.../linux/netfilter/xt_CT.h | 0
.../linux/netfilter/xt_HMARK.h | 0
.../linux/netfilter/xt_IDLETIMER.h | 0
.../linux/netfilter/xt_LED.h | 0
.../linux/netfilter/xt_LOG.h | 0
.../linux/netfilter/xt_NFLOG.h | 0
.../linux/netfilter/xt_NFQUEUE.h | 0
.../linux/netfilter/xt_SECMARK.h | 0
.../linux/netfilter/xt_SYNPROXY.h | 0
.../linux/netfilter/xt_TCPOPTSTRIP.h | 0
.../linux/netfilter/xt_TEE.h | 0
.../linux/netfilter/xt_TPROXY.h | 0
.../linux/netfilter/xt_addrtype.h | 0
.../linux/netfilter/xt_bpf.h | 0
.../linux/netfilter/xt_cgroup.h | 0
.../linux/netfilter/xt_cluster.h | 0
.../linux/netfilter/xt_comment.h | 0
.../linux/netfilter/xt_connbytes.h | 0
.../linux/netfilter/xt_connlabel.h | 0
.../linux/netfilter/xt_connlimit.h | 0
.../linux/netfilter/xt_connmark.h | 0
.../linux/netfilter/xt_conntrack.h | 0
.../linux/netfilter/xt_cpu.h | 0
.../linux/netfilter/xt_dccp.h | 0
.../linux/netfilter/xt_devgroup.h | 0
.../linux/netfilter/xt_dscp.h | 0
.../linux/netfilter/xt_ecn.h | 0
.../linux/netfilter/xt_esp.h | 0
.../linux/netfilter/xt_hashlimit.h | 0
.../linux/netfilter/xt_helper.h | 0
.../linux/netfilter/xt_ipcomp.h | 0
.../linux/netfilter/xt_iprange.h | 0
.../linux/netfilter/xt_ipvs.h | 0
.../linux/netfilter/xt_l2tp.h | 0
.../linux/netfilter/xt_length.h | 0
.../linux/netfilter/xt_limit.h | 0
.../linux/netfilter/xt_mac.h | 0
.../linux/netfilter/xt_mark.h | 0
.../linux/netfilter/xt_multiport.h | 0
.../linux/netfilter/xt_nfacct.h | 0
.../linux/netfilter/xt_osf.h | 0
.../linux/netfilter/xt_owner.h | 0
.../linux/netfilter/xt_physdev.h | 0
.../linux/netfilter/xt_pkttype.h | 0
.../linux/netfilter/xt_policy.h | 0
.../linux/netfilter/xt_quota.h | 0
.../linux/netfilter/xt_rateest.h | 0
.../linux/netfilter/xt_realm.h | 0
.../linux/netfilter/xt_recent.h | 0
.../linux/netfilter/xt_rpfilter.h | 0
.../linux/netfilter/xt_sctp.h | 0
.../linux/netfilter/xt_set.h | 0
.../linux/netfilter/xt_socket.h | 0
.../linux/netfilter/xt_state.h | 0
.../linux/netfilter/xt_statistic.h | 0
.../linux/netfilter/xt_string.h | 0
.../linux/netfilter/xt_tcpmss.h | 0
.../linux/netfilter/xt_tcpudp.h | 0
.../linux/netfilter/xt_time.h | 0
.../linux/netfilter/xt_u32.h | 0
.../linux/netfilter_arp.h | 0
.../linux/netfilter_arp/arp_tables.h | 0
.../linux/netfilter_arp/arpt_mangle.h | 0
.../linux/netfilter_bridge.h | 0
.../linux/netfilter_bridge/ebt_802_3.h | 0
.../linux/netfilter_bridge/ebt_among.h | 0
.../linux/netfilter_bridge/ebt_arp.h | 0
.../linux/netfilter_bridge/ebt_arpreply.h | 0
.../linux/netfilter_bridge/ebt_ip.h | 0
.../linux/netfilter_bridge/ebt_ip6.h | 0
.../linux/netfilter_bridge/ebt_limit.h | 0
.../linux/netfilter_bridge/ebt_log.h | 0
.../linux/netfilter_bridge/ebt_mark_m.h | 0
.../linux/netfilter_bridge/ebt_mark_t.h | 0
.../linux/netfilter_bridge/ebt_nat.h | 0
.../linux/netfilter_bridge/ebt_nflog.h | 0
.../linux/netfilter_bridge/ebt_pkttype.h | 0
.../linux/netfilter_bridge/ebt_redirect.h | 0
.../linux/netfilter_bridge/ebt_stp.h | 0
.../linux/netfilter_bridge/ebt_vlan.h | 0
.../linux/netfilter_bridge/ebtables.h | 0
.../linux/netfilter_decnet.h | 0
.../linux/netfilter_ipv4.h | 0
.../linux/netfilter_ipv4/ip_tables.h | 0
.../linux/netfilter_ipv4/ipt_CLUSTERIP.h | 0
.../linux/netfilter_ipv4/ipt_LOG.h | 0
.../linux/netfilter_ipv4/ipt_REJECT.h | 0
.../linux/netfilter_ipv4/ipt_ah.h | 0
.../linux/netfilter_ipv4/ipt_ecn.h | 0
.../linux/netfilter_ipv4/ipt_ttl.h | 0
.../linux/netfilter_ipv6.h | 0
.../linux/netfilter_ipv6/ip6_tables.h | 0
.../linux/netfilter_ipv6/ip6t_LOG.h | 0
.../linux/netfilter_ipv6/ip6t_NPT.h | 0
.../linux/netfilter_ipv6/ip6t_REJECT.h | 0
.../linux/netfilter_ipv6/ip6t_ah.h | 0
.../linux/netfilter_ipv6/ip6t_frag.h | 0
.../linux/netfilter_ipv6/ip6t_hl.h | 0
.../linux/netfilter_ipv6/ip6t_ipv6header.h | 0
.../linux/netfilter_ipv6/ip6t_mh.h | 0
.../linux/netfilter_ipv6/ip6t_opts.h | 0
.../linux/netfilter_ipv6/ip6t_rt.h | 0
.../linux/netfilter_ipv6/ip6t_srh.h | 0
.../linux/netlink.h | 0
.../linux/netlink_diag.h | 0
.../linux/netrom.h | 0
.../linux/nfc.h | 0
.../linux/nfs.h | 0
.../linux/nfs2.h | 0
.../linux/nfs3.h | 0
.../linux/nfs4.h | 0
.../linux/nfs4_mount.h | 0
.../linux/nfs_fs.h | 0
.../linux/nfs_idmap.h | 0
.../linux/nfs_mount.h | 0
.../linux/nfsacl.h | 0
.../linux/nfsd/cld.h | 0
.../linux/nfsd/debug.h | 0
.../linux/nfsd/export.h | 0
.../linux/nfsd/nfsfh.h | 0
.../linux/nfsd/stats.h | 0
.../linux/nilfs2_api.h | 0
.../linux/nilfs2_ondisk.h | 0
.../linux/nl80211.h | 0
.../linux/nsfs.h | 0
.../linux/nubus.h | 0
.../linux/nvme_ioctl.h | 0
.../linux/nvram.h | 0
.../linux/omap3isp.h | 0
.../linux/omapfb.h | 0
.../linux/oom.h | 0
.../linux/openvswitch.h | 0
.../linux/packet_diag.h | 0
.../linux/param.h | 0
.../linux/parport.h | 0
.../linux/patchkey.h | 0
.../linux/pci.h | 0
.../linux/pci_regs.h | 0
.../linux/pcitest.h | 0
.../linux/perf_event.h | 0
.../linux/personality.h | 0
.../linux/pfkeyv2.h | 0
.../linux/pg.h | 0
.../linux/phantom.h | 0
.../linux/phonet.h | 0
.../linux/pkt_cls.h | 0
.../linux/pkt_sched.h | 0
.../linux/pktcdvd.h | 0
.../linux/pmu.h | 0
.../linux/poll.h | 0
.../linux/posix_acl.h | 0
.../linux/posix_acl_xattr.h | 0
.../linux/posix_types.h | 0
.../linux/ppdev.h | 0
.../linux/ppp-comp.h | 0
.../linux/ppp-ioctl.h | 0
.../linux/ppp_defs.h | 0
.../linux/pps.h | 0
.../linux/pr.h | 0
.../linux/prctl.h | 0
.../linux/psample.h | 0
.../linux/psci.h | 0
.../linux/psp-sev.h | 0
.../linux/ptp_clock.h | 0
.../linux/ptrace.h | 0
.../linux/qemu_fw_cfg.h | 0
.../linux/qnx4_fs.h | 0
.../linux/qnxtypes.h | 0
.../linux/qrtr.h | 0
.../linux/quota.h | 0
.../linux/radeonfb.h | 0
.../linux/raid/md_p.h | 0
.../linux/raid/md_u.h | 0
.../linux/random.h | 0
.../linux/raw.h | 0
.../linux/rds.h | 0
.../linux/reboot.h | 0
.../linux/reiserfs_fs.h | 0
.../linux/reiserfs_xattr.h | 0
.../linux/resource.h | 0
.../linux/rfkill.h | 0
.../linux/rio_cm_cdev.h | 0
.../linux/rio_mport_cdev.h | 0
.../linux/romfs_fs.h | 0
.../linux/rose.h | 0
.../linux/route.h | 0
.../linux/rpmsg.h | 0
.../linux/rseq.h | 0
.../linux/rtc.h | 0
.../linux/rtnetlink.h | 0
.../linux/rxrpc.h | 0
.../linux/scc.h | 0
.../linux/sched.h | 0
.../linux/sched/types.h | 0
.../linux/scif_ioctl.h | 0
.../linux/screen_info.h | 0
.../linux/sctp.h | 0
.../linux/sdla.h | 0
.../linux/seccomp.h | 0
.../linux/securebits.h | 0
.../linux/sed-opal.h | 0
.../linux/seg6.h | 0
.../linux/seg6_genl.h | 0
.../linux/seg6_hmac.h | 0
.../linux/seg6_iptunnel.h | 0
.../linux/seg6_local.h | 0
.../linux/selinux_netlink.h | 0
.../linux/sem.h | 0
.../linux/serial.h | 0
.../linux/serial_core.h | 0
.../linux/serial_reg.h | 0
.../linux/serio.h | 0
.../linux/shm.h | 0
.../linux/signal.h | 0
.../linux/signalfd.h | 0
.../linux/smc.h | 0
.../linux/smc_diag.h | 0
.../linux/smiapp.h | 0
.../linux/snmp.h | 0
.../linux/sock_diag.h | 0
.../linux/socket.h | 0
.../linux/sockios.h | 0
.../linux/sonet.h | 0
.../linux/sonypi.h | 0
.../linux/sound.h | 0
.../linux/soundcard.h | 0
.../linux/spi/spidev.h | 0
.../linux/stat.h | 0
.../linux/stddef.h | 0
.../linux/stm.h | 0
.../linux/string.h | 0
.../linux/sunrpc/debug.h | 0
.../linux/suspend_ioctls.h | 0
.../linux/swab.h | 0
.../linux/switchtec_ioctl.h | 0
.../linux/sync_file.h | 0
.../linux/synclink.h | 0
.../linux/sysctl.h | 0
.../linux/sysinfo.h | 0
.../linux/target_core_user.h | 0
.../linux/taskstats.h | 0
.../linux/tc_act/tc_bpf.h | 0
.../linux/tc_act/tc_connmark.h | 0
.../linux/tc_act/tc_csum.h | 0
.../linux/tc_act/tc_defact.h | 0
.../linux/tc_act/tc_gact.h | 0
.../linux/tc_act/tc_ife.h | 0
.../linux/tc_act/tc_ipt.h | 0
.../linux/tc_act/tc_mirred.h | 0
.../linux/tc_act/tc_nat.h | 0
.../linux/tc_act/tc_pedit.h | 0
.../linux/tc_act/tc_sample.h | 0
.../linux/tc_act/tc_skbedit.h | 0
.../linux/tc_act/tc_skbmod.h | 0
.../linux/tc_act/tc_tunnel_key.h | 0
.../linux/tc_act/tc_vlan.h | 0
.../linux/tc_ematch/tc_em_cmp.h | 0
.../linux/tc_ematch/tc_em_ipt.h | 0
.../linux/tc_ematch/tc_em_meta.h | 0
.../linux/tc_ematch/tc_em_nbyte.h | 0
.../linux/tc_ematch/tc_em_text.h | 0
.../linux/tcp.h | 0
.../linux/tcp_metrics.h | 0
.../linux/tee.h | 0
.../linux/termios.h | 0
.../linux/thermal.h | 0
.../linux/time.h | 0
.../linux/timerfd.h | 0
.../linux/times.h | 0
.../linux/timex.h | 0
.../linux/tiocl.h | 0
.../linux/tipc.h | 0
.../linux/tipc_config.h | 0
.../linux/tipc_netlink.h | 0
.../linux/tipc_sockets_diag.h | 0
.../linux/tls.h | 0
.../linux/toshiba.h | 0
.../linux/tty.h | 0
.../linux/tty_flags.h | 0
.../linux/types.h | 0
.../linux/udf_fs_i.h | 0
.../linux/udp.h | 0
.../linux/uhid.h | 0
.../linux/uinput.h | 0
.../linux/uio.h | 0
.../linux/uleds.h | 0
.../linux/ultrasound.h | 0
.../linux/un.h | 0
.../linux/unistd.h | 0
.../linux/unix_diag.h | 0
.../linux/usb/audio.h | 0
.../linux/usb/cdc-wdm.h | 0
.../linux/usb/cdc.h | 0
.../linux/usb/ch11.h | 0
.../linux/usb/ch9.h | 0
.../linux/usb/charger.h | 0
.../linux/usb/functionfs.h | 0
.../linux/usb/g_printer.h | 0
.../linux/usb/g_uvc.h | 0
.../linux/usb/gadgetfs.h | 0
.../linux/usb/midi.h | 0
.../linux/usb/tmc.h | 0
.../linux/usb/video.h | 0
.../linux/usbdevice_fs.h | 0
.../linux/usbip.h | 0
.../linux/userfaultfd.h | 0
.../linux/userio.h | 0
.../linux/utime.h | 0
.../linux/utsname.h | 0
.../linux/uuid.h | 0
.../linux/uvcvideo.h | 0
.../linux/v4l2-common.h | 0
.../linux/v4l2-controls.h | 0
.../linux/v4l2-dv-timings.h | 0
.../linux/v4l2-mediabus.h | 0
.../linux/v4l2-subdev.h | 0
.../linux/vbox_err.h | 0
.../linux/vbox_vmmdev_types.h | 0
.../linux/vboxguest.h | 0
.../linux/version.h | 0
.../linux/veth.h | 0
.../linux/vfio.h | 0
.../linux/vfio_ccw.h | 0
.../linux/vhost.h | 0
.../linux/videodev2.h | 0
.../linux/virtio_9p.h | 0
.../linux/virtio_balloon.h | 0
.../linux/virtio_blk.h | 0
.../linux/virtio_config.h | 0
.../linux/virtio_console.h | 0
.../linux/virtio_crypto.h | 0
.../linux/virtio_gpu.h | 0
.../linux/virtio_ids.h | 0
.../linux/virtio_input.h | 0
.../linux/virtio_mmio.h | 0
.../linux/virtio_net.h | 0
.../linux/virtio_pci.h | 0
.../linux/virtio_ring.h | 0
.../linux/virtio_rng.h | 0
.../linux/virtio_scsi.h | 0
.../linux/virtio_types.h | 0
.../linux/virtio_vsock.h | 0
.../linux/vm_sockets.h | 0
.../linux/vm_sockets_diag.h | 0
.../linux/vmcore.h | 0
.../linux/vsockmon.h | 0
.../linux/vt.h | 0
.../linux/vtpm_proxy.h | 0
.../linux/wait.h | 0
.../linux/wanrouter.h | 0
.../linux/watchdog.h | 0
.../linux/wimax.h | 0
.../linux/wimax/i2400m.h | 0
.../linux/wireless.h | 0
.../linux/wmi.h | 0
.../linux/x25.h | 0
.../linux/xattr.h | 0
.../linux/xfrm.h | 0
.../linux/xilinx-v4l2-controls.h | 0
.../linux/zorro.h | 0
.../linux/zorro_ids.h | 0
.../asm/fcntl.h | 0
.../asm/ioctls.h | 0
.../asm/mman.h | 0
.../asm/statfs.h | 0
.../asm/swab.h | 0
.../asm/types.h | 0
libc/include/arm-linux-gnueabi/asm/unistd.h | 41 -
libc/include/arm-linux-gnueabihf/asm/unistd.h | 41 -
.../asm/fcntl.h | 0
.../asm/ioctls.h | 0
.../asm/mman.h | 0
.../asm/statfs.h | 0
.../asm/swab.h | 0
.../asm/types.h | 0
libc/include/armeb-linux-gnueabi/asm/unistd.h | 41 -
.../armeb-linux-gnueabihf/asm/unistd.h | 41 -
libc/include/armeb-linux-musleabi/asm/fcntl.h | 12 -
.../include/armeb-linux-musleabi/asm/ioctls.h | 9 -
libc/include/armeb-linux-musleabi/asm/mman.h | 4 -
.../include/armeb-linux-musleabi/asm/statfs.h | 13 -
libc/include/armeb-linux-musleabi/asm/swab.h | 52 -
libc/include/armeb-linux-musleabi/asm/types.h | 41 -
.../armeb-linux-musleabihf/asm/fcntl.h | 12 -
.../armeb-linux-musleabihf/asm/ioctls.h | 9 -
.../include/armeb-linux-musleabihf/asm/mman.h | 4 -
.../armeb-linux-musleabihf/asm/statfs.h | 13 -
.../include/armeb-linux-musleabihf/asm/swab.h | 52 -
.../armeb-linux-musleabihf/asm/types.h | 41 -
.../generic-glibc/asm-generic/bitsperlong.h | 16 -
.../generic-glibc/asm-generic/unistd.h | 791 ------
libc/include/generic-glibc/asm/unistd_32.h | 401 ---
libc/include/generic-glibc/asm/unistd_64.h | 421 ---
libc/include/generic-glibc/linux/limits.h | 21 -
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/byteorder.h | 0
.../asm/kvm.h | 0
.../asm/kvm_para.h | 0
.../asm/mman.h | 0
.../asm/msgbuf.h | 0
.../asm/perf_regs.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/sembuf.h | 0
.../asm/setup.h | 0
.../asm/shmbuf.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/stat.h | 0
.../asm/statfs.h | 0
.../asm/swab.h | 0
.../asm/types.h | 0
.../asm/ucontext.h | 0
.../asm/unistd.h | 0
libc/include/i386-linux-gnu/asm/unistd.h | 18 -
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/byteorder.h | 0
.../asm/errno.h | 0
.../asm/fcntl.h | 0
.../asm/hwcap.h | 0
.../asm/ioctl.h | 0
.../asm/ioctls.h | 0
.../asm/kvm.h | 0
.../asm/kvm_para.h | 0
.../asm/mman.h | 0
.../asm/msgbuf.h | 0
.../asm/param.h | 0
.../asm/poll.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/resource.h | 0
.../asm/sembuf.h | 0
.../asm/setup.h | 0
.../asm/shmbuf.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/socket.h | 0
.../asm/sockios.h | 0
.../asm/stat.h | 0
.../asm/statfs.h | 0
.../asm/swab.h | 0
.../asm/termbits.h | 0
.../asm/termios.h | 0
.../asm/types.h | 0
.../asm/unistd.h | 0
libc/include/mips-linux-gnu/asm/sgidefs.h | 45 -
libc/include/mips-linux-gnu/asm/unistd.h | 1101 --------
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/byteorder.h | 0
.../asm/errno.h | 0
.../asm/fcntl.h | 0
.../asm/hwcap.h | 0
.../asm/ioctl.h | 0
.../asm/ioctls.h | 0
.../asm/kvm.h | 0
.../asm/kvm_para.h | 0
.../asm/mman.h | 0
.../asm/msgbuf.h | 0
.../asm/param.h | 0
.../asm/poll.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/resource.h | 0
.../asm/sembuf.h | 0
.../asm/setup.h | 0
.../asm/shmbuf.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/socket.h | 0
.../asm/sockios.h | 0
.../asm/stat.h | 0
.../asm/statfs.h | 0
.../asm/swab.h | 0
.../asm/termbits.h | 0
.../asm/termios.h | 0
.../asm/types.h | 0
.../asm/unistd.h | 0
.../mips64-linux-gnuabi64/asm/sgidefs.h | 45 -
.../mips64-linux-gnuabi64/asm/unistd.h | 1101 --------
.../mips64-linux-gnuabin32/asm/sgidefs.h | 45 -
.../mips64-linux-gnuabin32/asm/unistd.h | 1101 --------
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/byteorder.h | 0
.../asm/errno.h | 0
.../asm/fcntl.h | 0
.../asm/hwcap.h | 0
.../asm/ioctl.h | 0
.../asm/ioctls.h | 0
.../asm/kvm.h | 0
.../asm/kvm_para.h | 0
.../asm/mman.h | 0
.../asm/msgbuf.h | 0
.../asm/param.h | 0
.../asm/poll.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/resource.h | 0
.../asm/sembuf.h | 0
.../asm/setup.h | 0
.../asm/shmbuf.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/socket.h | 0
.../asm/sockios.h | 0
.../asm/stat.h | 0
.../asm/statfs.h | 0
.../asm/swab.h | 0
.../asm/termbits.h | 0
.../asm/termios.h | 0
.../asm/types.h | 0
.../asm/unistd.h | 0
.../mips64el-linux-gnuabi64/asm/sgidefs.h | 45 -
.../mips64el-linux-gnuabi64/asm/unistd.h | 1101 --------
.../mips64el-linux-gnuabin32/asm/sgidefs.h | 45 -
.../mips64el-linux-gnuabin32/asm/unistd.h | 1101 --------
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/byteorder.h | 0
.../asm/errno.h | 0
.../asm/fcntl.h | 0
.../asm/hwcap.h | 0
.../asm/ioctl.h | 0
.../asm/ioctls.h | 0
.../asm/kvm.h | 0
.../asm/kvm_para.h | 0
.../asm/mman.h | 0
.../asm/msgbuf.h | 0
.../asm/param.h | 0
.../asm/poll.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/resource.h | 0
.../asm/sembuf.h | 0
.../asm/setup.h | 0
.../asm/shmbuf.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/socket.h | 0
.../asm/sockios.h | 0
.../asm/stat.h | 0
.../asm/statfs.h | 0
.../asm/swab.h | 0
.../asm/termbits.h | 0
.../asm/termios.h | 0
.../asm/types.h | 0
.../asm/unistd.h | 0
libc/include/mipsel-linux-gnu/asm/sgidefs.h | 45 -
libc/include/mipsel-linux-gnu/asm/unistd.h | 1101 --------
libc/include/nios2-linux-gnu/asm/unistd.h | 29 -
libc/include/nios2-linux-gnu/bits/endian.h | 12 -
libc/include/nios2-linux-gnu/bits/fcntl.h | 56 -
libc/include/nios2-linux-gnu/bits/fenv.h | 52 -
libc/include/nios2-linux-gnu/bits/floatn.h | 52 -
libc/include/nios2-linux-gnu/bits/link.h | 54 -
.../nios2-linux-gnu/bits/long-double.h | 39 -
libc/include/nios2-linux-gnu/bits/procfs.h | 34 -
.../nios2-linux-gnu/bits/pthreadtypes-arch.h | 72 -
libc/include/nios2-linux-gnu/bits/semaphore.h | 32 -
libc/include/nios2-linux-gnu/bits/setjmp.h | 30 -
libc/include/nios2-linux-gnu/bits/stat.h | 171 --
libc/include/nios2-linux-gnu/bits/statfs.h | 86 -
libc/include/nios2-linux-gnu/bits/typesizes.h | 84 -
libc/include/nios2-linux-gnu/bits/wordsize.h | 21 -
libc/include/nios2-linux-gnu/fpu_control.h | 38 -
libc/include/nios2-linux-gnu/gnu/lib-names.h | 34 -
libc/include/nios2-linux-gnu/gnu/stubs.h | 47 -
libc/include/nios2-linux-gnu/sys/cachectl.h | 33 -
libc/include/nios2-linux-gnu/sys/ucontext.h | 61 -
libc/include/nios2-linux-gnu/sys/user.h | 58 -
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/byteorder.h | 0
.../asm/errno.h | 0
.../asm/fcntl.h | 0
.../asm/ioctl.h | 0
.../asm/ioctls.h | 0
.../asm/ipcbuf.h | 0
.../asm/kvm.h | 0
.../asm/kvm_para.h | 0
.../asm/mman.h | 0
.../asm/msgbuf.h | 0
.../asm/perf_regs.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/sembuf.h | 0
.../asm/setup.h | 0
.../asm/shmbuf.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/socket.h | 0
.../asm/stat.h | 0
.../asm/swab.h | 0
.../asm/termbits.h | 0
.../asm/termios.h | 0
.../asm/types.h | 0
.../asm/ucontext.h | 0
.../asm/unistd.h | 0
libc/include/powerpc-linux-gnu/asm/unistd.h | 404 ---
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/byteorder.h | 0
.../asm/errno.h | 0
.../asm/fcntl.h | 0
.../asm/ioctl.h | 0
.../asm/ioctls.h | 0
.../asm/ipcbuf.h | 0
.../asm/kvm.h | 0
.../asm/kvm_para.h | 0
.../asm/mman.h | 0
.../asm/msgbuf.h | 0
.../asm/perf_regs.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/sembuf.h | 0
.../asm/setup.h | 0
.../asm/shmbuf.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/socket.h | 0
.../asm/stat.h | 0
.../asm/swab.h | 0
.../asm/termbits.h | 0
.../asm/termios.h | 0
.../asm/types.h | 0
.../asm/ucontext.h | 0
.../asm/unistd.h | 0
libc/include/powerpc64-linux-gnu/asm/unistd.h | 404 ---
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/byteorder.h | 0
.../asm/errno.h | 0
.../asm/fcntl.h | 0
.../asm/ioctl.h | 0
.../asm/ioctls.h | 0
.../asm/ipcbuf.h | 0
.../asm/kvm.h | 0
.../asm/kvm_para.h | 0
.../asm/mman.h | 0
.../asm/msgbuf.h | 0
.../asm/perf_regs.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/sembuf.h | 0
.../asm/setup.h | 0
.../asm/shmbuf.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/socket.h | 0
.../asm/stat.h | 0
.../asm/swab.h | 0
.../asm/termbits.h | 0
.../asm/termios.h | 0
.../asm/types.h | 0
.../asm/ucontext.h | 0
.../asm/unistd.h | 0
.../powerpc64le-linux-gnu/asm/unistd.h | 404 ---
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/byteorder.h | 0
.../asm/elf.h | 0
.../asm/hwcap.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/setup.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/stat.h | 0
.../asm/ucontext.h | 0
.../asm/unistd.h | 0
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/byteorder.h | 0
.../asm/elf.h | 0
.../asm/hwcap.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/setup.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/stat.h | 0
.../asm/ucontext.h | 0
.../asm/unistd.h | 0
libc/include/riscv64-linux-gnu/asm/unistd.h | 41 -
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/bpf_perf_event.h | 0
.../asm/byteorder.h | 0
.../asm/chpid.h | 0
.../asm/chsc.h | 0
.../asm/clp.h | 0
.../asm/cmb.h | 0
.../asm/dasd.h | 0
.../asm/debug.h | 0
.../asm/guarded_storage.h | 0
.../asm/hypfs.h | 0
.../asm/ioctls.h | 0
.../asm/ipcbuf.h | 0
.../asm/kvm.h | 0
.../asm/kvm_para.h | 0
.../asm/kvm_perf.h | 0
.../asm/monwriter.h | 0
.../asm/perf_regs.h | 0
.../asm/pkey.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/qeth.h | 0
.../asm/runtime_instr.h | 0
.../asm/schid.h | 0
.../asm/sclp_ctl.h | 0
.../asm/setup.h | 0
.../asm/sie.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/socket.h | 0
.../asm/stat.h | 0
.../asm/statfs.h | 0
.../asm/sthyi.h | 0
.../asm/tape390.h | 0
.../asm/termios.h | 0
.../asm/types.h | 0
.../asm/ucontext.h | 0
.../asm/unistd.h | 0
.../asm/unistd_32.h | 0
.../asm/unistd_64.h | 0
.../asm/virtio-ccw.h | 0
.../asm/vmcp.h | 0
.../asm/vtoc.h | 0
.../asm/zcrypt.h | 0
libc/include/s390x-linux-gnu/asm/unistd.h | 17 -
libc/include/sparc-linux-gnu/asm/unistd.h | 453 ---
libc/include/sparcv9-linux-gnu/asm/unistd.h | 453 ---
.../asm/auxvec.h | 0
.../asm/bitsperlong.h | 0
.../asm/byteorder.h | 0
.../asm/kvm.h | 0
.../asm/kvm_para.h | 0
.../asm/mman.h | 0
.../asm/msgbuf.h | 0
.../asm/perf_regs.h | 0
.../asm/posix_types.h | 0
.../asm/ptrace.h | 0
.../asm/sembuf.h | 0
.../asm/setup.h | 0
.../asm/shmbuf.h | 0
.../asm/sigcontext.h | 0
.../asm/siginfo.h | 0
.../asm/signal.h | 0
.../asm/stat.h | 0
.../asm/statfs.h | 0
.../asm/swab.h | 0
.../asm/types.h | 0
.../asm/ucontext.h | 0
.../asm/unistd.h | 0
libc/include/x86_64-linux-gnu/asm/unistd.h | 18 -
src/codegen.cpp | 11 +-
src/link.cpp | 7 +
std/special/build_runner.zig | 3 +
1274 files changed, 1221 insertions(+), 13622 deletions(-)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/auxvec.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/bpf_perf_event.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/byteorder.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/fcntl.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/hwcap.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/kvm.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/kvm_para.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/param.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/perf_regs.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/posix_types.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/ptrace.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/setup.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/siginfo.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/signal.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/stat.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/statfs.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/ucontext.h (100%)
rename libc/include/{aarch64-linux-musleabi => aarch64-linux-any}/asm/unistd.h (100%)
delete mode 100644 libc/include/aarch64-linux-gnu/asm/bitsperlong.h
delete mode 100644 libc/include/aarch64-linux-gnu/asm/unistd.h
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/auxvec.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/bpf_perf_event.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/byteorder.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/fcntl.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/hwcap.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/kvm.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/kvm_para.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/param.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/perf_regs.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/posix_types.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/ptrace.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/setup.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/siginfo.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/signal.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/stat.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/statfs.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/ucontext.h (100%)
rename libc/include/{aarch64_be-linux-musl => aarch64_be-linux-any}/asm/unistd.h (100%)
delete mode 100644 libc/include/aarch64_be-linux-gnu/asm/bitsperlong.h
delete mode 100644 libc/include/aarch64_be-linux-gnu/asm/unistd.h
rename libc/include/{generic-musl => any-linux-any}/asm-generic/auxvec.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/bitsperlong.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/bpf_perf_event.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/errno-base.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/errno.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/fcntl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/hugetlb_encode.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/int-l64.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/int-ll64.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/ioctls.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/ipcbuf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/kvm_para.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/mman-common.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/mman.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/msgbuf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/param.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/poll.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/posix_types.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/resource.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/sembuf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/setup.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/shmbuf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/shmparam.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/siginfo.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/signal-defs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/signal.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/socket.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/sockios.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/stat.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/statfs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/swab.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/termbits.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/termios.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/types.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/ucontext.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm-generic/unistd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/a.out.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/auxvec.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/bitfield.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/boot.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/bootparam.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/bootx.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/bpf_perf_event.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/break.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/byteorder.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/cachectl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/cputable.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/debugreg.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/e820.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/eeh.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/elf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/epapr_hcalls.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/errno.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/fcntl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/hw_breakpoint.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/hwcap.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/hwcap2.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/inst.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/ioctls.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/ipcbuf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/ist.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/kvm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/kvm_para.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/kvm_perf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/ldt.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/mce.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/mman.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/msgbuf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/msr.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/mtrr.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/nvram.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/opal-prd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/param.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/perf_event.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/perf_regs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/poll.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/posix_types.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/posix_types_32.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/posix_types_64.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/posix_types_x32.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/prctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/processor-flags.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/ps3fb.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/ptrace-abi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/ptrace.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/reg.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/resource.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/sembuf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/setup.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/sgidefs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/shmbuf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/sigcontext32.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/siginfo.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/signal.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/socket.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/sockios.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/spu_info.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/stat.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/statfs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/svm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/swab.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/syscalls.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/sysmips.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/termbits.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/termios.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/tm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/types.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/ucontext.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/unistd-common.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/unistd-eabi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/unistd-oabi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/unistd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/unistd_32.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/unistd_64.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/unistd_x32.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/vm86.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/vmx.h (100%)
rename libc/include/{generic-musl => any-linux-any}/asm/vsyscall.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/a.out.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/acct.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/adb.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/adfs_fs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/affs_hardblocks.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/agpgart.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/aio_abi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/am437x-vpfe.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/android/binder.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/apm_bios.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/arcfb.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/arm_sdei.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/aspeed-lpc-ctrl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atalk.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atm_eni.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atm_he.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atm_idt77105.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atm_nicstar.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atm_tcp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atm_zatm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atmapi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atmarp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atmbr2684.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atmclip.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atmdev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atmioc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atmlec.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atmmpc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atmppp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atmsap.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/atmsvc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/audit.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/auto_dev-ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/auto_fs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/auto_fs4.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/auxvec.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ax25.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/b1lli.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/batadv_packet.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/batman_adv.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/baycom.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/bcache.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/bcm933xx_hcs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/bfs_fs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/binfmts.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/blkpg.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/blktrace_api.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/blkzoned.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/bpf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/bpf_common.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/bpf_perf_event.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/bpfilter.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/bpqether.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/bsg.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/bt-bmc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/btf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/btrfs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/btrfs_tree.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/byteorder/big_endian.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/byteorder/little_endian.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/caif/caif_socket.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/caif/if_caif.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/can.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/can/bcm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/can/error.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/can/gw.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/can/netlink.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/can/raw.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/can/vxcan.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/capability.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/capi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cciss_defs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cciss_ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cdrom.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cec-funcs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cec.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cgroupstats.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/chio.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cifs/cifs_mount.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cm4000_cs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cn_proc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/coda.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/coda_psdev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/coff.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/connector.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/const.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/coresight-stm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cramfs_fs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cryptouser.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cuda.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cyclades.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/cycx_cfm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dcbnl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dccp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/devlink.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dlm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dlm_device.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dlm_netlink.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dlm_plock.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dlmconstants.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dm-ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dm-log-userspace.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dma-buf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dn.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dqblk_xfs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dvb/audio.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dvb/ca.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dvb/dmx.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dvb/frontend.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dvb/net.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dvb/osd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dvb/version.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/dvb/video.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/edd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/efs_fs_sb.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/elf-em.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/elf-fdpic.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/elf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/elfcore.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/errno.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/errqueue.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/erspan.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ethtool.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/eventpoll.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fadvise.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/falloc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fanotify.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fb.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fcntl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fdreg.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fib_rules.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fiemap.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/filter.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/firewire-cdev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/firewire-constants.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/flat.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fou.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fpga-dfl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fsi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fsl_hypervisor.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fsmap.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/fuse.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/futex.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/gameport.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/gen_stats.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/genetlink.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/genwqe/genwqe_card.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/gfs2_ondisk.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/gigaset_dev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/gpio.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/gsmmux.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/gtp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hash_info.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hdlc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hdlc/ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hdlcdrv.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hdreg.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hid.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hiddev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hidraw.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hpet.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hsi/cs-protocol.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hsi/hsi_char.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hsr_netlink.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hw_breakpoint.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hyperv.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/hysdn_if.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/i2c-dev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/i2c.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/i2o-dev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/i8k.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/icmp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/icmpv6.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_addr.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_addrlabel.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_alg.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_arcnet.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_arp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_bonding.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_bridge.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_cablemodem.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_eql.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_ether.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_fc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_fddi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_frad.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_hippi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_infiniband.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_link.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_ltalk.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_macsec.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_packet.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_phonet.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_plip.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_ppp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_pppol2tp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_pppox.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_slip.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_team.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_tun.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_tunnel.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_vlan.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_x25.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/if_xdp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ife.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/igmp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/iio/events.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/iio/types.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ila.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/in.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/in6.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/in_route.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/inet_diag.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/inotify.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/input-event-codes.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/input.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ip.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ip6_tunnel.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ip_vs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ipc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ipmi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ipmi_bmc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ipmi_msgdefs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ipsec.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ipv6.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ipv6_route.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ipx.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/irqnr.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/isdn.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/isdn/capicmd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/isdn_divertif.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/isdn_ppp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/isdnif.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/iso_fs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ivtv.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ivtvfb.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/jffs2.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/joystick.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/kcm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/kcmp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/kcov.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/kd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/kdev_t.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/kernel-page-flags.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/kernel.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/kernelcapi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/kexec.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/keyboard.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/keyctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/kfd_ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/kvm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/kvm_para.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/l2tp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/libc-compat.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/lightnvm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/limits.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/lirc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/llc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/loop.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/lp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/lwtunnel.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/magic.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/major.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/map_to_7segment.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/matroxfb.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/max2175.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mdio.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/media-bus-format.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/media.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mei.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/membarrier.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/memfd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mempolicy.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/meye.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mic_common.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mic_ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mii.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/minix_fs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mman.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mmc/ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mmtimer.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/module.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mpls.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mpls_iptunnel.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mqueue.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mroute.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mroute6.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/msdos_fs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/msg.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/mtio.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/n_r3964.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nbd-netlink.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nbd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ncsi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ndctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/neighbour.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/net.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/net_dropmon.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/net_namespace.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/net_tstamp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netconf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netdevice.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/ipset/ip_set.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/ipset/ip_set_bitmap.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/ipset/ip_set_hash.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/ipset/ip_set_list.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nf_conntrack_common.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nf_conntrack_ftp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nf_conntrack_sctp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nf_conntrack_tcp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nf_conntrack_tuple_common.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nf_log.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nf_nat.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nf_tables.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nf_tables_compat.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nfnetlink.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nfnetlink_acct.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nfnetlink_compat.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nfnetlink_conntrack.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nfnetlink_cthelper.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nfnetlink_cttimeout.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nfnetlink_log.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nfnetlink_osf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/nfnetlink_queue.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/x_tables.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_AUDIT.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_CHECKSUM.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_CLASSIFY.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_CONNSECMARK.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_CT.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_HMARK.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_IDLETIMER.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_LED.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_LOG.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_NFLOG.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_NFQUEUE.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_SECMARK.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_SYNPROXY.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_TCPOPTSTRIP.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_TEE.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_TPROXY.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_addrtype.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_bpf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_cgroup.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_cluster.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_comment.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_connbytes.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_connlabel.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_connlimit.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_connmark.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_conntrack.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_cpu.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_dccp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_devgroup.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_dscp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_ecn.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_esp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_hashlimit.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_helper.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_ipcomp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_iprange.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_ipvs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_l2tp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_length.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_limit.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_mac.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_mark.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_multiport.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_nfacct.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_osf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_owner.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_physdev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_pkttype.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_policy.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_quota.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_rateest.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_realm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_recent.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_rpfilter.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_sctp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_set.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_socket.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_state.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_statistic.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_string.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_tcpmss.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_tcpudp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_time.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter/xt_u32.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_arp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_arp/arp_tables.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_arp/arpt_mangle.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_802_3.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_among.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_arp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_arpreply.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_ip.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_ip6.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_limit.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_log.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_mark_m.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_mark_t.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_nat.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_nflog.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_pkttype.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_redirect.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_stp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebt_vlan.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_bridge/ebtables.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_decnet.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv4.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv4/ip_tables.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv4/ipt_CLUSTERIP.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv4/ipt_LOG.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv4/ipt_REJECT.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv4/ipt_ah.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv4/ipt_ecn.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv4/ipt_ttl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv6.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv6/ip6_tables.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv6/ip6t_LOG.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv6/ip6t_NPT.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv6/ip6t_REJECT.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv6/ip6t_ah.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv6/ip6t_frag.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv6/ip6t_hl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv6/ip6t_ipv6header.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv6/ip6t_mh.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv6/ip6t_opts.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv6/ip6t_rt.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netfilter_ipv6/ip6t_srh.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netlink.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netlink_diag.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/netrom.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfs2.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfs3.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfs4.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfs4_mount.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfs_fs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfs_idmap.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfs_mount.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfsacl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfsd/cld.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfsd/debug.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfsd/export.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfsd/nfsfh.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nfsd/stats.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nilfs2_api.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nilfs2_ondisk.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nl80211.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nsfs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nubus.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nvme_ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/nvram.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/omap3isp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/omapfb.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/oom.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/openvswitch.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/packet_diag.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/param.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/parport.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/patchkey.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/pci.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/pci_regs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/pcitest.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/perf_event.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/personality.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/pfkeyv2.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/pg.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/phantom.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/phonet.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/pkt_cls.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/pkt_sched.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/pktcdvd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/pmu.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/poll.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/posix_acl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/posix_acl_xattr.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/posix_types.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ppdev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ppp-comp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ppp-ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ppp_defs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/pps.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/pr.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/prctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/psample.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/psci.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/psp-sev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ptp_clock.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ptrace.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/qemu_fw_cfg.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/qnx4_fs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/qnxtypes.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/qrtr.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/quota.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/radeonfb.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/raid/md_p.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/raid/md_u.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/random.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/raw.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/rds.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/reboot.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/reiserfs_fs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/reiserfs_xattr.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/resource.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/rfkill.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/rio_cm_cdev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/rio_mport_cdev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/romfs_fs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/rose.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/route.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/rpmsg.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/rseq.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/rtc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/rtnetlink.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/rxrpc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/scc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sched.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sched/types.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/scif_ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/screen_info.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sctp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sdla.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/seccomp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/securebits.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sed-opal.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/seg6.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/seg6_genl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/seg6_hmac.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/seg6_iptunnel.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/seg6_local.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/selinux_netlink.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sem.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/serial.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/serial_core.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/serial_reg.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/serio.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/shm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/signal.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/signalfd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/smc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/smc_diag.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/smiapp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/snmp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sock_diag.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/socket.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sockios.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sonet.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sonypi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sound.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/soundcard.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/spi/spidev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/stat.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/stddef.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/stm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/string.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sunrpc/debug.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/suspend_ioctls.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/swab.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/switchtec_ioctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sync_file.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/synclink.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sysctl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/sysinfo.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/target_core_user.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/taskstats.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_bpf.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_connmark.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_csum.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_defact.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_gact.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_ife.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_ipt.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_mirred.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_nat.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_pedit.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_sample.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_skbedit.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_skbmod.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_tunnel_key.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_act/tc_vlan.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_ematch/tc_em_cmp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_ematch/tc_em_ipt.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_ematch/tc_em_meta.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_ematch/tc_em_nbyte.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tc_ematch/tc_em_text.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tcp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tcp_metrics.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tee.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/termios.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/thermal.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/time.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/timerfd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/times.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/timex.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tiocl.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tipc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tipc_config.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tipc_netlink.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tipc_sockets_diag.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tls.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/toshiba.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tty.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/tty_flags.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/types.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/udf_fs_i.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/udp.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/uhid.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/uinput.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/uio.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/uleds.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/ultrasound.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/un.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/unistd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/unix_diag.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usb/audio.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usb/cdc-wdm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usb/cdc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usb/ch11.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usb/ch9.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usb/charger.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usb/functionfs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usb/g_printer.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usb/g_uvc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usb/gadgetfs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usb/midi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usb/tmc.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usb/video.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usbdevice_fs.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/usbip.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/userfaultfd.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/userio.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/utime.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/utsname.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/uuid.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/uvcvideo.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/v4l2-common.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/v4l2-controls.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/v4l2-dv-timings.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/v4l2-mediabus.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/v4l2-subdev.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/vbox_err.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/vbox_vmmdev_types.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/vboxguest.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/version.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/veth.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/vfio.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/vfio_ccw.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/vhost.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/videodev2.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_9p.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_balloon.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_blk.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_config.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_console.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_crypto.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_gpu.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_ids.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_input.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_mmio.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_net.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_pci.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_ring.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_rng.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_scsi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_types.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/virtio_vsock.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/vm_sockets.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/vm_sockets_diag.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/vmcore.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/vsockmon.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/vt.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/vtpm_proxy.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/wait.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/wanrouter.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/watchdog.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/wimax.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/wimax/i2400m.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/wireless.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/wmi.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/x25.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/xattr.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/xfrm.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/xilinx-v4l2-controls.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/zorro.h (100%)
rename libc/include/{generic-musl => any-linux-any}/linux/zorro_ids.h (100%)
rename libc/include/{arm-linux-musleabi => arm-linux-any}/asm/fcntl.h (100%)
rename libc/include/{arm-linux-musleabi => arm-linux-any}/asm/ioctls.h (100%)
rename libc/include/{arm-linux-musleabi => arm-linux-any}/asm/mman.h (100%)
rename libc/include/{arm-linux-musleabi => arm-linux-any}/asm/statfs.h (100%)
rename libc/include/{arm-linux-musleabi => arm-linux-any}/asm/swab.h (100%)
rename libc/include/{arm-linux-musleabi => arm-linux-any}/asm/types.h (100%)
delete mode 100644 libc/include/arm-linux-gnueabi/asm/unistd.h
delete mode 100644 libc/include/arm-linux-gnueabihf/asm/unistd.h
rename libc/include/{arm-linux-musleabihf => armeb-linux-any}/asm/fcntl.h (100%)
rename libc/include/{arm-linux-musleabihf => armeb-linux-any}/asm/ioctls.h (100%)
rename libc/include/{arm-linux-musleabihf => armeb-linux-any}/asm/mman.h (100%)
rename libc/include/{arm-linux-musleabihf => armeb-linux-any}/asm/statfs.h (100%)
rename libc/include/{arm-linux-musleabihf => armeb-linux-any}/asm/swab.h (100%)
rename libc/include/{arm-linux-musleabihf => armeb-linux-any}/asm/types.h (100%)
delete mode 100644 libc/include/armeb-linux-gnueabi/asm/unistd.h
delete mode 100644 libc/include/armeb-linux-gnueabihf/asm/unistd.h
delete mode 100644 libc/include/armeb-linux-musleabi/asm/fcntl.h
delete mode 100644 libc/include/armeb-linux-musleabi/asm/ioctls.h
delete mode 100644 libc/include/armeb-linux-musleabi/asm/mman.h
delete mode 100644 libc/include/armeb-linux-musleabi/asm/statfs.h
delete mode 100644 libc/include/armeb-linux-musleabi/asm/swab.h
delete mode 100644 libc/include/armeb-linux-musleabi/asm/types.h
delete mode 100644 libc/include/armeb-linux-musleabihf/asm/fcntl.h
delete mode 100644 libc/include/armeb-linux-musleabihf/asm/ioctls.h
delete mode 100644 libc/include/armeb-linux-musleabihf/asm/mman.h
delete mode 100644 libc/include/armeb-linux-musleabihf/asm/statfs.h
delete mode 100644 libc/include/armeb-linux-musleabihf/asm/swab.h
delete mode 100644 libc/include/armeb-linux-musleabihf/asm/types.h
delete mode 100644 libc/include/generic-glibc/asm-generic/bitsperlong.h
delete mode 100644 libc/include/generic-glibc/asm-generic/unistd.h
delete mode 100644 libc/include/generic-glibc/asm/unistd_32.h
delete mode 100644 libc/include/generic-glibc/asm/unistd_64.h
delete mode 100644 libc/include/generic-glibc/linux/limits.h
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/auxvec.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/byteorder.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/kvm.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/kvm_para.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/mman.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/msgbuf.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/perf_regs.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/posix_types.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/ptrace.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/sembuf.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/setup.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/shmbuf.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/siginfo.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/signal.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/stat.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/statfs.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/swab.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/types.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/ucontext.h (100%)
rename libc/include/{i386-linux-musl => i386-linux-any}/asm/unistd.h (100%)
delete mode 100644 libc/include/i386-linux-gnu/asm/unistd.h
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/auxvec.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/byteorder.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/errno.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/fcntl.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/hwcap.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/ioctl.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/ioctls.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/kvm.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/kvm_para.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/mman.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/msgbuf.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/param.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/poll.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/posix_types.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/ptrace.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/resource.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/sembuf.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/setup.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/shmbuf.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/siginfo.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/signal.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/socket.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/sockios.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/stat.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/statfs.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/swab.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/termbits.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/termios.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/types.h (100%)
rename libc/include/{mips-linux-musl => mips-linux-any}/asm/unistd.h (100%)
delete mode 100644 libc/include/mips-linux-gnu/asm/sgidefs.h
delete mode 100644 libc/include/mips-linux-gnu/asm/unistd.h
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/auxvec.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/byteorder.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/errno.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/fcntl.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/hwcap.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/ioctl.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/ioctls.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/kvm.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/kvm_para.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/mman.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/msgbuf.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/param.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/poll.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/posix_types.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/ptrace.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/resource.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/sembuf.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/setup.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/shmbuf.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/siginfo.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/signal.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/socket.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/sockios.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/stat.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/statfs.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/swab.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/termbits.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/termios.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/types.h (100%)
rename libc/include/{mips64-linux-musl => mips64-linux-any}/asm/unistd.h (100%)
delete mode 100644 libc/include/mips64-linux-gnuabi64/asm/sgidefs.h
delete mode 100644 libc/include/mips64-linux-gnuabi64/asm/unistd.h
delete mode 100644 libc/include/mips64-linux-gnuabin32/asm/sgidefs.h
delete mode 100644 libc/include/mips64-linux-gnuabin32/asm/unistd.h
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/auxvec.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/byteorder.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/errno.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/fcntl.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/hwcap.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/ioctl.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/ioctls.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/kvm.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/kvm_para.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/mman.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/msgbuf.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/param.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/poll.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/posix_types.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/ptrace.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/resource.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/sembuf.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/setup.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/shmbuf.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/siginfo.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/signal.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/socket.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/sockios.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/stat.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/statfs.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/swab.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/termbits.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/termios.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/types.h (100%)
rename libc/include/{mips64el-linux-musl => mips64el-linux-any}/asm/unistd.h (100%)
delete mode 100644 libc/include/mips64el-linux-gnuabi64/asm/sgidefs.h
delete mode 100644 libc/include/mips64el-linux-gnuabi64/asm/unistd.h
delete mode 100644 libc/include/mips64el-linux-gnuabin32/asm/sgidefs.h
delete mode 100644 libc/include/mips64el-linux-gnuabin32/asm/unistd.h
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/auxvec.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/byteorder.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/errno.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/fcntl.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/hwcap.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/ioctl.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/ioctls.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/kvm.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/kvm_para.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/mman.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/msgbuf.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/param.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/poll.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/posix_types.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/ptrace.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/resource.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/sembuf.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/setup.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/shmbuf.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/siginfo.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/signal.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/socket.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/sockios.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/stat.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/statfs.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/swab.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/termbits.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/termios.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/types.h (100%)
rename libc/include/{mipsel-linux-musl => mipsel-linux-any}/asm/unistd.h (100%)
delete mode 100644 libc/include/mipsel-linux-gnu/asm/sgidefs.h
delete mode 100644 libc/include/mipsel-linux-gnu/asm/unistd.h
delete mode 100644 libc/include/nios2-linux-gnu/asm/unistd.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/endian.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/fcntl.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/fenv.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/floatn.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/link.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/long-double.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/procfs.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/pthreadtypes-arch.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/semaphore.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/setjmp.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/stat.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/statfs.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/typesizes.h
delete mode 100644 libc/include/nios2-linux-gnu/bits/wordsize.h
delete mode 100644 libc/include/nios2-linux-gnu/fpu_control.h
delete mode 100644 libc/include/nios2-linux-gnu/gnu/lib-names.h
delete mode 100644 libc/include/nios2-linux-gnu/gnu/stubs.h
delete mode 100644 libc/include/nios2-linux-gnu/sys/cachectl.h
delete mode 100644 libc/include/nios2-linux-gnu/sys/ucontext.h
delete mode 100644 libc/include/nios2-linux-gnu/sys/user.h
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/auxvec.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/byteorder.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/errno.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/fcntl.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/ioctl.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/ioctls.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/ipcbuf.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/kvm.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/kvm_para.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/mman.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/msgbuf.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/perf_regs.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/posix_types.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/ptrace.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/sembuf.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/setup.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/shmbuf.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/siginfo.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/signal.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/socket.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/stat.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/swab.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/termbits.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/termios.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/types.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/ucontext.h (100%)
rename libc/include/{powerpc-linux-musl => powerpc-linux-any}/asm/unistd.h (100%)
delete mode 100644 libc/include/powerpc-linux-gnu/asm/unistd.h
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/auxvec.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/byteorder.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/errno.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/fcntl.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/ioctl.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/ioctls.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/ipcbuf.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/kvm.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/kvm_para.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/mman.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/msgbuf.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/perf_regs.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/posix_types.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/ptrace.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/sembuf.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/setup.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/shmbuf.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/siginfo.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/signal.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/socket.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/stat.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/swab.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/termbits.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/termios.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/types.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/ucontext.h (100%)
rename libc/include/{powerpc64-linux-musl => powerpc64-linux-any}/asm/unistd.h (100%)
delete mode 100644 libc/include/powerpc64-linux-gnu/asm/unistd.h
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/auxvec.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/byteorder.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/errno.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/fcntl.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/ioctl.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/ioctls.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/ipcbuf.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/kvm.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/kvm_para.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/mman.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/msgbuf.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/perf_regs.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/posix_types.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/ptrace.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/sembuf.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/setup.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/shmbuf.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/siginfo.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/signal.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/socket.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/stat.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/swab.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/termbits.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/termios.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/types.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/ucontext.h (100%)
rename libc/include/{powerpc64le-linux-musl => powerpc64le-linux-any}/asm/unistd.h (100%)
delete mode 100644 libc/include/powerpc64le-linux-gnu/asm/unistd.h
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/auxvec.h (100%)
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/byteorder.h (100%)
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/elf.h (100%)
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/hwcap.h (100%)
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/posix_types.h (100%)
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/ptrace.h (100%)
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/setup.h (100%)
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/siginfo.h (100%)
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/signal.h (100%)
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/stat.h (100%)
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/ucontext.h (100%)
rename libc/include/{riscv32-linux-musl => riscv32-linux-any}/asm/unistd.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/auxvec.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/byteorder.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/elf.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/hwcap.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/posix_types.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/ptrace.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/setup.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/siginfo.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/signal.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/stat.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/ucontext.h (100%)
rename libc/include/{riscv64-linux-musl => riscv64-linux-any}/asm/unistd.h (100%)
delete mode 100644 libc/include/riscv64-linux-gnu/asm/unistd.h
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/auxvec.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/bpf_perf_event.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/byteorder.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/chpid.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/chsc.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/clp.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/cmb.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/dasd.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/debug.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/guarded_storage.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/hypfs.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/ioctls.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/ipcbuf.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/kvm.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/kvm_para.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/kvm_perf.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/monwriter.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/perf_regs.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/pkey.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/posix_types.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/ptrace.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/qeth.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/runtime_instr.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/schid.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/sclp_ctl.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/setup.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/sie.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/siginfo.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/signal.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/socket.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/stat.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/statfs.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/sthyi.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/tape390.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/termios.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/types.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/ucontext.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/unistd.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/unistd_32.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/unistd_64.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/virtio-ccw.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/vmcp.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/vtoc.h (100%)
rename libc/include/{s390x-linux-musl => s390x-linux-any}/asm/zcrypt.h (100%)
delete mode 100644 libc/include/s390x-linux-gnu/asm/unistd.h
delete mode 100644 libc/include/sparc-linux-gnu/asm/unistd.h
delete mode 100644 libc/include/sparcv9-linux-gnu/asm/unistd.h
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/auxvec.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/bitsperlong.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/byteorder.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/kvm.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/kvm_para.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/mman.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/msgbuf.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/perf_regs.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/posix_types.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/ptrace.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/sembuf.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/setup.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/shmbuf.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/sigcontext.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/siginfo.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/signal.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/stat.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/statfs.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/swab.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/types.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/ucontext.h (100%)
rename libc/include/{x86_64-linux-musl => x86_64-linux-any}/asm/unistd.h (100%)
delete mode 100644 libc/include/x86_64-linux-gnu/asm/unistd.h
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a3d06f1a0e..0cb793d830 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2961,8 +2961,26 @@ set(ZIG_LIBC_FILES
"glibc/time/bits/types/struct_tm.h"
"glibc/time/bits/types/time_t.h"
"glibc/time/bits/types/timer_t.h"
- "include/aarch64-linux-gnu/asm/bitsperlong.h"
- "include/aarch64-linux-gnu/asm/unistd.h"
+ "include/aarch64-linux-any/asm/auxvec.h"
+ "include/aarch64-linux-any/asm/bitsperlong.h"
+ "include/aarch64-linux-any/asm/bpf_perf_event.h"
+ "include/aarch64-linux-any/asm/byteorder.h"
+ "include/aarch64-linux-any/asm/fcntl.h"
+ "include/aarch64-linux-any/asm/hwcap.h"
+ "include/aarch64-linux-any/asm/kvm.h"
+ "include/aarch64-linux-any/asm/kvm_para.h"
+ "include/aarch64-linux-any/asm/param.h"
+ "include/aarch64-linux-any/asm/perf_regs.h"
+ "include/aarch64-linux-any/asm/posix_types.h"
+ "include/aarch64-linux-any/asm/ptrace.h"
+ "include/aarch64-linux-any/asm/setup.h"
+ "include/aarch64-linux-any/asm/sigcontext.h"
+ "include/aarch64-linux-any/asm/siginfo.h"
+ "include/aarch64-linux-any/asm/signal.h"
+ "include/aarch64-linux-any/asm/stat.h"
+ "include/aarch64-linux-any/asm/statfs.h"
+ "include/aarch64-linux-any/asm/ucontext.h"
+ "include/aarch64-linux-any/asm/unistd.h"
"include/aarch64-linux-gnu/bits/endian.h"
"include/aarch64-linux-gnu/bits/fcntl.h"
"include/aarch64-linux-gnu/bits/fenv.h"
@@ -2992,26 +3010,6 @@ set(ZIG_LIBC_FILES
"include/aarch64-linux-gnu/sys/ptrace.h"
"include/aarch64-linux-gnu/sys/ucontext.h"
"include/aarch64-linux-gnu/sys/user.h"
- "include/aarch64-linux-musleabi/asm/auxvec.h"
- "include/aarch64-linux-musleabi/asm/bitsperlong.h"
- "include/aarch64-linux-musleabi/asm/bpf_perf_event.h"
- "include/aarch64-linux-musleabi/asm/byteorder.h"
- "include/aarch64-linux-musleabi/asm/fcntl.h"
- "include/aarch64-linux-musleabi/asm/hwcap.h"
- "include/aarch64-linux-musleabi/asm/kvm.h"
- "include/aarch64-linux-musleabi/asm/kvm_para.h"
- "include/aarch64-linux-musleabi/asm/param.h"
- "include/aarch64-linux-musleabi/asm/perf_regs.h"
- "include/aarch64-linux-musleabi/asm/posix_types.h"
- "include/aarch64-linux-musleabi/asm/ptrace.h"
- "include/aarch64-linux-musleabi/asm/setup.h"
- "include/aarch64-linux-musleabi/asm/sigcontext.h"
- "include/aarch64-linux-musleabi/asm/siginfo.h"
- "include/aarch64-linux-musleabi/asm/signal.h"
- "include/aarch64-linux-musleabi/asm/stat.h"
- "include/aarch64-linux-musleabi/asm/statfs.h"
- "include/aarch64-linux-musleabi/asm/ucontext.h"
- "include/aarch64-linux-musleabi/asm/unistd.h"
"include/aarch64-linux-musleabi/bfd_stdint.h"
"include/aarch64-linux-musleabi/bits/alltypes.h"
"include/aarch64-linux-musleabi/bits/endian.h"
@@ -3029,8 +3027,26 @@ set(ZIG_LIBC_FILES
"include/aarch64-linux-musleabi/bits/stat.h"
"include/aarch64-linux-musleabi/bits/syscall.h"
"include/aarch64-linux-musleabi/bits/user.h"
- "include/aarch64_be-linux-gnu/asm/bitsperlong.h"
- "include/aarch64_be-linux-gnu/asm/unistd.h"
+ "include/aarch64_be-linux-any/asm/auxvec.h"
+ "include/aarch64_be-linux-any/asm/bitsperlong.h"
+ "include/aarch64_be-linux-any/asm/bpf_perf_event.h"
+ "include/aarch64_be-linux-any/asm/byteorder.h"
+ "include/aarch64_be-linux-any/asm/fcntl.h"
+ "include/aarch64_be-linux-any/asm/hwcap.h"
+ "include/aarch64_be-linux-any/asm/kvm.h"
+ "include/aarch64_be-linux-any/asm/kvm_para.h"
+ "include/aarch64_be-linux-any/asm/param.h"
+ "include/aarch64_be-linux-any/asm/perf_regs.h"
+ "include/aarch64_be-linux-any/asm/posix_types.h"
+ "include/aarch64_be-linux-any/asm/ptrace.h"
+ "include/aarch64_be-linux-any/asm/setup.h"
+ "include/aarch64_be-linux-any/asm/sigcontext.h"
+ "include/aarch64_be-linux-any/asm/siginfo.h"
+ "include/aarch64_be-linux-any/asm/signal.h"
+ "include/aarch64_be-linux-any/asm/stat.h"
+ "include/aarch64_be-linux-any/asm/statfs.h"
+ "include/aarch64_be-linux-any/asm/ucontext.h"
+ "include/aarch64_be-linux-any/asm/unistd.h"
"include/aarch64_be-linux-gnu/bits/endian.h"
"include/aarch64_be-linux-gnu/bits/fcntl.h"
"include/aarch64_be-linux-gnu/bits/fenv.h"
@@ -3060,26 +3076,6 @@ set(ZIG_LIBC_FILES
"include/aarch64_be-linux-gnu/sys/ptrace.h"
"include/aarch64_be-linux-gnu/sys/ucontext.h"
"include/aarch64_be-linux-gnu/sys/user.h"
- "include/aarch64_be-linux-musl/asm/auxvec.h"
- "include/aarch64_be-linux-musl/asm/bitsperlong.h"
- "include/aarch64_be-linux-musl/asm/bpf_perf_event.h"
- "include/aarch64_be-linux-musl/asm/byteorder.h"
- "include/aarch64_be-linux-musl/asm/fcntl.h"
- "include/aarch64_be-linux-musl/asm/hwcap.h"
- "include/aarch64_be-linux-musl/asm/kvm.h"
- "include/aarch64_be-linux-musl/asm/kvm_para.h"
- "include/aarch64_be-linux-musl/asm/param.h"
- "include/aarch64_be-linux-musl/asm/perf_regs.h"
- "include/aarch64_be-linux-musl/asm/posix_types.h"
- "include/aarch64_be-linux-musl/asm/ptrace.h"
- "include/aarch64_be-linux-musl/asm/setup.h"
- "include/aarch64_be-linux-musl/asm/sigcontext.h"
- "include/aarch64_be-linux-musl/asm/siginfo.h"
- "include/aarch64_be-linux-musl/asm/signal.h"
- "include/aarch64_be-linux-musl/asm/stat.h"
- "include/aarch64_be-linux-musl/asm/statfs.h"
- "include/aarch64_be-linux-musl/asm/ucontext.h"
- "include/aarch64_be-linux-musl/asm/unistd.h"
"include/aarch64_be-linux-musl/bfd_stdint.h"
"include/aarch64_be-linux-musl/bits/alltypes.h"
"include/aarch64_be-linux-musl/bits/endian.h"
@@ -3097,7 +3093,830 @@ set(ZIG_LIBC_FILES
"include/aarch64_be-linux-musl/bits/stat.h"
"include/aarch64_be-linux-musl/bits/syscall.h"
"include/aarch64_be-linux-musl/bits/user.h"
- "include/arm-linux-gnueabi/asm/unistd.h"
+ "include/any-linux-any/asm-generic/auxvec.h"
+ "include/any-linux-any/asm-generic/bitsperlong.h"
+ "include/any-linux-any/asm-generic/bpf_perf_event.h"
+ "include/any-linux-any/asm-generic/errno-base.h"
+ "include/any-linux-any/asm-generic/errno.h"
+ "include/any-linux-any/asm-generic/fcntl.h"
+ "include/any-linux-any/asm-generic/hugetlb_encode.h"
+ "include/any-linux-any/asm-generic/int-l64.h"
+ "include/any-linux-any/asm-generic/int-ll64.h"
+ "include/any-linux-any/asm-generic/ioctl.h"
+ "include/any-linux-any/asm-generic/ioctls.h"
+ "include/any-linux-any/asm-generic/ipcbuf.h"
+ "include/any-linux-any/asm-generic/kvm_para.h"
+ "include/any-linux-any/asm-generic/mman-common.h"
+ "include/any-linux-any/asm-generic/mman.h"
+ "include/any-linux-any/asm-generic/msgbuf.h"
+ "include/any-linux-any/asm-generic/param.h"
+ "include/any-linux-any/asm-generic/poll.h"
+ "include/any-linux-any/asm-generic/posix_types.h"
+ "include/any-linux-any/asm-generic/resource.h"
+ "include/any-linux-any/asm-generic/sembuf.h"
+ "include/any-linux-any/asm-generic/setup.h"
+ "include/any-linux-any/asm-generic/shmbuf.h"
+ "include/any-linux-any/asm-generic/shmparam.h"
+ "include/any-linux-any/asm-generic/siginfo.h"
+ "include/any-linux-any/asm-generic/signal-defs.h"
+ "include/any-linux-any/asm-generic/signal.h"
+ "include/any-linux-any/asm-generic/socket.h"
+ "include/any-linux-any/asm-generic/sockios.h"
+ "include/any-linux-any/asm-generic/stat.h"
+ "include/any-linux-any/asm-generic/statfs.h"
+ "include/any-linux-any/asm-generic/swab.h"
+ "include/any-linux-any/asm-generic/termbits.h"
+ "include/any-linux-any/asm-generic/termios.h"
+ "include/any-linux-any/asm-generic/types.h"
+ "include/any-linux-any/asm-generic/ucontext.h"
+ "include/any-linux-any/asm-generic/unistd.h"
+ "include/any-linux-any/asm/a.out.h"
+ "include/any-linux-any/asm/auxvec.h"
+ "include/any-linux-any/asm/bitfield.h"
+ "include/any-linux-any/asm/bitsperlong.h"
+ "include/any-linux-any/asm/boot.h"
+ "include/any-linux-any/asm/bootparam.h"
+ "include/any-linux-any/asm/bootx.h"
+ "include/any-linux-any/asm/bpf_perf_event.h"
+ "include/any-linux-any/asm/break.h"
+ "include/any-linux-any/asm/byteorder.h"
+ "include/any-linux-any/asm/cachectl.h"
+ "include/any-linux-any/asm/cputable.h"
+ "include/any-linux-any/asm/debugreg.h"
+ "include/any-linux-any/asm/e820.h"
+ "include/any-linux-any/asm/eeh.h"
+ "include/any-linux-any/asm/elf.h"
+ "include/any-linux-any/asm/epapr_hcalls.h"
+ "include/any-linux-any/asm/errno.h"
+ "include/any-linux-any/asm/fcntl.h"
+ "include/any-linux-any/asm/hw_breakpoint.h"
+ "include/any-linux-any/asm/hwcap.h"
+ "include/any-linux-any/asm/hwcap2.h"
+ "include/any-linux-any/asm/inst.h"
+ "include/any-linux-any/asm/ioctl.h"
+ "include/any-linux-any/asm/ioctls.h"
+ "include/any-linux-any/asm/ipcbuf.h"
+ "include/any-linux-any/asm/ist.h"
+ "include/any-linux-any/asm/kvm.h"
+ "include/any-linux-any/asm/kvm_para.h"
+ "include/any-linux-any/asm/kvm_perf.h"
+ "include/any-linux-any/asm/ldt.h"
+ "include/any-linux-any/asm/mce.h"
+ "include/any-linux-any/asm/mman.h"
+ "include/any-linux-any/asm/msgbuf.h"
+ "include/any-linux-any/asm/msr.h"
+ "include/any-linux-any/asm/mtrr.h"
+ "include/any-linux-any/asm/nvram.h"
+ "include/any-linux-any/asm/opal-prd.h"
+ "include/any-linux-any/asm/param.h"
+ "include/any-linux-any/asm/perf_event.h"
+ "include/any-linux-any/asm/perf_regs.h"
+ "include/any-linux-any/asm/poll.h"
+ "include/any-linux-any/asm/posix_types.h"
+ "include/any-linux-any/asm/posix_types_32.h"
+ "include/any-linux-any/asm/posix_types_64.h"
+ "include/any-linux-any/asm/posix_types_x32.h"
+ "include/any-linux-any/asm/prctl.h"
+ "include/any-linux-any/asm/processor-flags.h"
+ "include/any-linux-any/asm/ps3fb.h"
+ "include/any-linux-any/asm/ptrace-abi.h"
+ "include/any-linux-any/asm/ptrace.h"
+ "include/any-linux-any/asm/reg.h"
+ "include/any-linux-any/asm/resource.h"
+ "include/any-linux-any/asm/sembuf.h"
+ "include/any-linux-any/asm/setup.h"
+ "include/any-linux-any/asm/sgidefs.h"
+ "include/any-linux-any/asm/shmbuf.h"
+ "include/any-linux-any/asm/sigcontext.h"
+ "include/any-linux-any/asm/sigcontext32.h"
+ "include/any-linux-any/asm/siginfo.h"
+ "include/any-linux-any/asm/signal.h"
+ "include/any-linux-any/asm/socket.h"
+ "include/any-linux-any/asm/sockios.h"
+ "include/any-linux-any/asm/spu_info.h"
+ "include/any-linux-any/asm/stat.h"
+ "include/any-linux-any/asm/statfs.h"
+ "include/any-linux-any/asm/svm.h"
+ "include/any-linux-any/asm/swab.h"
+ "include/any-linux-any/asm/syscalls.h"
+ "include/any-linux-any/asm/sysmips.h"
+ "include/any-linux-any/asm/termbits.h"
+ "include/any-linux-any/asm/termios.h"
+ "include/any-linux-any/asm/tm.h"
+ "include/any-linux-any/asm/types.h"
+ "include/any-linux-any/asm/ucontext.h"
+ "include/any-linux-any/asm/unistd-common.h"
+ "include/any-linux-any/asm/unistd-eabi.h"
+ "include/any-linux-any/asm/unistd-oabi.h"
+ "include/any-linux-any/asm/unistd.h"
+ "include/any-linux-any/asm/unistd_32.h"
+ "include/any-linux-any/asm/unistd_64.h"
+ "include/any-linux-any/asm/unistd_x32.h"
+ "include/any-linux-any/asm/vm86.h"
+ "include/any-linux-any/asm/vmx.h"
+ "include/any-linux-any/asm/vsyscall.h"
+ "include/any-linux-any/linux/a.out.h"
+ "include/any-linux-any/linux/acct.h"
+ "include/any-linux-any/linux/adb.h"
+ "include/any-linux-any/linux/adfs_fs.h"
+ "include/any-linux-any/linux/affs_hardblocks.h"
+ "include/any-linux-any/linux/agpgart.h"
+ "include/any-linux-any/linux/aio_abi.h"
+ "include/any-linux-any/linux/am437x-vpfe.h"
+ "include/any-linux-any/linux/android/binder.h"
+ "include/any-linux-any/linux/apm_bios.h"
+ "include/any-linux-any/linux/arcfb.h"
+ "include/any-linux-any/linux/arm_sdei.h"
+ "include/any-linux-any/linux/aspeed-lpc-ctrl.h"
+ "include/any-linux-any/linux/atalk.h"
+ "include/any-linux-any/linux/atm.h"
+ "include/any-linux-any/linux/atm_eni.h"
+ "include/any-linux-any/linux/atm_he.h"
+ "include/any-linux-any/linux/atm_idt77105.h"
+ "include/any-linux-any/linux/atm_nicstar.h"
+ "include/any-linux-any/linux/atm_tcp.h"
+ "include/any-linux-any/linux/atm_zatm.h"
+ "include/any-linux-any/linux/atmapi.h"
+ "include/any-linux-any/linux/atmarp.h"
+ "include/any-linux-any/linux/atmbr2684.h"
+ "include/any-linux-any/linux/atmclip.h"
+ "include/any-linux-any/linux/atmdev.h"
+ "include/any-linux-any/linux/atmioc.h"
+ "include/any-linux-any/linux/atmlec.h"
+ "include/any-linux-any/linux/atmmpc.h"
+ "include/any-linux-any/linux/atmppp.h"
+ "include/any-linux-any/linux/atmsap.h"
+ "include/any-linux-any/linux/atmsvc.h"
+ "include/any-linux-any/linux/audit.h"
+ "include/any-linux-any/linux/auto_dev-ioctl.h"
+ "include/any-linux-any/linux/auto_fs.h"
+ "include/any-linux-any/linux/auto_fs4.h"
+ "include/any-linux-any/linux/auxvec.h"
+ "include/any-linux-any/linux/ax25.h"
+ "include/any-linux-any/linux/b1lli.h"
+ "include/any-linux-any/linux/batadv_packet.h"
+ "include/any-linux-any/linux/batman_adv.h"
+ "include/any-linux-any/linux/baycom.h"
+ "include/any-linux-any/linux/bcache.h"
+ "include/any-linux-any/linux/bcm933xx_hcs.h"
+ "include/any-linux-any/linux/bfs_fs.h"
+ "include/any-linux-any/linux/binfmts.h"
+ "include/any-linux-any/linux/blkpg.h"
+ "include/any-linux-any/linux/blktrace_api.h"
+ "include/any-linux-any/linux/blkzoned.h"
+ "include/any-linux-any/linux/bpf.h"
+ "include/any-linux-any/linux/bpf_common.h"
+ "include/any-linux-any/linux/bpf_perf_event.h"
+ "include/any-linux-any/linux/bpfilter.h"
+ "include/any-linux-any/linux/bpqether.h"
+ "include/any-linux-any/linux/bsg.h"
+ "include/any-linux-any/linux/bt-bmc.h"
+ "include/any-linux-any/linux/btf.h"
+ "include/any-linux-any/linux/btrfs.h"
+ "include/any-linux-any/linux/btrfs_tree.h"
+ "include/any-linux-any/linux/byteorder/big_endian.h"
+ "include/any-linux-any/linux/byteorder/little_endian.h"
+ "include/any-linux-any/linux/caif/caif_socket.h"
+ "include/any-linux-any/linux/caif/if_caif.h"
+ "include/any-linux-any/linux/can.h"
+ "include/any-linux-any/linux/can/bcm.h"
+ "include/any-linux-any/linux/can/error.h"
+ "include/any-linux-any/linux/can/gw.h"
+ "include/any-linux-any/linux/can/netlink.h"
+ "include/any-linux-any/linux/can/raw.h"
+ "include/any-linux-any/linux/can/vxcan.h"
+ "include/any-linux-any/linux/capability.h"
+ "include/any-linux-any/linux/capi.h"
+ "include/any-linux-any/linux/cciss_defs.h"
+ "include/any-linux-any/linux/cciss_ioctl.h"
+ "include/any-linux-any/linux/cdrom.h"
+ "include/any-linux-any/linux/cec-funcs.h"
+ "include/any-linux-any/linux/cec.h"
+ "include/any-linux-any/linux/cgroupstats.h"
+ "include/any-linux-any/linux/chio.h"
+ "include/any-linux-any/linux/cifs/cifs_mount.h"
+ "include/any-linux-any/linux/cm4000_cs.h"
+ "include/any-linux-any/linux/cn_proc.h"
+ "include/any-linux-any/linux/coda.h"
+ "include/any-linux-any/linux/coda_psdev.h"
+ "include/any-linux-any/linux/coff.h"
+ "include/any-linux-any/linux/connector.h"
+ "include/any-linux-any/linux/const.h"
+ "include/any-linux-any/linux/coresight-stm.h"
+ "include/any-linux-any/linux/cramfs_fs.h"
+ "include/any-linux-any/linux/cryptouser.h"
+ "include/any-linux-any/linux/cuda.h"
+ "include/any-linux-any/linux/cyclades.h"
+ "include/any-linux-any/linux/cycx_cfm.h"
+ "include/any-linux-any/linux/dcbnl.h"
+ "include/any-linux-any/linux/dccp.h"
+ "include/any-linux-any/linux/devlink.h"
+ "include/any-linux-any/linux/dlm.h"
+ "include/any-linux-any/linux/dlm_device.h"
+ "include/any-linux-any/linux/dlm_netlink.h"
+ "include/any-linux-any/linux/dlm_plock.h"
+ "include/any-linux-any/linux/dlmconstants.h"
+ "include/any-linux-any/linux/dm-ioctl.h"
+ "include/any-linux-any/linux/dm-log-userspace.h"
+ "include/any-linux-any/linux/dma-buf.h"
+ "include/any-linux-any/linux/dn.h"
+ "include/any-linux-any/linux/dqblk_xfs.h"
+ "include/any-linux-any/linux/dvb/audio.h"
+ "include/any-linux-any/linux/dvb/ca.h"
+ "include/any-linux-any/linux/dvb/dmx.h"
+ "include/any-linux-any/linux/dvb/frontend.h"
+ "include/any-linux-any/linux/dvb/net.h"
+ "include/any-linux-any/linux/dvb/osd.h"
+ "include/any-linux-any/linux/dvb/version.h"
+ "include/any-linux-any/linux/dvb/video.h"
+ "include/any-linux-any/linux/edd.h"
+ "include/any-linux-any/linux/efs_fs_sb.h"
+ "include/any-linux-any/linux/elf-em.h"
+ "include/any-linux-any/linux/elf-fdpic.h"
+ "include/any-linux-any/linux/elf.h"
+ "include/any-linux-any/linux/elfcore.h"
+ "include/any-linux-any/linux/errno.h"
+ "include/any-linux-any/linux/errqueue.h"
+ "include/any-linux-any/linux/erspan.h"
+ "include/any-linux-any/linux/ethtool.h"
+ "include/any-linux-any/linux/eventpoll.h"
+ "include/any-linux-any/linux/fadvise.h"
+ "include/any-linux-any/linux/falloc.h"
+ "include/any-linux-any/linux/fanotify.h"
+ "include/any-linux-any/linux/fb.h"
+ "include/any-linux-any/linux/fcntl.h"
+ "include/any-linux-any/linux/fd.h"
+ "include/any-linux-any/linux/fdreg.h"
+ "include/any-linux-any/linux/fib_rules.h"
+ "include/any-linux-any/linux/fiemap.h"
+ "include/any-linux-any/linux/filter.h"
+ "include/any-linux-any/linux/firewire-cdev.h"
+ "include/any-linux-any/linux/firewire-constants.h"
+ "include/any-linux-any/linux/flat.h"
+ "include/any-linux-any/linux/fou.h"
+ "include/any-linux-any/linux/fpga-dfl.h"
+ "include/any-linux-any/linux/fs.h"
+ "include/any-linux-any/linux/fsi.h"
+ "include/any-linux-any/linux/fsl_hypervisor.h"
+ "include/any-linux-any/linux/fsmap.h"
+ "include/any-linux-any/linux/fuse.h"
+ "include/any-linux-any/linux/futex.h"
+ "include/any-linux-any/linux/gameport.h"
+ "include/any-linux-any/linux/gen_stats.h"
+ "include/any-linux-any/linux/genetlink.h"
+ "include/any-linux-any/linux/genwqe/genwqe_card.h"
+ "include/any-linux-any/linux/gfs2_ondisk.h"
+ "include/any-linux-any/linux/gigaset_dev.h"
+ "include/any-linux-any/linux/gpio.h"
+ "include/any-linux-any/linux/gsmmux.h"
+ "include/any-linux-any/linux/gtp.h"
+ "include/any-linux-any/linux/hash_info.h"
+ "include/any-linux-any/linux/hdlc.h"
+ "include/any-linux-any/linux/hdlc/ioctl.h"
+ "include/any-linux-any/linux/hdlcdrv.h"
+ "include/any-linux-any/linux/hdreg.h"
+ "include/any-linux-any/linux/hid.h"
+ "include/any-linux-any/linux/hiddev.h"
+ "include/any-linux-any/linux/hidraw.h"
+ "include/any-linux-any/linux/hpet.h"
+ "include/any-linux-any/linux/hsi/cs-protocol.h"
+ "include/any-linux-any/linux/hsi/hsi_char.h"
+ "include/any-linux-any/linux/hsr_netlink.h"
+ "include/any-linux-any/linux/hw_breakpoint.h"
+ "include/any-linux-any/linux/hyperv.h"
+ "include/any-linux-any/linux/hysdn_if.h"
+ "include/any-linux-any/linux/i2c-dev.h"
+ "include/any-linux-any/linux/i2c.h"
+ "include/any-linux-any/linux/i2o-dev.h"
+ "include/any-linux-any/linux/i8k.h"
+ "include/any-linux-any/linux/icmp.h"
+ "include/any-linux-any/linux/icmpv6.h"
+ "include/any-linux-any/linux/if.h"
+ "include/any-linux-any/linux/if_addr.h"
+ "include/any-linux-any/linux/if_addrlabel.h"
+ "include/any-linux-any/linux/if_alg.h"
+ "include/any-linux-any/linux/if_arcnet.h"
+ "include/any-linux-any/linux/if_arp.h"
+ "include/any-linux-any/linux/if_bonding.h"
+ "include/any-linux-any/linux/if_bridge.h"
+ "include/any-linux-any/linux/if_cablemodem.h"
+ "include/any-linux-any/linux/if_eql.h"
+ "include/any-linux-any/linux/if_ether.h"
+ "include/any-linux-any/linux/if_fc.h"
+ "include/any-linux-any/linux/if_fddi.h"
+ "include/any-linux-any/linux/if_frad.h"
+ "include/any-linux-any/linux/if_hippi.h"
+ "include/any-linux-any/linux/if_infiniband.h"
+ "include/any-linux-any/linux/if_link.h"
+ "include/any-linux-any/linux/if_ltalk.h"
+ "include/any-linux-any/linux/if_macsec.h"
+ "include/any-linux-any/linux/if_packet.h"
+ "include/any-linux-any/linux/if_phonet.h"
+ "include/any-linux-any/linux/if_plip.h"
+ "include/any-linux-any/linux/if_ppp.h"
+ "include/any-linux-any/linux/if_pppol2tp.h"
+ "include/any-linux-any/linux/if_pppox.h"
+ "include/any-linux-any/linux/if_slip.h"
+ "include/any-linux-any/linux/if_team.h"
+ "include/any-linux-any/linux/if_tun.h"
+ "include/any-linux-any/linux/if_tunnel.h"
+ "include/any-linux-any/linux/if_vlan.h"
+ "include/any-linux-any/linux/if_x25.h"
+ "include/any-linux-any/linux/if_xdp.h"
+ "include/any-linux-any/linux/ife.h"
+ "include/any-linux-any/linux/igmp.h"
+ "include/any-linux-any/linux/iio/events.h"
+ "include/any-linux-any/linux/iio/types.h"
+ "include/any-linux-any/linux/ila.h"
+ "include/any-linux-any/linux/in.h"
+ "include/any-linux-any/linux/in6.h"
+ "include/any-linux-any/linux/in_route.h"
+ "include/any-linux-any/linux/inet_diag.h"
+ "include/any-linux-any/linux/inotify.h"
+ "include/any-linux-any/linux/input-event-codes.h"
+ "include/any-linux-any/linux/input.h"
+ "include/any-linux-any/linux/ioctl.h"
+ "include/any-linux-any/linux/ip.h"
+ "include/any-linux-any/linux/ip6_tunnel.h"
+ "include/any-linux-any/linux/ip_vs.h"
+ "include/any-linux-any/linux/ipc.h"
+ "include/any-linux-any/linux/ipmi.h"
+ "include/any-linux-any/linux/ipmi_bmc.h"
+ "include/any-linux-any/linux/ipmi_msgdefs.h"
+ "include/any-linux-any/linux/ipsec.h"
+ "include/any-linux-any/linux/ipv6.h"
+ "include/any-linux-any/linux/ipv6_route.h"
+ "include/any-linux-any/linux/ipx.h"
+ "include/any-linux-any/linux/irqnr.h"
+ "include/any-linux-any/linux/isdn.h"
+ "include/any-linux-any/linux/isdn/capicmd.h"
+ "include/any-linux-any/linux/isdn_divertif.h"
+ "include/any-linux-any/linux/isdn_ppp.h"
+ "include/any-linux-any/linux/isdnif.h"
+ "include/any-linux-any/linux/iso_fs.h"
+ "include/any-linux-any/linux/ivtv.h"
+ "include/any-linux-any/linux/ivtvfb.h"
+ "include/any-linux-any/linux/jffs2.h"
+ "include/any-linux-any/linux/joystick.h"
+ "include/any-linux-any/linux/kcm.h"
+ "include/any-linux-any/linux/kcmp.h"
+ "include/any-linux-any/linux/kcov.h"
+ "include/any-linux-any/linux/kd.h"
+ "include/any-linux-any/linux/kdev_t.h"
+ "include/any-linux-any/linux/kernel-page-flags.h"
+ "include/any-linux-any/linux/kernel.h"
+ "include/any-linux-any/linux/kernelcapi.h"
+ "include/any-linux-any/linux/kexec.h"
+ "include/any-linux-any/linux/keyboard.h"
+ "include/any-linux-any/linux/keyctl.h"
+ "include/any-linux-any/linux/kfd_ioctl.h"
+ "include/any-linux-any/linux/kvm.h"
+ "include/any-linux-any/linux/kvm_para.h"
+ "include/any-linux-any/linux/l2tp.h"
+ "include/any-linux-any/linux/libc-compat.h"
+ "include/any-linux-any/linux/lightnvm.h"
+ "include/any-linux-any/linux/limits.h"
+ "include/any-linux-any/linux/lirc.h"
+ "include/any-linux-any/linux/llc.h"
+ "include/any-linux-any/linux/loop.h"
+ "include/any-linux-any/linux/lp.h"
+ "include/any-linux-any/linux/lwtunnel.h"
+ "include/any-linux-any/linux/magic.h"
+ "include/any-linux-any/linux/major.h"
+ "include/any-linux-any/linux/map_to_7segment.h"
+ "include/any-linux-any/linux/matroxfb.h"
+ "include/any-linux-any/linux/max2175.h"
+ "include/any-linux-any/linux/mdio.h"
+ "include/any-linux-any/linux/media-bus-format.h"
+ "include/any-linux-any/linux/media.h"
+ "include/any-linux-any/linux/mei.h"
+ "include/any-linux-any/linux/membarrier.h"
+ "include/any-linux-any/linux/memfd.h"
+ "include/any-linux-any/linux/mempolicy.h"
+ "include/any-linux-any/linux/meye.h"
+ "include/any-linux-any/linux/mic_common.h"
+ "include/any-linux-any/linux/mic_ioctl.h"
+ "include/any-linux-any/linux/mii.h"
+ "include/any-linux-any/linux/minix_fs.h"
+ "include/any-linux-any/linux/mman.h"
+ "include/any-linux-any/linux/mmc/ioctl.h"
+ "include/any-linux-any/linux/mmtimer.h"
+ "include/any-linux-any/linux/module.h"
+ "include/any-linux-any/linux/mpls.h"
+ "include/any-linux-any/linux/mpls_iptunnel.h"
+ "include/any-linux-any/linux/mqueue.h"
+ "include/any-linux-any/linux/mroute.h"
+ "include/any-linux-any/linux/mroute6.h"
+ "include/any-linux-any/linux/msdos_fs.h"
+ "include/any-linux-any/linux/msg.h"
+ "include/any-linux-any/linux/mtio.h"
+ "include/any-linux-any/linux/n_r3964.h"
+ "include/any-linux-any/linux/nbd-netlink.h"
+ "include/any-linux-any/linux/nbd.h"
+ "include/any-linux-any/linux/ncsi.h"
+ "include/any-linux-any/linux/ndctl.h"
+ "include/any-linux-any/linux/neighbour.h"
+ "include/any-linux-any/linux/net.h"
+ "include/any-linux-any/linux/net_dropmon.h"
+ "include/any-linux-any/linux/net_namespace.h"
+ "include/any-linux-any/linux/net_tstamp.h"
+ "include/any-linux-any/linux/netconf.h"
+ "include/any-linux-any/linux/netdevice.h"
+ "include/any-linux-any/linux/netfilter.h"
+ "include/any-linux-any/linux/netfilter/ipset/ip_set.h"
+ "include/any-linux-any/linux/netfilter/ipset/ip_set_bitmap.h"
+ "include/any-linux-any/linux/netfilter/ipset/ip_set_hash.h"
+ "include/any-linux-any/linux/netfilter/ipset/ip_set_list.h"
+ "include/any-linux-any/linux/netfilter/nf_conntrack_common.h"
+ "include/any-linux-any/linux/netfilter/nf_conntrack_ftp.h"
+ "include/any-linux-any/linux/netfilter/nf_conntrack_sctp.h"
+ "include/any-linux-any/linux/netfilter/nf_conntrack_tcp.h"
+ "include/any-linux-any/linux/netfilter/nf_conntrack_tuple_common.h"
+ "include/any-linux-any/linux/netfilter/nf_log.h"
+ "include/any-linux-any/linux/netfilter/nf_nat.h"
+ "include/any-linux-any/linux/netfilter/nf_tables.h"
+ "include/any-linux-any/linux/netfilter/nf_tables_compat.h"
+ "include/any-linux-any/linux/netfilter/nfnetlink.h"
+ "include/any-linux-any/linux/netfilter/nfnetlink_acct.h"
+ "include/any-linux-any/linux/netfilter/nfnetlink_compat.h"
+ "include/any-linux-any/linux/netfilter/nfnetlink_conntrack.h"
+ "include/any-linux-any/linux/netfilter/nfnetlink_cthelper.h"
+ "include/any-linux-any/linux/netfilter/nfnetlink_cttimeout.h"
+ "include/any-linux-any/linux/netfilter/nfnetlink_log.h"
+ "include/any-linux-any/linux/netfilter/nfnetlink_osf.h"
+ "include/any-linux-any/linux/netfilter/nfnetlink_queue.h"
+ "include/any-linux-any/linux/netfilter/x_tables.h"
+ "include/any-linux-any/linux/netfilter/xt_AUDIT.h"
+ "include/any-linux-any/linux/netfilter/xt_CHECKSUM.h"
+ "include/any-linux-any/linux/netfilter/xt_CLASSIFY.h"
+ "include/any-linux-any/linux/netfilter/xt_CONNSECMARK.h"
+ "include/any-linux-any/linux/netfilter/xt_CT.h"
+ "include/any-linux-any/linux/netfilter/xt_HMARK.h"
+ "include/any-linux-any/linux/netfilter/xt_IDLETIMER.h"
+ "include/any-linux-any/linux/netfilter/xt_LED.h"
+ "include/any-linux-any/linux/netfilter/xt_LOG.h"
+ "include/any-linux-any/linux/netfilter/xt_NFLOG.h"
+ "include/any-linux-any/linux/netfilter/xt_NFQUEUE.h"
+ "include/any-linux-any/linux/netfilter/xt_SECMARK.h"
+ "include/any-linux-any/linux/netfilter/xt_SYNPROXY.h"
+ "include/any-linux-any/linux/netfilter/xt_TCPOPTSTRIP.h"
+ "include/any-linux-any/linux/netfilter/xt_TEE.h"
+ "include/any-linux-any/linux/netfilter/xt_TPROXY.h"
+ "include/any-linux-any/linux/netfilter/xt_addrtype.h"
+ "include/any-linux-any/linux/netfilter/xt_bpf.h"
+ "include/any-linux-any/linux/netfilter/xt_cgroup.h"
+ "include/any-linux-any/linux/netfilter/xt_cluster.h"
+ "include/any-linux-any/linux/netfilter/xt_comment.h"
+ "include/any-linux-any/linux/netfilter/xt_connbytes.h"
+ "include/any-linux-any/linux/netfilter/xt_connlabel.h"
+ "include/any-linux-any/linux/netfilter/xt_connlimit.h"
+ "include/any-linux-any/linux/netfilter/xt_connmark.h"
+ "include/any-linux-any/linux/netfilter/xt_conntrack.h"
+ "include/any-linux-any/linux/netfilter/xt_cpu.h"
+ "include/any-linux-any/linux/netfilter/xt_dccp.h"
+ "include/any-linux-any/linux/netfilter/xt_devgroup.h"
+ "include/any-linux-any/linux/netfilter/xt_dscp.h"
+ "include/any-linux-any/linux/netfilter/xt_ecn.h"
+ "include/any-linux-any/linux/netfilter/xt_esp.h"
+ "include/any-linux-any/linux/netfilter/xt_hashlimit.h"
+ "include/any-linux-any/linux/netfilter/xt_helper.h"
+ "include/any-linux-any/linux/netfilter/xt_ipcomp.h"
+ "include/any-linux-any/linux/netfilter/xt_iprange.h"
+ "include/any-linux-any/linux/netfilter/xt_ipvs.h"
+ "include/any-linux-any/linux/netfilter/xt_l2tp.h"
+ "include/any-linux-any/linux/netfilter/xt_length.h"
+ "include/any-linux-any/linux/netfilter/xt_limit.h"
+ "include/any-linux-any/linux/netfilter/xt_mac.h"
+ "include/any-linux-any/linux/netfilter/xt_mark.h"
+ "include/any-linux-any/linux/netfilter/xt_multiport.h"
+ "include/any-linux-any/linux/netfilter/xt_nfacct.h"
+ "include/any-linux-any/linux/netfilter/xt_osf.h"
+ "include/any-linux-any/linux/netfilter/xt_owner.h"
+ "include/any-linux-any/linux/netfilter/xt_physdev.h"
+ "include/any-linux-any/linux/netfilter/xt_pkttype.h"
+ "include/any-linux-any/linux/netfilter/xt_policy.h"
+ "include/any-linux-any/linux/netfilter/xt_quota.h"
+ "include/any-linux-any/linux/netfilter/xt_rateest.h"
+ "include/any-linux-any/linux/netfilter/xt_realm.h"
+ "include/any-linux-any/linux/netfilter/xt_recent.h"
+ "include/any-linux-any/linux/netfilter/xt_rpfilter.h"
+ "include/any-linux-any/linux/netfilter/xt_sctp.h"
+ "include/any-linux-any/linux/netfilter/xt_set.h"
+ "include/any-linux-any/linux/netfilter/xt_socket.h"
+ "include/any-linux-any/linux/netfilter/xt_state.h"
+ "include/any-linux-any/linux/netfilter/xt_statistic.h"
+ "include/any-linux-any/linux/netfilter/xt_string.h"
+ "include/any-linux-any/linux/netfilter/xt_tcpmss.h"
+ "include/any-linux-any/linux/netfilter/xt_tcpudp.h"
+ "include/any-linux-any/linux/netfilter/xt_time.h"
+ "include/any-linux-any/linux/netfilter/xt_u32.h"
+ "include/any-linux-any/linux/netfilter_arp.h"
+ "include/any-linux-any/linux/netfilter_arp/arp_tables.h"
+ "include/any-linux-any/linux/netfilter_arp/arpt_mangle.h"
+ "include/any-linux-any/linux/netfilter_bridge.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_802_3.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_among.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_arp.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_arpreply.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_ip.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_ip6.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_limit.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_log.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_mark_m.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_mark_t.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_nat.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_nflog.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_pkttype.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_redirect.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_stp.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebt_vlan.h"
+ "include/any-linux-any/linux/netfilter_bridge/ebtables.h"
+ "include/any-linux-any/linux/netfilter_decnet.h"
+ "include/any-linux-any/linux/netfilter_ipv4.h"
+ "include/any-linux-any/linux/netfilter_ipv4/ip_tables.h"
+ "include/any-linux-any/linux/netfilter_ipv4/ipt_CLUSTERIP.h"
+ "include/any-linux-any/linux/netfilter_ipv4/ipt_LOG.h"
+ "include/any-linux-any/linux/netfilter_ipv4/ipt_REJECT.h"
+ "include/any-linux-any/linux/netfilter_ipv4/ipt_ah.h"
+ "include/any-linux-any/linux/netfilter_ipv4/ipt_ecn.h"
+ "include/any-linux-any/linux/netfilter_ipv4/ipt_ttl.h"
+ "include/any-linux-any/linux/netfilter_ipv6.h"
+ "include/any-linux-any/linux/netfilter_ipv6/ip6_tables.h"
+ "include/any-linux-any/linux/netfilter_ipv6/ip6t_LOG.h"
+ "include/any-linux-any/linux/netfilter_ipv6/ip6t_NPT.h"
+ "include/any-linux-any/linux/netfilter_ipv6/ip6t_REJECT.h"
+ "include/any-linux-any/linux/netfilter_ipv6/ip6t_ah.h"
+ "include/any-linux-any/linux/netfilter_ipv6/ip6t_frag.h"
+ "include/any-linux-any/linux/netfilter_ipv6/ip6t_hl.h"
+ "include/any-linux-any/linux/netfilter_ipv6/ip6t_ipv6header.h"
+ "include/any-linux-any/linux/netfilter_ipv6/ip6t_mh.h"
+ "include/any-linux-any/linux/netfilter_ipv6/ip6t_opts.h"
+ "include/any-linux-any/linux/netfilter_ipv6/ip6t_rt.h"
+ "include/any-linux-any/linux/netfilter_ipv6/ip6t_srh.h"
+ "include/any-linux-any/linux/netlink.h"
+ "include/any-linux-any/linux/netlink_diag.h"
+ "include/any-linux-any/linux/netrom.h"
+ "include/any-linux-any/linux/nfc.h"
+ "include/any-linux-any/linux/nfs.h"
+ "include/any-linux-any/linux/nfs2.h"
+ "include/any-linux-any/linux/nfs3.h"
+ "include/any-linux-any/linux/nfs4.h"
+ "include/any-linux-any/linux/nfs4_mount.h"
+ "include/any-linux-any/linux/nfs_fs.h"
+ "include/any-linux-any/linux/nfs_idmap.h"
+ "include/any-linux-any/linux/nfs_mount.h"
+ "include/any-linux-any/linux/nfsacl.h"
+ "include/any-linux-any/linux/nfsd/cld.h"
+ "include/any-linux-any/linux/nfsd/debug.h"
+ "include/any-linux-any/linux/nfsd/export.h"
+ "include/any-linux-any/linux/nfsd/nfsfh.h"
+ "include/any-linux-any/linux/nfsd/stats.h"
+ "include/any-linux-any/linux/nilfs2_api.h"
+ "include/any-linux-any/linux/nilfs2_ondisk.h"
+ "include/any-linux-any/linux/nl80211.h"
+ "include/any-linux-any/linux/nsfs.h"
+ "include/any-linux-any/linux/nubus.h"
+ "include/any-linux-any/linux/nvme_ioctl.h"
+ "include/any-linux-any/linux/nvram.h"
+ "include/any-linux-any/linux/omap3isp.h"
+ "include/any-linux-any/linux/omapfb.h"
+ "include/any-linux-any/linux/oom.h"
+ "include/any-linux-any/linux/openvswitch.h"
+ "include/any-linux-any/linux/packet_diag.h"
+ "include/any-linux-any/linux/param.h"
+ "include/any-linux-any/linux/parport.h"
+ "include/any-linux-any/linux/patchkey.h"
+ "include/any-linux-any/linux/pci.h"
+ "include/any-linux-any/linux/pci_regs.h"
+ "include/any-linux-any/linux/pcitest.h"
+ "include/any-linux-any/linux/perf_event.h"
+ "include/any-linux-any/linux/personality.h"
+ "include/any-linux-any/linux/pfkeyv2.h"
+ "include/any-linux-any/linux/pg.h"
+ "include/any-linux-any/linux/phantom.h"
+ "include/any-linux-any/linux/phonet.h"
+ "include/any-linux-any/linux/pkt_cls.h"
+ "include/any-linux-any/linux/pkt_sched.h"
+ "include/any-linux-any/linux/pktcdvd.h"
+ "include/any-linux-any/linux/pmu.h"
+ "include/any-linux-any/linux/poll.h"
+ "include/any-linux-any/linux/posix_acl.h"
+ "include/any-linux-any/linux/posix_acl_xattr.h"
+ "include/any-linux-any/linux/posix_types.h"
+ "include/any-linux-any/linux/ppdev.h"
+ "include/any-linux-any/linux/ppp-comp.h"
+ "include/any-linux-any/linux/ppp-ioctl.h"
+ "include/any-linux-any/linux/ppp_defs.h"
+ "include/any-linux-any/linux/pps.h"
+ "include/any-linux-any/linux/pr.h"
+ "include/any-linux-any/linux/prctl.h"
+ "include/any-linux-any/linux/psample.h"
+ "include/any-linux-any/linux/psci.h"
+ "include/any-linux-any/linux/psp-sev.h"
+ "include/any-linux-any/linux/ptp_clock.h"
+ "include/any-linux-any/linux/ptrace.h"
+ "include/any-linux-any/linux/qemu_fw_cfg.h"
+ "include/any-linux-any/linux/qnx4_fs.h"
+ "include/any-linux-any/linux/qnxtypes.h"
+ "include/any-linux-any/linux/qrtr.h"
+ "include/any-linux-any/linux/quota.h"
+ "include/any-linux-any/linux/radeonfb.h"
+ "include/any-linux-any/linux/raid/md_p.h"
+ "include/any-linux-any/linux/raid/md_u.h"
+ "include/any-linux-any/linux/random.h"
+ "include/any-linux-any/linux/raw.h"
+ "include/any-linux-any/linux/rds.h"
+ "include/any-linux-any/linux/reboot.h"
+ "include/any-linux-any/linux/reiserfs_fs.h"
+ "include/any-linux-any/linux/reiserfs_xattr.h"
+ "include/any-linux-any/linux/resource.h"
+ "include/any-linux-any/linux/rfkill.h"
+ "include/any-linux-any/linux/rio_cm_cdev.h"
+ "include/any-linux-any/linux/rio_mport_cdev.h"
+ "include/any-linux-any/linux/romfs_fs.h"
+ "include/any-linux-any/linux/rose.h"
+ "include/any-linux-any/linux/route.h"
+ "include/any-linux-any/linux/rpmsg.h"
+ "include/any-linux-any/linux/rseq.h"
+ "include/any-linux-any/linux/rtc.h"
+ "include/any-linux-any/linux/rtnetlink.h"
+ "include/any-linux-any/linux/rxrpc.h"
+ "include/any-linux-any/linux/scc.h"
+ "include/any-linux-any/linux/sched.h"
+ "include/any-linux-any/linux/sched/types.h"
+ "include/any-linux-any/linux/scif_ioctl.h"
+ "include/any-linux-any/linux/screen_info.h"
+ "include/any-linux-any/linux/sctp.h"
+ "include/any-linux-any/linux/sdla.h"
+ "include/any-linux-any/linux/seccomp.h"
+ "include/any-linux-any/linux/securebits.h"
+ "include/any-linux-any/linux/sed-opal.h"
+ "include/any-linux-any/linux/seg6.h"
+ "include/any-linux-any/linux/seg6_genl.h"
+ "include/any-linux-any/linux/seg6_hmac.h"
+ "include/any-linux-any/linux/seg6_iptunnel.h"
+ "include/any-linux-any/linux/seg6_local.h"
+ "include/any-linux-any/linux/selinux_netlink.h"
+ "include/any-linux-any/linux/sem.h"
+ "include/any-linux-any/linux/serial.h"
+ "include/any-linux-any/linux/serial_core.h"
+ "include/any-linux-any/linux/serial_reg.h"
+ "include/any-linux-any/linux/serio.h"
+ "include/any-linux-any/linux/shm.h"
+ "include/any-linux-any/linux/signal.h"
+ "include/any-linux-any/linux/signalfd.h"
+ "include/any-linux-any/linux/smc.h"
+ "include/any-linux-any/linux/smc_diag.h"
+ "include/any-linux-any/linux/smiapp.h"
+ "include/any-linux-any/linux/snmp.h"
+ "include/any-linux-any/linux/sock_diag.h"
+ "include/any-linux-any/linux/socket.h"
+ "include/any-linux-any/linux/sockios.h"
+ "include/any-linux-any/linux/sonet.h"
+ "include/any-linux-any/linux/sonypi.h"
+ "include/any-linux-any/linux/sound.h"
+ "include/any-linux-any/linux/soundcard.h"
+ "include/any-linux-any/linux/spi/spidev.h"
+ "include/any-linux-any/linux/stat.h"
+ "include/any-linux-any/linux/stddef.h"
+ "include/any-linux-any/linux/stm.h"
+ "include/any-linux-any/linux/string.h"
+ "include/any-linux-any/linux/sunrpc/debug.h"
+ "include/any-linux-any/linux/suspend_ioctls.h"
+ "include/any-linux-any/linux/swab.h"
+ "include/any-linux-any/linux/switchtec_ioctl.h"
+ "include/any-linux-any/linux/sync_file.h"
+ "include/any-linux-any/linux/synclink.h"
+ "include/any-linux-any/linux/sysctl.h"
+ "include/any-linux-any/linux/sysinfo.h"
+ "include/any-linux-any/linux/target_core_user.h"
+ "include/any-linux-any/linux/taskstats.h"
+ "include/any-linux-any/linux/tc_act/tc_bpf.h"
+ "include/any-linux-any/linux/tc_act/tc_connmark.h"
+ "include/any-linux-any/linux/tc_act/tc_csum.h"
+ "include/any-linux-any/linux/tc_act/tc_defact.h"
+ "include/any-linux-any/linux/tc_act/tc_gact.h"
+ "include/any-linux-any/linux/tc_act/tc_ife.h"
+ "include/any-linux-any/linux/tc_act/tc_ipt.h"
+ "include/any-linux-any/linux/tc_act/tc_mirred.h"
+ "include/any-linux-any/linux/tc_act/tc_nat.h"
+ "include/any-linux-any/linux/tc_act/tc_pedit.h"
+ "include/any-linux-any/linux/tc_act/tc_sample.h"
+ "include/any-linux-any/linux/tc_act/tc_skbedit.h"
+ "include/any-linux-any/linux/tc_act/tc_skbmod.h"
+ "include/any-linux-any/linux/tc_act/tc_tunnel_key.h"
+ "include/any-linux-any/linux/tc_act/tc_vlan.h"
+ "include/any-linux-any/linux/tc_ematch/tc_em_cmp.h"
+ "include/any-linux-any/linux/tc_ematch/tc_em_ipt.h"
+ "include/any-linux-any/linux/tc_ematch/tc_em_meta.h"
+ "include/any-linux-any/linux/tc_ematch/tc_em_nbyte.h"
+ "include/any-linux-any/linux/tc_ematch/tc_em_text.h"
+ "include/any-linux-any/linux/tcp.h"
+ "include/any-linux-any/linux/tcp_metrics.h"
+ "include/any-linux-any/linux/tee.h"
+ "include/any-linux-any/linux/termios.h"
+ "include/any-linux-any/linux/thermal.h"
+ "include/any-linux-any/linux/time.h"
+ "include/any-linux-any/linux/timerfd.h"
+ "include/any-linux-any/linux/times.h"
+ "include/any-linux-any/linux/timex.h"
+ "include/any-linux-any/linux/tiocl.h"
+ "include/any-linux-any/linux/tipc.h"
+ "include/any-linux-any/linux/tipc_config.h"
+ "include/any-linux-any/linux/tipc_netlink.h"
+ "include/any-linux-any/linux/tipc_sockets_diag.h"
+ "include/any-linux-any/linux/tls.h"
+ "include/any-linux-any/linux/toshiba.h"
+ "include/any-linux-any/linux/tty.h"
+ "include/any-linux-any/linux/tty_flags.h"
+ "include/any-linux-any/linux/types.h"
+ "include/any-linux-any/linux/udf_fs_i.h"
+ "include/any-linux-any/linux/udp.h"
+ "include/any-linux-any/linux/uhid.h"
+ "include/any-linux-any/linux/uinput.h"
+ "include/any-linux-any/linux/uio.h"
+ "include/any-linux-any/linux/uleds.h"
+ "include/any-linux-any/linux/ultrasound.h"
+ "include/any-linux-any/linux/un.h"
+ "include/any-linux-any/linux/unistd.h"
+ "include/any-linux-any/linux/unix_diag.h"
+ "include/any-linux-any/linux/usb/audio.h"
+ "include/any-linux-any/linux/usb/cdc-wdm.h"
+ "include/any-linux-any/linux/usb/cdc.h"
+ "include/any-linux-any/linux/usb/ch11.h"
+ "include/any-linux-any/linux/usb/ch9.h"
+ "include/any-linux-any/linux/usb/charger.h"
+ "include/any-linux-any/linux/usb/functionfs.h"
+ "include/any-linux-any/linux/usb/g_printer.h"
+ "include/any-linux-any/linux/usb/g_uvc.h"
+ "include/any-linux-any/linux/usb/gadgetfs.h"
+ "include/any-linux-any/linux/usb/midi.h"
+ "include/any-linux-any/linux/usb/tmc.h"
+ "include/any-linux-any/linux/usb/video.h"
+ "include/any-linux-any/linux/usbdevice_fs.h"
+ "include/any-linux-any/linux/usbip.h"
+ "include/any-linux-any/linux/userfaultfd.h"
+ "include/any-linux-any/linux/userio.h"
+ "include/any-linux-any/linux/utime.h"
+ "include/any-linux-any/linux/utsname.h"
+ "include/any-linux-any/linux/uuid.h"
+ "include/any-linux-any/linux/uvcvideo.h"
+ "include/any-linux-any/linux/v4l2-common.h"
+ "include/any-linux-any/linux/v4l2-controls.h"
+ "include/any-linux-any/linux/v4l2-dv-timings.h"
+ "include/any-linux-any/linux/v4l2-mediabus.h"
+ "include/any-linux-any/linux/v4l2-subdev.h"
+ "include/any-linux-any/linux/vbox_err.h"
+ "include/any-linux-any/linux/vbox_vmmdev_types.h"
+ "include/any-linux-any/linux/vboxguest.h"
+ "include/any-linux-any/linux/version.h"
+ "include/any-linux-any/linux/veth.h"
+ "include/any-linux-any/linux/vfio.h"
+ "include/any-linux-any/linux/vfio_ccw.h"
+ "include/any-linux-any/linux/vhost.h"
+ "include/any-linux-any/linux/videodev2.h"
+ "include/any-linux-any/linux/virtio_9p.h"
+ "include/any-linux-any/linux/virtio_balloon.h"
+ "include/any-linux-any/linux/virtio_blk.h"
+ "include/any-linux-any/linux/virtio_config.h"
+ "include/any-linux-any/linux/virtio_console.h"
+ "include/any-linux-any/linux/virtio_crypto.h"
+ "include/any-linux-any/linux/virtio_gpu.h"
+ "include/any-linux-any/linux/virtio_ids.h"
+ "include/any-linux-any/linux/virtio_input.h"
+ "include/any-linux-any/linux/virtio_mmio.h"
+ "include/any-linux-any/linux/virtio_net.h"
+ "include/any-linux-any/linux/virtio_pci.h"
+ "include/any-linux-any/linux/virtio_ring.h"
+ "include/any-linux-any/linux/virtio_rng.h"
+ "include/any-linux-any/linux/virtio_scsi.h"
+ "include/any-linux-any/linux/virtio_types.h"
+ "include/any-linux-any/linux/virtio_vsock.h"
+ "include/any-linux-any/linux/vm_sockets.h"
+ "include/any-linux-any/linux/vm_sockets_diag.h"
+ "include/any-linux-any/linux/vmcore.h"
+ "include/any-linux-any/linux/vsockmon.h"
+ "include/any-linux-any/linux/vt.h"
+ "include/any-linux-any/linux/vtpm_proxy.h"
+ "include/any-linux-any/linux/wait.h"
+ "include/any-linux-any/linux/wanrouter.h"
+ "include/any-linux-any/linux/watchdog.h"
+ "include/any-linux-any/linux/wimax.h"
+ "include/any-linux-any/linux/wimax/i2400m.h"
+ "include/any-linux-any/linux/wireless.h"
+ "include/any-linux-any/linux/wmi.h"
+ "include/any-linux-any/linux/x25.h"
+ "include/any-linux-any/linux/xattr.h"
+ "include/any-linux-any/linux/xfrm.h"
+ "include/any-linux-any/linux/xilinx-v4l2-controls.h"
+ "include/any-linux-any/linux/zorro.h"
+ "include/any-linux-any/linux/zorro_ids.h"
+ "include/arm-linux-any/asm/fcntl.h"
+ "include/arm-linux-any/asm/ioctls.h"
+ "include/arm-linux-any/asm/mman.h"
+ "include/arm-linux-any/asm/statfs.h"
+ "include/arm-linux-any/asm/swab.h"
+ "include/arm-linux-any/asm/types.h"
"include/arm-linux-gnueabi/bits/endian.h"
"include/arm-linux-gnueabi/bits/fcntl.h"
"include/arm-linux-gnueabi/bits/fenv.h"
@@ -3119,7 +3938,6 @@ set(ZIG_LIBC_FILES
"include/arm-linux-gnueabi/sys/ptrace.h"
"include/arm-linux-gnueabi/sys/ucontext.h"
"include/arm-linux-gnueabi/sys/user.h"
- "include/arm-linux-gnueabihf/asm/unistd.h"
"include/arm-linux-gnueabihf/bits/endian.h"
"include/arm-linux-gnueabihf/bits/fcntl.h"
"include/arm-linux-gnueabihf/bits/fenv.h"
@@ -3141,12 +3959,6 @@ set(ZIG_LIBC_FILES
"include/arm-linux-gnueabihf/sys/ptrace.h"
"include/arm-linux-gnueabihf/sys/ucontext.h"
"include/arm-linux-gnueabihf/sys/user.h"
- "include/arm-linux-musleabi/asm/fcntl.h"
- "include/arm-linux-musleabi/asm/ioctls.h"
- "include/arm-linux-musleabi/asm/mman.h"
- "include/arm-linux-musleabi/asm/statfs.h"
- "include/arm-linux-musleabi/asm/swab.h"
- "include/arm-linux-musleabi/asm/types.h"
"include/arm-linux-musleabi/bfd.h"
"include/arm-linux-musleabi/bfd_stdint.h"
"include/arm-linux-musleabi/bits/fcntl.h"
@@ -3156,12 +3968,6 @@ set(ZIG_LIBC_FILES
"include/arm-linux-musleabi/bits/ptrace.h"
"include/arm-linux-musleabi/bits/shm.h"
"include/arm-linux-musleabi/bits/stdint.h"
- "include/arm-linux-musleabihf/asm/fcntl.h"
- "include/arm-linux-musleabihf/asm/ioctls.h"
- "include/arm-linux-musleabihf/asm/mman.h"
- "include/arm-linux-musleabihf/asm/statfs.h"
- "include/arm-linux-musleabihf/asm/swab.h"
- "include/arm-linux-musleabihf/asm/types.h"
"include/arm-linux-musleabihf/bfd.h"
"include/arm-linux-musleabihf/bfd_stdint.h"
"include/arm-linux-musleabihf/bits/fcntl.h"
@@ -3171,7 +3977,12 @@ set(ZIG_LIBC_FILES
"include/arm-linux-musleabihf/bits/ptrace.h"
"include/arm-linux-musleabihf/bits/shm.h"
"include/arm-linux-musleabihf/bits/stdint.h"
- "include/armeb-linux-gnueabi/asm/unistd.h"
+ "include/armeb-linux-any/asm/fcntl.h"
+ "include/armeb-linux-any/asm/ioctls.h"
+ "include/armeb-linux-any/asm/mman.h"
+ "include/armeb-linux-any/asm/statfs.h"
+ "include/armeb-linux-any/asm/swab.h"
+ "include/armeb-linux-any/asm/types.h"
"include/armeb-linux-gnueabi/bits/endian.h"
"include/armeb-linux-gnueabi/bits/fcntl.h"
"include/armeb-linux-gnueabi/bits/fenv.h"
@@ -3193,7 +4004,6 @@ set(ZIG_LIBC_FILES
"include/armeb-linux-gnueabi/sys/ptrace.h"
"include/armeb-linux-gnueabi/sys/ucontext.h"
"include/armeb-linux-gnueabi/sys/user.h"
- "include/armeb-linux-gnueabihf/asm/unistd.h"
"include/armeb-linux-gnueabihf/bits/endian.h"
"include/armeb-linux-gnueabihf/bits/fcntl.h"
"include/armeb-linux-gnueabihf/bits/fenv.h"
@@ -3215,12 +4025,6 @@ set(ZIG_LIBC_FILES
"include/armeb-linux-gnueabihf/sys/ptrace.h"
"include/armeb-linux-gnueabihf/sys/ucontext.h"
"include/armeb-linux-gnueabihf/sys/user.h"
- "include/armeb-linux-musleabi/asm/fcntl.h"
- "include/armeb-linux-musleabi/asm/ioctls.h"
- "include/armeb-linux-musleabi/asm/mman.h"
- "include/armeb-linux-musleabi/asm/statfs.h"
- "include/armeb-linux-musleabi/asm/swab.h"
- "include/armeb-linux-musleabi/asm/types.h"
"include/armeb-linux-musleabi/bfd.h"
"include/armeb-linux-musleabi/bfd_stdint.h"
"include/armeb-linux-musleabi/bits/fcntl.h"
@@ -3230,12 +4034,6 @@ set(ZIG_LIBC_FILES
"include/armeb-linux-musleabi/bits/ptrace.h"
"include/armeb-linux-musleabi/bits/shm.h"
"include/armeb-linux-musleabi/bits/stdint.h"
- "include/armeb-linux-musleabihf/asm/fcntl.h"
- "include/armeb-linux-musleabihf/asm/ioctls.h"
- "include/armeb-linux-musleabihf/asm/mman.h"
- "include/armeb-linux-musleabihf/asm/statfs.h"
- "include/armeb-linux-musleabihf/asm/swab.h"
- "include/armeb-linux-musleabihf/asm/types.h"
"include/armeb-linux-musleabihf/bfd.h"
"include/armeb-linux-musleabihf/bfd_stdint.h"
"include/armeb-linux-musleabihf/bits/fcntl.h"
@@ -3258,10 +4056,6 @@ set(ZIG_LIBC_FILES
"include/generic-glibc/arpa/nameser_compat.h"
"include/generic-glibc/arpa/telnet.h"
"include/generic-glibc/arpa/tftp.h"
- "include/generic-glibc/asm-generic/bitsperlong.h"
- "include/generic-glibc/asm-generic/unistd.h"
- "include/generic-glibc/asm/unistd_32.h"
- "include/generic-glibc/asm/unistd_64.h"
"include/generic-glibc/assert.h"
"include/generic-glibc/bits/a.out.h"
"include/generic-glibc/bits/argp-ldbl.h"
@@ -3519,7 +4313,6 @@ set(ZIG_LIBC_FILES
"include/generic-glibc/libintl.h"
"include/generic-glibc/limits.h"
"include/generic-glibc/link.h"
- "include/generic-glibc/linux/limits.h"
"include/generic-glibc/locale.h"
"include/generic-glibc/malloc.h"
"include/generic-glibc/math.h"
@@ -3726,128 +4519,6 @@ set(ZIG_LIBC_FILES
"include/generic-musl/arpa/nameser_compat.h"
"include/generic-musl/arpa/telnet.h"
"include/generic-musl/arpa/tftp.h"
- "include/generic-musl/asm-generic/auxvec.h"
- "include/generic-musl/asm-generic/bitsperlong.h"
- "include/generic-musl/asm-generic/bpf_perf_event.h"
- "include/generic-musl/asm-generic/errno-base.h"
- "include/generic-musl/asm-generic/errno.h"
- "include/generic-musl/asm-generic/fcntl.h"
- "include/generic-musl/asm-generic/hugetlb_encode.h"
- "include/generic-musl/asm-generic/int-l64.h"
- "include/generic-musl/asm-generic/int-ll64.h"
- "include/generic-musl/asm-generic/ioctl.h"
- "include/generic-musl/asm-generic/ioctls.h"
- "include/generic-musl/asm-generic/ipcbuf.h"
- "include/generic-musl/asm-generic/kvm_para.h"
- "include/generic-musl/asm-generic/mman-common.h"
- "include/generic-musl/asm-generic/mman.h"
- "include/generic-musl/asm-generic/msgbuf.h"
- "include/generic-musl/asm-generic/param.h"
- "include/generic-musl/asm-generic/poll.h"
- "include/generic-musl/asm-generic/posix_types.h"
- "include/generic-musl/asm-generic/resource.h"
- "include/generic-musl/asm-generic/sembuf.h"
- "include/generic-musl/asm-generic/setup.h"
- "include/generic-musl/asm-generic/shmbuf.h"
- "include/generic-musl/asm-generic/shmparam.h"
- "include/generic-musl/asm-generic/siginfo.h"
- "include/generic-musl/asm-generic/signal-defs.h"
- "include/generic-musl/asm-generic/signal.h"
- "include/generic-musl/asm-generic/socket.h"
- "include/generic-musl/asm-generic/sockios.h"
- "include/generic-musl/asm-generic/stat.h"
- "include/generic-musl/asm-generic/statfs.h"
- "include/generic-musl/asm-generic/swab.h"
- "include/generic-musl/asm-generic/termbits.h"
- "include/generic-musl/asm-generic/termios.h"
- "include/generic-musl/asm-generic/types.h"
- "include/generic-musl/asm-generic/ucontext.h"
- "include/generic-musl/asm-generic/unistd.h"
- "include/generic-musl/asm/a.out.h"
- "include/generic-musl/asm/auxvec.h"
- "include/generic-musl/asm/bitfield.h"
- "include/generic-musl/asm/bitsperlong.h"
- "include/generic-musl/asm/boot.h"
- "include/generic-musl/asm/bootparam.h"
- "include/generic-musl/asm/bootx.h"
- "include/generic-musl/asm/bpf_perf_event.h"
- "include/generic-musl/asm/break.h"
- "include/generic-musl/asm/byteorder.h"
- "include/generic-musl/asm/cachectl.h"
- "include/generic-musl/asm/cputable.h"
- "include/generic-musl/asm/debugreg.h"
- "include/generic-musl/asm/e820.h"
- "include/generic-musl/asm/eeh.h"
- "include/generic-musl/asm/elf.h"
- "include/generic-musl/asm/epapr_hcalls.h"
- "include/generic-musl/asm/errno.h"
- "include/generic-musl/asm/fcntl.h"
- "include/generic-musl/asm/hw_breakpoint.h"
- "include/generic-musl/asm/hwcap.h"
- "include/generic-musl/asm/hwcap2.h"
- "include/generic-musl/asm/inst.h"
- "include/generic-musl/asm/ioctl.h"
- "include/generic-musl/asm/ioctls.h"
- "include/generic-musl/asm/ipcbuf.h"
- "include/generic-musl/asm/ist.h"
- "include/generic-musl/asm/kvm.h"
- "include/generic-musl/asm/kvm_para.h"
- "include/generic-musl/asm/kvm_perf.h"
- "include/generic-musl/asm/ldt.h"
- "include/generic-musl/asm/mce.h"
- "include/generic-musl/asm/mman.h"
- "include/generic-musl/asm/msgbuf.h"
- "include/generic-musl/asm/msr.h"
- "include/generic-musl/asm/mtrr.h"
- "include/generic-musl/asm/nvram.h"
- "include/generic-musl/asm/opal-prd.h"
- "include/generic-musl/asm/param.h"
- "include/generic-musl/asm/perf_event.h"
- "include/generic-musl/asm/perf_regs.h"
- "include/generic-musl/asm/poll.h"
- "include/generic-musl/asm/posix_types.h"
- "include/generic-musl/asm/posix_types_32.h"
- "include/generic-musl/asm/posix_types_64.h"
- "include/generic-musl/asm/posix_types_x32.h"
- "include/generic-musl/asm/prctl.h"
- "include/generic-musl/asm/processor-flags.h"
- "include/generic-musl/asm/ps3fb.h"
- "include/generic-musl/asm/ptrace-abi.h"
- "include/generic-musl/asm/ptrace.h"
- "include/generic-musl/asm/reg.h"
- "include/generic-musl/asm/resource.h"
- "include/generic-musl/asm/sembuf.h"
- "include/generic-musl/asm/setup.h"
- "include/generic-musl/asm/sgidefs.h"
- "include/generic-musl/asm/shmbuf.h"
- "include/generic-musl/asm/sigcontext.h"
- "include/generic-musl/asm/sigcontext32.h"
- "include/generic-musl/asm/siginfo.h"
- "include/generic-musl/asm/signal.h"
- "include/generic-musl/asm/socket.h"
- "include/generic-musl/asm/sockios.h"
- "include/generic-musl/asm/spu_info.h"
- "include/generic-musl/asm/stat.h"
- "include/generic-musl/asm/statfs.h"
- "include/generic-musl/asm/svm.h"
- "include/generic-musl/asm/swab.h"
- "include/generic-musl/asm/syscalls.h"
- "include/generic-musl/asm/sysmips.h"
- "include/generic-musl/asm/termbits.h"
- "include/generic-musl/asm/termios.h"
- "include/generic-musl/asm/tm.h"
- "include/generic-musl/asm/types.h"
- "include/generic-musl/asm/ucontext.h"
- "include/generic-musl/asm/unistd-common.h"
- "include/generic-musl/asm/unistd-eabi.h"
- "include/generic-musl/asm/unistd-oabi.h"
- "include/generic-musl/asm/unistd.h"
- "include/generic-musl/asm/unistd_32.h"
- "include/generic-musl/asm/unistd_64.h"
- "include/generic-musl/asm/unistd_x32.h"
- "include/generic-musl/asm/vm86.h"
- "include/generic-musl/asm/vmx.h"
- "include/generic-musl/asm/vsyscall.h"
"include/generic-musl/assert.h"
"include/generic-musl/bfd.h"
"include/generic-musl/bfdlink.h"
@@ -3944,702 +4615,6 @@ set(ZIG_LIBC_FILES
"include/generic-musl/libintl.h"
"include/generic-musl/limits.h"
"include/generic-musl/link.h"
- "include/generic-musl/linux/a.out.h"
- "include/generic-musl/linux/acct.h"
- "include/generic-musl/linux/adb.h"
- "include/generic-musl/linux/adfs_fs.h"
- "include/generic-musl/linux/affs_hardblocks.h"
- "include/generic-musl/linux/agpgart.h"
- "include/generic-musl/linux/aio_abi.h"
- "include/generic-musl/linux/am437x-vpfe.h"
- "include/generic-musl/linux/android/binder.h"
- "include/generic-musl/linux/apm_bios.h"
- "include/generic-musl/linux/arcfb.h"
- "include/generic-musl/linux/arm_sdei.h"
- "include/generic-musl/linux/aspeed-lpc-ctrl.h"
- "include/generic-musl/linux/atalk.h"
- "include/generic-musl/linux/atm.h"
- "include/generic-musl/linux/atm_eni.h"
- "include/generic-musl/linux/atm_he.h"
- "include/generic-musl/linux/atm_idt77105.h"
- "include/generic-musl/linux/atm_nicstar.h"
- "include/generic-musl/linux/atm_tcp.h"
- "include/generic-musl/linux/atm_zatm.h"
- "include/generic-musl/linux/atmapi.h"
- "include/generic-musl/linux/atmarp.h"
- "include/generic-musl/linux/atmbr2684.h"
- "include/generic-musl/linux/atmclip.h"
- "include/generic-musl/linux/atmdev.h"
- "include/generic-musl/linux/atmioc.h"
- "include/generic-musl/linux/atmlec.h"
- "include/generic-musl/linux/atmmpc.h"
- "include/generic-musl/linux/atmppp.h"
- "include/generic-musl/linux/atmsap.h"
- "include/generic-musl/linux/atmsvc.h"
- "include/generic-musl/linux/audit.h"
- "include/generic-musl/linux/auto_dev-ioctl.h"
- "include/generic-musl/linux/auto_fs.h"
- "include/generic-musl/linux/auto_fs4.h"
- "include/generic-musl/linux/auxvec.h"
- "include/generic-musl/linux/ax25.h"
- "include/generic-musl/linux/b1lli.h"
- "include/generic-musl/linux/batadv_packet.h"
- "include/generic-musl/linux/batman_adv.h"
- "include/generic-musl/linux/baycom.h"
- "include/generic-musl/linux/bcache.h"
- "include/generic-musl/linux/bcm933xx_hcs.h"
- "include/generic-musl/linux/bfs_fs.h"
- "include/generic-musl/linux/binfmts.h"
- "include/generic-musl/linux/blkpg.h"
- "include/generic-musl/linux/blktrace_api.h"
- "include/generic-musl/linux/blkzoned.h"
- "include/generic-musl/linux/bpf.h"
- "include/generic-musl/linux/bpf_common.h"
- "include/generic-musl/linux/bpf_perf_event.h"
- "include/generic-musl/linux/bpfilter.h"
- "include/generic-musl/linux/bpqether.h"
- "include/generic-musl/linux/bsg.h"
- "include/generic-musl/linux/bt-bmc.h"
- "include/generic-musl/linux/btf.h"
- "include/generic-musl/linux/btrfs.h"
- "include/generic-musl/linux/btrfs_tree.h"
- "include/generic-musl/linux/byteorder/big_endian.h"
- "include/generic-musl/linux/byteorder/little_endian.h"
- "include/generic-musl/linux/caif/caif_socket.h"
- "include/generic-musl/linux/caif/if_caif.h"
- "include/generic-musl/linux/can.h"
- "include/generic-musl/linux/can/bcm.h"
- "include/generic-musl/linux/can/error.h"
- "include/generic-musl/linux/can/gw.h"
- "include/generic-musl/linux/can/netlink.h"
- "include/generic-musl/linux/can/raw.h"
- "include/generic-musl/linux/can/vxcan.h"
- "include/generic-musl/linux/capability.h"
- "include/generic-musl/linux/capi.h"
- "include/generic-musl/linux/cciss_defs.h"
- "include/generic-musl/linux/cciss_ioctl.h"
- "include/generic-musl/linux/cdrom.h"
- "include/generic-musl/linux/cec-funcs.h"
- "include/generic-musl/linux/cec.h"
- "include/generic-musl/linux/cgroupstats.h"
- "include/generic-musl/linux/chio.h"
- "include/generic-musl/linux/cifs/cifs_mount.h"
- "include/generic-musl/linux/cm4000_cs.h"
- "include/generic-musl/linux/cn_proc.h"
- "include/generic-musl/linux/coda.h"
- "include/generic-musl/linux/coda_psdev.h"
- "include/generic-musl/linux/coff.h"
- "include/generic-musl/linux/connector.h"
- "include/generic-musl/linux/const.h"
- "include/generic-musl/linux/coresight-stm.h"
- "include/generic-musl/linux/cramfs_fs.h"
- "include/generic-musl/linux/cryptouser.h"
- "include/generic-musl/linux/cuda.h"
- "include/generic-musl/linux/cyclades.h"
- "include/generic-musl/linux/cycx_cfm.h"
- "include/generic-musl/linux/dcbnl.h"
- "include/generic-musl/linux/dccp.h"
- "include/generic-musl/linux/devlink.h"
- "include/generic-musl/linux/dlm.h"
- "include/generic-musl/linux/dlm_device.h"
- "include/generic-musl/linux/dlm_netlink.h"
- "include/generic-musl/linux/dlm_plock.h"
- "include/generic-musl/linux/dlmconstants.h"
- "include/generic-musl/linux/dm-ioctl.h"
- "include/generic-musl/linux/dm-log-userspace.h"
- "include/generic-musl/linux/dma-buf.h"
- "include/generic-musl/linux/dn.h"
- "include/generic-musl/linux/dqblk_xfs.h"
- "include/generic-musl/linux/dvb/audio.h"
- "include/generic-musl/linux/dvb/ca.h"
- "include/generic-musl/linux/dvb/dmx.h"
- "include/generic-musl/linux/dvb/frontend.h"
- "include/generic-musl/linux/dvb/net.h"
- "include/generic-musl/linux/dvb/osd.h"
- "include/generic-musl/linux/dvb/version.h"
- "include/generic-musl/linux/dvb/video.h"
- "include/generic-musl/linux/edd.h"
- "include/generic-musl/linux/efs_fs_sb.h"
- "include/generic-musl/linux/elf-em.h"
- "include/generic-musl/linux/elf-fdpic.h"
- "include/generic-musl/linux/elf.h"
- "include/generic-musl/linux/elfcore.h"
- "include/generic-musl/linux/errno.h"
- "include/generic-musl/linux/errqueue.h"
- "include/generic-musl/linux/erspan.h"
- "include/generic-musl/linux/ethtool.h"
- "include/generic-musl/linux/eventpoll.h"
- "include/generic-musl/linux/fadvise.h"
- "include/generic-musl/linux/falloc.h"
- "include/generic-musl/linux/fanotify.h"
- "include/generic-musl/linux/fb.h"
- "include/generic-musl/linux/fcntl.h"
- "include/generic-musl/linux/fd.h"
- "include/generic-musl/linux/fdreg.h"
- "include/generic-musl/linux/fib_rules.h"
- "include/generic-musl/linux/fiemap.h"
- "include/generic-musl/linux/filter.h"
- "include/generic-musl/linux/firewire-cdev.h"
- "include/generic-musl/linux/firewire-constants.h"
- "include/generic-musl/linux/flat.h"
- "include/generic-musl/linux/fou.h"
- "include/generic-musl/linux/fpga-dfl.h"
- "include/generic-musl/linux/fs.h"
- "include/generic-musl/linux/fsi.h"
- "include/generic-musl/linux/fsl_hypervisor.h"
- "include/generic-musl/linux/fsmap.h"
- "include/generic-musl/linux/fuse.h"
- "include/generic-musl/linux/futex.h"
- "include/generic-musl/linux/gameport.h"
- "include/generic-musl/linux/gen_stats.h"
- "include/generic-musl/linux/genetlink.h"
- "include/generic-musl/linux/genwqe/genwqe_card.h"
- "include/generic-musl/linux/gfs2_ondisk.h"
- "include/generic-musl/linux/gigaset_dev.h"
- "include/generic-musl/linux/gpio.h"
- "include/generic-musl/linux/gsmmux.h"
- "include/generic-musl/linux/gtp.h"
- "include/generic-musl/linux/hash_info.h"
- "include/generic-musl/linux/hdlc.h"
- "include/generic-musl/linux/hdlc/ioctl.h"
- "include/generic-musl/linux/hdlcdrv.h"
- "include/generic-musl/linux/hdreg.h"
- "include/generic-musl/linux/hid.h"
- "include/generic-musl/linux/hiddev.h"
- "include/generic-musl/linux/hidraw.h"
- "include/generic-musl/linux/hpet.h"
- "include/generic-musl/linux/hsi/cs-protocol.h"
- "include/generic-musl/linux/hsi/hsi_char.h"
- "include/generic-musl/linux/hsr_netlink.h"
- "include/generic-musl/linux/hw_breakpoint.h"
- "include/generic-musl/linux/hyperv.h"
- "include/generic-musl/linux/hysdn_if.h"
- "include/generic-musl/linux/i2c-dev.h"
- "include/generic-musl/linux/i2c.h"
- "include/generic-musl/linux/i2o-dev.h"
- "include/generic-musl/linux/i8k.h"
- "include/generic-musl/linux/icmp.h"
- "include/generic-musl/linux/icmpv6.h"
- "include/generic-musl/linux/if.h"
- "include/generic-musl/linux/if_addr.h"
- "include/generic-musl/linux/if_addrlabel.h"
- "include/generic-musl/linux/if_alg.h"
- "include/generic-musl/linux/if_arcnet.h"
- "include/generic-musl/linux/if_arp.h"
- "include/generic-musl/linux/if_bonding.h"
- "include/generic-musl/linux/if_bridge.h"
- "include/generic-musl/linux/if_cablemodem.h"
- "include/generic-musl/linux/if_eql.h"
- "include/generic-musl/linux/if_ether.h"
- "include/generic-musl/linux/if_fc.h"
- "include/generic-musl/linux/if_fddi.h"
- "include/generic-musl/linux/if_frad.h"
- "include/generic-musl/linux/if_hippi.h"
- "include/generic-musl/linux/if_infiniband.h"
- "include/generic-musl/linux/if_link.h"
- "include/generic-musl/linux/if_ltalk.h"
- "include/generic-musl/linux/if_macsec.h"
- "include/generic-musl/linux/if_packet.h"
- "include/generic-musl/linux/if_phonet.h"
- "include/generic-musl/linux/if_plip.h"
- "include/generic-musl/linux/if_ppp.h"
- "include/generic-musl/linux/if_pppol2tp.h"
- "include/generic-musl/linux/if_pppox.h"
- "include/generic-musl/linux/if_slip.h"
- "include/generic-musl/linux/if_team.h"
- "include/generic-musl/linux/if_tun.h"
- "include/generic-musl/linux/if_tunnel.h"
- "include/generic-musl/linux/if_vlan.h"
- "include/generic-musl/linux/if_x25.h"
- "include/generic-musl/linux/if_xdp.h"
- "include/generic-musl/linux/ife.h"
- "include/generic-musl/linux/igmp.h"
- "include/generic-musl/linux/iio/events.h"
- "include/generic-musl/linux/iio/types.h"
- "include/generic-musl/linux/ila.h"
- "include/generic-musl/linux/in.h"
- "include/generic-musl/linux/in6.h"
- "include/generic-musl/linux/in_route.h"
- "include/generic-musl/linux/inet_diag.h"
- "include/generic-musl/linux/inotify.h"
- "include/generic-musl/linux/input-event-codes.h"
- "include/generic-musl/linux/input.h"
- "include/generic-musl/linux/ioctl.h"
- "include/generic-musl/linux/ip.h"
- "include/generic-musl/linux/ip6_tunnel.h"
- "include/generic-musl/linux/ip_vs.h"
- "include/generic-musl/linux/ipc.h"
- "include/generic-musl/linux/ipmi.h"
- "include/generic-musl/linux/ipmi_bmc.h"
- "include/generic-musl/linux/ipmi_msgdefs.h"
- "include/generic-musl/linux/ipsec.h"
- "include/generic-musl/linux/ipv6.h"
- "include/generic-musl/linux/ipv6_route.h"
- "include/generic-musl/linux/ipx.h"
- "include/generic-musl/linux/irqnr.h"
- "include/generic-musl/linux/isdn.h"
- "include/generic-musl/linux/isdn/capicmd.h"
- "include/generic-musl/linux/isdn_divertif.h"
- "include/generic-musl/linux/isdn_ppp.h"
- "include/generic-musl/linux/isdnif.h"
- "include/generic-musl/linux/iso_fs.h"
- "include/generic-musl/linux/ivtv.h"
- "include/generic-musl/linux/ivtvfb.h"
- "include/generic-musl/linux/jffs2.h"
- "include/generic-musl/linux/joystick.h"
- "include/generic-musl/linux/kcm.h"
- "include/generic-musl/linux/kcmp.h"
- "include/generic-musl/linux/kcov.h"
- "include/generic-musl/linux/kd.h"
- "include/generic-musl/linux/kdev_t.h"
- "include/generic-musl/linux/kernel-page-flags.h"
- "include/generic-musl/linux/kernel.h"
- "include/generic-musl/linux/kernelcapi.h"
- "include/generic-musl/linux/kexec.h"
- "include/generic-musl/linux/keyboard.h"
- "include/generic-musl/linux/keyctl.h"
- "include/generic-musl/linux/kfd_ioctl.h"
- "include/generic-musl/linux/kvm.h"
- "include/generic-musl/linux/kvm_para.h"
- "include/generic-musl/linux/l2tp.h"
- "include/generic-musl/linux/libc-compat.h"
- "include/generic-musl/linux/lightnvm.h"
- "include/generic-musl/linux/limits.h"
- "include/generic-musl/linux/lirc.h"
- "include/generic-musl/linux/llc.h"
- "include/generic-musl/linux/loop.h"
- "include/generic-musl/linux/lp.h"
- "include/generic-musl/linux/lwtunnel.h"
- "include/generic-musl/linux/magic.h"
- "include/generic-musl/linux/major.h"
- "include/generic-musl/linux/map_to_7segment.h"
- "include/generic-musl/linux/matroxfb.h"
- "include/generic-musl/linux/max2175.h"
- "include/generic-musl/linux/mdio.h"
- "include/generic-musl/linux/media-bus-format.h"
- "include/generic-musl/linux/media.h"
- "include/generic-musl/linux/mei.h"
- "include/generic-musl/linux/membarrier.h"
- "include/generic-musl/linux/memfd.h"
- "include/generic-musl/linux/mempolicy.h"
- "include/generic-musl/linux/meye.h"
- "include/generic-musl/linux/mic_common.h"
- "include/generic-musl/linux/mic_ioctl.h"
- "include/generic-musl/linux/mii.h"
- "include/generic-musl/linux/minix_fs.h"
- "include/generic-musl/linux/mman.h"
- "include/generic-musl/linux/mmc/ioctl.h"
- "include/generic-musl/linux/mmtimer.h"
- "include/generic-musl/linux/module.h"
- "include/generic-musl/linux/mpls.h"
- "include/generic-musl/linux/mpls_iptunnel.h"
- "include/generic-musl/linux/mqueue.h"
- "include/generic-musl/linux/mroute.h"
- "include/generic-musl/linux/mroute6.h"
- "include/generic-musl/linux/msdos_fs.h"
- "include/generic-musl/linux/msg.h"
- "include/generic-musl/linux/mtio.h"
- "include/generic-musl/linux/n_r3964.h"
- "include/generic-musl/linux/nbd-netlink.h"
- "include/generic-musl/linux/nbd.h"
- "include/generic-musl/linux/ncsi.h"
- "include/generic-musl/linux/ndctl.h"
- "include/generic-musl/linux/neighbour.h"
- "include/generic-musl/linux/net.h"
- "include/generic-musl/linux/net_dropmon.h"
- "include/generic-musl/linux/net_namespace.h"
- "include/generic-musl/linux/net_tstamp.h"
- "include/generic-musl/linux/netconf.h"
- "include/generic-musl/linux/netdevice.h"
- "include/generic-musl/linux/netfilter.h"
- "include/generic-musl/linux/netfilter/ipset/ip_set.h"
- "include/generic-musl/linux/netfilter/ipset/ip_set_bitmap.h"
- "include/generic-musl/linux/netfilter/ipset/ip_set_hash.h"
- "include/generic-musl/linux/netfilter/ipset/ip_set_list.h"
- "include/generic-musl/linux/netfilter/nf_conntrack_common.h"
- "include/generic-musl/linux/netfilter/nf_conntrack_ftp.h"
- "include/generic-musl/linux/netfilter/nf_conntrack_sctp.h"
- "include/generic-musl/linux/netfilter/nf_conntrack_tcp.h"
- "include/generic-musl/linux/netfilter/nf_conntrack_tuple_common.h"
- "include/generic-musl/linux/netfilter/nf_log.h"
- "include/generic-musl/linux/netfilter/nf_nat.h"
- "include/generic-musl/linux/netfilter/nf_tables.h"
- "include/generic-musl/linux/netfilter/nf_tables_compat.h"
- "include/generic-musl/linux/netfilter/nfnetlink.h"
- "include/generic-musl/linux/netfilter/nfnetlink_acct.h"
- "include/generic-musl/linux/netfilter/nfnetlink_compat.h"
- "include/generic-musl/linux/netfilter/nfnetlink_conntrack.h"
- "include/generic-musl/linux/netfilter/nfnetlink_cthelper.h"
- "include/generic-musl/linux/netfilter/nfnetlink_cttimeout.h"
- "include/generic-musl/linux/netfilter/nfnetlink_log.h"
- "include/generic-musl/linux/netfilter/nfnetlink_osf.h"
- "include/generic-musl/linux/netfilter/nfnetlink_queue.h"
- "include/generic-musl/linux/netfilter/x_tables.h"
- "include/generic-musl/linux/netfilter/xt_AUDIT.h"
- "include/generic-musl/linux/netfilter/xt_CHECKSUM.h"
- "include/generic-musl/linux/netfilter/xt_CLASSIFY.h"
- "include/generic-musl/linux/netfilter/xt_CONNSECMARK.h"
- "include/generic-musl/linux/netfilter/xt_CT.h"
- "include/generic-musl/linux/netfilter/xt_HMARK.h"
- "include/generic-musl/linux/netfilter/xt_IDLETIMER.h"
- "include/generic-musl/linux/netfilter/xt_LED.h"
- "include/generic-musl/linux/netfilter/xt_LOG.h"
- "include/generic-musl/linux/netfilter/xt_NFLOG.h"
- "include/generic-musl/linux/netfilter/xt_NFQUEUE.h"
- "include/generic-musl/linux/netfilter/xt_SECMARK.h"
- "include/generic-musl/linux/netfilter/xt_SYNPROXY.h"
- "include/generic-musl/linux/netfilter/xt_TCPOPTSTRIP.h"
- "include/generic-musl/linux/netfilter/xt_TEE.h"
- "include/generic-musl/linux/netfilter/xt_TPROXY.h"
- "include/generic-musl/linux/netfilter/xt_addrtype.h"
- "include/generic-musl/linux/netfilter/xt_bpf.h"
- "include/generic-musl/linux/netfilter/xt_cgroup.h"
- "include/generic-musl/linux/netfilter/xt_cluster.h"
- "include/generic-musl/linux/netfilter/xt_comment.h"
- "include/generic-musl/linux/netfilter/xt_connbytes.h"
- "include/generic-musl/linux/netfilter/xt_connlabel.h"
- "include/generic-musl/linux/netfilter/xt_connlimit.h"
- "include/generic-musl/linux/netfilter/xt_connmark.h"
- "include/generic-musl/linux/netfilter/xt_conntrack.h"
- "include/generic-musl/linux/netfilter/xt_cpu.h"
- "include/generic-musl/linux/netfilter/xt_dccp.h"
- "include/generic-musl/linux/netfilter/xt_devgroup.h"
- "include/generic-musl/linux/netfilter/xt_dscp.h"
- "include/generic-musl/linux/netfilter/xt_ecn.h"
- "include/generic-musl/linux/netfilter/xt_esp.h"
- "include/generic-musl/linux/netfilter/xt_hashlimit.h"
- "include/generic-musl/linux/netfilter/xt_helper.h"
- "include/generic-musl/linux/netfilter/xt_ipcomp.h"
- "include/generic-musl/linux/netfilter/xt_iprange.h"
- "include/generic-musl/linux/netfilter/xt_ipvs.h"
- "include/generic-musl/linux/netfilter/xt_l2tp.h"
- "include/generic-musl/linux/netfilter/xt_length.h"
- "include/generic-musl/linux/netfilter/xt_limit.h"
- "include/generic-musl/linux/netfilter/xt_mac.h"
- "include/generic-musl/linux/netfilter/xt_mark.h"
- "include/generic-musl/linux/netfilter/xt_multiport.h"
- "include/generic-musl/linux/netfilter/xt_nfacct.h"
- "include/generic-musl/linux/netfilter/xt_osf.h"
- "include/generic-musl/linux/netfilter/xt_owner.h"
- "include/generic-musl/linux/netfilter/xt_physdev.h"
- "include/generic-musl/linux/netfilter/xt_pkttype.h"
- "include/generic-musl/linux/netfilter/xt_policy.h"
- "include/generic-musl/linux/netfilter/xt_quota.h"
- "include/generic-musl/linux/netfilter/xt_rateest.h"
- "include/generic-musl/linux/netfilter/xt_realm.h"
- "include/generic-musl/linux/netfilter/xt_recent.h"
- "include/generic-musl/linux/netfilter/xt_rpfilter.h"
- "include/generic-musl/linux/netfilter/xt_sctp.h"
- "include/generic-musl/linux/netfilter/xt_set.h"
- "include/generic-musl/linux/netfilter/xt_socket.h"
- "include/generic-musl/linux/netfilter/xt_state.h"
- "include/generic-musl/linux/netfilter/xt_statistic.h"
- "include/generic-musl/linux/netfilter/xt_string.h"
- "include/generic-musl/linux/netfilter/xt_tcpmss.h"
- "include/generic-musl/linux/netfilter/xt_tcpudp.h"
- "include/generic-musl/linux/netfilter/xt_time.h"
- "include/generic-musl/linux/netfilter/xt_u32.h"
- "include/generic-musl/linux/netfilter_arp.h"
- "include/generic-musl/linux/netfilter_arp/arp_tables.h"
- "include/generic-musl/linux/netfilter_arp/arpt_mangle.h"
- "include/generic-musl/linux/netfilter_bridge.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_802_3.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_among.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_arp.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_arpreply.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_ip.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_ip6.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_limit.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_log.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_mark_m.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_mark_t.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_nat.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_nflog.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_pkttype.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_redirect.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_stp.h"
- "include/generic-musl/linux/netfilter_bridge/ebt_vlan.h"
- "include/generic-musl/linux/netfilter_bridge/ebtables.h"
- "include/generic-musl/linux/netfilter_decnet.h"
- "include/generic-musl/linux/netfilter_ipv4.h"
- "include/generic-musl/linux/netfilter_ipv4/ip_tables.h"
- "include/generic-musl/linux/netfilter_ipv4/ipt_CLUSTERIP.h"
- "include/generic-musl/linux/netfilter_ipv4/ipt_LOG.h"
- "include/generic-musl/linux/netfilter_ipv4/ipt_REJECT.h"
- "include/generic-musl/linux/netfilter_ipv4/ipt_ah.h"
- "include/generic-musl/linux/netfilter_ipv4/ipt_ecn.h"
- "include/generic-musl/linux/netfilter_ipv4/ipt_ttl.h"
- "include/generic-musl/linux/netfilter_ipv6.h"
- "include/generic-musl/linux/netfilter_ipv6/ip6_tables.h"
- "include/generic-musl/linux/netfilter_ipv6/ip6t_LOG.h"
- "include/generic-musl/linux/netfilter_ipv6/ip6t_NPT.h"
- "include/generic-musl/linux/netfilter_ipv6/ip6t_REJECT.h"
- "include/generic-musl/linux/netfilter_ipv6/ip6t_ah.h"
- "include/generic-musl/linux/netfilter_ipv6/ip6t_frag.h"
- "include/generic-musl/linux/netfilter_ipv6/ip6t_hl.h"
- "include/generic-musl/linux/netfilter_ipv6/ip6t_ipv6header.h"
- "include/generic-musl/linux/netfilter_ipv6/ip6t_mh.h"
- "include/generic-musl/linux/netfilter_ipv6/ip6t_opts.h"
- "include/generic-musl/linux/netfilter_ipv6/ip6t_rt.h"
- "include/generic-musl/linux/netfilter_ipv6/ip6t_srh.h"
- "include/generic-musl/linux/netlink.h"
- "include/generic-musl/linux/netlink_diag.h"
- "include/generic-musl/linux/netrom.h"
- "include/generic-musl/linux/nfc.h"
- "include/generic-musl/linux/nfs.h"
- "include/generic-musl/linux/nfs2.h"
- "include/generic-musl/linux/nfs3.h"
- "include/generic-musl/linux/nfs4.h"
- "include/generic-musl/linux/nfs4_mount.h"
- "include/generic-musl/linux/nfs_fs.h"
- "include/generic-musl/linux/nfs_idmap.h"
- "include/generic-musl/linux/nfs_mount.h"
- "include/generic-musl/linux/nfsacl.h"
- "include/generic-musl/linux/nfsd/cld.h"
- "include/generic-musl/linux/nfsd/debug.h"
- "include/generic-musl/linux/nfsd/export.h"
- "include/generic-musl/linux/nfsd/nfsfh.h"
- "include/generic-musl/linux/nfsd/stats.h"
- "include/generic-musl/linux/nilfs2_api.h"
- "include/generic-musl/linux/nilfs2_ondisk.h"
- "include/generic-musl/linux/nl80211.h"
- "include/generic-musl/linux/nsfs.h"
- "include/generic-musl/linux/nubus.h"
- "include/generic-musl/linux/nvme_ioctl.h"
- "include/generic-musl/linux/nvram.h"
- "include/generic-musl/linux/omap3isp.h"
- "include/generic-musl/linux/omapfb.h"
- "include/generic-musl/linux/oom.h"
- "include/generic-musl/linux/openvswitch.h"
- "include/generic-musl/linux/packet_diag.h"
- "include/generic-musl/linux/param.h"
- "include/generic-musl/linux/parport.h"
- "include/generic-musl/linux/patchkey.h"
- "include/generic-musl/linux/pci.h"
- "include/generic-musl/linux/pci_regs.h"
- "include/generic-musl/linux/pcitest.h"
- "include/generic-musl/linux/perf_event.h"
- "include/generic-musl/linux/personality.h"
- "include/generic-musl/linux/pfkeyv2.h"
- "include/generic-musl/linux/pg.h"
- "include/generic-musl/linux/phantom.h"
- "include/generic-musl/linux/phonet.h"
- "include/generic-musl/linux/pkt_cls.h"
- "include/generic-musl/linux/pkt_sched.h"
- "include/generic-musl/linux/pktcdvd.h"
- "include/generic-musl/linux/pmu.h"
- "include/generic-musl/linux/poll.h"
- "include/generic-musl/linux/posix_acl.h"
- "include/generic-musl/linux/posix_acl_xattr.h"
- "include/generic-musl/linux/posix_types.h"
- "include/generic-musl/linux/ppdev.h"
- "include/generic-musl/linux/ppp-comp.h"
- "include/generic-musl/linux/ppp-ioctl.h"
- "include/generic-musl/linux/ppp_defs.h"
- "include/generic-musl/linux/pps.h"
- "include/generic-musl/linux/pr.h"
- "include/generic-musl/linux/prctl.h"
- "include/generic-musl/linux/psample.h"
- "include/generic-musl/linux/psci.h"
- "include/generic-musl/linux/psp-sev.h"
- "include/generic-musl/linux/ptp_clock.h"
- "include/generic-musl/linux/ptrace.h"
- "include/generic-musl/linux/qemu_fw_cfg.h"
- "include/generic-musl/linux/qnx4_fs.h"
- "include/generic-musl/linux/qnxtypes.h"
- "include/generic-musl/linux/qrtr.h"
- "include/generic-musl/linux/quota.h"
- "include/generic-musl/linux/radeonfb.h"
- "include/generic-musl/linux/raid/md_p.h"
- "include/generic-musl/linux/raid/md_u.h"
- "include/generic-musl/linux/random.h"
- "include/generic-musl/linux/raw.h"
- "include/generic-musl/linux/rds.h"
- "include/generic-musl/linux/reboot.h"
- "include/generic-musl/linux/reiserfs_fs.h"
- "include/generic-musl/linux/reiserfs_xattr.h"
- "include/generic-musl/linux/resource.h"
- "include/generic-musl/linux/rfkill.h"
- "include/generic-musl/linux/rio_cm_cdev.h"
- "include/generic-musl/linux/rio_mport_cdev.h"
- "include/generic-musl/linux/romfs_fs.h"
- "include/generic-musl/linux/rose.h"
- "include/generic-musl/linux/route.h"
- "include/generic-musl/linux/rpmsg.h"
- "include/generic-musl/linux/rseq.h"
- "include/generic-musl/linux/rtc.h"
- "include/generic-musl/linux/rtnetlink.h"
- "include/generic-musl/linux/rxrpc.h"
- "include/generic-musl/linux/scc.h"
- "include/generic-musl/linux/sched.h"
- "include/generic-musl/linux/sched/types.h"
- "include/generic-musl/linux/scif_ioctl.h"
- "include/generic-musl/linux/screen_info.h"
- "include/generic-musl/linux/sctp.h"
- "include/generic-musl/linux/sdla.h"
- "include/generic-musl/linux/seccomp.h"
- "include/generic-musl/linux/securebits.h"
- "include/generic-musl/linux/sed-opal.h"
- "include/generic-musl/linux/seg6.h"
- "include/generic-musl/linux/seg6_genl.h"
- "include/generic-musl/linux/seg6_hmac.h"
- "include/generic-musl/linux/seg6_iptunnel.h"
- "include/generic-musl/linux/seg6_local.h"
- "include/generic-musl/linux/selinux_netlink.h"
- "include/generic-musl/linux/sem.h"
- "include/generic-musl/linux/serial.h"
- "include/generic-musl/linux/serial_core.h"
- "include/generic-musl/linux/serial_reg.h"
- "include/generic-musl/linux/serio.h"
- "include/generic-musl/linux/shm.h"
- "include/generic-musl/linux/signal.h"
- "include/generic-musl/linux/signalfd.h"
- "include/generic-musl/linux/smc.h"
- "include/generic-musl/linux/smc_diag.h"
- "include/generic-musl/linux/smiapp.h"
- "include/generic-musl/linux/snmp.h"
- "include/generic-musl/linux/sock_diag.h"
- "include/generic-musl/linux/socket.h"
- "include/generic-musl/linux/sockios.h"
- "include/generic-musl/linux/sonet.h"
- "include/generic-musl/linux/sonypi.h"
- "include/generic-musl/linux/sound.h"
- "include/generic-musl/linux/soundcard.h"
- "include/generic-musl/linux/spi/spidev.h"
- "include/generic-musl/linux/stat.h"
- "include/generic-musl/linux/stddef.h"
- "include/generic-musl/linux/stm.h"
- "include/generic-musl/linux/string.h"
- "include/generic-musl/linux/sunrpc/debug.h"
- "include/generic-musl/linux/suspend_ioctls.h"
- "include/generic-musl/linux/swab.h"
- "include/generic-musl/linux/switchtec_ioctl.h"
- "include/generic-musl/linux/sync_file.h"
- "include/generic-musl/linux/synclink.h"
- "include/generic-musl/linux/sysctl.h"
- "include/generic-musl/linux/sysinfo.h"
- "include/generic-musl/linux/target_core_user.h"
- "include/generic-musl/linux/taskstats.h"
- "include/generic-musl/linux/tc_act/tc_bpf.h"
- "include/generic-musl/linux/tc_act/tc_connmark.h"
- "include/generic-musl/linux/tc_act/tc_csum.h"
- "include/generic-musl/linux/tc_act/tc_defact.h"
- "include/generic-musl/linux/tc_act/tc_gact.h"
- "include/generic-musl/linux/tc_act/tc_ife.h"
- "include/generic-musl/linux/tc_act/tc_ipt.h"
- "include/generic-musl/linux/tc_act/tc_mirred.h"
- "include/generic-musl/linux/tc_act/tc_nat.h"
- "include/generic-musl/linux/tc_act/tc_pedit.h"
- "include/generic-musl/linux/tc_act/tc_sample.h"
- "include/generic-musl/linux/tc_act/tc_skbedit.h"
- "include/generic-musl/linux/tc_act/tc_skbmod.h"
- "include/generic-musl/linux/tc_act/tc_tunnel_key.h"
- "include/generic-musl/linux/tc_act/tc_vlan.h"
- "include/generic-musl/linux/tc_ematch/tc_em_cmp.h"
- "include/generic-musl/linux/tc_ematch/tc_em_ipt.h"
- "include/generic-musl/linux/tc_ematch/tc_em_meta.h"
- "include/generic-musl/linux/tc_ematch/tc_em_nbyte.h"
- "include/generic-musl/linux/tc_ematch/tc_em_text.h"
- "include/generic-musl/linux/tcp.h"
- "include/generic-musl/linux/tcp_metrics.h"
- "include/generic-musl/linux/tee.h"
- "include/generic-musl/linux/termios.h"
- "include/generic-musl/linux/thermal.h"
- "include/generic-musl/linux/time.h"
- "include/generic-musl/linux/timerfd.h"
- "include/generic-musl/linux/times.h"
- "include/generic-musl/linux/timex.h"
- "include/generic-musl/linux/tiocl.h"
- "include/generic-musl/linux/tipc.h"
- "include/generic-musl/linux/tipc_config.h"
- "include/generic-musl/linux/tipc_netlink.h"
- "include/generic-musl/linux/tipc_sockets_diag.h"
- "include/generic-musl/linux/tls.h"
- "include/generic-musl/linux/toshiba.h"
- "include/generic-musl/linux/tty.h"
- "include/generic-musl/linux/tty_flags.h"
- "include/generic-musl/linux/types.h"
- "include/generic-musl/linux/udf_fs_i.h"
- "include/generic-musl/linux/udp.h"
- "include/generic-musl/linux/uhid.h"
- "include/generic-musl/linux/uinput.h"
- "include/generic-musl/linux/uio.h"
- "include/generic-musl/linux/uleds.h"
- "include/generic-musl/linux/ultrasound.h"
- "include/generic-musl/linux/un.h"
- "include/generic-musl/linux/unistd.h"
- "include/generic-musl/linux/unix_diag.h"
- "include/generic-musl/linux/usb/audio.h"
- "include/generic-musl/linux/usb/cdc-wdm.h"
- "include/generic-musl/linux/usb/cdc.h"
- "include/generic-musl/linux/usb/ch11.h"
- "include/generic-musl/linux/usb/ch9.h"
- "include/generic-musl/linux/usb/charger.h"
- "include/generic-musl/linux/usb/functionfs.h"
- "include/generic-musl/linux/usb/g_printer.h"
- "include/generic-musl/linux/usb/g_uvc.h"
- "include/generic-musl/linux/usb/gadgetfs.h"
- "include/generic-musl/linux/usb/midi.h"
- "include/generic-musl/linux/usb/tmc.h"
- "include/generic-musl/linux/usb/video.h"
- "include/generic-musl/linux/usbdevice_fs.h"
- "include/generic-musl/linux/usbip.h"
- "include/generic-musl/linux/userfaultfd.h"
- "include/generic-musl/linux/userio.h"
- "include/generic-musl/linux/utime.h"
- "include/generic-musl/linux/utsname.h"
- "include/generic-musl/linux/uuid.h"
- "include/generic-musl/linux/uvcvideo.h"
- "include/generic-musl/linux/v4l2-common.h"
- "include/generic-musl/linux/v4l2-controls.h"
- "include/generic-musl/linux/v4l2-dv-timings.h"
- "include/generic-musl/linux/v4l2-mediabus.h"
- "include/generic-musl/linux/v4l2-subdev.h"
- "include/generic-musl/linux/vbox_err.h"
- "include/generic-musl/linux/vbox_vmmdev_types.h"
- "include/generic-musl/linux/vboxguest.h"
- "include/generic-musl/linux/version.h"
- "include/generic-musl/linux/veth.h"
- "include/generic-musl/linux/vfio.h"
- "include/generic-musl/linux/vfio_ccw.h"
- "include/generic-musl/linux/vhost.h"
- "include/generic-musl/linux/videodev2.h"
- "include/generic-musl/linux/virtio_9p.h"
- "include/generic-musl/linux/virtio_balloon.h"
- "include/generic-musl/linux/virtio_blk.h"
- "include/generic-musl/linux/virtio_config.h"
- "include/generic-musl/linux/virtio_console.h"
- "include/generic-musl/linux/virtio_crypto.h"
- "include/generic-musl/linux/virtio_gpu.h"
- "include/generic-musl/linux/virtio_ids.h"
- "include/generic-musl/linux/virtio_input.h"
- "include/generic-musl/linux/virtio_mmio.h"
- "include/generic-musl/linux/virtio_net.h"
- "include/generic-musl/linux/virtio_pci.h"
- "include/generic-musl/linux/virtio_ring.h"
- "include/generic-musl/linux/virtio_rng.h"
- "include/generic-musl/linux/virtio_scsi.h"
- "include/generic-musl/linux/virtio_types.h"
- "include/generic-musl/linux/virtio_vsock.h"
- "include/generic-musl/linux/vm_sockets.h"
- "include/generic-musl/linux/vm_sockets_diag.h"
- "include/generic-musl/linux/vmcore.h"
- "include/generic-musl/linux/vsockmon.h"
- "include/generic-musl/linux/vt.h"
- "include/generic-musl/linux/vtpm_proxy.h"
- "include/generic-musl/linux/wait.h"
- "include/generic-musl/linux/wanrouter.h"
- "include/generic-musl/linux/watchdog.h"
- "include/generic-musl/linux/wimax.h"
- "include/generic-musl/linux/wimax/i2400m.h"
- "include/generic-musl/linux/wireless.h"
- "include/generic-musl/linux/wmi.h"
- "include/generic-musl/linux/x25.h"
- "include/generic-musl/linux/xattr.h"
- "include/generic-musl/linux/xfrm.h"
- "include/generic-musl/linux/xilinx-v4l2-controls.h"
- "include/generic-musl/linux/zorro.h"
- "include/generic-musl/linux/zorro_ids.h"
"include/generic-musl/locale.h"
"include/generic-musl/malloc.h"
"include/generic-musl/math.h"
@@ -4848,7 +4823,28 @@ set(ZIG_LIBC_FILES
"include/generic-musl/xen/gntalloc.h"
"include/generic-musl/xen/gntdev.h"
"include/generic-musl/xen/privcmd.h"
- "include/i386-linux-gnu/asm/unistd.h"
+ "include/i386-linux-any/asm/auxvec.h"
+ "include/i386-linux-any/asm/bitsperlong.h"
+ "include/i386-linux-any/asm/byteorder.h"
+ "include/i386-linux-any/asm/kvm.h"
+ "include/i386-linux-any/asm/kvm_para.h"
+ "include/i386-linux-any/asm/mman.h"
+ "include/i386-linux-any/asm/msgbuf.h"
+ "include/i386-linux-any/asm/perf_regs.h"
+ "include/i386-linux-any/asm/posix_types.h"
+ "include/i386-linux-any/asm/ptrace.h"
+ "include/i386-linux-any/asm/sembuf.h"
+ "include/i386-linux-any/asm/setup.h"
+ "include/i386-linux-any/asm/shmbuf.h"
+ "include/i386-linux-any/asm/sigcontext.h"
+ "include/i386-linux-any/asm/siginfo.h"
+ "include/i386-linux-any/asm/signal.h"
+ "include/i386-linux-any/asm/stat.h"
+ "include/i386-linux-any/asm/statfs.h"
+ "include/i386-linux-any/asm/swab.h"
+ "include/i386-linux-any/asm/types.h"
+ "include/i386-linux-any/asm/ucontext.h"
+ "include/i386-linux-any/asm/unistd.h"
"include/i386-linux-gnu/bits/a.out.h"
"include/i386-linux-gnu/bits/endian.h"
"include/i386-linux-gnu/bits/environments.h"
@@ -4889,28 +4885,6 @@ set(ZIG_LIBC_FILES
"include/i386-linux-gnu/sys/ptrace.h"
"include/i386-linux-gnu/sys/ucontext.h"
"include/i386-linux-gnu/sys/user.h"
- "include/i386-linux-musl/asm/auxvec.h"
- "include/i386-linux-musl/asm/bitsperlong.h"
- "include/i386-linux-musl/asm/byteorder.h"
- "include/i386-linux-musl/asm/kvm.h"
- "include/i386-linux-musl/asm/kvm_para.h"
- "include/i386-linux-musl/asm/mman.h"
- "include/i386-linux-musl/asm/msgbuf.h"
- "include/i386-linux-musl/asm/perf_regs.h"
- "include/i386-linux-musl/asm/posix_types.h"
- "include/i386-linux-musl/asm/ptrace.h"
- "include/i386-linux-musl/asm/sembuf.h"
- "include/i386-linux-musl/asm/setup.h"
- "include/i386-linux-musl/asm/shmbuf.h"
- "include/i386-linux-musl/asm/sigcontext.h"
- "include/i386-linux-musl/asm/siginfo.h"
- "include/i386-linux-musl/asm/signal.h"
- "include/i386-linux-musl/asm/stat.h"
- "include/i386-linux-musl/asm/statfs.h"
- "include/i386-linux-musl/asm/swab.h"
- "include/i386-linux-musl/asm/types.h"
- "include/i386-linux-musl/asm/ucontext.h"
- "include/i386-linux-musl/asm/unistd.h"
"include/i386-linux-musl/bfd.h"
"include/i386-linux-musl/bfd_stdint.h"
"include/i386-linux-musl/bits/alltypes.h"
@@ -4930,8 +4904,38 @@ set(ZIG_LIBC_FILES
"include/i386-linux-musl/bits/stdint.h"
"include/i386-linux-musl/bits/syscall.h"
"include/i386-linux-musl/bits/user.h"
- "include/mips-linux-gnu/asm/sgidefs.h"
- "include/mips-linux-gnu/asm/unistd.h"
+ "include/mips-linux-any/asm/auxvec.h"
+ "include/mips-linux-any/asm/bitsperlong.h"
+ "include/mips-linux-any/asm/byteorder.h"
+ "include/mips-linux-any/asm/errno.h"
+ "include/mips-linux-any/asm/fcntl.h"
+ "include/mips-linux-any/asm/hwcap.h"
+ "include/mips-linux-any/asm/ioctl.h"
+ "include/mips-linux-any/asm/ioctls.h"
+ "include/mips-linux-any/asm/kvm.h"
+ "include/mips-linux-any/asm/kvm_para.h"
+ "include/mips-linux-any/asm/mman.h"
+ "include/mips-linux-any/asm/msgbuf.h"
+ "include/mips-linux-any/asm/param.h"
+ "include/mips-linux-any/asm/poll.h"
+ "include/mips-linux-any/asm/posix_types.h"
+ "include/mips-linux-any/asm/ptrace.h"
+ "include/mips-linux-any/asm/resource.h"
+ "include/mips-linux-any/asm/sembuf.h"
+ "include/mips-linux-any/asm/setup.h"
+ "include/mips-linux-any/asm/shmbuf.h"
+ "include/mips-linux-any/asm/sigcontext.h"
+ "include/mips-linux-any/asm/siginfo.h"
+ "include/mips-linux-any/asm/signal.h"
+ "include/mips-linux-any/asm/socket.h"
+ "include/mips-linux-any/asm/sockios.h"
+ "include/mips-linux-any/asm/stat.h"
+ "include/mips-linux-any/asm/statfs.h"
+ "include/mips-linux-any/asm/swab.h"
+ "include/mips-linux-any/asm/termbits.h"
+ "include/mips-linux-any/asm/termios.h"
+ "include/mips-linux-any/asm/types.h"
+ "include/mips-linux-any/asm/unistd.h"
"include/mips-linux-gnu/bits/dlfcn.h"
"include/mips-linux-gnu/bits/errno.h"
"include/mips-linux-gnu/bits/eventfd.h"
@@ -4961,38 +4965,6 @@ set(ZIG_LIBC_FILES
"include/mips-linux-gnu/bits/timerfd.h"
"include/mips-linux-gnu/bits/types/stack_t.h"
"include/mips-linux-gnu/ieee754.h"
- "include/mips-linux-musl/asm/auxvec.h"
- "include/mips-linux-musl/asm/bitsperlong.h"
- "include/mips-linux-musl/asm/byteorder.h"
- "include/mips-linux-musl/asm/errno.h"
- "include/mips-linux-musl/asm/fcntl.h"
- "include/mips-linux-musl/asm/hwcap.h"
- "include/mips-linux-musl/asm/ioctl.h"
- "include/mips-linux-musl/asm/ioctls.h"
- "include/mips-linux-musl/asm/kvm.h"
- "include/mips-linux-musl/asm/kvm_para.h"
- "include/mips-linux-musl/asm/mman.h"
- "include/mips-linux-musl/asm/msgbuf.h"
- "include/mips-linux-musl/asm/param.h"
- "include/mips-linux-musl/asm/poll.h"
- "include/mips-linux-musl/asm/posix_types.h"
- "include/mips-linux-musl/asm/ptrace.h"
- "include/mips-linux-musl/asm/resource.h"
- "include/mips-linux-musl/asm/sembuf.h"
- "include/mips-linux-musl/asm/setup.h"
- "include/mips-linux-musl/asm/shmbuf.h"
- "include/mips-linux-musl/asm/sigcontext.h"
- "include/mips-linux-musl/asm/siginfo.h"
- "include/mips-linux-musl/asm/signal.h"
- "include/mips-linux-musl/asm/socket.h"
- "include/mips-linux-musl/asm/sockios.h"
- "include/mips-linux-musl/asm/stat.h"
- "include/mips-linux-musl/asm/statfs.h"
- "include/mips-linux-musl/asm/swab.h"
- "include/mips-linux-musl/asm/termbits.h"
- "include/mips-linux-musl/asm/termios.h"
- "include/mips-linux-musl/asm/types.h"
- "include/mips-linux-musl/asm/unistd.h"
"include/mips-linux-musl/bfd.h"
"include/mips-linux-musl/bfd_stdint.h"
"include/mips-linux-musl/bits/alltypes.h"
@@ -5018,8 +4990,38 @@ set(ZIG_LIBC_FILES
"include/mips-linux-musl/bits/syscall.h"
"include/mips-linux-musl/bits/termios.h"
"include/mips-linux-musl/bits/user.h"
- "include/mips64-linux-gnuabi64/asm/sgidefs.h"
- "include/mips64-linux-gnuabi64/asm/unistd.h"
+ "include/mips64-linux-any/asm/auxvec.h"
+ "include/mips64-linux-any/asm/bitsperlong.h"
+ "include/mips64-linux-any/asm/byteorder.h"
+ "include/mips64-linux-any/asm/errno.h"
+ "include/mips64-linux-any/asm/fcntl.h"
+ "include/mips64-linux-any/asm/hwcap.h"
+ "include/mips64-linux-any/asm/ioctl.h"
+ "include/mips64-linux-any/asm/ioctls.h"
+ "include/mips64-linux-any/asm/kvm.h"
+ "include/mips64-linux-any/asm/kvm_para.h"
+ "include/mips64-linux-any/asm/mman.h"
+ "include/mips64-linux-any/asm/msgbuf.h"
+ "include/mips64-linux-any/asm/param.h"
+ "include/mips64-linux-any/asm/poll.h"
+ "include/mips64-linux-any/asm/posix_types.h"
+ "include/mips64-linux-any/asm/ptrace.h"
+ "include/mips64-linux-any/asm/resource.h"
+ "include/mips64-linux-any/asm/sembuf.h"
+ "include/mips64-linux-any/asm/setup.h"
+ "include/mips64-linux-any/asm/shmbuf.h"
+ "include/mips64-linux-any/asm/sigcontext.h"
+ "include/mips64-linux-any/asm/siginfo.h"
+ "include/mips64-linux-any/asm/signal.h"
+ "include/mips64-linux-any/asm/socket.h"
+ "include/mips64-linux-any/asm/sockios.h"
+ "include/mips64-linux-any/asm/stat.h"
+ "include/mips64-linux-any/asm/statfs.h"
+ "include/mips64-linux-any/asm/swab.h"
+ "include/mips64-linux-any/asm/termbits.h"
+ "include/mips64-linux-any/asm/termios.h"
+ "include/mips64-linux-any/asm/types.h"
+ "include/mips64-linux-any/asm/unistd.h"
"include/mips64-linux-gnuabi64/bits/dlfcn.h"
"include/mips64-linux-gnuabi64/bits/errno.h"
"include/mips64-linux-gnuabi64/bits/eventfd.h"
@@ -5049,8 +5051,6 @@ set(ZIG_LIBC_FILES
"include/mips64-linux-gnuabi64/bits/timerfd.h"
"include/mips64-linux-gnuabi64/bits/types/stack_t.h"
"include/mips64-linux-gnuabi64/ieee754.h"
- "include/mips64-linux-gnuabin32/asm/sgidefs.h"
- "include/mips64-linux-gnuabin32/asm/unistd.h"
"include/mips64-linux-gnuabin32/bits/dlfcn.h"
"include/mips64-linux-gnuabin32/bits/errno.h"
"include/mips64-linux-gnuabin32/bits/eventfd.h"
@@ -5080,38 +5080,6 @@ set(ZIG_LIBC_FILES
"include/mips64-linux-gnuabin32/bits/timerfd.h"
"include/mips64-linux-gnuabin32/bits/types/stack_t.h"
"include/mips64-linux-gnuabin32/ieee754.h"
- "include/mips64-linux-musl/asm/auxvec.h"
- "include/mips64-linux-musl/asm/bitsperlong.h"
- "include/mips64-linux-musl/asm/byteorder.h"
- "include/mips64-linux-musl/asm/errno.h"
- "include/mips64-linux-musl/asm/fcntl.h"
- "include/mips64-linux-musl/asm/hwcap.h"
- "include/mips64-linux-musl/asm/ioctl.h"
- "include/mips64-linux-musl/asm/ioctls.h"
- "include/mips64-linux-musl/asm/kvm.h"
- "include/mips64-linux-musl/asm/kvm_para.h"
- "include/mips64-linux-musl/asm/mman.h"
- "include/mips64-linux-musl/asm/msgbuf.h"
- "include/mips64-linux-musl/asm/param.h"
- "include/mips64-linux-musl/asm/poll.h"
- "include/mips64-linux-musl/asm/posix_types.h"
- "include/mips64-linux-musl/asm/ptrace.h"
- "include/mips64-linux-musl/asm/resource.h"
- "include/mips64-linux-musl/asm/sembuf.h"
- "include/mips64-linux-musl/asm/setup.h"
- "include/mips64-linux-musl/asm/shmbuf.h"
- "include/mips64-linux-musl/asm/sigcontext.h"
- "include/mips64-linux-musl/asm/siginfo.h"
- "include/mips64-linux-musl/asm/signal.h"
- "include/mips64-linux-musl/asm/socket.h"
- "include/mips64-linux-musl/asm/sockios.h"
- "include/mips64-linux-musl/asm/stat.h"
- "include/mips64-linux-musl/asm/statfs.h"
- "include/mips64-linux-musl/asm/swab.h"
- "include/mips64-linux-musl/asm/termbits.h"
- "include/mips64-linux-musl/asm/termios.h"
- "include/mips64-linux-musl/asm/types.h"
- "include/mips64-linux-musl/asm/unistd.h"
"include/mips64-linux-musl/bfd_stdint.h"
"include/mips64-linux-musl/bits/alltypes.h"
"include/mips64-linux-musl/bits/endian.h"
@@ -5138,8 +5106,38 @@ set(ZIG_LIBC_FILES
"include/mips64-linux-musl/bits/syscall.h"
"include/mips64-linux-musl/bits/termios.h"
"include/mips64-linux-musl/bits/user.h"
- "include/mips64el-linux-gnuabi64/asm/sgidefs.h"
- "include/mips64el-linux-gnuabi64/asm/unistd.h"
+ "include/mips64el-linux-any/asm/auxvec.h"
+ "include/mips64el-linux-any/asm/bitsperlong.h"
+ "include/mips64el-linux-any/asm/byteorder.h"
+ "include/mips64el-linux-any/asm/errno.h"
+ "include/mips64el-linux-any/asm/fcntl.h"
+ "include/mips64el-linux-any/asm/hwcap.h"
+ "include/mips64el-linux-any/asm/ioctl.h"
+ "include/mips64el-linux-any/asm/ioctls.h"
+ "include/mips64el-linux-any/asm/kvm.h"
+ "include/mips64el-linux-any/asm/kvm_para.h"
+ "include/mips64el-linux-any/asm/mman.h"
+ "include/mips64el-linux-any/asm/msgbuf.h"
+ "include/mips64el-linux-any/asm/param.h"
+ "include/mips64el-linux-any/asm/poll.h"
+ "include/mips64el-linux-any/asm/posix_types.h"
+ "include/mips64el-linux-any/asm/ptrace.h"
+ "include/mips64el-linux-any/asm/resource.h"
+ "include/mips64el-linux-any/asm/sembuf.h"
+ "include/mips64el-linux-any/asm/setup.h"
+ "include/mips64el-linux-any/asm/shmbuf.h"
+ "include/mips64el-linux-any/asm/sigcontext.h"
+ "include/mips64el-linux-any/asm/siginfo.h"
+ "include/mips64el-linux-any/asm/signal.h"
+ "include/mips64el-linux-any/asm/socket.h"
+ "include/mips64el-linux-any/asm/sockios.h"
+ "include/mips64el-linux-any/asm/stat.h"
+ "include/mips64el-linux-any/asm/statfs.h"
+ "include/mips64el-linux-any/asm/swab.h"
+ "include/mips64el-linux-any/asm/termbits.h"
+ "include/mips64el-linux-any/asm/termios.h"
+ "include/mips64el-linux-any/asm/types.h"
+ "include/mips64el-linux-any/asm/unistd.h"
"include/mips64el-linux-gnuabi64/bits/dlfcn.h"
"include/mips64el-linux-gnuabi64/bits/errno.h"
"include/mips64el-linux-gnuabi64/bits/eventfd.h"
@@ -5169,8 +5167,6 @@ set(ZIG_LIBC_FILES
"include/mips64el-linux-gnuabi64/bits/timerfd.h"
"include/mips64el-linux-gnuabi64/bits/types/stack_t.h"
"include/mips64el-linux-gnuabi64/ieee754.h"
- "include/mips64el-linux-gnuabin32/asm/sgidefs.h"
- "include/mips64el-linux-gnuabin32/asm/unistd.h"
"include/mips64el-linux-gnuabin32/bits/dlfcn.h"
"include/mips64el-linux-gnuabin32/bits/errno.h"
"include/mips64el-linux-gnuabin32/bits/eventfd.h"
@@ -5200,38 +5196,6 @@ set(ZIG_LIBC_FILES
"include/mips64el-linux-gnuabin32/bits/timerfd.h"
"include/mips64el-linux-gnuabin32/bits/types/stack_t.h"
"include/mips64el-linux-gnuabin32/ieee754.h"
- "include/mips64el-linux-musl/asm/auxvec.h"
- "include/mips64el-linux-musl/asm/bitsperlong.h"
- "include/mips64el-linux-musl/asm/byteorder.h"
- "include/mips64el-linux-musl/asm/errno.h"
- "include/mips64el-linux-musl/asm/fcntl.h"
- "include/mips64el-linux-musl/asm/hwcap.h"
- "include/mips64el-linux-musl/asm/ioctl.h"
- "include/mips64el-linux-musl/asm/ioctls.h"
- "include/mips64el-linux-musl/asm/kvm.h"
- "include/mips64el-linux-musl/asm/kvm_para.h"
- "include/mips64el-linux-musl/asm/mman.h"
- "include/mips64el-linux-musl/asm/msgbuf.h"
- "include/mips64el-linux-musl/asm/param.h"
- "include/mips64el-linux-musl/asm/poll.h"
- "include/mips64el-linux-musl/asm/posix_types.h"
- "include/mips64el-linux-musl/asm/ptrace.h"
- "include/mips64el-linux-musl/asm/resource.h"
- "include/mips64el-linux-musl/asm/sembuf.h"
- "include/mips64el-linux-musl/asm/setup.h"
- "include/mips64el-linux-musl/asm/shmbuf.h"
- "include/mips64el-linux-musl/asm/sigcontext.h"
- "include/mips64el-linux-musl/asm/siginfo.h"
- "include/mips64el-linux-musl/asm/signal.h"
- "include/mips64el-linux-musl/asm/socket.h"
- "include/mips64el-linux-musl/asm/sockios.h"
- "include/mips64el-linux-musl/asm/stat.h"
- "include/mips64el-linux-musl/asm/statfs.h"
- "include/mips64el-linux-musl/asm/swab.h"
- "include/mips64el-linux-musl/asm/termbits.h"
- "include/mips64el-linux-musl/asm/termios.h"
- "include/mips64el-linux-musl/asm/types.h"
- "include/mips64el-linux-musl/asm/unistd.h"
"include/mips64el-linux-musl/bfd_stdint.h"
"include/mips64el-linux-musl/bits/alltypes.h"
"include/mips64el-linux-musl/bits/endian.h"
@@ -5258,8 +5222,38 @@ set(ZIG_LIBC_FILES
"include/mips64el-linux-musl/bits/syscall.h"
"include/mips64el-linux-musl/bits/termios.h"
"include/mips64el-linux-musl/bits/user.h"
- "include/mipsel-linux-gnu/asm/sgidefs.h"
- "include/mipsel-linux-gnu/asm/unistd.h"
+ "include/mipsel-linux-any/asm/auxvec.h"
+ "include/mipsel-linux-any/asm/bitsperlong.h"
+ "include/mipsel-linux-any/asm/byteorder.h"
+ "include/mipsel-linux-any/asm/errno.h"
+ "include/mipsel-linux-any/asm/fcntl.h"
+ "include/mipsel-linux-any/asm/hwcap.h"
+ "include/mipsel-linux-any/asm/ioctl.h"
+ "include/mipsel-linux-any/asm/ioctls.h"
+ "include/mipsel-linux-any/asm/kvm.h"
+ "include/mipsel-linux-any/asm/kvm_para.h"
+ "include/mipsel-linux-any/asm/mman.h"
+ "include/mipsel-linux-any/asm/msgbuf.h"
+ "include/mipsel-linux-any/asm/param.h"
+ "include/mipsel-linux-any/asm/poll.h"
+ "include/mipsel-linux-any/asm/posix_types.h"
+ "include/mipsel-linux-any/asm/ptrace.h"
+ "include/mipsel-linux-any/asm/resource.h"
+ "include/mipsel-linux-any/asm/sembuf.h"
+ "include/mipsel-linux-any/asm/setup.h"
+ "include/mipsel-linux-any/asm/shmbuf.h"
+ "include/mipsel-linux-any/asm/sigcontext.h"
+ "include/mipsel-linux-any/asm/siginfo.h"
+ "include/mipsel-linux-any/asm/signal.h"
+ "include/mipsel-linux-any/asm/socket.h"
+ "include/mipsel-linux-any/asm/sockios.h"
+ "include/mipsel-linux-any/asm/stat.h"
+ "include/mipsel-linux-any/asm/statfs.h"
+ "include/mipsel-linux-any/asm/swab.h"
+ "include/mipsel-linux-any/asm/termbits.h"
+ "include/mipsel-linux-any/asm/termios.h"
+ "include/mipsel-linux-any/asm/types.h"
+ "include/mipsel-linux-any/asm/unistd.h"
"include/mipsel-linux-gnu/bits/dlfcn.h"
"include/mipsel-linux-gnu/bits/errno.h"
"include/mipsel-linux-gnu/bits/eventfd.h"
@@ -5289,38 +5283,6 @@ set(ZIG_LIBC_FILES
"include/mipsel-linux-gnu/bits/timerfd.h"
"include/mipsel-linux-gnu/bits/types/stack_t.h"
"include/mipsel-linux-gnu/ieee754.h"
- "include/mipsel-linux-musl/asm/auxvec.h"
- "include/mipsel-linux-musl/asm/bitsperlong.h"
- "include/mipsel-linux-musl/asm/byteorder.h"
- "include/mipsel-linux-musl/asm/errno.h"
- "include/mipsel-linux-musl/asm/fcntl.h"
- "include/mipsel-linux-musl/asm/hwcap.h"
- "include/mipsel-linux-musl/asm/ioctl.h"
- "include/mipsel-linux-musl/asm/ioctls.h"
- "include/mipsel-linux-musl/asm/kvm.h"
- "include/mipsel-linux-musl/asm/kvm_para.h"
- "include/mipsel-linux-musl/asm/mman.h"
- "include/mipsel-linux-musl/asm/msgbuf.h"
- "include/mipsel-linux-musl/asm/param.h"
- "include/mipsel-linux-musl/asm/poll.h"
- "include/mipsel-linux-musl/asm/posix_types.h"
- "include/mipsel-linux-musl/asm/ptrace.h"
- "include/mipsel-linux-musl/asm/resource.h"
- "include/mipsel-linux-musl/asm/sembuf.h"
- "include/mipsel-linux-musl/asm/setup.h"
- "include/mipsel-linux-musl/asm/shmbuf.h"
- "include/mipsel-linux-musl/asm/sigcontext.h"
- "include/mipsel-linux-musl/asm/siginfo.h"
- "include/mipsel-linux-musl/asm/signal.h"
- "include/mipsel-linux-musl/asm/socket.h"
- "include/mipsel-linux-musl/asm/sockios.h"
- "include/mipsel-linux-musl/asm/stat.h"
- "include/mipsel-linux-musl/asm/statfs.h"
- "include/mipsel-linux-musl/asm/swab.h"
- "include/mipsel-linux-musl/asm/termbits.h"
- "include/mipsel-linux-musl/asm/termios.h"
- "include/mipsel-linux-musl/asm/types.h"
- "include/mipsel-linux-musl/asm/unistd.h"
"include/mipsel-linux-musl/bfd.h"
"include/mipsel-linux-musl/bfd_stdint.h"
"include/mipsel-linux-musl/bits/alltypes.h"
@@ -5346,28 +5308,35 @@ set(ZIG_LIBC_FILES
"include/mipsel-linux-musl/bits/syscall.h"
"include/mipsel-linux-musl/bits/termios.h"
"include/mipsel-linux-musl/bits/user.h"
- "include/nios2-linux-gnu/asm/unistd.h"
- "include/nios2-linux-gnu/bits/endian.h"
- "include/nios2-linux-gnu/bits/fcntl.h"
- "include/nios2-linux-gnu/bits/fenv.h"
- "include/nios2-linux-gnu/bits/floatn.h"
- "include/nios2-linux-gnu/bits/link.h"
- "include/nios2-linux-gnu/bits/long-double.h"
- "include/nios2-linux-gnu/bits/procfs.h"
- "include/nios2-linux-gnu/bits/pthreadtypes-arch.h"
- "include/nios2-linux-gnu/bits/semaphore.h"
- "include/nios2-linux-gnu/bits/setjmp.h"
- "include/nios2-linux-gnu/bits/stat.h"
- "include/nios2-linux-gnu/bits/statfs.h"
- "include/nios2-linux-gnu/bits/typesizes.h"
- "include/nios2-linux-gnu/bits/wordsize.h"
- "include/nios2-linux-gnu/fpu_control.h"
- "include/nios2-linux-gnu/gnu/lib-names.h"
- "include/nios2-linux-gnu/gnu/stubs.h"
- "include/nios2-linux-gnu/sys/cachectl.h"
- "include/nios2-linux-gnu/sys/ucontext.h"
- "include/nios2-linux-gnu/sys/user.h"
- "include/powerpc-linux-gnu/asm/unistd.h"
+ "include/powerpc-linux-any/asm/auxvec.h"
+ "include/powerpc-linux-any/asm/bitsperlong.h"
+ "include/powerpc-linux-any/asm/byteorder.h"
+ "include/powerpc-linux-any/asm/errno.h"
+ "include/powerpc-linux-any/asm/fcntl.h"
+ "include/powerpc-linux-any/asm/ioctl.h"
+ "include/powerpc-linux-any/asm/ioctls.h"
+ "include/powerpc-linux-any/asm/ipcbuf.h"
+ "include/powerpc-linux-any/asm/kvm.h"
+ "include/powerpc-linux-any/asm/kvm_para.h"
+ "include/powerpc-linux-any/asm/mman.h"
+ "include/powerpc-linux-any/asm/msgbuf.h"
+ "include/powerpc-linux-any/asm/perf_regs.h"
+ "include/powerpc-linux-any/asm/posix_types.h"
+ "include/powerpc-linux-any/asm/ptrace.h"
+ "include/powerpc-linux-any/asm/sembuf.h"
+ "include/powerpc-linux-any/asm/setup.h"
+ "include/powerpc-linux-any/asm/shmbuf.h"
+ "include/powerpc-linux-any/asm/sigcontext.h"
+ "include/powerpc-linux-any/asm/siginfo.h"
+ "include/powerpc-linux-any/asm/signal.h"
+ "include/powerpc-linux-any/asm/socket.h"
+ "include/powerpc-linux-any/asm/stat.h"
+ "include/powerpc-linux-any/asm/swab.h"
+ "include/powerpc-linux-any/asm/termbits.h"
+ "include/powerpc-linux-any/asm/termios.h"
+ "include/powerpc-linux-any/asm/types.h"
+ "include/powerpc-linux-any/asm/ucontext.h"
+ "include/powerpc-linux-any/asm/unistd.h"
"include/powerpc-linux-gnu/bits/endian.h"
"include/powerpc-linux-gnu/bits/environments.h"
"include/powerpc-linux-gnu/bits/fcntl.h"
@@ -5408,35 +5377,6 @@ set(ZIG_LIBC_FILES
"include/powerpc-linux-gnu/sys/ptrace.h"
"include/powerpc-linux-gnu/sys/ucontext.h"
"include/powerpc-linux-gnu/sys/user.h"
- "include/powerpc-linux-musl/asm/auxvec.h"
- "include/powerpc-linux-musl/asm/bitsperlong.h"
- "include/powerpc-linux-musl/asm/byteorder.h"
- "include/powerpc-linux-musl/asm/errno.h"
- "include/powerpc-linux-musl/asm/fcntl.h"
- "include/powerpc-linux-musl/asm/ioctl.h"
- "include/powerpc-linux-musl/asm/ioctls.h"
- "include/powerpc-linux-musl/asm/ipcbuf.h"
- "include/powerpc-linux-musl/asm/kvm.h"
- "include/powerpc-linux-musl/asm/kvm_para.h"
- "include/powerpc-linux-musl/asm/mman.h"
- "include/powerpc-linux-musl/asm/msgbuf.h"
- "include/powerpc-linux-musl/asm/perf_regs.h"
- "include/powerpc-linux-musl/asm/posix_types.h"
- "include/powerpc-linux-musl/asm/ptrace.h"
- "include/powerpc-linux-musl/asm/sembuf.h"
- "include/powerpc-linux-musl/asm/setup.h"
- "include/powerpc-linux-musl/asm/shmbuf.h"
- "include/powerpc-linux-musl/asm/sigcontext.h"
- "include/powerpc-linux-musl/asm/siginfo.h"
- "include/powerpc-linux-musl/asm/signal.h"
- "include/powerpc-linux-musl/asm/socket.h"
- "include/powerpc-linux-musl/asm/stat.h"
- "include/powerpc-linux-musl/asm/swab.h"
- "include/powerpc-linux-musl/asm/termbits.h"
- "include/powerpc-linux-musl/asm/termios.h"
- "include/powerpc-linux-musl/asm/types.h"
- "include/powerpc-linux-musl/asm/ucontext.h"
- "include/powerpc-linux-musl/asm/unistd.h"
"include/powerpc-linux-musl/bfd.h"
"include/powerpc-linux-musl/bfd_stdint.h"
"include/powerpc-linux-musl/bits/alltypes.h"
@@ -5460,7 +5400,35 @@ set(ZIG_LIBC_FILES
"include/powerpc-linux-musl/bits/syscall.h"
"include/powerpc-linux-musl/bits/termios.h"
"include/powerpc-linux-musl/bits/user.h"
- "include/powerpc64-linux-gnu/asm/unistd.h"
+ "include/powerpc64-linux-any/asm/auxvec.h"
+ "include/powerpc64-linux-any/asm/bitsperlong.h"
+ "include/powerpc64-linux-any/asm/byteorder.h"
+ "include/powerpc64-linux-any/asm/errno.h"
+ "include/powerpc64-linux-any/asm/fcntl.h"
+ "include/powerpc64-linux-any/asm/ioctl.h"
+ "include/powerpc64-linux-any/asm/ioctls.h"
+ "include/powerpc64-linux-any/asm/ipcbuf.h"
+ "include/powerpc64-linux-any/asm/kvm.h"
+ "include/powerpc64-linux-any/asm/kvm_para.h"
+ "include/powerpc64-linux-any/asm/mman.h"
+ "include/powerpc64-linux-any/asm/msgbuf.h"
+ "include/powerpc64-linux-any/asm/perf_regs.h"
+ "include/powerpc64-linux-any/asm/posix_types.h"
+ "include/powerpc64-linux-any/asm/ptrace.h"
+ "include/powerpc64-linux-any/asm/sembuf.h"
+ "include/powerpc64-linux-any/asm/setup.h"
+ "include/powerpc64-linux-any/asm/shmbuf.h"
+ "include/powerpc64-linux-any/asm/sigcontext.h"
+ "include/powerpc64-linux-any/asm/siginfo.h"
+ "include/powerpc64-linux-any/asm/signal.h"
+ "include/powerpc64-linux-any/asm/socket.h"
+ "include/powerpc64-linux-any/asm/stat.h"
+ "include/powerpc64-linux-any/asm/swab.h"
+ "include/powerpc64-linux-any/asm/termbits.h"
+ "include/powerpc64-linux-any/asm/termios.h"
+ "include/powerpc64-linux-any/asm/types.h"
+ "include/powerpc64-linux-any/asm/ucontext.h"
+ "include/powerpc64-linux-any/asm/unistd.h"
"include/powerpc64-linux-gnu/bits/endian.h"
"include/powerpc64-linux-gnu/bits/environments.h"
"include/powerpc64-linux-gnu/bits/fcntl.h"
@@ -5502,35 +5470,6 @@ set(ZIG_LIBC_FILES
"include/powerpc64-linux-gnu/sys/ptrace.h"
"include/powerpc64-linux-gnu/sys/ucontext.h"
"include/powerpc64-linux-gnu/sys/user.h"
- "include/powerpc64-linux-musl/asm/auxvec.h"
- "include/powerpc64-linux-musl/asm/bitsperlong.h"
- "include/powerpc64-linux-musl/asm/byteorder.h"
- "include/powerpc64-linux-musl/asm/errno.h"
- "include/powerpc64-linux-musl/asm/fcntl.h"
- "include/powerpc64-linux-musl/asm/ioctl.h"
- "include/powerpc64-linux-musl/asm/ioctls.h"
- "include/powerpc64-linux-musl/asm/ipcbuf.h"
- "include/powerpc64-linux-musl/asm/kvm.h"
- "include/powerpc64-linux-musl/asm/kvm_para.h"
- "include/powerpc64-linux-musl/asm/mman.h"
- "include/powerpc64-linux-musl/asm/msgbuf.h"
- "include/powerpc64-linux-musl/asm/perf_regs.h"
- "include/powerpc64-linux-musl/asm/posix_types.h"
- "include/powerpc64-linux-musl/asm/ptrace.h"
- "include/powerpc64-linux-musl/asm/sembuf.h"
- "include/powerpc64-linux-musl/asm/setup.h"
- "include/powerpc64-linux-musl/asm/shmbuf.h"
- "include/powerpc64-linux-musl/asm/sigcontext.h"
- "include/powerpc64-linux-musl/asm/siginfo.h"
- "include/powerpc64-linux-musl/asm/signal.h"
- "include/powerpc64-linux-musl/asm/socket.h"
- "include/powerpc64-linux-musl/asm/stat.h"
- "include/powerpc64-linux-musl/asm/swab.h"
- "include/powerpc64-linux-musl/asm/termbits.h"
- "include/powerpc64-linux-musl/asm/termios.h"
- "include/powerpc64-linux-musl/asm/types.h"
- "include/powerpc64-linux-musl/asm/ucontext.h"
- "include/powerpc64-linux-musl/asm/unistd.h"
"include/powerpc64-linux-musl/bfd_stdint.h"
"include/powerpc64-linux-musl/bits/alltypes.h"
"include/powerpc64-linux-musl/bits/endian.h"
@@ -5555,7 +5494,35 @@ set(ZIG_LIBC_FILES
"include/powerpc64-linux-musl/bits/syscall.h"
"include/powerpc64-linux-musl/bits/termios.h"
"include/powerpc64-linux-musl/bits/user.h"
- "include/powerpc64le-linux-gnu/asm/unistd.h"
+ "include/powerpc64le-linux-any/asm/auxvec.h"
+ "include/powerpc64le-linux-any/asm/bitsperlong.h"
+ "include/powerpc64le-linux-any/asm/byteorder.h"
+ "include/powerpc64le-linux-any/asm/errno.h"
+ "include/powerpc64le-linux-any/asm/fcntl.h"
+ "include/powerpc64le-linux-any/asm/ioctl.h"
+ "include/powerpc64le-linux-any/asm/ioctls.h"
+ "include/powerpc64le-linux-any/asm/ipcbuf.h"
+ "include/powerpc64le-linux-any/asm/kvm.h"
+ "include/powerpc64le-linux-any/asm/kvm_para.h"
+ "include/powerpc64le-linux-any/asm/mman.h"
+ "include/powerpc64le-linux-any/asm/msgbuf.h"
+ "include/powerpc64le-linux-any/asm/perf_regs.h"
+ "include/powerpc64le-linux-any/asm/posix_types.h"
+ "include/powerpc64le-linux-any/asm/ptrace.h"
+ "include/powerpc64le-linux-any/asm/sembuf.h"
+ "include/powerpc64le-linux-any/asm/setup.h"
+ "include/powerpc64le-linux-any/asm/shmbuf.h"
+ "include/powerpc64le-linux-any/asm/sigcontext.h"
+ "include/powerpc64le-linux-any/asm/siginfo.h"
+ "include/powerpc64le-linux-any/asm/signal.h"
+ "include/powerpc64le-linux-any/asm/socket.h"
+ "include/powerpc64le-linux-any/asm/stat.h"
+ "include/powerpc64le-linux-any/asm/swab.h"
+ "include/powerpc64le-linux-any/asm/termbits.h"
+ "include/powerpc64le-linux-any/asm/termios.h"
+ "include/powerpc64le-linux-any/asm/types.h"
+ "include/powerpc64le-linux-any/asm/ucontext.h"
+ "include/powerpc64le-linux-any/asm/unistd.h"
"include/powerpc64le-linux-gnu/bits/endian.h"
"include/powerpc64le-linux-gnu/bits/environments.h"
"include/powerpc64le-linux-gnu/bits/fcntl.h"
@@ -5597,35 +5564,6 @@ set(ZIG_LIBC_FILES
"include/powerpc64le-linux-gnu/sys/ptrace.h"
"include/powerpc64le-linux-gnu/sys/ucontext.h"
"include/powerpc64le-linux-gnu/sys/user.h"
- "include/powerpc64le-linux-musl/asm/auxvec.h"
- "include/powerpc64le-linux-musl/asm/bitsperlong.h"
- "include/powerpc64le-linux-musl/asm/byteorder.h"
- "include/powerpc64le-linux-musl/asm/errno.h"
- "include/powerpc64le-linux-musl/asm/fcntl.h"
- "include/powerpc64le-linux-musl/asm/ioctl.h"
- "include/powerpc64le-linux-musl/asm/ioctls.h"
- "include/powerpc64le-linux-musl/asm/ipcbuf.h"
- "include/powerpc64le-linux-musl/asm/kvm.h"
- "include/powerpc64le-linux-musl/asm/kvm_para.h"
- "include/powerpc64le-linux-musl/asm/mman.h"
- "include/powerpc64le-linux-musl/asm/msgbuf.h"
- "include/powerpc64le-linux-musl/asm/perf_regs.h"
- "include/powerpc64le-linux-musl/asm/posix_types.h"
- "include/powerpc64le-linux-musl/asm/ptrace.h"
- "include/powerpc64le-linux-musl/asm/sembuf.h"
- "include/powerpc64le-linux-musl/asm/setup.h"
- "include/powerpc64le-linux-musl/asm/shmbuf.h"
- "include/powerpc64le-linux-musl/asm/sigcontext.h"
- "include/powerpc64le-linux-musl/asm/siginfo.h"
- "include/powerpc64le-linux-musl/asm/signal.h"
- "include/powerpc64le-linux-musl/asm/socket.h"
- "include/powerpc64le-linux-musl/asm/stat.h"
- "include/powerpc64le-linux-musl/asm/swab.h"
- "include/powerpc64le-linux-musl/asm/termbits.h"
- "include/powerpc64le-linux-musl/asm/termios.h"
- "include/powerpc64le-linux-musl/asm/types.h"
- "include/powerpc64le-linux-musl/asm/ucontext.h"
- "include/powerpc64le-linux-musl/asm/unistd.h"
"include/powerpc64le-linux-musl/bfd_stdint.h"
"include/powerpc64le-linux-musl/bits/alltypes.h"
"include/powerpc64le-linux-musl/bits/endian.h"
@@ -5650,20 +5588,20 @@ set(ZIG_LIBC_FILES
"include/powerpc64le-linux-musl/bits/syscall.h"
"include/powerpc64le-linux-musl/bits/termios.h"
"include/powerpc64le-linux-musl/bits/user.h"
- "include/riscv32-linux-musl/asm/auxvec.h"
- "include/riscv32-linux-musl/asm/bitsperlong.h"
- "include/riscv32-linux-musl/asm/byteorder.h"
- "include/riscv32-linux-musl/asm/elf.h"
- "include/riscv32-linux-musl/asm/hwcap.h"
- "include/riscv32-linux-musl/asm/posix_types.h"
- "include/riscv32-linux-musl/asm/ptrace.h"
- "include/riscv32-linux-musl/asm/setup.h"
- "include/riscv32-linux-musl/asm/sigcontext.h"
- "include/riscv32-linux-musl/asm/siginfo.h"
- "include/riscv32-linux-musl/asm/signal.h"
- "include/riscv32-linux-musl/asm/stat.h"
- "include/riscv32-linux-musl/asm/ucontext.h"
- "include/riscv32-linux-musl/asm/unistd.h"
+ "include/riscv32-linux-any/asm/auxvec.h"
+ "include/riscv32-linux-any/asm/bitsperlong.h"
+ "include/riscv32-linux-any/asm/byteorder.h"
+ "include/riscv32-linux-any/asm/elf.h"
+ "include/riscv32-linux-any/asm/hwcap.h"
+ "include/riscv32-linux-any/asm/posix_types.h"
+ "include/riscv32-linux-any/asm/ptrace.h"
+ "include/riscv32-linux-any/asm/setup.h"
+ "include/riscv32-linux-any/asm/sigcontext.h"
+ "include/riscv32-linux-any/asm/siginfo.h"
+ "include/riscv32-linux-any/asm/signal.h"
+ "include/riscv32-linux-any/asm/stat.h"
+ "include/riscv32-linux-any/asm/ucontext.h"
+ "include/riscv32-linux-any/asm/unistd.h"
"include/riscv32-linux-musl/bfd.h"
"include/riscv32-linux-musl/bfd_stdint.h"
"include/riscv32-linux-musl/bits/alltypes.h"
@@ -5688,7 +5626,20 @@ set(ZIG_LIBC_FILES
"include/riscv32-linux-musl/signal.h"
"include/riscv32-linux-musl/sys/signalfd.h"
"include/riscv32-linux-musl/sys/socket.h"
- "include/riscv64-linux-gnu/asm/unistd.h"
+ "include/riscv64-linux-any/asm/auxvec.h"
+ "include/riscv64-linux-any/asm/bitsperlong.h"
+ "include/riscv64-linux-any/asm/byteorder.h"
+ "include/riscv64-linux-any/asm/elf.h"
+ "include/riscv64-linux-any/asm/hwcap.h"
+ "include/riscv64-linux-any/asm/posix_types.h"
+ "include/riscv64-linux-any/asm/ptrace.h"
+ "include/riscv64-linux-any/asm/setup.h"
+ "include/riscv64-linux-any/asm/sigcontext.h"
+ "include/riscv64-linux-any/asm/siginfo.h"
+ "include/riscv64-linux-any/asm/signal.h"
+ "include/riscv64-linux-any/asm/stat.h"
+ "include/riscv64-linux-any/asm/ucontext.h"
+ "include/riscv64-linux-any/asm/unistd.h"
"include/riscv64-linux-gnu/bits/endian.h"
"include/riscv64-linux-gnu/bits/fcntl.h"
"include/riscv64-linux-gnu/bits/fenv.h"
@@ -5714,20 +5665,6 @@ set(ZIG_LIBC_FILES
"include/riscv64-linux-gnu/sys/cachectl.h"
"include/riscv64-linux-gnu/sys/ucontext.h"
"include/riscv64-linux-gnu/sys/user.h"
- "include/riscv64-linux-musl/asm/auxvec.h"
- "include/riscv64-linux-musl/asm/bitsperlong.h"
- "include/riscv64-linux-musl/asm/byteorder.h"
- "include/riscv64-linux-musl/asm/elf.h"
- "include/riscv64-linux-musl/asm/hwcap.h"
- "include/riscv64-linux-musl/asm/posix_types.h"
- "include/riscv64-linux-musl/asm/ptrace.h"
- "include/riscv64-linux-musl/asm/setup.h"
- "include/riscv64-linux-musl/asm/sigcontext.h"
- "include/riscv64-linux-musl/asm/siginfo.h"
- "include/riscv64-linux-musl/asm/signal.h"
- "include/riscv64-linux-musl/asm/stat.h"
- "include/riscv64-linux-musl/asm/ucontext.h"
- "include/riscv64-linux-musl/asm/unistd.h"
"include/riscv64-linux-musl/bfd_stdint.h"
"include/riscv64-linux-musl/bits/alltypes.h"
"include/riscv64-linux-musl/bits/endian.h"
@@ -5752,7 +5689,52 @@ set(ZIG_LIBC_FILES
"include/riscv64-linux-musl/signal.h"
"include/riscv64-linux-musl/sys/signalfd.h"
"include/riscv64-linux-musl/sys/socket.h"
- "include/s390x-linux-gnu/asm/unistd.h"
+ "include/s390x-linux-any/asm/auxvec.h"
+ "include/s390x-linux-any/asm/bitsperlong.h"
+ "include/s390x-linux-any/asm/bpf_perf_event.h"
+ "include/s390x-linux-any/asm/byteorder.h"
+ "include/s390x-linux-any/asm/chpid.h"
+ "include/s390x-linux-any/asm/chsc.h"
+ "include/s390x-linux-any/asm/clp.h"
+ "include/s390x-linux-any/asm/cmb.h"
+ "include/s390x-linux-any/asm/dasd.h"
+ "include/s390x-linux-any/asm/debug.h"
+ "include/s390x-linux-any/asm/guarded_storage.h"
+ "include/s390x-linux-any/asm/hypfs.h"
+ "include/s390x-linux-any/asm/ioctls.h"
+ "include/s390x-linux-any/asm/ipcbuf.h"
+ "include/s390x-linux-any/asm/kvm.h"
+ "include/s390x-linux-any/asm/kvm_para.h"
+ "include/s390x-linux-any/asm/kvm_perf.h"
+ "include/s390x-linux-any/asm/monwriter.h"
+ "include/s390x-linux-any/asm/perf_regs.h"
+ "include/s390x-linux-any/asm/pkey.h"
+ "include/s390x-linux-any/asm/posix_types.h"
+ "include/s390x-linux-any/asm/ptrace.h"
+ "include/s390x-linux-any/asm/qeth.h"
+ "include/s390x-linux-any/asm/runtime_instr.h"
+ "include/s390x-linux-any/asm/schid.h"
+ "include/s390x-linux-any/asm/sclp_ctl.h"
+ "include/s390x-linux-any/asm/setup.h"
+ "include/s390x-linux-any/asm/sie.h"
+ "include/s390x-linux-any/asm/sigcontext.h"
+ "include/s390x-linux-any/asm/siginfo.h"
+ "include/s390x-linux-any/asm/signal.h"
+ "include/s390x-linux-any/asm/socket.h"
+ "include/s390x-linux-any/asm/stat.h"
+ "include/s390x-linux-any/asm/statfs.h"
+ "include/s390x-linux-any/asm/sthyi.h"
+ "include/s390x-linux-any/asm/tape390.h"
+ "include/s390x-linux-any/asm/termios.h"
+ "include/s390x-linux-any/asm/types.h"
+ "include/s390x-linux-any/asm/ucontext.h"
+ "include/s390x-linux-any/asm/unistd.h"
+ "include/s390x-linux-any/asm/unistd_32.h"
+ "include/s390x-linux-any/asm/unistd_64.h"
+ "include/s390x-linux-any/asm/virtio-ccw.h"
+ "include/s390x-linux-any/asm/vmcp.h"
+ "include/s390x-linux-any/asm/vtoc.h"
+ "include/s390x-linux-any/asm/zcrypt.h"
"include/s390x-linux-gnu/bits/elfclass.h"
"include/s390x-linux-gnu/bits/endian.h"
"include/s390x-linux-gnu/bits/environments.h"
@@ -5788,52 +5770,6 @@ set(ZIG_LIBC_FILES
"include/s390x-linux-gnu/sys/ptrace.h"
"include/s390x-linux-gnu/sys/ucontext.h"
"include/s390x-linux-gnu/sys/user.h"
- "include/s390x-linux-musl/asm/auxvec.h"
- "include/s390x-linux-musl/asm/bitsperlong.h"
- "include/s390x-linux-musl/asm/bpf_perf_event.h"
- "include/s390x-linux-musl/asm/byteorder.h"
- "include/s390x-linux-musl/asm/chpid.h"
- "include/s390x-linux-musl/asm/chsc.h"
- "include/s390x-linux-musl/asm/clp.h"
- "include/s390x-linux-musl/asm/cmb.h"
- "include/s390x-linux-musl/asm/dasd.h"
- "include/s390x-linux-musl/asm/debug.h"
- "include/s390x-linux-musl/asm/guarded_storage.h"
- "include/s390x-linux-musl/asm/hypfs.h"
- "include/s390x-linux-musl/asm/ioctls.h"
- "include/s390x-linux-musl/asm/ipcbuf.h"
- "include/s390x-linux-musl/asm/kvm.h"
- "include/s390x-linux-musl/asm/kvm_para.h"
- "include/s390x-linux-musl/asm/kvm_perf.h"
- "include/s390x-linux-musl/asm/monwriter.h"
- "include/s390x-linux-musl/asm/perf_regs.h"
- "include/s390x-linux-musl/asm/pkey.h"
- "include/s390x-linux-musl/asm/posix_types.h"
- "include/s390x-linux-musl/asm/ptrace.h"
- "include/s390x-linux-musl/asm/qeth.h"
- "include/s390x-linux-musl/asm/runtime_instr.h"
- "include/s390x-linux-musl/asm/schid.h"
- "include/s390x-linux-musl/asm/sclp_ctl.h"
- "include/s390x-linux-musl/asm/setup.h"
- "include/s390x-linux-musl/asm/sie.h"
- "include/s390x-linux-musl/asm/sigcontext.h"
- "include/s390x-linux-musl/asm/siginfo.h"
- "include/s390x-linux-musl/asm/signal.h"
- "include/s390x-linux-musl/asm/socket.h"
- "include/s390x-linux-musl/asm/stat.h"
- "include/s390x-linux-musl/asm/statfs.h"
- "include/s390x-linux-musl/asm/sthyi.h"
- "include/s390x-linux-musl/asm/tape390.h"
- "include/s390x-linux-musl/asm/termios.h"
- "include/s390x-linux-musl/asm/types.h"
- "include/s390x-linux-musl/asm/ucontext.h"
- "include/s390x-linux-musl/asm/unistd.h"
- "include/s390x-linux-musl/asm/unistd_32.h"
- "include/s390x-linux-musl/asm/unistd_64.h"
- "include/s390x-linux-musl/asm/virtio-ccw.h"
- "include/s390x-linux-musl/asm/vmcp.h"
- "include/s390x-linux-musl/asm/vtoc.h"
- "include/s390x-linux-musl/asm/zcrypt.h"
"include/s390x-linux-musl/bfd_stdint.h"
"include/s390x-linux-musl/bits/alltypes.h"
"include/s390x-linux-musl/bits/endian.h"
@@ -5858,7 +5794,6 @@ set(ZIG_LIBC_FILES
"include/s390x-linux-musl/bits/syscall.h"
"include/s390x-linux-musl/bits/user.h"
"include/sparc-linux-gnu/a.out.h"
- "include/sparc-linux-gnu/asm/unistd.h"
"include/sparc-linux-gnu/bits/a.out.h"
"include/sparc-linux-gnu/bits/endian.h"
"include/sparc-linux-gnu/bits/environments.h"
@@ -5914,7 +5849,6 @@ set(ZIG_LIBC_FILES
"include/sparc-linux-gnu/sys/ucontext.h"
"include/sparc-linux-gnu/sys/user.h"
"include/sparcv9-linux-gnu/a.out.h"
- "include/sparcv9-linux-gnu/asm/unistd.h"
"include/sparcv9-linux-gnu/bits/a.out.h"
"include/sparcv9-linux-gnu/bits/endian.h"
"include/sparcv9-linux-gnu/bits/environments.h"
@@ -5968,7 +5902,28 @@ set(ZIG_LIBC_FILES
"include/sparcv9-linux-gnu/sys/ptrace.h"
"include/sparcv9-linux-gnu/sys/ucontext.h"
"include/sparcv9-linux-gnu/sys/user.h"
- "include/x86_64-linux-gnu/asm/unistd.h"
+ "include/x86_64-linux-any/asm/auxvec.h"
+ "include/x86_64-linux-any/asm/bitsperlong.h"
+ "include/x86_64-linux-any/asm/byteorder.h"
+ "include/x86_64-linux-any/asm/kvm.h"
+ "include/x86_64-linux-any/asm/kvm_para.h"
+ "include/x86_64-linux-any/asm/mman.h"
+ "include/x86_64-linux-any/asm/msgbuf.h"
+ "include/x86_64-linux-any/asm/perf_regs.h"
+ "include/x86_64-linux-any/asm/posix_types.h"
+ "include/x86_64-linux-any/asm/ptrace.h"
+ "include/x86_64-linux-any/asm/sembuf.h"
+ "include/x86_64-linux-any/asm/setup.h"
+ "include/x86_64-linux-any/asm/shmbuf.h"
+ "include/x86_64-linux-any/asm/sigcontext.h"
+ "include/x86_64-linux-any/asm/siginfo.h"
+ "include/x86_64-linux-any/asm/signal.h"
+ "include/x86_64-linux-any/asm/stat.h"
+ "include/x86_64-linux-any/asm/statfs.h"
+ "include/x86_64-linux-any/asm/swab.h"
+ "include/x86_64-linux-any/asm/types.h"
+ "include/x86_64-linux-any/asm/ucontext.h"
+ "include/x86_64-linux-any/asm/unistd.h"
"include/x86_64-linux-gnu/bits/a.out.h"
"include/x86_64-linux-gnu/bits/endian.h"
"include/x86_64-linux-gnu/bits/environments.h"
@@ -6053,28 +6008,6 @@ set(ZIG_LIBC_FILES
"include/x86_64-linux-gnux32/sys/ptrace.h"
"include/x86_64-linux-gnux32/sys/ucontext.h"
"include/x86_64-linux-gnux32/sys/user.h"
- "include/x86_64-linux-musl/asm/auxvec.h"
- "include/x86_64-linux-musl/asm/bitsperlong.h"
- "include/x86_64-linux-musl/asm/byteorder.h"
- "include/x86_64-linux-musl/asm/kvm.h"
- "include/x86_64-linux-musl/asm/kvm_para.h"
- "include/x86_64-linux-musl/asm/mman.h"
- "include/x86_64-linux-musl/asm/msgbuf.h"
- "include/x86_64-linux-musl/asm/perf_regs.h"
- "include/x86_64-linux-musl/asm/posix_types.h"
- "include/x86_64-linux-musl/asm/ptrace.h"
- "include/x86_64-linux-musl/asm/sembuf.h"
- "include/x86_64-linux-musl/asm/setup.h"
- "include/x86_64-linux-musl/asm/shmbuf.h"
- "include/x86_64-linux-musl/asm/sigcontext.h"
- "include/x86_64-linux-musl/asm/siginfo.h"
- "include/x86_64-linux-musl/asm/signal.h"
- "include/x86_64-linux-musl/asm/stat.h"
- "include/x86_64-linux-musl/asm/statfs.h"
- "include/x86_64-linux-musl/asm/swab.h"
- "include/x86_64-linux-musl/asm/types.h"
- "include/x86_64-linux-musl/asm/ucontext.h"
- "include/x86_64-linux-musl/asm/unistd.h"
"include/x86_64-linux-musl/bfd_stdint.h"
"include/x86_64-linux-musl/bits/alltypes.h"
"include/x86_64-linux-musl/bits/endian.h"
diff --git a/libc/include/aarch64-linux-musleabi/asm/auxvec.h b/libc/include/aarch64-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/auxvec.h
rename to libc/include/aarch64-linux-any/asm/auxvec.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/bitsperlong.h b/libc/include/aarch64-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/bitsperlong.h
rename to libc/include/aarch64-linux-any/asm/bitsperlong.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/bpf_perf_event.h b/libc/include/aarch64-linux-any/asm/bpf_perf_event.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/bpf_perf_event.h
rename to libc/include/aarch64-linux-any/asm/bpf_perf_event.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/byteorder.h b/libc/include/aarch64-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/byteorder.h
rename to libc/include/aarch64-linux-any/asm/byteorder.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/fcntl.h b/libc/include/aarch64-linux-any/asm/fcntl.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/fcntl.h
rename to libc/include/aarch64-linux-any/asm/fcntl.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/hwcap.h b/libc/include/aarch64-linux-any/asm/hwcap.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/hwcap.h
rename to libc/include/aarch64-linux-any/asm/hwcap.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/kvm.h b/libc/include/aarch64-linux-any/asm/kvm.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/kvm.h
rename to libc/include/aarch64-linux-any/asm/kvm.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/kvm_para.h b/libc/include/aarch64-linux-any/asm/kvm_para.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/kvm_para.h
rename to libc/include/aarch64-linux-any/asm/kvm_para.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/param.h b/libc/include/aarch64-linux-any/asm/param.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/param.h
rename to libc/include/aarch64-linux-any/asm/param.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/perf_regs.h b/libc/include/aarch64-linux-any/asm/perf_regs.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/perf_regs.h
rename to libc/include/aarch64-linux-any/asm/perf_regs.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/posix_types.h b/libc/include/aarch64-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/posix_types.h
rename to libc/include/aarch64-linux-any/asm/posix_types.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/ptrace.h b/libc/include/aarch64-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/ptrace.h
rename to libc/include/aarch64-linux-any/asm/ptrace.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/setup.h b/libc/include/aarch64-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/setup.h
rename to libc/include/aarch64-linux-any/asm/setup.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/sigcontext.h b/libc/include/aarch64-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/sigcontext.h
rename to libc/include/aarch64-linux-any/asm/sigcontext.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/siginfo.h b/libc/include/aarch64-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/siginfo.h
rename to libc/include/aarch64-linux-any/asm/siginfo.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/signal.h b/libc/include/aarch64-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/signal.h
rename to libc/include/aarch64-linux-any/asm/signal.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/stat.h b/libc/include/aarch64-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/stat.h
rename to libc/include/aarch64-linux-any/asm/stat.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/statfs.h b/libc/include/aarch64-linux-any/asm/statfs.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/statfs.h
rename to libc/include/aarch64-linux-any/asm/statfs.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/ucontext.h b/libc/include/aarch64-linux-any/asm/ucontext.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/ucontext.h
rename to libc/include/aarch64-linux-any/asm/ucontext.h
diff --git a/libc/include/aarch64-linux-musleabi/asm/unistd.h b/libc/include/aarch64-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/aarch64-linux-musleabi/asm/unistd.h
rename to libc/include/aarch64-linux-any/asm/unistd.h
diff --git a/libc/include/aarch64-linux-gnu/asm/bitsperlong.h b/libc/include/aarch64-linux-gnu/asm/bitsperlong.h
deleted file mode 100644
index 485d60bee2..0000000000
--- a/libc/include/aarch64-linux-gnu/asm/bitsperlong.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * Copyright (C) 2012 ARM Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-#ifndef __ASM_BITSPERLONG_H
-#define __ASM_BITSPERLONG_H
-
-#define __BITS_PER_LONG 64
-
-#include
-
-#endif /* __ASM_BITSPERLONG_H */
diff --git a/libc/include/aarch64-linux-gnu/asm/unistd.h b/libc/include/aarch64-linux-gnu/asm/unistd.h
deleted file mode 100644
index dae1584cf0..0000000000
--- a/libc/include/aarch64-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * Copyright (C) 2012 ARM Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-#define __ARCH_WANT_RENAMEAT
-#define __ARCH_WANT_NEW_STAT
-
-#include
diff --git a/libc/include/aarch64_be-linux-musl/asm/auxvec.h b/libc/include/aarch64_be-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/auxvec.h
rename to libc/include/aarch64_be-linux-any/asm/auxvec.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/bitsperlong.h b/libc/include/aarch64_be-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/bitsperlong.h
rename to libc/include/aarch64_be-linux-any/asm/bitsperlong.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/bpf_perf_event.h b/libc/include/aarch64_be-linux-any/asm/bpf_perf_event.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/bpf_perf_event.h
rename to libc/include/aarch64_be-linux-any/asm/bpf_perf_event.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/byteorder.h b/libc/include/aarch64_be-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/byteorder.h
rename to libc/include/aarch64_be-linux-any/asm/byteorder.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/fcntl.h b/libc/include/aarch64_be-linux-any/asm/fcntl.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/fcntl.h
rename to libc/include/aarch64_be-linux-any/asm/fcntl.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/hwcap.h b/libc/include/aarch64_be-linux-any/asm/hwcap.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/hwcap.h
rename to libc/include/aarch64_be-linux-any/asm/hwcap.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/kvm.h b/libc/include/aarch64_be-linux-any/asm/kvm.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/kvm.h
rename to libc/include/aarch64_be-linux-any/asm/kvm.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/kvm_para.h b/libc/include/aarch64_be-linux-any/asm/kvm_para.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/kvm_para.h
rename to libc/include/aarch64_be-linux-any/asm/kvm_para.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/param.h b/libc/include/aarch64_be-linux-any/asm/param.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/param.h
rename to libc/include/aarch64_be-linux-any/asm/param.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/perf_regs.h b/libc/include/aarch64_be-linux-any/asm/perf_regs.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/perf_regs.h
rename to libc/include/aarch64_be-linux-any/asm/perf_regs.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/posix_types.h b/libc/include/aarch64_be-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/posix_types.h
rename to libc/include/aarch64_be-linux-any/asm/posix_types.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/ptrace.h b/libc/include/aarch64_be-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/ptrace.h
rename to libc/include/aarch64_be-linux-any/asm/ptrace.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/setup.h b/libc/include/aarch64_be-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/setup.h
rename to libc/include/aarch64_be-linux-any/asm/setup.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/sigcontext.h b/libc/include/aarch64_be-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/sigcontext.h
rename to libc/include/aarch64_be-linux-any/asm/sigcontext.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/siginfo.h b/libc/include/aarch64_be-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/siginfo.h
rename to libc/include/aarch64_be-linux-any/asm/siginfo.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/signal.h b/libc/include/aarch64_be-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/signal.h
rename to libc/include/aarch64_be-linux-any/asm/signal.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/stat.h b/libc/include/aarch64_be-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/stat.h
rename to libc/include/aarch64_be-linux-any/asm/stat.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/statfs.h b/libc/include/aarch64_be-linux-any/asm/statfs.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/statfs.h
rename to libc/include/aarch64_be-linux-any/asm/statfs.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/ucontext.h b/libc/include/aarch64_be-linux-any/asm/ucontext.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/ucontext.h
rename to libc/include/aarch64_be-linux-any/asm/ucontext.h
diff --git a/libc/include/aarch64_be-linux-musl/asm/unistd.h b/libc/include/aarch64_be-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/aarch64_be-linux-musl/asm/unistd.h
rename to libc/include/aarch64_be-linux-any/asm/unistd.h
diff --git a/libc/include/aarch64_be-linux-gnu/asm/bitsperlong.h b/libc/include/aarch64_be-linux-gnu/asm/bitsperlong.h
deleted file mode 100644
index 485d60bee2..0000000000
--- a/libc/include/aarch64_be-linux-gnu/asm/bitsperlong.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * Copyright (C) 2012 ARM Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-#ifndef __ASM_BITSPERLONG_H
-#define __ASM_BITSPERLONG_H
-
-#define __BITS_PER_LONG 64
-
-#include
-
-#endif /* __ASM_BITSPERLONG_H */
diff --git a/libc/include/aarch64_be-linux-gnu/asm/unistd.h b/libc/include/aarch64_be-linux-gnu/asm/unistd.h
deleted file mode 100644
index dae1584cf0..0000000000
--- a/libc/include/aarch64_be-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * Copyright (C) 2012 ARM Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-#define __ARCH_WANT_RENAMEAT
-#define __ARCH_WANT_NEW_STAT
-
-#include
diff --git a/libc/include/generic-musl/asm-generic/auxvec.h b/libc/include/any-linux-any/asm-generic/auxvec.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/auxvec.h
rename to libc/include/any-linux-any/asm-generic/auxvec.h
diff --git a/libc/include/generic-musl/asm-generic/bitsperlong.h b/libc/include/any-linux-any/asm-generic/bitsperlong.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/bitsperlong.h
rename to libc/include/any-linux-any/asm-generic/bitsperlong.h
diff --git a/libc/include/generic-musl/asm-generic/bpf_perf_event.h b/libc/include/any-linux-any/asm-generic/bpf_perf_event.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/bpf_perf_event.h
rename to libc/include/any-linux-any/asm-generic/bpf_perf_event.h
diff --git a/libc/include/generic-musl/asm-generic/errno-base.h b/libc/include/any-linux-any/asm-generic/errno-base.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/errno-base.h
rename to libc/include/any-linux-any/asm-generic/errno-base.h
diff --git a/libc/include/generic-musl/asm-generic/errno.h b/libc/include/any-linux-any/asm-generic/errno.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/errno.h
rename to libc/include/any-linux-any/asm-generic/errno.h
diff --git a/libc/include/generic-musl/asm-generic/fcntl.h b/libc/include/any-linux-any/asm-generic/fcntl.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/fcntl.h
rename to libc/include/any-linux-any/asm-generic/fcntl.h
diff --git a/libc/include/generic-musl/asm-generic/hugetlb_encode.h b/libc/include/any-linux-any/asm-generic/hugetlb_encode.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/hugetlb_encode.h
rename to libc/include/any-linux-any/asm-generic/hugetlb_encode.h
diff --git a/libc/include/generic-musl/asm-generic/int-l64.h b/libc/include/any-linux-any/asm-generic/int-l64.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/int-l64.h
rename to libc/include/any-linux-any/asm-generic/int-l64.h
diff --git a/libc/include/generic-musl/asm-generic/int-ll64.h b/libc/include/any-linux-any/asm-generic/int-ll64.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/int-ll64.h
rename to libc/include/any-linux-any/asm-generic/int-ll64.h
diff --git a/libc/include/generic-musl/asm-generic/ioctl.h b/libc/include/any-linux-any/asm-generic/ioctl.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/ioctl.h
rename to libc/include/any-linux-any/asm-generic/ioctl.h
diff --git a/libc/include/generic-musl/asm-generic/ioctls.h b/libc/include/any-linux-any/asm-generic/ioctls.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/ioctls.h
rename to libc/include/any-linux-any/asm-generic/ioctls.h
diff --git a/libc/include/generic-musl/asm-generic/ipcbuf.h b/libc/include/any-linux-any/asm-generic/ipcbuf.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/ipcbuf.h
rename to libc/include/any-linux-any/asm-generic/ipcbuf.h
diff --git a/libc/include/generic-musl/asm-generic/kvm_para.h b/libc/include/any-linux-any/asm-generic/kvm_para.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/kvm_para.h
rename to libc/include/any-linux-any/asm-generic/kvm_para.h
diff --git a/libc/include/generic-musl/asm-generic/mman-common.h b/libc/include/any-linux-any/asm-generic/mman-common.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/mman-common.h
rename to libc/include/any-linux-any/asm-generic/mman-common.h
diff --git a/libc/include/generic-musl/asm-generic/mman.h b/libc/include/any-linux-any/asm-generic/mman.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/mman.h
rename to libc/include/any-linux-any/asm-generic/mman.h
diff --git a/libc/include/generic-musl/asm-generic/msgbuf.h b/libc/include/any-linux-any/asm-generic/msgbuf.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/msgbuf.h
rename to libc/include/any-linux-any/asm-generic/msgbuf.h
diff --git a/libc/include/generic-musl/asm-generic/param.h b/libc/include/any-linux-any/asm-generic/param.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/param.h
rename to libc/include/any-linux-any/asm-generic/param.h
diff --git a/libc/include/generic-musl/asm-generic/poll.h b/libc/include/any-linux-any/asm-generic/poll.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/poll.h
rename to libc/include/any-linux-any/asm-generic/poll.h
diff --git a/libc/include/generic-musl/asm-generic/posix_types.h b/libc/include/any-linux-any/asm-generic/posix_types.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/posix_types.h
rename to libc/include/any-linux-any/asm-generic/posix_types.h
diff --git a/libc/include/generic-musl/asm-generic/resource.h b/libc/include/any-linux-any/asm-generic/resource.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/resource.h
rename to libc/include/any-linux-any/asm-generic/resource.h
diff --git a/libc/include/generic-musl/asm-generic/sembuf.h b/libc/include/any-linux-any/asm-generic/sembuf.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/sembuf.h
rename to libc/include/any-linux-any/asm-generic/sembuf.h
diff --git a/libc/include/generic-musl/asm-generic/setup.h b/libc/include/any-linux-any/asm-generic/setup.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/setup.h
rename to libc/include/any-linux-any/asm-generic/setup.h
diff --git a/libc/include/generic-musl/asm-generic/shmbuf.h b/libc/include/any-linux-any/asm-generic/shmbuf.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/shmbuf.h
rename to libc/include/any-linux-any/asm-generic/shmbuf.h
diff --git a/libc/include/generic-musl/asm-generic/shmparam.h b/libc/include/any-linux-any/asm-generic/shmparam.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/shmparam.h
rename to libc/include/any-linux-any/asm-generic/shmparam.h
diff --git a/libc/include/generic-musl/asm-generic/siginfo.h b/libc/include/any-linux-any/asm-generic/siginfo.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/siginfo.h
rename to libc/include/any-linux-any/asm-generic/siginfo.h
diff --git a/libc/include/generic-musl/asm-generic/signal-defs.h b/libc/include/any-linux-any/asm-generic/signal-defs.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/signal-defs.h
rename to libc/include/any-linux-any/asm-generic/signal-defs.h
diff --git a/libc/include/generic-musl/asm-generic/signal.h b/libc/include/any-linux-any/asm-generic/signal.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/signal.h
rename to libc/include/any-linux-any/asm-generic/signal.h
diff --git a/libc/include/generic-musl/asm-generic/socket.h b/libc/include/any-linux-any/asm-generic/socket.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/socket.h
rename to libc/include/any-linux-any/asm-generic/socket.h
diff --git a/libc/include/generic-musl/asm-generic/sockios.h b/libc/include/any-linux-any/asm-generic/sockios.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/sockios.h
rename to libc/include/any-linux-any/asm-generic/sockios.h
diff --git a/libc/include/generic-musl/asm-generic/stat.h b/libc/include/any-linux-any/asm-generic/stat.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/stat.h
rename to libc/include/any-linux-any/asm-generic/stat.h
diff --git a/libc/include/generic-musl/asm-generic/statfs.h b/libc/include/any-linux-any/asm-generic/statfs.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/statfs.h
rename to libc/include/any-linux-any/asm-generic/statfs.h
diff --git a/libc/include/generic-musl/asm-generic/swab.h b/libc/include/any-linux-any/asm-generic/swab.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/swab.h
rename to libc/include/any-linux-any/asm-generic/swab.h
diff --git a/libc/include/generic-musl/asm-generic/termbits.h b/libc/include/any-linux-any/asm-generic/termbits.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/termbits.h
rename to libc/include/any-linux-any/asm-generic/termbits.h
diff --git a/libc/include/generic-musl/asm-generic/termios.h b/libc/include/any-linux-any/asm-generic/termios.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/termios.h
rename to libc/include/any-linux-any/asm-generic/termios.h
diff --git a/libc/include/generic-musl/asm-generic/types.h b/libc/include/any-linux-any/asm-generic/types.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/types.h
rename to libc/include/any-linux-any/asm-generic/types.h
diff --git a/libc/include/generic-musl/asm-generic/ucontext.h b/libc/include/any-linux-any/asm-generic/ucontext.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/ucontext.h
rename to libc/include/any-linux-any/asm-generic/ucontext.h
diff --git a/libc/include/generic-musl/asm-generic/unistd.h b/libc/include/any-linux-any/asm-generic/unistd.h
similarity index 100%
rename from libc/include/generic-musl/asm-generic/unistd.h
rename to libc/include/any-linux-any/asm-generic/unistd.h
diff --git a/libc/include/generic-musl/asm/a.out.h b/libc/include/any-linux-any/asm/a.out.h
similarity index 100%
rename from libc/include/generic-musl/asm/a.out.h
rename to libc/include/any-linux-any/asm/a.out.h
diff --git a/libc/include/generic-musl/asm/auxvec.h b/libc/include/any-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/generic-musl/asm/auxvec.h
rename to libc/include/any-linux-any/asm/auxvec.h
diff --git a/libc/include/generic-musl/asm/bitfield.h b/libc/include/any-linux-any/asm/bitfield.h
similarity index 100%
rename from libc/include/generic-musl/asm/bitfield.h
rename to libc/include/any-linux-any/asm/bitfield.h
diff --git a/libc/include/generic-musl/asm/bitsperlong.h b/libc/include/any-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/generic-musl/asm/bitsperlong.h
rename to libc/include/any-linux-any/asm/bitsperlong.h
diff --git a/libc/include/generic-musl/asm/boot.h b/libc/include/any-linux-any/asm/boot.h
similarity index 100%
rename from libc/include/generic-musl/asm/boot.h
rename to libc/include/any-linux-any/asm/boot.h
diff --git a/libc/include/generic-musl/asm/bootparam.h b/libc/include/any-linux-any/asm/bootparam.h
similarity index 100%
rename from libc/include/generic-musl/asm/bootparam.h
rename to libc/include/any-linux-any/asm/bootparam.h
diff --git a/libc/include/generic-musl/asm/bootx.h b/libc/include/any-linux-any/asm/bootx.h
similarity index 100%
rename from libc/include/generic-musl/asm/bootx.h
rename to libc/include/any-linux-any/asm/bootx.h
diff --git a/libc/include/generic-musl/asm/bpf_perf_event.h b/libc/include/any-linux-any/asm/bpf_perf_event.h
similarity index 100%
rename from libc/include/generic-musl/asm/bpf_perf_event.h
rename to libc/include/any-linux-any/asm/bpf_perf_event.h
diff --git a/libc/include/generic-musl/asm/break.h b/libc/include/any-linux-any/asm/break.h
similarity index 100%
rename from libc/include/generic-musl/asm/break.h
rename to libc/include/any-linux-any/asm/break.h
diff --git a/libc/include/generic-musl/asm/byteorder.h b/libc/include/any-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/generic-musl/asm/byteorder.h
rename to libc/include/any-linux-any/asm/byteorder.h
diff --git a/libc/include/generic-musl/asm/cachectl.h b/libc/include/any-linux-any/asm/cachectl.h
similarity index 100%
rename from libc/include/generic-musl/asm/cachectl.h
rename to libc/include/any-linux-any/asm/cachectl.h
diff --git a/libc/include/generic-musl/asm/cputable.h b/libc/include/any-linux-any/asm/cputable.h
similarity index 100%
rename from libc/include/generic-musl/asm/cputable.h
rename to libc/include/any-linux-any/asm/cputable.h
diff --git a/libc/include/generic-musl/asm/debugreg.h b/libc/include/any-linux-any/asm/debugreg.h
similarity index 100%
rename from libc/include/generic-musl/asm/debugreg.h
rename to libc/include/any-linux-any/asm/debugreg.h
diff --git a/libc/include/generic-musl/asm/e820.h b/libc/include/any-linux-any/asm/e820.h
similarity index 100%
rename from libc/include/generic-musl/asm/e820.h
rename to libc/include/any-linux-any/asm/e820.h
diff --git a/libc/include/generic-musl/asm/eeh.h b/libc/include/any-linux-any/asm/eeh.h
similarity index 100%
rename from libc/include/generic-musl/asm/eeh.h
rename to libc/include/any-linux-any/asm/eeh.h
diff --git a/libc/include/generic-musl/asm/elf.h b/libc/include/any-linux-any/asm/elf.h
similarity index 100%
rename from libc/include/generic-musl/asm/elf.h
rename to libc/include/any-linux-any/asm/elf.h
diff --git a/libc/include/generic-musl/asm/epapr_hcalls.h b/libc/include/any-linux-any/asm/epapr_hcalls.h
similarity index 100%
rename from libc/include/generic-musl/asm/epapr_hcalls.h
rename to libc/include/any-linux-any/asm/epapr_hcalls.h
diff --git a/libc/include/generic-musl/asm/errno.h b/libc/include/any-linux-any/asm/errno.h
similarity index 100%
rename from libc/include/generic-musl/asm/errno.h
rename to libc/include/any-linux-any/asm/errno.h
diff --git a/libc/include/generic-musl/asm/fcntl.h b/libc/include/any-linux-any/asm/fcntl.h
similarity index 100%
rename from libc/include/generic-musl/asm/fcntl.h
rename to libc/include/any-linux-any/asm/fcntl.h
diff --git a/libc/include/generic-musl/asm/hw_breakpoint.h b/libc/include/any-linux-any/asm/hw_breakpoint.h
similarity index 100%
rename from libc/include/generic-musl/asm/hw_breakpoint.h
rename to libc/include/any-linux-any/asm/hw_breakpoint.h
diff --git a/libc/include/generic-musl/asm/hwcap.h b/libc/include/any-linux-any/asm/hwcap.h
similarity index 100%
rename from libc/include/generic-musl/asm/hwcap.h
rename to libc/include/any-linux-any/asm/hwcap.h
diff --git a/libc/include/generic-musl/asm/hwcap2.h b/libc/include/any-linux-any/asm/hwcap2.h
similarity index 100%
rename from libc/include/generic-musl/asm/hwcap2.h
rename to libc/include/any-linux-any/asm/hwcap2.h
diff --git a/libc/include/generic-musl/asm/inst.h b/libc/include/any-linux-any/asm/inst.h
similarity index 100%
rename from libc/include/generic-musl/asm/inst.h
rename to libc/include/any-linux-any/asm/inst.h
diff --git a/libc/include/generic-musl/asm/ioctl.h b/libc/include/any-linux-any/asm/ioctl.h
similarity index 100%
rename from libc/include/generic-musl/asm/ioctl.h
rename to libc/include/any-linux-any/asm/ioctl.h
diff --git a/libc/include/generic-musl/asm/ioctls.h b/libc/include/any-linux-any/asm/ioctls.h
similarity index 100%
rename from libc/include/generic-musl/asm/ioctls.h
rename to libc/include/any-linux-any/asm/ioctls.h
diff --git a/libc/include/generic-musl/asm/ipcbuf.h b/libc/include/any-linux-any/asm/ipcbuf.h
similarity index 100%
rename from libc/include/generic-musl/asm/ipcbuf.h
rename to libc/include/any-linux-any/asm/ipcbuf.h
diff --git a/libc/include/generic-musl/asm/ist.h b/libc/include/any-linux-any/asm/ist.h
similarity index 100%
rename from libc/include/generic-musl/asm/ist.h
rename to libc/include/any-linux-any/asm/ist.h
diff --git a/libc/include/generic-musl/asm/kvm.h b/libc/include/any-linux-any/asm/kvm.h
similarity index 100%
rename from libc/include/generic-musl/asm/kvm.h
rename to libc/include/any-linux-any/asm/kvm.h
diff --git a/libc/include/generic-musl/asm/kvm_para.h b/libc/include/any-linux-any/asm/kvm_para.h
similarity index 100%
rename from libc/include/generic-musl/asm/kvm_para.h
rename to libc/include/any-linux-any/asm/kvm_para.h
diff --git a/libc/include/generic-musl/asm/kvm_perf.h b/libc/include/any-linux-any/asm/kvm_perf.h
similarity index 100%
rename from libc/include/generic-musl/asm/kvm_perf.h
rename to libc/include/any-linux-any/asm/kvm_perf.h
diff --git a/libc/include/generic-musl/asm/ldt.h b/libc/include/any-linux-any/asm/ldt.h
similarity index 100%
rename from libc/include/generic-musl/asm/ldt.h
rename to libc/include/any-linux-any/asm/ldt.h
diff --git a/libc/include/generic-musl/asm/mce.h b/libc/include/any-linux-any/asm/mce.h
similarity index 100%
rename from libc/include/generic-musl/asm/mce.h
rename to libc/include/any-linux-any/asm/mce.h
diff --git a/libc/include/generic-musl/asm/mman.h b/libc/include/any-linux-any/asm/mman.h
similarity index 100%
rename from libc/include/generic-musl/asm/mman.h
rename to libc/include/any-linux-any/asm/mman.h
diff --git a/libc/include/generic-musl/asm/msgbuf.h b/libc/include/any-linux-any/asm/msgbuf.h
similarity index 100%
rename from libc/include/generic-musl/asm/msgbuf.h
rename to libc/include/any-linux-any/asm/msgbuf.h
diff --git a/libc/include/generic-musl/asm/msr.h b/libc/include/any-linux-any/asm/msr.h
similarity index 100%
rename from libc/include/generic-musl/asm/msr.h
rename to libc/include/any-linux-any/asm/msr.h
diff --git a/libc/include/generic-musl/asm/mtrr.h b/libc/include/any-linux-any/asm/mtrr.h
similarity index 100%
rename from libc/include/generic-musl/asm/mtrr.h
rename to libc/include/any-linux-any/asm/mtrr.h
diff --git a/libc/include/generic-musl/asm/nvram.h b/libc/include/any-linux-any/asm/nvram.h
similarity index 100%
rename from libc/include/generic-musl/asm/nvram.h
rename to libc/include/any-linux-any/asm/nvram.h
diff --git a/libc/include/generic-musl/asm/opal-prd.h b/libc/include/any-linux-any/asm/opal-prd.h
similarity index 100%
rename from libc/include/generic-musl/asm/opal-prd.h
rename to libc/include/any-linux-any/asm/opal-prd.h
diff --git a/libc/include/generic-musl/asm/param.h b/libc/include/any-linux-any/asm/param.h
similarity index 100%
rename from libc/include/generic-musl/asm/param.h
rename to libc/include/any-linux-any/asm/param.h
diff --git a/libc/include/generic-musl/asm/perf_event.h b/libc/include/any-linux-any/asm/perf_event.h
similarity index 100%
rename from libc/include/generic-musl/asm/perf_event.h
rename to libc/include/any-linux-any/asm/perf_event.h
diff --git a/libc/include/generic-musl/asm/perf_regs.h b/libc/include/any-linux-any/asm/perf_regs.h
similarity index 100%
rename from libc/include/generic-musl/asm/perf_regs.h
rename to libc/include/any-linux-any/asm/perf_regs.h
diff --git a/libc/include/generic-musl/asm/poll.h b/libc/include/any-linux-any/asm/poll.h
similarity index 100%
rename from libc/include/generic-musl/asm/poll.h
rename to libc/include/any-linux-any/asm/poll.h
diff --git a/libc/include/generic-musl/asm/posix_types.h b/libc/include/any-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/generic-musl/asm/posix_types.h
rename to libc/include/any-linux-any/asm/posix_types.h
diff --git a/libc/include/generic-musl/asm/posix_types_32.h b/libc/include/any-linux-any/asm/posix_types_32.h
similarity index 100%
rename from libc/include/generic-musl/asm/posix_types_32.h
rename to libc/include/any-linux-any/asm/posix_types_32.h
diff --git a/libc/include/generic-musl/asm/posix_types_64.h b/libc/include/any-linux-any/asm/posix_types_64.h
similarity index 100%
rename from libc/include/generic-musl/asm/posix_types_64.h
rename to libc/include/any-linux-any/asm/posix_types_64.h
diff --git a/libc/include/generic-musl/asm/posix_types_x32.h b/libc/include/any-linux-any/asm/posix_types_x32.h
similarity index 100%
rename from libc/include/generic-musl/asm/posix_types_x32.h
rename to libc/include/any-linux-any/asm/posix_types_x32.h
diff --git a/libc/include/generic-musl/asm/prctl.h b/libc/include/any-linux-any/asm/prctl.h
similarity index 100%
rename from libc/include/generic-musl/asm/prctl.h
rename to libc/include/any-linux-any/asm/prctl.h
diff --git a/libc/include/generic-musl/asm/processor-flags.h b/libc/include/any-linux-any/asm/processor-flags.h
similarity index 100%
rename from libc/include/generic-musl/asm/processor-flags.h
rename to libc/include/any-linux-any/asm/processor-flags.h
diff --git a/libc/include/generic-musl/asm/ps3fb.h b/libc/include/any-linux-any/asm/ps3fb.h
similarity index 100%
rename from libc/include/generic-musl/asm/ps3fb.h
rename to libc/include/any-linux-any/asm/ps3fb.h
diff --git a/libc/include/generic-musl/asm/ptrace-abi.h b/libc/include/any-linux-any/asm/ptrace-abi.h
similarity index 100%
rename from libc/include/generic-musl/asm/ptrace-abi.h
rename to libc/include/any-linux-any/asm/ptrace-abi.h
diff --git a/libc/include/generic-musl/asm/ptrace.h b/libc/include/any-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/generic-musl/asm/ptrace.h
rename to libc/include/any-linux-any/asm/ptrace.h
diff --git a/libc/include/generic-musl/asm/reg.h b/libc/include/any-linux-any/asm/reg.h
similarity index 100%
rename from libc/include/generic-musl/asm/reg.h
rename to libc/include/any-linux-any/asm/reg.h
diff --git a/libc/include/generic-musl/asm/resource.h b/libc/include/any-linux-any/asm/resource.h
similarity index 100%
rename from libc/include/generic-musl/asm/resource.h
rename to libc/include/any-linux-any/asm/resource.h
diff --git a/libc/include/generic-musl/asm/sembuf.h b/libc/include/any-linux-any/asm/sembuf.h
similarity index 100%
rename from libc/include/generic-musl/asm/sembuf.h
rename to libc/include/any-linux-any/asm/sembuf.h
diff --git a/libc/include/generic-musl/asm/setup.h b/libc/include/any-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/generic-musl/asm/setup.h
rename to libc/include/any-linux-any/asm/setup.h
diff --git a/libc/include/generic-musl/asm/sgidefs.h b/libc/include/any-linux-any/asm/sgidefs.h
similarity index 100%
rename from libc/include/generic-musl/asm/sgidefs.h
rename to libc/include/any-linux-any/asm/sgidefs.h
diff --git a/libc/include/generic-musl/asm/shmbuf.h b/libc/include/any-linux-any/asm/shmbuf.h
similarity index 100%
rename from libc/include/generic-musl/asm/shmbuf.h
rename to libc/include/any-linux-any/asm/shmbuf.h
diff --git a/libc/include/generic-musl/asm/sigcontext.h b/libc/include/any-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/generic-musl/asm/sigcontext.h
rename to libc/include/any-linux-any/asm/sigcontext.h
diff --git a/libc/include/generic-musl/asm/sigcontext32.h b/libc/include/any-linux-any/asm/sigcontext32.h
similarity index 100%
rename from libc/include/generic-musl/asm/sigcontext32.h
rename to libc/include/any-linux-any/asm/sigcontext32.h
diff --git a/libc/include/generic-musl/asm/siginfo.h b/libc/include/any-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/generic-musl/asm/siginfo.h
rename to libc/include/any-linux-any/asm/siginfo.h
diff --git a/libc/include/generic-musl/asm/signal.h b/libc/include/any-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/generic-musl/asm/signal.h
rename to libc/include/any-linux-any/asm/signal.h
diff --git a/libc/include/generic-musl/asm/socket.h b/libc/include/any-linux-any/asm/socket.h
similarity index 100%
rename from libc/include/generic-musl/asm/socket.h
rename to libc/include/any-linux-any/asm/socket.h
diff --git a/libc/include/generic-musl/asm/sockios.h b/libc/include/any-linux-any/asm/sockios.h
similarity index 100%
rename from libc/include/generic-musl/asm/sockios.h
rename to libc/include/any-linux-any/asm/sockios.h
diff --git a/libc/include/generic-musl/asm/spu_info.h b/libc/include/any-linux-any/asm/spu_info.h
similarity index 100%
rename from libc/include/generic-musl/asm/spu_info.h
rename to libc/include/any-linux-any/asm/spu_info.h
diff --git a/libc/include/generic-musl/asm/stat.h b/libc/include/any-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/generic-musl/asm/stat.h
rename to libc/include/any-linux-any/asm/stat.h
diff --git a/libc/include/generic-musl/asm/statfs.h b/libc/include/any-linux-any/asm/statfs.h
similarity index 100%
rename from libc/include/generic-musl/asm/statfs.h
rename to libc/include/any-linux-any/asm/statfs.h
diff --git a/libc/include/generic-musl/asm/svm.h b/libc/include/any-linux-any/asm/svm.h
similarity index 100%
rename from libc/include/generic-musl/asm/svm.h
rename to libc/include/any-linux-any/asm/svm.h
diff --git a/libc/include/generic-musl/asm/swab.h b/libc/include/any-linux-any/asm/swab.h
similarity index 100%
rename from libc/include/generic-musl/asm/swab.h
rename to libc/include/any-linux-any/asm/swab.h
diff --git a/libc/include/generic-musl/asm/syscalls.h b/libc/include/any-linux-any/asm/syscalls.h
similarity index 100%
rename from libc/include/generic-musl/asm/syscalls.h
rename to libc/include/any-linux-any/asm/syscalls.h
diff --git a/libc/include/generic-musl/asm/sysmips.h b/libc/include/any-linux-any/asm/sysmips.h
similarity index 100%
rename from libc/include/generic-musl/asm/sysmips.h
rename to libc/include/any-linux-any/asm/sysmips.h
diff --git a/libc/include/generic-musl/asm/termbits.h b/libc/include/any-linux-any/asm/termbits.h
similarity index 100%
rename from libc/include/generic-musl/asm/termbits.h
rename to libc/include/any-linux-any/asm/termbits.h
diff --git a/libc/include/generic-musl/asm/termios.h b/libc/include/any-linux-any/asm/termios.h
similarity index 100%
rename from libc/include/generic-musl/asm/termios.h
rename to libc/include/any-linux-any/asm/termios.h
diff --git a/libc/include/generic-musl/asm/tm.h b/libc/include/any-linux-any/asm/tm.h
similarity index 100%
rename from libc/include/generic-musl/asm/tm.h
rename to libc/include/any-linux-any/asm/tm.h
diff --git a/libc/include/generic-musl/asm/types.h b/libc/include/any-linux-any/asm/types.h
similarity index 100%
rename from libc/include/generic-musl/asm/types.h
rename to libc/include/any-linux-any/asm/types.h
diff --git a/libc/include/generic-musl/asm/ucontext.h b/libc/include/any-linux-any/asm/ucontext.h
similarity index 100%
rename from libc/include/generic-musl/asm/ucontext.h
rename to libc/include/any-linux-any/asm/ucontext.h
diff --git a/libc/include/generic-musl/asm/unistd-common.h b/libc/include/any-linux-any/asm/unistd-common.h
similarity index 100%
rename from libc/include/generic-musl/asm/unistd-common.h
rename to libc/include/any-linux-any/asm/unistd-common.h
diff --git a/libc/include/generic-musl/asm/unistd-eabi.h b/libc/include/any-linux-any/asm/unistd-eabi.h
similarity index 100%
rename from libc/include/generic-musl/asm/unistd-eabi.h
rename to libc/include/any-linux-any/asm/unistd-eabi.h
diff --git a/libc/include/generic-musl/asm/unistd-oabi.h b/libc/include/any-linux-any/asm/unistd-oabi.h
similarity index 100%
rename from libc/include/generic-musl/asm/unistd-oabi.h
rename to libc/include/any-linux-any/asm/unistd-oabi.h
diff --git a/libc/include/generic-musl/asm/unistd.h b/libc/include/any-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/generic-musl/asm/unistd.h
rename to libc/include/any-linux-any/asm/unistd.h
diff --git a/libc/include/generic-musl/asm/unistd_32.h b/libc/include/any-linux-any/asm/unistd_32.h
similarity index 100%
rename from libc/include/generic-musl/asm/unistd_32.h
rename to libc/include/any-linux-any/asm/unistd_32.h
diff --git a/libc/include/generic-musl/asm/unistd_64.h b/libc/include/any-linux-any/asm/unistd_64.h
similarity index 100%
rename from libc/include/generic-musl/asm/unistd_64.h
rename to libc/include/any-linux-any/asm/unistd_64.h
diff --git a/libc/include/generic-musl/asm/unistd_x32.h b/libc/include/any-linux-any/asm/unistd_x32.h
similarity index 100%
rename from libc/include/generic-musl/asm/unistd_x32.h
rename to libc/include/any-linux-any/asm/unistd_x32.h
diff --git a/libc/include/generic-musl/asm/vm86.h b/libc/include/any-linux-any/asm/vm86.h
similarity index 100%
rename from libc/include/generic-musl/asm/vm86.h
rename to libc/include/any-linux-any/asm/vm86.h
diff --git a/libc/include/generic-musl/asm/vmx.h b/libc/include/any-linux-any/asm/vmx.h
similarity index 100%
rename from libc/include/generic-musl/asm/vmx.h
rename to libc/include/any-linux-any/asm/vmx.h
diff --git a/libc/include/generic-musl/asm/vsyscall.h b/libc/include/any-linux-any/asm/vsyscall.h
similarity index 100%
rename from libc/include/generic-musl/asm/vsyscall.h
rename to libc/include/any-linux-any/asm/vsyscall.h
diff --git a/libc/include/generic-musl/linux/a.out.h b/libc/include/any-linux-any/linux/a.out.h
similarity index 100%
rename from libc/include/generic-musl/linux/a.out.h
rename to libc/include/any-linux-any/linux/a.out.h
diff --git a/libc/include/generic-musl/linux/acct.h b/libc/include/any-linux-any/linux/acct.h
similarity index 100%
rename from libc/include/generic-musl/linux/acct.h
rename to libc/include/any-linux-any/linux/acct.h
diff --git a/libc/include/generic-musl/linux/adb.h b/libc/include/any-linux-any/linux/adb.h
similarity index 100%
rename from libc/include/generic-musl/linux/adb.h
rename to libc/include/any-linux-any/linux/adb.h
diff --git a/libc/include/generic-musl/linux/adfs_fs.h b/libc/include/any-linux-any/linux/adfs_fs.h
similarity index 100%
rename from libc/include/generic-musl/linux/adfs_fs.h
rename to libc/include/any-linux-any/linux/adfs_fs.h
diff --git a/libc/include/generic-musl/linux/affs_hardblocks.h b/libc/include/any-linux-any/linux/affs_hardblocks.h
similarity index 100%
rename from libc/include/generic-musl/linux/affs_hardblocks.h
rename to libc/include/any-linux-any/linux/affs_hardblocks.h
diff --git a/libc/include/generic-musl/linux/agpgart.h b/libc/include/any-linux-any/linux/agpgart.h
similarity index 100%
rename from libc/include/generic-musl/linux/agpgart.h
rename to libc/include/any-linux-any/linux/agpgart.h
diff --git a/libc/include/generic-musl/linux/aio_abi.h b/libc/include/any-linux-any/linux/aio_abi.h
similarity index 100%
rename from libc/include/generic-musl/linux/aio_abi.h
rename to libc/include/any-linux-any/linux/aio_abi.h
diff --git a/libc/include/generic-musl/linux/am437x-vpfe.h b/libc/include/any-linux-any/linux/am437x-vpfe.h
similarity index 100%
rename from libc/include/generic-musl/linux/am437x-vpfe.h
rename to libc/include/any-linux-any/linux/am437x-vpfe.h
diff --git a/libc/include/generic-musl/linux/android/binder.h b/libc/include/any-linux-any/linux/android/binder.h
similarity index 100%
rename from libc/include/generic-musl/linux/android/binder.h
rename to libc/include/any-linux-any/linux/android/binder.h
diff --git a/libc/include/generic-musl/linux/apm_bios.h b/libc/include/any-linux-any/linux/apm_bios.h
similarity index 100%
rename from libc/include/generic-musl/linux/apm_bios.h
rename to libc/include/any-linux-any/linux/apm_bios.h
diff --git a/libc/include/generic-musl/linux/arcfb.h b/libc/include/any-linux-any/linux/arcfb.h
similarity index 100%
rename from libc/include/generic-musl/linux/arcfb.h
rename to libc/include/any-linux-any/linux/arcfb.h
diff --git a/libc/include/generic-musl/linux/arm_sdei.h b/libc/include/any-linux-any/linux/arm_sdei.h
similarity index 100%
rename from libc/include/generic-musl/linux/arm_sdei.h
rename to libc/include/any-linux-any/linux/arm_sdei.h
diff --git a/libc/include/generic-musl/linux/aspeed-lpc-ctrl.h b/libc/include/any-linux-any/linux/aspeed-lpc-ctrl.h
similarity index 100%
rename from libc/include/generic-musl/linux/aspeed-lpc-ctrl.h
rename to libc/include/any-linux-any/linux/aspeed-lpc-ctrl.h
diff --git a/libc/include/generic-musl/linux/atalk.h b/libc/include/any-linux-any/linux/atalk.h
similarity index 100%
rename from libc/include/generic-musl/linux/atalk.h
rename to libc/include/any-linux-any/linux/atalk.h
diff --git a/libc/include/generic-musl/linux/atm.h b/libc/include/any-linux-any/linux/atm.h
similarity index 100%
rename from libc/include/generic-musl/linux/atm.h
rename to libc/include/any-linux-any/linux/atm.h
diff --git a/libc/include/generic-musl/linux/atm_eni.h b/libc/include/any-linux-any/linux/atm_eni.h
similarity index 100%
rename from libc/include/generic-musl/linux/atm_eni.h
rename to libc/include/any-linux-any/linux/atm_eni.h
diff --git a/libc/include/generic-musl/linux/atm_he.h b/libc/include/any-linux-any/linux/atm_he.h
similarity index 100%
rename from libc/include/generic-musl/linux/atm_he.h
rename to libc/include/any-linux-any/linux/atm_he.h
diff --git a/libc/include/generic-musl/linux/atm_idt77105.h b/libc/include/any-linux-any/linux/atm_idt77105.h
similarity index 100%
rename from libc/include/generic-musl/linux/atm_idt77105.h
rename to libc/include/any-linux-any/linux/atm_idt77105.h
diff --git a/libc/include/generic-musl/linux/atm_nicstar.h b/libc/include/any-linux-any/linux/atm_nicstar.h
similarity index 100%
rename from libc/include/generic-musl/linux/atm_nicstar.h
rename to libc/include/any-linux-any/linux/atm_nicstar.h
diff --git a/libc/include/generic-musl/linux/atm_tcp.h b/libc/include/any-linux-any/linux/atm_tcp.h
similarity index 100%
rename from libc/include/generic-musl/linux/atm_tcp.h
rename to libc/include/any-linux-any/linux/atm_tcp.h
diff --git a/libc/include/generic-musl/linux/atm_zatm.h b/libc/include/any-linux-any/linux/atm_zatm.h
similarity index 100%
rename from libc/include/generic-musl/linux/atm_zatm.h
rename to libc/include/any-linux-any/linux/atm_zatm.h
diff --git a/libc/include/generic-musl/linux/atmapi.h b/libc/include/any-linux-any/linux/atmapi.h
similarity index 100%
rename from libc/include/generic-musl/linux/atmapi.h
rename to libc/include/any-linux-any/linux/atmapi.h
diff --git a/libc/include/generic-musl/linux/atmarp.h b/libc/include/any-linux-any/linux/atmarp.h
similarity index 100%
rename from libc/include/generic-musl/linux/atmarp.h
rename to libc/include/any-linux-any/linux/atmarp.h
diff --git a/libc/include/generic-musl/linux/atmbr2684.h b/libc/include/any-linux-any/linux/atmbr2684.h
similarity index 100%
rename from libc/include/generic-musl/linux/atmbr2684.h
rename to libc/include/any-linux-any/linux/atmbr2684.h
diff --git a/libc/include/generic-musl/linux/atmclip.h b/libc/include/any-linux-any/linux/atmclip.h
similarity index 100%
rename from libc/include/generic-musl/linux/atmclip.h
rename to libc/include/any-linux-any/linux/atmclip.h
diff --git a/libc/include/generic-musl/linux/atmdev.h b/libc/include/any-linux-any/linux/atmdev.h
similarity index 100%
rename from libc/include/generic-musl/linux/atmdev.h
rename to libc/include/any-linux-any/linux/atmdev.h
diff --git a/libc/include/generic-musl/linux/atmioc.h b/libc/include/any-linux-any/linux/atmioc.h
similarity index 100%
rename from libc/include/generic-musl/linux/atmioc.h
rename to libc/include/any-linux-any/linux/atmioc.h
diff --git a/libc/include/generic-musl/linux/atmlec.h b/libc/include/any-linux-any/linux/atmlec.h
similarity index 100%
rename from libc/include/generic-musl/linux/atmlec.h
rename to libc/include/any-linux-any/linux/atmlec.h
diff --git a/libc/include/generic-musl/linux/atmmpc.h b/libc/include/any-linux-any/linux/atmmpc.h
similarity index 100%
rename from libc/include/generic-musl/linux/atmmpc.h
rename to libc/include/any-linux-any/linux/atmmpc.h
diff --git a/libc/include/generic-musl/linux/atmppp.h b/libc/include/any-linux-any/linux/atmppp.h
similarity index 100%
rename from libc/include/generic-musl/linux/atmppp.h
rename to libc/include/any-linux-any/linux/atmppp.h
diff --git a/libc/include/generic-musl/linux/atmsap.h b/libc/include/any-linux-any/linux/atmsap.h
similarity index 100%
rename from libc/include/generic-musl/linux/atmsap.h
rename to libc/include/any-linux-any/linux/atmsap.h
diff --git a/libc/include/generic-musl/linux/atmsvc.h b/libc/include/any-linux-any/linux/atmsvc.h
similarity index 100%
rename from libc/include/generic-musl/linux/atmsvc.h
rename to libc/include/any-linux-any/linux/atmsvc.h
diff --git a/libc/include/generic-musl/linux/audit.h b/libc/include/any-linux-any/linux/audit.h
similarity index 100%
rename from libc/include/generic-musl/linux/audit.h
rename to libc/include/any-linux-any/linux/audit.h
diff --git a/libc/include/generic-musl/linux/auto_dev-ioctl.h b/libc/include/any-linux-any/linux/auto_dev-ioctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/auto_dev-ioctl.h
rename to libc/include/any-linux-any/linux/auto_dev-ioctl.h
diff --git a/libc/include/generic-musl/linux/auto_fs.h b/libc/include/any-linux-any/linux/auto_fs.h
similarity index 100%
rename from libc/include/generic-musl/linux/auto_fs.h
rename to libc/include/any-linux-any/linux/auto_fs.h
diff --git a/libc/include/generic-musl/linux/auto_fs4.h b/libc/include/any-linux-any/linux/auto_fs4.h
similarity index 100%
rename from libc/include/generic-musl/linux/auto_fs4.h
rename to libc/include/any-linux-any/linux/auto_fs4.h
diff --git a/libc/include/generic-musl/linux/auxvec.h b/libc/include/any-linux-any/linux/auxvec.h
similarity index 100%
rename from libc/include/generic-musl/linux/auxvec.h
rename to libc/include/any-linux-any/linux/auxvec.h
diff --git a/libc/include/generic-musl/linux/ax25.h b/libc/include/any-linux-any/linux/ax25.h
similarity index 100%
rename from libc/include/generic-musl/linux/ax25.h
rename to libc/include/any-linux-any/linux/ax25.h
diff --git a/libc/include/generic-musl/linux/b1lli.h b/libc/include/any-linux-any/linux/b1lli.h
similarity index 100%
rename from libc/include/generic-musl/linux/b1lli.h
rename to libc/include/any-linux-any/linux/b1lli.h
diff --git a/libc/include/generic-musl/linux/batadv_packet.h b/libc/include/any-linux-any/linux/batadv_packet.h
similarity index 100%
rename from libc/include/generic-musl/linux/batadv_packet.h
rename to libc/include/any-linux-any/linux/batadv_packet.h
diff --git a/libc/include/generic-musl/linux/batman_adv.h b/libc/include/any-linux-any/linux/batman_adv.h
similarity index 100%
rename from libc/include/generic-musl/linux/batman_adv.h
rename to libc/include/any-linux-any/linux/batman_adv.h
diff --git a/libc/include/generic-musl/linux/baycom.h b/libc/include/any-linux-any/linux/baycom.h
similarity index 100%
rename from libc/include/generic-musl/linux/baycom.h
rename to libc/include/any-linux-any/linux/baycom.h
diff --git a/libc/include/generic-musl/linux/bcache.h b/libc/include/any-linux-any/linux/bcache.h
similarity index 100%
rename from libc/include/generic-musl/linux/bcache.h
rename to libc/include/any-linux-any/linux/bcache.h
diff --git a/libc/include/generic-musl/linux/bcm933xx_hcs.h b/libc/include/any-linux-any/linux/bcm933xx_hcs.h
similarity index 100%
rename from libc/include/generic-musl/linux/bcm933xx_hcs.h
rename to libc/include/any-linux-any/linux/bcm933xx_hcs.h
diff --git a/libc/include/generic-musl/linux/bfs_fs.h b/libc/include/any-linux-any/linux/bfs_fs.h
similarity index 100%
rename from libc/include/generic-musl/linux/bfs_fs.h
rename to libc/include/any-linux-any/linux/bfs_fs.h
diff --git a/libc/include/generic-musl/linux/binfmts.h b/libc/include/any-linux-any/linux/binfmts.h
similarity index 100%
rename from libc/include/generic-musl/linux/binfmts.h
rename to libc/include/any-linux-any/linux/binfmts.h
diff --git a/libc/include/generic-musl/linux/blkpg.h b/libc/include/any-linux-any/linux/blkpg.h
similarity index 100%
rename from libc/include/generic-musl/linux/blkpg.h
rename to libc/include/any-linux-any/linux/blkpg.h
diff --git a/libc/include/generic-musl/linux/blktrace_api.h b/libc/include/any-linux-any/linux/blktrace_api.h
similarity index 100%
rename from libc/include/generic-musl/linux/blktrace_api.h
rename to libc/include/any-linux-any/linux/blktrace_api.h
diff --git a/libc/include/generic-musl/linux/blkzoned.h b/libc/include/any-linux-any/linux/blkzoned.h
similarity index 100%
rename from libc/include/generic-musl/linux/blkzoned.h
rename to libc/include/any-linux-any/linux/blkzoned.h
diff --git a/libc/include/generic-musl/linux/bpf.h b/libc/include/any-linux-any/linux/bpf.h
similarity index 100%
rename from libc/include/generic-musl/linux/bpf.h
rename to libc/include/any-linux-any/linux/bpf.h
diff --git a/libc/include/generic-musl/linux/bpf_common.h b/libc/include/any-linux-any/linux/bpf_common.h
similarity index 100%
rename from libc/include/generic-musl/linux/bpf_common.h
rename to libc/include/any-linux-any/linux/bpf_common.h
diff --git a/libc/include/generic-musl/linux/bpf_perf_event.h b/libc/include/any-linux-any/linux/bpf_perf_event.h
similarity index 100%
rename from libc/include/generic-musl/linux/bpf_perf_event.h
rename to libc/include/any-linux-any/linux/bpf_perf_event.h
diff --git a/libc/include/generic-musl/linux/bpfilter.h b/libc/include/any-linux-any/linux/bpfilter.h
similarity index 100%
rename from libc/include/generic-musl/linux/bpfilter.h
rename to libc/include/any-linux-any/linux/bpfilter.h
diff --git a/libc/include/generic-musl/linux/bpqether.h b/libc/include/any-linux-any/linux/bpqether.h
similarity index 100%
rename from libc/include/generic-musl/linux/bpqether.h
rename to libc/include/any-linux-any/linux/bpqether.h
diff --git a/libc/include/generic-musl/linux/bsg.h b/libc/include/any-linux-any/linux/bsg.h
similarity index 100%
rename from libc/include/generic-musl/linux/bsg.h
rename to libc/include/any-linux-any/linux/bsg.h
diff --git a/libc/include/generic-musl/linux/bt-bmc.h b/libc/include/any-linux-any/linux/bt-bmc.h
similarity index 100%
rename from libc/include/generic-musl/linux/bt-bmc.h
rename to libc/include/any-linux-any/linux/bt-bmc.h
diff --git a/libc/include/generic-musl/linux/btf.h b/libc/include/any-linux-any/linux/btf.h
similarity index 100%
rename from libc/include/generic-musl/linux/btf.h
rename to libc/include/any-linux-any/linux/btf.h
diff --git a/libc/include/generic-musl/linux/btrfs.h b/libc/include/any-linux-any/linux/btrfs.h
similarity index 100%
rename from libc/include/generic-musl/linux/btrfs.h
rename to libc/include/any-linux-any/linux/btrfs.h
diff --git a/libc/include/generic-musl/linux/btrfs_tree.h b/libc/include/any-linux-any/linux/btrfs_tree.h
similarity index 100%
rename from libc/include/generic-musl/linux/btrfs_tree.h
rename to libc/include/any-linux-any/linux/btrfs_tree.h
diff --git a/libc/include/generic-musl/linux/byteorder/big_endian.h b/libc/include/any-linux-any/linux/byteorder/big_endian.h
similarity index 100%
rename from libc/include/generic-musl/linux/byteorder/big_endian.h
rename to libc/include/any-linux-any/linux/byteorder/big_endian.h
diff --git a/libc/include/generic-musl/linux/byteorder/little_endian.h b/libc/include/any-linux-any/linux/byteorder/little_endian.h
similarity index 100%
rename from libc/include/generic-musl/linux/byteorder/little_endian.h
rename to libc/include/any-linux-any/linux/byteorder/little_endian.h
diff --git a/libc/include/generic-musl/linux/caif/caif_socket.h b/libc/include/any-linux-any/linux/caif/caif_socket.h
similarity index 100%
rename from libc/include/generic-musl/linux/caif/caif_socket.h
rename to libc/include/any-linux-any/linux/caif/caif_socket.h
diff --git a/libc/include/generic-musl/linux/caif/if_caif.h b/libc/include/any-linux-any/linux/caif/if_caif.h
similarity index 100%
rename from libc/include/generic-musl/linux/caif/if_caif.h
rename to libc/include/any-linux-any/linux/caif/if_caif.h
diff --git a/libc/include/generic-musl/linux/can.h b/libc/include/any-linux-any/linux/can.h
similarity index 100%
rename from libc/include/generic-musl/linux/can.h
rename to libc/include/any-linux-any/linux/can.h
diff --git a/libc/include/generic-musl/linux/can/bcm.h b/libc/include/any-linux-any/linux/can/bcm.h
similarity index 100%
rename from libc/include/generic-musl/linux/can/bcm.h
rename to libc/include/any-linux-any/linux/can/bcm.h
diff --git a/libc/include/generic-musl/linux/can/error.h b/libc/include/any-linux-any/linux/can/error.h
similarity index 100%
rename from libc/include/generic-musl/linux/can/error.h
rename to libc/include/any-linux-any/linux/can/error.h
diff --git a/libc/include/generic-musl/linux/can/gw.h b/libc/include/any-linux-any/linux/can/gw.h
similarity index 100%
rename from libc/include/generic-musl/linux/can/gw.h
rename to libc/include/any-linux-any/linux/can/gw.h
diff --git a/libc/include/generic-musl/linux/can/netlink.h b/libc/include/any-linux-any/linux/can/netlink.h
similarity index 100%
rename from libc/include/generic-musl/linux/can/netlink.h
rename to libc/include/any-linux-any/linux/can/netlink.h
diff --git a/libc/include/generic-musl/linux/can/raw.h b/libc/include/any-linux-any/linux/can/raw.h
similarity index 100%
rename from libc/include/generic-musl/linux/can/raw.h
rename to libc/include/any-linux-any/linux/can/raw.h
diff --git a/libc/include/generic-musl/linux/can/vxcan.h b/libc/include/any-linux-any/linux/can/vxcan.h
similarity index 100%
rename from libc/include/generic-musl/linux/can/vxcan.h
rename to libc/include/any-linux-any/linux/can/vxcan.h
diff --git a/libc/include/generic-musl/linux/capability.h b/libc/include/any-linux-any/linux/capability.h
similarity index 100%
rename from libc/include/generic-musl/linux/capability.h
rename to libc/include/any-linux-any/linux/capability.h
diff --git a/libc/include/generic-musl/linux/capi.h b/libc/include/any-linux-any/linux/capi.h
similarity index 100%
rename from libc/include/generic-musl/linux/capi.h
rename to libc/include/any-linux-any/linux/capi.h
diff --git a/libc/include/generic-musl/linux/cciss_defs.h b/libc/include/any-linux-any/linux/cciss_defs.h
similarity index 100%
rename from libc/include/generic-musl/linux/cciss_defs.h
rename to libc/include/any-linux-any/linux/cciss_defs.h
diff --git a/libc/include/generic-musl/linux/cciss_ioctl.h b/libc/include/any-linux-any/linux/cciss_ioctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/cciss_ioctl.h
rename to libc/include/any-linux-any/linux/cciss_ioctl.h
diff --git a/libc/include/generic-musl/linux/cdrom.h b/libc/include/any-linux-any/linux/cdrom.h
similarity index 100%
rename from libc/include/generic-musl/linux/cdrom.h
rename to libc/include/any-linux-any/linux/cdrom.h
diff --git a/libc/include/generic-musl/linux/cec-funcs.h b/libc/include/any-linux-any/linux/cec-funcs.h
similarity index 100%
rename from libc/include/generic-musl/linux/cec-funcs.h
rename to libc/include/any-linux-any/linux/cec-funcs.h
diff --git a/libc/include/generic-musl/linux/cec.h b/libc/include/any-linux-any/linux/cec.h
similarity index 100%
rename from libc/include/generic-musl/linux/cec.h
rename to libc/include/any-linux-any/linux/cec.h
diff --git a/libc/include/generic-musl/linux/cgroupstats.h b/libc/include/any-linux-any/linux/cgroupstats.h
similarity index 100%
rename from libc/include/generic-musl/linux/cgroupstats.h
rename to libc/include/any-linux-any/linux/cgroupstats.h
diff --git a/libc/include/generic-musl/linux/chio.h b/libc/include/any-linux-any/linux/chio.h
similarity index 100%
rename from libc/include/generic-musl/linux/chio.h
rename to libc/include/any-linux-any/linux/chio.h
diff --git a/libc/include/generic-musl/linux/cifs/cifs_mount.h b/libc/include/any-linux-any/linux/cifs/cifs_mount.h
similarity index 100%
rename from libc/include/generic-musl/linux/cifs/cifs_mount.h
rename to libc/include/any-linux-any/linux/cifs/cifs_mount.h
diff --git a/libc/include/generic-musl/linux/cm4000_cs.h b/libc/include/any-linux-any/linux/cm4000_cs.h
similarity index 100%
rename from libc/include/generic-musl/linux/cm4000_cs.h
rename to libc/include/any-linux-any/linux/cm4000_cs.h
diff --git a/libc/include/generic-musl/linux/cn_proc.h b/libc/include/any-linux-any/linux/cn_proc.h
similarity index 100%
rename from libc/include/generic-musl/linux/cn_proc.h
rename to libc/include/any-linux-any/linux/cn_proc.h
diff --git a/libc/include/generic-musl/linux/coda.h b/libc/include/any-linux-any/linux/coda.h
similarity index 100%
rename from libc/include/generic-musl/linux/coda.h
rename to libc/include/any-linux-any/linux/coda.h
diff --git a/libc/include/generic-musl/linux/coda_psdev.h b/libc/include/any-linux-any/linux/coda_psdev.h
similarity index 100%
rename from libc/include/generic-musl/linux/coda_psdev.h
rename to libc/include/any-linux-any/linux/coda_psdev.h
diff --git a/libc/include/generic-musl/linux/coff.h b/libc/include/any-linux-any/linux/coff.h
similarity index 100%
rename from libc/include/generic-musl/linux/coff.h
rename to libc/include/any-linux-any/linux/coff.h
diff --git a/libc/include/generic-musl/linux/connector.h b/libc/include/any-linux-any/linux/connector.h
similarity index 100%
rename from libc/include/generic-musl/linux/connector.h
rename to libc/include/any-linux-any/linux/connector.h
diff --git a/libc/include/generic-musl/linux/const.h b/libc/include/any-linux-any/linux/const.h
similarity index 100%
rename from libc/include/generic-musl/linux/const.h
rename to libc/include/any-linux-any/linux/const.h
diff --git a/libc/include/generic-musl/linux/coresight-stm.h b/libc/include/any-linux-any/linux/coresight-stm.h
similarity index 100%
rename from libc/include/generic-musl/linux/coresight-stm.h
rename to libc/include/any-linux-any/linux/coresight-stm.h
diff --git a/libc/include/generic-musl/linux/cramfs_fs.h b/libc/include/any-linux-any/linux/cramfs_fs.h
similarity index 100%
rename from libc/include/generic-musl/linux/cramfs_fs.h
rename to libc/include/any-linux-any/linux/cramfs_fs.h
diff --git a/libc/include/generic-musl/linux/cryptouser.h b/libc/include/any-linux-any/linux/cryptouser.h
similarity index 100%
rename from libc/include/generic-musl/linux/cryptouser.h
rename to libc/include/any-linux-any/linux/cryptouser.h
diff --git a/libc/include/generic-musl/linux/cuda.h b/libc/include/any-linux-any/linux/cuda.h
similarity index 100%
rename from libc/include/generic-musl/linux/cuda.h
rename to libc/include/any-linux-any/linux/cuda.h
diff --git a/libc/include/generic-musl/linux/cyclades.h b/libc/include/any-linux-any/linux/cyclades.h
similarity index 100%
rename from libc/include/generic-musl/linux/cyclades.h
rename to libc/include/any-linux-any/linux/cyclades.h
diff --git a/libc/include/generic-musl/linux/cycx_cfm.h b/libc/include/any-linux-any/linux/cycx_cfm.h
similarity index 100%
rename from libc/include/generic-musl/linux/cycx_cfm.h
rename to libc/include/any-linux-any/linux/cycx_cfm.h
diff --git a/libc/include/generic-musl/linux/dcbnl.h b/libc/include/any-linux-any/linux/dcbnl.h
similarity index 100%
rename from libc/include/generic-musl/linux/dcbnl.h
rename to libc/include/any-linux-any/linux/dcbnl.h
diff --git a/libc/include/generic-musl/linux/dccp.h b/libc/include/any-linux-any/linux/dccp.h
similarity index 100%
rename from libc/include/generic-musl/linux/dccp.h
rename to libc/include/any-linux-any/linux/dccp.h
diff --git a/libc/include/generic-musl/linux/devlink.h b/libc/include/any-linux-any/linux/devlink.h
similarity index 100%
rename from libc/include/generic-musl/linux/devlink.h
rename to libc/include/any-linux-any/linux/devlink.h
diff --git a/libc/include/generic-musl/linux/dlm.h b/libc/include/any-linux-any/linux/dlm.h
similarity index 100%
rename from libc/include/generic-musl/linux/dlm.h
rename to libc/include/any-linux-any/linux/dlm.h
diff --git a/libc/include/generic-musl/linux/dlm_device.h b/libc/include/any-linux-any/linux/dlm_device.h
similarity index 100%
rename from libc/include/generic-musl/linux/dlm_device.h
rename to libc/include/any-linux-any/linux/dlm_device.h
diff --git a/libc/include/generic-musl/linux/dlm_netlink.h b/libc/include/any-linux-any/linux/dlm_netlink.h
similarity index 100%
rename from libc/include/generic-musl/linux/dlm_netlink.h
rename to libc/include/any-linux-any/linux/dlm_netlink.h
diff --git a/libc/include/generic-musl/linux/dlm_plock.h b/libc/include/any-linux-any/linux/dlm_plock.h
similarity index 100%
rename from libc/include/generic-musl/linux/dlm_plock.h
rename to libc/include/any-linux-any/linux/dlm_plock.h
diff --git a/libc/include/generic-musl/linux/dlmconstants.h b/libc/include/any-linux-any/linux/dlmconstants.h
similarity index 100%
rename from libc/include/generic-musl/linux/dlmconstants.h
rename to libc/include/any-linux-any/linux/dlmconstants.h
diff --git a/libc/include/generic-musl/linux/dm-ioctl.h b/libc/include/any-linux-any/linux/dm-ioctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/dm-ioctl.h
rename to libc/include/any-linux-any/linux/dm-ioctl.h
diff --git a/libc/include/generic-musl/linux/dm-log-userspace.h b/libc/include/any-linux-any/linux/dm-log-userspace.h
similarity index 100%
rename from libc/include/generic-musl/linux/dm-log-userspace.h
rename to libc/include/any-linux-any/linux/dm-log-userspace.h
diff --git a/libc/include/generic-musl/linux/dma-buf.h b/libc/include/any-linux-any/linux/dma-buf.h
similarity index 100%
rename from libc/include/generic-musl/linux/dma-buf.h
rename to libc/include/any-linux-any/linux/dma-buf.h
diff --git a/libc/include/generic-musl/linux/dn.h b/libc/include/any-linux-any/linux/dn.h
similarity index 100%
rename from libc/include/generic-musl/linux/dn.h
rename to libc/include/any-linux-any/linux/dn.h
diff --git a/libc/include/generic-musl/linux/dqblk_xfs.h b/libc/include/any-linux-any/linux/dqblk_xfs.h
similarity index 100%
rename from libc/include/generic-musl/linux/dqblk_xfs.h
rename to libc/include/any-linux-any/linux/dqblk_xfs.h
diff --git a/libc/include/generic-musl/linux/dvb/audio.h b/libc/include/any-linux-any/linux/dvb/audio.h
similarity index 100%
rename from libc/include/generic-musl/linux/dvb/audio.h
rename to libc/include/any-linux-any/linux/dvb/audio.h
diff --git a/libc/include/generic-musl/linux/dvb/ca.h b/libc/include/any-linux-any/linux/dvb/ca.h
similarity index 100%
rename from libc/include/generic-musl/linux/dvb/ca.h
rename to libc/include/any-linux-any/linux/dvb/ca.h
diff --git a/libc/include/generic-musl/linux/dvb/dmx.h b/libc/include/any-linux-any/linux/dvb/dmx.h
similarity index 100%
rename from libc/include/generic-musl/linux/dvb/dmx.h
rename to libc/include/any-linux-any/linux/dvb/dmx.h
diff --git a/libc/include/generic-musl/linux/dvb/frontend.h b/libc/include/any-linux-any/linux/dvb/frontend.h
similarity index 100%
rename from libc/include/generic-musl/linux/dvb/frontend.h
rename to libc/include/any-linux-any/linux/dvb/frontend.h
diff --git a/libc/include/generic-musl/linux/dvb/net.h b/libc/include/any-linux-any/linux/dvb/net.h
similarity index 100%
rename from libc/include/generic-musl/linux/dvb/net.h
rename to libc/include/any-linux-any/linux/dvb/net.h
diff --git a/libc/include/generic-musl/linux/dvb/osd.h b/libc/include/any-linux-any/linux/dvb/osd.h
similarity index 100%
rename from libc/include/generic-musl/linux/dvb/osd.h
rename to libc/include/any-linux-any/linux/dvb/osd.h
diff --git a/libc/include/generic-musl/linux/dvb/version.h b/libc/include/any-linux-any/linux/dvb/version.h
similarity index 100%
rename from libc/include/generic-musl/linux/dvb/version.h
rename to libc/include/any-linux-any/linux/dvb/version.h
diff --git a/libc/include/generic-musl/linux/dvb/video.h b/libc/include/any-linux-any/linux/dvb/video.h
similarity index 100%
rename from libc/include/generic-musl/linux/dvb/video.h
rename to libc/include/any-linux-any/linux/dvb/video.h
diff --git a/libc/include/generic-musl/linux/edd.h b/libc/include/any-linux-any/linux/edd.h
similarity index 100%
rename from libc/include/generic-musl/linux/edd.h
rename to libc/include/any-linux-any/linux/edd.h
diff --git a/libc/include/generic-musl/linux/efs_fs_sb.h b/libc/include/any-linux-any/linux/efs_fs_sb.h
similarity index 100%
rename from libc/include/generic-musl/linux/efs_fs_sb.h
rename to libc/include/any-linux-any/linux/efs_fs_sb.h
diff --git a/libc/include/generic-musl/linux/elf-em.h b/libc/include/any-linux-any/linux/elf-em.h
similarity index 100%
rename from libc/include/generic-musl/linux/elf-em.h
rename to libc/include/any-linux-any/linux/elf-em.h
diff --git a/libc/include/generic-musl/linux/elf-fdpic.h b/libc/include/any-linux-any/linux/elf-fdpic.h
similarity index 100%
rename from libc/include/generic-musl/linux/elf-fdpic.h
rename to libc/include/any-linux-any/linux/elf-fdpic.h
diff --git a/libc/include/generic-musl/linux/elf.h b/libc/include/any-linux-any/linux/elf.h
similarity index 100%
rename from libc/include/generic-musl/linux/elf.h
rename to libc/include/any-linux-any/linux/elf.h
diff --git a/libc/include/generic-musl/linux/elfcore.h b/libc/include/any-linux-any/linux/elfcore.h
similarity index 100%
rename from libc/include/generic-musl/linux/elfcore.h
rename to libc/include/any-linux-any/linux/elfcore.h
diff --git a/libc/include/generic-musl/linux/errno.h b/libc/include/any-linux-any/linux/errno.h
similarity index 100%
rename from libc/include/generic-musl/linux/errno.h
rename to libc/include/any-linux-any/linux/errno.h
diff --git a/libc/include/generic-musl/linux/errqueue.h b/libc/include/any-linux-any/linux/errqueue.h
similarity index 100%
rename from libc/include/generic-musl/linux/errqueue.h
rename to libc/include/any-linux-any/linux/errqueue.h
diff --git a/libc/include/generic-musl/linux/erspan.h b/libc/include/any-linux-any/linux/erspan.h
similarity index 100%
rename from libc/include/generic-musl/linux/erspan.h
rename to libc/include/any-linux-any/linux/erspan.h
diff --git a/libc/include/generic-musl/linux/ethtool.h b/libc/include/any-linux-any/linux/ethtool.h
similarity index 100%
rename from libc/include/generic-musl/linux/ethtool.h
rename to libc/include/any-linux-any/linux/ethtool.h
diff --git a/libc/include/generic-musl/linux/eventpoll.h b/libc/include/any-linux-any/linux/eventpoll.h
similarity index 100%
rename from libc/include/generic-musl/linux/eventpoll.h
rename to libc/include/any-linux-any/linux/eventpoll.h
diff --git a/libc/include/generic-musl/linux/fadvise.h b/libc/include/any-linux-any/linux/fadvise.h
similarity index 100%
rename from libc/include/generic-musl/linux/fadvise.h
rename to libc/include/any-linux-any/linux/fadvise.h
diff --git a/libc/include/generic-musl/linux/falloc.h b/libc/include/any-linux-any/linux/falloc.h
similarity index 100%
rename from libc/include/generic-musl/linux/falloc.h
rename to libc/include/any-linux-any/linux/falloc.h
diff --git a/libc/include/generic-musl/linux/fanotify.h b/libc/include/any-linux-any/linux/fanotify.h
similarity index 100%
rename from libc/include/generic-musl/linux/fanotify.h
rename to libc/include/any-linux-any/linux/fanotify.h
diff --git a/libc/include/generic-musl/linux/fb.h b/libc/include/any-linux-any/linux/fb.h
similarity index 100%
rename from libc/include/generic-musl/linux/fb.h
rename to libc/include/any-linux-any/linux/fb.h
diff --git a/libc/include/generic-musl/linux/fcntl.h b/libc/include/any-linux-any/linux/fcntl.h
similarity index 100%
rename from libc/include/generic-musl/linux/fcntl.h
rename to libc/include/any-linux-any/linux/fcntl.h
diff --git a/libc/include/generic-musl/linux/fd.h b/libc/include/any-linux-any/linux/fd.h
similarity index 100%
rename from libc/include/generic-musl/linux/fd.h
rename to libc/include/any-linux-any/linux/fd.h
diff --git a/libc/include/generic-musl/linux/fdreg.h b/libc/include/any-linux-any/linux/fdreg.h
similarity index 100%
rename from libc/include/generic-musl/linux/fdreg.h
rename to libc/include/any-linux-any/linux/fdreg.h
diff --git a/libc/include/generic-musl/linux/fib_rules.h b/libc/include/any-linux-any/linux/fib_rules.h
similarity index 100%
rename from libc/include/generic-musl/linux/fib_rules.h
rename to libc/include/any-linux-any/linux/fib_rules.h
diff --git a/libc/include/generic-musl/linux/fiemap.h b/libc/include/any-linux-any/linux/fiemap.h
similarity index 100%
rename from libc/include/generic-musl/linux/fiemap.h
rename to libc/include/any-linux-any/linux/fiemap.h
diff --git a/libc/include/generic-musl/linux/filter.h b/libc/include/any-linux-any/linux/filter.h
similarity index 100%
rename from libc/include/generic-musl/linux/filter.h
rename to libc/include/any-linux-any/linux/filter.h
diff --git a/libc/include/generic-musl/linux/firewire-cdev.h b/libc/include/any-linux-any/linux/firewire-cdev.h
similarity index 100%
rename from libc/include/generic-musl/linux/firewire-cdev.h
rename to libc/include/any-linux-any/linux/firewire-cdev.h
diff --git a/libc/include/generic-musl/linux/firewire-constants.h b/libc/include/any-linux-any/linux/firewire-constants.h
similarity index 100%
rename from libc/include/generic-musl/linux/firewire-constants.h
rename to libc/include/any-linux-any/linux/firewire-constants.h
diff --git a/libc/include/generic-musl/linux/flat.h b/libc/include/any-linux-any/linux/flat.h
similarity index 100%
rename from libc/include/generic-musl/linux/flat.h
rename to libc/include/any-linux-any/linux/flat.h
diff --git a/libc/include/generic-musl/linux/fou.h b/libc/include/any-linux-any/linux/fou.h
similarity index 100%
rename from libc/include/generic-musl/linux/fou.h
rename to libc/include/any-linux-any/linux/fou.h
diff --git a/libc/include/generic-musl/linux/fpga-dfl.h b/libc/include/any-linux-any/linux/fpga-dfl.h
similarity index 100%
rename from libc/include/generic-musl/linux/fpga-dfl.h
rename to libc/include/any-linux-any/linux/fpga-dfl.h
diff --git a/libc/include/generic-musl/linux/fs.h b/libc/include/any-linux-any/linux/fs.h
similarity index 100%
rename from libc/include/generic-musl/linux/fs.h
rename to libc/include/any-linux-any/linux/fs.h
diff --git a/libc/include/generic-musl/linux/fsi.h b/libc/include/any-linux-any/linux/fsi.h
similarity index 100%
rename from libc/include/generic-musl/linux/fsi.h
rename to libc/include/any-linux-any/linux/fsi.h
diff --git a/libc/include/generic-musl/linux/fsl_hypervisor.h b/libc/include/any-linux-any/linux/fsl_hypervisor.h
similarity index 100%
rename from libc/include/generic-musl/linux/fsl_hypervisor.h
rename to libc/include/any-linux-any/linux/fsl_hypervisor.h
diff --git a/libc/include/generic-musl/linux/fsmap.h b/libc/include/any-linux-any/linux/fsmap.h
similarity index 100%
rename from libc/include/generic-musl/linux/fsmap.h
rename to libc/include/any-linux-any/linux/fsmap.h
diff --git a/libc/include/generic-musl/linux/fuse.h b/libc/include/any-linux-any/linux/fuse.h
similarity index 100%
rename from libc/include/generic-musl/linux/fuse.h
rename to libc/include/any-linux-any/linux/fuse.h
diff --git a/libc/include/generic-musl/linux/futex.h b/libc/include/any-linux-any/linux/futex.h
similarity index 100%
rename from libc/include/generic-musl/linux/futex.h
rename to libc/include/any-linux-any/linux/futex.h
diff --git a/libc/include/generic-musl/linux/gameport.h b/libc/include/any-linux-any/linux/gameport.h
similarity index 100%
rename from libc/include/generic-musl/linux/gameport.h
rename to libc/include/any-linux-any/linux/gameport.h
diff --git a/libc/include/generic-musl/linux/gen_stats.h b/libc/include/any-linux-any/linux/gen_stats.h
similarity index 100%
rename from libc/include/generic-musl/linux/gen_stats.h
rename to libc/include/any-linux-any/linux/gen_stats.h
diff --git a/libc/include/generic-musl/linux/genetlink.h b/libc/include/any-linux-any/linux/genetlink.h
similarity index 100%
rename from libc/include/generic-musl/linux/genetlink.h
rename to libc/include/any-linux-any/linux/genetlink.h
diff --git a/libc/include/generic-musl/linux/genwqe/genwqe_card.h b/libc/include/any-linux-any/linux/genwqe/genwqe_card.h
similarity index 100%
rename from libc/include/generic-musl/linux/genwqe/genwqe_card.h
rename to libc/include/any-linux-any/linux/genwqe/genwqe_card.h
diff --git a/libc/include/generic-musl/linux/gfs2_ondisk.h b/libc/include/any-linux-any/linux/gfs2_ondisk.h
similarity index 100%
rename from libc/include/generic-musl/linux/gfs2_ondisk.h
rename to libc/include/any-linux-any/linux/gfs2_ondisk.h
diff --git a/libc/include/generic-musl/linux/gigaset_dev.h b/libc/include/any-linux-any/linux/gigaset_dev.h
similarity index 100%
rename from libc/include/generic-musl/linux/gigaset_dev.h
rename to libc/include/any-linux-any/linux/gigaset_dev.h
diff --git a/libc/include/generic-musl/linux/gpio.h b/libc/include/any-linux-any/linux/gpio.h
similarity index 100%
rename from libc/include/generic-musl/linux/gpio.h
rename to libc/include/any-linux-any/linux/gpio.h
diff --git a/libc/include/generic-musl/linux/gsmmux.h b/libc/include/any-linux-any/linux/gsmmux.h
similarity index 100%
rename from libc/include/generic-musl/linux/gsmmux.h
rename to libc/include/any-linux-any/linux/gsmmux.h
diff --git a/libc/include/generic-musl/linux/gtp.h b/libc/include/any-linux-any/linux/gtp.h
similarity index 100%
rename from libc/include/generic-musl/linux/gtp.h
rename to libc/include/any-linux-any/linux/gtp.h
diff --git a/libc/include/generic-musl/linux/hash_info.h b/libc/include/any-linux-any/linux/hash_info.h
similarity index 100%
rename from libc/include/generic-musl/linux/hash_info.h
rename to libc/include/any-linux-any/linux/hash_info.h
diff --git a/libc/include/generic-musl/linux/hdlc.h b/libc/include/any-linux-any/linux/hdlc.h
similarity index 100%
rename from libc/include/generic-musl/linux/hdlc.h
rename to libc/include/any-linux-any/linux/hdlc.h
diff --git a/libc/include/generic-musl/linux/hdlc/ioctl.h b/libc/include/any-linux-any/linux/hdlc/ioctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/hdlc/ioctl.h
rename to libc/include/any-linux-any/linux/hdlc/ioctl.h
diff --git a/libc/include/generic-musl/linux/hdlcdrv.h b/libc/include/any-linux-any/linux/hdlcdrv.h
similarity index 100%
rename from libc/include/generic-musl/linux/hdlcdrv.h
rename to libc/include/any-linux-any/linux/hdlcdrv.h
diff --git a/libc/include/generic-musl/linux/hdreg.h b/libc/include/any-linux-any/linux/hdreg.h
similarity index 100%
rename from libc/include/generic-musl/linux/hdreg.h
rename to libc/include/any-linux-any/linux/hdreg.h
diff --git a/libc/include/generic-musl/linux/hid.h b/libc/include/any-linux-any/linux/hid.h
similarity index 100%
rename from libc/include/generic-musl/linux/hid.h
rename to libc/include/any-linux-any/linux/hid.h
diff --git a/libc/include/generic-musl/linux/hiddev.h b/libc/include/any-linux-any/linux/hiddev.h
similarity index 100%
rename from libc/include/generic-musl/linux/hiddev.h
rename to libc/include/any-linux-any/linux/hiddev.h
diff --git a/libc/include/generic-musl/linux/hidraw.h b/libc/include/any-linux-any/linux/hidraw.h
similarity index 100%
rename from libc/include/generic-musl/linux/hidraw.h
rename to libc/include/any-linux-any/linux/hidraw.h
diff --git a/libc/include/generic-musl/linux/hpet.h b/libc/include/any-linux-any/linux/hpet.h
similarity index 100%
rename from libc/include/generic-musl/linux/hpet.h
rename to libc/include/any-linux-any/linux/hpet.h
diff --git a/libc/include/generic-musl/linux/hsi/cs-protocol.h b/libc/include/any-linux-any/linux/hsi/cs-protocol.h
similarity index 100%
rename from libc/include/generic-musl/linux/hsi/cs-protocol.h
rename to libc/include/any-linux-any/linux/hsi/cs-protocol.h
diff --git a/libc/include/generic-musl/linux/hsi/hsi_char.h b/libc/include/any-linux-any/linux/hsi/hsi_char.h
similarity index 100%
rename from libc/include/generic-musl/linux/hsi/hsi_char.h
rename to libc/include/any-linux-any/linux/hsi/hsi_char.h
diff --git a/libc/include/generic-musl/linux/hsr_netlink.h b/libc/include/any-linux-any/linux/hsr_netlink.h
similarity index 100%
rename from libc/include/generic-musl/linux/hsr_netlink.h
rename to libc/include/any-linux-any/linux/hsr_netlink.h
diff --git a/libc/include/generic-musl/linux/hw_breakpoint.h b/libc/include/any-linux-any/linux/hw_breakpoint.h
similarity index 100%
rename from libc/include/generic-musl/linux/hw_breakpoint.h
rename to libc/include/any-linux-any/linux/hw_breakpoint.h
diff --git a/libc/include/generic-musl/linux/hyperv.h b/libc/include/any-linux-any/linux/hyperv.h
similarity index 100%
rename from libc/include/generic-musl/linux/hyperv.h
rename to libc/include/any-linux-any/linux/hyperv.h
diff --git a/libc/include/generic-musl/linux/hysdn_if.h b/libc/include/any-linux-any/linux/hysdn_if.h
similarity index 100%
rename from libc/include/generic-musl/linux/hysdn_if.h
rename to libc/include/any-linux-any/linux/hysdn_if.h
diff --git a/libc/include/generic-musl/linux/i2c-dev.h b/libc/include/any-linux-any/linux/i2c-dev.h
similarity index 100%
rename from libc/include/generic-musl/linux/i2c-dev.h
rename to libc/include/any-linux-any/linux/i2c-dev.h
diff --git a/libc/include/generic-musl/linux/i2c.h b/libc/include/any-linux-any/linux/i2c.h
similarity index 100%
rename from libc/include/generic-musl/linux/i2c.h
rename to libc/include/any-linux-any/linux/i2c.h
diff --git a/libc/include/generic-musl/linux/i2o-dev.h b/libc/include/any-linux-any/linux/i2o-dev.h
similarity index 100%
rename from libc/include/generic-musl/linux/i2o-dev.h
rename to libc/include/any-linux-any/linux/i2o-dev.h
diff --git a/libc/include/generic-musl/linux/i8k.h b/libc/include/any-linux-any/linux/i8k.h
similarity index 100%
rename from libc/include/generic-musl/linux/i8k.h
rename to libc/include/any-linux-any/linux/i8k.h
diff --git a/libc/include/generic-musl/linux/icmp.h b/libc/include/any-linux-any/linux/icmp.h
similarity index 100%
rename from libc/include/generic-musl/linux/icmp.h
rename to libc/include/any-linux-any/linux/icmp.h
diff --git a/libc/include/generic-musl/linux/icmpv6.h b/libc/include/any-linux-any/linux/icmpv6.h
similarity index 100%
rename from libc/include/generic-musl/linux/icmpv6.h
rename to libc/include/any-linux-any/linux/icmpv6.h
diff --git a/libc/include/generic-musl/linux/if.h b/libc/include/any-linux-any/linux/if.h
similarity index 100%
rename from libc/include/generic-musl/linux/if.h
rename to libc/include/any-linux-any/linux/if.h
diff --git a/libc/include/generic-musl/linux/if_addr.h b/libc/include/any-linux-any/linux/if_addr.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_addr.h
rename to libc/include/any-linux-any/linux/if_addr.h
diff --git a/libc/include/generic-musl/linux/if_addrlabel.h b/libc/include/any-linux-any/linux/if_addrlabel.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_addrlabel.h
rename to libc/include/any-linux-any/linux/if_addrlabel.h
diff --git a/libc/include/generic-musl/linux/if_alg.h b/libc/include/any-linux-any/linux/if_alg.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_alg.h
rename to libc/include/any-linux-any/linux/if_alg.h
diff --git a/libc/include/generic-musl/linux/if_arcnet.h b/libc/include/any-linux-any/linux/if_arcnet.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_arcnet.h
rename to libc/include/any-linux-any/linux/if_arcnet.h
diff --git a/libc/include/generic-musl/linux/if_arp.h b/libc/include/any-linux-any/linux/if_arp.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_arp.h
rename to libc/include/any-linux-any/linux/if_arp.h
diff --git a/libc/include/generic-musl/linux/if_bonding.h b/libc/include/any-linux-any/linux/if_bonding.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_bonding.h
rename to libc/include/any-linux-any/linux/if_bonding.h
diff --git a/libc/include/generic-musl/linux/if_bridge.h b/libc/include/any-linux-any/linux/if_bridge.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_bridge.h
rename to libc/include/any-linux-any/linux/if_bridge.h
diff --git a/libc/include/generic-musl/linux/if_cablemodem.h b/libc/include/any-linux-any/linux/if_cablemodem.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_cablemodem.h
rename to libc/include/any-linux-any/linux/if_cablemodem.h
diff --git a/libc/include/generic-musl/linux/if_eql.h b/libc/include/any-linux-any/linux/if_eql.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_eql.h
rename to libc/include/any-linux-any/linux/if_eql.h
diff --git a/libc/include/generic-musl/linux/if_ether.h b/libc/include/any-linux-any/linux/if_ether.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_ether.h
rename to libc/include/any-linux-any/linux/if_ether.h
diff --git a/libc/include/generic-musl/linux/if_fc.h b/libc/include/any-linux-any/linux/if_fc.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_fc.h
rename to libc/include/any-linux-any/linux/if_fc.h
diff --git a/libc/include/generic-musl/linux/if_fddi.h b/libc/include/any-linux-any/linux/if_fddi.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_fddi.h
rename to libc/include/any-linux-any/linux/if_fddi.h
diff --git a/libc/include/generic-musl/linux/if_frad.h b/libc/include/any-linux-any/linux/if_frad.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_frad.h
rename to libc/include/any-linux-any/linux/if_frad.h
diff --git a/libc/include/generic-musl/linux/if_hippi.h b/libc/include/any-linux-any/linux/if_hippi.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_hippi.h
rename to libc/include/any-linux-any/linux/if_hippi.h
diff --git a/libc/include/generic-musl/linux/if_infiniband.h b/libc/include/any-linux-any/linux/if_infiniband.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_infiniband.h
rename to libc/include/any-linux-any/linux/if_infiniband.h
diff --git a/libc/include/generic-musl/linux/if_link.h b/libc/include/any-linux-any/linux/if_link.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_link.h
rename to libc/include/any-linux-any/linux/if_link.h
diff --git a/libc/include/generic-musl/linux/if_ltalk.h b/libc/include/any-linux-any/linux/if_ltalk.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_ltalk.h
rename to libc/include/any-linux-any/linux/if_ltalk.h
diff --git a/libc/include/generic-musl/linux/if_macsec.h b/libc/include/any-linux-any/linux/if_macsec.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_macsec.h
rename to libc/include/any-linux-any/linux/if_macsec.h
diff --git a/libc/include/generic-musl/linux/if_packet.h b/libc/include/any-linux-any/linux/if_packet.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_packet.h
rename to libc/include/any-linux-any/linux/if_packet.h
diff --git a/libc/include/generic-musl/linux/if_phonet.h b/libc/include/any-linux-any/linux/if_phonet.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_phonet.h
rename to libc/include/any-linux-any/linux/if_phonet.h
diff --git a/libc/include/generic-musl/linux/if_plip.h b/libc/include/any-linux-any/linux/if_plip.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_plip.h
rename to libc/include/any-linux-any/linux/if_plip.h
diff --git a/libc/include/generic-musl/linux/if_ppp.h b/libc/include/any-linux-any/linux/if_ppp.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_ppp.h
rename to libc/include/any-linux-any/linux/if_ppp.h
diff --git a/libc/include/generic-musl/linux/if_pppol2tp.h b/libc/include/any-linux-any/linux/if_pppol2tp.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_pppol2tp.h
rename to libc/include/any-linux-any/linux/if_pppol2tp.h
diff --git a/libc/include/generic-musl/linux/if_pppox.h b/libc/include/any-linux-any/linux/if_pppox.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_pppox.h
rename to libc/include/any-linux-any/linux/if_pppox.h
diff --git a/libc/include/generic-musl/linux/if_slip.h b/libc/include/any-linux-any/linux/if_slip.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_slip.h
rename to libc/include/any-linux-any/linux/if_slip.h
diff --git a/libc/include/generic-musl/linux/if_team.h b/libc/include/any-linux-any/linux/if_team.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_team.h
rename to libc/include/any-linux-any/linux/if_team.h
diff --git a/libc/include/generic-musl/linux/if_tun.h b/libc/include/any-linux-any/linux/if_tun.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_tun.h
rename to libc/include/any-linux-any/linux/if_tun.h
diff --git a/libc/include/generic-musl/linux/if_tunnel.h b/libc/include/any-linux-any/linux/if_tunnel.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_tunnel.h
rename to libc/include/any-linux-any/linux/if_tunnel.h
diff --git a/libc/include/generic-musl/linux/if_vlan.h b/libc/include/any-linux-any/linux/if_vlan.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_vlan.h
rename to libc/include/any-linux-any/linux/if_vlan.h
diff --git a/libc/include/generic-musl/linux/if_x25.h b/libc/include/any-linux-any/linux/if_x25.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_x25.h
rename to libc/include/any-linux-any/linux/if_x25.h
diff --git a/libc/include/generic-musl/linux/if_xdp.h b/libc/include/any-linux-any/linux/if_xdp.h
similarity index 100%
rename from libc/include/generic-musl/linux/if_xdp.h
rename to libc/include/any-linux-any/linux/if_xdp.h
diff --git a/libc/include/generic-musl/linux/ife.h b/libc/include/any-linux-any/linux/ife.h
similarity index 100%
rename from libc/include/generic-musl/linux/ife.h
rename to libc/include/any-linux-any/linux/ife.h
diff --git a/libc/include/generic-musl/linux/igmp.h b/libc/include/any-linux-any/linux/igmp.h
similarity index 100%
rename from libc/include/generic-musl/linux/igmp.h
rename to libc/include/any-linux-any/linux/igmp.h
diff --git a/libc/include/generic-musl/linux/iio/events.h b/libc/include/any-linux-any/linux/iio/events.h
similarity index 100%
rename from libc/include/generic-musl/linux/iio/events.h
rename to libc/include/any-linux-any/linux/iio/events.h
diff --git a/libc/include/generic-musl/linux/iio/types.h b/libc/include/any-linux-any/linux/iio/types.h
similarity index 100%
rename from libc/include/generic-musl/linux/iio/types.h
rename to libc/include/any-linux-any/linux/iio/types.h
diff --git a/libc/include/generic-musl/linux/ila.h b/libc/include/any-linux-any/linux/ila.h
similarity index 100%
rename from libc/include/generic-musl/linux/ila.h
rename to libc/include/any-linux-any/linux/ila.h
diff --git a/libc/include/generic-musl/linux/in.h b/libc/include/any-linux-any/linux/in.h
similarity index 100%
rename from libc/include/generic-musl/linux/in.h
rename to libc/include/any-linux-any/linux/in.h
diff --git a/libc/include/generic-musl/linux/in6.h b/libc/include/any-linux-any/linux/in6.h
similarity index 100%
rename from libc/include/generic-musl/linux/in6.h
rename to libc/include/any-linux-any/linux/in6.h
diff --git a/libc/include/generic-musl/linux/in_route.h b/libc/include/any-linux-any/linux/in_route.h
similarity index 100%
rename from libc/include/generic-musl/linux/in_route.h
rename to libc/include/any-linux-any/linux/in_route.h
diff --git a/libc/include/generic-musl/linux/inet_diag.h b/libc/include/any-linux-any/linux/inet_diag.h
similarity index 100%
rename from libc/include/generic-musl/linux/inet_diag.h
rename to libc/include/any-linux-any/linux/inet_diag.h
diff --git a/libc/include/generic-musl/linux/inotify.h b/libc/include/any-linux-any/linux/inotify.h
similarity index 100%
rename from libc/include/generic-musl/linux/inotify.h
rename to libc/include/any-linux-any/linux/inotify.h
diff --git a/libc/include/generic-musl/linux/input-event-codes.h b/libc/include/any-linux-any/linux/input-event-codes.h
similarity index 100%
rename from libc/include/generic-musl/linux/input-event-codes.h
rename to libc/include/any-linux-any/linux/input-event-codes.h
diff --git a/libc/include/generic-musl/linux/input.h b/libc/include/any-linux-any/linux/input.h
similarity index 100%
rename from libc/include/generic-musl/linux/input.h
rename to libc/include/any-linux-any/linux/input.h
diff --git a/libc/include/generic-musl/linux/ioctl.h b/libc/include/any-linux-any/linux/ioctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/ioctl.h
rename to libc/include/any-linux-any/linux/ioctl.h
diff --git a/libc/include/generic-musl/linux/ip.h b/libc/include/any-linux-any/linux/ip.h
similarity index 100%
rename from libc/include/generic-musl/linux/ip.h
rename to libc/include/any-linux-any/linux/ip.h
diff --git a/libc/include/generic-musl/linux/ip6_tunnel.h b/libc/include/any-linux-any/linux/ip6_tunnel.h
similarity index 100%
rename from libc/include/generic-musl/linux/ip6_tunnel.h
rename to libc/include/any-linux-any/linux/ip6_tunnel.h
diff --git a/libc/include/generic-musl/linux/ip_vs.h b/libc/include/any-linux-any/linux/ip_vs.h
similarity index 100%
rename from libc/include/generic-musl/linux/ip_vs.h
rename to libc/include/any-linux-any/linux/ip_vs.h
diff --git a/libc/include/generic-musl/linux/ipc.h b/libc/include/any-linux-any/linux/ipc.h
similarity index 100%
rename from libc/include/generic-musl/linux/ipc.h
rename to libc/include/any-linux-any/linux/ipc.h
diff --git a/libc/include/generic-musl/linux/ipmi.h b/libc/include/any-linux-any/linux/ipmi.h
similarity index 100%
rename from libc/include/generic-musl/linux/ipmi.h
rename to libc/include/any-linux-any/linux/ipmi.h
diff --git a/libc/include/generic-musl/linux/ipmi_bmc.h b/libc/include/any-linux-any/linux/ipmi_bmc.h
similarity index 100%
rename from libc/include/generic-musl/linux/ipmi_bmc.h
rename to libc/include/any-linux-any/linux/ipmi_bmc.h
diff --git a/libc/include/generic-musl/linux/ipmi_msgdefs.h b/libc/include/any-linux-any/linux/ipmi_msgdefs.h
similarity index 100%
rename from libc/include/generic-musl/linux/ipmi_msgdefs.h
rename to libc/include/any-linux-any/linux/ipmi_msgdefs.h
diff --git a/libc/include/generic-musl/linux/ipsec.h b/libc/include/any-linux-any/linux/ipsec.h
similarity index 100%
rename from libc/include/generic-musl/linux/ipsec.h
rename to libc/include/any-linux-any/linux/ipsec.h
diff --git a/libc/include/generic-musl/linux/ipv6.h b/libc/include/any-linux-any/linux/ipv6.h
similarity index 100%
rename from libc/include/generic-musl/linux/ipv6.h
rename to libc/include/any-linux-any/linux/ipv6.h
diff --git a/libc/include/generic-musl/linux/ipv6_route.h b/libc/include/any-linux-any/linux/ipv6_route.h
similarity index 100%
rename from libc/include/generic-musl/linux/ipv6_route.h
rename to libc/include/any-linux-any/linux/ipv6_route.h
diff --git a/libc/include/generic-musl/linux/ipx.h b/libc/include/any-linux-any/linux/ipx.h
similarity index 100%
rename from libc/include/generic-musl/linux/ipx.h
rename to libc/include/any-linux-any/linux/ipx.h
diff --git a/libc/include/generic-musl/linux/irqnr.h b/libc/include/any-linux-any/linux/irqnr.h
similarity index 100%
rename from libc/include/generic-musl/linux/irqnr.h
rename to libc/include/any-linux-any/linux/irqnr.h
diff --git a/libc/include/generic-musl/linux/isdn.h b/libc/include/any-linux-any/linux/isdn.h
similarity index 100%
rename from libc/include/generic-musl/linux/isdn.h
rename to libc/include/any-linux-any/linux/isdn.h
diff --git a/libc/include/generic-musl/linux/isdn/capicmd.h b/libc/include/any-linux-any/linux/isdn/capicmd.h
similarity index 100%
rename from libc/include/generic-musl/linux/isdn/capicmd.h
rename to libc/include/any-linux-any/linux/isdn/capicmd.h
diff --git a/libc/include/generic-musl/linux/isdn_divertif.h b/libc/include/any-linux-any/linux/isdn_divertif.h
similarity index 100%
rename from libc/include/generic-musl/linux/isdn_divertif.h
rename to libc/include/any-linux-any/linux/isdn_divertif.h
diff --git a/libc/include/generic-musl/linux/isdn_ppp.h b/libc/include/any-linux-any/linux/isdn_ppp.h
similarity index 100%
rename from libc/include/generic-musl/linux/isdn_ppp.h
rename to libc/include/any-linux-any/linux/isdn_ppp.h
diff --git a/libc/include/generic-musl/linux/isdnif.h b/libc/include/any-linux-any/linux/isdnif.h
similarity index 100%
rename from libc/include/generic-musl/linux/isdnif.h
rename to libc/include/any-linux-any/linux/isdnif.h
diff --git a/libc/include/generic-musl/linux/iso_fs.h b/libc/include/any-linux-any/linux/iso_fs.h
similarity index 100%
rename from libc/include/generic-musl/linux/iso_fs.h
rename to libc/include/any-linux-any/linux/iso_fs.h
diff --git a/libc/include/generic-musl/linux/ivtv.h b/libc/include/any-linux-any/linux/ivtv.h
similarity index 100%
rename from libc/include/generic-musl/linux/ivtv.h
rename to libc/include/any-linux-any/linux/ivtv.h
diff --git a/libc/include/generic-musl/linux/ivtvfb.h b/libc/include/any-linux-any/linux/ivtvfb.h
similarity index 100%
rename from libc/include/generic-musl/linux/ivtvfb.h
rename to libc/include/any-linux-any/linux/ivtvfb.h
diff --git a/libc/include/generic-musl/linux/jffs2.h b/libc/include/any-linux-any/linux/jffs2.h
similarity index 100%
rename from libc/include/generic-musl/linux/jffs2.h
rename to libc/include/any-linux-any/linux/jffs2.h
diff --git a/libc/include/generic-musl/linux/joystick.h b/libc/include/any-linux-any/linux/joystick.h
similarity index 100%
rename from libc/include/generic-musl/linux/joystick.h
rename to libc/include/any-linux-any/linux/joystick.h
diff --git a/libc/include/generic-musl/linux/kcm.h b/libc/include/any-linux-any/linux/kcm.h
similarity index 100%
rename from libc/include/generic-musl/linux/kcm.h
rename to libc/include/any-linux-any/linux/kcm.h
diff --git a/libc/include/generic-musl/linux/kcmp.h b/libc/include/any-linux-any/linux/kcmp.h
similarity index 100%
rename from libc/include/generic-musl/linux/kcmp.h
rename to libc/include/any-linux-any/linux/kcmp.h
diff --git a/libc/include/generic-musl/linux/kcov.h b/libc/include/any-linux-any/linux/kcov.h
similarity index 100%
rename from libc/include/generic-musl/linux/kcov.h
rename to libc/include/any-linux-any/linux/kcov.h
diff --git a/libc/include/generic-musl/linux/kd.h b/libc/include/any-linux-any/linux/kd.h
similarity index 100%
rename from libc/include/generic-musl/linux/kd.h
rename to libc/include/any-linux-any/linux/kd.h
diff --git a/libc/include/generic-musl/linux/kdev_t.h b/libc/include/any-linux-any/linux/kdev_t.h
similarity index 100%
rename from libc/include/generic-musl/linux/kdev_t.h
rename to libc/include/any-linux-any/linux/kdev_t.h
diff --git a/libc/include/generic-musl/linux/kernel-page-flags.h b/libc/include/any-linux-any/linux/kernel-page-flags.h
similarity index 100%
rename from libc/include/generic-musl/linux/kernel-page-flags.h
rename to libc/include/any-linux-any/linux/kernel-page-flags.h
diff --git a/libc/include/generic-musl/linux/kernel.h b/libc/include/any-linux-any/linux/kernel.h
similarity index 100%
rename from libc/include/generic-musl/linux/kernel.h
rename to libc/include/any-linux-any/linux/kernel.h
diff --git a/libc/include/generic-musl/linux/kernelcapi.h b/libc/include/any-linux-any/linux/kernelcapi.h
similarity index 100%
rename from libc/include/generic-musl/linux/kernelcapi.h
rename to libc/include/any-linux-any/linux/kernelcapi.h
diff --git a/libc/include/generic-musl/linux/kexec.h b/libc/include/any-linux-any/linux/kexec.h
similarity index 100%
rename from libc/include/generic-musl/linux/kexec.h
rename to libc/include/any-linux-any/linux/kexec.h
diff --git a/libc/include/generic-musl/linux/keyboard.h b/libc/include/any-linux-any/linux/keyboard.h
similarity index 100%
rename from libc/include/generic-musl/linux/keyboard.h
rename to libc/include/any-linux-any/linux/keyboard.h
diff --git a/libc/include/generic-musl/linux/keyctl.h b/libc/include/any-linux-any/linux/keyctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/keyctl.h
rename to libc/include/any-linux-any/linux/keyctl.h
diff --git a/libc/include/generic-musl/linux/kfd_ioctl.h b/libc/include/any-linux-any/linux/kfd_ioctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/kfd_ioctl.h
rename to libc/include/any-linux-any/linux/kfd_ioctl.h
diff --git a/libc/include/generic-musl/linux/kvm.h b/libc/include/any-linux-any/linux/kvm.h
similarity index 100%
rename from libc/include/generic-musl/linux/kvm.h
rename to libc/include/any-linux-any/linux/kvm.h
diff --git a/libc/include/generic-musl/linux/kvm_para.h b/libc/include/any-linux-any/linux/kvm_para.h
similarity index 100%
rename from libc/include/generic-musl/linux/kvm_para.h
rename to libc/include/any-linux-any/linux/kvm_para.h
diff --git a/libc/include/generic-musl/linux/l2tp.h b/libc/include/any-linux-any/linux/l2tp.h
similarity index 100%
rename from libc/include/generic-musl/linux/l2tp.h
rename to libc/include/any-linux-any/linux/l2tp.h
diff --git a/libc/include/generic-musl/linux/libc-compat.h b/libc/include/any-linux-any/linux/libc-compat.h
similarity index 100%
rename from libc/include/generic-musl/linux/libc-compat.h
rename to libc/include/any-linux-any/linux/libc-compat.h
diff --git a/libc/include/generic-musl/linux/lightnvm.h b/libc/include/any-linux-any/linux/lightnvm.h
similarity index 100%
rename from libc/include/generic-musl/linux/lightnvm.h
rename to libc/include/any-linux-any/linux/lightnvm.h
diff --git a/libc/include/generic-musl/linux/limits.h b/libc/include/any-linux-any/linux/limits.h
similarity index 100%
rename from libc/include/generic-musl/linux/limits.h
rename to libc/include/any-linux-any/linux/limits.h
diff --git a/libc/include/generic-musl/linux/lirc.h b/libc/include/any-linux-any/linux/lirc.h
similarity index 100%
rename from libc/include/generic-musl/linux/lirc.h
rename to libc/include/any-linux-any/linux/lirc.h
diff --git a/libc/include/generic-musl/linux/llc.h b/libc/include/any-linux-any/linux/llc.h
similarity index 100%
rename from libc/include/generic-musl/linux/llc.h
rename to libc/include/any-linux-any/linux/llc.h
diff --git a/libc/include/generic-musl/linux/loop.h b/libc/include/any-linux-any/linux/loop.h
similarity index 100%
rename from libc/include/generic-musl/linux/loop.h
rename to libc/include/any-linux-any/linux/loop.h
diff --git a/libc/include/generic-musl/linux/lp.h b/libc/include/any-linux-any/linux/lp.h
similarity index 100%
rename from libc/include/generic-musl/linux/lp.h
rename to libc/include/any-linux-any/linux/lp.h
diff --git a/libc/include/generic-musl/linux/lwtunnel.h b/libc/include/any-linux-any/linux/lwtunnel.h
similarity index 100%
rename from libc/include/generic-musl/linux/lwtunnel.h
rename to libc/include/any-linux-any/linux/lwtunnel.h
diff --git a/libc/include/generic-musl/linux/magic.h b/libc/include/any-linux-any/linux/magic.h
similarity index 100%
rename from libc/include/generic-musl/linux/magic.h
rename to libc/include/any-linux-any/linux/magic.h
diff --git a/libc/include/generic-musl/linux/major.h b/libc/include/any-linux-any/linux/major.h
similarity index 100%
rename from libc/include/generic-musl/linux/major.h
rename to libc/include/any-linux-any/linux/major.h
diff --git a/libc/include/generic-musl/linux/map_to_7segment.h b/libc/include/any-linux-any/linux/map_to_7segment.h
similarity index 100%
rename from libc/include/generic-musl/linux/map_to_7segment.h
rename to libc/include/any-linux-any/linux/map_to_7segment.h
diff --git a/libc/include/generic-musl/linux/matroxfb.h b/libc/include/any-linux-any/linux/matroxfb.h
similarity index 100%
rename from libc/include/generic-musl/linux/matroxfb.h
rename to libc/include/any-linux-any/linux/matroxfb.h
diff --git a/libc/include/generic-musl/linux/max2175.h b/libc/include/any-linux-any/linux/max2175.h
similarity index 100%
rename from libc/include/generic-musl/linux/max2175.h
rename to libc/include/any-linux-any/linux/max2175.h
diff --git a/libc/include/generic-musl/linux/mdio.h b/libc/include/any-linux-any/linux/mdio.h
similarity index 100%
rename from libc/include/generic-musl/linux/mdio.h
rename to libc/include/any-linux-any/linux/mdio.h
diff --git a/libc/include/generic-musl/linux/media-bus-format.h b/libc/include/any-linux-any/linux/media-bus-format.h
similarity index 100%
rename from libc/include/generic-musl/linux/media-bus-format.h
rename to libc/include/any-linux-any/linux/media-bus-format.h
diff --git a/libc/include/generic-musl/linux/media.h b/libc/include/any-linux-any/linux/media.h
similarity index 100%
rename from libc/include/generic-musl/linux/media.h
rename to libc/include/any-linux-any/linux/media.h
diff --git a/libc/include/generic-musl/linux/mei.h b/libc/include/any-linux-any/linux/mei.h
similarity index 100%
rename from libc/include/generic-musl/linux/mei.h
rename to libc/include/any-linux-any/linux/mei.h
diff --git a/libc/include/generic-musl/linux/membarrier.h b/libc/include/any-linux-any/linux/membarrier.h
similarity index 100%
rename from libc/include/generic-musl/linux/membarrier.h
rename to libc/include/any-linux-any/linux/membarrier.h
diff --git a/libc/include/generic-musl/linux/memfd.h b/libc/include/any-linux-any/linux/memfd.h
similarity index 100%
rename from libc/include/generic-musl/linux/memfd.h
rename to libc/include/any-linux-any/linux/memfd.h
diff --git a/libc/include/generic-musl/linux/mempolicy.h b/libc/include/any-linux-any/linux/mempolicy.h
similarity index 100%
rename from libc/include/generic-musl/linux/mempolicy.h
rename to libc/include/any-linux-any/linux/mempolicy.h
diff --git a/libc/include/generic-musl/linux/meye.h b/libc/include/any-linux-any/linux/meye.h
similarity index 100%
rename from libc/include/generic-musl/linux/meye.h
rename to libc/include/any-linux-any/linux/meye.h
diff --git a/libc/include/generic-musl/linux/mic_common.h b/libc/include/any-linux-any/linux/mic_common.h
similarity index 100%
rename from libc/include/generic-musl/linux/mic_common.h
rename to libc/include/any-linux-any/linux/mic_common.h
diff --git a/libc/include/generic-musl/linux/mic_ioctl.h b/libc/include/any-linux-any/linux/mic_ioctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/mic_ioctl.h
rename to libc/include/any-linux-any/linux/mic_ioctl.h
diff --git a/libc/include/generic-musl/linux/mii.h b/libc/include/any-linux-any/linux/mii.h
similarity index 100%
rename from libc/include/generic-musl/linux/mii.h
rename to libc/include/any-linux-any/linux/mii.h
diff --git a/libc/include/generic-musl/linux/minix_fs.h b/libc/include/any-linux-any/linux/minix_fs.h
similarity index 100%
rename from libc/include/generic-musl/linux/minix_fs.h
rename to libc/include/any-linux-any/linux/minix_fs.h
diff --git a/libc/include/generic-musl/linux/mman.h b/libc/include/any-linux-any/linux/mman.h
similarity index 100%
rename from libc/include/generic-musl/linux/mman.h
rename to libc/include/any-linux-any/linux/mman.h
diff --git a/libc/include/generic-musl/linux/mmc/ioctl.h b/libc/include/any-linux-any/linux/mmc/ioctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/mmc/ioctl.h
rename to libc/include/any-linux-any/linux/mmc/ioctl.h
diff --git a/libc/include/generic-musl/linux/mmtimer.h b/libc/include/any-linux-any/linux/mmtimer.h
similarity index 100%
rename from libc/include/generic-musl/linux/mmtimer.h
rename to libc/include/any-linux-any/linux/mmtimer.h
diff --git a/libc/include/generic-musl/linux/module.h b/libc/include/any-linux-any/linux/module.h
similarity index 100%
rename from libc/include/generic-musl/linux/module.h
rename to libc/include/any-linux-any/linux/module.h
diff --git a/libc/include/generic-musl/linux/mpls.h b/libc/include/any-linux-any/linux/mpls.h
similarity index 100%
rename from libc/include/generic-musl/linux/mpls.h
rename to libc/include/any-linux-any/linux/mpls.h
diff --git a/libc/include/generic-musl/linux/mpls_iptunnel.h b/libc/include/any-linux-any/linux/mpls_iptunnel.h
similarity index 100%
rename from libc/include/generic-musl/linux/mpls_iptunnel.h
rename to libc/include/any-linux-any/linux/mpls_iptunnel.h
diff --git a/libc/include/generic-musl/linux/mqueue.h b/libc/include/any-linux-any/linux/mqueue.h
similarity index 100%
rename from libc/include/generic-musl/linux/mqueue.h
rename to libc/include/any-linux-any/linux/mqueue.h
diff --git a/libc/include/generic-musl/linux/mroute.h b/libc/include/any-linux-any/linux/mroute.h
similarity index 100%
rename from libc/include/generic-musl/linux/mroute.h
rename to libc/include/any-linux-any/linux/mroute.h
diff --git a/libc/include/generic-musl/linux/mroute6.h b/libc/include/any-linux-any/linux/mroute6.h
similarity index 100%
rename from libc/include/generic-musl/linux/mroute6.h
rename to libc/include/any-linux-any/linux/mroute6.h
diff --git a/libc/include/generic-musl/linux/msdos_fs.h b/libc/include/any-linux-any/linux/msdos_fs.h
similarity index 100%
rename from libc/include/generic-musl/linux/msdos_fs.h
rename to libc/include/any-linux-any/linux/msdos_fs.h
diff --git a/libc/include/generic-musl/linux/msg.h b/libc/include/any-linux-any/linux/msg.h
similarity index 100%
rename from libc/include/generic-musl/linux/msg.h
rename to libc/include/any-linux-any/linux/msg.h
diff --git a/libc/include/generic-musl/linux/mtio.h b/libc/include/any-linux-any/linux/mtio.h
similarity index 100%
rename from libc/include/generic-musl/linux/mtio.h
rename to libc/include/any-linux-any/linux/mtio.h
diff --git a/libc/include/generic-musl/linux/n_r3964.h b/libc/include/any-linux-any/linux/n_r3964.h
similarity index 100%
rename from libc/include/generic-musl/linux/n_r3964.h
rename to libc/include/any-linux-any/linux/n_r3964.h
diff --git a/libc/include/generic-musl/linux/nbd-netlink.h b/libc/include/any-linux-any/linux/nbd-netlink.h
similarity index 100%
rename from libc/include/generic-musl/linux/nbd-netlink.h
rename to libc/include/any-linux-any/linux/nbd-netlink.h
diff --git a/libc/include/generic-musl/linux/nbd.h b/libc/include/any-linux-any/linux/nbd.h
similarity index 100%
rename from libc/include/generic-musl/linux/nbd.h
rename to libc/include/any-linux-any/linux/nbd.h
diff --git a/libc/include/generic-musl/linux/ncsi.h b/libc/include/any-linux-any/linux/ncsi.h
similarity index 100%
rename from libc/include/generic-musl/linux/ncsi.h
rename to libc/include/any-linux-any/linux/ncsi.h
diff --git a/libc/include/generic-musl/linux/ndctl.h b/libc/include/any-linux-any/linux/ndctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/ndctl.h
rename to libc/include/any-linux-any/linux/ndctl.h
diff --git a/libc/include/generic-musl/linux/neighbour.h b/libc/include/any-linux-any/linux/neighbour.h
similarity index 100%
rename from libc/include/generic-musl/linux/neighbour.h
rename to libc/include/any-linux-any/linux/neighbour.h
diff --git a/libc/include/generic-musl/linux/net.h b/libc/include/any-linux-any/linux/net.h
similarity index 100%
rename from libc/include/generic-musl/linux/net.h
rename to libc/include/any-linux-any/linux/net.h
diff --git a/libc/include/generic-musl/linux/net_dropmon.h b/libc/include/any-linux-any/linux/net_dropmon.h
similarity index 100%
rename from libc/include/generic-musl/linux/net_dropmon.h
rename to libc/include/any-linux-any/linux/net_dropmon.h
diff --git a/libc/include/generic-musl/linux/net_namespace.h b/libc/include/any-linux-any/linux/net_namespace.h
similarity index 100%
rename from libc/include/generic-musl/linux/net_namespace.h
rename to libc/include/any-linux-any/linux/net_namespace.h
diff --git a/libc/include/generic-musl/linux/net_tstamp.h b/libc/include/any-linux-any/linux/net_tstamp.h
similarity index 100%
rename from libc/include/generic-musl/linux/net_tstamp.h
rename to libc/include/any-linux-any/linux/net_tstamp.h
diff --git a/libc/include/generic-musl/linux/netconf.h b/libc/include/any-linux-any/linux/netconf.h
similarity index 100%
rename from libc/include/generic-musl/linux/netconf.h
rename to libc/include/any-linux-any/linux/netconf.h
diff --git a/libc/include/generic-musl/linux/netdevice.h b/libc/include/any-linux-any/linux/netdevice.h
similarity index 100%
rename from libc/include/generic-musl/linux/netdevice.h
rename to libc/include/any-linux-any/linux/netdevice.h
diff --git a/libc/include/generic-musl/linux/netfilter.h b/libc/include/any-linux-any/linux/netfilter.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter.h
rename to libc/include/any-linux-any/linux/netfilter.h
diff --git a/libc/include/generic-musl/linux/netfilter/ipset/ip_set.h b/libc/include/any-linux-any/linux/netfilter/ipset/ip_set.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/ipset/ip_set.h
rename to libc/include/any-linux-any/linux/netfilter/ipset/ip_set.h
diff --git a/libc/include/generic-musl/linux/netfilter/ipset/ip_set_bitmap.h b/libc/include/any-linux-any/linux/netfilter/ipset/ip_set_bitmap.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/ipset/ip_set_bitmap.h
rename to libc/include/any-linux-any/linux/netfilter/ipset/ip_set_bitmap.h
diff --git a/libc/include/generic-musl/linux/netfilter/ipset/ip_set_hash.h b/libc/include/any-linux-any/linux/netfilter/ipset/ip_set_hash.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/ipset/ip_set_hash.h
rename to libc/include/any-linux-any/linux/netfilter/ipset/ip_set_hash.h
diff --git a/libc/include/generic-musl/linux/netfilter/ipset/ip_set_list.h b/libc/include/any-linux-any/linux/netfilter/ipset/ip_set_list.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/ipset/ip_set_list.h
rename to libc/include/any-linux-any/linux/netfilter/ipset/ip_set_list.h
diff --git a/libc/include/generic-musl/linux/netfilter/nf_conntrack_common.h b/libc/include/any-linux-any/linux/netfilter/nf_conntrack_common.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nf_conntrack_common.h
rename to libc/include/any-linux-any/linux/netfilter/nf_conntrack_common.h
diff --git a/libc/include/generic-musl/linux/netfilter/nf_conntrack_ftp.h b/libc/include/any-linux-any/linux/netfilter/nf_conntrack_ftp.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nf_conntrack_ftp.h
rename to libc/include/any-linux-any/linux/netfilter/nf_conntrack_ftp.h
diff --git a/libc/include/generic-musl/linux/netfilter/nf_conntrack_sctp.h b/libc/include/any-linux-any/linux/netfilter/nf_conntrack_sctp.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nf_conntrack_sctp.h
rename to libc/include/any-linux-any/linux/netfilter/nf_conntrack_sctp.h
diff --git a/libc/include/generic-musl/linux/netfilter/nf_conntrack_tcp.h b/libc/include/any-linux-any/linux/netfilter/nf_conntrack_tcp.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nf_conntrack_tcp.h
rename to libc/include/any-linux-any/linux/netfilter/nf_conntrack_tcp.h
diff --git a/libc/include/generic-musl/linux/netfilter/nf_conntrack_tuple_common.h b/libc/include/any-linux-any/linux/netfilter/nf_conntrack_tuple_common.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nf_conntrack_tuple_common.h
rename to libc/include/any-linux-any/linux/netfilter/nf_conntrack_tuple_common.h
diff --git a/libc/include/generic-musl/linux/netfilter/nf_log.h b/libc/include/any-linux-any/linux/netfilter/nf_log.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nf_log.h
rename to libc/include/any-linux-any/linux/netfilter/nf_log.h
diff --git a/libc/include/generic-musl/linux/netfilter/nf_nat.h b/libc/include/any-linux-any/linux/netfilter/nf_nat.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nf_nat.h
rename to libc/include/any-linux-any/linux/netfilter/nf_nat.h
diff --git a/libc/include/generic-musl/linux/netfilter/nf_tables.h b/libc/include/any-linux-any/linux/netfilter/nf_tables.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nf_tables.h
rename to libc/include/any-linux-any/linux/netfilter/nf_tables.h
diff --git a/libc/include/generic-musl/linux/netfilter/nf_tables_compat.h b/libc/include/any-linux-any/linux/netfilter/nf_tables_compat.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nf_tables_compat.h
rename to libc/include/any-linux-any/linux/netfilter/nf_tables_compat.h
diff --git a/libc/include/generic-musl/linux/netfilter/nfnetlink.h b/libc/include/any-linux-any/linux/netfilter/nfnetlink.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nfnetlink.h
rename to libc/include/any-linux-any/linux/netfilter/nfnetlink.h
diff --git a/libc/include/generic-musl/linux/netfilter/nfnetlink_acct.h b/libc/include/any-linux-any/linux/netfilter/nfnetlink_acct.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nfnetlink_acct.h
rename to libc/include/any-linux-any/linux/netfilter/nfnetlink_acct.h
diff --git a/libc/include/generic-musl/linux/netfilter/nfnetlink_compat.h b/libc/include/any-linux-any/linux/netfilter/nfnetlink_compat.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nfnetlink_compat.h
rename to libc/include/any-linux-any/linux/netfilter/nfnetlink_compat.h
diff --git a/libc/include/generic-musl/linux/netfilter/nfnetlink_conntrack.h b/libc/include/any-linux-any/linux/netfilter/nfnetlink_conntrack.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nfnetlink_conntrack.h
rename to libc/include/any-linux-any/linux/netfilter/nfnetlink_conntrack.h
diff --git a/libc/include/generic-musl/linux/netfilter/nfnetlink_cthelper.h b/libc/include/any-linux-any/linux/netfilter/nfnetlink_cthelper.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nfnetlink_cthelper.h
rename to libc/include/any-linux-any/linux/netfilter/nfnetlink_cthelper.h
diff --git a/libc/include/generic-musl/linux/netfilter/nfnetlink_cttimeout.h b/libc/include/any-linux-any/linux/netfilter/nfnetlink_cttimeout.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nfnetlink_cttimeout.h
rename to libc/include/any-linux-any/linux/netfilter/nfnetlink_cttimeout.h
diff --git a/libc/include/generic-musl/linux/netfilter/nfnetlink_log.h b/libc/include/any-linux-any/linux/netfilter/nfnetlink_log.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nfnetlink_log.h
rename to libc/include/any-linux-any/linux/netfilter/nfnetlink_log.h
diff --git a/libc/include/generic-musl/linux/netfilter/nfnetlink_osf.h b/libc/include/any-linux-any/linux/netfilter/nfnetlink_osf.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nfnetlink_osf.h
rename to libc/include/any-linux-any/linux/netfilter/nfnetlink_osf.h
diff --git a/libc/include/generic-musl/linux/netfilter/nfnetlink_queue.h b/libc/include/any-linux-any/linux/netfilter/nfnetlink_queue.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/nfnetlink_queue.h
rename to libc/include/any-linux-any/linux/netfilter/nfnetlink_queue.h
diff --git a/libc/include/generic-musl/linux/netfilter/x_tables.h b/libc/include/any-linux-any/linux/netfilter/x_tables.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/x_tables.h
rename to libc/include/any-linux-any/linux/netfilter/x_tables.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_AUDIT.h b/libc/include/any-linux-any/linux/netfilter/xt_AUDIT.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_AUDIT.h
rename to libc/include/any-linux-any/linux/netfilter/xt_AUDIT.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_CHECKSUM.h b/libc/include/any-linux-any/linux/netfilter/xt_CHECKSUM.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_CHECKSUM.h
rename to libc/include/any-linux-any/linux/netfilter/xt_CHECKSUM.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_CLASSIFY.h b/libc/include/any-linux-any/linux/netfilter/xt_CLASSIFY.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_CLASSIFY.h
rename to libc/include/any-linux-any/linux/netfilter/xt_CLASSIFY.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_CONNSECMARK.h b/libc/include/any-linux-any/linux/netfilter/xt_CONNSECMARK.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_CONNSECMARK.h
rename to libc/include/any-linux-any/linux/netfilter/xt_CONNSECMARK.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_CT.h b/libc/include/any-linux-any/linux/netfilter/xt_CT.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_CT.h
rename to libc/include/any-linux-any/linux/netfilter/xt_CT.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_HMARK.h b/libc/include/any-linux-any/linux/netfilter/xt_HMARK.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_HMARK.h
rename to libc/include/any-linux-any/linux/netfilter/xt_HMARK.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_IDLETIMER.h b/libc/include/any-linux-any/linux/netfilter/xt_IDLETIMER.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_IDLETIMER.h
rename to libc/include/any-linux-any/linux/netfilter/xt_IDLETIMER.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_LED.h b/libc/include/any-linux-any/linux/netfilter/xt_LED.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_LED.h
rename to libc/include/any-linux-any/linux/netfilter/xt_LED.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_LOG.h b/libc/include/any-linux-any/linux/netfilter/xt_LOG.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_LOG.h
rename to libc/include/any-linux-any/linux/netfilter/xt_LOG.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_NFLOG.h b/libc/include/any-linux-any/linux/netfilter/xt_NFLOG.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_NFLOG.h
rename to libc/include/any-linux-any/linux/netfilter/xt_NFLOG.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_NFQUEUE.h b/libc/include/any-linux-any/linux/netfilter/xt_NFQUEUE.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_NFQUEUE.h
rename to libc/include/any-linux-any/linux/netfilter/xt_NFQUEUE.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_SECMARK.h b/libc/include/any-linux-any/linux/netfilter/xt_SECMARK.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_SECMARK.h
rename to libc/include/any-linux-any/linux/netfilter/xt_SECMARK.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_SYNPROXY.h b/libc/include/any-linux-any/linux/netfilter/xt_SYNPROXY.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_SYNPROXY.h
rename to libc/include/any-linux-any/linux/netfilter/xt_SYNPROXY.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_TCPOPTSTRIP.h b/libc/include/any-linux-any/linux/netfilter/xt_TCPOPTSTRIP.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_TCPOPTSTRIP.h
rename to libc/include/any-linux-any/linux/netfilter/xt_TCPOPTSTRIP.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_TEE.h b/libc/include/any-linux-any/linux/netfilter/xt_TEE.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_TEE.h
rename to libc/include/any-linux-any/linux/netfilter/xt_TEE.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_TPROXY.h b/libc/include/any-linux-any/linux/netfilter/xt_TPROXY.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_TPROXY.h
rename to libc/include/any-linux-any/linux/netfilter/xt_TPROXY.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_addrtype.h b/libc/include/any-linux-any/linux/netfilter/xt_addrtype.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_addrtype.h
rename to libc/include/any-linux-any/linux/netfilter/xt_addrtype.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_bpf.h b/libc/include/any-linux-any/linux/netfilter/xt_bpf.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_bpf.h
rename to libc/include/any-linux-any/linux/netfilter/xt_bpf.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_cgroup.h b/libc/include/any-linux-any/linux/netfilter/xt_cgroup.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_cgroup.h
rename to libc/include/any-linux-any/linux/netfilter/xt_cgroup.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_cluster.h b/libc/include/any-linux-any/linux/netfilter/xt_cluster.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_cluster.h
rename to libc/include/any-linux-any/linux/netfilter/xt_cluster.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_comment.h b/libc/include/any-linux-any/linux/netfilter/xt_comment.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_comment.h
rename to libc/include/any-linux-any/linux/netfilter/xt_comment.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_connbytes.h b/libc/include/any-linux-any/linux/netfilter/xt_connbytes.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_connbytes.h
rename to libc/include/any-linux-any/linux/netfilter/xt_connbytes.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_connlabel.h b/libc/include/any-linux-any/linux/netfilter/xt_connlabel.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_connlabel.h
rename to libc/include/any-linux-any/linux/netfilter/xt_connlabel.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_connlimit.h b/libc/include/any-linux-any/linux/netfilter/xt_connlimit.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_connlimit.h
rename to libc/include/any-linux-any/linux/netfilter/xt_connlimit.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_connmark.h b/libc/include/any-linux-any/linux/netfilter/xt_connmark.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_connmark.h
rename to libc/include/any-linux-any/linux/netfilter/xt_connmark.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_conntrack.h b/libc/include/any-linux-any/linux/netfilter/xt_conntrack.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_conntrack.h
rename to libc/include/any-linux-any/linux/netfilter/xt_conntrack.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_cpu.h b/libc/include/any-linux-any/linux/netfilter/xt_cpu.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_cpu.h
rename to libc/include/any-linux-any/linux/netfilter/xt_cpu.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_dccp.h b/libc/include/any-linux-any/linux/netfilter/xt_dccp.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_dccp.h
rename to libc/include/any-linux-any/linux/netfilter/xt_dccp.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_devgroup.h b/libc/include/any-linux-any/linux/netfilter/xt_devgroup.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_devgroup.h
rename to libc/include/any-linux-any/linux/netfilter/xt_devgroup.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_dscp.h b/libc/include/any-linux-any/linux/netfilter/xt_dscp.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_dscp.h
rename to libc/include/any-linux-any/linux/netfilter/xt_dscp.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_ecn.h b/libc/include/any-linux-any/linux/netfilter/xt_ecn.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_ecn.h
rename to libc/include/any-linux-any/linux/netfilter/xt_ecn.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_esp.h b/libc/include/any-linux-any/linux/netfilter/xt_esp.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_esp.h
rename to libc/include/any-linux-any/linux/netfilter/xt_esp.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_hashlimit.h b/libc/include/any-linux-any/linux/netfilter/xt_hashlimit.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_hashlimit.h
rename to libc/include/any-linux-any/linux/netfilter/xt_hashlimit.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_helper.h b/libc/include/any-linux-any/linux/netfilter/xt_helper.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_helper.h
rename to libc/include/any-linux-any/linux/netfilter/xt_helper.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_ipcomp.h b/libc/include/any-linux-any/linux/netfilter/xt_ipcomp.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_ipcomp.h
rename to libc/include/any-linux-any/linux/netfilter/xt_ipcomp.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_iprange.h b/libc/include/any-linux-any/linux/netfilter/xt_iprange.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_iprange.h
rename to libc/include/any-linux-any/linux/netfilter/xt_iprange.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_ipvs.h b/libc/include/any-linux-any/linux/netfilter/xt_ipvs.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_ipvs.h
rename to libc/include/any-linux-any/linux/netfilter/xt_ipvs.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_l2tp.h b/libc/include/any-linux-any/linux/netfilter/xt_l2tp.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_l2tp.h
rename to libc/include/any-linux-any/linux/netfilter/xt_l2tp.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_length.h b/libc/include/any-linux-any/linux/netfilter/xt_length.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_length.h
rename to libc/include/any-linux-any/linux/netfilter/xt_length.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_limit.h b/libc/include/any-linux-any/linux/netfilter/xt_limit.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_limit.h
rename to libc/include/any-linux-any/linux/netfilter/xt_limit.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_mac.h b/libc/include/any-linux-any/linux/netfilter/xt_mac.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_mac.h
rename to libc/include/any-linux-any/linux/netfilter/xt_mac.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_mark.h b/libc/include/any-linux-any/linux/netfilter/xt_mark.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_mark.h
rename to libc/include/any-linux-any/linux/netfilter/xt_mark.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_multiport.h b/libc/include/any-linux-any/linux/netfilter/xt_multiport.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_multiport.h
rename to libc/include/any-linux-any/linux/netfilter/xt_multiport.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_nfacct.h b/libc/include/any-linux-any/linux/netfilter/xt_nfacct.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_nfacct.h
rename to libc/include/any-linux-any/linux/netfilter/xt_nfacct.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_osf.h b/libc/include/any-linux-any/linux/netfilter/xt_osf.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_osf.h
rename to libc/include/any-linux-any/linux/netfilter/xt_osf.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_owner.h b/libc/include/any-linux-any/linux/netfilter/xt_owner.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_owner.h
rename to libc/include/any-linux-any/linux/netfilter/xt_owner.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_physdev.h b/libc/include/any-linux-any/linux/netfilter/xt_physdev.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_physdev.h
rename to libc/include/any-linux-any/linux/netfilter/xt_physdev.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_pkttype.h b/libc/include/any-linux-any/linux/netfilter/xt_pkttype.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_pkttype.h
rename to libc/include/any-linux-any/linux/netfilter/xt_pkttype.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_policy.h b/libc/include/any-linux-any/linux/netfilter/xt_policy.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_policy.h
rename to libc/include/any-linux-any/linux/netfilter/xt_policy.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_quota.h b/libc/include/any-linux-any/linux/netfilter/xt_quota.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_quota.h
rename to libc/include/any-linux-any/linux/netfilter/xt_quota.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_rateest.h b/libc/include/any-linux-any/linux/netfilter/xt_rateest.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_rateest.h
rename to libc/include/any-linux-any/linux/netfilter/xt_rateest.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_realm.h b/libc/include/any-linux-any/linux/netfilter/xt_realm.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_realm.h
rename to libc/include/any-linux-any/linux/netfilter/xt_realm.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_recent.h b/libc/include/any-linux-any/linux/netfilter/xt_recent.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_recent.h
rename to libc/include/any-linux-any/linux/netfilter/xt_recent.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_rpfilter.h b/libc/include/any-linux-any/linux/netfilter/xt_rpfilter.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_rpfilter.h
rename to libc/include/any-linux-any/linux/netfilter/xt_rpfilter.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_sctp.h b/libc/include/any-linux-any/linux/netfilter/xt_sctp.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_sctp.h
rename to libc/include/any-linux-any/linux/netfilter/xt_sctp.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_set.h b/libc/include/any-linux-any/linux/netfilter/xt_set.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_set.h
rename to libc/include/any-linux-any/linux/netfilter/xt_set.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_socket.h b/libc/include/any-linux-any/linux/netfilter/xt_socket.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_socket.h
rename to libc/include/any-linux-any/linux/netfilter/xt_socket.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_state.h b/libc/include/any-linux-any/linux/netfilter/xt_state.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_state.h
rename to libc/include/any-linux-any/linux/netfilter/xt_state.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_statistic.h b/libc/include/any-linux-any/linux/netfilter/xt_statistic.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_statistic.h
rename to libc/include/any-linux-any/linux/netfilter/xt_statistic.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_string.h b/libc/include/any-linux-any/linux/netfilter/xt_string.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_string.h
rename to libc/include/any-linux-any/linux/netfilter/xt_string.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_tcpmss.h b/libc/include/any-linux-any/linux/netfilter/xt_tcpmss.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_tcpmss.h
rename to libc/include/any-linux-any/linux/netfilter/xt_tcpmss.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_tcpudp.h b/libc/include/any-linux-any/linux/netfilter/xt_tcpudp.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_tcpudp.h
rename to libc/include/any-linux-any/linux/netfilter/xt_tcpudp.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_time.h b/libc/include/any-linux-any/linux/netfilter/xt_time.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_time.h
rename to libc/include/any-linux-any/linux/netfilter/xt_time.h
diff --git a/libc/include/generic-musl/linux/netfilter/xt_u32.h b/libc/include/any-linux-any/linux/netfilter/xt_u32.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter/xt_u32.h
rename to libc/include/any-linux-any/linux/netfilter/xt_u32.h
diff --git a/libc/include/generic-musl/linux/netfilter_arp.h b/libc/include/any-linux-any/linux/netfilter_arp.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_arp.h
rename to libc/include/any-linux-any/linux/netfilter_arp.h
diff --git a/libc/include/generic-musl/linux/netfilter_arp/arp_tables.h b/libc/include/any-linux-any/linux/netfilter_arp/arp_tables.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_arp/arp_tables.h
rename to libc/include/any-linux-any/linux/netfilter_arp/arp_tables.h
diff --git a/libc/include/generic-musl/linux/netfilter_arp/arpt_mangle.h b/libc/include/any-linux-any/linux/netfilter_arp/arpt_mangle.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_arp/arpt_mangle.h
rename to libc/include/any-linux-any/linux/netfilter_arp/arpt_mangle.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge.h b/libc/include/any-linux-any/linux/netfilter_bridge.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge.h
rename to libc/include/any-linux-any/linux/netfilter_bridge.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_802_3.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_802_3.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_802_3.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_802_3.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_among.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_among.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_among.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_among.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_arp.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_arp.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_arp.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_arp.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_arpreply.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_arpreply.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_arpreply.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_arpreply.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_ip.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_ip.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_ip.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_ip.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_ip6.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_ip6.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_ip6.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_ip6.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_limit.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_limit.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_limit.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_limit.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_log.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_log.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_log.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_log.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_mark_m.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_mark_m.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_mark_m.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_mark_m.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_mark_t.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_mark_t.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_mark_t.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_mark_t.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_nat.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_nat.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_nat.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_nat.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_nflog.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_nflog.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_nflog.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_nflog.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_pkttype.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_pkttype.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_pkttype.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_pkttype.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_redirect.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_redirect.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_redirect.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_redirect.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_stp.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_stp.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_stp.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_stp.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebt_vlan.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebt_vlan.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebt_vlan.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebt_vlan.h
diff --git a/libc/include/generic-musl/linux/netfilter_bridge/ebtables.h b/libc/include/any-linux-any/linux/netfilter_bridge/ebtables.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_bridge/ebtables.h
rename to libc/include/any-linux-any/linux/netfilter_bridge/ebtables.h
diff --git a/libc/include/generic-musl/linux/netfilter_decnet.h b/libc/include/any-linux-any/linux/netfilter_decnet.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_decnet.h
rename to libc/include/any-linux-any/linux/netfilter_decnet.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv4.h b/libc/include/any-linux-any/linux/netfilter_ipv4.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv4.h
rename to libc/include/any-linux-any/linux/netfilter_ipv4.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv4/ip_tables.h b/libc/include/any-linux-any/linux/netfilter_ipv4/ip_tables.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv4/ip_tables.h
rename to libc/include/any-linux-any/linux/netfilter_ipv4/ip_tables.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv4/ipt_CLUSTERIP.h b/libc/include/any-linux-any/linux/netfilter_ipv4/ipt_CLUSTERIP.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv4/ipt_CLUSTERIP.h
rename to libc/include/any-linux-any/linux/netfilter_ipv4/ipt_CLUSTERIP.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv4/ipt_LOG.h b/libc/include/any-linux-any/linux/netfilter_ipv4/ipt_LOG.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv4/ipt_LOG.h
rename to libc/include/any-linux-any/linux/netfilter_ipv4/ipt_LOG.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv4/ipt_REJECT.h b/libc/include/any-linux-any/linux/netfilter_ipv4/ipt_REJECT.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv4/ipt_REJECT.h
rename to libc/include/any-linux-any/linux/netfilter_ipv4/ipt_REJECT.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv4/ipt_ah.h b/libc/include/any-linux-any/linux/netfilter_ipv4/ipt_ah.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv4/ipt_ah.h
rename to libc/include/any-linux-any/linux/netfilter_ipv4/ipt_ah.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv4/ipt_ecn.h b/libc/include/any-linux-any/linux/netfilter_ipv4/ipt_ecn.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv4/ipt_ecn.h
rename to libc/include/any-linux-any/linux/netfilter_ipv4/ipt_ecn.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv4/ipt_ttl.h b/libc/include/any-linux-any/linux/netfilter_ipv4/ipt_ttl.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv4/ipt_ttl.h
rename to libc/include/any-linux-any/linux/netfilter_ipv4/ipt_ttl.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv6.h b/libc/include/any-linux-any/linux/netfilter_ipv6.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv6.h
rename to libc/include/any-linux-any/linux/netfilter_ipv6.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv6/ip6_tables.h b/libc/include/any-linux-any/linux/netfilter_ipv6/ip6_tables.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv6/ip6_tables.h
rename to libc/include/any-linux-any/linux/netfilter_ipv6/ip6_tables.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv6/ip6t_LOG.h b/libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_LOG.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv6/ip6t_LOG.h
rename to libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_LOG.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv6/ip6t_NPT.h b/libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_NPT.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv6/ip6t_NPT.h
rename to libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_NPT.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv6/ip6t_REJECT.h b/libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_REJECT.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv6/ip6t_REJECT.h
rename to libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_REJECT.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv6/ip6t_ah.h b/libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_ah.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv6/ip6t_ah.h
rename to libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_ah.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv6/ip6t_frag.h b/libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_frag.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv6/ip6t_frag.h
rename to libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_frag.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv6/ip6t_hl.h b/libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_hl.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv6/ip6t_hl.h
rename to libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_hl.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv6/ip6t_ipv6header.h b/libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_ipv6header.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv6/ip6t_ipv6header.h
rename to libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_ipv6header.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv6/ip6t_mh.h b/libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_mh.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv6/ip6t_mh.h
rename to libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_mh.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv6/ip6t_opts.h b/libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_opts.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv6/ip6t_opts.h
rename to libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_opts.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv6/ip6t_rt.h b/libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_rt.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv6/ip6t_rt.h
rename to libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_rt.h
diff --git a/libc/include/generic-musl/linux/netfilter_ipv6/ip6t_srh.h b/libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_srh.h
similarity index 100%
rename from libc/include/generic-musl/linux/netfilter_ipv6/ip6t_srh.h
rename to libc/include/any-linux-any/linux/netfilter_ipv6/ip6t_srh.h
diff --git a/libc/include/generic-musl/linux/netlink.h b/libc/include/any-linux-any/linux/netlink.h
similarity index 100%
rename from libc/include/generic-musl/linux/netlink.h
rename to libc/include/any-linux-any/linux/netlink.h
diff --git a/libc/include/generic-musl/linux/netlink_diag.h b/libc/include/any-linux-any/linux/netlink_diag.h
similarity index 100%
rename from libc/include/generic-musl/linux/netlink_diag.h
rename to libc/include/any-linux-any/linux/netlink_diag.h
diff --git a/libc/include/generic-musl/linux/netrom.h b/libc/include/any-linux-any/linux/netrom.h
similarity index 100%
rename from libc/include/generic-musl/linux/netrom.h
rename to libc/include/any-linux-any/linux/netrom.h
diff --git a/libc/include/generic-musl/linux/nfc.h b/libc/include/any-linux-any/linux/nfc.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfc.h
rename to libc/include/any-linux-any/linux/nfc.h
diff --git a/libc/include/generic-musl/linux/nfs.h b/libc/include/any-linux-any/linux/nfs.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfs.h
rename to libc/include/any-linux-any/linux/nfs.h
diff --git a/libc/include/generic-musl/linux/nfs2.h b/libc/include/any-linux-any/linux/nfs2.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfs2.h
rename to libc/include/any-linux-any/linux/nfs2.h
diff --git a/libc/include/generic-musl/linux/nfs3.h b/libc/include/any-linux-any/linux/nfs3.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfs3.h
rename to libc/include/any-linux-any/linux/nfs3.h
diff --git a/libc/include/generic-musl/linux/nfs4.h b/libc/include/any-linux-any/linux/nfs4.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfs4.h
rename to libc/include/any-linux-any/linux/nfs4.h
diff --git a/libc/include/generic-musl/linux/nfs4_mount.h b/libc/include/any-linux-any/linux/nfs4_mount.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfs4_mount.h
rename to libc/include/any-linux-any/linux/nfs4_mount.h
diff --git a/libc/include/generic-musl/linux/nfs_fs.h b/libc/include/any-linux-any/linux/nfs_fs.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfs_fs.h
rename to libc/include/any-linux-any/linux/nfs_fs.h
diff --git a/libc/include/generic-musl/linux/nfs_idmap.h b/libc/include/any-linux-any/linux/nfs_idmap.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfs_idmap.h
rename to libc/include/any-linux-any/linux/nfs_idmap.h
diff --git a/libc/include/generic-musl/linux/nfs_mount.h b/libc/include/any-linux-any/linux/nfs_mount.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfs_mount.h
rename to libc/include/any-linux-any/linux/nfs_mount.h
diff --git a/libc/include/generic-musl/linux/nfsacl.h b/libc/include/any-linux-any/linux/nfsacl.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfsacl.h
rename to libc/include/any-linux-any/linux/nfsacl.h
diff --git a/libc/include/generic-musl/linux/nfsd/cld.h b/libc/include/any-linux-any/linux/nfsd/cld.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfsd/cld.h
rename to libc/include/any-linux-any/linux/nfsd/cld.h
diff --git a/libc/include/generic-musl/linux/nfsd/debug.h b/libc/include/any-linux-any/linux/nfsd/debug.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfsd/debug.h
rename to libc/include/any-linux-any/linux/nfsd/debug.h
diff --git a/libc/include/generic-musl/linux/nfsd/export.h b/libc/include/any-linux-any/linux/nfsd/export.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfsd/export.h
rename to libc/include/any-linux-any/linux/nfsd/export.h
diff --git a/libc/include/generic-musl/linux/nfsd/nfsfh.h b/libc/include/any-linux-any/linux/nfsd/nfsfh.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfsd/nfsfh.h
rename to libc/include/any-linux-any/linux/nfsd/nfsfh.h
diff --git a/libc/include/generic-musl/linux/nfsd/stats.h b/libc/include/any-linux-any/linux/nfsd/stats.h
similarity index 100%
rename from libc/include/generic-musl/linux/nfsd/stats.h
rename to libc/include/any-linux-any/linux/nfsd/stats.h
diff --git a/libc/include/generic-musl/linux/nilfs2_api.h b/libc/include/any-linux-any/linux/nilfs2_api.h
similarity index 100%
rename from libc/include/generic-musl/linux/nilfs2_api.h
rename to libc/include/any-linux-any/linux/nilfs2_api.h
diff --git a/libc/include/generic-musl/linux/nilfs2_ondisk.h b/libc/include/any-linux-any/linux/nilfs2_ondisk.h
similarity index 100%
rename from libc/include/generic-musl/linux/nilfs2_ondisk.h
rename to libc/include/any-linux-any/linux/nilfs2_ondisk.h
diff --git a/libc/include/generic-musl/linux/nl80211.h b/libc/include/any-linux-any/linux/nl80211.h
similarity index 100%
rename from libc/include/generic-musl/linux/nl80211.h
rename to libc/include/any-linux-any/linux/nl80211.h
diff --git a/libc/include/generic-musl/linux/nsfs.h b/libc/include/any-linux-any/linux/nsfs.h
similarity index 100%
rename from libc/include/generic-musl/linux/nsfs.h
rename to libc/include/any-linux-any/linux/nsfs.h
diff --git a/libc/include/generic-musl/linux/nubus.h b/libc/include/any-linux-any/linux/nubus.h
similarity index 100%
rename from libc/include/generic-musl/linux/nubus.h
rename to libc/include/any-linux-any/linux/nubus.h
diff --git a/libc/include/generic-musl/linux/nvme_ioctl.h b/libc/include/any-linux-any/linux/nvme_ioctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/nvme_ioctl.h
rename to libc/include/any-linux-any/linux/nvme_ioctl.h
diff --git a/libc/include/generic-musl/linux/nvram.h b/libc/include/any-linux-any/linux/nvram.h
similarity index 100%
rename from libc/include/generic-musl/linux/nvram.h
rename to libc/include/any-linux-any/linux/nvram.h
diff --git a/libc/include/generic-musl/linux/omap3isp.h b/libc/include/any-linux-any/linux/omap3isp.h
similarity index 100%
rename from libc/include/generic-musl/linux/omap3isp.h
rename to libc/include/any-linux-any/linux/omap3isp.h
diff --git a/libc/include/generic-musl/linux/omapfb.h b/libc/include/any-linux-any/linux/omapfb.h
similarity index 100%
rename from libc/include/generic-musl/linux/omapfb.h
rename to libc/include/any-linux-any/linux/omapfb.h
diff --git a/libc/include/generic-musl/linux/oom.h b/libc/include/any-linux-any/linux/oom.h
similarity index 100%
rename from libc/include/generic-musl/linux/oom.h
rename to libc/include/any-linux-any/linux/oom.h
diff --git a/libc/include/generic-musl/linux/openvswitch.h b/libc/include/any-linux-any/linux/openvswitch.h
similarity index 100%
rename from libc/include/generic-musl/linux/openvswitch.h
rename to libc/include/any-linux-any/linux/openvswitch.h
diff --git a/libc/include/generic-musl/linux/packet_diag.h b/libc/include/any-linux-any/linux/packet_diag.h
similarity index 100%
rename from libc/include/generic-musl/linux/packet_diag.h
rename to libc/include/any-linux-any/linux/packet_diag.h
diff --git a/libc/include/generic-musl/linux/param.h b/libc/include/any-linux-any/linux/param.h
similarity index 100%
rename from libc/include/generic-musl/linux/param.h
rename to libc/include/any-linux-any/linux/param.h
diff --git a/libc/include/generic-musl/linux/parport.h b/libc/include/any-linux-any/linux/parport.h
similarity index 100%
rename from libc/include/generic-musl/linux/parport.h
rename to libc/include/any-linux-any/linux/parport.h
diff --git a/libc/include/generic-musl/linux/patchkey.h b/libc/include/any-linux-any/linux/patchkey.h
similarity index 100%
rename from libc/include/generic-musl/linux/patchkey.h
rename to libc/include/any-linux-any/linux/patchkey.h
diff --git a/libc/include/generic-musl/linux/pci.h b/libc/include/any-linux-any/linux/pci.h
similarity index 100%
rename from libc/include/generic-musl/linux/pci.h
rename to libc/include/any-linux-any/linux/pci.h
diff --git a/libc/include/generic-musl/linux/pci_regs.h b/libc/include/any-linux-any/linux/pci_regs.h
similarity index 100%
rename from libc/include/generic-musl/linux/pci_regs.h
rename to libc/include/any-linux-any/linux/pci_regs.h
diff --git a/libc/include/generic-musl/linux/pcitest.h b/libc/include/any-linux-any/linux/pcitest.h
similarity index 100%
rename from libc/include/generic-musl/linux/pcitest.h
rename to libc/include/any-linux-any/linux/pcitest.h
diff --git a/libc/include/generic-musl/linux/perf_event.h b/libc/include/any-linux-any/linux/perf_event.h
similarity index 100%
rename from libc/include/generic-musl/linux/perf_event.h
rename to libc/include/any-linux-any/linux/perf_event.h
diff --git a/libc/include/generic-musl/linux/personality.h b/libc/include/any-linux-any/linux/personality.h
similarity index 100%
rename from libc/include/generic-musl/linux/personality.h
rename to libc/include/any-linux-any/linux/personality.h
diff --git a/libc/include/generic-musl/linux/pfkeyv2.h b/libc/include/any-linux-any/linux/pfkeyv2.h
similarity index 100%
rename from libc/include/generic-musl/linux/pfkeyv2.h
rename to libc/include/any-linux-any/linux/pfkeyv2.h
diff --git a/libc/include/generic-musl/linux/pg.h b/libc/include/any-linux-any/linux/pg.h
similarity index 100%
rename from libc/include/generic-musl/linux/pg.h
rename to libc/include/any-linux-any/linux/pg.h
diff --git a/libc/include/generic-musl/linux/phantom.h b/libc/include/any-linux-any/linux/phantom.h
similarity index 100%
rename from libc/include/generic-musl/linux/phantom.h
rename to libc/include/any-linux-any/linux/phantom.h
diff --git a/libc/include/generic-musl/linux/phonet.h b/libc/include/any-linux-any/linux/phonet.h
similarity index 100%
rename from libc/include/generic-musl/linux/phonet.h
rename to libc/include/any-linux-any/linux/phonet.h
diff --git a/libc/include/generic-musl/linux/pkt_cls.h b/libc/include/any-linux-any/linux/pkt_cls.h
similarity index 100%
rename from libc/include/generic-musl/linux/pkt_cls.h
rename to libc/include/any-linux-any/linux/pkt_cls.h
diff --git a/libc/include/generic-musl/linux/pkt_sched.h b/libc/include/any-linux-any/linux/pkt_sched.h
similarity index 100%
rename from libc/include/generic-musl/linux/pkt_sched.h
rename to libc/include/any-linux-any/linux/pkt_sched.h
diff --git a/libc/include/generic-musl/linux/pktcdvd.h b/libc/include/any-linux-any/linux/pktcdvd.h
similarity index 100%
rename from libc/include/generic-musl/linux/pktcdvd.h
rename to libc/include/any-linux-any/linux/pktcdvd.h
diff --git a/libc/include/generic-musl/linux/pmu.h b/libc/include/any-linux-any/linux/pmu.h
similarity index 100%
rename from libc/include/generic-musl/linux/pmu.h
rename to libc/include/any-linux-any/linux/pmu.h
diff --git a/libc/include/generic-musl/linux/poll.h b/libc/include/any-linux-any/linux/poll.h
similarity index 100%
rename from libc/include/generic-musl/linux/poll.h
rename to libc/include/any-linux-any/linux/poll.h
diff --git a/libc/include/generic-musl/linux/posix_acl.h b/libc/include/any-linux-any/linux/posix_acl.h
similarity index 100%
rename from libc/include/generic-musl/linux/posix_acl.h
rename to libc/include/any-linux-any/linux/posix_acl.h
diff --git a/libc/include/generic-musl/linux/posix_acl_xattr.h b/libc/include/any-linux-any/linux/posix_acl_xattr.h
similarity index 100%
rename from libc/include/generic-musl/linux/posix_acl_xattr.h
rename to libc/include/any-linux-any/linux/posix_acl_xattr.h
diff --git a/libc/include/generic-musl/linux/posix_types.h b/libc/include/any-linux-any/linux/posix_types.h
similarity index 100%
rename from libc/include/generic-musl/linux/posix_types.h
rename to libc/include/any-linux-any/linux/posix_types.h
diff --git a/libc/include/generic-musl/linux/ppdev.h b/libc/include/any-linux-any/linux/ppdev.h
similarity index 100%
rename from libc/include/generic-musl/linux/ppdev.h
rename to libc/include/any-linux-any/linux/ppdev.h
diff --git a/libc/include/generic-musl/linux/ppp-comp.h b/libc/include/any-linux-any/linux/ppp-comp.h
similarity index 100%
rename from libc/include/generic-musl/linux/ppp-comp.h
rename to libc/include/any-linux-any/linux/ppp-comp.h
diff --git a/libc/include/generic-musl/linux/ppp-ioctl.h b/libc/include/any-linux-any/linux/ppp-ioctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/ppp-ioctl.h
rename to libc/include/any-linux-any/linux/ppp-ioctl.h
diff --git a/libc/include/generic-musl/linux/ppp_defs.h b/libc/include/any-linux-any/linux/ppp_defs.h
similarity index 100%
rename from libc/include/generic-musl/linux/ppp_defs.h
rename to libc/include/any-linux-any/linux/ppp_defs.h
diff --git a/libc/include/generic-musl/linux/pps.h b/libc/include/any-linux-any/linux/pps.h
similarity index 100%
rename from libc/include/generic-musl/linux/pps.h
rename to libc/include/any-linux-any/linux/pps.h
diff --git a/libc/include/generic-musl/linux/pr.h b/libc/include/any-linux-any/linux/pr.h
similarity index 100%
rename from libc/include/generic-musl/linux/pr.h
rename to libc/include/any-linux-any/linux/pr.h
diff --git a/libc/include/generic-musl/linux/prctl.h b/libc/include/any-linux-any/linux/prctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/prctl.h
rename to libc/include/any-linux-any/linux/prctl.h
diff --git a/libc/include/generic-musl/linux/psample.h b/libc/include/any-linux-any/linux/psample.h
similarity index 100%
rename from libc/include/generic-musl/linux/psample.h
rename to libc/include/any-linux-any/linux/psample.h
diff --git a/libc/include/generic-musl/linux/psci.h b/libc/include/any-linux-any/linux/psci.h
similarity index 100%
rename from libc/include/generic-musl/linux/psci.h
rename to libc/include/any-linux-any/linux/psci.h
diff --git a/libc/include/generic-musl/linux/psp-sev.h b/libc/include/any-linux-any/linux/psp-sev.h
similarity index 100%
rename from libc/include/generic-musl/linux/psp-sev.h
rename to libc/include/any-linux-any/linux/psp-sev.h
diff --git a/libc/include/generic-musl/linux/ptp_clock.h b/libc/include/any-linux-any/linux/ptp_clock.h
similarity index 100%
rename from libc/include/generic-musl/linux/ptp_clock.h
rename to libc/include/any-linux-any/linux/ptp_clock.h
diff --git a/libc/include/generic-musl/linux/ptrace.h b/libc/include/any-linux-any/linux/ptrace.h
similarity index 100%
rename from libc/include/generic-musl/linux/ptrace.h
rename to libc/include/any-linux-any/linux/ptrace.h
diff --git a/libc/include/generic-musl/linux/qemu_fw_cfg.h b/libc/include/any-linux-any/linux/qemu_fw_cfg.h
similarity index 100%
rename from libc/include/generic-musl/linux/qemu_fw_cfg.h
rename to libc/include/any-linux-any/linux/qemu_fw_cfg.h
diff --git a/libc/include/generic-musl/linux/qnx4_fs.h b/libc/include/any-linux-any/linux/qnx4_fs.h
similarity index 100%
rename from libc/include/generic-musl/linux/qnx4_fs.h
rename to libc/include/any-linux-any/linux/qnx4_fs.h
diff --git a/libc/include/generic-musl/linux/qnxtypes.h b/libc/include/any-linux-any/linux/qnxtypes.h
similarity index 100%
rename from libc/include/generic-musl/linux/qnxtypes.h
rename to libc/include/any-linux-any/linux/qnxtypes.h
diff --git a/libc/include/generic-musl/linux/qrtr.h b/libc/include/any-linux-any/linux/qrtr.h
similarity index 100%
rename from libc/include/generic-musl/linux/qrtr.h
rename to libc/include/any-linux-any/linux/qrtr.h
diff --git a/libc/include/generic-musl/linux/quota.h b/libc/include/any-linux-any/linux/quota.h
similarity index 100%
rename from libc/include/generic-musl/linux/quota.h
rename to libc/include/any-linux-any/linux/quota.h
diff --git a/libc/include/generic-musl/linux/radeonfb.h b/libc/include/any-linux-any/linux/radeonfb.h
similarity index 100%
rename from libc/include/generic-musl/linux/radeonfb.h
rename to libc/include/any-linux-any/linux/radeonfb.h
diff --git a/libc/include/generic-musl/linux/raid/md_p.h b/libc/include/any-linux-any/linux/raid/md_p.h
similarity index 100%
rename from libc/include/generic-musl/linux/raid/md_p.h
rename to libc/include/any-linux-any/linux/raid/md_p.h
diff --git a/libc/include/generic-musl/linux/raid/md_u.h b/libc/include/any-linux-any/linux/raid/md_u.h
similarity index 100%
rename from libc/include/generic-musl/linux/raid/md_u.h
rename to libc/include/any-linux-any/linux/raid/md_u.h
diff --git a/libc/include/generic-musl/linux/random.h b/libc/include/any-linux-any/linux/random.h
similarity index 100%
rename from libc/include/generic-musl/linux/random.h
rename to libc/include/any-linux-any/linux/random.h
diff --git a/libc/include/generic-musl/linux/raw.h b/libc/include/any-linux-any/linux/raw.h
similarity index 100%
rename from libc/include/generic-musl/linux/raw.h
rename to libc/include/any-linux-any/linux/raw.h
diff --git a/libc/include/generic-musl/linux/rds.h b/libc/include/any-linux-any/linux/rds.h
similarity index 100%
rename from libc/include/generic-musl/linux/rds.h
rename to libc/include/any-linux-any/linux/rds.h
diff --git a/libc/include/generic-musl/linux/reboot.h b/libc/include/any-linux-any/linux/reboot.h
similarity index 100%
rename from libc/include/generic-musl/linux/reboot.h
rename to libc/include/any-linux-any/linux/reboot.h
diff --git a/libc/include/generic-musl/linux/reiserfs_fs.h b/libc/include/any-linux-any/linux/reiserfs_fs.h
similarity index 100%
rename from libc/include/generic-musl/linux/reiserfs_fs.h
rename to libc/include/any-linux-any/linux/reiserfs_fs.h
diff --git a/libc/include/generic-musl/linux/reiserfs_xattr.h b/libc/include/any-linux-any/linux/reiserfs_xattr.h
similarity index 100%
rename from libc/include/generic-musl/linux/reiserfs_xattr.h
rename to libc/include/any-linux-any/linux/reiserfs_xattr.h
diff --git a/libc/include/generic-musl/linux/resource.h b/libc/include/any-linux-any/linux/resource.h
similarity index 100%
rename from libc/include/generic-musl/linux/resource.h
rename to libc/include/any-linux-any/linux/resource.h
diff --git a/libc/include/generic-musl/linux/rfkill.h b/libc/include/any-linux-any/linux/rfkill.h
similarity index 100%
rename from libc/include/generic-musl/linux/rfkill.h
rename to libc/include/any-linux-any/linux/rfkill.h
diff --git a/libc/include/generic-musl/linux/rio_cm_cdev.h b/libc/include/any-linux-any/linux/rio_cm_cdev.h
similarity index 100%
rename from libc/include/generic-musl/linux/rio_cm_cdev.h
rename to libc/include/any-linux-any/linux/rio_cm_cdev.h
diff --git a/libc/include/generic-musl/linux/rio_mport_cdev.h b/libc/include/any-linux-any/linux/rio_mport_cdev.h
similarity index 100%
rename from libc/include/generic-musl/linux/rio_mport_cdev.h
rename to libc/include/any-linux-any/linux/rio_mport_cdev.h
diff --git a/libc/include/generic-musl/linux/romfs_fs.h b/libc/include/any-linux-any/linux/romfs_fs.h
similarity index 100%
rename from libc/include/generic-musl/linux/romfs_fs.h
rename to libc/include/any-linux-any/linux/romfs_fs.h
diff --git a/libc/include/generic-musl/linux/rose.h b/libc/include/any-linux-any/linux/rose.h
similarity index 100%
rename from libc/include/generic-musl/linux/rose.h
rename to libc/include/any-linux-any/linux/rose.h
diff --git a/libc/include/generic-musl/linux/route.h b/libc/include/any-linux-any/linux/route.h
similarity index 100%
rename from libc/include/generic-musl/linux/route.h
rename to libc/include/any-linux-any/linux/route.h
diff --git a/libc/include/generic-musl/linux/rpmsg.h b/libc/include/any-linux-any/linux/rpmsg.h
similarity index 100%
rename from libc/include/generic-musl/linux/rpmsg.h
rename to libc/include/any-linux-any/linux/rpmsg.h
diff --git a/libc/include/generic-musl/linux/rseq.h b/libc/include/any-linux-any/linux/rseq.h
similarity index 100%
rename from libc/include/generic-musl/linux/rseq.h
rename to libc/include/any-linux-any/linux/rseq.h
diff --git a/libc/include/generic-musl/linux/rtc.h b/libc/include/any-linux-any/linux/rtc.h
similarity index 100%
rename from libc/include/generic-musl/linux/rtc.h
rename to libc/include/any-linux-any/linux/rtc.h
diff --git a/libc/include/generic-musl/linux/rtnetlink.h b/libc/include/any-linux-any/linux/rtnetlink.h
similarity index 100%
rename from libc/include/generic-musl/linux/rtnetlink.h
rename to libc/include/any-linux-any/linux/rtnetlink.h
diff --git a/libc/include/generic-musl/linux/rxrpc.h b/libc/include/any-linux-any/linux/rxrpc.h
similarity index 100%
rename from libc/include/generic-musl/linux/rxrpc.h
rename to libc/include/any-linux-any/linux/rxrpc.h
diff --git a/libc/include/generic-musl/linux/scc.h b/libc/include/any-linux-any/linux/scc.h
similarity index 100%
rename from libc/include/generic-musl/linux/scc.h
rename to libc/include/any-linux-any/linux/scc.h
diff --git a/libc/include/generic-musl/linux/sched.h b/libc/include/any-linux-any/linux/sched.h
similarity index 100%
rename from libc/include/generic-musl/linux/sched.h
rename to libc/include/any-linux-any/linux/sched.h
diff --git a/libc/include/generic-musl/linux/sched/types.h b/libc/include/any-linux-any/linux/sched/types.h
similarity index 100%
rename from libc/include/generic-musl/linux/sched/types.h
rename to libc/include/any-linux-any/linux/sched/types.h
diff --git a/libc/include/generic-musl/linux/scif_ioctl.h b/libc/include/any-linux-any/linux/scif_ioctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/scif_ioctl.h
rename to libc/include/any-linux-any/linux/scif_ioctl.h
diff --git a/libc/include/generic-musl/linux/screen_info.h b/libc/include/any-linux-any/linux/screen_info.h
similarity index 100%
rename from libc/include/generic-musl/linux/screen_info.h
rename to libc/include/any-linux-any/linux/screen_info.h
diff --git a/libc/include/generic-musl/linux/sctp.h b/libc/include/any-linux-any/linux/sctp.h
similarity index 100%
rename from libc/include/generic-musl/linux/sctp.h
rename to libc/include/any-linux-any/linux/sctp.h
diff --git a/libc/include/generic-musl/linux/sdla.h b/libc/include/any-linux-any/linux/sdla.h
similarity index 100%
rename from libc/include/generic-musl/linux/sdla.h
rename to libc/include/any-linux-any/linux/sdla.h
diff --git a/libc/include/generic-musl/linux/seccomp.h b/libc/include/any-linux-any/linux/seccomp.h
similarity index 100%
rename from libc/include/generic-musl/linux/seccomp.h
rename to libc/include/any-linux-any/linux/seccomp.h
diff --git a/libc/include/generic-musl/linux/securebits.h b/libc/include/any-linux-any/linux/securebits.h
similarity index 100%
rename from libc/include/generic-musl/linux/securebits.h
rename to libc/include/any-linux-any/linux/securebits.h
diff --git a/libc/include/generic-musl/linux/sed-opal.h b/libc/include/any-linux-any/linux/sed-opal.h
similarity index 100%
rename from libc/include/generic-musl/linux/sed-opal.h
rename to libc/include/any-linux-any/linux/sed-opal.h
diff --git a/libc/include/generic-musl/linux/seg6.h b/libc/include/any-linux-any/linux/seg6.h
similarity index 100%
rename from libc/include/generic-musl/linux/seg6.h
rename to libc/include/any-linux-any/linux/seg6.h
diff --git a/libc/include/generic-musl/linux/seg6_genl.h b/libc/include/any-linux-any/linux/seg6_genl.h
similarity index 100%
rename from libc/include/generic-musl/linux/seg6_genl.h
rename to libc/include/any-linux-any/linux/seg6_genl.h
diff --git a/libc/include/generic-musl/linux/seg6_hmac.h b/libc/include/any-linux-any/linux/seg6_hmac.h
similarity index 100%
rename from libc/include/generic-musl/linux/seg6_hmac.h
rename to libc/include/any-linux-any/linux/seg6_hmac.h
diff --git a/libc/include/generic-musl/linux/seg6_iptunnel.h b/libc/include/any-linux-any/linux/seg6_iptunnel.h
similarity index 100%
rename from libc/include/generic-musl/linux/seg6_iptunnel.h
rename to libc/include/any-linux-any/linux/seg6_iptunnel.h
diff --git a/libc/include/generic-musl/linux/seg6_local.h b/libc/include/any-linux-any/linux/seg6_local.h
similarity index 100%
rename from libc/include/generic-musl/linux/seg6_local.h
rename to libc/include/any-linux-any/linux/seg6_local.h
diff --git a/libc/include/generic-musl/linux/selinux_netlink.h b/libc/include/any-linux-any/linux/selinux_netlink.h
similarity index 100%
rename from libc/include/generic-musl/linux/selinux_netlink.h
rename to libc/include/any-linux-any/linux/selinux_netlink.h
diff --git a/libc/include/generic-musl/linux/sem.h b/libc/include/any-linux-any/linux/sem.h
similarity index 100%
rename from libc/include/generic-musl/linux/sem.h
rename to libc/include/any-linux-any/linux/sem.h
diff --git a/libc/include/generic-musl/linux/serial.h b/libc/include/any-linux-any/linux/serial.h
similarity index 100%
rename from libc/include/generic-musl/linux/serial.h
rename to libc/include/any-linux-any/linux/serial.h
diff --git a/libc/include/generic-musl/linux/serial_core.h b/libc/include/any-linux-any/linux/serial_core.h
similarity index 100%
rename from libc/include/generic-musl/linux/serial_core.h
rename to libc/include/any-linux-any/linux/serial_core.h
diff --git a/libc/include/generic-musl/linux/serial_reg.h b/libc/include/any-linux-any/linux/serial_reg.h
similarity index 100%
rename from libc/include/generic-musl/linux/serial_reg.h
rename to libc/include/any-linux-any/linux/serial_reg.h
diff --git a/libc/include/generic-musl/linux/serio.h b/libc/include/any-linux-any/linux/serio.h
similarity index 100%
rename from libc/include/generic-musl/linux/serio.h
rename to libc/include/any-linux-any/linux/serio.h
diff --git a/libc/include/generic-musl/linux/shm.h b/libc/include/any-linux-any/linux/shm.h
similarity index 100%
rename from libc/include/generic-musl/linux/shm.h
rename to libc/include/any-linux-any/linux/shm.h
diff --git a/libc/include/generic-musl/linux/signal.h b/libc/include/any-linux-any/linux/signal.h
similarity index 100%
rename from libc/include/generic-musl/linux/signal.h
rename to libc/include/any-linux-any/linux/signal.h
diff --git a/libc/include/generic-musl/linux/signalfd.h b/libc/include/any-linux-any/linux/signalfd.h
similarity index 100%
rename from libc/include/generic-musl/linux/signalfd.h
rename to libc/include/any-linux-any/linux/signalfd.h
diff --git a/libc/include/generic-musl/linux/smc.h b/libc/include/any-linux-any/linux/smc.h
similarity index 100%
rename from libc/include/generic-musl/linux/smc.h
rename to libc/include/any-linux-any/linux/smc.h
diff --git a/libc/include/generic-musl/linux/smc_diag.h b/libc/include/any-linux-any/linux/smc_diag.h
similarity index 100%
rename from libc/include/generic-musl/linux/smc_diag.h
rename to libc/include/any-linux-any/linux/smc_diag.h
diff --git a/libc/include/generic-musl/linux/smiapp.h b/libc/include/any-linux-any/linux/smiapp.h
similarity index 100%
rename from libc/include/generic-musl/linux/smiapp.h
rename to libc/include/any-linux-any/linux/smiapp.h
diff --git a/libc/include/generic-musl/linux/snmp.h b/libc/include/any-linux-any/linux/snmp.h
similarity index 100%
rename from libc/include/generic-musl/linux/snmp.h
rename to libc/include/any-linux-any/linux/snmp.h
diff --git a/libc/include/generic-musl/linux/sock_diag.h b/libc/include/any-linux-any/linux/sock_diag.h
similarity index 100%
rename from libc/include/generic-musl/linux/sock_diag.h
rename to libc/include/any-linux-any/linux/sock_diag.h
diff --git a/libc/include/generic-musl/linux/socket.h b/libc/include/any-linux-any/linux/socket.h
similarity index 100%
rename from libc/include/generic-musl/linux/socket.h
rename to libc/include/any-linux-any/linux/socket.h
diff --git a/libc/include/generic-musl/linux/sockios.h b/libc/include/any-linux-any/linux/sockios.h
similarity index 100%
rename from libc/include/generic-musl/linux/sockios.h
rename to libc/include/any-linux-any/linux/sockios.h
diff --git a/libc/include/generic-musl/linux/sonet.h b/libc/include/any-linux-any/linux/sonet.h
similarity index 100%
rename from libc/include/generic-musl/linux/sonet.h
rename to libc/include/any-linux-any/linux/sonet.h
diff --git a/libc/include/generic-musl/linux/sonypi.h b/libc/include/any-linux-any/linux/sonypi.h
similarity index 100%
rename from libc/include/generic-musl/linux/sonypi.h
rename to libc/include/any-linux-any/linux/sonypi.h
diff --git a/libc/include/generic-musl/linux/sound.h b/libc/include/any-linux-any/linux/sound.h
similarity index 100%
rename from libc/include/generic-musl/linux/sound.h
rename to libc/include/any-linux-any/linux/sound.h
diff --git a/libc/include/generic-musl/linux/soundcard.h b/libc/include/any-linux-any/linux/soundcard.h
similarity index 100%
rename from libc/include/generic-musl/linux/soundcard.h
rename to libc/include/any-linux-any/linux/soundcard.h
diff --git a/libc/include/generic-musl/linux/spi/spidev.h b/libc/include/any-linux-any/linux/spi/spidev.h
similarity index 100%
rename from libc/include/generic-musl/linux/spi/spidev.h
rename to libc/include/any-linux-any/linux/spi/spidev.h
diff --git a/libc/include/generic-musl/linux/stat.h b/libc/include/any-linux-any/linux/stat.h
similarity index 100%
rename from libc/include/generic-musl/linux/stat.h
rename to libc/include/any-linux-any/linux/stat.h
diff --git a/libc/include/generic-musl/linux/stddef.h b/libc/include/any-linux-any/linux/stddef.h
similarity index 100%
rename from libc/include/generic-musl/linux/stddef.h
rename to libc/include/any-linux-any/linux/stddef.h
diff --git a/libc/include/generic-musl/linux/stm.h b/libc/include/any-linux-any/linux/stm.h
similarity index 100%
rename from libc/include/generic-musl/linux/stm.h
rename to libc/include/any-linux-any/linux/stm.h
diff --git a/libc/include/generic-musl/linux/string.h b/libc/include/any-linux-any/linux/string.h
similarity index 100%
rename from libc/include/generic-musl/linux/string.h
rename to libc/include/any-linux-any/linux/string.h
diff --git a/libc/include/generic-musl/linux/sunrpc/debug.h b/libc/include/any-linux-any/linux/sunrpc/debug.h
similarity index 100%
rename from libc/include/generic-musl/linux/sunrpc/debug.h
rename to libc/include/any-linux-any/linux/sunrpc/debug.h
diff --git a/libc/include/generic-musl/linux/suspend_ioctls.h b/libc/include/any-linux-any/linux/suspend_ioctls.h
similarity index 100%
rename from libc/include/generic-musl/linux/suspend_ioctls.h
rename to libc/include/any-linux-any/linux/suspend_ioctls.h
diff --git a/libc/include/generic-musl/linux/swab.h b/libc/include/any-linux-any/linux/swab.h
similarity index 100%
rename from libc/include/generic-musl/linux/swab.h
rename to libc/include/any-linux-any/linux/swab.h
diff --git a/libc/include/generic-musl/linux/switchtec_ioctl.h b/libc/include/any-linux-any/linux/switchtec_ioctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/switchtec_ioctl.h
rename to libc/include/any-linux-any/linux/switchtec_ioctl.h
diff --git a/libc/include/generic-musl/linux/sync_file.h b/libc/include/any-linux-any/linux/sync_file.h
similarity index 100%
rename from libc/include/generic-musl/linux/sync_file.h
rename to libc/include/any-linux-any/linux/sync_file.h
diff --git a/libc/include/generic-musl/linux/synclink.h b/libc/include/any-linux-any/linux/synclink.h
similarity index 100%
rename from libc/include/generic-musl/linux/synclink.h
rename to libc/include/any-linux-any/linux/synclink.h
diff --git a/libc/include/generic-musl/linux/sysctl.h b/libc/include/any-linux-any/linux/sysctl.h
similarity index 100%
rename from libc/include/generic-musl/linux/sysctl.h
rename to libc/include/any-linux-any/linux/sysctl.h
diff --git a/libc/include/generic-musl/linux/sysinfo.h b/libc/include/any-linux-any/linux/sysinfo.h
similarity index 100%
rename from libc/include/generic-musl/linux/sysinfo.h
rename to libc/include/any-linux-any/linux/sysinfo.h
diff --git a/libc/include/generic-musl/linux/target_core_user.h b/libc/include/any-linux-any/linux/target_core_user.h
similarity index 100%
rename from libc/include/generic-musl/linux/target_core_user.h
rename to libc/include/any-linux-any/linux/target_core_user.h
diff --git a/libc/include/generic-musl/linux/taskstats.h b/libc/include/any-linux-any/linux/taskstats.h
similarity index 100%
rename from libc/include/generic-musl/linux/taskstats.h
rename to libc/include/any-linux-any/linux/taskstats.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_bpf.h b/libc/include/any-linux-any/linux/tc_act/tc_bpf.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_bpf.h
rename to libc/include/any-linux-any/linux/tc_act/tc_bpf.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_connmark.h b/libc/include/any-linux-any/linux/tc_act/tc_connmark.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_connmark.h
rename to libc/include/any-linux-any/linux/tc_act/tc_connmark.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_csum.h b/libc/include/any-linux-any/linux/tc_act/tc_csum.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_csum.h
rename to libc/include/any-linux-any/linux/tc_act/tc_csum.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_defact.h b/libc/include/any-linux-any/linux/tc_act/tc_defact.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_defact.h
rename to libc/include/any-linux-any/linux/tc_act/tc_defact.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_gact.h b/libc/include/any-linux-any/linux/tc_act/tc_gact.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_gact.h
rename to libc/include/any-linux-any/linux/tc_act/tc_gact.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_ife.h b/libc/include/any-linux-any/linux/tc_act/tc_ife.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_ife.h
rename to libc/include/any-linux-any/linux/tc_act/tc_ife.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_ipt.h b/libc/include/any-linux-any/linux/tc_act/tc_ipt.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_ipt.h
rename to libc/include/any-linux-any/linux/tc_act/tc_ipt.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_mirred.h b/libc/include/any-linux-any/linux/tc_act/tc_mirred.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_mirred.h
rename to libc/include/any-linux-any/linux/tc_act/tc_mirred.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_nat.h b/libc/include/any-linux-any/linux/tc_act/tc_nat.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_nat.h
rename to libc/include/any-linux-any/linux/tc_act/tc_nat.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_pedit.h b/libc/include/any-linux-any/linux/tc_act/tc_pedit.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_pedit.h
rename to libc/include/any-linux-any/linux/tc_act/tc_pedit.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_sample.h b/libc/include/any-linux-any/linux/tc_act/tc_sample.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_sample.h
rename to libc/include/any-linux-any/linux/tc_act/tc_sample.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_skbedit.h b/libc/include/any-linux-any/linux/tc_act/tc_skbedit.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_skbedit.h
rename to libc/include/any-linux-any/linux/tc_act/tc_skbedit.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_skbmod.h b/libc/include/any-linux-any/linux/tc_act/tc_skbmod.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_skbmod.h
rename to libc/include/any-linux-any/linux/tc_act/tc_skbmod.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_tunnel_key.h b/libc/include/any-linux-any/linux/tc_act/tc_tunnel_key.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_tunnel_key.h
rename to libc/include/any-linux-any/linux/tc_act/tc_tunnel_key.h
diff --git a/libc/include/generic-musl/linux/tc_act/tc_vlan.h b/libc/include/any-linux-any/linux/tc_act/tc_vlan.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_act/tc_vlan.h
rename to libc/include/any-linux-any/linux/tc_act/tc_vlan.h
diff --git a/libc/include/generic-musl/linux/tc_ematch/tc_em_cmp.h b/libc/include/any-linux-any/linux/tc_ematch/tc_em_cmp.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_ematch/tc_em_cmp.h
rename to libc/include/any-linux-any/linux/tc_ematch/tc_em_cmp.h
diff --git a/libc/include/generic-musl/linux/tc_ematch/tc_em_ipt.h b/libc/include/any-linux-any/linux/tc_ematch/tc_em_ipt.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_ematch/tc_em_ipt.h
rename to libc/include/any-linux-any/linux/tc_ematch/tc_em_ipt.h
diff --git a/libc/include/generic-musl/linux/tc_ematch/tc_em_meta.h b/libc/include/any-linux-any/linux/tc_ematch/tc_em_meta.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_ematch/tc_em_meta.h
rename to libc/include/any-linux-any/linux/tc_ematch/tc_em_meta.h
diff --git a/libc/include/generic-musl/linux/tc_ematch/tc_em_nbyte.h b/libc/include/any-linux-any/linux/tc_ematch/tc_em_nbyte.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_ematch/tc_em_nbyte.h
rename to libc/include/any-linux-any/linux/tc_ematch/tc_em_nbyte.h
diff --git a/libc/include/generic-musl/linux/tc_ematch/tc_em_text.h b/libc/include/any-linux-any/linux/tc_ematch/tc_em_text.h
similarity index 100%
rename from libc/include/generic-musl/linux/tc_ematch/tc_em_text.h
rename to libc/include/any-linux-any/linux/tc_ematch/tc_em_text.h
diff --git a/libc/include/generic-musl/linux/tcp.h b/libc/include/any-linux-any/linux/tcp.h
similarity index 100%
rename from libc/include/generic-musl/linux/tcp.h
rename to libc/include/any-linux-any/linux/tcp.h
diff --git a/libc/include/generic-musl/linux/tcp_metrics.h b/libc/include/any-linux-any/linux/tcp_metrics.h
similarity index 100%
rename from libc/include/generic-musl/linux/tcp_metrics.h
rename to libc/include/any-linux-any/linux/tcp_metrics.h
diff --git a/libc/include/generic-musl/linux/tee.h b/libc/include/any-linux-any/linux/tee.h
similarity index 100%
rename from libc/include/generic-musl/linux/tee.h
rename to libc/include/any-linux-any/linux/tee.h
diff --git a/libc/include/generic-musl/linux/termios.h b/libc/include/any-linux-any/linux/termios.h
similarity index 100%
rename from libc/include/generic-musl/linux/termios.h
rename to libc/include/any-linux-any/linux/termios.h
diff --git a/libc/include/generic-musl/linux/thermal.h b/libc/include/any-linux-any/linux/thermal.h
similarity index 100%
rename from libc/include/generic-musl/linux/thermal.h
rename to libc/include/any-linux-any/linux/thermal.h
diff --git a/libc/include/generic-musl/linux/time.h b/libc/include/any-linux-any/linux/time.h
similarity index 100%
rename from libc/include/generic-musl/linux/time.h
rename to libc/include/any-linux-any/linux/time.h
diff --git a/libc/include/generic-musl/linux/timerfd.h b/libc/include/any-linux-any/linux/timerfd.h
similarity index 100%
rename from libc/include/generic-musl/linux/timerfd.h
rename to libc/include/any-linux-any/linux/timerfd.h
diff --git a/libc/include/generic-musl/linux/times.h b/libc/include/any-linux-any/linux/times.h
similarity index 100%
rename from libc/include/generic-musl/linux/times.h
rename to libc/include/any-linux-any/linux/times.h
diff --git a/libc/include/generic-musl/linux/timex.h b/libc/include/any-linux-any/linux/timex.h
similarity index 100%
rename from libc/include/generic-musl/linux/timex.h
rename to libc/include/any-linux-any/linux/timex.h
diff --git a/libc/include/generic-musl/linux/tiocl.h b/libc/include/any-linux-any/linux/tiocl.h
similarity index 100%
rename from libc/include/generic-musl/linux/tiocl.h
rename to libc/include/any-linux-any/linux/tiocl.h
diff --git a/libc/include/generic-musl/linux/tipc.h b/libc/include/any-linux-any/linux/tipc.h
similarity index 100%
rename from libc/include/generic-musl/linux/tipc.h
rename to libc/include/any-linux-any/linux/tipc.h
diff --git a/libc/include/generic-musl/linux/tipc_config.h b/libc/include/any-linux-any/linux/tipc_config.h
similarity index 100%
rename from libc/include/generic-musl/linux/tipc_config.h
rename to libc/include/any-linux-any/linux/tipc_config.h
diff --git a/libc/include/generic-musl/linux/tipc_netlink.h b/libc/include/any-linux-any/linux/tipc_netlink.h
similarity index 100%
rename from libc/include/generic-musl/linux/tipc_netlink.h
rename to libc/include/any-linux-any/linux/tipc_netlink.h
diff --git a/libc/include/generic-musl/linux/tipc_sockets_diag.h b/libc/include/any-linux-any/linux/tipc_sockets_diag.h
similarity index 100%
rename from libc/include/generic-musl/linux/tipc_sockets_diag.h
rename to libc/include/any-linux-any/linux/tipc_sockets_diag.h
diff --git a/libc/include/generic-musl/linux/tls.h b/libc/include/any-linux-any/linux/tls.h
similarity index 100%
rename from libc/include/generic-musl/linux/tls.h
rename to libc/include/any-linux-any/linux/tls.h
diff --git a/libc/include/generic-musl/linux/toshiba.h b/libc/include/any-linux-any/linux/toshiba.h
similarity index 100%
rename from libc/include/generic-musl/linux/toshiba.h
rename to libc/include/any-linux-any/linux/toshiba.h
diff --git a/libc/include/generic-musl/linux/tty.h b/libc/include/any-linux-any/linux/tty.h
similarity index 100%
rename from libc/include/generic-musl/linux/tty.h
rename to libc/include/any-linux-any/linux/tty.h
diff --git a/libc/include/generic-musl/linux/tty_flags.h b/libc/include/any-linux-any/linux/tty_flags.h
similarity index 100%
rename from libc/include/generic-musl/linux/tty_flags.h
rename to libc/include/any-linux-any/linux/tty_flags.h
diff --git a/libc/include/generic-musl/linux/types.h b/libc/include/any-linux-any/linux/types.h
similarity index 100%
rename from libc/include/generic-musl/linux/types.h
rename to libc/include/any-linux-any/linux/types.h
diff --git a/libc/include/generic-musl/linux/udf_fs_i.h b/libc/include/any-linux-any/linux/udf_fs_i.h
similarity index 100%
rename from libc/include/generic-musl/linux/udf_fs_i.h
rename to libc/include/any-linux-any/linux/udf_fs_i.h
diff --git a/libc/include/generic-musl/linux/udp.h b/libc/include/any-linux-any/linux/udp.h
similarity index 100%
rename from libc/include/generic-musl/linux/udp.h
rename to libc/include/any-linux-any/linux/udp.h
diff --git a/libc/include/generic-musl/linux/uhid.h b/libc/include/any-linux-any/linux/uhid.h
similarity index 100%
rename from libc/include/generic-musl/linux/uhid.h
rename to libc/include/any-linux-any/linux/uhid.h
diff --git a/libc/include/generic-musl/linux/uinput.h b/libc/include/any-linux-any/linux/uinput.h
similarity index 100%
rename from libc/include/generic-musl/linux/uinput.h
rename to libc/include/any-linux-any/linux/uinput.h
diff --git a/libc/include/generic-musl/linux/uio.h b/libc/include/any-linux-any/linux/uio.h
similarity index 100%
rename from libc/include/generic-musl/linux/uio.h
rename to libc/include/any-linux-any/linux/uio.h
diff --git a/libc/include/generic-musl/linux/uleds.h b/libc/include/any-linux-any/linux/uleds.h
similarity index 100%
rename from libc/include/generic-musl/linux/uleds.h
rename to libc/include/any-linux-any/linux/uleds.h
diff --git a/libc/include/generic-musl/linux/ultrasound.h b/libc/include/any-linux-any/linux/ultrasound.h
similarity index 100%
rename from libc/include/generic-musl/linux/ultrasound.h
rename to libc/include/any-linux-any/linux/ultrasound.h
diff --git a/libc/include/generic-musl/linux/un.h b/libc/include/any-linux-any/linux/un.h
similarity index 100%
rename from libc/include/generic-musl/linux/un.h
rename to libc/include/any-linux-any/linux/un.h
diff --git a/libc/include/generic-musl/linux/unistd.h b/libc/include/any-linux-any/linux/unistd.h
similarity index 100%
rename from libc/include/generic-musl/linux/unistd.h
rename to libc/include/any-linux-any/linux/unistd.h
diff --git a/libc/include/generic-musl/linux/unix_diag.h b/libc/include/any-linux-any/linux/unix_diag.h
similarity index 100%
rename from libc/include/generic-musl/linux/unix_diag.h
rename to libc/include/any-linux-any/linux/unix_diag.h
diff --git a/libc/include/generic-musl/linux/usb/audio.h b/libc/include/any-linux-any/linux/usb/audio.h
similarity index 100%
rename from libc/include/generic-musl/linux/usb/audio.h
rename to libc/include/any-linux-any/linux/usb/audio.h
diff --git a/libc/include/generic-musl/linux/usb/cdc-wdm.h b/libc/include/any-linux-any/linux/usb/cdc-wdm.h
similarity index 100%
rename from libc/include/generic-musl/linux/usb/cdc-wdm.h
rename to libc/include/any-linux-any/linux/usb/cdc-wdm.h
diff --git a/libc/include/generic-musl/linux/usb/cdc.h b/libc/include/any-linux-any/linux/usb/cdc.h
similarity index 100%
rename from libc/include/generic-musl/linux/usb/cdc.h
rename to libc/include/any-linux-any/linux/usb/cdc.h
diff --git a/libc/include/generic-musl/linux/usb/ch11.h b/libc/include/any-linux-any/linux/usb/ch11.h
similarity index 100%
rename from libc/include/generic-musl/linux/usb/ch11.h
rename to libc/include/any-linux-any/linux/usb/ch11.h
diff --git a/libc/include/generic-musl/linux/usb/ch9.h b/libc/include/any-linux-any/linux/usb/ch9.h
similarity index 100%
rename from libc/include/generic-musl/linux/usb/ch9.h
rename to libc/include/any-linux-any/linux/usb/ch9.h
diff --git a/libc/include/generic-musl/linux/usb/charger.h b/libc/include/any-linux-any/linux/usb/charger.h
similarity index 100%
rename from libc/include/generic-musl/linux/usb/charger.h
rename to libc/include/any-linux-any/linux/usb/charger.h
diff --git a/libc/include/generic-musl/linux/usb/functionfs.h b/libc/include/any-linux-any/linux/usb/functionfs.h
similarity index 100%
rename from libc/include/generic-musl/linux/usb/functionfs.h
rename to libc/include/any-linux-any/linux/usb/functionfs.h
diff --git a/libc/include/generic-musl/linux/usb/g_printer.h b/libc/include/any-linux-any/linux/usb/g_printer.h
similarity index 100%
rename from libc/include/generic-musl/linux/usb/g_printer.h
rename to libc/include/any-linux-any/linux/usb/g_printer.h
diff --git a/libc/include/generic-musl/linux/usb/g_uvc.h b/libc/include/any-linux-any/linux/usb/g_uvc.h
similarity index 100%
rename from libc/include/generic-musl/linux/usb/g_uvc.h
rename to libc/include/any-linux-any/linux/usb/g_uvc.h
diff --git a/libc/include/generic-musl/linux/usb/gadgetfs.h b/libc/include/any-linux-any/linux/usb/gadgetfs.h
similarity index 100%
rename from libc/include/generic-musl/linux/usb/gadgetfs.h
rename to libc/include/any-linux-any/linux/usb/gadgetfs.h
diff --git a/libc/include/generic-musl/linux/usb/midi.h b/libc/include/any-linux-any/linux/usb/midi.h
similarity index 100%
rename from libc/include/generic-musl/linux/usb/midi.h
rename to libc/include/any-linux-any/linux/usb/midi.h
diff --git a/libc/include/generic-musl/linux/usb/tmc.h b/libc/include/any-linux-any/linux/usb/tmc.h
similarity index 100%
rename from libc/include/generic-musl/linux/usb/tmc.h
rename to libc/include/any-linux-any/linux/usb/tmc.h
diff --git a/libc/include/generic-musl/linux/usb/video.h b/libc/include/any-linux-any/linux/usb/video.h
similarity index 100%
rename from libc/include/generic-musl/linux/usb/video.h
rename to libc/include/any-linux-any/linux/usb/video.h
diff --git a/libc/include/generic-musl/linux/usbdevice_fs.h b/libc/include/any-linux-any/linux/usbdevice_fs.h
similarity index 100%
rename from libc/include/generic-musl/linux/usbdevice_fs.h
rename to libc/include/any-linux-any/linux/usbdevice_fs.h
diff --git a/libc/include/generic-musl/linux/usbip.h b/libc/include/any-linux-any/linux/usbip.h
similarity index 100%
rename from libc/include/generic-musl/linux/usbip.h
rename to libc/include/any-linux-any/linux/usbip.h
diff --git a/libc/include/generic-musl/linux/userfaultfd.h b/libc/include/any-linux-any/linux/userfaultfd.h
similarity index 100%
rename from libc/include/generic-musl/linux/userfaultfd.h
rename to libc/include/any-linux-any/linux/userfaultfd.h
diff --git a/libc/include/generic-musl/linux/userio.h b/libc/include/any-linux-any/linux/userio.h
similarity index 100%
rename from libc/include/generic-musl/linux/userio.h
rename to libc/include/any-linux-any/linux/userio.h
diff --git a/libc/include/generic-musl/linux/utime.h b/libc/include/any-linux-any/linux/utime.h
similarity index 100%
rename from libc/include/generic-musl/linux/utime.h
rename to libc/include/any-linux-any/linux/utime.h
diff --git a/libc/include/generic-musl/linux/utsname.h b/libc/include/any-linux-any/linux/utsname.h
similarity index 100%
rename from libc/include/generic-musl/linux/utsname.h
rename to libc/include/any-linux-any/linux/utsname.h
diff --git a/libc/include/generic-musl/linux/uuid.h b/libc/include/any-linux-any/linux/uuid.h
similarity index 100%
rename from libc/include/generic-musl/linux/uuid.h
rename to libc/include/any-linux-any/linux/uuid.h
diff --git a/libc/include/generic-musl/linux/uvcvideo.h b/libc/include/any-linux-any/linux/uvcvideo.h
similarity index 100%
rename from libc/include/generic-musl/linux/uvcvideo.h
rename to libc/include/any-linux-any/linux/uvcvideo.h
diff --git a/libc/include/generic-musl/linux/v4l2-common.h b/libc/include/any-linux-any/linux/v4l2-common.h
similarity index 100%
rename from libc/include/generic-musl/linux/v4l2-common.h
rename to libc/include/any-linux-any/linux/v4l2-common.h
diff --git a/libc/include/generic-musl/linux/v4l2-controls.h b/libc/include/any-linux-any/linux/v4l2-controls.h
similarity index 100%
rename from libc/include/generic-musl/linux/v4l2-controls.h
rename to libc/include/any-linux-any/linux/v4l2-controls.h
diff --git a/libc/include/generic-musl/linux/v4l2-dv-timings.h b/libc/include/any-linux-any/linux/v4l2-dv-timings.h
similarity index 100%
rename from libc/include/generic-musl/linux/v4l2-dv-timings.h
rename to libc/include/any-linux-any/linux/v4l2-dv-timings.h
diff --git a/libc/include/generic-musl/linux/v4l2-mediabus.h b/libc/include/any-linux-any/linux/v4l2-mediabus.h
similarity index 100%
rename from libc/include/generic-musl/linux/v4l2-mediabus.h
rename to libc/include/any-linux-any/linux/v4l2-mediabus.h
diff --git a/libc/include/generic-musl/linux/v4l2-subdev.h b/libc/include/any-linux-any/linux/v4l2-subdev.h
similarity index 100%
rename from libc/include/generic-musl/linux/v4l2-subdev.h
rename to libc/include/any-linux-any/linux/v4l2-subdev.h
diff --git a/libc/include/generic-musl/linux/vbox_err.h b/libc/include/any-linux-any/linux/vbox_err.h
similarity index 100%
rename from libc/include/generic-musl/linux/vbox_err.h
rename to libc/include/any-linux-any/linux/vbox_err.h
diff --git a/libc/include/generic-musl/linux/vbox_vmmdev_types.h b/libc/include/any-linux-any/linux/vbox_vmmdev_types.h
similarity index 100%
rename from libc/include/generic-musl/linux/vbox_vmmdev_types.h
rename to libc/include/any-linux-any/linux/vbox_vmmdev_types.h
diff --git a/libc/include/generic-musl/linux/vboxguest.h b/libc/include/any-linux-any/linux/vboxguest.h
similarity index 100%
rename from libc/include/generic-musl/linux/vboxguest.h
rename to libc/include/any-linux-any/linux/vboxguest.h
diff --git a/libc/include/generic-musl/linux/version.h b/libc/include/any-linux-any/linux/version.h
similarity index 100%
rename from libc/include/generic-musl/linux/version.h
rename to libc/include/any-linux-any/linux/version.h
diff --git a/libc/include/generic-musl/linux/veth.h b/libc/include/any-linux-any/linux/veth.h
similarity index 100%
rename from libc/include/generic-musl/linux/veth.h
rename to libc/include/any-linux-any/linux/veth.h
diff --git a/libc/include/generic-musl/linux/vfio.h b/libc/include/any-linux-any/linux/vfio.h
similarity index 100%
rename from libc/include/generic-musl/linux/vfio.h
rename to libc/include/any-linux-any/linux/vfio.h
diff --git a/libc/include/generic-musl/linux/vfio_ccw.h b/libc/include/any-linux-any/linux/vfio_ccw.h
similarity index 100%
rename from libc/include/generic-musl/linux/vfio_ccw.h
rename to libc/include/any-linux-any/linux/vfio_ccw.h
diff --git a/libc/include/generic-musl/linux/vhost.h b/libc/include/any-linux-any/linux/vhost.h
similarity index 100%
rename from libc/include/generic-musl/linux/vhost.h
rename to libc/include/any-linux-any/linux/vhost.h
diff --git a/libc/include/generic-musl/linux/videodev2.h b/libc/include/any-linux-any/linux/videodev2.h
similarity index 100%
rename from libc/include/generic-musl/linux/videodev2.h
rename to libc/include/any-linux-any/linux/videodev2.h
diff --git a/libc/include/generic-musl/linux/virtio_9p.h b/libc/include/any-linux-any/linux/virtio_9p.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_9p.h
rename to libc/include/any-linux-any/linux/virtio_9p.h
diff --git a/libc/include/generic-musl/linux/virtio_balloon.h b/libc/include/any-linux-any/linux/virtio_balloon.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_balloon.h
rename to libc/include/any-linux-any/linux/virtio_balloon.h
diff --git a/libc/include/generic-musl/linux/virtio_blk.h b/libc/include/any-linux-any/linux/virtio_blk.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_blk.h
rename to libc/include/any-linux-any/linux/virtio_blk.h
diff --git a/libc/include/generic-musl/linux/virtio_config.h b/libc/include/any-linux-any/linux/virtio_config.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_config.h
rename to libc/include/any-linux-any/linux/virtio_config.h
diff --git a/libc/include/generic-musl/linux/virtio_console.h b/libc/include/any-linux-any/linux/virtio_console.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_console.h
rename to libc/include/any-linux-any/linux/virtio_console.h
diff --git a/libc/include/generic-musl/linux/virtio_crypto.h b/libc/include/any-linux-any/linux/virtio_crypto.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_crypto.h
rename to libc/include/any-linux-any/linux/virtio_crypto.h
diff --git a/libc/include/generic-musl/linux/virtio_gpu.h b/libc/include/any-linux-any/linux/virtio_gpu.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_gpu.h
rename to libc/include/any-linux-any/linux/virtio_gpu.h
diff --git a/libc/include/generic-musl/linux/virtio_ids.h b/libc/include/any-linux-any/linux/virtio_ids.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_ids.h
rename to libc/include/any-linux-any/linux/virtio_ids.h
diff --git a/libc/include/generic-musl/linux/virtio_input.h b/libc/include/any-linux-any/linux/virtio_input.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_input.h
rename to libc/include/any-linux-any/linux/virtio_input.h
diff --git a/libc/include/generic-musl/linux/virtio_mmio.h b/libc/include/any-linux-any/linux/virtio_mmio.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_mmio.h
rename to libc/include/any-linux-any/linux/virtio_mmio.h
diff --git a/libc/include/generic-musl/linux/virtio_net.h b/libc/include/any-linux-any/linux/virtio_net.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_net.h
rename to libc/include/any-linux-any/linux/virtio_net.h
diff --git a/libc/include/generic-musl/linux/virtio_pci.h b/libc/include/any-linux-any/linux/virtio_pci.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_pci.h
rename to libc/include/any-linux-any/linux/virtio_pci.h
diff --git a/libc/include/generic-musl/linux/virtio_ring.h b/libc/include/any-linux-any/linux/virtio_ring.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_ring.h
rename to libc/include/any-linux-any/linux/virtio_ring.h
diff --git a/libc/include/generic-musl/linux/virtio_rng.h b/libc/include/any-linux-any/linux/virtio_rng.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_rng.h
rename to libc/include/any-linux-any/linux/virtio_rng.h
diff --git a/libc/include/generic-musl/linux/virtio_scsi.h b/libc/include/any-linux-any/linux/virtio_scsi.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_scsi.h
rename to libc/include/any-linux-any/linux/virtio_scsi.h
diff --git a/libc/include/generic-musl/linux/virtio_types.h b/libc/include/any-linux-any/linux/virtio_types.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_types.h
rename to libc/include/any-linux-any/linux/virtio_types.h
diff --git a/libc/include/generic-musl/linux/virtio_vsock.h b/libc/include/any-linux-any/linux/virtio_vsock.h
similarity index 100%
rename from libc/include/generic-musl/linux/virtio_vsock.h
rename to libc/include/any-linux-any/linux/virtio_vsock.h
diff --git a/libc/include/generic-musl/linux/vm_sockets.h b/libc/include/any-linux-any/linux/vm_sockets.h
similarity index 100%
rename from libc/include/generic-musl/linux/vm_sockets.h
rename to libc/include/any-linux-any/linux/vm_sockets.h
diff --git a/libc/include/generic-musl/linux/vm_sockets_diag.h b/libc/include/any-linux-any/linux/vm_sockets_diag.h
similarity index 100%
rename from libc/include/generic-musl/linux/vm_sockets_diag.h
rename to libc/include/any-linux-any/linux/vm_sockets_diag.h
diff --git a/libc/include/generic-musl/linux/vmcore.h b/libc/include/any-linux-any/linux/vmcore.h
similarity index 100%
rename from libc/include/generic-musl/linux/vmcore.h
rename to libc/include/any-linux-any/linux/vmcore.h
diff --git a/libc/include/generic-musl/linux/vsockmon.h b/libc/include/any-linux-any/linux/vsockmon.h
similarity index 100%
rename from libc/include/generic-musl/linux/vsockmon.h
rename to libc/include/any-linux-any/linux/vsockmon.h
diff --git a/libc/include/generic-musl/linux/vt.h b/libc/include/any-linux-any/linux/vt.h
similarity index 100%
rename from libc/include/generic-musl/linux/vt.h
rename to libc/include/any-linux-any/linux/vt.h
diff --git a/libc/include/generic-musl/linux/vtpm_proxy.h b/libc/include/any-linux-any/linux/vtpm_proxy.h
similarity index 100%
rename from libc/include/generic-musl/linux/vtpm_proxy.h
rename to libc/include/any-linux-any/linux/vtpm_proxy.h
diff --git a/libc/include/generic-musl/linux/wait.h b/libc/include/any-linux-any/linux/wait.h
similarity index 100%
rename from libc/include/generic-musl/linux/wait.h
rename to libc/include/any-linux-any/linux/wait.h
diff --git a/libc/include/generic-musl/linux/wanrouter.h b/libc/include/any-linux-any/linux/wanrouter.h
similarity index 100%
rename from libc/include/generic-musl/linux/wanrouter.h
rename to libc/include/any-linux-any/linux/wanrouter.h
diff --git a/libc/include/generic-musl/linux/watchdog.h b/libc/include/any-linux-any/linux/watchdog.h
similarity index 100%
rename from libc/include/generic-musl/linux/watchdog.h
rename to libc/include/any-linux-any/linux/watchdog.h
diff --git a/libc/include/generic-musl/linux/wimax.h b/libc/include/any-linux-any/linux/wimax.h
similarity index 100%
rename from libc/include/generic-musl/linux/wimax.h
rename to libc/include/any-linux-any/linux/wimax.h
diff --git a/libc/include/generic-musl/linux/wimax/i2400m.h b/libc/include/any-linux-any/linux/wimax/i2400m.h
similarity index 100%
rename from libc/include/generic-musl/linux/wimax/i2400m.h
rename to libc/include/any-linux-any/linux/wimax/i2400m.h
diff --git a/libc/include/generic-musl/linux/wireless.h b/libc/include/any-linux-any/linux/wireless.h
similarity index 100%
rename from libc/include/generic-musl/linux/wireless.h
rename to libc/include/any-linux-any/linux/wireless.h
diff --git a/libc/include/generic-musl/linux/wmi.h b/libc/include/any-linux-any/linux/wmi.h
similarity index 100%
rename from libc/include/generic-musl/linux/wmi.h
rename to libc/include/any-linux-any/linux/wmi.h
diff --git a/libc/include/generic-musl/linux/x25.h b/libc/include/any-linux-any/linux/x25.h
similarity index 100%
rename from libc/include/generic-musl/linux/x25.h
rename to libc/include/any-linux-any/linux/x25.h
diff --git a/libc/include/generic-musl/linux/xattr.h b/libc/include/any-linux-any/linux/xattr.h
similarity index 100%
rename from libc/include/generic-musl/linux/xattr.h
rename to libc/include/any-linux-any/linux/xattr.h
diff --git a/libc/include/generic-musl/linux/xfrm.h b/libc/include/any-linux-any/linux/xfrm.h
similarity index 100%
rename from libc/include/generic-musl/linux/xfrm.h
rename to libc/include/any-linux-any/linux/xfrm.h
diff --git a/libc/include/generic-musl/linux/xilinx-v4l2-controls.h b/libc/include/any-linux-any/linux/xilinx-v4l2-controls.h
similarity index 100%
rename from libc/include/generic-musl/linux/xilinx-v4l2-controls.h
rename to libc/include/any-linux-any/linux/xilinx-v4l2-controls.h
diff --git a/libc/include/generic-musl/linux/zorro.h b/libc/include/any-linux-any/linux/zorro.h
similarity index 100%
rename from libc/include/generic-musl/linux/zorro.h
rename to libc/include/any-linux-any/linux/zorro.h
diff --git a/libc/include/generic-musl/linux/zorro_ids.h b/libc/include/any-linux-any/linux/zorro_ids.h
similarity index 100%
rename from libc/include/generic-musl/linux/zorro_ids.h
rename to libc/include/any-linux-any/linux/zorro_ids.h
diff --git a/libc/include/arm-linux-musleabi/asm/fcntl.h b/libc/include/arm-linux-any/asm/fcntl.h
similarity index 100%
rename from libc/include/arm-linux-musleabi/asm/fcntl.h
rename to libc/include/arm-linux-any/asm/fcntl.h
diff --git a/libc/include/arm-linux-musleabi/asm/ioctls.h b/libc/include/arm-linux-any/asm/ioctls.h
similarity index 100%
rename from libc/include/arm-linux-musleabi/asm/ioctls.h
rename to libc/include/arm-linux-any/asm/ioctls.h
diff --git a/libc/include/arm-linux-musleabi/asm/mman.h b/libc/include/arm-linux-any/asm/mman.h
similarity index 100%
rename from libc/include/arm-linux-musleabi/asm/mman.h
rename to libc/include/arm-linux-any/asm/mman.h
diff --git a/libc/include/arm-linux-musleabi/asm/statfs.h b/libc/include/arm-linux-any/asm/statfs.h
similarity index 100%
rename from libc/include/arm-linux-musleabi/asm/statfs.h
rename to libc/include/arm-linux-any/asm/statfs.h
diff --git a/libc/include/arm-linux-musleabi/asm/swab.h b/libc/include/arm-linux-any/asm/swab.h
similarity index 100%
rename from libc/include/arm-linux-musleabi/asm/swab.h
rename to libc/include/arm-linux-any/asm/swab.h
diff --git a/libc/include/arm-linux-musleabi/asm/types.h b/libc/include/arm-linux-any/asm/types.h
similarity index 100%
rename from libc/include/arm-linux-musleabi/asm/types.h
rename to libc/include/arm-linux-any/asm/types.h
diff --git a/libc/include/arm-linux-gnueabi/asm/unistd.h b/libc/include/arm-linux-gnueabi/asm/unistd.h
deleted file mode 100644
index 93ecf8aa4f..0000000000
--- a/libc/include/arm-linux-gnueabi/asm/unistd.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * arch/arm/include/asm/unistd.h
- *
- * Copyright (C) 2001-2005 Russell King
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * Please forward _all_ changes to this file to rmk@arm.linux.org.uk,
- * no matter what the change is. Thanks!
- */
-#ifndef _UAPI__ASM_ARM_UNISTD_H
-#define _UAPI__ASM_ARM_UNISTD_H
-
-#define __NR_OABI_SYSCALL_BASE 0x900000
-
-#if defined(__thumb__) || defined(__ARM_EABI__)
-#define __NR_SYSCALL_BASE 0
-#include
-#else
-#define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE
-#include
-#endif
-
-#include
-#define __NR_sync_file_range2 __NR_arm_sync_file_range
-
-/*
- * The following SWIs are ARM private.
- */
-#define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000)
-#define __ARM_NR_breakpoint (__ARM_NR_BASE+1)
-#define __ARM_NR_cacheflush (__ARM_NR_BASE+2)
-#define __ARM_NR_usr26 (__ARM_NR_BASE+3)
-#define __ARM_NR_usr32 (__ARM_NR_BASE+4)
-#define __ARM_NR_set_tls (__ARM_NR_BASE+5)
-#define __ARM_NR_get_tls (__ARM_NR_BASE+6)
-
-#endif /* _UAPI__ASM_ARM_UNISTD_H */
diff --git a/libc/include/arm-linux-gnueabihf/asm/unistd.h b/libc/include/arm-linux-gnueabihf/asm/unistd.h
deleted file mode 100644
index 93ecf8aa4f..0000000000
--- a/libc/include/arm-linux-gnueabihf/asm/unistd.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * arch/arm/include/asm/unistd.h
- *
- * Copyright (C) 2001-2005 Russell King
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * Please forward _all_ changes to this file to rmk@arm.linux.org.uk,
- * no matter what the change is. Thanks!
- */
-#ifndef _UAPI__ASM_ARM_UNISTD_H
-#define _UAPI__ASM_ARM_UNISTD_H
-
-#define __NR_OABI_SYSCALL_BASE 0x900000
-
-#if defined(__thumb__) || defined(__ARM_EABI__)
-#define __NR_SYSCALL_BASE 0
-#include
-#else
-#define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE
-#include
-#endif
-
-#include
-#define __NR_sync_file_range2 __NR_arm_sync_file_range
-
-/*
- * The following SWIs are ARM private.
- */
-#define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000)
-#define __ARM_NR_breakpoint (__ARM_NR_BASE+1)
-#define __ARM_NR_cacheflush (__ARM_NR_BASE+2)
-#define __ARM_NR_usr26 (__ARM_NR_BASE+3)
-#define __ARM_NR_usr32 (__ARM_NR_BASE+4)
-#define __ARM_NR_set_tls (__ARM_NR_BASE+5)
-#define __ARM_NR_get_tls (__ARM_NR_BASE+6)
-
-#endif /* _UAPI__ASM_ARM_UNISTD_H */
diff --git a/libc/include/arm-linux-musleabihf/asm/fcntl.h b/libc/include/armeb-linux-any/asm/fcntl.h
similarity index 100%
rename from libc/include/arm-linux-musleabihf/asm/fcntl.h
rename to libc/include/armeb-linux-any/asm/fcntl.h
diff --git a/libc/include/arm-linux-musleabihf/asm/ioctls.h b/libc/include/armeb-linux-any/asm/ioctls.h
similarity index 100%
rename from libc/include/arm-linux-musleabihf/asm/ioctls.h
rename to libc/include/armeb-linux-any/asm/ioctls.h
diff --git a/libc/include/arm-linux-musleabihf/asm/mman.h b/libc/include/armeb-linux-any/asm/mman.h
similarity index 100%
rename from libc/include/arm-linux-musleabihf/asm/mman.h
rename to libc/include/armeb-linux-any/asm/mman.h
diff --git a/libc/include/arm-linux-musleabihf/asm/statfs.h b/libc/include/armeb-linux-any/asm/statfs.h
similarity index 100%
rename from libc/include/arm-linux-musleabihf/asm/statfs.h
rename to libc/include/armeb-linux-any/asm/statfs.h
diff --git a/libc/include/arm-linux-musleabihf/asm/swab.h b/libc/include/armeb-linux-any/asm/swab.h
similarity index 100%
rename from libc/include/arm-linux-musleabihf/asm/swab.h
rename to libc/include/armeb-linux-any/asm/swab.h
diff --git a/libc/include/arm-linux-musleabihf/asm/types.h b/libc/include/armeb-linux-any/asm/types.h
similarity index 100%
rename from libc/include/arm-linux-musleabihf/asm/types.h
rename to libc/include/armeb-linux-any/asm/types.h
diff --git a/libc/include/armeb-linux-gnueabi/asm/unistd.h b/libc/include/armeb-linux-gnueabi/asm/unistd.h
deleted file mode 100644
index 93ecf8aa4f..0000000000
--- a/libc/include/armeb-linux-gnueabi/asm/unistd.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * arch/arm/include/asm/unistd.h
- *
- * Copyright (C) 2001-2005 Russell King
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * Please forward _all_ changes to this file to rmk@arm.linux.org.uk,
- * no matter what the change is. Thanks!
- */
-#ifndef _UAPI__ASM_ARM_UNISTD_H
-#define _UAPI__ASM_ARM_UNISTD_H
-
-#define __NR_OABI_SYSCALL_BASE 0x900000
-
-#if defined(__thumb__) || defined(__ARM_EABI__)
-#define __NR_SYSCALL_BASE 0
-#include
-#else
-#define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE
-#include
-#endif
-
-#include
-#define __NR_sync_file_range2 __NR_arm_sync_file_range
-
-/*
- * The following SWIs are ARM private.
- */
-#define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000)
-#define __ARM_NR_breakpoint (__ARM_NR_BASE+1)
-#define __ARM_NR_cacheflush (__ARM_NR_BASE+2)
-#define __ARM_NR_usr26 (__ARM_NR_BASE+3)
-#define __ARM_NR_usr32 (__ARM_NR_BASE+4)
-#define __ARM_NR_set_tls (__ARM_NR_BASE+5)
-#define __ARM_NR_get_tls (__ARM_NR_BASE+6)
-
-#endif /* _UAPI__ASM_ARM_UNISTD_H */
diff --git a/libc/include/armeb-linux-gnueabihf/asm/unistd.h b/libc/include/armeb-linux-gnueabihf/asm/unistd.h
deleted file mode 100644
index 93ecf8aa4f..0000000000
--- a/libc/include/armeb-linux-gnueabihf/asm/unistd.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * arch/arm/include/asm/unistd.h
- *
- * Copyright (C) 2001-2005 Russell King
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * Please forward _all_ changes to this file to rmk@arm.linux.org.uk,
- * no matter what the change is. Thanks!
- */
-#ifndef _UAPI__ASM_ARM_UNISTD_H
-#define _UAPI__ASM_ARM_UNISTD_H
-
-#define __NR_OABI_SYSCALL_BASE 0x900000
-
-#if defined(__thumb__) || defined(__ARM_EABI__)
-#define __NR_SYSCALL_BASE 0
-#include
-#else
-#define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE
-#include
-#endif
-
-#include
-#define __NR_sync_file_range2 __NR_arm_sync_file_range
-
-/*
- * The following SWIs are ARM private.
- */
-#define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000)
-#define __ARM_NR_breakpoint (__ARM_NR_BASE+1)
-#define __ARM_NR_cacheflush (__ARM_NR_BASE+2)
-#define __ARM_NR_usr26 (__ARM_NR_BASE+3)
-#define __ARM_NR_usr32 (__ARM_NR_BASE+4)
-#define __ARM_NR_set_tls (__ARM_NR_BASE+5)
-#define __ARM_NR_get_tls (__ARM_NR_BASE+6)
-
-#endif /* _UAPI__ASM_ARM_UNISTD_H */
diff --git a/libc/include/armeb-linux-musleabi/asm/fcntl.h b/libc/include/armeb-linux-musleabi/asm/fcntl.h
deleted file mode 100644
index cb37c755d8..0000000000
--- a/libc/include/armeb-linux-musleabi/asm/fcntl.h
+++ /dev/null
@@ -1,12 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef _ARM_FCNTL_H
-#define _ARM_FCNTL_H
-
-#define O_DIRECTORY 040000 /* must be a directory */
-#define O_NOFOLLOW 0100000 /* don't follow links */
-#define O_DIRECT 0200000 /* direct disk access hint - currently ignored */
-#define O_LARGEFILE 0400000
-
-#include
-
-#endif
\ No newline at end of file
diff --git a/libc/include/armeb-linux-musleabi/asm/ioctls.h b/libc/include/armeb-linux-musleabi/asm/ioctls.h
deleted file mode 100644
index 9c66df15e6..0000000000
--- a/libc/include/armeb-linux-musleabi/asm/ioctls.h
+++ /dev/null
@@ -1,9 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef __ASM_ARM_IOCTLS_H
-#define __ASM_ARM_IOCTLS_H
-
-#define FIOQSIZE 0x545E
-
-#include
-
-#endif
\ No newline at end of file
diff --git a/libc/include/armeb-linux-musleabi/asm/mman.h b/libc/include/armeb-linux-musleabi/asm/mman.h
deleted file mode 100644
index ad0d0ee9e9..0000000000
--- a/libc/include/armeb-linux-musleabi/asm/mman.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#include
-
-#define arch_mmap_check(addr, len, flags) \
- (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? -EINVAL : 0)
\ No newline at end of file
diff --git a/libc/include/armeb-linux-musleabi/asm/statfs.h b/libc/include/armeb-linux-musleabi/asm/statfs.h
deleted file mode 100644
index 747d069fb5..0000000000
--- a/libc/include/armeb-linux-musleabi/asm/statfs.h
+++ /dev/null
@@ -1,13 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef _ASMARM_STATFS_H
-#define _ASMARM_STATFS_H
-
-/*
- * With EABI there is 4 bytes of padding added to this structure.
- * Let's pack it so the padding goes away to simplify dual ABI support.
- * Note that user space does NOT have to pack this structure.
- */
-#define ARCH_PACK_STATFS64 __attribute__((packed,aligned(4)))
-
-#include
-#endif
\ No newline at end of file
diff --git a/libc/include/armeb-linux-musleabi/asm/swab.h b/libc/include/armeb-linux-musleabi/asm/swab.h
deleted file mode 100644
index 6bbffc60c7..0000000000
--- a/libc/include/armeb-linux-musleabi/asm/swab.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * arch/arm/include/asm/byteorder.h
- *
- * ARM Endian-ness. In little endian mode, the data bus is connected such
- * that byte accesses appear as:
- * 0 = d0...d7, 1 = d8...d15, 2 = d16...d23, 3 = d24...d31
- * and word accesses (data or instruction) appear as:
- * d0...d31
- *
- * When in big endian mode, byte accesses appear as:
- * 0 = d24...d31, 1 = d16...d23, 2 = d8...d15, 3 = d0...d7
- * and word accesses (data or instruction) appear as:
- * d0...d31
- */
-#ifndef __ASM_ARM_SWAB_H
-#define __ASM_ARM_SWAB_H
-
-
-#include
-
-#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
-# define __SWAB_64_THRU_32__
-#endif
-
-
-static __inline__ __u32 __arch_swab32(__u32 x)
-{
- __u32 t;
-
-#ifndef __thumb__
- if (!__builtin_constant_p(x)) {
- /*
- * The compiler needs a bit of a hint here to always do the
- * right thing and not screw it up to different degrees
- * depending on the gcc version.
- */
- __asm__ ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x));
- } else
-#endif
- t = x ^ ((x << 16) | (x >> 16)); /* eor r1,r0,r0,ror #16 */
-
- x = (x << 24) | (x >> 8); /* mov r0,r0,ror #8 */
- t &= ~0x00FF0000; /* bic r1,r1,#0x00FF0000 */
- x ^= (t >> 8); /* eor r0,r0,r1,lsr #8 */
-
- return x;
-}
-#define __arch_swab32 __arch_swab32
-
-
-#endif /* __ASM_ARM_SWAB_H */
\ No newline at end of file
diff --git a/libc/include/armeb-linux-musleabi/asm/types.h b/libc/include/armeb-linux-musleabi/asm/types.h
deleted file mode 100644
index e031ce467f..0000000000
--- a/libc/include/armeb-linux-musleabi/asm/types.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef _ASM_TYPES_H
-#define _ASM_TYPES_H
-
-#include
-
-/*
- * The C99 types uintXX_t that are usually defined in 'stdint.h' are not as
- * unambiguous on ARM as you would expect. For the types below, there is a
- * difference on ARM between GCC built for bare metal ARM, GCC built for glibc
- * and the kernel itself, which results in build errors if you try to build with
- * -ffreestanding and include 'stdint.h' (such as when you include 'arm_neon.h'
- * in order to use NEON intrinsics)
- *
- * As the typedefs for these types in 'stdint.h' are based on builtin defines
- * supplied by GCC, we can tweak these to align with the kernel's idea of those
- * types, so 'linux/types.h' and 'stdint.h' can be safely included from the same
- * source file (provided that -ffreestanding is used).
- *
- * int32_t uint32_t uintptr_t
- * bare metal GCC long unsigned long unsigned int
- * glibc GCC int unsigned int unsigned int
- * kernel int unsigned int unsigned long
- */
-
-#ifdef __INT32_TYPE__
-#undef __INT32_TYPE__
-#define __INT32_TYPE__ int
-#endif
-
-#ifdef __UINT32_TYPE__
-#undef __UINT32_TYPE__
-#define __UINT32_TYPE__ unsigned int
-#endif
-
-#ifdef __UINTPTR_TYPE__
-#undef __UINTPTR_TYPE__
-#define __UINTPTR_TYPE__ unsigned long
-#endif
-
-#endif /* _ASM_TYPES_H */
\ No newline at end of file
diff --git a/libc/include/armeb-linux-musleabihf/asm/fcntl.h b/libc/include/armeb-linux-musleabihf/asm/fcntl.h
deleted file mode 100644
index cb37c755d8..0000000000
--- a/libc/include/armeb-linux-musleabihf/asm/fcntl.h
+++ /dev/null
@@ -1,12 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef _ARM_FCNTL_H
-#define _ARM_FCNTL_H
-
-#define O_DIRECTORY 040000 /* must be a directory */
-#define O_NOFOLLOW 0100000 /* don't follow links */
-#define O_DIRECT 0200000 /* direct disk access hint - currently ignored */
-#define O_LARGEFILE 0400000
-
-#include
-
-#endif
\ No newline at end of file
diff --git a/libc/include/armeb-linux-musleabihf/asm/ioctls.h b/libc/include/armeb-linux-musleabihf/asm/ioctls.h
deleted file mode 100644
index 9c66df15e6..0000000000
--- a/libc/include/armeb-linux-musleabihf/asm/ioctls.h
+++ /dev/null
@@ -1,9 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef __ASM_ARM_IOCTLS_H
-#define __ASM_ARM_IOCTLS_H
-
-#define FIOQSIZE 0x545E
-
-#include
-
-#endif
\ No newline at end of file
diff --git a/libc/include/armeb-linux-musleabihf/asm/mman.h b/libc/include/armeb-linux-musleabihf/asm/mman.h
deleted file mode 100644
index ad0d0ee9e9..0000000000
--- a/libc/include/armeb-linux-musleabihf/asm/mman.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#include
-
-#define arch_mmap_check(addr, len, flags) \
- (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? -EINVAL : 0)
\ No newline at end of file
diff --git a/libc/include/armeb-linux-musleabihf/asm/statfs.h b/libc/include/armeb-linux-musleabihf/asm/statfs.h
deleted file mode 100644
index 747d069fb5..0000000000
--- a/libc/include/armeb-linux-musleabihf/asm/statfs.h
+++ /dev/null
@@ -1,13 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef _ASMARM_STATFS_H
-#define _ASMARM_STATFS_H
-
-/*
- * With EABI there is 4 bytes of padding added to this structure.
- * Let's pack it so the padding goes away to simplify dual ABI support.
- * Note that user space does NOT have to pack this structure.
- */
-#define ARCH_PACK_STATFS64 __attribute__((packed,aligned(4)))
-
-#include
-#endif
\ No newline at end of file
diff --git a/libc/include/armeb-linux-musleabihf/asm/swab.h b/libc/include/armeb-linux-musleabihf/asm/swab.h
deleted file mode 100644
index 6bbffc60c7..0000000000
--- a/libc/include/armeb-linux-musleabihf/asm/swab.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * arch/arm/include/asm/byteorder.h
- *
- * ARM Endian-ness. In little endian mode, the data bus is connected such
- * that byte accesses appear as:
- * 0 = d0...d7, 1 = d8...d15, 2 = d16...d23, 3 = d24...d31
- * and word accesses (data or instruction) appear as:
- * d0...d31
- *
- * When in big endian mode, byte accesses appear as:
- * 0 = d24...d31, 1 = d16...d23, 2 = d8...d15, 3 = d0...d7
- * and word accesses (data or instruction) appear as:
- * d0...d31
- */
-#ifndef __ASM_ARM_SWAB_H
-#define __ASM_ARM_SWAB_H
-
-
-#include
-
-#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
-# define __SWAB_64_THRU_32__
-#endif
-
-
-static __inline__ __u32 __arch_swab32(__u32 x)
-{
- __u32 t;
-
-#ifndef __thumb__
- if (!__builtin_constant_p(x)) {
- /*
- * The compiler needs a bit of a hint here to always do the
- * right thing and not screw it up to different degrees
- * depending on the gcc version.
- */
- __asm__ ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x));
- } else
-#endif
- t = x ^ ((x << 16) | (x >> 16)); /* eor r1,r0,r0,ror #16 */
-
- x = (x << 24) | (x >> 8); /* mov r0,r0,ror #8 */
- t &= ~0x00FF0000; /* bic r1,r1,#0x00FF0000 */
- x ^= (t >> 8); /* eor r0,r0,r1,lsr #8 */
-
- return x;
-}
-#define __arch_swab32 __arch_swab32
-
-
-#endif /* __ASM_ARM_SWAB_H */
\ No newline at end of file
diff --git a/libc/include/armeb-linux-musleabihf/asm/types.h b/libc/include/armeb-linux-musleabihf/asm/types.h
deleted file mode 100644
index e031ce467f..0000000000
--- a/libc/include/armeb-linux-musleabihf/asm/types.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef _ASM_TYPES_H
-#define _ASM_TYPES_H
-
-#include
-
-/*
- * The C99 types uintXX_t that are usually defined in 'stdint.h' are not as
- * unambiguous on ARM as you would expect. For the types below, there is a
- * difference on ARM between GCC built for bare metal ARM, GCC built for glibc
- * and the kernel itself, which results in build errors if you try to build with
- * -ffreestanding and include 'stdint.h' (such as when you include 'arm_neon.h'
- * in order to use NEON intrinsics)
- *
- * As the typedefs for these types in 'stdint.h' are based on builtin defines
- * supplied by GCC, we can tweak these to align with the kernel's idea of those
- * types, so 'linux/types.h' and 'stdint.h' can be safely included from the same
- * source file (provided that -ffreestanding is used).
- *
- * int32_t uint32_t uintptr_t
- * bare metal GCC long unsigned long unsigned int
- * glibc GCC int unsigned int unsigned int
- * kernel int unsigned int unsigned long
- */
-
-#ifdef __INT32_TYPE__
-#undef __INT32_TYPE__
-#define __INT32_TYPE__ int
-#endif
-
-#ifdef __UINT32_TYPE__
-#undef __UINT32_TYPE__
-#define __UINT32_TYPE__ unsigned int
-#endif
-
-#ifdef __UINTPTR_TYPE__
-#undef __UINTPTR_TYPE__
-#define __UINTPTR_TYPE__ unsigned long
-#endif
-
-#endif /* _ASM_TYPES_H */
\ No newline at end of file
diff --git a/libc/include/generic-glibc/asm-generic/bitsperlong.h b/libc/include/generic-glibc/asm-generic/bitsperlong.h
deleted file mode 100644
index 693d9a40eb..0000000000
--- a/libc/include/generic-glibc/asm-generic/bitsperlong.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef _UAPI__ASM_GENERIC_BITS_PER_LONG
-#define _UAPI__ASM_GENERIC_BITS_PER_LONG
-
-/*
- * There seems to be no way of detecting this automatically from user
- * space, so 64 bit architectures should override this in their
- * bitsperlong.h. In particular, an architecture that supports
- * both 32 and 64 bit user space must not rely on CONFIG_64BIT
- * to decide it, but rather check a compiler provided macro.
- */
-#ifndef __BITS_PER_LONG
-#define __BITS_PER_LONG 32
-#endif
-
-#endif /* _UAPI__ASM_GENERIC_BITS_PER_LONG */
diff --git a/libc/include/generic-glibc/asm-generic/unistd.h b/libc/include/generic-glibc/asm-generic/unistd.h
deleted file mode 100644
index c7f3321fbe..0000000000
--- a/libc/include/generic-glibc/asm-generic/unistd.h
+++ /dev/null
@@ -1,791 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#include
-
-/*
- * This file contains the system call numbers, based on the
- * layout of the x86-64 architecture, which embeds the
- * pointer to the syscall in the table.
- *
- * As a basic principle, no duplication of functionality
- * should be added, e.g. we don't use lseek when llseek
- * is present. New architectures should use this file
- * and implement the less feature-full calls in user space.
- */
-
-#ifndef __SYSCALL
-#define __SYSCALL(x, y)
-#endif
-
-#if __BITS_PER_LONG == 32 || defined(__SYSCALL_COMPAT)
-#define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _32)
-#else
-#define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _64)
-#endif
-
-#ifdef __SYSCALL_COMPAT
-#define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _comp)
-#define __SC_COMP_3264(_nr, _32, _64, _comp) __SYSCALL(_nr, _comp)
-#else
-#define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
-#define __SC_COMP_3264(_nr, _32, _64, _comp) __SC_3264(_nr, _32, _64)
-#endif
-
-#define __NR_io_setup 0
-__SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup)
-#define __NR_io_destroy 1
-__SYSCALL(__NR_io_destroy, sys_io_destroy)
-#define __NR_io_submit 2
-__SC_COMP(__NR_io_submit, sys_io_submit, compat_sys_io_submit)
-#define __NR_io_cancel 3
-__SYSCALL(__NR_io_cancel, sys_io_cancel)
-#define __NR_io_getevents 4
-__SC_COMP(__NR_io_getevents, sys_io_getevents, compat_sys_io_getevents)
-
-/* fs/xattr.c */
-#define __NR_setxattr 5
-__SYSCALL(__NR_setxattr, sys_setxattr)
-#define __NR_lsetxattr 6
-__SYSCALL(__NR_lsetxattr, sys_lsetxattr)
-#define __NR_fsetxattr 7
-__SYSCALL(__NR_fsetxattr, sys_fsetxattr)
-#define __NR_getxattr 8
-__SYSCALL(__NR_getxattr, sys_getxattr)
-#define __NR_lgetxattr 9
-__SYSCALL(__NR_lgetxattr, sys_lgetxattr)
-#define __NR_fgetxattr 10
-__SYSCALL(__NR_fgetxattr, sys_fgetxattr)
-#define __NR_listxattr 11
-__SYSCALL(__NR_listxattr, sys_listxattr)
-#define __NR_llistxattr 12
-__SYSCALL(__NR_llistxattr, sys_llistxattr)
-#define __NR_flistxattr 13
-__SYSCALL(__NR_flistxattr, sys_flistxattr)
-#define __NR_removexattr 14
-__SYSCALL(__NR_removexattr, sys_removexattr)
-#define __NR_lremovexattr 15
-__SYSCALL(__NR_lremovexattr, sys_lremovexattr)
-#define __NR_fremovexattr 16
-__SYSCALL(__NR_fremovexattr, sys_fremovexattr)
-
-/* fs/dcache.c */
-#define __NR_getcwd 17
-__SYSCALL(__NR_getcwd, sys_getcwd)
-
-/* fs/cookies.c */
-#define __NR_lookup_dcookie 18
-__SC_COMP(__NR_lookup_dcookie, sys_lookup_dcookie, compat_sys_lookup_dcookie)
-
-/* fs/eventfd.c */
-#define __NR_eventfd2 19
-__SYSCALL(__NR_eventfd2, sys_eventfd2)
-
-/* fs/eventpoll.c */
-#define __NR_epoll_create1 20
-__SYSCALL(__NR_epoll_create1, sys_epoll_create1)
-#define __NR_epoll_ctl 21
-__SYSCALL(__NR_epoll_ctl, sys_epoll_ctl)
-#define __NR_epoll_pwait 22
-__SC_COMP(__NR_epoll_pwait, sys_epoll_pwait, compat_sys_epoll_pwait)
-
-/* fs/fcntl.c */
-#define __NR_dup 23
-__SYSCALL(__NR_dup, sys_dup)
-#define __NR_dup3 24
-__SYSCALL(__NR_dup3, sys_dup3)
-#define __NR3264_fcntl 25
-__SC_COMP_3264(__NR3264_fcntl, sys_fcntl64, sys_fcntl, compat_sys_fcntl64)
-
-/* fs/inotify_user.c */
-#define __NR_inotify_init1 26
-__SYSCALL(__NR_inotify_init1, sys_inotify_init1)
-#define __NR_inotify_add_watch 27
-__SYSCALL(__NR_inotify_add_watch, sys_inotify_add_watch)
-#define __NR_inotify_rm_watch 28
-__SYSCALL(__NR_inotify_rm_watch, sys_inotify_rm_watch)
-
-/* fs/ioctl.c */
-#define __NR_ioctl 29
-__SC_COMP(__NR_ioctl, sys_ioctl, compat_sys_ioctl)
-
-/* fs/ioprio.c */
-#define __NR_ioprio_set 30
-__SYSCALL(__NR_ioprio_set, sys_ioprio_set)
-#define __NR_ioprio_get 31
-__SYSCALL(__NR_ioprio_get, sys_ioprio_get)
-
-/* fs/locks.c */
-#define __NR_flock 32
-__SYSCALL(__NR_flock, sys_flock)
-
-/* fs/namei.c */
-#define __NR_mknodat 33
-__SYSCALL(__NR_mknodat, sys_mknodat)
-#define __NR_mkdirat 34
-__SYSCALL(__NR_mkdirat, sys_mkdirat)
-#define __NR_unlinkat 35
-__SYSCALL(__NR_unlinkat, sys_unlinkat)
-#define __NR_symlinkat 36
-__SYSCALL(__NR_symlinkat, sys_symlinkat)
-#define __NR_linkat 37
-__SYSCALL(__NR_linkat, sys_linkat)
-#ifdef __ARCH_WANT_RENAMEAT
-/* renameat is superseded with flags by renameat2 */
-#define __NR_renameat 38
-__SYSCALL(__NR_renameat, sys_renameat)
-#endif /* __ARCH_WANT_RENAMEAT */
-
-/* fs/namespace.c */
-#define __NR_umount2 39
-__SYSCALL(__NR_umount2, sys_umount)
-#define __NR_mount 40
-__SC_COMP(__NR_mount, sys_mount, compat_sys_mount)
-#define __NR_pivot_root 41
-__SYSCALL(__NR_pivot_root, sys_pivot_root)
-
-/* fs/nfsctl.c */
-#define __NR_nfsservctl 42
-__SYSCALL(__NR_nfsservctl, sys_ni_syscall)
-
-/* fs/open.c */
-#define __NR3264_statfs 43
-__SC_COMP_3264(__NR3264_statfs, sys_statfs64, sys_statfs, \
- compat_sys_statfs64)
-#define __NR3264_fstatfs 44
-__SC_COMP_3264(__NR3264_fstatfs, sys_fstatfs64, sys_fstatfs, \
- compat_sys_fstatfs64)
-#define __NR3264_truncate 45
-__SC_COMP_3264(__NR3264_truncate, sys_truncate64, sys_truncate, \
- compat_sys_truncate64)
-#define __NR3264_ftruncate 46
-__SC_COMP_3264(__NR3264_ftruncate, sys_ftruncate64, sys_ftruncate, \
- compat_sys_ftruncate64)
-
-#define __NR_fallocate 47
-__SC_COMP(__NR_fallocate, sys_fallocate, compat_sys_fallocate)
-#define __NR_faccessat 48
-__SYSCALL(__NR_faccessat, sys_faccessat)
-#define __NR_chdir 49
-__SYSCALL(__NR_chdir, sys_chdir)
-#define __NR_fchdir 50
-__SYSCALL(__NR_fchdir, sys_fchdir)
-#define __NR_chroot 51
-__SYSCALL(__NR_chroot, sys_chroot)
-#define __NR_fchmod 52
-__SYSCALL(__NR_fchmod, sys_fchmod)
-#define __NR_fchmodat 53
-__SYSCALL(__NR_fchmodat, sys_fchmodat)
-#define __NR_fchownat 54
-__SYSCALL(__NR_fchownat, sys_fchownat)
-#define __NR_fchown 55
-__SYSCALL(__NR_fchown, sys_fchown)
-#define __NR_openat 56
-__SC_COMP(__NR_openat, sys_openat, compat_sys_openat)
-#define __NR_close 57
-__SYSCALL(__NR_close, sys_close)
-#define __NR_vhangup 58
-__SYSCALL(__NR_vhangup, sys_vhangup)
-
-/* fs/pipe.c */
-#define __NR_pipe2 59
-__SYSCALL(__NR_pipe2, sys_pipe2)
-
-/* fs/quota.c */
-#define __NR_quotactl 60
-__SYSCALL(__NR_quotactl, sys_quotactl)
-
-/* fs/readdir.c */
-#define __NR_getdents64 61
-__SYSCALL(__NR_getdents64, sys_getdents64)
-
-/* fs/read_write.c */
-#define __NR3264_lseek 62
-__SC_3264(__NR3264_lseek, sys_llseek, sys_lseek)
-#define __NR_read 63
-__SYSCALL(__NR_read, sys_read)
-#define __NR_write 64
-__SYSCALL(__NR_write, sys_write)
-#define __NR_readv 65
-__SC_COMP(__NR_readv, sys_readv, compat_sys_readv)
-#define __NR_writev 66
-__SC_COMP(__NR_writev, sys_writev, compat_sys_writev)
-#define __NR_pread64 67
-__SC_COMP(__NR_pread64, sys_pread64, compat_sys_pread64)
-#define __NR_pwrite64 68
-__SC_COMP(__NR_pwrite64, sys_pwrite64, compat_sys_pwrite64)
-#define __NR_preadv 69
-__SC_COMP(__NR_preadv, sys_preadv, compat_sys_preadv)
-#define __NR_pwritev 70
-__SC_COMP(__NR_pwritev, sys_pwritev, compat_sys_pwritev)
-
-/* fs/sendfile.c */
-#define __NR3264_sendfile 71
-__SYSCALL(__NR3264_sendfile, sys_sendfile64)
-
-/* fs/select.c */
-#define __NR_pselect6 72
-__SC_COMP(__NR_pselect6, sys_pselect6, compat_sys_pselect6)
-#define __NR_ppoll 73
-__SC_COMP(__NR_ppoll, sys_ppoll, compat_sys_ppoll)
-
-/* fs/signalfd.c */
-#define __NR_signalfd4 74
-__SC_COMP(__NR_signalfd4, sys_signalfd4, compat_sys_signalfd4)
-
-/* fs/splice.c */
-#define __NR_vmsplice 75
-__SC_COMP(__NR_vmsplice, sys_vmsplice, compat_sys_vmsplice)
-#define __NR_splice 76
-__SYSCALL(__NR_splice, sys_splice)
-#define __NR_tee 77
-__SYSCALL(__NR_tee, sys_tee)
-
-/* fs/stat.c */
-#define __NR_readlinkat 78
-__SYSCALL(__NR_readlinkat, sys_readlinkat)
-#if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64)
-#define __NR3264_fstatat 79
-__SC_3264(__NR3264_fstatat, sys_fstatat64, sys_newfstatat)
-#define __NR3264_fstat 80
-__SC_3264(__NR3264_fstat, sys_fstat64, sys_newfstat)
-#endif
-
-/* fs/sync.c */
-#define __NR_sync 81
-__SYSCALL(__NR_sync, sys_sync)
-#define __NR_fsync 82
-__SYSCALL(__NR_fsync, sys_fsync)
-#define __NR_fdatasync 83
-__SYSCALL(__NR_fdatasync, sys_fdatasync)
-#ifdef __ARCH_WANT_SYNC_FILE_RANGE2
-#define __NR_sync_file_range2 84
-__SC_COMP(__NR_sync_file_range2, sys_sync_file_range2, \
- compat_sys_sync_file_range2)
-#else
-#define __NR_sync_file_range 84
-__SC_COMP(__NR_sync_file_range, sys_sync_file_range, \
- compat_sys_sync_file_range)
-#endif
-
-/* fs/timerfd.c */
-#define __NR_timerfd_create 85
-__SYSCALL(__NR_timerfd_create, sys_timerfd_create)
-#define __NR_timerfd_settime 86
-__SC_COMP(__NR_timerfd_settime, sys_timerfd_settime, \
- compat_sys_timerfd_settime)
-#define __NR_timerfd_gettime 87
-__SC_COMP(__NR_timerfd_gettime, sys_timerfd_gettime, \
- compat_sys_timerfd_gettime)
-
-/* fs/utimes.c */
-#define __NR_utimensat 88
-__SC_COMP(__NR_utimensat, sys_utimensat, compat_sys_utimensat)
-
-/* kernel/acct.c */
-#define __NR_acct 89
-__SYSCALL(__NR_acct, sys_acct)
-
-/* kernel/capability.c */
-#define __NR_capget 90
-__SYSCALL(__NR_capget, sys_capget)
-#define __NR_capset 91
-__SYSCALL(__NR_capset, sys_capset)
-
-/* kernel/exec_domain.c */
-#define __NR_personality 92
-__SYSCALL(__NR_personality, sys_personality)
-
-/* kernel/exit.c */
-#define __NR_exit 93
-__SYSCALL(__NR_exit, sys_exit)
-#define __NR_exit_group 94
-__SYSCALL(__NR_exit_group, sys_exit_group)
-#define __NR_waitid 95
-__SC_COMP(__NR_waitid, sys_waitid, compat_sys_waitid)
-
-/* kernel/fork.c */
-#define __NR_set_tid_address 96
-__SYSCALL(__NR_set_tid_address, sys_set_tid_address)
-#define __NR_unshare 97
-__SYSCALL(__NR_unshare, sys_unshare)
-
-/* kernel/futex.c */
-#define __NR_futex 98
-__SC_COMP(__NR_futex, sys_futex, compat_sys_futex)
-#define __NR_set_robust_list 99
-__SC_COMP(__NR_set_robust_list, sys_set_robust_list, \
- compat_sys_set_robust_list)
-#define __NR_get_robust_list 100
-__SC_COMP(__NR_get_robust_list, sys_get_robust_list, \
- compat_sys_get_robust_list)
-
-/* kernel/hrtimer.c */
-#define __NR_nanosleep 101
-__SC_COMP(__NR_nanosleep, sys_nanosleep, compat_sys_nanosleep)
-
-/* kernel/itimer.c */
-#define __NR_getitimer 102
-__SC_COMP(__NR_getitimer, sys_getitimer, compat_sys_getitimer)
-#define __NR_setitimer 103
-__SC_COMP(__NR_setitimer, sys_setitimer, compat_sys_setitimer)
-
-/* kernel/kexec.c */
-#define __NR_kexec_load 104
-__SC_COMP(__NR_kexec_load, sys_kexec_load, compat_sys_kexec_load)
-
-/* kernel/module.c */
-#define __NR_init_module 105
-__SYSCALL(__NR_init_module, sys_init_module)
-#define __NR_delete_module 106
-__SYSCALL(__NR_delete_module, sys_delete_module)
-
-/* kernel/posix-timers.c */
-#define __NR_timer_create 107
-__SC_COMP(__NR_timer_create, sys_timer_create, compat_sys_timer_create)
-#define __NR_timer_gettime 108
-__SC_COMP(__NR_timer_gettime, sys_timer_gettime, compat_sys_timer_gettime)
-#define __NR_timer_getoverrun 109
-__SYSCALL(__NR_timer_getoverrun, sys_timer_getoverrun)
-#define __NR_timer_settime 110
-__SC_COMP(__NR_timer_settime, sys_timer_settime, compat_sys_timer_settime)
-#define __NR_timer_delete 111
-__SYSCALL(__NR_timer_delete, sys_timer_delete)
-#define __NR_clock_settime 112
-__SC_COMP(__NR_clock_settime, sys_clock_settime, compat_sys_clock_settime)
-#define __NR_clock_gettime 113
-__SC_COMP(__NR_clock_gettime, sys_clock_gettime, compat_sys_clock_gettime)
-#define __NR_clock_getres 114
-__SC_COMP(__NR_clock_getres, sys_clock_getres, compat_sys_clock_getres)
-#define __NR_clock_nanosleep 115
-__SC_COMP(__NR_clock_nanosleep, sys_clock_nanosleep, \
- compat_sys_clock_nanosleep)
-
-/* kernel/printk.c */
-#define __NR_syslog 116
-__SYSCALL(__NR_syslog, sys_syslog)
-
-/* kernel/ptrace.c */
-#define __NR_ptrace 117
-__SYSCALL(__NR_ptrace, sys_ptrace)
-
-/* kernel/sched/core.c */
-#define __NR_sched_setparam 118
-__SYSCALL(__NR_sched_setparam, sys_sched_setparam)
-#define __NR_sched_setscheduler 119
-__SYSCALL(__NR_sched_setscheduler, sys_sched_setscheduler)
-#define __NR_sched_getscheduler 120
-__SYSCALL(__NR_sched_getscheduler, sys_sched_getscheduler)
-#define __NR_sched_getparam 121
-__SYSCALL(__NR_sched_getparam, sys_sched_getparam)
-#define __NR_sched_setaffinity 122
-__SC_COMP(__NR_sched_setaffinity, sys_sched_setaffinity, \
- compat_sys_sched_setaffinity)
-#define __NR_sched_getaffinity 123
-__SC_COMP(__NR_sched_getaffinity, sys_sched_getaffinity, \
- compat_sys_sched_getaffinity)
-#define __NR_sched_yield 124
-__SYSCALL(__NR_sched_yield, sys_sched_yield)
-#define __NR_sched_get_priority_max 125
-__SYSCALL(__NR_sched_get_priority_max, sys_sched_get_priority_max)
-#define __NR_sched_get_priority_min 126
-__SYSCALL(__NR_sched_get_priority_min, sys_sched_get_priority_min)
-#define __NR_sched_rr_get_interval 127
-__SC_COMP(__NR_sched_rr_get_interval, sys_sched_rr_get_interval, \
- compat_sys_sched_rr_get_interval)
-
-/* kernel/signal.c */
-#define __NR_restart_syscall 128
-__SYSCALL(__NR_restart_syscall, sys_restart_syscall)
-#define __NR_kill 129
-__SYSCALL(__NR_kill, sys_kill)
-#define __NR_tkill 130
-__SYSCALL(__NR_tkill, sys_tkill)
-#define __NR_tgkill 131
-__SYSCALL(__NR_tgkill, sys_tgkill)
-#define __NR_sigaltstack 132
-__SC_COMP(__NR_sigaltstack, sys_sigaltstack, compat_sys_sigaltstack)
-#define __NR_rt_sigsuspend 133
-__SC_COMP(__NR_rt_sigsuspend, sys_rt_sigsuspend, compat_sys_rt_sigsuspend)
-#define __NR_rt_sigaction 134
-__SC_COMP(__NR_rt_sigaction, sys_rt_sigaction, compat_sys_rt_sigaction)
-#define __NR_rt_sigprocmask 135
-__SC_COMP(__NR_rt_sigprocmask, sys_rt_sigprocmask, compat_sys_rt_sigprocmask)
-#define __NR_rt_sigpending 136
-__SC_COMP(__NR_rt_sigpending, sys_rt_sigpending, compat_sys_rt_sigpending)
-#define __NR_rt_sigtimedwait 137
-__SC_COMP(__NR_rt_sigtimedwait, sys_rt_sigtimedwait, \
- compat_sys_rt_sigtimedwait)
-#define __NR_rt_sigqueueinfo 138
-__SC_COMP(__NR_rt_sigqueueinfo, sys_rt_sigqueueinfo, \
- compat_sys_rt_sigqueueinfo)
-#define __NR_rt_sigreturn 139
-__SC_COMP(__NR_rt_sigreturn, sys_rt_sigreturn, compat_sys_rt_sigreturn)
-
-/* kernel/sys.c */
-#define __NR_setpriority 140
-__SYSCALL(__NR_setpriority, sys_setpriority)
-#define __NR_getpriority 141
-__SYSCALL(__NR_getpriority, sys_getpriority)
-#define __NR_reboot 142
-__SYSCALL(__NR_reboot, sys_reboot)
-#define __NR_setregid 143
-__SYSCALL(__NR_setregid, sys_setregid)
-#define __NR_setgid 144
-__SYSCALL(__NR_setgid, sys_setgid)
-#define __NR_setreuid 145
-__SYSCALL(__NR_setreuid, sys_setreuid)
-#define __NR_setuid 146
-__SYSCALL(__NR_setuid, sys_setuid)
-#define __NR_setresuid 147
-__SYSCALL(__NR_setresuid, sys_setresuid)
-#define __NR_getresuid 148
-__SYSCALL(__NR_getresuid, sys_getresuid)
-#define __NR_setresgid 149
-__SYSCALL(__NR_setresgid, sys_setresgid)
-#define __NR_getresgid 150
-__SYSCALL(__NR_getresgid, sys_getresgid)
-#define __NR_setfsuid 151
-__SYSCALL(__NR_setfsuid, sys_setfsuid)
-#define __NR_setfsgid 152
-__SYSCALL(__NR_setfsgid, sys_setfsgid)
-#define __NR_times 153
-__SC_COMP(__NR_times, sys_times, compat_sys_times)
-#define __NR_setpgid 154
-__SYSCALL(__NR_setpgid, sys_setpgid)
-#define __NR_getpgid 155
-__SYSCALL(__NR_getpgid, sys_getpgid)
-#define __NR_getsid 156
-__SYSCALL(__NR_getsid, sys_getsid)
-#define __NR_setsid 157
-__SYSCALL(__NR_setsid, sys_setsid)
-#define __NR_getgroups 158
-__SYSCALL(__NR_getgroups, sys_getgroups)
-#define __NR_setgroups 159
-__SYSCALL(__NR_setgroups, sys_setgroups)
-#define __NR_uname 160
-__SYSCALL(__NR_uname, sys_newuname)
-#define __NR_sethostname 161
-__SYSCALL(__NR_sethostname, sys_sethostname)
-#define __NR_setdomainname 162
-__SYSCALL(__NR_setdomainname, sys_setdomainname)
-#define __NR_getrlimit 163
-__SC_COMP(__NR_getrlimit, sys_getrlimit, compat_sys_getrlimit)
-#define __NR_setrlimit 164
-__SC_COMP(__NR_setrlimit, sys_setrlimit, compat_sys_setrlimit)
-#define __NR_getrusage 165
-__SC_COMP(__NR_getrusage, sys_getrusage, compat_sys_getrusage)
-#define __NR_umask 166
-__SYSCALL(__NR_umask, sys_umask)
-#define __NR_prctl 167
-__SYSCALL(__NR_prctl, sys_prctl)
-#define __NR_getcpu 168
-__SYSCALL(__NR_getcpu, sys_getcpu)
-
-/* kernel/time.c */
-#define __NR_gettimeofday 169
-__SC_COMP(__NR_gettimeofday, sys_gettimeofday, compat_sys_gettimeofday)
-#define __NR_settimeofday 170
-__SC_COMP(__NR_settimeofday, sys_settimeofday, compat_sys_settimeofday)
-#define __NR_adjtimex 171
-__SC_COMP(__NR_adjtimex, sys_adjtimex, compat_sys_adjtimex)
-
-/* kernel/timer.c */
-#define __NR_getpid 172
-__SYSCALL(__NR_getpid, sys_getpid)
-#define __NR_getppid 173
-__SYSCALL(__NR_getppid, sys_getppid)
-#define __NR_getuid 174
-__SYSCALL(__NR_getuid, sys_getuid)
-#define __NR_geteuid 175
-__SYSCALL(__NR_geteuid, sys_geteuid)
-#define __NR_getgid 176
-__SYSCALL(__NR_getgid, sys_getgid)
-#define __NR_getegid 177
-__SYSCALL(__NR_getegid, sys_getegid)
-#define __NR_gettid 178
-__SYSCALL(__NR_gettid, sys_gettid)
-#define __NR_sysinfo 179
-__SC_COMP(__NR_sysinfo, sys_sysinfo, compat_sys_sysinfo)
-
-/* ipc/mqueue.c */
-#define __NR_mq_open 180
-__SC_COMP(__NR_mq_open, sys_mq_open, compat_sys_mq_open)
-#define __NR_mq_unlink 181
-__SYSCALL(__NR_mq_unlink, sys_mq_unlink)
-#define __NR_mq_timedsend 182
-__SC_COMP(__NR_mq_timedsend, sys_mq_timedsend, compat_sys_mq_timedsend)
-#define __NR_mq_timedreceive 183
-__SC_COMP(__NR_mq_timedreceive, sys_mq_timedreceive, \
- compat_sys_mq_timedreceive)
-#define __NR_mq_notify 184
-__SC_COMP(__NR_mq_notify, sys_mq_notify, compat_sys_mq_notify)
-#define __NR_mq_getsetattr 185
-__SC_COMP(__NR_mq_getsetattr, sys_mq_getsetattr, compat_sys_mq_getsetattr)
-
-/* ipc/msg.c */
-#define __NR_msgget 186
-__SYSCALL(__NR_msgget, sys_msgget)
-#define __NR_msgctl 187
-__SC_COMP(__NR_msgctl, sys_msgctl, compat_sys_msgctl)
-#define __NR_msgrcv 188
-__SC_COMP(__NR_msgrcv, sys_msgrcv, compat_sys_msgrcv)
-#define __NR_msgsnd 189
-__SC_COMP(__NR_msgsnd, sys_msgsnd, compat_sys_msgsnd)
-
-/* ipc/sem.c */
-#define __NR_semget 190
-__SYSCALL(__NR_semget, sys_semget)
-#define __NR_semctl 191
-__SC_COMP(__NR_semctl, sys_semctl, compat_sys_semctl)
-#define __NR_semtimedop 192
-__SC_COMP(__NR_semtimedop, sys_semtimedop, compat_sys_semtimedop)
-#define __NR_semop 193
-__SYSCALL(__NR_semop, sys_semop)
-
-/* ipc/shm.c */
-#define __NR_shmget 194
-__SYSCALL(__NR_shmget, sys_shmget)
-#define __NR_shmctl 195
-__SC_COMP(__NR_shmctl, sys_shmctl, compat_sys_shmctl)
-#define __NR_shmat 196
-__SC_COMP(__NR_shmat, sys_shmat, compat_sys_shmat)
-#define __NR_shmdt 197
-__SYSCALL(__NR_shmdt, sys_shmdt)
-
-/* net/socket.c */
-#define __NR_socket 198
-__SYSCALL(__NR_socket, sys_socket)
-#define __NR_socketpair 199
-__SYSCALL(__NR_socketpair, sys_socketpair)
-#define __NR_bind 200
-__SYSCALL(__NR_bind, sys_bind)
-#define __NR_listen 201
-__SYSCALL(__NR_listen, sys_listen)
-#define __NR_accept 202
-__SYSCALL(__NR_accept, sys_accept)
-#define __NR_connect 203
-__SYSCALL(__NR_connect, sys_connect)
-#define __NR_getsockname 204
-__SYSCALL(__NR_getsockname, sys_getsockname)
-#define __NR_getpeername 205
-__SYSCALL(__NR_getpeername, sys_getpeername)
-#define __NR_sendto 206
-__SYSCALL(__NR_sendto, sys_sendto)
-#define __NR_recvfrom 207
-__SC_COMP(__NR_recvfrom, sys_recvfrom, compat_sys_recvfrom)
-#define __NR_setsockopt 208
-__SC_COMP(__NR_setsockopt, sys_setsockopt, compat_sys_setsockopt)
-#define __NR_getsockopt 209
-__SC_COMP(__NR_getsockopt, sys_getsockopt, compat_sys_getsockopt)
-#define __NR_shutdown 210
-__SYSCALL(__NR_shutdown, sys_shutdown)
-#define __NR_sendmsg 211
-__SC_COMP(__NR_sendmsg, sys_sendmsg, compat_sys_sendmsg)
-#define __NR_recvmsg 212
-__SC_COMP(__NR_recvmsg, sys_recvmsg, compat_sys_recvmsg)
-
-/* mm/filemap.c */
-#define __NR_readahead 213
-__SC_COMP(__NR_readahead, sys_readahead, compat_sys_readahead)
-
-/* mm/nommu.c, also with MMU */
-#define __NR_brk 214
-__SYSCALL(__NR_brk, sys_brk)
-#define __NR_munmap 215
-__SYSCALL(__NR_munmap, sys_munmap)
-#define __NR_mremap 216
-__SYSCALL(__NR_mremap, sys_mremap)
-
-/* security/keys/keyctl.c */
-#define __NR_add_key 217
-__SYSCALL(__NR_add_key, sys_add_key)
-#define __NR_request_key 218
-__SYSCALL(__NR_request_key, sys_request_key)
-#define __NR_keyctl 219
-__SC_COMP(__NR_keyctl, sys_keyctl, compat_sys_keyctl)
-
-/* arch/example/kernel/sys_example.c */
-#define __NR_clone 220
-__SYSCALL(__NR_clone, sys_clone)
-#define __NR_execve 221
-__SC_COMP(__NR_execve, sys_execve, compat_sys_execve)
-
-#define __NR3264_mmap 222
-__SC_3264(__NR3264_mmap, sys_mmap2, sys_mmap)
-/* mm/fadvise.c */
-#define __NR3264_fadvise64 223
-__SC_COMP(__NR3264_fadvise64, sys_fadvise64_64, compat_sys_fadvise64_64)
-
-/* mm/, CONFIG_MMU only */
-#ifndef __ARCH_NOMMU
-#define __NR_swapon 224
-__SYSCALL(__NR_swapon, sys_swapon)
-#define __NR_swapoff 225
-__SYSCALL(__NR_swapoff, sys_swapoff)
-#define __NR_mprotect 226
-__SYSCALL(__NR_mprotect, sys_mprotect)
-#define __NR_msync 227
-__SYSCALL(__NR_msync, sys_msync)
-#define __NR_mlock 228
-__SYSCALL(__NR_mlock, sys_mlock)
-#define __NR_munlock 229
-__SYSCALL(__NR_munlock, sys_munlock)
-#define __NR_mlockall 230
-__SYSCALL(__NR_mlockall, sys_mlockall)
-#define __NR_munlockall 231
-__SYSCALL(__NR_munlockall, sys_munlockall)
-#define __NR_mincore 232
-__SYSCALL(__NR_mincore, sys_mincore)
-#define __NR_madvise 233
-__SYSCALL(__NR_madvise, sys_madvise)
-#define __NR_remap_file_pages 234
-__SYSCALL(__NR_remap_file_pages, sys_remap_file_pages)
-#define __NR_mbind 235
-__SC_COMP(__NR_mbind, sys_mbind, compat_sys_mbind)
-#define __NR_get_mempolicy 236
-__SC_COMP(__NR_get_mempolicy, sys_get_mempolicy, compat_sys_get_mempolicy)
-#define __NR_set_mempolicy 237
-__SC_COMP(__NR_set_mempolicy, sys_set_mempolicy, compat_sys_set_mempolicy)
-#define __NR_migrate_pages 238
-__SC_COMP(__NR_migrate_pages, sys_migrate_pages, compat_sys_migrate_pages)
-#define __NR_move_pages 239
-__SC_COMP(__NR_move_pages, sys_move_pages, compat_sys_move_pages)
-#endif
-
-#define __NR_rt_tgsigqueueinfo 240
-__SC_COMP(__NR_rt_tgsigqueueinfo, sys_rt_tgsigqueueinfo, \
- compat_sys_rt_tgsigqueueinfo)
-#define __NR_perf_event_open 241
-__SYSCALL(__NR_perf_event_open, sys_perf_event_open)
-#define __NR_accept4 242
-__SYSCALL(__NR_accept4, sys_accept4)
-#define __NR_recvmmsg 243
-__SC_COMP(__NR_recvmmsg, sys_recvmmsg, compat_sys_recvmmsg)
-
-/*
- * Architectures may provide up to 16 syscalls of their own
- * starting with this value.
- */
-#define __NR_arch_specific_syscall 244
-
-#define __NR_wait4 260
-__SC_COMP(__NR_wait4, sys_wait4, compat_sys_wait4)
-#define __NR_prlimit64 261
-__SYSCALL(__NR_prlimit64, sys_prlimit64)
-#define __NR_fanotify_init 262
-__SYSCALL(__NR_fanotify_init, sys_fanotify_init)
-#define __NR_fanotify_mark 263
-__SYSCALL(__NR_fanotify_mark, sys_fanotify_mark)
-#define __NR_name_to_handle_at 264
-__SYSCALL(__NR_name_to_handle_at, sys_name_to_handle_at)
-#define __NR_open_by_handle_at 265
-__SC_COMP(__NR_open_by_handle_at, sys_open_by_handle_at, \
- compat_sys_open_by_handle_at)
-#define __NR_clock_adjtime 266
-__SC_COMP(__NR_clock_adjtime, sys_clock_adjtime, compat_sys_clock_adjtime)
-#define __NR_syncfs 267
-__SYSCALL(__NR_syncfs, sys_syncfs)
-#define __NR_setns 268
-__SYSCALL(__NR_setns, sys_setns)
-#define __NR_sendmmsg 269
-__SC_COMP(__NR_sendmmsg, sys_sendmmsg, compat_sys_sendmmsg)
-#define __NR_process_vm_readv 270
-__SC_COMP(__NR_process_vm_readv, sys_process_vm_readv, \
- compat_sys_process_vm_readv)
-#define __NR_process_vm_writev 271
-__SC_COMP(__NR_process_vm_writev, sys_process_vm_writev, \
- compat_sys_process_vm_writev)
-#define __NR_kcmp 272
-__SYSCALL(__NR_kcmp, sys_kcmp)
-#define __NR_finit_module 273
-__SYSCALL(__NR_finit_module, sys_finit_module)
-#define __NR_sched_setattr 274
-__SYSCALL(__NR_sched_setattr, sys_sched_setattr)
-#define __NR_sched_getattr 275
-__SYSCALL(__NR_sched_getattr, sys_sched_getattr)
-#define __NR_renameat2 276
-__SYSCALL(__NR_renameat2, sys_renameat2)
-#define __NR_seccomp 277
-__SYSCALL(__NR_seccomp, sys_seccomp)
-#define __NR_getrandom 278
-__SYSCALL(__NR_getrandom, sys_getrandom)
-#define __NR_memfd_create 279
-__SYSCALL(__NR_memfd_create, sys_memfd_create)
-#define __NR_bpf 280
-__SYSCALL(__NR_bpf, sys_bpf)
-#define __NR_execveat 281
-__SC_COMP(__NR_execveat, sys_execveat, compat_sys_execveat)
-#define __NR_userfaultfd 282
-__SYSCALL(__NR_userfaultfd, sys_userfaultfd)
-#define __NR_membarrier 283
-__SYSCALL(__NR_membarrier, sys_membarrier)
-#define __NR_mlock2 284
-__SYSCALL(__NR_mlock2, sys_mlock2)
-#define __NR_copy_file_range 285
-__SYSCALL(__NR_copy_file_range, sys_copy_file_range)
-#define __NR_preadv2 286
-__SC_COMP(__NR_preadv2, sys_preadv2, compat_sys_preadv2)
-#define __NR_pwritev2 287
-__SC_COMP(__NR_pwritev2, sys_pwritev2, compat_sys_pwritev2)
-#define __NR_pkey_mprotect 288
-__SYSCALL(__NR_pkey_mprotect, sys_pkey_mprotect)
-#define __NR_pkey_alloc 289
-__SYSCALL(__NR_pkey_alloc, sys_pkey_alloc)
-#define __NR_pkey_free 290
-__SYSCALL(__NR_pkey_free, sys_pkey_free)
-#define __NR_statx 291
-__SYSCALL(__NR_statx, sys_statx)
-#define __NR_io_pgetevents 292
-__SC_COMP(__NR_io_pgetevents, sys_io_pgetevents, compat_sys_io_pgetevents)
-#define __NR_rseq 293
-__SYSCALL(__NR_rseq, sys_rseq)
-
-#undef __NR_syscalls
-#define __NR_syscalls 294
-
-/*
- * 32 bit systems traditionally used different
- * syscalls for off_t and loff_t arguments, while
- * 64 bit systems only need the off_t version.
- * For new 32 bit platforms, there is no need to
- * implement the old 32 bit off_t syscalls, so
- * they take different names.
- * Here we map the numbers so that both versions
- * use the same syscall table layout.
- */
-#if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT)
-#define __NR_fcntl __NR3264_fcntl
-#define __NR_statfs __NR3264_statfs
-#define __NR_fstatfs __NR3264_fstatfs
-#define __NR_truncate __NR3264_truncate
-#define __NR_ftruncate __NR3264_ftruncate
-#define __NR_lseek __NR3264_lseek
-#define __NR_sendfile __NR3264_sendfile
-#if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64)
-#define __NR_newfstatat __NR3264_fstatat
-#define __NR_fstat __NR3264_fstat
-#endif
-#define __NR_mmap __NR3264_mmap
-#define __NR_fadvise64 __NR3264_fadvise64
-#ifdef __NR3264_stat
-#define __NR_stat __NR3264_stat
-#define __NR_lstat __NR3264_lstat
-#endif
-#else
-#define __NR_fcntl64 __NR3264_fcntl
-#define __NR_statfs64 __NR3264_statfs
-#define __NR_fstatfs64 __NR3264_fstatfs
-#define __NR_truncate64 __NR3264_truncate
-#define __NR_ftruncate64 __NR3264_ftruncate
-#define __NR_llseek __NR3264_lseek
-#define __NR_sendfile64 __NR3264_sendfile
-#if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64)
-#define __NR_fstatat64 __NR3264_fstatat
-#define __NR_fstat64 __NR3264_fstat
-#endif
-#define __NR_mmap2 __NR3264_mmap
-#define __NR_fadvise64_64 __NR3264_fadvise64
-#ifdef __NR3264_stat
-#define __NR_stat64 __NR3264_stat
-#define __NR_lstat64 __NR3264_lstat
-#endif
-#endif
diff --git a/libc/include/generic-glibc/asm/unistd_32.h b/libc/include/generic-glibc/asm/unistd_32.h
deleted file mode 100644
index 58f04cf3d1..0000000000
--- a/libc/include/generic-glibc/asm/unistd_32.h
+++ /dev/null
@@ -1,401 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef __ASM_SH_UNISTD_32_H
-#define __ASM_SH_UNISTD_32_H
-
-/*
- * Copyright (C) 1999 Niibe Yutaka
- */
-
-/*
- * This file contains the system call numbers.
- */
-
-#define __NR_restart_syscall 0
-#define __NR_exit 1
-#define __NR_fork 2
-#define __NR_read 3
-#define __NR_write 4
-#define __NR_open 5
-#define __NR_close 6
-#define __NR_waitpid 7
-#define __NR_creat 8
-#define __NR_link 9
-#define __NR_unlink 10
-#define __NR_execve 11
-#define __NR_chdir 12
-#define __NR_time 13
-#define __NR_mknod 14
-#define __NR_chmod 15
-#define __NR_lchown 16
- /* 17 was sys_break */
-#define __NR_oldstat 18
-#define __NR_lseek 19
-#define __NR_getpid 20
-#define __NR_mount 21
-#define __NR_umount 22
-#define __NR_setuid 23
-#define __NR_getuid 24
-#define __NR_stime 25
-#define __NR_ptrace 26
-#define __NR_alarm 27
-#define __NR_oldfstat 28
-#define __NR_pause 29
-#define __NR_utime 30
- /* 31 was sys_stty */
- /* 32 was sys_gtty */
-#define __NR_access 33
-#define __NR_nice 34
- /* 35 was sys_ftime */
-#define __NR_sync 36
-#define __NR_kill 37
-#define __NR_rename 38
-#define __NR_mkdir 39
-#define __NR_rmdir 40
-#define __NR_dup 41
-#define __NR_pipe 42
-#define __NR_times 43
- /* 44 was sys_prof */
-#define __NR_brk 45
-#define __NR_setgid 46
-#define __NR_getgid 47
-#define __NR_signal 48
-#define __NR_geteuid 49
-#define __NR_getegid 50
-#define __NR_acct 51
-#define __NR_umount2 52
- /* 53 was sys_lock */
-#define __NR_ioctl 54
-#define __NR_fcntl 55
- /* 56 was sys_mpx */
-#define __NR_setpgid 57
- /* 58 was sys_ulimit */
- /* 59 was sys_olduname */
-#define __NR_umask 60
-#define __NR_chroot 61
-#define __NR_ustat 62
-#define __NR_dup2 63
-#define __NR_getppid 64
-#define __NR_getpgrp 65
-#define __NR_setsid 66
-#define __NR_sigaction 67
-#define __NR_sgetmask 68
-#define __NR_ssetmask 69
-#define __NR_setreuid 70
-#define __NR_setregid 71
-#define __NR_sigsuspend 72
-#define __NR_sigpending 73
-#define __NR_sethostname 74
-#define __NR_setrlimit 75
-#define __NR_getrlimit 76 /* Back compatible 2Gig limited rlimit */
-#define __NR_getrusage 77
-#define __NR_gettimeofday 78
-#define __NR_settimeofday 79
-#define __NR_getgroups 80
-#define __NR_setgroups 81
- /* 82 was sys_oldselect */
-#define __NR_symlink 83
-#define __NR_oldlstat 84
-#define __NR_readlink 85
-#define __NR_uselib 86
-#define __NR_swapon 87
-#define __NR_reboot 88
-#define __NR_readdir 89
-#define __NR_mmap 90
-#define __NR_munmap 91
-#define __NR_truncate 92
-#define __NR_ftruncate 93
-#define __NR_fchmod 94
-#define __NR_fchown 95
-#define __NR_getpriority 96
-#define __NR_setpriority 97
- /* 98 was sys_profil */
-#define __NR_statfs 99
-#define __NR_fstatfs 100
- /* 101 was sys_ioperm */
-#define __NR_socketcall 102
-#define __NR_syslog 103
-#define __NR_setitimer 104
-#define __NR_getitimer 105
-#define __NR_stat 106
-#define __NR_lstat 107
-#define __NR_fstat 108
-#define __NR_olduname 109
- /* 110 was sys_iopl */
-#define __NR_vhangup 111
- /* 112 was sys_idle */
- /* 113 was sys_vm86old */
-#define __NR_wait4 114
-#define __NR_swapoff 115
-#define __NR_sysinfo 116
-#define __NR_ipc 117
-#define __NR_fsync 118
-#define __NR_sigreturn 119
-#define __NR_clone 120
-#define __NR_setdomainname 121
-#define __NR_uname 122
-#define __NR_cacheflush 123
-#define __NR_adjtimex 124
-#define __NR_mprotect 125
-#define __NR_sigprocmask 126
- /* 127 was sys_create_module */
-#define __NR_init_module 128
-#define __NR_delete_module 129
- /* 130 was sys_get_kernel_syms */
-#define __NR_quotactl 131
-#define __NR_getpgid 132
-#define __NR_fchdir 133
-#define __NR_bdflush 134
-#define __NR_sysfs 135
-#define __NR_personality 136
- /* 137 was sys_afs_syscall */
-#define __NR_setfsuid 138
-#define __NR_setfsgid 139
-#define __NR__llseek 140
-#define __NR_getdents 141
-#define __NR__newselect 142
-#define __NR_flock 143
-#define __NR_msync 144
-#define __NR_readv 145
-#define __NR_writev 146
-#define __NR_getsid 147
-#define __NR_fdatasync 148
-#define __NR__sysctl 149
-#define __NR_mlock 150
-#define __NR_munlock 151
-#define __NR_mlockall 152
-#define __NR_munlockall 153
-#define __NR_sched_setparam 154
-#define __NR_sched_getparam 155
-#define __NR_sched_setscheduler 156
-#define __NR_sched_getscheduler 157
-#define __NR_sched_yield 158
-#define __NR_sched_get_priority_max 159
-#define __NR_sched_get_priority_min 160
-#define __NR_sched_rr_get_interval 161
-#define __NR_nanosleep 162
-#define __NR_mremap 163
-#define __NR_setresuid 164
-#define __NR_getresuid 165
- /* 166 was sys_vm86 */
- /* 167 was sys_query_module */
-#define __NR_poll 168
-#define __NR_nfsservctl 169
-#define __NR_setresgid 170
-#define __NR_getresgid 171
-#define __NR_prctl 172
-#define __NR_rt_sigreturn 173
-#define __NR_rt_sigaction 174
-#define __NR_rt_sigprocmask 175
-#define __NR_rt_sigpending 176
-#define __NR_rt_sigtimedwait 177
-#define __NR_rt_sigqueueinfo 178
-#define __NR_rt_sigsuspend 179
-#define __NR_pread64 180
-#define __NR_pwrite64 181
-#define __NR_chown 182
-#define __NR_getcwd 183
-#define __NR_capget 184
-#define __NR_capset 185
-#define __NR_sigaltstack 186
-#define __NR_sendfile 187
- /* 188 reserved for sys_getpmsg */
- /* 189 reserved for sys_putpmsg */
-#define __NR_vfork 190
-#define __NR_ugetrlimit 191 /* SuS compliant getrlimit */
-#define __NR_mmap2 192
-#define __NR_truncate64 193
-#define __NR_ftruncate64 194
-#define __NR_stat64 195
-#define __NR_lstat64 196
-#define __NR_fstat64 197
-#define __NR_lchown32 198
-#define __NR_getuid32 199
-#define __NR_getgid32 200
-#define __NR_geteuid32 201
-#define __NR_getegid32 202
-#define __NR_setreuid32 203
-#define __NR_setregid32 204
-#define __NR_getgroups32 205
-#define __NR_setgroups32 206
-#define __NR_fchown32 207
-#define __NR_setresuid32 208
-#define __NR_getresuid32 209
-#define __NR_setresgid32 210
-#define __NR_getresgid32 211
-#define __NR_chown32 212
-#define __NR_setuid32 213
-#define __NR_setgid32 214
-#define __NR_setfsuid32 215
-#define __NR_setfsgid32 216
-#define __NR_pivot_root 217
-#define __NR_mincore 218
-#define __NR_madvise 219
-#define __NR_getdents64 220
-#define __NR_fcntl64 221
- /* 222 is reserved for tux */
- /* 223 is unused */
-#define __NR_gettid 224
-#define __NR_readahead 225
-#define __NR_setxattr 226
-#define __NR_lsetxattr 227
-#define __NR_fsetxattr 228
-#define __NR_getxattr 229
-#define __NR_lgetxattr 230
-#define __NR_fgetxattr 231
-#define __NR_listxattr 232
-#define __NR_llistxattr 233
-#define __NR_flistxattr 234
-#define __NR_removexattr 235
-#define __NR_lremovexattr 236
-#define __NR_fremovexattr 237
-#define __NR_tkill 238
-#define __NR_sendfile64 239
-#define __NR_futex 240
-#define __NR_sched_setaffinity 241
-#define __NR_sched_getaffinity 242
- /* 243 is reserved for set_thread_area */
- /* 244 is reserved for get_thread_area */
-#define __NR_io_setup 245
-#define __NR_io_destroy 246
-#define __NR_io_getevents 247
-#define __NR_io_submit 248
-#define __NR_io_cancel 249
-#define __NR_fadvise64 250
- /* 251 is unused */
-#define __NR_exit_group 252
-#define __NR_lookup_dcookie 253
-#define __NR_epoll_create 254
-#define __NR_epoll_ctl 255
-#define __NR_epoll_wait 256
-#define __NR_remap_file_pages 257
-#define __NR_set_tid_address 258
-#define __NR_timer_create 259
-#define __NR_timer_settime (__NR_timer_create+1)
-#define __NR_timer_gettime (__NR_timer_create+2)
-#define __NR_timer_getoverrun (__NR_timer_create+3)
-#define __NR_timer_delete (__NR_timer_create+4)
-#define __NR_clock_settime (__NR_timer_create+5)
-#define __NR_clock_gettime (__NR_timer_create+6)
-#define __NR_clock_getres (__NR_timer_create+7)
-#define __NR_clock_nanosleep (__NR_timer_create+8)
-#define __NR_statfs64 268
-#define __NR_fstatfs64 269
-#define __NR_tgkill 270
-#define __NR_utimes 271
-#define __NR_fadvise64_64 272
- /* 273 is reserved for vserver */
-#define __NR_mbind 274
-#define __NR_get_mempolicy 275
-#define __NR_set_mempolicy 276
-#define __NR_mq_open 277
-#define __NR_mq_unlink (__NR_mq_open+1)
-#define __NR_mq_timedsend (__NR_mq_open+2)
-#define __NR_mq_timedreceive (__NR_mq_open+3)
-#define __NR_mq_notify (__NR_mq_open+4)
-#define __NR_mq_getsetattr (__NR_mq_open+5)
-#define __NR_kexec_load 283
-#define __NR_waitid 284
-#define __NR_add_key 285
-#define __NR_request_key 286
-#define __NR_keyctl 287
-#define __NR_ioprio_set 288
-#define __NR_ioprio_get 289
-#define __NR_inotify_init 290
-#define __NR_inotify_add_watch 291
-#define __NR_inotify_rm_watch 292
- /* 293 is unused */
-#define __NR_migrate_pages 294
-#define __NR_openat 295
-#define __NR_mkdirat 296
-#define __NR_mknodat 297
-#define __NR_fchownat 298
-#define __NR_futimesat 299
-#define __NR_fstatat64 300
-#define __NR_unlinkat 301
-#define __NR_renameat 302
-#define __NR_linkat 303
-#define __NR_symlinkat 304
-#define __NR_readlinkat 305
-#define __NR_fchmodat 306
-#define __NR_faccessat 307
-#define __NR_pselect6 308
-#define __NR_ppoll 309
-#define __NR_unshare 310
-#define __NR_set_robust_list 311
-#define __NR_get_robust_list 312
-#define __NR_splice 313
-#define __NR_sync_file_range 314
-#define __NR_tee 315
-#define __NR_vmsplice 316
-#define __NR_move_pages 317
-#define __NR_getcpu 318
-#define __NR_epoll_pwait 319
-#define __NR_utimensat 320
-#define __NR_signalfd 321
-#define __NR_timerfd_create 322
-#define __NR_eventfd 323
-#define __NR_fallocate 324
-#define __NR_timerfd_settime 325
-#define __NR_timerfd_gettime 326
-#define __NR_signalfd4 327
-#define __NR_eventfd2 328
-#define __NR_epoll_create1 329
-#define __NR_dup3 330
-#define __NR_pipe2 331
-#define __NR_inotify_init1 332
-#define __NR_preadv 333
-#define __NR_pwritev 334
-#define __NR_rt_tgsigqueueinfo 335
-#define __NR_perf_event_open 336
-#define __NR_fanotify_init 337
-#define __NR_fanotify_mark 338
-#define __NR_prlimit64 339
-
-/* Non-multiplexed socket family */
-#define __NR_socket 340
-#define __NR_bind 341
-#define __NR_connect 342
-#define __NR_listen 343
-#define __NR_accept 344
-#define __NR_getsockname 345
-#define __NR_getpeername 346
-#define __NR_socketpair 347
-#define __NR_send 348
-#define __NR_sendto 349
-#define __NR_recv 350
-#define __NR_recvfrom 351
-#define __NR_shutdown 352
-#define __NR_setsockopt 353
-#define __NR_getsockopt 354
-#define __NR_sendmsg 355
-#define __NR_recvmsg 356
-#define __NR_recvmmsg 357
-#define __NR_accept4 358
-#define __NR_name_to_handle_at 359
-#define __NR_open_by_handle_at 360
-#define __NR_clock_adjtime 361
-#define __NR_syncfs 362
-#define __NR_sendmmsg 363
-#define __NR_setns 364
-#define __NR_process_vm_readv 365
-#define __NR_process_vm_writev 366
-#define __NR_kcmp 367
-#define __NR_finit_module 368
-#define __NR_sched_getattr 369
-#define __NR_sched_setattr 370
-#define __NR_renameat2 371
-#define __NR_seccomp 372
-#define __NR_getrandom 373
-#define __NR_memfd_create 374
-#define __NR_bpf 375
-#define __NR_execveat 376
-#define __NR_userfaultfd 377
-#define __NR_membarrier 378
-#define __NR_mlock2 379
-#define __NR_copy_file_range 380
-#define __NR_preadv2 381
-#define __NR_pwritev2 382
-
-#define NR_syscalls 383
-
-#endif /* __ASM_SH_UNISTD_32_H */
diff --git a/libc/include/generic-glibc/asm/unistd_64.h b/libc/include/generic-glibc/asm/unistd_64.h
deleted file mode 100644
index 6f809a53aa..0000000000
--- a/libc/include/generic-glibc/asm/unistd_64.h
+++ /dev/null
@@ -1,421 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef __ASM_SH_UNISTD_64_H
-#define __ASM_SH_UNISTD_64_H
-
-/*
- * include/asm-sh/unistd_64.h
- *
- * This file contains the system call numbers.
- *
- * Copyright (C) 2000, 2001 Paolo Alberelli
- * Copyright (C) 2003 - 2007 Paul Mundt
- * Copyright (C) 2004 Sean McGoogan
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- */
-#define __NR_restart_syscall 0
-#define __NR_exit 1
-#define __NR_fork 2
-#define __NR_read 3
-#define __NR_write 4
-#define __NR_open 5
-#define __NR_close 6
-#define __NR_waitpid 7
-#define __NR_creat 8
-#define __NR_link 9
-#define __NR_unlink 10
-#define __NR_execve 11
-#define __NR_chdir 12
-#define __NR_time 13
-#define __NR_mknod 14
-#define __NR_chmod 15
-#define __NR_lchown 16
- /* 17 was sys_break */
-#define __NR_oldstat 18
-#define __NR_lseek 19
-#define __NR_getpid 20
-#define __NR_mount 21
-#define __NR_umount 22
-#define __NR_setuid 23
-#define __NR_getuid 24
-#define __NR_stime 25
-#define __NR_ptrace 26
-#define __NR_alarm 27
-#define __NR_oldfstat 28
-#define __NR_pause 29
-#define __NR_utime 30
- /* 31 was sys_stty */
- /* 32 was sys_gtty */
-#define __NR_access 33
-#define __NR_nice 34
- /* 35 was sys_ftime */
-#define __NR_sync 36
-#define __NR_kill 37
-#define __NR_rename 38
-#define __NR_mkdir 39
-#define __NR_rmdir 40
-#define __NR_dup 41
-#define __NR_pipe 42
-#define __NR_times 43
- /* 44 was sys_prof */
-#define __NR_brk 45
-#define __NR_setgid 46
-#define __NR_getgid 47
-#define __NR_signal 48
-#define __NR_geteuid 49
-#define __NR_getegid 50
-#define __NR_acct 51
-#define __NR_umount2 52
- /* 53 was sys_lock */
-#define __NR_ioctl 54
-#define __NR_fcntl 55
- /* 56 was sys_mpx */
-#define __NR_setpgid 57
- /* 58 was sys_ulimit */
- /* 59 was sys_olduname */
-#define __NR_umask 60
-#define __NR_chroot 61
-#define __NR_ustat 62
-#define __NR_dup2 63
-#define __NR_getppid 64
-#define __NR_getpgrp 65
-#define __NR_setsid 66
-#define __NR_sigaction 67
-#define __NR_sgetmask 68
-#define __NR_ssetmask 69
-#define __NR_setreuid 70
-#define __NR_setregid 71
-#define __NR_sigsuspend 72
-#define __NR_sigpending 73
-#define __NR_sethostname 74
-#define __NR_setrlimit 75
-#define __NR_getrlimit 76 /* Back compatible 2Gig limited rlimit */
-#define __NR_getrusage 77
-#define __NR_gettimeofday 78
-#define __NR_settimeofday 79
-#define __NR_getgroups 80
-#define __NR_setgroups 81
- /* 82 was sys_select */
-#define __NR_symlink 83
-#define __NR_oldlstat 84
-#define __NR_readlink 85
-#define __NR_uselib 86
-#define __NR_swapon 87
-#define __NR_reboot 88
-#define __NR_readdir 89
-#define __NR_mmap 90
-#define __NR_munmap 91
-#define __NR_truncate 92
-#define __NR_ftruncate 93
-#define __NR_fchmod 94
-#define __NR_fchown 95
-#define __NR_getpriority 96
-#define __NR_setpriority 97
- /* 98 was sys_profil */
-#define __NR_statfs 99
-#define __NR_fstatfs 100
- /* 101 was sys_ioperm */
-#define __NR_socketcall 102 /* old implementation of socket systemcall */
-#define __NR_syslog 103
-#define __NR_setitimer 104
-#define __NR_getitimer 105
-#define __NR_stat 106
-#define __NR_lstat 107
-#define __NR_fstat 108
-#define __NR_olduname 109
- /* 110 was sys_iopl */
-#define __NR_vhangup 111
- /* 112 was sys_idle */
- /* 113 was sys_vm86old */
-#define __NR_wait4 114
-#define __NR_swapoff 115
-#define __NR_sysinfo 116
-#define __NR_ipc 117
-#define __NR_fsync 118
-#define __NR_sigreturn 119
-#define __NR_clone 120
-#define __NR_setdomainname 121
-#define __NR_uname 122
-#define __NR_cacheflush 123
-#define __NR_adjtimex 124
-#define __NR_mprotect 125
-#define __NR_sigprocmask 126
- /* 127 was sys_create_module */
-#define __NR_init_module 128
-#define __NR_delete_module 129
- /* 130 was sys_get_kernel_syms */
-#define __NR_quotactl 131
-#define __NR_getpgid 132
-#define __NR_fchdir 133
-#define __NR_bdflush 134
-#define __NR_sysfs 135
-#define __NR_personality 136
- /* 137 was sys_afs_syscall */
-#define __NR_setfsuid 138
-#define __NR_setfsgid 139
-#define __NR__llseek 140
-#define __NR_getdents 141
-#define __NR__newselect 142
-#define __NR_flock 143
-#define __NR_msync 144
-#define __NR_readv 145
-#define __NR_writev 146
-#define __NR_getsid 147
-#define __NR_fdatasync 148
-#define __NR__sysctl 149
-#define __NR_mlock 150
-#define __NR_munlock 151
-#define __NR_mlockall 152
-#define __NR_munlockall 153
-#define __NR_sched_setparam 154
-#define __NR_sched_getparam 155
-#define __NR_sched_setscheduler 156
-#define __NR_sched_getscheduler 157
-#define __NR_sched_yield 158
-#define __NR_sched_get_priority_max 159
-#define __NR_sched_get_priority_min 160
-#define __NR_sched_rr_get_interval 161
-#define __NR_nanosleep 162
-#define __NR_mremap 163
-#define __NR_setresuid 164
-#define __NR_getresuid 165
- /* 166 was sys_vm86 */
- /* 167 was sys_query_module */
-#define __NR_poll 168
-#define __NR_nfsservctl 169
-#define __NR_setresgid 170
-#define __NR_getresgid 171
-#define __NR_prctl 172
-#define __NR_rt_sigreturn 173
-#define __NR_rt_sigaction 174
-#define __NR_rt_sigprocmask 175
-#define __NR_rt_sigpending 176
-#define __NR_rt_sigtimedwait 177
-#define __NR_rt_sigqueueinfo 178
-#define __NR_rt_sigsuspend 179
-#define __NR_pread64 180
-#define __NR_pwrite64 181
-#define __NR_chown 182
-#define __NR_getcwd 183
-#define __NR_capget 184
-#define __NR_capset 185
-#define __NR_sigaltstack 186
-#define __NR_sendfile 187
- /* 188 reserved for getpmsg */
- /* 189 reserved for putpmsg */
-#define __NR_vfork 190
-#define __NR_ugetrlimit 191 /* SuS compliant getrlimit */
-#define __NR_mmap2 192
-#define __NR_truncate64 193
-#define __NR_ftruncate64 194
-#define __NR_stat64 195
-#define __NR_lstat64 196
-#define __NR_fstat64 197
-#define __NR_lchown32 198
-#define __NR_getuid32 199
-#define __NR_getgid32 200
-#define __NR_geteuid32 201
-#define __NR_getegid32 202
-#define __NR_setreuid32 203
-#define __NR_setregid32 204
-#define __NR_getgroups32 205
-#define __NR_setgroups32 206
-#define __NR_fchown32 207
-#define __NR_setresuid32 208
-#define __NR_getresuid32 209
-#define __NR_setresgid32 210
-#define __NR_getresgid32 211
-#define __NR_chown32 212
-#define __NR_setuid32 213
-#define __NR_setgid32 214
-#define __NR_setfsuid32 215
-#define __NR_setfsgid32 216
-#define __NR_pivot_root 217
-#define __NR_mincore 218
-#define __NR_madvise 219
-
-/* Non-multiplexed socket family */
-#define __NR_socket 220
-#define __NR_bind 221
-#define __NR_connect 222
-#define __NR_listen 223
-#define __NR_accept 224
-#define __NR_getsockname 225
-#define __NR_getpeername 226
-#define __NR_socketpair 227
-#define __NR_send 228
-#define __NR_sendto 229
-#define __NR_recv 230
-#define __NR_recvfrom 231
-#define __NR_shutdown 232
-#define __NR_setsockopt 233
-#define __NR_getsockopt 234
-#define __NR_sendmsg 235
-#define __NR_recvmsg 236
-
-/* Non-multiplexed IPC family */
-#define __NR_semop 237
-#define __NR_semget 238
-#define __NR_semctl 239
-#define __NR_msgsnd 240
-#define __NR_msgrcv 241
-#define __NR_msgget 242
-#define __NR_msgctl 243
-#define __NR_shmat 244
-#define __NR_shmdt 245
-#define __NR_shmget 246
-#define __NR_shmctl 247
-
-#define __NR_getdents64 248
-#define __NR_fcntl64 249
- /* 250 is reserved for tux */
- /* 251 is unused */
-#define __NR_gettid 252
-#define __NR_readahead 253
-#define __NR_setxattr 254
-#define __NR_lsetxattr 255
-#define __NR_fsetxattr 256
-#define __NR_getxattr 257
-#define __NR_lgetxattr 258
-#define __NR_fgetxattr 259
-#define __NR_listxattr 260
-#define __NR_llistxattr 261
-#define __NR_flistxattr 262
-#define __NR_removexattr 263
-#define __NR_lremovexattr 264
-#define __NR_fremovexattr 265
-#define __NR_tkill 266
-#define __NR_sendfile64 267
-#define __NR_futex 268
-#define __NR_sched_setaffinity 269
-#define __NR_sched_getaffinity 270
- /* 271 is reserved for set_thread_area */
- /* 272 is reserved for get_thread_area */
-#define __NR_io_setup 273
-#define __NR_io_destroy 274
-#define __NR_io_getevents 275
-#define __NR_io_submit 276
-#define __NR_io_cancel 277
-#define __NR_fadvise64 278
- /* 279 is unused */
-#define __NR_exit_group 280
-
-#define __NR_lookup_dcookie 281
-#define __NR_epoll_create 282
-#define __NR_epoll_ctl 283
-#define __NR_epoll_wait 284
-#define __NR_remap_file_pages 285
-#define __NR_set_tid_address 286
-#define __NR_timer_create 287
-#define __NR_timer_settime (__NR_timer_create+1)
-#define __NR_timer_gettime (__NR_timer_create+2)
-#define __NR_timer_getoverrun (__NR_timer_create+3)
-#define __NR_timer_delete (__NR_timer_create+4)
-#define __NR_clock_settime (__NR_timer_create+5)
-#define __NR_clock_gettime (__NR_timer_create+6)
-#define __NR_clock_getres (__NR_timer_create+7)
-#define __NR_clock_nanosleep (__NR_timer_create+8)
-#define __NR_statfs64 296
-#define __NR_fstatfs64 297
-#define __NR_tgkill 298
-#define __NR_utimes 299
-#define __NR_fadvise64_64 300
- /* 301 is reserved for vserver */
- /* 302 is reserved for mbind */
- /* 303 is reserved for get_mempolicy */
- /* 304 is reserved for set_mempolicy */
-#define __NR_mq_open 305
-#define __NR_mq_unlink (__NR_mq_open+1)
-#define __NR_mq_timedsend (__NR_mq_open+2)
-#define __NR_mq_timedreceive (__NR_mq_open+3)
-#define __NR_mq_notify (__NR_mq_open+4)
-#define __NR_mq_getsetattr (__NR_mq_open+5)
- /* 311 is reserved for kexec */
-#define __NR_waitid 312
-#define __NR_add_key 313
-#define __NR_request_key 314
-#define __NR_keyctl 315
-#define __NR_ioprio_set 316
-#define __NR_ioprio_get 317
-#define __NR_inotify_init 318
-#define __NR_inotify_add_watch 319
-#define __NR_inotify_rm_watch 320
- /* 321 is unused */
-#define __NR_migrate_pages 322
-#define __NR_openat 323
-#define __NR_mkdirat 324
-#define __NR_mknodat 325
-#define __NR_fchownat 326
-#define __NR_futimesat 327
-#define __NR_fstatat64 328
-#define __NR_unlinkat 329
-#define __NR_renameat 330
-#define __NR_linkat 331
-#define __NR_symlinkat 332
-#define __NR_readlinkat 333
-#define __NR_fchmodat 334
-#define __NR_faccessat 335
-#define __NR_pselect6 336
-#define __NR_ppoll 337
-#define __NR_unshare 338
-#define __NR_set_robust_list 339
-#define __NR_get_robust_list 340
-#define __NR_splice 341
-#define __NR_sync_file_range 342
-#define __NR_tee 343
-#define __NR_vmsplice 344
-#define __NR_move_pages 345
-#define __NR_getcpu 346
-#define __NR_epoll_pwait 347
-#define __NR_utimensat 348
-#define __NR_signalfd 349
-#define __NR_timerfd_create 350
-#define __NR_eventfd 351
-#define __NR_fallocate 352
-#define __NR_timerfd_settime 353
-#define __NR_timerfd_gettime 354
-#define __NR_signalfd4 355
-#define __NR_eventfd2 356
-#define __NR_epoll_create1 357
-#define __NR_dup3 358
-#define __NR_pipe2 359
-#define __NR_inotify_init1 360
-#define __NR_preadv 361
-#define __NR_pwritev 362
-#define __NR_rt_tgsigqueueinfo 363
-#define __NR_perf_event_open 364
-#define __NR_recvmmsg 365
-#define __NR_accept4 366
-#define __NR_fanotify_init 367
-#define __NR_fanotify_mark 368
-#define __NR_prlimit64 369
-#define __NR_name_to_handle_at 370
-#define __NR_open_by_handle_at 371
-#define __NR_clock_adjtime 372
-#define __NR_syncfs 373
-#define __NR_sendmmsg 374
-#define __NR_setns 375
-#define __NR_process_vm_readv 376
-#define __NR_process_vm_writev 377
-#define __NR_kcmp 378
-#define __NR_finit_module 379
-#define __NR_sched_getattr 380
-#define __NR_sched_setattr 381
-#define __NR_renameat2 382
-#define __NR_seccomp 383
-#define __NR_getrandom 384
-#define __NR_memfd_create 385
-#define __NR_bpf 386
-#define __NR_execveat 387
-#define __NR_userfaultfd 388
-#define __NR_membarrier 389
-#define __NR_mlock2 390
-#define __NR_copy_file_range 391
-#define __NR_preadv2 392
-#define __NR_pwritev2 393
-
-#define NR_syscalls 394
-
-#endif /* __ASM_SH_UNISTD_64_H */
diff --git a/libc/include/generic-glibc/linux/limits.h b/libc/include/generic-glibc/linux/limits.h
deleted file mode 100644
index c3547f0760..0000000000
--- a/libc/include/generic-glibc/linux/limits.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef _LINUX_LIMITS_H
-#define _LINUX_LIMITS_H
-
-#define NR_OPEN 1024
-
-#define NGROUPS_MAX 65536 /* supplemental group IDs are available */
-#define ARG_MAX 131072 /* # bytes of args + environ for exec() */
-#define LINK_MAX 127 /* # links a file may have */
-#define MAX_CANON 255 /* size of the canonical input queue */
-#define MAX_INPUT 255 /* size of the type-ahead buffer */
-#define NAME_MAX 255 /* # chars in a file name */
-#define PATH_MAX 4096 /* # chars in a path name including nul */
-#define PIPE_BUF 4096 /* # bytes in atomic write to a pipe */
-#define XATTR_NAME_MAX 255 /* # chars in an extended attribute name */
-#define XATTR_SIZE_MAX 65536 /* size of an extended attribute value (64k) */
-#define XATTR_LIST_MAX 65536 /* size of extended attribute namelist (64k) */
-
-#define RTSIG_MAX 32
-
-#endif
diff --git a/libc/include/i386-linux-musl/asm/auxvec.h b/libc/include/i386-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/auxvec.h
rename to libc/include/i386-linux-any/asm/auxvec.h
diff --git a/libc/include/i386-linux-musl/asm/bitsperlong.h b/libc/include/i386-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/bitsperlong.h
rename to libc/include/i386-linux-any/asm/bitsperlong.h
diff --git a/libc/include/i386-linux-musl/asm/byteorder.h b/libc/include/i386-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/byteorder.h
rename to libc/include/i386-linux-any/asm/byteorder.h
diff --git a/libc/include/i386-linux-musl/asm/kvm.h b/libc/include/i386-linux-any/asm/kvm.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/kvm.h
rename to libc/include/i386-linux-any/asm/kvm.h
diff --git a/libc/include/i386-linux-musl/asm/kvm_para.h b/libc/include/i386-linux-any/asm/kvm_para.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/kvm_para.h
rename to libc/include/i386-linux-any/asm/kvm_para.h
diff --git a/libc/include/i386-linux-musl/asm/mman.h b/libc/include/i386-linux-any/asm/mman.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/mman.h
rename to libc/include/i386-linux-any/asm/mman.h
diff --git a/libc/include/i386-linux-musl/asm/msgbuf.h b/libc/include/i386-linux-any/asm/msgbuf.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/msgbuf.h
rename to libc/include/i386-linux-any/asm/msgbuf.h
diff --git a/libc/include/i386-linux-musl/asm/perf_regs.h b/libc/include/i386-linux-any/asm/perf_regs.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/perf_regs.h
rename to libc/include/i386-linux-any/asm/perf_regs.h
diff --git a/libc/include/i386-linux-musl/asm/posix_types.h b/libc/include/i386-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/posix_types.h
rename to libc/include/i386-linux-any/asm/posix_types.h
diff --git a/libc/include/i386-linux-musl/asm/ptrace.h b/libc/include/i386-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/ptrace.h
rename to libc/include/i386-linux-any/asm/ptrace.h
diff --git a/libc/include/i386-linux-musl/asm/sembuf.h b/libc/include/i386-linux-any/asm/sembuf.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/sembuf.h
rename to libc/include/i386-linux-any/asm/sembuf.h
diff --git a/libc/include/i386-linux-musl/asm/setup.h b/libc/include/i386-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/setup.h
rename to libc/include/i386-linux-any/asm/setup.h
diff --git a/libc/include/i386-linux-musl/asm/shmbuf.h b/libc/include/i386-linux-any/asm/shmbuf.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/shmbuf.h
rename to libc/include/i386-linux-any/asm/shmbuf.h
diff --git a/libc/include/i386-linux-musl/asm/sigcontext.h b/libc/include/i386-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/sigcontext.h
rename to libc/include/i386-linux-any/asm/sigcontext.h
diff --git a/libc/include/i386-linux-musl/asm/siginfo.h b/libc/include/i386-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/siginfo.h
rename to libc/include/i386-linux-any/asm/siginfo.h
diff --git a/libc/include/i386-linux-musl/asm/signal.h b/libc/include/i386-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/signal.h
rename to libc/include/i386-linux-any/asm/signal.h
diff --git a/libc/include/i386-linux-musl/asm/stat.h b/libc/include/i386-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/stat.h
rename to libc/include/i386-linux-any/asm/stat.h
diff --git a/libc/include/i386-linux-musl/asm/statfs.h b/libc/include/i386-linux-any/asm/statfs.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/statfs.h
rename to libc/include/i386-linux-any/asm/statfs.h
diff --git a/libc/include/i386-linux-musl/asm/swab.h b/libc/include/i386-linux-any/asm/swab.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/swab.h
rename to libc/include/i386-linux-any/asm/swab.h
diff --git a/libc/include/i386-linux-musl/asm/types.h b/libc/include/i386-linux-any/asm/types.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/types.h
rename to libc/include/i386-linux-any/asm/types.h
diff --git a/libc/include/i386-linux-musl/asm/ucontext.h b/libc/include/i386-linux-any/asm/ucontext.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/ucontext.h
rename to libc/include/i386-linux-any/asm/ucontext.h
diff --git a/libc/include/i386-linux-musl/asm/unistd.h b/libc/include/i386-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/i386-linux-musl/asm/unistd.h
rename to libc/include/i386-linux-any/asm/unistd.h
diff --git a/libc/include/i386-linux-gnu/asm/unistd.h b/libc/include/i386-linux-gnu/asm/unistd.h
deleted file mode 100644
index 30d7d04d72..0000000000
--- a/libc/include/i386-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef _UAPI_ASM_X86_UNISTD_H
-#define _UAPI_ASM_X86_UNISTD_H
-
-/* x32 syscall flag bit */
-#define __X32_SYSCALL_BIT 0x40000000
-
-#ifndef __KERNEL__
-# ifdef __i386__
-# include
-# elif defined(__ILP32__)
-# include
-# else
-# include
-# endif
-#endif
-
-#endif /* _UAPI_ASM_X86_UNISTD_H */
diff --git a/libc/include/mips-linux-musl/asm/auxvec.h b/libc/include/mips-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/auxvec.h
rename to libc/include/mips-linux-any/asm/auxvec.h
diff --git a/libc/include/mips-linux-musl/asm/bitsperlong.h b/libc/include/mips-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/bitsperlong.h
rename to libc/include/mips-linux-any/asm/bitsperlong.h
diff --git a/libc/include/mips-linux-musl/asm/byteorder.h b/libc/include/mips-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/byteorder.h
rename to libc/include/mips-linux-any/asm/byteorder.h
diff --git a/libc/include/mips-linux-musl/asm/errno.h b/libc/include/mips-linux-any/asm/errno.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/errno.h
rename to libc/include/mips-linux-any/asm/errno.h
diff --git a/libc/include/mips-linux-musl/asm/fcntl.h b/libc/include/mips-linux-any/asm/fcntl.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/fcntl.h
rename to libc/include/mips-linux-any/asm/fcntl.h
diff --git a/libc/include/mips-linux-musl/asm/hwcap.h b/libc/include/mips-linux-any/asm/hwcap.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/hwcap.h
rename to libc/include/mips-linux-any/asm/hwcap.h
diff --git a/libc/include/mips-linux-musl/asm/ioctl.h b/libc/include/mips-linux-any/asm/ioctl.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/ioctl.h
rename to libc/include/mips-linux-any/asm/ioctl.h
diff --git a/libc/include/mips-linux-musl/asm/ioctls.h b/libc/include/mips-linux-any/asm/ioctls.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/ioctls.h
rename to libc/include/mips-linux-any/asm/ioctls.h
diff --git a/libc/include/mips-linux-musl/asm/kvm.h b/libc/include/mips-linux-any/asm/kvm.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/kvm.h
rename to libc/include/mips-linux-any/asm/kvm.h
diff --git a/libc/include/mips-linux-musl/asm/kvm_para.h b/libc/include/mips-linux-any/asm/kvm_para.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/kvm_para.h
rename to libc/include/mips-linux-any/asm/kvm_para.h
diff --git a/libc/include/mips-linux-musl/asm/mman.h b/libc/include/mips-linux-any/asm/mman.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/mman.h
rename to libc/include/mips-linux-any/asm/mman.h
diff --git a/libc/include/mips-linux-musl/asm/msgbuf.h b/libc/include/mips-linux-any/asm/msgbuf.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/msgbuf.h
rename to libc/include/mips-linux-any/asm/msgbuf.h
diff --git a/libc/include/mips-linux-musl/asm/param.h b/libc/include/mips-linux-any/asm/param.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/param.h
rename to libc/include/mips-linux-any/asm/param.h
diff --git a/libc/include/mips-linux-musl/asm/poll.h b/libc/include/mips-linux-any/asm/poll.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/poll.h
rename to libc/include/mips-linux-any/asm/poll.h
diff --git a/libc/include/mips-linux-musl/asm/posix_types.h b/libc/include/mips-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/posix_types.h
rename to libc/include/mips-linux-any/asm/posix_types.h
diff --git a/libc/include/mips-linux-musl/asm/ptrace.h b/libc/include/mips-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/ptrace.h
rename to libc/include/mips-linux-any/asm/ptrace.h
diff --git a/libc/include/mips-linux-musl/asm/resource.h b/libc/include/mips-linux-any/asm/resource.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/resource.h
rename to libc/include/mips-linux-any/asm/resource.h
diff --git a/libc/include/mips-linux-musl/asm/sembuf.h b/libc/include/mips-linux-any/asm/sembuf.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/sembuf.h
rename to libc/include/mips-linux-any/asm/sembuf.h
diff --git a/libc/include/mips-linux-musl/asm/setup.h b/libc/include/mips-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/setup.h
rename to libc/include/mips-linux-any/asm/setup.h
diff --git a/libc/include/mips-linux-musl/asm/shmbuf.h b/libc/include/mips-linux-any/asm/shmbuf.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/shmbuf.h
rename to libc/include/mips-linux-any/asm/shmbuf.h
diff --git a/libc/include/mips-linux-musl/asm/sigcontext.h b/libc/include/mips-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/sigcontext.h
rename to libc/include/mips-linux-any/asm/sigcontext.h
diff --git a/libc/include/mips-linux-musl/asm/siginfo.h b/libc/include/mips-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/siginfo.h
rename to libc/include/mips-linux-any/asm/siginfo.h
diff --git a/libc/include/mips-linux-musl/asm/signal.h b/libc/include/mips-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/signal.h
rename to libc/include/mips-linux-any/asm/signal.h
diff --git a/libc/include/mips-linux-musl/asm/socket.h b/libc/include/mips-linux-any/asm/socket.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/socket.h
rename to libc/include/mips-linux-any/asm/socket.h
diff --git a/libc/include/mips-linux-musl/asm/sockios.h b/libc/include/mips-linux-any/asm/sockios.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/sockios.h
rename to libc/include/mips-linux-any/asm/sockios.h
diff --git a/libc/include/mips-linux-musl/asm/stat.h b/libc/include/mips-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/stat.h
rename to libc/include/mips-linux-any/asm/stat.h
diff --git a/libc/include/mips-linux-musl/asm/statfs.h b/libc/include/mips-linux-any/asm/statfs.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/statfs.h
rename to libc/include/mips-linux-any/asm/statfs.h
diff --git a/libc/include/mips-linux-musl/asm/swab.h b/libc/include/mips-linux-any/asm/swab.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/swab.h
rename to libc/include/mips-linux-any/asm/swab.h
diff --git a/libc/include/mips-linux-musl/asm/termbits.h b/libc/include/mips-linux-any/asm/termbits.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/termbits.h
rename to libc/include/mips-linux-any/asm/termbits.h
diff --git a/libc/include/mips-linux-musl/asm/termios.h b/libc/include/mips-linux-any/asm/termios.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/termios.h
rename to libc/include/mips-linux-any/asm/termios.h
diff --git a/libc/include/mips-linux-musl/asm/types.h b/libc/include/mips-linux-any/asm/types.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/types.h
rename to libc/include/mips-linux-any/asm/types.h
diff --git a/libc/include/mips-linux-musl/asm/unistd.h b/libc/include/mips-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/mips-linux-musl/asm/unistd.h
rename to libc/include/mips-linux-any/asm/unistd.h
diff --git a/libc/include/mips-linux-gnu/asm/sgidefs.h b/libc/include/mips-linux-gnu/asm/sgidefs.h
deleted file mode 100644
index 26143e3b7c..0000000000
--- a/libc/include/mips-linux-gnu/asm/sgidefs.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1996, 1999, 2001 Ralf Baechle
- * Copyright (C) 1999 Silicon Graphics, Inc.
- * Copyright (C) 2001 MIPS Technologies, Inc.
- */
-#ifndef __ASM_SGIDEFS_H
-#define __ASM_SGIDEFS_H
-
-/*
- * Using a Linux compiler for building Linux seems logic but not to
- * everybody.
- */
-#ifndef __linux__
-#error Use a Linux compiler or give up.
-#endif
-
-/*
- * Definitions for the ISA levels
- *
- * With the introduction of MIPS32 / MIPS64 instruction sets definitions
- * MIPS ISAs are no longer subsets of each other. Therefore comparisons
- * on these symbols except with == may result in unexpected results and
- * are forbidden!
- */
-#define _MIPS_ISA_MIPS1 1
-#define _MIPS_ISA_MIPS2 2
-#define _MIPS_ISA_MIPS3 3
-#define _MIPS_ISA_MIPS4 4
-#define _MIPS_ISA_MIPS5 5
-#define _MIPS_ISA_MIPS32 6
-#define _MIPS_ISA_MIPS64 7
-
-/*
- * Subprogram calling convention
- */
-#define _MIPS_SIM_ABI32 1
-#define _MIPS_SIM_NABI32 2
-#define _MIPS_SIM_ABI64 3
-
-#endif /* __ASM_SGIDEFS_H */
diff --git a/libc/include/mips-linux-gnu/asm/unistd.h b/libc/include/mips-linux-gnu/asm/unistd.h
deleted file mode 100644
index f25dd1d83f..0000000000
--- a/libc/include/mips-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,1101 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle
- * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
- *
- * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto
- * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A
- */
-#ifndef _UAPI_ASM_UNISTD_H
-#define _UAPI_ASM_UNISTD_H
-
-#include
-
-#if _MIPS_SIM == _MIPS_SIM_ABI32
-
-/*
- * Linux o32 style syscalls are in the range from 4000 to 4999.
- */
-#define __NR_Linux 4000
-#define __NR_syscall (__NR_Linux + 0)
-#define __NR_exit (__NR_Linux + 1)
-#define __NR_fork (__NR_Linux + 2)
-#define __NR_read (__NR_Linux + 3)
-#define __NR_write (__NR_Linux + 4)
-#define __NR_open (__NR_Linux + 5)
-#define __NR_close (__NR_Linux + 6)
-#define __NR_waitpid (__NR_Linux + 7)
-#define __NR_creat (__NR_Linux + 8)
-#define __NR_link (__NR_Linux + 9)
-#define __NR_unlink (__NR_Linux + 10)
-#define __NR_execve (__NR_Linux + 11)
-#define __NR_chdir (__NR_Linux + 12)
-#define __NR_time (__NR_Linux + 13)
-#define __NR_mknod (__NR_Linux + 14)
-#define __NR_chmod (__NR_Linux + 15)
-#define __NR_lchown (__NR_Linux + 16)
-#define __NR_break (__NR_Linux + 17)
-#define __NR_unused18 (__NR_Linux + 18)
-#define __NR_lseek (__NR_Linux + 19)
-#define __NR_getpid (__NR_Linux + 20)
-#define __NR_mount (__NR_Linux + 21)
-#define __NR_umount (__NR_Linux + 22)
-#define __NR_setuid (__NR_Linux + 23)
-#define __NR_getuid (__NR_Linux + 24)
-#define __NR_stime (__NR_Linux + 25)
-#define __NR_ptrace (__NR_Linux + 26)
-#define __NR_alarm (__NR_Linux + 27)
-#define __NR_unused28 (__NR_Linux + 28)
-#define __NR_pause (__NR_Linux + 29)
-#define __NR_utime (__NR_Linux + 30)
-#define __NR_stty (__NR_Linux + 31)
-#define __NR_gtty (__NR_Linux + 32)
-#define __NR_access (__NR_Linux + 33)
-#define __NR_nice (__NR_Linux + 34)
-#define __NR_ftime (__NR_Linux + 35)
-#define __NR_sync (__NR_Linux + 36)
-#define __NR_kill (__NR_Linux + 37)
-#define __NR_rename (__NR_Linux + 38)
-#define __NR_mkdir (__NR_Linux + 39)
-#define __NR_rmdir (__NR_Linux + 40)
-#define __NR_dup (__NR_Linux + 41)
-#define __NR_pipe (__NR_Linux + 42)
-#define __NR_times (__NR_Linux + 43)
-#define __NR_prof (__NR_Linux + 44)
-#define __NR_brk (__NR_Linux + 45)
-#define __NR_setgid (__NR_Linux + 46)
-#define __NR_getgid (__NR_Linux + 47)
-#define __NR_signal (__NR_Linux + 48)
-#define __NR_geteuid (__NR_Linux + 49)
-#define __NR_getegid (__NR_Linux + 50)
-#define __NR_acct (__NR_Linux + 51)
-#define __NR_umount2 (__NR_Linux + 52)
-#define __NR_lock (__NR_Linux + 53)
-#define __NR_ioctl (__NR_Linux + 54)
-#define __NR_fcntl (__NR_Linux + 55)
-#define __NR_mpx (__NR_Linux + 56)
-#define __NR_setpgid (__NR_Linux + 57)
-#define __NR_ulimit (__NR_Linux + 58)
-#define __NR_unused59 (__NR_Linux + 59)
-#define __NR_umask (__NR_Linux + 60)
-#define __NR_chroot (__NR_Linux + 61)
-#define __NR_ustat (__NR_Linux + 62)
-#define __NR_dup2 (__NR_Linux + 63)
-#define __NR_getppid (__NR_Linux + 64)
-#define __NR_getpgrp (__NR_Linux + 65)
-#define __NR_setsid (__NR_Linux + 66)
-#define __NR_sigaction (__NR_Linux + 67)
-#define __NR_sgetmask (__NR_Linux + 68)
-#define __NR_ssetmask (__NR_Linux + 69)
-#define __NR_setreuid (__NR_Linux + 70)
-#define __NR_setregid (__NR_Linux + 71)
-#define __NR_sigsuspend (__NR_Linux + 72)
-#define __NR_sigpending (__NR_Linux + 73)
-#define __NR_sethostname (__NR_Linux + 74)
-#define __NR_setrlimit (__NR_Linux + 75)
-#define __NR_getrlimit (__NR_Linux + 76)
-#define __NR_getrusage (__NR_Linux + 77)
-#define __NR_gettimeofday (__NR_Linux + 78)
-#define __NR_settimeofday (__NR_Linux + 79)
-#define __NR_getgroups (__NR_Linux + 80)
-#define __NR_setgroups (__NR_Linux + 81)
-#define __NR_reserved82 (__NR_Linux + 82)
-#define __NR_symlink (__NR_Linux + 83)
-#define __NR_unused84 (__NR_Linux + 84)
-#define __NR_readlink (__NR_Linux + 85)
-#define __NR_uselib (__NR_Linux + 86)
-#define __NR_swapon (__NR_Linux + 87)
-#define __NR_reboot (__NR_Linux + 88)
-#define __NR_readdir (__NR_Linux + 89)
-#define __NR_mmap (__NR_Linux + 90)
-#define __NR_munmap (__NR_Linux + 91)
-#define __NR_truncate (__NR_Linux + 92)
-#define __NR_ftruncate (__NR_Linux + 93)
-#define __NR_fchmod (__NR_Linux + 94)
-#define __NR_fchown (__NR_Linux + 95)
-#define __NR_getpriority (__NR_Linux + 96)
-#define __NR_setpriority (__NR_Linux + 97)
-#define __NR_profil (__NR_Linux + 98)
-#define __NR_statfs (__NR_Linux + 99)
-#define __NR_fstatfs (__NR_Linux + 100)
-#define __NR_ioperm (__NR_Linux + 101)
-#define __NR_socketcall (__NR_Linux + 102)
-#define __NR_syslog (__NR_Linux + 103)
-#define __NR_setitimer (__NR_Linux + 104)
-#define __NR_getitimer (__NR_Linux + 105)
-#define __NR_stat (__NR_Linux + 106)
-#define __NR_lstat (__NR_Linux + 107)
-#define __NR_fstat (__NR_Linux + 108)
-#define __NR_unused109 (__NR_Linux + 109)
-#define __NR_iopl (__NR_Linux + 110)
-#define __NR_vhangup (__NR_Linux + 111)
-#define __NR_idle (__NR_Linux + 112)
-#define __NR_vm86 (__NR_Linux + 113)
-#define __NR_wait4 (__NR_Linux + 114)
-#define __NR_swapoff (__NR_Linux + 115)
-#define __NR_sysinfo (__NR_Linux + 116)
-#define __NR_ipc (__NR_Linux + 117)
-#define __NR_fsync (__NR_Linux + 118)
-#define __NR_sigreturn (__NR_Linux + 119)
-#define __NR_clone (__NR_Linux + 120)
-#define __NR_setdomainname (__NR_Linux + 121)
-#define __NR_uname (__NR_Linux + 122)
-#define __NR_modify_ldt (__NR_Linux + 123)
-#define __NR_adjtimex (__NR_Linux + 124)
-#define __NR_mprotect (__NR_Linux + 125)
-#define __NR_sigprocmask (__NR_Linux + 126)
-#define __NR_create_module (__NR_Linux + 127)
-#define __NR_init_module (__NR_Linux + 128)
-#define __NR_delete_module (__NR_Linux + 129)
-#define __NR_get_kernel_syms (__NR_Linux + 130)
-#define __NR_quotactl (__NR_Linux + 131)
-#define __NR_getpgid (__NR_Linux + 132)
-#define __NR_fchdir (__NR_Linux + 133)
-#define __NR_bdflush (__NR_Linux + 134)
-#define __NR_sysfs (__NR_Linux + 135)
-#define __NR_personality (__NR_Linux + 136)
-#define __NR_afs_syscall (__NR_Linux + 137) /* Syscall for Andrew File System */
-#define __NR_setfsuid (__NR_Linux + 138)
-#define __NR_setfsgid (__NR_Linux + 139)
-#define __NR__llseek (__NR_Linux + 140)
-#define __NR_getdents (__NR_Linux + 141)
-#define __NR__newselect (__NR_Linux + 142)
-#define __NR_flock (__NR_Linux + 143)
-#define __NR_msync (__NR_Linux + 144)
-#define __NR_readv (__NR_Linux + 145)
-#define __NR_writev (__NR_Linux + 146)
-#define __NR_cacheflush (__NR_Linux + 147)
-#define __NR_cachectl (__NR_Linux + 148)
-#define __NR_sysmips (__NR_Linux + 149)
-#define __NR_unused150 (__NR_Linux + 150)
-#define __NR_getsid (__NR_Linux + 151)
-#define __NR_fdatasync (__NR_Linux + 152)
-#define __NR__sysctl (__NR_Linux + 153)
-#define __NR_mlock (__NR_Linux + 154)
-#define __NR_munlock (__NR_Linux + 155)
-#define __NR_mlockall (__NR_Linux + 156)
-#define __NR_munlockall (__NR_Linux + 157)
-#define __NR_sched_setparam (__NR_Linux + 158)
-#define __NR_sched_getparam (__NR_Linux + 159)
-#define __NR_sched_setscheduler (__NR_Linux + 160)
-#define __NR_sched_getscheduler (__NR_Linux + 161)
-#define __NR_sched_yield (__NR_Linux + 162)
-#define __NR_sched_get_priority_max (__NR_Linux + 163)
-#define __NR_sched_get_priority_min (__NR_Linux + 164)
-#define __NR_sched_rr_get_interval (__NR_Linux + 165)
-#define __NR_nanosleep (__NR_Linux + 166)
-#define __NR_mremap (__NR_Linux + 167)
-#define __NR_accept (__NR_Linux + 168)
-#define __NR_bind (__NR_Linux + 169)
-#define __NR_connect (__NR_Linux + 170)
-#define __NR_getpeername (__NR_Linux + 171)
-#define __NR_getsockname (__NR_Linux + 172)
-#define __NR_getsockopt (__NR_Linux + 173)
-#define __NR_listen (__NR_Linux + 174)
-#define __NR_recv (__NR_Linux + 175)
-#define __NR_recvfrom (__NR_Linux + 176)
-#define __NR_recvmsg (__NR_Linux + 177)
-#define __NR_send (__NR_Linux + 178)
-#define __NR_sendmsg (__NR_Linux + 179)
-#define __NR_sendto (__NR_Linux + 180)
-#define __NR_setsockopt (__NR_Linux + 181)
-#define __NR_shutdown (__NR_Linux + 182)
-#define __NR_socket (__NR_Linux + 183)
-#define __NR_socketpair (__NR_Linux + 184)
-#define __NR_setresuid (__NR_Linux + 185)
-#define __NR_getresuid (__NR_Linux + 186)
-#define __NR_query_module (__NR_Linux + 187)
-#define __NR_poll (__NR_Linux + 188)
-#define __NR_nfsservctl (__NR_Linux + 189)
-#define __NR_setresgid (__NR_Linux + 190)
-#define __NR_getresgid (__NR_Linux + 191)
-#define __NR_prctl (__NR_Linux + 192)
-#define __NR_rt_sigreturn (__NR_Linux + 193)
-#define __NR_rt_sigaction (__NR_Linux + 194)
-#define __NR_rt_sigprocmask (__NR_Linux + 195)
-#define __NR_rt_sigpending (__NR_Linux + 196)
-#define __NR_rt_sigtimedwait (__NR_Linux + 197)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 198)
-#define __NR_rt_sigsuspend (__NR_Linux + 199)
-#define __NR_pread64 (__NR_Linux + 200)
-#define __NR_pwrite64 (__NR_Linux + 201)
-#define __NR_chown (__NR_Linux + 202)
-#define __NR_getcwd (__NR_Linux + 203)
-#define __NR_capget (__NR_Linux + 204)
-#define __NR_capset (__NR_Linux + 205)
-#define __NR_sigaltstack (__NR_Linux + 206)
-#define __NR_sendfile (__NR_Linux + 207)
-#define __NR_getpmsg (__NR_Linux + 208)
-#define __NR_putpmsg (__NR_Linux + 209)
-#define __NR_mmap2 (__NR_Linux + 210)
-#define __NR_truncate64 (__NR_Linux + 211)
-#define __NR_ftruncate64 (__NR_Linux + 212)
-#define __NR_stat64 (__NR_Linux + 213)
-#define __NR_lstat64 (__NR_Linux + 214)
-#define __NR_fstat64 (__NR_Linux + 215)
-#define __NR_pivot_root (__NR_Linux + 216)
-#define __NR_mincore (__NR_Linux + 217)
-#define __NR_madvise (__NR_Linux + 218)
-#define __NR_getdents64 (__NR_Linux + 219)
-#define __NR_fcntl64 (__NR_Linux + 220)
-#define __NR_reserved221 (__NR_Linux + 221)
-#define __NR_gettid (__NR_Linux + 222)
-#define __NR_readahead (__NR_Linux + 223)
-#define __NR_setxattr (__NR_Linux + 224)
-#define __NR_lsetxattr (__NR_Linux + 225)
-#define __NR_fsetxattr (__NR_Linux + 226)
-#define __NR_getxattr (__NR_Linux + 227)
-#define __NR_lgetxattr (__NR_Linux + 228)
-#define __NR_fgetxattr (__NR_Linux + 229)
-#define __NR_listxattr (__NR_Linux + 230)
-#define __NR_llistxattr (__NR_Linux + 231)
-#define __NR_flistxattr (__NR_Linux + 232)
-#define __NR_removexattr (__NR_Linux + 233)
-#define __NR_lremovexattr (__NR_Linux + 234)
-#define __NR_fremovexattr (__NR_Linux + 235)
-#define __NR_tkill (__NR_Linux + 236)
-#define __NR_sendfile64 (__NR_Linux + 237)
-#define __NR_futex (__NR_Linux + 238)
-#define __NR_sched_setaffinity (__NR_Linux + 239)
-#define __NR_sched_getaffinity (__NR_Linux + 240)
-#define __NR_io_setup (__NR_Linux + 241)
-#define __NR_io_destroy (__NR_Linux + 242)
-#define __NR_io_getevents (__NR_Linux + 243)
-#define __NR_io_submit (__NR_Linux + 244)
-#define __NR_io_cancel (__NR_Linux + 245)
-#define __NR_exit_group (__NR_Linux + 246)
-#define __NR_lookup_dcookie (__NR_Linux + 247)
-#define __NR_epoll_create (__NR_Linux + 248)
-#define __NR_epoll_ctl (__NR_Linux + 249)
-#define __NR_epoll_wait (__NR_Linux + 250)
-#define __NR_remap_file_pages (__NR_Linux + 251)
-#define __NR_set_tid_address (__NR_Linux + 252)
-#define __NR_restart_syscall (__NR_Linux + 253)
-#define __NR_fadvise64 (__NR_Linux + 254)
-#define __NR_statfs64 (__NR_Linux + 255)
-#define __NR_fstatfs64 (__NR_Linux + 256)
-#define __NR_timer_create (__NR_Linux + 257)
-#define __NR_timer_settime (__NR_Linux + 258)
-#define __NR_timer_gettime (__NR_Linux + 259)
-#define __NR_timer_getoverrun (__NR_Linux + 260)
-#define __NR_timer_delete (__NR_Linux + 261)
-#define __NR_clock_settime (__NR_Linux + 262)
-#define __NR_clock_gettime (__NR_Linux + 263)
-#define __NR_clock_getres (__NR_Linux + 264)
-#define __NR_clock_nanosleep (__NR_Linux + 265)
-#define __NR_tgkill (__NR_Linux + 266)
-#define __NR_utimes (__NR_Linux + 267)
-#define __NR_mbind (__NR_Linux + 268)
-#define __NR_get_mempolicy (__NR_Linux + 269)
-#define __NR_set_mempolicy (__NR_Linux + 270)
-#define __NR_mq_open (__NR_Linux + 271)
-#define __NR_mq_unlink (__NR_Linux + 272)
-#define __NR_mq_timedsend (__NR_Linux + 273)
-#define __NR_mq_timedreceive (__NR_Linux + 274)
-#define __NR_mq_notify (__NR_Linux + 275)
-#define __NR_mq_getsetattr (__NR_Linux + 276)
-#define __NR_vserver (__NR_Linux + 277)
-#define __NR_waitid (__NR_Linux + 278)
-/* #define __NR_sys_setaltroot (__NR_Linux + 279) */
-#define __NR_add_key (__NR_Linux + 280)
-#define __NR_request_key (__NR_Linux + 281)
-#define __NR_keyctl (__NR_Linux + 282)
-#define __NR_set_thread_area (__NR_Linux + 283)
-#define __NR_inotify_init (__NR_Linux + 284)
-#define __NR_inotify_add_watch (__NR_Linux + 285)
-#define __NR_inotify_rm_watch (__NR_Linux + 286)
-#define __NR_migrate_pages (__NR_Linux + 287)
-#define __NR_openat (__NR_Linux + 288)
-#define __NR_mkdirat (__NR_Linux + 289)
-#define __NR_mknodat (__NR_Linux + 290)
-#define __NR_fchownat (__NR_Linux + 291)
-#define __NR_futimesat (__NR_Linux + 292)
-#define __NR_fstatat64 (__NR_Linux + 293)
-#define __NR_unlinkat (__NR_Linux + 294)
-#define __NR_renameat (__NR_Linux + 295)
-#define __NR_linkat (__NR_Linux + 296)
-#define __NR_symlinkat (__NR_Linux + 297)
-#define __NR_readlinkat (__NR_Linux + 298)
-#define __NR_fchmodat (__NR_Linux + 299)
-#define __NR_faccessat (__NR_Linux + 300)
-#define __NR_pselect6 (__NR_Linux + 301)
-#define __NR_ppoll (__NR_Linux + 302)
-#define __NR_unshare (__NR_Linux + 303)
-#define __NR_splice (__NR_Linux + 304)
-#define __NR_sync_file_range (__NR_Linux + 305)
-#define __NR_tee (__NR_Linux + 306)
-#define __NR_vmsplice (__NR_Linux + 307)
-#define __NR_move_pages (__NR_Linux + 308)
-#define __NR_set_robust_list (__NR_Linux + 309)
-#define __NR_get_robust_list (__NR_Linux + 310)
-#define __NR_kexec_load (__NR_Linux + 311)
-#define __NR_getcpu (__NR_Linux + 312)
-#define __NR_epoll_pwait (__NR_Linux + 313)
-#define __NR_ioprio_set (__NR_Linux + 314)
-#define __NR_ioprio_get (__NR_Linux + 315)
-#define __NR_utimensat (__NR_Linux + 316)
-#define __NR_signalfd (__NR_Linux + 317)
-#define __NR_timerfd (__NR_Linux + 318)
-#define __NR_eventfd (__NR_Linux + 319)
-#define __NR_fallocate (__NR_Linux + 320)
-#define __NR_timerfd_create (__NR_Linux + 321)
-#define __NR_timerfd_gettime (__NR_Linux + 322)
-#define __NR_timerfd_settime (__NR_Linux + 323)
-#define __NR_signalfd4 (__NR_Linux + 324)
-#define __NR_eventfd2 (__NR_Linux + 325)
-#define __NR_epoll_create1 (__NR_Linux + 326)
-#define __NR_dup3 (__NR_Linux + 327)
-#define __NR_pipe2 (__NR_Linux + 328)
-#define __NR_inotify_init1 (__NR_Linux + 329)
-#define __NR_preadv (__NR_Linux + 330)
-#define __NR_pwritev (__NR_Linux + 331)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 332)
-#define __NR_perf_event_open (__NR_Linux + 333)
-#define __NR_accept4 (__NR_Linux + 334)
-#define __NR_recvmmsg (__NR_Linux + 335)
-#define __NR_fanotify_init (__NR_Linux + 336)
-#define __NR_fanotify_mark (__NR_Linux + 337)
-#define __NR_prlimit64 (__NR_Linux + 338)
-#define __NR_name_to_handle_at (__NR_Linux + 339)
-#define __NR_open_by_handle_at (__NR_Linux + 340)
-#define __NR_clock_adjtime (__NR_Linux + 341)
-#define __NR_syncfs (__NR_Linux + 342)
-#define __NR_sendmmsg (__NR_Linux + 343)
-#define __NR_setns (__NR_Linux + 344)
-#define __NR_process_vm_readv (__NR_Linux + 345)
-#define __NR_process_vm_writev (__NR_Linux + 346)
-#define __NR_kcmp (__NR_Linux + 347)
-#define __NR_finit_module (__NR_Linux + 348)
-#define __NR_sched_setattr (__NR_Linux + 349)
-#define __NR_sched_getattr (__NR_Linux + 350)
-#define __NR_renameat2 (__NR_Linux + 351)
-#define __NR_seccomp (__NR_Linux + 352)
-#define __NR_getrandom (__NR_Linux + 353)
-#define __NR_memfd_create (__NR_Linux + 354)
-#define __NR_bpf (__NR_Linux + 355)
-#define __NR_execveat (__NR_Linux + 356)
-#define __NR_userfaultfd (__NR_Linux + 357)
-#define __NR_membarrier (__NR_Linux + 358)
-#define __NR_mlock2 (__NR_Linux + 359)
-#define __NR_copy_file_range (__NR_Linux + 360)
-#define __NR_preadv2 (__NR_Linux + 361)
-#define __NR_pwritev2 (__NR_Linux + 362)
-#define __NR_pkey_mprotect (__NR_Linux + 363)
-#define __NR_pkey_alloc (__NR_Linux + 364)
-#define __NR_pkey_free (__NR_Linux + 365)
-#define __NR_statx (__NR_Linux + 366)
-#define __NR_rseq (__NR_Linux + 367)
-#define __NR_io_pgetevents (__NR_Linux + 368)
-
-
-/*
- * Offset of the last Linux o32 flavoured syscall
- */
-#define __NR_Linux_syscalls 368
-
-#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
-
-#define __NR_O32_Linux 4000
-#define __NR_O32_Linux_syscalls 368
-
-#if _MIPS_SIM == _MIPS_SIM_ABI64
-
-/*
- * Linux 64-bit syscalls are in the range from 5000 to 5999.
- */
-#define __NR_Linux 5000
-#define __NR_read (__NR_Linux + 0)
-#define __NR_write (__NR_Linux + 1)
-#define __NR_open (__NR_Linux + 2)
-#define __NR_close (__NR_Linux + 3)
-#define __NR_stat (__NR_Linux + 4)
-#define __NR_fstat (__NR_Linux + 5)
-#define __NR_lstat (__NR_Linux + 6)
-#define __NR_poll (__NR_Linux + 7)
-#define __NR_lseek (__NR_Linux + 8)
-#define __NR_mmap (__NR_Linux + 9)
-#define __NR_mprotect (__NR_Linux + 10)
-#define __NR_munmap (__NR_Linux + 11)
-#define __NR_brk (__NR_Linux + 12)
-#define __NR_rt_sigaction (__NR_Linux + 13)
-#define __NR_rt_sigprocmask (__NR_Linux + 14)
-#define __NR_ioctl (__NR_Linux + 15)
-#define __NR_pread64 (__NR_Linux + 16)
-#define __NR_pwrite64 (__NR_Linux + 17)
-#define __NR_readv (__NR_Linux + 18)
-#define __NR_writev (__NR_Linux + 19)
-#define __NR_access (__NR_Linux + 20)
-#define __NR_pipe (__NR_Linux + 21)
-#define __NR__newselect (__NR_Linux + 22)
-#define __NR_sched_yield (__NR_Linux + 23)
-#define __NR_mremap (__NR_Linux + 24)
-#define __NR_msync (__NR_Linux + 25)
-#define __NR_mincore (__NR_Linux + 26)
-#define __NR_madvise (__NR_Linux + 27)
-#define __NR_shmget (__NR_Linux + 28)
-#define __NR_shmat (__NR_Linux + 29)
-#define __NR_shmctl (__NR_Linux + 30)
-#define __NR_dup (__NR_Linux + 31)
-#define __NR_dup2 (__NR_Linux + 32)
-#define __NR_pause (__NR_Linux + 33)
-#define __NR_nanosleep (__NR_Linux + 34)
-#define __NR_getitimer (__NR_Linux + 35)
-#define __NR_setitimer (__NR_Linux + 36)
-#define __NR_alarm (__NR_Linux + 37)
-#define __NR_getpid (__NR_Linux + 38)
-#define __NR_sendfile (__NR_Linux + 39)
-#define __NR_socket (__NR_Linux + 40)
-#define __NR_connect (__NR_Linux + 41)
-#define __NR_accept (__NR_Linux + 42)
-#define __NR_sendto (__NR_Linux + 43)
-#define __NR_recvfrom (__NR_Linux + 44)
-#define __NR_sendmsg (__NR_Linux + 45)
-#define __NR_recvmsg (__NR_Linux + 46)
-#define __NR_shutdown (__NR_Linux + 47)
-#define __NR_bind (__NR_Linux + 48)
-#define __NR_listen (__NR_Linux + 49)
-#define __NR_getsockname (__NR_Linux + 50)
-#define __NR_getpeername (__NR_Linux + 51)
-#define __NR_socketpair (__NR_Linux + 52)
-#define __NR_setsockopt (__NR_Linux + 53)
-#define __NR_getsockopt (__NR_Linux + 54)
-#define __NR_clone (__NR_Linux + 55)
-#define __NR_fork (__NR_Linux + 56)
-#define __NR_execve (__NR_Linux + 57)
-#define __NR_exit (__NR_Linux + 58)
-#define __NR_wait4 (__NR_Linux + 59)
-#define __NR_kill (__NR_Linux + 60)
-#define __NR_uname (__NR_Linux + 61)
-#define __NR_semget (__NR_Linux + 62)
-#define __NR_semop (__NR_Linux + 63)
-#define __NR_semctl (__NR_Linux + 64)
-#define __NR_shmdt (__NR_Linux + 65)
-#define __NR_msgget (__NR_Linux + 66)
-#define __NR_msgsnd (__NR_Linux + 67)
-#define __NR_msgrcv (__NR_Linux + 68)
-#define __NR_msgctl (__NR_Linux + 69)
-#define __NR_fcntl (__NR_Linux + 70)
-#define __NR_flock (__NR_Linux + 71)
-#define __NR_fsync (__NR_Linux + 72)
-#define __NR_fdatasync (__NR_Linux + 73)
-#define __NR_truncate (__NR_Linux + 74)
-#define __NR_ftruncate (__NR_Linux + 75)
-#define __NR_getdents (__NR_Linux + 76)
-#define __NR_getcwd (__NR_Linux + 77)
-#define __NR_chdir (__NR_Linux + 78)
-#define __NR_fchdir (__NR_Linux + 79)
-#define __NR_rename (__NR_Linux + 80)
-#define __NR_mkdir (__NR_Linux + 81)
-#define __NR_rmdir (__NR_Linux + 82)
-#define __NR_creat (__NR_Linux + 83)
-#define __NR_link (__NR_Linux + 84)
-#define __NR_unlink (__NR_Linux + 85)
-#define __NR_symlink (__NR_Linux + 86)
-#define __NR_readlink (__NR_Linux + 87)
-#define __NR_chmod (__NR_Linux + 88)
-#define __NR_fchmod (__NR_Linux + 89)
-#define __NR_chown (__NR_Linux + 90)
-#define __NR_fchown (__NR_Linux + 91)
-#define __NR_lchown (__NR_Linux + 92)
-#define __NR_umask (__NR_Linux + 93)
-#define __NR_gettimeofday (__NR_Linux + 94)
-#define __NR_getrlimit (__NR_Linux + 95)
-#define __NR_getrusage (__NR_Linux + 96)
-#define __NR_sysinfo (__NR_Linux + 97)
-#define __NR_times (__NR_Linux + 98)
-#define __NR_ptrace (__NR_Linux + 99)
-#define __NR_getuid (__NR_Linux + 100)
-#define __NR_syslog (__NR_Linux + 101)
-#define __NR_getgid (__NR_Linux + 102)
-#define __NR_setuid (__NR_Linux + 103)
-#define __NR_setgid (__NR_Linux + 104)
-#define __NR_geteuid (__NR_Linux + 105)
-#define __NR_getegid (__NR_Linux + 106)
-#define __NR_setpgid (__NR_Linux + 107)
-#define __NR_getppid (__NR_Linux + 108)
-#define __NR_getpgrp (__NR_Linux + 109)
-#define __NR_setsid (__NR_Linux + 110)
-#define __NR_setreuid (__NR_Linux + 111)
-#define __NR_setregid (__NR_Linux + 112)
-#define __NR_getgroups (__NR_Linux + 113)
-#define __NR_setgroups (__NR_Linux + 114)
-#define __NR_setresuid (__NR_Linux + 115)
-#define __NR_getresuid (__NR_Linux + 116)
-#define __NR_setresgid (__NR_Linux + 117)
-#define __NR_getresgid (__NR_Linux + 118)
-#define __NR_getpgid (__NR_Linux + 119)
-#define __NR_setfsuid (__NR_Linux + 120)
-#define __NR_setfsgid (__NR_Linux + 121)
-#define __NR_getsid (__NR_Linux + 122)
-#define __NR_capget (__NR_Linux + 123)
-#define __NR_capset (__NR_Linux + 124)
-#define __NR_rt_sigpending (__NR_Linux + 125)
-#define __NR_rt_sigtimedwait (__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 127)
-#define __NR_rt_sigsuspend (__NR_Linux + 128)
-#define __NR_sigaltstack (__NR_Linux + 129)
-#define __NR_utime (__NR_Linux + 130)
-#define __NR_mknod (__NR_Linux + 131)
-#define __NR_personality (__NR_Linux + 132)
-#define __NR_ustat (__NR_Linux + 133)
-#define __NR_statfs (__NR_Linux + 134)
-#define __NR_fstatfs (__NR_Linux + 135)
-#define __NR_sysfs (__NR_Linux + 136)
-#define __NR_getpriority (__NR_Linux + 137)
-#define __NR_setpriority (__NR_Linux + 138)
-#define __NR_sched_setparam (__NR_Linux + 139)
-#define __NR_sched_getparam (__NR_Linux + 140)
-#define __NR_sched_setscheduler (__NR_Linux + 141)
-#define __NR_sched_getscheduler (__NR_Linux + 142)
-#define __NR_sched_get_priority_max (__NR_Linux + 143)
-#define __NR_sched_get_priority_min (__NR_Linux + 144)
-#define __NR_sched_rr_get_interval (__NR_Linux + 145)
-#define __NR_mlock (__NR_Linux + 146)
-#define __NR_munlock (__NR_Linux + 147)
-#define __NR_mlockall (__NR_Linux + 148)
-#define __NR_munlockall (__NR_Linux + 149)
-#define __NR_vhangup (__NR_Linux + 150)
-#define __NR_pivot_root (__NR_Linux + 151)
-#define __NR__sysctl (__NR_Linux + 152)
-#define __NR_prctl (__NR_Linux + 153)
-#define __NR_adjtimex (__NR_Linux + 154)
-#define __NR_setrlimit (__NR_Linux + 155)
-#define __NR_chroot (__NR_Linux + 156)
-#define __NR_sync (__NR_Linux + 157)
-#define __NR_acct (__NR_Linux + 158)
-#define __NR_settimeofday (__NR_Linux + 159)
-#define __NR_mount (__NR_Linux + 160)
-#define __NR_umount2 (__NR_Linux + 161)
-#define __NR_swapon (__NR_Linux + 162)
-#define __NR_swapoff (__NR_Linux + 163)
-#define __NR_reboot (__NR_Linux + 164)
-#define __NR_sethostname (__NR_Linux + 165)
-#define __NR_setdomainname (__NR_Linux + 166)
-#define __NR_create_module (__NR_Linux + 167)
-#define __NR_init_module (__NR_Linux + 168)
-#define __NR_delete_module (__NR_Linux + 169)
-#define __NR_get_kernel_syms (__NR_Linux + 170)
-#define __NR_query_module (__NR_Linux + 171)
-#define __NR_quotactl (__NR_Linux + 172)
-#define __NR_nfsservctl (__NR_Linux + 173)
-#define __NR_getpmsg (__NR_Linux + 174)
-#define __NR_putpmsg (__NR_Linux + 175)
-#define __NR_afs_syscall (__NR_Linux + 176)
-#define __NR_reserved177 (__NR_Linux + 177)
-#define __NR_gettid (__NR_Linux + 178)
-#define __NR_readahead (__NR_Linux + 179)
-#define __NR_setxattr (__NR_Linux + 180)
-#define __NR_lsetxattr (__NR_Linux + 181)
-#define __NR_fsetxattr (__NR_Linux + 182)
-#define __NR_getxattr (__NR_Linux + 183)
-#define __NR_lgetxattr (__NR_Linux + 184)
-#define __NR_fgetxattr (__NR_Linux + 185)
-#define __NR_listxattr (__NR_Linux + 186)
-#define __NR_llistxattr (__NR_Linux + 187)
-#define __NR_flistxattr (__NR_Linux + 188)
-#define __NR_removexattr (__NR_Linux + 189)
-#define __NR_lremovexattr (__NR_Linux + 190)
-#define __NR_fremovexattr (__NR_Linux + 191)
-#define __NR_tkill (__NR_Linux + 192)
-#define __NR_reserved193 (__NR_Linux + 193)
-#define __NR_futex (__NR_Linux + 194)
-#define __NR_sched_setaffinity (__NR_Linux + 195)
-#define __NR_sched_getaffinity (__NR_Linux + 196)
-#define __NR_cacheflush (__NR_Linux + 197)
-#define __NR_cachectl (__NR_Linux + 198)
-#define __NR_sysmips (__NR_Linux + 199)
-#define __NR_io_setup (__NR_Linux + 200)
-#define __NR_io_destroy (__NR_Linux + 201)
-#define __NR_io_getevents (__NR_Linux + 202)
-#define __NR_io_submit (__NR_Linux + 203)
-#define __NR_io_cancel (__NR_Linux + 204)
-#define __NR_exit_group (__NR_Linux + 205)
-#define __NR_lookup_dcookie (__NR_Linux + 206)
-#define __NR_epoll_create (__NR_Linux + 207)
-#define __NR_epoll_ctl (__NR_Linux + 208)
-#define __NR_epoll_wait (__NR_Linux + 209)
-#define __NR_remap_file_pages (__NR_Linux + 210)
-#define __NR_rt_sigreturn (__NR_Linux + 211)
-#define __NR_set_tid_address (__NR_Linux + 212)
-#define __NR_restart_syscall (__NR_Linux + 213)
-#define __NR_semtimedop (__NR_Linux + 214)
-#define __NR_fadvise64 (__NR_Linux + 215)
-#define __NR_timer_create (__NR_Linux + 216)
-#define __NR_timer_settime (__NR_Linux + 217)
-#define __NR_timer_gettime (__NR_Linux + 218)
-#define __NR_timer_getoverrun (__NR_Linux + 219)
-#define __NR_timer_delete (__NR_Linux + 220)
-#define __NR_clock_settime (__NR_Linux + 221)
-#define __NR_clock_gettime (__NR_Linux + 222)
-#define __NR_clock_getres (__NR_Linux + 223)
-#define __NR_clock_nanosleep (__NR_Linux + 224)
-#define __NR_tgkill (__NR_Linux + 225)
-#define __NR_utimes (__NR_Linux + 226)
-#define __NR_mbind (__NR_Linux + 227)
-#define __NR_get_mempolicy (__NR_Linux + 228)
-#define __NR_set_mempolicy (__NR_Linux + 229)
-#define __NR_mq_open (__NR_Linux + 230)
-#define __NR_mq_unlink (__NR_Linux + 231)
-#define __NR_mq_timedsend (__NR_Linux + 232)
-#define __NR_mq_timedreceive (__NR_Linux + 233)
-#define __NR_mq_notify (__NR_Linux + 234)
-#define __NR_mq_getsetattr (__NR_Linux + 235)
-#define __NR_vserver (__NR_Linux + 236)
-#define __NR_waitid (__NR_Linux + 237)
-/* #define __NR_sys_setaltroot (__NR_Linux + 238) */
-#define __NR_add_key (__NR_Linux + 239)
-#define __NR_request_key (__NR_Linux + 240)
-#define __NR_keyctl (__NR_Linux + 241)
-#define __NR_set_thread_area (__NR_Linux + 242)
-#define __NR_inotify_init (__NR_Linux + 243)
-#define __NR_inotify_add_watch (__NR_Linux + 244)
-#define __NR_inotify_rm_watch (__NR_Linux + 245)
-#define __NR_migrate_pages (__NR_Linux + 246)
-#define __NR_openat (__NR_Linux + 247)
-#define __NR_mkdirat (__NR_Linux + 248)
-#define __NR_mknodat (__NR_Linux + 249)
-#define __NR_fchownat (__NR_Linux + 250)
-#define __NR_futimesat (__NR_Linux + 251)
-#define __NR_newfstatat (__NR_Linux + 252)
-#define __NR_unlinkat (__NR_Linux + 253)
-#define __NR_renameat (__NR_Linux + 254)
-#define __NR_linkat (__NR_Linux + 255)
-#define __NR_symlinkat (__NR_Linux + 256)
-#define __NR_readlinkat (__NR_Linux + 257)
-#define __NR_fchmodat (__NR_Linux + 258)
-#define __NR_faccessat (__NR_Linux + 259)
-#define __NR_pselect6 (__NR_Linux + 260)
-#define __NR_ppoll (__NR_Linux + 261)
-#define __NR_unshare (__NR_Linux + 262)
-#define __NR_splice (__NR_Linux + 263)
-#define __NR_sync_file_range (__NR_Linux + 264)
-#define __NR_tee (__NR_Linux + 265)
-#define __NR_vmsplice (__NR_Linux + 266)
-#define __NR_move_pages (__NR_Linux + 267)
-#define __NR_set_robust_list (__NR_Linux + 268)
-#define __NR_get_robust_list (__NR_Linux + 269)
-#define __NR_kexec_load (__NR_Linux + 270)
-#define __NR_getcpu (__NR_Linux + 271)
-#define __NR_epoll_pwait (__NR_Linux + 272)
-#define __NR_ioprio_set (__NR_Linux + 273)
-#define __NR_ioprio_get (__NR_Linux + 274)
-#define __NR_utimensat (__NR_Linux + 275)
-#define __NR_signalfd (__NR_Linux + 276)
-#define __NR_timerfd (__NR_Linux + 277)
-#define __NR_eventfd (__NR_Linux + 278)
-#define __NR_fallocate (__NR_Linux + 279)
-#define __NR_timerfd_create (__NR_Linux + 280)
-#define __NR_timerfd_gettime (__NR_Linux + 281)
-#define __NR_timerfd_settime (__NR_Linux + 282)
-#define __NR_signalfd4 (__NR_Linux + 283)
-#define __NR_eventfd2 (__NR_Linux + 284)
-#define __NR_epoll_create1 (__NR_Linux + 285)
-#define __NR_dup3 (__NR_Linux + 286)
-#define __NR_pipe2 (__NR_Linux + 287)
-#define __NR_inotify_init1 (__NR_Linux + 288)
-#define __NR_preadv (__NR_Linux + 289)
-#define __NR_pwritev (__NR_Linux + 290)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 291)
-#define __NR_perf_event_open (__NR_Linux + 292)
-#define __NR_accept4 (__NR_Linux + 293)
-#define __NR_recvmmsg (__NR_Linux + 294)
-#define __NR_fanotify_init (__NR_Linux + 295)
-#define __NR_fanotify_mark (__NR_Linux + 296)
-#define __NR_prlimit64 (__NR_Linux + 297)
-#define __NR_name_to_handle_at (__NR_Linux + 298)
-#define __NR_open_by_handle_at (__NR_Linux + 299)
-#define __NR_clock_adjtime (__NR_Linux + 300)
-#define __NR_syncfs (__NR_Linux + 301)
-#define __NR_sendmmsg (__NR_Linux + 302)
-#define __NR_setns (__NR_Linux + 303)
-#define __NR_process_vm_readv (__NR_Linux + 304)
-#define __NR_process_vm_writev (__NR_Linux + 305)
-#define __NR_kcmp (__NR_Linux + 306)
-#define __NR_finit_module (__NR_Linux + 307)
-#define __NR_getdents64 (__NR_Linux + 308)
-#define __NR_sched_setattr (__NR_Linux + 309)
-#define __NR_sched_getattr (__NR_Linux + 310)
-#define __NR_renameat2 (__NR_Linux + 311)
-#define __NR_seccomp (__NR_Linux + 312)
-#define __NR_getrandom (__NR_Linux + 313)
-#define __NR_memfd_create (__NR_Linux + 314)
-#define __NR_bpf (__NR_Linux + 315)
-#define __NR_execveat (__NR_Linux + 316)
-#define __NR_userfaultfd (__NR_Linux + 317)
-#define __NR_membarrier (__NR_Linux + 318)
-#define __NR_mlock2 (__NR_Linux + 319)
-#define __NR_copy_file_range (__NR_Linux + 320)
-#define __NR_preadv2 (__NR_Linux + 321)
-#define __NR_pwritev2 (__NR_Linux + 322)
-#define __NR_pkey_mprotect (__NR_Linux + 323)
-#define __NR_pkey_alloc (__NR_Linux + 324)
-#define __NR_pkey_free (__NR_Linux + 325)
-#define __NR_statx (__NR_Linux + 326)
-#define __NR_rseq (__NR_Linux + 327)
-#define __NR_io_pgetevents (__NR_Linux + 328)
-
-/*
- * Offset of the last Linux 64-bit flavoured syscall
- */
-#define __NR_Linux_syscalls 328
-
-#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
-
-#define __NR_64_Linux 5000
-#define __NR_64_Linux_syscalls 328
-
-#if _MIPS_SIM == _MIPS_SIM_NABI32
-
-/*
- * Linux N32 syscalls are in the range from 6000 to 6999.
- */
-#define __NR_Linux 6000
-#define __NR_read (__NR_Linux + 0)
-#define __NR_write (__NR_Linux + 1)
-#define __NR_open (__NR_Linux + 2)
-#define __NR_close (__NR_Linux + 3)
-#define __NR_stat (__NR_Linux + 4)
-#define __NR_fstat (__NR_Linux + 5)
-#define __NR_lstat (__NR_Linux + 6)
-#define __NR_poll (__NR_Linux + 7)
-#define __NR_lseek (__NR_Linux + 8)
-#define __NR_mmap (__NR_Linux + 9)
-#define __NR_mprotect (__NR_Linux + 10)
-#define __NR_munmap (__NR_Linux + 11)
-#define __NR_brk (__NR_Linux + 12)
-#define __NR_rt_sigaction (__NR_Linux + 13)
-#define __NR_rt_sigprocmask (__NR_Linux + 14)
-#define __NR_ioctl (__NR_Linux + 15)
-#define __NR_pread64 (__NR_Linux + 16)
-#define __NR_pwrite64 (__NR_Linux + 17)
-#define __NR_readv (__NR_Linux + 18)
-#define __NR_writev (__NR_Linux + 19)
-#define __NR_access (__NR_Linux + 20)
-#define __NR_pipe (__NR_Linux + 21)
-#define __NR__newselect (__NR_Linux + 22)
-#define __NR_sched_yield (__NR_Linux + 23)
-#define __NR_mremap (__NR_Linux + 24)
-#define __NR_msync (__NR_Linux + 25)
-#define __NR_mincore (__NR_Linux + 26)
-#define __NR_madvise (__NR_Linux + 27)
-#define __NR_shmget (__NR_Linux + 28)
-#define __NR_shmat (__NR_Linux + 29)
-#define __NR_shmctl (__NR_Linux + 30)
-#define __NR_dup (__NR_Linux + 31)
-#define __NR_dup2 (__NR_Linux + 32)
-#define __NR_pause (__NR_Linux + 33)
-#define __NR_nanosleep (__NR_Linux + 34)
-#define __NR_getitimer (__NR_Linux + 35)
-#define __NR_setitimer (__NR_Linux + 36)
-#define __NR_alarm (__NR_Linux + 37)
-#define __NR_getpid (__NR_Linux + 38)
-#define __NR_sendfile (__NR_Linux + 39)
-#define __NR_socket (__NR_Linux + 40)
-#define __NR_connect (__NR_Linux + 41)
-#define __NR_accept (__NR_Linux + 42)
-#define __NR_sendto (__NR_Linux + 43)
-#define __NR_recvfrom (__NR_Linux + 44)
-#define __NR_sendmsg (__NR_Linux + 45)
-#define __NR_recvmsg (__NR_Linux + 46)
-#define __NR_shutdown (__NR_Linux + 47)
-#define __NR_bind (__NR_Linux + 48)
-#define __NR_listen (__NR_Linux + 49)
-#define __NR_getsockname (__NR_Linux + 50)
-#define __NR_getpeername (__NR_Linux + 51)
-#define __NR_socketpair (__NR_Linux + 52)
-#define __NR_setsockopt (__NR_Linux + 53)
-#define __NR_getsockopt (__NR_Linux + 54)
-#define __NR_clone (__NR_Linux + 55)
-#define __NR_fork (__NR_Linux + 56)
-#define __NR_execve (__NR_Linux + 57)
-#define __NR_exit (__NR_Linux + 58)
-#define __NR_wait4 (__NR_Linux + 59)
-#define __NR_kill (__NR_Linux + 60)
-#define __NR_uname (__NR_Linux + 61)
-#define __NR_semget (__NR_Linux + 62)
-#define __NR_semop (__NR_Linux + 63)
-#define __NR_semctl (__NR_Linux + 64)
-#define __NR_shmdt (__NR_Linux + 65)
-#define __NR_msgget (__NR_Linux + 66)
-#define __NR_msgsnd (__NR_Linux + 67)
-#define __NR_msgrcv (__NR_Linux + 68)
-#define __NR_msgctl (__NR_Linux + 69)
-#define __NR_fcntl (__NR_Linux + 70)
-#define __NR_flock (__NR_Linux + 71)
-#define __NR_fsync (__NR_Linux + 72)
-#define __NR_fdatasync (__NR_Linux + 73)
-#define __NR_truncate (__NR_Linux + 74)
-#define __NR_ftruncate (__NR_Linux + 75)
-#define __NR_getdents (__NR_Linux + 76)
-#define __NR_getcwd (__NR_Linux + 77)
-#define __NR_chdir (__NR_Linux + 78)
-#define __NR_fchdir (__NR_Linux + 79)
-#define __NR_rename (__NR_Linux + 80)
-#define __NR_mkdir (__NR_Linux + 81)
-#define __NR_rmdir (__NR_Linux + 82)
-#define __NR_creat (__NR_Linux + 83)
-#define __NR_link (__NR_Linux + 84)
-#define __NR_unlink (__NR_Linux + 85)
-#define __NR_symlink (__NR_Linux + 86)
-#define __NR_readlink (__NR_Linux + 87)
-#define __NR_chmod (__NR_Linux + 88)
-#define __NR_fchmod (__NR_Linux + 89)
-#define __NR_chown (__NR_Linux + 90)
-#define __NR_fchown (__NR_Linux + 91)
-#define __NR_lchown (__NR_Linux + 92)
-#define __NR_umask (__NR_Linux + 93)
-#define __NR_gettimeofday (__NR_Linux + 94)
-#define __NR_getrlimit (__NR_Linux + 95)
-#define __NR_getrusage (__NR_Linux + 96)
-#define __NR_sysinfo (__NR_Linux + 97)
-#define __NR_times (__NR_Linux + 98)
-#define __NR_ptrace (__NR_Linux + 99)
-#define __NR_getuid (__NR_Linux + 100)
-#define __NR_syslog (__NR_Linux + 101)
-#define __NR_getgid (__NR_Linux + 102)
-#define __NR_setuid (__NR_Linux + 103)
-#define __NR_setgid (__NR_Linux + 104)
-#define __NR_geteuid (__NR_Linux + 105)
-#define __NR_getegid (__NR_Linux + 106)
-#define __NR_setpgid (__NR_Linux + 107)
-#define __NR_getppid (__NR_Linux + 108)
-#define __NR_getpgrp (__NR_Linux + 109)
-#define __NR_setsid (__NR_Linux + 110)
-#define __NR_setreuid (__NR_Linux + 111)
-#define __NR_setregid (__NR_Linux + 112)
-#define __NR_getgroups (__NR_Linux + 113)
-#define __NR_setgroups (__NR_Linux + 114)
-#define __NR_setresuid (__NR_Linux + 115)
-#define __NR_getresuid (__NR_Linux + 116)
-#define __NR_setresgid (__NR_Linux + 117)
-#define __NR_getresgid (__NR_Linux + 118)
-#define __NR_getpgid (__NR_Linux + 119)
-#define __NR_setfsuid (__NR_Linux + 120)
-#define __NR_setfsgid (__NR_Linux + 121)
-#define __NR_getsid (__NR_Linux + 122)
-#define __NR_capget (__NR_Linux + 123)
-#define __NR_capset (__NR_Linux + 124)
-#define __NR_rt_sigpending (__NR_Linux + 125)
-#define __NR_rt_sigtimedwait (__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 127)
-#define __NR_rt_sigsuspend (__NR_Linux + 128)
-#define __NR_sigaltstack (__NR_Linux + 129)
-#define __NR_utime (__NR_Linux + 130)
-#define __NR_mknod (__NR_Linux + 131)
-#define __NR_personality (__NR_Linux + 132)
-#define __NR_ustat (__NR_Linux + 133)
-#define __NR_statfs (__NR_Linux + 134)
-#define __NR_fstatfs (__NR_Linux + 135)
-#define __NR_sysfs (__NR_Linux + 136)
-#define __NR_getpriority (__NR_Linux + 137)
-#define __NR_setpriority (__NR_Linux + 138)
-#define __NR_sched_setparam (__NR_Linux + 139)
-#define __NR_sched_getparam (__NR_Linux + 140)
-#define __NR_sched_setscheduler (__NR_Linux + 141)
-#define __NR_sched_getscheduler (__NR_Linux + 142)
-#define __NR_sched_get_priority_max (__NR_Linux + 143)
-#define __NR_sched_get_priority_min (__NR_Linux + 144)
-#define __NR_sched_rr_get_interval (__NR_Linux + 145)
-#define __NR_mlock (__NR_Linux + 146)
-#define __NR_munlock (__NR_Linux + 147)
-#define __NR_mlockall (__NR_Linux + 148)
-#define __NR_munlockall (__NR_Linux + 149)
-#define __NR_vhangup (__NR_Linux + 150)
-#define __NR_pivot_root (__NR_Linux + 151)
-#define __NR__sysctl (__NR_Linux + 152)
-#define __NR_prctl (__NR_Linux + 153)
-#define __NR_adjtimex (__NR_Linux + 154)
-#define __NR_setrlimit (__NR_Linux + 155)
-#define __NR_chroot (__NR_Linux + 156)
-#define __NR_sync (__NR_Linux + 157)
-#define __NR_acct (__NR_Linux + 158)
-#define __NR_settimeofday (__NR_Linux + 159)
-#define __NR_mount (__NR_Linux + 160)
-#define __NR_umount2 (__NR_Linux + 161)
-#define __NR_swapon (__NR_Linux + 162)
-#define __NR_swapoff (__NR_Linux + 163)
-#define __NR_reboot (__NR_Linux + 164)
-#define __NR_sethostname (__NR_Linux + 165)
-#define __NR_setdomainname (__NR_Linux + 166)
-#define __NR_create_module (__NR_Linux + 167)
-#define __NR_init_module (__NR_Linux + 168)
-#define __NR_delete_module (__NR_Linux + 169)
-#define __NR_get_kernel_syms (__NR_Linux + 170)
-#define __NR_query_module (__NR_Linux + 171)
-#define __NR_quotactl (__NR_Linux + 172)
-#define __NR_nfsservctl (__NR_Linux + 173)
-#define __NR_getpmsg (__NR_Linux + 174)
-#define __NR_putpmsg (__NR_Linux + 175)
-#define __NR_afs_syscall (__NR_Linux + 176)
-#define __NR_reserved177 (__NR_Linux + 177)
-#define __NR_gettid (__NR_Linux + 178)
-#define __NR_readahead (__NR_Linux + 179)
-#define __NR_setxattr (__NR_Linux + 180)
-#define __NR_lsetxattr (__NR_Linux + 181)
-#define __NR_fsetxattr (__NR_Linux + 182)
-#define __NR_getxattr (__NR_Linux + 183)
-#define __NR_lgetxattr (__NR_Linux + 184)
-#define __NR_fgetxattr (__NR_Linux + 185)
-#define __NR_listxattr (__NR_Linux + 186)
-#define __NR_llistxattr (__NR_Linux + 187)
-#define __NR_flistxattr (__NR_Linux + 188)
-#define __NR_removexattr (__NR_Linux + 189)
-#define __NR_lremovexattr (__NR_Linux + 190)
-#define __NR_fremovexattr (__NR_Linux + 191)
-#define __NR_tkill (__NR_Linux + 192)
-#define __NR_reserved193 (__NR_Linux + 193)
-#define __NR_futex (__NR_Linux + 194)
-#define __NR_sched_setaffinity (__NR_Linux + 195)
-#define __NR_sched_getaffinity (__NR_Linux + 196)
-#define __NR_cacheflush (__NR_Linux + 197)
-#define __NR_cachectl (__NR_Linux + 198)
-#define __NR_sysmips (__NR_Linux + 199)
-#define __NR_io_setup (__NR_Linux + 200)
-#define __NR_io_destroy (__NR_Linux + 201)
-#define __NR_io_getevents (__NR_Linux + 202)
-#define __NR_io_submit (__NR_Linux + 203)
-#define __NR_io_cancel (__NR_Linux + 204)
-#define __NR_exit_group (__NR_Linux + 205)
-#define __NR_lookup_dcookie (__NR_Linux + 206)
-#define __NR_epoll_create (__NR_Linux + 207)
-#define __NR_epoll_ctl (__NR_Linux + 208)
-#define __NR_epoll_wait (__NR_Linux + 209)
-#define __NR_remap_file_pages (__NR_Linux + 210)
-#define __NR_rt_sigreturn (__NR_Linux + 211)
-#define __NR_fcntl64 (__NR_Linux + 212)
-#define __NR_set_tid_address (__NR_Linux + 213)
-#define __NR_restart_syscall (__NR_Linux + 214)
-#define __NR_semtimedop (__NR_Linux + 215)
-#define __NR_fadvise64 (__NR_Linux + 216)
-#define __NR_statfs64 (__NR_Linux + 217)
-#define __NR_fstatfs64 (__NR_Linux + 218)
-#define __NR_sendfile64 (__NR_Linux + 219)
-#define __NR_timer_create (__NR_Linux + 220)
-#define __NR_timer_settime (__NR_Linux + 221)
-#define __NR_timer_gettime (__NR_Linux + 222)
-#define __NR_timer_getoverrun (__NR_Linux + 223)
-#define __NR_timer_delete (__NR_Linux + 224)
-#define __NR_clock_settime (__NR_Linux + 225)
-#define __NR_clock_gettime (__NR_Linux + 226)
-#define __NR_clock_getres (__NR_Linux + 227)
-#define __NR_clock_nanosleep (__NR_Linux + 228)
-#define __NR_tgkill (__NR_Linux + 229)
-#define __NR_utimes (__NR_Linux + 230)
-#define __NR_mbind (__NR_Linux + 231)
-#define __NR_get_mempolicy (__NR_Linux + 232)
-#define __NR_set_mempolicy (__NR_Linux + 233)
-#define __NR_mq_open (__NR_Linux + 234)
-#define __NR_mq_unlink (__NR_Linux + 235)
-#define __NR_mq_timedsend (__NR_Linux + 236)
-#define __NR_mq_timedreceive (__NR_Linux + 237)
-#define __NR_mq_notify (__NR_Linux + 238)
-#define __NR_mq_getsetattr (__NR_Linux + 239)
-#define __NR_vserver (__NR_Linux + 240)
-#define __NR_waitid (__NR_Linux + 241)
-/* #define __NR_sys_setaltroot (__NR_Linux + 242) */
-#define __NR_add_key (__NR_Linux + 243)
-#define __NR_request_key (__NR_Linux + 244)
-#define __NR_keyctl (__NR_Linux + 245)
-#define __NR_set_thread_area (__NR_Linux + 246)
-#define __NR_inotify_init (__NR_Linux + 247)
-#define __NR_inotify_add_watch (__NR_Linux + 248)
-#define __NR_inotify_rm_watch (__NR_Linux + 249)
-#define __NR_migrate_pages (__NR_Linux + 250)
-#define __NR_openat (__NR_Linux + 251)
-#define __NR_mkdirat (__NR_Linux + 252)
-#define __NR_mknodat (__NR_Linux + 253)
-#define __NR_fchownat (__NR_Linux + 254)
-#define __NR_futimesat (__NR_Linux + 255)
-#define __NR_newfstatat (__NR_Linux + 256)
-#define __NR_unlinkat (__NR_Linux + 257)
-#define __NR_renameat (__NR_Linux + 258)
-#define __NR_linkat (__NR_Linux + 259)
-#define __NR_symlinkat (__NR_Linux + 260)
-#define __NR_readlinkat (__NR_Linux + 261)
-#define __NR_fchmodat (__NR_Linux + 262)
-#define __NR_faccessat (__NR_Linux + 263)
-#define __NR_pselect6 (__NR_Linux + 264)
-#define __NR_ppoll (__NR_Linux + 265)
-#define __NR_unshare (__NR_Linux + 266)
-#define __NR_splice (__NR_Linux + 267)
-#define __NR_sync_file_range (__NR_Linux + 268)
-#define __NR_tee (__NR_Linux + 269)
-#define __NR_vmsplice (__NR_Linux + 270)
-#define __NR_move_pages (__NR_Linux + 271)
-#define __NR_set_robust_list (__NR_Linux + 272)
-#define __NR_get_robust_list (__NR_Linux + 273)
-#define __NR_kexec_load (__NR_Linux + 274)
-#define __NR_getcpu (__NR_Linux + 275)
-#define __NR_epoll_pwait (__NR_Linux + 276)
-#define __NR_ioprio_set (__NR_Linux + 277)
-#define __NR_ioprio_get (__NR_Linux + 278)
-#define __NR_utimensat (__NR_Linux + 279)
-#define __NR_signalfd (__NR_Linux + 280)
-#define __NR_timerfd (__NR_Linux + 281)
-#define __NR_eventfd (__NR_Linux + 282)
-#define __NR_fallocate (__NR_Linux + 283)
-#define __NR_timerfd_create (__NR_Linux + 284)
-#define __NR_timerfd_gettime (__NR_Linux + 285)
-#define __NR_timerfd_settime (__NR_Linux + 286)
-#define __NR_signalfd4 (__NR_Linux + 287)
-#define __NR_eventfd2 (__NR_Linux + 288)
-#define __NR_epoll_create1 (__NR_Linux + 289)
-#define __NR_dup3 (__NR_Linux + 290)
-#define __NR_pipe2 (__NR_Linux + 291)
-#define __NR_inotify_init1 (__NR_Linux + 292)
-#define __NR_preadv (__NR_Linux + 293)
-#define __NR_pwritev (__NR_Linux + 294)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 295)
-#define __NR_perf_event_open (__NR_Linux + 296)
-#define __NR_accept4 (__NR_Linux + 297)
-#define __NR_recvmmsg (__NR_Linux + 298)
-#define __NR_getdents64 (__NR_Linux + 299)
-#define __NR_fanotify_init (__NR_Linux + 300)
-#define __NR_fanotify_mark (__NR_Linux + 301)
-#define __NR_prlimit64 (__NR_Linux + 302)
-#define __NR_name_to_handle_at (__NR_Linux + 303)
-#define __NR_open_by_handle_at (__NR_Linux + 304)
-#define __NR_clock_adjtime (__NR_Linux + 305)
-#define __NR_syncfs (__NR_Linux + 306)
-#define __NR_sendmmsg (__NR_Linux + 307)
-#define __NR_setns (__NR_Linux + 308)
-#define __NR_process_vm_readv (__NR_Linux + 309)
-#define __NR_process_vm_writev (__NR_Linux + 310)
-#define __NR_kcmp (__NR_Linux + 311)
-#define __NR_finit_module (__NR_Linux + 312)
-#define __NR_sched_setattr (__NR_Linux + 313)
-#define __NR_sched_getattr (__NR_Linux + 314)
-#define __NR_renameat2 (__NR_Linux + 315)
-#define __NR_seccomp (__NR_Linux + 316)
-#define __NR_getrandom (__NR_Linux + 317)
-#define __NR_memfd_create (__NR_Linux + 318)
-#define __NR_bpf (__NR_Linux + 319)
-#define __NR_execveat (__NR_Linux + 320)
-#define __NR_userfaultfd (__NR_Linux + 321)
-#define __NR_membarrier (__NR_Linux + 322)
-#define __NR_mlock2 (__NR_Linux + 323)
-#define __NR_copy_file_range (__NR_Linux + 324)
-#define __NR_preadv2 (__NR_Linux + 325)
-#define __NR_pwritev2 (__NR_Linux + 326)
-#define __NR_pkey_mprotect (__NR_Linux + 327)
-#define __NR_pkey_alloc (__NR_Linux + 328)
-#define __NR_pkey_free (__NR_Linux + 329)
-#define __NR_statx (__NR_Linux + 330)
-#define __NR_rseq (__NR_Linux + 331)
-#define __NR_io_pgetevents (__NR_Linux + 332)
-
-/*
- * Offset of the last N32 flavoured syscall
- */
-#define __NR_Linux_syscalls 332
-
-#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
-
-#define __NR_N32_Linux 6000
-#define __NR_N32_Linux_syscalls 332
-
-#endif /* _UAPI_ASM_UNISTD_H */
diff --git a/libc/include/mips64-linux-musl/asm/auxvec.h b/libc/include/mips64-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/auxvec.h
rename to libc/include/mips64-linux-any/asm/auxvec.h
diff --git a/libc/include/mips64-linux-musl/asm/bitsperlong.h b/libc/include/mips64-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/bitsperlong.h
rename to libc/include/mips64-linux-any/asm/bitsperlong.h
diff --git a/libc/include/mips64-linux-musl/asm/byteorder.h b/libc/include/mips64-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/byteorder.h
rename to libc/include/mips64-linux-any/asm/byteorder.h
diff --git a/libc/include/mips64-linux-musl/asm/errno.h b/libc/include/mips64-linux-any/asm/errno.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/errno.h
rename to libc/include/mips64-linux-any/asm/errno.h
diff --git a/libc/include/mips64-linux-musl/asm/fcntl.h b/libc/include/mips64-linux-any/asm/fcntl.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/fcntl.h
rename to libc/include/mips64-linux-any/asm/fcntl.h
diff --git a/libc/include/mips64-linux-musl/asm/hwcap.h b/libc/include/mips64-linux-any/asm/hwcap.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/hwcap.h
rename to libc/include/mips64-linux-any/asm/hwcap.h
diff --git a/libc/include/mips64-linux-musl/asm/ioctl.h b/libc/include/mips64-linux-any/asm/ioctl.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/ioctl.h
rename to libc/include/mips64-linux-any/asm/ioctl.h
diff --git a/libc/include/mips64-linux-musl/asm/ioctls.h b/libc/include/mips64-linux-any/asm/ioctls.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/ioctls.h
rename to libc/include/mips64-linux-any/asm/ioctls.h
diff --git a/libc/include/mips64-linux-musl/asm/kvm.h b/libc/include/mips64-linux-any/asm/kvm.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/kvm.h
rename to libc/include/mips64-linux-any/asm/kvm.h
diff --git a/libc/include/mips64-linux-musl/asm/kvm_para.h b/libc/include/mips64-linux-any/asm/kvm_para.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/kvm_para.h
rename to libc/include/mips64-linux-any/asm/kvm_para.h
diff --git a/libc/include/mips64-linux-musl/asm/mman.h b/libc/include/mips64-linux-any/asm/mman.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/mman.h
rename to libc/include/mips64-linux-any/asm/mman.h
diff --git a/libc/include/mips64-linux-musl/asm/msgbuf.h b/libc/include/mips64-linux-any/asm/msgbuf.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/msgbuf.h
rename to libc/include/mips64-linux-any/asm/msgbuf.h
diff --git a/libc/include/mips64-linux-musl/asm/param.h b/libc/include/mips64-linux-any/asm/param.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/param.h
rename to libc/include/mips64-linux-any/asm/param.h
diff --git a/libc/include/mips64-linux-musl/asm/poll.h b/libc/include/mips64-linux-any/asm/poll.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/poll.h
rename to libc/include/mips64-linux-any/asm/poll.h
diff --git a/libc/include/mips64-linux-musl/asm/posix_types.h b/libc/include/mips64-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/posix_types.h
rename to libc/include/mips64-linux-any/asm/posix_types.h
diff --git a/libc/include/mips64-linux-musl/asm/ptrace.h b/libc/include/mips64-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/ptrace.h
rename to libc/include/mips64-linux-any/asm/ptrace.h
diff --git a/libc/include/mips64-linux-musl/asm/resource.h b/libc/include/mips64-linux-any/asm/resource.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/resource.h
rename to libc/include/mips64-linux-any/asm/resource.h
diff --git a/libc/include/mips64-linux-musl/asm/sembuf.h b/libc/include/mips64-linux-any/asm/sembuf.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/sembuf.h
rename to libc/include/mips64-linux-any/asm/sembuf.h
diff --git a/libc/include/mips64-linux-musl/asm/setup.h b/libc/include/mips64-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/setup.h
rename to libc/include/mips64-linux-any/asm/setup.h
diff --git a/libc/include/mips64-linux-musl/asm/shmbuf.h b/libc/include/mips64-linux-any/asm/shmbuf.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/shmbuf.h
rename to libc/include/mips64-linux-any/asm/shmbuf.h
diff --git a/libc/include/mips64-linux-musl/asm/sigcontext.h b/libc/include/mips64-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/sigcontext.h
rename to libc/include/mips64-linux-any/asm/sigcontext.h
diff --git a/libc/include/mips64-linux-musl/asm/siginfo.h b/libc/include/mips64-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/siginfo.h
rename to libc/include/mips64-linux-any/asm/siginfo.h
diff --git a/libc/include/mips64-linux-musl/asm/signal.h b/libc/include/mips64-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/signal.h
rename to libc/include/mips64-linux-any/asm/signal.h
diff --git a/libc/include/mips64-linux-musl/asm/socket.h b/libc/include/mips64-linux-any/asm/socket.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/socket.h
rename to libc/include/mips64-linux-any/asm/socket.h
diff --git a/libc/include/mips64-linux-musl/asm/sockios.h b/libc/include/mips64-linux-any/asm/sockios.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/sockios.h
rename to libc/include/mips64-linux-any/asm/sockios.h
diff --git a/libc/include/mips64-linux-musl/asm/stat.h b/libc/include/mips64-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/stat.h
rename to libc/include/mips64-linux-any/asm/stat.h
diff --git a/libc/include/mips64-linux-musl/asm/statfs.h b/libc/include/mips64-linux-any/asm/statfs.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/statfs.h
rename to libc/include/mips64-linux-any/asm/statfs.h
diff --git a/libc/include/mips64-linux-musl/asm/swab.h b/libc/include/mips64-linux-any/asm/swab.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/swab.h
rename to libc/include/mips64-linux-any/asm/swab.h
diff --git a/libc/include/mips64-linux-musl/asm/termbits.h b/libc/include/mips64-linux-any/asm/termbits.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/termbits.h
rename to libc/include/mips64-linux-any/asm/termbits.h
diff --git a/libc/include/mips64-linux-musl/asm/termios.h b/libc/include/mips64-linux-any/asm/termios.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/termios.h
rename to libc/include/mips64-linux-any/asm/termios.h
diff --git a/libc/include/mips64-linux-musl/asm/types.h b/libc/include/mips64-linux-any/asm/types.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/types.h
rename to libc/include/mips64-linux-any/asm/types.h
diff --git a/libc/include/mips64-linux-musl/asm/unistd.h b/libc/include/mips64-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/mips64-linux-musl/asm/unistd.h
rename to libc/include/mips64-linux-any/asm/unistd.h
diff --git a/libc/include/mips64-linux-gnuabi64/asm/sgidefs.h b/libc/include/mips64-linux-gnuabi64/asm/sgidefs.h
deleted file mode 100644
index 26143e3b7c..0000000000
--- a/libc/include/mips64-linux-gnuabi64/asm/sgidefs.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1996, 1999, 2001 Ralf Baechle
- * Copyright (C) 1999 Silicon Graphics, Inc.
- * Copyright (C) 2001 MIPS Technologies, Inc.
- */
-#ifndef __ASM_SGIDEFS_H
-#define __ASM_SGIDEFS_H
-
-/*
- * Using a Linux compiler for building Linux seems logic but not to
- * everybody.
- */
-#ifndef __linux__
-#error Use a Linux compiler or give up.
-#endif
-
-/*
- * Definitions for the ISA levels
- *
- * With the introduction of MIPS32 / MIPS64 instruction sets definitions
- * MIPS ISAs are no longer subsets of each other. Therefore comparisons
- * on these symbols except with == may result in unexpected results and
- * are forbidden!
- */
-#define _MIPS_ISA_MIPS1 1
-#define _MIPS_ISA_MIPS2 2
-#define _MIPS_ISA_MIPS3 3
-#define _MIPS_ISA_MIPS4 4
-#define _MIPS_ISA_MIPS5 5
-#define _MIPS_ISA_MIPS32 6
-#define _MIPS_ISA_MIPS64 7
-
-/*
- * Subprogram calling convention
- */
-#define _MIPS_SIM_ABI32 1
-#define _MIPS_SIM_NABI32 2
-#define _MIPS_SIM_ABI64 3
-
-#endif /* __ASM_SGIDEFS_H */
diff --git a/libc/include/mips64-linux-gnuabi64/asm/unistd.h b/libc/include/mips64-linux-gnuabi64/asm/unistd.h
deleted file mode 100644
index f25dd1d83f..0000000000
--- a/libc/include/mips64-linux-gnuabi64/asm/unistd.h
+++ /dev/null
@@ -1,1101 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle
- * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
- *
- * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto
- * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A
- */
-#ifndef _UAPI_ASM_UNISTD_H
-#define _UAPI_ASM_UNISTD_H
-
-#include
-
-#if _MIPS_SIM == _MIPS_SIM_ABI32
-
-/*
- * Linux o32 style syscalls are in the range from 4000 to 4999.
- */
-#define __NR_Linux 4000
-#define __NR_syscall (__NR_Linux + 0)
-#define __NR_exit (__NR_Linux + 1)
-#define __NR_fork (__NR_Linux + 2)
-#define __NR_read (__NR_Linux + 3)
-#define __NR_write (__NR_Linux + 4)
-#define __NR_open (__NR_Linux + 5)
-#define __NR_close (__NR_Linux + 6)
-#define __NR_waitpid (__NR_Linux + 7)
-#define __NR_creat (__NR_Linux + 8)
-#define __NR_link (__NR_Linux + 9)
-#define __NR_unlink (__NR_Linux + 10)
-#define __NR_execve (__NR_Linux + 11)
-#define __NR_chdir (__NR_Linux + 12)
-#define __NR_time (__NR_Linux + 13)
-#define __NR_mknod (__NR_Linux + 14)
-#define __NR_chmod (__NR_Linux + 15)
-#define __NR_lchown (__NR_Linux + 16)
-#define __NR_break (__NR_Linux + 17)
-#define __NR_unused18 (__NR_Linux + 18)
-#define __NR_lseek (__NR_Linux + 19)
-#define __NR_getpid (__NR_Linux + 20)
-#define __NR_mount (__NR_Linux + 21)
-#define __NR_umount (__NR_Linux + 22)
-#define __NR_setuid (__NR_Linux + 23)
-#define __NR_getuid (__NR_Linux + 24)
-#define __NR_stime (__NR_Linux + 25)
-#define __NR_ptrace (__NR_Linux + 26)
-#define __NR_alarm (__NR_Linux + 27)
-#define __NR_unused28 (__NR_Linux + 28)
-#define __NR_pause (__NR_Linux + 29)
-#define __NR_utime (__NR_Linux + 30)
-#define __NR_stty (__NR_Linux + 31)
-#define __NR_gtty (__NR_Linux + 32)
-#define __NR_access (__NR_Linux + 33)
-#define __NR_nice (__NR_Linux + 34)
-#define __NR_ftime (__NR_Linux + 35)
-#define __NR_sync (__NR_Linux + 36)
-#define __NR_kill (__NR_Linux + 37)
-#define __NR_rename (__NR_Linux + 38)
-#define __NR_mkdir (__NR_Linux + 39)
-#define __NR_rmdir (__NR_Linux + 40)
-#define __NR_dup (__NR_Linux + 41)
-#define __NR_pipe (__NR_Linux + 42)
-#define __NR_times (__NR_Linux + 43)
-#define __NR_prof (__NR_Linux + 44)
-#define __NR_brk (__NR_Linux + 45)
-#define __NR_setgid (__NR_Linux + 46)
-#define __NR_getgid (__NR_Linux + 47)
-#define __NR_signal (__NR_Linux + 48)
-#define __NR_geteuid (__NR_Linux + 49)
-#define __NR_getegid (__NR_Linux + 50)
-#define __NR_acct (__NR_Linux + 51)
-#define __NR_umount2 (__NR_Linux + 52)
-#define __NR_lock (__NR_Linux + 53)
-#define __NR_ioctl (__NR_Linux + 54)
-#define __NR_fcntl (__NR_Linux + 55)
-#define __NR_mpx (__NR_Linux + 56)
-#define __NR_setpgid (__NR_Linux + 57)
-#define __NR_ulimit (__NR_Linux + 58)
-#define __NR_unused59 (__NR_Linux + 59)
-#define __NR_umask (__NR_Linux + 60)
-#define __NR_chroot (__NR_Linux + 61)
-#define __NR_ustat (__NR_Linux + 62)
-#define __NR_dup2 (__NR_Linux + 63)
-#define __NR_getppid (__NR_Linux + 64)
-#define __NR_getpgrp (__NR_Linux + 65)
-#define __NR_setsid (__NR_Linux + 66)
-#define __NR_sigaction (__NR_Linux + 67)
-#define __NR_sgetmask (__NR_Linux + 68)
-#define __NR_ssetmask (__NR_Linux + 69)
-#define __NR_setreuid (__NR_Linux + 70)
-#define __NR_setregid (__NR_Linux + 71)
-#define __NR_sigsuspend (__NR_Linux + 72)
-#define __NR_sigpending (__NR_Linux + 73)
-#define __NR_sethostname (__NR_Linux + 74)
-#define __NR_setrlimit (__NR_Linux + 75)
-#define __NR_getrlimit (__NR_Linux + 76)
-#define __NR_getrusage (__NR_Linux + 77)
-#define __NR_gettimeofday (__NR_Linux + 78)
-#define __NR_settimeofday (__NR_Linux + 79)
-#define __NR_getgroups (__NR_Linux + 80)
-#define __NR_setgroups (__NR_Linux + 81)
-#define __NR_reserved82 (__NR_Linux + 82)
-#define __NR_symlink (__NR_Linux + 83)
-#define __NR_unused84 (__NR_Linux + 84)
-#define __NR_readlink (__NR_Linux + 85)
-#define __NR_uselib (__NR_Linux + 86)
-#define __NR_swapon (__NR_Linux + 87)
-#define __NR_reboot (__NR_Linux + 88)
-#define __NR_readdir (__NR_Linux + 89)
-#define __NR_mmap (__NR_Linux + 90)
-#define __NR_munmap (__NR_Linux + 91)
-#define __NR_truncate (__NR_Linux + 92)
-#define __NR_ftruncate (__NR_Linux + 93)
-#define __NR_fchmod (__NR_Linux + 94)
-#define __NR_fchown (__NR_Linux + 95)
-#define __NR_getpriority (__NR_Linux + 96)
-#define __NR_setpriority (__NR_Linux + 97)
-#define __NR_profil (__NR_Linux + 98)
-#define __NR_statfs (__NR_Linux + 99)
-#define __NR_fstatfs (__NR_Linux + 100)
-#define __NR_ioperm (__NR_Linux + 101)
-#define __NR_socketcall (__NR_Linux + 102)
-#define __NR_syslog (__NR_Linux + 103)
-#define __NR_setitimer (__NR_Linux + 104)
-#define __NR_getitimer (__NR_Linux + 105)
-#define __NR_stat (__NR_Linux + 106)
-#define __NR_lstat (__NR_Linux + 107)
-#define __NR_fstat (__NR_Linux + 108)
-#define __NR_unused109 (__NR_Linux + 109)
-#define __NR_iopl (__NR_Linux + 110)
-#define __NR_vhangup (__NR_Linux + 111)
-#define __NR_idle (__NR_Linux + 112)
-#define __NR_vm86 (__NR_Linux + 113)
-#define __NR_wait4 (__NR_Linux + 114)
-#define __NR_swapoff (__NR_Linux + 115)
-#define __NR_sysinfo (__NR_Linux + 116)
-#define __NR_ipc (__NR_Linux + 117)
-#define __NR_fsync (__NR_Linux + 118)
-#define __NR_sigreturn (__NR_Linux + 119)
-#define __NR_clone (__NR_Linux + 120)
-#define __NR_setdomainname (__NR_Linux + 121)
-#define __NR_uname (__NR_Linux + 122)
-#define __NR_modify_ldt (__NR_Linux + 123)
-#define __NR_adjtimex (__NR_Linux + 124)
-#define __NR_mprotect (__NR_Linux + 125)
-#define __NR_sigprocmask (__NR_Linux + 126)
-#define __NR_create_module (__NR_Linux + 127)
-#define __NR_init_module (__NR_Linux + 128)
-#define __NR_delete_module (__NR_Linux + 129)
-#define __NR_get_kernel_syms (__NR_Linux + 130)
-#define __NR_quotactl (__NR_Linux + 131)
-#define __NR_getpgid (__NR_Linux + 132)
-#define __NR_fchdir (__NR_Linux + 133)
-#define __NR_bdflush (__NR_Linux + 134)
-#define __NR_sysfs (__NR_Linux + 135)
-#define __NR_personality (__NR_Linux + 136)
-#define __NR_afs_syscall (__NR_Linux + 137) /* Syscall for Andrew File System */
-#define __NR_setfsuid (__NR_Linux + 138)
-#define __NR_setfsgid (__NR_Linux + 139)
-#define __NR__llseek (__NR_Linux + 140)
-#define __NR_getdents (__NR_Linux + 141)
-#define __NR__newselect (__NR_Linux + 142)
-#define __NR_flock (__NR_Linux + 143)
-#define __NR_msync (__NR_Linux + 144)
-#define __NR_readv (__NR_Linux + 145)
-#define __NR_writev (__NR_Linux + 146)
-#define __NR_cacheflush (__NR_Linux + 147)
-#define __NR_cachectl (__NR_Linux + 148)
-#define __NR_sysmips (__NR_Linux + 149)
-#define __NR_unused150 (__NR_Linux + 150)
-#define __NR_getsid (__NR_Linux + 151)
-#define __NR_fdatasync (__NR_Linux + 152)
-#define __NR__sysctl (__NR_Linux + 153)
-#define __NR_mlock (__NR_Linux + 154)
-#define __NR_munlock (__NR_Linux + 155)
-#define __NR_mlockall (__NR_Linux + 156)
-#define __NR_munlockall (__NR_Linux + 157)
-#define __NR_sched_setparam (__NR_Linux + 158)
-#define __NR_sched_getparam (__NR_Linux + 159)
-#define __NR_sched_setscheduler (__NR_Linux + 160)
-#define __NR_sched_getscheduler (__NR_Linux + 161)
-#define __NR_sched_yield (__NR_Linux + 162)
-#define __NR_sched_get_priority_max (__NR_Linux + 163)
-#define __NR_sched_get_priority_min (__NR_Linux + 164)
-#define __NR_sched_rr_get_interval (__NR_Linux + 165)
-#define __NR_nanosleep (__NR_Linux + 166)
-#define __NR_mremap (__NR_Linux + 167)
-#define __NR_accept (__NR_Linux + 168)
-#define __NR_bind (__NR_Linux + 169)
-#define __NR_connect (__NR_Linux + 170)
-#define __NR_getpeername (__NR_Linux + 171)
-#define __NR_getsockname (__NR_Linux + 172)
-#define __NR_getsockopt (__NR_Linux + 173)
-#define __NR_listen (__NR_Linux + 174)
-#define __NR_recv (__NR_Linux + 175)
-#define __NR_recvfrom (__NR_Linux + 176)
-#define __NR_recvmsg (__NR_Linux + 177)
-#define __NR_send (__NR_Linux + 178)
-#define __NR_sendmsg (__NR_Linux + 179)
-#define __NR_sendto (__NR_Linux + 180)
-#define __NR_setsockopt (__NR_Linux + 181)
-#define __NR_shutdown (__NR_Linux + 182)
-#define __NR_socket (__NR_Linux + 183)
-#define __NR_socketpair (__NR_Linux + 184)
-#define __NR_setresuid (__NR_Linux + 185)
-#define __NR_getresuid (__NR_Linux + 186)
-#define __NR_query_module (__NR_Linux + 187)
-#define __NR_poll (__NR_Linux + 188)
-#define __NR_nfsservctl (__NR_Linux + 189)
-#define __NR_setresgid (__NR_Linux + 190)
-#define __NR_getresgid (__NR_Linux + 191)
-#define __NR_prctl (__NR_Linux + 192)
-#define __NR_rt_sigreturn (__NR_Linux + 193)
-#define __NR_rt_sigaction (__NR_Linux + 194)
-#define __NR_rt_sigprocmask (__NR_Linux + 195)
-#define __NR_rt_sigpending (__NR_Linux + 196)
-#define __NR_rt_sigtimedwait (__NR_Linux + 197)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 198)
-#define __NR_rt_sigsuspend (__NR_Linux + 199)
-#define __NR_pread64 (__NR_Linux + 200)
-#define __NR_pwrite64 (__NR_Linux + 201)
-#define __NR_chown (__NR_Linux + 202)
-#define __NR_getcwd (__NR_Linux + 203)
-#define __NR_capget (__NR_Linux + 204)
-#define __NR_capset (__NR_Linux + 205)
-#define __NR_sigaltstack (__NR_Linux + 206)
-#define __NR_sendfile (__NR_Linux + 207)
-#define __NR_getpmsg (__NR_Linux + 208)
-#define __NR_putpmsg (__NR_Linux + 209)
-#define __NR_mmap2 (__NR_Linux + 210)
-#define __NR_truncate64 (__NR_Linux + 211)
-#define __NR_ftruncate64 (__NR_Linux + 212)
-#define __NR_stat64 (__NR_Linux + 213)
-#define __NR_lstat64 (__NR_Linux + 214)
-#define __NR_fstat64 (__NR_Linux + 215)
-#define __NR_pivot_root (__NR_Linux + 216)
-#define __NR_mincore (__NR_Linux + 217)
-#define __NR_madvise (__NR_Linux + 218)
-#define __NR_getdents64 (__NR_Linux + 219)
-#define __NR_fcntl64 (__NR_Linux + 220)
-#define __NR_reserved221 (__NR_Linux + 221)
-#define __NR_gettid (__NR_Linux + 222)
-#define __NR_readahead (__NR_Linux + 223)
-#define __NR_setxattr (__NR_Linux + 224)
-#define __NR_lsetxattr (__NR_Linux + 225)
-#define __NR_fsetxattr (__NR_Linux + 226)
-#define __NR_getxattr (__NR_Linux + 227)
-#define __NR_lgetxattr (__NR_Linux + 228)
-#define __NR_fgetxattr (__NR_Linux + 229)
-#define __NR_listxattr (__NR_Linux + 230)
-#define __NR_llistxattr (__NR_Linux + 231)
-#define __NR_flistxattr (__NR_Linux + 232)
-#define __NR_removexattr (__NR_Linux + 233)
-#define __NR_lremovexattr (__NR_Linux + 234)
-#define __NR_fremovexattr (__NR_Linux + 235)
-#define __NR_tkill (__NR_Linux + 236)
-#define __NR_sendfile64 (__NR_Linux + 237)
-#define __NR_futex (__NR_Linux + 238)
-#define __NR_sched_setaffinity (__NR_Linux + 239)
-#define __NR_sched_getaffinity (__NR_Linux + 240)
-#define __NR_io_setup (__NR_Linux + 241)
-#define __NR_io_destroy (__NR_Linux + 242)
-#define __NR_io_getevents (__NR_Linux + 243)
-#define __NR_io_submit (__NR_Linux + 244)
-#define __NR_io_cancel (__NR_Linux + 245)
-#define __NR_exit_group (__NR_Linux + 246)
-#define __NR_lookup_dcookie (__NR_Linux + 247)
-#define __NR_epoll_create (__NR_Linux + 248)
-#define __NR_epoll_ctl (__NR_Linux + 249)
-#define __NR_epoll_wait (__NR_Linux + 250)
-#define __NR_remap_file_pages (__NR_Linux + 251)
-#define __NR_set_tid_address (__NR_Linux + 252)
-#define __NR_restart_syscall (__NR_Linux + 253)
-#define __NR_fadvise64 (__NR_Linux + 254)
-#define __NR_statfs64 (__NR_Linux + 255)
-#define __NR_fstatfs64 (__NR_Linux + 256)
-#define __NR_timer_create (__NR_Linux + 257)
-#define __NR_timer_settime (__NR_Linux + 258)
-#define __NR_timer_gettime (__NR_Linux + 259)
-#define __NR_timer_getoverrun (__NR_Linux + 260)
-#define __NR_timer_delete (__NR_Linux + 261)
-#define __NR_clock_settime (__NR_Linux + 262)
-#define __NR_clock_gettime (__NR_Linux + 263)
-#define __NR_clock_getres (__NR_Linux + 264)
-#define __NR_clock_nanosleep (__NR_Linux + 265)
-#define __NR_tgkill (__NR_Linux + 266)
-#define __NR_utimes (__NR_Linux + 267)
-#define __NR_mbind (__NR_Linux + 268)
-#define __NR_get_mempolicy (__NR_Linux + 269)
-#define __NR_set_mempolicy (__NR_Linux + 270)
-#define __NR_mq_open (__NR_Linux + 271)
-#define __NR_mq_unlink (__NR_Linux + 272)
-#define __NR_mq_timedsend (__NR_Linux + 273)
-#define __NR_mq_timedreceive (__NR_Linux + 274)
-#define __NR_mq_notify (__NR_Linux + 275)
-#define __NR_mq_getsetattr (__NR_Linux + 276)
-#define __NR_vserver (__NR_Linux + 277)
-#define __NR_waitid (__NR_Linux + 278)
-/* #define __NR_sys_setaltroot (__NR_Linux + 279) */
-#define __NR_add_key (__NR_Linux + 280)
-#define __NR_request_key (__NR_Linux + 281)
-#define __NR_keyctl (__NR_Linux + 282)
-#define __NR_set_thread_area (__NR_Linux + 283)
-#define __NR_inotify_init (__NR_Linux + 284)
-#define __NR_inotify_add_watch (__NR_Linux + 285)
-#define __NR_inotify_rm_watch (__NR_Linux + 286)
-#define __NR_migrate_pages (__NR_Linux + 287)
-#define __NR_openat (__NR_Linux + 288)
-#define __NR_mkdirat (__NR_Linux + 289)
-#define __NR_mknodat (__NR_Linux + 290)
-#define __NR_fchownat (__NR_Linux + 291)
-#define __NR_futimesat (__NR_Linux + 292)
-#define __NR_fstatat64 (__NR_Linux + 293)
-#define __NR_unlinkat (__NR_Linux + 294)
-#define __NR_renameat (__NR_Linux + 295)
-#define __NR_linkat (__NR_Linux + 296)
-#define __NR_symlinkat (__NR_Linux + 297)
-#define __NR_readlinkat (__NR_Linux + 298)
-#define __NR_fchmodat (__NR_Linux + 299)
-#define __NR_faccessat (__NR_Linux + 300)
-#define __NR_pselect6 (__NR_Linux + 301)
-#define __NR_ppoll (__NR_Linux + 302)
-#define __NR_unshare (__NR_Linux + 303)
-#define __NR_splice (__NR_Linux + 304)
-#define __NR_sync_file_range (__NR_Linux + 305)
-#define __NR_tee (__NR_Linux + 306)
-#define __NR_vmsplice (__NR_Linux + 307)
-#define __NR_move_pages (__NR_Linux + 308)
-#define __NR_set_robust_list (__NR_Linux + 309)
-#define __NR_get_robust_list (__NR_Linux + 310)
-#define __NR_kexec_load (__NR_Linux + 311)
-#define __NR_getcpu (__NR_Linux + 312)
-#define __NR_epoll_pwait (__NR_Linux + 313)
-#define __NR_ioprio_set (__NR_Linux + 314)
-#define __NR_ioprio_get (__NR_Linux + 315)
-#define __NR_utimensat (__NR_Linux + 316)
-#define __NR_signalfd (__NR_Linux + 317)
-#define __NR_timerfd (__NR_Linux + 318)
-#define __NR_eventfd (__NR_Linux + 319)
-#define __NR_fallocate (__NR_Linux + 320)
-#define __NR_timerfd_create (__NR_Linux + 321)
-#define __NR_timerfd_gettime (__NR_Linux + 322)
-#define __NR_timerfd_settime (__NR_Linux + 323)
-#define __NR_signalfd4 (__NR_Linux + 324)
-#define __NR_eventfd2 (__NR_Linux + 325)
-#define __NR_epoll_create1 (__NR_Linux + 326)
-#define __NR_dup3 (__NR_Linux + 327)
-#define __NR_pipe2 (__NR_Linux + 328)
-#define __NR_inotify_init1 (__NR_Linux + 329)
-#define __NR_preadv (__NR_Linux + 330)
-#define __NR_pwritev (__NR_Linux + 331)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 332)
-#define __NR_perf_event_open (__NR_Linux + 333)
-#define __NR_accept4 (__NR_Linux + 334)
-#define __NR_recvmmsg (__NR_Linux + 335)
-#define __NR_fanotify_init (__NR_Linux + 336)
-#define __NR_fanotify_mark (__NR_Linux + 337)
-#define __NR_prlimit64 (__NR_Linux + 338)
-#define __NR_name_to_handle_at (__NR_Linux + 339)
-#define __NR_open_by_handle_at (__NR_Linux + 340)
-#define __NR_clock_adjtime (__NR_Linux + 341)
-#define __NR_syncfs (__NR_Linux + 342)
-#define __NR_sendmmsg (__NR_Linux + 343)
-#define __NR_setns (__NR_Linux + 344)
-#define __NR_process_vm_readv (__NR_Linux + 345)
-#define __NR_process_vm_writev (__NR_Linux + 346)
-#define __NR_kcmp (__NR_Linux + 347)
-#define __NR_finit_module (__NR_Linux + 348)
-#define __NR_sched_setattr (__NR_Linux + 349)
-#define __NR_sched_getattr (__NR_Linux + 350)
-#define __NR_renameat2 (__NR_Linux + 351)
-#define __NR_seccomp (__NR_Linux + 352)
-#define __NR_getrandom (__NR_Linux + 353)
-#define __NR_memfd_create (__NR_Linux + 354)
-#define __NR_bpf (__NR_Linux + 355)
-#define __NR_execveat (__NR_Linux + 356)
-#define __NR_userfaultfd (__NR_Linux + 357)
-#define __NR_membarrier (__NR_Linux + 358)
-#define __NR_mlock2 (__NR_Linux + 359)
-#define __NR_copy_file_range (__NR_Linux + 360)
-#define __NR_preadv2 (__NR_Linux + 361)
-#define __NR_pwritev2 (__NR_Linux + 362)
-#define __NR_pkey_mprotect (__NR_Linux + 363)
-#define __NR_pkey_alloc (__NR_Linux + 364)
-#define __NR_pkey_free (__NR_Linux + 365)
-#define __NR_statx (__NR_Linux + 366)
-#define __NR_rseq (__NR_Linux + 367)
-#define __NR_io_pgetevents (__NR_Linux + 368)
-
-
-/*
- * Offset of the last Linux o32 flavoured syscall
- */
-#define __NR_Linux_syscalls 368
-
-#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
-
-#define __NR_O32_Linux 4000
-#define __NR_O32_Linux_syscalls 368
-
-#if _MIPS_SIM == _MIPS_SIM_ABI64
-
-/*
- * Linux 64-bit syscalls are in the range from 5000 to 5999.
- */
-#define __NR_Linux 5000
-#define __NR_read (__NR_Linux + 0)
-#define __NR_write (__NR_Linux + 1)
-#define __NR_open (__NR_Linux + 2)
-#define __NR_close (__NR_Linux + 3)
-#define __NR_stat (__NR_Linux + 4)
-#define __NR_fstat (__NR_Linux + 5)
-#define __NR_lstat (__NR_Linux + 6)
-#define __NR_poll (__NR_Linux + 7)
-#define __NR_lseek (__NR_Linux + 8)
-#define __NR_mmap (__NR_Linux + 9)
-#define __NR_mprotect (__NR_Linux + 10)
-#define __NR_munmap (__NR_Linux + 11)
-#define __NR_brk (__NR_Linux + 12)
-#define __NR_rt_sigaction (__NR_Linux + 13)
-#define __NR_rt_sigprocmask (__NR_Linux + 14)
-#define __NR_ioctl (__NR_Linux + 15)
-#define __NR_pread64 (__NR_Linux + 16)
-#define __NR_pwrite64 (__NR_Linux + 17)
-#define __NR_readv (__NR_Linux + 18)
-#define __NR_writev (__NR_Linux + 19)
-#define __NR_access (__NR_Linux + 20)
-#define __NR_pipe (__NR_Linux + 21)
-#define __NR__newselect (__NR_Linux + 22)
-#define __NR_sched_yield (__NR_Linux + 23)
-#define __NR_mremap (__NR_Linux + 24)
-#define __NR_msync (__NR_Linux + 25)
-#define __NR_mincore (__NR_Linux + 26)
-#define __NR_madvise (__NR_Linux + 27)
-#define __NR_shmget (__NR_Linux + 28)
-#define __NR_shmat (__NR_Linux + 29)
-#define __NR_shmctl (__NR_Linux + 30)
-#define __NR_dup (__NR_Linux + 31)
-#define __NR_dup2 (__NR_Linux + 32)
-#define __NR_pause (__NR_Linux + 33)
-#define __NR_nanosleep (__NR_Linux + 34)
-#define __NR_getitimer (__NR_Linux + 35)
-#define __NR_setitimer (__NR_Linux + 36)
-#define __NR_alarm (__NR_Linux + 37)
-#define __NR_getpid (__NR_Linux + 38)
-#define __NR_sendfile (__NR_Linux + 39)
-#define __NR_socket (__NR_Linux + 40)
-#define __NR_connect (__NR_Linux + 41)
-#define __NR_accept (__NR_Linux + 42)
-#define __NR_sendto (__NR_Linux + 43)
-#define __NR_recvfrom (__NR_Linux + 44)
-#define __NR_sendmsg (__NR_Linux + 45)
-#define __NR_recvmsg (__NR_Linux + 46)
-#define __NR_shutdown (__NR_Linux + 47)
-#define __NR_bind (__NR_Linux + 48)
-#define __NR_listen (__NR_Linux + 49)
-#define __NR_getsockname (__NR_Linux + 50)
-#define __NR_getpeername (__NR_Linux + 51)
-#define __NR_socketpair (__NR_Linux + 52)
-#define __NR_setsockopt (__NR_Linux + 53)
-#define __NR_getsockopt (__NR_Linux + 54)
-#define __NR_clone (__NR_Linux + 55)
-#define __NR_fork (__NR_Linux + 56)
-#define __NR_execve (__NR_Linux + 57)
-#define __NR_exit (__NR_Linux + 58)
-#define __NR_wait4 (__NR_Linux + 59)
-#define __NR_kill (__NR_Linux + 60)
-#define __NR_uname (__NR_Linux + 61)
-#define __NR_semget (__NR_Linux + 62)
-#define __NR_semop (__NR_Linux + 63)
-#define __NR_semctl (__NR_Linux + 64)
-#define __NR_shmdt (__NR_Linux + 65)
-#define __NR_msgget (__NR_Linux + 66)
-#define __NR_msgsnd (__NR_Linux + 67)
-#define __NR_msgrcv (__NR_Linux + 68)
-#define __NR_msgctl (__NR_Linux + 69)
-#define __NR_fcntl (__NR_Linux + 70)
-#define __NR_flock (__NR_Linux + 71)
-#define __NR_fsync (__NR_Linux + 72)
-#define __NR_fdatasync (__NR_Linux + 73)
-#define __NR_truncate (__NR_Linux + 74)
-#define __NR_ftruncate (__NR_Linux + 75)
-#define __NR_getdents (__NR_Linux + 76)
-#define __NR_getcwd (__NR_Linux + 77)
-#define __NR_chdir (__NR_Linux + 78)
-#define __NR_fchdir (__NR_Linux + 79)
-#define __NR_rename (__NR_Linux + 80)
-#define __NR_mkdir (__NR_Linux + 81)
-#define __NR_rmdir (__NR_Linux + 82)
-#define __NR_creat (__NR_Linux + 83)
-#define __NR_link (__NR_Linux + 84)
-#define __NR_unlink (__NR_Linux + 85)
-#define __NR_symlink (__NR_Linux + 86)
-#define __NR_readlink (__NR_Linux + 87)
-#define __NR_chmod (__NR_Linux + 88)
-#define __NR_fchmod (__NR_Linux + 89)
-#define __NR_chown (__NR_Linux + 90)
-#define __NR_fchown (__NR_Linux + 91)
-#define __NR_lchown (__NR_Linux + 92)
-#define __NR_umask (__NR_Linux + 93)
-#define __NR_gettimeofday (__NR_Linux + 94)
-#define __NR_getrlimit (__NR_Linux + 95)
-#define __NR_getrusage (__NR_Linux + 96)
-#define __NR_sysinfo (__NR_Linux + 97)
-#define __NR_times (__NR_Linux + 98)
-#define __NR_ptrace (__NR_Linux + 99)
-#define __NR_getuid (__NR_Linux + 100)
-#define __NR_syslog (__NR_Linux + 101)
-#define __NR_getgid (__NR_Linux + 102)
-#define __NR_setuid (__NR_Linux + 103)
-#define __NR_setgid (__NR_Linux + 104)
-#define __NR_geteuid (__NR_Linux + 105)
-#define __NR_getegid (__NR_Linux + 106)
-#define __NR_setpgid (__NR_Linux + 107)
-#define __NR_getppid (__NR_Linux + 108)
-#define __NR_getpgrp (__NR_Linux + 109)
-#define __NR_setsid (__NR_Linux + 110)
-#define __NR_setreuid (__NR_Linux + 111)
-#define __NR_setregid (__NR_Linux + 112)
-#define __NR_getgroups (__NR_Linux + 113)
-#define __NR_setgroups (__NR_Linux + 114)
-#define __NR_setresuid (__NR_Linux + 115)
-#define __NR_getresuid (__NR_Linux + 116)
-#define __NR_setresgid (__NR_Linux + 117)
-#define __NR_getresgid (__NR_Linux + 118)
-#define __NR_getpgid (__NR_Linux + 119)
-#define __NR_setfsuid (__NR_Linux + 120)
-#define __NR_setfsgid (__NR_Linux + 121)
-#define __NR_getsid (__NR_Linux + 122)
-#define __NR_capget (__NR_Linux + 123)
-#define __NR_capset (__NR_Linux + 124)
-#define __NR_rt_sigpending (__NR_Linux + 125)
-#define __NR_rt_sigtimedwait (__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 127)
-#define __NR_rt_sigsuspend (__NR_Linux + 128)
-#define __NR_sigaltstack (__NR_Linux + 129)
-#define __NR_utime (__NR_Linux + 130)
-#define __NR_mknod (__NR_Linux + 131)
-#define __NR_personality (__NR_Linux + 132)
-#define __NR_ustat (__NR_Linux + 133)
-#define __NR_statfs (__NR_Linux + 134)
-#define __NR_fstatfs (__NR_Linux + 135)
-#define __NR_sysfs (__NR_Linux + 136)
-#define __NR_getpriority (__NR_Linux + 137)
-#define __NR_setpriority (__NR_Linux + 138)
-#define __NR_sched_setparam (__NR_Linux + 139)
-#define __NR_sched_getparam (__NR_Linux + 140)
-#define __NR_sched_setscheduler (__NR_Linux + 141)
-#define __NR_sched_getscheduler (__NR_Linux + 142)
-#define __NR_sched_get_priority_max (__NR_Linux + 143)
-#define __NR_sched_get_priority_min (__NR_Linux + 144)
-#define __NR_sched_rr_get_interval (__NR_Linux + 145)
-#define __NR_mlock (__NR_Linux + 146)
-#define __NR_munlock (__NR_Linux + 147)
-#define __NR_mlockall (__NR_Linux + 148)
-#define __NR_munlockall (__NR_Linux + 149)
-#define __NR_vhangup (__NR_Linux + 150)
-#define __NR_pivot_root (__NR_Linux + 151)
-#define __NR__sysctl (__NR_Linux + 152)
-#define __NR_prctl (__NR_Linux + 153)
-#define __NR_adjtimex (__NR_Linux + 154)
-#define __NR_setrlimit (__NR_Linux + 155)
-#define __NR_chroot (__NR_Linux + 156)
-#define __NR_sync (__NR_Linux + 157)
-#define __NR_acct (__NR_Linux + 158)
-#define __NR_settimeofday (__NR_Linux + 159)
-#define __NR_mount (__NR_Linux + 160)
-#define __NR_umount2 (__NR_Linux + 161)
-#define __NR_swapon (__NR_Linux + 162)
-#define __NR_swapoff (__NR_Linux + 163)
-#define __NR_reboot (__NR_Linux + 164)
-#define __NR_sethostname (__NR_Linux + 165)
-#define __NR_setdomainname (__NR_Linux + 166)
-#define __NR_create_module (__NR_Linux + 167)
-#define __NR_init_module (__NR_Linux + 168)
-#define __NR_delete_module (__NR_Linux + 169)
-#define __NR_get_kernel_syms (__NR_Linux + 170)
-#define __NR_query_module (__NR_Linux + 171)
-#define __NR_quotactl (__NR_Linux + 172)
-#define __NR_nfsservctl (__NR_Linux + 173)
-#define __NR_getpmsg (__NR_Linux + 174)
-#define __NR_putpmsg (__NR_Linux + 175)
-#define __NR_afs_syscall (__NR_Linux + 176)
-#define __NR_reserved177 (__NR_Linux + 177)
-#define __NR_gettid (__NR_Linux + 178)
-#define __NR_readahead (__NR_Linux + 179)
-#define __NR_setxattr (__NR_Linux + 180)
-#define __NR_lsetxattr (__NR_Linux + 181)
-#define __NR_fsetxattr (__NR_Linux + 182)
-#define __NR_getxattr (__NR_Linux + 183)
-#define __NR_lgetxattr (__NR_Linux + 184)
-#define __NR_fgetxattr (__NR_Linux + 185)
-#define __NR_listxattr (__NR_Linux + 186)
-#define __NR_llistxattr (__NR_Linux + 187)
-#define __NR_flistxattr (__NR_Linux + 188)
-#define __NR_removexattr (__NR_Linux + 189)
-#define __NR_lremovexattr (__NR_Linux + 190)
-#define __NR_fremovexattr (__NR_Linux + 191)
-#define __NR_tkill (__NR_Linux + 192)
-#define __NR_reserved193 (__NR_Linux + 193)
-#define __NR_futex (__NR_Linux + 194)
-#define __NR_sched_setaffinity (__NR_Linux + 195)
-#define __NR_sched_getaffinity (__NR_Linux + 196)
-#define __NR_cacheflush (__NR_Linux + 197)
-#define __NR_cachectl (__NR_Linux + 198)
-#define __NR_sysmips (__NR_Linux + 199)
-#define __NR_io_setup (__NR_Linux + 200)
-#define __NR_io_destroy (__NR_Linux + 201)
-#define __NR_io_getevents (__NR_Linux + 202)
-#define __NR_io_submit (__NR_Linux + 203)
-#define __NR_io_cancel (__NR_Linux + 204)
-#define __NR_exit_group (__NR_Linux + 205)
-#define __NR_lookup_dcookie (__NR_Linux + 206)
-#define __NR_epoll_create (__NR_Linux + 207)
-#define __NR_epoll_ctl (__NR_Linux + 208)
-#define __NR_epoll_wait (__NR_Linux + 209)
-#define __NR_remap_file_pages (__NR_Linux + 210)
-#define __NR_rt_sigreturn (__NR_Linux + 211)
-#define __NR_set_tid_address (__NR_Linux + 212)
-#define __NR_restart_syscall (__NR_Linux + 213)
-#define __NR_semtimedop (__NR_Linux + 214)
-#define __NR_fadvise64 (__NR_Linux + 215)
-#define __NR_timer_create (__NR_Linux + 216)
-#define __NR_timer_settime (__NR_Linux + 217)
-#define __NR_timer_gettime (__NR_Linux + 218)
-#define __NR_timer_getoverrun (__NR_Linux + 219)
-#define __NR_timer_delete (__NR_Linux + 220)
-#define __NR_clock_settime (__NR_Linux + 221)
-#define __NR_clock_gettime (__NR_Linux + 222)
-#define __NR_clock_getres (__NR_Linux + 223)
-#define __NR_clock_nanosleep (__NR_Linux + 224)
-#define __NR_tgkill (__NR_Linux + 225)
-#define __NR_utimes (__NR_Linux + 226)
-#define __NR_mbind (__NR_Linux + 227)
-#define __NR_get_mempolicy (__NR_Linux + 228)
-#define __NR_set_mempolicy (__NR_Linux + 229)
-#define __NR_mq_open (__NR_Linux + 230)
-#define __NR_mq_unlink (__NR_Linux + 231)
-#define __NR_mq_timedsend (__NR_Linux + 232)
-#define __NR_mq_timedreceive (__NR_Linux + 233)
-#define __NR_mq_notify (__NR_Linux + 234)
-#define __NR_mq_getsetattr (__NR_Linux + 235)
-#define __NR_vserver (__NR_Linux + 236)
-#define __NR_waitid (__NR_Linux + 237)
-/* #define __NR_sys_setaltroot (__NR_Linux + 238) */
-#define __NR_add_key (__NR_Linux + 239)
-#define __NR_request_key (__NR_Linux + 240)
-#define __NR_keyctl (__NR_Linux + 241)
-#define __NR_set_thread_area (__NR_Linux + 242)
-#define __NR_inotify_init (__NR_Linux + 243)
-#define __NR_inotify_add_watch (__NR_Linux + 244)
-#define __NR_inotify_rm_watch (__NR_Linux + 245)
-#define __NR_migrate_pages (__NR_Linux + 246)
-#define __NR_openat (__NR_Linux + 247)
-#define __NR_mkdirat (__NR_Linux + 248)
-#define __NR_mknodat (__NR_Linux + 249)
-#define __NR_fchownat (__NR_Linux + 250)
-#define __NR_futimesat (__NR_Linux + 251)
-#define __NR_newfstatat (__NR_Linux + 252)
-#define __NR_unlinkat (__NR_Linux + 253)
-#define __NR_renameat (__NR_Linux + 254)
-#define __NR_linkat (__NR_Linux + 255)
-#define __NR_symlinkat (__NR_Linux + 256)
-#define __NR_readlinkat (__NR_Linux + 257)
-#define __NR_fchmodat (__NR_Linux + 258)
-#define __NR_faccessat (__NR_Linux + 259)
-#define __NR_pselect6 (__NR_Linux + 260)
-#define __NR_ppoll (__NR_Linux + 261)
-#define __NR_unshare (__NR_Linux + 262)
-#define __NR_splice (__NR_Linux + 263)
-#define __NR_sync_file_range (__NR_Linux + 264)
-#define __NR_tee (__NR_Linux + 265)
-#define __NR_vmsplice (__NR_Linux + 266)
-#define __NR_move_pages (__NR_Linux + 267)
-#define __NR_set_robust_list (__NR_Linux + 268)
-#define __NR_get_robust_list (__NR_Linux + 269)
-#define __NR_kexec_load (__NR_Linux + 270)
-#define __NR_getcpu (__NR_Linux + 271)
-#define __NR_epoll_pwait (__NR_Linux + 272)
-#define __NR_ioprio_set (__NR_Linux + 273)
-#define __NR_ioprio_get (__NR_Linux + 274)
-#define __NR_utimensat (__NR_Linux + 275)
-#define __NR_signalfd (__NR_Linux + 276)
-#define __NR_timerfd (__NR_Linux + 277)
-#define __NR_eventfd (__NR_Linux + 278)
-#define __NR_fallocate (__NR_Linux + 279)
-#define __NR_timerfd_create (__NR_Linux + 280)
-#define __NR_timerfd_gettime (__NR_Linux + 281)
-#define __NR_timerfd_settime (__NR_Linux + 282)
-#define __NR_signalfd4 (__NR_Linux + 283)
-#define __NR_eventfd2 (__NR_Linux + 284)
-#define __NR_epoll_create1 (__NR_Linux + 285)
-#define __NR_dup3 (__NR_Linux + 286)
-#define __NR_pipe2 (__NR_Linux + 287)
-#define __NR_inotify_init1 (__NR_Linux + 288)
-#define __NR_preadv (__NR_Linux + 289)
-#define __NR_pwritev (__NR_Linux + 290)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 291)
-#define __NR_perf_event_open (__NR_Linux + 292)
-#define __NR_accept4 (__NR_Linux + 293)
-#define __NR_recvmmsg (__NR_Linux + 294)
-#define __NR_fanotify_init (__NR_Linux + 295)
-#define __NR_fanotify_mark (__NR_Linux + 296)
-#define __NR_prlimit64 (__NR_Linux + 297)
-#define __NR_name_to_handle_at (__NR_Linux + 298)
-#define __NR_open_by_handle_at (__NR_Linux + 299)
-#define __NR_clock_adjtime (__NR_Linux + 300)
-#define __NR_syncfs (__NR_Linux + 301)
-#define __NR_sendmmsg (__NR_Linux + 302)
-#define __NR_setns (__NR_Linux + 303)
-#define __NR_process_vm_readv (__NR_Linux + 304)
-#define __NR_process_vm_writev (__NR_Linux + 305)
-#define __NR_kcmp (__NR_Linux + 306)
-#define __NR_finit_module (__NR_Linux + 307)
-#define __NR_getdents64 (__NR_Linux + 308)
-#define __NR_sched_setattr (__NR_Linux + 309)
-#define __NR_sched_getattr (__NR_Linux + 310)
-#define __NR_renameat2 (__NR_Linux + 311)
-#define __NR_seccomp (__NR_Linux + 312)
-#define __NR_getrandom (__NR_Linux + 313)
-#define __NR_memfd_create (__NR_Linux + 314)
-#define __NR_bpf (__NR_Linux + 315)
-#define __NR_execveat (__NR_Linux + 316)
-#define __NR_userfaultfd (__NR_Linux + 317)
-#define __NR_membarrier (__NR_Linux + 318)
-#define __NR_mlock2 (__NR_Linux + 319)
-#define __NR_copy_file_range (__NR_Linux + 320)
-#define __NR_preadv2 (__NR_Linux + 321)
-#define __NR_pwritev2 (__NR_Linux + 322)
-#define __NR_pkey_mprotect (__NR_Linux + 323)
-#define __NR_pkey_alloc (__NR_Linux + 324)
-#define __NR_pkey_free (__NR_Linux + 325)
-#define __NR_statx (__NR_Linux + 326)
-#define __NR_rseq (__NR_Linux + 327)
-#define __NR_io_pgetevents (__NR_Linux + 328)
-
-/*
- * Offset of the last Linux 64-bit flavoured syscall
- */
-#define __NR_Linux_syscalls 328
-
-#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
-
-#define __NR_64_Linux 5000
-#define __NR_64_Linux_syscalls 328
-
-#if _MIPS_SIM == _MIPS_SIM_NABI32
-
-/*
- * Linux N32 syscalls are in the range from 6000 to 6999.
- */
-#define __NR_Linux 6000
-#define __NR_read (__NR_Linux + 0)
-#define __NR_write (__NR_Linux + 1)
-#define __NR_open (__NR_Linux + 2)
-#define __NR_close (__NR_Linux + 3)
-#define __NR_stat (__NR_Linux + 4)
-#define __NR_fstat (__NR_Linux + 5)
-#define __NR_lstat (__NR_Linux + 6)
-#define __NR_poll (__NR_Linux + 7)
-#define __NR_lseek (__NR_Linux + 8)
-#define __NR_mmap (__NR_Linux + 9)
-#define __NR_mprotect (__NR_Linux + 10)
-#define __NR_munmap (__NR_Linux + 11)
-#define __NR_brk (__NR_Linux + 12)
-#define __NR_rt_sigaction (__NR_Linux + 13)
-#define __NR_rt_sigprocmask (__NR_Linux + 14)
-#define __NR_ioctl (__NR_Linux + 15)
-#define __NR_pread64 (__NR_Linux + 16)
-#define __NR_pwrite64 (__NR_Linux + 17)
-#define __NR_readv (__NR_Linux + 18)
-#define __NR_writev (__NR_Linux + 19)
-#define __NR_access (__NR_Linux + 20)
-#define __NR_pipe (__NR_Linux + 21)
-#define __NR__newselect (__NR_Linux + 22)
-#define __NR_sched_yield (__NR_Linux + 23)
-#define __NR_mremap (__NR_Linux + 24)
-#define __NR_msync (__NR_Linux + 25)
-#define __NR_mincore (__NR_Linux + 26)
-#define __NR_madvise (__NR_Linux + 27)
-#define __NR_shmget (__NR_Linux + 28)
-#define __NR_shmat (__NR_Linux + 29)
-#define __NR_shmctl (__NR_Linux + 30)
-#define __NR_dup (__NR_Linux + 31)
-#define __NR_dup2 (__NR_Linux + 32)
-#define __NR_pause (__NR_Linux + 33)
-#define __NR_nanosleep (__NR_Linux + 34)
-#define __NR_getitimer (__NR_Linux + 35)
-#define __NR_setitimer (__NR_Linux + 36)
-#define __NR_alarm (__NR_Linux + 37)
-#define __NR_getpid (__NR_Linux + 38)
-#define __NR_sendfile (__NR_Linux + 39)
-#define __NR_socket (__NR_Linux + 40)
-#define __NR_connect (__NR_Linux + 41)
-#define __NR_accept (__NR_Linux + 42)
-#define __NR_sendto (__NR_Linux + 43)
-#define __NR_recvfrom (__NR_Linux + 44)
-#define __NR_sendmsg (__NR_Linux + 45)
-#define __NR_recvmsg (__NR_Linux + 46)
-#define __NR_shutdown (__NR_Linux + 47)
-#define __NR_bind (__NR_Linux + 48)
-#define __NR_listen (__NR_Linux + 49)
-#define __NR_getsockname (__NR_Linux + 50)
-#define __NR_getpeername (__NR_Linux + 51)
-#define __NR_socketpair (__NR_Linux + 52)
-#define __NR_setsockopt (__NR_Linux + 53)
-#define __NR_getsockopt (__NR_Linux + 54)
-#define __NR_clone (__NR_Linux + 55)
-#define __NR_fork (__NR_Linux + 56)
-#define __NR_execve (__NR_Linux + 57)
-#define __NR_exit (__NR_Linux + 58)
-#define __NR_wait4 (__NR_Linux + 59)
-#define __NR_kill (__NR_Linux + 60)
-#define __NR_uname (__NR_Linux + 61)
-#define __NR_semget (__NR_Linux + 62)
-#define __NR_semop (__NR_Linux + 63)
-#define __NR_semctl (__NR_Linux + 64)
-#define __NR_shmdt (__NR_Linux + 65)
-#define __NR_msgget (__NR_Linux + 66)
-#define __NR_msgsnd (__NR_Linux + 67)
-#define __NR_msgrcv (__NR_Linux + 68)
-#define __NR_msgctl (__NR_Linux + 69)
-#define __NR_fcntl (__NR_Linux + 70)
-#define __NR_flock (__NR_Linux + 71)
-#define __NR_fsync (__NR_Linux + 72)
-#define __NR_fdatasync (__NR_Linux + 73)
-#define __NR_truncate (__NR_Linux + 74)
-#define __NR_ftruncate (__NR_Linux + 75)
-#define __NR_getdents (__NR_Linux + 76)
-#define __NR_getcwd (__NR_Linux + 77)
-#define __NR_chdir (__NR_Linux + 78)
-#define __NR_fchdir (__NR_Linux + 79)
-#define __NR_rename (__NR_Linux + 80)
-#define __NR_mkdir (__NR_Linux + 81)
-#define __NR_rmdir (__NR_Linux + 82)
-#define __NR_creat (__NR_Linux + 83)
-#define __NR_link (__NR_Linux + 84)
-#define __NR_unlink (__NR_Linux + 85)
-#define __NR_symlink (__NR_Linux + 86)
-#define __NR_readlink (__NR_Linux + 87)
-#define __NR_chmod (__NR_Linux + 88)
-#define __NR_fchmod (__NR_Linux + 89)
-#define __NR_chown (__NR_Linux + 90)
-#define __NR_fchown (__NR_Linux + 91)
-#define __NR_lchown (__NR_Linux + 92)
-#define __NR_umask (__NR_Linux + 93)
-#define __NR_gettimeofday (__NR_Linux + 94)
-#define __NR_getrlimit (__NR_Linux + 95)
-#define __NR_getrusage (__NR_Linux + 96)
-#define __NR_sysinfo (__NR_Linux + 97)
-#define __NR_times (__NR_Linux + 98)
-#define __NR_ptrace (__NR_Linux + 99)
-#define __NR_getuid (__NR_Linux + 100)
-#define __NR_syslog (__NR_Linux + 101)
-#define __NR_getgid (__NR_Linux + 102)
-#define __NR_setuid (__NR_Linux + 103)
-#define __NR_setgid (__NR_Linux + 104)
-#define __NR_geteuid (__NR_Linux + 105)
-#define __NR_getegid (__NR_Linux + 106)
-#define __NR_setpgid (__NR_Linux + 107)
-#define __NR_getppid (__NR_Linux + 108)
-#define __NR_getpgrp (__NR_Linux + 109)
-#define __NR_setsid (__NR_Linux + 110)
-#define __NR_setreuid (__NR_Linux + 111)
-#define __NR_setregid (__NR_Linux + 112)
-#define __NR_getgroups (__NR_Linux + 113)
-#define __NR_setgroups (__NR_Linux + 114)
-#define __NR_setresuid (__NR_Linux + 115)
-#define __NR_getresuid (__NR_Linux + 116)
-#define __NR_setresgid (__NR_Linux + 117)
-#define __NR_getresgid (__NR_Linux + 118)
-#define __NR_getpgid (__NR_Linux + 119)
-#define __NR_setfsuid (__NR_Linux + 120)
-#define __NR_setfsgid (__NR_Linux + 121)
-#define __NR_getsid (__NR_Linux + 122)
-#define __NR_capget (__NR_Linux + 123)
-#define __NR_capset (__NR_Linux + 124)
-#define __NR_rt_sigpending (__NR_Linux + 125)
-#define __NR_rt_sigtimedwait (__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 127)
-#define __NR_rt_sigsuspend (__NR_Linux + 128)
-#define __NR_sigaltstack (__NR_Linux + 129)
-#define __NR_utime (__NR_Linux + 130)
-#define __NR_mknod (__NR_Linux + 131)
-#define __NR_personality (__NR_Linux + 132)
-#define __NR_ustat (__NR_Linux + 133)
-#define __NR_statfs (__NR_Linux + 134)
-#define __NR_fstatfs (__NR_Linux + 135)
-#define __NR_sysfs (__NR_Linux + 136)
-#define __NR_getpriority (__NR_Linux + 137)
-#define __NR_setpriority (__NR_Linux + 138)
-#define __NR_sched_setparam (__NR_Linux + 139)
-#define __NR_sched_getparam (__NR_Linux + 140)
-#define __NR_sched_setscheduler (__NR_Linux + 141)
-#define __NR_sched_getscheduler (__NR_Linux + 142)
-#define __NR_sched_get_priority_max (__NR_Linux + 143)
-#define __NR_sched_get_priority_min (__NR_Linux + 144)
-#define __NR_sched_rr_get_interval (__NR_Linux + 145)
-#define __NR_mlock (__NR_Linux + 146)
-#define __NR_munlock (__NR_Linux + 147)
-#define __NR_mlockall (__NR_Linux + 148)
-#define __NR_munlockall (__NR_Linux + 149)
-#define __NR_vhangup (__NR_Linux + 150)
-#define __NR_pivot_root (__NR_Linux + 151)
-#define __NR__sysctl (__NR_Linux + 152)
-#define __NR_prctl (__NR_Linux + 153)
-#define __NR_adjtimex (__NR_Linux + 154)
-#define __NR_setrlimit (__NR_Linux + 155)
-#define __NR_chroot (__NR_Linux + 156)
-#define __NR_sync (__NR_Linux + 157)
-#define __NR_acct (__NR_Linux + 158)
-#define __NR_settimeofday (__NR_Linux + 159)
-#define __NR_mount (__NR_Linux + 160)
-#define __NR_umount2 (__NR_Linux + 161)
-#define __NR_swapon (__NR_Linux + 162)
-#define __NR_swapoff (__NR_Linux + 163)
-#define __NR_reboot (__NR_Linux + 164)
-#define __NR_sethostname (__NR_Linux + 165)
-#define __NR_setdomainname (__NR_Linux + 166)
-#define __NR_create_module (__NR_Linux + 167)
-#define __NR_init_module (__NR_Linux + 168)
-#define __NR_delete_module (__NR_Linux + 169)
-#define __NR_get_kernel_syms (__NR_Linux + 170)
-#define __NR_query_module (__NR_Linux + 171)
-#define __NR_quotactl (__NR_Linux + 172)
-#define __NR_nfsservctl (__NR_Linux + 173)
-#define __NR_getpmsg (__NR_Linux + 174)
-#define __NR_putpmsg (__NR_Linux + 175)
-#define __NR_afs_syscall (__NR_Linux + 176)
-#define __NR_reserved177 (__NR_Linux + 177)
-#define __NR_gettid (__NR_Linux + 178)
-#define __NR_readahead (__NR_Linux + 179)
-#define __NR_setxattr (__NR_Linux + 180)
-#define __NR_lsetxattr (__NR_Linux + 181)
-#define __NR_fsetxattr (__NR_Linux + 182)
-#define __NR_getxattr (__NR_Linux + 183)
-#define __NR_lgetxattr (__NR_Linux + 184)
-#define __NR_fgetxattr (__NR_Linux + 185)
-#define __NR_listxattr (__NR_Linux + 186)
-#define __NR_llistxattr (__NR_Linux + 187)
-#define __NR_flistxattr (__NR_Linux + 188)
-#define __NR_removexattr (__NR_Linux + 189)
-#define __NR_lremovexattr (__NR_Linux + 190)
-#define __NR_fremovexattr (__NR_Linux + 191)
-#define __NR_tkill (__NR_Linux + 192)
-#define __NR_reserved193 (__NR_Linux + 193)
-#define __NR_futex (__NR_Linux + 194)
-#define __NR_sched_setaffinity (__NR_Linux + 195)
-#define __NR_sched_getaffinity (__NR_Linux + 196)
-#define __NR_cacheflush (__NR_Linux + 197)
-#define __NR_cachectl (__NR_Linux + 198)
-#define __NR_sysmips (__NR_Linux + 199)
-#define __NR_io_setup (__NR_Linux + 200)
-#define __NR_io_destroy (__NR_Linux + 201)
-#define __NR_io_getevents (__NR_Linux + 202)
-#define __NR_io_submit (__NR_Linux + 203)
-#define __NR_io_cancel (__NR_Linux + 204)
-#define __NR_exit_group (__NR_Linux + 205)
-#define __NR_lookup_dcookie (__NR_Linux + 206)
-#define __NR_epoll_create (__NR_Linux + 207)
-#define __NR_epoll_ctl (__NR_Linux + 208)
-#define __NR_epoll_wait (__NR_Linux + 209)
-#define __NR_remap_file_pages (__NR_Linux + 210)
-#define __NR_rt_sigreturn (__NR_Linux + 211)
-#define __NR_fcntl64 (__NR_Linux + 212)
-#define __NR_set_tid_address (__NR_Linux + 213)
-#define __NR_restart_syscall (__NR_Linux + 214)
-#define __NR_semtimedop (__NR_Linux + 215)
-#define __NR_fadvise64 (__NR_Linux + 216)
-#define __NR_statfs64 (__NR_Linux + 217)
-#define __NR_fstatfs64 (__NR_Linux + 218)
-#define __NR_sendfile64 (__NR_Linux + 219)
-#define __NR_timer_create (__NR_Linux + 220)
-#define __NR_timer_settime (__NR_Linux + 221)
-#define __NR_timer_gettime (__NR_Linux + 222)
-#define __NR_timer_getoverrun (__NR_Linux + 223)
-#define __NR_timer_delete (__NR_Linux + 224)
-#define __NR_clock_settime (__NR_Linux + 225)
-#define __NR_clock_gettime (__NR_Linux + 226)
-#define __NR_clock_getres (__NR_Linux + 227)
-#define __NR_clock_nanosleep (__NR_Linux + 228)
-#define __NR_tgkill (__NR_Linux + 229)
-#define __NR_utimes (__NR_Linux + 230)
-#define __NR_mbind (__NR_Linux + 231)
-#define __NR_get_mempolicy (__NR_Linux + 232)
-#define __NR_set_mempolicy (__NR_Linux + 233)
-#define __NR_mq_open (__NR_Linux + 234)
-#define __NR_mq_unlink (__NR_Linux + 235)
-#define __NR_mq_timedsend (__NR_Linux + 236)
-#define __NR_mq_timedreceive (__NR_Linux + 237)
-#define __NR_mq_notify (__NR_Linux + 238)
-#define __NR_mq_getsetattr (__NR_Linux + 239)
-#define __NR_vserver (__NR_Linux + 240)
-#define __NR_waitid (__NR_Linux + 241)
-/* #define __NR_sys_setaltroot (__NR_Linux + 242) */
-#define __NR_add_key (__NR_Linux + 243)
-#define __NR_request_key (__NR_Linux + 244)
-#define __NR_keyctl (__NR_Linux + 245)
-#define __NR_set_thread_area (__NR_Linux + 246)
-#define __NR_inotify_init (__NR_Linux + 247)
-#define __NR_inotify_add_watch (__NR_Linux + 248)
-#define __NR_inotify_rm_watch (__NR_Linux + 249)
-#define __NR_migrate_pages (__NR_Linux + 250)
-#define __NR_openat (__NR_Linux + 251)
-#define __NR_mkdirat (__NR_Linux + 252)
-#define __NR_mknodat (__NR_Linux + 253)
-#define __NR_fchownat (__NR_Linux + 254)
-#define __NR_futimesat (__NR_Linux + 255)
-#define __NR_newfstatat (__NR_Linux + 256)
-#define __NR_unlinkat (__NR_Linux + 257)
-#define __NR_renameat (__NR_Linux + 258)
-#define __NR_linkat (__NR_Linux + 259)
-#define __NR_symlinkat (__NR_Linux + 260)
-#define __NR_readlinkat (__NR_Linux + 261)
-#define __NR_fchmodat (__NR_Linux + 262)
-#define __NR_faccessat (__NR_Linux + 263)
-#define __NR_pselect6 (__NR_Linux + 264)
-#define __NR_ppoll (__NR_Linux + 265)
-#define __NR_unshare (__NR_Linux + 266)
-#define __NR_splice (__NR_Linux + 267)
-#define __NR_sync_file_range (__NR_Linux + 268)
-#define __NR_tee (__NR_Linux + 269)
-#define __NR_vmsplice (__NR_Linux + 270)
-#define __NR_move_pages (__NR_Linux + 271)
-#define __NR_set_robust_list (__NR_Linux + 272)
-#define __NR_get_robust_list (__NR_Linux + 273)
-#define __NR_kexec_load (__NR_Linux + 274)
-#define __NR_getcpu (__NR_Linux + 275)
-#define __NR_epoll_pwait (__NR_Linux + 276)
-#define __NR_ioprio_set (__NR_Linux + 277)
-#define __NR_ioprio_get (__NR_Linux + 278)
-#define __NR_utimensat (__NR_Linux + 279)
-#define __NR_signalfd (__NR_Linux + 280)
-#define __NR_timerfd (__NR_Linux + 281)
-#define __NR_eventfd (__NR_Linux + 282)
-#define __NR_fallocate (__NR_Linux + 283)
-#define __NR_timerfd_create (__NR_Linux + 284)
-#define __NR_timerfd_gettime (__NR_Linux + 285)
-#define __NR_timerfd_settime (__NR_Linux + 286)
-#define __NR_signalfd4 (__NR_Linux + 287)
-#define __NR_eventfd2 (__NR_Linux + 288)
-#define __NR_epoll_create1 (__NR_Linux + 289)
-#define __NR_dup3 (__NR_Linux + 290)
-#define __NR_pipe2 (__NR_Linux + 291)
-#define __NR_inotify_init1 (__NR_Linux + 292)
-#define __NR_preadv (__NR_Linux + 293)
-#define __NR_pwritev (__NR_Linux + 294)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 295)
-#define __NR_perf_event_open (__NR_Linux + 296)
-#define __NR_accept4 (__NR_Linux + 297)
-#define __NR_recvmmsg (__NR_Linux + 298)
-#define __NR_getdents64 (__NR_Linux + 299)
-#define __NR_fanotify_init (__NR_Linux + 300)
-#define __NR_fanotify_mark (__NR_Linux + 301)
-#define __NR_prlimit64 (__NR_Linux + 302)
-#define __NR_name_to_handle_at (__NR_Linux + 303)
-#define __NR_open_by_handle_at (__NR_Linux + 304)
-#define __NR_clock_adjtime (__NR_Linux + 305)
-#define __NR_syncfs (__NR_Linux + 306)
-#define __NR_sendmmsg (__NR_Linux + 307)
-#define __NR_setns (__NR_Linux + 308)
-#define __NR_process_vm_readv (__NR_Linux + 309)
-#define __NR_process_vm_writev (__NR_Linux + 310)
-#define __NR_kcmp (__NR_Linux + 311)
-#define __NR_finit_module (__NR_Linux + 312)
-#define __NR_sched_setattr (__NR_Linux + 313)
-#define __NR_sched_getattr (__NR_Linux + 314)
-#define __NR_renameat2 (__NR_Linux + 315)
-#define __NR_seccomp (__NR_Linux + 316)
-#define __NR_getrandom (__NR_Linux + 317)
-#define __NR_memfd_create (__NR_Linux + 318)
-#define __NR_bpf (__NR_Linux + 319)
-#define __NR_execveat (__NR_Linux + 320)
-#define __NR_userfaultfd (__NR_Linux + 321)
-#define __NR_membarrier (__NR_Linux + 322)
-#define __NR_mlock2 (__NR_Linux + 323)
-#define __NR_copy_file_range (__NR_Linux + 324)
-#define __NR_preadv2 (__NR_Linux + 325)
-#define __NR_pwritev2 (__NR_Linux + 326)
-#define __NR_pkey_mprotect (__NR_Linux + 327)
-#define __NR_pkey_alloc (__NR_Linux + 328)
-#define __NR_pkey_free (__NR_Linux + 329)
-#define __NR_statx (__NR_Linux + 330)
-#define __NR_rseq (__NR_Linux + 331)
-#define __NR_io_pgetevents (__NR_Linux + 332)
-
-/*
- * Offset of the last N32 flavoured syscall
- */
-#define __NR_Linux_syscalls 332
-
-#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
-
-#define __NR_N32_Linux 6000
-#define __NR_N32_Linux_syscalls 332
-
-#endif /* _UAPI_ASM_UNISTD_H */
diff --git a/libc/include/mips64-linux-gnuabin32/asm/sgidefs.h b/libc/include/mips64-linux-gnuabin32/asm/sgidefs.h
deleted file mode 100644
index 26143e3b7c..0000000000
--- a/libc/include/mips64-linux-gnuabin32/asm/sgidefs.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1996, 1999, 2001 Ralf Baechle
- * Copyright (C) 1999 Silicon Graphics, Inc.
- * Copyright (C) 2001 MIPS Technologies, Inc.
- */
-#ifndef __ASM_SGIDEFS_H
-#define __ASM_SGIDEFS_H
-
-/*
- * Using a Linux compiler for building Linux seems logic but not to
- * everybody.
- */
-#ifndef __linux__
-#error Use a Linux compiler or give up.
-#endif
-
-/*
- * Definitions for the ISA levels
- *
- * With the introduction of MIPS32 / MIPS64 instruction sets definitions
- * MIPS ISAs are no longer subsets of each other. Therefore comparisons
- * on these symbols except with == may result in unexpected results and
- * are forbidden!
- */
-#define _MIPS_ISA_MIPS1 1
-#define _MIPS_ISA_MIPS2 2
-#define _MIPS_ISA_MIPS3 3
-#define _MIPS_ISA_MIPS4 4
-#define _MIPS_ISA_MIPS5 5
-#define _MIPS_ISA_MIPS32 6
-#define _MIPS_ISA_MIPS64 7
-
-/*
- * Subprogram calling convention
- */
-#define _MIPS_SIM_ABI32 1
-#define _MIPS_SIM_NABI32 2
-#define _MIPS_SIM_ABI64 3
-
-#endif /* __ASM_SGIDEFS_H */
diff --git a/libc/include/mips64-linux-gnuabin32/asm/unistd.h b/libc/include/mips64-linux-gnuabin32/asm/unistd.h
deleted file mode 100644
index f25dd1d83f..0000000000
--- a/libc/include/mips64-linux-gnuabin32/asm/unistd.h
+++ /dev/null
@@ -1,1101 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle
- * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
- *
- * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto
- * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A
- */
-#ifndef _UAPI_ASM_UNISTD_H
-#define _UAPI_ASM_UNISTD_H
-
-#include
-
-#if _MIPS_SIM == _MIPS_SIM_ABI32
-
-/*
- * Linux o32 style syscalls are in the range from 4000 to 4999.
- */
-#define __NR_Linux 4000
-#define __NR_syscall (__NR_Linux + 0)
-#define __NR_exit (__NR_Linux + 1)
-#define __NR_fork (__NR_Linux + 2)
-#define __NR_read (__NR_Linux + 3)
-#define __NR_write (__NR_Linux + 4)
-#define __NR_open (__NR_Linux + 5)
-#define __NR_close (__NR_Linux + 6)
-#define __NR_waitpid (__NR_Linux + 7)
-#define __NR_creat (__NR_Linux + 8)
-#define __NR_link (__NR_Linux + 9)
-#define __NR_unlink (__NR_Linux + 10)
-#define __NR_execve (__NR_Linux + 11)
-#define __NR_chdir (__NR_Linux + 12)
-#define __NR_time (__NR_Linux + 13)
-#define __NR_mknod (__NR_Linux + 14)
-#define __NR_chmod (__NR_Linux + 15)
-#define __NR_lchown (__NR_Linux + 16)
-#define __NR_break (__NR_Linux + 17)
-#define __NR_unused18 (__NR_Linux + 18)
-#define __NR_lseek (__NR_Linux + 19)
-#define __NR_getpid (__NR_Linux + 20)
-#define __NR_mount (__NR_Linux + 21)
-#define __NR_umount (__NR_Linux + 22)
-#define __NR_setuid (__NR_Linux + 23)
-#define __NR_getuid (__NR_Linux + 24)
-#define __NR_stime (__NR_Linux + 25)
-#define __NR_ptrace (__NR_Linux + 26)
-#define __NR_alarm (__NR_Linux + 27)
-#define __NR_unused28 (__NR_Linux + 28)
-#define __NR_pause (__NR_Linux + 29)
-#define __NR_utime (__NR_Linux + 30)
-#define __NR_stty (__NR_Linux + 31)
-#define __NR_gtty (__NR_Linux + 32)
-#define __NR_access (__NR_Linux + 33)
-#define __NR_nice (__NR_Linux + 34)
-#define __NR_ftime (__NR_Linux + 35)
-#define __NR_sync (__NR_Linux + 36)
-#define __NR_kill (__NR_Linux + 37)
-#define __NR_rename (__NR_Linux + 38)
-#define __NR_mkdir (__NR_Linux + 39)
-#define __NR_rmdir (__NR_Linux + 40)
-#define __NR_dup (__NR_Linux + 41)
-#define __NR_pipe (__NR_Linux + 42)
-#define __NR_times (__NR_Linux + 43)
-#define __NR_prof (__NR_Linux + 44)
-#define __NR_brk (__NR_Linux + 45)
-#define __NR_setgid (__NR_Linux + 46)
-#define __NR_getgid (__NR_Linux + 47)
-#define __NR_signal (__NR_Linux + 48)
-#define __NR_geteuid (__NR_Linux + 49)
-#define __NR_getegid (__NR_Linux + 50)
-#define __NR_acct (__NR_Linux + 51)
-#define __NR_umount2 (__NR_Linux + 52)
-#define __NR_lock (__NR_Linux + 53)
-#define __NR_ioctl (__NR_Linux + 54)
-#define __NR_fcntl (__NR_Linux + 55)
-#define __NR_mpx (__NR_Linux + 56)
-#define __NR_setpgid (__NR_Linux + 57)
-#define __NR_ulimit (__NR_Linux + 58)
-#define __NR_unused59 (__NR_Linux + 59)
-#define __NR_umask (__NR_Linux + 60)
-#define __NR_chroot (__NR_Linux + 61)
-#define __NR_ustat (__NR_Linux + 62)
-#define __NR_dup2 (__NR_Linux + 63)
-#define __NR_getppid (__NR_Linux + 64)
-#define __NR_getpgrp (__NR_Linux + 65)
-#define __NR_setsid (__NR_Linux + 66)
-#define __NR_sigaction (__NR_Linux + 67)
-#define __NR_sgetmask (__NR_Linux + 68)
-#define __NR_ssetmask (__NR_Linux + 69)
-#define __NR_setreuid (__NR_Linux + 70)
-#define __NR_setregid (__NR_Linux + 71)
-#define __NR_sigsuspend (__NR_Linux + 72)
-#define __NR_sigpending (__NR_Linux + 73)
-#define __NR_sethostname (__NR_Linux + 74)
-#define __NR_setrlimit (__NR_Linux + 75)
-#define __NR_getrlimit (__NR_Linux + 76)
-#define __NR_getrusage (__NR_Linux + 77)
-#define __NR_gettimeofday (__NR_Linux + 78)
-#define __NR_settimeofday (__NR_Linux + 79)
-#define __NR_getgroups (__NR_Linux + 80)
-#define __NR_setgroups (__NR_Linux + 81)
-#define __NR_reserved82 (__NR_Linux + 82)
-#define __NR_symlink (__NR_Linux + 83)
-#define __NR_unused84 (__NR_Linux + 84)
-#define __NR_readlink (__NR_Linux + 85)
-#define __NR_uselib (__NR_Linux + 86)
-#define __NR_swapon (__NR_Linux + 87)
-#define __NR_reboot (__NR_Linux + 88)
-#define __NR_readdir (__NR_Linux + 89)
-#define __NR_mmap (__NR_Linux + 90)
-#define __NR_munmap (__NR_Linux + 91)
-#define __NR_truncate (__NR_Linux + 92)
-#define __NR_ftruncate (__NR_Linux + 93)
-#define __NR_fchmod (__NR_Linux + 94)
-#define __NR_fchown (__NR_Linux + 95)
-#define __NR_getpriority (__NR_Linux + 96)
-#define __NR_setpriority (__NR_Linux + 97)
-#define __NR_profil (__NR_Linux + 98)
-#define __NR_statfs (__NR_Linux + 99)
-#define __NR_fstatfs (__NR_Linux + 100)
-#define __NR_ioperm (__NR_Linux + 101)
-#define __NR_socketcall (__NR_Linux + 102)
-#define __NR_syslog (__NR_Linux + 103)
-#define __NR_setitimer (__NR_Linux + 104)
-#define __NR_getitimer (__NR_Linux + 105)
-#define __NR_stat (__NR_Linux + 106)
-#define __NR_lstat (__NR_Linux + 107)
-#define __NR_fstat (__NR_Linux + 108)
-#define __NR_unused109 (__NR_Linux + 109)
-#define __NR_iopl (__NR_Linux + 110)
-#define __NR_vhangup (__NR_Linux + 111)
-#define __NR_idle (__NR_Linux + 112)
-#define __NR_vm86 (__NR_Linux + 113)
-#define __NR_wait4 (__NR_Linux + 114)
-#define __NR_swapoff (__NR_Linux + 115)
-#define __NR_sysinfo (__NR_Linux + 116)
-#define __NR_ipc (__NR_Linux + 117)
-#define __NR_fsync (__NR_Linux + 118)
-#define __NR_sigreturn (__NR_Linux + 119)
-#define __NR_clone (__NR_Linux + 120)
-#define __NR_setdomainname (__NR_Linux + 121)
-#define __NR_uname (__NR_Linux + 122)
-#define __NR_modify_ldt (__NR_Linux + 123)
-#define __NR_adjtimex (__NR_Linux + 124)
-#define __NR_mprotect (__NR_Linux + 125)
-#define __NR_sigprocmask (__NR_Linux + 126)
-#define __NR_create_module (__NR_Linux + 127)
-#define __NR_init_module (__NR_Linux + 128)
-#define __NR_delete_module (__NR_Linux + 129)
-#define __NR_get_kernel_syms (__NR_Linux + 130)
-#define __NR_quotactl (__NR_Linux + 131)
-#define __NR_getpgid (__NR_Linux + 132)
-#define __NR_fchdir (__NR_Linux + 133)
-#define __NR_bdflush (__NR_Linux + 134)
-#define __NR_sysfs (__NR_Linux + 135)
-#define __NR_personality (__NR_Linux + 136)
-#define __NR_afs_syscall (__NR_Linux + 137) /* Syscall for Andrew File System */
-#define __NR_setfsuid (__NR_Linux + 138)
-#define __NR_setfsgid (__NR_Linux + 139)
-#define __NR__llseek (__NR_Linux + 140)
-#define __NR_getdents (__NR_Linux + 141)
-#define __NR__newselect (__NR_Linux + 142)
-#define __NR_flock (__NR_Linux + 143)
-#define __NR_msync (__NR_Linux + 144)
-#define __NR_readv (__NR_Linux + 145)
-#define __NR_writev (__NR_Linux + 146)
-#define __NR_cacheflush (__NR_Linux + 147)
-#define __NR_cachectl (__NR_Linux + 148)
-#define __NR_sysmips (__NR_Linux + 149)
-#define __NR_unused150 (__NR_Linux + 150)
-#define __NR_getsid (__NR_Linux + 151)
-#define __NR_fdatasync (__NR_Linux + 152)
-#define __NR__sysctl (__NR_Linux + 153)
-#define __NR_mlock (__NR_Linux + 154)
-#define __NR_munlock (__NR_Linux + 155)
-#define __NR_mlockall (__NR_Linux + 156)
-#define __NR_munlockall (__NR_Linux + 157)
-#define __NR_sched_setparam (__NR_Linux + 158)
-#define __NR_sched_getparam (__NR_Linux + 159)
-#define __NR_sched_setscheduler (__NR_Linux + 160)
-#define __NR_sched_getscheduler (__NR_Linux + 161)
-#define __NR_sched_yield (__NR_Linux + 162)
-#define __NR_sched_get_priority_max (__NR_Linux + 163)
-#define __NR_sched_get_priority_min (__NR_Linux + 164)
-#define __NR_sched_rr_get_interval (__NR_Linux + 165)
-#define __NR_nanosleep (__NR_Linux + 166)
-#define __NR_mremap (__NR_Linux + 167)
-#define __NR_accept (__NR_Linux + 168)
-#define __NR_bind (__NR_Linux + 169)
-#define __NR_connect (__NR_Linux + 170)
-#define __NR_getpeername (__NR_Linux + 171)
-#define __NR_getsockname (__NR_Linux + 172)
-#define __NR_getsockopt (__NR_Linux + 173)
-#define __NR_listen (__NR_Linux + 174)
-#define __NR_recv (__NR_Linux + 175)
-#define __NR_recvfrom (__NR_Linux + 176)
-#define __NR_recvmsg (__NR_Linux + 177)
-#define __NR_send (__NR_Linux + 178)
-#define __NR_sendmsg (__NR_Linux + 179)
-#define __NR_sendto (__NR_Linux + 180)
-#define __NR_setsockopt (__NR_Linux + 181)
-#define __NR_shutdown (__NR_Linux + 182)
-#define __NR_socket (__NR_Linux + 183)
-#define __NR_socketpair (__NR_Linux + 184)
-#define __NR_setresuid (__NR_Linux + 185)
-#define __NR_getresuid (__NR_Linux + 186)
-#define __NR_query_module (__NR_Linux + 187)
-#define __NR_poll (__NR_Linux + 188)
-#define __NR_nfsservctl (__NR_Linux + 189)
-#define __NR_setresgid (__NR_Linux + 190)
-#define __NR_getresgid (__NR_Linux + 191)
-#define __NR_prctl (__NR_Linux + 192)
-#define __NR_rt_sigreturn (__NR_Linux + 193)
-#define __NR_rt_sigaction (__NR_Linux + 194)
-#define __NR_rt_sigprocmask (__NR_Linux + 195)
-#define __NR_rt_sigpending (__NR_Linux + 196)
-#define __NR_rt_sigtimedwait (__NR_Linux + 197)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 198)
-#define __NR_rt_sigsuspend (__NR_Linux + 199)
-#define __NR_pread64 (__NR_Linux + 200)
-#define __NR_pwrite64 (__NR_Linux + 201)
-#define __NR_chown (__NR_Linux + 202)
-#define __NR_getcwd (__NR_Linux + 203)
-#define __NR_capget (__NR_Linux + 204)
-#define __NR_capset (__NR_Linux + 205)
-#define __NR_sigaltstack (__NR_Linux + 206)
-#define __NR_sendfile (__NR_Linux + 207)
-#define __NR_getpmsg (__NR_Linux + 208)
-#define __NR_putpmsg (__NR_Linux + 209)
-#define __NR_mmap2 (__NR_Linux + 210)
-#define __NR_truncate64 (__NR_Linux + 211)
-#define __NR_ftruncate64 (__NR_Linux + 212)
-#define __NR_stat64 (__NR_Linux + 213)
-#define __NR_lstat64 (__NR_Linux + 214)
-#define __NR_fstat64 (__NR_Linux + 215)
-#define __NR_pivot_root (__NR_Linux + 216)
-#define __NR_mincore (__NR_Linux + 217)
-#define __NR_madvise (__NR_Linux + 218)
-#define __NR_getdents64 (__NR_Linux + 219)
-#define __NR_fcntl64 (__NR_Linux + 220)
-#define __NR_reserved221 (__NR_Linux + 221)
-#define __NR_gettid (__NR_Linux + 222)
-#define __NR_readahead (__NR_Linux + 223)
-#define __NR_setxattr (__NR_Linux + 224)
-#define __NR_lsetxattr (__NR_Linux + 225)
-#define __NR_fsetxattr (__NR_Linux + 226)
-#define __NR_getxattr (__NR_Linux + 227)
-#define __NR_lgetxattr (__NR_Linux + 228)
-#define __NR_fgetxattr (__NR_Linux + 229)
-#define __NR_listxattr (__NR_Linux + 230)
-#define __NR_llistxattr (__NR_Linux + 231)
-#define __NR_flistxattr (__NR_Linux + 232)
-#define __NR_removexattr (__NR_Linux + 233)
-#define __NR_lremovexattr (__NR_Linux + 234)
-#define __NR_fremovexattr (__NR_Linux + 235)
-#define __NR_tkill (__NR_Linux + 236)
-#define __NR_sendfile64 (__NR_Linux + 237)
-#define __NR_futex (__NR_Linux + 238)
-#define __NR_sched_setaffinity (__NR_Linux + 239)
-#define __NR_sched_getaffinity (__NR_Linux + 240)
-#define __NR_io_setup (__NR_Linux + 241)
-#define __NR_io_destroy (__NR_Linux + 242)
-#define __NR_io_getevents (__NR_Linux + 243)
-#define __NR_io_submit (__NR_Linux + 244)
-#define __NR_io_cancel (__NR_Linux + 245)
-#define __NR_exit_group (__NR_Linux + 246)
-#define __NR_lookup_dcookie (__NR_Linux + 247)
-#define __NR_epoll_create (__NR_Linux + 248)
-#define __NR_epoll_ctl (__NR_Linux + 249)
-#define __NR_epoll_wait (__NR_Linux + 250)
-#define __NR_remap_file_pages (__NR_Linux + 251)
-#define __NR_set_tid_address (__NR_Linux + 252)
-#define __NR_restart_syscall (__NR_Linux + 253)
-#define __NR_fadvise64 (__NR_Linux + 254)
-#define __NR_statfs64 (__NR_Linux + 255)
-#define __NR_fstatfs64 (__NR_Linux + 256)
-#define __NR_timer_create (__NR_Linux + 257)
-#define __NR_timer_settime (__NR_Linux + 258)
-#define __NR_timer_gettime (__NR_Linux + 259)
-#define __NR_timer_getoverrun (__NR_Linux + 260)
-#define __NR_timer_delete (__NR_Linux + 261)
-#define __NR_clock_settime (__NR_Linux + 262)
-#define __NR_clock_gettime (__NR_Linux + 263)
-#define __NR_clock_getres (__NR_Linux + 264)
-#define __NR_clock_nanosleep (__NR_Linux + 265)
-#define __NR_tgkill (__NR_Linux + 266)
-#define __NR_utimes (__NR_Linux + 267)
-#define __NR_mbind (__NR_Linux + 268)
-#define __NR_get_mempolicy (__NR_Linux + 269)
-#define __NR_set_mempolicy (__NR_Linux + 270)
-#define __NR_mq_open (__NR_Linux + 271)
-#define __NR_mq_unlink (__NR_Linux + 272)
-#define __NR_mq_timedsend (__NR_Linux + 273)
-#define __NR_mq_timedreceive (__NR_Linux + 274)
-#define __NR_mq_notify (__NR_Linux + 275)
-#define __NR_mq_getsetattr (__NR_Linux + 276)
-#define __NR_vserver (__NR_Linux + 277)
-#define __NR_waitid (__NR_Linux + 278)
-/* #define __NR_sys_setaltroot (__NR_Linux + 279) */
-#define __NR_add_key (__NR_Linux + 280)
-#define __NR_request_key (__NR_Linux + 281)
-#define __NR_keyctl (__NR_Linux + 282)
-#define __NR_set_thread_area (__NR_Linux + 283)
-#define __NR_inotify_init (__NR_Linux + 284)
-#define __NR_inotify_add_watch (__NR_Linux + 285)
-#define __NR_inotify_rm_watch (__NR_Linux + 286)
-#define __NR_migrate_pages (__NR_Linux + 287)
-#define __NR_openat (__NR_Linux + 288)
-#define __NR_mkdirat (__NR_Linux + 289)
-#define __NR_mknodat (__NR_Linux + 290)
-#define __NR_fchownat (__NR_Linux + 291)
-#define __NR_futimesat (__NR_Linux + 292)
-#define __NR_fstatat64 (__NR_Linux + 293)
-#define __NR_unlinkat (__NR_Linux + 294)
-#define __NR_renameat (__NR_Linux + 295)
-#define __NR_linkat (__NR_Linux + 296)
-#define __NR_symlinkat (__NR_Linux + 297)
-#define __NR_readlinkat (__NR_Linux + 298)
-#define __NR_fchmodat (__NR_Linux + 299)
-#define __NR_faccessat (__NR_Linux + 300)
-#define __NR_pselect6 (__NR_Linux + 301)
-#define __NR_ppoll (__NR_Linux + 302)
-#define __NR_unshare (__NR_Linux + 303)
-#define __NR_splice (__NR_Linux + 304)
-#define __NR_sync_file_range (__NR_Linux + 305)
-#define __NR_tee (__NR_Linux + 306)
-#define __NR_vmsplice (__NR_Linux + 307)
-#define __NR_move_pages (__NR_Linux + 308)
-#define __NR_set_robust_list (__NR_Linux + 309)
-#define __NR_get_robust_list (__NR_Linux + 310)
-#define __NR_kexec_load (__NR_Linux + 311)
-#define __NR_getcpu (__NR_Linux + 312)
-#define __NR_epoll_pwait (__NR_Linux + 313)
-#define __NR_ioprio_set (__NR_Linux + 314)
-#define __NR_ioprio_get (__NR_Linux + 315)
-#define __NR_utimensat (__NR_Linux + 316)
-#define __NR_signalfd (__NR_Linux + 317)
-#define __NR_timerfd (__NR_Linux + 318)
-#define __NR_eventfd (__NR_Linux + 319)
-#define __NR_fallocate (__NR_Linux + 320)
-#define __NR_timerfd_create (__NR_Linux + 321)
-#define __NR_timerfd_gettime (__NR_Linux + 322)
-#define __NR_timerfd_settime (__NR_Linux + 323)
-#define __NR_signalfd4 (__NR_Linux + 324)
-#define __NR_eventfd2 (__NR_Linux + 325)
-#define __NR_epoll_create1 (__NR_Linux + 326)
-#define __NR_dup3 (__NR_Linux + 327)
-#define __NR_pipe2 (__NR_Linux + 328)
-#define __NR_inotify_init1 (__NR_Linux + 329)
-#define __NR_preadv (__NR_Linux + 330)
-#define __NR_pwritev (__NR_Linux + 331)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 332)
-#define __NR_perf_event_open (__NR_Linux + 333)
-#define __NR_accept4 (__NR_Linux + 334)
-#define __NR_recvmmsg (__NR_Linux + 335)
-#define __NR_fanotify_init (__NR_Linux + 336)
-#define __NR_fanotify_mark (__NR_Linux + 337)
-#define __NR_prlimit64 (__NR_Linux + 338)
-#define __NR_name_to_handle_at (__NR_Linux + 339)
-#define __NR_open_by_handle_at (__NR_Linux + 340)
-#define __NR_clock_adjtime (__NR_Linux + 341)
-#define __NR_syncfs (__NR_Linux + 342)
-#define __NR_sendmmsg (__NR_Linux + 343)
-#define __NR_setns (__NR_Linux + 344)
-#define __NR_process_vm_readv (__NR_Linux + 345)
-#define __NR_process_vm_writev (__NR_Linux + 346)
-#define __NR_kcmp (__NR_Linux + 347)
-#define __NR_finit_module (__NR_Linux + 348)
-#define __NR_sched_setattr (__NR_Linux + 349)
-#define __NR_sched_getattr (__NR_Linux + 350)
-#define __NR_renameat2 (__NR_Linux + 351)
-#define __NR_seccomp (__NR_Linux + 352)
-#define __NR_getrandom (__NR_Linux + 353)
-#define __NR_memfd_create (__NR_Linux + 354)
-#define __NR_bpf (__NR_Linux + 355)
-#define __NR_execveat (__NR_Linux + 356)
-#define __NR_userfaultfd (__NR_Linux + 357)
-#define __NR_membarrier (__NR_Linux + 358)
-#define __NR_mlock2 (__NR_Linux + 359)
-#define __NR_copy_file_range (__NR_Linux + 360)
-#define __NR_preadv2 (__NR_Linux + 361)
-#define __NR_pwritev2 (__NR_Linux + 362)
-#define __NR_pkey_mprotect (__NR_Linux + 363)
-#define __NR_pkey_alloc (__NR_Linux + 364)
-#define __NR_pkey_free (__NR_Linux + 365)
-#define __NR_statx (__NR_Linux + 366)
-#define __NR_rseq (__NR_Linux + 367)
-#define __NR_io_pgetevents (__NR_Linux + 368)
-
-
-/*
- * Offset of the last Linux o32 flavoured syscall
- */
-#define __NR_Linux_syscalls 368
-
-#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
-
-#define __NR_O32_Linux 4000
-#define __NR_O32_Linux_syscalls 368
-
-#if _MIPS_SIM == _MIPS_SIM_ABI64
-
-/*
- * Linux 64-bit syscalls are in the range from 5000 to 5999.
- */
-#define __NR_Linux 5000
-#define __NR_read (__NR_Linux + 0)
-#define __NR_write (__NR_Linux + 1)
-#define __NR_open (__NR_Linux + 2)
-#define __NR_close (__NR_Linux + 3)
-#define __NR_stat (__NR_Linux + 4)
-#define __NR_fstat (__NR_Linux + 5)
-#define __NR_lstat (__NR_Linux + 6)
-#define __NR_poll (__NR_Linux + 7)
-#define __NR_lseek (__NR_Linux + 8)
-#define __NR_mmap (__NR_Linux + 9)
-#define __NR_mprotect (__NR_Linux + 10)
-#define __NR_munmap (__NR_Linux + 11)
-#define __NR_brk (__NR_Linux + 12)
-#define __NR_rt_sigaction (__NR_Linux + 13)
-#define __NR_rt_sigprocmask (__NR_Linux + 14)
-#define __NR_ioctl (__NR_Linux + 15)
-#define __NR_pread64 (__NR_Linux + 16)
-#define __NR_pwrite64 (__NR_Linux + 17)
-#define __NR_readv (__NR_Linux + 18)
-#define __NR_writev (__NR_Linux + 19)
-#define __NR_access (__NR_Linux + 20)
-#define __NR_pipe (__NR_Linux + 21)
-#define __NR__newselect (__NR_Linux + 22)
-#define __NR_sched_yield (__NR_Linux + 23)
-#define __NR_mremap (__NR_Linux + 24)
-#define __NR_msync (__NR_Linux + 25)
-#define __NR_mincore (__NR_Linux + 26)
-#define __NR_madvise (__NR_Linux + 27)
-#define __NR_shmget (__NR_Linux + 28)
-#define __NR_shmat (__NR_Linux + 29)
-#define __NR_shmctl (__NR_Linux + 30)
-#define __NR_dup (__NR_Linux + 31)
-#define __NR_dup2 (__NR_Linux + 32)
-#define __NR_pause (__NR_Linux + 33)
-#define __NR_nanosleep (__NR_Linux + 34)
-#define __NR_getitimer (__NR_Linux + 35)
-#define __NR_setitimer (__NR_Linux + 36)
-#define __NR_alarm (__NR_Linux + 37)
-#define __NR_getpid (__NR_Linux + 38)
-#define __NR_sendfile (__NR_Linux + 39)
-#define __NR_socket (__NR_Linux + 40)
-#define __NR_connect (__NR_Linux + 41)
-#define __NR_accept (__NR_Linux + 42)
-#define __NR_sendto (__NR_Linux + 43)
-#define __NR_recvfrom (__NR_Linux + 44)
-#define __NR_sendmsg (__NR_Linux + 45)
-#define __NR_recvmsg (__NR_Linux + 46)
-#define __NR_shutdown (__NR_Linux + 47)
-#define __NR_bind (__NR_Linux + 48)
-#define __NR_listen (__NR_Linux + 49)
-#define __NR_getsockname (__NR_Linux + 50)
-#define __NR_getpeername (__NR_Linux + 51)
-#define __NR_socketpair (__NR_Linux + 52)
-#define __NR_setsockopt (__NR_Linux + 53)
-#define __NR_getsockopt (__NR_Linux + 54)
-#define __NR_clone (__NR_Linux + 55)
-#define __NR_fork (__NR_Linux + 56)
-#define __NR_execve (__NR_Linux + 57)
-#define __NR_exit (__NR_Linux + 58)
-#define __NR_wait4 (__NR_Linux + 59)
-#define __NR_kill (__NR_Linux + 60)
-#define __NR_uname (__NR_Linux + 61)
-#define __NR_semget (__NR_Linux + 62)
-#define __NR_semop (__NR_Linux + 63)
-#define __NR_semctl (__NR_Linux + 64)
-#define __NR_shmdt (__NR_Linux + 65)
-#define __NR_msgget (__NR_Linux + 66)
-#define __NR_msgsnd (__NR_Linux + 67)
-#define __NR_msgrcv (__NR_Linux + 68)
-#define __NR_msgctl (__NR_Linux + 69)
-#define __NR_fcntl (__NR_Linux + 70)
-#define __NR_flock (__NR_Linux + 71)
-#define __NR_fsync (__NR_Linux + 72)
-#define __NR_fdatasync (__NR_Linux + 73)
-#define __NR_truncate (__NR_Linux + 74)
-#define __NR_ftruncate (__NR_Linux + 75)
-#define __NR_getdents (__NR_Linux + 76)
-#define __NR_getcwd (__NR_Linux + 77)
-#define __NR_chdir (__NR_Linux + 78)
-#define __NR_fchdir (__NR_Linux + 79)
-#define __NR_rename (__NR_Linux + 80)
-#define __NR_mkdir (__NR_Linux + 81)
-#define __NR_rmdir (__NR_Linux + 82)
-#define __NR_creat (__NR_Linux + 83)
-#define __NR_link (__NR_Linux + 84)
-#define __NR_unlink (__NR_Linux + 85)
-#define __NR_symlink (__NR_Linux + 86)
-#define __NR_readlink (__NR_Linux + 87)
-#define __NR_chmod (__NR_Linux + 88)
-#define __NR_fchmod (__NR_Linux + 89)
-#define __NR_chown (__NR_Linux + 90)
-#define __NR_fchown (__NR_Linux + 91)
-#define __NR_lchown (__NR_Linux + 92)
-#define __NR_umask (__NR_Linux + 93)
-#define __NR_gettimeofday (__NR_Linux + 94)
-#define __NR_getrlimit (__NR_Linux + 95)
-#define __NR_getrusage (__NR_Linux + 96)
-#define __NR_sysinfo (__NR_Linux + 97)
-#define __NR_times (__NR_Linux + 98)
-#define __NR_ptrace (__NR_Linux + 99)
-#define __NR_getuid (__NR_Linux + 100)
-#define __NR_syslog (__NR_Linux + 101)
-#define __NR_getgid (__NR_Linux + 102)
-#define __NR_setuid (__NR_Linux + 103)
-#define __NR_setgid (__NR_Linux + 104)
-#define __NR_geteuid (__NR_Linux + 105)
-#define __NR_getegid (__NR_Linux + 106)
-#define __NR_setpgid (__NR_Linux + 107)
-#define __NR_getppid (__NR_Linux + 108)
-#define __NR_getpgrp (__NR_Linux + 109)
-#define __NR_setsid (__NR_Linux + 110)
-#define __NR_setreuid (__NR_Linux + 111)
-#define __NR_setregid (__NR_Linux + 112)
-#define __NR_getgroups (__NR_Linux + 113)
-#define __NR_setgroups (__NR_Linux + 114)
-#define __NR_setresuid (__NR_Linux + 115)
-#define __NR_getresuid (__NR_Linux + 116)
-#define __NR_setresgid (__NR_Linux + 117)
-#define __NR_getresgid (__NR_Linux + 118)
-#define __NR_getpgid (__NR_Linux + 119)
-#define __NR_setfsuid (__NR_Linux + 120)
-#define __NR_setfsgid (__NR_Linux + 121)
-#define __NR_getsid (__NR_Linux + 122)
-#define __NR_capget (__NR_Linux + 123)
-#define __NR_capset (__NR_Linux + 124)
-#define __NR_rt_sigpending (__NR_Linux + 125)
-#define __NR_rt_sigtimedwait (__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 127)
-#define __NR_rt_sigsuspend (__NR_Linux + 128)
-#define __NR_sigaltstack (__NR_Linux + 129)
-#define __NR_utime (__NR_Linux + 130)
-#define __NR_mknod (__NR_Linux + 131)
-#define __NR_personality (__NR_Linux + 132)
-#define __NR_ustat (__NR_Linux + 133)
-#define __NR_statfs (__NR_Linux + 134)
-#define __NR_fstatfs (__NR_Linux + 135)
-#define __NR_sysfs (__NR_Linux + 136)
-#define __NR_getpriority (__NR_Linux + 137)
-#define __NR_setpriority (__NR_Linux + 138)
-#define __NR_sched_setparam (__NR_Linux + 139)
-#define __NR_sched_getparam (__NR_Linux + 140)
-#define __NR_sched_setscheduler (__NR_Linux + 141)
-#define __NR_sched_getscheduler (__NR_Linux + 142)
-#define __NR_sched_get_priority_max (__NR_Linux + 143)
-#define __NR_sched_get_priority_min (__NR_Linux + 144)
-#define __NR_sched_rr_get_interval (__NR_Linux + 145)
-#define __NR_mlock (__NR_Linux + 146)
-#define __NR_munlock (__NR_Linux + 147)
-#define __NR_mlockall (__NR_Linux + 148)
-#define __NR_munlockall (__NR_Linux + 149)
-#define __NR_vhangup (__NR_Linux + 150)
-#define __NR_pivot_root (__NR_Linux + 151)
-#define __NR__sysctl (__NR_Linux + 152)
-#define __NR_prctl (__NR_Linux + 153)
-#define __NR_adjtimex (__NR_Linux + 154)
-#define __NR_setrlimit (__NR_Linux + 155)
-#define __NR_chroot (__NR_Linux + 156)
-#define __NR_sync (__NR_Linux + 157)
-#define __NR_acct (__NR_Linux + 158)
-#define __NR_settimeofday (__NR_Linux + 159)
-#define __NR_mount (__NR_Linux + 160)
-#define __NR_umount2 (__NR_Linux + 161)
-#define __NR_swapon (__NR_Linux + 162)
-#define __NR_swapoff (__NR_Linux + 163)
-#define __NR_reboot (__NR_Linux + 164)
-#define __NR_sethostname (__NR_Linux + 165)
-#define __NR_setdomainname (__NR_Linux + 166)
-#define __NR_create_module (__NR_Linux + 167)
-#define __NR_init_module (__NR_Linux + 168)
-#define __NR_delete_module (__NR_Linux + 169)
-#define __NR_get_kernel_syms (__NR_Linux + 170)
-#define __NR_query_module (__NR_Linux + 171)
-#define __NR_quotactl (__NR_Linux + 172)
-#define __NR_nfsservctl (__NR_Linux + 173)
-#define __NR_getpmsg (__NR_Linux + 174)
-#define __NR_putpmsg (__NR_Linux + 175)
-#define __NR_afs_syscall (__NR_Linux + 176)
-#define __NR_reserved177 (__NR_Linux + 177)
-#define __NR_gettid (__NR_Linux + 178)
-#define __NR_readahead (__NR_Linux + 179)
-#define __NR_setxattr (__NR_Linux + 180)
-#define __NR_lsetxattr (__NR_Linux + 181)
-#define __NR_fsetxattr (__NR_Linux + 182)
-#define __NR_getxattr (__NR_Linux + 183)
-#define __NR_lgetxattr (__NR_Linux + 184)
-#define __NR_fgetxattr (__NR_Linux + 185)
-#define __NR_listxattr (__NR_Linux + 186)
-#define __NR_llistxattr (__NR_Linux + 187)
-#define __NR_flistxattr (__NR_Linux + 188)
-#define __NR_removexattr (__NR_Linux + 189)
-#define __NR_lremovexattr (__NR_Linux + 190)
-#define __NR_fremovexattr (__NR_Linux + 191)
-#define __NR_tkill (__NR_Linux + 192)
-#define __NR_reserved193 (__NR_Linux + 193)
-#define __NR_futex (__NR_Linux + 194)
-#define __NR_sched_setaffinity (__NR_Linux + 195)
-#define __NR_sched_getaffinity (__NR_Linux + 196)
-#define __NR_cacheflush (__NR_Linux + 197)
-#define __NR_cachectl (__NR_Linux + 198)
-#define __NR_sysmips (__NR_Linux + 199)
-#define __NR_io_setup (__NR_Linux + 200)
-#define __NR_io_destroy (__NR_Linux + 201)
-#define __NR_io_getevents (__NR_Linux + 202)
-#define __NR_io_submit (__NR_Linux + 203)
-#define __NR_io_cancel (__NR_Linux + 204)
-#define __NR_exit_group (__NR_Linux + 205)
-#define __NR_lookup_dcookie (__NR_Linux + 206)
-#define __NR_epoll_create (__NR_Linux + 207)
-#define __NR_epoll_ctl (__NR_Linux + 208)
-#define __NR_epoll_wait (__NR_Linux + 209)
-#define __NR_remap_file_pages (__NR_Linux + 210)
-#define __NR_rt_sigreturn (__NR_Linux + 211)
-#define __NR_set_tid_address (__NR_Linux + 212)
-#define __NR_restart_syscall (__NR_Linux + 213)
-#define __NR_semtimedop (__NR_Linux + 214)
-#define __NR_fadvise64 (__NR_Linux + 215)
-#define __NR_timer_create (__NR_Linux + 216)
-#define __NR_timer_settime (__NR_Linux + 217)
-#define __NR_timer_gettime (__NR_Linux + 218)
-#define __NR_timer_getoverrun (__NR_Linux + 219)
-#define __NR_timer_delete (__NR_Linux + 220)
-#define __NR_clock_settime (__NR_Linux + 221)
-#define __NR_clock_gettime (__NR_Linux + 222)
-#define __NR_clock_getres (__NR_Linux + 223)
-#define __NR_clock_nanosleep (__NR_Linux + 224)
-#define __NR_tgkill (__NR_Linux + 225)
-#define __NR_utimes (__NR_Linux + 226)
-#define __NR_mbind (__NR_Linux + 227)
-#define __NR_get_mempolicy (__NR_Linux + 228)
-#define __NR_set_mempolicy (__NR_Linux + 229)
-#define __NR_mq_open (__NR_Linux + 230)
-#define __NR_mq_unlink (__NR_Linux + 231)
-#define __NR_mq_timedsend (__NR_Linux + 232)
-#define __NR_mq_timedreceive (__NR_Linux + 233)
-#define __NR_mq_notify (__NR_Linux + 234)
-#define __NR_mq_getsetattr (__NR_Linux + 235)
-#define __NR_vserver (__NR_Linux + 236)
-#define __NR_waitid (__NR_Linux + 237)
-/* #define __NR_sys_setaltroot (__NR_Linux + 238) */
-#define __NR_add_key (__NR_Linux + 239)
-#define __NR_request_key (__NR_Linux + 240)
-#define __NR_keyctl (__NR_Linux + 241)
-#define __NR_set_thread_area (__NR_Linux + 242)
-#define __NR_inotify_init (__NR_Linux + 243)
-#define __NR_inotify_add_watch (__NR_Linux + 244)
-#define __NR_inotify_rm_watch (__NR_Linux + 245)
-#define __NR_migrate_pages (__NR_Linux + 246)
-#define __NR_openat (__NR_Linux + 247)
-#define __NR_mkdirat (__NR_Linux + 248)
-#define __NR_mknodat (__NR_Linux + 249)
-#define __NR_fchownat (__NR_Linux + 250)
-#define __NR_futimesat (__NR_Linux + 251)
-#define __NR_newfstatat (__NR_Linux + 252)
-#define __NR_unlinkat (__NR_Linux + 253)
-#define __NR_renameat (__NR_Linux + 254)
-#define __NR_linkat (__NR_Linux + 255)
-#define __NR_symlinkat (__NR_Linux + 256)
-#define __NR_readlinkat (__NR_Linux + 257)
-#define __NR_fchmodat (__NR_Linux + 258)
-#define __NR_faccessat (__NR_Linux + 259)
-#define __NR_pselect6 (__NR_Linux + 260)
-#define __NR_ppoll (__NR_Linux + 261)
-#define __NR_unshare (__NR_Linux + 262)
-#define __NR_splice (__NR_Linux + 263)
-#define __NR_sync_file_range (__NR_Linux + 264)
-#define __NR_tee (__NR_Linux + 265)
-#define __NR_vmsplice (__NR_Linux + 266)
-#define __NR_move_pages (__NR_Linux + 267)
-#define __NR_set_robust_list (__NR_Linux + 268)
-#define __NR_get_robust_list (__NR_Linux + 269)
-#define __NR_kexec_load (__NR_Linux + 270)
-#define __NR_getcpu (__NR_Linux + 271)
-#define __NR_epoll_pwait (__NR_Linux + 272)
-#define __NR_ioprio_set (__NR_Linux + 273)
-#define __NR_ioprio_get (__NR_Linux + 274)
-#define __NR_utimensat (__NR_Linux + 275)
-#define __NR_signalfd (__NR_Linux + 276)
-#define __NR_timerfd (__NR_Linux + 277)
-#define __NR_eventfd (__NR_Linux + 278)
-#define __NR_fallocate (__NR_Linux + 279)
-#define __NR_timerfd_create (__NR_Linux + 280)
-#define __NR_timerfd_gettime (__NR_Linux + 281)
-#define __NR_timerfd_settime (__NR_Linux + 282)
-#define __NR_signalfd4 (__NR_Linux + 283)
-#define __NR_eventfd2 (__NR_Linux + 284)
-#define __NR_epoll_create1 (__NR_Linux + 285)
-#define __NR_dup3 (__NR_Linux + 286)
-#define __NR_pipe2 (__NR_Linux + 287)
-#define __NR_inotify_init1 (__NR_Linux + 288)
-#define __NR_preadv (__NR_Linux + 289)
-#define __NR_pwritev (__NR_Linux + 290)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 291)
-#define __NR_perf_event_open (__NR_Linux + 292)
-#define __NR_accept4 (__NR_Linux + 293)
-#define __NR_recvmmsg (__NR_Linux + 294)
-#define __NR_fanotify_init (__NR_Linux + 295)
-#define __NR_fanotify_mark (__NR_Linux + 296)
-#define __NR_prlimit64 (__NR_Linux + 297)
-#define __NR_name_to_handle_at (__NR_Linux + 298)
-#define __NR_open_by_handle_at (__NR_Linux + 299)
-#define __NR_clock_adjtime (__NR_Linux + 300)
-#define __NR_syncfs (__NR_Linux + 301)
-#define __NR_sendmmsg (__NR_Linux + 302)
-#define __NR_setns (__NR_Linux + 303)
-#define __NR_process_vm_readv (__NR_Linux + 304)
-#define __NR_process_vm_writev (__NR_Linux + 305)
-#define __NR_kcmp (__NR_Linux + 306)
-#define __NR_finit_module (__NR_Linux + 307)
-#define __NR_getdents64 (__NR_Linux + 308)
-#define __NR_sched_setattr (__NR_Linux + 309)
-#define __NR_sched_getattr (__NR_Linux + 310)
-#define __NR_renameat2 (__NR_Linux + 311)
-#define __NR_seccomp (__NR_Linux + 312)
-#define __NR_getrandom (__NR_Linux + 313)
-#define __NR_memfd_create (__NR_Linux + 314)
-#define __NR_bpf (__NR_Linux + 315)
-#define __NR_execveat (__NR_Linux + 316)
-#define __NR_userfaultfd (__NR_Linux + 317)
-#define __NR_membarrier (__NR_Linux + 318)
-#define __NR_mlock2 (__NR_Linux + 319)
-#define __NR_copy_file_range (__NR_Linux + 320)
-#define __NR_preadv2 (__NR_Linux + 321)
-#define __NR_pwritev2 (__NR_Linux + 322)
-#define __NR_pkey_mprotect (__NR_Linux + 323)
-#define __NR_pkey_alloc (__NR_Linux + 324)
-#define __NR_pkey_free (__NR_Linux + 325)
-#define __NR_statx (__NR_Linux + 326)
-#define __NR_rseq (__NR_Linux + 327)
-#define __NR_io_pgetevents (__NR_Linux + 328)
-
-/*
- * Offset of the last Linux 64-bit flavoured syscall
- */
-#define __NR_Linux_syscalls 328
-
-#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
-
-#define __NR_64_Linux 5000
-#define __NR_64_Linux_syscalls 328
-
-#if _MIPS_SIM == _MIPS_SIM_NABI32
-
-/*
- * Linux N32 syscalls are in the range from 6000 to 6999.
- */
-#define __NR_Linux 6000
-#define __NR_read (__NR_Linux + 0)
-#define __NR_write (__NR_Linux + 1)
-#define __NR_open (__NR_Linux + 2)
-#define __NR_close (__NR_Linux + 3)
-#define __NR_stat (__NR_Linux + 4)
-#define __NR_fstat (__NR_Linux + 5)
-#define __NR_lstat (__NR_Linux + 6)
-#define __NR_poll (__NR_Linux + 7)
-#define __NR_lseek (__NR_Linux + 8)
-#define __NR_mmap (__NR_Linux + 9)
-#define __NR_mprotect (__NR_Linux + 10)
-#define __NR_munmap (__NR_Linux + 11)
-#define __NR_brk (__NR_Linux + 12)
-#define __NR_rt_sigaction (__NR_Linux + 13)
-#define __NR_rt_sigprocmask (__NR_Linux + 14)
-#define __NR_ioctl (__NR_Linux + 15)
-#define __NR_pread64 (__NR_Linux + 16)
-#define __NR_pwrite64 (__NR_Linux + 17)
-#define __NR_readv (__NR_Linux + 18)
-#define __NR_writev (__NR_Linux + 19)
-#define __NR_access (__NR_Linux + 20)
-#define __NR_pipe (__NR_Linux + 21)
-#define __NR__newselect (__NR_Linux + 22)
-#define __NR_sched_yield (__NR_Linux + 23)
-#define __NR_mremap (__NR_Linux + 24)
-#define __NR_msync (__NR_Linux + 25)
-#define __NR_mincore (__NR_Linux + 26)
-#define __NR_madvise (__NR_Linux + 27)
-#define __NR_shmget (__NR_Linux + 28)
-#define __NR_shmat (__NR_Linux + 29)
-#define __NR_shmctl (__NR_Linux + 30)
-#define __NR_dup (__NR_Linux + 31)
-#define __NR_dup2 (__NR_Linux + 32)
-#define __NR_pause (__NR_Linux + 33)
-#define __NR_nanosleep (__NR_Linux + 34)
-#define __NR_getitimer (__NR_Linux + 35)
-#define __NR_setitimer (__NR_Linux + 36)
-#define __NR_alarm (__NR_Linux + 37)
-#define __NR_getpid (__NR_Linux + 38)
-#define __NR_sendfile (__NR_Linux + 39)
-#define __NR_socket (__NR_Linux + 40)
-#define __NR_connect (__NR_Linux + 41)
-#define __NR_accept (__NR_Linux + 42)
-#define __NR_sendto (__NR_Linux + 43)
-#define __NR_recvfrom (__NR_Linux + 44)
-#define __NR_sendmsg (__NR_Linux + 45)
-#define __NR_recvmsg (__NR_Linux + 46)
-#define __NR_shutdown (__NR_Linux + 47)
-#define __NR_bind (__NR_Linux + 48)
-#define __NR_listen (__NR_Linux + 49)
-#define __NR_getsockname (__NR_Linux + 50)
-#define __NR_getpeername (__NR_Linux + 51)
-#define __NR_socketpair (__NR_Linux + 52)
-#define __NR_setsockopt (__NR_Linux + 53)
-#define __NR_getsockopt (__NR_Linux + 54)
-#define __NR_clone (__NR_Linux + 55)
-#define __NR_fork (__NR_Linux + 56)
-#define __NR_execve (__NR_Linux + 57)
-#define __NR_exit (__NR_Linux + 58)
-#define __NR_wait4 (__NR_Linux + 59)
-#define __NR_kill (__NR_Linux + 60)
-#define __NR_uname (__NR_Linux + 61)
-#define __NR_semget (__NR_Linux + 62)
-#define __NR_semop (__NR_Linux + 63)
-#define __NR_semctl (__NR_Linux + 64)
-#define __NR_shmdt (__NR_Linux + 65)
-#define __NR_msgget (__NR_Linux + 66)
-#define __NR_msgsnd (__NR_Linux + 67)
-#define __NR_msgrcv (__NR_Linux + 68)
-#define __NR_msgctl (__NR_Linux + 69)
-#define __NR_fcntl (__NR_Linux + 70)
-#define __NR_flock (__NR_Linux + 71)
-#define __NR_fsync (__NR_Linux + 72)
-#define __NR_fdatasync (__NR_Linux + 73)
-#define __NR_truncate (__NR_Linux + 74)
-#define __NR_ftruncate (__NR_Linux + 75)
-#define __NR_getdents (__NR_Linux + 76)
-#define __NR_getcwd (__NR_Linux + 77)
-#define __NR_chdir (__NR_Linux + 78)
-#define __NR_fchdir (__NR_Linux + 79)
-#define __NR_rename (__NR_Linux + 80)
-#define __NR_mkdir (__NR_Linux + 81)
-#define __NR_rmdir (__NR_Linux + 82)
-#define __NR_creat (__NR_Linux + 83)
-#define __NR_link (__NR_Linux + 84)
-#define __NR_unlink (__NR_Linux + 85)
-#define __NR_symlink (__NR_Linux + 86)
-#define __NR_readlink (__NR_Linux + 87)
-#define __NR_chmod (__NR_Linux + 88)
-#define __NR_fchmod (__NR_Linux + 89)
-#define __NR_chown (__NR_Linux + 90)
-#define __NR_fchown (__NR_Linux + 91)
-#define __NR_lchown (__NR_Linux + 92)
-#define __NR_umask (__NR_Linux + 93)
-#define __NR_gettimeofday (__NR_Linux + 94)
-#define __NR_getrlimit (__NR_Linux + 95)
-#define __NR_getrusage (__NR_Linux + 96)
-#define __NR_sysinfo (__NR_Linux + 97)
-#define __NR_times (__NR_Linux + 98)
-#define __NR_ptrace (__NR_Linux + 99)
-#define __NR_getuid (__NR_Linux + 100)
-#define __NR_syslog (__NR_Linux + 101)
-#define __NR_getgid (__NR_Linux + 102)
-#define __NR_setuid (__NR_Linux + 103)
-#define __NR_setgid (__NR_Linux + 104)
-#define __NR_geteuid (__NR_Linux + 105)
-#define __NR_getegid (__NR_Linux + 106)
-#define __NR_setpgid (__NR_Linux + 107)
-#define __NR_getppid (__NR_Linux + 108)
-#define __NR_getpgrp (__NR_Linux + 109)
-#define __NR_setsid (__NR_Linux + 110)
-#define __NR_setreuid (__NR_Linux + 111)
-#define __NR_setregid (__NR_Linux + 112)
-#define __NR_getgroups (__NR_Linux + 113)
-#define __NR_setgroups (__NR_Linux + 114)
-#define __NR_setresuid (__NR_Linux + 115)
-#define __NR_getresuid (__NR_Linux + 116)
-#define __NR_setresgid (__NR_Linux + 117)
-#define __NR_getresgid (__NR_Linux + 118)
-#define __NR_getpgid (__NR_Linux + 119)
-#define __NR_setfsuid (__NR_Linux + 120)
-#define __NR_setfsgid (__NR_Linux + 121)
-#define __NR_getsid (__NR_Linux + 122)
-#define __NR_capget (__NR_Linux + 123)
-#define __NR_capset (__NR_Linux + 124)
-#define __NR_rt_sigpending (__NR_Linux + 125)
-#define __NR_rt_sigtimedwait (__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 127)
-#define __NR_rt_sigsuspend (__NR_Linux + 128)
-#define __NR_sigaltstack (__NR_Linux + 129)
-#define __NR_utime (__NR_Linux + 130)
-#define __NR_mknod (__NR_Linux + 131)
-#define __NR_personality (__NR_Linux + 132)
-#define __NR_ustat (__NR_Linux + 133)
-#define __NR_statfs (__NR_Linux + 134)
-#define __NR_fstatfs (__NR_Linux + 135)
-#define __NR_sysfs (__NR_Linux + 136)
-#define __NR_getpriority (__NR_Linux + 137)
-#define __NR_setpriority (__NR_Linux + 138)
-#define __NR_sched_setparam (__NR_Linux + 139)
-#define __NR_sched_getparam (__NR_Linux + 140)
-#define __NR_sched_setscheduler (__NR_Linux + 141)
-#define __NR_sched_getscheduler (__NR_Linux + 142)
-#define __NR_sched_get_priority_max (__NR_Linux + 143)
-#define __NR_sched_get_priority_min (__NR_Linux + 144)
-#define __NR_sched_rr_get_interval (__NR_Linux + 145)
-#define __NR_mlock (__NR_Linux + 146)
-#define __NR_munlock (__NR_Linux + 147)
-#define __NR_mlockall (__NR_Linux + 148)
-#define __NR_munlockall (__NR_Linux + 149)
-#define __NR_vhangup (__NR_Linux + 150)
-#define __NR_pivot_root (__NR_Linux + 151)
-#define __NR__sysctl (__NR_Linux + 152)
-#define __NR_prctl (__NR_Linux + 153)
-#define __NR_adjtimex (__NR_Linux + 154)
-#define __NR_setrlimit (__NR_Linux + 155)
-#define __NR_chroot (__NR_Linux + 156)
-#define __NR_sync (__NR_Linux + 157)
-#define __NR_acct (__NR_Linux + 158)
-#define __NR_settimeofday (__NR_Linux + 159)
-#define __NR_mount (__NR_Linux + 160)
-#define __NR_umount2 (__NR_Linux + 161)
-#define __NR_swapon (__NR_Linux + 162)
-#define __NR_swapoff (__NR_Linux + 163)
-#define __NR_reboot (__NR_Linux + 164)
-#define __NR_sethostname (__NR_Linux + 165)
-#define __NR_setdomainname (__NR_Linux + 166)
-#define __NR_create_module (__NR_Linux + 167)
-#define __NR_init_module (__NR_Linux + 168)
-#define __NR_delete_module (__NR_Linux + 169)
-#define __NR_get_kernel_syms (__NR_Linux + 170)
-#define __NR_query_module (__NR_Linux + 171)
-#define __NR_quotactl (__NR_Linux + 172)
-#define __NR_nfsservctl (__NR_Linux + 173)
-#define __NR_getpmsg (__NR_Linux + 174)
-#define __NR_putpmsg (__NR_Linux + 175)
-#define __NR_afs_syscall (__NR_Linux + 176)
-#define __NR_reserved177 (__NR_Linux + 177)
-#define __NR_gettid (__NR_Linux + 178)
-#define __NR_readahead (__NR_Linux + 179)
-#define __NR_setxattr (__NR_Linux + 180)
-#define __NR_lsetxattr (__NR_Linux + 181)
-#define __NR_fsetxattr (__NR_Linux + 182)
-#define __NR_getxattr (__NR_Linux + 183)
-#define __NR_lgetxattr (__NR_Linux + 184)
-#define __NR_fgetxattr (__NR_Linux + 185)
-#define __NR_listxattr (__NR_Linux + 186)
-#define __NR_llistxattr (__NR_Linux + 187)
-#define __NR_flistxattr (__NR_Linux + 188)
-#define __NR_removexattr (__NR_Linux + 189)
-#define __NR_lremovexattr (__NR_Linux + 190)
-#define __NR_fremovexattr (__NR_Linux + 191)
-#define __NR_tkill (__NR_Linux + 192)
-#define __NR_reserved193 (__NR_Linux + 193)
-#define __NR_futex (__NR_Linux + 194)
-#define __NR_sched_setaffinity (__NR_Linux + 195)
-#define __NR_sched_getaffinity (__NR_Linux + 196)
-#define __NR_cacheflush (__NR_Linux + 197)
-#define __NR_cachectl (__NR_Linux + 198)
-#define __NR_sysmips (__NR_Linux + 199)
-#define __NR_io_setup (__NR_Linux + 200)
-#define __NR_io_destroy (__NR_Linux + 201)
-#define __NR_io_getevents (__NR_Linux + 202)
-#define __NR_io_submit (__NR_Linux + 203)
-#define __NR_io_cancel (__NR_Linux + 204)
-#define __NR_exit_group (__NR_Linux + 205)
-#define __NR_lookup_dcookie (__NR_Linux + 206)
-#define __NR_epoll_create (__NR_Linux + 207)
-#define __NR_epoll_ctl (__NR_Linux + 208)
-#define __NR_epoll_wait (__NR_Linux + 209)
-#define __NR_remap_file_pages (__NR_Linux + 210)
-#define __NR_rt_sigreturn (__NR_Linux + 211)
-#define __NR_fcntl64 (__NR_Linux + 212)
-#define __NR_set_tid_address (__NR_Linux + 213)
-#define __NR_restart_syscall (__NR_Linux + 214)
-#define __NR_semtimedop (__NR_Linux + 215)
-#define __NR_fadvise64 (__NR_Linux + 216)
-#define __NR_statfs64 (__NR_Linux + 217)
-#define __NR_fstatfs64 (__NR_Linux + 218)
-#define __NR_sendfile64 (__NR_Linux + 219)
-#define __NR_timer_create (__NR_Linux + 220)
-#define __NR_timer_settime (__NR_Linux + 221)
-#define __NR_timer_gettime (__NR_Linux + 222)
-#define __NR_timer_getoverrun (__NR_Linux + 223)
-#define __NR_timer_delete (__NR_Linux + 224)
-#define __NR_clock_settime (__NR_Linux + 225)
-#define __NR_clock_gettime (__NR_Linux + 226)
-#define __NR_clock_getres (__NR_Linux + 227)
-#define __NR_clock_nanosleep (__NR_Linux + 228)
-#define __NR_tgkill (__NR_Linux + 229)
-#define __NR_utimes (__NR_Linux + 230)
-#define __NR_mbind (__NR_Linux + 231)
-#define __NR_get_mempolicy (__NR_Linux + 232)
-#define __NR_set_mempolicy (__NR_Linux + 233)
-#define __NR_mq_open (__NR_Linux + 234)
-#define __NR_mq_unlink (__NR_Linux + 235)
-#define __NR_mq_timedsend (__NR_Linux + 236)
-#define __NR_mq_timedreceive (__NR_Linux + 237)
-#define __NR_mq_notify (__NR_Linux + 238)
-#define __NR_mq_getsetattr (__NR_Linux + 239)
-#define __NR_vserver (__NR_Linux + 240)
-#define __NR_waitid (__NR_Linux + 241)
-/* #define __NR_sys_setaltroot (__NR_Linux + 242) */
-#define __NR_add_key (__NR_Linux + 243)
-#define __NR_request_key (__NR_Linux + 244)
-#define __NR_keyctl (__NR_Linux + 245)
-#define __NR_set_thread_area (__NR_Linux + 246)
-#define __NR_inotify_init (__NR_Linux + 247)
-#define __NR_inotify_add_watch (__NR_Linux + 248)
-#define __NR_inotify_rm_watch (__NR_Linux + 249)
-#define __NR_migrate_pages (__NR_Linux + 250)
-#define __NR_openat (__NR_Linux + 251)
-#define __NR_mkdirat (__NR_Linux + 252)
-#define __NR_mknodat (__NR_Linux + 253)
-#define __NR_fchownat (__NR_Linux + 254)
-#define __NR_futimesat (__NR_Linux + 255)
-#define __NR_newfstatat (__NR_Linux + 256)
-#define __NR_unlinkat (__NR_Linux + 257)
-#define __NR_renameat (__NR_Linux + 258)
-#define __NR_linkat (__NR_Linux + 259)
-#define __NR_symlinkat (__NR_Linux + 260)
-#define __NR_readlinkat (__NR_Linux + 261)
-#define __NR_fchmodat (__NR_Linux + 262)
-#define __NR_faccessat (__NR_Linux + 263)
-#define __NR_pselect6 (__NR_Linux + 264)
-#define __NR_ppoll (__NR_Linux + 265)
-#define __NR_unshare (__NR_Linux + 266)
-#define __NR_splice (__NR_Linux + 267)
-#define __NR_sync_file_range (__NR_Linux + 268)
-#define __NR_tee (__NR_Linux + 269)
-#define __NR_vmsplice (__NR_Linux + 270)
-#define __NR_move_pages (__NR_Linux + 271)
-#define __NR_set_robust_list (__NR_Linux + 272)
-#define __NR_get_robust_list (__NR_Linux + 273)
-#define __NR_kexec_load (__NR_Linux + 274)
-#define __NR_getcpu (__NR_Linux + 275)
-#define __NR_epoll_pwait (__NR_Linux + 276)
-#define __NR_ioprio_set (__NR_Linux + 277)
-#define __NR_ioprio_get (__NR_Linux + 278)
-#define __NR_utimensat (__NR_Linux + 279)
-#define __NR_signalfd (__NR_Linux + 280)
-#define __NR_timerfd (__NR_Linux + 281)
-#define __NR_eventfd (__NR_Linux + 282)
-#define __NR_fallocate (__NR_Linux + 283)
-#define __NR_timerfd_create (__NR_Linux + 284)
-#define __NR_timerfd_gettime (__NR_Linux + 285)
-#define __NR_timerfd_settime (__NR_Linux + 286)
-#define __NR_signalfd4 (__NR_Linux + 287)
-#define __NR_eventfd2 (__NR_Linux + 288)
-#define __NR_epoll_create1 (__NR_Linux + 289)
-#define __NR_dup3 (__NR_Linux + 290)
-#define __NR_pipe2 (__NR_Linux + 291)
-#define __NR_inotify_init1 (__NR_Linux + 292)
-#define __NR_preadv (__NR_Linux + 293)
-#define __NR_pwritev (__NR_Linux + 294)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 295)
-#define __NR_perf_event_open (__NR_Linux + 296)
-#define __NR_accept4 (__NR_Linux + 297)
-#define __NR_recvmmsg (__NR_Linux + 298)
-#define __NR_getdents64 (__NR_Linux + 299)
-#define __NR_fanotify_init (__NR_Linux + 300)
-#define __NR_fanotify_mark (__NR_Linux + 301)
-#define __NR_prlimit64 (__NR_Linux + 302)
-#define __NR_name_to_handle_at (__NR_Linux + 303)
-#define __NR_open_by_handle_at (__NR_Linux + 304)
-#define __NR_clock_adjtime (__NR_Linux + 305)
-#define __NR_syncfs (__NR_Linux + 306)
-#define __NR_sendmmsg (__NR_Linux + 307)
-#define __NR_setns (__NR_Linux + 308)
-#define __NR_process_vm_readv (__NR_Linux + 309)
-#define __NR_process_vm_writev (__NR_Linux + 310)
-#define __NR_kcmp (__NR_Linux + 311)
-#define __NR_finit_module (__NR_Linux + 312)
-#define __NR_sched_setattr (__NR_Linux + 313)
-#define __NR_sched_getattr (__NR_Linux + 314)
-#define __NR_renameat2 (__NR_Linux + 315)
-#define __NR_seccomp (__NR_Linux + 316)
-#define __NR_getrandom (__NR_Linux + 317)
-#define __NR_memfd_create (__NR_Linux + 318)
-#define __NR_bpf (__NR_Linux + 319)
-#define __NR_execveat (__NR_Linux + 320)
-#define __NR_userfaultfd (__NR_Linux + 321)
-#define __NR_membarrier (__NR_Linux + 322)
-#define __NR_mlock2 (__NR_Linux + 323)
-#define __NR_copy_file_range (__NR_Linux + 324)
-#define __NR_preadv2 (__NR_Linux + 325)
-#define __NR_pwritev2 (__NR_Linux + 326)
-#define __NR_pkey_mprotect (__NR_Linux + 327)
-#define __NR_pkey_alloc (__NR_Linux + 328)
-#define __NR_pkey_free (__NR_Linux + 329)
-#define __NR_statx (__NR_Linux + 330)
-#define __NR_rseq (__NR_Linux + 331)
-#define __NR_io_pgetevents (__NR_Linux + 332)
-
-/*
- * Offset of the last N32 flavoured syscall
- */
-#define __NR_Linux_syscalls 332
-
-#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
-
-#define __NR_N32_Linux 6000
-#define __NR_N32_Linux_syscalls 332
-
-#endif /* _UAPI_ASM_UNISTD_H */
diff --git a/libc/include/mips64el-linux-musl/asm/auxvec.h b/libc/include/mips64el-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/auxvec.h
rename to libc/include/mips64el-linux-any/asm/auxvec.h
diff --git a/libc/include/mips64el-linux-musl/asm/bitsperlong.h b/libc/include/mips64el-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/bitsperlong.h
rename to libc/include/mips64el-linux-any/asm/bitsperlong.h
diff --git a/libc/include/mips64el-linux-musl/asm/byteorder.h b/libc/include/mips64el-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/byteorder.h
rename to libc/include/mips64el-linux-any/asm/byteorder.h
diff --git a/libc/include/mips64el-linux-musl/asm/errno.h b/libc/include/mips64el-linux-any/asm/errno.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/errno.h
rename to libc/include/mips64el-linux-any/asm/errno.h
diff --git a/libc/include/mips64el-linux-musl/asm/fcntl.h b/libc/include/mips64el-linux-any/asm/fcntl.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/fcntl.h
rename to libc/include/mips64el-linux-any/asm/fcntl.h
diff --git a/libc/include/mips64el-linux-musl/asm/hwcap.h b/libc/include/mips64el-linux-any/asm/hwcap.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/hwcap.h
rename to libc/include/mips64el-linux-any/asm/hwcap.h
diff --git a/libc/include/mips64el-linux-musl/asm/ioctl.h b/libc/include/mips64el-linux-any/asm/ioctl.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/ioctl.h
rename to libc/include/mips64el-linux-any/asm/ioctl.h
diff --git a/libc/include/mips64el-linux-musl/asm/ioctls.h b/libc/include/mips64el-linux-any/asm/ioctls.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/ioctls.h
rename to libc/include/mips64el-linux-any/asm/ioctls.h
diff --git a/libc/include/mips64el-linux-musl/asm/kvm.h b/libc/include/mips64el-linux-any/asm/kvm.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/kvm.h
rename to libc/include/mips64el-linux-any/asm/kvm.h
diff --git a/libc/include/mips64el-linux-musl/asm/kvm_para.h b/libc/include/mips64el-linux-any/asm/kvm_para.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/kvm_para.h
rename to libc/include/mips64el-linux-any/asm/kvm_para.h
diff --git a/libc/include/mips64el-linux-musl/asm/mman.h b/libc/include/mips64el-linux-any/asm/mman.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/mman.h
rename to libc/include/mips64el-linux-any/asm/mman.h
diff --git a/libc/include/mips64el-linux-musl/asm/msgbuf.h b/libc/include/mips64el-linux-any/asm/msgbuf.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/msgbuf.h
rename to libc/include/mips64el-linux-any/asm/msgbuf.h
diff --git a/libc/include/mips64el-linux-musl/asm/param.h b/libc/include/mips64el-linux-any/asm/param.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/param.h
rename to libc/include/mips64el-linux-any/asm/param.h
diff --git a/libc/include/mips64el-linux-musl/asm/poll.h b/libc/include/mips64el-linux-any/asm/poll.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/poll.h
rename to libc/include/mips64el-linux-any/asm/poll.h
diff --git a/libc/include/mips64el-linux-musl/asm/posix_types.h b/libc/include/mips64el-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/posix_types.h
rename to libc/include/mips64el-linux-any/asm/posix_types.h
diff --git a/libc/include/mips64el-linux-musl/asm/ptrace.h b/libc/include/mips64el-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/ptrace.h
rename to libc/include/mips64el-linux-any/asm/ptrace.h
diff --git a/libc/include/mips64el-linux-musl/asm/resource.h b/libc/include/mips64el-linux-any/asm/resource.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/resource.h
rename to libc/include/mips64el-linux-any/asm/resource.h
diff --git a/libc/include/mips64el-linux-musl/asm/sembuf.h b/libc/include/mips64el-linux-any/asm/sembuf.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/sembuf.h
rename to libc/include/mips64el-linux-any/asm/sembuf.h
diff --git a/libc/include/mips64el-linux-musl/asm/setup.h b/libc/include/mips64el-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/setup.h
rename to libc/include/mips64el-linux-any/asm/setup.h
diff --git a/libc/include/mips64el-linux-musl/asm/shmbuf.h b/libc/include/mips64el-linux-any/asm/shmbuf.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/shmbuf.h
rename to libc/include/mips64el-linux-any/asm/shmbuf.h
diff --git a/libc/include/mips64el-linux-musl/asm/sigcontext.h b/libc/include/mips64el-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/sigcontext.h
rename to libc/include/mips64el-linux-any/asm/sigcontext.h
diff --git a/libc/include/mips64el-linux-musl/asm/siginfo.h b/libc/include/mips64el-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/siginfo.h
rename to libc/include/mips64el-linux-any/asm/siginfo.h
diff --git a/libc/include/mips64el-linux-musl/asm/signal.h b/libc/include/mips64el-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/signal.h
rename to libc/include/mips64el-linux-any/asm/signal.h
diff --git a/libc/include/mips64el-linux-musl/asm/socket.h b/libc/include/mips64el-linux-any/asm/socket.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/socket.h
rename to libc/include/mips64el-linux-any/asm/socket.h
diff --git a/libc/include/mips64el-linux-musl/asm/sockios.h b/libc/include/mips64el-linux-any/asm/sockios.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/sockios.h
rename to libc/include/mips64el-linux-any/asm/sockios.h
diff --git a/libc/include/mips64el-linux-musl/asm/stat.h b/libc/include/mips64el-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/stat.h
rename to libc/include/mips64el-linux-any/asm/stat.h
diff --git a/libc/include/mips64el-linux-musl/asm/statfs.h b/libc/include/mips64el-linux-any/asm/statfs.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/statfs.h
rename to libc/include/mips64el-linux-any/asm/statfs.h
diff --git a/libc/include/mips64el-linux-musl/asm/swab.h b/libc/include/mips64el-linux-any/asm/swab.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/swab.h
rename to libc/include/mips64el-linux-any/asm/swab.h
diff --git a/libc/include/mips64el-linux-musl/asm/termbits.h b/libc/include/mips64el-linux-any/asm/termbits.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/termbits.h
rename to libc/include/mips64el-linux-any/asm/termbits.h
diff --git a/libc/include/mips64el-linux-musl/asm/termios.h b/libc/include/mips64el-linux-any/asm/termios.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/termios.h
rename to libc/include/mips64el-linux-any/asm/termios.h
diff --git a/libc/include/mips64el-linux-musl/asm/types.h b/libc/include/mips64el-linux-any/asm/types.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/types.h
rename to libc/include/mips64el-linux-any/asm/types.h
diff --git a/libc/include/mips64el-linux-musl/asm/unistd.h b/libc/include/mips64el-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/mips64el-linux-musl/asm/unistd.h
rename to libc/include/mips64el-linux-any/asm/unistd.h
diff --git a/libc/include/mips64el-linux-gnuabi64/asm/sgidefs.h b/libc/include/mips64el-linux-gnuabi64/asm/sgidefs.h
deleted file mode 100644
index 26143e3b7c..0000000000
--- a/libc/include/mips64el-linux-gnuabi64/asm/sgidefs.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1996, 1999, 2001 Ralf Baechle
- * Copyright (C) 1999 Silicon Graphics, Inc.
- * Copyright (C) 2001 MIPS Technologies, Inc.
- */
-#ifndef __ASM_SGIDEFS_H
-#define __ASM_SGIDEFS_H
-
-/*
- * Using a Linux compiler for building Linux seems logic but not to
- * everybody.
- */
-#ifndef __linux__
-#error Use a Linux compiler or give up.
-#endif
-
-/*
- * Definitions for the ISA levels
- *
- * With the introduction of MIPS32 / MIPS64 instruction sets definitions
- * MIPS ISAs are no longer subsets of each other. Therefore comparisons
- * on these symbols except with == may result in unexpected results and
- * are forbidden!
- */
-#define _MIPS_ISA_MIPS1 1
-#define _MIPS_ISA_MIPS2 2
-#define _MIPS_ISA_MIPS3 3
-#define _MIPS_ISA_MIPS4 4
-#define _MIPS_ISA_MIPS5 5
-#define _MIPS_ISA_MIPS32 6
-#define _MIPS_ISA_MIPS64 7
-
-/*
- * Subprogram calling convention
- */
-#define _MIPS_SIM_ABI32 1
-#define _MIPS_SIM_NABI32 2
-#define _MIPS_SIM_ABI64 3
-
-#endif /* __ASM_SGIDEFS_H */
diff --git a/libc/include/mips64el-linux-gnuabi64/asm/unistd.h b/libc/include/mips64el-linux-gnuabi64/asm/unistd.h
deleted file mode 100644
index f25dd1d83f..0000000000
--- a/libc/include/mips64el-linux-gnuabi64/asm/unistd.h
+++ /dev/null
@@ -1,1101 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle
- * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
- *
- * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto
- * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A
- */
-#ifndef _UAPI_ASM_UNISTD_H
-#define _UAPI_ASM_UNISTD_H
-
-#include
-
-#if _MIPS_SIM == _MIPS_SIM_ABI32
-
-/*
- * Linux o32 style syscalls are in the range from 4000 to 4999.
- */
-#define __NR_Linux 4000
-#define __NR_syscall (__NR_Linux + 0)
-#define __NR_exit (__NR_Linux + 1)
-#define __NR_fork (__NR_Linux + 2)
-#define __NR_read (__NR_Linux + 3)
-#define __NR_write (__NR_Linux + 4)
-#define __NR_open (__NR_Linux + 5)
-#define __NR_close (__NR_Linux + 6)
-#define __NR_waitpid (__NR_Linux + 7)
-#define __NR_creat (__NR_Linux + 8)
-#define __NR_link (__NR_Linux + 9)
-#define __NR_unlink (__NR_Linux + 10)
-#define __NR_execve (__NR_Linux + 11)
-#define __NR_chdir (__NR_Linux + 12)
-#define __NR_time (__NR_Linux + 13)
-#define __NR_mknod (__NR_Linux + 14)
-#define __NR_chmod (__NR_Linux + 15)
-#define __NR_lchown (__NR_Linux + 16)
-#define __NR_break (__NR_Linux + 17)
-#define __NR_unused18 (__NR_Linux + 18)
-#define __NR_lseek (__NR_Linux + 19)
-#define __NR_getpid (__NR_Linux + 20)
-#define __NR_mount (__NR_Linux + 21)
-#define __NR_umount (__NR_Linux + 22)
-#define __NR_setuid (__NR_Linux + 23)
-#define __NR_getuid (__NR_Linux + 24)
-#define __NR_stime (__NR_Linux + 25)
-#define __NR_ptrace (__NR_Linux + 26)
-#define __NR_alarm (__NR_Linux + 27)
-#define __NR_unused28 (__NR_Linux + 28)
-#define __NR_pause (__NR_Linux + 29)
-#define __NR_utime (__NR_Linux + 30)
-#define __NR_stty (__NR_Linux + 31)
-#define __NR_gtty (__NR_Linux + 32)
-#define __NR_access (__NR_Linux + 33)
-#define __NR_nice (__NR_Linux + 34)
-#define __NR_ftime (__NR_Linux + 35)
-#define __NR_sync (__NR_Linux + 36)
-#define __NR_kill (__NR_Linux + 37)
-#define __NR_rename (__NR_Linux + 38)
-#define __NR_mkdir (__NR_Linux + 39)
-#define __NR_rmdir (__NR_Linux + 40)
-#define __NR_dup (__NR_Linux + 41)
-#define __NR_pipe (__NR_Linux + 42)
-#define __NR_times (__NR_Linux + 43)
-#define __NR_prof (__NR_Linux + 44)
-#define __NR_brk (__NR_Linux + 45)
-#define __NR_setgid (__NR_Linux + 46)
-#define __NR_getgid (__NR_Linux + 47)
-#define __NR_signal (__NR_Linux + 48)
-#define __NR_geteuid (__NR_Linux + 49)
-#define __NR_getegid (__NR_Linux + 50)
-#define __NR_acct (__NR_Linux + 51)
-#define __NR_umount2 (__NR_Linux + 52)
-#define __NR_lock (__NR_Linux + 53)
-#define __NR_ioctl (__NR_Linux + 54)
-#define __NR_fcntl (__NR_Linux + 55)
-#define __NR_mpx (__NR_Linux + 56)
-#define __NR_setpgid (__NR_Linux + 57)
-#define __NR_ulimit (__NR_Linux + 58)
-#define __NR_unused59 (__NR_Linux + 59)
-#define __NR_umask (__NR_Linux + 60)
-#define __NR_chroot (__NR_Linux + 61)
-#define __NR_ustat (__NR_Linux + 62)
-#define __NR_dup2 (__NR_Linux + 63)
-#define __NR_getppid (__NR_Linux + 64)
-#define __NR_getpgrp (__NR_Linux + 65)
-#define __NR_setsid (__NR_Linux + 66)
-#define __NR_sigaction (__NR_Linux + 67)
-#define __NR_sgetmask (__NR_Linux + 68)
-#define __NR_ssetmask (__NR_Linux + 69)
-#define __NR_setreuid (__NR_Linux + 70)
-#define __NR_setregid (__NR_Linux + 71)
-#define __NR_sigsuspend (__NR_Linux + 72)
-#define __NR_sigpending (__NR_Linux + 73)
-#define __NR_sethostname (__NR_Linux + 74)
-#define __NR_setrlimit (__NR_Linux + 75)
-#define __NR_getrlimit (__NR_Linux + 76)
-#define __NR_getrusage (__NR_Linux + 77)
-#define __NR_gettimeofday (__NR_Linux + 78)
-#define __NR_settimeofday (__NR_Linux + 79)
-#define __NR_getgroups (__NR_Linux + 80)
-#define __NR_setgroups (__NR_Linux + 81)
-#define __NR_reserved82 (__NR_Linux + 82)
-#define __NR_symlink (__NR_Linux + 83)
-#define __NR_unused84 (__NR_Linux + 84)
-#define __NR_readlink (__NR_Linux + 85)
-#define __NR_uselib (__NR_Linux + 86)
-#define __NR_swapon (__NR_Linux + 87)
-#define __NR_reboot (__NR_Linux + 88)
-#define __NR_readdir (__NR_Linux + 89)
-#define __NR_mmap (__NR_Linux + 90)
-#define __NR_munmap (__NR_Linux + 91)
-#define __NR_truncate (__NR_Linux + 92)
-#define __NR_ftruncate (__NR_Linux + 93)
-#define __NR_fchmod (__NR_Linux + 94)
-#define __NR_fchown (__NR_Linux + 95)
-#define __NR_getpriority (__NR_Linux + 96)
-#define __NR_setpriority (__NR_Linux + 97)
-#define __NR_profil (__NR_Linux + 98)
-#define __NR_statfs (__NR_Linux + 99)
-#define __NR_fstatfs (__NR_Linux + 100)
-#define __NR_ioperm (__NR_Linux + 101)
-#define __NR_socketcall (__NR_Linux + 102)
-#define __NR_syslog (__NR_Linux + 103)
-#define __NR_setitimer (__NR_Linux + 104)
-#define __NR_getitimer (__NR_Linux + 105)
-#define __NR_stat (__NR_Linux + 106)
-#define __NR_lstat (__NR_Linux + 107)
-#define __NR_fstat (__NR_Linux + 108)
-#define __NR_unused109 (__NR_Linux + 109)
-#define __NR_iopl (__NR_Linux + 110)
-#define __NR_vhangup (__NR_Linux + 111)
-#define __NR_idle (__NR_Linux + 112)
-#define __NR_vm86 (__NR_Linux + 113)
-#define __NR_wait4 (__NR_Linux + 114)
-#define __NR_swapoff (__NR_Linux + 115)
-#define __NR_sysinfo (__NR_Linux + 116)
-#define __NR_ipc (__NR_Linux + 117)
-#define __NR_fsync (__NR_Linux + 118)
-#define __NR_sigreturn (__NR_Linux + 119)
-#define __NR_clone (__NR_Linux + 120)
-#define __NR_setdomainname (__NR_Linux + 121)
-#define __NR_uname (__NR_Linux + 122)
-#define __NR_modify_ldt (__NR_Linux + 123)
-#define __NR_adjtimex (__NR_Linux + 124)
-#define __NR_mprotect (__NR_Linux + 125)
-#define __NR_sigprocmask (__NR_Linux + 126)
-#define __NR_create_module (__NR_Linux + 127)
-#define __NR_init_module (__NR_Linux + 128)
-#define __NR_delete_module (__NR_Linux + 129)
-#define __NR_get_kernel_syms (__NR_Linux + 130)
-#define __NR_quotactl (__NR_Linux + 131)
-#define __NR_getpgid (__NR_Linux + 132)
-#define __NR_fchdir (__NR_Linux + 133)
-#define __NR_bdflush (__NR_Linux + 134)
-#define __NR_sysfs (__NR_Linux + 135)
-#define __NR_personality (__NR_Linux + 136)
-#define __NR_afs_syscall (__NR_Linux + 137) /* Syscall for Andrew File System */
-#define __NR_setfsuid (__NR_Linux + 138)
-#define __NR_setfsgid (__NR_Linux + 139)
-#define __NR__llseek (__NR_Linux + 140)
-#define __NR_getdents (__NR_Linux + 141)
-#define __NR__newselect (__NR_Linux + 142)
-#define __NR_flock (__NR_Linux + 143)
-#define __NR_msync (__NR_Linux + 144)
-#define __NR_readv (__NR_Linux + 145)
-#define __NR_writev (__NR_Linux + 146)
-#define __NR_cacheflush (__NR_Linux + 147)
-#define __NR_cachectl (__NR_Linux + 148)
-#define __NR_sysmips (__NR_Linux + 149)
-#define __NR_unused150 (__NR_Linux + 150)
-#define __NR_getsid (__NR_Linux + 151)
-#define __NR_fdatasync (__NR_Linux + 152)
-#define __NR__sysctl (__NR_Linux + 153)
-#define __NR_mlock (__NR_Linux + 154)
-#define __NR_munlock (__NR_Linux + 155)
-#define __NR_mlockall (__NR_Linux + 156)
-#define __NR_munlockall (__NR_Linux + 157)
-#define __NR_sched_setparam (__NR_Linux + 158)
-#define __NR_sched_getparam (__NR_Linux + 159)
-#define __NR_sched_setscheduler (__NR_Linux + 160)
-#define __NR_sched_getscheduler (__NR_Linux + 161)
-#define __NR_sched_yield (__NR_Linux + 162)
-#define __NR_sched_get_priority_max (__NR_Linux + 163)
-#define __NR_sched_get_priority_min (__NR_Linux + 164)
-#define __NR_sched_rr_get_interval (__NR_Linux + 165)
-#define __NR_nanosleep (__NR_Linux + 166)
-#define __NR_mremap (__NR_Linux + 167)
-#define __NR_accept (__NR_Linux + 168)
-#define __NR_bind (__NR_Linux + 169)
-#define __NR_connect (__NR_Linux + 170)
-#define __NR_getpeername (__NR_Linux + 171)
-#define __NR_getsockname (__NR_Linux + 172)
-#define __NR_getsockopt (__NR_Linux + 173)
-#define __NR_listen (__NR_Linux + 174)
-#define __NR_recv (__NR_Linux + 175)
-#define __NR_recvfrom (__NR_Linux + 176)
-#define __NR_recvmsg (__NR_Linux + 177)
-#define __NR_send (__NR_Linux + 178)
-#define __NR_sendmsg (__NR_Linux + 179)
-#define __NR_sendto (__NR_Linux + 180)
-#define __NR_setsockopt (__NR_Linux + 181)
-#define __NR_shutdown (__NR_Linux + 182)
-#define __NR_socket (__NR_Linux + 183)
-#define __NR_socketpair (__NR_Linux + 184)
-#define __NR_setresuid (__NR_Linux + 185)
-#define __NR_getresuid (__NR_Linux + 186)
-#define __NR_query_module (__NR_Linux + 187)
-#define __NR_poll (__NR_Linux + 188)
-#define __NR_nfsservctl (__NR_Linux + 189)
-#define __NR_setresgid (__NR_Linux + 190)
-#define __NR_getresgid (__NR_Linux + 191)
-#define __NR_prctl (__NR_Linux + 192)
-#define __NR_rt_sigreturn (__NR_Linux + 193)
-#define __NR_rt_sigaction (__NR_Linux + 194)
-#define __NR_rt_sigprocmask (__NR_Linux + 195)
-#define __NR_rt_sigpending (__NR_Linux + 196)
-#define __NR_rt_sigtimedwait (__NR_Linux + 197)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 198)
-#define __NR_rt_sigsuspend (__NR_Linux + 199)
-#define __NR_pread64 (__NR_Linux + 200)
-#define __NR_pwrite64 (__NR_Linux + 201)
-#define __NR_chown (__NR_Linux + 202)
-#define __NR_getcwd (__NR_Linux + 203)
-#define __NR_capget (__NR_Linux + 204)
-#define __NR_capset (__NR_Linux + 205)
-#define __NR_sigaltstack (__NR_Linux + 206)
-#define __NR_sendfile (__NR_Linux + 207)
-#define __NR_getpmsg (__NR_Linux + 208)
-#define __NR_putpmsg (__NR_Linux + 209)
-#define __NR_mmap2 (__NR_Linux + 210)
-#define __NR_truncate64 (__NR_Linux + 211)
-#define __NR_ftruncate64 (__NR_Linux + 212)
-#define __NR_stat64 (__NR_Linux + 213)
-#define __NR_lstat64 (__NR_Linux + 214)
-#define __NR_fstat64 (__NR_Linux + 215)
-#define __NR_pivot_root (__NR_Linux + 216)
-#define __NR_mincore (__NR_Linux + 217)
-#define __NR_madvise (__NR_Linux + 218)
-#define __NR_getdents64 (__NR_Linux + 219)
-#define __NR_fcntl64 (__NR_Linux + 220)
-#define __NR_reserved221 (__NR_Linux + 221)
-#define __NR_gettid (__NR_Linux + 222)
-#define __NR_readahead (__NR_Linux + 223)
-#define __NR_setxattr (__NR_Linux + 224)
-#define __NR_lsetxattr (__NR_Linux + 225)
-#define __NR_fsetxattr (__NR_Linux + 226)
-#define __NR_getxattr (__NR_Linux + 227)
-#define __NR_lgetxattr (__NR_Linux + 228)
-#define __NR_fgetxattr (__NR_Linux + 229)
-#define __NR_listxattr (__NR_Linux + 230)
-#define __NR_llistxattr (__NR_Linux + 231)
-#define __NR_flistxattr (__NR_Linux + 232)
-#define __NR_removexattr (__NR_Linux + 233)
-#define __NR_lremovexattr (__NR_Linux + 234)
-#define __NR_fremovexattr (__NR_Linux + 235)
-#define __NR_tkill (__NR_Linux + 236)
-#define __NR_sendfile64 (__NR_Linux + 237)
-#define __NR_futex (__NR_Linux + 238)
-#define __NR_sched_setaffinity (__NR_Linux + 239)
-#define __NR_sched_getaffinity (__NR_Linux + 240)
-#define __NR_io_setup (__NR_Linux + 241)
-#define __NR_io_destroy (__NR_Linux + 242)
-#define __NR_io_getevents (__NR_Linux + 243)
-#define __NR_io_submit (__NR_Linux + 244)
-#define __NR_io_cancel (__NR_Linux + 245)
-#define __NR_exit_group (__NR_Linux + 246)
-#define __NR_lookup_dcookie (__NR_Linux + 247)
-#define __NR_epoll_create (__NR_Linux + 248)
-#define __NR_epoll_ctl (__NR_Linux + 249)
-#define __NR_epoll_wait (__NR_Linux + 250)
-#define __NR_remap_file_pages (__NR_Linux + 251)
-#define __NR_set_tid_address (__NR_Linux + 252)
-#define __NR_restart_syscall (__NR_Linux + 253)
-#define __NR_fadvise64 (__NR_Linux + 254)
-#define __NR_statfs64 (__NR_Linux + 255)
-#define __NR_fstatfs64 (__NR_Linux + 256)
-#define __NR_timer_create (__NR_Linux + 257)
-#define __NR_timer_settime (__NR_Linux + 258)
-#define __NR_timer_gettime (__NR_Linux + 259)
-#define __NR_timer_getoverrun (__NR_Linux + 260)
-#define __NR_timer_delete (__NR_Linux + 261)
-#define __NR_clock_settime (__NR_Linux + 262)
-#define __NR_clock_gettime (__NR_Linux + 263)
-#define __NR_clock_getres (__NR_Linux + 264)
-#define __NR_clock_nanosleep (__NR_Linux + 265)
-#define __NR_tgkill (__NR_Linux + 266)
-#define __NR_utimes (__NR_Linux + 267)
-#define __NR_mbind (__NR_Linux + 268)
-#define __NR_get_mempolicy (__NR_Linux + 269)
-#define __NR_set_mempolicy (__NR_Linux + 270)
-#define __NR_mq_open (__NR_Linux + 271)
-#define __NR_mq_unlink (__NR_Linux + 272)
-#define __NR_mq_timedsend (__NR_Linux + 273)
-#define __NR_mq_timedreceive (__NR_Linux + 274)
-#define __NR_mq_notify (__NR_Linux + 275)
-#define __NR_mq_getsetattr (__NR_Linux + 276)
-#define __NR_vserver (__NR_Linux + 277)
-#define __NR_waitid (__NR_Linux + 278)
-/* #define __NR_sys_setaltroot (__NR_Linux + 279) */
-#define __NR_add_key (__NR_Linux + 280)
-#define __NR_request_key (__NR_Linux + 281)
-#define __NR_keyctl (__NR_Linux + 282)
-#define __NR_set_thread_area (__NR_Linux + 283)
-#define __NR_inotify_init (__NR_Linux + 284)
-#define __NR_inotify_add_watch (__NR_Linux + 285)
-#define __NR_inotify_rm_watch (__NR_Linux + 286)
-#define __NR_migrate_pages (__NR_Linux + 287)
-#define __NR_openat (__NR_Linux + 288)
-#define __NR_mkdirat (__NR_Linux + 289)
-#define __NR_mknodat (__NR_Linux + 290)
-#define __NR_fchownat (__NR_Linux + 291)
-#define __NR_futimesat (__NR_Linux + 292)
-#define __NR_fstatat64 (__NR_Linux + 293)
-#define __NR_unlinkat (__NR_Linux + 294)
-#define __NR_renameat (__NR_Linux + 295)
-#define __NR_linkat (__NR_Linux + 296)
-#define __NR_symlinkat (__NR_Linux + 297)
-#define __NR_readlinkat (__NR_Linux + 298)
-#define __NR_fchmodat (__NR_Linux + 299)
-#define __NR_faccessat (__NR_Linux + 300)
-#define __NR_pselect6 (__NR_Linux + 301)
-#define __NR_ppoll (__NR_Linux + 302)
-#define __NR_unshare (__NR_Linux + 303)
-#define __NR_splice (__NR_Linux + 304)
-#define __NR_sync_file_range (__NR_Linux + 305)
-#define __NR_tee (__NR_Linux + 306)
-#define __NR_vmsplice (__NR_Linux + 307)
-#define __NR_move_pages (__NR_Linux + 308)
-#define __NR_set_robust_list (__NR_Linux + 309)
-#define __NR_get_robust_list (__NR_Linux + 310)
-#define __NR_kexec_load (__NR_Linux + 311)
-#define __NR_getcpu (__NR_Linux + 312)
-#define __NR_epoll_pwait (__NR_Linux + 313)
-#define __NR_ioprio_set (__NR_Linux + 314)
-#define __NR_ioprio_get (__NR_Linux + 315)
-#define __NR_utimensat (__NR_Linux + 316)
-#define __NR_signalfd (__NR_Linux + 317)
-#define __NR_timerfd (__NR_Linux + 318)
-#define __NR_eventfd (__NR_Linux + 319)
-#define __NR_fallocate (__NR_Linux + 320)
-#define __NR_timerfd_create (__NR_Linux + 321)
-#define __NR_timerfd_gettime (__NR_Linux + 322)
-#define __NR_timerfd_settime (__NR_Linux + 323)
-#define __NR_signalfd4 (__NR_Linux + 324)
-#define __NR_eventfd2 (__NR_Linux + 325)
-#define __NR_epoll_create1 (__NR_Linux + 326)
-#define __NR_dup3 (__NR_Linux + 327)
-#define __NR_pipe2 (__NR_Linux + 328)
-#define __NR_inotify_init1 (__NR_Linux + 329)
-#define __NR_preadv (__NR_Linux + 330)
-#define __NR_pwritev (__NR_Linux + 331)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 332)
-#define __NR_perf_event_open (__NR_Linux + 333)
-#define __NR_accept4 (__NR_Linux + 334)
-#define __NR_recvmmsg (__NR_Linux + 335)
-#define __NR_fanotify_init (__NR_Linux + 336)
-#define __NR_fanotify_mark (__NR_Linux + 337)
-#define __NR_prlimit64 (__NR_Linux + 338)
-#define __NR_name_to_handle_at (__NR_Linux + 339)
-#define __NR_open_by_handle_at (__NR_Linux + 340)
-#define __NR_clock_adjtime (__NR_Linux + 341)
-#define __NR_syncfs (__NR_Linux + 342)
-#define __NR_sendmmsg (__NR_Linux + 343)
-#define __NR_setns (__NR_Linux + 344)
-#define __NR_process_vm_readv (__NR_Linux + 345)
-#define __NR_process_vm_writev (__NR_Linux + 346)
-#define __NR_kcmp (__NR_Linux + 347)
-#define __NR_finit_module (__NR_Linux + 348)
-#define __NR_sched_setattr (__NR_Linux + 349)
-#define __NR_sched_getattr (__NR_Linux + 350)
-#define __NR_renameat2 (__NR_Linux + 351)
-#define __NR_seccomp (__NR_Linux + 352)
-#define __NR_getrandom (__NR_Linux + 353)
-#define __NR_memfd_create (__NR_Linux + 354)
-#define __NR_bpf (__NR_Linux + 355)
-#define __NR_execveat (__NR_Linux + 356)
-#define __NR_userfaultfd (__NR_Linux + 357)
-#define __NR_membarrier (__NR_Linux + 358)
-#define __NR_mlock2 (__NR_Linux + 359)
-#define __NR_copy_file_range (__NR_Linux + 360)
-#define __NR_preadv2 (__NR_Linux + 361)
-#define __NR_pwritev2 (__NR_Linux + 362)
-#define __NR_pkey_mprotect (__NR_Linux + 363)
-#define __NR_pkey_alloc (__NR_Linux + 364)
-#define __NR_pkey_free (__NR_Linux + 365)
-#define __NR_statx (__NR_Linux + 366)
-#define __NR_rseq (__NR_Linux + 367)
-#define __NR_io_pgetevents (__NR_Linux + 368)
-
-
-/*
- * Offset of the last Linux o32 flavoured syscall
- */
-#define __NR_Linux_syscalls 368
-
-#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
-
-#define __NR_O32_Linux 4000
-#define __NR_O32_Linux_syscalls 368
-
-#if _MIPS_SIM == _MIPS_SIM_ABI64
-
-/*
- * Linux 64-bit syscalls are in the range from 5000 to 5999.
- */
-#define __NR_Linux 5000
-#define __NR_read (__NR_Linux + 0)
-#define __NR_write (__NR_Linux + 1)
-#define __NR_open (__NR_Linux + 2)
-#define __NR_close (__NR_Linux + 3)
-#define __NR_stat (__NR_Linux + 4)
-#define __NR_fstat (__NR_Linux + 5)
-#define __NR_lstat (__NR_Linux + 6)
-#define __NR_poll (__NR_Linux + 7)
-#define __NR_lseek (__NR_Linux + 8)
-#define __NR_mmap (__NR_Linux + 9)
-#define __NR_mprotect (__NR_Linux + 10)
-#define __NR_munmap (__NR_Linux + 11)
-#define __NR_brk (__NR_Linux + 12)
-#define __NR_rt_sigaction (__NR_Linux + 13)
-#define __NR_rt_sigprocmask (__NR_Linux + 14)
-#define __NR_ioctl (__NR_Linux + 15)
-#define __NR_pread64 (__NR_Linux + 16)
-#define __NR_pwrite64 (__NR_Linux + 17)
-#define __NR_readv (__NR_Linux + 18)
-#define __NR_writev (__NR_Linux + 19)
-#define __NR_access (__NR_Linux + 20)
-#define __NR_pipe (__NR_Linux + 21)
-#define __NR__newselect (__NR_Linux + 22)
-#define __NR_sched_yield (__NR_Linux + 23)
-#define __NR_mremap (__NR_Linux + 24)
-#define __NR_msync (__NR_Linux + 25)
-#define __NR_mincore (__NR_Linux + 26)
-#define __NR_madvise (__NR_Linux + 27)
-#define __NR_shmget (__NR_Linux + 28)
-#define __NR_shmat (__NR_Linux + 29)
-#define __NR_shmctl (__NR_Linux + 30)
-#define __NR_dup (__NR_Linux + 31)
-#define __NR_dup2 (__NR_Linux + 32)
-#define __NR_pause (__NR_Linux + 33)
-#define __NR_nanosleep (__NR_Linux + 34)
-#define __NR_getitimer (__NR_Linux + 35)
-#define __NR_setitimer (__NR_Linux + 36)
-#define __NR_alarm (__NR_Linux + 37)
-#define __NR_getpid (__NR_Linux + 38)
-#define __NR_sendfile (__NR_Linux + 39)
-#define __NR_socket (__NR_Linux + 40)
-#define __NR_connect (__NR_Linux + 41)
-#define __NR_accept (__NR_Linux + 42)
-#define __NR_sendto (__NR_Linux + 43)
-#define __NR_recvfrom (__NR_Linux + 44)
-#define __NR_sendmsg (__NR_Linux + 45)
-#define __NR_recvmsg (__NR_Linux + 46)
-#define __NR_shutdown (__NR_Linux + 47)
-#define __NR_bind (__NR_Linux + 48)
-#define __NR_listen (__NR_Linux + 49)
-#define __NR_getsockname (__NR_Linux + 50)
-#define __NR_getpeername (__NR_Linux + 51)
-#define __NR_socketpair (__NR_Linux + 52)
-#define __NR_setsockopt (__NR_Linux + 53)
-#define __NR_getsockopt (__NR_Linux + 54)
-#define __NR_clone (__NR_Linux + 55)
-#define __NR_fork (__NR_Linux + 56)
-#define __NR_execve (__NR_Linux + 57)
-#define __NR_exit (__NR_Linux + 58)
-#define __NR_wait4 (__NR_Linux + 59)
-#define __NR_kill (__NR_Linux + 60)
-#define __NR_uname (__NR_Linux + 61)
-#define __NR_semget (__NR_Linux + 62)
-#define __NR_semop (__NR_Linux + 63)
-#define __NR_semctl (__NR_Linux + 64)
-#define __NR_shmdt (__NR_Linux + 65)
-#define __NR_msgget (__NR_Linux + 66)
-#define __NR_msgsnd (__NR_Linux + 67)
-#define __NR_msgrcv (__NR_Linux + 68)
-#define __NR_msgctl (__NR_Linux + 69)
-#define __NR_fcntl (__NR_Linux + 70)
-#define __NR_flock (__NR_Linux + 71)
-#define __NR_fsync (__NR_Linux + 72)
-#define __NR_fdatasync (__NR_Linux + 73)
-#define __NR_truncate (__NR_Linux + 74)
-#define __NR_ftruncate (__NR_Linux + 75)
-#define __NR_getdents (__NR_Linux + 76)
-#define __NR_getcwd (__NR_Linux + 77)
-#define __NR_chdir (__NR_Linux + 78)
-#define __NR_fchdir (__NR_Linux + 79)
-#define __NR_rename (__NR_Linux + 80)
-#define __NR_mkdir (__NR_Linux + 81)
-#define __NR_rmdir (__NR_Linux + 82)
-#define __NR_creat (__NR_Linux + 83)
-#define __NR_link (__NR_Linux + 84)
-#define __NR_unlink (__NR_Linux + 85)
-#define __NR_symlink (__NR_Linux + 86)
-#define __NR_readlink (__NR_Linux + 87)
-#define __NR_chmod (__NR_Linux + 88)
-#define __NR_fchmod (__NR_Linux + 89)
-#define __NR_chown (__NR_Linux + 90)
-#define __NR_fchown (__NR_Linux + 91)
-#define __NR_lchown (__NR_Linux + 92)
-#define __NR_umask (__NR_Linux + 93)
-#define __NR_gettimeofday (__NR_Linux + 94)
-#define __NR_getrlimit (__NR_Linux + 95)
-#define __NR_getrusage (__NR_Linux + 96)
-#define __NR_sysinfo (__NR_Linux + 97)
-#define __NR_times (__NR_Linux + 98)
-#define __NR_ptrace (__NR_Linux + 99)
-#define __NR_getuid (__NR_Linux + 100)
-#define __NR_syslog (__NR_Linux + 101)
-#define __NR_getgid (__NR_Linux + 102)
-#define __NR_setuid (__NR_Linux + 103)
-#define __NR_setgid (__NR_Linux + 104)
-#define __NR_geteuid (__NR_Linux + 105)
-#define __NR_getegid (__NR_Linux + 106)
-#define __NR_setpgid (__NR_Linux + 107)
-#define __NR_getppid (__NR_Linux + 108)
-#define __NR_getpgrp (__NR_Linux + 109)
-#define __NR_setsid (__NR_Linux + 110)
-#define __NR_setreuid (__NR_Linux + 111)
-#define __NR_setregid (__NR_Linux + 112)
-#define __NR_getgroups (__NR_Linux + 113)
-#define __NR_setgroups (__NR_Linux + 114)
-#define __NR_setresuid (__NR_Linux + 115)
-#define __NR_getresuid (__NR_Linux + 116)
-#define __NR_setresgid (__NR_Linux + 117)
-#define __NR_getresgid (__NR_Linux + 118)
-#define __NR_getpgid (__NR_Linux + 119)
-#define __NR_setfsuid (__NR_Linux + 120)
-#define __NR_setfsgid (__NR_Linux + 121)
-#define __NR_getsid (__NR_Linux + 122)
-#define __NR_capget (__NR_Linux + 123)
-#define __NR_capset (__NR_Linux + 124)
-#define __NR_rt_sigpending (__NR_Linux + 125)
-#define __NR_rt_sigtimedwait (__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 127)
-#define __NR_rt_sigsuspend (__NR_Linux + 128)
-#define __NR_sigaltstack (__NR_Linux + 129)
-#define __NR_utime (__NR_Linux + 130)
-#define __NR_mknod (__NR_Linux + 131)
-#define __NR_personality (__NR_Linux + 132)
-#define __NR_ustat (__NR_Linux + 133)
-#define __NR_statfs (__NR_Linux + 134)
-#define __NR_fstatfs (__NR_Linux + 135)
-#define __NR_sysfs (__NR_Linux + 136)
-#define __NR_getpriority (__NR_Linux + 137)
-#define __NR_setpriority (__NR_Linux + 138)
-#define __NR_sched_setparam (__NR_Linux + 139)
-#define __NR_sched_getparam (__NR_Linux + 140)
-#define __NR_sched_setscheduler (__NR_Linux + 141)
-#define __NR_sched_getscheduler (__NR_Linux + 142)
-#define __NR_sched_get_priority_max (__NR_Linux + 143)
-#define __NR_sched_get_priority_min (__NR_Linux + 144)
-#define __NR_sched_rr_get_interval (__NR_Linux + 145)
-#define __NR_mlock (__NR_Linux + 146)
-#define __NR_munlock (__NR_Linux + 147)
-#define __NR_mlockall (__NR_Linux + 148)
-#define __NR_munlockall (__NR_Linux + 149)
-#define __NR_vhangup (__NR_Linux + 150)
-#define __NR_pivot_root (__NR_Linux + 151)
-#define __NR__sysctl (__NR_Linux + 152)
-#define __NR_prctl (__NR_Linux + 153)
-#define __NR_adjtimex (__NR_Linux + 154)
-#define __NR_setrlimit (__NR_Linux + 155)
-#define __NR_chroot (__NR_Linux + 156)
-#define __NR_sync (__NR_Linux + 157)
-#define __NR_acct (__NR_Linux + 158)
-#define __NR_settimeofday (__NR_Linux + 159)
-#define __NR_mount (__NR_Linux + 160)
-#define __NR_umount2 (__NR_Linux + 161)
-#define __NR_swapon (__NR_Linux + 162)
-#define __NR_swapoff (__NR_Linux + 163)
-#define __NR_reboot (__NR_Linux + 164)
-#define __NR_sethostname (__NR_Linux + 165)
-#define __NR_setdomainname (__NR_Linux + 166)
-#define __NR_create_module (__NR_Linux + 167)
-#define __NR_init_module (__NR_Linux + 168)
-#define __NR_delete_module (__NR_Linux + 169)
-#define __NR_get_kernel_syms (__NR_Linux + 170)
-#define __NR_query_module (__NR_Linux + 171)
-#define __NR_quotactl (__NR_Linux + 172)
-#define __NR_nfsservctl (__NR_Linux + 173)
-#define __NR_getpmsg (__NR_Linux + 174)
-#define __NR_putpmsg (__NR_Linux + 175)
-#define __NR_afs_syscall (__NR_Linux + 176)
-#define __NR_reserved177 (__NR_Linux + 177)
-#define __NR_gettid (__NR_Linux + 178)
-#define __NR_readahead (__NR_Linux + 179)
-#define __NR_setxattr (__NR_Linux + 180)
-#define __NR_lsetxattr (__NR_Linux + 181)
-#define __NR_fsetxattr (__NR_Linux + 182)
-#define __NR_getxattr (__NR_Linux + 183)
-#define __NR_lgetxattr (__NR_Linux + 184)
-#define __NR_fgetxattr (__NR_Linux + 185)
-#define __NR_listxattr (__NR_Linux + 186)
-#define __NR_llistxattr (__NR_Linux + 187)
-#define __NR_flistxattr (__NR_Linux + 188)
-#define __NR_removexattr (__NR_Linux + 189)
-#define __NR_lremovexattr (__NR_Linux + 190)
-#define __NR_fremovexattr (__NR_Linux + 191)
-#define __NR_tkill (__NR_Linux + 192)
-#define __NR_reserved193 (__NR_Linux + 193)
-#define __NR_futex (__NR_Linux + 194)
-#define __NR_sched_setaffinity (__NR_Linux + 195)
-#define __NR_sched_getaffinity (__NR_Linux + 196)
-#define __NR_cacheflush (__NR_Linux + 197)
-#define __NR_cachectl (__NR_Linux + 198)
-#define __NR_sysmips (__NR_Linux + 199)
-#define __NR_io_setup (__NR_Linux + 200)
-#define __NR_io_destroy (__NR_Linux + 201)
-#define __NR_io_getevents (__NR_Linux + 202)
-#define __NR_io_submit (__NR_Linux + 203)
-#define __NR_io_cancel (__NR_Linux + 204)
-#define __NR_exit_group (__NR_Linux + 205)
-#define __NR_lookup_dcookie (__NR_Linux + 206)
-#define __NR_epoll_create (__NR_Linux + 207)
-#define __NR_epoll_ctl (__NR_Linux + 208)
-#define __NR_epoll_wait (__NR_Linux + 209)
-#define __NR_remap_file_pages (__NR_Linux + 210)
-#define __NR_rt_sigreturn (__NR_Linux + 211)
-#define __NR_set_tid_address (__NR_Linux + 212)
-#define __NR_restart_syscall (__NR_Linux + 213)
-#define __NR_semtimedop (__NR_Linux + 214)
-#define __NR_fadvise64 (__NR_Linux + 215)
-#define __NR_timer_create (__NR_Linux + 216)
-#define __NR_timer_settime (__NR_Linux + 217)
-#define __NR_timer_gettime (__NR_Linux + 218)
-#define __NR_timer_getoverrun (__NR_Linux + 219)
-#define __NR_timer_delete (__NR_Linux + 220)
-#define __NR_clock_settime (__NR_Linux + 221)
-#define __NR_clock_gettime (__NR_Linux + 222)
-#define __NR_clock_getres (__NR_Linux + 223)
-#define __NR_clock_nanosleep (__NR_Linux + 224)
-#define __NR_tgkill (__NR_Linux + 225)
-#define __NR_utimes (__NR_Linux + 226)
-#define __NR_mbind (__NR_Linux + 227)
-#define __NR_get_mempolicy (__NR_Linux + 228)
-#define __NR_set_mempolicy (__NR_Linux + 229)
-#define __NR_mq_open (__NR_Linux + 230)
-#define __NR_mq_unlink (__NR_Linux + 231)
-#define __NR_mq_timedsend (__NR_Linux + 232)
-#define __NR_mq_timedreceive (__NR_Linux + 233)
-#define __NR_mq_notify (__NR_Linux + 234)
-#define __NR_mq_getsetattr (__NR_Linux + 235)
-#define __NR_vserver (__NR_Linux + 236)
-#define __NR_waitid (__NR_Linux + 237)
-/* #define __NR_sys_setaltroot (__NR_Linux + 238) */
-#define __NR_add_key (__NR_Linux + 239)
-#define __NR_request_key (__NR_Linux + 240)
-#define __NR_keyctl (__NR_Linux + 241)
-#define __NR_set_thread_area (__NR_Linux + 242)
-#define __NR_inotify_init (__NR_Linux + 243)
-#define __NR_inotify_add_watch (__NR_Linux + 244)
-#define __NR_inotify_rm_watch (__NR_Linux + 245)
-#define __NR_migrate_pages (__NR_Linux + 246)
-#define __NR_openat (__NR_Linux + 247)
-#define __NR_mkdirat (__NR_Linux + 248)
-#define __NR_mknodat (__NR_Linux + 249)
-#define __NR_fchownat (__NR_Linux + 250)
-#define __NR_futimesat (__NR_Linux + 251)
-#define __NR_newfstatat (__NR_Linux + 252)
-#define __NR_unlinkat (__NR_Linux + 253)
-#define __NR_renameat (__NR_Linux + 254)
-#define __NR_linkat (__NR_Linux + 255)
-#define __NR_symlinkat (__NR_Linux + 256)
-#define __NR_readlinkat (__NR_Linux + 257)
-#define __NR_fchmodat (__NR_Linux + 258)
-#define __NR_faccessat (__NR_Linux + 259)
-#define __NR_pselect6 (__NR_Linux + 260)
-#define __NR_ppoll (__NR_Linux + 261)
-#define __NR_unshare (__NR_Linux + 262)
-#define __NR_splice (__NR_Linux + 263)
-#define __NR_sync_file_range (__NR_Linux + 264)
-#define __NR_tee (__NR_Linux + 265)
-#define __NR_vmsplice (__NR_Linux + 266)
-#define __NR_move_pages (__NR_Linux + 267)
-#define __NR_set_robust_list (__NR_Linux + 268)
-#define __NR_get_robust_list (__NR_Linux + 269)
-#define __NR_kexec_load (__NR_Linux + 270)
-#define __NR_getcpu (__NR_Linux + 271)
-#define __NR_epoll_pwait (__NR_Linux + 272)
-#define __NR_ioprio_set (__NR_Linux + 273)
-#define __NR_ioprio_get (__NR_Linux + 274)
-#define __NR_utimensat (__NR_Linux + 275)
-#define __NR_signalfd (__NR_Linux + 276)
-#define __NR_timerfd (__NR_Linux + 277)
-#define __NR_eventfd (__NR_Linux + 278)
-#define __NR_fallocate (__NR_Linux + 279)
-#define __NR_timerfd_create (__NR_Linux + 280)
-#define __NR_timerfd_gettime (__NR_Linux + 281)
-#define __NR_timerfd_settime (__NR_Linux + 282)
-#define __NR_signalfd4 (__NR_Linux + 283)
-#define __NR_eventfd2 (__NR_Linux + 284)
-#define __NR_epoll_create1 (__NR_Linux + 285)
-#define __NR_dup3 (__NR_Linux + 286)
-#define __NR_pipe2 (__NR_Linux + 287)
-#define __NR_inotify_init1 (__NR_Linux + 288)
-#define __NR_preadv (__NR_Linux + 289)
-#define __NR_pwritev (__NR_Linux + 290)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 291)
-#define __NR_perf_event_open (__NR_Linux + 292)
-#define __NR_accept4 (__NR_Linux + 293)
-#define __NR_recvmmsg (__NR_Linux + 294)
-#define __NR_fanotify_init (__NR_Linux + 295)
-#define __NR_fanotify_mark (__NR_Linux + 296)
-#define __NR_prlimit64 (__NR_Linux + 297)
-#define __NR_name_to_handle_at (__NR_Linux + 298)
-#define __NR_open_by_handle_at (__NR_Linux + 299)
-#define __NR_clock_adjtime (__NR_Linux + 300)
-#define __NR_syncfs (__NR_Linux + 301)
-#define __NR_sendmmsg (__NR_Linux + 302)
-#define __NR_setns (__NR_Linux + 303)
-#define __NR_process_vm_readv (__NR_Linux + 304)
-#define __NR_process_vm_writev (__NR_Linux + 305)
-#define __NR_kcmp (__NR_Linux + 306)
-#define __NR_finit_module (__NR_Linux + 307)
-#define __NR_getdents64 (__NR_Linux + 308)
-#define __NR_sched_setattr (__NR_Linux + 309)
-#define __NR_sched_getattr (__NR_Linux + 310)
-#define __NR_renameat2 (__NR_Linux + 311)
-#define __NR_seccomp (__NR_Linux + 312)
-#define __NR_getrandom (__NR_Linux + 313)
-#define __NR_memfd_create (__NR_Linux + 314)
-#define __NR_bpf (__NR_Linux + 315)
-#define __NR_execveat (__NR_Linux + 316)
-#define __NR_userfaultfd (__NR_Linux + 317)
-#define __NR_membarrier (__NR_Linux + 318)
-#define __NR_mlock2 (__NR_Linux + 319)
-#define __NR_copy_file_range (__NR_Linux + 320)
-#define __NR_preadv2 (__NR_Linux + 321)
-#define __NR_pwritev2 (__NR_Linux + 322)
-#define __NR_pkey_mprotect (__NR_Linux + 323)
-#define __NR_pkey_alloc (__NR_Linux + 324)
-#define __NR_pkey_free (__NR_Linux + 325)
-#define __NR_statx (__NR_Linux + 326)
-#define __NR_rseq (__NR_Linux + 327)
-#define __NR_io_pgetevents (__NR_Linux + 328)
-
-/*
- * Offset of the last Linux 64-bit flavoured syscall
- */
-#define __NR_Linux_syscalls 328
-
-#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
-
-#define __NR_64_Linux 5000
-#define __NR_64_Linux_syscalls 328
-
-#if _MIPS_SIM == _MIPS_SIM_NABI32
-
-/*
- * Linux N32 syscalls are in the range from 6000 to 6999.
- */
-#define __NR_Linux 6000
-#define __NR_read (__NR_Linux + 0)
-#define __NR_write (__NR_Linux + 1)
-#define __NR_open (__NR_Linux + 2)
-#define __NR_close (__NR_Linux + 3)
-#define __NR_stat (__NR_Linux + 4)
-#define __NR_fstat (__NR_Linux + 5)
-#define __NR_lstat (__NR_Linux + 6)
-#define __NR_poll (__NR_Linux + 7)
-#define __NR_lseek (__NR_Linux + 8)
-#define __NR_mmap (__NR_Linux + 9)
-#define __NR_mprotect (__NR_Linux + 10)
-#define __NR_munmap (__NR_Linux + 11)
-#define __NR_brk (__NR_Linux + 12)
-#define __NR_rt_sigaction (__NR_Linux + 13)
-#define __NR_rt_sigprocmask (__NR_Linux + 14)
-#define __NR_ioctl (__NR_Linux + 15)
-#define __NR_pread64 (__NR_Linux + 16)
-#define __NR_pwrite64 (__NR_Linux + 17)
-#define __NR_readv (__NR_Linux + 18)
-#define __NR_writev (__NR_Linux + 19)
-#define __NR_access (__NR_Linux + 20)
-#define __NR_pipe (__NR_Linux + 21)
-#define __NR__newselect (__NR_Linux + 22)
-#define __NR_sched_yield (__NR_Linux + 23)
-#define __NR_mremap (__NR_Linux + 24)
-#define __NR_msync (__NR_Linux + 25)
-#define __NR_mincore (__NR_Linux + 26)
-#define __NR_madvise (__NR_Linux + 27)
-#define __NR_shmget (__NR_Linux + 28)
-#define __NR_shmat (__NR_Linux + 29)
-#define __NR_shmctl (__NR_Linux + 30)
-#define __NR_dup (__NR_Linux + 31)
-#define __NR_dup2 (__NR_Linux + 32)
-#define __NR_pause (__NR_Linux + 33)
-#define __NR_nanosleep (__NR_Linux + 34)
-#define __NR_getitimer (__NR_Linux + 35)
-#define __NR_setitimer (__NR_Linux + 36)
-#define __NR_alarm (__NR_Linux + 37)
-#define __NR_getpid (__NR_Linux + 38)
-#define __NR_sendfile (__NR_Linux + 39)
-#define __NR_socket (__NR_Linux + 40)
-#define __NR_connect (__NR_Linux + 41)
-#define __NR_accept (__NR_Linux + 42)
-#define __NR_sendto (__NR_Linux + 43)
-#define __NR_recvfrom (__NR_Linux + 44)
-#define __NR_sendmsg (__NR_Linux + 45)
-#define __NR_recvmsg (__NR_Linux + 46)
-#define __NR_shutdown (__NR_Linux + 47)
-#define __NR_bind (__NR_Linux + 48)
-#define __NR_listen (__NR_Linux + 49)
-#define __NR_getsockname (__NR_Linux + 50)
-#define __NR_getpeername (__NR_Linux + 51)
-#define __NR_socketpair (__NR_Linux + 52)
-#define __NR_setsockopt (__NR_Linux + 53)
-#define __NR_getsockopt (__NR_Linux + 54)
-#define __NR_clone (__NR_Linux + 55)
-#define __NR_fork (__NR_Linux + 56)
-#define __NR_execve (__NR_Linux + 57)
-#define __NR_exit (__NR_Linux + 58)
-#define __NR_wait4 (__NR_Linux + 59)
-#define __NR_kill (__NR_Linux + 60)
-#define __NR_uname (__NR_Linux + 61)
-#define __NR_semget (__NR_Linux + 62)
-#define __NR_semop (__NR_Linux + 63)
-#define __NR_semctl (__NR_Linux + 64)
-#define __NR_shmdt (__NR_Linux + 65)
-#define __NR_msgget (__NR_Linux + 66)
-#define __NR_msgsnd (__NR_Linux + 67)
-#define __NR_msgrcv (__NR_Linux + 68)
-#define __NR_msgctl (__NR_Linux + 69)
-#define __NR_fcntl (__NR_Linux + 70)
-#define __NR_flock (__NR_Linux + 71)
-#define __NR_fsync (__NR_Linux + 72)
-#define __NR_fdatasync (__NR_Linux + 73)
-#define __NR_truncate (__NR_Linux + 74)
-#define __NR_ftruncate (__NR_Linux + 75)
-#define __NR_getdents (__NR_Linux + 76)
-#define __NR_getcwd (__NR_Linux + 77)
-#define __NR_chdir (__NR_Linux + 78)
-#define __NR_fchdir (__NR_Linux + 79)
-#define __NR_rename (__NR_Linux + 80)
-#define __NR_mkdir (__NR_Linux + 81)
-#define __NR_rmdir (__NR_Linux + 82)
-#define __NR_creat (__NR_Linux + 83)
-#define __NR_link (__NR_Linux + 84)
-#define __NR_unlink (__NR_Linux + 85)
-#define __NR_symlink (__NR_Linux + 86)
-#define __NR_readlink (__NR_Linux + 87)
-#define __NR_chmod (__NR_Linux + 88)
-#define __NR_fchmod (__NR_Linux + 89)
-#define __NR_chown (__NR_Linux + 90)
-#define __NR_fchown (__NR_Linux + 91)
-#define __NR_lchown (__NR_Linux + 92)
-#define __NR_umask (__NR_Linux + 93)
-#define __NR_gettimeofday (__NR_Linux + 94)
-#define __NR_getrlimit (__NR_Linux + 95)
-#define __NR_getrusage (__NR_Linux + 96)
-#define __NR_sysinfo (__NR_Linux + 97)
-#define __NR_times (__NR_Linux + 98)
-#define __NR_ptrace (__NR_Linux + 99)
-#define __NR_getuid (__NR_Linux + 100)
-#define __NR_syslog (__NR_Linux + 101)
-#define __NR_getgid (__NR_Linux + 102)
-#define __NR_setuid (__NR_Linux + 103)
-#define __NR_setgid (__NR_Linux + 104)
-#define __NR_geteuid (__NR_Linux + 105)
-#define __NR_getegid (__NR_Linux + 106)
-#define __NR_setpgid (__NR_Linux + 107)
-#define __NR_getppid (__NR_Linux + 108)
-#define __NR_getpgrp (__NR_Linux + 109)
-#define __NR_setsid (__NR_Linux + 110)
-#define __NR_setreuid (__NR_Linux + 111)
-#define __NR_setregid (__NR_Linux + 112)
-#define __NR_getgroups (__NR_Linux + 113)
-#define __NR_setgroups (__NR_Linux + 114)
-#define __NR_setresuid (__NR_Linux + 115)
-#define __NR_getresuid (__NR_Linux + 116)
-#define __NR_setresgid (__NR_Linux + 117)
-#define __NR_getresgid (__NR_Linux + 118)
-#define __NR_getpgid (__NR_Linux + 119)
-#define __NR_setfsuid (__NR_Linux + 120)
-#define __NR_setfsgid (__NR_Linux + 121)
-#define __NR_getsid (__NR_Linux + 122)
-#define __NR_capget (__NR_Linux + 123)
-#define __NR_capset (__NR_Linux + 124)
-#define __NR_rt_sigpending (__NR_Linux + 125)
-#define __NR_rt_sigtimedwait (__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 127)
-#define __NR_rt_sigsuspend (__NR_Linux + 128)
-#define __NR_sigaltstack (__NR_Linux + 129)
-#define __NR_utime (__NR_Linux + 130)
-#define __NR_mknod (__NR_Linux + 131)
-#define __NR_personality (__NR_Linux + 132)
-#define __NR_ustat (__NR_Linux + 133)
-#define __NR_statfs (__NR_Linux + 134)
-#define __NR_fstatfs (__NR_Linux + 135)
-#define __NR_sysfs (__NR_Linux + 136)
-#define __NR_getpriority (__NR_Linux + 137)
-#define __NR_setpriority (__NR_Linux + 138)
-#define __NR_sched_setparam (__NR_Linux + 139)
-#define __NR_sched_getparam (__NR_Linux + 140)
-#define __NR_sched_setscheduler (__NR_Linux + 141)
-#define __NR_sched_getscheduler (__NR_Linux + 142)
-#define __NR_sched_get_priority_max (__NR_Linux + 143)
-#define __NR_sched_get_priority_min (__NR_Linux + 144)
-#define __NR_sched_rr_get_interval (__NR_Linux + 145)
-#define __NR_mlock (__NR_Linux + 146)
-#define __NR_munlock (__NR_Linux + 147)
-#define __NR_mlockall (__NR_Linux + 148)
-#define __NR_munlockall (__NR_Linux + 149)
-#define __NR_vhangup (__NR_Linux + 150)
-#define __NR_pivot_root (__NR_Linux + 151)
-#define __NR__sysctl (__NR_Linux + 152)
-#define __NR_prctl (__NR_Linux + 153)
-#define __NR_adjtimex (__NR_Linux + 154)
-#define __NR_setrlimit (__NR_Linux + 155)
-#define __NR_chroot (__NR_Linux + 156)
-#define __NR_sync (__NR_Linux + 157)
-#define __NR_acct (__NR_Linux + 158)
-#define __NR_settimeofday (__NR_Linux + 159)
-#define __NR_mount (__NR_Linux + 160)
-#define __NR_umount2 (__NR_Linux + 161)
-#define __NR_swapon (__NR_Linux + 162)
-#define __NR_swapoff (__NR_Linux + 163)
-#define __NR_reboot (__NR_Linux + 164)
-#define __NR_sethostname (__NR_Linux + 165)
-#define __NR_setdomainname (__NR_Linux + 166)
-#define __NR_create_module (__NR_Linux + 167)
-#define __NR_init_module (__NR_Linux + 168)
-#define __NR_delete_module (__NR_Linux + 169)
-#define __NR_get_kernel_syms (__NR_Linux + 170)
-#define __NR_query_module (__NR_Linux + 171)
-#define __NR_quotactl (__NR_Linux + 172)
-#define __NR_nfsservctl (__NR_Linux + 173)
-#define __NR_getpmsg (__NR_Linux + 174)
-#define __NR_putpmsg (__NR_Linux + 175)
-#define __NR_afs_syscall (__NR_Linux + 176)
-#define __NR_reserved177 (__NR_Linux + 177)
-#define __NR_gettid (__NR_Linux + 178)
-#define __NR_readahead (__NR_Linux + 179)
-#define __NR_setxattr (__NR_Linux + 180)
-#define __NR_lsetxattr (__NR_Linux + 181)
-#define __NR_fsetxattr (__NR_Linux + 182)
-#define __NR_getxattr (__NR_Linux + 183)
-#define __NR_lgetxattr (__NR_Linux + 184)
-#define __NR_fgetxattr (__NR_Linux + 185)
-#define __NR_listxattr (__NR_Linux + 186)
-#define __NR_llistxattr (__NR_Linux + 187)
-#define __NR_flistxattr (__NR_Linux + 188)
-#define __NR_removexattr (__NR_Linux + 189)
-#define __NR_lremovexattr (__NR_Linux + 190)
-#define __NR_fremovexattr (__NR_Linux + 191)
-#define __NR_tkill (__NR_Linux + 192)
-#define __NR_reserved193 (__NR_Linux + 193)
-#define __NR_futex (__NR_Linux + 194)
-#define __NR_sched_setaffinity (__NR_Linux + 195)
-#define __NR_sched_getaffinity (__NR_Linux + 196)
-#define __NR_cacheflush (__NR_Linux + 197)
-#define __NR_cachectl (__NR_Linux + 198)
-#define __NR_sysmips (__NR_Linux + 199)
-#define __NR_io_setup (__NR_Linux + 200)
-#define __NR_io_destroy (__NR_Linux + 201)
-#define __NR_io_getevents (__NR_Linux + 202)
-#define __NR_io_submit (__NR_Linux + 203)
-#define __NR_io_cancel (__NR_Linux + 204)
-#define __NR_exit_group (__NR_Linux + 205)
-#define __NR_lookup_dcookie (__NR_Linux + 206)
-#define __NR_epoll_create (__NR_Linux + 207)
-#define __NR_epoll_ctl (__NR_Linux + 208)
-#define __NR_epoll_wait (__NR_Linux + 209)
-#define __NR_remap_file_pages (__NR_Linux + 210)
-#define __NR_rt_sigreturn (__NR_Linux + 211)
-#define __NR_fcntl64 (__NR_Linux + 212)
-#define __NR_set_tid_address (__NR_Linux + 213)
-#define __NR_restart_syscall (__NR_Linux + 214)
-#define __NR_semtimedop (__NR_Linux + 215)
-#define __NR_fadvise64 (__NR_Linux + 216)
-#define __NR_statfs64 (__NR_Linux + 217)
-#define __NR_fstatfs64 (__NR_Linux + 218)
-#define __NR_sendfile64 (__NR_Linux + 219)
-#define __NR_timer_create (__NR_Linux + 220)
-#define __NR_timer_settime (__NR_Linux + 221)
-#define __NR_timer_gettime (__NR_Linux + 222)
-#define __NR_timer_getoverrun (__NR_Linux + 223)
-#define __NR_timer_delete (__NR_Linux + 224)
-#define __NR_clock_settime (__NR_Linux + 225)
-#define __NR_clock_gettime (__NR_Linux + 226)
-#define __NR_clock_getres (__NR_Linux + 227)
-#define __NR_clock_nanosleep (__NR_Linux + 228)
-#define __NR_tgkill (__NR_Linux + 229)
-#define __NR_utimes (__NR_Linux + 230)
-#define __NR_mbind (__NR_Linux + 231)
-#define __NR_get_mempolicy (__NR_Linux + 232)
-#define __NR_set_mempolicy (__NR_Linux + 233)
-#define __NR_mq_open (__NR_Linux + 234)
-#define __NR_mq_unlink (__NR_Linux + 235)
-#define __NR_mq_timedsend (__NR_Linux + 236)
-#define __NR_mq_timedreceive (__NR_Linux + 237)
-#define __NR_mq_notify (__NR_Linux + 238)
-#define __NR_mq_getsetattr (__NR_Linux + 239)
-#define __NR_vserver (__NR_Linux + 240)
-#define __NR_waitid (__NR_Linux + 241)
-/* #define __NR_sys_setaltroot (__NR_Linux + 242) */
-#define __NR_add_key (__NR_Linux + 243)
-#define __NR_request_key (__NR_Linux + 244)
-#define __NR_keyctl (__NR_Linux + 245)
-#define __NR_set_thread_area (__NR_Linux + 246)
-#define __NR_inotify_init (__NR_Linux + 247)
-#define __NR_inotify_add_watch (__NR_Linux + 248)
-#define __NR_inotify_rm_watch (__NR_Linux + 249)
-#define __NR_migrate_pages (__NR_Linux + 250)
-#define __NR_openat (__NR_Linux + 251)
-#define __NR_mkdirat (__NR_Linux + 252)
-#define __NR_mknodat (__NR_Linux + 253)
-#define __NR_fchownat (__NR_Linux + 254)
-#define __NR_futimesat (__NR_Linux + 255)
-#define __NR_newfstatat (__NR_Linux + 256)
-#define __NR_unlinkat (__NR_Linux + 257)
-#define __NR_renameat (__NR_Linux + 258)
-#define __NR_linkat (__NR_Linux + 259)
-#define __NR_symlinkat (__NR_Linux + 260)
-#define __NR_readlinkat (__NR_Linux + 261)
-#define __NR_fchmodat (__NR_Linux + 262)
-#define __NR_faccessat (__NR_Linux + 263)
-#define __NR_pselect6 (__NR_Linux + 264)
-#define __NR_ppoll (__NR_Linux + 265)
-#define __NR_unshare (__NR_Linux + 266)
-#define __NR_splice (__NR_Linux + 267)
-#define __NR_sync_file_range (__NR_Linux + 268)
-#define __NR_tee (__NR_Linux + 269)
-#define __NR_vmsplice (__NR_Linux + 270)
-#define __NR_move_pages (__NR_Linux + 271)
-#define __NR_set_robust_list (__NR_Linux + 272)
-#define __NR_get_robust_list (__NR_Linux + 273)
-#define __NR_kexec_load (__NR_Linux + 274)
-#define __NR_getcpu (__NR_Linux + 275)
-#define __NR_epoll_pwait (__NR_Linux + 276)
-#define __NR_ioprio_set (__NR_Linux + 277)
-#define __NR_ioprio_get (__NR_Linux + 278)
-#define __NR_utimensat (__NR_Linux + 279)
-#define __NR_signalfd (__NR_Linux + 280)
-#define __NR_timerfd (__NR_Linux + 281)
-#define __NR_eventfd (__NR_Linux + 282)
-#define __NR_fallocate (__NR_Linux + 283)
-#define __NR_timerfd_create (__NR_Linux + 284)
-#define __NR_timerfd_gettime (__NR_Linux + 285)
-#define __NR_timerfd_settime (__NR_Linux + 286)
-#define __NR_signalfd4 (__NR_Linux + 287)
-#define __NR_eventfd2 (__NR_Linux + 288)
-#define __NR_epoll_create1 (__NR_Linux + 289)
-#define __NR_dup3 (__NR_Linux + 290)
-#define __NR_pipe2 (__NR_Linux + 291)
-#define __NR_inotify_init1 (__NR_Linux + 292)
-#define __NR_preadv (__NR_Linux + 293)
-#define __NR_pwritev (__NR_Linux + 294)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 295)
-#define __NR_perf_event_open (__NR_Linux + 296)
-#define __NR_accept4 (__NR_Linux + 297)
-#define __NR_recvmmsg (__NR_Linux + 298)
-#define __NR_getdents64 (__NR_Linux + 299)
-#define __NR_fanotify_init (__NR_Linux + 300)
-#define __NR_fanotify_mark (__NR_Linux + 301)
-#define __NR_prlimit64 (__NR_Linux + 302)
-#define __NR_name_to_handle_at (__NR_Linux + 303)
-#define __NR_open_by_handle_at (__NR_Linux + 304)
-#define __NR_clock_adjtime (__NR_Linux + 305)
-#define __NR_syncfs (__NR_Linux + 306)
-#define __NR_sendmmsg (__NR_Linux + 307)
-#define __NR_setns (__NR_Linux + 308)
-#define __NR_process_vm_readv (__NR_Linux + 309)
-#define __NR_process_vm_writev (__NR_Linux + 310)
-#define __NR_kcmp (__NR_Linux + 311)
-#define __NR_finit_module (__NR_Linux + 312)
-#define __NR_sched_setattr (__NR_Linux + 313)
-#define __NR_sched_getattr (__NR_Linux + 314)
-#define __NR_renameat2 (__NR_Linux + 315)
-#define __NR_seccomp (__NR_Linux + 316)
-#define __NR_getrandom (__NR_Linux + 317)
-#define __NR_memfd_create (__NR_Linux + 318)
-#define __NR_bpf (__NR_Linux + 319)
-#define __NR_execveat (__NR_Linux + 320)
-#define __NR_userfaultfd (__NR_Linux + 321)
-#define __NR_membarrier (__NR_Linux + 322)
-#define __NR_mlock2 (__NR_Linux + 323)
-#define __NR_copy_file_range (__NR_Linux + 324)
-#define __NR_preadv2 (__NR_Linux + 325)
-#define __NR_pwritev2 (__NR_Linux + 326)
-#define __NR_pkey_mprotect (__NR_Linux + 327)
-#define __NR_pkey_alloc (__NR_Linux + 328)
-#define __NR_pkey_free (__NR_Linux + 329)
-#define __NR_statx (__NR_Linux + 330)
-#define __NR_rseq (__NR_Linux + 331)
-#define __NR_io_pgetevents (__NR_Linux + 332)
-
-/*
- * Offset of the last N32 flavoured syscall
- */
-#define __NR_Linux_syscalls 332
-
-#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
-
-#define __NR_N32_Linux 6000
-#define __NR_N32_Linux_syscalls 332
-
-#endif /* _UAPI_ASM_UNISTD_H */
diff --git a/libc/include/mips64el-linux-gnuabin32/asm/sgidefs.h b/libc/include/mips64el-linux-gnuabin32/asm/sgidefs.h
deleted file mode 100644
index 26143e3b7c..0000000000
--- a/libc/include/mips64el-linux-gnuabin32/asm/sgidefs.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1996, 1999, 2001 Ralf Baechle
- * Copyright (C) 1999 Silicon Graphics, Inc.
- * Copyright (C) 2001 MIPS Technologies, Inc.
- */
-#ifndef __ASM_SGIDEFS_H
-#define __ASM_SGIDEFS_H
-
-/*
- * Using a Linux compiler for building Linux seems logic but not to
- * everybody.
- */
-#ifndef __linux__
-#error Use a Linux compiler or give up.
-#endif
-
-/*
- * Definitions for the ISA levels
- *
- * With the introduction of MIPS32 / MIPS64 instruction sets definitions
- * MIPS ISAs are no longer subsets of each other. Therefore comparisons
- * on these symbols except with == may result in unexpected results and
- * are forbidden!
- */
-#define _MIPS_ISA_MIPS1 1
-#define _MIPS_ISA_MIPS2 2
-#define _MIPS_ISA_MIPS3 3
-#define _MIPS_ISA_MIPS4 4
-#define _MIPS_ISA_MIPS5 5
-#define _MIPS_ISA_MIPS32 6
-#define _MIPS_ISA_MIPS64 7
-
-/*
- * Subprogram calling convention
- */
-#define _MIPS_SIM_ABI32 1
-#define _MIPS_SIM_NABI32 2
-#define _MIPS_SIM_ABI64 3
-
-#endif /* __ASM_SGIDEFS_H */
diff --git a/libc/include/mips64el-linux-gnuabin32/asm/unistd.h b/libc/include/mips64el-linux-gnuabin32/asm/unistd.h
deleted file mode 100644
index f25dd1d83f..0000000000
--- a/libc/include/mips64el-linux-gnuabin32/asm/unistd.h
+++ /dev/null
@@ -1,1101 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle
- * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
- *
- * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto
- * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A
- */
-#ifndef _UAPI_ASM_UNISTD_H
-#define _UAPI_ASM_UNISTD_H
-
-#include
-
-#if _MIPS_SIM == _MIPS_SIM_ABI32
-
-/*
- * Linux o32 style syscalls are in the range from 4000 to 4999.
- */
-#define __NR_Linux 4000
-#define __NR_syscall (__NR_Linux + 0)
-#define __NR_exit (__NR_Linux + 1)
-#define __NR_fork (__NR_Linux + 2)
-#define __NR_read (__NR_Linux + 3)
-#define __NR_write (__NR_Linux + 4)
-#define __NR_open (__NR_Linux + 5)
-#define __NR_close (__NR_Linux + 6)
-#define __NR_waitpid (__NR_Linux + 7)
-#define __NR_creat (__NR_Linux + 8)
-#define __NR_link (__NR_Linux + 9)
-#define __NR_unlink (__NR_Linux + 10)
-#define __NR_execve (__NR_Linux + 11)
-#define __NR_chdir (__NR_Linux + 12)
-#define __NR_time (__NR_Linux + 13)
-#define __NR_mknod (__NR_Linux + 14)
-#define __NR_chmod (__NR_Linux + 15)
-#define __NR_lchown (__NR_Linux + 16)
-#define __NR_break (__NR_Linux + 17)
-#define __NR_unused18 (__NR_Linux + 18)
-#define __NR_lseek (__NR_Linux + 19)
-#define __NR_getpid (__NR_Linux + 20)
-#define __NR_mount (__NR_Linux + 21)
-#define __NR_umount (__NR_Linux + 22)
-#define __NR_setuid (__NR_Linux + 23)
-#define __NR_getuid (__NR_Linux + 24)
-#define __NR_stime (__NR_Linux + 25)
-#define __NR_ptrace (__NR_Linux + 26)
-#define __NR_alarm (__NR_Linux + 27)
-#define __NR_unused28 (__NR_Linux + 28)
-#define __NR_pause (__NR_Linux + 29)
-#define __NR_utime (__NR_Linux + 30)
-#define __NR_stty (__NR_Linux + 31)
-#define __NR_gtty (__NR_Linux + 32)
-#define __NR_access (__NR_Linux + 33)
-#define __NR_nice (__NR_Linux + 34)
-#define __NR_ftime (__NR_Linux + 35)
-#define __NR_sync (__NR_Linux + 36)
-#define __NR_kill (__NR_Linux + 37)
-#define __NR_rename (__NR_Linux + 38)
-#define __NR_mkdir (__NR_Linux + 39)
-#define __NR_rmdir (__NR_Linux + 40)
-#define __NR_dup (__NR_Linux + 41)
-#define __NR_pipe (__NR_Linux + 42)
-#define __NR_times (__NR_Linux + 43)
-#define __NR_prof (__NR_Linux + 44)
-#define __NR_brk (__NR_Linux + 45)
-#define __NR_setgid (__NR_Linux + 46)
-#define __NR_getgid (__NR_Linux + 47)
-#define __NR_signal (__NR_Linux + 48)
-#define __NR_geteuid (__NR_Linux + 49)
-#define __NR_getegid (__NR_Linux + 50)
-#define __NR_acct (__NR_Linux + 51)
-#define __NR_umount2 (__NR_Linux + 52)
-#define __NR_lock (__NR_Linux + 53)
-#define __NR_ioctl (__NR_Linux + 54)
-#define __NR_fcntl (__NR_Linux + 55)
-#define __NR_mpx (__NR_Linux + 56)
-#define __NR_setpgid (__NR_Linux + 57)
-#define __NR_ulimit (__NR_Linux + 58)
-#define __NR_unused59 (__NR_Linux + 59)
-#define __NR_umask (__NR_Linux + 60)
-#define __NR_chroot (__NR_Linux + 61)
-#define __NR_ustat (__NR_Linux + 62)
-#define __NR_dup2 (__NR_Linux + 63)
-#define __NR_getppid (__NR_Linux + 64)
-#define __NR_getpgrp (__NR_Linux + 65)
-#define __NR_setsid (__NR_Linux + 66)
-#define __NR_sigaction (__NR_Linux + 67)
-#define __NR_sgetmask (__NR_Linux + 68)
-#define __NR_ssetmask (__NR_Linux + 69)
-#define __NR_setreuid (__NR_Linux + 70)
-#define __NR_setregid (__NR_Linux + 71)
-#define __NR_sigsuspend (__NR_Linux + 72)
-#define __NR_sigpending (__NR_Linux + 73)
-#define __NR_sethostname (__NR_Linux + 74)
-#define __NR_setrlimit (__NR_Linux + 75)
-#define __NR_getrlimit (__NR_Linux + 76)
-#define __NR_getrusage (__NR_Linux + 77)
-#define __NR_gettimeofday (__NR_Linux + 78)
-#define __NR_settimeofday (__NR_Linux + 79)
-#define __NR_getgroups (__NR_Linux + 80)
-#define __NR_setgroups (__NR_Linux + 81)
-#define __NR_reserved82 (__NR_Linux + 82)
-#define __NR_symlink (__NR_Linux + 83)
-#define __NR_unused84 (__NR_Linux + 84)
-#define __NR_readlink (__NR_Linux + 85)
-#define __NR_uselib (__NR_Linux + 86)
-#define __NR_swapon (__NR_Linux + 87)
-#define __NR_reboot (__NR_Linux + 88)
-#define __NR_readdir (__NR_Linux + 89)
-#define __NR_mmap (__NR_Linux + 90)
-#define __NR_munmap (__NR_Linux + 91)
-#define __NR_truncate (__NR_Linux + 92)
-#define __NR_ftruncate (__NR_Linux + 93)
-#define __NR_fchmod (__NR_Linux + 94)
-#define __NR_fchown (__NR_Linux + 95)
-#define __NR_getpriority (__NR_Linux + 96)
-#define __NR_setpriority (__NR_Linux + 97)
-#define __NR_profil (__NR_Linux + 98)
-#define __NR_statfs (__NR_Linux + 99)
-#define __NR_fstatfs (__NR_Linux + 100)
-#define __NR_ioperm (__NR_Linux + 101)
-#define __NR_socketcall (__NR_Linux + 102)
-#define __NR_syslog (__NR_Linux + 103)
-#define __NR_setitimer (__NR_Linux + 104)
-#define __NR_getitimer (__NR_Linux + 105)
-#define __NR_stat (__NR_Linux + 106)
-#define __NR_lstat (__NR_Linux + 107)
-#define __NR_fstat (__NR_Linux + 108)
-#define __NR_unused109 (__NR_Linux + 109)
-#define __NR_iopl (__NR_Linux + 110)
-#define __NR_vhangup (__NR_Linux + 111)
-#define __NR_idle (__NR_Linux + 112)
-#define __NR_vm86 (__NR_Linux + 113)
-#define __NR_wait4 (__NR_Linux + 114)
-#define __NR_swapoff (__NR_Linux + 115)
-#define __NR_sysinfo (__NR_Linux + 116)
-#define __NR_ipc (__NR_Linux + 117)
-#define __NR_fsync (__NR_Linux + 118)
-#define __NR_sigreturn (__NR_Linux + 119)
-#define __NR_clone (__NR_Linux + 120)
-#define __NR_setdomainname (__NR_Linux + 121)
-#define __NR_uname (__NR_Linux + 122)
-#define __NR_modify_ldt (__NR_Linux + 123)
-#define __NR_adjtimex (__NR_Linux + 124)
-#define __NR_mprotect (__NR_Linux + 125)
-#define __NR_sigprocmask (__NR_Linux + 126)
-#define __NR_create_module (__NR_Linux + 127)
-#define __NR_init_module (__NR_Linux + 128)
-#define __NR_delete_module (__NR_Linux + 129)
-#define __NR_get_kernel_syms (__NR_Linux + 130)
-#define __NR_quotactl (__NR_Linux + 131)
-#define __NR_getpgid (__NR_Linux + 132)
-#define __NR_fchdir (__NR_Linux + 133)
-#define __NR_bdflush (__NR_Linux + 134)
-#define __NR_sysfs (__NR_Linux + 135)
-#define __NR_personality (__NR_Linux + 136)
-#define __NR_afs_syscall (__NR_Linux + 137) /* Syscall for Andrew File System */
-#define __NR_setfsuid (__NR_Linux + 138)
-#define __NR_setfsgid (__NR_Linux + 139)
-#define __NR__llseek (__NR_Linux + 140)
-#define __NR_getdents (__NR_Linux + 141)
-#define __NR__newselect (__NR_Linux + 142)
-#define __NR_flock (__NR_Linux + 143)
-#define __NR_msync (__NR_Linux + 144)
-#define __NR_readv (__NR_Linux + 145)
-#define __NR_writev (__NR_Linux + 146)
-#define __NR_cacheflush (__NR_Linux + 147)
-#define __NR_cachectl (__NR_Linux + 148)
-#define __NR_sysmips (__NR_Linux + 149)
-#define __NR_unused150 (__NR_Linux + 150)
-#define __NR_getsid (__NR_Linux + 151)
-#define __NR_fdatasync (__NR_Linux + 152)
-#define __NR__sysctl (__NR_Linux + 153)
-#define __NR_mlock (__NR_Linux + 154)
-#define __NR_munlock (__NR_Linux + 155)
-#define __NR_mlockall (__NR_Linux + 156)
-#define __NR_munlockall (__NR_Linux + 157)
-#define __NR_sched_setparam (__NR_Linux + 158)
-#define __NR_sched_getparam (__NR_Linux + 159)
-#define __NR_sched_setscheduler (__NR_Linux + 160)
-#define __NR_sched_getscheduler (__NR_Linux + 161)
-#define __NR_sched_yield (__NR_Linux + 162)
-#define __NR_sched_get_priority_max (__NR_Linux + 163)
-#define __NR_sched_get_priority_min (__NR_Linux + 164)
-#define __NR_sched_rr_get_interval (__NR_Linux + 165)
-#define __NR_nanosleep (__NR_Linux + 166)
-#define __NR_mremap (__NR_Linux + 167)
-#define __NR_accept (__NR_Linux + 168)
-#define __NR_bind (__NR_Linux + 169)
-#define __NR_connect (__NR_Linux + 170)
-#define __NR_getpeername (__NR_Linux + 171)
-#define __NR_getsockname (__NR_Linux + 172)
-#define __NR_getsockopt (__NR_Linux + 173)
-#define __NR_listen (__NR_Linux + 174)
-#define __NR_recv (__NR_Linux + 175)
-#define __NR_recvfrom (__NR_Linux + 176)
-#define __NR_recvmsg (__NR_Linux + 177)
-#define __NR_send (__NR_Linux + 178)
-#define __NR_sendmsg (__NR_Linux + 179)
-#define __NR_sendto (__NR_Linux + 180)
-#define __NR_setsockopt (__NR_Linux + 181)
-#define __NR_shutdown (__NR_Linux + 182)
-#define __NR_socket (__NR_Linux + 183)
-#define __NR_socketpair (__NR_Linux + 184)
-#define __NR_setresuid (__NR_Linux + 185)
-#define __NR_getresuid (__NR_Linux + 186)
-#define __NR_query_module (__NR_Linux + 187)
-#define __NR_poll (__NR_Linux + 188)
-#define __NR_nfsservctl (__NR_Linux + 189)
-#define __NR_setresgid (__NR_Linux + 190)
-#define __NR_getresgid (__NR_Linux + 191)
-#define __NR_prctl (__NR_Linux + 192)
-#define __NR_rt_sigreturn (__NR_Linux + 193)
-#define __NR_rt_sigaction (__NR_Linux + 194)
-#define __NR_rt_sigprocmask (__NR_Linux + 195)
-#define __NR_rt_sigpending (__NR_Linux + 196)
-#define __NR_rt_sigtimedwait (__NR_Linux + 197)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 198)
-#define __NR_rt_sigsuspend (__NR_Linux + 199)
-#define __NR_pread64 (__NR_Linux + 200)
-#define __NR_pwrite64 (__NR_Linux + 201)
-#define __NR_chown (__NR_Linux + 202)
-#define __NR_getcwd (__NR_Linux + 203)
-#define __NR_capget (__NR_Linux + 204)
-#define __NR_capset (__NR_Linux + 205)
-#define __NR_sigaltstack (__NR_Linux + 206)
-#define __NR_sendfile (__NR_Linux + 207)
-#define __NR_getpmsg (__NR_Linux + 208)
-#define __NR_putpmsg (__NR_Linux + 209)
-#define __NR_mmap2 (__NR_Linux + 210)
-#define __NR_truncate64 (__NR_Linux + 211)
-#define __NR_ftruncate64 (__NR_Linux + 212)
-#define __NR_stat64 (__NR_Linux + 213)
-#define __NR_lstat64 (__NR_Linux + 214)
-#define __NR_fstat64 (__NR_Linux + 215)
-#define __NR_pivot_root (__NR_Linux + 216)
-#define __NR_mincore (__NR_Linux + 217)
-#define __NR_madvise (__NR_Linux + 218)
-#define __NR_getdents64 (__NR_Linux + 219)
-#define __NR_fcntl64 (__NR_Linux + 220)
-#define __NR_reserved221 (__NR_Linux + 221)
-#define __NR_gettid (__NR_Linux + 222)
-#define __NR_readahead (__NR_Linux + 223)
-#define __NR_setxattr (__NR_Linux + 224)
-#define __NR_lsetxattr (__NR_Linux + 225)
-#define __NR_fsetxattr (__NR_Linux + 226)
-#define __NR_getxattr (__NR_Linux + 227)
-#define __NR_lgetxattr (__NR_Linux + 228)
-#define __NR_fgetxattr (__NR_Linux + 229)
-#define __NR_listxattr (__NR_Linux + 230)
-#define __NR_llistxattr (__NR_Linux + 231)
-#define __NR_flistxattr (__NR_Linux + 232)
-#define __NR_removexattr (__NR_Linux + 233)
-#define __NR_lremovexattr (__NR_Linux + 234)
-#define __NR_fremovexattr (__NR_Linux + 235)
-#define __NR_tkill (__NR_Linux + 236)
-#define __NR_sendfile64 (__NR_Linux + 237)
-#define __NR_futex (__NR_Linux + 238)
-#define __NR_sched_setaffinity (__NR_Linux + 239)
-#define __NR_sched_getaffinity (__NR_Linux + 240)
-#define __NR_io_setup (__NR_Linux + 241)
-#define __NR_io_destroy (__NR_Linux + 242)
-#define __NR_io_getevents (__NR_Linux + 243)
-#define __NR_io_submit (__NR_Linux + 244)
-#define __NR_io_cancel (__NR_Linux + 245)
-#define __NR_exit_group (__NR_Linux + 246)
-#define __NR_lookup_dcookie (__NR_Linux + 247)
-#define __NR_epoll_create (__NR_Linux + 248)
-#define __NR_epoll_ctl (__NR_Linux + 249)
-#define __NR_epoll_wait (__NR_Linux + 250)
-#define __NR_remap_file_pages (__NR_Linux + 251)
-#define __NR_set_tid_address (__NR_Linux + 252)
-#define __NR_restart_syscall (__NR_Linux + 253)
-#define __NR_fadvise64 (__NR_Linux + 254)
-#define __NR_statfs64 (__NR_Linux + 255)
-#define __NR_fstatfs64 (__NR_Linux + 256)
-#define __NR_timer_create (__NR_Linux + 257)
-#define __NR_timer_settime (__NR_Linux + 258)
-#define __NR_timer_gettime (__NR_Linux + 259)
-#define __NR_timer_getoverrun (__NR_Linux + 260)
-#define __NR_timer_delete (__NR_Linux + 261)
-#define __NR_clock_settime (__NR_Linux + 262)
-#define __NR_clock_gettime (__NR_Linux + 263)
-#define __NR_clock_getres (__NR_Linux + 264)
-#define __NR_clock_nanosleep (__NR_Linux + 265)
-#define __NR_tgkill (__NR_Linux + 266)
-#define __NR_utimes (__NR_Linux + 267)
-#define __NR_mbind (__NR_Linux + 268)
-#define __NR_get_mempolicy (__NR_Linux + 269)
-#define __NR_set_mempolicy (__NR_Linux + 270)
-#define __NR_mq_open (__NR_Linux + 271)
-#define __NR_mq_unlink (__NR_Linux + 272)
-#define __NR_mq_timedsend (__NR_Linux + 273)
-#define __NR_mq_timedreceive (__NR_Linux + 274)
-#define __NR_mq_notify (__NR_Linux + 275)
-#define __NR_mq_getsetattr (__NR_Linux + 276)
-#define __NR_vserver (__NR_Linux + 277)
-#define __NR_waitid (__NR_Linux + 278)
-/* #define __NR_sys_setaltroot (__NR_Linux + 279) */
-#define __NR_add_key (__NR_Linux + 280)
-#define __NR_request_key (__NR_Linux + 281)
-#define __NR_keyctl (__NR_Linux + 282)
-#define __NR_set_thread_area (__NR_Linux + 283)
-#define __NR_inotify_init (__NR_Linux + 284)
-#define __NR_inotify_add_watch (__NR_Linux + 285)
-#define __NR_inotify_rm_watch (__NR_Linux + 286)
-#define __NR_migrate_pages (__NR_Linux + 287)
-#define __NR_openat (__NR_Linux + 288)
-#define __NR_mkdirat (__NR_Linux + 289)
-#define __NR_mknodat (__NR_Linux + 290)
-#define __NR_fchownat (__NR_Linux + 291)
-#define __NR_futimesat (__NR_Linux + 292)
-#define __NR_fstatat64 (__NR_Linux + 293)
-#define __NR_unlinkat (__NR_Linux + 294)
-#define __NR_renameat (__NR_Linux + 295)
-#define __NR_linkat (__NR_Linux + 296)
-#define __NR_symlinkat (__NR_Linux + 297)
-#define __NR_readlinkat (__NR_Linux + 298)
-#define __NR_fchmodat (__NR_Linux + 299)
-#define __NR_faccessat (__NR_Linux + 300)
-#define __NR_pselect6 (__NR_Linux + 301)
-#define __NR_ppoll (__NR_Linux + 302)
-#define __NR_unshare (__NR_Linux + 303)
-#define __NR_splice (__NR_Linux + 304)
-#define __NR_sync_file_range (__NR_Linux + 305)
-#define __NR_tee (__NR_Linux + 306)
-#define __NR_vmsplice (__NR_Linux + 307)
-#define __NR_move_pages (__NR_Linux + 308)
-#define __NR_set_robust_list (__NR_Linux + 309)
-#define __NR_get_robust_list (__NR_Linux + 310)
-#define __NR_kexec_load (__NR_Linux + 311)
-#define __NR_getcpu (__NR_Linux + 312)
-#define __NR_epoll_pwait (__NR_Linux + 313)
-#define __NR_ioprio_set (__NR_Linux + 314)
-#define __NR_ioprio_get (__NR_Linux + 315)
-#define __NR_utimensat (__NR_Linux + 316)
-#define __NR_signalfd (__NR_Linux + 317)
-#define __NR_timerfd (__NR_Linux + 318)
-#define __NR_eventfd (__NR_Linux + 319)
-#define __NR_fallocate (__NR_Linux + 320)
-#define __NR_timerfd_create (__NR_Linux + 321)
-#define __NR_timerfd_gettime (__NR_Linux + 322)
-#define __NR_timerfd_settime (__NR_Linux + 323)
-#define __NR_signalfd4 (__NR_Linux + 324)
-#define __NR_eventfd2 (__NR_Linux + 325)
-#define __NR_epoll_create1 (__NR_Linux + 326)
-#define __NR_dup3 (__NR_Linux + 327)
-#define __NR_pipe2 (__NR_Linux + 328)
-#define __NR_inotify_init1 (__NR_Linux + 329)
-#define __NR_preadv (__NR_Linux + 330)
-#define __NR_pwritev (__NR_Linux + 331)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 332)
-#define __NR_perf_event_open (__NR_Linux + 333)
-#define __NR_accept4 (__NR_Linux + 334)
-#define __NR_recvmmsg (__NR_Linux + 335)
-#define __NR_fanotify_init (__NR_Linux + 336)
-#define __NR_fanotify_mark (__NR_Linux + 337)
-#define __NR_prlimit64 (__NR_Linux + 338)
-#define __NR_name_to_handle_at (__NR_Linux + 339)
-#define __NR_open_by_handle_at (__NR_Linux + 340)
-#define __NR_clock_adjtime (__NR_Linux + 341)
-#define __NR_syncfs (__NR_Linux + 342)
-#define __NR_sendmmsg (__NR_Linux + 343)
-#define __NR_setns (__NR_Linux + 344)
-#define __NR_process_vm_readv (__NR_Linux + 345)
-#define __NR_process_vm_writev (__NR_Linux + 346)
-#define __NR_kcmp (__NR_Linux + 347)
-#define __NR_finit_module (__NR_Linux + 348)
-#define __NR_sched_setattr (__NR_Linux + 349)
-#define __NR_sched_getattr (__NR_Linux + 350)
-#define __NR_renameat2 (__NR_Linux + 351)
-#define __NR_seccomp (__NR_Linux + 352)
-#define __NR_getrandom (__NR_Linux + 353)
-#define __NR_memfd_create (__NR_Linux + 354)
-#define __NR_bpf (__NR_Linux + 355)
-#define __NR_execveat (__NR_Linux + 356)
-#define __NR_userfaultfd (__NR_Linux + 357)
-#define __NR_membarrier (__NR_Linux + 358)
-#define __NR_mlock2 (__NR_Linux + 359)
-#define __NR_copy_file_range (__NR_Linux + 360)
-#define __NR_preadv2 (__NR_Linux + 361)
-#define __NR_pwritev2 (__NR_Linux + 362)
-#define __NR_pkey_mprotect (__NR_Linux + 363)
-#define __NR_pkey_alloc (__NR_Linux + 364)
-#define __NR_pkey_free (__NR_Linux + 365)
-#define __NR_statx (__NR_Linux + 366)
-#define __NR_rseq (__NR_Linux + 367)
-#define __NR_io_pgetevents (__NR_Linux + 368)
-
-
-/*
- * Offset of the last Linux o32 flavoured syscall
- */
-#define __NR_Linux_syscalls 368
-
-#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
-
-#define __NR_O32_Linux 4000
-#define __NR_O32_Linux_syscalls 368
-
-#if _MIPS_SIM == _MIPS_SIM_ABI64
-
-/*
- * Linux 64-bit syscalls are in the range from 5000 to 5999.
- */
-#define __NR_Linux 5000
-#define __NR_read (__NR_Linux + 0)
-#define __NR_write (__NR_Linux + 1)
-#define __NR_open (__NR_Linux + 2)
-#define __NR_close (__NR_Linux + 3)
-#define __NR_stat (__NR_Linux + 4)
-#define __NR_fstat (__NR_Linux + 5)
-#define __NR_lstat (__NR_Linux + 6)
-#define __NR_poll (__NR_Linux + 7)
-#define __NR_lseek (__NR_Linux + 8)
-#define __NR_mmap (__NR_Linux + 9)
-#define __NR_mprotect (__NR_Linux + 10)
-#define __NR_munmap (__NR_Linux + 11)
-#define __NR_brk (__NR_Linux + 12)
-#define __NR_rt_sigaction (__NR_Linux + 13)
-#define __NR_rt_sigprocmask (__NR_Linux + 14)
-#define __NR_ioctl (__NR_Linux + 15)
-#define __NR_pread64 (__NR_Linux + 16)
-#define __NR_pwrite64 (__NR_Linux + 17)
-#define __NR_readv (__NR_Linux + 18)
-#define __NR_writev (__NR_Linux + 19)
-#define __NR_access (__NR_Linux + 20)
-#define __NR_pipe (__NR_Linux + 21)
-#define __NR__newselect (__NR_Linux + 22)
-#define __NR_sched_yield (__NR_Linux + 23)
-#define __NR_mremap (__NR_Linux + 24)
-#define __NR_msync (__NR_Linux + 25)
-#define __NR_mincore (__NR_Linux + 26)
-#define __NR_madvise (__NR_Linux + 27)
-#define __NR_shmget (__NR_Linux + 28)
-#define __NR_shmat (__NR_Linux + 29)
-#define __NR_shmctl (__NR_Linux + 30)
-#define __NR_dup (__NR_Linux + 31)
-#define __NR_dup2 (__NR_Linux + 32)
-#define __NR_pause (__NR_Linux + 33)
-#define __NR_nanosleep (__NR_Linux + 34)
-#define __NR_getitimer (__NR_Linux + 35)
-#define __NR_setitimer (__NR_Linux + 36)
-#define __NR_alarm (__NR_Linux + 37)
-#define __NR_getpid (__NR_Linux + 38)
-#define __NR_sendfile (__NR_Linux + 39)
-#define __NR_socket (__NR_Linux + 40)
-#define __NR_connect (__NR_Linux + 41)
-#define __NR_accept (__NR_Linux + 42)
-#define __NR_sendto (__NR_Linux + 43)
-#define __NR_recvfrom (__NR_Linux + 44)
-#define __NR_sendmsg (__NR_Linux + 45)
-#define __NR_recvmsg (__NR_Linux + 46)
-#define __NR_shutdown (__NR_Linux + 47)
-#define __NR_bind (__NR_Linux + 48)
-#define __NR_listen (__NR_Linux + 49)
-#define __NR_getsockname (__NR_Linux + 50)
-#define __NR_getpeername (__NR_Linux + 51)
-#define __NR_socketpair (__NR_Linux + 52)
-#define __NR_setsockopt (__NR_Linux + 53)
-#define __NR_getsockopt (__NR_Linux + 54)
-#define __NR_clone (__NR_Linux + 55)
-#define __NR_fork (__NR_Linux + 56)
-#define __NR_execve (__NR_Linux + 57)
-#define __NR_exit (__NR_Linux + 58)
-#define __NR_wait4 (__NR_Linux + 59)
-#define __NR_kill (__NR_Linux + 60)
-#define __NR_uname (__NR_Linux + 61)
-#define __NR_semget (__NR_Linux + 62)
-#define __NR_semop (__NR_Linux + 63)
-#define __NR_semctl (__NR_Linux + 64)
-#define __NR_shmdt (__NR_Linux + 65)
-#define __NR_msgget (__NR_Linux + 66)
-#define __NR_msgsnd (__NR_Linux + 67)
-#define __NR_msgrcv (__NR_Linux + 68)
-#define __NR_msgctl (__NR_Linux + 69)
-#define __NR_fcntl (__NR_Linux + 70)
-#define __NR_flock (__NR_Linux + 71)
-#define __NR_fsync (__NR_Linux + 72)
-#define __NR_fdatasync (__NR_Linux + 73)
-#define __NR_truncate (__NR_Linux + 74)
-#define __NR_ftruncate (__NR_Linux + 75)
-#define __NR_getdents (__NR_Linux + 76)
-#define __NR_getcwd (__NR_Linux + 77)
-#define __NR_chdir (__NR_Linux + 78)
-#define __NR_fchdir (__NR_Linux + 79)
-#define __NR_rename (__NR_Linux + 80)
-#define __NR_mkdir (__NR_Linux + 81)
-#define __NR_rmdir (__NR_Linux + 82)
-#define __NR_creat (__NR_Linux + 83)
-#define __NR_link (__NR_Linux + 84)
-#define __NR_unlink (__NR_Linux + 85)
-#define __NR_symlink (__NR_Linux + 86)
-#define __NR_readlink (__NR_Linux + 87)
-#define __NR_chmod (__NR_Linux + 88)
-#define __NR_fchmod (__NR_Linux + 89)
-#define __NR_chown (__NR_Linux + 90)
-#define __NR_fchown (__NR_Linux + 91)
-#define __NR_lchown (__NR_Linux + 92)
-#define __NR_umask (__NR_Linux + 93)
-#define __NR_gettimeofday (__NR_Linux + 94)
-#define __NR_getrlimit (__NR_Linux + 95)
-#define __NR_getrusage (__NR_Linux + 96)
-#define __NR_sysinfo (__NR_Linux + 97)
-#define __NR_times (__NR_Linux + 98)
-#define __NR_ptrace (__NR_Linux + 99)
-#define __NR_getuid (__NR_Linux + 100)
-#define __NR_syslog (__NR_Linux + 101)
-#define __NR_getgid (__NR_Linux + 102)
-#define __NR_setuid (__NR_Linux + 103)
-#define __NR_setgid (__NR_Linux + 104)
-#define __NR_geteuid (__NR_Linux + 105)
-#define __NR_getegid (__NR_Linux + 106)
-#define __NR_setpgid (__NR_Linux + 107)
-#define __NR_getppid (__NR_Linux + 108)
-#define __NR_getpgrp (__NR_Linux + 109)
-#define __NR_setsid (__NR_Linux + 110)
-#define __NR_setreuid (__NR_Linux + 111)
-#define __NR_setregid (__NR_Linux + 112)
-#define __NR_getgroups (__NR_Linux + 113)
-#define __NR_setgroups (__NR_Linux + 114)
-#define __NR_setresuid (__NR_Linux + 115)
-#define __NR_getresuid (__NR_Linux + 116)
-#define __NR_setresgid (__NR_Linux + 117)
-#define __NR_getresgid (__NR_Linux + 118)
-#define __NR_getpgid (__NR_Linux + 119)
-#define __NR_setfsuid (__NR_Linux + 120)
-#define __NR_setfsgid (__NR_Linux + 121)
-#define __NR_getsid (__NR_Linux + 122)
-#define __NR_capget (__NR_Linux + 123)
-#define __NR_capset (__NR_Linux + 124)
-#define __NR_rt_sigpending (__NR_Linux + 125)
-#define __NR_rt_sigtimedwait (__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 127)
-#define __NR_rt_sigsuspend (__NR_Linux + 128)
-#define __NR_sigaltstack (__NR_Linux + 129)
-#define __NR_utime (__NR_Linux + 130)
-#define __NR_mknod (__NR_Linux + 131)
-#define __NR_personality (__NR_Linux + 132)
-#define __NR_ustat (__NR_Linux + 133)
-#define __NR_statfs (__NR_Linux + 134)
-#define __NR_fstatfs (__NR_Linux + 135)
-#define __NR_sysfs (__NR_Linux + 136)
-#define __NR_getpriority (__NR_Linux + 137)
-#define __NR_setpriority (__NR_Linux + 138)
-#define __NR_sched_setparam (__NR_Linux + 139)
-#define __NR_sched_getparam (__NR_Linux + 140)
-#define __NR_sched_setscheduler (__NR_Linux + 141)
-#define __NR_sched_getscheduler (__NR_Linux + 142)
-#define __NR_sched_get_priority_max (__NR_Linux + 143)
-#define __NR_sched_get_priority_min (__NR_Linux + 144)
-#define __NR_sched_rr_get_interval (__NR_Linux + 145)
-#define __NR_mlock (__NR_Linux + 146)
-#define __NR_munlock (__NR_Linux + 147)
-#define __NR_mlockall (__NR_Linux + 148)
-#define __NR_munlockall (__NR_Linux + 149)
-#define __NR_vhangup (__NR_Linux + 150)
-#define __NR_pivot_root (__NR_Linux + 151)
-#define __NR__sysctl (__NR_Linux + 152)
-#define __NR_prctl (__NR_Linux + 153)
-#define __NR_adjtimex (__NR_Linux + 154)
-#define __NR_setrlimit (__NR_Linux + 155)
-#define __NR_chroot (__NR_Linux + 156)
-#define __NR_sync (__NR_Linux + 157)
-#define __NR_acct (__NR_Linux + 158)
-#define __NR_settimeofday (__NR_Linux + 159)
-#define __NR_mount (__NR_Linux + 160)
-#define __NR_umount2 (__NR_Linux + 161)
-#define __NR_swapon (__NR_Linux + 162)
-#define __NR_swapoff (__NR_Linux + 163)
-#define __NR_reboot (__NR_Linux + 164)
-#define __NR_sethostname (__NR_Linux + 165)
-#define __NR_setdomainname (__NR_Linux + 166)
-#define __NR_create_module (__NR_Linux + 167)
-#define __NR_init_module (__NR_Linux + 168)
-#define __NR_delete_module (__NR_Linux + 169)
-#define __NR_get_kernel_syms (__NR_Linux + 170)
-#define __NR_query_module (__NR_Linux + 171)
-#define __NR_quotactl (__NR_Linux + 172)
-#define __NR_nfsservctl (__NR_Linux + 173)
-#define __NR_getpmsg (__NR_Linux + 174)
-#define __NR_putpmsg (__NR_Linux + 175)
-#define __NR_afs_syscall (__NR_Linux + 176)
-#define __NR_reserved177 (__NR_Linux + 177)
-#define __NR_gettid (__NR_Linux + 178)
-#define __NR_readahead (__NR_Linux + 179)
-#define __NR_setxattr (__NR_Linux + 180)
-#define __NR_lsetxattr (__NR_Linux + 181)
-#define __NR_fsetxattr (__NR_Linux + 182)
-#define __NR_getxattr (__NR_Linux + 183)
-#define __NR_lgetxattr (__NR_Linux + 184)
-#define __NR_fgetxattr (__NR_Linux + 185)
-#define __NR_listxattr (__NR_Linux + 186)
-#define __NR_llistxattr (__NR_Linux + 187)
-#define __NR_flistxattr (__NR_Linux + 188)
-#define __NR_removexattr (__NR_Linux + 189)
-#define __NR_lremovexattr (__NR_Linux + 190)
-#define __NR_fremovexattr (__NR_Linux + 191)
-#define __NR_tkill (__NR_Linux + 192)
-#define __NR_reserved193 (__NR_Linux + 193)
-#define __NR_futex (__NR_Linux + 194)
-#define __NR_sched_setaffinity (__NR_Linux + 195)
-#define __NR_sched_getaffinity (__NR_Linux + 196)
-#define __NR_cacheflush (__NR_Linux + 197)
-#define __NR_cachectl (__NR_Linux + 198)
-#define __NR_sysmips (__NR_Linux + 199)
-#define __NR_io_setup (__NR_Linux + 200)
-#define __NR_io_destroy (__NR_Linux + 201)
-#define __NR_io_getevents (__NR_Linux + 202)
-#define __NR_io_submit (__NR_Linux + 203)
-#define __NR_io_cancel (__NR_Linux + 204)
-#define __NR_exit_group (__NR_Linux + 205)
-#define __NR_lookup_dcookie (__NR_Linux + 206)
-#define __NR_epoll_create (__NR_Linux + 207)
-#define __NR_epoll_ctl (__NR_Linux + 208)
-#define __NR_epoll_wait (__NR_Linux + 209)
-#define __NR_remap_file_pages (__NR_Linux + 210)
-#define __NR_rt_sigreturn (__NR_Linux + 211)
-#define __NR_set_tid_address (__NR_Linux + 212)
-#define __NR_restart_syscall (__NR_Linux + 213)
-#define __NR_semtimedop (__NR_Linux + 214)
-#define __NR_fadvise64 (__NR_Linux + 215)
-#define __NR_timer_create (__NR_Linux + 216)
-#define __NR_timer_settime (__NR_Linux + 217)
-#define __NR_timer_gettime (__NR_Linux + 218)
-#define __NR_timer_getoverrun (__NR_Linux + 219)
-#define __NR_timer_delete (__NR_Linux + 220)
-#define __NR_clock_settime (__NR_Linux + 221)
-#define __NR_clock_gettime (__NR_Linux + 222)
-#define __NR_clock_getres (__NR_Linux + 223)
-#define __NR_clock_nanosleep (__NR_Linux + 224)
-#define __NR_tgkill (__NR_Linux + 225)
-#define __NR_utimes (__NR_Linux + 226)
-#define __NR_mbind (__NR_Linux + 227)
-#define __NR_get_mempolicy (__NR_Linux + 228)
-#define __NR_set_mempolicy (__NR_Linux + 229)
-#define __NR_mq_open (__NR_Linux + 230)
-#define __NR_mq_unlink (__NR_Linux + 231)
-#define __NR_mq_timedsend (__NR_Linux + 232)
-#define __NR_mq_timedreceive (__NR_Linux + 233)
-#define __NR_mq_notify (__NR_Linux + 234)
-#define __NR_mq_getsetattr (__NR_Linux + 235)
-#define __NR_vserver (__NR_Linux + 236)
-#define __NR_waitid (__NR_Linux + 237)
-/* #define __NR_sys_setaltroot (__NR_Linux + 238) */
-#define __NR_add_key (__NR_Linux + 239)
-#define __NR_request_key (__NR_Linux + 240)
-#define __NR_keyctl (__NR_Linux + 241)
-#define __NR_set_thread_area (__NR_Linux + 242)
-#define __NR_inotify_init (__NR_Linux + 243)
-#define __NR_inotify_add_watch (__NR_Linux + 244)
-#define __NR_inotify_rm_watch (__NR_Linux + 245)
-#define __NR_migrate_pages (__NR_Linux + 246)
-#define __NR_openat (__NR_Linux + 247)
-#define __NR_mkdirat (__NR_Linux + 248)
-#define __NR_mknodat (__NR_Linux + 249)
-#define __NR_fchownat (__NR_Linux + 250)
-#define __NR_futimesat (__NR_Linux + 251)
-#define __NR_newfstatat (__NR_Linux + 252)
-#define __NR_unlinkat (__NR_Linux + 253)
-#define __NR_renameat (__NR_Linux + 254)
-#define __NR_linkat (__NR_Linux + 255)
-#define __NR_symlinkat (__NR_Linux + 256)
-#define __NR_readlinkat (__NR_Linux + 257)
-#define __NR_fchmodat (__NR_Linux + 258)
-#define __NR_faccessat (__NR_Linux + 259)
-#define __NR_pselect6 (__NR_Linux + 260)
-#define __NR_ppoll (__NR_Linux + 261)
-#define __NR_unshare (__NR_Linux + 262)
-#define __NR_splice (__NR_Linux + 263)
-#define __NR_sync_file_range (__NR_Linux + 264)
-#define __NR_tee (__NR_Linux + 265)
-#define __NR_vmsplice (__NR_Linux + 266)
-#define __NR_move_pages (__NR_Linux + 267)
-#define __NR_set_robust_list (__NR_Linux + 268)
-#define __NR_get_robust_list (__NR_Linux + 269)
-#define __NR_kexec_load (__NR_Linux + 270)
-#define __NR_getcpu (__NR_Linux + 271)
-#define __NR_epoll_pwait (__NR_Linux + 272)
-#define __NR_ioprio_set (__NR_Linux + 273)
-#define __NR_ioprio_get (__NR_Linux + 274)
-#define __NR_utimensat (__NR_Linux + 275)
-#define __NR_signalfd (__NR_Linux + 276)
-#define __NR_timerfd (__NR_Linux + 277)
-#define __NR_eventfd (__NR_Linux + 278)
-#define __NR_fallocate (__NR_Linux + 279)
-#define __NR_timerfd_create (__NR_Linux + 280)
-#define __NR_timerfd_gettime (__NR_Linux + 281)
-#define __NR_timerfd_settime (__NR_Linux + 282)
-#define __NR_signalfd4 (__NR_Linux + 283)
-#define __NR_eventfd2 (__NR_Linux + 284)
-#define __NR_epoll_create1 (__NR_Linux + 285)
-#define __NR_dup3 (__NR_Linux + 286)
-#define __NR_pipe2 (__NR_Linux + 287)
-#define __NR_inotify_init1 (__NR_Linux + 288)
-#define __NR_preadv (__NR_Linux + 289)
-#define __NR_pwritev (__NR_Linux + 290)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 291)
-#define __NR_perf_event_open (__NR_Linux + 292)
-#define __NR_accept4 (__NR_Linux + 293)
-#define __NR_recvmmsg (__NR_Linux + 294)
-#define __NR_fanotify_init (__NR_Linux + 295)
-#define __NR_fanotify_mark (__NR_Linux + 296)
-#define __NR_prlimit64 (__NR_Linux + 297)
-#define __NR_name_to_handle_at (__NR_Linux + 298)
-#define __NR_open_by_handle_at (__NR_Linux + 299)
-#define __NR_clock_adjtime (__NR_Linux + 300)
-#define __NR_syncfs (__NR_Linux + 301)
-#define __NR_sendmmsg (__NR_Linux + 302)
-#define __NR_setns (__NR_Linux + 303)
-#define __NR_process_vm_readv (__NR_Linux + 304)
-#define __NR_process_vm_writev (__NR_Linux + 305)
-#define __NR_kcmp (__NR_Linux + 306)
-#define __NR_finit_module (__NR_Linux + 307)
-#define __NR_getdents64 (__NR_Linux + 308)
-#define __NR_sched_setattr (__NR_Linux + 309)
-#define __NR_sched_getattr (__NR_Linux + 310)
-#define __NR_renameat2 (__NR_Linux + 311)
-#define __NR_seccomp (__NR_Linux + 312)
-#define __NR_getrandom (__NR_Linux + 313)
-#define __NR_memfd_create (__NR_Linux + 314)
-#define __NR_bpf (__NR_Linux + 315)
-#define __NR_execveat (__NR_Linux + 316)
-#define __NR_userfaultfd (__NR_Linux + 317)
-#define __NR_membarrier (__NR_Linux + 318)
-#define __NR_mlock2 (__NR_Linux + 319)
-#define __NR_copy_file_range (__NR_Linux + 320)
-#define __NR_preadv2 (__NR_Linux + 321)
-#define __NR_pwritev2 (__NR_Linux + 322)
-#define __NR_pkey_mprotect (__NR_Linux + 323)
-#define __NR_pkey_alloc (__NR_Linux + 324)
-#define __NR_pkey_free (__NR_Linux + 325)
-#define __NR_statx (__NR_Linux + 326)
-#define __NR_rseq (__NR_Linux + 327)
-#define __NR_io_pgetevents (__NR_Linux + 328)
-
-/*
- * Offset of the last Linux 64-bit flavoured syscall
- */
-#define __NR_Linux_syscalls 328
-
-#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
-
-#define __NR_64_Linux 5000
-#define __NR_64_Linux_syscalls 328
-
-#if _MIPS_SIM == _MIPS_SIM_NABI32
-
-/*
- * Linux N32 syscalls are in the range from 6000 to 6999.
- */
-#define __NR_Linux 6000
-#define __NR_read (__NR_Linux + 0)
-#define __NR_write (__NR_Linux + 1)
-#define __NR_open (__NR_Linux + 2)
-#define __NR_close (__NR_Linux + 3)
-#define __NR_stat (__NR_Linux + 4)
-#define __NR_fstat (__NR_Linux + 5)
-#define __NR_lstat (__NR_Linux + 6)
-#define __NR_poll (__NR_Linux + 7)
-#define __NR_lseek (__NR_Linux + 8)
-#define __NR_mmap (__NR_Linux + 9)
-#define __NR_mprotect (__NR_Linux + 10)
-#define __NR_munmap (__NR_Linux + 11)
-#define __NR_brk (__NR_Linux + 12)
-#define __NR_rt_sigaction (__NR_Linux + 13)
-#define __NR_rt_sigprocmask (__NR_Linux + 14)
-#define __NR_ioctl (__NR_Linux + 15)
-#define __NR_pread64 (__NR_Linux + 16)
-#define __NR_pwrite64 (__NR_Linux + 17)
-#define __NR_readv (__NR_Linux + 18)
-#define __NR_writev (__NR_Linux + 19)
-#define __NR_access (__NR_Linux + 20)
-#define __NR_pipe (__NR_Linux + 21)
-#define __NR__newselect (__NR_Linux + 22)
-#define __NR_sched_yield (__NR_Linux + 23)
-#define __NR_mremap (__NR_Linux + 24)
-#define __NR_msync (__NR_Linux + 25)
-#define __NR_mincore (__NR_Linux + 26)
-#define __NR_madvise (__NR_Linux + 27)
-#define __NR_shmget (__NR_Linux + 28)
-#define __NR_shmat (__NR_Linux + 29)
-#define __NR_shmctl (__NR_Linux + 30)
-#define __NR_dup (__NR_Linux + 31)
-#define __NR_dup2 (__NR_Linux + 32)
-#define __NR_pause (__NR_Linux + 33)
-#define __NR_nanosleep (__NR_Linux + 34)
-#define __NR_getitimer (__NR_Linux + 35)
-#define __NR_setitimer (__NR_Linux + 36)
-#define __NR_alarm (__NR_Linux + 37)
-#define __NR_getpid (__NR_Linux + 38)
-#define __NR_sendfile (__NR_Linux + 39)
-#define __NR_socket (__NR_Linux + 40)
-#define __NR_connect (__NR_Linux + 41)
-#define __NR_accept (__NR_Linux + 42)
-#define __NR_sendto (__NR_Linux + 43)
-#define __NR_recvfrom (__NR_Linux + 44)
-#define __NR_sendmsg (__NR_Linux + 45)
-#define __NR_recvmsg (__NR_Linux + 46)
-#define __NR_shutdown (__NR_Linux + 47)
-#define __NR_bind (__NR_Linux + 48)
-#define __NR_listen (__NR_Linux + 49)
-#define __NR_getsockname (__NR_Linux + 50)
-#define __NR_getpeername (__NR_Linux + 51)
-#define __NR_socketpair (__NR_Linux + 52)
-#define __NR_setsockopt (__NR_Linux + 53)
-#define __NR_getsockopt (__NR_Linux + 54)
-#define __NR_clone (__NR_Linux + 55)
-#define __NR_fork (__NR_Linux + 56)
-#define __NR_execve (__NR_Linux + 57)
-#define __NR_exit (__NR_Linux + 58)
-#define __NR_wait4 (__NR_Linux + 59)
-#define __NR_kill (__NR_Linux + 60)
-#define __NR_uname (__NR_Linux + 61)
-#define __NR_semget (__NR_Linux + 62)
-#define __NR_semop (__NR_Linux + 63)
-#define __NR_semctl (__NR_Linux + 64)
-#define __NR_shmdt (__NR_Linux + 65)
-#define __NR_msgget (__NR_Linux + 66)
-#define __NR_msgsnd (__NR_Linux + 67)
-#define __NR_msgrcv (__NR_Linux + 68)
-#define __NR_msgctl (__NR_Linux + 69)
-#define __NR_fcntl (__NR_Linux + 70)
-#define __NR_flock (__NR_Linux + 71)
-#define __NR_fsync (__NR_Linux + 72)
-#define __NR_fdatasync (__NR_Linux + 73)
-#define __NR_truncate (__NR_Linux + 74)
-#define __NR_ftruncate (__NR_Linux + 75)
-#define __NR_getdents (__NR_Linux + 76)
-#define __NR_getcwd (__NR_Linux + 77)
-#define __NR_chdir (__NR_Linux + 78)
-#define __NR_fchdir (__NR_Linux + 79)
-#define __NR_rename (__NR_Linux + 80)
-#define __NR_mkdir (__NR_Linux + 81)
-#define __NR_rmdir (__NR_Linux + 82)
-#define __NR_creat (__NR_Linux + 83)
-#define __NR_link (__NR_Linux + 84)
-#define __NR_unlink (__NR_Linux + 85)
-#define __NR_symlink (__NR_Linux + 86)
-#define __NR_readlink (__NR_Linux + 87)
-#define __NR_chmod (__NR_Linux + 88)
-#define __NR_fchmod (__NR_Linux + 89)
-#define __NR_chown (__NR_Linux + 90)
-#define __NR_fchown (__NR_Linux + 91)
-#define __NR_lchown (__NR_Linux + 92)
-#define __NR_umask (__NR_Linux + 93)
-#define __NR_gettimeofday (__NR_Linux + 94)
-#define __NR_getrlimit (__NR_Linux + 95)
-#define __NR_getrusage (__NR_Linux + 96)
-#define __NR_sysinfo (__NR_Linux + 97)
-#define __NR_times (__NR_Linux + 98)
-#define __NR_ptrace (__NR_Linux + 99)
-#define __NR_getuid (__NR_Linux + 100)
-#define __NR_syslog (__NR_Linux + 101)
-#define __NR_getgid (__NR_Linux + 102)
-#define __NR_setuid (__NR_Linux + 103)
-#define __NR_setgid (__NR_Linux + 104)
-#define __NR_geteuid (__NR_Linux + 105)
-#define __NR_getegid (__NR_Linux + 106)
-#define __NR_setpgid (__NR_Linux + 107)
-#define __NR_getppid (__NR_Linux + 108)
-#define __NR_getpgrp (__NR_Linux + 109)
-#define __NR_setsid (__NR_Linux + 110)
-#define __NR_setreuid (__NR_Linux + 111)
-#define __NR_setregid (__NR_Linux + 112)
-#define __NR_getgroups (__NR_Linux + 113)
-#define __NR_setgroups (__NR_Linux + 114)
-#define __NR_setresuid (__NR_Linux + 115)
-#define __NR_getresuid (__NR_Linux + 116)
-#define __NR_setresgid (__NR_Linux + 117)
-#define __NR_getresgid (__NR_Linux + 118)
-#define __NR_getpgid (__NR_Linux + 119)
-#define __NR_setfsuid (__NR_Linux + 120)
-#define __NR_setfsgid (__NR_Linux + 121)
-#define __NR_getsid (__NR_Linux + 122)
-#define __NR_capget (__NR_Linux + 123)
-#define __NR_capset (__NR_Linux + 124)
-#define __NR_rt_sigpending (__NR_Linux + 125)
-#define __NR_rt_sigtimedwait (__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 127)
-#define __NR_rt_sigsuspend (__NR_Linux + 128)
-#define __NR_sigaltstack (__NR_Linux + 129)
-#define __NR_utime (__NR_Linux + 130)
-#define __NR_mknod (__NR_Linux + 131)
-#define __NR_personality (__NR_Linux + 132)
-#define __NR_ustat (__NR_Linux + 133)
-#define __NR_statfs (__NR_Linux + 134)
-#define __NR_fstatfs (__NR_Linux + 135)
-#define __NR_sysfs (__NR_Linux + 136)
-#define __NR_getpriority (__NR_Linux + 137)
-#define __NR_setpriority (__NR_Linux + 138)
-#define __NR_sched_setparam (__NR_Linux + 139)
-#define __NR_sched_getparam (__NR_Linux + 140)
-#define __NR_sched_setscheduler (__NR_Linux + 141)
-#define __NR_sched_getscheduler (__NR_Linux + 142)
-#define __NR_sched_get_priority_max (__NR_Linux + 143)
-#define __NR_sched_get_priority_min (__NR_Linux + 144)
-#define __NR_sched_rr_get_interval (__NR_Linux + 145)
-#define __NR_mlock (__NR_Linux + 146)
-#define __NR_munlock (__NR_Linux + 147)
-#define __NR_mlockall (__NR_Linux + 148)
-#define __NR_munlockall (__NR_Linux + 149)
-#define __NR_vhangup (__NR_Linux + 150)
-#define __NR_pivot_root (__NR_Linux + 151)
-#define __NR__sysctl (__NR_Linux + 152)
-#define __NR_prctl (__NR_Linux + 153)
-#define __NR_adjtimex (__NR_Linux + 154)
-#define __NR_setrlimit (__NR_Linux + 155)
-#define __NR_chroot (__NR_Linux + 156)
-#define __NR_sync (__NR_Linux + 157)
-#define __NR_acct (__NR_Linux + 158)
-#define __NR_settimeofday (__NR_Linux + 159)
-#define __NR_mount (__NR_Linux + 160)
-#define __NR_umount2 (__NR_Linux + 161)
-#define __NR_swapon (__NR_Linux + 162)
-#define __NR_swapoff (__NR_Linux + 163)
-#define __NR_reboot (__NR_Linux + 164)
-#define __NR_sethostname (__NR_Linux + 165)
-#define __NR_setdomainname (__NR_Linux + 166)
-#define __NR_create_module (__NR_Linux + 167)
-#define __NR_init_module (__NR_Linux + 168)
-#define __NR_delete_module (__NR_Linux + 169)
-#define __NR_get_kernel_syms (__NR_Linux + 170)
-#define __NR_query_module (__NR_Linux + 171)
-#define __NR_quotactl (__NR_Linux + 172)
-#define __NR_nfsservctl (__NR_Linux + 173)
-#define __NR_getpmsg (__NR_Linux + 174)
-#define __NR_putpmsg (__NR_Linux + 175)
-#define __NR_afs_syscall (__NR_Linux + 176)
-#define __NR_reserved177 (__NR_Linux + 177)
-#define __NR_gettid (__NR_Linux + 178)
-#define __NR_readahead (__NR_Linux + 179)
-#define __NR_setxattr (__NR_Linux + 180)
-#define __NR_lsetxattr (__NR_Linux + 181)
-#define __NR_fsetxattr (__NR_Linux + 182)
-#define __NR_getxattr (__NR_Linux + 183)
-#define __NR_lgetxattr (__NR_Linux + 184)
-#define __NR_fgetxattr (__NR_Linux + 185)
-#define __NR_listxattr (__NR_Linux + 186)
-#define __NR_llistxattr (__NR_Linux + 187)
-#define __NR_flistxattr (__NR_Linux + 188)
-#define __NR_removexattr (__NR_Linux + 189)
-#define __NR_lremovexattr (__NR_Linux + 190)
-#define __NR_fremovexattr (__NR_Linux + 191)
-#define __NR_tkill (__NR_Linux + 192)
-#define __NR_reserved193 (__NR_Linux + 193)
-#define __NR_futex (__NR_Linux + 194)
-#define __NR_sched_setaffinity (__NR_Linux + 195)
-#define __NR_sched_getaffinity (__NR_Linux + 196)
-#define __NR_cacheflush (__NR_Linux + 197)
-#define __NR_cachectl (__NR_Linux + 198)
-#define __NR_sysmips (__NR_Linux + 199)
-#define __NR_io_setup (__NR_Linux + 200)
-#define __NR_io_destroy (__NR_Linux + 201)
-#define __NR_io_getevents (__NR_Linux + 202)
-#define __NR_io_submit (__NR_Linux + 203)
-#define __NR_io_cancel (__NR_Linux + 204)
-#define __NR_exit_group (__NR_Linux + 205)
-#define __NR_lookup_dcookie (__NR_Linux + 206)
-#define __NR_epoll_create (__NR_Linux + 207)
-#define __NR_epoll_ctl (__NR_Linux + 208)
-#define __NR_epoll_wait (__NR_Linux + 209)
-#define __NR_remap_file_pages (__NR_Linux + 210)
-#define __NR_rt_sigreturn (__NR_Linux + 211)
-#define __NR_fcntl64 (__NR_Linux + 212)
-#define __NR_set_tid_address (__NR_Linux + 213)
-#define __NR_restart_syscall (__NR_Linux + 214)
-#define __NR_semtimedop (__NR_Linux + 215)
-#define __NR_fadvise64 (__NR_Linux + 216)
-#define __NR_statfs64 (__NR_Linux + 217)
-#define __NR_fstatfs64 (__NR_Linux + 218)
-#define __NR_sendfile64 (__NR_Linux + 219)
-#define __NR_timer_create (__NR_Linux + 220)
-#define __NR_timer_settime (__NR_Linux + 221)
-#define __NR_timer_gettime (__NR_Linux + 222)
-#define __NR_timer_getoverrun (__NR_Linux + 223)
-#define __NR_timer_delete (__NR_Linux + 224)
-#define __NR_clock_settime (__NR_Linux + 225)
-#define __NR_clock_gettime (__NR_Linux + 226)
-#define __NR_clock_getres (__NR_Linux + 227)
-#define __NR_clock_nanosleep (__NR_Linux + 228)
-#define __NR_tgkill (__NR_Linux + 229)
-#define __NR_utimes (__NR_Linux + 230)
-#define __NR_mbind (__NR_Linux + 231)
-#define __NR_get_mempolicy (__NR_Linux + 232)
-#define __NR_set_mempolicy (__NR_Linux + 233)
-#define __NR_mq_open (__NR_Linux + 234)
-#define __NR_mq_unlink (__NR_Linux + 235)
-#define __NR_mq_timedsend (__NR_Linux + 236)
-#define __NR_mq_timedreceive (__NR_Linux + 237)
-#define __NR_mq_notify (__NR_Linux + 238)
-#define __NR_mq_getsetattr (__NR_Linux + 239)
-#define __NR_vserver (__NR_Linux + 240)
-#define __NR_waitid (__NR_Linux + 241)
-/* #define __NR_sys_setaltroot (__NR_Linux + 242) */
-#define __NR_add_key (__NR_Linux + 243)
-#define __NR_request_key (__NR_Linux + 244)
-#define __NR_keyctl (__NR_Linux + 245)
-#define __NR_set_thread_area (__NR_Linux + 246)
-#define __NR_inotify_init (__NR_Linux + 247)
-#define __NR_inotify_add_watch (__NR_Linux + 248)
-#define __NR_inotify_rm_watch (__NR_Linux + 249)
-#define __NR_migrate_pages (__NR_Linux + 250)
-#define __NR_openat (__NR_Linux + 251)
-#define __NR_mkdirat (__NR_Linux + 252)
-#define __NR_mknodat (__NR_Linux + 253)
-#define __NR_fchownat (__NR_Linux + 254)
-#define __NR_futimesat (__NR_Linux + 255)
-#define __NR_newfstatat (__NR_Linux + 256)
-#define __NR_unlinkat (__NR_Linux + 257)
-#define __NR_renameat (__NR_Linux + 258)
-#define __NR_linkat (__NR_Linux + 259)
-#define __NR_symlinkat (__NR_Linux + 260)
-#define __NR_readlinkat (__NR_Linux + 261)
-#define __NR_fchmodat (__NR_Linux + 262)
-#define __NR_faccessat (__NR_Linux + 263)
-#define __NR_pselect6 (__NR_Linux + 264)
-#define __NR_ppoll (__NR_Linux + 265)
-#define __NR_unshare (__NR_Linux + 266)
-#define __NR_splice (__NR_Linux + 267)
-#define __NR_sync_file_range (__NR_Linux + 268)
-#define __NR_tee (__NR_Linux + 269)
-#define __NR_vmsplice (__NR_Linux + 270)
-#define __NR_move_pages (__NR_Linux + 271)
-#define __NR_set_robust_list (__NR_Linux + 272)
-#define __NR_get_robust_list (__NR_Linux + 273)
-#define __NR_kexec_load (__NR_Linux + 274)
-#define __NR_getcpu (__NR_Linux + 275)
-#define __NR_epoll_pwait (__NR_Linux + 276)
-#define __NR_ioprio_set (__NR_Linux + 277)
-#define __NR_ioprio_get (__NR_Linux + 278)
-#define __NR_utimensat (__NR_Linux + 279)
-#define __NR_signalfd (__NR_Linux + 280)
-#define __NR_timerfd (__NR_Linux + 281)
-#define __NR_eventfd (__NR_Linux + 282)
-#define __NR_fallocate (__NR_Linux + 283)
-#define __NR_timerfd_create (__NR_Linux + 284)
-#define __NR_timerfd_gettime (__NR_Linux + 285)
-#define __NR_timerfd_settime (__NR_Linux + 286)
-#define __NR_signalfd4 (__NR_Linux + 287)
-#define __NR_eventfd2 (__NR_Linux + 288)
-#define __NR_epoll_create1 (__NR_Linux + 289)
-#define __NR_dup3 (__NR_Linux + 290)
-#define __NR_pipe2 (__NR_Linux + 291)
-#define __NR_inotify_init1 (__NR_Linux + 292)
-#define __NR_preadv (__NR_Linux + 293)
-#define __NR_pwritev (__NR_Linux + 294)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 295)
-#define __NR_perf_event_open (__NR_Linux + 296)
-#define __NR_accept4 (__NR_Linux + 297)
-#define __NR_recvmmsg (__NR_Linux + 298)
-#define __NR_getdents64 (__NR_Linux + 299)
-#define __NR_fanotify_init (__NR_Linux + 300)
-#define __NR_fanotify_mark (__NR_Linux + 301)
-#define __NR_prlimit64 (__NR_Linux + 302)
-#define __NR_name_to_handle_at (__NR_Linux + 303)
-#define __NR_open_by_handle_at (__NR_Linux + 304)
-#define __NR_clock_adjtime (__NR_Linux + 305)
-#define __NR_syncfs (__NR_Linux + 306)
-#define __NR_sendmmsg (__NR_Linux + 307)
-#define __NR_setns (__NR_Linux + 308)
-#define __NR_process_vm_readv (__NR_Linux + 309)
-#define __NR_process_vm_writev (__NR_Linux + 310)
-#define __NR_kcmp (__NR_Linux + 311)
-#define __NR_finit_module (__NR_Linux + 312)
-#define __NR_sched_setattr (__NR_Linux + 313)
-#define __NR_sched_getattr (__NR_Linux + 314)
-#define __NR_renameat2 (__NR_Linux + 315)
-#define __NR_seccomp (__NR_Linux + 316)
-#define __NR_getrandom (__NR_Linux + 317)
-#define __NR_memfd_create (__NR_Linux + 318)
-#define __NR_bpf (__NR_Linux + 319)
-#define __NR_execveat (__NR_Linux + 320)
-#define __NR_userfaultfd (__NR_Linux + 321)
-#define __NR_membarrier (__NR_Linux + 322)
-#define __NR_mlock2 (__NR_Linux + 323)
-#define __NR_copy_file_range (__NR_Linux + 324)
-#define __NR_preadv2 (__NR_Linux + 325)
-#define __NR_pwritev2 (__NR_Linux + 326)
-#define __NR_pkey_mprotect (__NR_Linux + 327)
-#define __NR_pkey_alloc (__NR_Linux + 328)
-#define __NR_pkey_free (__NR_Linux + 329)
-#define __NR_statx (__NR_Linux + 330)
-#define __NR_rseq (__NR_Linux + 331)
-#define __NR_io_pgetevents (__NR_Linux + 332)
-
-/*
- * Offset of the last N32 flavoured syscall
- */
-#define __NR_Linux_syscalls 332
-
-#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
-
-#define __NR_N32_Linux 6000
-#define __NR_N32_Linux_syscalls 332
-
-#endif /* _UAPI_ASM_UNISTD_H */
diff --git a/libc/include/mipsel-linux-musl/asm/auxvec.h b/libc/include/mipsel-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/auxvec.h
rename to libc/include/mipsel-linux-any/asm/auxvec.h
diff --git a/libc/include/mipsel-linux-musl/asm/bitsperlong.h b/libc/include/mipsel-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/bitsperlong.h
rename to libc/include/mipsel-linux-any/asm/bitsperlong.h
diff --git a/libc/include/mipsel-linux-musl/asm/byteorder.h b/libc/include/mipsel-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/byteorder.h
rename to libc/include/mipsel-linux-any/asm/byteorder.h
diff --git a/libc/include/mipsel-linux-musl/asm/errno.h b/libc/include/mipsel-linux-any/asm/errno.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/errno.h
rename to libc/include/mipsel-linux-any/asm/errno.h
diff --git a/libc/include/mipsel-linux-musl/asm/fcntl.h b/libc/include/mipsel-linux-any/asm/fcntl.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/fcntl.h
rename to libc/include/mipsel-linux-any/asm/fcntl.h
diff --git a/libc/include/mipsel-linux-musl/asm/hwcap.h b/libc/include/mipsel-linux-any/asm/hwcap.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/hwcap.h
rename to libc/include/mipsel-linux-any/asm/hwcap.h
diff --git a/libc/include/mipsel-linux-musl/asm/ioctl.h b/libc/include/mipsel-linux-any/asm/ioctl.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/ioctl.h
rename to libc/include/mipsel-linux-any/asm/ioctl.h
diff --git a/libc/include/mipsel-linux-musl/asm/ioctls.h b/libc/include/mipsel-linux-any/asm/ioctls.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/ioctls.h
rename to libc/include/mipsel-linux-any/asm/ioctls.h
diff --git a/libc/include/mipsel-linux-musl/asm/kvm.h b/libc/include/mipsel-linux-any/asm/kvm.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/kvm.h
rename to libc/include/mipsel-linux-any/asm/kvm.h
diff --git a/libc/include/mipsel-linux-musl/asm/kvm_para.h b/libc/include/mipsel-linux-any/asm/kvm_para.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/kvm_para.h
rename to libc/include/mipsel-linux-any/asm/kvm_para.h
diff --git a/libc/include/mipsel-linux-musl/asm/mman.h b/libc/include/mipsel-linux-any/asm/mman.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/mman.h
rename to libc/include/mipsel-linux-any/asm/mman.h
diff --git a/libc/include/mipsel-linux-musl/asm/msgbuf.h b/libc/include/mipsel-linux-any/asm/msgbuf.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/msgbuf.h
rename to libc/include/mipsel-linux-any/asm/msgbuf.h
diff --git a/libc/include/mipsel-linux-musl/asm/param.h b/libc/include/mipsel-linux-any/asm/param.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/param.h
rename to libc/include/mipsel-linux-any/asm/param.h
diff --git a/libc/include/mipsel-linux-musl/asm/poll.h b/libc/include/mipsel-linux-any/asm/poll.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/poll.h
rename to libc/include/mipsel-linux-any/asm/poll.h
diff --git a/libc/include/mipsel-linux-musl/asm/posix_types.h b/libc/include/mipsel-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/posix_types.h
rename to libc/include/mipsel-linux-any/asm/posix_types.h
diff --git a/libc/include/mipsel-linux-musl/asm/ptrace.h b/libc/include/mipsel-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/ptrace.h
rename to libc/include/mipsel-linux-any/asm/ptrace.h
diff --git a/libc/include/mipsel-linux-musl/asm/resource.h b/libc/include/mipsel-linux-any/asm/resource.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/resource.h
rename to libc/include/mipsel-linux-any/asm/resource.h
diff --git a/libc/include/mipsel-linux-musl/asm/sembuf.h b/libc/include/mipsel-linux-any/asm/sembuf.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/sembuf.h
rename to libc/include/mipsel-linux-any/asm/sembuf.h
diff --git a/libc/include/mipsel-linux-musl/asm/setup.h b/libc/include/mipsel-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/setup.h
rename to libc/include/mipsel-linux-any/asm/setup.h
diff --git a/libc/include/mipsel-linux-musl/asm/shmbuf.h b/libc/include/mipsel-linux-any/asm/shmbuf.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/shmbuf.h
rename to libc/include/mipsel-linux-any/asm/shmbuf.h
diff --git a/libc/include/mipsel-linux-musl/asm/sigcontext.h b/libc/include/mipsel-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/sigcontext.h
rename to libc/include/mipsel-linux-any/asm/sigcontext.h
diff --git a/libc/include/mipsel-linux-musl/asm/siginfo.h b/libc/include/mipsel-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/siginfo.h
rename to libc/include/mipsel-linux-any/asm/siginfo.h
diff --git a/libc/include/mipsel-linux-musl/asm/signal.h b/libc/include/mipsel-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/signal.h
rename to libc/include/mipsel-linux-any/asm/signal.h
diff --git a/libc/include/mipsel-linux-musl/asm/socket.h b/libc/include/mipsel-linux-any/asm/socket.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/socket.h
rename to libc/include/mipsel-linux-any/asm/socket.h
diff --git a/libc/include/mipsel-linux-musl/asm/sockios.h b/libc/include/mipsel-linux-any/asm/sockios.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/sockios.h
rename to libc/include/mipsel-linux-any/asm/sockios.h
diff --git a/libc/include/mipsel-linux-musl/asm/stat.h b/libc/include/mipsel-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/stat.h
rename to libc/include/mipsel-linux-any/asm/stat.h
diff --git a/libc/include/mipsel-linux-musl/asm/statfs.h b/libc/include/mipsel-linux-any/asm/statfs.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/statfs.h
rename to libc/include/mipsel-linux-any/asm/statfs.h
diff --git a/libc/include/mipsel-linux-musl/asm/swab.h b/libc/include/mipsel-linux-any/asm/swab.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/swab.h
rename to libc/include/mipsel-linux-any/asm/swab.h
diff --git a/libc/include/mipsel-linux-musl/asm/termbits.h b/libc/include/mipsel-linux-any/asm/termbits.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/termbits.h
rename to libc/include/mipsel-linux-any/asm/termbits.h
diff --git a/libc/include/mipsel-linux-musl/asm/termios.h b/libc/include/mipsel-linux-any/asm/termios.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/termios.h
rename to libc/include/mipsel-linux-any/asm/termios.h
diff --git a/libc/include/mipsel-linux-musl/asm/types.h b/libc/include/mipsel-linux-any/asm/types.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/types.h
rename to libc/include/mipsel-linux-any/asm/types.h
diff --git a/libc/include/mipsel-linux-musl/asm/unistd.h b/libc/include/mipsel-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/mipsel-linux-musl/asm/unistd.h
rename to libc/include/mipsel-linux-any/asm/unistd.h
diff --git a/libc/include/mipsel-linux-gnu/asm/sgidefs.h b/libc/include/mipsel-linux-gnu/asm/sgidefs.h
deleted file mode 100644
index 26143e3b7c..0000000000
--- a/libc/include/mipsel-linux-gnu/asm/sgidefs.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1996, 1999, 2001 Ralf Baechle
- * Copyright (C) 1999 Silicon Graphics, Inc.
- * Copyright (C) 2001 MIPS Technologies, Inc.
- */
-#ifndef __ASM_SGIDEFS_H
-#define __ASM_SGIDEFS_H
-
-/*
- * Using a Linux compiler for building Linux seems logic but not to
- * everybody.
- */
-#ifndef __linux__
-#error Use a Linux compiler or give up.
-#endif
-
-/*
- * Definitions for the ISA levels
- *
- * With the introduction of MIPS32 / MIPS64 instruction sets definitions
- * MIPS ISAs are no longer subsets of each other. Therefore comparisons
- * on these symbols except with == may result in unexpected results and
- * are forbidden!
- */
-#define _MIPS_ISA_MIPS1 1
-#define _MIPS_ISA_MIPS2 2
-#define _MIPS_ISA_MIPS3 3
-#define _MIPS_ISA_MIPS4 4
-#define _MIPS_ISA_MIPS5 5
-#define _MIPS_ISA_MIPS32 6
-#define _MIPS_ISA_MIPS64 7
-
-/*
- * Subprogram calling convention
- */
-#define _MIPS_SIM_ABI32 1
-#define _MIPS_SIM_NABI32 2
-#define _MIPS_SIM_ABI64 3
-
-#endif /* __ASM_SGIDEFS_H */
diff --git a/libc/include/mipsel-linux-gnu/asm/unistd.h b/libc/include/mipsel-linux-gnu/asm/unistd.h
deleted file mode 100644
index f25dd1d83f..0000000000
--- a/libc/include/mipsel-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,1101 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle
- * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
- *
- * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto
- * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A
- */
-#ifndef _UAPI_ASM_UNISTD_H
-#define _UAPI_ASM_UNISTD_H
-
-#include
-
-#if _MIPS_SIM == _MIPS_SIM_ABI32
-
-/*
- * Linux o32 style syscalls are in the range from 4000 to 4999.
- */
-#define __NR_Linux 4000
-#define __NR_syscall (__NR_Linux + 0)
-#define __NR_exit (__NR_Linux + 1)
-#define __NR_fork (__NR_Linux + 2)
-#define __NR_read (__NR_Linux + 3)
-#define __NR_write (__NR_Linux + 4)
-#define __NR_open (__NR_Linux + 5)
-#define __NR_close (__NR_Linux + 6)
-#define __NR_waitpid (__NR_Linux + 7)
-#define __NR_creat (__NR_Linux + 8)
-#define __NR_link (__NR_Linux + 9)
-#define __NR_unlink (__NR_Linux + 10)
-#define __NR_execve (__NR_Linux + 11)
-#define __NR_chdir (__NR_Linux + 12)
-#define __NR_time (__NR_Linux + 13)
-#define __NR_mknod (__NR_Linux + 14)
-#define __NR_chmod (__NR_Linux + 15)
-#define __NR_lchown (__NR_Linux + 16)
-#define __NR_break (__NR_Linux + 17)
-#define __NR_unused18 (__NR_Linux + 18)
-#define __NR_lseek (__NR_Linux + 19)
-#define __NR_getpid (__NR_Linux + 20)
-#define __NR_mount (__NR_Linux + 21)
-#define __NR_umount (__NR_Linux + 22)
-#define __NR_setuid (__NR_Linux + 23)
-#define __NR_getuid (__NR_Linux + 24)
-#define __NR_stime (__NR_Linux + 25)
-#define __NR_ptrace (__NR_Linux + 26)
-#define __NR_alarm (__NR_Linux + 27)
-#define __NR_unused28 (__NR_Linux + 28)
-#define __NR_pause (__NR_Linux + 29)
-#define __NR_utime (__NR_Linux + 30)
-#define __NR_stty (__NR_Linux + 31)
-#define __NR_gtty (__NR_Linux + 32)
-#define __NR_access (__NR_Linux + 33)
-#define __NR_nice (__NR_Linux + 34)
-#define __NR_ftime (__NR_Linux + 35)
-#define __NR_sync (__NR_Linux + 36)
-#define __NR_kill (__NR_Linux + 37)
-#define __NR_rename (__NR_Linux + 38)
-#define __NR_mkdir (__NR_Linux + 39)
-#define __NR_rmdir (__NR_Linux + 40)
-#define __NR_dup (__NR_Linux + 41)
-#define __NR_pipe (__NR_Linux + 42)
-#define __NR_times (__NR_Linux + 43)
-#define __NR_prof (__NR_Linux + 44)
-#define __NR_brk (__NR_Linux + 45)
-#define __NR_setgid (__NR_Linux + 46)
-#define __NR_getgid (__NR_Linux + 47)
-#define __NR_signal (__NR_Linux + 48)
-#define __NR_geteuid (__NR_Linux + 49)
-#define __NR_getegid (__NR_Linux + 50)
-#define __NR_acct (__NR_Linux + 51)
-#define __NR_umount2 (__NR_Linux + 52)
-#define __NR_lock (__NR_Linux + 53)
-#define __NR_ioctl (__NR_Linux + 54)
-#define __NR_fcntl (__NR_Linux + 55)
-#define __NR_mpx (__NR_Linux + 56)
-#define __NR_setpgid (__NR_Linux + 57)
-#define __NR_ulimit (__NR_Linux + 58)
-#define __NR_unused59 (__NR_Linux + 59)
-#define __NR_umask (__NR_Linux + 60)
-#define __NR_chroot (__NR_Linux + 61)
-#define __NR_ustat (__NR_Linux + 62)
-#define __NR_dup2 (__NR_Linux + 63)
-#define __NR_getppid (__NR_Linux + 64)
-#define __NR_getpgrp (__NR_Linux + 65)
-#define __NR_setsid (__NR_Linux + 66)
-#define __NR_sigaction (__NR_Linux + 67)
-#define __NR_sgetmask (__NR_Linux + 68)
-#define __NR_ssetmask (__NR_Linux + 69)
-#define __NR_setreuid (__NR_Linux + 70)
-#define __NR_setregid (__NR_Linux + 71)
-#define __NR_sigsuspend (__NR_Linux + 72)
-#define __NR_sigpending (__NR_Linux + 73)
-#define __NR_sethostname (__NR_Linux + 74)
-#define __NR_setrlimit (__NR_Linux + 75)
-#define __NR_getrlimit (__NR_Linux + 76)
-#define __NR_getrusage (__NR_Linux + 77)
-#define __NR_gettimeofday (__NR_Linux + 78)
-#define __NR_settimeofday (__NR_Linux + 79)
-#define __NR_getgroups (__NR_Linux + 80)
-#define __NR_setgroups (__NR_Linux + 81)
-#define __NR_reserved82 (__NR_Linux + 82)
-#define __NR_symlink (__NR_Linux + 83)
-#define __NR_unused84 (__NR_Linux + 84)
-#define __NR_readlink (__NR_Linux + 85)
-#define __NR_uselib (__NR_Linux + 86)
-#define __NR_swapon (__NR_Linux + 87)
-#define __NR_reboot (__NR_Linux + 88)
-#define __NR_readdir (__NR_Linux + 89)
-#define __NR_mmap (__NR_Linux + 90)
-#define __NR_munmap (__NR_Linux + 91)
-#define __NR_truncate (__NR_Linux + 92)
-#define __NR_ftruncate (__NR_Linux + 93)
-#define __NR_fchmod (__NR_Linux + 94)
-#define __NR_fchown (__NR_Linux + 95)
-#define __NR_getpriority (__NR_Linux + 96)
-#define __NR_setpriority (__NR_Linux + 97)
-#define __NR_profil (__NR_Linux + 98)
-#define __NR_statfs (__NR_Linux + 99)
-#define __NR_fstatfs (__NR_Linux + 100)
-#define __NR_ioperm (__NR_Linux + 101)
-#define __NR_socketcall (__NR_Linux + 102)
-#define __NR_syslog (__NR_Linux + 103)
-#define __NR_setitimer (__NR_Linux + 104)
-#define __NR_getitimer (__NR_Linux + 105)
-#define __NR_stat (__NR_Linux + 106)
-#define __NR_lstat (__NR_Linux + 107)
-#define __NR_fstat (__NR_Linux + 108)
-#define __NR_unused109 (__NR_Linux + 109)
-#define __NR_iopl (__NR_Linux + 110)
-#define __NR_vhangup (__NR_Linux + 111)
-#define __NR_idle (__NR_Linux + 112)
-#define __NR_vm86 (__NR_Linux + 113)
-#define __NR_wait4 (__NR_Linux + 114)
-#define __NR_swapoff (__NR_Linux + 115)
-#define __NR_sysinfo (__NR_Linux + 116)
-#define __NR_ipc (__NR_Linux + 117)
-#define __NR_fsync (__NR_Linux + 118)
-#define __NR_sigreturn (__NR_Linux + 119)
-#define __NR_clone (__NR_Linux + 120)
-#define __NR_setdomainname (__NR_Linux + 121)
-#define __NR_uname (__NR_Linux + 122)
-#define __NR_modify_ldt (__NR_Linux + 123)
-#define __NR_adjtimex (__NR_Linux + 124)
-#define __NR_mprotect (__NR_Linux + 125)
-#define __NR_sigprocmask (__NR_Linux + 126)
-#define __NR_create_module (__NR_Linux + 127)
-#define __NR_init_module (__NR_Linux + 128)
-#define __NR_delete_module (__NR_Linux + 129)
-#define __NR_get_kernel_syms (__NR_Linux + 130)
-#define __NR_quotactl (__NR_Linux + 131)
-#define __NR_getpgid (__NR_Linux + 132)
-#define __NR_fchdir (__NR_Linux + 133)
-#define __NR_bdflush (__NR_Linux + 134)
-#define __NR_sysfs (__NR_Linux + 135)
-#define __NR_personality (__NR_Linux + 136)
-#define __NR_afs_syscall (__NR_Linux + 137) /* Syscall for Andrew File System */
-#define __NR_setfsuid (__NR_Linux + 138)
-#define __NR_setfsgid (__NR_Linux + 139)
-#define __NR__llseek (__NR_Linux + 140)
-#define __NR_getdents (__NR_Linux + 141)
-#define __NR__newselect (__NR_Linux + 142)
-#define __NR_flock (__NR_Linux + 143)
-#define __NR_msync (__NR_Linux + 144)
-#define __NR_readv (__NR_Linux + 145)
-#define __NR_writev (__NR_Linux + 146)
-#define __NR_cacheflush (__NR_Linux + 147)
-#define __NR_cachectl (__NR_Linux + 148)
-#define __NR_sysmips (__NR_Linux + 149)
-#define __NR_unused150 (__NR_Linux + 150)
-#define __NR_getsid (__NR_Linux + 151)
-#define __NR_fdatasync (__NR_Linux + 152)
-#define __NR__sysctl (__NR_Linux + 153)
-#define __NR_mlock (__NR_Linux + 154)
-#define __NR_munlock (__NR_Linux + 155)
-#define __NR_mlockall (__NR_Linux + 156)
-#define __NR_munlockall (__NR_Linux + 157)
-#define __NR_sched_setparam (__NR_Linux + 158)
-#define __NR_sched_getparam (__NR_Linux + 159)
-#define __NR_sched_setscheduler (__NR_Linux + 160)
-#define __NR_sched_getscheduler (__NR_Linux + 161)
-#define __NR_sched_yield (__NR_Linux + 162)
-#define __NR_sched_get_priority_max (__NR_Linux + 163)
-#define __NR_sched_get_priority_min (__NR_Linux + 164)
-#define __NR_sched_rr_get_interval (__NR_Linux + 165)
-#define __NR_nanosleep (__NR_Linux + 166)
-#define __NR_mremap (__NR_Linux + 167)
-#define __NR_accept (__NR_Linux + 168)
-#define __NR_bind (__NR_Linux + 169)
-#define __NR_connect (__NR_Linux + 170)
-#define __NR_getpeername (__NR_Linux + 171)
-#define __NR_getsockname (__NR_Linux + 172)
-#define __NR_getsockopt (__NR_Linux + 173)
-#define __NR_listen (__NR_Linux + 174)
-#define __NR_recv (__NR_Linux + 175)
-#define __NR_recvfrom (__NR_Linux + 176)
-#define __NR_recvmsg (__NR_Linux + 177)
-#define __NR_send (__NR_Linux + 178)
-#define __NR_sendmsg (__NR_Linux + 179)
-#define __NR_sendto (__NR_Linux + 180)
-#define __NR_setsockopt (__NR_Linux + 181)
-#define __NR_shutdown (__NR_Linux + 182)
-#define __NR_socket (__NR_Linux + 183)
-#define __NR_socketpair (__NR_Linux + 184)
-#define __NR_setresuid (__NR_Linux + 185)
-#define __NR_getresuid (__NR_Linux + 186)
-#define __NR_query_module (__NR_Linux + 187)
-#define __NR_poll (__NR_Linux + 188)
-#define __NR_nfsservctl (__NR_Linux + 189)
-#define __NR_setresgid (__NR_Linux + 190)
-#define __NR_getresgid (__NR_Linux + 191)
-#define __NR_prctl (__NR_Linux + 192)
-#define __NR_rt_sigreturn (__NR_Linux + 193)
-#define __NR_rt_sigaction (__NR_Linux + 194)
-#define __NR_rt_sigprocmask (__NR_Linux + 195)
-#define __NR_rt_sigpending (__NR_Linux + 196)
-#define __NR_rt_sigtimedwait (__NR_Linux + 197)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 198)
-#define __NR_rt_sigsuspend (__NR_Linux + 199)
-#define __NR_pread64 (__NR_Linux + 200)
-#define __NR_pwrite64 (__NR_Linux + 201)
-#define __NR_chown (__NR_Linux + 202)
-#define __NR_getcwd (__NR_Linux + 203)
-#define __NR_capget (__NR_Linux + 204)
-#define __NR_capset (__NR_Linux + 205)
-#define __NR_sigaltstack (__NR_Linux + 206)
-#define __NR_sendfile (__NR_Linux + 207)
-#define __NR_getpmsg (__NR_Linux + 208)
-#define __NR_putpmsg (__NR_Linux + 209)
-#define __NR_mmap2 (__NR_Linux + 210)
-#define __NR_truncate64 (__NR_Linux + 211)
-#define __NR_ftruncate64 (__NR_Linux + 212)
-#define __NR_stat64 (__NR_Linux + 213)
-#define __NR_lstat64 (__NR_Linux + 214)
-#define __NR_fstat64 (__NR_Linux + 215)
-#define __NR_pivot_root (__NR_Linux + 216)
-#define __NR_mincore (__NR_Linux + 217)
-#define __NR_madvise (__NR_Linux + 218)
-#define __NR_getdents64 (__NR_Linux + 219)
-#define __NR_fcntl64 (__NR_Linux + 220)
-#define __NR_reserved221 (__NR_Linux + 221)
-#define __NR_gettid (__NR_Linux + 222)
-#define __NR_readahead (__NR_Linux + 223)
-#define __NR_setxattr (__NR_Linux + 224)
-#define __NR_lsetxattr (__NR_Linux + 225)
-#define __NR_fsetxattr (__NR_Linux + 226)
-#define __NR_getxattr (__NR_Linux + 227)
-#define __NR_lgetxattr (__NR_Linux + 228)
-#define __NR_fgetxattr (__NR_Linux + 229)
-#define __NR_listxattr (__NR_Linux + 230)
-#define __NR_llistxattr (__NR_Linux + 231)
-#define __NR_flistxattr (__NR_Linux + 232)
-#define __NR_removexattr (__NR_Linux + 233)
-#define __NR_lremovexattr (__NR_Linux + 234)
-#define __NR_fremovexattr (__NR_Linux + 235)
-#define __NR_tkill (__NR_Linux + 236)
-#define __NR_sendfile64 (__NR_Linux + 237)
-#define __NR_futex (__NR_Linux + 238)
-#define __NR_sched_setaffinity (__NR_Linux + 239)
-#define __NR_sched_getaffinity (__NR_Linux + 240)
-#define __NR_io_setup (__NR_Linux + 241)
-#define __NR_io_destroy (__NR_Linux + 242)
-#define __NR_io_getevents (__NR_Linux + 243)
-#define __NR_io_submit (__NR_Linux + 244)
-#define __NR_io_cancel (__NR_Linux + 245)
-#define __NR_exit_group (__NR_Linux + 246)
-#define __NR_lookup_dcookie (__NR_Linux + 247)
-#define __NR_epoll_create (__NR_Linux + 248)
-#define __NR_epoll_ctl (__NR_Linux + 249)
-#define __NR_epoll_wait (__NR_Linux + 250)
-#define __NR_remap_file_pages (__NR_Linux + 251)
-#define __NR_set_tid_address (__NR_Linux + 252)
-#define __NR_restart_syscall (__NR_Linux + 253)
-#define __NR_fadvise64 (__NR_Linux + 254)
-#define __NR_statfs64 (__NR_Linux + 255)
-#define __NR_fstatfs64 (__NR_Linux + 256)
-#define __NR_timer_create (__NR_Linux + 257)
-#define __NR_timer_settime (__NR_Linux + 258)
-#define __NR_timer_gettime (__NR_Linux + 259)
-#define __NR_timer_getoverrun (__NR_Linux + 260)
-#define __NR_timer_delete (__NR_Linux + 261)
-#define __NR_clock_settime (__NR_Linux + 262)
-#define __NR_clock_gettime (__NR_Linux + 263)
-#define __NR_clock_getres (__NR_Linux + 264)
-#define __NR_clock_nanosleep (__NR_Linux + 265)
-#define __NR_tgkill (__NR_Linux + 266)
-#define __NR_utimes (__NR_Linux + 267)
-#define __NR_mbind (__NR_Linux + 268)
-#define __NR_get_mempolicy (__NR_Linux + 269)
-#define __NR_set_mempolicy (__NR_Linux + 270)
-#define __NR_mq_open (__NR_Linux + 271)
-#define __NR_mq_unlink (__NR_Linux + 272)
-#define __NR_mq_timedsend (__NR_Linux + 273)
-#define __NR_mq_timedreceive (__NR_Linux + 274)
-#define __NR_mq_notify (__NR_Linux + 275)
-#define __NR_mq_getsetattr (__NR_Linux + 276)
-#define __NR_vserver (__NR_Linux + 277)
-#define __NR_waitid (__NR_Linux + 278)
-/* #define __NR_sys_setaltroot (__NR_Linux + 279) */
-#define __NR_add_key (__NR_Linux + 280)
-#define __NR_request_key (__NR_Linux + 281)
-#define __NR_keyctl (__NR_Linux + 282)
-#define __NR_set_thread_area (__NR_Linux + 283)
-#define __NR_inotify_init (__NR_Linux + 284)
-#define __NR_inotify_add_watch (__NR_Linux + 285)
-#define __NR_inotify_rm_watch (__NR_Linux + 286)
-#define __NR_migrate_pages (__NR_Linux + 287)
-#define __NR_openat (__NR_Linux + 288)
-#define __NR_mkdirat (__NR_Linux + 289)
-#define __NR_mknodat (__NR_Linux + 290)
-#define __NR_fchownat (__NR_Linux + 291)
-#define __NR_futimesat (__NR_Linux + 292)
-#define __NR_fstatat64 (__NR_Linux + 293)
-#define __NR_unlinkat (__NR_Linux + 294)
-#define __NR_renameat (__NR_Linux + 295)
-#define __NR_linkat (__NR_Linux + 296)
-#define __NR_symlinkat (__NR_Linux + 297)
-#define __NR_readlinkat (__NR_Linux + 298)
-#define __NR_fchmodat (__NR_Linux + 299)
-#define __NR_faccessat (__NR_Linux + 300)
-#define __NR_pselect6 (__NR_Linux + 301)
-#define __NR_ppoll (__NR_Linux + 302)
-#define __NR_unshare (__NR_Linux + 303)
-#define __NR_splice (__NR_Linux + 304)
-#define __NR_sync_file_range (__NR_Linux + 305)
-#define __NR_tee (__NR_Linux + 306)
-#define __NR_vmsplice (__NR_Linux + 307)
-#define __NR_move_pages (__NR_Linux + 308)
-#define __NR_set_robust_list (__NR_Linux + 309)
-#define __NR_get_robust_list (__NR_Linux + 310)
-#define __NR_kexec_load (__NR_Linux + 311)
-#define __NR_getcpu (__NR_Linux + 312)
-#define __NR_epoll_pwait (__NR_Linux + 313)
-#define __NR_ioprio_set (__NR_Linux + 314)
-#define __NR_ioprio_get (__NR_Linux + 315)
-#define __NR_utimensat (__NR_Linux + 316)
-#define __NR_signalfd (__NR_Linux + 317)
-#define __NR_timerfd (__NR_Linux + 318)
-#define __NR_eventfd (__NR_Linux + 319)
-#define __NR_fallocate (__NR_Linux + 320)
-#define __NR_timerfd_create (__NR_Linux + 321)
-#define __NR_timerfd_gettime (__NR_Linux + 322)
-#define __NR_timerfd_settime (__NR_Linux + 323)
-#define __NR_signalfd4 (__NR_Linux + 324)
-#define __NR_eventfd2 (__NR_Linux + 325)
-#define __NR_epoll_create1 (__NR_Linux + 326)
-#define __NR_dup3 (__NR_Linux + 327)
-#define __NR_pipe2 (__NR_Linux + 328)
-#define __NR_inotify_init1 (__NR_Linux + 329)
-#define __NR_preadv (__NR_Linux + 330)
-#define __NR_pwritev (__NR_Linux + 331)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 332)
-#define __NR_perf_event_open (__NR_Linux + 333)
-#define __NR_accept4 (__NR_Linux + 334)
-#define __NR_recvmmsg (__NR_Linux + 335)
-#define __NR_fanotify_init (__NR_Linux + 336)
-#define __NR_fanotify_mark (__NR_Linux + 337)
-#define __NR_prlimit64 (__NR_Linux + 338)
-#define __NR_name_to_handle_at (__NR_Linux + 339)
-#define __NR_open_by_handle_at (__NR_Linux + 340)
-#define __NR_clock_adjtime (__NR_Linux + 341)
-#define __NR_syncfs (__NR_Linux + 342)
-#define __NR_sendmmsg (__NR_Linux + 343)
-#define __NR_setns (__NR_Linux + 344)
-#define __NR_process_vm_readv (__NR_Linux + 345)
-#define __NR_process_vm_writev (__NR_Linux + 346)
-#define __NR_kcmp (__NR_Linux + 347)
-#define __NR_finit_module (__NR_Linux + 348)
-#define __NR_sched_setattr (__NR_Linux + 349)
-#define __NR_sched_getattr (__NR_Linux + 350)
-#define __NR_renameat2 (__NR_Linux + 351)
-#define __NR_seccomp (__NR_Linux + 352)
-#define __NR_getrandom (__NR_Linux + 353)
-#define __NR_memfd_create (__NR_Linux + 354)
-#define __NR_bpf (__NR_Linux + 355)
-#define __NR_execveat (__NR_Linux + 356)
-#define __NR_userfaultfd (__NR_Linux + 357)
-#define __NR_membarrier (__NR_Linux + 358)
-#define __NR_mlock2 (__NR_Linux + 359)
-#define __NR_copy_file_range (__NR_Linux + 360)
-#define __NR_preadv2 (__NR_Linux + 361)
-#define __NR_pwritev2 (__NR_Linux + 362)
-#define __NR_pkey_mprotect (__NR_Linux + 363)
-#define __NR_pkey_alloc (__NR_Linux + 364)
-#define __NR_pkey_free (__NR_Linux + 365)
-#define __NR_statx (__NR_Linux + 366)
-#define __NR_rseq (__NR_Linux + 367)
-#define __NR_io_pgetevents (__NR_Linux + 368)
-
-
-/*
- * Offset of the last Linux o32 flavoured syscall
- */
-#define __NR_Linux_syscalls 368
-
-#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
-
-#define __NR_O32_Linux 4000
-#define __NR_O32_Linux_syscalls 368
-
-#if _MIPS_SIM == _MIPS_SIM_ABI64
-
-/*
- * Linux 64-bit syscalls are in the range from 5000 to 5999.
- */
-#define __NR_Linux 5000
-#define __NR_read (__NR_Linux + 0)
-#define __NR_write (__NR_Linux + 1)
-#define __NR_open (__NR_Linux + 2)
-#define __NR_close (__NR_Linux + 3)
-#define __NR_stat (__NR_Linux + 4)
-#define __NR_fstat (__NR_Linux + 5)
-#define __NR_lstat (__NR_Linux + 6)
-#define __NR_poll (__NR_Linux + 7)
-#define __NR_lseek (__NR_Linux + 8)
-#define __NR_mmap (__NR_Linux + 9)
-#define __NR_mprotect (__NR_Linux + 10)
-#define __NR_munmap (__NR_Linux + 11)
-#define __NR_brk (__NR_Linux + 12)
-#define __NR_rt_sigaction (__NR_Linux + 13)
-#define __NR_rt_sigprocmask (__NR_Linux + 14)
-#define __NR_ioctl (__NR_Linux + 15)
-#define __NR_pread64 (__NR_Linux + 16)
-#define __NR_pwrite64 (__NR_Linux + 17)
-#define __NR_readv (__NR_Linux + 18)
-#define __NR_writev (__NR_Linux + 19)
-#define __NR_access (__NR_Linux + 20)
-#define __NR_pipe (__NR_Linux + 21)
-#define __NR__newselect (__NR_Linux + 22)
-#define __NR_sched_yield (__NR_Linux + 23)
-#define __NR_mremap (__NR_Linux + 24)
-#define __NR_msync (__NR_Linux + 25)
-#define __NR_mincore (__NR_Linux + 26)
-#define __NR_madvise (__NR_Linux + 27)
-#define __NR_shmget (__NR_Linux + 28)
-#define __NR_shmat (__NR_Linux + 29)
-#define __NR_shmctl (__NR_Linux + 30)
-#define __NR_dup (__NR_Linux + 31)
-#define __NR_dup2 (__NR_Linux + 32)
-#define __NR_pause (__NR_Linux + 33)
-#define __NR_nanosleep (__NR_Linux + 34)
-#define __NR_getitimer (__NR_Linux + 35)
-#define __NR_setitimer (__NR_Linux + 36)
-#define __NR_alarm (__NR_Linux + 37)
-#define __NR_getpid (__NR_Linux + 38)
-#define __NR_sendfile (__NR_Linux + 39)
-#define __NR_socket (__NR_Linux + 40)
-#define __NR_connect (__NR_Linux + 41)
-#define __NR_accept (__NR_Linux + 42)
-#define __NR_sendto (__NR_Linux + 43)
-#define __NR_recvfrom (__NR_Linux + 44)
-#define __NR_sendmsg (__NR_Linux + 45)
-#define __NR_recvmsg (__NR_Linux + 46)
-#define __NR_shutdown (__NR_Linux + 47)
-#define __NR_bind (__NR_Linux + 48)
-#define __NR_listen (__NR_Linux + 49)
-#define __NR_getsockname (__NR_Linux + 50)
-#define __NR_getpeername (__NR_Linux + 51)
-#define __NR_socketpair (__NR_Linux + 52)
-#define __NR_setsockopt (__NR_Linux + 53)
-#define __NR_getsockopt (__NR_Linux + 54)
-#define __NR_clone (__NR_Linux + 55)
-#define __NR_fork (__NR_Linux + 56)
-#define __NR_execve (__NR_Linux + 57)
-#define __NR_exit (__NR_Linux + 58)
-#define __NR_wait4 (__NR_Linux + 59)
-#define __NR_kill (__NR_Linux + 60)
-#define __NR_uname (__NR_Linux + 61)
-#define __NR_semget (__NR_Linux + 62)
-#define __NR_semop (__NR_Linux + 63)
-#define __NR_semctl (__NR_Linux + 64)
-#define __NR_shmdt (__NR_Linux + 65)
-#define __NR_msgget (__NR_Linux + 66)
-#define __NR_msgsnd (__NR_Linux + 67)
-#define __NR_msgrcv (__NR_Linux + 68)
-#define __NR_msgctl (__NR_Linux + 69)
-#define __NR_fcntl (__NR_Linux + 70)
-#define __NR_flock (__NR_Linux + 71)
-#define __NR_fsync (__NR_Linux + 72)
-#define __NR_fdatasync (__NR_Linux + 73)
-#define __NR_truncate (__NR_Linux + 74)
-#define __NR_ftruncate (__NR_Linux + 75)
-#define __NR_getdents (__NR_Linux + 76)
-#define __NR_getcwd (__NR_Linux + 77)
-#define __NR_chdir (__NR_Linux + 78)
-#define __NR_fchdir (__NR_Linux + 79)
-#define __NR_rename (__NR_Linux + 80)
-#define __NR_mkdir (__NR_Linux + 81)
-#define __NR_rmdir (__NR_Linux + 82)
-#define __NR_creat (__NR_Linux + 83)
-#define __NR_link (__NR_Linux + 84)
-#define __NR_unlink (__NR_Linux + 85)
-#define __NR_symlink (__NR_Linux + 86)
-#define __NR_readlink (__NR_Linux + 87)
-#define __NR_chmod (__NR_Linux + 88)
-#define __NR_fchmod (__NR_Linux + 89)
-#define __NR_chown (__NR_Linux + 90)
-#define __NR_fchown (__NR_Linux + 91)
-#define __NR_lchown (__NR_Linux + 92)
-#define __NR_umask (__NR_Linux + 93)
-#define __NR_gettimeofday (__NR_Linux + 94)
-#define __NR_getrlimit (__NR_Linux + 95)
-#define __NR_getrusage (__NR_Linux + 96)
-#define __NR_sysinfo (__NR_Linux + 97)
-#define __NR_times (__NR_Linux + 98)
-#define __NR_ptrace (__NR_Linux + 99)
-#define __NR_getuid (__NR_Linux + 100)
-#define __NR_syslog (__NR_Linux + 101)
-#define __NR_getgid (__NR_Linux + 102)
-#define __NR_setuid (__NR_Linux + 103)
-#define __NR_setgid (__NR_Linux + 104)
-#define __NR_geteuid (__NR_Linux + 105)
-#define __NR_getegid (__NR_Linux + 106)
-#define __NR_setpgid (__NR_Linux + 107)
-#define __NR_getppid (__NR_Linux + 108)
-#define __NR_getpgrp (__NR_Linux + 109)
-#define __NR_setsid (__NR_Linux + 110)
-#define __NR_setreuid (__NR_Linux + 111)
-#define __NR_setregid (__NR_Linux + 112)
-#define __NR_getgroups (__NR_Linux + 113)
-#define __NR_setgroups (__NR_Linux + 114)
-#define __NR_setresuid (__NR_Linux + 115)
-#define __NR_getresuid (__NR_Linux + 116)
-#define __NR_setresgid (__NR_Linux + 117)
-#define __NR_getresgid (__NR_Linux + 118)
-#define __NR_getpgid (__NR_Linux + 119)
-#define __NR_setfsuid (__NR_Linux + 120)
-#define __NR_setfsgid (__NR_Linux + 121)
-#define __NR_getsid (__NR_Linux + 122)
-#define __NR_capget (__NR_Linux + 123)
-#define __NR_capset (__NR_Linux + 124)
-#define __NR_rt_sigpending (__NR_Linux + 125)
-#define __NR_rt_sigtimedwait (__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 127)
-#define __NR_rt_sigsuspend (__NR_Linux + 128)
-#define __NR_sigaltstack (__NR_Linux + 129)
-#define __NR_utime (__NR_Linux + 130)
-#define __NR_mknod (__NR_Linux + 131)
-#define __NR_personality (__NR_Linux + 132)
-#define __NR_ustat (__NR_Linux + 133)
-#define __NR_statfs (__NR_Linux + 134)
-#define __NR_fstatfs (__NR_Linux + 135)
-#define __NR_sysfs (__NR_Linux + 136)
-#define __NR_getpriority (__NR_Linux + 137)
-#define __NR_setpriority (__NR_Linux + 138)
-#define __NR_sched_setparam (__NR_Linux + 139)
-#define __NR_sched_getparam (__NR_Linux + 140)
-#define __NR_sched_setscheduler (__NR_Linux + 141)
-#define __NR_sched_getscheduler (__NR_Linux + 142)
-#define __NR_sched_get_priority_max (__NR_Linux + 143)
-#define __NR_sched_get_priority_min (__NR_Linux + 144)
-#define __NR_sched_rr_get_interval (__NR_Linux + 145)
-#define __NR_mlock (__NR_Linux + 146)
-#define __NR_munlock (__NR_Linux + 147)
-#define __NR_mlockall (__NR_Linux + 148)
-#define __NR_munlockall (__NR_Linux + 149)
-#define __NR_vhangup (__NR_Linux + 150)
-#define __NR_pivot_root (__NR_Linux + 151)
-#define __NR__sysctl (__NR_Linux + 152)
-#define __NR_prctl (__NR_Linux + 153)
-#define __NR_adjtimex (__NR_Linux + 154)
-#define __NR_setrlimit (__NR_Linux + 155)
-#define __NR_chroot (__NR_Linux + 156)
-#define __NR_sync (__NR_Linux + 157)
-#define __NR_acct (__NR_Linux + 158)
-#define __NR_settimeofday (__NR_Linux + 159)
-#define __NR_mount (__NR_Linux + 160)
-#define __NR_umount2 (__NR_Linux + 161)
-#define __NR_swapon (__NR_Linux + 162)
-#define __NR_swapoff (__NR_Linux + 163)
-#define __NR_reboot (__NR_Linux + 164)
-#define __NR_sethostname (__NR_Linux + 165)
-#define __NR_setdomainname (__NR_Linux + 166)
-#define __NR_create_module (__NR_Linux + 167)
-#define __NR_init_module (__NR_Linux + 168)
-#define __NR_delete_module (__NR_Linux + 169)
-#define __NR_get_kernel_syms (__NR_Linux + 170)
-#define __NR_query_module (__NR_Linux + 171)
-#define __NR_quotactl (__NR_Linux + 172)
-#define __NR_nfsservctl (__NR_Linux + 173)
-#define __NR_getpmsg (__NR_Linux + 174)
-#define __NR_putpmsg (__NR_Linux + 175)
-#define __NR_afs_syscall (__NR_Linux + 176)
-#define __NR_reserved177 (__NR_Linux + 177)
-#define __NR_gettid (__NR_Linux + 178)
-#define __NR_readahead (__NR_Linux + 179)
-#define __NR_setxattr (__NR_Linux + 180)
-#define __NR_lsetxattr (__NR_Linux + 181)
-#define __NR_fsetxattr (__NR_Linux + 182)
-#define __NR_getxattr (__NR_Linux + 183)
-#define __NR_lgetxattr (__NR_Linux + 184)
-#define __NR_fgetxattr (__NR_Linux + 185)
-#define __NR_listxattr (__NR_Linux + 186)
-#define __NR_llistxattr (__NR_Linux + 187)
-#define __NR_flistxattr (__NR_Linux + 188)
-#define __NR_removexattr (__NR_Linux + 189)
-#define __NR_lremovexattr (__NR_Linux + 190)
-#define __NR_fremovexattr (__NR_Linux + 191)
-#define __NR_tkill (__NR_Linux + 192)
-#define __NR_reserved193 (__NR_Linux + 193)
-#define __NR_futex (__NR_Linux + 194)
-#define __NR_sched_setaffinity (__NR_Linux + 195)
-#define __NR_sched_getaffinity (__NR_Linux + 196)
-#define __NR_cacheflush (__NR_Linux + 197)
-#define __NR_cachectl (__NR_Linux + 198)
-#define __NR_sysmips (__NR_Linux + 199)
-#define __NR_io_setup (__NR_Linux + 200)
-#define __NR_io_destroy (__NR_Linux + 201)
-#define __NR_io_getevents (__NR_Linux + 202)
-#define __NR_io_submit (__NR_Linux + 203)
-#define __NR_io_cancel (__NR_Linux + 204)
-#define __NR_exit_group (__NR_Linux + 205)
-#define __NR_lookup_dcookie (__NR_Linux + 206)
-#define __NR_epoll_create (__NR_Linux + 207)
-#define __NR_epoll_ctl (__NR_Linux + 208)
-#define __NR_epoll_wait (__NR_Linux + 209)
-#define __NR_remap_file_pages (__NR_Linux + 210)
-#define __NR_rt_sigreturn (__NR_Linux + 211)
-#define __NR_set_tid_address (__NR_Linux + 212)
-#define __NR_restart_syscall (__NR_Linux + 213)
-#define __NR_semtimedop (__NR_Linux + 214)
-#define __NR_fadvise64 (__NR_Linux + 215)
-#define __NR_timer_create (__NR_Linux + 216)
-#define __NR_timer_settime (__NR_Linux + 217)
-#define __NR_timer_gettime (__NR_Linux + 218)
-#define __NR_timer_getoverrun (__NR_Linux + 219)
-#define __NR_timer_delete (__NR_Linux + 220)
-#define __NR_clock_settime (__NR_Linux + 221)
-#define __NR_clock_gettime (__NR_Linux + 222)
-#define __NR_clock_getres (__NR_Linux + 223)
-#define __NR_clock_nanosleep (__NR_Linux + 224)
-#define __NR_tgkill (__NR_Linux + 225)
-#define __NR_utimes (__NR_Linux + 226)
-#define __NR_mbind (__NR_Linux + 227)
-#define __NR_get_mempolicy (__NR_Linux + 228)
-#define __NR_set_mempolicy (__NR_Linux + 229)
-#define __NR_mq_open (__NR_Linux + 230)
-#define __NR_mq_unlink (__NR_Linux + 231)
-#define __NR_mq_timedsend (__NR_Linux + 232)
-#define __NR_mq_timedreceive (__NR_Linux + 233)
-#define __NR_mq_notify (__NR_Linux + 234)
-#define __NR_mq_getsetattr (__NR_Linux + 235)
-#define __NR_vserver (__NR_Linux + 236)
-#define __NR_waitid (__NR_Linux + 237)
-/* #define __NR_sys_setaltroot (__NR_Linux + 238) */
-#define __NR_add_key (__NR_Linux + 239)
-#define __NR_request_key (__NR_Linux + 240)
-#define __NR_keyctl (__NR_Linux + 241)
-#define __NR_set_thread_area (__NR_Linux + 242)
-#define __NR_inotify_init (__NR_Linux + 243)
-#define __NR_inotify_add_watch (__NR_Linux + 244)
-#define __NR_inotify_rm_watch (__NR_Linux + 245)
-#define __NR_migrate_pages (__NR_Linux + 246)
-#define __NR_openat (__NR_Linux + 247)
-#define __NR_mkdirat (__NR_Linux + 248)
-#define __NR_mknodat (__NR_Linux + 249)
-#define __NR_fchownat (__NR_Linux + 250)
-#define __NR_futimesat (__NR_Linux + 251)
-#define __NR_newfstatat (__NR_Linux + 252)
-#define __NR_unlinkat (__NR_Linux + 253)
-#define __NR_renameat (__NR_Linux + 254)
-#define __NR_linkat (__NR_Linux + 255)
-#define __NR_symlinkat (__NR_Linux + 256)
-#define __NR_readlinkat (__NR_Linux + 257)
-#define __NR_fchmodat (__NR_Linux + 258)
-#define __NR_faccessat (__NR_Linux + 259)
-#define __NR_pselect6 (__NR_Linux + 260)
-#define __NR_ppoll (__NR_Linux + 261)
-#define __NR_unshare (__NR_Linux + 262)
-#define __NR_splice (__NR_Linux + 263)
-#define __NR_sync_file_range (__NR_Linux + 264)
-#define __NR_tee (__NR_Linux + 265)
-#define __NR_vmsplice (__NR_Linux + 266)
-#define __NR_move_pages (__NR_Linux + 267)
-#define __NR_set_robust_list (__NR_Linux + 268)
-#define __NR_get_robust_list (__NR_Linux + 269)
-#define __NR_kexec_load (__NR_Linux + 270)
-#define __NR_getcpu (__NR_Linux + 271)
-#define __NR_epoll_pwait (__NR_Linux + 272)
-#define __NR_ioprio_set (__NR_Linux + 273)
-#define __NR_ioprio_get (__NR_Linux + 274)
-#define __NR_utimensat (__NR_Linux + 275)
-#define __NR_signalfd (__NR_Linux + 276)
-#define __NR_timerfd (__NR_Linux + 277)
-#define __NR_eventfd (__NR_Linux + 278)
-#define __NR_fallocate (__NR_Linux + 279)
-#define __NR_timerfd_create (__NR_Linux + 280)
-#define __NR_timerfd_gettime (__NR_Linux + 281)
-#define __NR_timerfd_settime (__NR_Linux + 282)
-#define __NR_signalfd4 (__NR_Linux + 283)
-#define __NR_eventfd2 (__NR_Linux + 284)
-#define __NR_epoll_create1 (__NR_Linux + 285)
-#define __NR_dup3 (__NR_Linux + 286)
-#define __NR_pipe2 (__NR_Linux + 287)
-#define __NR_inotify_init1 (__NR_Linux + 288)
-#define __NR_preadv (__NR_Linux + 289)
-#define __NR_pwritev (__NR_Linux + 290)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 291)
-#define __NR_perf_event_open (__NR_Linux + 292)
-#define __NR_accept4 (__NR_Linux + 293)
-#define __NR_recvmmsg (__NR_Linux + 294)
-#define __NR_fanotify_init (__NR_Linux + 295)
-#define __NR_fanotify_mark (__NR_Linux + 296)
-#define __NR_prlimit64 (__NR_Linux + 297)
-#define __NR_name_to_handle_at (__NR_Linux + 298)
-#define __NR_open_by_handle_at (__NR_Linux + 299)
-#define __NR_clock_adjtime (__NR_Linux + 300)
-#define __NR_syncfs (__NR_Linux + 301)
-#define __NR_sendmmsg (__NR_Linux + 302)
-#define __NR_setns (__NR_Linux + 303)
-#define __NR_process_vm_readv (__NR_Linux + 304)
-#define __NR_process_vm_writev (__NR_Linux + 305)
-#define __NR_kcmp (__NR_Linux + 306)
-#define __NR_finit_module (__NR_Linux + 307)
-#define __NR_getdents64 (__NR_Linux + 308)
-#define __NR_sched_setattr (__NR_Linux + 309)
-#define __NR_sched_getattr (__NR_Linux + 310)
-#define __NR_renameat2 (__NR_Linux + 311)
-#define __NR_seccomp (__NR_Linux + 312)
-#define __NR_getrandom (__NR_Linux + 313)
-#define __NR_memfd_create (__NR_Linux + 314)
-#define __NR_bpf (__NR_Linux + 315)
-#define __NR_execveat (__NR_Linux + 316)
-#define __NR_userfaultfd (__NR_Linux + 317)
-#define __NR_membarrier (__NR_Linux + 318)
-#define __NR_mlock2 (__NR_Linux + 319)
-#define __NR_copy_file_range (__NR_Linux + 320)
-#define __NR_preadv2 (__NR_Linux + 321)
-#define __NR_pwritev2 (__NR_Linux + 322)
-#define __NR_pkey_mprotect (__NR_Linux + 323)
-#define __NR_pkey_alloc (__NR_Linux + 324)
-#define __NR_pkey_free (__NR_Linux + 325)
-#define __NR_statx (__NR_Linux + 326)
-#define __NR_rseq (__NR_Linux + 327)
-#define __NR_io_pgetevents (__NR_Linux + 328)
-
-/*
- * Offset of the last Linux 64-bit flavoured syscall
- */
-#define __NR_Linux_syscalls 328
-
-#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
-
-#define __NR_64_Linux 5000
-#define __NR_64_Linux_syscalls 328
-
-#if _MIPS_SIM == _MIPS_SIM_NABI32
-
-/*
- * Linux N32 syscalls are in the range from 6000 to 6999.
- */
-#define __NR_Linux 6000
-#define __NR_read (__NR_Linux + 0)
-#define __NR_write (__NR_Linux + 1)
-#define __NR_open (__NR_Linux + 2)
-#define __NR_close (__NR_Linux + 3)
-#define __NR_stat (__NR_Linux + 4)
-#define __NR_fstat (__NR_Linux + 5)
-#define __NR_lstat (__NR_Linux + 6)
-#define __NR_poll (__NR_Linux + 7)
-#define __NR_lseek (__NR_Linux + 8)
-#define __NR_mmap (__NR_Linux + 9)
-#define __NR_mprotect (__NR_Linux + 10)
-#define __NR_munmap (__NR_Linux + 11)
-#define __NR_brk (__NR_Linux + 12)
-#define __NR_rt_sigaction (__NR_Linux + 13)
-#define __NR_rt_sigprocmask (__NR_Linux + 14)
-#define __NR_ioctl (__NR_Linux + 15)
-#define __NR_pread64 (__NR_Linux + 16)
-#define __NR_pwrite64 (__NR_Linux + 17)
-#define __NR_readv (__NR_Linux + 18)
-#define __NR_writev (__NR_Linux + 19)
-#define __NR_access (__NR_Linux + 20)
-#define __NR_pipe (__NR_Linux + 21)
-#define __NR__newselect (__NR_Linux + 22)
-#define __NR_sched_yield (__NR_Linux + 23)
-#define __NR_mremap (__NR_Linux + 24)
-#define __NR_msync (__NR_Linux + 25)
-#define __NR_mincore (__NR_Linux + 26)
-#define __NR_madvise (__NR_Linux + 27)
-#define __NR_shmget (__NR_Linux + 28)
-#define __NR_shmat (__NR_Linux + 29)
-#define __NR_shmctl (__NR_Linux + 30)
-#define __NR_dup (__NR_Linux + 31)
-#define __NR_dup2 (__NR_Linux + 32)
-#define __NR_pause (__NR_Linux + 33)
-#define __NR_nanosleep (__NR_Linux + 34)
-#define __NR_getitimer (__NR_Linux + 35)
-#define __NR_setitimer (__NR_Linux + 36)
-#define __NR_alarm (__NR_Linux + 37)
-#define __NR_getpid (__NR_Linux + 38)
-#define __NR_sendfile (__NR_Linux + 39)
-#define __NR_socket (__NR_Linux + 40)
-#define __NR_connect (__NR_Linux + 41)
-#define __NR_accept (__NR_Linux + 42)
-#define __NR_sendto (__NR_Linux + 43)
-#define __NR_recvfrom (__NR_Linux + 44)
-#define __NR_sendmsg (__NR_Linux + 45)
-#define __NR_recvmsg (__NR_Linux + 46)
-#define __NR_shutdown (__NR_Linux + 47)
-#define __NR_bind (__NR_Linux + 48)
-#define __NR_listen (__NR_Linux + 49)
-#define __NR_getsockname (__NR_Linux + 50)
-#define __NR_getpeername (__NR_Linux + 51)
-#define __NR_socketpair (__NR_Linux + 52)
-#define __NR_setsockopt (__NR_Linux + 53)
-#define __NR_getsockopt (__NR_Linux + 54)
-#define __NR_clone (__NR_Linux + 55)
-#define __NR_fork (__NR_Linux + 56)
-#define __NR_execve (__NR_Linux + 57)
-#define __NR_exit (__NR_Linux + 58)
-#define __NR_wait4 (__NR_Linux + 59)
-#define __NR_kill (__NR_Linux + 60)
-#define __NR_uname (__NR_Linux + 61)
-#define __NR_semget (__NR_Linux + 62)
-#define __NR_semop (__NR_Linux + 63)
-#define __NR_semctl (__NR_Linux + 64)
-#define __NR_shmdt (__NR_Linux + 65)
-#define __NR_msgget (__NR_Linux + 66)
-#define __NR_msgsnd (__NR_Linux + 67)
-#define __NR_msgrcv (__NR_Linux + 68)
-#define __NR_msgctl (__NR_Linux + 69)
-#define __NR_fcntl (__NR_Linux + 70)
-#define __NR_flock (__NR_Linux + 71)
-#define __NR_fsync (__NR_Linux + 72)
-#define __NR_fdatasync (__NR_Linux + 73)
-#define __NR_truncate (__NR_Linux + 74)
-#define __NR_ftruncate (__NR_Linux + 75)
-#define __NR_getdents (__NR_Linux + 76)
-#define __NR_getcwd (__NR_Linux + 77)
-#define __NR_chdir (__NR_Linux + 78)
-#define __NR_fchdir (__NR_Linux + 79)
-#define __NR_rename (__NR_Linux + 80)
-#define __NR_mkdir (__NR_Linux + 81)
-#define __NR_rmdir (__NR_Linux + 82)
-#define __NR_creat (__NR_Linux + 83)
-#define __NR_link (__NR_Linux + 84)
-#define __NR_unlink (__NR_Linux + 85)
-#define __NR_symlink (__NR_Linux + 86)
-#define __NR_readlink (__NR_Linux + 87)
-#define __NR_chmod (__NR_Linux + 88)
-#define __NR_fchmod (__NR_Linux + 89)
-#define __NR_chown (__NR_Linux + 90)
-#define __NR_fchown (__NR_Linux + 91)
-#define __NR_lchown (__NR_Linux + 92)
-#define __NR_umask (__NR_Linux + 93)
-#define __NR_gettimeofday (__NR_Linux + 94)
-#define __NR_getrlimit (__NR_Linux + 95)
-#define __NR_getrusage (__NR_Linux + 96)
-#define __NR_sysinfo (__NR_Linux + 97)
-#define __NR_times (__NR_Linux + 98)
-#define __NR_ptrace (__NR_Linux + 99)
-#define __NR_getuid (__NR_Linux + 100)
-#define __NR_syslog (__NR_Linux + 101)
-#define __NR_getgid (__NR_Linux + 102)
-#define __NR_setuid (__NR_Linux + 103)
-#define __NR_setgid (__NR_Linux + 104)
-#define __NR_geteuid (__NR_Linux + 105)
-#define __NR_getegid (__NR_Linux + 106)
-#define __NR_setpgid (__NR_Linux + 107)
-#define __NR_getppid (__NR_Linux + 108)
-#define __NR_getpgrp (__NR_Linux + 109)
-#define __NR_setsid (__NR_Linux + 110)
-#define __NR_setreuid (__NR_Linux + 111)
-#define __NR_setregid (__NR_Linux + 112)
-#define __NR_getgroups (__NR_Linux + 113)
-#define __NR_setgroups (__NR_Linux + 114)
-#define __NR_setresuid (__NR_Linux + 115)
-#define __NR_getresuid (__NR_Linux + 116)
-#define __NR_setresgid (__NR_Linux + 117)
-#define __NR_getresgid (__NR_Linux + 118)
-#define __NR_getpgid (__NR_Linux + 119)
-#define __NR_setfsuid (__NR_Linux + 120)
-#define __NR_setfsgid (__NR_Linux + 121)
-#define __NR_getsid (__NR_Linux + 122)
-#define __NR_capget (__NR_Linux + 123)
-#define __NR_capset (__NR_Linux + 124)
-#define __NR_rt_sigpending (__NR_Linux + 125)
-#define __NR_rt_sigtimedwait (__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo (__NR_Linux + 127)
-#define __NR_rt_sigsuspend (__NR_Linux + 128)
-#define __NR_sigaltstack (__NR_Linux + 129)
-#define __NR_utime (__NR_Linux + 130)
-#define __NR_mknod (__NR_Linux + 131)
-#define __NR_personality (__NR_Linux + 132)
-#define __NR_ustat (__NR_Linux + 133)
-#define __NR_statfs (__NR_Linux + 134)
-#define __NR_fstatfs (__NR_Linux + 135)
-#define __NR_sysfs (__NR_Linux + 136)
-#define __NR_getpriority (__NR_Linux + 137)
-#define __NR_setpriority (__NR_Linux + 138)
-#define __NR_sched_setparam (__NR_Linux + 139)
-#define __NR_sched_getparam (__NR_Linux + 140)
-#define __NR_sched_setscheduler (__NR_Linux + 141)
-#define __NR_sched_getscheduler (__NR_Linux + 142)
-#define __NR_sched_get_priority_max (__NR_Linux + 143)
-#define __NR_sched_get_priority_min (__NR_Linux + 144)
-#define __NR_sched_rr_get_interval (__NR_Linux + 145)
-#define __NR_mlock (__NR_Linux + 146)
-#define __NR_munlock (__NR_Linux + 147)
-#define __NR_mlockall (__NR_Linux + 148)
-#define __NR_munlockall (__NR_Linux + 149)
-#define __NR_vhangup (__NR_Linux + 150)
-#define __NR_pivot_root (__NR_Linux + 151)
-#define __NR__sysctl (__NR_Linux + 152)
-#define __NR_prctl (__NR_Linux + 153)
-#define __NR_adjtimex (__NR_Linux + 154)
-#define __NR_setrlimit (__NR_Linux + 155)
-#define __NR_chroot (__NR_Linux + 156)
-#define __NR_sync (__NR_Linux + 157)
-#define __NR_acct (__NR_Linux + 158)
-#define __NR_settimeofday (__NR_Linux + 159)
-#define __NR_mount (__NR_Linux + 160)
-#define __NR_umount2 (__NR_Linux + 161)
-#define __NR_swapon (__NR_Linux + 162)
-#define __NR_swapoff (__NR_Linux + 163)
-#define __NR_reboot (__NR_Linux + 164)
-#define __NR_sethostname (__NR_Linux + 165)
-#define __NR_setdomainname (__NR_Linux + 166)
-#define __NR_create_module (__NR_Linux + 167)
-#define __NR_init_module (__NR_Linux + 168)
-#define __NR_delete_module (__NR_Linux + 169)
-#define __NR_get_kernel_syms (__NR_Linux + 170)
-#define __NR_query_module (__NR_Linux + 171)
-#define __NR_quotactl (__NR_Linux + 172)
-#define __NR_nfsservctl (__NR_Linux + 173)
-#define __NR_getpmsg (__NR_Linux + 174)
-#define __NR_putpmsg (__NR_Linux + 175)
-#define __NR_afs_syscall (__NR_Linux + 176)
-#define __NR_reserved177 (__NR_Linux + 177)
-#define __NR_gettid (__NR_Linux + 178)
-#define __NR_readahead (__NR_Linux + 179)
-#define __NR_setxattr (__NR_Linux + 180)
-#define __NR_lsetxattr (__NR_Linux + 181)
-#define __NR_fsetxattr (__NR_Linux + 182)
-#define __NR_getxattr (__NR_Linux + 183)
-#define __NR_lgetxattr (__NR_Linux + 184)
-#define __NR_fgetxattr (__NR_Linux + 185)
-#define __NR_listxattr (__NR_Linux + 186)
-#define __NR_llistxattr (__NR_Linux + 187)
-#define __NR_flistxattr (__NR_Linux + 188)
-#define __NR_removexattr (__NR_Linux + 189)
-#define __NR_lremovexattr (__NR_Linux + 190)
-#define __NR_fremovexattr (__NR_Linux + 191)
-#define __NR_tkill (__NR_Linux + 192)
-#define __NR_reserved193 (__NR_Linux + 193)
-#define __NR_futex (__NR_Linux + 194)
-#define __NR_sched_setaffinity (__NR_Linux + 195)
-#define __NR_sched_getaffinity (__NR_Linux + 196)
-#define __NR_cacheflush (__NR_Linux + 197)
-#define __NR_cachectl (__NR_Linux + 198)
-#define __NR_sysmips (__NR_Linux + 199)
-#define __NR_io_setup (__NR_Linux + 200)
-#define __NR_io_destroy (__NR_Linux + 201)
-#define __NR_io_getevents (__NR_Linux + 202)
-#define __NR_io_submit (__NR_Linux + 203)
-#define __NR_io_cancel (__NR_Linux + 204)
-#define __NR_exit_group (__NR_Linux + 205)
-#define __NR_lookup_dcookie (__NR_Linux + 206)
-#define __NR_epoll_create (__NR_Linux + 207)
-#define __NR_epoll_ctl (__NR_Linux + 208)
-#define __NR_epoll_wait (__NR_Linux + 209)
-#define __NR_remap_file_pages (__NR_Linux + 210)
-#define __NR_rt_sigreturn (__NR_Linux + 211)
-#define __NR_fcntl64 (__NR_Linux + 212)
-#define __NR_set_tid_address (__NR_Linux + 213)
-#define __NR_restart_syscall (__NR_Linux + 214)
-#define __NR_semtimedop (__NR_Linux + 215)
-#define __NR_fadvise64 (__NR_Linux + 216)
-#define __NR_statfs64 (__NR_Linux + 217)
-#define __NR_fstatfs64 (__NR_Linux + 218)
-#define __NR_sendfile64 (__NR_Linux + 219)
-#define __NR_timer_create (__NR_Linux + 220)
-#define __NR_timer_settime (__NR_Linux + 221)
-#define __NR_timer_gettime (__NR_Linux + 222)
-#define __NR_timer_getoverrun (__NR_Linux + 223)
-#define __NR_timer_delete (__NR_Linux + 224)
-#define __NR_clock_settime (__NR_Linux + 225)
-#define __NR_clock_gettime (__NR_Linux + 226)
-#define __NR_clock_getres (__NR_Linux + 227)
-#define __NR_clock_nanosleep (__NR_Linux + 228)
-#define __NR_tgkill (__NR_Linux + 229)
-#define __NR_utimes (__NR_Linux + 230)
-#define __NR_mbind (__NR_Linux + 231)
-#define __NR_get_mempolicy (__NR_Linux + 232)
-#define __NR_set_mempolicy (__NR_Linux + 233)
-#define __NR_mq_open (__NR_Linux + 234)
-#define __NR_mq_unlink (__NR_Linux + 235)
-#define __NR_mq_timedsend (__NR_Linux + 236)
-#define __NR_mq_timedreceive (__NR_Linux + 237)
-#define __NR_mq_notify (__NR_Linux + 238)
-#define __NR_mq_getsetattr (__NR_Linux + 239)
-#define __NR_vserver (__NR_Linux + 240)
-#define __NR_waitid (__NR_Linux + 241)
-/* #define __NR_sys_setaltroot (__NR_Linux + 242) */
-#define __NR_add_key (__NR_Linux + 243)
-#define __NR_request_key (__NR_Linux + 244)
-#define __NR_keyctl (__NR_Linux + 245)
-#define __NR_set_thread_area (__NR_Linux + 246)
-#define __NR_inotify_init (__NR_Linux + 247)
-#define __NR_inotify_add_watch (__NR_Linux + 248)
-#define __NR_inotify_rm_watch (__NR_Linux + 249)
-#define __NR_migrate_pages (__NR_Linux + 250)
-#define __NR_openat (__NR_Linux + 251)
-#define __NR_mkdirat (__NR_Linux + 252)
-#define __NR_mknodat (__NR_Linux + 253)
-#define __NR_fchownat (__NR_Linux + 254)
-#define __NR_futimesat (__NR_Linux + 255)
-#define __NR_newfstatat (__NR_Linux + 256)
-#define __NR_unlinkat (__NR_Linux + 257)
-#define __NR_renameat (__NR_Linux + 258)
-#define __NR_linkat (__NR_Linux + 259)
-#define __NR_symlinkat (__NR_Linux + 260)
-#define __NR_readlinkat (__NR_Linux + 261)
-#define __NR_fchmodat (__NR_Linux + 262)
-#define __NR_faccessat (__NR_Linux + 263)
-#define __NR_pselect6 (__NR_Linux + 264)
-#define __NR_ppoll (__NR_Linux + 265)
-#define __NR_unshare (__NR_Linux + 266)
-#define __NR_splice (__NR_Linux + 267)
-#define __NR_sync_file_range (__NR_Linux + 268)
-#define __NR_tee (__NR_Linux + 269)
-#define __NR_vmsplice (__NR_Linux + 270)
-#define __NR_move_pages (__NR_Linux + 271)
-#define __NR_set_robust_list (__NR_Linux + 272)
-#define __NR_get_robust_list (__NR_Linux + 273)
-#define __NR_kexec_load (__NR_Linux + 274)
-#define __NR_getcpu (__NR_Linux + 275)
-#define __NR_epoll_pwait (__NR_Linux + 276)
-#define __NR_ioprio_set (__NR_Linux + 277)
-#define __NR_ioprio_get (__NR_Linux + 278)
-#define __NR_utimensat (__NR_Linux + 279)
-#define __NR_signalfd (__NR_Linux + 280)
-#define __NR_timerfd (__NR_Linux + 281)
-#define __NR_eventfd (__NR_Linux + 282)
-#define __NR_fallocate (__NR_Linux + 283)
-#define __NR_timerfd_create (__NR_Linux + 284)
-#define __NR_timerfd_gettime (__NR_Linux + 285)
-#define __NR_timerfd_settime (__NR_Linux + 286)
-#define __NR_signalfd4 (__NR_Linux + 287)
-#define __NR_eventfd2 (__NR_Linux + 288)
-#define __NR_epoll_create1 (__NR_Linux + 289)
-#define __NR_dup3 (__NR_Linux + 290)
-#define __NR_pipe2 (__NR_Linux + 291)
-#define __NR_inotify_init1 (__NR_Linux + 292)
-#define __NR_preadv (__NR_Linux + 293)
-#define __NR_pwritev (__NR_Linux + 294)
-#define __NR_rt_tgsigqueueinfo (__NR_Linux + 295)
-#define __NR_perf_event_open (__NR_Linux + 296)
-#define __NR_accept4 (__NR_Linux + 297)
-#define __NR_recvmmsg (__NR_Linux + 298)
-#define __NR_getdents64 (__NR_Linux + 299)
-#define __NR_fanotify_init (__NR_Linux + 300)
-#define __NR_fanotify_mark (__NR_Linux + 301)
-#define __NR_prlimit64 (__NR_Linux + 302)
-#define __NR_name_to_handle_at (__NR_Linux + 303)
-#define __NR_open_by_handle_at (__NR_Linux + 304)
-#define __NR_clock_adjtime (__NR_Linux + 305)
-#define __NR_syncfs (__NR_Linux + 306)
-#define __NR_sendmmsg (__NR_Linux + 307)
-#define __NR_setns (__NR_Linux + 308)
-#define __NR_process_vm_readv (__NR_Linux + 309)
-#define __NR_process_vm_writev (__NR_Linux + 310)
-#define __NR_kcmp (__NR_Linux + 311)
-#define __NR_finit_module (__NR_Linux + 312)
-#define __NR_sched_setattr (__NR_Linux + 313)
-#define __NR_sched_getattr (__NR_Linux + 314)
-#define __NR_renameat2 (__NR_Linux + 315)
-#define __NR_seccomp (__NR_Linux + 316)
-#define __NR_getrandom (__NR_Linux + 317)
-#define __NR_memfd_create (__NR_Linux + 318)
-#define __NR_bpf (__NR_Linux + 319)
-#define __NR_execveat (__NR_Linux + 320)
-#define __NR_userfaultfd (__NR_Linux + 321)
-#define __NR_membarrier (__NR_Linux + 322)
-#define __NR_mlock2 (__NR_Linux + 323)
-#define __NR_copy_file_range (__NR_Linux + 324)
-#define __NR_preadv2 (__NR_Linux + 325)
-#define __NR_pwritev2 (__NR_Linux + 326)
-#define __NR_pkey_mprotect (__NR_Linux + 327)
-#define __NR_pkey_alloc (__NR_Linux + 328)
-#define __NR_pkey_free (__NR_Linux + 329)
-#define __NR_statx (__NR_Linux + 330)
-#define __NR_rseq (__NR_Linux + 331)
-#define __NR_io_pgetevents (__NR_Linux + 332)
-
-/*
- * Offset of the last N32 flavoured syscall
- */
-#define __NR_Linux_syscalls 332
-
-#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
-
-#define __NR_N32_Linux 6000
-#define __NR_N32_Linux_syscalls 332
-
-#endif /* _UAPI_ASM_UNISTD_H */
diff --git a/libc/include/nios2-linux-gnu/asm/unistd.h b/libc/include/nios2-linux-gnu/asm/unistd.h
deleted file mode 100644
index d9948d8879..0000000000
--- a/libc/include/nios2-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * Copyright (C) 2013 Altera Corporation
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see .
- *
- */
-
- #define sys_mmap2 sys_mmap_pgoff
-
-#define __ARCH_WANT_RENAMEAT
-#define __ARCH_WANT_STAT64
-
-/* Use the standard ABI for syscalls */
-#include
-
-/* Additional Nios II specific syscalls. */
-#define __NR_cacheflush (__NR_arch_specific_syscall)
-__SYSCALL(__NR_cacheflush, sys_cacheflush)
diff --git a/libc/include/nios2-linux-gnu/bits/endian.h b/libc/include/nios2-linux-gnu/bits/endian.h
deleted file mode 100644
index b18aada80a..0000000000
--- a/libc/include/nios2-linux-gnu/bits/endian.h
+++ /dev/null
@@ -1,12 +0,0 @@
-/* The Nios II architecture has selectable endianness. */
-
-#ifndef _ENDIAN_H
-# error "Never use directly; include instead."
-#endif
-
-#ifdef __nios2_big_endian__
-# define __BYTE_ORDER __BIG_ENDIAN
-#endif
-#ifdef __nios2_little_endian__
-# define __BYTE_ORDER __LITTLE_ENDIAN
-#endif
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/bits/fcntl.h b/libc/include/nios2-linux-gnu/bits/fcntl.h
deleted file mode 100644
index 080f060d61..0000000000
--- a/libc/include/nios2-linux-gnu/bits/fcntl.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* O_*, F_*, FD_* bit values for the generic Linux ABI.
- Copyright (C) 2011-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Chris Metcalf , 2011.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- . */
-
-#ifndef _FCNTL_H
-# error "Never use directly; include instead."
-#endif
-
-#include
-
-#if __WORDSIZE == 64
-# define __O_LARGEFILE 0
-#endif
-
-struct flock
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
-#ifndef __USE_FILE_OFFSET64
- __off_t l_start; /* Offset where the lock begins. */
- __off_t l_len; /* Size of the locked area; zero means until EOF. */
-#else
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
-#endif
- __pid_t l_pid; /* Process holding the lock. */
- };
-
-#ifdef __USE_LARGEFILE64
-struct flock64
- {
- short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
- short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
- __off64_t l_start; /* Offset where the lock begins. */
- __off64_t l_len; /* Size of the locked area; zero means until EOF. */
- __pid_t l_pid; /* Process holding the lock. */
- };
-#endif
-
-/* Include generic Linux declarations. */
-#include
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/bits/fenv.h b/libc/include/nios2-linux-gnu/bits/fenv.h
deleted file mode 100644
index 336a724a02..0000000000
--- a/libc/include/nios2-linux-gnu/bits/fenv.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Copyright (C) 2012-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- . */
-
-#ifndef _FENV_H
-# error "Never use directly; include instead."
-#endif
-
-/* The Altera specified Nios II hardware FPU does not support exceptions,
- nor does the software floating-point support. */
-#define FE_ALL_EXCEPT 0
-
-/* Nios II supports only round-to-nearest. The software
- floating-point support also acts this way. */
-enum
- {
- __FE_UNDEFINED = 0,
-
- FE_TONEAREST =
-#define FE_TONEAREST 1
- FE_TONEAREST,
- };
-
-/* Type representing exception flags. */
-typedef unsigned int fexcept_t;
-
-/* Type representing floating-point environment. */
-typedef unsigned int fenv_t;
-
-/* If the default argument is used we use this value. */
-#define FE_DFL_ENV ((const fenv_t *) -1)
-
-#if __GLIBC_USE (IEC_60559_BFP_EXT)
-/* Type representing floating-point control modes. */
-typedef unsigned int femode_t;
-
-/* Default floating-point control modes. */
-# define FE_DFL_MODE ((const femode_t *) -1L)
-#endif
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/bits/floatn.h b/libc/include/nios2-linux-gnu/bits/floatn.h
deleted file mode 100644
index 24852b6800..0000000000
--- a/libc/include/nios2-linux-gnu/bits/floatn.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Macros to control TS 18661-3 glibc features.
- Copyright (C) 2017-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- . */
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the IEEE 754 binary128 format, and this glibc
- includes corresponding *f128 interfaces for it. */
-#define __HAVE_FLOAT128 0
-
-/* Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
- from the default float, double and long double types in this glibc. */
-#define __HAVE_DISTINCT_FLOAT128 0
-
-/* Defined to 1 if the current compiler invocation provides a
- floating-point type with the right format for _Float64x, and this
- glibc includes corresponding *f64x interfaces for it. */
-#define __HAVE_FLOAT64X 0
-
-/* Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
- of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
- the format of _Float128, which must be different from that of long
- double. */
-#define __HAVE_FLOAT64X_LONG_DOUBLE 0
-
-#ifndef __ASSEMBLER__
-
-/* Defined to concatenate the literal suffix to be used with _Float128
- types, if __HAVE_FLOAT128 is 1.
- E.g.: #define __f128(x) x##f128. */
-# undef __f128
-
-/* Defined to a complex binary128 type if __HAVE_FLOAT128 is 1.
- E.g.: #define __CFLOAT128 _Complex _Float128. */
-# undef __CFLOAT128
-
-#endif /* !__ASSEMBLER__. */
-
-#include
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/bits/link.h b/libc/include/nios2-linux-gnu/bits/link.h
deleted file mode 100644
index 2d0ac0e82a..0000000000
--- a/libc/include/nios2-linux-gnu/bits/link.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* Machine-specific declarations for dynamic linker interface, Nios II version.
- Copyright (C) 2009-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- . */
-
-#ifndef _LINK_H
-# error "Never include directly; use instead."
-#endif
-
-/* Registers for entry into PLT on Nios II. */
-typedef struct La_nios2_regs
-{
- uint32_t lr_reg[4]; /* r4 through r7 */
- uint32_t lr_ra;
- uint32_t lr_sp;
-} La_nios2_regs;
-
-/* Return values for calls from PLT on Nios II. */
-typedef struct La_nios2_retval
-{
- uint32_t lrv_r2;
- uint32_t lrv_r3;
-} La_nios2_retval;
-
-__BEGIN_DECLS
-
-extern Elf32_Addr la_nios2_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- La_nios2_regs *__regs,
- unsigned int *__flags,
- const char *__symname,
- long int *__framesizep);
-extern unsigned int la_nios2_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
- uintptr_t *__refcook,
- uintptr_t *__defcook,
- const La_nios2_regs *__inregs,
- La_nios2_retval *__outregs,
- const char *symname);
-
-__END_DECLS
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/bits/long-double.h b/libc/include/nios2-linux-gnu/bits/long-double.h
deleted file mode 100644
index 125807d07a..0000000000
--- a/libc/include/nios2-linux-gnu/bits/long-double.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Properties of long double type.
- Copyright (C) 2016-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- . */
-
-/* This header is included by .
-
- If long double is ABI-compatible with double, it should define
- __NO_LONG_DOUBLE_MATH to 1; otherwise, it should leave
- __NO_LONG_DOUBLE_MATH undefined.
-
- If this build of the GNU C Library supports both long double
- ABI-compatible with double and some other long double format not
- ABI-compatible with double, it should define
- __LONG_DOUBLE_MATH_OPTIONAL to 1; otherwise, it should leave
- __LONG_DOUBLE_MATH_OPTIONAL undefined.
-
- If __NO_LONG_DOUBLE_MATH is already defined, this header must not
- define anything; this is needed to work with the definition of
- __NO_LONG_DOUBLE_MATH in nldbl-compat.h. */
-
-/* In the default version of this header, long double is
- ABI-compatible with double. */
-#ifndef __NO_LONG_DOUBLE_MATH
-# define __NO_LONG_DOUBLE_MATH 1
-#endif
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/bits/procfs.h b/libc/include/nios2-linux-gnu/bits/procfs.h
deleted file mode 100644
index 08cd4accba..0000000000
--- a/libc/include/nios2-linux-gnu/bits/procfs.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/* Types for registers for sys/procfs.h. Nios II version.
- Copyright (C) 1996-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- . */
-
-#ifndef _SYS_PROCFS_H
-# error "Never include directly; use instead."
-#endif
-
-/* Type for a general-purpose register. */
-typedef unsigned long elf_greg_t;
-
-/* And the whole bunch of them. We could have used `struct
- user_regs' directly in the typedef, but tradition says that
- the register set is an array, which does have some peculiar
- semantics, so leave it that way. */
-#define ELF_NGREG (sizeof (struct user_regs) / sizeof (elf_greg_t))
-typedef elf_greg_t elf_gregset_t[ELF_NGREG];
-
-/* Register set for the floating-point registers. */
-typedef struct user_fpregs elf_fpregset_t;
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/bits/pthreadtypes-arch.h b/libc/include/nios2-linux-gnu/bits/pthreadtypes-arch.h
deleted file mode 100644
index 70de0c4959..0000000000
--- a/libc/include/nios2-linux-gnu/bits/pthreadtypes-arch.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/* Machine-specific pthread type layouts. Nios II version.
- Copyright (C) 2012-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- . */
-
-#ifndef _BITS_PTHREADTYPES_ARCH_H
-#define _BITS_PTHREADTYPES_ARCH_H 1
-
-#include
-
-#define __SIZEOF_PTHREAD_ATTR_T 36
-#define __SIZEOF_PTHREAD_MUTEX_T 24
-#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
-#define __SIZEOF_PTHREAD_COND_T 48
-#define __SIZEOF_PTHREAD_CONDATTR_T 4
-#define __SIZEOF_PTHREAD_RWLOCK_T 32
-#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-#define __SIZEOF_PTHREAD_BARRIER_T 20
-#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
-
-/* Data structure for mutex handling. */
-#define __PTHREAD_COMPAT_PADDING_MID
-#define __PTHREAD_COMPAT_PADDING_END
-#define __PTHREAD_MUTEX_LOCK_ELISION 0
-#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 1
-#define __PTHREAD_MUTEX_USE_UNION 1
-
-#define __LOCK_ALIGNMENT
-#define __ONCE_ALIGNMENT
-
-struct __pthread_rwlock_arch_t
-{
- unsigned int __readers;
- unsigned int __writers;
- unsigned int __wrphase_futex;
- unsigned int __writers_futex;
- unsigned int __pad3;
- unsigned int __pad4;
-#if __BYTE_ORDER == __BIG_ENDIAN
- unsigned char __pad1;
- unsigned char __pad2;
- unsigned char __shared;
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
-#else
- /* FLAGS must stay at this position in the structure to maintain
- binary compatibility. */
- unsigned char __flags;
- unsigned char __shared;
- unsigned char __pad1;
- unsigned char __pad2;
-#endif
- int __cur_writer;
-};
-
-#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
-#endif /* bits/pthreadtypes.h */
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/bits/semaphore.h b/libc/include/nios2-linux-gnu/bits/semaphore.h
deleted file mode 100644
index a220d26c43..0000000000
--- a/libc/include/nios2-linux-gnu/bits/semaphore.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Machine-specific POSIX semaphore type layouts. Nios II version.
- Copyright (C) 2002-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- . */
-
-#ifndef _SEMAPHORE_H
-# error "Never use directly; include instead."
-#endif
-
-#define __SIZEOF_SEM_T 16
-
-/* Value returned if `sem_open' failed. */
-#define SEM_FAILED ((sem_t *) 0)
-
-typedef union
-{
- char __size[__SIZEOF_SEM_T];
- long int __align;
-} sem_t;
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/bits/setjmp.h b/libc/include/nios2-linux-gnu/bits/setjmp.h
deleted file mode 100644
index f250698df7..0000000000
--- a/libc/include/nios2-linux-gnu/bits/setjmp.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Define the machine-dependent type `jmp_buf'. Nios II version.
- Copyright (C) 1992-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- . */
-
-#ifndef _NIOS2_BITS_SETJMP_H
-#define _NIOS2_BITS_SETJMP_H 1
-
-#if !defined(_SETJMP_H) && !defined(_PTHREAD_H)
-# error "Never include directly; use instead."
-#endif
-
-/* Saves r16-r22 (callee-saved, including GOT pointer), fp (frame pointer),
- ra (return address), and sp (stack pointer). */
-typedef int __jmp_buf[10];
-
-#endif /* _NIOS2_BITS_SETJMP_H */
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/bits/stat.h b/libc/include/nios2-linux-gnu/bits/stat.h
deleted file mode 100644
index 4f23077263..0000000000
--- a/libc/include/nios2-linux-gnu/bits/stat.h
+++ /dev/null
@@ -1,171 +0,0 @@
-/* Copyright (C) 2011-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Chris Metcalf , 2011.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- . */
-
-#if !defined _SYS_STAT_H && !defined _FCNTL_H
-# error "Never include directly; use instead."
-#endif
-
-#ifndef _BITS_STAT_H
-#define _BITS_STAT_H 1
-
-#include
-#include
-
-/* 64-bit libc uses the kernel's 'struct stat', accessed via the
- stat() syscall; 32-bit libc uses the kernel's 'struct stat64'
- and accesses it via the stat64() syscall. All the various
- APIs offered by libc use the kernel shape for their struct stat
- structure; the only difference is that 32-bit programs not
- using __USE_FILE_OFFSET64 only see the low 32 bits of some
- of the fields (specifically st_ino, st_size, and st_blocks). */
-#define _STAT_VER_KERNEL 0
-#define _STAT_VER_LINUX 0
-#define _STAT_VER _STAT_VER_KERNEL
-
-/* Versions of the `xmknod' interface. */
-#define _MKNOD_VER_LINUX 0
-
-#if defined __USE_FILE_OFFSET64
-# define __field64(type, type64, name) type64 name
-#elif __WORDSIZE == 64
-# define __field64(type, type64, name) type name
-#elif __BYTE_ORDER == __LITTLE_ENDIAN
-# define __field64(type, type64, name) \
- type name __attribute__((__aligned__ (__alignof__ (type64)))); int __##name##_pad
-#else
-# define __field64(type, type64, name) \
- int __##name##_pad __attribute__((__aligned__ (__alignof__ (type64)))); type name
-#endif
-
-struct stat
- {
- __dev_t st_dev; /* Device. */
- __field64(__ino_t, __ino64_t, st_ino); /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- __dev_t __pad1;
- __field64(__off_t, __off64_t, st_size); /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- int __pad2;
- __field64(__blkcnt_t, __blkcnt64_t, st_blocks); /* 512-byte blocks */
-#ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-# define st_atime st_atim.tv_sec /* Backward compatibility. */
-# define st_mtime st_mtim.tv_sec
-# define st_ctime st_ctim.tv_sec
-#else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-#endif
- int __glibc_reserved[2];
- };
-
-#undef __field64
-
-#ifdef __USE_LARGEFILE64
-struct stat64
- {
- __dev_t st_dev; /* Device. */
- __ino64_t st_ino; /* File serial number. */
- __mode_t st_mode; /* File mode. */
- __nlink_t st_nlink; /* Link count. */
- __uid_t st_uid; /* User ID of the file's owner. */
- __gid_t st_gid; /* Group ID of the file's group.*/
- __dev_t st_rdev; /* Device number, if device. */
- __dev_t __pad1;
- __off64_t st_size; /* Size of file, in bytes. */
- __blksize_t st_blksize; /* Optimal block size for I/O. */
- int __pad2;
- __blkcnt64_t st_blocks; /* Nr. 512-byte blocks allocated. */
-#ifdef __USE_XOPEN2K8
- /* Nanosecond resolution timestamps are stored in a format
- equivalent to 'struct timespec'. This is the type used
- whenever possible but the Unix namespace rules do not allow the
- identifier 'timespec' to appear in the header.
- Therefore we have to handle the use of this header in strictly
- standard-compliant sources special. */
- struct timespec st_atim; /* Time of last access. */
- struct timespec st_mtim; /* Time of last modification. */
- struct timespec st_ctim; /* Time of last status change. */
-#else
- __time_t st_atime; /* Time of last access. */
- unsigned long int st_atimensec; /* Nscecs of last access. */
- __time_t st_mtime; /* Time of last modification. */
- unsigned long int st_mtimensec; /* Nsecs of last modification. */
- __time_t st_ctime; /* Time of last status change. */
- unsigned long int st_ctimensec; /* Nsecs of last status change. */
-#endif
- int __glibc_reserved[2];
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATBUF_ST_BLKSIZE
-#define _STATBUF_ST_RDEV
-/* Nanosecond resolution time values are supported. */
-#define _STATBUF_ST_NSEC
-
-/* Encoding of the file mode. */
-
-#define __S_IFMT 0170000 /* These bits determine file type. */
-
-/* File types. */
-#define __S_IFDIR 0040000 /* Directory. */
-#define __S_IFCHR 0020000 /* Character device. */
-#define __S_IFBLK 0060000 /* Block device. */
-#define __S_IFREG 0100000 /* Regular file. */
-#define __S_IFIFO 0010000 /* FIFO. */
-#define __S_IFLNK 0120000 /* Symbolic link. */
-#define __S_IFSOCK 0140000 /* Socket. */
-
-/* POSIX.1b objects. Note that these macros always evaluate to zero. But
- they do it by enforcing the correct use of the macros. */
-#define __S_TYPEISMQ(buf) ((buf)->st_mode - (buf)->st_mode)
-#define __S_TYPEISSEM(buf) ((buf)->st_mode - (buf)->st_mode)
-#define __S_TYPEISSHM(buf) ((buf)->st_mode - (buf)->st_mode)
-
-/* Protection bits. */
-
-#define __S_ISUID 04000 /* Set user ID on execution. */
-#define __S_ISGID 02000 /* Set group ID on execution. */
-#define __S_ISVTX 01000 /* Save swapped text after use (sticky). */
-#define __S_IREAD 0400 /* Read by owner. */
-#define __S_IWRITE 0200 /* Write by owner. */
-#define __S_IEXEC 0100 /* Execute by owner. */
-
-#ifdef __USE_ATFILE
-# define UTIME_NOW ((1l << 30) - 1l)
-# define UTIME_OMIT ((1l << 30) - 2l)
-#endif
-
-#endif /* bits/stat.h */
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/bits/statfs.h b/libc/include/nios2-linux-gnu/bits/statfs.h
deleted file mode 100644
index 8da970d4a9..0000000000
--- a/libc/include/nios2-linux-gnu/bits/statfs.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/* Copyright (C) 2011-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Chris Metcalf , 2011.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- . */
-
-#ifndef _SYS_STATFS_H
-# error "Never include directly; use instead."
-#endif
-
-#include
-#include
-#include
-
-/* 64-bit libc uses the kernel's 'struct statfs', accessed via the
- statfs() syscall; 32-bit libc uses the kernel's 'struct statfs64'
- and accesses it via the statfs64() syscall. All the various
- APIs offered by libc use the kernel shape for their struct statfs
- structure; the only difference is that 32-bit programs not
- using __USE_FILE_OFFSET64 only see the low 32 bits of some
- of the fields (the __fsblkcnt_t and __fsfilcnt_t fields). */
-
-#if defined __USE_FILE_OFFSET64
-# define __field64(type, type64, name) type64 name
-#elif __WORDSIZE == 64
-# define __field64(type, type64, name) type name
-#elif __BYTE_ORDER == __LITTLE_ENDIAN
-# define __field64(type, type64, name) \
- type name __attribute__((__aligned__ (__alignof__ (type64)))); int __##name##_pad
-#else
-# define __field64(type, type64, name) \
- int __##name##_pad __attribute__((__aligned__ (__alignof__ (type64)))); type name
-#endif
-
-struct statfs
- {
- __SWORD_TYPE f_type;
- __SWORD_TYPE f_bsize;
- __field64(__fsblkcnt_t, __fsblkcnt64_t, f_blocks);
- __field64(__fsblkcnt_t, __fsblkcnt64_t, f_bfree);
- __field64(__fsblkcnt_t, __fsblkcnt64_t, f_bavail);
- __field64(__fsfilcnt_t, __fsfilcnt64_t, f_files);
- __field64(__fsfilcnt_t, __fsfilcnt64_t, f_ffree);
- __fsid_t f_fsid;
- __SWORD_TYPE f_namelen;
- __SWORD_TYPE f_frsize;
- __SWORD_TYPE f_flags;
- __SWORD_TYPE f_spare[4];
- };
-
-#undef __field64
-
-#ifdef __USE_LARGEFILE64
-struct statfs64
- {
- __SWORD_TYPE f_type;
- __SWORD_TYPE f_bsize;
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_bavail;
- __fsfilcnt64_t f_files;
- __fsfilcnt64_t f_ffree;
- __fsid_t f_fsid;
- __SWORD_TYPE f_namelen;
- __SWORD_TYPE f_frsize;
- __SWORD_TYPE f_flags;
- __SWORD_TYPE f_spare[4];
- };
-#endif
-
-/* Tell code we have these members. */
-#define _STATFS_F_NAMELEN
-#define _STATFS_F_FRSIZE
-#define _STATFS_F_FLAGS
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/bits/typesizes.h b/libc/include/nios2-linux-gnu/bits/typesizes.h
deleted file mode 100644
index 8cfcacef57..0000000000
--- a/libc/include/nios2-linux-gnu/bits/typesizes.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/* bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.
- Copyright (C) 2011-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Chris Metcalf , 2011.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- . */
-
-#ifndef _BITS_TYPES_H
-# error "Never include directly; use instead."
-#endif
-
-#ifndef _BITS_TYPESIZES_H
-#define _BITS_TYPESIZES_H 1
-
-/* See for the meaning of these macros. This file exists so
- that need not vary across different GNU platforms. */
-
-#define __DEV_T_TYPE __UQUAD_TYPE
-#define __UID_T_TYPE __U32_TYPE
-#define __GID_T_TYPE __U32_TYPE
-#define __INO_T_TYPE __ULONGWORD_TYPE
-#define __INO64_T_TYPE __UQUAD_TYPE
-#define __MODE_T_TYPE __U32_TYPE
-#define __NLINK_T_TYPE __U32_TYPE
-#define __OFF_T_TYPE __SLONGWORD_TYPE
-#define __OFF64_T_TYPE __SQUAD_TYPE
-#define __PID_T_TYPE __S32_TYPE
-#define __RLIM_T_TYPE __ULONGWORD_TYPE
-#define __RLIM64_T_TYPE __UQUAD_TYPE
-#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
-#define __BLKCNT64_T_TYPE __SQUAD_TYPE
-#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
-#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
-#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
-#define __FSWORD_T_TYPE __SWORD_TYPE
-#define __ID_T_TYPE __U32_TYPE
-#define __CLOCK_T_TYPE __SLONGWORD_TYPE
-#define __TIME_T_TYPE __SLONGWORD_TYPE
-#define __USECONDS_T_TYPE __U32_TYPE
-#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
-#define __DADDR_T_TYPE __S32_TYPE
-#define __KEY_T_TYPE __S32_TYPE
-#define __CLOCKID_T_TYPE __S32_TYPE
-#define __TIMER_T_TYPE void *
-#define __BLKSIZE_T_TYPE __S32_TYPE
-#define __FSID_T_TYPE struct { int __val[2]; }
-#define __SSIZE_T_TYPE __SWORD_TYPE
-#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
-#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
-#define __CPU_MASK_TYPE __ULONGWORD_TYPE
-
-#ifdef __LP64__
-/* Tell the libc code that off_t and off64_t are actually the same type
- for all ABI purposes, even if possibly expressed as different base types
- for C type-checking purposes. */
-# define __OFF_T_MATCHES_OFF64_T 1
-
-/* Same for ino_t and ino64_t. */
-# define __INO_T_MATCHES_INO64_T 1
-
-/* And for __rlim_t and __rlim64_t. */
-# define __RLIM_T_MATCHES_RLIM64_T 1
-#else
-# define __RLIM_T_MATCHES_RLIM64_T 0
-#endif
-
-/* Number of descriptors that can fit in an `fd_set'. */
-#define __FD_SETSIZE 1024
-
-
-#endif /* bits/typesizes.h */
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/bits/wordsize.h b/libc/include/nios2-linux-gnu/bits/wordsize.h
deleted file mode 100644
index 3485a5acf2..0000000000
--- a/libc/include/nios2-linux-gnu/bits/wordsize.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- . */
-
-#define __WORDSIZE 32
-#define __WORDSIZE_TIME64_COMPAT32 0
-#define __WORDSIZE32_SIZE_ULONG 0
-#define __WORDSIZE32_PTRDIFF_LONG 0
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/fpu_control.h b/libc/include/nios2-linux-gnu/fpu_control.h
deleted file mode 100644
index 4537ff973e..0000000000
--- a/libc/include/nios2-linux-gnu/fpu_control.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* FPU control word definitions. Stub version.
- Copyright (C) 1996-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- . */
-
-#ifndef _FPU_CONTROL_H
-#define _FPU_CONTROL_H
-
-#define _FPU_RESERVED 0xffffffff /* These bits are reserved and not changed. */
-
-/* The fdlibm code requires no interrupts for exceptions. Don't
- change the rounding mode, it would break long double I/O! */
-#define _FPU_DEFAULT 0x00000000 /* Default value. */
-
-/* Type of the control word. */
-typedef unsigned int fpu_control_t;
-
-/* Macros for accessing the hardware control word. */
-#define _FPU_GETCW(cw) (cw) = 0
-#define _FPU_SETCW(cw) (void) (cw)
-
-/* Default control word set at startup. */
-extern fpu_control_t __fpu_control;
-
-#endif /* _FPU_CONTROL_H */
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/gnu/lib-names.h b/libc/include/nios2-linux-gnu/gnu/lib-names.h
deleted file mode 100644
index 9e19101bff..0000000000
--- a/libc/include/nios2-linux-gnu/gnu/lib-names.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/* This file is automatically generated.
- It defines macros to allow user program to find the shared
- library files which come as part of GNU libc. */
-#ifndef __GNU_LIB_NAMES_H
-#define __GNU_LIB_NAMES_H 1
-
-#define LD_LINUX_NIOS2_SO "ld-linux-nios2.so.1"
-#define LD_SO "ld-linux-nios2.so.1"
-#define LIBANL_SO "libanl.so.1"
-#define LIBBROKENLOCALE_SO "libBrokenLocale.so.1"
-#define LIBCRYPT_SO "libcrypt.so.1"
-#define LIBC_SO "libc.so.6"
-#define LIBDL_SO "libdl.so.2"
-#define LIBGCC_S_SO "libgcc_s.so.1"
-#define LIBMVEC_SO "libmvec.so.1"
-#define LIBM_SO "libm.so.6"
-#define LIBNSL_SO "libnsl.so.1"
-#define LIBNSS_COMPAT_SO "libnss_compat.so.2"
-#define LIBNSS_DB_SO "libnss_db.so.2"
-#define LIBNSS_DNS_SO "libnss_dns.so.2"
-#define LIBNSS_FILES_SO "libnss_files.so.2"
-#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
-#define LIBNSS_LDAP_SO "libnss_ldap.so.2"
-#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
-#define LIBNSS_NIS_SO "libnss_nis.so.2"
-#define LIBNSS_TEST1_SO "libnss_test1.so.2"
-#define LIBNSS_TEST2_SO "libnss_test2.so.2"
-#define LIBPTHREAD_SO "libpthread.so.0"
-#define LIBRESOLV_SO "libresolv.so.2"
-#define LIBRT_SO "librt.so.1"
-#define LIBTHREAD_DB_SO "libthread_db.so.1"
-#define LIBUTIL_SO "libutil.so.1"
-
-#endif /* gnu/lib-names.h */
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/gnu/stubs.h b/libc/include/nios2-linux-gnu/gnu/stubs.h
deleted file mode 100644
index 90477e3afc..0000000000
--- a/libc/include/nios2-linux-gnu/gnu/stubs.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/* This file is automatically generated.
- It defines a symbol `__stub_FUNCTION' for each function
- in the C library which is a stub, meaning it will fail
- every time called, usually setting errno to ENOSYS. */
-
-#ifdef _LIBC
- #error Applications may not define the macro _LIBC
-#endif
-
-#define __stub___compat_bdflush
-#define __stub___compat_create_module
-#define __stub___compat_get_kernel_syms
-#define __stub___compat_query_module
-#define __stub___compat_uselib
-#define __stub_chflags
-#define __stub_fattach
-#define __stub_fchflags
-#define __stub_fdetach
-#define __stub_feclearexcept
-#define __stub_fedisableexcept
-#define __stub_feenableexcept
-#define __stub_fegetenv
-#define __stub_fegetexcept
-#define __stub_fegetexceptflag
-#define __stub_fegetmode
-#define __stub_fegetround
-#define __stub_feholdexcept
-#define __stub_feraiseexcept
-#define __stub_fesetenv
-#define __stub_fesetexcept
-#define __stub_fesetexceptflag
-#define __stub_fesetmode
-#define __stub_fesetround
-#define __stub_fetestexcept
-#define __stub_feupdateenv
-#define __stub_getmsg
-#define __stub_getpmsg
-#define __stub_gtty
-#define __stub_lchmod
-#define __stub_putmsg
-#define __stub_putpmsg
-#define __stub_revoke
-#define __stub_setlogin
-#define __stub_sigreturn
-#define __stub_sstk
-#define __stub_stty
-#define __stub_sysctl
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/sys/cachectl.h b/libc/include/nios2-linux-gnu/sys/cachectl.h
deleted file mode 100644
index e97c951ed1..0000000000
--- a/libc/include/nios2-linux-gnu/sys/cachectl.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* cacheflush - flush contents of instruction and/or data cache.
- Copyright (C) 2015-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- . */
-
-#ifndef _SYS_CACHECTL_H
-#define _SYS_CACHECTL_H 1
-
-#include
-
-__BEGIN_DECLS
-
-#ifdef __USE_MISC
-extern int cacheflush (void *__addr, const int __nbytes, const int __op) __THROW;
-#endif
-extern int _flush_cache (char *__addr, const int __nbytes, const int __op) __THROW;
-
-__END_DECLS
-
-#endif /* sys/cachectl.h */
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/sys/ucontext.h b/libc/include/nios2-linux-gnu/sys/ucontext.h
deleted file mode 100644
index 2f46d5919f..0000000000
--- a/libc/include/nios2-linux-gnu/sys/ucontext.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/* ucontext_t definition, Nios II version.
- Copyright (C) 2015-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- . */
-
-/* System V/Nios II ABI compliant context switching support. */
-
-#ifndef _SYS_UCONTEXT_H
-#define _SYS_UCONTEXT_H 1
-
-#include
-
-#include
-#include
-
-
-/* These definitions must be in sync with the kernel. */
-
-#ifdef __USE_MISC
-# define MCONTEXT_VERSION 2
-#endif
-
-#ifdef __USE_MISC
-# define __ctx(fld) fld
-#else
-# define __ctx(fld) __ ## fld
-#endif
-
-/* Context to describe whole processor state. */
-typedef struct
- {
- int __ctx(version);
- unsigned long __ctx(regs)[32];
- } mcontext_t;
-
-/* Userlevel context. */
-typedef struct ucontext_t
- {
- unsigned long __ctx(uc_flags);
- struct ucontext_t *uc_link;
- stack_t uc_stack;
- mcontext_t uc_mcontext;
- sigset_t uc_sigmask;
- } ucontext_t;
-
-#undef __ctx
-
-#endif /* sys/ucontext.h */
\ No newline at end of file
diff --git a/libc/include/nios2-linux-gnu/sys/user.h b/libc/include/nios2-linux-gnu/sys/user.h
deleted file mode 100644
index 105c92aafe..0000000000
--- a/libc/include/nios2-linux-gnu/sys/user.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/* ptrace register data format definitions.
- Copyright (C) 1998-2019 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- . */
-
-#ifndef _SYS_USER_H
-#define _SYS_USER_H 1
-
-/* The whole purpose of this file is for GDB and GDB only. Don't read
- too much into it. Don't use it for anything other than GDB unless
- you know what you are doing. */
-
-struct user_fpregs
-{
-};
-
-struct user_regs
-{
- unsigned long int uregs[49];
-};
-
-struct user
-{
- struct user_regs regs; /* General registers */
- int u_fpvalid; /* True if math co-processor being used. */
-
- unsigned long int u_tsize; /* Text segment size (pages). */
- unsigned long int u_dsize; /* Data segment size (pages). */
- unsigned long int u_ssize; /* Stack segment size (pages). */
-
- unsigned long start_code; /* Starting virtual address of text. */
- unsigned long start_stack; /* Starting virtual address of stack. */
-
- long int signal; /* Signal that caused the core dump. */
- int reserved; /* No longer used */
- struct user_regs *u_ar0; /* help gdb to find the general registers. */
-
- unsigned long magic; /* uniquely identify a core file */
- char u_comm[32]; /* User command that was responsible */
- int u_debugreg[8];
- struct user_fpregs u_fp; /* Floating point registers */
- struct user_fpregs *u_fp0; /* help gdb to find the FP registers. */
-};
-
-#endif /* sys/user.h */
\ No newline at end of file
diff --git a/libc/include/powerpc-linux-musl/asm/auxvec.h b/libc/include/powerpc-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/auxvec.h
rename to libc/include/powerpc-linux-any/asm/auxvec.h
diff --git a/libc/include/powerpc-linux-musl/asm/bitsperlong.h b/libc/include/powerpc-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/bitsperlong.h
rename to libc/include/powerpc-linux-any/asm/bitsperlong.h
diff --git a/libc/include/powerpc-linux-musl/asm/byteorder.h b/libc/include/powerpc-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/byteorder.h
rename to libc/include/powerpc-linux-any/asm/byteorder.h
diff --git a/libc/include/powerpc-linux-musl/asm/errno.h b/libc/include/powerpc-linux-any/asm/errno.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/errno.h
rename to libc/include/powerpc-linux-any/asm/errno.h
diff --git a/libc/include/powerpc-linux-musl/asm/fcntl.h b/libc/include/powerpc-linux-any/asm/fcntl.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/fcntl.h
rename to libc/include/powerpc-linux-any/asm/fcntl.h
diff --git a/libc/include/powerpc-linux-musl/asm/ioctl.h b/libc/include/powerpc-linux-any/asm/ioctl.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/ioctl.h
rename to libc/include/powerpc-linux-any/asm/ioctl.h
diff --git a/libc/include/powerpc-linux-musl/asm/ioctls.h b/libc/include/powerpc-linux-any/asm/ioctls.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/ioctls.h
rename to libc/include/powerpc-linux-any/asm/ioctls.h
diff --git a/libc/include/powerpc-linux-musl/asm/ipcbuf.h b/libc/include/powerpc-linux-any/asm/ipcbuf.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/ipcbuf.h
rename to libc/include/powerpc-linux-any/asm/ipcbuf.h
diff --git a/libc/include/powerpc-linux-musl/asm/kvm.h b/libc/include/powerpc-linux-any/asm/kvm.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/kvm.h
rename to libc/include/powerpc-linux-any/asm/kvm.h
diff --git a/libc/include/powerpc-linux-musl/asm/kvm_para.h b/libc/include/powerpc-linux-any/asm/kvm_para.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/kvm_para.h
rename to libc/include/powerpc-linux-any/asm/kvm_para.h
diff --git a/libc/include/powerpc-linux-musl/asm/mman.h b/libc/include/powerpc-linux-any/asm/mman.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/mman.h
rename to libc/include/powerpc-linux-any/asm/mman.h
diff --git a/libc/include/powerpc-linux-musl/asm/msgbuf.h b/libc/include/powerpc-linux-any/asm/msgbuf.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/msgbuf.h
rename to libc/include/powerpc-linux-any/asm/msgbuf.h
diff --git a/libc/include/powerpc-linux-musl/asm/perf_regs.h b/libc/include/powerpc-linux-any/asm/perf_regs.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/perf_regs.h
rename to libc/include/powerpc-linux-any/asm/perf_regs.h
diff --git a/libc/include/powerpc-linux-musl/asm/posix_types.h b/libc/include/powerpc-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/posix_types.h
rename to libc/include/powerpc-linux-any/asm/posix_types.h
diff --git a/libc/include/powerpc-linux-musl/asm/ptrace.h b/libc/include/powerpc-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/ptrace.h
rename to libc/include/powerpc-linux-any/asm/ptrace.h
diff --git a/libc/include/powerpc-linux-musl/asm/sembuf.h b/libc/include/powerpc-linux-any/asm/sembuf.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/sembuf.h
rename to libc/include/powerpc-linux-any/asm/sembuf.h
diff --git a/libc/include/powerpc-linux-musl/asm/setup.h b/libc/include/powerpc-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/setup.h
rename to libc/include/powerpc-linux-any/asm/setup.h
diff --git a/libc/include/powerpc-linux-musl/asm/shmbuf.h b/libc/include/powerpc-linux-any/asm/shmbuf.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/shmbuf.h
rename to libc/include/powerpc-linux-any/asm/shmbuf.h
diff --git a/libc/include/powerpc-linux-musl/asm/sigcontext.h b/libc/include/powerpc-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/sigcontext.h
rename to libc/include/powerpc-linux-any/asm/sigcontext.h
diff --git a/libc/include/powerpc-linux-musl/asm/siginfo.h b/libc/include/powerpc-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/siginfo.h
rename to libc/include/powerpc-linux-any/asm/siginfo.h
diff --git a/libc/include/powerpc-linux-musl/asm/signal.h b/libc/include/powerpc-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/signal.h
rename to libc/include/powerpc-linux-any/asm/signal.h
diff --git a/libc/include/powerpc-linux-musl/asm/socket.h b/libc/include/powerpc-linux-any/asm/socket.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/socket.h
rename to libc/include/powerpc-linux-any/asm/socket.h
diff --git a/libc/include/powerpc-linux-musl/asm/stat.h b/libc/include/powerpc-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/stat.h
rename to libc/include/powerpc-linux-any/asm/stat.h
diff --git a/libc/include/powerpc-linux-musl/asm/swab.h b/libc/include/powerpc-linux-any/asm/swab.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/swab.h
rename to libc/include/powerpc-linux-any/asm/swab.h
diff --git a/libc/include/powerpc-linux-musl/asm/termbits.h b/libc/include/powerpc-linux-any/asm/termbits.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/termbits.h
rename to libc/include/powerpc-linux-any/asm/termbits.h
diff --git a/libc/include/powerpc-linux-musl/asm/termios.h b/libc/include/powerpc-linux-any/asm/termios.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/termios.h
rename to libc/include/powerpc-linux-any/asm/termios.h
diff --git a/libc/include/powerpc-linux-musl/asm/types.h b/libc/include/powerpc-linux-any/asm/types.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/types.h
rename to libc/include/powerpc-linux-any/asm/types.h
diff --git a/libc/include/powerpc-linux-musl/asm/ucontext.h b/libc/include/powerpc-linux-any/asm/ucontext.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/ucontext.h
rename to libc/include/powerpc-linux-any/asm/ucontext.h
diff --git a/libc/include/powerpc-linux-musl/asm/unistd.h b/libc/include/powerpc-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/powerpc-linux-musl/asm/unistd.h
rename to libc/include/powerpc-linux-any/asm/unistd.h
diff --git a/libc/include/powerpc-linux-gnu/asm/unistd.h b/libc/include/powerpc-linux-gnu/asm/unistd.h
deleted file mode 100644
index 985534d0b4..0000000000
--- a/libc/include/powerpc-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,404 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
-/*
- * This file contains the system call numbers.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
- */
-#ifndef _UAPI_ASM_POWERPC_UNISTD_H_
-#define _UAPI_ASM_POWERPC_UNISTD_H_
-
-
-#define __NR_restart_syscall 0
-#define __NR_exit 1
-#define __NR_fork 2
-#define __NR_read 3
-#define __NR_write 4
-#define __NR_open 5
-#define __NR_close 6
-#define __NR_waitpid 7
-#define __NR_creat 8
-#define __NR_link 9
-#define __NR_unlink 10
-#define __NR_execve 11
-#define __NR_chdir 12
-#define __NR_time 13
-#define __NR_mknod 14
-#define __NR_chmod 15
-#define __NR_lchown 16
-#define __NR_break 17
-#define __NR_oldstat 18
-#define __NR_lseek 19
-#define __NR_getpid 20
-#define __NR_mount 21
-#define __NR_umount 22
-#define __NR_setuid 23
-#define __NR_getuid 24
-#define __NR_stime 25
-#define __NR_ptrace 26
-#define __NR_alarm 27
-#define __NR_oldfstat 28
-#define __NR_pause 29
-#define __NR_utime 30
-#define __NR_stty 31
-#define __NR_gtty 32
-#define __NR_access 33
-#define __NR_nice 34
-#define __NR_ftime 35
-#define __NR_sync 36
-#define __NR_kill 37
-#define __NR_rename 38
-#define __NR_mkdir 39
-#define __NR_rmdir 40
-#define __NR_dup 41
-#define __NR_pipe 42
-#define __NR_times 43
-#define __NR_prof 44
-#define __NR_brk 45
-#define __NR_setgid 46
-#define __NR_getgid 47
-#define __NR_signal 48
-#define __NR_geteuid 49
-#define __NR_getegid 50
-#define __NR_acct 51
-#define __NR_umount2 52
-#define __NR_lock 53
-#define __NR_ioctl 54
-#define __NR_fcntl 55
-#define __NR_mpx 56
-#define __NR_setpgid 57
-#define __NR_ulimit 58
-#define __NR_oldolduname 59
-#define __NR_umask 60
-#define __NR_chroot 61
-#define __NR_ustat 62
-#define __NR_dup2 63
-#define __NR_getppid 64
-#define __NR_getpgrp 65
-#define __NR_setsid 66
-#define __NR_sigaction 67
-#define __NR_sgetmask 68
-#define __NR_ssetmask 69
-#define __NR_setreuid 70
-#define __NR_setregid 71
-#define __NR_sigsuspend 72
-#define __NR_sigpending 73
-#define __NR_sethostname 74
-#define __NR_setrlimit 75
-#define __NR_getrlimit 76
-#define __NR_getrusage 77
-#define __NR_gettimeofday 78
-#define __NR_settimeofday 79
-#define __NR_getgroups 80
-#define __NR_setgroups 81
-#define __NR_select 82
-#define __NR_symlink 83
-#define __NR_oldlstat 84
-#define __NR_readlink 85
-#define __NR_uselib 86
-#define __NR_swapon 87
-#define __NR_reboot 88
-#define __NR_readdir 89
-#define __NR_mmap 90
-#define __NR_munmap 91
-#define __NR_truncate 92
-#define __NR_ftruncate 93
-#define __NR_fchmod 94
-#define __NR_fchown 95
-#define __NR_getpriority 96
-#define __NR_setpriority 97
-#define __NR_profil 98
-#define __NR_statfs 99
-#define __NR_fstatfs 100
-#define __NR_ioperm 101
-#define __NR_socketcall 102
-#define __NR_syslog 103
-#define __NR_setitimer 104
-#define __NR_getitimer 105
-#define __NR_stat 106
-#define __NR_lstat 107
-#define __NR_fstat 108
-#define __NR_olduname 109
-#define __NR_iopl 110
-#define __NR_vhangup 111
-#define __NR_idle 112
-#define __NR_vm86 113
-#define __NR_wait4 114
-#define __NR_swapoff 115
-#define __NR_sysinfo 116
-#define __NR_ipc 117
-#define __NR_fsync 118
-#define __NR_sigreturn 119
-#define __NR_clone 120
-#define __NR_setdomainname 121
-#define __NR_uname 122
-#define __NR_modify_ldt 123
-#define __NR_adjtimex 124
-#define __NR_mprotect 125
-#define __NR_sigprocmask 126
-#define __NR_create_module 127
-#define __NR_init_module 128
-#define __NR_delete_module 129
-#define __NR_get_kernel_syms 130
-#define __NR_quotactl 131
-#define __NR_getpgid 132
-#define __NR_fchdir 133
-#define __NR_bdflush 134
-#define __NR_sysfs 135
-#define __NR_personality 136
-#define __NR_afs_syscall 137 /* Syscall for Andrew File System */
-#define __NR_setfsuid 138
-#define __NR_setfsgid 139
-#define __NR__llseek 140
-#define __NR_getdents 141
-#define __NR__newselect 142
-#define __NR_flock 143
-#define __NR_msync 144
-#define __NR_readv 145
-#define __NR_writev 146
-#define __NR_getsid 147
-#define __NR_fdatasync 148
-#define __NR__sysctl 149
-#define __NR_mlock 150
-#define __NR_munlock 151
-#define __NR_mlockall 152
-#define __NR_munlockall 153
-#define __NR_sched_setparam 154
-#define __NR_sched_getparam 155
-#define __NR_sched_setscheduler 156
-#define __NR_sched_getscheduler 157
-#define __NR_sched_yield 158
-#define __NR_sched_get_priority_max 159
-#define __NR_sched_get_priority_min 160
-#define __NR_sched_rr_get_interval 161
-#define __NR_nanosleep 162
-#define __NR_mremap 163
-#define __NR_setresuid 164
-#define __NR_getresuid 165
-#define __NR_query_module 166
-#define __NR_poll 167
-#define __NR_nfsservctl 168
-#define __NR_setresgid 169
-#define __NR_getresgid 170
-#define __NR_prctl 171
-#define __NR_rt_sigreturn 172
-#define __NR_rt_sigaction 173
-#define __NR_rt_sigprocmask 174
-#define __NR_rt_sigpending 175
-#define __NR_rt_sigtimedwait 176
-#define __NR_rt_sigqueueinfo 177
-#define __NR_rt_sigsuspend 178
-#define __NR_pread64 179
-#define __NR_pwrite64 180
-#define __NR_chown 181
-#define __NR_getcwd 182
-#define __NR_capget 183
-#define __NR_capset 184
-#define __NR_sigaltstack 185
-#define __NR_sendfile 186
-#define __NR_getpmsg 187 /* some people actually want streams */
-#define __NR_putpmsg 188 /* some people actually want streams */
-#define __NR_vfork 189
-#define __NR_ugetrlimit 190 /* SuS compliant getrlimit */
-#define __NR_readahead 191
-#ifndef __powerpc64__ /* these are 32-bit only */
-#define __NR_mmap2 192
-#define __NR_truncate64 193
-#define __NR_ftruncate64 194
-#define __NR_stat64 195
-#define __NR_lstat64 196
-#define __NR_fstat64 197
-#endif
-#define __NR_pciconfig_read 198
-#define __NR_pciconfig_write 199
-#define __NR_pciconfig_iobase 200
-#define __NR_multiplexer 201
-#define __NR_getdents64 202
-#define __NR_pivot_root 203
-#ifndef __powerpc64__
-#define __NR_fcntl64 204
-#endif
-#define __NR_madvise 205
-#define __NR_mincore 206
-#define __NR_gettid 207
-#define __NR_tkill 208
-#define __NR_setxattr 209
-#define __NR_lsetxattr 210
-#define __NR_fsetxattr 211
-#define __NR_getxattr 212
-#define __NR_lgetxattr 213
-#define __NR_fgetxattr 214
-#define __NR_listxattr 215
-#define __NR_llistxattr 216
-#define __NR_flistxattr 217
-#define __NR_removexattr 218
-#define __NR_lremovexattr 219
-#define __NR_fremovexattr 220
-#define __NR_futex 221
-#define __NR_sched_setaffinity 222
-#define __NR_sched_getaffinity 223
-/* 224 currently unused */
-#define __NR_tuxcall 225
-#ifndef __powerpc64__
-#define __NR_sendfile64 226
-#endif
-#define __NR_io_setup 227
-#define __NR_io_destroy 228
-#define __NR_io_getevents 229
-#define __NR_io_submit 230
-#define __NR_io_cancel 231
-#define __NR_set_tid_address 232
-#define __NR_fadvise64 233
-#define __NR_exit_group 234
-#define __NR_lookup_dcookie 235
-#define __NR_epoll_create 236
-#define __NR_epoll_ctl 237
-#define __NR_epoll_wait 238
-#define __NR_remap_file_pages 239
-#define __NR_timer_create 240
-#define __NR_timer_settime 241
-#define __NR_timer_gettime 242
-#define __NR_timer_getoverrun 243
-#define __NR_timer_delete 244
-#define __NR_clock_settime 245
-#define __NR_clock_gettime 246
-#define __NR_clock_getres 247
-#define __NR_clock_nanosleep 248
-#define __NR_swapcontext 249
-#define __NR_tgkill 250
-#define __NR_utimes 251
-#define __NR_statfs64 252
-#define __NR_fstatfs64 253
-#ifndef __powerpc64__
-#define __NR_fadvise64_64 254
-#endif
-#define __NR_rtas 255
-#define __NR_sys_debug_setcontext 256
-/* Number 257 is reserved for vserver */
-#define __NR_migrate_pages 258
-#define __NR_mbind 259
-#define __NR_get_mempolicy 260
-#define __NR_set_mempolicy 261
-#define __NR_mq_open 262
-#define __NR_mq_unlink 263
-#define __NR_mq_timedsend 264
-#define __NR_mq_timedreceive 265
-#define __NR_mq_notify 266
-#define __NR_mq_getsetattr 267
-#define __NR_kexec_load 268
-#define __NR_add_key 269
-#define __NR_request_key 270
-#define __NR_keyctl 271
-#define __NR_waitid 272
-#define __NR_ioprio_set 273
-#define __NR_ioprio_get 274
-#define __NR_inotify_init 275
-#define __NR_inotify_add_watch 276
-#define __NR_inotify_rm_watch 277
-#define __NR_spu_run 278
-#define __NR_spu_create 279
-#define __NR_pselect6 280
-#define __NR_ppoll 281
-#define __NR_unshare 282
-#define __NR_splice 283
-#define __NR_tee 284
-#define __NR_vmsplice 285
-#define __NR_openat 286
-#define __NR_mkdirat 287
-#define __NR_mknodat 288
-#define __NR_fchownat 289
-#define __NR_futimesat 290
-#ifdef __powerpc64__
-#define __NR_newfstatat 291
-#else
-#define __NR_fstatat64 291
-#endif
-#define __NR_unlinkat 292
-#define __NR_renameat 293
-#define __NR_linkat 294
-#define __NR_symlinkat 295
-#define __NR_readlinkat 296
-#define __NR_fchmodat 297
-#define __NR_faccessat 298
-#define __NR_get_robust_list 299
-#define __NR_set_robust_list 300
-#define __NR_move_pages 301
-#define __NR_getcpu 302
-#define __NR_epoll_pwait 303
-#define __NR_utimensat 304
-#define __NR_signalfd 305
-#define __NR_timerfd_create 306
-#define __NR_eventfd 307
-#define __NR_sync_file_range2 308
-#define __NR_fallocate 309
-#define __NR_subpage_prot 310
-#define __NR_timerfd_settime 311
-#define __NR_timerfd_gettime 312
-#define __NR_signalfd4 313
-#define __NR_eventfd2 314
-#define __NR_epoll_create1 315
-#define __NR_dup3 316
-#define __NR_pipe2 317
-#define __NR_inotify_init1 318
-#define __NR_perf_event_open 319
-#define __NR_preadv 320
-#define __NR_pwritev 321
-#define __NR_rt_tgsigqueueinfo 322
-#define __NR_fanotify_init 323
-#define __NR_fanotify_mark 324
-#define __NR_prlimit64 325
-#define __NR_socket 326
-#define __NR_bind 327
-#define __NR_connect 328
-#define __NR_listen 329
-#define __NR_accept 330
-#define __NR_getsockname 331
-#define __NR_getpeername 332
-#define __NR_socketpair 333
-#define __NR_send 334
-#define __NR_sendto 335
-#define __NR_recv 336
-#define __NR_recvfrom 337
-#define __NR_shutdown 338
-#define __NR_setsockopt 339
-#define __NR_getsockopt 340
-#define __NR_sendmsg 341
-#define __NR_recvmsg 342
-#define __NR_recvmmsg 343
-#define __NR_accept4 344
-#define __NR_name_to_handle_at 345
-#define __NR_open_by_handle_at 346
-#define __NR_clock_adjtime 347
-#define __NR_syncfs 348
-#define __NR_sendmmsg 349
-#define __NR_setns 350
-#define __NR_process_vm_readv 351
-#define __NR_process_vm_writev 352
-#define __NR_finit_module 353
-#define __NR_kcmp 354
-#define __NR_sched_setattr 355
-#define __NR_sched_getattr 356
-#define __NR_renameat2 357
-#define __NR_seccomp 358
-#define __NR_getrandom 359
-#define __NR_memfd_create 360
-#define __NR_bpf 361
-#define __NR_execveat 362
-#define __NR_switch_endian 363
-#define __NR_userfaultfd 364
-#define __NR_membarrier 365
-#define __NR_mlock2 378
-#define __NR_copy_file_range 379
-#define __NR_preadv2 380
-#define __NR_pwritev2 381
-#define __NR_kexec_file_load 382
-#define __NR_statx 383
-#define __NR_pkey_alloc 384
-#define __NR_pkey_free 385
-#define __NR_pkey_mprotect 386
-#define __NR_rseq 387
-#define __NR_io_pgetevents 388
-
-#endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
diff --git a/libc/include/powerpc64-linux-musl/asm/auxvec.h b/libc/include/powerpc64-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/auxvec.h
rename to libc/include/powerpc64-linux-any/asm/auxvec.h
diff --git a/libc/include/powerpc64-linux-musl/asm/bitsperlong.h b/libc/include/powerpc64-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/bitsperlong.h
rename to libc/include/powerpc64-linux-any/asm/bitsperlong.h
diff --git a/libc/include/powerpc64-linux-musl/asm/byteorder.h b/libc/include/powerpc64-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/byteorder.h
rename to libc/include/powerpc64-linux-any/asm/byteorder.h
diff --git a/libc/include/powerpc64-linux-musl/asm/errno.h b/libc/include/powerpc64-linux-any/asm/errno.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/errno.h
rename to libc/include/powerpc64-linux-any/asm/errno.h
diff --git a/libc/include/powerpc64-linux-musl/asm/fcntl.h b/libc/include/powerpc64-linux-any/asm/fcntl.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/fcntl.h
rename to libc/include/powerpc64-linux-any/asm/fcntl.h
diff --git a/libc/include/powerpc64-linux-musl/asm/ioctl.h b/libc/include/powerpc64-linux-any/asm/ioctl.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/ioctl.h
rename to libc/include/powerpc64-linux-any/asm/ioctl.h
diff --git a/libc/include/powerpc64-linux-musl/asm/ioctls.h b/libc/include/powerpc64-linux-any/asm/ioctls.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/ioctls.h
rename to libc/include/powerpc64-linux-any/asm/ioctls.h
diff --git a/libc/include/powerpc64-linux-musl/asm/ipcbuf.h b/libc/include/powerpc64-linux-any/asm/ipcbuf.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/ipcbuf.h
rename to libc/include/powerpc64-linux-any/asm/ipcbuf.h
diff --git a/libc/include/powerpc64-linux-musl/asm/kvm.h b/libc/include/powerpc64-linux-any/asm/kvm.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/kvm.h
rename to libc/include/powerpc64-linux-any/asm/kvm.h
diff --git a/libc/include/powerpc64-linux-musl/asm/kvm_para.h b/libc/include/powerpc64-linux-any/asm/kvm_para.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/kvm_para.h
rename to libc/include/powerpc64-linux-any/asm/kvm_para.h
diff --git a/libc/include/powerpc64-linux-musl/asm/mman.h b/libc/include/powerpc64-linux-any/asm/mman.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/mman.h
rename to libc/include/powerpc64-linux-any/asm/mman.h
diff --git a/libc/include/powerpc64-linux-musl/asm/msgbuf.h b/libc/include/powerpc64-linux-any/asm/msgbuf.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/msgbuf.h
rename to libc/include/powerpc64-linux-any/asm/msgbuf.h
diff --git a/libc/include/powerpc64-linux-musl/asm/perf_regs.h b/libc/include/powerpc64-linux-any/asm/perf_regs.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/perf_regs.h
rename to libc/include/powerpc64-linux-any/asm/perf_regs.h
diff --git a/libc/include/powerpc64-linux-musl/asm/posix_types.h b/libc/include/powerpc64-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/posix_types.h
rename to libc/include/powerpc64-linux-any/asm/posix_types.h
diff --git a/libc/include/powerpc64-linux-musl/asm/ptrace.h b/libc/include/powerpc64-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/ptrace.h
rename to libc/include/powerpc64-linux-any/asm/ptrace.h
diff --git a/libc/include/powerpc64-linux-musl/asm/sembuf.h b/libc/include/powerpc64-linux-any/asm/sembuf.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/sembuf.h
rename to libc/include/powerpc64-linux-any/asm/sembuf.h
diff --git a/libc/include/powerpc64-linux-musl/asm/setup.h b/libc/include/powerpc64-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/setup.h
rename to libc/include/powerpc64-linux-any/asm/setup.h
diff --git a/libc/include/powerpc64-linux-musl/asm/shmbuf.h b/libc/include/powerpc64-linux-any/asm/shmbuf.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/shmbuf.h
rename to libc/include/powerpc64-linux-any/asm/shmbuf.h
diff --git a/libc/include/powerpc64-linux-musl/asm/sigcontext.h b/libc/include/powerpc64-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/sigcontext.h
rename to libc/include/powerpc64-linux-any/asm/sigcontext.h
diff --git a/libc/include/powerpc64-linux-musl/asm/siginfo.h b/libc/include/powerpc64-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/siginfo.h
rename to libc/include/powerpc64-linux-any/asm/siginfo.h
diff --git a/libc/include/powerpc64-linux-musl/asm/signal.h b/libc/include/powerpc64-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/signal.h
rename to libc/include/powerpc64-linux-any/asm/signal.h
diff --git a/libc/include/powerpc64-linux-musl/asm/socket.h b/libc/include/powerpc64-linux-any/asm/socket.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/socket.h
rename to libc/include/powerpc64-linux-any/asm/socket.h
diff --git a/libc/include/powerpc64-linux-musl/asm/stat.h b/libc/include/powerpc64-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/stat.h
rename to libc/include/powerpc64-linux-any/asm/stat.h
diff --git a/libc/include/powerpc64-linux-musl/asm/swab.h b/libc/include/powerpc64-linux-any/asm/swab.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/swab.h
rename to libc/include/powerpc64-linux-any/asm/swab.h
diff --git a/libc/include/powerpc64-linux-musl/asm/termbits.h b/libc/include/powerpc64-linux-any/asm/termbits.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/termbits.h
rename to libc/include/powerpc64-linux-any/asm/termbits.h
diff --git a/libc/include/powerpc64-linux-musl/asm/termios.h b/libc/include/powerpc64-linux-any/asm/termios.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/termios.h
rename to libc/include/powerpc64-linux-any/asm/termios.h
diff --git a/libc/include/powerpc64-linux-musl/asm/types.h b/libc/include/powerpc64-linux-any/asm/types.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/types.h
rename to libc/include/powerpc64-linux-any/asm/types.h
diff --git a/libc/include/powerpc64-linux-musl/asm/ucontext.h b/libc/include/powerpc64-linux-any/asm/ucontext.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/ucontext.h
rename to libc/include/powerpc64-linux-any/asm/ucontext.h
diff --git a/libc/include/powerpc64-linux-musl/asm/unistd.h b/libc/include/powerpc64-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/powerpc64-linux-musl/asm/unistd.h
rename to libc/include/powerpc64-linux-any/asm/unistd.h
diff --git a/libc/include/powerpc64-linux-gnu/asm/unistd.h b/libc/include/powerpc64-linux-gnu/asm/unistd.h
deleted file mode 100644
index 985534d0b4..0000000000
--- a/libc/include/powerpc64-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,404 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
-/*
- * This file contains the system call numbers.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
- */
-#ifndef _UAPI_ASM_POWERPC_UNISTD_H_
-#define _UAPI_ASM_POWERPC_UNISTD_H_
-
-
-#define __NR_restart_syscall 0
-#define __NR_exit 1
-#define __NR_fork 2
-#define __NR_read 3
-#define __NR_write 4
-#define __NR_open 5
-#define __NR_close 6
-#define __NR_waitpid 7
-#define __NR_creat 8
-#define __NR_link 9
-#define __NR_unlink 10
-#define __NR_execve 11
-#define __NR_chdir 12
-#define __NR_time 13
-#define __NR_mknod 14
-#define __NR_chmod 15
-#define __NR_lchown 16
-#define __NR_break 17
-#define __NR_oldstat 18
-#define __NR_lseek 19
-#define __NR_getpid 20
-#define __NR_mount 21
-#define __NR_umount 22
-#define __NR_setuid 23
-#define __NR_getuid 24
-#define __NR_stime 25
-#define __NR_ptrace 26
-#define __NR_alarm 27
-#define __NR_oldfstat 28
-#define __NR_pause 29
-#define __NR_utime 30
-#define __NR_stty 31
-#define __NR_gtty 32
-#define __NR_access 33
-#define __NR_nice 34
-#define __NR_ftime 35
-#define __NR_sync 36
-#define __NR_kill 37
-#define __NR_rename 38
-#define __NR_mkdir 39
-#define __NR_rmdir 40
-#define __NR_dup 41
-#define __NR_pipe 42
-#define __NR_times 43
-#define __NR_prof 44
-#define __NR_brk 45
-#define __NR_setgid 46
-#define __NR_getgid 47
-#define __NR_signal 48
-#define __NR_geteuid 49
-#define __NR_getegid 50
-#define __NR_acct 51
-#define __NR_umount2 52
-#define __NR_lock 53
-#define __NR_ioctl 54
-#define __NR_fcntl 55
-#define __NR_mpx 56
-#define __NR_setpgid 57
-#define __NR_ulimit 58
-#define __NR_oldolduname 59
-#define __NR_umask 60
-#define __NR_chroot 61
-#define __NR_ustat 62
-#define __NR_dup2 63
-#define __NR_getppid 64
-#define __NR_getpgrp 65
-#define __NR_setsid 66
-#define __NR_sigaction 67
-#define __NR_sgetmask 68
-#define __NR_ssetmask 69
-#define __NR_setreuid 70
-#define __NR_setregid 71
-#define __NR_sigsuspend 72
-#define __NR_sigpending 73
-#define __NR_sethostname 74
-#define __NR_setrlimit 75
-#define __NR_getrlimit 76
-#define __NR_getrusage 77
-#define __NR_gettimeofday 78
-#define __NR_settimeofday 79
-#define __NR_getgroups 80
-#define __NR_setgroups 81
-#define __NR_select 82
-#define __NR_symlink 83
-#define __NR_oldlstat 84
-#define __NR_readlink 85
-#define __NR_uselib 86
-#define __NR_swapon 87
-#define __NR_reboot 88
-#define __NR_readdir 89
-#define __NR_mmap 90
-#define __NR_munmap 91
-#define __NR_truncate 92
-#define __NR_ftruncate 93
-#define __NR_fchmod 94
-#define __NR_fchown 95
-#define __NR_getpriority 96
-#define __NR_setpriority 97
-#define __NR_profil 98
-#define __NR_statfs 99
-#define __NR_fstatfs 100
-#define __NR_ioperm 101
-#define __NR_socketcall 102
-#define __NR_syslog 103
-#define __NR_setitimer 104
-#define __NR_getitimer 105
-#define __NR_stat 106
-#define __NR_lstat 107
-#define __NR_fstat 108
-#define __NR_olduname 109
-#define __NR_iopl 110
-#define __NR_vhangup 111
-#define __NR_idle 112
-#define __NR_vm86 113
-#define __NR_wait4 114
-#define __NR_swapoff 115
-#define __NR_sysinfo 116
-#define __NR_ipc 117
-#define __NR_fsync 118
-#define __NR_sigreturn 119
-#define __NR_clone 120
-#define __NR_setdomainname 121
-#define __NR_uname 122
-#define __NR_modify_ldt 123
-#define __NR_adjtimex 124
-#define __NR_mprotect 125
-#define __NR_sigprocmask 126
-#define __NR_create_module 127
-#define __NR_init_module 128
-#define __NR_delete_module 129
-#define __NR_get_kernel_syms 130
-#define __NR_quotactl 131
-#define __NR_getpgid 132
-#define __NR_fchdir 133
-#define __NR_bdflush 134
-#define __NR_sysfs 135
-#define __NR_personality 136
-#define __NR_afs_syscall 137 /* Syscall for Andrew File System */
-#define __NR_setfsuid 138
-#define __NR_setfsgid 139
-#define __NR__llseek 140
-#define __NR_getdents 141
-#define __NR__newselect 142
-#define __NR_flock 143
-#define __NR_msync 144
-#define __NR_readv 145
-#define __NR_writev 146
-#define __NR_getsid 147
-#define __NR_fdatasync 148
-#define __NR__sysctl 149
-#define __NR_mlock 150
-#define __NR_munlock 151
-#define __NR_mlockall 152
-#define __NR_munlockall 153
-#define __NR_sched_setparam 154
-#define __NR_sched_getparam 155
-#define __NR_sched_setscheduler 156
-#define __NR_sched_getscheduler 157
-#define __NR_sched_yield 158
-#define __NR_sched_get_priority_max 159
-#define __NR_sched_get_priority_min 160
-#define __NR_sched_rr_get_interval 161
-#define __NR_nanosleep 162
-#define __NR_mremap 163
-#define __NR_setresuid 164
-#define __NR_getresuid 165
-#define __NR_query_module 166
-#define __NR_poll 167
-#define __NR_nfsservctl 168
-#define __NR_setresgid 169
-#define __NR_getresgid 170
-#define __NR_prctl 171
-#define __NR_rt_sigreturn 172
-#define __NR_rt_sigaction 173
-#define __NR_rt_sigprocmask 174
-#define __NR_rt_sigpending 175
-#define __NR_rt_sigtimedwait 176
-#define __NR_rt_sigqueueinfo 177
-#define __NR_rt_sigsuspend 178
-#define __NR_pread64 179
-#define __NR_pwrite64 180
-#define __NR_chown 181
-#define __NR_getcwd 182
-#define __NR_capget 183
-#define __NR_capset 184
-#define __NR_sigaltstack 185
-#define __NR_sendfile 186
-#define __NR_getpmsg 187 /* some people actually want streams */
-#define __NR_putpmsg 188 /* some people actually want streams */
-#define __NR_vfork 189
-#define __NR_ugetrlimit 190 /* SuS compliant getrlimit */
-#define __NR_readahead 191
-#ifndef __powerpc64__ /* these are 32-bit only */
-#define __NR_mmap2 192
-#define __NR_truncate64 193
-#define __NR_ftruncate64 194
-#define __NR_stat64 195
-#define __NR_lstat64 196
-#define __NR_fstat64 197
-#endif
-#define __NR_pciconfig_read 198
-#define __NR_pciconfig_write 199
-#define __NR_pciconfig_iobase 200
-#define __NR_multiplexer 201
-#define __NR_getdents64 202
-#define __NR_pivot_root 203
-#ifndef __powerpc64__
-#define __NR_fcntl64 204
-#endif
-#define __NR_madvise 205
-#define __NR_mincore 206
-#define __NR_gettid 207
-#define __NR_tkill 208
-#define __NR_setxattr 209
-#define __NR_lsetxattr 210
-#define __NR_fsetxattr 211
-#define __NR_getxattr 212
-#define __NR_lgetxattr 213
-#define __NR_fgetxattr 214
-#define __NR_listxattr 215
-#define __NR_llistxattr 216
-#define __NR_flistxattr 217
-#define __NR_removexattr 218
-#define __NR_lremovexattr 219
-#define __NR_fremovexattr 220
-#define __NR_futex 221
-#define __NR_sched_setaffinity 222
-#define __NR_sched_getaffinity 223
-/* 224 currently unused */
-#define __NR_tuxcall 225
-#ifndef __powerpc64__
-#define __NR_sendfile64 226
-#endif
-#define __NR_io_setup 227
-#define __NR_io_destroy 228
-#define __NR_io_getevents 229
-#define __NR_io_submit 230
-#define __NR_io_cancel 231
-#define __NR_set_tid_address 232
-#define __NR_fadvise64 233
-#define __NR_exit_group 234
-#define __NR_lookup_dcookie 235
-#define __NR_epoll_create 236
-#define __NR_epoll_ctl 237
-#define __NR_epoll_wait 238
-#define __NR_remap_file_pages 239
-#define __NR_timer_create 240
-#define __NR_timer_settime 241
-#define __NR_timer_gettime 242
-#define __NR_timer_getoverrun 243
-#define __NR_timer_delete 244
-#define __NR_clock_settime 245
-#define __NR_clock_gettime 246
-#define __NR_clock_getres 247
-#define __NR_clock_nanosleep 248
-#define __NR_swapcontext 249
-#define __NR_tgkill 250
-#define __NR_utimes 251
-#define __NR_statfs64 252
-#define __NR_fstatfs64 253
-#ifndef __powerpc64__
-#define __NR_fadvise64_64 254
-#endif
-#define __NR_rtas 255
-#define __NR_sys_debug_setcontext 256
-/* Number 257 is reserved for vserver */
-#define __NR_migrate_pages 258
-#define __NR_mbind 259
-#define __NR_get_mempolicy 260
-#define __NR_set_mempolicy 261
-#define __NR_mq_open 262
-#define __NR_mq_unlink 263
-#define __NR_mq_timedsend 264
-#define __NR_mq_timedreceive 265
-#define __NR_mq_notify 266
-#define __NR_mq_getsetattr 267
-#define __NR_kexec_load 268
-#define __NR_add_key 269
-#define __NR_request_key 270
-#define __NR_keyctl 271
-#define __NR_waitid 272
-#define __NR_ioprio_set 273
-#define __NR_ioprio_get 274
-#define __NR_inotify_init 275
-#define __NR_inotify_add_watch 276
-#define __NR_inotify_rm_watch 277
-#define __NR_spu_run 278
-#define __NR_spu_create 279
-#define __NR_pselect6 280
-#define __NR_ppoll 281
-#define __NR_unshare 282
-#define __NR_splice 283
-#define __NR_tee 284
-#define __NR_vmsplice 285
-#define __NR_openat 286
-#define __NR_mkdirat 287
-#define __NR_mknodat 288
-#define __NR_fchownat 289
-#define __NR_futimesat 290
-#ifdef __powerpc64__
-#define __NR_newfstatat 291
-#else
-#define __NR_fstatat64 291
-#endif
-#define __NR_unlinkat 292
-#define __NR_renameat 293
-#define __NR_linkat 294
-#define __NR_symlinkat 295
-#define __NR_readlinkat 296
-#define __NR_fchmodat 297
-#define __NR_faccessat 298
-#define __NR_get_robust_list 299
-#define __NR_set_robust_list 300
-#define __NR_move_pages 301
-#define __NR_getcpu 302
-#define __NR_epoll_pwait 303
-#define __NR_utimensat 304
-#define __NR_signalfd 305
-#define __NR_timerfd_create 306
-#define __NR_eventfd 307
-#define __NR_sync_file_range2 308
-#define __NR_fallocate 309
-#define __NR_subpage_prot 310
-#define __NR_timerfd_settime 311
-#define __NR_timerfd_gettime 312
-#define __NR_signalfd4 313
-#define __NR_eventfd2 314
-#define __NR_epoll_create1 315
-#define __NR_dup3 316
-#define __NR_pipe2 317
-#define __NR_inotify_init1 318
-#define __NR_perf_event_open 319
-#define __NR_preadv 320
-#define __NR_pwritev 321
-#define __NR_rt_tgsigqueueinfo 322
-#define __NR_fanotify_init 323
-#define __NR_fanotify_mark 324
-#define __NR_prlimit64 325
-#define __NR_socket 326
-#define __NR_bind 327
-#define __NR_connect 328
-#define __NR_listen 329
-#define __NR_accept 330
-#define __NR_getsockname 331
-#define __NR_getpeername 332
-#define __NR_socketpair 333
-#define __NR_send 334
-#define __NR_sendto 335
-#define __NR_recv 336
-#define __NR_recvfrom 337
-#define __NR_shutdown 338
-#define __NR_setsockopt 339
-#define __NR_getsockopt 340
-#define __NR_sendmsg 341
-#define __NR_recvmsg 342
-#define __NR_recvmmsg 343
-#define __NR_accept4 344
-#define __NR_name_to_handle_at 345
-#define __NR_open_by_handle_at 346
-#define __NR_clock_adjtime 347
-#define __NR_syncfs 348
-#define __NR_sendmmsg 349
-#define __NR_setns 350
-#define __NR_process_vm_readv 351
-#define __NR_process_vm_writev 352
-#define __NR_finit_module 353
-#define __NR_kcmp 354
-#define __NR_sched_setattr 355
-#define __NR_sched_getattr 356
-#define __NR_renameat2 357
-#define __NR_seccomp 358
-#define __NR_getrandom 359
-#define __NR_memfd_create 360
-#define __NR_bpf 361
-#define __NR_execveat 362
-#define __NR_switch_endian 363
-#define __NR_userfaultfd 364
-#define __NR_membarrier 365
-#define __NR_mlock2 378
-#define __NR_copy_file_range 379
-#define __NR_preadv2 380
-#define __NR_pwritev2 381
-#define __NR_kexec_file_load 382
-#define __NR_statx 383
-#define __NR_pkey_alloc 384
-#define __NR_pkey_free 385
-#define __NR_pkey_mprotect 386
-#define __NR_rseq 387
-#define __NR_io_pgetevents 388
-
-#endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
diff --git a/libc/include/powerpc64le-linux-musl/asm/auxvec.h b/libc/include/powerpc64le-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/auxvec.h
rename to libc/include/powerpc64le-linux-any/asm/auxvec.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/bitsperlong.h b/libc/include/powerpc64le-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/bitsperlong.h
rename to libc/include/powerpc64le-linux-any/asm/bitsperlong.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/byteorder.h b/libc/include/powerpc64le-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/byteorder.h
rename to libc/include/powerpc64le-linux-any/asm/byteorder.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/errno.h b/libc/include/powerpc64le-linux-any/asm/errno.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/errno.h
rename to libc/include/powerpc64le-linux-any/asm/errno.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/fcntl.h b/libc/include/powerpc64le-linux-any/asm/fcntl.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/fcntl.h
rename to libc/include/powerpc64le-linux-any/asm/fcntl.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/ioctl.h b/libc/include/powerpc64le-linux-any/asm/ioctl.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/ioctl.h
rename to libc/include/powerpc64le-linux-any/asm/ioctl.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/ioctls.h b/libc/include/powerpc64le-linux-any/asm/ioctls.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/ioctls.h
rename to libc/include/powerpc64le-linux-any/asm/ioctls.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/ipcbuf.h b/libc/include/powerpc64le-linux-any/asm/ipcbuf.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/ipcbuf.h
rename to libc/include/powerpc64le-linux-any/asm/ipcbuf.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/kvm.h b/libc/include/powerpc64le-linux-any/asm/kvm.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/kvm.h
rename to libc/include/powerpc64le-linux-any/asm/kvm.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/kvm_para.h b/libc/include/powerpc64le-linux-any/asm/kvm_para.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/kvm_para.h
rename to libc/include/powerpc64le-linux-any/asm/kvm_para.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/mman.h b/libc/include/powerpc64le-linux-any/asm/mman.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/mman.h
rename to libc/include/powerpc64le-linux-any/asm/mman.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/msgbuf.h b/libc/include/powerpc64le-linux-any/asm/msgbuf.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/msgbuf.h
rename to libc/include/powerpc64le-linux-any/asm/msgbuf.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/perf_regs.h b/libc/include/powerpc64le-linux-any/asm/perf_regs.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/perf_regs.h
rename to libc/include/powerpc64le-linux-any/asm/perf_regs.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/posix_types.h b/libc/include/powerpc64le-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/posix_types.h
rename to libc/include/powerpc64le-linux-any/asm/posix_types.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/ptrace.h b/libc/include/powerpc64le-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/ptrace.h
rename to libc/include/powerpc64le-linux-any/asm/ptrace.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/sembuf.h b/libc/include/powerpc64le-linux-any/asm/sembuf.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/sembuf.h
rename to libc/include/powerpc64le-linux-any/asm/sembuf.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/setup.h b/libc/include/powerpc64le-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/setup.h
rename to libc/include/powerpc64le-linux-any/asm/setup.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/shmbuf.h b/libc/include/powerpc64le-linux-any/asm/shmbuf.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/shmbuf.h
rename to libc/include/powerpc64le-linux-any/asm/shmbuf.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/sigcontext.h b/libc/include/powerpc64le-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/sigcontext.h
rename to libc/include/powerpc64le-linux-any/asm/sigcontext.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/siginfo.h b/libc/include/powerpc64le-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/siginfo.h
rename to libc/include/powerpc64le-linux-any/asm/siginfo.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/signal.h b/libc/include/powerpc64le-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/signal.h
rename to libc/include/powerpc64le-linux-any/asm/signal.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/socket.h b/libc/include/powerpc64le-linux-any/asm/socket.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/socket.h
rename to libc/include/powerpc64le-linux-any/asm/socket.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/stat.h b/libc/include/powerpc64le-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/stat.h
rename to libc/include/powerpc64le-linux-any/asm/stat.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/swab.h b/libc/include/powerpc64le-linux-any/asm/swab.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/swab.h
rename to libc/include/powerpc64le-linux-any/asm/swab.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/termbits.h b/libc/include/powerpc64le-linux-any/asm/termbits.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/termbits.h
rename to libc/include/powerpc64le-linux-any/asm/termbits.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/termios.h b/libc/include/powerpc64le-linux-any/asm/termios.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/termios.h
rename to libc/include/powerpc64le-linux-any/asm/termios.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/types.h b/libc/include/powerpc64le-linux-any/asm/types.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/types.h
rename to libc/include/powerpc64le-linux-any/asm/types.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/ucontext.h b/libc/include/powerpc64le-linux-any/asm/ucontext.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/ucontext.h
rename to libc/include/powerpc64le-linux-any/asm/ucontext.h
diff --git a/libc/include/powerpc64le-linux-musl/asm/unistd.h b/libc/include/powerpc64le-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/powerpc64le-linux-musl/asm/unistd.h
rename to libc/include/powerpc64le-linux-any/asm/unistd.h
diff --git a/libc/include/powerpc64le-linux-gnu/asm/unistd.h b/libc/include/powerpc64le-linux-gnu/asm/unistd.h
deleted file mode 100644
index 985534d0b4..0000000000
--- a/libc/include/powerpc64le-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,404 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
-/*
- * This file contains the system call numbers.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
- */
-#ifndef _UAPI_ASM_POWERPC_UNISTD_H_
-#define _UAPI_ASM_POWERPC_UNISTD_H_
-
-
-#define __NR_restart_syscall 0
-#define __NR_exit 1
-#define __NR_fork 2
-#define __NR_read 3
-#define __NR_write 4
-#define __NR_open 5
-#define __NR_close 6
-#define __NR_waitpid 7
-#define __NR_creat 8
-#define __NR_link 9
-#define __NR_unlink 10
-#define __NR_execve 11
-#define __NR_chdir 12
-#define __NR_time 13
-#define __NR_mknod 14
-#define __NR_chmod 15
-#define __NR_lchown 16
-#define __NR_break 17
-#define __NR_oldstat 18
-#define __NR_lseek 19
-#define __NR_getpid 20
-#define __NR_mount 21
-#define __NR_umount 22
-#define __NR_setuid 23
-#define __NR_getuid 24
-#define __NR_stime 25
-#define __NR_ptrace 26
-#define __NR_alarm 27
-#define __NR_oldfstat 28
-#define __NR_pause 29
-#define __NR_utime 30
-#define __NR_stty 31
-#define __NR_gtty 32
-#define __NR_access 33
-#define __NR_nice 34
-#define __NR_ftime 35
-#define __NR_sync 36
-#define __NR_kill 37
-#define __NR_rename 38
-#define __NR_mkdir 39
-#define __NR_rmdir 40
-#define __NR_dup 41
-#define __NR_pipe 42
-#define __NR_times 43
-#define __NR_prof 44
-#define __NR_brk 45
-#define __NR_setgid 46
-#define __NR_getgid 47
-#define __NR_signal 48
-#define __NR_geteuid 49
-#define __NR_getegid 50
-#define __NR_acct 51
-#define __NR_umount2 52
-#define __NR_lock 53
-#define __NR_ioctl 54
-#define __NR_fcntl 55
-#define __NR_mpx 56
-#define __NR_setpgid 57
-#define __NR_ulimit 58
-#define __NR_oldolduname 59
-#define __NR_umask 60
-#define __NR_chroot 61
-#define __NR_ustat 62
-#define __NR_dup2 63
-#define __NR_getppid 64
-#define __NR_getpgrp 65
-#define __NR_setsid 66
-#define __NR_sigaction 67
-#define __NR_sgetmask 68
-#define __NR_ssetmask 69
-#define __NR_setreuid 70
-#define __NR_setregid 71
-#define __NR_sigsuspend 72
-#define __NR_sigpending 73
-#define __NR_sethostname 74
-#define __NR_setrlimit 75
-#define __NR_getrlimit 76
-#define __NR_getrusage 77
-#define __NR_gettimeofday 78
-#define __NR_settimeofday 79
-#define __NR_getgroups 80
-#define __NR_setgroups 81
-#define __NR_select 82
-#define __NR_symlink 83
-#define __NR_oldlstat 84
-#define __NR_readlink 85
-#define __NR_uselib 86
-#define __NR_swapon 87
-#define __NR_reboot 88
-#define __NR_readdir 89
-#define __NR_mmap 90
-#define __NR_munmap 91
-#define __NR_truncate 92
-#define __NR_ftruncate 93
-#define __NR_fchmod 94
-#define __NR_fchown 95
-#define __NR_getpriority 96
-#define __NR_setpriority 97
-#define __NR_profil 98
-#define __NR_statfs 99
-#define __NR_fstatfs 100
-#define __NR_ioperm 101
-#define __NR_socketcall 102
-#define __NR_syslog 103
-#define __NR_setitimer 104
-#define __NR_getitimer 105
-#define __NR_stat 106
-#define __NR_lstat 107
-#define __NR_fstat 108
-#define __NR_olduname 109
-#define __NR_iopl 110
-#define __NR_vhangup 111
-#define __NR_idle 112
-#define __NR_vm86 113
-#define __NR_wait4 114
-#define __NR_swapoff 115
-#define __NR_sysinfo 116
-#define __NR_ipc 117
-#define __NR_fsync 118
-#define __NR_sigreturn 119
-#define __NR_clone 120
-#define __NR_setdomainname 121
-#define __NR_uname 122
-#define __NR_modify_ldt 123
-#define __NR_adjtimex 124
-#define __NR_mprotect 125
-#define __NR_sigprocmask 126
-#define __NR_create_module 127
-#define __NR_init_module 128
-#define __NR_delete_module 129
-#define __NR_get_kernel_syms 130
-#define __NR_quotactl 131
-#define __NR_getpgid 132
-#define __NR_fchdir 133
-#define __NR_bdflush 134
-#define __NR_sysfs 135
-#define __NR_personality 136
-#define __NR_afs_syscall 137 /* Syscall for Andrew File System */
-#define __NR_setfsuid 138
-#define __NR_setfsgid 139
-#define __NR__llseek 140
-#define __NR_getdents 141
-#define __NR__newselect 142
-#define __NR_flock 143
-#define __NR_msync 144
-#define __NR_readv 145
-#define __NR_writev 146
-#define __NR_getsid 147
-#define __NR_fdatasync 148
-#define __NR__sysctl 149
-#define __NR_mlock 150
-#define __NR_munlock 151
-#define __NR_mlockall 152
-#define __NR_munlockall 153
-#define __NR_sched_setparam 154
-#define __NR_sched_getparam 155
-#define __NR_sched_setscheduler 156
-#define __NR_sched_getscheduler 157
-#define __NR_sched_yield 158
-#define __NR_sched_get_priority_max 159
-#define __NR_sched_get_priority_min 160
-#define __NR_sched_rr_get_interval 161
-#define __NR_nanosleep 162
-#define __NR_mremap 163
-#define __NR_setresuid 164
-#define __NR_getresuid 165
-#define __NR_query_module 166
-#define __NR_poll 167
-#define __NR_nfsservctl 168
-#define __NR_setresgid 169
-#define __NR_getresgid 170
-#define __NR_prctl 171
-#define __NR_rt_sigreturn 172
-#define __NR_rt_sigaction 173
-#define __NR_rt_sigprocmask 174
-#define __NR_rt_sigpending 175
-#define __NR_rt_sigtimedwait 176
-#define __NR_rt_sigqueueinfo 177
-#define __NR_rt_sigsuspend 178
-#define __NR_pread64 179
-#define __NR_pwrite64 180
-#define __NR_chown 181
-#define __NR_getcwd 182
-#define __NR_capget 183
-#define __NR_capset 184
-#define __NR_sigaltstack 185
-#define __NR_sendfile 186
-#define __NR_getpmsg 187 /* some people actually want streams */
-#define __NR_putpmsg 188 /* some people actually want streams */
-#define __NR_vfork 189
-#define __NR_ugetrlimit 190 /* SuS compliant getrlimit */
-#define __NR_readahead 191
-#ifndef __powerpc64__ /* these are 32-bit only */
-#define __NR_mmap2 192
-#define __NR_truncate64 193
-#define __NR_ftruncate64 194
-#define __NR_stat64 195
-#define __NR_lstat64 196
-#define __NR_fstat64 197
-#endif
-#define __NR_pciconfig_read 198
-#define __NR_pciconfig_write 199
-#define __NR_pciconfig_iobase 200
-#define __NR_multiplexer 201
-#define __NR_getdents64 202
-#define __NR_pivot_root 203
-#ifndef __powerpc64__
-#define __NR_fcntl64 204
-#endif
-#define __NR_madvise 205
-#define __NR_mincore 206
-#define __NR_gettid 207
-#define __NR_tkill 208
-#define __NR_setxattr 209
-#define __NR_lsetxattr 210
-#define __NR_fsetxattr 211
-#define __NR_getxattr 212
-#define __NR_lgetxattr 213
-#define __NR_fgetxattr 214
-#define __NR_listxattr 215
-#define __NR_llistxattr 216
-#define __NR_flistxattr 217
-#define __NR_removexattr 218
-#define __NR_lremovexattr 219
-#define __NR_fremovexattr 220
-#define __NR_futex 221
-#define __NR_sched_setaffinity 222
-#define __NR_sched_getaffinity 223
-/* 224 currently unused */
-#define __NR_tuxcall 225
-#ifndef __powerpc64__
-#define __NR_sendfile64 226
-#endif
-#define __NR_io_setup 227
-#define __NR_io_destroy 228
-#define __NR_io_getevents 229
-#define __NR_io_submit 230
-#define __NR_io_cancel 231
-#define __NR_set_tid_address 232
-#define __NR_fadvise64 233
-#define __NR_exit_group 234
-#define __NR_lookup_dcookie 235
-#define __NR_epoll_create 236
-#define __NR_epoll_ctl 237
-#define __NR_epoll_wait 238
-#define __NR_remap_file_pages 239
-#define __NR_timer_create 240
-#define __NR_timer_settime 241
-#define __NR_timer_gettime 242
-#define __NR_timer_getoverrun 243
-#define __NR_timer_delete 244
-#define __NR_clock_settime 245
-#define __NR_clock_gettime 246
-#define __NR_clock_getres 247
-#define __NR_clock_nanosleep 248
-#define __NR_swapcontext 249
-#define __NR_tgkill 250
-#define __NR_utimes 251
-#define __NR_statfs64 252
-#define __NR_fstatfs64 253
-#ifndef __powerpc64__
-#define __NR_fadvise64_64 254
-#endif
-#define __NR_rtas 255
-#define __NR_sys_debug_setcontext 256
-/* Number 257 is reserved for vserver */
-#define __NR_migrate_pages 258
-#define __NR_mbind 259
-#define __NR_get_mempolicy 260
-#define __NR_set_mempolicy 261
-#define __NR_mq_open 262
-#define __NR_mq_unlink 263
-#define __NR_mq_timedsend 264
-#define __NR_mq_timedreceive 265
-#define __NR_mq_notify 266
-#define __NR_mq_getsetattr 267
-#define __NR_kexec_load 268
-#define __NR_add_key 269
-#define __NR_request_key 270
-#define __NR_keyctl 271
-#define __NR_waitid 272
-#define __NR_ioprio_set 273
-#define __NR_ioprio_get 274
-#define __NR_inotify_init 275
-#define __NR_inotify_add_watch 276
-#define __NR_inotify_rm_watch 277
-#define __NR_spu_run 278
-#define __NR_spu_create 279
-#define __NR_pselect6 280
-#define __NR_ppoll 281
-#define __NR_unshare 282
-#define __NR_splice 283
-#define __NR_tee 284
-#define __NR_vmsplice 285
-#define __NR_openat 286
-#define __NR_mkdirat 287
-#define __NR_mknodat 288
-#define __NR_fchownat 289
-#define __NR_futimesat 290
-#ifdef __powerpc64__
-#define __NR_newfstatat 291
-#else
-#define __NR_fstatat64 291
-#endif
-#define __NR_unlinkat 292
-#define __NR_renameat 293
-#define __NR_linkat 294
-#define __NR_symlinkat 295
-#define __NR_readlinkat 296
-#define __NR_fchmodat 297
-#define __NR_faccessat 298
-#define __NR_get_robust_list 299
-#define __NR_set_robust_list 300
-#define __NR_move_pages 301
-#define __NR_getcpu 302
-#define __NR_epoll_pwait 303
-#define __NR_utimensat 304
-#define __NR_signalfd 305
-#define __NR_timerfd_create 306
-#define __NR_eventfd 307
-#define __NR_sync_file_range2 308
-#define __NR_fallocate 309
-#define __NR_subpage_prot 310
-#define __NR_timerfd_settime 311
-#define __NR_timerfd_gettime 312
-#define __NR_signalfd4 313
-#define __NR_eventfd2 314
-#define __NR_epoll_create1 315
-#define __NR_dup3 316
-#define __NR_pipe2 317
-#define __NR_inotify_init1 318
-#define __NR_perf_event_open 319
-#define __NR_preadv 320
-#define __NR_pwritev 321
-#define __NR_rt_tgsigqueueinfo 322
-#define __NR_fanotify_init 323
-#define __NR_fanotify_mark 324
-#define __NR_prlimit64 325
-#define __NR_socket 326
-#define __NR_bind 327
-#define __NR_connect 328
-#define __NR_listen 329
-#define __NR_accept 330
-#define __NR_getsockname 331
-#define __NR_getpeername 332
-#define __NR_socketpair 333
-#define __NR_send 334
-#define __NR_sendto 335
-#define __NR_recv 336
-#define __NR_recvfrom 337
-#define __NR_shutdown 338
-#define __NR_setsockopt 339
-#define __NR_getsockopt 340
-#define __NR_sendmsg 341
-#define __NR_recvmsg 342
-#define __NR_recvmmsg 343
-#define __NR_accept4 344
-#define __NR_name_to_handle_at 345
-#define __NR_open_by_handle_at 346
-#define __NR_clock_adjtime 347
-#define __NR_syncfs 348
-#define __NR_sendmmsg 349
-#define __NR_setns 350
-#define __NR_process_vm_readv 351
-#define __NR_process_vm_writev 352
-#define __NR_finit_module 353
-#define __NR_kcmp 354
-#define __NR_sched_setattr 355
-#define __NR_sched_getattr 356
-#define __NR_renameat2 357
-#define __NR_seccomp 358
-#define __NR_getrandom 359
-#define __NR_memfd_create 360
-#define __NR_bpf 361
-#define __NR_execveat 362
-#define __NR_switch_endian 363
-#define __NR_userfaultfd 364
-#define __NR_membarrier 365
-#define __NR_mlock2 378
-#define __NR_copy_file_range 379
-#define __NR_preadv2 380
-#define __NR_pwritev2 381
-#define __NR_kexec_file_load 382
-#define __NR_statx 383
-#define __NR_pkey_alloc 384
-#define __NR_pkey_free 385
-#define __NR_pkey_mprotect 386
-#define __NR_rseq 387
-#define __NR_io_pgetevents 388
-
-#endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
diff --git a/libc/include/riscv32-linux-musl/asm/auxvec.h b/libc/include/riscv32-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/auxvec.h
rename to libc/include/riscv32-linux-any/asm/auxvec.h
diff --git a/libc/include/riscv32-linux-musl/asm/bitsperlong.h b/libc/include/riscv32-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/bitsperlong.h
rename to libc/include/riscv32-linux-any/asm/bitsperlong.h
diff --git a/libc/include/riscv32-linux-musl/asm/byteorder.h b/libc/include/riscv32-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/byteorder.h
rename to libc/include/riscv32-linux-any/asm/byteorder.h
diff --git a/libc/include/riscv32-linux-musl/asm/elf.h b/libc/include/riscv32-linux-any/asm/elf.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/elf.h
rename to libc/include/riscv32-linux-any/asm/elf.h
diff --git a/libc/include/riscv32-linux-musl/asm/hwcap.h b/libc/include/riscv32-linux-any/asm/hwcap.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/hwcap.h
rename to libc/include/riscv32-linux-any/asm/hwcap.h
diff --git a/libc/include/riscv32-linux-musl/asm/posix_types.h b/libc/include/riscv32-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/posix_types.h
rename to libc/include/riscv32-linux-any/asm/posix_types.h
diff --git a/libc/include/riscv32-linux-musl/asm/ptrace.h b/libc/include/riscv32-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/ptrace.h
rename to libc/include/riscv32-linux-any/asm/ptrace.h
diff --git a/libc/include/riscv32-linux-musl/asm/setup.h b/libc/include/riscv32-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/setup.h
rename to libc/include/riscv32-linux-any/asm/setup.h
diff --git a/libc/include/riscv32-linux-musl/asm/sigcontext.h b/libc/include/riscv32-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/sigcontext.h
rename to libc/include/riscv32-linux-any/asm/sigcontext.h
diff --git a/libc/include/riscv32-linux-musl/asm/siginfo.h b/libc/include/riscv32-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/siginfo.h
rename to libc/include/riscv32-linux-any/asm/siginfo.h
diff --git a/libc/include/riscv32-linux-musl/asm/signal.h b/libc/include/riscv32-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/signal.h
rename to libc/include/riscv32-linux-any/asm/signal.h
diff --git a/libc/include/riscv32-linux-musl/asm/stat.h b/libc/include/riscv32-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/stat.h
rename to libc/include/riscv32-linux-any/asm/stat.h
diff --git a/libc/include/riscv32-linux-musl/asm/ucontext.h b/libc/include/riscv32-linux-any/asm/ucontext.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/ucontext.h
rename to libc/include/riscv32-linux-any/asm/ucontext.h
diff --git a/libc/include/riscv32-linux-musl/asm/unistd.h b/libc/include/riscv32-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/riscv32-linux-musl/asm/unistd.h
rename to libc/include/riscv32-linux-any/asm/unistd.h
diff --git a/libc/include/riscv64-linux-musl/asm/auxvec.h b/libc/include/riscv64-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/auxvec.h
rename to libc/include/riscv64-linux-any/asm/auxvec.h
diff --git a/libc/include/riscv64-linux-musl/asm/bitsperlong.h b/libc/include/riscv64-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/bitsperlong.h
rename to libc/include/riscv64-linux-any/asm/bitsperlong.h
diff --git a/libc/include/riscv64-linux-musl/asm/byteorder.h b/libc/include/riscv64-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/byteorder.h
rename to libc/include/riscv64-linux-any/asm/byteorder.h
diff --git a/libc/include/riscv64-linux-musl/asm/elf.h b/libc/include/riscv64-linux-any/asm/elf.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/elf.h
rename to libc/include/riscv64-linux-any/asm/elf.h
diff --git a/libc/include/riscv64-linux-musl/asm/hwcap.h b/libc/include/riscv64-linux-any/asm/hwcap.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/hwcap.h
rename to libc/include/riscv64-linux-any/asm/hwcap.h
diff --git a/libc/include/riscv64-linux-musl/asm/posix_types.h b/libc/include/riscv64-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/posix_types.h
rename to libc/include/riscv64-linux-any/asm/posix_types.h
diff --git a/libc/include/riscv64-linux-musl/asm/ptrace.h b/libc/include/riscv64-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/ptrace.h
rename to libc/include/riscv64-linux-any/asm/ptrace.h
diff --git a/libc/include/riscv64-linux-musl/asm/setup.h b/libc/include/riscv64-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/setup.h
rename to libc/include/riscv64-linux-any/asm/setup.h
diff --git a/libc/include/riscv64-linux-musl/asm/sigcontext.h b/libc/include/riscv64-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/sigcontext.h
rename to libc/include/riscv64-linux-any/asm/sigcontext.h
diff --git a/libc/include/riscv64-linux-musl/asm/siginfo.h b/libc/include/riscv64-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/siginfo.h
rename to libc/include/riscv64-linux-any/asm/siginfo.h
diff --git a/libc/include/riscv64-linux-musl/asm/signal.h b/libc/include/riscv64-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/signal.h
rename to libc/include/riscv64-linux-any/asm/signal.h
diff --git a/libc/include/riscv64-linux-musl/asm/stat.h b/libc/include/riscv64-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/stat.h
rename to libc/include/riscv64-linux-any/asm/stat.h
diff --git a/libc/include/riscv64-linux-musl/asm/ucontext.h b/libc/include/riscv64-linux-any/asm/ucontext.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/ucontext.h
rename to libc/include/riscv64-linux-any/asm/ucontext.h
diff --git a/libc/include/riscv64-linux-musl/asm/unistd.h b/libc/include/riscv64-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/riscv64-linux-musl/asm/unistd.h
rename to libc/include/riscv64-linux-any/asm/unistd.h
diff --git a/libc/include/riscv64-linux-gnu/asm/unistd.h b/libc/include/riscv64-linux-gnu/asm/unistd.h
deleted file mode 100644
index 1f3bd3ebbb..0000000000
--- a/libc/include/riscv64-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * Copyright (C) 2018 David Abdurachmanov
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-#ifdef __LP64__
-#define __ARCH_WANT_NEW_STAT
-#endif /* __LP64__ */
-
-#include
-
-/*
- * Allows the instruction cache to be flushed from userspace. Despite RISC-V
- * having a direct 'fence.i' instruction available to userspace (which we
- * can't trap!), that's not actually viable when running on Linux because the
- * kernel might schedule a process on another hart. There is no way for
- * userspace to handle this without invoking the kernel (as it doesn't know the
- * thread->hart mappings), so we've defined a RISC-V specific system call to
- * flush the instruction cache.
- *
- * __NR_riscv_flush_icache is defined to flush the instruction cache over an
- * address range, with the flush applying to either all threads or just the
- * caller. We don't currently do anything with the address range, that's just
- * in there for forwards compatibility.
- */
-#ifndef __NR_riscv_flush_icache
-#define __NR_riscv_flush_icache (__NR_arch_specific_syscall + 15)
-#endif
-__SYSCALL(__NR_riscv_flush_icache, sys_riscv_flush_icache)
diff --git a/libc/include/s390x-linux-musl/asm/auxvec.h b/libc/include/s390x-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/auxvec.h
rename to libc/include/s390x-linux-any/asm/auxvec.h
diff --git a/libc/include/s390x-linux-musl/asm/bitsperlong.h b/libc/include/s390x-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/bitsperlong.h
rename to libc/include/s390x-linux-any/asm/bitsperlong.h
diff --git a/libc/include/s390x-linux-musl/asm/bpf_perf_event.h b/libc/include/s390x-linux-any/asm/bpf_perf_event.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/bpf_perf_event.h
rename to libc/include/s390x-linux-any/asm/bpf_perf_event.h
diff --git a/libc/include/s390x-linux-musl/asm/byteorder.h b/libc/include/s390x-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/byteorder.h
rename to libc/include/s390x-linux-any/asm/byteorder.h
diff --git a/libc/include/s390x-linux-musl/asm/chpid.h b/libc/include/s390x-linux-any/asm/chpid.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/chpid.h
rename to libc/include/s390x-linux-any/asm/chpid.h
diff --git a/libc/include/s390x-linux-musl/asm/chsc.h b/libc/include/s390x-linux-any/asm/chsc.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/chsc.h
rename to libc/include/s390x-linux-any/asm/chsc.h
diff --git a/libc/include/s390x-linux-musl/asm/clp.h b/libc/include/s390x-linux-any/asm/clp.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/clp.h
rename to libc/include/s390x-linux-any/asm/clp.h
diff --git a/libc/include/s390x-linux-musl/asm/cmb.h b/libc/include/s390x-linux-any/asm/cmb.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/cmb.h
rename to libc/include/s390x-linux-any/asm/cmb.h
diff --git a/libc/include/s390x-linux-musl/asm/dasd.h b/libc/include/s390x-linux-any/asm/dasd.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/dasd.h
rename to libc/include/s390x-linux-any/asm/dasd.h
diff --git a/libc/include/s390x-linux-musl/asm/debug.h b/libc/include/s390x-linux-any/asm/debug.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/debug.h
rename to libc/include/s390x-linux-any/asm/debug.h
diff --git a/libc/include/s390x-linux-musl/asm/guarded_storage.h b/libc/include/s390x-linux-any/asm/guarded_storage.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/guarded_storage.h
rename to libc/include/s390x-linux-any/asm/guarded_storage.h
diff --git a/libc/include/s390x-linux-musl/asm/hypfs.h b/libc/include/s390x-linux-any/asm/hypfs.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/hypfs.h
rename to libc/include/s390x-linux-any/asm/hypfs.h
diff --git a/libc/include/s390x-linux-musl/asm/ioctls.h b/libc/include/s390x-linux-any/asm/ioctls.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/ioctls.h
rename to libc/include/s390x-linux-any/asm/ioctls.h
diff --git a/libc/include/s390x-linux-musl/asm/ipcbuf.h b/libc/include/s390x-linux-any/asm/ipcbuf.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/ipcbuf.h
rename to libc/include/s390x-linux-any/asm/ipcbuf.h
diff --git a/libc/include/s390x-linux-musl/asm/kvm.h b/libc/include/s390x-linux-any/asm/kvm.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/kvm.h
rename to libc/include/s390x-linux-any/asm/kvm.h
diff --git a/libc/include/s390x-linux-musl/asm/kvm_para.h b/libc/include/s390x-linux-any/asm/kvm_para.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/kvm_para.h
rename to libc/include/s390x-linux-any/asm/kvm_para.h
diff --git a/libc/include/s390x-linux-musl/asm/kvm_perf.h b/libc/include/s390x-linux-any/asm/kvm_perf.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/kvm_perf.h
rename to libc/include/s390x-linux-any/asm/kvm_perf.h
diff --git a/libc/include/s390x-linux-musl/asm/monwriter.h b/libc/include/s390x-linux-any/asm/monwriter.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/monwriter.h
rename to libc/include/s390x-linux-any/asm/monwriter.h
diff --git a/libc/include/s390x-linux-musl/asm/perf_regs.h b/libc/include/s390x-linux-any/asm/perf_regs.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/perf_regs.h
rename to libc/include/s390x-linux-any/asm/perf_regs.h
diff --git a/libc/include/s390x-linux-musl/asm/pkey.h b/libc/include/s390x-linux-any/asm/pkey.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/pkey.h
rename to libc/include/s390x-linux-any/asm/pkey.h
diff --git a/libc/include/s390x-linux-musl/asm/posix_types.h b/libc/include/s390x-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/posix_types.h
rename to libc/include/s390x-linux-any/asm/posix_types.h
diff --git a/libc/include/s390x-linux-musl/asm/ptrace.h b/libc/include/s390x-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/ptrace.h
rename to libc/include/s390x-linux-any/asm/ptrace.h
diff --git a/libc/include/s390x-linux-musl/asm/qeth.h b/libc/include/s390x-linux-any/asm/qeth.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/qeth.h
rename to libc/include/s390x-linux-any/asm/qeth.h
diff --git a/libc/include/s390x-linux-musl/asm/runtime_instr.h b/libc/include/s390x-linux-any/asm/runtime_instr.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/runtime_instr.h
rename to libc/include/s390x-linux-any/asm/runtime_instr.h
diff --git a/libc/include/s390x-linux-musl/asm/schid.h b/libc/include/s390x-linux-any/asm/schid.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/schid.h
rename to libc/include/s390x-linux-any/asm/schid.h
diff --git a/libc/include/s390x-linux-musl/asm/sclp_ctl.h b/libc/include/s390x-linux-any/asm/sclp_ctl.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/sclp_ctl.h
rename to libc/include/s390x-linux-any/asm/sclp_ctl.h
diff --git a/libc/include/s390x-linux-musl/asm/setup.h b/libc/include/s390x-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/setup.h
rename to libc/include/s390x-linux-any/asm/setup.h
diff --git a/libc/include/s390x-linux-musl/asm/sie.h b/libc/include/s390x-linux-any/asm/sie.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/sie.h
rename to libc/include/s390x-linux-any/asm/sie.h
diff --git a/libc/include/s390x-linux-musl/asm/sigcontext.h b/libc/include/s390x-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/sigcontext.h
rename to libc/include/s390x-linux-any/asm/sigcontext.h
diff --git a/libc/include/s390x-linux-musl/asm/siginfo.h b/libc/include/s390x-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/siginfo.h
rename to libc/include/s390x-linux-any/asm/siginfo.h
diff --git a/libc/include/s390x-linux-musl/asm/signal.h b/libc/include/s390x-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/signal.h
rename to libc/include/s390x-linux-any/asm/signal.h
diff --git a/libc/include/s390x-linux-musl/asm/socket.h b/libc/include/s390x-linux-any/asm/socket.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/socket.h
rename to libc/include/s390x-linux-any/asm/socket.h
diff --git a/libc/include/s390x-linux-musl/asm/stat.h b/libc/include/s390x-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/stat.h
rename to libc/include/s390x-linux-any/asm/stat.h
diff --git a/libc/include/s390x-linux-musl/asm/statfs.h b/libc/include/s390x-linux-any/asm/statfs.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/statfs.h
rename to libc/include/s390x-linux-any/asm/statfs.h
diff --git a/libc/include/s390x-linux-musl/asm/sthyi.h b/libc/include/s390x-linux-any/asm/sthyi.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/sthyi.h
rename to libc/include/s390x-linux-any/asm/sthyi.h
diff --git a/libc/include/s390x-linux-musl/asm/tape390.h b/libc/include/s390x-linux-any/asm/tape390.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/tape390.h
rename to libc/include/s390x-linux-any/asm/tape390.h
diff --git a/libc/include/s390x-linux-musl/asm/termios.h b/libc/include/s390x-linux-any/asm/termios.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/termios.h
rename to libc/include/s390x-linux-any/asm/termios.h
diff --git a/libc/include/s390x-linux-musl/asm/types.h b/libc/include/s390x-linux-any/asm/types.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/types.h
rename to libc/include/s390x-linux-any/asm/types.h
diff --git a/libc/include/s390x-linux-musl/asm/ucontext.h b/libc/include/s390x-linux-any/asm/ucontext.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/ucontext.h
rename to libc/include/s390x-linux-any/asm/ucontext.h
diff --git a/libc/include/s390x-linux-musl/asm/unistd.h b/libc/include/s390x-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/unistd.h
rename to libc/include/s390x-linux-any/asm/unistd.h
diff --git a/libc/include/s390x-linux-musl/asm/unistd_32.h b/libc/include/s390x-linux-any/asm/unistd_32.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/unistd_32.h
rename to libc/include/s390x-linux-any/asm/unistd_32.h
diff --git a/libc/include/s390x-linux-musl/asm/unistd_64.h b/libc/include/s390x-linux-any/asm/unistd_64.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/unistd_64.h
rename to libc/include/s390x-linux-any/asm/unistd_64.h
diff --git a/libc/include/s390x-linux-musl/asm/virtio-ccw.h b/libc/include/s390x-linux-any/asm/virtio-ccw.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/virtio-ccw.h
rename to libc/include/s390x-linux-any/asm/virtio-ccw.h
diff --git a/libc/include/s390x-linux-musl/asm/vmcp.h b/libc/include/s390x-linux-any/asm/vmcp.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/vmcp.h
rename to libc/include/s390x-linux-any/asm/vmcp.h
diff --git a/libc/include/s390x-linux-musl/asm/vtoc.h b/libc/include/s390x-linux-any/asm/vtoc.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/vtoc.h
rename to libc/include/s390x-linux-any/asm/vtoc.h
diff --git a/libc/include/s390x-linux-musl/asm/zcrypt.h b/libc/include/s390x-linux-any/asm/zcrypt.h
similarity index 100%
rename from libc/include/s390x-linux-musl/asm/zcrypt.h
rename to libc/include/s390x-linux-any/asm/zcrypt.h
diff --git a/libc/include/s390x-linux-gnu/asm/unistd.h b/libc/include/s390x-linux-gnu/asm/unistd.h
deleted file mode 100644
index 01b5fe8b9d..0000000000
--- a/libc/include/s390x-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * S390 version
- *
- * Derived from "include/asm-i386/unistd.h"
- */
-
-#ifndef _UAPI_ASM_S390_UNISTD_H_
-#define _UAPI_ASM_S390_UNISTD_H_
-
-#ifdef __s390x__
-#include
-#else
-#include
-#endif
-
-#endif /* _UAPI_ASM_S390_UNISTD_H_ */
diff --git a/libc/include/sparc-linux-gnu/asm/unistd.h b/libc/include/sparc-linux-gnu/asm/unistd.h
deleted file mode 100644
index 45b4bf1875..0000000000
--- a/libc/include/sparc-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,453 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * System calls under the Sparc.
- *
- * Don't be scared by the ugly clobbers, it is the only way I can
- * think of right now to force the arguments into fixed registers
- * before the trap into the system call with gcc 'asm' statements.
- *
- * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net)
- *
- * SunOS compatibility based upon preliminary work which is:
- *
- * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
- */
-#ifndef _UAPI_SPARC_UNISTD_H
-#define _UAPI_SPARC_UNISTD_H
-
-#ifndef __32bit_syscall_numbers__
-#ifndef __arch64__
-#define __32bit_syscall_numbers__
-#endif
-#endif
-
-#define __NR_restart_syscall 0 /* Linux Specific */
-#define __NR_exit 1 /* Common */
-#define __NR_fork 2 /* Common */
-#define __NR_read 3 /* Common */
-#define __NR_write 4 /* Common */
-#define __NR_open 5 /* Common */
-#define __NR_close 6 /* Common */
-#define __NR_wait4 7 /* Common */
-#define __NR_creat 8 /* Common */
-#define __NR_link 9 /* Common */
-#define __NR_unlink 10 /* Common */
-#define __NR_execv 11 /* SunOS Specific */
-#define __NR_chdir 12 /* Common */
-#define __NR_chown 13 /* Common */
-#define __NR_mknod 14 /* Common */
-#define __NR_chmod 15 /* Common */
-#define __NR_lchown 16 /* Common */
-#define __NR_brk 17 /* Common */
-#define __NR_perfctr 18 /* Performance counter operations */
-#define __NR_lseek 19 /* Common */
-#define __NR_getpid 20 /* Common */
-#define __NR_capget 21 /* Linux Specific */
-#define __NR_capset 22 /* Linux Specific */
-#define __NR_setuid 23 /* Implemented via setreuid in SunOS */
-#define __NR_getuid 24 /* Common */
-#define __NR_vmsplice 25 /* ENOSYS under SunOS */
-#define __NR_ptrace 26 /* Common */
-#define __NR_alarm 27 /* Implemented via setitimer in SunOS */
-#define __NR_sigaltstack 28 /* Common */
-#define __NR_pause 29 /* Is sigblock(0)->sigpause() in SunOS */
-#define __NR_utime 30 /* Implemented via utimes() under SunOS */
-#ifdef __32bit_syscall_numbers__
-#define __NR_lchown32 31 /* Linux sparc32 specific */
-#define __NR_fchown32 32 /* Linux sparc32 specific */
-#endif
-#define __NR_access 33 /* Common */
-#define __NR_nice 34 /* Implemented via get/setpriority() in SunOS */
-#ifdef __32bit_syscall_numbers__
-#define __NR_chown32 35 /* Linux sparc32 specific */
-#endif
-#define __NR_sync 36 /* Common */
-#define __NR_kill 37 /* Common */
-#define __NR_stat 38 /* Common */
-#define __NR_sendfile 39 /* Linux Specific */
-#define __NR_lstat 40 /* Common */
-#define __NR_dup 41 /* Common */
-#define __NR_pipe 42 /* Common */
-#define __NR_times 43 /* Implemented via getrusage() in SunOS */
-#ifdef __32bit_syscall_numbers__
-#define __NR_getuid32 44 /* Linux sparc32 specific */
-#endif
-#define __NR_umount2 45 /* Linux Specific */
-#define __NR_setgid 46 /* Implemented via setregid() in SunOS */
-#define __NR_getgid 47 /* Common */
-#define __NR_signal 48 /* Implemented via sigvec() in SunOS */
-#define __NR_geteuid 49 /* SunOS calls getuid() */
-#define __NR_getegid 50 /* SunOS calls getgid() */
-#define __NR_acct 51 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_getgid32 53 /* Linux sparc32 specific */
-#else
-#define __NR_memory_ordering 52 /* Linux Specific */
-#endif
-#define __NR_ioctl 54 /* Common */
-#define __NR_reboot 55 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_mmap2 56 /* Linux sparc32 Specific */
-#endif
-#define __NR_symlink 57 /* Common */
-#define __NR_readlink 58 /* Common */
-#define __NR_execve 59 /* Common */
-#define __NR_umask 60 /* Common */
-#define __NR_chroot 61 /* Common */
-#define __NR_fstat 62 /* Common */
-#define __NR_fstat64 63 /* Linux Specific */
-#define __NR_getpagesize 64 /* Common */
-#define __NR_msync 65 /* Common in newer 1.3.x revs... */
-#define __NR_vfork 66 /* Common */
-#define __NR_pread64 67 /* Linux Specific */
-#define __NR_pwrite64 68 /* Linux Specific */
-#ifdef __32bit_syscall_numbers__
-#define __NR_geteuid32 69 /* Linux sparc32, sbrk under SunOS */
-#define __NR_getegid32 70 /* Linux sparc32, sstk under SunOS */
-#endif
-#define __NR_mmap 71 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setreuid32 72 /* Linux sparc32, vadvise under SunOS */
-#endif
-#define __NR_munmap 73 /* Common */
-#define __NR_mprotect 74 /* Common */
-#define __NR_madvise 75 /* Common */
-#define __NR_vhangup 76 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_truncate64 77 /* Linux sparc32 Specific */
-#endif
-#define __NR_mincore 78 /* Common */
-#define __NR_getgroups 79 /* Common */
-#define __NR_setgroups 80 /* Common */
-#define __NR_getpgrp 81 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setgroups32 82 /* Linux sparc32, setpgrp under SunOS */
-#endif
-#define __NR_setitimer 83 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_ftruncate64 84 /* Linux sparc32 Specific */
-#endif
-#define __NR_swapon 85 /* Common */
-#define __NR_getitimer 86 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setuid32 87 /* Linux sparc32, gethostname under SunOS */
-#endif
-#define __NR_sethostname 88 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setgid32 89 /* Linux sparc32, getdtablesize under SunOS */
-#endif
-#define __NR_dup2 90 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setfsuid32 91 /* Linux sparc32, getdopt under SunOS */
-#endif
-#define __NR_fcntl 92 /* Common */
-#define __NR_select 93 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setfsgid32 94 /* Linux sparc32, setdopt under SunOS */
-#endif
-#define __NR_fsync 95 /* Common */
-#define __NR_setpriority 96 /* Common */
-#define __NR_socket 97 /* Common */
-#define __NR_connect 98 /* Common */
-#define __NR_accept 99 /* Common */
-#define __NR_getpriority 100 /* Common */
-#define __NR_rt_sigreturn 101 /* Linux Specific */
-#define __NR_rt_sigaction 102 /* Linux Specific */
-#define __NR_rt_sigprocmask 103 /* Linux Specific */
-#define __NR_rt_sigpending 104 /* Linux Specific */
-#define __NR_rt_sigtimedwait 105 /* Linux Specific */
-#define __NR_rt_sigqueueinfo 106 /* Linux Specific */
-#define __NR_rt_sigsuspend 107 /* Linux Specific */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setresuid32 108 /* Linux Specific, sigvec under SunOS */
-#define __NR_getresuid32 109 /* Linux Specific, sigblock under SunOS */
-#define __NR_setresgid32 110 /* Linux Specific, sigsetmask under SunOS */
-#define __NR_getresgid32 111 /* Linux Specific, sigpause under SunOS */
-#define __NR_setregid32 112 /* Linux sparc32, sigstack under SunOS */
-#else
-#define __NR_setresuid 108 /* Linux Specific, sigvec under SunOS */
-#define __NR_getresuid 109 /* Linux Specific, sigblock under SunOS */
-#define __NR_setresgid 110 /* Linux Specific, sigsetmask under SunOS */
-#define __NR_getresgid 111 /* Linux Specific, sigpause under SunOS */
-#endif
-#define __NR_recvmsg 113 /* Common */
-#define __NR_sendmsg 114 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_getgroups32 115 /* Linux sparc32, vtrace under SunOS */
-#endif
-#define __NR_gettimeofday 116 /* Common */
-#define __NR_getrusage 117 /* Common */
-#define __NR_getsockopt 118 /* Common */
-#define __NR_getcwd 119 /* Linux Specific */
-#define __NR_readv 120 /* Common */
-#define __NR_writev 121 /* Common */
-#define __NR_settimeofday 122 /* Common */
-#define __NR_fchown 123 /* Common */
-#define __NR_fchmod 124 /* Common */
-#define __NR_recvfrom 125 /* Common */
-#define __NR_setreuid 126 /* Common */
-#define __NR_setregid 127 /* Common */
-#define __NR_rename 128 /* Common */
-#define __NR_truncate 129 /* Common */
-#define __NR_ftruncate 130 /* Common */
-#define __NR_flock 131 /* Common */
-#define __NR_lstat64 132 /* Linux Specific */
-#define __NR_sendto 133 /* Common */
-#define __NR_shutdown 134 /* Common */
-#define __NR_socketpair 135 /* Common */
-#define __NR_mkdir 136 /* Common */
-#define __NR_rmdir 137 /* Common */
-#define __NR_utimes 138 /* SunOS Specific */
-#define __NR_stat64 139 /* Linux Specific */
-#define __NR_sendfile64 140 /* adjtime under SunOS */
-#define __NR_getpeername 141 /* Common */
-#define __NR_futex 142 /* gethostid under SunOS */
-#define __NR_gettid 143 /* ENOSYS under SunOS */
-#define __NR_getrlimit 144 /* Common */
-#define __NR_setrlimit 145 /* Common */
-#define __NR_pivot_root 146 /* Linux Specific, killpg under SunOS */
-#define __NR_prctl 147 /* ENOSYS under SunOS */
-#define __NR_pciconfig_read 148 /* ENOSYS under SunOS */
-#define __NR_pciconfig_write 149 /* ENOSYS under SunOS */
-#define __NR_getsockname 150 /* Common */
-#define __NR_inotify_init 151 /* Linux specific */
-#define __NR_inotify_add_watch 152 /* Linux specific */
-#define __NR_poll 153 /* Common */
-#define __NR_getdents64 154 /* Linux specific */
-#ifdef __32bit_syscall_numbers__
-#define __NR_fcntl64 155 /* Linux sparc32 Specific */
-#endif
-#define __NR_inotify_rm_watch 156 /* Linux specific */
-#define __NR_statfs 157 /* Common */
-#define __NR_fstatfs 158 /* Common */
-#define __NR_umount 159 /* Common */
-#define __NR_sched_set_affinity 160 /* Linux specific, async_daemon under SunOS */
-#define __NR_sched_get_affinity 161 /* Linux specific, getfh under SunOS */
-#define __NR_getdomainname 162 /* SunOS Specific */
-#define __NR_setdomainname 163 /* Common */
-#ifndef __32bit_syscall_numbers__
-#define __NR_utrap_install 164 /* SYSV ABI/v9 required */
-#endif
-#define __NR_quotactl 165 /* Common */
-#define __NR_set_tid_address 166 /* Linux specific, exportfs under SunOS */
-#define __NR_mount 167 /* Common */
-#define __NR_ustat 168 /* Common */
-#define __NR_setxattr 169 /* SunOS: semsys */
-#define __NR_lsetxattr 170 /* SunOS: msgsys */
-#define __NR_fsetxattr 171 /* SunOS: shmsys */
-#define __NR_getxattr 172 /* SunOS: auditsys */
-#define __NR_lgetxattr 173 /* SunOS: rfssys */
-#define __NR_getdents 174 /* Common */
-#define __NR_setsid 175 /* Common */
-#define __NR_fchdir 176 /* Common */
-#define __NR_fgetxattr 177 /* SunOS: fchroot */
-#define __NR_listxattr 178 /* SunOS: vpixsys */
-#define __NR_llistxattr 179 /* SunOS: aioread */
-#define __NR_flistxattr 180 /* SunOS: aiowrite */
-#define __NR_removexattr 181 /* SunOS: aiowait */
-#define __NR_lremovexattr 182 /* SunOS: aiocancel */
-#define __NR_sigpending 183 /* Common */
-#define __NR_query_module 184 /* Linux Specific */
-#define __NR_setpgid 185 /* Common */
-#define __NR_fremovexattr 186 /* SunOS: pathconf */
-#define __NR_tkill 187 /* SunOS: fpathconf */
-#define __NR_exit_group 188 /* Linux specific, sysconf undef SunOS */
-#define __NR_uname 189 /* Linux Specific */
-#define __NR_init_module 190 /* Linux Specific */
-#define __NR_personality 191 /* Linux Specific */
-#define __NR_remap_file_pages 192 /* Linux Specific */
-#define __NR_epoll_create 193 /* Linux Specific */
-#define __NR_epoll_ctl 194 /* Linux Specific */
-#define __NR_epoll_wait 195 /* Linux Specific */
-#define __NR_ioprio_set 196 /* Linux Specific */
-#define __NR_getppid 197 /* Linux Specific */
-#define __NR_sigaction 198 /* Linux Specific */
-#define __NR_sgetmask 199 /* Linux Specific */
-#define __NR_ssetmask 200 /* Linux Specific */
-#define __NR_sigsuspend 201 /* Linux Specific */
-#define __NR_oldlstat 202 /* Linux Specific */
-#define __NR_uselib 203 /* Linux Specific */
-#define __NR_readdir 204 /* Linux Specific */
-#define __NR_readahead 205 /* Linux Specific */
-#define __NR_socketcall 206 /* Linux Specific */
-#define __NR_syslog 207 /* Linux Specific */
-#define __NR_lookup_dcookie 208 /* Linux Specific */
-#define __NR_fadvise64 209 /* Linux Specific */
-#define __NR_fadvise64_64 210 /* Linux Specific */
-#define __NR_tgkill 211 /* Linux Specific */
-#define __NR_waitpid 212 /* Linux Specific */
-#define __NR_swapoff 213 /* Linux Specific */
-#define __NR_sysinfo 214 /* Linux Specific */
-#define __NR_ipc 215 /* Linux Specific */
-#define __NR_sigreturn 216 /* Linux Specific */
-#define __NR_clone 217 /* Linux Specific */
-#define __NR_ioprio_get 218 /* Linux Specific */
-#define __NR_adjtimex 219 /* Linux Specific */
-#define __NR_sigprocmask 220 /* Linux Specific */
-#define __NR_create_module 221 /* Linux Specific */
-#define __NR_delete_module 222 /* Linux Specific */
-#define __NR_get_kernel_syms 223 /* Linux Specific */
-#define __NR_getpgid 224 /* Linux Specific */
-#define __NR_bdflush 225 /* Linux Specific */
-#define __NR_sysfs 226 /* Linux Specific */
-#define __NR_afs_syscall 227 /* Linux Specific */
-#define __NR_setfsuid 228 /* Linux Specific */
-#define __NR_setfsgid 229 /* Linux Specific */
-#define __NR__newselect 230 /* Linux Specific */
-#ifdef __32bit_syscall_numbers__
-#define __NR_time 231 /* Linux Specific */
-#else
-#endif
-#define __NR_splice 232 /* Linux Specific */
-#define __NR_stime 233 /* Linux Specific */
-#define __NR_statfs64 234 /* Linux Specific */
-#define __NR_fstatfs64 235 /* Linux Specific */
-#define __NR__llseek 236 /* Linux Specific */
-#define __NR_mlock 237
-#define __NR_munlock 238
-#define __NR_mlockall 239
-#define __NR_munlockall 240
-#define __NR_sched_setparam 241
-#define __NR_sched_getparam 242
-#define __NR_sched_setscheduler 243
-#define __NR_sched_getscheduler 244
-#define __NR_sched_yield 245
-#define __NR_sched_get_priority_max 246
-#define __NR_sched_get_priority_min 247
-#define __NR_sched_rr_get_interval 248
-#define __NR_nanosleep 249
-#define __NR_mremap 250
-#define __NR__sysctl 251
-#define __NR_getsid 252
-#define __NR_fdatasync 253
-#define __NR_nfsservctl 254
-#define __NR_sync_file_range 255
-#define __NR_clock_settime 256
-#define __NR_clock_gettime 257
-#define __NR_clock_getres 258
-#define __NR_clock_nanosleep 259
-#define __NR_sched_getaffinity 260
-#define __NR_sched_setaffinity 261
-#define __NR_timer_settime 262
-#define __NR_timer_gettime 263
-#define __NR_timer_getoverrun 264
-#define __NR_timer_delete 265
-#define __NR_timer_create 266
-/* #define __NR_vserver 267 Reserved for VSERVER */
-#define __NR_io_setup 268
-#define __NR_io_destroy 269
-#define __NR_io_submit 270
-#define __NR_io_cancel 271
-#define __NR_io_getevents 272
-#define __NR_mq_open 273
-#define __NR_mq_unlink 274
-#define __NR_mq_timedsend 275
-#define __NR_mq_timedreceive 276
-#define __NR_mq_notify 277
-#define __NR_mq_getsetattr 278
-#define __NR_waitid 279
-#define __NR_tee 280
-#define __NR_add_key 281
-#define __NR_request_key 282
-#define __NR_keyctl 283
-#define __NR_openat 284
-#define __NR_mkdirat 285
-#define __NR_mknodat 286
-#define __NR_fchownat 287
-#define __NR_futimesat 288
-#define __NR_fstatat64 289
-#define __NR_unlinkat 290
-#define __NR_renameat 291
-#define __NR_linkat 292
-#define __NR_symlinkat 293
-#define __NR_readlinkat 294
-#define __NR_fchmodat 295
-#define __NR_faccessat 296
-#define __NR_pselect6 297
-#define __NR_ppoll 298
-#define __NR_unshare 299
-#define __NR_set_robust_list 300
-#define __NR_get_robust_list 301
-#define __NR_migrate_pages 302
-#define __NR_mbind 303
-#define __NR_get_mempolicy 304
-#define __NR_set_mempolicy 305
-#define __NR_kexec_load 306
-#define __NR_move_pages 307
-#define __NR_getcpu 308
-#define __NR_epoll_pwait 309
-#define __NR_utimensat 310
-#define __NR_signalfd 311
-#define __NR_timerfd_create 312
-#define __NR_eventfd 313
-#define __NR_fallocate 314
-#define __NR_timerfd_settime 315
-#define __NR_timerfd_gettime 316
-#define __NR_signalfd4 317
-#define __NR_eventfd2 318
-#define __NR_epoll_create1 319
-#define __NR_dup3 320
-#define __NR_pipe2 321
-#define __NR_inotify_init1 322
-#define __NR_accept4 323
-#define __NR_preadv 324
-#define __NR_pwritev 325
-#define __NR_rt_tgsigqueueinfo 326
-#define __NR_perf_event_open 327
-#define __NR_recvmmsg 328
-#define __NR_fanotify_init 329
-#define __NR_fanotify_mark 330
-#define __NR_prlimit64 331
-#define __NR_name_to_handle_at 332
-#define __NR_open_by_handle_at 333
-#define __NR_clock_adjtime 334
-#define __NR_syncfs 335
-#define __NR_sendmmsg 336
-#define __NR_setns 337
-#define __NR_process_vm_readv 338
-#define __NR_process_vm_writev 339
-#define __NR_kern_features 340
-#define __NR_kcmp 341
-#define __NR_finit_module 342
-#define __NR_sched_setattr 343
-#define __NR_sched_getattr 344
-#define __NR_renameat2 345
-#define __NR_seccomp 346
-#define __NR_getrandom 347
-#define __NR_memfd_create 348
-#define __NR_bpf 349
-#define __NR_execveat 350
-#define __NR_membarrier 351
-#define __NR_userfaultfd 352
-#define __NR_bind 353
-#define __NR_listen 354
-#define __NR_setsockopt 355
-#define __NR_mlock2 356
-#define __NR_copy_file_range 357
-#define __NR_preadv2 358
-#define __NR_pwritev2 359
-#define __NR_statx 360
-#define __NR_io_pgetevents 361
-
-#define NR_syscalls 362
-
-/* Bitmask values returned from kern_features system call. */
-#define KERN_FEATURE_MIXED_MODE_STACK 0x00000001
-
-#ifdef __32bit_syscall_numbers__
-/* Sparc 32-bit only has the "setresuid32", "getresuid32" variants,
- * it never had the plain ones and there is no value to adding those
- * old versions into the syscall table.
- */
-#define __IGNORE_setresuid
-#define __IGNORE_getresuid
-#define __IGNORE_setresgid
-#define __IGNORE_getresgid
-#endif
-
-/* Sparc doesn't have protection keys. */
-#define __IGNORE_pkey_mprotect
-#define __IGNORE_pkey_alloc
-#define __IGNORE_pkey_free
-
-#endif /* _UAPI_SPARC_UNISTD_H */
diff --git a/libc/include/sparcv9-linux-gnu/asm/unistd.h b/libc/include/sparcv9-linux-gnu/asm/unistd.h
deleted file mode 100644
index 45b4bf1875..0000000000
--- a/libc/include/sparcv9-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,453 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * System calls under the Sparc.
- *
- * Don't be scared by the ugly clobbers, it is the only way I can
- * think of right now to force the arguments into fixed registers
- * before the trap into the system call with gcc 'asm' statements.
- *
- * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net)
- *
- * SunOS compatibility based upon preliminary work which is:
- *
- * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
- */
-#ifndef _UAPI_SPARC_UNISTD_H
-#define _UAPI_SPARC_UNISTD_H
-
-#ifndef __32bit_syscall_numbers__
-#ifndef __arch64__
-#define __32bit_syscall_numbers__
-#endif
-#endif
-
-#define __NR_restart_syscall 0 /* Linux Specific */
-#define __NR_exit 1 /* Common */
-#define __NR_fork 2 /* Common */
-#define __NR_read 3 /* Common */
-#define __NR_write 4 /* Common */
-#define __NR_open 5 /* Common */
-#define __NR_close 6 /* Common */
-#define __NR_wait4 7 /* Common */
-#define __NR_creat 8 /* Common */
-#define __NR_link 9 /* Common */
-#define __NR_unlink 10 /* Common */
-#define __NR_execv 11 /* SunOS Specific */
-#define __NR_chdir 12 /* Common */
-#define __NR_chown 13 /* Common */
-#define __NR_mknod 14 /* Common */
-#define __NR_chmod 15 /* Common */
-#define __NR_lchown 16 /* Common */
-#define __NR_brk 17 /* Common */
-#define __NR_perfctr 18 /* Performance counter operations */
-#define __NR_lseek 19 /* Common */
-#define __NR_getpid 20 /* Common */
-#define __NR_capget 21 /* Linux Specific */
-#define __NR_capset 22 /* Linux Specific */
-#define __NR_setuid 23 /* Implemented via setreuid in SunOS */
-#define __NR_getuid 24 /* Common */
-#define __NR_vmsplice 25 /* ENOSYS under SunOS */
-#define __NR_ptrace 26 /* Common */
-#define __NR_alarm 27 /* Implemented via setitimer in SunOS */
-#define __NR_sigaltstack 28 /* Common */
-#define __NR_pause 29 /* Is sigblock(0)->sigpause() in SunOS */
-#define __NR_utime 30 /* Implemented via utimes() under SunOS */
-#ifdef __32bit_syscall_numbers__
-#define __NR_lchown32 31 /* Linux sparc32 specific */
-#define __NR_fchown32 32 /* Linux sparc32 specific */
-#endif
-#define __NR_access 33 /* Common */
-#define __NR_nice 34 /* Implemented via get/setpriority() in SunOS */
-#ifdef __32bit_syscall_numbers__
-#define __NR_chown32 35 /* Linux sparc32 specific */
-#endif
-#define __NR_sync 36 /* Common */
-#define __NR_kill 37 /* Common */
-#define __NR_stat 38 /* Common */
-#define __NR_sendfile 39 /* Linux Specific */
-#define __NR_lstat 40 /* Common */
-#define __NR_dup 41 /* Common */
-#define __NR_pipe 42 /* Common */
-#define __NR_times 43 /* Implemented via getrusage() in SunOS */
-#ifdef __32bit_syscall_numbers__
-#define __NR_getuid32 44 /* Linux sparc32 specific */
-#endif
-#define __NR_umount2 45 /* Linux Specific */
-#define __NR_setgid 46 /* Implemented via setregid() in SunOS */
-#define __NR_getgid 47 /* Common */
-#define __NR_signal 48 /* Implemented via sigvec() in SunOS */
-#define __NR_geteuid 49 /* SunOS calls getuid() */
-#define __NR_getegid 50 /* SunOS calls getgid() */
-#define __NR_acct 51 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_getgid32 53 /* Linux sparc32 specific */
-#else
-#define __NR_memory_ordering 52 /* Linux Specific */
-#endif
-#define __NR_ioctl 54 /* Common */
-#define __NR_reboot 55 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_mmap2 56 /* Linux sparc32 Specific */
-#endif
-#define __NR_symlink 57 /* Common */
-#define __NR_readlink 58 /* Common */
-#define __NR_execve 59 /* Common */
-#define __NR_umask 60 /* Common */
-#define __NR_chroot 61 /* Common */
-#define __NR_fstat 62 /* Common */
-#define __NR_fstat64 63 /* Linux Specific */
-#define __NR_getpagesize 64 /* Common */
-#define __NR_msync 65 /* Common in newer 1.3.x revs... */
-#define __NR_vfork 66 /* Common */
-#define __NR_pread64 67 /* Linux Specific */
-#define __NR_pwrite64 68 /* Linux Specific */
-#ifdef __32bit_syscall_numbers__
-#define __NR_geteuid32 69 /* Linux sparc32, sbrk under SunOS */
-#define __NR_getegid32 70 /* Linux sparc32, sstk under SunOS */
-#endif
-#define __NR_mmap 71 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setreuid32 72 /* Linux sparc32, vadvise under SunOS */
-#endif
-#define __NR_munmap 73 /* Common */
-#define __NR_mprotect 74 /* Common */
-#define __NR_madvise 75 /* Common */
-#define __NR_vhangup 76 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_truncate64 77 /* Linux sparc32 Specific */
-#endif
-#define __NR_mincore 78 /* Common */
-#define __NR_getgroups 79 /* Common */
-#define __NR_setgroups 80 /* Common */
-#define __NR_getpgrp 81 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setgroups32 82 /* Linux sparc32, setpgrp under SunOS */
-#endif
-#define __NR_setitimer 83 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_ftruncate64 84 /* Linux sparc32 Specific */
-#endif
-#define __NR_swapon 85 /* Common */
-#define __NR_getitimer 86 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setuid32 87 /* Linux sparc32, gethostname under SunOS */
-#endif
-#define __NR_sethostname 88 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setgid32 89 /* Linux sparc32, getdtablesize under SunOS */
-#endif
-#define __NR_dup2 90 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setfsuid32 91 /* Linux sparc32, getdopt under SunOS */
-#endif
-#define __NR_fcntl 92 /* Common */
-#define __NR_select 93 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setfsgid32 94 /* Linux sparc32, setdopt under SunOS */
-#endif
-#define __NR_fsync 95 /* Common */
-#define __NR_setpriority 96 /* Common */
-#define __NR_socket 97 /* Common */
-#define __NR_connect 98 /* Common */
-#define __NR_accept 99 /* Common */
-#define __NR_getpriority 100 /* Common */
-#define __NR_rt_sigreturn 101 /* Linux Specific */
-#define __NR_rt_sigaction 102 /* Linux Specific */
-#define __NR_rt_sigprocmask 103 /* Linux Specific */
-#define __NR_rt_sigpending 104 /* Linux Specific */
-#define __NR_rt_sigtimedwait 105 /* Linux Specific */
-#define __NR_rt_sigqueueinfo 106 /* Linux Specific */
-#define __NR_rt_sigsuspend 107 /* Linux Specific */
-#ifdef __32bit_syscall_numbers__
-#define __NR_setresuid32 108 /* Linux Specific, sigvec under SunOS */
-#define __NR_getresuid32 109 /* Linux Specific, sigblock under SunOS */
-#define __NR_setresgid32 110 /* Linux Specific, sigsetmask under SunOS */
-#define __NR_getresgid32 111 /* Linux Specific, sigpause under SunOS */
-#define __NR_setregid32 112 /* Linux sparc32, sigstack under SunOS */
-#else
-#define __NR_setresuid 108 /* Linux Specific, sigvec under SunOS */
-#define __NR_getresuid 109 /* Linux Specific, sigblock under SunOS */
-#define __NR_setresgid 110 /* Linux Specific, sigsetmask under SunOS */
-#define __NR_getresgid 111 /* Linux Specific, sigpause under SunOS */
-#endif
-#define __NR_recvmsg 113 /* Common */
-#define __NR_sendmsg 114 /* Common */
-#ifdef __32bit_syscall_numbers__
-#define __NR_getgroups32 115 /* Linux sparc32, vtrace under SunOS */
-#endif
-#define __NR_gettimeofday 116 /* Common */
-#define __NR_getrusage 117 /* Common */
-#define __NR_getsockopt 118 /* Common */
-#define __NR_getcwd 119 /* Linux Specific */
-#define __NR_readv 120 /* Common */
-#define __NR_writev 121 /* Common */
-#define __NR_settimeofday 122 /* Common */
-#define __NR_fchown 123 /* Common */
-#define __NR_fchmod 124 /* Common */
-#define __NR_recvfrom 125 /* Common */
-#define __NR_setreuid 126 /* Common */
-#define __NR_setregid 127 /* Common */
-#define __NR_rename 128 /* Common */
-#define __NR_truncate 129 /* Common */
-#define __NR_ftruncate 130 /* Common */
-#define __NR_flock 131 /* Common */
-#define __NR_lstat64 132 /* Linux Specific */
-#define __NR_sendto 133 /* Common */
-#define __NR_shutdown 134 /* Common */
-#define __NR_socketpair 135 /* Common */
-#define __NR_mkdir 136 /* Common */
-#define __NR_rmdir 137 /* Common */
-#define __NR_utimes 138 /* SunOS Specific */
-#define __NR_stat64 139 /* Linux Specific */
-#define __NR_sendfile64 140 /* adjtime under SunOS */
-#define __NR_getpeername 141 /* Common */
-#define __NR_futex 142 /* gethostid under SunOS */
-#define __NR_gettid 143 /* ENOSYS under SunOS */
-#define __NR_getrlimit 144 /* Common */
-#define __NR_setrlimit 145 /* Common */
-#define __NR_pivot_root 146 /* Linux Specific, killpg under SunOS */
-#define __NR_prctl 147 /* ENOSYS under SunOS */
-#define __NR_pciconfig_read 148 /* ENOSYS under SunOS */
-#define __NR_pciconfig_write 149 /* ENOSYS under SunOS */
-#define __NR_getsockname 150 /* Common */
-#define __NR_inotify_init 151 /* Linux specific */
-#define __NR_inotify_add_watch 152 /* Linux specific */
-#define __NR_poll 153 /* Common */
-#define __NR_getdents64 154 /* Linux specific */
-#ifdef __32bit_syscall_numbers__
-#define __NR_fcntl64 155 /* Linux sparc32 Specific */
-#endif
-#define __NR_inotify_rm_watch 156 /* Linux specific */
-#define __NR_statfs 157 /* Common */
-#define __NR_fstatfs 158 /* Common */
-#define __NR_umount 159 /* Common */
-#define __NR_sched_set_affinity 160 /* Linux specific, async_daemon under SunOS */
-#define __NR_sched_get_affinity 161 /* Linux specific, getfh under SunOS */
-#define __NR_getdomainname 162 /* SunOS Specific */
-#define __NR_setdomainname 163 /* Common */
-#ifndef __32bit_syscall_numbers__
-#define __NR_utrap_install 164 /* SYSV ABI/v9 required */
-#endif
-#define __NR_quotactl 165 /* Common */
-#define __NR_set_tid_address 166 /* Linux specific, exportfs under SunOS */
-#define __NR_mount 167 /* Common */
-#define __NR_ustat 168 /* Common */
-#define __NR_setxattr 169 /* SunOS: semsys */
-#define __NR_lsetxattr 170 /* SunOS: msgsys */
-#define __NR_fsetxattr 171 /* SunOS: shmsys */
-#define __NR_getxattr 172 /* SunOS: auditsys */
-#define __NR_lgetxattr 173 /* SunOS: rfssys */
-#define __NR_getdents 174 /* Common */
-#define __NR_setsid 175 /* Common */
-#define __NR_fchdir 176 /* Common */
-#define __NR_fgetxattr 177 /* SunOS: fchroot */
-#define __NR_listxattr 178 /* SunOS: vpixsys */
-#define __NR_llistxattr 179 /* SunOS: aioread */
-#define __NR_flistxattr 180 /* SunOS: aiowrite */
-#define __NR_removexattr 181 /* SunOS: aiowait */
-#define __NR_lremovexattr 182 /* SunOS: aiocancel */
-#define __NR_sigpending 183 /* Common */
-#define __NR_query_module 184 /* Linux Specific */
-#define __NR_setpgid 185 /* Common */
-#define __NR_fremovexattr 186 /* SunOS: pathconf */
-#define __NR_tkill 187 /* SunOS: fpathconf */
-#define __NR_exit_group 188 /* Linux specific, sysconf undef SunOS */
-#define __NR_uname 189 /* Linux Specific */
-#define __NR_init_module 190 /* Linux Specific */
-#define __NR_personality 191 /* Linux Specific */
-#define __NR_remap_file_pages 192 /* Linux Specific */
-#define __NR_epoll_create 193 /* Linux Specific */
-#define __NR_epoll_ctl 194 /* Linux Specific */
-#define __NR_epoll_wait 195 /* Linux Specific */
-#define __NR_ioprio_set 196 /* Linux Specific */
-#define __NR_getppid 197 /* Linux Specific */
-#define __NR_sigaction 198 /* Linux Specific */
-#define __NR_sgetmask 199 /* Linux Specific */
-#define __NR_ssetmask 200 /* Linux Specific */
-#define __NR_sigsuspend 201 /* Linux Specific */
-#define __NR_oldlstat 202 /* Linux Specific */
-#define __NR_uselib 203 /* Linux Specific */
-#define __NR_readdir 204 /* Linux Specific */
-#define __NR_readahead 205 /* Linux Specific */
-#define __NR_socketcall 206 /* Linux Specific */
-#define __NR_syslog 207 /* Linux Specific */
-#define __NR_lookup_dcookie 208 /* Linux Specific */
-#define __NR_fadvise64 209 /* Linux Specific */
-#define __NR_fadvise64_64 210 /* Linux Specific */
-#define __NR_tgkill 211 /* Linux Specific */
-#define __NR_waitpid 212 /* Linux Specific */
-#define __NR_swapoff 213 /* Linux Specific */
-#define __NR_sysinfo 214 /* Linux Specific */
-#define __NR_ipc 215 /* Linux Specific */
-#define __NR_sigreturn 216 /* Linux Specific */
-#define __NR_clone 217 /* Linux Specific */
-#define __NR_ioprio_get 218 /* Linux Specific */
-#define __NR_adjtimex 219 /* Linux Specific */
-#define __NR_sigprocmask 220 /* Linux Specific */
-#define __NR_create_module 221 /* Linux Specific */
-#define __NR_delete_module 222 /* Linux Specific */
-#define __NR_get_kernel_syms 223 /* Linux Specific */
-#define __NR_getpgid 224 /* Linux Specific */
-#define __NR_bdflush 225 /* Linux Specific */
-#define __NR_sysfs 226 /* Linux Specific */
-#define __NR_afs_syscall 227 /* Linux Specific */
-#define __NR_setfsuid 228 /* Linux Specific */
-#define __NR_setfsgid 229 /* Linux Specific */
-#define __NR__newselect 230 /* Linux Specific */
-#ifdef __32bit_syscall_numbers__
-#define __NR_time 231 /* Linux Specific */
-#else
-#endif
-#define __NR_splice 232 /* Linux Specific */
-#define __NR_stime 233 /* Linux Specific */
-#define __NR_statfs64 234 /* Linux Specific */
-#define __NR_fstatfs64 235 /* Linux Specific */
-#define __NR__llseek 236 /* Linux Specific */
-#define __NR_mlock 237
-#define __NR_munlock 238
-#define __NR_mlockall 239
-#define __NR_munlockall 240
-#define __NR_sched_setparam 241
-#define __NR_sched_getparam 242
-#define __NR_sched_setscheduler 243
-#define __NR_sched_getscheduler 244
-#define __NR_sched_yield 245
-#define __NR_sched_get_priority_max 246
-#define __NR_sched_get_priority_min 247
-#define __NR_sched_rr_get_interval 248
-#define __NR_nanosleep 249
-#define __NR_mremap 250
-#define __NR__sysctl 251
-#define __NR_getsid 252
-#define __NR_fdatasync 253
-#define __NR_nfsservctl 254
-#define __NR_sync_file_range 255
-#define __NR_clock_settime 256
-#define __NR_clock_gettime 257
-#define __NR_clock_getres 258
-#define __NR_clock_nanosleep 259
-#define __NR_sched_getaffinity 260
-#define __NR_sched_setaffinity 261
-#define __NR_timer_settime 262
-#define __NR_timer_gettime 263
-#define __NR_timer_getoverrun 264
-#define __NR_timer_delete 265
-#define __NR_timer_create 266
-/* #define __NR_vserver 267 Reserved for VSERVER */
-#define __NR_io_setup 268
-#define __NR_io_destroy 269
-#define __NR_io_submit 270
-#define __NR_io_cancel 271
-#define __NR_io_getevents 272
-#define __NR_mq_open 273
-#define __NR_mq_unlink 274
-#define __NR_mq_timedsend 275
-#define __NR_mq_timedreceive 276
-#define __NR_mq_notify 277
-#define __NR_mq_getsetattr 278
-#define __NR_waitid 279
-#define __NR_tee 280
-#define __NR_add_key 281
-#define __NR_request_key 282
-#define __NR_keyctl 283
-#define __NR_openat 284
-#define __NR_mkdirat 285
-#define __NR_mknodat 286
-#define __NR_fchownat 287
-#define __NR_futimesat 288
-#define __NR_fstatat64 289
-#define __NR_unlinkat 290
-#define __NR_renameat 291
-#define __NR_linkat 292
-#define __NR_symlinkat 293
-#define __NR_readlinkat 294
-#define __NR_fchmodat 295
-#define __NR_faccessat 296
-#define __NR_pselect6 297
-#define __NR_ppoll 298
-#define __NR_unshare 299
-#define __NR_set_robust_list 300
-#define __NR_get_robust_list 301
-#define __NR_migrate_pages 302
-#define __NR_mbind 303
-#define __NR_get_mempolicy 304
-#define __NR_set_mempolicy 305
-#define __NR_kexec_load 306
-#define __NR_move_pages 307
-#define __NR_getcpu 308
-#define __NR_epoll_pwait 309
-#define __NR_utimensat 310
-#define __NR_signalfd 311
-#define __NR_timerfd_create 312
-#define __NR_eventfd 313
-#define __NR_fallocate 314
-#define __NR_timerfd_settime 315
-#define __NR_timerfd_gettime 316
-#define __NR_signalfd4 317
-#define __NR_eventfd2 318
-#define __NR_epoll_create1 319
-#define __NR_dup3 320
-#define __NR_pipe2 321
-#define __NR_inotify_init1 322
-#define __NR_accept4 323
-#define __NR_preadv 324
-#define __NR_pwritev 325
-#define __NR_rt_tgsigqueueinfo 326
-#define __NR_perf_event_open 327
-#define __NR_recvmmsg 328
-#define __NR_fanotify_init 329
-#define __NR_fanotify_mark 330
-#define __NR_prlimit64 331
-#define __NR_name_to_handle_at 332
-#define __NR_open_by_handle_at 333
-#define __NR_clock_adjtime 334
-#define __NR_syncfs 335
-#define __NR_sendmmsg 336
-#define __NR_setns 337
-#define __NR_process_vm_readv 338
-#define __NR_process_vm_writev 339
-#define __NR_kern_features 340
-#define __NR_kcmp 341
-#define __NR_finit_module 342
-#define __NR_sched_setattr 343
-#define __NR_sched_getattr 344
-#define __NR_renameat2 345
-#define __NR_seccomp 346
-#define __NR_getrandom 347
-#define __NR_memfd_create 348
-#define __NR_bpf 349
-#define __NR_execveat 350
-#define __NR_membarrier 351
-#define __NR_userfaultfd 352
-#define __NR_bind 353
-#define __NR_listen 354
-#define __NR_setsockopt 355
-#define __NR_mlock2 356
-#define __NR_copy_file_range 357
-#define __NR_preadv2 358
-#define __NR_pwritev2 359
-#define __NR_statx 360
-#define __NR_io_pgetevents 361
-
-#define NR_syscalls 362
-
-/* Bitmask values returned from kern_features system call. */
-#define KERN_FEATURE_MIXED_MODE_STACK 0x00000001
-
-#ifdef __32bit_syscall_numbers__
-/* Sparc 32-bit only has the "setresuid32", "getresuid32" variants,
- * it never had the plain ones and there is no value to adding those
- * old versions into the syscall table.
- */
-#define __IGNORE_setresuid
-#define __IGNORE_getresuid
-#define __IGNORE_setresgid
-#define __IGNORE_getresgid
-#endif
-
-/* Sparc doesn't have protection keys. */
-#define __IGNORE_pkey_mprotect
-#define __IGNORE_pkey_alloc
-#define __IGNORE_pkey_free
-
-#endif /* _UAPI_SPARC_UNISTD_H */
diff --git a/libc/include/x86_64-linux-musl/asm/auxvec.h b/libc/include/x86_64-linux-any/asm/auxvec.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/auxvec.h
rename to libc/include/x86_64-linux-any/asm/auxvec.h
diff --git a/libc/include/x86_64-linux-musl/asm/bitsperlong.h b/libc/include/x86_64-linux-any/asm/bitsperlong.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/bitsperlong.h
rename to libc/include/x86_64-linux-any/asm/bitsperlong.h
diff --git a/libc/include/x86_64-linux-musl/asm/byteorder.h b/libc/include/x86_64-linux-any/asm/byteorder.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/byteorder.h
rename to libc/include/x86_64-linux-any/asm/byteorder.h
diff --git a/libc/include/x86_64-linux-musl/asm/kvm.h b/libc/include/x86_64-linux-any/asm/kvm.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/kvm.h
rename to libc/include/x86_64-linux-any/asm/kvm.h
diff --git a/libc/include/x86_64-linux-musl/asm/kvm_para.h b/libc/include/x86_64-linux-any/asm/kvm_para.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/kvm_para.h
rename to libc/include/x86_64-linux-any/asm/kvm_para.h
diff --git a/libc/include/x86_64-linux-musl/asm/mman.h b/libc/include/x86_64-linux-any/asm/mman.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/mman.h
rename to libc/include/x86_64-linux-any/asm/mman.h
diff --git a/libc/include/x86_64-linux-musl/asm/msgbuf.h b/libc/include/x86_64-linux-any/asm/msgbuf.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/msgbuf.h
rename to libc/include/x86_64-linux-any/asm/msgbuf.h
diff --git a/libc/include/x86_64-linux-musl/asm/perf_regs.h b/libc/include/x86_64-linux-any/asm/perf_regs.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/perf_regs.h
rename to libc/include/x86_64-linux-any/asm/perf_regs.h
diff --git a/libc/include/x86_64-linux-musl/asm/posix_types.h b/libc/include/x86_64-linux-any/asm/posix_types.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/posix_types.h
rename to libc/include/x86_64-linux-any/asm/posix_types.h
diff --git a/libc/include/x86_64-linux-musl/asm/ptrace.h b/libc/include/x86_64-linux-any/asm/ptrace.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/ptrace.h
rename to libc/include/x86_64-linux-any/asm/ptrace.h
diff --git a/libc/include/x86_64-linux-musl/asm/sembuf.h b/libc/include/x86_64-linux-any/asm/sembuf.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/sembuf.h
rename to libc/include/x86_64-linux-any/asm/sembuf.h
diff --git a/libc/include/x86_64-linux-musl/asm/setup.h b/libc/include/x86_64-linux-any/asm/setup.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/setup.h
rename to libc/include/x86_64-linux-any/asm/setup.h
diff --git a/libc/include/x86_64-linux-musl/asm/shmbuf.h b/libc/include/x86_64-linux-any/asm/shmbuf.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/shmbuf.h
rename to libc/include/x86_64-linux-any/asm/shmbuf.h
diff --git a/libc/include/x86_64-linux-musl/asm/sigcontext.h b/libc/include/x86_64-linux-any/asm/sigcontext.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/sigcontext.h
rename to libc/include/x86_64-linux-any/asm/sigcontext.h
diff --git a/libc/include/x86_64-linux-musl/asm/siginfo.h b/libc/include/x86_64-linux-any/asm/siginfo.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/siginfo.h
rename to libc/include/x86_64-linux-any/asm/siginfo.h
diff --git a/libc/include/x86_64-linux-musl/asm/signal.h b/libc/include/x86_64-linux-any/asm/signal.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/signal.h
rename to libc/include/x86_64-linux-any/asm/signal.h
diff --git a/libc/include/x86_64-linux-musl/asm/stat.h b/libc/include/x86_64-linux-any/asm/stat.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/stat.h
rename to libc/include/x86_64-linux-any/asm/stat.h
diff --git a/libc/include/x86_64-linux-musl/asm/statfs.h b/libc/include/x86_64-linux-any/asm/statfs.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/statfs.h
rename to libc/include/x86_64-linux-any/asm/statfs.h
diff --git a/libc/include/x86_64-linux-musl/asm/swab.h b/libc/include/x86_64-linux-any/asm/swab.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/swab.h
rename to libc/include/x86_64-linux-any/asm/swab.h
diff --git a/libc/include/x86_64-linux-musl/asm/types.h b/libc/include/x86_64-linux-any/asm/types.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/types.h
rename to libc/include/x86_64-linux-any/asm/types.h
diff --git a/libc/include/x86_64-linux-musl/asm/ucontext.h b/libc/include/x86_64-linux-any/asm/ucontext.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/ucontext.h
rename to libc/include/x86_64-linux-any/asm/ucontext.h
diff --git a/libc/include/x86_64-linux-musl/asm/unistd.h b/libc/include/x86_64-linux-any/asm/unistd.h
similarity index 100%
rename from libc/include/x86_64-linux-musl/asm/unistd.h
rename to libc/include/x86_64-linux-any/asm/unistd.h
diff --git a/libc/include/x86_64-linux-gnu/asm/unistd.h b/libc/include/x86_64-linux-gnu/asm/unistd.h
deleted file mode 100644
index 30d7d04d72..0000000000
--- a/libc/include/x86_64-linux-gnu/asm/unistd.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef _UAPI_ASM_X86_UNISTD_H
-#define _UAPI_ASM_X86_UNISTD_H
-
-/* x32 syscall flag bit */
-#define __X32_SYSCALL_BIT 0x40000000
-
-#ifndef __KERNEL__
-# ifdef __i386__
-# include
-# elif defined(__ILP32__)
-# include
-# else
-# include
-# endif
-#endif
-
-#endif /* _UAPI_ASM_X86_UNISTD_H */
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 2de1243a66..8492f7db87 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -8005,14 +8005,19 @@ static void detect_libc(CodeGen *g) {
Buf *arch_include_dir = buf_sprintf("%s" OS_SEP "libc" OS_SEP "include" OS_SEP "%s-%s-%s",
buf_ptr(g->zig_lib_dir), target_arch_name(g->zig_target->arch),
target_os_name(g->zig_target->os), target_abi_name(g->zig_target->abi));
-
Buf *generic_include_dir = buf_sprintf("%s" OS_SEP "libc" OS_SEP "include" OS_SEP "generic-%s",
buf_ptr(g->zig_lib_dir), generic_name);
+ Buf *arch_os_include_dir = buf_sprintf("%s" OS_SEP "libc" OS_SEP "include" OS_SEP "%s-%s-any",
+ buf_ptr(g->zig_lib_dir), target_arch_name(g->zig_target->arch), target_os_name(g->zig_target->os));
+ Buf *generic_os_include_dir = buf_sprintf("%s" OS_SEP "libc" OS_SEP "include" OS_SEP "any-%s-any",
+ buf_ptr(g->zig_lib_dir), target_os_name(g->zig_target->os));
- g->libc_include_dir_len = 2;
- g->libc_include_dir_list = allocate(2);
+ g->libc_include_dir_len = 4;
+ g->libc_include_dir_list = allocate(g->libc_include_dir_len);
g->libc_include_dir_list[0] = arch_include_dir;
g->libc_include_dir_list[1] = generic_include_dir;
+ g->libc_include_dir_list[2] = arch_os_include_dir;
+ g->libc_include_dir_list[3] = generic_os_include_dir;
return;
}
diff --git a/src/link.cpp b/src/link.cpp
index 2e7744b6cc..f3abe3e92d 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -320,6 +320,13 @@ static void glibc_add_include_dirs(CodeGen *parent, CFile *c_file) {
c_file->args.append("-I");
c_file->args.append(path_from_libc(parent, "include" OS_SEP "generic-glibc"));
+
+ c_file->args.append("-I");
+ c_file->args.append(buf_ptr(buf_sprintf("%s" OS_SEP "libc" OS_SEP "include" OS_SEP "%s-linux-any",
+ buf_ptr(parent->zig_lib_dir), target_arch_name(parent->zig_target->arch))));
+
+ c_file->args.append("-I");
+ c_file->args.append(path_from_libc(parent, "include" OS_SEP "any-linux-any"));
}
static const char *glibc_start_asm_path(CodeGen *parent, const char *file) {
diff --git a/std/special/build_runner.zig b/std/special/build_runner.zig
index ff3b53619d..4ce6f7115e 100644
--- a/std/special/build_runner.zig
+++ b/std/special/build_runner.zig
@@ -106,6 +106,8 @@ pub fn main() !void {
builder.verbose_llvm_ir = true;
} else if (mem.eql(u8, arg, "--verbose-cimport")) {
builder.verbose_cimport = true;
+ } else if (mem.eql(u8, arg, "--verbose-cc")) {
+ builder.verbose_cc = true;
} else {
warn("Unrecognized argument: {}\n\n", arg);
return usageAndErr(&builder, false, try stderr_stream);
@@ -193,6 +195,7 @@ fn usage(builder: *Builder, already_ran_build: bool, out_stream: var) !void {
\\ --verbose-ir Enable compiler debug output for Zig IR
\\ --verbose-llvm-ir Enable compiler debug output for LLVM IR
\\ --verbose-cimport Enable compiler debug output for C imports
+ \\ --verbose-cc Enable compiler debug output for C compilation
\\
);
}
From 1b801bdbae2928d6b0ab5897d2e604fb3f87b3c4 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Mon, 18 Mar 2019 16:45:37 -0400
Subject: [PATCH 24/24] pass explicit frame pointer args when compiling C code
---
src/codegen.cpp | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 8492f7db87..84b9cb1d5b 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -8474,8 +8474,11 @@ static void gen_c_object(CodeGen *g, Buf *self_exe_path, CFile *c_file) {
} else {
args.append("-fno-stack-protector");
}
+ args.append("-fno-omit-frame-pointer");
break;
case BuildModeSafeRelease:
+ // See the comment in the BuildModeFastRelease case for why we pass -O2 rather
+ // than -O3 here.
args.append("-O2");
if (g->libc_link_lib != nullptr) {
args.append("-D_FORTIFY_SOURCE=2");
@@ -8485,16 +8488,24 @@ static void gen_c_object(CodeGen *g, Buf *self_exe_path, CFile *c_file) {
} else {
args.append("-fno-stack-protector");
}
+ args.append("-fomit-frame-pointer");
break;
case BuildModeFastRelease:
args.append("-DNDEBUG");
+ // Here we pass -O2 rather than -O3 because, although we do the equivalent of
+ // -O3 in Zig code, the justification for the difference here is that Zig
+ // has better detection and prevention of undefined behavior, so -O3 is safer for
+ // Zig code than it is for C code. Also, C programmers are used to their code
+ // running in -O2 and thus the -O3 path has been tested less.
args.append("-O2");
args.append("-fno-stack-protector");
+ args.append("-fomit-frame-pointer");
break;
case BuildModeSmallRelease:
args.append("-DNDEBUG");
args.append("-Os");
args.append("-fno-stack-protector");
+ args.append("-fomit-frame-pointer");
break;
}