diff options
Diffstat (limited to 'libc')
1379 files changed, 2855 insertions, 28576 deletions
diff --git a/libc/Android.bp b/libc/Android.bp index 22dc8b779..0c955ad9b 100644 --- a/libc/Android.bp +++ b/libc/Android.bp @@ -76,6 +76,7 @@ cc_defaults { }, native_coverage: false, recovery_available: true, + native_bridge_supported: true, // lld complains about duplicate symbols in libcrt and libgcc. Suppress the // warning since this is intended right now. @@ -805,13 +806,11 @@ cc_library_static { "arch-arm/cortex-a9/bionic/memset.S", "arch-arm/cortex-a9/bionic/stpcpy.S", "arch-arm/cortex-a9/bionic/strcat.S", - "arch-arm/cortex-a9/bionic/strcmp.S", "arch-arm/cortex-a9/bionic/strcpy.S", "arch-arm/cortex-a9/bionic/strlen.S", "arch-arm/krait/bionic/memcpy.S", "arch-arm/krait/bionic/memset.S", - "arch-arm/krait/bionic/strcmp.S", "arch-arm/cortex-a53/bionic/memcpy.S", @@ -1196,6 +1195,7 @@ cc_library_static { "bionic/tdestroy.cpp", "bionic/termios.cpp", "bionic/thread_private.cpp", + "bionic/threads.cpp", "bionic/timespec_get.cpp", "bionic/tmpfile.cpp", "bionic/umount.cpp", @@ -1284,27 +1284,53 @@ cc_library_static { // libc_syscalls.a // ======================================================== +genrule { + name: "syscalls-arm.S", + out: ["syscalls-arm.S"], + srcs: ["SYSCALLS.TXT"], + tool_files: [":bionic-gensyscalls"], + cmd: "$(location :bionic-gensyscalls) arm $(in) > $(out)", +} + +genrule { + name: "syscalls-arm64.S", + out: ["syscalls-arm64.S"], + srcs: ["SYSCALLS.TXT"], + tool_files: [":bionic-gensyscalls"], + cmd: "$(location :bionic-gensyscalls) arm64 $(in) > $(out)", +} + +genrule { + name: "syscalls-x86.S", + out: ["syscalls-x86.S"], + srcs: ["SYSCALLS.TXT"], + tool_files: [":bionic-gensyscalls"], + cmd: "$(location :bionic-gensyscalls) x86 $(in) > $(out)", +} + +genrule { + name: "syscalls-x86_64.S", + out: ["syscalls-x86_64.S"], + srcs: ["SYSCALLS.TXT"], + tool_files: [":bionic-gensyscalls"], + cmd: "$(location :bionic-gensyscalls) x86_64 $(in) > $(out)", +} + cc_library_static { defaults: ["libc_defaults"], srcs: ["bionic/__set_errno.cpp"], arch: { arm: { - srcs: ["arch-arm/syscalls/**/*.S"], + srcs: [":syscalls-arm.S"], }, arm64: { - srcs: ["arch-arm64/syscalls/**/*.S"], - }, - mips: { - srcs: ["arch-mips/syscalls/**/*.S"], - }, - mips64: { - srcs: ["arch-mips64/syscalls/**/*.S"], + srcs: [":syscalls-arm64.S"], }, x86: { - srcs: ["arch-x86/syscalls/**/*.S"], + srcs: [":syscalls-x86.S"], }, x86_64: { - srcs: ["arch-x86_64/syscalls/**/*.S"], + srcs: [":syscalls-x86_64.S"], }, }, name: "libc_syscalls", @@ -1593,13 +1619,10 @@ cc_library { ], }, - required: ["tzdata"], - - // Leave the symbols in the shared library so that stack unwinders can produce - // meaningful name resolution. - strip: { - keep_symbols: true, - }, + required: [ + "tzdata", + "tz_version", // Version metadata for tzdata to help debugging. + ], // Do not pack libc.so relocations; see http://b/20645321 for details. pack_relocations: false, @@ -1641,9 +1664,23 @@ cc_library { static: { srcs: [":libc_sources_static_arm"], }, + + // Arm 32 bit does not produce complete exidx unwind information + // so keep the .debug_frame which is relatively small and does + // include needed unwind information. + // See b/132992102 for details. + strip: { + keep_symbols_and_debug_frame: true, + }, }, arm64: { version_script: ":libc.arm64.map", + + // Leave the symbols in the shared library so that stack unwinders can produce + // meaningful name resolution. + strip: { + keep_symbols: true, + }, }, x86: { // TODO: This is to work around b/24465209. Remove after root cause is fixed. @@ -1651,9 +1688,21 @@ cc_library { ldflags: ["-Wl,--hash-style=both"], version_script: ":libc.x86.map", + + // Leave the symbols in the shared library so that stack unwinders can produce + // meaningful name resolution. + strip: { + keep_symbols: true, + }, }, x86_64: { version_script: ":libc.x86_64.map", + + // Leave the symbols in the shared library so that stack unwinders can produce + // meaningful name resolution. + strip: { + keep_symbols: true, + }, }, }, @@ -1704,6 +1753,7 @@ cc_library_headers { host_supported: true, vendor_available: true, recovery_available: true, + native_bridge_supported: true, no_libcrt: true, no_libgcc: true, @@ -1837,6 +1887,7 @@ cc_defaults { defaults: ["linux_bionic_supported"], vendor_available: true, recovery_available: true, + native_bridge_supported: true, cflags: [ "-Wno-gcc-compat", @@ -2095,6 +2146,7 @@ ndk_headers { ndk_library { name: "libc", + native_bridge_supported: true, symbol_file: "libc.map.txt", first_version: "9", } @@ -2104,6 +2156,7 @@ llndk_library { symbol_file: "libc.map.txt", export_headers_as_system: true, export_preprocessed_headers: ["include"], + native_bridge_supported: true, export_include_dirs: [ "kernel/android/uapi", "kernel/uapi", @@ -2494,25 +2547,28 @@ cc_library_shared { arch: { arm: { - srcs: ["arch-arm/syscalls/__rt_sigprocmask.S"], + srcs: [":syscalls-arm.S"], }, arm64: { - srcs: ["arch-arm64/syscalls/__rt_sigprocmask.S"], + srcs: [":syscalls-arm64.S"], }, x86: { srcs: [ "arch-x86/bionic/__libc_init_sysinfo.cpp", - "arch-x86/syscalls/__rt_sigprocmask.S", + ":syscalls-x86.S", ], }, x86_64: { - srcs: ["arch-x86_64/syscalls/__rt_sigprocmask.S"], + srcs: [":syscalls-x86_64.S"], }, }, // Mark this library as global so it overrides all the allocation // definitions properly. ldflags: ["-Wl,-z,global"], + + // Like libc, disable native coverage for libc_scudo. + native_coverage: false, } subdirs = [ diff --git a/libc/NOTICE b/libc/NOTICE index 120c4fd9a..ef3173387 100644 --- a/libc/NOTICE +++ b/libc/NOTICE @@ -418,50 +418,6 @@ SUCH DAMAGE. ------------------------------------------------------------------- -Copyright (C) 2007 The Android Open Source Project - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - -------------------------------------------------------------------- - -Copyright (C) 2007 The Android Open Source Project -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -SUCH DAMAGE. - -------------------------------------------------------------------- - Copyright (C) 2008 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); @@ -5374,6 +5330,34 @@ Copyright (c) 2012-2013, Linaro Limited ------------------------------------------------------------------- +Copyright (c) 2012-2014 ARM Ltd +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the company may not be used to endorse or promote + products derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +------------------------------------------------------------------- + Copyright (c) 2013 MIPS Technologies, Inc., California. diff --git a/libc/SYSCALLS.TXT b/libc/SYSCALLS.TXT index 772f0e7c5..e2ea0656b 100644 --- a/libc/SYSCALLS.TXT +++ b/libc/SYSCALLS.TXT @@ -22,7 +22,8 @@ # # - Each parameter type is assumed to be stored in 32 bits. # -# This file is processed by a python script named gensyscalls.py. +# This file is processed by a python script named gensyscalls.py, run via +# genrules in Android.bp. int execve(const char*, char* const*, char* const*) all diff --git a/libc/arch-arm/cortex-a15/bionic/strcmp.S b/libc/arch-arm/cortex-a15/bionic/strcmp.S index 58dbf170e..467201b78 100644 --- a/libc/arch-arm/cortex-a15/bionic/strcmp.S +++ b/libc/arch-arm/cortex-a15/bionic/strcmp.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013 ARM Ltd + * Copyright (c) 2012-2014 ARM Ltd * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -29,9 +29,9 @@ #include <private/bionic_asm.h> #ifdef __ARMEB__ -#define S2LOMEM lsl -#define S2LOMEMEQ lsleq -#define S2HIMEM lsr +#define S2LO lsl +#define S2LOEQ lsleq +#define S2HI lsr #define MSB 0x000000ff #define LSB 0xff000000 #define BYTE0_OFFSET 24 @@ -39,9 +39,9 @@ #define BYTE2_OFFSET 8 #define BYTE3_OFFSET 0 #else /* not __ARMEB__ */ -#define S2LOMEM lsr -#define S2LOMEMEQ lsreq -#define S2HIMEM lsl +#define S2LO lsr +#define S2LOEQ lsreq +#define S2HI lsl #define BYTE0_OFFSET 0 #define BYTE1_OFFSET 8 #define BYTE2_OFFSET 16 @@ -50,330 +50,446 @@ #define LSB 0x000000ff #endif /* not __ARMEB__ */ -.syntax unified +/* Parameters and result. */ +#define src1 r0 +#define src2 r1 +#define result r0 /* Overlaps src1. */ + +/* Internal variables. */ +#define tmp1 r4 +#define tmp2 r5 +#define const_m1 r12 + +/* Additional internal variables for 64-bit aligned data. */ +#define data1a r2 +#define data1b r3 +#define data2a r6 +#define data2b r7 +#define syndrome_a tmp1 +#define syndrome_b tmp2 + +/* Additional internal variables for 32-bit aligned data. */ +#define data1 r2 +#define data2 r3 +#define syndrome tmp2 + + /* Implementation of strcmp for ARMv7 when DSP instructions are + available. Use ldrd to support wider loads, provided the data + is sufficiently aligned. Use saturating arithmetic to optimize + the compares. */ + + /* Build Options: + STRCMP_NO_PRECHECK: Don't run a quick pre-check of the first + byte in the string. If comparing completely random strings + the pre-check will save time, since there is a very high + probability of a mismatch in the first character: we save + significant overhead if this is the common case. However, + if strings are likely to be identical (eg because we're + verifying a hit in a hash table), then this check is largely + redundant. */ -#if defined (__thumb__) - .thumb - .thumb_func -#endif + +.syntax unified +.thumb // To avoid warning about deprecated instructions, add an explicit // arch. The code generated is exactly the same. .arch armv7-a + /* Macro to compute and return the result value for word-aligned + cases. */ + .macro strcmp_epilogue_aligned synd d1 d2 restore_r6 +#ifdef __ARM_BIG_ENDIAN + /* If data1 contains a zero byte, then syndrome will contain a 1 in + bit 7 of that byte. Otherwise, the highest set bit in the + syndrome will highlight the first different bit. It is therefore + sufficient to extract the eight bits starting with the syndrome + bit. */ + clz tmp1, \synd + lsl r1, \d2, tmp1 + .if \restore_r6 + ldrd r6, r7, [sp, #8] + .endif + .cfi_restore 6 + .cfi_restore 7 + lsl \d1, \d1, tmp1 + .cfi_remember_state + lsr result, \d1, #24 + ldrd r4, r5, [sp], #16 + .cfi_restore 4 + .cfi_restore 5 + sub result, result, r1, lsr #24 + bx lr +#else + /* To use the big-endian trick we'd have to reverse all three words. + that's slower than this approach. */ + rev \synd, \synd + clz tmp1, \synd + bic tmp1, tmp1, #7 + lsr r1, \d2, tmp1 + .cfi_remember_state + .if \restore_r6 + ldrd r6, r7, [sp, #8] + .endif + .cfi_restore 6 + .cfi_restore 7 + lsr \d1, \d1, tmp1 + and result, \d1, #255 + and r1, r1, #255 + ldrd r4, r5, [sp], #16 + .cfi_restore 4 + .cfi_restore 5 + sub result, result, r1 + + bx lr +#endif + .endm + + .text + .p2align 5 +.Lstrcmp_start_addr: +#ifndef STRCMP_NO_PRECHECK +.Lfastpath_exit: + sub r0, r2, r3 + bx lr + nop +#endif + ENTRY(strcmp_a15) - /* Use LDRD whenever possible. */ - -/* The main thing to look out for when comparing large blocks is that - the loads do not cross a page boundary when loading past the index - of the byte with the first difference or the first string-terminator. - - For example, if the strings are identical and the string-terminator - is at index k, byte by byte comparison will not load beyond address - s1+k and s2+k; word by word comparison may load up to 3 bytes beyond - k; double word - up to 7 bytes. If the load of these bytes crosses - a page boundary, it might cause a memory fault (if the page is not mapped) - that would not have happened in byte by byte comparison. - - If an address is (double) word aligned, then a load of a (double) word - from that address will not cross a page boundary. - Therefore, the algorithm below considers word and double-word alignment - of strings separately. */ - -/* High-level description of the algorithm. - - * The fast path: if both strings are double-word aligned, - use LDRD to load two words from each string in every loop iteration. - * If the strings have the same offset from a word boundary, - use LDRB to load and compare byte by byte until - the first string is aligned to a word boundary (at most 3 bytes). - This is optimized for quick return on short unaligned strings. - * If the strings have the same offset from a double-word boundary, - use LDRD to load two words from each string in every loop iteration, as in the fast path. - * If the strings do not have the same offset from a double-word boundary, - load a word from the second string before the loop to initialize the queue. - Use LDRD to load two words from every string in every loop iteration. - Inside the loop, load the second word from the second string only after comparing - the first word, using the queued value, to guarantee safety across page boundaries. - * If the strings do not have the same offset from a word boundary, - use LDR and a shift queue. Order of loads and comparisons matters, - similarly to the previous case. - - * Use UADD8 and SEL to compare words, and use REV and CLZ to compute the return value. - * The only difference between ARM and Thumb modes is the use of CBZ instruction. - * The only difference between big and little endian is the use of REV in little endian - to compute the return value, instead of MOV. -*/ - - .macro m_cbz reg label -#ifdef __thumb2__ - cbz \reg, \label -#else /* not defined __thumb2__ */ - cmp \reg, #0 - beq \label -#endif /* not defined __thumb2__ */ - .endm /* m_cbz */ - - .macro m_cbnz reg label -#ifdef __thumb2__ - cbnz \reg, \label -#else /* not defined __thumb2__ */ - cmp \reg, #0 - bne \label -#endif /* not defined __thumb2__ */ - .endm /* m_cbnz */ - - .macro init - /* Macro to save temporary registers and prepare magic values. */ - subs sp, sp, #16 - .cfi_def_cfa_offset 16 - strd r4, r5, [sp, #8] - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - strd r6, r7, [sp] - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - mvn r6, #0 /* all F */ - mov r7, #0 /* all 0 */ - .endm /* init */ - - .macro magic_compare_and_branch w1 w2 label - /* Macro to compare registers w1 and w2 and conditionally branch to label. */ - cmp \w1, \w2 /* Are w1 and w2 the same? */ - magic_find_zero_bytes \w1 - it eq - cmpeq ip, #0 /* Is there a zero byte in w1? */ - bne \label - .endm /* magic_compare_and_branch */ - - .macro magic_find_zero_bytes w1 - /* Macro to find all-zero bytes in w1, result is in ip. */ - uadd8 ip, \w1, r6 - sel ip, r7, r6 - .endm /* magic_find_zero_bytes */ - - .macro setup_return w1 w2 -#ifdef __ARMEB__ - mov r1, \w1 - mov r2, \w2 -#else /* not __ARMEB__ */ - rev r1, \w1 - rev r2, \w2 -#endif /* not __ARMEB__ */ - .endm /* setup_return */ - - pld [r0, #0] - pld [r1, #0] - - /* Are both strings double-word aligned? */ - orr ip, r0, r1 - tst ip, #7 - bne .L_do_align - - /* Fast path. */ - init - -.L_doubleword_aligned: - - /* Get here when the strings to compare are double-word aligned. */ - /* Compare two words in every iteration. */ - .p2align 2 -2: - pld [r0, #16] - pld [r1, #16] - - /* Load the next double-word from each string. */ - ldrd r2, r3, [r0], #8 - ldrd r4, r5, [r1], #8 - - magic_compare_and_branch w1=r2, w2=r4, label=.L_return_24 - magic_compare_and_branch w1=r3, w2=r5, label=.L_return_35 - b 2b - -.L_do_align: - /* Is the first string word-aligned? */ - ands ip, r0, #3 - beq .L_word_aligned_r0 - - /* Fast compare byte by byte until the first string is word-aligned. */ - /* The offset of r0 from a word boundary is in ip. Thus, the number of bytes - to read until the next word boundary is 4-ip. */ - bic r0, r0, #3 - ldr r2, [r0], #4 - lsls ip, ip, #31 - beq .L_byte2 - bcs .L_byte3 - -.L_byte1: - ldrb ip, [r1], #1 - uxtb r3, r2, ror #BYTE1_OFFSET - subs ip, r3, ip - bne .L_fast_return - m_cbz reg=r3, label=.L_fast_return - -.L_byte2: - ldrb ip, [r1], #1 - uxtb r3, r2, ror #BYTE2_OFFSET - subs ip, r3, ip - bne .L_fast_return - m_cbz reg=r3, label=.L_fast_return - -.L_byte3: - ldrb ip, [r1], #1 - uxtb r3, r2, ror #BYTE3_OFFSET - subs ip, r3, ip - bne .L_fast_return - m_cbnz reg=r3, label=.L_word_aligned_r0 - -.L_fast_return: - mov r0, ip - bx lr - -.L_word_aligned_r0: - init - /* The first string is word-aligned. */ - /* Is the second string word-aligned? */ - ands ip, r1, #3 - bne .L_strcmp_unaligned - -.L_word_aligned: - /* The strings are word-aligned. */ - /* Is the first string double-word aligned? */ - tst r0, #4 - beq .L_doubleword_aligned_r0 - - /* If r0 is not double-word aligned yet, align it by loading - and comparing the next word from each string. */ - ldr r2, [r0], #4 - ldr r4, [r1], #4 - magic_compare_and_branch w1=r2 w2=r4 label=.L_return_24 - -.L_doubleword_aligned_r0: - /* Get here when r0 is double-word aligned. */ - /* Is r1 doubleword_aligned? */ - tst r1, #4 - beq .L_doubleword_aligned - - /* Get here when the strings to compare are word-aligned, - r0 is double-word aligned, but r1 is not double-word aligned. */ - - /* Initialize the queue. */ - ldr r5, [r1], #4 - - /* Compare two words in every iteration. */ - .p2align 2 -3: - pld [r0, #16] - pld [r1, #16] - - /* Load the next double-word from each string and compare. */ - ldrd r2, r3, [r0], #8 - magic_compare_and_branch w1=r2 w2=r5 label=.L_return_25 - ldrd r4, r5, [r1], #8 - magic_compare_and_branch w1=r3 w2=r4 label=.L_return_34 - b 3b - - .macro miscmp_word offsetlo offsethi - /* Macro to compare misaligned strings. */ - /* r0, r1 are word-aligned, and at least one of the strings - is not double-word aligned. */ - /* Compare one word in every loop iteration. */ - /* OFFSETLO is the original bit-offset of r1 from a word-boundary, - OFFSETHI is 32 - OFFSETLO (i.e., offset from the next word). */ - - /* Initialize the shift queue. */ - ldr r5, [r1], #4 - - /* Compare one word from each string in every loop iteration. */ - .p2align 2 -7: - ldr r3, [r0], #4 - S2LOMEM r5, r5, #\offsetlo - magic_find_zero_bytes w1=r3 - cmp r7, ip, S2HIMEM #\offsetlo - and r2, r3, r6, S2LOMEM #\offsetlo - it eq - cmpeq r2, r5 - bne .L_return_25 - ldr r5, [r1], #4 - cmp ip, #0 - eor r3, r2, r3 - S2HIMEM r2, r5, #\offsethi - it eq - cmpeq r3, r2 - bne .L_return_32 - b 7b - .endm /* miscmp_word */ - -.L_strcmp_unaligned: - /* r0 is word-aligned, r1 is at offset ip from a word. */ - /* Align r1 to the (previous) word-boundary. */ - bic r1, r1, #3 - - /* Unaligned comparison word by word using LDRs. */ - cmp ip, #2 - beq .L_miscmp_word_16 /* If ip == 2. */ - bge .L_miscmp_word_24 /* If ip == 3. */ - miscmp_word offsetlo=8 offsethi=24 /* If ip == 1. */ -.L_miscmp_word_16: miscmp_word offsetlo=16 offsethi=16 -.L_miscmp_word_24: miscmp_word offsetlo=24 offsethi=8 - - -.L_return_32: - setup_return w1=r3, w2=r2 - b .L_do_return -.L_return_34: - setup_return w1=r3, w2=r4 - b .L_do_return -.L_return_25: - setup_return w1=r2, w2=r5 - b .L_do_return -.L_return_35: - setup_return w1=r3, w2=r5 - b .L_do_return -.L_return_24: - setup_return w1=r2, w2=r4 - -.L_do_return: +#ifndef STRCMP_NO_PRECHECK + ldrb r2, [src1] + ldrb r3, [src2] + cmp r2, #1 + it cs + cmpcs r2, r3 + bne .Lfastpath_exit +#endif + .cfi_sections .debug_frame + strd r4, r5, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_offset 4, -16 + .cfi_offset 5, -12 + orr tmp1, src1, src2 + strd r6, r7, [sp, #8] + .cfi_offset 6, -8 + .cfi_offset 7, -4 + mvn const_m1, #0 + lsl r2, tmp1, #29 + cbz r2, .Lloop_aligned8 + +.Lnot_aligned: + eor tmp1, src1, src2 + tst tmp1, #7 + bne .Lmisaligned8 + + /* Deal with mutual misalignment by aligning downwards and then + masking off the unwanted loaded data to prevent a difference. */ + and tmp1, src1, #7 + bic src1, src1, #7 + and tmp2, tmp1, #3 + bic src2, src2, #7 + lsl tmp2, tmp2, #3 /* Bytes -> bits. */ + ldrd data1a, data1b, [src1], #16 + tst tmp1, #4 + ldrd data2a, data2b, [src2], #16 + /* In thumb code we can't use MVN with a register shift, but + we do have ORN. */ + S2HI tmp1, const_m1, tmp2 + orn data1a, data1a, tmp1 + orn data2a, data2a, tmp1 + beq .Lstart_realigned8 + orn data1b, data1b, tmp1 + mov data1a, const_m1 + orn data2b, data2b, tmp1 + mov data2a, const_m1 + b .Lstart_realigned8 + + /* Unwind the inner loop by a factor of 2, giving 16 bytes per + pass. */ + .p2align 5,,12 /* Don't start in the tail bytes of a cache line. */ + .p2align 2 /* Always word aligned. */ +.Lloop_aligned8: + ldrd data1a, data1b, [src1], #16 + ldrd data2a, data2b, [src2], #16 +.Lstart_realigned8: + uadd8 syndrome_b, data1a, const_m1 /* Only want GE bits, */ + eor syndrome_a, data1a, data2a + sel syndrome_a, syndrome_a, const_m1 + cbnz syndrome_a, .Ldiff_in_a + uadd8 syndrome_b, data1b, const_m1 /* Only want GE bits. */ + eor syndrome_b, data1b, data2b + sel syndrome_b, syndrome_b, const_m1 + cbnz syndrome_b, .Ldiff_in_b + + ldrd data1a, data1b, [src1, #-8] + ldrd data2a, data2b, [src2, #-8] + uadd8 syndrome_b, data1a, const_m1 /* Only want GE bits, */ + eor syndrome_a, data1a, data2a + sel syndrome_a, syndrome_a, const_m1 + uadd8 syndrome_b, data1b, const_m1 /* Only want GE bits. */ + eor syndrome_b, data1b, data2b + sel syndrome_b, syndrome_b, const_m1 + /* Can't use CBZ for backwards branch. */ + orrs syndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */ + beq .Lloop_aligned8 + +.Ldiff_found: + cbnz syndrome_a, .Ldiff_in_a + +.Ldiff_in_b: + strcmp_epilogue_aligned syndrome_b, data1b, data2b 1 + +.Ldiff_in_a: + .cfi_restore_state + strcmp_epilogue_aligned syndrome_a, data1a, data2a 1 + + .cfi_restore_state +.Lmisaligned8: + tst tmp1, #3 + bne .Lmisaligned4 + ands tmp1, src1, #3 + bne .Lmutual_align4 + + /* Unrolled by a factor of 2, to reduce the number of post-increment + operations. */ +.Lloop_aligned4: + ldr data1, [src1], #8 + ldr data2, [src2], #8 +.Lstart_realigned4: + uadd8 syndrome, data1, const_m1 /* Only need GE bits. */ + eor syndrome, data1, data2 + sel syndrome, syndrome, const_m1 + cbnz syndrome, .Laligned4_done + ldr data1, [src1, #-4] + ldr data2, [src2, #-4] + uadd8 syndrome, data1, const_m1 + eor syndrome, data1, data2 + sel syndrome, syndrome, const_m1 + cmp syndrome, #0 + beq .Lloop_aligned4 + +.Laligned4_done: + strcmp_epilogue_aligned syndrome, data1, data2, 0 + +.Lmutual_align4: + .cfi_restore_state + /* Deal with mutual misalignment by aligning downwards and then + masking off the unwanted loaded data to prevent a difference. */ + lsl tmp1, tmp1, #3 /* Bytes -> bits. */ + bic src1, src1, #3 + ldr data1, [src1], #8 + bic src2, src2, #3 + ldr data2, [src2], #8 + + /* In thumb code we can't use MVN with a register shift, but + we do have ORN. */ + S2HI tmp1, const_m1, tmp1 + orn data1, data1, tmp1 + orn data2, data2, tmp1 + b .Lstart_realigned4 + +.Lmisaligned4: + ands tmp1, src1, #3 + beq .Lsrc1_aligned + sub src2, src2, tmp1 + bic src1, src1, #3 + lsls tmp1, tmp1, #31 + ldr data1, [src1], #4 + beq .Laligned_m2 + bcs .Laligned_m1 + +#ifdef STRCMP_NO_PRECHECK + ldrb data2, [src2, #1] + uxtb tmp1, data1, ror #BYTE1_OFFSET + subs tmp1, tmp1, data2 + bne .Lmisaligned_exit + cbz data2, .Lmisaligned_exit + +.Laligned_m2: + ldrb data2, [src2, #2] + uxtb tmp1, data1, ror #BYTE2_OFFSET + subs tmp1, tmp1, data2 + bne .Lmisaligned_exit + cbz data2, .Lmisaligned_exit + +.Laligned_m1: + ldrb data2, [src2, #3] + uxtb tmp1, data1, ror #BYTE3_OFFSET + subs tmp1, tmp1, data2 + bne .Lmisaligned_exit + add src2, src2, #4 + cbnz data2, .Lsrc1_aligned +#else /* STRCMP_NO_PRECHECK */ + /* If we've done the pre-check, then we don't need to check the + first byte again here. */ + ldrb data2, [src2, #2] + uxtb tmp1, data1, ror #BYTE2_OFFSET + subs tmp1, tmp1, data2 + bne .Lmisaligned_exit + cbz data2, .Lmisaligned_exit + +.Laligned_m2: + ldrb data2, [src2, #3] + uxtb tmp1, data1, ror #BYTE3_OFFSET + subs tmp1, tmp1, data2 + bne .Lmisaligned_exit + cbnz data2, .Laligned_m1 +#endif -#ifdef __ARMEB__ - mov r0, ip -#else /* not __ARMEB__ */ - rev r0, ip -#endif /* not __ARMEB__ */ +.Lmisaligned_exit: + .cfi_remember_state + mov result, tmp1 + ldr r4, [sp], #16 + .cfi_restore 4 + bx lr - /* Restore temporaries early, before computing the return value. */ - ldrd r6, r7, [sp] - ldrd r4, r5, [sp, #8] - adds sp, sp, #16 - .cfi_def_cfa_offset 0 - .cfi_restore r4 - .cfi_restore r5 - .cfi_restore r6 - .cfi_restore r7 - - /* There is a zero or a different byte between r1 and r2. */ - /* r0 contains a mask of all-zero bytes in r1. */ - /* Using r0 and not ip here because cbz requires low register. */ - m_cbz reg=r0, label=.L_compute_return_value - clz r0, r0 - /* r0 contains the number of bits on the left of the first all-zero byte in r1. */ - rsb r0, r0, #24 - /* Here, r0 contains the number of bits on the right of the first all-zero byte in r1. */ - lsr r1, r1, r0 - lsr r2, r2, r0 - -.L_compute_return_value: - movs r0, #1 - cmp r1, r2 - /* The return value is computed as follows. - If r1>r2 then (C==1 and Z==0) and LS doesn't hold and r0 is #1 at return. - If r1<r2 then (C==0 and Z==0) and we execute SBC with carry_in=0, - which means r0:=r0-r0-1 and r0 is #-1 at return. - If r1=r2 then (C==1 and Z==1) and we execute SBC with carry_in=1, - which means r0:=r0-r0 and r0 is #0 at return. - (C==0 and Z==1) cannot happen because the carry bit is "not borrow". */ - it ls - sbcls r0, r0, r0 - bx lr +#ifndef STRCMP_NO_PRECHECK +.Laligned_m1: + add src2, src2, #4 +#endif +.Lsrc1_aligned: + .cfi_restore_state + /* src1 is word aligned, but src2 has no common alignment + with it. */ + ldr data1, [src1], #4 + lsls tmp1, src2, #31 /* C=src2[1], Z=src2[0]. */ + + bic src2, src2, #3 + ldr data2, [src2], #4 + bhi .Loverlap1 /* C=1, Z=0 => src2[1:0] = 0b11. */ + bcs .Loverlap2 /* C=1, Z=1 => src2[1:0] = 0b10. */ + + /* (overlap3) C=0, Z=0 => src2[1:0] = 0b01. */ +.Loverlap3: + bic tmp1, data1, #MSB + uadd8 syndrome, data1, const_m1 + eors syndrome, tmp1, data2, S2LO #8 + sel syndrome, syndrome, const_m1 + bne 4f + cbnz syndrome, 5f + ldr data2, [src2], #4 + eor tmp1, tmp1, data1 + cmp tmp1, data2, S2HI #24 + bne 6f + ldr data1, [src1], #4 + b .Loverlap3 +4: + S2LO data2, data2, #8 + b .Lstrcmp_tail + +5: + bics syndrome, syndrome, #MSB + bne .Lstrcmp_done_equal + + /* We can only get here if the MSB of data1 contains 0, so + fast-path the exit. */ + ldrb result, [src2] + .cfi_remember_state + ldrd r4, r5, [sp], #16 + .cfi_restore 4 + .cfi_restore 5 + /* R6/7 Not used in this sequence. */ + .cfi_restore 6 + .cfi_restore 7 + neg result, result + bx lr + +6: + .cfi_restore_state + S2LO data1, data1, #24 + and data2, data2, #LSB + b .Lstrcmp_tail + + .p2align 5,,12 /* Ensure at least 3 instructions in cache line. */ +.Loverlap2: + and tmp1, data1, const_m1, S2LO #16 + uadd8 syndrome, data1, const_m1 + eors syndrome, tmp1, data2, S2LO #16 + sel syndrome, syndrome, const_m1 + bne 4f + cbnz syndrome, 5f + ldr data2, [src2], #4 + eor tmp1, tmp1, data1 + cmp tmp1, data2, S2HI #16 + bne 6f + ldr data1, [src1], #4 + b .Loverlap2 +4: + S2LO data2, data2, #16 + b .Lstrcmp_tail +5: + ands syndrome, syndrome, const_m1, S2LO #16 + bne .Lstrcmp_done_equal + + ldrh data2, [src2] + S2LO data1, data1, #16 +#ifdef __ARM_BIG_ENDIAN + lsl data2, data2, #16 +#endif + b .Lstrcmp_tail + +6: + S2LO data1, data1, #16 + and data2, data2, const_m1, S2LO #16 + b .Lstrcmp_tail + + .p2align 5,,12 /* Ensure at least 3 instructions in cache line. */ +.Loverlap1: + and tmp1, data1, #LSB + uadd8 syndrome, data1, const_m1 + eors syndrome, tmp1, data2, S2LO #24 + sel syndrome, syndrome, const_m1 + bne 4f + cbnz syndrome, 5f + ldr data2, [src2], #4 + eor tmp1, tmp1, data1 + cmp tmp1, data2, S2HI #8 + bne 6f + ldr data1, [src1], #4 + b .Loverlap1 +4: + S2LO data2, data2, #24 + b .Lstrcmp_tail +5: + tst syndrome, #LSB + bne .Lstrcmp_done_equal + ldr data2, [src2] +6: + S2LO data1, data1, #8 + bic data2, data2, #MSB + b .Lstrcmp_tail + +.Lstrcmp_done_equal: + mov result, #0 + .cfi_remember_state + ldrd r4, r5, [sp], #16 + .cfi_restore 4 + .cfi_restore 5 + /* R6/7 not used in this sequence. */ + .cfi_restore 6 + .cfi_restore 7 + bx lr + +.Lstrcmp_tail: + .cfi_restore_state +#ifndef __ARM_BIG_ENDIAN + rev data1, data1 + rev data2, data2 + /* Now everything looks big-endian... */ +#endif + uadd8 tmp1, data1, const_m1 + eor tmp1, data1, data2 + sel syndrome, tmp1, const_m1 + clz tmp1, syndrome + lsl data1, data1, tmp1 + lsl data2, data2, tmp1 + lsr result, data1, #24 + ldrd r4, r5, [sp], #16 + .cfi_restore 4 + .cfi_restore 5 + /* R6/7 not used in this sequence. */ + .cfi_restore 6 + .cfi_restore 7 + sub result, result, data2, lsr #24 + bx lr END(strcmp_a15) diff --git a/libc/arch-arm/cortex-a9/bionic/strcmp.S b/libc/arch-arm/cortex-a9/bionic/strcmp.S deleted file mode 100644 index ba7ea13a3..000000000 --- a/libc/arch-arm/cortex-a9/bionic/strcmp.S +++ /dev/null @@ -1,551 +0,0 @@ -/* - * Copyright (c) 2013 ARM Ltd - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the company may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED - * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include <private/bionic_asm.h> - -#ifdef __ARMEB__ -#define S2LOMEM lsl -#define S2LOMEMEQ lsleq -#define S2HIMEM lsr -#define MSB 0x000000ff -#define LSB 0xff000000 -#define BYTE0_OFFSET 24 -#define BYTE1_OFFSET 16 -#define BYTE2_OFFSET 8 -#define BYTE3_OFFSET 0 -#else /* not __ARMEB__ */ -#define S2LOMEM lsr -#define S2LOMEMEQ lsreq -#define S2HIMEM lsl -#define BYTE0_OFFSET 0 -#define BYTE1_OFFSET 8 -#define BYTE2_OFFSET 16 -#define BYTE3_OFFSET 24 -#define MSB 0xff000000 -#define LSB 0x000000ff -#endif /* not __ARMEB__ */ - -.syntax unified - -// To avoid warning about deprecated instructions, add an explicit -// arch. The code generated is exactly the same. -.arch armv7-a - -#if defined (__thumb__) - .thumb - .thumb_func -#endif - -ENTRY(strcmp_a9) - /* Use LDRD whenever possible. */ - -/* The main thing to look out for when comparing large blocks is that - the loads do not cross a page boundary when loading past the index - of the byte with the first difference or the first string-terminator. - - For example, if the strings are identical and the string-terminator - is at index k, byte by byte comparison will not load beyond address - s1+k and s2+k; word by word comparison may load up to 3 bytes beyond - k; double word - up to 7 bytes. If the load of these bytes crosses - a page boundary, it might cause a memory fault (if the page is not mapped) - that would not have happened in byte by byte comparison. - - If an address is (double) word aligned, then a load of a (double) word - from that address will not cross a page boundary. - Therefore, the algorithm below considers word and double-word alignment - of strings separately. */ - -/* High-level description of the algorithm. - - * The fast path: if both strings are double-word aligned, - use LDRD to load two words from each string in every loop iteration. - * If the strings have the same offset from a word boundary, - use LDRB to load and compare byte by byte until - the first string is aligned to a word boundary (at most 3 bytes). - This is optimized for quick return on short unaligned strings. - * If the strings have the same offset from a double-word boundary, - use LDRD to load two words from each string in every loop iteration, as in the fast path. - * If the strings do not have the same offset from a double-word boundary, - load a word from the second string before the loop to initialize the queue. - Use LDRD to load two words from every string in every loop iteration. - Inside the loop, load the second word from the second string only after comparing - the first word, using the queued value, to guarantee safety across page boundaries. - * If the strings do not have the same offset from a word boundary, - use LDR and a shift queue. Order of loads and comparisons matters, - similarly to the previous case. - - * Use UADD8 and SEL to compare words, and use REV and CLZ to compute the return value. - * The only difference between ARM and Thumb modes is the use of CBZ instruction. - * The only difference between big and little endian is the use of REV in little endian - to compute the return value, instead of MOV. -*/ - - .macro m_cbz reg label -#ifdef __thumb2__ - cbz \reg, \label -#else /* not defined __thumb2__ */ - cmp \reg, #0 - beq \label -#endif /* not defined __thumb2__ */ - .endm /* m_cbz */ - - .macro m_cbnz reg label -#ifdef __thumb2__ - cbnz \reg, \label -#else /* not defined __thumb2__ */ - cmp \reg, #0 - bne \label -#endif /* not defined __thumb2__ */ - .endm /* m_cbnz */ - - .macro init - /* Macro to save temporary registers and prepare magic values. */ - subs sp, sp, #16 - .cfi_def_cfa_offset 16 - strd r4, r5, [sp, #8] - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - strd r6, r7, [sp] - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - mvn r6, #0 /* all F */ - mov r7, #0 /* all 0 */ - .endm /* init */ - - .macro magic_compare_and_branch w1 w2 label - /* Macro to compare registers w1 and w2 and conditionally branch to label. */ - cmp \w1, \w2 /* Are w1 and w2 the same? */ - magic_find_zero_bytes \w1 - it eq - cmpeq ip, #0 /* Is there a zero byte in w1? */ - bne \label - .endm /* magic_compare_and_branch */ - - .macro magic_find_zero_bytes w1 - /* Macro to find all-zero bytes in w1, result is in ip. */ - uadd8 ip, \w1, r6 - sel ip, r7, r6 - .endm /* magic_find_zero_bytes */ - - .macro setup_return w1 w2 -#ifdef __ARMEB__ - mov r1, \w1 - mov r2, \w2 -#else /* not __ARMEB__ */ - rev r1, \w1 - rev r2, \w2 -#endif /* not __ARMEB__ */ - .endm /* setup_return */ - - pld [r0, #0] - pld [r1, #0] - - /* Are both strings double-word aligned? */ - orr ip, r0, r1 - tst ip, #7 - bne .L_do_align - - /* Fast path. */ - init - -.L_doubleword_aligned: - - /* Get here when the strings to compare are double-word aligned. */ - /* Compare two words in every iteration. */ - .p2align 2 -2: - pld [r0, #16] - pld [r1, #16] - - /* Load the next double-word from each string. */ - ldrd r2, r3, [r0], #8 - ldrd r4, r5, [r1], #8 - - magic_compare_and_branch w1=r2, w2=r4, label=.L_return_24 - magic_compare_and_branch w1=r3, w2=r5, label=.L_return_35 - b 2b - -.L_do_align: - /* Is the first string word-aligned? */ - ands ip, r0, #3 - beq .L_word_aligned_r0 - - /* Fast compare byte by byte until the first string is word-aligned. */ - /* The offset of r0 from a word boundary is in ip. Thus, the number of bytes - to read until the next word boundary is 4-ip. */ - bic r0, r0, #3 - ldr r2, [r0], #4 - lsls ip, ip, #31 - beq .L_byte2 - bcs .L_byte3 - -.L_byte1: - ldrb ip, [r1], #1 - uxtb r3, r2, ror #BYTE1_OFFSET - subs ip, r3, ip - bne .L_fast_return - m_cbz reg=r3, label=.L_fast_return - -.L_byte2: - ldrb ip, [r1], #1 - uxtb r3, r2, ror #BYTE2_OFFSET - subs ip, r3, ip - bne .L_fast_return - m_cbz reg=r3, label=.L_fast_return - -.L_byte3: - ldrb ip, [r1], #1 - uxtb r3, r2, ror #BYTE3_OFFSET - subs ip, r3, ip - bne .L_fast_return - m_cbnz reg=r3, label=.L_word_aligned_r0 - -.L_fast_return: - mov r0, ip - bx lr - -.L_word_aligned_r0: - init - /* The first string is word-aligned. */ - /* Is the second string word-aligned? */ - ands ip, r1, #3 - bne .L_strcmp_unaligned - -.L_word_aligned: - /* The strings are word-aligned. */ - /* Is the first string double-word aligned? */ - tst r0, #4 - beq .L_doubleword_aligned_r0 - - /* If r0 is not double-word aligned yet, align it by loading - and comparing the next word from each string. */ - ldr r2, [r0], #4 - ldr r4, [r1], #4 - magic_compare_and_branch w1=r2 w2=r4 label=.L_return_24 - -.L_doubleword_aligned_r0: - /* Get here when r0 is double-word aligned. */ - /* Is r1 doubleword_aligned? */ - tst r1, #4 - beq .L_doubleword_aligned - - /* Get here when the strings to compare are word-aligned, - r0 is double-word aligned, but r1 is not double-word aligned. */ - - /* Initialize the queue. */ - ldr r5, [r1], #4 - - /* Compare two words in every iteration. */ - .p2align 2 -3: - pld [r0, #16] - pld [r1, #16] - - /* Load the next double-word from each string and compare. */ - ldrd r2, r3, [r0], #8 - magic_compare_and_branch w1=r2 w2=r5 label=.L_return_25 - ldrd r4, r5, [r1], #8 - magic_compare_and_branch w1=r3 w2=r4 label=.L_return_34 - b 3b - - .macro miscmp_word offsetlo offsethi - /* Macro to compare misaligned strings. */ - /* r0, r1 are word-aligned, and at least one of the strings - is not double-word aligned. */ - /* Compare one word in every loop iteration. */ - /* OFFSETLO is the original bit-offset of r1 from a word-boundary, - OFFSETHI is 32 - OFFSETLO (i.e., offset from the next word). */ - - /* Initialize the shift queue. */ - ldr r5, [r1], #4 - - /* Compare one word from each string in every loop iteration. */ - .p2align 2 -7: - ldr r3, [r0], #4 - S2LOMEM r5, r5, #\offsetlo - magic_find_zero_bytes w1=r3 - cmp r7, ip, S2HIMEM #\offsetlo - and r2, r3, r6, S2LOMEM #\offsetlo - it eq - cmpeq r2, r5 - bne .L_return_25 - ldr r5, [r1], #4 - cmp ip, #0 - eor r3, r2, r3 - S2HIMEM r2, r5, #\offsethi - it eq - cmpeq r3, r2 - bne .L_return_32 - b 7b - .endm /* miscmp_word */ - -.L_return_32: - setup_return w1=r3, w2=r2 - b .L_do_return -.L_return_34: - setup_return w1=r3, w2=r4 - b .L_do_return -.L_return_25: - setup_return w1=r2, w2=r5 - b .L_do_return -.L_return_35: - setup_return w1=r3, w2=r5 - b .L_do_return -.L_return_24: - setup_return w1=r2, w2=r4 - -.L_do_return: - -#ifdef __ARMEB__ - mov r0, ip -#else /* not __ARMEB__ */ - rev r0, ip -#endif /* not __ARMEB__ */ - - /* Restore temporaries early, before computing the return value. */ - ldrd r6, r7, [sp] - ldrd r4, r5, [sp, #8] - adds sp, sp, #16 - .cfi_def_cfa_offset 0 - .cfi_restore r4 - .cfi_restore r5 - .cfi_restore r6 - .cfi_restore r7 - - /* There is a zero or a different byte between r1 and r2. */ - /* r0 contains a mask of all-zero bytes in r1. */ - /* Using r0 and not ip here because cbz requires low register. */ - m_cbz reg=r0, label=.L_compute_return_value - clz r0, r0 - /* r0 contains the number of bits on the left of the first all-zero byte in r1. */ - rsb r0, r0, #24 - /* Here, r0 contains the number of bits on the right of the first all-zero byte in r1. */ - lsr r1, r1, r0 - lsr r2, r2, r0 - -.L_compute_return_value: - movs r0, #1 - cmp r1, r2 - /* The return value is computed as follows. - If r1>r2 then (C==1 and Z==0) and LS doesn't hold and r0 is #1 at return. - If r1<r2 then (C==0 and Z==0) and we execute SBC with carry_in=0, - which means r0:=r0-r0-1 and r0 is #-1 at return. - If r1=r2 then (C==1 and Z==1) and we execute SBC with carry_in=1, - which means r0:=r0-r0 and r0 is #0 at return. - (C==0 and Z==1) cannot happen because the carry bit is "not borrow". */ - it ls - sbcls r0, r0, r0 - bx lr - - /* The code from the previous version of strcmp.S handles all of the - * cases where the first string and seconds string cannot both be - * aligned to a word boundary faster than the new algorithm. See - * bionic/libc/arch-arm/cortex-a15/bionic/strcmp.S for the unedited - * version of the code. - */ -.L_strcmp_unaligned: - wp1 .req r0 - wp2 .req r1 - b1 .req r2 - w1 .req r4 - w2 .req r5 - t1 .req ip - @ r3 is scratch - -2: - mov b1, #1 - orr b1, b1, b1, lsl #8 - orr b1, b1, b1, lsl #16 - - and t1, wp2, #3 - bic wp2, wp2, #3 - ldr w1, [wp1], #4 - ldr w2, [wp2], #4 - cmp t1, #2 - beq 2f - bhi 3f - - /* Critical inner Loop: Block with 3 bytes initial overlap */ - .p2align 2 -1: - bic t1, w1, #MSB - cmp t1, w2, S2LOMEM #8 - sub r3, w1, b1 - bic r3, r3, w1 - bne 4f - ands r3, r3, b1, lsl #7 - it eq - ldreq w2, [wp2], #4 - bne 5f - eor t1, t1, w1 - cmp t1, w2, S2HIMEM #24 - bne 6f - ldr w1, [wp1], #4 - b 1b -4: - S2LOMEM w2, w2, #8 - b 8f - -5: -#ifdef __ARMEB__ - /* The syndrome value may contain false ones if the string ends - * with the bytes 0x01 0x00 - */ - tst w1, #0xff000000 - itt ne - tstne w1, #0x00ff0000 - tstne w1, #0x0000ff00 - beq 7f -#else - bics r3, r3, #0xff000000 - bne 7f -#endif - ldrb w2, [wp2] - S2LOMEM t1, w1, #24 -#ifdef __ARMEB__ - lsl w2, w2, #24 -#endif - b 8f - -6: - S2LOMEM t1, w1, #24 - and w2, w2, #LSB - b 8f - - /* Critical inner Loop: Block with 2 bytes initial overlap */ - .p2align 2 -2: - S2HIMEM t1, w1, #16 - sub r3, w1, b1 - S2LOMEM t1, t1, #16 - bic r3, r3, w1 - cmp t1, w2, S2LOMEM #16 - bne 4f - ands r3, r3, b1, lsl #7 - it eq - ldreq w2, [wp2], #4 - bne 5f - eor t1, t1, w1 - cmp t1, w2, S2HIMEM #16 - bne 6f - ldr w1, [wp1], #4 - b 2b - -5: -#ifdef __ARMEB__ - /* The syndrome value may contain false ones if the string ends - * with the bytes 0x01 0x00 - */ - tst w1, #0xff000000 - it ne - tstne w1, #0x00ff0000 - beq 7f -#else - lsls r3, r3, #16 - bne 7f -#endif - ldrh w2, [wp2] - S2LOMEM t1, w1, #16 -#ifdef __ARMEB__ - lsl w2, w2, #16 -#endif - b 8f - -6: - S2HIMEM w2, w2, #16 - S2LOMEM t1, w1, #16 -4: - S2LOMEM w2, w2, #16 - b 8f - - /* Critical inner Loop: Block with 1 byte initial overlap */ - .p2align 2 -3: - and t1, w1, #LSB - cmp t1, w2, S2LOMEM #24 - sub r3, w1, b1 - bic r3, r3, w1 - bne 4f - ands r3, r3, b1, lsl #7 - it eq - ldreq w2, [wp2], #4 - bne 5f - eor t1, t1, w1 - cmp t1, w2, S2HIMEM #8 - bne 6f - ldr w1, [wp1], #4 - b 3b -4: - S2LOMEM w2, w2, #24 - b 8f -5: - /* The syndrome value may contain false ones if the string ends - * with the bytes 0x01 0x00 - */ - tst w1, #LSB - beq 7f - ldr w2, [wp2], #4 -6: - S2LOMEM t1, w1, #8 - bic w2, w2, #MSB - b 8f -7: - mov r0, #0 - - /* Restore registers and stack. */ - ldrd r6, r7, [sp] - ldrd r4, r5, [sp, #8] - adds sp, sp, #16 - .cfi_def_cfa_offset 0 - .cfi_restore r4 - .cfi_restore r5 - .cfi_restore r6 - .cfi_restore r7 - - bx lr - -8: - and r2, t1, #LSB - and r0, w2, #LSB - cmp r0, #1 - it cs - cmpcs r0, r2 - itt eq - S2LOMEMEQ t1, t1, #8 - S2LOMEMEQ w2, w2, #8 - beq 8b - sub r0, r2, r0 - - /* Restore registers and stack. */ - ldrd r6, r7, [sp] - ldrd r4, r5, [sp, #8] - adds sp, sp, #16 - - bx lr -END(strcmp_a9) diff --git a/libc/arch-arm/dynamic_function_dispatch.cpp b/libc/arch-arm/dynamic_function_dispatch.cpp index 640f3306a..5e1b8b0e0 100644 --- a/libc/arch-arm/dynamic_function_dispatch.cpp +++ b/libc/arch-arm/dynamic_function_dispatch.cpp @@ -288,16 +288,7 @@ DEFINE_IFUNC(__strcat_chk) { typedef int strcmp_func(const char* __lhs, const char* __rhs); DEFINE_IFUNC(strcmp) { - switch(get_cpu_variant()) { - case kCortexA9: - RETURN_FUNC(strcmp_func, strcmp_a9); - case kCortexA55: - case kKrait: - case kKryo: - RETURN_FUNC(strcmp_func, strcmp_krait); - default: - RETURN_FUNC(strcmp_func, strcmp_a15); - } + RETURN_FUNC(strcmp_func, strcmp_a15); } typedef size_t strlen_func(const char* __s); diff --git a/libc/arch-arm/krait/bionic/strcmp.S b/libc/arch-arm/krait/bionic/strcmp.S deleted file mode 100644 index ec692e524..000000000 --- a/libc/arch-arm/krait/bionic/strcmp.S +++ /dev/null @@ -1,489 +0,0 @@ -/* - * Copyright (c) 2013 ARM Ltd - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the company may not be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED - * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include <private/bionic_asm.h> - -#ifdef __ARMEB__ -#define S2LOMEM lsl -#define S2LOMEMEQ lsleq -#define S2HIMEM lsr -#define MSB 0x000000ff -#define LSB 0xff000000 -#define BYTE0_OFFSET 24 -#define BYTE1_OFFSET 16 -#define BYTE2_OFFSET 8 -#define BYTE3_OFFSET 0 -#else /* not __ARMEB__ */ -#define S2LOMEM lsr -#define S2LOMEMEQ lsreq -#define S2HIMEM lsl -#define BYTE0_OFFSET 0 -#define BYTE1_OFFSET 8 -#define BYTE2_OFFSET 16 -#define BYTE3_OFFSET 24 -#define MSB 0xff000000 -#define LSB 0x000000ff -#endif /* not __ARMEB__ */ - -.syntax unified - -// To avoid warning about deprecated instructions, add an explicit -// arch. The code generated is exactly the same. -.arch armv7-a - -#if defined (__thumb__) - .thumb - .thumb_func -#endif - -ENTRY(strcmp_krait) - /* Use LDRD whenever possible. */ - -/* The main thing to look out for when comparing large blocks is that - the loads do not cross a page boundary when loading past the index - of the byte with the first difference or the first string-terminator. - - For example, if the strings are identical and the string-terminator - is at index k, byte by byte comparison will not load beyond address - s1+k and s2+k; word by word comparison may load up to 3 bytes beyond - k; double word - up to 7 bytes. If the load of these bytes crosses - a page boundary, it might cause a memory fault (if the page is not mapped) - that would not have happened in byte by byte comparison. - - If an address is (double) word aligned, then a load of a (double) word - from that address will not cross a page boundary. - Therefore, the algorithm below considers word and double-word alignment - of strings separately. */ - -/* High-level description of the algorithm. - - * The fast path: if both strings are double-word aligned, - use LDRD to load two words from each string in every loop iteration. - * If the strings have the same offset from a word boundary, - use LDRB to load and compare byte by byte until - the first string is aligned to a word boundary (at most 3 bytes). - This is optimized for quick return on short unaligned strings. - * If the strings have the same offset from a double-word boundary, - use LDRD to load two words from each string in every loop iteration, as in the fast path. - * If the strings do not have the same offset from a double-word boundary, - load a word from the second string before the loop to initialize the queue. - Use LDRD to load two words from every string in every loop iteration. - Inside the loop, load the second word from the second string only after comparing - the first word, using the queued value, to guarantee safety across page boundaries. - * If the strings do not have the same offset from a word boundary, - use LDR and a shift queue. Order of loads and comparisons matters, - similarly to the previous case. - - * Use UADD8 and SEL to compare words, and use REV and CLZ to compute the return value. - * The only difference between ARM and Thumb modes is the use of CBZ instruction. - * The only difference between big and little endian is the use of REV in little endian - to compute the return value, instead of MOV. -*/ - - .macro m_cbz reg label -#ifdef __thumb2__ - cbz \reg, \label -#else /* not defined __thumb2__ */ - cmp \reg, #0 - beq \label -#endif /* not defined __thumb2__ */ - .endm /* m_cbz */ - - .macro m_cbnz reg label -#ifdef __thumb2__ - cbnz \reg, \label -#else /* not defined __thumb2__ */ - cmp \reg, #0 - bne \label -#endif /* not defined __thumb2__ */ - .endm /* m_cbnz */ - - .macro init - /* Macro to save temporary registers and prepare magic values. */ - subs sp, sp, #16 - .cfi_def_cfa_offset 16 - strd r4, r5, [sp, #8] - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - strd r6, r7, [sp] - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - mvn r6, #0 /* all F */ - mov r7, #0 /* all 0 */ - .endm /* init */ - - .macro magic_compare_and_branch w1 w2 label - /* Macro to compare registers w1 and w2 and conditionally branch to label. */ - cmp \w1, \w2 /* Are w1 and w2 the same? */ - magic_find_zero_bytes \w1 - it eq - cmpeq ip, #0 /* Is there a zero byte in w1? */ - bne \label - .endm /* magic_compare_and_branch */ - - .macro magic_find_zero_bytes w1 - /* Macro to find all-zero bytes in w1, result is in ip. */ - uadd8 ip, \w1, r6 - sel ip, r7, r6 - .endm /* magic_find_zero_bytes */ - - .macro setup_return w1 w2 -#ifdef __ARMEB__ - mov r1, \w1 - mov r2, \w2 -#else /* not __ARMEB__ */ - rev r1, \w1 - rev r2, \w2 -#endif /* not __ARMEB__ */ - .endm /* setup_return */ - - pld [r0, #0] - pld [r1, #0] - - /* Are both strings double-word aligned? */ - orr ip, r0, r1 - tst ip, #7 - bne .L_do_align - - /* Fast path. */ - init - -.L_doubleword_aligned: - - /* Get here when the strings to compare are double-word aligned. */ - /* Compare two words in every iteration. */ - .p2align 2 -2: - pld [r0, #16] - pld [r1, #16] - - /* Load the next double-word from each string. */ - ldrd r2, r3, [r0], #8 - ldrd r4, r5, [r1], #8 - - magic_compare_and_branch w1=r2, w2=r4, label=.L_return_24 - magic_compare_and_branch w1=r3, w2=r5, label=.L_return_35 - b 2b - -.L_do_align: - /* Is the first string word-aligned? */ - ands ip, r0, #3 - beq .L_word_aligned_r0 - - /* Fast compare byte by byte until the first string is word-aligned. */ - /* The offset of r0 from a word boundary is in ip. Thus, the number of bytes - to read until the next word boundary is 4-ip. */ - bic r0, r0, #3 - ldr r2, [r0], #4 - lsls ip, ip, #31 - beq .L_byte2 - bcs .L_byte3 - -.L_byte1: - ldrb ip, [r1], #1 - uxtb r3, r2, ror #BYTE1_OFFSET - subs ip, r3, ip - bne .L_fast_return - m_cbz reg=r3, label=.L_fast_return - -.L_byte2: - ldrb ip, [r1], #1 - uxtb r3, r2, ror #BYTE2_OFFSET - subs ip, r3, ip - bne .L_fast_return - m_cbz reg=r3, label=.L_fast_return - -.L_byte3: - ldrb ip, [r1], #1 - uxtb r3, r2, ror #BYTE3_OFFSET - subs ip, r3, ip - bne .L_fast_return - m_cbnz reg=r3, label=.L_word_aligned_r0 - -.L_fast_return: - mov r0, ip - bx lr - -.L_word_aligned_r0: - init - /* The first string is word-aligned. */ - /* Is the second string word-aligned? */ - ands ip, r1, #3 - bne .L_strcmp_unaligned - -.L_word_aligned: - /* The strings are word-aligned. */ - /* Is the first string double-word aligned? */ - tst r0, #4 - beq .L_doubleword_aligned_r0 - - /* If r0 is not double-word aligned yet, align it by loading - and comparing the next word from each string. */ - ldr r2, [r0], #4 - ldr r4, [r1], #4 - magic_compare_and_branch w1=r2 w2=r4 label=.L_return_24 - -.L_doubleword_aligned_r0: - /* Get here when r0 is double-word aligned. */ - /* Is r1 doubleword_aligned? */ - tst r1, #4 - beq .L_doubleword_aligned - - /* Get here when the strings to compare are word-aligned, - r0 is double-word aligned, but r1 is not double-word aligned. */ - - /* Initialize the queue. */ - ldr r5, [r1], #4 - - /* Compare two words in every iteration. */ - .p2align 2 -3: - pld [r0, #16] - pld [r1, #16] - - /* Load the next double-word from each string and compare. */ - ldrd r2, r3, [r0], #8 - magic_compare_and_branch w1=r2 w2=r5 label=.L_return_25 - ldrd r4, r5, [r1], #8 - magic_compare_and_branch w1=r3 w2=r4 label=.L_return_34 - b 3b - - .macro miscmp_word offsetlo offsethi - /* Macro to compare misaligned strings. */ - /* r0, r1 are word-aligned, and at least one of the strings - is not double-word aligned. */ - /* Compare one word in every loop iteration. */ - /* OFFSETLO is the original bit-offset of r1 from a word-boundary, - OFFSETHI is 32 - OFFSETLO (i.e., offset from the next word). */ - - /* Initialize the shift queue. */ - ldr r5, [r1], #4 - - /* Compare one word from each string in every loop iteration. */ - .p2align 2 -7: - ldr r3, [r0], #4 - S2LOMEM r5, r5, #\offsetlo - magic_find_zero_bytes w1=r3 - cmp r7, ip, S2HIMEM #\offsetlo - and r2, r3, r6, S2LOMEM #\offsetlo - it eq - cmpeq r2, r5 - bne .L_return_25 - ldr r5, [r1], #4 - cmp ip, #0 - eor r3, r2, r3 - S2HIMEM r2, r5, #\offsethi - it eq - cmpeq r3, r2 - bne .L_return_32 - b 7b - .endm /* miscmp_word */ - -.L_strcmp_unaligned: - /* r0 is word-aligned, r1 is at offset ip from a word. */ - /* Align r1 to the (previous) word-boundary. */ - bic r1, r1, #3 - - /* Unaligned comparison word by word using LDRs. */ - cmp ip, #2 - beq .L_miscmp_word_16 /* If ip == 2. */ - bge .L_miscmp_word_24 /* If ip == 3. */ - miscmp_word offsetlo=8 offsethi=24 /* If ip == 1. */ -.L_miscmp_word_24: miscmp_word offsetlo=24 offsethi=8 - - -.L_return_32: - setup_return w1=r3, w2=r2 - b .L_do_return -.L_return_34: - setup_return w1=r3, w2=r4 - b .L_do_return -.L_return_25: - setup_return w1=r2, w2=r5 - b .L_do_return -.L_return_35: - setup_return w1=r3, w2=r5 - b .L_do_return -.L_return_24: - setup_return w1=r2, w2=r4 - -.L_do_return: - -#ifdef __ARMEB__ - mov r0, ip -#else /* not __ARMEB__ */ - rev r0, ip -#endif /* not __ARMEB__ */ - - /* Restore temporaries early, before computing the return value. */ - ldrd r6, r7, [sp] - ldrd r4, r5, [sp, #8] - adds sp, sp, #16 - .cfi_def_cfa_offset 0 - .cfi_restore r4 - .cfi_restore r5 - .cfi_restore r6 - .cfi_restore r7 - - /* There is a zero or a different byte between r1 and r2. */ - /* r0 contains a mask of all-zero bytes in r1. */ - /* Using r0 and not ip here because cbz requires low register. */ - m_cbz reg=r0, label=.L_compute_return_value - clz r0, r0 - /* r0 contains the number of bits on the left of the first all-zero byte in r1. */ - rsb r0, r0, #24 - /* Here, r0 contains the number of bits on the right of the first all-zero byte in r1. */ - lsr r1, r1, r0 - lsr r2, r2, r0 - -.L_compute_return_value: - movs r0, #1 - cmp r1, r2 - /* The return value is computed as follows. - If r1>r2 then (C==1 and Z==0) and LS doesn't hold and r0 is #1 at return. - If r1<r2 then (C==0 and Z==0) and we execute SBC with carry_in=0, - which means r0:=r0-r0-1 and r0 is #-1 at return. - If r1=r2 then (C==1 and Z==1) and we execute SBC with carry_in=1, - which means r0:=r0-r0 and r0 is #0 at return. - (C==0 and Z==1) cannot happen because the carry bit is "not borrow". */ - it ls - sbcls r0, r0, r0 - bx lr - - /* The code from the previous version of strcmp.S handles this - * particular case (the second string is 2 bytes off a word alignment) - * faster than any current version. In this very specific case, use the - * previous version. See bionic/libc/arch-arm/cortex-a15/bionic/strcmp.S - * for the unedited version of this code. - */ -.L_miscmp_word_16: - wp1 .req r0 - wp2 .req r1 - b1 .req r2 - w1 .req r4 - w2 .req r5 - t1 .req ip - @ r3 is scratch - - /* At this point, wp1 (r0) has already been word-aligned. */ -2: - mov b1, #1 - orr b1, b1, b1, lsl #8 - orr b1, b1, b1, lsl #16 - - and t1, wp2, #3 - bic wp2, wp2, #3 - ldr w1, [wp1], #4 - ldr w2, [wp2], #4 - - /* Critical inner Loop: Block with 2 bytes initial overlap */ - .p2align 2 -2: - S2HIMEM t1, w1, #16 - sub r3, w1, b1 - S2LOMEM t1, t1, #16 - bic r3, r3, w1 - cmp t1, w2, S2LOMEM #16 - bne 4f - ands r3, r3, b1, lsl #7 - it eq - ldreq w2, [wp2], #4 - bne 5f - eor t1, t1, w1 - cmp t1, w2, S2HIMEM #16 - bne 6f - ldr w1, [wp1], #4 - b 2b - -5: -#ifdef __ARMEB__ - /* The syndrome value may contain false ones if the string ends - * with the bytes 0x01 0x00 - */ - tst w1, #0xff000000 - it ne - tstne w1, #0x00ff0000 - beq 7f -#else - lsls r3, r3, #16 - bne 7f -#endif - ldrh w2, [wp2] - S2LOMEM t1, w1, #16 -#ifdef __ARMEB__ - lsl w2, w2, #16 -#endif - b 8f - -6: - S2HIMEM w2, w2, #16 - S2LOMEM t1, w1, #16 -4: - S2LOMEM w2, w2, #16 - b 8f - -7: - mov r0, #0 - - /* Restore registers and stack. */ - ldrd r6, r7, [sp] - ldrd r4, r5, [sp, #8] - adds sp, sp, #16 - .cfi_def_cfa_offset 0 - .cfi_restore r4 - .cfi_restore r5 - .cfi_restore r6 - .cfi_restore r7 - - bx lr - -8: - and r2, t1, #LSB - and r0, w2, #LSB - cmp r0, #1 - it cs - cmpcs r0, r2 - itt eq - S2LOMEMEQ t1, t1, #8 - S2LOMEMEQ w2, w2, #8 - beq 8b - sub r0, r2, r0 - - /* Restore registers and stack. */ - ldrd r6, r7, [sp] - ldrd r4, r5, [sp, #8] - adds sp, sp, #16 - .cfi_def_cfa_offset 0 - .cfi_restore r4 - .cfi_restore r5 - .cfi_restore r6 - .cfi_restore r7 - - bx lr -END(strcmp_krait) diff --git a/libc/arch-arm/syscalls/___clock_nanosleep.S b/libc/arch-arm/syscalls/___clock_nanosleep.S deleted file mode 100644 index ef8f06505..000000000 --- a/libc/arch-arm/syscalls/___clock_nanosleep.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___clock_nanosleep) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_clock_nanosleep - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(___clock_nanosleep) -.hidden ___clock_nanosleep diff --git a/libc/arch-arm/syscalls/___close.S b/libc/arch-arm/syscalls/___close.S deleted file mode 100644 index 05d33528d..000000000 --- a/libc/arch-arm/syscalls/___close.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___close) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_close - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(___close) -.hidden ___close diff --git a/libc/arch-arm/syscalls/___faccessat.S b/libc/arch-arm/syscalls/___faccessat.S deleted file mode 100644 index 8bb4cf830..000000000 --- a/libc/arch-arm/syscalls/___faccessat.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___faccessat) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_faccessat - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(___faccessat) -.hidden ___faccessat diff --git a/libc/arch-arm/syscalls/___fchmod.S b/libc/arch-arm/syscalls/___fchmod.S deleted file mode 100644 index b2312cb50..000000000 --- a/libc/arch-arm/syscalls/___fchmod.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fchmod) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_fchmod - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(___fchmod) -.hidden ___fchmod diff --git a/libc/arch-arm/syscalls/___fchmodat.S b/libc/arch-arm/syscalls/___fchmodat.S deleted file mode 100644 index 4773610db..000000000 --- a/libc/arch-arm/syscalls/___fchmodat.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fchmodat) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_fchmodat - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(___fchmodat) -.hidden ___fchmodat diff --git a/libc/arch-arm/syscalls/___fgetxattr.S b/libc/arch-arm/syscalls/___fgetxattr.S deleted file mode 100644 index 25be039da..000000000 --- a/libc/arch-arm/syscalls/___fgetxattr.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fgetxattr) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_fgetxattr - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(___fgetxattr) -.hidden ___fgetxattr diff --git a/libc/arch-arm/syscalls/___flistxattr.S b/libc/arch-arm/syscalls/___flistxattr.S deleted file mode 100644 index 904e4ca7a..000000000 --- a/libc/arch-arm/syscalls/___flistxattr.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___flistxattr) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_flistxattr - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(___flistxattr) -.hidden ___flistxattr diff --git a/libc/arch-arm/syscalls/___fsetxattr.S b/libc/arch-arm/syscalls/___fsetxattr.S deleted file mode 100644 index 544519173..000000000 --- a/libc/arch-arm/syscalls/___fsetxattr.S +++ /dev/null @@ -1,23 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fsetxattr) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_fsetxattr - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(___fsetxattr) -.hidden ___fsetxattr diff --git a/libc/arch-arm/syscalls/___mremap.S b/libc/arch-arm/syscalls/___mremap.S deleted file mode 100644 index ade8d7897..000000000 --- a/libc/arch-arm/syscalls/___mremap.S +++ /dev/null @@ -1,23 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___mremap) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_mremap - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(___mremap) -.hidden ___mremap diff --git a/libc/arch-arm/syscalls/___rt_sigqueueinfo.S b/libc/arch-arm/syscalls/___rt_sigqueueinfo.S deleted file mode 100644 index 1367e5602..000000000 --- a/libc/arch-arm/syscalls/___rt_sigqueueinfo.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___rt_sigqueueinfo) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_rt_sigqueueinfo - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(___rt_sigqueueinfo) -.hidden ___rt_sigqueueinfo diff --git a/libc/arch-arm/syscalls/__accept4.S b/libc/arch-arm/syscalls/__accept4.S deleted file mode 100644 index 42aa47cc2..000000000 --- a/libc/arch-arm/syscalls/__accept4.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__accept4) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_accept4 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__accept4) diff --git a/libc/arch-arm/syscalls/__arm_fadvise64_64.S b/libc/arch-arm/syscalls/__arm_fadvise64_64.S deleted file mode 100644 index 761c4d6ee..000000000 --- a/libc/arch-arm/syscalls/__arm_fadvise64_64.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__arm_fadvise64_64) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_arm_fadvise64_64 - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__arm_fadvise64_64) diff --git a/libc/arch-arm/syscalls/__brk.S b/libc/arch-arm/syscalls/__brk.S deleted file mode 100644 index 246924c9a..000000000 --- a/libc/arch-arm/syscalls/__brk.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__brk) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_brk - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__brk) diff --git a/libc/arch-arm/syscalls/__clock_getres.S b/libc/arch-arm/syscalls/__clock_getres.S deleted file mode 100644 index 439b5b8b6..000000000 --- a/libc/arch-arm/syscalls/__clock_getres.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__clock_getres) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_clock_getres - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__clock_getres) diff --git a/libc/arch-arm/syscalls/__clock_gettime.S b/libc/arch-arm/syscalls/__clock_gettime.S deleted file mode 100644 index 30eff0338..000000000 --- a/libc/arch-arm/syscalls/__clock_gettime.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__clock_gettime) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_clock_gettime - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__clock_gettime) diff --git a/libc/arch-arm/syscalls/__connect.S b/libc/arch-arm/syscalls/__connect.S deleted file mode 100644 index 873b14dd1..000000000 --- a/libc/arch-arm/syscalls/__connect.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__connect) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_connect - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__connect) diff --git a/libc/arch-arm/syscalls/__epoll_pwait.S b/libc/arch-arm/syscalls/__epoll_pwait.S deleted file mode 100644 index 3642ee38c..000000000 --- a/libc/arch-arm/syscalls/__epoll_pwait.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__epoll_pwait) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_epoll_pwait - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__epoll_pwait) diff --git a/libc/arch-arm/syscalls/__exit.S b/libc/arch-arm/syscalls/__exit.S deleted file mode 100644 index 4ed31b008..000000000 --- a/libc/arch-arm/syscalls/__exit.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__exit) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_exit - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__exit) diff --git a/libc/arch-arm/syscalls/__fcntl64.S b/libc/arch-arm/syscalls/__fcntl64.S deleted file mode 100644 index 0afdbee6c..000000000 --- a/libc/arch-arm/syscalls/__fcntl64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fcntl64) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_fcntl64 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__fcntl64) diff --git a/libc/arch-arm/syscalls/__fstatfs64.S b/libc/arch-arm/syscalls/__fstatfs64.S deleted file mode 100644 index 9117313ee..000000000 --- a/libc/arch-arm/syscalls/__fstatfs64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fstatfs64) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_fstatfs64 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__fstatfs64) diff --git a/libc/arch-arm/syscalls/__getcpu.S b/libc/arch-arm/syscalls/__getcpu.S deleted file mode 100644 index 430acb307..000000000 --- a/libc/arch-arm/syscalls/__getcpu.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getcpu) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getcpu - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__getcpu) diff --git a/libc/arch-arm/syscalls/__getcwd.S b/libc/arch-arm/syscalls/__getcwd.S deleted file mode 100644 index 53000b82a..000000000 --- a/libc/arch-arm/syscalls/__getcwd.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getcwd) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getcwd - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__getcwd) diff --git a/libc/arch-arm/syscalls/__getdents64.S b/libc/arch-arm/syscalls/__getdents64.S deleted file mode 100644 index 0ea61b8b4..000000000 --- a/libc/arch-arm/syscalls/__getdents64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getdents64) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getdents64 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__getdents64) diff --git a/libc/arch-arm/syscalls/__getpid.S b/libc/arch-arm/syscalls/__getpid.S deleted file mode 100644 index b55538532..000000000 --- a/libc/arch-arm/syscalls/__getpid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getpid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getpid - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__getpid) diff --git a/libc/arch-arm/syscalls/__getpriority.S b/libc/arch-arm/syscalls/__getpriority.S deleted file mode 100644 index 34f4beae2..000000000 --- a/libc/arch-arm/syscalls/__getpriority.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getpriority) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getpriority - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__getpriority) diff --git a/libc/arch-arm/syscalls/__gettimeofday.S b/libc/arch-arm/syscalls/__gettimeofday.S deleted file mode 100644 index de0eca5eb..000000000 --- a/libc/arch-arm/syscalls/__gettimeofday.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__gettimeofday) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_gettimeofday - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__gettimeofday) diff --git a/libc/arch-arm/syscalls/__ioctl.S b/libc/arch-arm/syscalls/__ioctl.S deleted file mode 100644 index 5871e58c1..000000000 --- a/libc/arch-arm/syscalls/__ioctl.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ioctl) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_ioctl - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__ioctl) diff --git a/libc/arch-arm/syscalls/__llseek.S b/libc/arch-arm/syscalls/__llseek.S deleted file mode 100644 index 3cff31815..000000000 --- a/libc/arch-arm/syscalls/__llseek.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__llseek) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR__llseek - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__llseek) diff --git a/libc/arch-arm/syscalls/__mmap2.S b/libc/arch-arm/syscalls/__mmap2.S deleted file mode 100644 index f11e46795..000000000 --- a/libc/arch-arm/syscalls/__mmap2.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__mmap2) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_mmap2 - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__mmap2) diff --git a/libc/arch-arm/syscalls/__openat.S b/libc/arch-arm/syscalls/__openat.S deleted file mode 100644 index 403d9b5c3..000000000 --- a/libc/arch-arm/syscalls/__openat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__openat) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_openat - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__openat) diff --git a/libc/arch-arm/syscalls/__ppoll.S b/libc/arch-arm/syscalls/__ppoll.S deleted file mode 100644 index 02de8a8bc..000000000 --- a/libc/arch-arm/syscalls/__ppoll.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ppoll) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_ppoll - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__ppoll) diff --git a/libc/arch-arm/syscalls/__preadv64.S b/libc/arch-arm/syscalls/__preadv64.S deleted file mode 100644 index 19eaaa54e..000000000 --- a/libc/arch-arm/syscalls/__preadv64.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__preadv64) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_preadv - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__preadv64) diff --git a/libc/arch-arm/syscalls/__pselect6.S b/libc/arch-arm/syscalls/__pselect6.S deleted file mode 100644 index 8f31e1b7f..000000000 --- a/libc/arch-arm/syscalls/__pselect6.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__pselect6) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_pselect6 - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__pselect6) diff --git a/libc/arch-arm/syscalls/__ptrace.S b/libc/arch-arm/syscalls/__ptrace.S deleted file mode 100644 index 8ad554d98..000000000 --- a/libc/arch-arm/syscalls/__ptrace.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ptrace) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_ptrace - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__ptrace) diff --git a/libc/arch-arm/syscalls/__pwritev64.S b/libc/arch-arm/syscalls/__pwritev64.S deleted file mode 100644 index afcbe403e..000000000 --- a/libc/arch-arm/syscalls/__pwritev64.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__pwritev64) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_pwritev - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__pwritev64) diff --git a/libc/arch-arm/syscalls/__reboot.S b/libc/arch-arm/syscalls/__reboot.S deleted file mode 100644 index 15ca81477..000000000 --- a/libc/arch-arm/syscalls/__reboot.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__reboot) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_reboot - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__reboot) diff --git a/libc/arch-arm/syscalls/__rt_sigaction.S b/libc/arch-arm/syscalls/__rt_sigaction.S deleted file mode 100644 index 21d99773c..000000000 --- a/libc/arch-arm/syscalls/__rt_sigaction.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigaction) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_rt_sigaction - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__rt_sigaction) diff --git a/libc/arch-arm/syscalls/__rt_sigpending.S b/libc/arch-arm/syscalls/__rt_sigpending.S deleted file mode 100644 index b726b854c..000000000 --- a/libc/arch-arm/syscalls/__rt_sigpending.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigpending) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_rt_sigpending - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__rt_sigpending) diff --git a/libc/arch-arm/syscalls/__rt_sigprocmask.S b/libc/arch-arm/syscalls/__rt_sigprocmask.S deleted file mode 100644 index 11b326f2e..000000000 --- a/libc/arch-arm/syscalls/__rt_sigprocmask.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigprocmask) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_rt_sigprocmask - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__rt_sigprocmask) diff --git a/libc/arch-arm/syscalls/__rt_sigsuspend.S b/libc/arch-arm/syscalls/__rt_sigsuspend.S deleted file mode 100644 index 5d06418e3..000000000 --- a/libc/arch-arm/syscalls/__rt_sigsuspend.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigsuspend) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_rt_sigsuspend - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__rt_sigsuspend) diff --git a/libc/arch-arm/syscalls/__rt_sigtimedwait.S b/libc/arch-arm/syscalls/__rt_sigtimedwait.S deleted file mode 100644 index dc7c3e727..000000000 --- a/libc/arch-arm/syscalls/__rt_sigtimedwait.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigtimedwait) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_rt_sigtimedwait - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__rt_sigtimedwait) diff --git a/libc/arch-arm/syscalls/__sched_getaffinity.S b/libc/arch-arm/syscalls/__sched_getaffinity.S deleted file mode 100644 index 21f833046..000000000 --- a/libc/arch-arm/syscalls/__sched_getaffinity.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sched_getaffinity) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sched_getaffinity - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__sched_getaffinity) diff --git a/libc/arch-arm/syscalls/__set_tid_address.S b/libc/arch-arm/syscalls/__set_tid_address.S deleted file mode 100644 index 79dfd7f2e..000000000 --- a/libc/arch-arm/syscalls/__set_tid_address.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__set_tid_address) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_set_tid_address - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__set_tid_address) diff --git a/libc/arch-arm/syscalls/__set_tls.S b/libc/arch-arm/syscalls/__set_tls.S deleted file mode 100644 index a9a4b9ad5..000000000 --- a/libc/arch-arm/syscalls/__set_tls.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__set_tls) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__ARM_NR_set_tls - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__set_tls) diff --git a/libc/arch-arm/syscalls/__sigaction.S b/libc/arch-arm/syscalls/__sigaction.S deleted file mode 100644 index 8f3f14388..000000000 --- a/libc/arch-arm/syscalls/__sigaction.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sigaction) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sigaction - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__sigaction) diff --git a/libc/arch-arm/syscalls/__signalfd4.S b/libc/arch-arm/syscalls/__signalfd4.S deleted file mode 100644 index 51a27c887..000000000 --- a/libc/arch-arm/syscalls/__signalfd4.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__signalfd4) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_signalfd4 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__signalfd4) diff --git a/libc/arch-arm/syscalls/__socket.S b/libc/arch-arm/syscalls/__socket.S deleted file mode 100644 index c50cd6feb..000000000 --- a/libc/arch-arm/syscalls/__socket.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__socket) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_socket - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__socket) diff --git a/libc/arch-arm/syscalls/__statfs64.S b/libc/arch-arm/syscalls/__statfs64.S deleted file mode 100644 index 320b0ee93..000000000 --- a/libc/arch-arm/syscalls/__statfs64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__statfs64) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_statfs64 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__statfs64) diff --git a/libc/arch-arm/syscalls/__sync_file_range2.S b/libc/arch-arm/syscalls/__sync_file_range2.S deleted file mode 100644 index 4346e1bd8..000000000 --- a/libc/arch-arm/syscalls/__sync_file_range2.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sync_file_range2) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_sync_file_range2 - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__sync_file_range2) diff --git a/libc/arch-arm/syscalls/__timer_create.S b/libc/arch-arm/syscalls/__timer_create.S deleted file mode 100644 index fd7567b0a..000000000 --- a/libc/arch-arm/syscalls/__timer_create.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_create) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_timer_create - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__timer_create) diff --git a/libc/arch-arm/syscalls/__timer_delete.S b/libc/arch-arm/syscalls/__timer_delete.S deleted file mode 100644 index 6761abbe6..000000000 --- a/libc/arch-arm/syscalls/__timer_delete.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_delete) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_timer_delete - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__timer_delete) diff --git a/libc/arch-arm/syscalls/__timer_getoverrun.S b/libc/arch-arm/syscalls/__timer_getoverrun.S deleted file mode 100644 index a925d835d..000000000 --- a/libc/arch-arm/syscalls/__timer_getoverrun.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_getoverrun) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_timer_getoverrun - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__timer_getoverrun) diff --git a/libc/arch-arm/syscalls/__timer_gettime.S b/libc/arch-arm/syscalls/__timer_gettime.S deleted file mode 100644 index c0da770fe..000000000 --- a/libc/arch-arm/syscalls/__timer_gettime.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_gettime) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_timer_gettime - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__timer_gettime) diff --git a/libc/arch-arm/syscalls/__timer_settime.S b/libc/arch-arm/syscalls/__timer_settime.S deleted file mode 100644 index de4e7e674..000000000 --- a/libc/arch-arm/syscalls/__timer_settime.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_settime) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_timer_settime - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__timer_settime) diff --git a/libc/arch-arm/syscalls/__waitid.S b/libc/arch-arm/syscalls/__waitid.S deleted file mode 100644 index f4dfa5968..000000000 --- a/libc/arch-arm/syscalls/__waitid.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__waitid) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_waitid - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(__waitid) diff --git a/libc/arch-arm/syscalls/_exit.S b/libc/arch-arm/syscalls/_exit.S deleted file mode 100644 index 1c3d17475..000000000 --- a/libc/arch-arm/syscalls/_exit.S +++ /dev/null @@ -1,18 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(_exit) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_exit_group - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(_exit) - -ALIAS_SYMBOL(_Exit, _exit) diff --git a/libc/arch-arm/syscalls/acct.S b/libc/arch-arm/syscalls/acct.S deleted file mode 100644 index cdf1099cd..000000000 --- a/libc/arch-arm/syscalls/acct.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(acct) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_acct - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(acct) diff --git a/libc/arch-arm/syscalls/adjtimex.S b/libc/arch-arm/syscalls/adjtimex.S deleted file mode 100644 index 6ebae7e64..000000000 --- a/libc/arch-arm/syscalls/adjtimex.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(adjtimex) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_adjtimex - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(adjtimex) diff --git a/libc/arch-arm/syscalls/bind.S b/libc/arch-arm/syscalls/bind.S deleted file mode 100644 index af518d83d..000000000 --- a/libc/arch-arm/syscalls/bind.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(bind) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_bind - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(bind) diff --git a/libc/arch-arm/syscalls/cacheflush.S b/libc/arch-arm/syscalls/cacheflush.S deleted file mode 100644 index 752749a13..000000000 --- a/libc/arch-arm/syscalls/cacheflush.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(cacheflush) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__ARM_NR_cacheflush - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(cacheflush) diff --git a/libc/arch-arm/syscalls/capget.S b/libc/arch-arm/syscalls/capget.S deleted file mode 100644 index 9be110b64..000000000 --- a/libc/arch-arm/syscalls/capget.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(capget) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_capget - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(capget) diff --git a/libc/arch-arm/syscalls/capset.S b/libc/arch-arm/syscalls/capset.S deleted file mode 100644 index 0bd50093e..000000000 --- a/libc/arch-arm/syscalls/capset.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(capset) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_capset - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(capset) diff --git a/libc/arch-arm/syscalls/chdir.S b/libc/arch-arm/syscalls/chdir.S deleted file mode 100644 index c75f5e2d6..000000000 --- a/libc/arch-arm/syscalls/chdir.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(chdir) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_chdir - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(chdir) diff --git a/libc/arch-arm/syscalls/chroot.S b/libc/arch-arm/syscalls/chroot.S deleted file mode 100644 index d197d4246..000000000 --- a/libc/arch-arm/syscalls/chroot.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(chroot) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_chroot - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(chroot) diff --git a/libc/arch-arm/syscalls/clock_adjtime.S b/libc/arch-arm/syscalls/clock_adjtime.S deleted file mode 100644 index e59a24064..000000000 --- a/libc/arch-arm/syscalls/clock_adjtime.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(clock_adjtime) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_clock_adjtime - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(clock_adjtime) diff --git a/libc/arch-arm/syscalls/clock_settime.S b/libc/arch-arm/syscalls/clock_settime.S deleted file mode 100644 index f00a07240..000000000 --- a/libc/arch-arm/syscalls/clock_settime.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(clock_settime) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_clock_settime - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(clock_settime) diff --git a/libc/arch-arm/syscalls/delete_module.S b/libc/arch-arm/syscalls/delete_module.S deleted file mode 100644 index 80dd0f5fb..000000000 --- a/libc/arch-arm/syscalls/delete_module.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(delete_module) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_delete_module - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(delete_module) diff --git a/libc/arch-arm/syscalls/dup.S b/libc/arch-arm/syscalls/dup.S deleted file mode 100644 index 0d06bdc17..000000000 --- a/libc/arch-arm/syscalls/dup.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(dup) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_dup - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(dup) diff --git a/libc/arch-arm/syscalls/dup3.S b/libc/arch-arm/syscalls/dup3.S deleted file mode 100644 index 7dea858a5..000000000 --- a/libc/arch-arm/syscalls/dup3.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(dup3) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_dup3 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(dup3) diff --git a/libc/arch-arm/syscalls/epoll_create1.S b/libc/arch-arm/syscalls/epoll_create1.S deleted file mode 100644 index 8b413d95f..000000000 --- a/libc/arch-arm/syscalls/epoll_create1.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(epoll_create1) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_epoll_create1 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(epoll_create1) diff --git a/libc/arch-arm/syscalls/epoll_ctl.S b/libc/arch-arm/syscalls/epoll_ctl.S deleted file mode 100644 index 807dd69ba..000000000 --- a/libc/arch-arm/syscalls/epoll_ctl.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(epoll_ctl) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_epoll_ctl - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(epoll_ctl) diff --git a/libc/arch-arm/syscalls/eventfd.S b/libc/arch-arm/syscalls/eventfd.S deleted file mode 100644 index 51f4a499a..000000000 --- a/libc/arch-arm/syscalls/eventfd.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(eventfd) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_eventfd2 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(eventfd) diff --git a/libc/arch-arm/syscalls/execve.S b/libc/arch-arm/syscalls/execve.S deleted file mode 100644 index 1b72f0e9f..000000000 --- a/libc/arch-arm/syscalls/execve.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(execve) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_execve - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(execve) diff --git a/libc/arch-arm/syscalls/fallocate64.S b/libc/arch-arm/syscalls/fallocate64.S deleted file mode 100644 index 4bfd5e38f..000000000 --- a/libc/arch-arm/syscalls/fallocate64.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fallocate64) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_fallocate - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(fallocate64) diff --git a/libc/arch-arm/syscalls/fchdir.S b/libc/arch-arm/syscalls/fchdir.S deleted file mode 100644 index dca18c416..000000000 --- a/libc/arch-arm/syscalls/fchdir.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchdir) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_fchdir - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(fchdir) diff --git a/libc/arch-arm/syscalls/fchown.S b/libc/arch-arm/syscalls/fchown.S deleted file mode 100644 index 51ee60cb1..000000000 --- a/libc/arch-arm/syscalls/fchown.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchown) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_fchown32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(fchown) diff --git a/libc/arch-arm/syscalls/fchownat.S b/libc/arch-arm/syscalls/fchownat.S deleted file mode 100644 index 2aac0fe98..000000000 --- a/libc/arch-arm/syscalls/fchownat.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchownat) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_fchownat - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(fchownat) diff --git a/libc/arch-arm/syscalls/fdatasync.S b/libc/arch-arm/syscalls/fdatasync.S deleted file mode 100644 index f97adc613..000000000 --- a/libc/arch-arm/syscalls/fdatasync.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fdatasync) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_fdatasync - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(fdatasync) diff --git a/libc/arch-arm/syscalls/flock.S b/libc/arch-arm/syscalls/flock.S deleted file mode 100644 index e2874f6c0..000000000 --- a/libc/arch-arm/syscalls/flock.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(flock) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_flock - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(flock) diff --git a/libc/arch-arm/syscalls/fremovexattr.S b/libc/arch-arm/syscalls/fremovexattr.S deleted file mode 100644 index 89be70499..000000000 --- a/libc/arch-arm/syscalls/fremovexattr.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fremovexattr) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_fremovexattr - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(fremovexattr) diff --git a/libc/arch-arm/syscalls/fstat64.S b/libc/arch-arm/syscalls/fstat64.S deleted file mode 100644 index c2c710135..000000000 --- a/libc/arch-arm/syscalls/fstat64.S +++ /dev/null @@ -1,18 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fstat64) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_fstat64 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(fstat64) - -ALIAS_SYMBOL(fstat, fstat64) diff --git a/libc/arch-arm/syscalls/fstatat64.S b/libc/arch-arm/syscalls/fstatat64.S deleted file mode 100644 index 545dc166b..000000000 --- a/libc/arch-arm/syscalls/fstatat64.S +++ /dev/null @@ -1,18 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fstatat64) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_fstatat64 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(fstatat64) - -ALIAS_SYMBOL(fstatat, fstatat64) diff --git a/libc/arch-arm/syscalls/fsync.S b/libc/arch-arm/syscalls/fsync.S deleted file mode 100644 index 24b9a878d..000000000 --- a/libc/arch-arm/syscalls/fsync.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fsync) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_fsync - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(fsync) diff --git a/libc/arch-arm/syscalls/ftruncate64.S b/libc/arch-arm/syscalls/ftruncate64.S deleted file mode 100644 index ee1a2a6f1..000000000 --- a/libc/arch-arm/syscalls/ftruncate64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(ftruncate64) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_ftruncate64 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(ftruncate64) diff --git a/libc/arch-arm/syscalls/getegid.S b/libc/arch-arm/syscalls/getegid.S deleted file mode 100644 index f4e17b5a9..000000000 --- a/libc/arch-arm/syscalls/getegid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getegid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getegid32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getegid) diff --git a/libc/arch-arm/syscalls/geteuid.S b/libc/arch-arm/syscalls/geteuid.S deleted file mode 100644 index 01898f80c..000000000 --- a/libc/arch-arm/syscalls/geteuid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(geteuid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_geteuid32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(geteuid) diff --git a/libc/arch-arm/syscalls/getgid.S b/libc/arch-arm/syscalls/getgid.S deleted file mode 100644 index ee124a6b3..000000000 --- a/libc/arch-arm/syscalls/getgid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getgid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getgid32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getgid) diff --git a/libc/arch-arm/syscalls/getgroups.S b/libc/arch-arm/syscalls/getgroups.S deleted file mode 100644 index 4c1bfdb07..000000000 --- a/libc/arch-arm/syscalls/getgroups.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getgroups) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getgroups32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getgroups) diff --git a/libc/arch-arm/syscalls/getitimer.S b/libc/arch-arm/syscalls/getitimer.S deleted file mode 100644 index b9773ad14..000000000 --- a/libc/arch-arm/syscalls/getitimer.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getitimer) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getitimer - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getitimer) diff --git a/libc/arch-arm/syscalls/getpeername.S b/libc/arch-arm/syscalls/getpeername.S deleted file mode 100644 index 6bf600263..000000000 --- a/libc/arch-arm/syscalls/getpeername.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getpeername) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getpeername - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getpeername) diff --git a/libc/arch-arm/syscalls/getpgid.S b/libc/arch-arm/syscalls/getpgid.S deleted file mode 100644 index d5c9c8aed..000000000 --- a/libc/arch-arm/syscalls/getpgid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getpgid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getpgid - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getpgid) diff --git a/libc/arch-arm/syscalls/getppid.S b/libc/arch-arm/syscalls/getppid.S deleted file mode 100644 index 91db24e9f..000000000 --- a/libc/arch-arm/syscalls/getppid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getppid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getppid - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getppid) diff --git a/libc/arch-arm/syscalls/getrandom.S b/libc/arch-arm/syscalls/getrandom.S deleted file mode 100644 index 3f28af6f0..000000000 --- a/libc/arch-arm/syscalls/getrandom.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrandom) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getrandom - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getrandom) diff --git a/libc/arch-arm/syscalls/getresgid.S b/libc/arch-arm/syscalls/getresgid.S deleted file mode 100644 index 8fb7f28d2..000000000 --- a/libc/arch-arm/syscalls/getresgid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getresgid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getresgid32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getresgid) diff --git a/libc/arch-arm/syscalls/getresuid.S b/libc/arch-arm/syscalls/getresuid.S deleted file mode 100644 index ebec6e18e..000000000 --- a/libc/arch-arm/syscalls/getresuid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getresuid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getresuid32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getresuid) diff --git a/libc/arch-arm/syscalls/getrlimit.S b/libc/arch-arm/syscalls/getrlimit.S deleted file mode 100644 index 0c9e6625b..000000000 --- a/libc/arch-arm/syscalls/getrlimit.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrlimit) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_ugetrlimit - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getrlimit) diff --git a/libc/arch-arm/syscalls/getrusage.S b/libc/arch-arm/syscalls/getrusage.S deleted file mode 100644 index e74a4ad32..000000000 --- a/libc/arch-arm/syscalls/getrusage.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrusage) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getrusage - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getrusage) diff --git a/libc/arch-arm/syscalls/getsid.S b/libc/arch-arm/syscalls/getsid.S deleted file mode 100644 index c918820ce..000000000 --- a/libc/arch-arm/syscalls/getsid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getsid - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getsid) diff --git a/libc/arch-arm/syscalls/getsockname.S b/libc/arch-arm/syscalls/getsockname.S deleted file mode 100644 index a30a291c7..000000000 --- a/libc/arch-arm/syscalls/getsockname.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsockname) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getsockname - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getsockname) diff --git a/libc/arch-arm/syscalls/getsockopt.S b/libc/arch-arm/syscalls/getsockopt.S deleted file mode 100644 index 4143bbde1..000000000 --- a/libc/arch-arm/syscalls/getsockopt.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsockopt) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_getsockopt - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getsockopt) diff --git a/libc/arch-arm/syscalls/getuid.S b/libc/arch-arm/syscalls/getuid.S deleted file mode 100644 index cdc86bc10..000000000 --- a/libc/arch-arm/syscalls/getuid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getuid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getuid32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getuid) diff --git a/libc/arch-arm/syscalls/getxattr.S b/libc/arch-arm/syscalls/getxattr.S deleted file mode 100644 index 116d917c2..000000000 --- a/libc/arch-arm/syscalls/getxattr.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getxattr) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_getxattr - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(getxattr) diff --git a/libc/arch-arm/syscalls/init_module.S b/libc/arch-arm/syscalls/init_module.S deleted file mode 100644 index 8fecf68b1..000000000 --- a/libc/arch-arm/syscalls/init_module.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(init_module) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_init_module - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(init_module) diff --git a/libc/arch-arm/syscalls/inotify_add_watch.S b/libc/arch-arm/syscalls/inotify_add_watch.S deleted file mode 100644 index 61e666cbf..000000000 --- a/libc/arch-arm/syscalls/inotify_add_watch.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_add_watch) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_inotify_add_watch - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(inotify_add_watch) diff --git a/libc/arch-arm/syscalls/inotify_init1.S b/libc/arch-arm/syscalls/inotify_init1.S deleted file mode 100644 index 6cf066ef6..000000000 --- a/libc/arch-arm/syscalls/inotify_init1.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_init1) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_inotify_init1 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(inotify_init1) diff --git a/libc/arch-arm/syscalls/inotify_rm_watch.S b/libc/arch-arm/syscalls/inotify_rm_watch.S deleted file mode 100644 index 1455da14c..000000000 --- a/libc/arch-arm/syscalls/inotify_rm_watch.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_rm_watch) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_inotify_rm_watch - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(inotify_rm_watch) diff --git a/libc/arch-arm/syscalls/kill.S b/libc/arch-arm/syscalls/kill.S deleted file mode 100644 index 82df86128..000000000 --- a/libc/arch-arm/syscalls/kill.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(kill) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_kill - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(kill) diff --git a/libc/arch-arm/syscalls/klogctl.S b/libc/arch-arm/syscalls/klogctl.S deleted file mode 100644 index 47a03c653..000000000 --- a/libc/arch-arm/syscalls/klogctl.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(klogctl) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_syslog - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(klogctl) diff --git a/libc/arch-arm/syscalls/lgetxattr.S b/libc/arch-arm/syscalls/lgetxattr.S deleted file mode 100644 index 157271c8e..000000000 --- a/libc/arch-arm/syscalls/lgetxattr.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lgetxattr) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_lgetxattr - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(lgetxattr) diff --git a/libc/arch-arm/syscalls/linkat.S b/libc/arch-arm/syscalls/linkat.S deleted file mode 100644 index 6e74d063b..000000000 --- a/libc/arch-arm/syscalls/linkat.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(linkat) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_linkat - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(linkat) diff --git a/libc/arch-arm/syscalls/listen.S b/libc/arch-arm/syscalls/listen.S deleted file mode 100644 index 5ad75c0a3..000000000 --- a/libc/arch-arm/syscalls/listen.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(listen) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_listen - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(listen) diff --git a/libc/arch-arm/syscalls/listxattr.S b/libc/arch-arm/syscalls/listxattr.S deleted file mode 100644 index 093927dde..000000000 --- a/libc/arch-arm/syscalls/listxattr.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(listxattr) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_listxattr - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(listxattr) diff --git a/libc/arch-arm/syscalls/llistxattr.S b/libc/arch-arm/syscalls/llistxattr.S deleted file mode 100644 index 5d0e7c806..000000000 --- a/libc/arch-arm/syscalls/llistxattr.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(llistxattr) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_llistxattr - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(llistxattr) diff --git a/libc/arch-arm/syscalls/lremovexattr.S b/libc/arch-arm/syscalls/lremovexattr.S deleted file mode 100644 index 4e0bcec75..000000000 --- a/libc/arch-arm/syscalls/lremovexattr.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lremovexattr) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_lremovexattr - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(lremovexattr) diff --git a/libc/arch-arm/syscalls/lseek.S b/libc/arch-arm/syscalls/lseek.S deleted file mode 100644 index cbdc441e3..000000000 --- a/libc/arch-arm/syscalls/lseek.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lseek) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_lseek - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(lseek) diff --git a/libc/arch-arm/syscalls/lsetxattr.S b/libc/arch-arm/syscalls/lsetxattr.S deleted file mode 100644 index c41fb8806..000000000 --- a/libc/arch-arm/syscalls/lsetxattr.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lsetxattr) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_lsetxattr - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(lsetxattr) diff --git a/libc/arch-arm/syscalls/madvise.S b/libc/arch-arm/syscalls/madvise.S deleted file mode 100644 index c2d7d2051..000000000 --- a/libc/arch-arm/syscalls/madvise.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(madvise) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_madvise - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(madvise) diff --git a/libc/arch-arm/syscalls/mincore.S b/libc/arch-arm/syscalls/mincore.S deleted file mode 100644 index c93fe948e..000000000 --- a/libc/arch-arm/syscalls/mincore.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mincore) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_mincore - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(mincore) diff --git a/libc/arch-arm/syscalls/mkdirat.S b/libc/arch-arm/syscalls/mkdirat.S deleted file mode 100644 index 4f93c61ae..000000000 --- a/libc/arch-arm/syscalls/mkdirat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mkdirat) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_mkdirat - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(mkdirat) diff --git a/libc/arch-arm/syscalls/mknodat.S b/libc/arch-arm/syscalls/mknodat.S deleted file mode 100644 index 91baae89f..000000000 --- a/libc/arch-arm/syscalls/mknodat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mknodat) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_mknodat - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(mknodat) diff --git a/libc/arch-arm/syscalls/mlock.S b/libc/arch-arm/syscalls/mlock.S deleted file mode 100644 index eb72f6f10..000000000 --- a/libc/arch-arm/syscalls/mlock.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mlock) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_mlock - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(mlock) diff --git a/libc/arch-arm/syscalls/mlockall.S b/libc/arch-arm/syscalls/mlockall.S deleted file mode 100644 index 2984087da..000000000 --- a/libc/arch-arm/syscalls/mlockall.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mlockall) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_mlockall - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(mlockall) diff --git a/libc/arch-arm/syscalls/mount.S b/libc/arch-arm/syscalls/mount.S deleted file mode 100644 index ed28ab2e8..000000000 --- a/libc/arch-arm/syscalls/mount.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mount) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_mount - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(mount) diff --git a/libc/arch-arm/syscalls/mprotect.S b/libc/arch-arm/syscalls/mprotect.S deleted file mode 100644 index 9bb128259..000000000 --- a/libc/arch-arm/syscalls/mprotect.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mprotect) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_mprotect - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(mprotect) diff --git a/libc/arch-arm/syscalls/msync.S b/libc/arch-arm/syscalls/msync.S deleted file mode 100644 index bcbab042d..000000000 --- a/libc/arch-arm/syscalls/msync.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(msync) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_msync - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(msync) diff --git a/libc/arch-arm/syscalls/munlock.S b/libc/arch-arm/syscalls/munlock.S deleted file mode 100644 index bf1b814f8..000000000 --- a/libc/arch-arm/syscalls/munlock.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munlock) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_munlock - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(munlock) diff --git a/libc/arch-arm/syscalls/munlockall.S b/libc/arch-arm/syscalls/munlockall.S deleted file mode 100644 index b45a5a210..000000000 --- a/libc/arch-arm/syscalls/munlockall.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munlockall) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_munlockall - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(munlockall) diff --git a/libc/arch-arm/syscalls/munmap.S b/libc/arch-arm/syscalls/munmap.S deleted file mode 100644 index 2b7a1215b..000000000 --- a/libc/arch-arm/syscalls/munmap.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munmap) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_munmap - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(munmap) diff --git a/libc/arch-arm/syscalls/nanosleep.S b/libc/arch-arm/syscalls/nanosleep.S deleted file mode 100644 index 83fd32357..000000000 --- a/libc/arch-arm/syscalls/nanosleep.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(nanosleep) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_nanosleep - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(nanosleep) diff --git a/libc/arch-arm/syscalls/personality.S b/libc/arch-arm/syscalls/personality.S deleted file mode 100644 index 5ad6132f8..000000000 --- a/libc/arch-arm/syscalls/personality.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(personality) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_personality - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(personality) diff --git a/libc/arch-arm/syscalls/pipe2.S b/libc/arch-arm/syscalls/pipe2.S deleted file mode 100644 index f543f9d2c..000000000 --- a/libc/arch-arm/syscalls/pipe2.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pipe2) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_pipe2 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(pipe2) diff --git a/libc/arch-arm/syscalls/prctl.S b/libc/arch-arm/syscalls/prctl.S deleted file mode 100644 index a2d869cc7..000000000 --- a/libc/arch-arm/syscalls/prctl.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(prctl) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_prctl - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(prctl) diff --git a/libc/arch-arm/syscalls/pread64.S b/libc/arch-arm/syscalls/pread64.S deleted file mode 100644 index dc07bb310..000000000 --- a/libc/arch-arm/syscalls/pread64.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pread64) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_pread64 - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(pread64) diff --git a/libc/arch-arm/syscalls/prlimit64.S b/libc/arch-arm/syscalls/prlimit64.S deleted file mode 100644 index 0f04aaa6f..000000000 --- a/libc/arch-arm/syscalls/prlimit64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(prlimit64) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_prlimit64 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(prlimit64) diff --git a/libc/arch-arm/syscalls/process_vm_readv.S b/libc/arch-arm/syscalls/process_vm_readv.S deleted file mode 100644 index 48c49dc9e..000000000 --- a/libc/arch-arm/syscalls/process_vm_readv.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(process_vm_readv) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_process_vm_readv - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(process_vm_readv) diff --git a/libc/arch-arm/syscalls/process_vm_writev.S b/libc/arch-arm/syscalls/process_vm_writev.S deleted file mode 100644 index 4c21c43fd..000000000 --- a/libc/arch-arm/syscalls/process_vm_writev.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(process_vm_writev) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_process_vm_writev - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(process_vm_writev) diff --git a/libc/arch-arm/syscalls/pwrite64.S b/libc/arch-arm/syscalls/pwrite64.S deleted file mode 100644 index 5749f6b22..000000000 --- a/libc/arch-arm/syscalls/pwrite64.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pwrite64) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_pwrite64 - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(pwrite64) diff --git a/libc/arch-arm/syscalls/quotactl.S b/libc/arch-arm/syscalls/quotactl.S deleted file mode 100644 index fde17f4bd..000000000 --- a/libc/arch-arm/syscalls/quotactl.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(quotactl) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_quotactl - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(quotactl) diff --git a/libc/arch-arm/syscalls/read.S b/libc/arch-arm/syscalls/read.S deleted file mode 100644 index 5051358ab..000000000 --- a/libc/arch-arm/syscalls/read.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(read) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_read - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(read) diff --git a/libc/arch-arm/syscalls/readahead.S b/libc/arch-arm/syscalls/readahead.S deleted file mode 100644 index 6952b4ed2..000000000 --- a/libc/arch-arm/syscalls/readahead.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readahead) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_readahead - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(readahead) diff --git a/libc/arch-arm/syscalls/readlinkat.S b/libc/arch-arm/syscalls/readlinkat.S deleted file mode 100644 index 36d46fa6c..000000000 --- a/libc/arch-arm/syscalls/readlinkat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readlinkat) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_readlinkat - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(readlinkat) diff --git a/libc/arch-arm/syscalls/readv.S b/libc/arch-arm/syscalls/readv.S deleted file mode 100644 index 565af6a41..000000000 --- a/libc/arch-arm/syscalls/readv.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readv) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_readv - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(readv) diff --git a/libc/arch-arm/syscalls/recvfrom.S b/libc/arch-arm/syscalls/recvfrom.S deleted file mode 100644 index 115a09ca5..000000000 --- a/libc/arch-arm/syscalls/recvfrom.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvfrom) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_recvfrom - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(recvfrom) diff --git a/libc/arch-arm/syscalls/recvmmsg.S b/libc/arch-arm/syscalls/recvmmsg.S deleted file mode 100644 index 6cf2b9285..000000000 --- a/libc/arch-arm/syscalls/recvmmsg.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvmmsg) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_recvmmsg - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(recvmmsg) diff --git a/libc/arch-arm/syscalls/recvmsg.S b/libc/arch-arm/syscalls/recvmsg.S deleted file mode 100644 index 19a9fca04..000000000 --- a/libc/arch-arm/syscalls/recvmsg.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvmsg) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_recvmsg - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(recvmsg) diff --git a/libc/arch-arm/syscalls/removexattr.S b/libc/arch-arm/syscalls/removexattr.S deleted file mode 100644 index 46f847dd2..000000000 --- a/libc/arch-arm/syscalls/removexattr.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(removexattr) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_removexattr - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(removexattr) diff --git a/libc/arch-arm/syscalls/renameat.S b/libc/arch-arm/syscalls/renameat.S deleted file mode 100644 index 89fc513ed..000000000 --- a/libc/arch-arm/syscalls/renameat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(renameat) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_renameat - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(renameat) diff --git a/libc/arch-arm/syscalls/sched_get_priority_max.S b/libc/arch-arm/syscalls/sched_get_priority_max.S deleted file mode 100644 index 23b1d6282..000000000 --- a/libc/arch-arm/syscalls/sched_get_priority_max.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_get_priority_max) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sched_get_priority_max - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sched_get_priority_max) diff --git a/libc/arch-arm/syscalls/sched_get_priority_min.S b/libc/arch-arm/syscalls/sched_get_priority_min.S deleted file mode 100644 index 65a967ca2..000000000 --- a/libc/arch-arm/syscalls/sched_get_priority_min.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_get_priority_min) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sched_get_priority_min - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sched_get_priority_min) diff --git a/libc/arch-arm/syscalls/sched_getparam.S b/libc/arch-arm/syscalls/sched_getparam.S deleted file mode 100644 index 700041e66..000000000 --- a/libc/arch-arm/syscalls/sched_getparam.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_getparam) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sched_getparam - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sched_getparam) diff --git a/libc/arch-arm/syscalls/sched_getscheduler.S b/libc/arch-arm/syscalls/sched_getscheduler.S deleted file mode 100644 index b4f5d1348..000000000 --- a/libc/arch-arm/syscalls/sched_getscheduler.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_getscheduler) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sched_getscheduler - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sched_getscheduler) diff --git a/libc/arch-arm/syscalls/sched_rr_get_interval.S b/libc/arch-arm/syscalls/sched_rr_get_interval.S deleted file mode 100644 index ea30b6210..000000000 --- a/libc/arch-arm/syscalls/sched_rr_get_interval.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_rr_get_interval) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sched_rr_get_interval - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sched_rr_get_interval) diff --git a/libc/arch-arm/syscalls/sched_setaffinity.S b/libc/arch-arm/syscalls/sched_setaffinity.S deleted file mode 100644 index 636845b28..000000000 --- a/libc/arch-arm/syscalls/sched_setaffinity.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setaffinity) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sched_setaffinity - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sched_setaffinity) diff --git a/libc/arch-arm/syscalls/sched_setparam.S b/libc/arch-arm/syscalls/sched_setparam.S deleted file mode 100644 index f24b96e01..000000000 --- a/libc/arch-arm/syscalls/sched_setparam.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setparam) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sched_setparam - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sched_setparam) diff --git a/libc/arch-arm/syscalls/sched_setscheduler.S b/libc/arch-arm/syscalls/sched_setscheduler.S deleted file mode 100644 index 5bfa202f9..000000000 --- a/libc/arch-arm/syscalls/sched_setscheduler.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setscheduler) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sched_setscheduler - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sched_setscheduler) diff --git a/libc/arch-arm/syscalls/sched_yield.S b/libc/arch-arm/syscalls/sched_yield.S deleted file mode 100644 index 7b93a6e68..000000000 --- a/libc/arch-arm/syscalls/sched_yield.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_yield) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sched_yield - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sched_yield) diff --git a/libc/arch-arm/syscalls/sendfile.S b/libc/arch-arm/syscalls/sendfile.S deleted file mode 100644 index 52e78d0c0..000000000 --- a/libc/arch-arm/syscalls/sendfile.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendfile) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sendfile - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sendfile) diff --git a/libc/arch-arm/syscalls/sendfile64.S b/libc/arch-arm/syscalls/sendfile64.S deleted file mode 100644 index 416e9d28a..000000000 --- a/libc/arch-arm/syscalls/sendfile64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendfile64) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sendfile64 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sendfile64) diff --git a/libc/arch-arm/syscalls/sendmmsg.S b/libc/arch-arm/syscalls/sendmmsg.S deleted file mode 100644 index f97d264cb..000000000 --- a/libc/arch-arm/syscalls/sendmmsg.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendmmsg) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sendmmsg - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sendmmsg) diff --git a/libc/arch-arm/syscalls/sendmsg.S b/libc/arch-arm/syscalls/sendmsg.S deleted file mode 100644 index 215219a76..000000000 --- a/libc/arch-arm/syscalls/sendmsg.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendmsg) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sendmsg - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sendmsg) diff --git a/libc/arch-arm/syscalls/sendto.S b/libc/arch-arm/syscalls/sendto.S deleted file mode 100644 index 29b7b0bf6..000000000 --- a/libc/arch-arm/syscalls/sendto.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendto) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_sendto - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sendto) diff --git a/libc/arch-arm/syscalls/setdomainname.S b/libc/arch-arm/syscalls/setdomainname.S deleted file mode 100644 index 4014a486d..000000000 --- a/libc/arch-arm/syscalls/setdomainname.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setdomainname) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setdomainname - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setdomainname) diff --git a/libc/arch-arm/syscalls/setfsgid.S b/libc/arch-arm/syscalls/setfsgid.S deleted file mode 100644 index 2f0f08c57..000000000 --- a/libc/arch-arm/syscalls/setfsgid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setfsgid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setfsgid - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setfsgid) diff --git a/libc/arch-arm/syscalls/setfsuid.S b/libc/arch-arm/syscalls/setfsuid.S deleted file mode 100644 index ce663e0ee..000000000 --- a/libc/arch-arm/syscalls/setfsuid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setfsuid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setfsuid - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setfsuid) diff --git a/libc/arch-arm/syscalls/setgid.S b/libc/arch-arm/syscalls/setgid.S deleted file mode 100644 index 6f1cbed44..000000000 --- a/libc/arch-arm/syscalls/setgid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setgid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setgid32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setgid) diff --git a/libc/arch-arm/syscalls/setgroups.S b/libc/arch-arm/syscalls/setgroups.S deleted file mode 100644 index 1fb494c0a..000000000 --- a/libc/arch-arm/syscalls/setgroups.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setgroups) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setgroups32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setgroups) diff --git a/libc/arch-arm/syscalls/sethostname.S b/libc/arch-arm/syscalls/sethostname.S deleted file mode 100644 index c4c2db5e7..000000000 --- a/libc/arch-arm/syscalls/sethostname.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sethostname) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sethostname - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sethostname) diff --git a/libc/arch-arm/syscalls/setitimer.S b/libc/arch-arm/syscalls/setitimer.S deleted file mode 100644 index 511a5d1f3..000000000 --- a/libc/arch-arm/syscalls/setitimer.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setitimer) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setitimer - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setitimer) diff --git a/libc/arch-arm/syscalls/setns.S b/libc/arch-arm/syscalls/setns.S deleted file mode 100644 index b1902dc85..000000000 --- a/libc/arch-arm/syscalls/setns.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setns) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setns - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setns) diff --git a/libc/arch-arm/syscalls/setpgid.S b/libc/arch-arm/syscalls/setpgid.S deleted file mode 100644 index fe05fc95e..000000000 --- a/libc/arch-arm/syscalls/setpgid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setpgid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setpgid - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setpgid) diff --git a/libc/arch-arm/syscalls/setpriority.S b/libc/arch-arm/syscalls/setpriority.S deleted file mode 100644 index 960eee096..000000000 --- a/libc/arch-arm/syscalls/setpriority.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setpriority) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setpriority - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setpriority) diff --git a/libc/arch-arm/syscalls/setregid.S b/libc/arch-arm/syscalls/setregid.S deleted file mode 100644 index 0b5f444e5..000000000 --- a/libc/arch-arm/syscalls/setregid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setregid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setregid32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setregid) diff --git a/libc/arch-arm/syscalls/setresgid.S b/libc/arch-arm/syscalls/setresgid.S deleted file mode 100644 index 64677d365..000000000 --- a/libc/arch-arm/syscalls/setresgid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setresgid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setresgid32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setresgid) diff --git a/libc/arch-arm/syscalls/setresuid.S b/libc/arch-arm/syscalls/setresuid.S deleted file mode 100644 index e3888f6d4..000000000 --- a/libc/arch-arm/syscalls/setresuid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setresuid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setresuid32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setresuid) diff --git a/libc/arch-arm/syscalls/setreuid.S b/libc/arch-arm/syscalls/setreuid.S deleted file mode 100644 index 15c266554..000000000 --- a/libc/arch-arm/syscalls/setreuid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setreuid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setreuid32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setreuid) diff --git a/libc/arch-arm/syscalls/setrlimit.S b/libc/arch-arm/syscalls/setrlimit.S deleted file mode 100644 index b9014eb1b..000000000 --- a/libc/arch-arm/syscalls/setrlimit.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setrlimit) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setrlimit - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setrlimit) diff --git a/libc/arch-arm/syscalls/setsid.S b/libc/arch-arm/syscalls/setsid.S deleted file mode 100644 index fb7147431..000000000 --- a/libc/arch-arm/syscalls/setsid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setsid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setsid - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setsid) diff --git a/libc/arch-arm/syscalls/setsockopt.S b/libc/arch-arm/syscalls/setsockopt.S deleted file mode 100644 index 8ea38932c..000000000 --- a/libc/arch-arm/syscalls/setsockopt.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setsockopt) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_setsockopt - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setsockopt) diff --git a/libc/arch-arm/syscalls/settimeofday.S b/libc/arch-arm/syscalls/settimeofday.S deleted file mode 100644 index 00dfdebf8..000000000 --- a/libc/arch-arm/syscalls/settimeofday.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(settimeofday) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_settimeofday - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(settimeofday) diff --git a/libc/arch-arm/syscalls/setuid.S b/libc/arch-arm/syscalls/setuid.S deleted file mode 100644 index 447ed1b64..000000000 --- a/libc/arch-arm/syscalls/setuid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setuid) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_setuid32 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setuid) diff --git a/libc/arch-arm/syscalls/setxattr.S b/libc/arch-arm/syscalls/setxattr.S deleted file mode 100644 index 8ba4b77bf..000000000 --- a/libc/arch-arm/syscalls/setxattr.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setxattr) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_setxattr - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(setxattr) diff --git a/libc/arch-arm/syscalls/shutdown.S b/libc/arch-arm/syscalls/shutdown.S deleted file mode 100644 index 51ed0cf0f..000000000 --- a/libc/arch-arm/syscalls/shutdown.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(shutdown) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_shutdown - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(shutdown) diff --git a/libc/arch-arm/syscalls/sigaltstack.S b/libc/arch-arm/syscalls/sigaltstack.S deleted file mode 100644 index 2f97800af..000000000 --- a/libc/arch-arm/syscalls/sigaltstack.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sigaltstack) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sigaltstack - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sigaltstack) diff --git a/libc/arch-arm/syscalls/socketpair.S b/libc/arch-arm/syscalls/socketpair.S deleted file mode 100644 index e537235e6..000000000 --- a/libc/arch-arm/syscalls/socketpair.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(socketpair) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_socketpair - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(socketpair) diff --git a/libc/arch-arm/syscalls/splice.S b/libc/arch-arm/syscalls/splice.S deleted file mode 100644 index 6bc3f0d4a..000000000 --- a/libc/arch-arm/syscalls/splice.S +++ /dev/null @@ -1,22 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(splice) - mov ip, sp - stmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 16 - .cfi_rel_offset r4, 0 - .cfi_rel_offset r5, 4 - .cfi_rel_offset r6, 8 - .cfi_rel_offset r7, 12 - ldmfd ip, {r4, r5, r6} - ldr r7, =__NR_splice - swi #0 - ldmfd sp!, {r4, r5, r6, r7} - .cfi_def_cfa_offset 0 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(splice) diff --git a/libc/arch-arm/syscalls/swapoff.S b/libc/arch-arm/syscalls/swapoff.S deleted file mode 100644 index 25832efdf..000000000 --- a/libc/arch-arm/syscalls/swapoff.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(swapoff) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_swapoff - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(swapoff) diff --git a/libc/arch-arm/syscalls/swapon.S b/libc/arch-arm/syscalls/swapon.S deleted file mode 100644 index df4c71ed8..000000000 --- a/libc/arch-arm/syscalls/swapon.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(swapon) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_swapon - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(swapon) diff --git a/libc/arch-arm/syscalls/symlinkat.S b/libc/arch-arm/syscalls/symlinkat.S deleted file mode 100644 index ec2ee4fba..000000000 --- a/libc/arch-arm/syscalls/symlinkat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(symlinkat) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_symlinkat - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(symlinkat) diff --git a/libc/arch-arm/syscalls/sync.S b/libc/arch-arm/syscalls/sync.S deleted file mode 100644 index b73dcaa05..000000000 --- a/libc/arch-arm/syscalls/sync.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sync) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sync - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sync) diff --git a/libc/arch-arm/syscalls/syncfs.S b/libc/arch-arm/syscalls/syncfs.S deleted file mode 100644 index 26f2f1497..000000000 --- a/libc/arch-arm/syscalls/syncfs.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(syncfs) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_syncfs - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(syncfs) diff --git a/libc/arch-arm/syscalls/sysinfo.S b/libc/arch-arm/syscalls/sysinfo.S deleted file mode 100644 index 1584ea401..000000000 --- a/libc/arch-arm/syscalls/sysinfo.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sysinfo) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_sysinfo - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(sysinfo) diff --git a/libc/arch-arm/syscalls/tee.S b/libc/arch-arm/syscalls/tee.S deleted file mode 100644 index efd12ca42..000000000 --- a/libc/arch-arm/syscalls/tee.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(tee) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_tee - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(tee) diff --git a/libc/arch-arm/syscalls/tgkill.S b/libc/arch-arm/syscalls/tgkill.S deleted file mode 100644 index 43fe62cbd..000000000 --- a/libc/arch-arm/syscalls/tgkill.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(tgkill) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_tgkill - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(tgkill) diff --git a/libc/arch-arm/syscalls/timerfd_create.S b/libc/arch-arm/syscalls/timerfd_create.S deleted file mode 100644 index 4aa310782..000000000 --- a/libc/arch-arm/syscalls/timerfd_create.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_create) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_timerfd_create - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(timerfd_create) diff --git a/libc/arch-arm/syscalls/timerfd_gettime.S b/libc/arch-arm/syscalls/timerfd_gettime.S deleted file mode 100644 index 6ae93e462..000000000 --- a/libc/arch-arm/syscalls/timerfd_gettime.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_gettime) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_timerfd_gettime - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(timerfd_gettime) diff --git a/libc/arch-arm/syscalls/timerfd_settime.S b/libc/arch-arm/syscalls/timerfd_settime.S deleted file mode 100644 index 2dd4aac0c..000000000 --- a/libc/arch-arm/syscalls/timerfd_settime.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_settime) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_timerfd_settime - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(timerfd_settime) diff --git a/libc/arch-arm/syscalls/times.S b/libc/arch-arm/syscalls/times.S deleted file mode 100644 index 1ff636d6a..000000000 --- a/libc/arch-arm/syscalls/times.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(times) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_times - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(times) diff --git a/libc/arch-arm/syscalls/truncate.S b/libc/arch-arm/syscalls/truncate.S deleted file mode 100644 index 0bee4d2a5..000000000 --- a/libc/arch-arm/syscalls/truncate.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(truncate) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_truncate - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(truncate) diff --git a/libc/arch-arm/syscalls/truncate64.S b/libc/arch-arm/syscalls/truncate64.S deleted file mode 100644 index 74e9eb277..000000000 --- a/libc/arch-arm/syscalls/truncate64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(truncate64) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_truncate64 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(truncate64) diff --git a/libc/arch-arm/syscalls/umask.S b/libc/arch-arm/syscalls/umask.S deleted file mode 100644 index ca3e058cb..000000000 --- a/libc/arch-arm/syscalls/umask.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(umask) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_umask - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(umask) diff --git a/libc/arch-arm/syscalls/umount2.S b/libc/arch-arm/syscalls/umount2.S deleted file mode 100644 index 6e1ba3215..000000000 --- a/libc/arch-arm/syscalls/umount2.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(umount2) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_umount2 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(umount2) diff --git a/libc/arch-arm/syscalls/uname.S b/libc/arch-arm/syscalls/uname.S deleted file mode 100644 index 4f2b8a201..000000000 --- a/libc/arch-arm/syscalls/uname.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(uname) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_uname - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(uname) diff --git a/libc/arch-arm/syscalls/unlinkat.S b/libc/arch-arm/syscalls/unlinkat.S deleted file mode 100644 index ac7bfaec4..000000000 --- a/libc/arch-arm/syscalls/unlinkat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(unlinkat) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_unlinkat - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(unlinkat) diff --git a/libc/arch-arm/syscalls/unshare.S b/libc/arch-arm/syscalls/unshare.S deleted file mode 100644 index 4558a6082..000000000 --- a/libc/arch-arm/syscalls/unshare.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(unshare) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_unshare - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(unshare) diff --git a/libc/arch-arm/syscalls/utimensat.S b/libc/arch-arm/syscalls/utimensat.S deleted file mode 100644 index 95245076f..000000000 --- a/libc/arch-arm/syscalls/utimensat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(utimensat) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_utimensat - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(utimensat) diff --git a/libc/arch-arm/syscalls/vmsplice.S b/libc/arch-arm/syscalls/vmsplice.S deleted file mode 100644 index 90ab8b41b..000000000 --- a/libc/arch-arm/syscalls/vmsplice.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(vmsplice) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_vmsplice - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(vmsplice) diff --git a/libc/arch-arm/syscalls/wait4.S b/libc/arch-arm/syscalls/wait4.S deleted file mode 100644 index 40bb5a562..000000000 --- a/libc/arch-arm/syscalls/wait4.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(wait4) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_wait4 - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(wait4) diff --git a/libc/arch-arm/syscalls/write.S b/libc/arch-arm/syscalls/write.S deleted file mode 100644 index 4abbe6bab..000000000 --- a/libc/arch-arm/syscalls/write.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(write) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_write - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(write) diff --git a/libc/arch-arm/syscalls/writev.S b/libc/arch-arm/syscalls/writev.S deleted file mode 100644 index 3103237b4..000000000 --- a/libc/arch-arm/syscalls/writev.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(writev) - mov ip, r7 - .cfi_register r7, ip - ldr r7, =__NR_writev - swi #0 - mov r7, ip - .cfi_restore r7 - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno_internal -END(writev) diff --git a/libc/arch-arm64/syscalls/___clock_nanosleep.S b/libc/arch-arm64/syscalls/___clock_nanosleep.S deleted file mode 100644 index 0dcfd4f4f..000000000 --- a/libc/arch-arm64/syscalls/___clock_nanosleep.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___clock_nanosleep) - mov x8, __NR_clock_nanosleep - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(___clock_nanosleep) -.hidden ___clock_nanosleep diff --git a/libc/arch-arm64/syscalls/___close.S b/libc/arch-arm64/syscalls/___close.S deleted file mode 100644 index 8fb836110..000000000 --- a/libc/arch-arm64/syscalls/___close.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___close) - mov x8, __NR_close - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(___close) -.hidden ___close diff --git a/libc/arch-arm64/syscalls/___faccessat.S b/libc/arch-arm64/syscalls/___faccessat.S deleted file mode 100644 index 6a41b697c..000000000 --- a/libc/arch-arm64/syscalls/___faccessat.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___faccessat) - mov x8, __NR_faccessat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(___faccessat) -.hidden ___faccessat diff --git a/libc/arch-arm64/syscalls/___fchmod.S b/libc/arch-arm64/syscalls/___fchmod.S deleted file mode 100644 index a143c65f0..000000000 --- a/libc/arch-arm64/syscalls/___fchmod.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fchmod) - mov x8, __NR_fchmod - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(___fchmod) -.hidden ___fchmod diff --git a/libc/arch-arm64/syscalls/___fchmodat.S b/libc/arch-arm64/syscalls/___fchmodat.S deleted file mode 100644 index 1ab3736ba..000000000 --- a/libc/arch-arm64/syscalls/___fchmodat.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fchmodat) - mov x8, __NR_fchmodat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(___fchmodat) -.hidden ___fchmodat diff --git a/libc/arch-arm64/syscalls/___fgetxattr.S b/libc/arch-arm64/syscalls/___fgetxattr.S deleted file mode 100644 index c0334cc77..000000000 --- a/libc/arch-arm64/syscalls/___fgetxattr.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fgetxattr) - mov x8, __NR_fgetxattr - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(___fgetxattr) -.hidden ___fgetxattr diff --git a/libc/arch-arm64/syscalls/___flistxattr.S b/libc/arch-arm64/syscalls/___flistxattr.S deleted file mode 100644 index 02c84784e..000000000 --- a/libc/arch-arm64/syscalls/___flistxattr.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___flistxattr) - mov x8, __NR_flistxattr - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(___flistxattr) -.hidden ___flistxattr diff --git a/libc/arch-arm64/syscalls/___fsetxattr.S b/libc/arch-arm64/syscalls/___fsetxattr.S deleted file mode 100644 index 92be8decb..000000000 --- a/libc/arch-arm64/syscalls/___fsetxattr.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fsetxattr) - mov x8, __NR_fsetxattr - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(___fsetxattr) -.hidden ___fsetxattr diff --git a/libc/arch-arm64/syscalls/___mremap.S b/libc/arch-arm64/syscalls/___mremap.S deleted file mode 100644 index aeb93bcef..000000000 --- a/libc/arch-arm64/syscalls/___mremap.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___mremap) - mov x8, __NR_mremap - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(___mremap) -.hidden ___mremap diff --git a/libc/arch-arm64/syscalls/___rt_sigqueueinfo.S b/libc/arch-arm64/syscalls/___rt_sigqueueinfo.S deleted file mode 100644 index 85ea132ff..000000000 --- a/libc/arch-arm64/syscalls/___rt_sigqueueinfo.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___rt_sigqueueinfo) - mov x8, __NR_rt_sigqueueinfo - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(___rt_sigqueueinfo) -.hidden ___rt_sigqueueinfo diff --git a/libc/arch-arm64/syscalls/__accept4.S b/libc/arch-arm64/syscalls/__accept4.S deleted file mode 100644 index 559e6a735..000000000 --- a/libc/arch-arm64/syscalls/__accept4.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__accept4) - mov x8, __NR_accept4 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__accept4) -.hidden __accept4 diff --git a/libc/arch-arm64/syscalls/__brk.S b/libc/arch-arm64/syscalls/__brk.S deleted file mode 100644 index fb794bf46..000000000 --- a/libc/arch-arm64/syscalls/__brk.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__brk) - mov x8, __NR_brk - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__brk) -.hidden __brk diff --git a/libc/arch-arm64/syscalls/__clock_getres.S b/libc/arch-arm64/syscalls/__clock_getres.S deleted file mode 100644 index 9d0deaa3b..000000000 --- a/libc/arch-arm64/syscalls/__clock_getres.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__clock_getres) - mov x8, __NR_clock_getres - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__clock_getres) -.hidden __clock_getres diff --git a/libc/arch-arm64/syscalls/__clock_gettime.S b/libc/arch-arm64/syscalls/__clock_gettime.S deleted file mode 100644 index 658ab2991..000000000 --- a/libc/arch-arm64/syscalls/__clock_gettime.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__clock_gettime) - mov x8, __NR_clock_gettime - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__clock_gettime) -.hidden __clock_gettime diff --git a/libc/arch-arm64/syscalls/__connect.S b/libc/arch-arm64/syscalls/__connect.S deleted file mode 100644 index c18e6ebba..000000000 --- a/libc/arch-arm64/syscalls/__connect.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__connect) - mov x8, __NR_connect - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__connect) -.hidden __connect diff --git a/libc/arch-arm64/syscalls/__epoll_pwait.S b/libc/arch-arm64/syscalls/__epoll_pwait.S deleted file mode 100644 index acf2bbf1e..000000000 --- a/libc/arch-arm64/syscalls/__epoll_pwait.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__epoll_pwait) - mov x8, __NR_epoll_pwait - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__epoll_pwait) -.hidden __epoll_pwait diff --git a/libc/arch-arm64/syscalls/__exit.S b/libc/arch-arm64/syscalls/__exit.S deleted file mode 100644 index b6b1866a5..000000000 --- a/libc/arch-arm64/syscalls/__exit.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__exit) - mov x8, __NR_exit - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__exit) -.hidden __exit diff --git a/libc/arch-arm64/syscalls/__fadvise64.S b/libc/arch-arm64/syscalls/__fadvise64.S deleted file mode 100644 index 695d09438..000000000 --- a/libc/arch-arm64/syscalls/__fadvise64.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fadvise64) - mov x8, __NR_fadvise64 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__fadvise64) -.hidden __fadvise64 diff --git a/libc/arch-arm64/syscalls/__fstatfs.S b/libc/arch-arm64/syscalls/__fstatfs.S deleted file mode 100644 index 7e350d6c5..000000000 --- a/libc/arch-arm64/syscalls/__fstatfs.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fstatfs) - mov x8, __NR_fstatfs - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__fstatfs) -.hidden __fstatfs diff --git a/libc/arch-arm64/syscalls/__getcpu.S b/libc/arch-arm64/syscalls/__getcpu.S deleted file mode 100644 index 11ed68ea5..000000000 --- a/libc/arch-arm64/syscalls/__getcpu.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getcpu) - mov x8, __NR_getcpu - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__getcpu) -.hidden __getcpu diff --git a/libc/arch-arm64/syscalls/__getcwd.S b/libc/arch-arm64/syscalls/__getcwd.S deleted file mode 100644 index c64f4d2bb..000000000 --- a/libc/arch-arm64/syscalls/__getcwd.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getcwd) - mov x8, __NR_getcwd - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__getcwd) -.hidden __getcwd diff --git a/libc/arch-arm64/syscalls/__getdents64.S b/libc/arch-arm64/syscalls/__getdents64.S deleted file mode 100644 index 994339005..000000000 --- a/libc/arch-arm64/syscalls/__getdents64.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getdents64) - mov x8, __NR_getdents64 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__getdents64) -.hidden __getdents64 diff --git a/libc/arch-arm64/syscalls/__getpid.S b/libc/arch-arm64/syscalls/__getpid.S deleted file mode 100644 index fbc96dff8..000000000 --- a/libc/arch-arm64/syscalls/__getpid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getpid) - mov x8, __NR_getpid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__getpid) -.hidden __getpid diff --git a/libc/arch-arm64/syscalls/__getpriority.S b/libc/arch-arm64/syscalls/__getpriority.S deleted file mode 100644 index 9d98e226f..000000000 --- a/libc/arch-arm64/syscalls/__getpriority.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getpriority) - mov x8, __NR_getpriority - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__getpriority) -.hidden __getpriority diff --git a/libc/arch-arm64/syscalls/__gettimeofday.S b/libc/arch-arm64/syscalls/__gettimeofday.S deleted file mode 100644 index 0c8206abd..000000000 --- a/libc/arch-arm64/syscalls/__gettimeofday.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__gettimeofday) - mov x8, __NR_gettimeofday - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__gettimeofday) -.hidden __gettimeofday diff --git a/libc/arch-arm64/syscalls/__ioctl.S b/libc/arch-arm64/syscalls/__ioctl.S deleted file mode 100644 index 62bc28c53..000000000 --- a/libc/arch-arm64/syscalls/__ioctl.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ioctl) - mov x8, __NR_ioctl - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__ioctl) -.hidden __ioctl diff --git a/libc/arch-arm64/syscalls/__openat.S b/libc/arch-arm64/syscalls/__openat.S deleted file mode 100644 index 8b6853fd8..000000000 --- a/libc/arch-arm64/syscalls/__openat.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__openat) - mov x8, __NR_openat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__openat) -.hidden __openat diff --git a/libc/arch-arm64/syscalls/__ppoll.S b/libc/arch-arm64/syscalls/__ppoll.S deleted file mode 100644 index 1f54d67df..000000000 --- a/libc/arch-arm64/syscalls/__ppoll.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ppoll) - mov x8, __NR_ppoll - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__ppoll) -.hidden __ppoll diff --git a/libc/arch-arm64/syscalls/__pselect6.S b/libc/arch-arm64/syscalls/__pselect6.S deleted file mode 100644 index 388d84e81..000000000 --- a/libc/arch-arm64/syscalls/__pselect6.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__pselect6) - mov x8, __NR_pselect6 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__pselect6) -.hidden __pselect6 diff --git a/libc/arch-arm64/syscalls/__ptrace.S b/libc/arch-arm64/syscalls/__ptrace.S deleted file mode 100644 index d68b67407..000000000 --- a/libc/arch-arm64/syscalls/__ptrace.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ptrace) - mov x8, __NR_ptrace - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__ptrace) -.hidden __ptrace diff --git a/libc/arch-arm64/syscalls/__reboot.S b/libc/arch-arm64/syscalls/__reboot.S deleted file mode 100644 index 79cd5be97..000000000 --- a/libc/arch-arm64/syscalls/__reboot.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__reboot) - mov x8, __NR_reboot - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__reboot) -.hidden __reboot diff --git a/libc/arch-arm64/syscalls/__rt_sigaction.S b/libc/arch-arm64/syscalls/__rt_sigaction.S deleted file mode 100644 index 65fea2e7c..000000000 --- a/libc/arch-arm64/syscalls/__rt_sigaction.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigaction) - mov x8, __NR_rt_sigaction - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__rt_sigaction) -.hidden __rt_sigaction diff --git a/libc/arch-arm64/syscalls/__rt_sigpending.S b/libc/arch-arm64/syscalls/__rt_sigpending.S deleted file mode 100644 index 65537812d..000000000 --- a/libc/arch-arm64/syscalls/__rt_sigpending.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigpending) - mov x8, __NR_rt_sigpending - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__rt_sigpending) -.hidden __rt_sigpending diff --git a/libc/arch-arm64/syscalls/__rt_sigprocmask.S b/libc/arch-arm64/syscalls/__rt_sigprocmask.S deleted file mode 100644 index 95127d659..000000000 --- a/libc/arch-arm64/syscalls/__rt_sigprocmask.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigprocmask) - mov x8, __NR_rt_sigprocmask - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__rt_sigprocmask) -.hidden __rt_sigprocmask diff --git a/libc/arch-arm64/syscalls/__rt_sigsuspend.S b/libc/arch-arm64/syscalls/__rt_sigsuspend.S deleted file mode 100644 index 7cbd8d6d3..000000000 --- a/libc/arch-arm64/syscalls/__rt_sigsuspend.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigsuspend) - mov x8, __NR_rt_sigsuspend - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__rt_sigsuspend) -.hidden __rt_sigsuspend diff --git a/libc/arch-arm64/syscalls/__rt_sigtimedwait.S b/libc/arch-arm64/syscalls/__rt_sigtimedwait.S deleted file mode 100644 index 8001635d1..000000000 --- a/libc/arch-arm64/syscalls/__rt_sigtimedwait.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigtimedwait) - mov x8, __NR_rt_sigtimedwait - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__rt_sigtimedwait) -.hidden __rt_sigtimedwait diff --git a/libc/arch-arm64/syscalls/__sched_getaffinity.S b/libc/arch-arm64/syscalls/__sched_getaffinity.S deleted file mode 100644 index 7dad15e20..000000000 --- a/libc/arch-arm64/syscalls/__sched_getaffinity.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sched_getaffinity) - mov x8, __NR_sched_getaffinity - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__sched_getaffinity) -.hidden __sched_getaffinity diff --git a/libc/arch-arm64/syscalls/__set_tid_address.S b/libc/arch-arm64/syscalls/__set_tid_address.S deleted file mode 100644 index f7ae16dc6..000000000 --- a/libc/arch-arm64/syscalls/__set_tid_address.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__set_tid_address) - mov x8, __NR_set_tid_address - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__set_tid_address) -.hidden __set_tid_address diff --git a/libc/arch-arm64/syscalls/__signalfd4.S b/libc/arch-arm64/syscalls/__signalfd4.S deleted file mode 100644 index f6e34974c..000000000 --- a/libc/arch-arm64/syscalls/__signalfd4.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__signalfd4) - mov x8, __NR_signalfd4 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__signalfd4) -.hidden __signalfd4 diff --git a/libc/arch-arm64/syscalls/__socket.S b/libc/arch-arm64/syscalls/__socket.S deleted file mode 100644 index 344bb2dc7..000000000 --- a/libc/arch-arm64/syscalls/__socket.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__socket) - mov x8, __NR_socket - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__socket) -.hidden __socket diff --git a/libc/arch-arm64/syscalls/__statfs.S b/libc/arch-arm64/syscalls/__statfs.S deleted file mode 100644 index 962c59098..000000000 --- a/libc/arch-arm64/syscalls/__statfs.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__statfs) - mov x8, __NR_statfs - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__statfs) -.hidden __statfs diff --git a/libc/arch-arm64/syscalls/__sync_file_range.S b/libc/arch-arm64/syscalls/__sync_file_range.S deleted file mode 100644 index 776e9007f..000000000 --- a/libc/arch-arm64/syscalls/__sync_file_range.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sync_file_range) - mov x8, __NR_sync_file_range - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__sync_file_range) -.hidden __sync_file_range diff --git a/libc/arch-arm64/syscalls/__timer_create.S b/libc/arch-arm64/syscalls/__timer_create.S deleted file mode 100644 index 4790845f8..000000000 --- a/libc/arch-arm64/syscalls/__timer_create.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_create) - mov x8, __NR_timer_create - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__timer_create) -.hidden __timer_create diff --git a/libc/arch-arm64/syscalls/__timer_delete.S b/libc/arch-arm64/syscalls/__timer_delete.S deleted file mode 100644 index ce12613c2..000000000 --- a/libc/arch-arm64/syscalls/__timer_delete.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_delete) - mov x8, __NR_timer_delete - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__timer_delete) -.hidden __timer_delete diff --git a/libc/arch-arm64/syscalls/__timer_getoverrun.S b/libc/arch-arm64/syscalls/__timer_getoverrun.S deleted file mode 100644 index 2cfdf6a3c..000000000 --- a/libc/arch-arm64/syscalls/__timer_getoverrun.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_getoverrun) - mov x8, __NR_timer_getoverrun - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__timer_getoverrun) -.hidden __timer_getoverrun diff --git a/libc/arch-arm64/syscalls/__timer_gettime.S b/libc/arch-arm64/syscalls/__timer_gettime.S deleted file mode 100644 index a1ea323bb..000000000 --- a/libc/arch-arm64/syscalls/__timer_gettime.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_gettime) - mov x8, __NR_timer_gettime - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__timer_gettime) -.hidden __timer_gettime diff --git a/libc/arch-arm64/syscalls/__timer_settime.S b/libc/arch-arm64/syscalls/__timer_settime.S deleted file mode 100644 index 059d705d8..000000000 --- a/libc/arch-arm64/syscalls/__timer_settime.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_settime) - mov x8, __NR_timer_settime - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__timer_settime) -.hidden __timer_settime diff --git a/libc/arch-arm64/syscalls/__waitid.S b/libc/arch-arm64/syscalls/__waitid.S deleted file mode 100644 index 8bd649db9..000000000 --- a/libc/arch-arm64/syscalls/__waitid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__waitid) - mov x8, __NR_waitid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(__waitid) -.hidden __waitid diff --git a/libc/arch-arm64/syscalls/_exit.S b/libc/arch-arm64/syscalls/_exit.S deleted file mode 100644 index d50f38d06..000000000 --- a/libc/arch-arm64/syscalls/_exit.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(_exit) - mov x8, __NR_exit_group - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(_exit) - -ALIAS_SYMBOL(_Exit, _exit) diff --git a/libc/arch-arm64/syscalls/acct.S b/libc/arch-arm64/syscalls/acct.S deleted file mode 100644 index 48cb4e937..000000000 --- a/libc/arch-arm64/syscalls/acct.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(acct) - mov x8, __NR_acct - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(acct) diff --git a/libc/arch-arm64/syscalls/adjtimex.S b/libc/arch-arm64/syscalls/adjtimex.S deleted file mode 100644 index 712e46811..000000000 --- a/libc/arch-arm64/syscalls/adjtimex.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(adjtimex) - mov x8, __NR_adjtimex - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(adjtimex) diff --git a/libc/arch-arm64/syscalls/bind.S b/libc/arch-arm64/syscalls/bind.S deleted file mode 100644 index 47170ff9e..000000000 --- a/libc/arch-arm64/syscalls/bind.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(bind) - mov x8, __NR_bind - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(bind) diff --git a/libc/arch-arm64/syscalls/capget.S b/libc/arch-arm64/syscalls/capget.S deleted file mode 100644 index 7e0dfe9a9..000000000 --- a/libc/arch-arm64/syscalls/capget.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(capget) - mov x8, __NR_capget - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(capget) diff --git a/libc/arch-arm64/syscalls/capset.S b/libc/arch-arm64/syscalls/capset.S deleted file mode 100644 index e7b7a8dd9..000000000 --- a/libc/arch-arm64/syscalls/capset.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(capset) - mov x8, __NR_capset - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(capset) diff --git a/libc/arch-arm64/syscalls/chdir.S b/libc/arch-arm64/syscalls/chdir.S deleted file mode 100644 index 723cd08b1..000000000 --- a/libc/arch-arm64/syscalls/chdir.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(chdir) - mov x8, __NR_chdir - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(chdir) diff --git a/libc/arch-arm64/syscalls/chroot.S b/libc/arch-arm64/syscalls/chroot.S deleted file mode 100644 index e4f6bd9e3..000000000 --- a/libc/arch-arm64/syscalls/chroot.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(chroot) - mov x8, __NR_chroot - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(chroot) diff --git a/libc/arch-arm64/syscalls/clock_adjtime.S b/libc/arch-arm64/syscalls/clock_adjtime.S deleted file mode 100644 index c2c191ed1..000000000 --- a/libc/arch-arm64/syscalls/clock_adjtime.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(clock_adjtime) - mov x8, __NR_clock_adjtime - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(clock_adjtime) diff --git a/libc/arch-arm64/syscalls/clock_settime.S b/libc/arch-arm64/syscalls/clock_settime.S deleted file mode 100644 index 62354d19a..000000000 --- a/libc/arch-arm64/syscalls/clock_settime.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(clock_settime) - mov x8, __NR_clock_settime - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(clock_settime) diff --git a/libc/arch-arm64/syscalls/delete_module.S b/libc/arch-arm64/syscalls/delete_module.S deleted file mode 100644 index db8d947ee..000000000 --- a/libc/arch-arm64/syscalls/delete_module.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(delete_module) - mov x8, __NR_delete_module - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(delete_module) diff --git a/libc/arch-arm64/syscalls/dup.S b/libc/arch-arm64/syscalls/dup.S deleted file mode 100644 index 4e95045e5..000000000 --- a/libc/arch-arm64/syscalls/dup.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(dup) - mov x8, __NR_dup - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(dup) diff --git a/libc/arch-arm64/syscalls/dup3.S b/libc/arch-arm64/syscalls/dup3.S deleted file mode 100644 index 2e6be32b6..000000000 --- a/libc/arch-arm64/syscalls/dup3.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(dup3) - mov x8, __NR_dup3 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(dup3) diff --git a/libc/arch-arm64/syscalls/epoll_create1.S b/libc/arch-arm64/syscalls/epoll_create1.S deleted file mode 100644 index 6ef518e8e..000000000 --- a/libc/arch-arm64/syscalls/epoll_create1.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(epoll_create1) - mov x8, __NR_epoll_create1 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(epoll_create1) diff --git a/libc/arch-arm64/syscalls/epoll_ctl.S b/libc/arch-arm64/syscalls/epoll_ctl.S deleted file mode 100644 index 1188f38de..000000000 --- a/libc/arch-arm64/syscalls/epoll_ctl.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(epoll_ctl) - mov x8, __NR_epoll_ctl - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(epoll_ctl) diff --git a/libc/arch-arm64/syscalls/eventfd.S b/libc/arch-arm64/syscalls/eventfd.S deleted file mode 100644 index ca5df12d3..000000000 --- a/libc/arch-arm64/syscalls/eventfd.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(eventfd) - mov x8, __NR_eventfd2 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(eventfd) diff --git a/libc/arch-arm64/syscalls/execve.S b/libc/arch-arm64/syscalls/execve.S deleted file mode 100644 index fc8fb6850..000000000 --- a/libc/arch-arm64/syscalls/execve.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(execve) - mov x8, __NR_execve - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(execve) diff --git a/libc/arch-arm64/syscalls/fallocate.S b/libc/arch-arm64/syscalls/fallocate.S deleted file mode 100644 index d42a0baa4..000000000 --- a/libc/arch-arm64/syscalls/fallocate.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fallocate) - mov x8, __NR_fallocate - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(fallocate) - -ALIAS_SYMBOL(fallocate64, fallocate) diff --git a/libc/arch-arm64/syscalls/fchdir.S b/libc/arch-arm64/syscalls/fchdir.S deleted file mode 100644 index 2e164cbe3..000000000 --- a/libc/arch-arm64/syscalls/fchdir.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchdir) - mov x8, __NR_fchdir - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(fchdir) diff --git a/libc/arch-arm64/syscalls/fchown.S b/libc/arch-arm64/syscalls/fchown.S deleted file mode 100644 index 4456f1be0..000000000 --- a/libc/arch-arm64/syscalls/fchown.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchown) - mov x8, __NR_fchown - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(fchown) diff --git a/libc/arch-arm64/syscalls/fchownat.S b/libc/arch-arm64/syscalls/fchownat.S deleted file mode 100644 index 7ba661151..000000000 --- a/libc/arch-arm64/syscalls/fchownat.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchownat) - mov x8, __NR_fchownat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(fchownat) diff --git a/libc/arch-arm64/syscalls/fcntl.S b/libc/arch-arm64/syscalls/fcntl.S deleted file mode 100644 index e2787aebf..000000000 --- a/libc/arch-arm64/syscalls/fcntl.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fcntl) - mov x8, __NR_fcntl - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(fcntl) diff --git a/libc/arch-arm64/syscalls/fdatasync.S b/libc/arch-arm64/syscalls/fdatasync.S deleted file mode 100644 index 225ab29e3..000000000 --- a/libc/arch-arm64/syscalls/fdatasync.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fdatasync) - mov x8, __NR_fdatasync - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(fdatasync) diff --git a/libc/arch-arm64/syscalls/flock.S b/libc/arch-arm64/syscalls/flock.S deleted file mode 100644 index 0c036c804..000000000 --- a/libc/arch-arm64/syscalls/flock.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(flock) - mov x8, __NR_flock - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(flock) diff --git a/libc/arch-arm64/syscalls/fremovexattr.S b/libc/arch-arm64/syscalls/fremovexattr.S deleted file mode 100644 index cf3a37131..000000000 --- a/libc/arch-arm64/syscalls/fremovexattr.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fremovexattr) - mov x8, __NR_fremovexattr - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(fremovexattr) diff --git a/libc/arch-arm64/syscalls/fstat64.S b/libc/arch-arm64/syscalls/fstat64.S deleted file mode 100644 index f7c9f5447..000000000 --- a/libc/arch-arm64/syscalls/fstat64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fstat64) - mov x8, __NR_fstat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(fstat64) - -ALIAS_SYMBOL(fstat, fstat64) diff --git a/libc/arch-arm64/syscalls/fstatat64.S b/libc/arch-arm64/syscalls/fstatat64.S deleted file mode 100644 index 9f8f2c5bb..000000000 --- a/libc/arch-arm64/syscalls/fstatat64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fstatat64) - mov x8, __NR_newfstatat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(fstatat64) - -ALIAS_SYMBOL(fstatat, fstatat64) diff --git a/libc/arch-arm64/syscalls/fsync.S b/libc/arch-arm64/syscalls/fsync.S deleted file mode 100644 index 2bc0d0bbb..000000000 --- a/libc/arch-arm64/syscalls/fsync.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fsync) - mov x8, __NR_fsync - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(fsync) diff --git a/libc/arch-arm64/syscalls/ftruncate.S b/libc/arch-arm64/syscalls/ftruncate.S deleted file mode 100644 index c21e098d7..000000000 --- a/libc/arch-arm64/syscalls/ftruncate.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(ftruncate) - mov x8, __NR_ftruncate - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(ftruncate) - -ALIAS_SYMBOL(ftruncate64, ftruncate) diff --git a/libc/arch-arm64/syscalls/getegid.S b/libc/arch-arm64/syscalls/getegid.S deleted file mode 100644 index f7d60d9ab..000000000 --- a/libc/arch-arm64/syscalls/getegid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getegid) - mov x8, __NR_getegid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getegid) diff --git a/libc/arch-arm64/syscalls/geteuid.S b/libc/arch-arm64/syscalls/geteuid.S deleted file mode 100644 index 3096a9250..000000000 --- a/libc/arch-arm64/syscalls/geteuid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(geteuid) - mov x8, __NR_geteuid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(geteuid) diff --git a/libc/arch-arm64/syscalls/getgid.S b/libc/arch-arm64/syscalls/getgid.S deleted file mode 100644 index 2f921ff34..000000000 --- a/libc/arch-arm64/syscalls/getgid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getgid) - mov x8, __NR_getgid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getgid) diff --git a/libc/arch-arm64/syscalls/getgroups.S b/libc/arch-arm64/syscalls/getgroups.S deleted file mode 100644 index a9a897e6a..000000000 --- a/libc/arch-arm64/syscalls/getgroups.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getgroups) - mov x8, __NR_getgroups - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getgroups) diff --git a/libc/arch-arm64/syscalls/getitimer.S b/libc/arch-arm64/syscalls/getitimer.S deleted file mode 100644 index f37063c68..000000000 --- a/libc/arch-arm64/syscalls/getitimer.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getitimer) - mov x8, __NR_getitimer - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getitimer) diff --git a/libc/arch-arm64/syscalls/getpeername.S b/libc/arch-arm64/syscalls/getpeername.S deleted file mode 100644 index 8374d607c..000000000 --- a/libc/arch-arm64/syscalls/getpeername.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getpeername) - mov x8, __NR_getpeername - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getpeername) diff --git a/libc/arch-arm64/syscalls/getpgid.S b/libc/arch-arm64/syscalls/getpgid.S deleted file mode 100644 index ffc0d9102..000000000 --- a/libc/arch-arm64/syscalls/getpgid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getpgid) - mov x8, __NR_getpgid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getpgid) diff --git a/libc/arch-arm64/syscalls/getppid.S b/libc/arch-arm64/syscalls/getppid.S deleted file mode 100644 index 1e21bdf4c..000000000 --- a/libc/arch-arm64/syscalls/getppid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getppid) - mov x8, __NR_getppid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getppid) diff --git a/libc/arch-arm64/syscalls/getrandom.S b/libc/arch-arm64/syscalls/getrandom.S deleted file mode 100644 index c8fe41ffd..000000000 --- a/libc/arch-arm64/syscalls/getrandom.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrandom) - mov x8, __NR_getrandom - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getrandom) diff --git a/libc/arch-arm64/syscalls/getresgid.S b/libc/arch-arm64/syscalls/getresgid.S deleted file mode 100644 index b15357a58..000000000 --- a/libc/arch-arm64/syscalls/getresgid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getresgid) - mov x8, __NR_getresgid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getresgid) diff --git a/libc/arch-arm64/syscalls/getresuid.S b/libc/arch-arm64/syscalls/getresuid.S deleted file mode 100644 index 53de6b746..000000000 --- a/libc/arch-arm64/syscalls/getresuid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getresuid) - mov x8, __NR_getresuid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getresuid) diff --git a/libc/arch-arm64/syscalls/getrlimit.S b/libc/arch-arm64/syscalls/getrlimit.S deleted file mode 100644 index 03ee9a8e8..000000000 --- a/libc/arch-arm64/syscalls/getrlimit.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrlimit) - mov x8, __NR_getrlimit - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getrlimit) - -ALIAS_SYMBOL(getrlimit64, getrlimit) diff --git a/libc/arch-arm64/syscalls/getrusage.S b/libc/arch-arm64/syscalls/getrusage.S deleted file mode 100644 index 676221a95..000000000 --- a/libc/arch-arm64/syscalls/getrusage.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrusage) - mov x8, __NR_getrusage - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getrusage) diff --git a/libc/arch-arm64/syscalls/getsid.S b/libc/arch-arm64/syscalls/getsid.S deleted file mode 100644 index cfbdfdb9e..000000000 --- a/libc/arch-arm64/syscalls/getsid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsid) - mov x8, __NR_getsid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getsid) diff --git a/libc/arch-arm64/syscalls/getsockname.S b/libc/arch-arm64/syscalls/getsockname.S deleted file mode 100644 index 4cca55daf..000000000 --- a/libc/arch-arm64/syscalls/getsockname.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsockname) - mov x8, __NR_getsockname - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getsockname) diff --git a/libc/arch-arm64/syscalls/getsockopt.S b/libc/arch-arm64/syscalls/getsockopt.S deleted file mode 100644 index 96b8c0f13..000000000 --- a/libc/arch-arm64/syscalls/getsockopt.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsockopt) - mov x8, __NR_getsockopt - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getsockopt) diff --git a/libc/arch-arm64/syscalls/getuid.S b/libc/arch-arm64/syscalls/getuid.S deleted file mode 100644 index ef95ba7fc..000000000 --- a/libc/arch-arm64/syscalls/getuid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getuid) - mov x8, __NR_getuid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getuid) diff --git a/libc/arch-arm64/syscalls/getxattr.S b/libc/arch-arm64/syscalls/getxattr.S deleted file mode 100644 index 2b38f3dfc..000000000 --- a/libc/arch-arm64/syscalls/getxattr.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getxattr) - mov x8, __NR_getxattr - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(getxattr) diff --git a/libc/arch-arm64/syscalls/init_module.S b/libc/arch-arm64/syscalls/init_module.S deleted file mode 100644 index 913c7cc46..000000000 --- a/libc/arch-arm64/syscalls/init_module.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(init_module) - mov x8, __NR_init_module - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(init_module) diff --git a/libc/arch-arm64/syscalls/inotify_add_watch.S b/libc/arch-arm64/syscalls/inotify_add_watch.S deleted file mode 100644 index 83a5b57ce..000000000 --- a/libc/arch-arm64/syscalls/inotify_add_watch.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_add_watch) - mov x8, __NR_inotify_add_watch - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(inotify_add_watch) diff --git a/libc/arch-arm64/syscalls/inotify_init1.S b/libc/arch-arm64/syscalls/inotify_init1.S deleted file mode 100644 index d3bc81bc7..000000000 --- a/libc/arch-arm64/syscalls/inotify_init1.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_init1) - mov x8, __NR_inotify_init1 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(inotify_init1) diff --git a/libc/arch-arm64/syscalls/inotify_rm_watch.S b/libc/arch-arm64/syscalls/inotify_rm_watch.S deleted file mode 100644 index c44445fa6..000000000 --- a/libc/arch-arm64/syscalls/inotify_rm_watch.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_rm_watch) - mov x8, __NR_inotify_rm_watch - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(inotify_rm_watch) diff --git a/libc/arch-arm64/syscalls/kill.S b/libc/arch-arm64/syscalls/kill.S deleted file mode 100644 index 0334ff05b..000000000 --- a/libc/arch-arm64/syscalls/kill.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(kill) - mov x8, __NR_kill - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(kill) diff --git a/libc/arch-arm64/syscalls/klogctl.S b/libc/arch-arm64/syscalls/klogctl.S deleted file mode 100644 index 625f3592e..000000000 --- a/libc/arch-arm64/syscalls/klogctl.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(klogctl) - mov x8, __NR_syslog - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(klogctl) diff --git a/libc/arch-arm64/syscalls/lgetxattr.S b/libc/arch-arm64/syscalls/lgetxattr.S deleted file mode 100644 index 89db20626..000000000 --- a/libc/arch-arm64/syscalls/lgetxattr.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lgetxattr) - mov x8, __NR_lgetxattr - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(lgetxattr) diff --git a/libc/arch-arm64/syscalls/linkat.S b/libc/arch-arm64/syscalls/linkat.S deleted file mode 100644 index 62aea3a2f..000000000 --- a/libc/arch-arm64/syscalls/linkat.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(linkat) - mov x8, __NR_linkat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(linkat) diff --git a/libc/arch-arm64/syscalls/listen.S b/libc/arch-arm64/syscalls/listen.S deleted file mode 100644 index ba97be9a7..000000000 --- a/libc/arch-arm64/syscalls/listen.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(listen) - mov x8, __NR_listen - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(listen) diff --git a/libc/arch-arm64/syscalls/listxattr.S b/libc/arch-arm64/syscalls/listxattr.S deleted file mode 100644 index 48208e626..000000000 --- a/libc/arch-arm64/syscalls/listxattr.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(listxattr) - mov x8, __NR_listxattr - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(listxattr) diff --git a/libc/arch-arm64/syscalls/llistxattr.S b/libc/arch-arm64/syscalls/llistxattr.S deleted file mode 100644 index ed66005c8..000000000 --- a/libc/arch-arm64/syscalls/llistxattr.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(llistxattr) - mov x8, __NR_llistxattr - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(llistxattr) diff --git a/libc/arch-arm64/syscalls/lremovexattr.S b/libc/arch-arm64/syscalls/lremovexattr.S deleted file mode 100644 index b5e51c7fa..000000000 --- a/libc/arch-arm64/syscalls/lremovexattr.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lremovexattr) - mov x8, __NR_lremovexattr - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(lremovexattr) diff --git a/libc/arch-arm64/syscalls/lseek.S b/libc/arch-arm64/syscalls/lseek.S deleted file mode 100644 index 93afeb750..000000000 --- a/libc/arch-arm64/syscalls/lseek.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lseek) - mov x8, __NR_lseek - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(lseek) - -ALIAS_SYMBOL(lseek64, lseek) diff --git a/libc/arch-arm64/syscalls/lsetxattr.S b/libc/arch-arm64/syscalls/lsetxattr.S deleted file mode 100644 index b873513d5..000000000 --- a/libc/arch-arm64/syscalls/lsetxattr.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lsetxattr) - mov x8, __NR_lsetxattr - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(lsetxattr) diff --git a/libc/arch-arm64/syscalls/madvise.S b/libc/arch-arm64/syscalls/madvise.S deleted file mode 100644 index 6fced4153..000000000 --- a/libc/arch-arm64/syscalls/madvise.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(madvise) - mov x8, __NR_madvise - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(madvise) diff --git a/libc/arch-arm64/syscalls/mincore.S b/libc/arch-arm64/syscalls/mincore.S deleted file mode 100644 index 5781b4c97..000000000 --- a/libc/arch-arm64/syscalls/mincore.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mincore) - mov x8, __NR_mincore - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(mincore) diff --git a/libc/arch-arm64/syscalls/mkdirat.S b/libc/arch-arm64/syscalls/mkdirat.S deleted file mode 100644 index fa868a25d..000000000 --- a/libc/arch-arm64/syscalls/mkdirat.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mkdirat) - mov x8, __NR_mkdirat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(mkdirat) diff --git a/libc/arch-arm64/syscalls/mknodat.S b/libc/arch-arm64/syscalls/mknodat.S deleted file mode 100644 index 13632ec6a..000000000 --- a/libc/arch-arm64/syscalls/mknodat.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mknodat) - mov x8, __NR_mknodat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(mknodat) diff --git a/libc/arch-arm64/syscalls/mlock.S b/libc/arch-arm64/syscalls/mlock.S deleted file mode 100644 index 1eee85cd8..000000000 --- a/libc/arch-arm64/syscalls/mlock.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mlock) - mov x8, __NR_mlock - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(mlock) diff --git a/libc/arch-arm64/syscalls/mlockall.S b/libc/arch-arm64/syscalls/mlockall.S deleted file mode 100644 index d4ca1857e..000000000 --- a/libc/arch-arm64/syscalls/mlockall.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mlockall) - mov x8, __NR_mlockall - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(mlockall) diff --git a/libc/arch-arm64/syscalls/mmap.S b/libc/arch-arm64/syscalls/mmap.S deleted file mode 100644 index 65371bc58..000000000 --- a/libc/arch-arm64/syscalls/mmap.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mmap) - mov x8, __NR_mmap - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(mmap) - -ALIAS_SYMBOL(mmap64, mmap) diff --git a/libc/arch-arm64/syscalls/mount.S b/libc/arch-arm64/syscalls/mount.S deleted file mode 100644 index cd3501721..000000000 --- a/libc/arch-arm64/syscalls/mount.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mount) - mov x8, __NR_mount - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(mount) diff --git a/libc/arch-arm64/syscalls/mprotect.S b/libc/arch-arm64/syscalls/mprotect.S deleted file mode 100644 index 9dd881299..000000000 --- a/libc/arch-arm64/syscalls/mprotect.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mprotect) - mov x8, __NR_mprotect - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(mprotect) diff --git a/libc/arch-arm64/syscalls/msync.S b/libc/arch-arm64/syscalls/msync.S deleted file mode 100644 index 72387ea80..000000000 --- a/libc/arch-arm64/syscalls/msync.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(msync) - mov x8, __NR_msync - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(msync) diff --git a/libc/arch-arm64/syscalls/munlock.S b/libc/arch-arm64/syscalls/munlock.S deleted file mode 100644 index d2a248cd0..000000000 --- a/libc/arch-arm64/syscalls/munlock.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munlock) - mov x8, __NR_munlock - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(munlock) diff --git a/libc/arch-arm64/syscalls/munlockall.S b/libc/arch-arm64/syscalls/munlockall.S deleted file mode 100644 index ac42cb44c..000000000 --- a/libc/arch-arm64/syscalls/munlockall.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munlockall) - mov x8, __NR_munlockall - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(munlockall) diff --git a/libc/arch-arm64/syscalls/munmap.S b/libc/arch-arm64/syscalls/munmap.S deleted file mode 100644 index 9d3f6a6dd..000000000 --- a/libc/arch-arm64/syscalls/munmap.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munmap) - mov x8, __NR_munmap - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(munmap) diff --git a/libc/arch-arm64/syscalls/nanosleep.S b/libc/arch-arm64/syscalls/nanosleep.S deleted file mode 100644 index d3e6fae62..000000000 --- a/libc/arch-arm64/syscalls/nanosleep.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(nanosleep) - mov x8, __NR_nanosleep - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(nanosleep) diff --git a/libc/arch-arm64/syscalls/personality.S b/libc/arch-arm64/syscalls/personality.S deleted file mode 100644 index f9f3bf692..000000000 --- a/libc/arch-arm64/syscalls/personality.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(personality) - mov x8, __NR_personality - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(personality) diff --git a/libc/arch-arm64/syscalls/pipe2.S b/libc/arch-arm64/syscalls/pipe2.S deleted file mode 100644 index 89181cd46..000000000 --- a/libc/arch-arm64/syscalls/pipe2.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pipe2) - mov x8, __NR_pipe2 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(pipe2) diff --git a/libc/arch-arm64/syscalls/prctl.S b/libc/arch-arm64/syscalls/prctl.S deleted file mode 100644 index 86f4df510..000000000 --- a/libc/arch-arm64/syscalls/prctl.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(prctl) - mov x8, __NR_prctl - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(prctl) diff --git a/libc/arch-arm64/syscalls/pread64.S b/libc/arch-arm64/syscalls/pread64.S deleted file mode 100644 index 6c9f0e91a..000000000 --- a/libc/arch-arm64/syscalls/pread64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pread64) - mov x8, __NR_pread64 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(pread64) - -ALIAS_SYMBOL(pread, pread64) diff --git a/libc/arch-arm64/syscalls/preadv.S b/libc/arch-arm64/syscalls/preadv.S deleted file mode 100644 index cb8300d51..000000000 --- a/libc/arch-arm64/syscalls/preadv.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(preadv) - mov x8, __NR_preadv - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(preadv) - -ALIAS_SYMBOL(preadv64, preadv) diff --git a/libc/arch-arm64/syscalls/prlimit64.S b/libc/arch-arm64/syscalls/prlimit64.S deleted file mode 100644 index 9c018baca..000000000 --- a/libc/arch-arm64/syscalls/prlimit64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(prlimit64) - mov x8, __NR_prlimit64 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(prlimit64) - -ALIAS_SYMBOL(prlimit, prlimit64) diff --git a/libc/arch-arm64/syscalls/process_vm_readv.S b/libc/arch-arm64/syscalls/process_vm_readv.S deleted file mode 100644 index 1dd113b39..000000000 --- a/libc/arch-arm64/syscalls/process_vm_readv.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(process_vm_readv) - mov x8, __NR_process_vm_readv - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(process_vm_readv) diff --git a/libc/arch-arm64/syscalls/process_vm_writev.S b/libc/arch-arm64/syscalls/process_vm_writev.S deleted file mode 100644 index fb29cf805..000000000 --- a/libc/arch-arm64/syscalls/process_vm_writev.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(process_vm_writev) - mov x8, __NR_process_vm_writev - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(process_vm_writev) diff --git a/libc/arch-arm64/syscalls/pwrite64.S b/libc/arch-arm64/syscalls/pwrite64.S deleted file mode 100644 index 1599c14df..000000000 --- a/libc/arch-arm64/syscalls/pwrite64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pwrite64) - mov x8, __NR_pwrite64 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(pwrite64) - -ALIAS_SYMBOL(pwrite, pwrite64) diff --git a/libc/arch-arm64/syscalls/pwritev.S b/libc/arch-arm64/syscalls/pwritev.S deleted file mode 100644 index 621466a6a..000000000 --- a/libc/arch-arm64/syscalls/pwritev.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pwritev) - mov x8, __NR_pwritev - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(pwritev) - -ALIAS_SYMBOL(pwritev64, pwritev) diff --git a/libc/arch-arm64/syscalls/quotactl.S b/libc/arch-arm64/syscalls/quotactl.S deleted file mode 100644 index b67d47ec9..000000000 --- a/libc/arch-arm64/syscalls/quotactl.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(quotactl) - mov x8, __NR_quotactl - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(quotactl) diff --git a/libc/arch-arm64/syscalls/read.S b/libc/arch-arm64/syscalls/read.S deleted file mode 100644 index ddb88c8dc..000000000 --- a/libc/arch-arm64/syscalls/read.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(read) - mov x8, __NR_read - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(read) diff --git a/libc/arch-arm64/syscalls/readahead.S b/libc/arch-arm64/syscalls/readahead.S deleted file mode 100644 index 445abd45b..000000000 --- a/libc/arch-arm64/syscalls/readahead.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readahead) - mov x8, __NR_readahead - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(readahead) diff --git a/libc/arch-arm64/syscalls/readlinkat.S b/libc/arch-arm64/syscalls/readlinkat.S deleted file mode 100644 index 62cc9e2a8..000000000 --- a/libc/arch-arm64/syscalls/readlinkat.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readlinkat) - mov x8, __NR_readlinkat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(readlinkat) diff --git a/libc/arch-arm64/syscalls/readv.S b/libc/arch-arm64/syscalls/readv.S deleted file mode 100644 index 6e7f15136..000000000 --- a/libc/arch-arm64/syscalls/readv.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readv) - mov x8, __NR_readv - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(readv) diff --git a/libc/arch-arm64/syscalls/recvfrom.S b/libc/arch-arm64/syscalls/recvfrom.S deleted file mode 100644 index aecf165a7..000000000 --- a/libc/arch-arm64/syscalls/recvfrom.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvfrom) - mov x8, __NR_recvfrom - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(recvfrom) diff --git a/libc/arch-arm64/syscalls/recvmmsg.S b/libc/arch-arm64/syscalls/recvmmsg.S deleted file mode 100644 index b9cae69bb..000000000 --- a/libc/arch-arm64/syscalls/recvmmsg.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvmmsg) - mov x8, __NR_recvmmsg - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(recvmmsg) diff --git a/libc/arch-arm64/syscalls/recvmsg.S b/libc/arch-arm64/syscalls/recvmsg.S deleted file mode 100644 index 2dafdc9ba..000000000 --- a/libc/arch-arm64/syscalls/recvmsg.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvmsg) - mov x8, __NR_recvmsg - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(recvmsg) diff --git a/libc/arch-arm64/syscalls/removexattr.S b/libc/arch-arm64/syscalls/removexattr.S deleted file mode 100644 index ede36a6bb..000000000 --- a/libc/arch-arm64/syscalls/removexattr.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(removexattr) - mov x8, __NR_removexattr - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(removexattr) diff --git a/libc/arch-arm64/syscalls/renameat.S b/libc/arch-arm64/syscalls/renameat.S deleted file mode 100644 index 96025df29..000000000 --- a/libc/arch-arm64/syscalls/renameat.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(renameat) - mov x8, __NR_renameat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(renameat) diff --git a/libc/arch-arm64/syscalls/sched_get_priority_max.S b/libc/arch-arm64/syscalls/sched_get_priority_max.S deleted file mode 100644 index c8488898e..000000000 --- a/libc/arch-arm64/syscalls/sched_get_priority_max.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_get_priority_max) - mov x8, __NR_sched_get_priority_max - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sched_get_priority_max) diff --git a/libc/arch-arm64/syscalls/sched_get_priority_min.S b/libc/arch-arm64/syscalls/sched_get_priority_min.S deleted file mode 100644 index 74b72a29d..000000000 --- a/libc/arch-arm64/syscalls/sched_get_priority_min.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_get_priority_min) - mov x8, __NR_sched_get_priority_min - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sched_get_priority_min) diff --git a/libc/arch-arm64/syscalls/sched_getparam.S b/libc/arch-arm64/syscalls/sched_getparam.S deleted file mode 100644 index 75a32d420..000000000 --- a/libc/arch-arm64/syscalls/sched_getparam.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_getparam) - mov x8, __NR_sched_getparam - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sched_getparam) diff --git a/libc/arch-arm64/syscalls/sched_getscheduler.S b/libc/arch-arm64/syscalls/sched_getscheduler.S deleted file mode 100644 index e24baf268..000000000 --- a/libc/arch-arm64/syscalls/sched_getscheduler.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_getscheduler) - mov x8, __NR_sched_getscheduler - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sched_getscheduler) diff --git a/libc/arch-arm64/syscalls/sched_rr_get_interval.S b/libc/arch-arm64/syscalls/sched_rr_get_interval.S deleted file mode 100644 index 2a6936b1b..000000000 --- a/libc/arch-arm64/syscalls/sched_rr_get_interval.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_rr_get_interval) - mov x8, __NR_sched_rr_get_interval - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sched_rr_get_interval) diff --git a/libc/arch-arm64/syscalls/sched_setaffinity.S b/libc/arch-arm64/syscalls/sched_setaffinity.S deleted file mode 100644 index 30b58f61f..000000000 --- a/libc/arch-arm64/syscalls/sched_setaffinity.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setaffinity) - mov x8, __NR_sched_setaffinity - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sched_setaffinity) diff --git a/libc/arch-arm64/syscalls/sched_setparam.S b/libc/arch-arm64/syscalls/sched_setparam.S deleted file mode 100644 index eaf25bab4..000000000 --- a/libc/arch-arm64/syscalls/sched_setparam.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setparam) - mov x8, __NR_sched_setparam - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sched_setparam) diff --git a/libc/arch-arm64/syscalls/sched_setscheduler.S b/libc/arch-arm64/syscalls/sched_setscheduler.S deleted file mode 100644 index 31d53c442..000000000 --- a/libc/arch-arm64/syscalls/sched_setscheduler.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setscheduler) - mov x8, __NR_sched_setscheduler - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sched_setscheduler) diff --git a/libc/arch-arm64/syscalls/sched_yield.S b/libc/arch-arm64/syscalls/sched_yield.S deleted file mode 100644 index 4cfeedaa1..000000000 --- a/libc/arch-arm64/syscalls/sched_yield.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_yield) - mov x8, __NR_sched_yield - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sched_yield) diff --git a/libc/arch-arm64/syscalls/sendfile.S b/libc/arch-arm64/syscalls/sendfile.S deleted file mode 100644 index 50ac12dbc..000000000 --- a/libc/arch-arm64/syscalls/sendfile.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendfile) - mov x8, __NR_sendfile - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sendfile) - -ALIAS_SYMBOL(sendfile64, sendfile) diff --git a/libc/arch-arm64/syscalls/sendmmsg.S b/libc/arch-arm64/syscalls/sendmmsg.S deleted file mode 100644 index e91c2461a..000000000 --- a/libc/arch-arm64/syscalls/sendmmsg.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendmmsg) - mov x8, __NR_sendmmsg - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sendmmsg) diff --git a/libc/arch-arm64/syscalls/sendmsg.S b/libc/arch-arm64/syscalls/sendmsg.S deleted file mode 100644 index a34354360..000000000 --- a/libc/arch-arm64/syscalls/sendmsg.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendmsg) - mov x8, __NR_sendmsg - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sendmsg) diff --git a/libc/arch-arm64/syscalls/sendto.S b/libc/arch-arm64/syscalls/sendto.S deleted file mode 100644 index 6a6813e54..000000000 --- a/libc/arch-arm64/syscalls/sendto.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendto) - mov x8, __NR_sendto - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sendto) diff --git a/libc/arch-arm64/syscalls/setdomainname.S b/libc/arch-arm64/syscalls/setdomainname.S deleted file mode 100644 index 18f8d4b7c..000000000 --- a/libc/arch-arm64/syscalls/setdomainname.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setdomainname) - mov x8, __NR_setdomainname - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setdomainname) diff --git a/libc/arch-arm64/syscalls/setfsgid.S b/libc/arch-arm64/syscalls/setfsgid.S deleted file mode 100644 index 1a45df34e..000000000 --- a/libc/arch-arm64/syscalls/setfsgid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setfsgid) - mov x8, __NR_setfsgid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setfsgid) diff --git a/libc/arch-arm64/syscalls/setfsuid.S b/libc/arch-arm64/syscalls/setfsuid.S deleted file mode 100644 index cd4efd79e..000000000 --- a/libc/arch-arm64/syscalls/setfsuid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setfsuid) - mov x8, __NR_setfsuid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setfsuid) diff --git a/libc/arch-arm64/syscalls/setgid.S b/libc/arch-arm64/syscalls/setgid.S deleted file mode 100644 index c128fb9dc..000000000 --- a/libc/arch-arm64/syscalls/setgid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setgid) - mov x8, __NR_setgid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setgid) diff --git a/libc/arch-arm64/syscalls/setgroups.S b/libc/arch-arm64/syscalls/setgroups.S deleted file mode 100644 index aedabd61d..000000000 --- a/libc/arch-arm64/syscalls/setgroups.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setgroups) - mov x8, __NR_setgroups - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setgroups) diff --git a/libc/arch-arm64/syscalls/sethostname.S b/libc/arch-arm64/syscalls/sethostname.S deleted file mode 100644 index 2dea4570e..000000000 --- a/libc/arch-arm64/syscalls/sethostname.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sethostname) - mov x8, __NR_sethostname - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sethostname) diff --git a/libc/arch-arm64/syscalls/setitimer.S b/libc/arch-arm64/syscalls/setitimer.S deleted file mode 100644 index 7ce861715..000000000 --- a/libc/arch-arm64/syscalls/setitimer.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setitimer) - mov x8, __NR_setitimer - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setitimer) diff --git a/libc/arch-arm64/syscalls/setns.S b/libc/arch-arm64/syscalls/setns.S deleted file mode 100644 index 386e8f48f..000000000 --- a/libc/arch-arm64/syscalls/setns.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setns) - mov x8, __NR_setns - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setns) diff --git a/libc/arch-arm64/syscalls/setpgid.S b/libc/arch-arm64/syscalls/setpgid.S deleted file mode 100644 index 458c88ba0..000000000 --- a/libc/arch-arm64/syscalls/setpgid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setpgid) - mov x8, __NR_setpgid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setpgid) diff --git a/libc/arch-arm64/syscalls/setpriority.S b/libc/arch-arm64/syscalls/setpriority.S deleted file mode 100644 index ed58f2670..000000000 --- a/libc/arch-arm64/syscalls/setpriority.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setpriority) - mov x8, __NR_setpriority - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setpriority) diff --git a/libc/arch-arm64/syscalls/setregid.S b/libc/arch-arm64/syscalls/setregid.S deleted file mode 100644 index 30d902d6b..000000000 --- a/libc/arch-arm64/syscalls/setregid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setregid) - mov x8, __NR_setregid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setregid) diff --git a/libc/arch-arm64/syscalls/setresgid.S b/libc/arch-arm64/syscalls/setresgid.S deleted file mode 100644 index f56e6ce76..000000000 --- a/libc/arch-arm64/syscalls/setresgid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setresgid) - mov x8, __NR_setresgid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setresgid) diff --git a/libc/arch-arm64/syscalls/setresuid.S b/libc/arch-arm64/syscalls/setresuid.S deleted file mode 100644 index d5c5cc6d9..000000000 --- a/libc/arch-arm64/syscalls/setresuid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setresuid) - mov x8, __NR_setresuid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setresuid) diff --git a/libc/arch-arm64/syscalls/setreuid.S b/libc/arch-arm64/syscalls/setreuid.S deleted file mode 100644 index e76c72ed4..000000000 --- a/libc/arch-arm64/syscalls/setreuid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setreuid) - mov x8, __NR_setreuid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setreuid) diff --git a/libc/arch-arm64/syscalls/setrlimit.S b/libc/arch-arm64/syscalls/setrlimit.S deleted file mode 100644 index 52c75a1b9..000000000 --- a/libc/arch-arm64/syscalls/setrlimit.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setrlimit) - mov x8, __NR_setrlimit - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setrlimit) - -ALIAS_SYMBOL(setrlimit64, setrlimit) diff --git a/libc/arch-arm64/syscalls/setsid.S b/libc/arch-arm64/syscalls/setsid.S deleted file mode 100644 index 1bb4cc771..000000000 --- a/libc/arch-arm64/syscalls/setsid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setsid) - mov x8, __NR_setsid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setsid) diff --git a/libc/arch-arm64/syscalls/setsockopt.S b/libc/arch-arm64/syscalls/setsockopt.S deleted file mode 100644 index 14b01367e..000000000 --- a/libc/arch-arm64/syscalls/setsockopt.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setsockopt) - mov x8, __NR_setsockopt - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setsockopt) diff --git a/libc/arch-arm64/syscalls/settimeofday.S b/libc/arch-arm64/syscalls/settimeofday.S deleted file mode 100644 index 4f0a078f6..000000000 --- a/libc/arch-arm64/syscalls/settimeofday.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(settimeofday) - mov x8, __NR_settimeofday - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(settimeofday) diff --git a/libc/arch-arm64/syscalls/setuid.S b/libc/arch-arm64/syscalls/setuid.S deleted file mode 100644 index 5500dd627..000000000 --- a/libc/arch-arm64/syscalls/setuid.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setuid) - mov x8, __NR_setuid - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setuid) diff --git a/libc/arch-arm64/syscalls/setxattr.S b/libc/arch-arm64/syscalls/setxattr.S deleted file mode 100644 index 5ba9e3cb4..000000000 --- a/libc/arch-arm64/syscalls/setxattr.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setxattr) - mov x8, __NR_setxattr - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(setxattr) diff --git a/libc/arch-arm64/syscalls/shutdown.S b/libc/arch-arm64/syscalls/shutdown.S deleted file mode 100644 index ab067fafe..000000000 --- a/libc/arch-arm64/syscalls/shutdown.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(shutdown) - mov x8, __NR_shutdown - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(shutdown) diff --git a/libc/arch-arm64/syscalls/sigaltstack.S b/libc/arch-arm64/syscalls/sigaltstack.S deleted file mode 100644 index a9cbcafb6..000000000 --- a/libc/arch-arm64/syscalls/sigaltstack.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sigaltstack) - mov x8, __NR_sigaltstack - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sigaltstack) diff --git a/libc/arch-arm64/syscalls/socketpair.S b/libc/arch-arm64/syscalls/socketpair.S deleted file mode 100644 index bd70dac18..000000000 --- a/libc/arch-arm64/syscalls/socketpair.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(socketpair) - mov x8, __NR_socketpair - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(socketpair) diff --git a/libc/arch-arm64/syscalls/splice.S b/libc/arch-arm64/syscalls/splice.S deleted file mode 100644 index a5450d908..000000000 --- a/libc/arch-arm64/syscalls/splice.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(splice) - mov x8, __NR_splice - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(splice) diff --git a/libc/arch-arm64/syscalls/swapoff.S b/libc/arch-arm64/syscalls/swapoff.S deleted file mode 100644 index 0103bd7fa..000000000 --- a/libc/arch-arm64/syscalls/swapoff.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(swapoff) - mov x8, __NR_swapoff - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(swapoff) diff --git a/libc/arch-arm64/syscalls/swapon.S b/libc/arch-arm64/syscalls/swapon.S deleted file mode 100644 index 560c96086..000000000 --- a/libc/arch-arm64/syscalls/swapon.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(swapon) - mov x8, __NR_swapon - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(swapon) diff --git a/libc/arch-arm64/syscalls/symlinkat.S b/libc/arch-arm64/syscalls/symlinkat.S deleted file mode 100644 index 4a4ea2795..000000000 --- a/libc/arch-arm64/syscalls/symlinkat.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(symlinkat) - mov x8, __NR_symlinkat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(symlinkat) diff --git a/libc/arch-arm64/syscalls/sync.S b/libc/arch-arm64/syscalls/sync.S deleted file mode 100644 index d285d4367..000000000 --- a/libc/arch-arm64/syscalls/sync.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sync) - mov x8, __NR_sync - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sync) diff --git a/libc/arch-arm64/syscalls/syncfs.S b/libc/arch-arm64/syscalls/syncfs.S deleted file mode 100644 index 773c0cb45..000000000 --- a/libc/arch-arm64/syscalls/syncfs.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(syncfs) - mov x8, __NR_syncfs - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(syncfs) diff --git a/libc/arch-arm64/syscalls/sysinfo.S b/libc/arch-arm64/syscalls/sysinfo.S deleted file mode 100644 index 80a864199..000000000 --- a/libc/arch-arm64/syscalls/sysinfo.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sysinfo) - mov x8, __NR_sysinfo - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(sysinfo) diff --git a/libc/arch-arm64/syscalls/tee.S b/libc/arch-arm64/syscalls/tee.S deleted file mode 100644 index d7baa26f4..000000000 --- a/libc/arch-arm64/syscalls/tee.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(tee) - mov x8, __NR_tee - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(tee) diff --git a/libc/arch-arm64/syscalls/tgkill.S b/libc/arch-arm64/syscalls/tgkill.S deleted file mode 100644 index fd9ec3beb..000000000 --- a/libc/arch-arm64/syscalls/tgkill.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(tgkill) - mov x8, __NR_tgkill - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(tgkill) diff --git a/libc/arch-arm64/syscalls/timerfd_create.S b/libc/arch-arm64/syscalls/timerfd_create.S deleted file mode 100644 index ee805fd25..000000000 --- a/libc/arch-arm64/syscalls/timerfd_create.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_create) - mov x8, __NR_timerfd_create - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(timerfd_create) diff --git a/libc/arch-arm64/syscalls/timerfd_gettime.S b/libc/arch-arm64/syscalls/timerfd_gettime.S deleted file mode 100644 index 4d5e2f91f..000000000 --- a/libc/arch-arm64/syscalls/timerfd_gettime.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_gettime) - mov x8, __NR_timerfd_gettime - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(timerfd_gettime) diff --git a/libc/arch-arm64/syscalls/timerfd_settime.S b/libc/arch-arm64/syscalls/timerfd_settime.S deleted file mode 100644 index e925a0ce9..000000000 --- a/libc/arch-arm64/syscalls/timerfd_settime.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_settime) - mov x8, __NR_timerfd_settime - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(timerfd_settime) diff --git a/libc/arch-arm64/syscalls/times.S b/libc/arch-arm64/syscalls/times.S deleted file mode 100644 index d7b9c74bc..000000000 --- a/libc/arch-arm64/syscalls/times.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(times) - mov x8, __NR_times - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(times) diff --git a/libc/arch-arm64/syscalls/truncate.S b/libc/arch-arm64/syscalls/truncate.S deleted file mode 100644 index e01cc7d2e..000000000 --- a/libc/arch-arm64/syscalls/truncate.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(truncate) - mov x8, __NR_truncate - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(truncate) - -ALIAS_SYMBOL(truncate64, truncate) diff --git a/libc/arch-arm64/syscalls/umask.S b/libc/arch-arm64/syscalls/umask.S deleted file mode 100644 index 0d71fa69e..000000000 --- a/libc/arch-arm64/syscalls/umask.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(umask) - mov x8, __NR_umask - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(umask) diff --git a/libc/arch-arm64/syscalls/umount2.S b/libc/arch-arm64/syscalls/umount2.S deleted file mode 100644 index c25344e64..000000000 --- a/libc/arch-arm64/syscalls/umount2.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(umount2) - mov x8, __NR_umount2 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(umount2) diff --git a/libc/arch-arm64/syscalls/uname.S b/libc/arch-arm64/syscalls/uname.S deleted file mode 100644 index dfdcc03e7..000000000 --- a/libc/arch-arm64/syscalls/uname.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(uname) - mov x8, __NR_uname - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(uname) diff --git a/libc/arch-arm64/syscalls/unlinkat.S b/libc/arch-arm64/syscalls/unlinkat.S deleted file mode 100644 index b1eba63f1..000000000 --- a/libc/arch-arm64/syscalls/unlinkat.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(unlinkat) - mov x8, __NR_unlinkat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(unlinkat) diff --git a/libc/arch-arm64/syscalls/unshare.S b/libc/arch-arm64/syscalls/unshare.S deleted file mode 100644 index 74f5663c2..000000000 --- a/libc/arch-arm64/syscalls/unshare.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(unshare) - mov x8, __NR_unshare - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(unshare) diff --git a/libc/arch-arm64/syscalls/utimensat.S b/libc/arch-arm64/syscalls/utimensat.S deleted file mode 100644 index b8c6b0456..000000000 --- a/libc/arch-arm64/syscalls/utimensat.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(utimensat) - mov x8, __NR_utimensat - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(utimensat) diff --git a/libc/arch-arm64/syscalls/vmsplice.S b/libc/arch-arm64/syscalls/vmsplice.S deleted file mode 100644 index 9490efbd9..000000000 --- a/libc/arch-arm64/syscalls/vmsplice.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(vmsplice) - mov x8, __NR_vmsplice - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(vmsplice) diff --git a/libc/arch-arm64/syscalls/wait4.S b/libc/arch-arm64/syscalls/wait4.S deleted file mode 100644 index 12973b817..000000000 --- a/libc/arch-arm64/syscalls/wait4.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(wait4) - mov x8, __NR_wait4 - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(wait4) diff --git a/libc/arch-arm64/syscalls/write.S b/libc/arch-arm64/syscalls/write.S deleted file mode 100644 index e8c327079..000000000 --- a/libc/arch-arm64/syscalls/write.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(write) - mov x8, __NR_write - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(write) diff --git a/libc/arch-arm64/syscalls/writev.S b/libc/arch-arm64/syscalls/writev.S deleted file mode 100644 index baaffda62..000000000 --- a/libc/arch-arm64/syscalls/writev.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(writev) - mov x8, __NR_writev - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno_internal - - ret -END(writev) diff --git a/libc/arch-mips/syscalls/___clock_nanosleep.S b/libc/arch-mips/syscalls/___clock_nanosleep.S deleted file mode 100644 index 55a77d4bb..000000000 --- a/libc/arch-mips/syscalls/___clock_nanosleep.S +++ /dev/null @@ -1,20 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___clock_nanosleep) - .set noreorder - .cpload $t9 - li $v0, __NR_clock_nanosleep - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(___clock_nanosleep) -.hidden ___clock_nanosleep diff --git a/libc/arch-mips/syscalls/___close.S b/libc/arch-mips/syscalls/___close.S deleted file mode 100644 index 592766abd..000000000 --- a/libc/arch-mips/syscalls/___close.S +++ /dev/null @@ -1,20 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___close) - .set noreorder - .cpload $t9 - li $v0, __NR_close - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(___close) -.hidden ___close diff --git a/libc/arch-mips/syscalls/___faccessat.S b/libc/arch-mips/syscalls/___faccessat.S deleted file mode 100644 index 9222c6f68..000000000 --- a/libc/arch-mips/syscalls/___faccessat.S +++ /dev/null @@ -1,20 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___faccessat) - .set noreorder - .cpload $t9 - li $v0, __NR_faccessat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(___faccessat) -.hidden ___faccessat diff --git a/libc/arch-mips/syscalls/___fchmod.S b/libc/arch-mips/syscalls/___fchmod.S deleted file mode 100644 index 680c3685d..000000000 --- a/libc/arch-mips/syscalls/___fchmod.S +++ /dev/null @@ -1,20 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fchmod) - .set noreorder - .cpload $t9 - li $v0, __NR_fchmod - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(___fchmod) -.hidden ___fchmod diff --git a/libc/arch-mips/syscalls/___fchmodat.S b/libc/arch-mips/syscalls/___fchmodat.S deleted file mode 100644 index 0c8a6bb23..000000000 --- a/libc/arch-mips/syscalls/___fchmodat.S +++ /dev/null @@ -1,20 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fchmodat) - .set noreorder - .cpload $t9 - li $v0, __NR_fchmodat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(___fchmodat) -.hidden ___fchmodat diff --git a/libc/arch-mips/syscalls/___fgetxattr.S b/libc/arch-mips/syscalls/___fgetxattr.S deleted file mode 100644 index a1cc13b84..000000000 --- a/libc/arch-mips/syscalls/___fgetxattr.S +++ /dev/null @@ -1,20 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fgetxattr) - .set noreorder - .cpload $t9 - li $v0, __NR_fgetxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(___fgetxattr) -.hidden ___fgetxattr diff --git a/libc/arch-mips/syscalls/___flistxattr.S b/libc/arch-mips/syscalls/___flistxattr.S deleted file mode 100644 index 77856fd02..000000000 --- a/libc/arch-mips/syscalls/___flistxattr.S +++ /dev/null @@ -1,20 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___flistxattr) - .set noreorder - .cpload $t9 - li $v0, __NR_flistxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(___flistxattr) -.hidden ___flistxattr diff --git a/libc/arch-mips/syscalls/___fsetxattr.S b/libc/arch-mips/syscalls/___fsetxattr.S deleted file mode 100644 index 9c6a419c1..000000000 --- a/libc/arch-mips/syscalls/___fsetxattr.S +++ /dev/null @@ -1,20 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fsetxattr) - .set noreorder - .cpload $t9 - li $v0, __NR_fsetxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(___fsetxattr) -.hidden ___fsetxattr diff --git a/libc/arch-mips/syscalls/___mremap.S b/libc/arch-mips/syscalls/___mremap.S deleted file mode 100644 index 768b95817..000000000 --- a/libc/arch-mips/syscalls/___mremap.S +++ /dev/null @@ -1,20 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___mremap) - .set noreorder - .cpload $t9 - li $v0, __NR_mremap - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(___mremap) -.hidden ___mremap diff --git a/libc/arch-mips/syscalls/___rt_sigqueueinfo.S b/libc/arch-mips/syscalls/___rt_sigqueueinfo.S deleted file mode 100644 index dde37820b..000000000 --- a/libc/arch-mips/syscalls/___rt_sigqueueinfo.S +++ /dev/null @@ -1,20 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___rt_sigqueueinfo) - .set noreorder - .cpload $t9 - li $v0, __NR_rt_sigqueueinfo - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(___rt_sigqueueinfo) -.hidden ___rt_sigqueueinfo diff --git a/libc/arch-mips/syscalls/__accept4.S b/libc/arch-mips/syscalls/__accept4.S deleted file mode 100644 index 596660c92..000000000 --- a/libc/arch-mips/syscalls/__accept4.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__accept4) - .set noreorder - .cpload $t9 - li $v0, __NR_accept4 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__accept4) diff --git a/libc/arch-mips/syscalls/__brk.S b/libc/arch-mips/syscalls/__brk.S deleted file mode 100644 index ea0f2c3a7..000000000 --- a/libc/arch-mips/syscalls/__brk.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__brk) - .set noreorder - .cpload $t9 - li $v0, __NR_brk - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__brk) diff --git a/libc/arch-mips/syscalls/__clock_getres.S b/libc/arch-mips/syscalls/__clock_getres.S deleted file mode 100644 index d4e67c538..000000000 --- a/libc/arch-mips/syscalls/__clock_getres.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__clock_getres) - .set noreorder - .cpload $t9 - li $v0, __NR_clock_getres - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__clock_getres) diff --git a/libc/arch-mips/syscalls/__clock_gettime.S b/libc/arch-mips/syscalls/__clock_gettime.S deleted file mode 100644 index a68990b2a..000000000 --- a/libc/arch-mips/syscalls/__clock_gettime.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__clock_gettime) - .set noreorder - .cpload $t9 - li $v0, __NR_clock_gettime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__clock_gettime) diff --git a/libc/arch-mips/syscalls/__connect.S b/libc/arch-mips/syscalls/__connect.S deleted file mode 100644 index 9a8710567..000000000 --- a/libc/arch-mips/syscalls/__connect.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__connect) - .set noreorder - .cpload $t9 - li $v0, __NR_connect - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__connect) diff --git a/libc/arch-mips/syscalls/__epoll_pwait.S b/libc/arch-mips/syscalls/__epoll_pwait.S deleted file mode 100644 index 68f9d1f7c..000000000 --- a/libc/arch-mips/syscalls/__epoll_pwait.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__epoll_pwait) - .set noreorder - .cpload $t9 - li $v0, __NR_epoll_pwait - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__epoll_pwait) diff --git a/libc/arch-mips/syscalls/__exit.S b/libc/arch-mips/syscalls/__exit.S deleted file mode 100644 index d4d1ab8e6..000000000 --- a/libc/arch-mips/syscalls/__exit.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__exit) - .set noreorder - .cpload $t9 - li $v0, __NR_exit - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__exit) diff --git a/libc/arch-mips/syscalls/__fadvise64.S b/libc/arch-mips/syscalls/__fadvise64.S deleted file mode 100644 index be0694e84..000000000 --- a/libc/arch-mips/syscalls/__fadvise64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fadvise64) - .set noreorder - .cpload $t9 - li $v0, __NR_fadvise64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__fadvise64) diff --git a/libc/arch-mips/syscalls/__fcntl64.S b/libc/arch-mips/syscalls/__fcntl64.S deleted file mode 100644 index d6e54e4dc..000000000 --- a/libc/arch-mips/syscalls/__fcntl64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fcntl64) - .set noreorder - .cpload $t9 - li $v0, __NR_fcntl64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__fcntl64) diff --git a/libc/arch-mips/syscalls/__fstatfs64.S b/libc/arch-mips/syscalls/__fstatfs64.S deleted file mode 100644 index 8dc2ed3ff..000000000 --- a/libc/arch-mips/syscalls/__fstatfs64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fstatfs64) - .set noreorder - .cpload $t9 - li $v0, __NR_fstatfs64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__fstatfs64) diff --git a/libc/arch-mips/syscalls/__getcpu.S b/libc/arch-mips/syscalls/__getcpu.S deleted file mode 100644 index b159f2c44..000000000 --- a/libc/arch-mips/syscalls/__getcpu.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getcpu) - .set noreorder - .cpload $t9 - li $v0, __NR_getcpu - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__getcpu) diff --git a/libc/arch-mips/syscalls/__getcwd.S b/libc/arch-mips/syscalls/__getcwd.S deleted file mode 100644 index 648224456..000000000 --- a/libc/arch-mips/syscalls/__getcwd.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getcwd) - .set noreorder - .cpload $t9 - li $v0, __NR_getcwd - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__getcwd) diff --git a/libc/arch-mips/syscalls/__getdents64.S b/libc/arch-mips/syscalls/__getdents64.S deleted file mode 100644 index 8324a806d..000000000 --- a/libc/arch-mips/syscalls/__getdents64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getdents64) - .set noreorder - .cpload $t9 - li $v0, __NR_getdents64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__getdents64) diff --git a/libc/arch-mips/syscalls/__getpid.S b/libc/arch-mips/syscalls/__getpid.S deleted file mode 100644 index 9f122e0d9..000000000 --- a/libc/arch-mips/syscalls/__getpid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getpid) - .set noreorder - .cpload $t9 - li $v0, __NR_getpid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__getpid) diff --git a/libc/arch-mips/syscalls/__getpriority.S b/libc/arch-mips/syscalls/__getpriority.S deleted file mode 100644 index 22aa7c1a0..000000000 --- a/libc/arch-mips/syscalls/__getpriority.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getpriority) - .set noreorder - .cpload $t9 - li $v0, __NR_getpriority - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__getpriority) diff --git a/libc/arch-mips/syscalls/__gettimeofday.S b/libc/arch-mips/syscalls/__gettimeofday.S deleted file mode 100644 index 021ca7f1f..000000000 --- a/libc/arch-mips/syscalls/__gettimeofday.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__gettimeofday) - .set noreorder - .cpload $t9 - li $v0, __NR_gettimeofday - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__gettimeofday) diff --git a/libc/arch-mips/syscalls/__ioctl.S b/libc/arch-mips/syscalls/__ioctl.S deleted file mode 100644 index fb45f5d3f..000000000 --- a/libc/arch-mips/syscalls/__ioctl.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ioctl) - .set noreorder - .cpload $t9 - li $v0, __NR_ioctl - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__ioctl) diff --git a/libc/arch-mips/syscalls/__llseek.S b/libc/arch-mips/syscalls/__llseek.S deleted file mode 100644 index d622d92ec..000000000 --- a/libc/arch-mips/syscalls/__llseek.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__llseek) - .set noreorder - .cpload $t9 - li $v0, __NR__llseek - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__llseek) diff --git a/libc/arch-mips/syscalls/__mmap2.S b/libc/arch-mips/syscalls/__mmap2.S deleted file mode 100644 index 435fc7796..000000000 --- a/libc/arch-mips/syscalls/__mmap2.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__mmap2) - .set noreorder - .cpload $t9 - li $v0, __NR_mmap2 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__mmap2) diff --git a/libc/arch-mips/syscalls/__openat.S b/libc/arch-mips/syscalls/__openat.S deleted file mode 100644 index a30c4a809..000000000 --- a/libc/arch-mips/syscalls/__openat.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__openat) - .set noreorder - .cpload $t9 - li $v0, __NR_openat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__openat) diff --git a/libc/arch-mips/syscalls/__ppoll.S b/libc/arch-mips/syscalls/__ppoll.S deleted file mode 100644 index e2f43639f..000000000 --- a/libc/arch-mips/syscalls/__ppoll.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ppoll) - .set noreorder - .cpload $t9 - li $v0, __NR_ppoll - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__ppoll) diff --git a/libc/arch-mips/syscalls/__preadv64.S b/libc/arch-mips/syscalls/__preadv64.S deleted file mode 100644 index 3bc732a83..000000000 --- a/libc/arch-mips/syscalls/__preadv64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__preadv64) - .set noreorder - .cpload $t9 - li $v0, __NR_preadv - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__preadv64) diff --git a/libc/arch-mips/syscalls/__pselect6.S b/libc/arch-mips/syscalls/__pselect6.S deleted file mode 100644 index 34c7df140..000000000 --- a/libc/arch-mips/syscalls/__pselect6.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__pselect6) - .set noreorder - .cpload $t9 - li $v0, __NR_pselect6 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__pselect6) diff --git a/libc/arch-mips/syscalls/__ptrace.S b/libc/arch-mips/syscalls/__ptrace.S deleted file mode 100644 index f3879eaf1..000000000 --- a/libc/arch-mips/syscalls/__ptrace.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ptrace) - .set noreorder - .cpload $t9 - li $v0, __NR_ptrace - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__ptrace) diff --git a/libc/arch-mips/syscalls/__pwritev64.S b/libc/arch-mips/syscalls/__pwritev64.S deleted file mode 100644 index 569a0d487..000000000 --- a/libc/arch-mips/syscalls/__pwritev64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__pwritev64) - .set noreorder - .cpload $t9 - li $v0, __NR_pwritev - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__pwritev64) diff --git a/libc/arch-mips/syscalls/__reboot.S b/libc/arch-mips/syscalls/__reboot.S deleted file mode 100644 index c77d09b7b..000000000 --- a/libc/arch-mips/syscalls/__reboot.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__reboot) - .set noreorder - .cpload $t9 - li $v0, __NR_reboot - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__reboot) diff --git a/libc/arch-mips/syscalls/__rt_sigaction.S b/libc/arch-mips/syscalls/__rt_sigaction.S deleted file mode 100644 index ae182962c..000000000 --- a/libc/arch-mips/syscalls/__rt_sigaction.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigaction) - .set noreorder - .cpload $t9 - li $v0, __NR_rt_sigaction - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__rt_sigaction) diff --git a/libc/arch-mips/syscalls/__rt_sigpending.S b/libc/arch-mips/syscalls/__rt_sigpending.S deleted file mode 100644 index b3597c877..000000000 --- a/libc/arch-mips/syscalls/__rt_sigpending.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigpending) - .set noreorder - .cpload $t9 - li $v0, __NR_rt_sigpending - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__rt_sigpending) diff --git a/libc/arch-mips/syscalls/__rt_sigprocmask.S b/libc/arch-mips/syscalls/__rt_sigprocmask.S deleted file mode 100644 index ca165c355..000000000 --- a/libc/arch-mips/syscalls/__rt_sigprocmask.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigprocmask) - .set noreorder - .cpload $t9 - li $v0, __NR_rt_sigprocmask - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__rt_sigprocmask) diff --git a/libc/arch-mips/syscalls/__rt_sigsuspend.S b/libc/arch-mips/syscalls/__rt_sigsuspend.S deleted file mode 100644 index afd6837f2..000000000 --- a/libc/arch-mips/syscalls/__rt_sigsuspend.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigsuspend) - .set noreorder - .cpload $t9 - li $v0, __NR_rt_sigsuspend - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__rt_sigsuspend) diff --git a/libc/arch-mips/syscalls/__rt_sigtimedwait.S b/libc/arch-mips/syscalls/__rt_sigtimedwait.S deleted file mode 100644 index c9d6d3c36..000000000 --- a/libc/arch-mips/syscalls/__rt_sigtimedwait.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigtimedwait) - .set noreorder - .cpload $t9 - li $v0, __NR_rt_sigtimedwait - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__rt_sigtimedwait) diff --git a/libc/arch-mips/syscalls/__sched_getaffinity.S b/libc/arch-mips/syscalls/__sched_getaffinity.S deleted file mode 100644 index 94ea2a446..000000000 --- a/libc/arch-mips/syscalls/__sched_getaffinity.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sched_getaffinity) - .set noreorder - .cpload $t9 - li $v0, __NR_sched_getaffinity - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__sched_getaffinity) diff --git a/libc/arch-mips/syscalls/__set_tid_address.S b/libc/arch-mips/syscalls/__set_tid_address.S deleted file mode 100644 index 4a287830e..000000000 --- a/libc/arch-mips/syscalls/__set_tid_address.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__set_tid_address) - .set noreorder - .cpload $t9 - li $v0, __NR_set_tid_address - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__set_tid_address) diff --git a/libc/arch-mips/syscalls/__set_tls.S b/libc/arch-mips/syscalls/__set_tls.S deleted file mode 100644 index 00825b3dc..000000000 --- a/libc/arch-mips/syscalls/__set_tls.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__set_tls) - .set noreorder - .cpload $t9 - li $v0, __NR_set_thread_area - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__set_tls) diff --git a/libc/arch-mips/syscalls/__sigaction.S b/libc/arch-mips/syscalls/__sigaction.S deleted file mode 100644 index ef91e1d8c..000000000 --- a/libc/arch-mips/syscalls/__sigaction.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sigaction) - .set noreorder - .cpload $t9 - li $v0, __NR_sigaction - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__sigaction) diff --git a/libc/arch-mips/syscalls/__signalfd4.S b/libc/arch-mips/syscalls/__signalfd4.S deleted file mode 100644 index 754ad375e..000000000 --- a/libc/arch-mips/syscalls/__signalfd4.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__signalfd4) - .set noreorder - .cpload $t9 - li $v0, __NR_signalfd4 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__signalfd4) diff --git a/libc/arch-mips/syscalls/__socket.S b/libc/arch-mips/syscalls/__socket.S deleted file mode 100644 index 5d59e039e..000000000 --- a/libc/arch-mips/syscalls/__socket.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__socket) - .set noreorder - .cpload $t9 - li $v0, __NR_socket - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__socket) diff --git a/libc/arch-mips/syscalls/__statfs64.S b/libc/arch-mips/syscalls/__statfs64.S deleted file mode 100644 index 8ebe9f34a..000000000 --- a/libc/arch-mips/syscalls/__statfs64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__statfs64) - .set noreorder - .cpload $t9 - li $v0, __NR_statfs64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__statfs64) diff --git a/libc/arch-mips/syscalls/__sync_file_range.S b/libc/arch-mips/syscalls/__sync_file_range.S deleted file mode 100644 index ffd9c09cc..000000000 --- a/libc/arch-mips/syscalls/__sync_file_range.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sync_file_range) - .set noreorder - .cpload $t9 - li $v0, __NR_sync_file_range - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__sync_file_range) diff --git a/libc/arch-mips/syscalls/__timer_create.S b/libc/arch-mips/syscalls/__timer_create.S deleted file mode 100644 index fc1b9a515..000000000 --- a/libc/arch-mips/syscalls/__timer_create.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_create) - .set noreorder - .cpload $t9 - li $v0, __NR_timer_create - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__timer_create) diff --git a/libc/arch-mips/syscalls/__timer_delete.S b/libc/arch-mips/syscalls/__timer_delete.S deleted file mode 100644 index b1ca8b7b2..000000000 --- a/libc/arch-mips/syscalls/__timer_delete.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_delete) - .set noreorder - .cpload $t9 - li $v0, __NR_timer_delete - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__timer_delete) diff --git a/libc/arch-mips/syscalls/__timer_getoverrun.S b/libc/arch-mips/syscalls/__timer_getoverrun.S deleted file mode 100644 index 07e75e5cb..000000000 --- a/libc/arch-mips/syscalls/__timer_getoverrun.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_getoverrun) - .set noreorder - .cpload $t9 - li $v0, __NR_timer_getoverrun - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__timer_getoverrun) diff --git a/libc/arch-mips/syscalls/__timer_gettime.S b/libc/arch-mips/syscalls/__timer_gettime.S deleted file mode 100644 index 7ee9cadfc..000000000 --- a/libc/arch-mips/syscalls/__timer_gettime.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_gettime) - .set noreorder - .cpload $t9 - li $v0, __NR_timer_gettime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__timer_gettime) diff --git a/libc/arch-mips/syscalls/__timer_settime.S b/libc/arch-mips/syscalls/__timer_settime.S deleted file mode 100644 index 4f7d95ac9..000000000 --- a/libc/arch-mips/syscalls/__timer_settime.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_settime) - .set noreorder - .cpload $t9 - li $v0, __NR_timer_settime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__timer_settime) diff --git a/libc/arch-mips/syscalls/__waitid.S b/libc/arch-mips/syscalls/__waitid.S deleted file mode 100644 index 274d7b686..000000000 --- a/libc/arch-mips/syscalls/__waitid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__waitid) - .set noreorder - .cpload $t9 - li $v0, __NR_waitid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(__waitid) diff --git a/libc/arch-mips/syscalls/_exit.S b/libc/arch-mips/syscalls/_exit.S deleted file mode 100644 index f41912c15..000000000 --- a/libc/arch-mips/syscalls/_exit.S +++ /dev/null @@ -1,21 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(_exit) - .set noreorder - .cpload $t9 - li $v0, __NR_exit_group - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(_exit) - -ALIAS_SYMBOL(_Exit, _exit) diff --git a/libc/arch-mips/syscalls/_flush_cache.S b/libc/arch-mips/syscalls/_flush_cache.S deleted file mode 100644 index fa737e892..000000000 --- a/libc/arch-mips/syscalls/_flush_cache.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(_flush_cache) - .set noreorder - .cpload $t9 - li $v0, __NR_cacheflush - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(_flush_cache) diff --git a/libc/arch-mips/syscalls/acct.S b/libc/arch-mips/syscalls/acct.S deleted file mode 100644 index 9908c3f59..000000000 --- a/libc/arch-mips/syscalls/acct.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(acct) - .set noreorder - .cpload $t9 - li $v0, __NR_acct - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(acct) diff --git a/libc/arch-mips/syscalls/adjtimex.S b/libc/arch-mips/syscalls/adjtimex.S deleted file mode 100644 index bc525d03a..000000000 --- a/libc/arch-mips/syscalls/adjtimex.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(adjtimex) - .set noreorder - .cpload $t9 - li $v0, __NR_adjtimex - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(adjtimex) diff --git a/libc/arch-mips/syscalls/bind.S b/libc/arch-mips/syscalls/bind.S deleted file mode 100644 index cda6e2461..000000000 --- a/libc/arch-mips/syscalls/bind.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(bind) - .set noreorder - .cpload $t9 - li $v0, __NR_bind - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(bind) diff --git a/libc/arch-mips/syscalls/capget.S b/libc/arch-mips/syscalls/capget.S deleted file mode 100644 index 9c8d4301c..000000000 --- a/libc/arch-mips/syscalls/capget.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(capget) - .set noreorder - .cpload $t9 - li $v0, __NR_capget - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(capget) diff --git a/libc/arch-mips/syscalls/capset.S b/libc/arch-mips/syscalls/capset.S deleted file mode 100644 index f30beba10..000000000 --- a/libc/arch-mips/syscalls/capset.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(capset) - .set noreorder - .cpload $t9 - li $v0, __NR_capset - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(capset) diff --git a/libc/arch-mips/syscalls/chdir.S b/libc/arch-mips/syscalls/chdir.S deleted file mode 100644 index 17de18dc3..000000000 --- a/libc/arch-mips/syscalls/chdir.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(chdir) - .set noreorder - .cpload $t9 - li $v0, __NR_chdir - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(chdir) diff --git a/libc/arch-mips/syscalls/chroot.S b/libc/arch-mips/syscalls/chroot.S deleted file mode 100644 index c1998af2a..000000000 --- a/libc/arch-mips/syscalls/chroot.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(chroot) - .set noreorder - .cpload $t9 - li $v0, __NR_chroot - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(chroot) diff --git a/libc/arch-mips/syscalls/clock_adjtime.S b/libc/arch-mips/syscalls/clock_adjtime.S deleted file mode 100644 index 10f0d39d4..000000000 --- a/libc/arch-mips/syscalls/clock_adjtime.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(clock_adjtime) - .set noreorder - .cpload $t9 - li $v0, __NR_clock_adjtime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(clock_adjtime) diff --git a/libc/arch-mips/syscalls/clock_settime.S b/libc/arch-mips/syscalls/clock_settime.S deleted file mode 100644 index 651729d28..000000000 --- a/libc/arch-mips/syscalls/clock_settime.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(clock_settime) - .set noreorder - .cpload $t9 - li $v0, __NR_clock_settime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(clock_settime) diff --git a/libc/arch-mips/syscalls/delete_module.S b/libc/arch-mips/syscalls/delete_module.S deleted file mode 100644 index def5a1634..000000000 --- a/libc/arch-mips/syscalls/delete_module.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(delete_module) - .set noreorder - .cpload $t9 - li $v0, __NR_delete_module - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(delete_module) diff --git a/libc/arch-mips/syscalls/dup.S b/libc/arch-mips/syscalls/dup.S deleted file mode 100644 index 0c0ee8d73..000000000 --- a/libc/arch-mips/syscalls/dup.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(dup) - .set noreorder - .cpload $t9 - li $v0, __NR_dup - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(dup) diff --git a/libc/arch-mips/syscalls/dup3.S b/libc/arch-mips/syscalls/dup3.S deleted file mode 100644 index cbec96083..000000000 --- a/libc/arch-mips/syscalls/dup3.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(dup3) - .set noreorder - .cpload $t9 - li $v0, __NR_dup3 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(dup3) diff --git a/libc/arch-mips/syscalls/epoll_create1.S b/libc/arch-mips/syscalls/epoll_create1.S deleted file mode 100644 index fc268fe0f..000000000 --- a/libc/arch-mips/syscalls/epoll_create1.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(epoll_create1) - .set noreorder - .cpload $t9 - li $v0, __NR_epoll_create1 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(epoll_create1) diff --git a/libc/arch-mips/syscalls/epoll_ctl.S b/libc/arch-mips/syscalls/epoll_ctl.S deleted file mode 100644 index 222c97acf..000000000 --- a/libc/arch-mips/syscalls/epoll_ctl.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(epoll_ctl) - .set noreorder - .cpload $t9 - li $v0, __NR_epoll_ctl - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(epoll_ctl) diff --git a/libc/arch-mips/syscalls/eventfd.S b/libc/arch-mips/syscalls/eventfd.S deleted file mode 100644 index 2bca7188e..000000000 --- a/libc/arch-mips/syscalls/eventfd.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(eventfd) - .set noreorder - .cpload $t9 - li $v0, __NR_eventfd2 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(eventfd) diff --git a/libc/arch-mips/syscalls/execve.S b/libc/arch-mips/syscalls/execve.S deleted file mode 100644 index 3dd36a12f..000000000 --- a/libc/arch-mips/syscalls/execve.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(execve) - .set noreorder - .cpload $t9 - li $v0, __NR_execve - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(execve) diff --git a/libc/arch-mips/syscalls/fallocate64.S b/libc/arch-mips/syscalls/fallocate64.S deleted file mode 100644 index ed50bb5e3..000000000 --- a/libc/arch-mips/syscalls/fallocate64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fallocate64) - .set noreorder - .cpload $t9 - li $v0, __NR_fallocate - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(fallocate64) diff --git a/libc/arch-mips/syscalls/fchdir.S b/libc/arch-mips/syscalls/fchdir.S deleted file mode 100644 index 5b92e85ee..000000000 --- a/libc/arch-mips/syscalls/fchdir.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchdir) - .set noreorder - .cpload $t9 - li $v0, __NR_fchdir - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(fchdir) diff --git a/libc/arch-mips/syscalls/fchown.S b/libc/arch-mips/syscalls/fchown.S deleted file mode 100644 index afd96e8d4..000000000 --- a/libc/arch-mips/syscalls/fchown.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchown) - .set noreorder - .cpload $t9 - li $v0, __NR_fchown - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(fchown) diff --git a/libc/arch-mips/syscalls/fchownat.S b/libc/arch-mips/syscalls/fchownat.S deleted file mode 100644 index be2021b96..000000000 --- a/libc/arch-mips/syscalls/fchownat.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchownat) - .set noreorder - .cpload $t9 - li $v0, __NR_fchownat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(fchownat) diff --git a/libc/arch-mips/syscalls/fdatasync.S b/libc/arch-mips/syscalls/fdatasync.S deleted file mode 100644 index 0b37d8f7e..000000000 --- a/libc/arch-mips/syscalls/fdatasync.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fdatasync) - .set noreorder - .cpload $t9 - li $v0, __NR_fdatasync - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(fdatasync) diff --git a/libc/arch-mips/syscalls/flock.S b/libc/arch-mips/syscalls/flock.S deleted file mode 100644 index badb41dd8..000000000 --- a/libc/arch-mips/syscalls/flock.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(flock) - .set noreorder - .cpload $t9 - li $v0, __NR_flock - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(flock) diff --git a/libc/arch-mips/syscalls/fremovexattr.S b/libc/arch-mips/syscalls/fremovexattr.S deleted file mode 100644 index 290ecc86c..000000000 --- a/libc/arch-mips/syscalls/fremovexattr.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fremovexattr) - .set noreorder - .cpload $t9 - li $v0, __NR_fremovexattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(fremovexattr) diff --git a/libc/arch-mips/syscalls/fstat64.S b/libc/arch-mips/syscalls/fstat64.S deleted file mode 100644 index 3ecc2bac8..000000000 --- a/libc/arch-mips/syscalls/fstat64.S +++ /dev/null @@ -1,21 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fstat64) - .set noreorder - .cpload $t9 - li $v0, __NR_fstat64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(fstat64) - -ALIAS_SYMBOL(fstat, fstat64) diff --git a/libc/arch-mips/syscalls/fstatat64.S b/libc/arch-mips/syscalls/fstatat64.S deleted file mode 100644 index 5b7550c24..000000000 --- a/libc/arch-mips/syscalls/fstatat64.S +++ /dev/null @@ -1,21 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fstatat64) - .set noreorder - .cpload $t9 - li $v0, __NR_fstatat64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(fstatat64) - -ALIAS_SYMBOL(fstatat, fstatat64) diff --git a/libc/arch-mips/syscalls/fsync.S b/libc/arch-mips/syscalls/fsync.S deleted file mode 100644 index 24e86a25a..000000000 --- a/libc/arch-mips/syscalls/fsync.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fsync) - .set noreorder - .cpload $t9 - li $v0, __NR_fsync - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(fsync) diff --git a/libc/arch-mips/syscalls/ftruncate64.S b/libc/arch-mips/syscalls/ftruncate64.S deleted file mode 100644 index 858141c93..000000000 --- a/libc/arch-mips/syscalls/ftruncate64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(ftruncate64) - .set noreorder - .cpload $t9 - li $v0, __NR_ftruncate64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(ftruncate64) diff --git a/libc/arch-mips/syscalls/getegid.S b/libc/arch-mips/syscalls/getegid.S deleted file mode 100644 index 6bdf47f5d..000000000 --- a/libc/arch-mips/syscalls/getegid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getegid) - .set noreorder - .cpload $t9 - li $v0, __NR_getegid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getegid) diff --git a/libc/arch-mips/syscalls/geteuid.S b/libc/arch-mips/syscalls/geteuid.S deleted file mode 100644 index 07b571e76..000000000 --- a/libc/arch-mips/syscalls/geteuid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(geteuid) - .set noreorder - .cpload $t9 - li $v0, __NR_geteuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(geteuid) diff --git a/libc/arch-mips/syscalls/getgid.S b/libc/arch-mips/syscalls/getgid.S deleted file mode 100644 index a2020fa0f..000000000 --- a/libc/arch-mips/syscalls/getgid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getgid) - .set noreorder - .cpload $t9 - li $v0, __NR_getgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getgid) diff --git a/libc/arch-mips/syscalls/getgroups.S b/libc/arch-mips/syscalls/getgroups.S deleted file mode 100644 index 86510dcf6..000000000 --- a/libc/arch-mips/syscalls/getgroups.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getgroups) - .set noreorder - .cpload $t9 - li $v0, __NR_getgroups - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getgroups) diff --git a/libc/arch-mips/syscalls/getitimer.S b/libc/arch-mips/syscalls/getitimer.S deleted file mode 100644 index 6d671f555..000000000 --- a/libc/arch-mips/syscalls/getitimer.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getitimer) - .set noreorder - .cpload $t9 - li $v0, __NR_getitimer - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getitimer) diff --git a/libc/arch-mips/syscalls/getpeername.S b/libc/arch-mips/syscalls/getpeername.S deleted file mode 100644 index b372574d3..000000000 --- a/libc/arch-mips/syscalls/getpeername.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getpeername) - .set noreorder - .cpload $t9 - li $v0, __NR_getpeername - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getpeername) diff --git a/libc/arch-mips/syscalls/getpgid.S b/libc/arch-mips/syscalls/getpgid.S deleted file mode 100644 index 25a1fdff7..000000000 --- a/libc/arch-mips/syscalls/getpgid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getpgid) - .set noreorder - .cpload $t9 - li $v0, __NR_getpgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getpgid) diff --git a/libc/arch-mips/syscalls/getppid.S b/libc/arch-mips/syscalls/getppid.S deleted file mode 100644 index 54f12528c..000000000 --- a/libc/arch-mips/syscalls/getppid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getppid) - .set noreorder - .cpload $t9 - li $v0, __NR_getppid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getppid) diff --git a/libc/arch-mips/syscalls/getrandom.S b/libc/arch-mips/syscalls/getrandom.S deleted file mode 100644 index 9a32c785f..000000000 --- a/libc/arch-mips/syscalls/getrandom.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrandom) - .set noreorder - .cpload $t9 - li $v0, __NR_getrandom - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getrandom) diff --git a/libc/arch-mips/syscalls/getresgid.S b/libc/arch-mips/syscalls/getresgid.S deleted file mode 100644 index 8336f6686..000000000 --- a/libc/arch-mips/syscalls/getresgid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getresgid) - .set noreorder - .cpload $t9 - li $v0, __NR_getresgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getresgid) diff --git a/libc/arch-mips/syscalls/getresuid.S b/libc/arch-mips/syscalls/getresuid.S deleted file mode 100644 index 9e4cb362e..000000000 --- a/libc/arch-mips/syscalls/getresuid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getresuid) - .set noreorder - .cpload $t9 - li $v0, __NR_getresuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getresuid) diff --git a/libc/arch-mips/syscalls/getrlimit.S b/libc/arch-mips/syscalls/getrlimit.S deleted file mode 100644 index 2ae1c0422..000000000 --- a/libc/arch-mips/syscalls/getrlimit.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrlimit) - .set noreorder - .cpload $t9 - li $v0, __NR_getrlimit - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getrlimit) diff --git a/libc/arch-mips/syscalls/getrusage.S b/libc/arch-mips/syscalls/getrusage.S deleted file mode 100644 index c4a5aec20..000000000 --- a/libc/arch-mips/syscalls/getrusage.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrusage) - .set noreorder - .cpload $t9 - li $v0, __NR_getrusage - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getrusage) diff --git a/libc/arch-mips/syscalls/getsid.S b/libc/arch-mips/syscalls/getsid.S deleted file mode 100644 index 26f84c3ec..000000000 --- a/libc/arch-mips/syscalls/getsid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsid) - .set noreorder - .cpload $t9 - li $v0, __NR_getsid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getsid) diff --git a/libc/arch-mips/syscalls/getsockname.S b/libc/arch-mips/syscalls/getsockname.S deleted file mode 100644 index f54df876a..000000000 --- a/libc/arch-mips/syscalls/getsockname.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsockname) - .set noreorder - .cpload $t9 - li $v0, __NR_getsockname - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getsockname) diff --git a/libc/arch-mips/syscalls/getsockopt.S b/libc/arch-mips/syscalls/getsockopt.S deleted file mode 100644 index 32cd721af..000000000 --- a/libc/arch-mips/syscalls/getsockopt.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsockopt) - .set noreorder - .cpload $t9 - li $v0, __NR_getsockopt - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getsockopt) diff --git a/libc/arch-mips/syscalls/getuid.S b/libc/arch-mips/syscalls/getuid.S deleted file mode 100644 index d2fe78fa6..000000000 --- a/libc/arch-mips/syscalls/getuid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getuid) - .set noreorder - .cpload $t9 - li $v0, __NR_getuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getuid) diff --git a/libc/arch-mips/syscalls/getxattr.S b/libc/arch-mips/syscalls/getxattr.S deleted file mode 100644 index 0e5a33f32..000000000 --- a/libc/arch-mips/syscalls/getxattr.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getxattr) - .set noreorder - .cpload $t9 - li $v0, __NR_getxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(getxattr) diff --git a/libc/arch-mips/syscalls/init_module.S b/libc/arch-mips/syscalls/init_module.S deleted file mode 100644 index e4434c39a..000000000 --- a/libc/arch-mips/syscalls/init_module.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(init_module) - .set noreorder - .cpload $t9 - li $v0, __NR_init_module - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(init_module) diff --git a/libc/arch-mips/syscalls/inotify_add_watch.S b/libc/arch-mips/syscalls/inotify_add_watch.S deleted file mode 100644 index 3710cb7dd..000000000 --- a/libc/arch-mips/syscalls/inotify_add_watch.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_add_watch) - .set noreorder - .cpload $t9 - li $v0, __NR_inotify_add_watch - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(inotify_add_watch) diff --git a/libc/arch-mips/syscalls/inotify_init1.S b/libc/arch-mips/syscalls/inotify_init1.S deleted file mode 100644 index b38f01827..000000000 --- a/libc/arch-mips/syscalls/inotify_init1.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_init1) - .set noreorder - .cpload $t9 - li $v0, __NR_inotify_init1 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(inotify_init1) diff --git a/libc/arch-mips/syscalls/inotify_rm_watch.S b/libc/arch-mips/syscalls/inotify_rm_watch.S deleted file mode 100644 index a7b6fbef2..000000000 --- a/libc/arch-mips/syscalls/inotify_rm_watch.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_rm_watch) - .set noreorder - .cpload $t9 - li $v0, __NR_inotify_rm_watch - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(inotify_rm_watch) diff --git a/libc/arch-mips/syscalls/kill.S b/libc/arch-mips/syscalls/kill.S deleted file mode 100644 index 1075da1a3..000000000 --- a/libc/arch-mips/syscalls/kill.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(kill) - .set noreorder - .cpload $t9 - li $v0, __NR_kill - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(kill) diff --git a/libc/arch-mips/syscalls/klogctl.S b/libc/arch-mips/syscalls/klogctl.S deleted file mode 100644 index c3fa53c67..000000000 --- a/libc/arch-mips/syscalls/klogctl.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(klogctl) - .set noreorder - .cpload $t9 - li $v0, __NR_syslog - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(klogctl) diff --git a/libc/arch-mips/syscalls/lgetxattr.S b/libc/arch-mips/syscalls/lgetxattr.S deleted file mode 100644 index b05850da6..000000000 --- a/libc/arch-mips/syscalls/lgetxattr.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lgetxattr) - .set noreorder - .cpload $t9 - li $v0, __NR_lgetxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(lgetxattr) diff --git a/libc/arch-mips/syscalls/linkat.S b/libc/arch-mips/syscalls/linkat.S deleted file mode 100644 index eacc488b3..000000000 --- a/libc/arch-mips/syscalls/linkat.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(linkat) - .set noreorder - .cpload $t9 - li $v0, __NR_linkat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(linkat) diff --git a/libc/arch-mips/syscalls/listen.S b/libc/arch-mips/syscalls/listen.S deleted file mode 100644 index cbda02654..000000000 --- a/libc/arch-mips/syscalls/listen.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(listen) - .set noreorder - .cpload $t9 - li $v0, __NR_listen - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(listen) diff --git a/libc/arch-mips/syscalls/listxattr.S b/libc/arch-mips/syscalls/listxattr.S deleted file mode 100644 index 0ee14a076..000000000 --- a/libc/arch-mips/syscalls/listxattr.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(listxattr) - .set noreorder - .cpload $t9 - li $v0, __NR_listxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(listxattr) diff --git a/libc/arch-mips/syscalls/llistxattr.S b/libc/arch-mips/syscalls/llistxattr.S deleted file mode 100644 index 46f79df35..000000000 --- a/libc/arch-mips/syscalls/llistxattr.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(llistxattr) - .set noreorder - .cpload $t9 - li $v0, __NR_llistxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(llistxattr) diff --git a/libc/arch-mips/syscalls/lremovexattr.S b/libc/arch-mips/syscalls/lremovexattr.S deleted file mode 100644 index 74aa7c906..000000000 --- a/libc/arch-mips/syscalls/lremovexattr.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lremovexattr) - .set noreorder - .cpload $t9 - li $v0, __NR_lremovexattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(lremovexattr) diff --git a/libc/arch-mips/syscalls/lseek.S b/libc/arch-mips/syscalls/lseek.S deleted file mode 100644 index 9f939866d..000000000 --- a/libc/arch-mips/syscalls/lseek.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lseek) - .set noreorder - .cpload $t9 - li $v0, __NR_lseek - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(lseek) diff --git a/libc/arch-mips/syscalls/lsetxattr.S b/libc/arch-mips/syscalls/lsetxattr.S deleted file mode 100644 index a87121f04..000000000 --- a/libc/arch-mips/syscalls/lsetxattr.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lsetxattr) - .set noreorder - .cpload $t9 - li $v0, __NR_lsetxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(lsetxattr) diff --git a/libc/arch-mips/syscalls/madvise.S b/libc/arch-mips/syscalls/madvise.S deleted file mode 100644 index 5fd485660..000000000 --- a/libc/arch-mips/syscalls/madvise.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(madvise) - .set noreorder - .cpload $t9 - li $v0, __NR_madvise - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(madvise) diff --git a/libc/arch-mips/syscalls/mincore.S b/libc/arch-mips/syscalls/mincore.S deleted file mode 100644 index db7471903..000000000 --- a/libc/arch-mips/syscalls/mincore.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mincore) - .set noreorder - .cpload $t9 - li $v0, __NR_mincore - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(mincore) diff --git a/libc/arch-mips/syscalls/mkdirat.S b/libc/arch-mips/syscalls/mkdirat.S deleted file mode 100644 index 3ff69c380..000000000 --- a/libc/arch-mips/syscalls/mkdirat.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mkdirat) - .set noreorder - .cpload $t9 - li $v0, __NR_mkdirat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(mkdirat) diff --git a/libc/arch-mips/syscalls/mknodat.S b/libc/arch-mips/syscalls/mknodat.S deleted file mode 100644 index 651a61932..000000000 --- a/libc/arch-mips/syscalls/mknodat.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mknodat) - .set noreorder - .cpload $t9 - li $v0, __NR_mknodat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(mknodat) diff --git a/libc/arch-mips/syscalls/mlock.S b/libc/arch-mips/syscalls/mlock.S deleted file mode 100644 index d1bb3a450..000000000 --- a/libc/arch-mips/syscalls/mlock.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mlock) - .set noreorder - .cpload $t9 - li $v0, __NR_mlock - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(mlock) diff --git a/libc/arch-mips/syscalls/mlockall.S b/libc/arch-mips/syscalls/mlockall.S deleted file mode 100644 index 495be12d4..000000000 --- a/libc/arch-mips/syscalls/mlockall.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mlockall) - .set noreorder - .cpload $t9 - li $v0, __NR_mlockall - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(mlockall) diff --git a/libc/arch-mips/syscalls/mount.S b/libc/arch-mips/syscalls/mount.S deleted file mode 100644 index 6eccf01a2..000000000 --- a/libc/arch-mips/syscalls/mount.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mount) - .set noreorder - .cpload $t9 - li $v0, __NR_mount - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(mount) diff --git a/libc/arch-mips/syscalls/mprotect.S b/libc/arch-mips/syscalls/mprotect.S deleted file mode 100644 index 486fd5d93..000000000 --- a/libc/arch-mips/syscalls/mprotect.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mprotect) - .set noreorder - .cpload $t9 - li $v0, __NR_mprotect - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(mprotect) diff --git a/libc/arch-mips/syscalls/msync.S b/libc/arch-mips/syscalls/msync.S deleted file mode 100644 index 6554fd0ba..000000000 --- a/libc/arch-mips/syscalls/msync.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(msync) - .set noreorder - .cpload $t9 - li $v0, __NR_msync - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(msync) diff --git a/libc/arch-mips/syscalls/munlock.S b/libc/arch-mips/syscalls/munlock.S deleted file mode 100644 index 3a3f50c91..000000000 --- a/libc/arch-mips/syscalls/munlock.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munlock) - .set noreorder - .cpload $t9 - li $v0, __NR_munlock - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(munlock) diff --git a/libc/arch-mips/syscalls/munlockall.S b/libc/arch-mips/syscalls/munlockall.S deleted file mode 100644 index 4efb26065..000000000 --- a/libc/arch-mips/syscalls/munlockall.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munlockall) - .set noreorder - .cpload $t9 - li $v0, __NR_munlockall - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(munlockall) diff --git a/libc/arch-mips/syscalls/munmap.S b/libc/arch-mips/syscalls/munmap.S deleted file mode 100644 index 364f0c194..000000000 --- a/libc/arch-mips/syscalls/munmap.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munmap) - .set noreorder - .cpload $t9 - li $v0, __NR_munmap - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(munmap) diff --git a/libc/arch-mips/syscalls/nanosleep.S b/libc/arch-mips/syscalls/nanosleep.S deleted file mode 100644 index 7e88d008f..000000000 --- a/libc/arch-mips/syscalls/nanosleep.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(nanosleep) - .set noreorder - .cpload $t9 - li $v0, __NR_nanosleep - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(nanosleep) diff --git a/libc/arch-mips/syscalls/personality.S b/libc/arch-mips/syscalls/personality.S deleted file mode 100644 index 67f9ec167..000000000 --- a/libc/arch-mips/syscalls/personality.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(personality) - .set noreorder - .cpload $t9 - li $v0, __NR_personality - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(personality) diff --git a/libc/arch-mips/syscalls/pipe2.S b/libc/arch-mips/syscalls/pipe2.S deleted file mode 100644 index 4040d1fe0..000000000 --- a/libc/arch-mips/syscalls/pipe2.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pipe2) - .set noreorder - .cpload $t9 - li $v0, __NR_pipe2 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(pipe2) diff --git a/libc/arch-mips/syscalls/prctl.S b/libc/arch-mips/syscalls/prctl.S deleted file mode 100644 index e6b00241e..000000000 --- a/libc/arch-mips/syscalls/prctl.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(prctl) - .set noreorder - .cpload $t9 - li $v0, __NR_prctl - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(prctl) diff --git a/libc/arch-mips/syscalls/pread64.S b/libc/arch-mips/syscalls/pread64.S deleted file mode 100644 index 0181595e5..000000000 --- a/libc/arch-mips/syscalls/pread64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pread64) - .set noreorder - .cpload $t9 - li $v0, __NR_pread64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(pread64) diff --git a/libc/arch-mips/syscalls/prlimit64.S b/libc/arch-mips/syscalls/prlimit64.S deleted file mode 100644 index c93af642e..000000000 --- a/libc/arch-mips/syscalls/prlimit64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(prlimit64) - .set noreorder - .cpload $t9 - li $v0, __NR_prlimit64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(prlimit64) diff --git a/libc/arch-mips/syscalls/process_vm_readv.S b/libc/arch-mips/syscalls/process_vm_readv.S deleted file mode 100644 index e571db0b0..000000000 --- a/libc/arch-mips/syscalls/process_vm_readv.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(process_vm_readv) - .set noreorder - .cpload $t9 - li $v0, __NR_process_vm_readv - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(process_vm_readv) diff --git a/libc/arch-mips/syscalls/process_vm_writev.S b/libc/arch-mips/syscalls/process_vm_writev.S deleted file mode 100644 index cab3b6d26..000000000 --- a/libc/arch-mips/syscalls/process_vm_writev.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(process_vm_writev) - .set noreorder - .cpload $t9 - li $v0, __NR_process_vm_writev - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(process_vm_writev) diff --git a/libc/arch-mips/syscalls/pwrite64.S b/libc/arch-mips/syscalls/pwrite64.S deleted file mode 100644 index 4f46f7522..000000000 --- a/libc/arch-mips/syscalls/pwrite64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pwrite64) - .set noreorder - .cpload $t9 - li $v0, __NR_pwrite64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(pwrite64) diff --git a/libc/arch-mips/syscalls/quotactl.S b/libc/arch-mips/syscalls/quotactl.S deleted file mode 100644 index 2c8044a12..000000000 --- a/libc/arch-mips/syscalls/quotactl.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(quotactl) - .set noreorder - .cpload $t9 - li $v0, __NR_quotactl - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(quotactl) diff --git a/libc/arch-mips/syscalls/read.S b/libc/arch-mips/syscalls/read.S deleted file mode 100644 index afc61999d..000000000 --- a/libc/arch-mips/syscalls/read.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(read) - .set noreorder - .cpload $t9 - li $v0, __NR_read - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(read) diff --git a/libc/arch-mips/syscalls/readahead.S b/libc/arch-mips/syscalls/readahead.S deleted file mode 100644 index 1fe93d899..000000000 --- a/libc/arch-mips/syscalls/readahead.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readahead) - .set noreorder - .cpload $t9 - li $v0, __NR_readahead - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(readahead) diff --git a/libc/arch-mips/syscalls/readlinkat.S b/libc/arch-mips/syscalls/readlinkat.S deleted file mode 100644 index 927f86ff2..000000000 --- a/libc/arch-mips/syscalls/readlinkat.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readlinkat) - .set noreorder - .cpload $t9 - li $v0, __NR_readlinkat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(readlinkat) diff --git a/libc/arch-mips/syscalls/readv.S b/libc/arch-mips/syscalls/readv.S deleted file mode 100644 index 6af3ac4ed..000000000 --- a/libc/arch-mips/syscalls/readv.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readv) - .set noreorder - .cpload $t9 - li $v0, __NR_readv - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(readv) diff --git a/libc/arch-mips/syscalls/recvfrom.S b/libc/arch-mips/syscalls/recvfrom.S deleted file mode 100644 index 448d892cb..000000000 --- a/libc/arch-mips/syscalls/recvfrom.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvfrom) - .set noreorder - .cpload $t9 - li $v0, __NR_recvfrom - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(recvfrom) diff --git a/libc/arch-mips/syscalls/recvmmsg.S b/libc/arch-mips/syscalls/recvmmsg.S deleted file mode 100644 index 42660e2d0..000000000 --- a/libc/arch-mips/syscalls/recvmmsg.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvmmsg) - .set noreorder - .cpload $t9 - li $v0, __NR_recvmmsg - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(recvmmsg) diff --git a/libc/arch-mips/syscalls/recvmsg.S b/libc/arch-mips/syscalls/recvmsg.S deleted file mode 100644 index 71c79903f..000000000 --- a/libc/arch-mips/syscalls/recvmsg.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvmsg) - .set noreorder - .cpload $t9 - li $v0, __NR_recvmsg - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(recvmsg) diff --git a/libc/arch-mips/syscalls/removexattr.S b/libc/arch-mips/syscalls/removexattr.S deleted file mode 100644 index 48303731c..000000000 --- a/libc/arch-mips/syscalls/removexattr.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(removexattr) - .set noreorder - .cpload $t9 - li $v0, __NR_removexattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(removexattr) diff --git a/libc/arch-mips/syscalls/renameat.S b/libc/arch-mips/syscalls/renameat.S deleted file mode 100644 index 1486f955c..000000000 --- a/libc/arch-mips/syscalls/renameat.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(renameat) - .set noreorder - .cpload $t9 - li $v0, __NR_renameat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(renameat) diff --git a/libc/arch-mips/syscalls/sched_get_priority_max.S b/libc/arch-mips/syscalls/sched_get_priority_max.S deleted file mode 100644 index f1d35c69f..000000000 --- a/libc/arch-mips/syscalls/sched_get_priority_max.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_get_priority_max) - .set noreorder - .cpload $t9 - li $v0, __NR_sched_get_priority_max - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sched_get_priority_max) diff --git a/libc/arch-mips/syscalls/sched_get_priority_min.S b/libc/arch-mips/syscalls/sched_get_priority_min.S deleted file mode 100644 index cdb553949..000000000 --- a/libc/arch-mips/syscalls/sched_get_priority_min.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_get_priority_min) - .set noreorder - .cpload $t9 - li $v0, __NR_sched_get_priority_min - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sched_get_priority_min) diff --git a/libc/arch-mips/syscalls/sched_getparam.S b/libc/arch-mips/syscalls/sched_getparam.S deleted file mode 100644 index 71724bd98..000000000 --- a/libc/arch-mips/syscalls/sched_getparam.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_getparam) - .set noreorder - .cpload $t9 - li $v0, __NR_sched_getparam - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sched_getparam) diff --git a/libc/arch-mips/syscalls/sched_getscheduler.S b/libc/arch-mips/syscalls/sched_getscheduler.S deleted file mode 100644 index 8fae1c274..000000000 --- a/libc/arch-mips/syscalls/sched_getscheduler.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_getscheduler) - .set noreorder - .cpload $t9 - li $v0, __NR_sched_getscheduler - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sched_getscheduler) diff --git a/libc/arch-mips/syscalls/sched_rr_get_interval.S b/libc/arch-mips/syscalls/sched_rr_get_interval.S deleted file mode 100644 index eb53d7766..000000000 --- a/libc/arch-mips/syscalls/sched_rr_get_interval.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_rr_get_interval) - .set noreorder - .cpload $t9 - li $v0, __NR_sched_rr_get_interval - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sched_rr_get_interval) diff --git a/libc/arch-mips/syscalls/sched_setaffinity.S b/libc/arch-mips/syscalls/sched_setaffinity.S deleted file mode 100644 index a4837fa16..000000000 --- a/libc/arch-mips/syscalls/sched_setaffinity.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setaffinity) - .set noreorder - .cpload $t9 - li $v0, __NR_sched_setaffinity - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sched_setaffinity) diff --git a/libc/arch-mips/syscalls/sched_setparam.S b/libc/arch-mips/syscalls/sched_setparam.S deleted file mode 100644 index 4b6d0a251..000000000 --- a/libc/arch-mips/syscalls/sched_setparam.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setparam) - .set noreorder - .cpload $t9 - li $v0, __NR_sched_setparam - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sched_setparam) diff --git a/libc/arch-mips/syscalls/sched_setscheduler.S b/libc/arch-mips/syscalls/sched_setscheduler.S deleted file mode 100644 index 69d7259a0..000000000 --- a/libc/arch-mips/syscalls/sched_setscheduler.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setscheduler) - .set noreorder - .cpload $t9 - li $v0, __NR_sched_setscheduler - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sched_setscheduler) diff --git a/libc/arch-mips/syscalls/sched_yield.S b/libc/arch-mips/syscalls/sched_yield.S deleted file mode 100644 index da6b53126..000000000 --- a/libc/arch-mips/syscalls/sched_yield.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_yield) - .set noreorder - .cpload $t9 - li $v0, __NR_sched_yield - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sched_yield) diff --git a/libc/arch-mips/syscalls/sendfile.S b/libc/arch-mips/syscalls/sendfile.S deleted file mode 100644 index 9145cea6a..000000000 --- a/libc/arch-mips/syscalls/sendfile.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendfile) - .set noreorder - .cpload $t9 - li $v0, __NR_sendfile - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sendfile) diff --git a/libc/arch-mips/syscalls/sendfile64.S b/libc/arch-mips/syscalls/sendfile64.S deleted file mode 100644 index 00939170a..000000000 --- a/libc/arch-mips/syscalls/sendfile64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendfile64) - .set noreorder - .cpload $t9 - li $v0, __NR_sendfile64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sendfile64) diff --git a/libc/arch-mips/syscalls/sendmmsg.S b/libc/arch-mips/syscalls/sendmmsg.S deleted file mode 100644 index d4e9806c1..000000000 --- a/libc/arch-mips/syscalls/sendmmsg.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendmmsg) - .set noreorder - .cpload $t9 - li $v0, __NR_sendmmsg - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sendmmsg) diff --git a/libc/arch-mips/syscalls/sendmsg.S b/libc/arch-mips/syscalls/sendmsg.S deleted file mode 100644 index ec019d61e..000000000 --- a/libc/arch-mips/syscalls/sendmsg.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendmsg) - .set noreorder - .cpload $t9 - li $v0, __NR_sendmsg - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sendmsg) diff --git a/libc/arch-mips/syscalls/sendto.S b/libc/arch-mips/syscalls/sendto.S deleted file mode 100644 index 884fd0652..000000000 --- a/libc/arch-mips/syscalls/sendto.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendto) - .set noreorder - .cpload $t9 - li $v0, __NR_sendto - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sendto) diff --git a/libc/arch-mips/syscalls/setdomainname.S b/libc/arch-mips/syscalls/setdomainname.S deleted file mode 100644 index 9144a8143..000000000 --- a/libc/arch-mips/syscalls/setdomainname.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setdomainname) - .set noreorder - .cpload $t9 - li $v0, __NR_setdomainname - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setdomainname) diff --git a/libc/arch-mips/syscalls/setfsgid.S b/libc/arch-mips/syscalls/setfsgid.S deleted file mode 100644 index b927d236d..000000000 --- a/libc/arch-mips/syscalls/setfsgid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setfsgid) - .set noreorder - .cpload $t9 - li $v0, __NR_setfsgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setfsgid) diff --git a/libc/arch-mips/syscalls/setfsuid.S b/libc/arch-mips/syscalls/setfsuid.S deleted file mode 100644 index c95f30fd5..000000000 --- a/libc/arch-mips/syscalls/setfsuid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setfsuid) - .set noreorder - .cpload $t9 - li $v0, __NR_setfsuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setfsuid) diff --git a/libc/arch-mips/syscalls/setgid.S b/libc/arch-mips/syscalls/setgid.S deleted file mode 100644 index a1665cc9d..000000000 --- a/libc/arch-mips/syscalls/setgid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setgid) - .set noreorder - .cpload $t9 - li $v0, __NR_setgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setgid) diff --git a/libc/arch-mips/syscalls/setgroups.S b/libc/arch-mips/syscalls/setgroups.S deleted file mode 100644 index f8f4c52af..000000000 --- a/libc/arch-mips/syscalls/setgroups.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setgroups) - .set noreorder - .cpload $t9 - li $v0, __NR_setgroups - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setgroups) diff --git a/libc/arch-mips/syscalls/sethostname.S b/libc/arch-mips/syscalls/sethostname.S deleted file mode 100644 index 1a3e37b81..000000000 --- a/libc/arch-mips/syscalls/sethostname.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sethostname) - .set noreorder - .cpload $t9 - li $v0, __NR_sethostname - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sethostname) diff --git a/libc/arch-mips/syscalls/setitimer.S b/libc/arch-mips/syscalls/setitimer.S deleted file mode 100644 index 1a32e9710..000000000 --- a/libc/arch-mips/syscalls/setitimer.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setitimer) - .set noreorder - .cpload $t9 - li $v0, __NR_setitimer - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setitimer) diff --git a/libc/arch-mips/syscalls/setns.S b/libc/arch-mips/syscalls/setns.S deleted file mode 100644 index 6021aa64a..000000000 --- a/libc/arch-mips/syscalls/setns.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setns) - .set noreorder - .cpload $t9 - li $v0, __NR_setns - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setns) diff --git a/libc/arch-mips/syscalls/setpgid.S b/libc/arch-mips/syscalls/setpgid.S deleted file mode 100644 index 449eabd0c..000000000 --- a/libc/arch-mips/syscalls/setpgid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setpgid) - .set noreorder - .cpload $t9 - li $v0, __NR_setpgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setpgid) diff --git a/libc/arch-mips/syscalls/setpriority.S b/libc/arch-mips/syscalls/setpriority.S deleted file mode 100644 index 53f500b1d..000000000 --- a/libc/arch-mips/syscalls/setpriority.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setpriority) - .set noreorder - .cpload $t9 - li $v0, __NR_setpriority - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setpriority) diff --git a/libc/arch-mips/syscalls/setregid.S b/libc/arch-mips/syscalls/setregid.S deleted file mode 100644 index f25196956..000000000 --- a/libc/arch-mips/syscalls/setregid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setregid) - .set noreorder - .cpload $t9 - li $v0, __NR_setregid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setregid) diff --git a/libc/arch-mips/syscalls/setresgid.S b/libc/arch-mips/syscalls/setresgid.S deleted file mode 100644 index 78eb89764..000000000 --- a/libc/arch-mips/syscalls/setresgid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setresgid) - .set noreorder - .cpload $t9 - li $v0, __NR_setresgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setresgid) diff --git a/libc/arch-mips/syscalls/setresuid.S b/libc/arch-mips/syscalls/setresuid.S deleted file mode 100644 index c78a4dbba..000000000 --- a/libc/arch-mips/syscalls/setresuid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setresuid) - .set noreorder - .cpload $t9 - li $v0, __NR_setresuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setresuid) diff --git a/libc/arch-mips/syscalls/setreuid.S b/libc/arch-mips/syscalls/setreuid.S deleted file mode 100644 index 81e85512f..000000000 --- a/libc/arch-mips/syscalls/setreuid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setreuid) - .set noreorder - .cpload $t9 - li $v0, __NR_setreuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setreuid) diff --git a/libc/arch-mips/syscalls/setrlimit.S b/libc/arch-mips/syscalls/setrlimit.S deleted file mode 100644 index ad11caf25..000000000 --- a/libc/arch-mips/syscalls/setrlimit.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setrlimit) - .set noreorder - .cpload $t9 - li $v0, __NR_setrlimit - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setrlimit) diff --git a/libc/arch-mips/syscalls/setsid.S b/libc/arch-mips/syscalls/setsid.S deleted file mode 100644 index c83d39f5d..000000000 --- a/libc/arch-mips/syscalls/setsid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setsid) - .set noreorder - .cpload $t9 - li $v0, __NR_setsid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setsid) diff --git a/libc/arch-mips/syscalls/setsockopt.S b/libc/arch-mips/syscalls/setsockopt.S deleted file mode 100644 index 2d398ef4d..000000000 --- a/libc/arch-mips/syscalls/setsockopt.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setsockopt) - .set noreorder - .cpload $t9 - li $v0, __NR_setsockopt - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setsockopt) diff --git a/libc/arch-mips/syscalls/settimeofday.S b/libc/arch-mips/syscalls/settimeofday.S deleted file mode 100644 index 4ae80572f..000000000 --- a/libc/arch-mips/syscalls/settimeofday.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(settimeofday) - .set noreorder - .cpload $t9 - li $v0, __NR_settimeofday - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(settimeofday) diff --git a/libc/arch-mips/syscalls/setuid.S b/libc/arch-mips/syscalls/setuid.S deleted file mode 100644 index 732fb8a62..000000000 --- a/libc/arch-mips/syscalls/setuid.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setuid) - .set noreorder - .cpload $t9 - li $v0, __NR_setuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setuid) diff --git a/libc/arch-mips/syscalls/setxattr.S b/libc/arch-mips/syscalls/setxattr.S deleted file mode 100644 index 36a5d479d..000000000 --- a/libc/arch-mips/syscalls/setxattr.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setxattr) - .set noreorder - .cpload $t9 - li $v0, __NR_setxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(setxattr) diff --git a/libc/arch-mips/syscalls/shutdown.S b/libc/arch-mips/syscalls/shutdown.S deleted file mode 100644 index 885a50156..000000000 --- a/libc/arch-mips/syscalls/shutdown.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(shutdown) - .set noreorder - .cpload $t9 - li $v0, __NR_shutdown - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(shutdown) diff --git a/libc/arch-mips/syscalls/sigaltstack.S b/libc/arch-mips/syscalls/sigaltstack.S deleted file mode 100644 index 4276d712c..000000000 --- a/libc/arch-mips/syscalls/sigaltstack.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sigaltstack) - .set noreorder - .cpload $t9 - li $v0, __NR_sigaltstack - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sigaltstack) diff --git a/libc/arch-mips/syscalls/socketpair.S b/libc/arch-mips/syscalls/socketpair.S deleted file mode 100644 index ac66b3401..000000000 --- a/libc/arch-mips/syscalls/socketpair.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(socketpair) - .set noreorder - .cpload $t9 - li $v0, __NR_socketpair - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(socketpair) diff --git a/libc/arch-mips/syscalls/splice.S b/libc/arch-mips/syscalls/splice.S deleted file mode 100644 index afecd83a4..000000000 --- a/libc/arch-mips/syscalls/splice.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(splice) - .set noreorder - .cpload $t9 - li $v0, __NR_splice - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(splice) diff --git a/libc/arch-mips/syscalls/swapoff.S b/libc/arch-mips/syscalls/swapoff.S deleted file mode 100644 index dfe3a5c5a..000000000 --- a/libc/arch-mips/syscalls/swapoff.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(swapoff) - .set noreorder - .cpload $t9 - li $v0, __NR_swapoff - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(swapoff) diff --git a/libc/arch-mips/syscalls/swapon.S b/libc/arch-mips/syscalls/swapon.S deleted file mode 100644 index 12cfca172..000000000 --- a/libc/arch-mips/syscalls/swapon.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(swapon) - .set noreorder - .cpload $t9 - li $v0, __NR_swapon - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(swapon) diff --git a/libc/arch-mips/syscalls/symlinkat.S b/libc/arch-mips/syscalls/symlinkat.S deleted file mode 100644 index a349edef5..000000000 --- a/libc/arch-mips/syscalls/symlinkat.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(symlinkat) - .set noreorder - .cpload $t9 - li $v0, __NR_symlinkat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(symlinkat) diff --git a/libc/arch-mips/syscalls/sync.S b/libc/arch-mips/syscalls/sync.S deleted file mode 100644 index 80667b302..000000000 --- a/libc/arch-mips/syscalls/sync.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sync) - .set noreorder - .cpload $t9 - li $v0, __NR_sync - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sync) diff --git a/libc/arch-mips/syscalls/syncfs.S b/libc/arch-mips/syscalls/syncfs.S deleted file mode 100644 index 78ee0e7f0..000000000 --- a/libc/arch-mips/syscalls/syncfs.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(syncfs) - .set noreorder - .cpload $t9 - li $v0, __NR_syncfs - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(syncfs) diff --git a/libc/arch-mips/syscalls/sysinfo.S b/libc/arch-mips/syscalls/sysinfo.S deleted file mode 100644 index 42fa57d6a..000000000 --- a/libc/arch-mips/syscalls/sysinfo.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sysinfo) - .set noreorder - .cpload $t9 - li $v0, __NR_sysinfo - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(sysinfo) diff --git a/libc/arch-mips/syscalls/tee.S b/libc/arch-mips/syscalls/tee.S deleted file mode 100644 index 97867e373..000000000 --- a/libc/arch-mips/syscalls/tee.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(tee) - .set noreorder - .cpload $t9 - li $v0, __NR_tee - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(tee) diff --git a/libc/arch-mips/syscalls/tgkill.S b/libc/arch-mips/syscalls/tgkill.S deleted file mode 100644 index cded9e55a..000000000 --- a/libc/arch-mips/syscalls/tgkill.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(tgkill) - .set noreorder - .cpload $t9 - li $v0, __NR_tgkill - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(tgkill) diff --git a/libc/arch-mips/syscalls/timerfd_create.S b/libc/arch-mips/syscalls/timerfd_create.S deleted file mode 100644 index 840f7e2fd..000000000 --- a/libc/arch-mips/syscalls/timerfd_create.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_create) - .set noreorder - .cpload $t9 - li $v0, __NR_timerfd_create - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(timerfd_create) diff --git a/libc/arch-mips/syscalls/timerfd_gettime.S b/libc/arch-mips/syscalls/timerfd_gettime.S deleted file mode 100644 index 7ddc25f94..000000000 --- a/libc/arch-mips/syscalls/timerfd_gettime.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_gettime) - .set noreorder - .cpload $t9 - li $v0, __NR_timerfd_gettime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(timerfd_gettime) diff --git a/libc/arch-mips/syscalls/timerfd_settime.S b/libc/arch-mips/syscalls/timerfd_settime.S deleted file mode 100644 index b4e792636..000000000 --- a/libc/arch-mips/syscalls/timerfd_settime.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_settime) - .set noreorder - .cpload $t9 - li $v0, __NR_timerfd_settime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(timerfd_settime) diff --git a/libc/arch-mips/syscalls/times.S b/libc/arch-mips/syscalls/times.S deleted file mode 100644 index ad4003b6e..000000000 --- a/libc/arch-mips/syscalls/times.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(times) - .set noreorder - .cpload $t9 - li $v0, __NR_times - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(times) diff --git a/libc/arch-mips/syscalls/truncate.S b/libc/arch-mips/syscalls/truncate.S deleted file mode 100644 index cb077e948..000000000 --- a/libc/arch-mips/syscalls/truncate.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(truncate) - .set noreorder - .cpload $t9 - li $v0, __NR_truncate - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(truncate) diff --git a/libc/arch-mips/syscalls/truncate64.S b/libc/arch-mips/syscalls/truncate64.S deleted file mode 100644 index 4ccd2adaa..000000000 --- a/libc/arch-mips/syscalls/truncate64.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(truncate64) - .set noreorder - .cpload $t9 - li $v0, __NR_truncate64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(truncate64) diff --git a/libc/arch-mips/syscalls/umask.S b/libc/arch-mips/syscalls/umask.S deleted file mode 100644 index 196dc0759..000000000 --- a/libc/arch-mips/syscalls/umask.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(umask) - .set noreorder - .cpload $t9 - li $v0, __NR_umask - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(umask) diff --git a/libc/arch-mips/syscalls/umount2.S b/libc/arch-mips/syscalls/umount2.S deleted file mode 100644 index f61e3e97b..000000000 --- a/libc/arch-mips/syscalls/umount2.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(umount2) - .set noreorder - .cpload $t9 - li $v0, __NR_umount2 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(umount2) diff --git a/libc/arch-mips/syscalls/uname.S b/libc/arch-mips/syscalls/uname.S deleted file mode 100644 index c3408e064..000000000 --- a/libc/arch-mips/syscalls/uname.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(uname) - .set noreorder - .cpload $t9 - li $v0, __NR_uname - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(uname) diff --git a/libc/arch-mips/syscalls/unlinkat.S b/libc/arch-mips/syscalls/unlinkat.S deleted file mode 100644 index 400a0b624..000000000 --- a/libc/arch-mips/syscalls/unlinkat.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(unlinkat) - .set noreorder - .cpload $t9 - li $v0, __NR_unlinkat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(unlinkat) diff --git a/libc/arch-mips/syscalls/unshare.S b/libc/arch-mips/syscalls/unshare.S deleted file mode 100644 index 2e81abbd5..000000000 --- a/libc/arch-mips/syscalls/unshare.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(unshare) - .set noreorder - .cpload $t9 - li $v0, __NR_unshare - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(unshare) diff --git a/libc/arch-mips/syscalls/utimensat.S b/libc/arch-mips/syscalls/utimensat.S deleted file mode 100644 index 70d0bdd4b..000000000 --- a/libc/arch-mips/syscalls/utimensat.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(utimensat) - .set noreorder - .cpload $t9 - li $v0, __NR_utimensat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(utimensat) diff --git a/libc/arch-mips/syscalls/vmsplice.S b/libc/arch-mips/syscalls/vmsplice.S deleted file mode 100644 index e57596264..000000000 --- a/libc/arch-mips/syscalls/vmsplice.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(vmsplice) - .set noreorder - .cpload $t9 - li $v0, __NR_vmsplice - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(vmsplice) diff --git a/libc/arch-mips/syscalls/wait4.S b/libc/arch-mips/syscalls/wait4.S deleted file mode 100644 index c9572da8e..000000000 --- a/libc/arch-mips/syscalls/wait4.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(wait4) - .set noreorder - .cpload $t9 - li $v0, __NR_wait4 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(wait4) diff --git a/libc/arch-mips/syscalls/write.S b/libc/arch-mips/syscalls/write.S deleted file mode 100644 index 501c2119b..000000000 --- a/libc/arch-mips/syscalls/write.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(write) - .set noreorder - .cpload $t9 - li $v0, __NR_write - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(write) diff --git a/libc/arch-mips/syscalls/writev.S b/libc/arch-mips/syscalls/writev.S deleted file mode 100644 index 597d7faf8..000000000 --- a/libc/arch-mips/syscalls/writev.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(writev) - .set noreorder - .cpload $t9 - li $v0, __NR_writev - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno_internal - j $t9 - nop - .set reorder -END(writev) diff --git a/libc/arch-mips64/syscalls/___clock_nanosleep.S b/libc/arch-mips64/syscalls/___clock_nanosleep.S deleted file mode 100644 index 1633136b4..000000000 --- a/libc/arch-mips64/syscalls/___clock_nanosleep.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___clock_nanosleep) - .set push - .set noreorder - li $v0, __NR_clock_nanosleep - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(___clock_nanosleep) -.hidden ___clock_nanosleep diff --git a/libc/arch-mips64/syscalls/___close.S b/libc/arch-mips64/syscalls/___close.S deleted file mode 100644 index a8ab9a314..000000000 --- a/libc/arch-mips64/syscalls/___close.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___close) - .set push - .set noreorder - li $v0, __NR_close - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(___close) -.hidden ___close diff --git a/libc/arch-mips64/syscalls/___faccessat.S b/libc/arch-mips64/syscalls/___faccessat.S deleted file mode 100644 index 6e15b92ad..000000000 --- a/libc/arch-mips64/syscalls/___faccessat.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___faccessat) - .set push - .set noreorder - li $v0, __NR_faccessat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(___faccessat) -.hidden ___faccessat diff --git a/libc/arch-mips64/syscalls/___fchmod.S b/libc/arch-mips64/syscalls/___fchmod.S deleted file mode 100644 index 610c7f729..000000000 --- a/libc/arch-mips64/syscalls/___fchmod.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fchmod) - .set push - .set noreorder - li $v0, __NR_fchmod - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(___fchmod) -.hidden ___fchmod diff --git a/libc/arch-mips64/syscalls/___fchmodat.S b/libc/arch-mips64/syscalls/___fchmodat.S deleted file mode 100644 index 70ad46573..000000000 --- a/libc/arch-mips64/syscalls/___fchmodat.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fchmodat) - .set push - .set noreorder - li $v0, __NR_fchmodat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(___fchmodat) -.hidden ___fchmodat diff --git a/libc/arch-mips64/syscalls/___fgetxattr.S b/libc/arch-mips64/syscalls/___fgetxattr.S deleted file mode 100644 index fefb416dd..000000000 --- a/libc/arch-mips64/syscalls/___fgetxattr.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fgetxattr) - .set push - .set noreorder - li $v0, __NR_fgetxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(___fgetxattr) -.hidden ___fgetxattr diff --git a/libc/arch-mips64/syscalls/___flistxattr.S b/libc/arch-mips64/syscalls/___flistxattr.S deleted file mode 100644 index ff1991dd7..000000000 --- a/libc/arch-mips64/syscalls/___flistxattr.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___flistxattr) - .set push - .set noreorder - li $v0, __NR_flistxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(___flistxattr) -.hidden ___flistxattr diff --git a/libc/arch-mips64/syscalls/___fsetxattr.S b/libc/arch-mips64/syscalls/___fsetxattr.S deleted file mode 100644 index 454be4b7f..000000000 --- a/libc/arch-mips64/syscalls/___fsetxattr.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fsetxattr) - .set push - .set noreorder - li $v0, __NR_fsetxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(___fsetxattr) -.hidden ___fsetxattr diff --git a/libc/arch-mips64/syscalls/___mremap.S b/libc/arch-mips64/syscalls/___mremap.S deleted file mode 100644 index 4c996a649..000000000 --- a/libc/arch-mips64/syscalls/___mremap.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___mremap) - .set push - .set noreorder - li $v0, __NR_mremap - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(___mremap) -.hidden ___mremap diff --git a/libc/arch-mips64/syscalls/___rt_sigqueueinfo.S b/libc/arch-mips64/syscalls/___rt_sigqueueinfo.S deleted file mode 100644 index 5cb239a1c..000000000 --- a/libc/arch-mips64/syscalls/___rt_sigqueueinfo.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___rt_sigqueueinfo) - .set push - .set noreorder - li $v0, __NR_rt_sigqueueinfo - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(___rt_sigqueueinfo) -.hidden ___rt_sigqueueinfo diff --git a/libc/arch-mips64/syscalls/__accept4.S b/libc/arch-mips64/syscalls/__accept4.S deleted file mode 100644 index d13222ef7..000000000 --- a/libc/arch-mips64/syscalls/__accept4.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__accept4) - .set push - .set noreorder - li $v0, __NR_accept4 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__accept4) -.hidden __accept4 diff --git a/libc/arch-mips64/syscalls/__brk.S b/libc/arch-mips64/syscalls/__brk.S deleted file mode 100644 index a643a6662..000000000 --- a/libc/arch-mips64/syscalls/__brk.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__brk) - .set push - .set noreorder - li $v0, __NR_brk - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__brk) -.hidden __brk diff --git a/libc/arch-mips64/syscalls/__clock_getres.S b/libc/arch-mips64/syscalls/__clock_getres.S deleted file mode 100644 index fb871c99e..000000000 --- a/libc/arch-mips64/syscalls/__clock_getres.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__clock_getres) - .set push - .set noreorder - li $v0, __NR_clock_getres - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__clock_getres) -.hidden __clock_getres diff --git a/libc/arch-mips64/syscalls/__clock_gettime.S b/libc/arch-mips64/syscalls/__clock_gettime.S deleted file mode 100644 index fb3486bd6..000000000 --- a/libc/arch-mips64/syscalls/__clock_gettime.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__clock_gettime) - .set push - .set noreorder - li $v0, __NR_clock_gettime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__clock_gettime) -.hidden __clock_gettime diff --git a/libc/arch-mips64/syscalls/__connect.S b/libc/arch-mips64/syscalls/__connect.S deleted file mode 100644 index 01f465f69..000000000 --- a/libc/arch-mips64/syscalls/__connect.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__connect) - .set push - .set noreorder - li $v0, __NR_connect - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__connect) -.hidden __connect diff --git a/libc/arch-mips64/syscalls/__epoll_pwait.S b/libc/arch-mips64/syscalls/__epoll_pwait.S deleted file mode 100644 index 736258392..000000000 --- a/libc/arch-mips64/syscalls/__epoll_pwait.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__epoll_pwait) - .set push - .set noreorder - li $v0, __NR_epoll_pwait - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__epoll_pwait) -.hidden __epoll_pwait diff --git a/libc/arch-mips64/syscalls/__exit.S b/libc/arch-mips64/syscalls/__exit.S deleted file mode 100644 index d32746a8f..000000000 --- a/libc/arch-mips64/syscalls/__exit.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__exit) - .set push - .set noreorder - li $v0, __NR_exit - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__exit) -.hidden __exit diff --git a/libc/arch-mips64/syscalls/__fadvise64.S b/libc/arch-mips64/syscalls/__fadvise64.S deleted file mode 100644 index 617014252..000000000 --- a/libc/arch-mips64/syscalls/__fadvise64.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fadvise64) - .set push - .set noreorder - li $v0, __NR_fadvise64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__fadvise64) -.hidden __fadvise64 diff --git a/libc/arch-mips64/syscalls/__fstatfs.S b/libc/arch-mips64/syscalls/__fstatfs.S deleted file mode 100644 index bc57bb1ae..000000000 --- a/libc/arch-mips64/syscalls/__fstatfs.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fstatfs) - .set push - .set noreorder - li $v0, __NR_fstatfs - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__fstatfs) -.hidden __fstatfs diff --git a/libc/arch-mips64/syscalls/__getcpu.S b/libc/arch-mips64/syscalls/__getcpu.S deleted file mode 100644 index 05acc44bb..000000000 --- a/libc/arch-mips64/syscalls/__getcpu.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getcpu) - .set push - .set noreorder - li $v0, __NR_getcpu - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__getcpu) -.hidden __getcpu diff --git a/libc/arch-mips64/syscalls/__getcwd.S b/libc/arch-mips64/syscalls/__getcwd.S deleted file mode 100644 index 572d52d45..000000000 --- a/libc/arch-mips64/syscalls/__getcwd.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getcwd) - .set push - .set noreorder - li $v0, __NR_getcwd - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__getcwd) -.hidden __getcwd diff --git a/libc/arch-mips64/syscalls/__getdents64.S b/libc/arch-mips64/syscalls/__getdents64.S deleted file mode 100644 index 9166c5f80..000000000 --- a/libc/arch-mips64/syscalls/__getdents64.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getdents64) - .set push - .set noreorder - li $v0, __NR_getdents64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__getdents64) -.hidden __getdents64 diff --git a/libc/arch-mips64/syscalls/__getpid.S b/libc/arch-mips64/syscalls/__getpid.S deleted file mode 100644 index 734406254..000000000 --- a/libc/arch-mips64/syscalls/__getpid.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getpid) - .set push - .set noreorder - li $v0, __NR_getpid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__getpid) -.hidden __getpid diff --git a/libc/arch-mips64/syscalls/__getpriority.S b/libc/arch-mips64/syscalls/__getpriority.S deleted file mode 100644 index faa386a54..000000000 --- a/libc/arch-mips64/syscalls/__getpriority.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getpriority) - .set push - .set noreorder - li $v0, __NR_getpriority - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__getpriority) -.hidden __getpriority diff --git a/libc/arch-mips64/syscalls/__gettimeofday.S b/libc/arch-mips64/syscalls/__gettimeofday.S deleted file mode 100644 index 23164919b..000000000 --- a/libc/arch-mips64/syscalls/__gettimeofday.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__gettimeofday) - .set push - .set noreorder - li $v0, __NR_gettimeofday - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__gettimeofday) -.hidden __gettimeofday diff --git a/libc/arch-mips64/syscalls/__ioctl.S b/libc/arch-mips64/syscalls/__ioctl.S deleted file mode 100644 index 7193cc11a..000000000 --- a/libc/arch-mips64/syscalls/__ioctl.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ioctl) - .set push - .set noreorder - li $v0, __NR_ioctl - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__ioctl) -.hidden __ioctl diff --git a/libc/arch-mips64/syscalls/__openat.S b/libc/arch-mips64/syscalls/__openat.S deleted file mode 100644 index a1d6d2f72..000000000 --- a/libc/arch-mips64/syscalls/__openat.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__openat) - .set push - .set noreorder - li $v0, __NR_openat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__openat) -.hidden __openat diff --git a/libc/arch-mips64/syscalls/__ppoll.S b/libc/arch-mips64/syscalls/__ppoll.S deleted file mode 100644 index 59923100e..000000000 --- a/libc/arch-mips64/syscalls/__ppoll.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ppoll) - .set push - .set noreorder - li $v0, __NR_ppoll - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__ppoll) -.hidden __ppoll diff --git a/libc/arch-mips64/syscalls/__pselect6.S b/libc/arch-mips64/syscalls/__pselect6.S deleted file mode 100644 index e55eee7be..000000000 --- a/libc/arch-mips64/syscalls/__pselect6.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__pselect6) - .set push - .set noreorder - li $v0, __NR_pselect6 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__pselect6) -.hidden __pselect6 diff --git a/libc/arch-mips64/syscalls/__ptrace.S b/libc/arch-mips64/syscalls/__ptrace.S deleted file mode 100644 index 842d778ee..000000000 --- a/libc/arch-mips64/syscalls/__ptrace.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ptrace) - .set push - .set noreorder - li $v0, __NR_ptrace - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__ptrace) -.hidden __ptrace diff --git a/libc/arch-mips64/syscalls/__reboot.S b/libc/arch-mips64/syscalls/__reboot.S deleted file mode 100644 index 6b1ae9f7d..000000000 --- a/libc/arch-mips64/syscalls/__reboot.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__reboot) - .set push - .set noreorder - li $v0, __NR_reboot - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__reboot) -.hidden __reboot diff --git a/libc/arch-mips64/syscalls/__rt_sigaction.S b/libc/arch-mips64/syscalls/__rt_sigaction.S deleted file mode 100644 index 484b48253..000000000 --- a/libc/arch-mips64/syscalls/__rt_sigaction.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigaction) - .set push - .set noreorder - li $v0, __NR_rt_sigaction - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__rt_sigaction) -.hidden __rt_sigaction diff --git a/libc/arch-mips64/syscalls/__rt_sigpending.S b/libc/arch-mips64/syscalls/__rt_sigpending.S deleted file mode 100644 index 59615789a..000000000 --- a/libc/arch-mips64/syscalls/__rt_sigpending.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigpending) - .set push - .set noreorder - li $v0, __NR_rt_sigpending - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__rt_sigpending) -.hidden __rt_sigpending diff --git a/libc/arch-mips64/syscalls/__rt_sigprocmask.S b/libc/arch-mips64/syscalls/__rt_sigprocmask.S deleted file mode 100644 index c962f663f..000000000 --- a/libc/arch-mips64/syscalls/__rt_sigprocmask.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigprocmask) - .set push - .set noreorder - li $v0, __NR_rt_sigprocmask - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__rt_sigprocmask) -.hidden __rt_sigprocmask diff --git a/libc/arch-mips64/syscalls/__rt_sigsuspend.S b/libc/arch-mips64/syscalls/__rt_sigsuspend.S deleted file mode 100644 index 7613af2a9..000000000 --- a/libc/arch-mips64/syscalls/__rt_sigsuspend.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigsuspend) - .set push - .set noreorder - li $v0, __NR_rt_sigsuspend - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__rt_sigsuspend) -.hidden __rt_sigsuspend diff --git a/libc/arch-mips64/syscalls/__rt_sigtimedwait.S b/libc/arch-mips64/syscalls/__rt_sigtimedwait.S deleted file mode 100644 index 0c80a2e70..000000000 --- a/libc/arch-mips64/syscalls/__rt_sigtimedwait.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigtimedwait) - .set push - .set noreorder - li $v0, __NR_rt_sigtimedwait - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__rt_sigtimedwait) -.hidden __rt_sigtimedwait diff --git a/libc/arch-mips64/syscalls/__sched_getaffinity.S b/libc/arch-mips64/syscalls/__sched_getaffinity.S deleted file mode 100644 index 5f5dae2d0..000000000 --- a/libc/arch-mips64/syscalls/__sched_getaffinity.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sched_getaffinity) - .set push - .set noreorder - li $v0, __NR_sched_getaffinity - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__sched_getaffinity) -.hidden __sched_getaffinity diff --git a/libc/arch-mips64/syscalls/__set_tid_address.S b/libc/arch-mips64/syscalls/__set_tid_address.S deleted file mode 100644 index a411701ce..000000000 --- a/libc/arch-mips64/syscalls/__set_tid_address.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__set_tid_address) - .set push - .set noreorder - li $v0, __NR_set_tid_address - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__set_tid_address) -.hidden __set_tid_address diff --git a/libc/arch-mips64/syscalls/__set_tls.S b/libc/arch-mips64/syscalls/__set_tls.S deleted file mode 100644 index a72c8e3fe..000000000 --- a/libc/arch-mips64/syscalls/__set_tls.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__set_tls) - .set push - .set noreorder - li $v0, __NR_set_thread_area - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__set_tls) -.hidden __set_tls diff --git a/libc/arch-mips64/syscalls/__signalfd4.S b/libc/arch-mips64/syscalls/__signalfd4.S deleted file mode 100644 index 35e2a0a38..000000000 --- a/libc/arch-mips64/syscalls/__signalfd4.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__signalfd4) - .set push - .set noreorder - li $v0, __NR_signalfd4 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__signalfd4) -.hidden __signalfd4 diff --git a/libc/arch-mips64/syscalls/__socket.S b/libc/arch-mips64/syscalls/__socket.S deleted file mode 100644 index dce20313b..000000000 --- a/libc/arch-mips64/syscalls/__socket.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__socket) - .set push - .set noreorder - li $v0, __NR_socket - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__socket) -.hidden __socket diff --git a/libc/arch-mips64/syscalls/__statfs.S b/libc/arch-mips64/syscalls/__statfs.S deleted file mode 100644 index 9960fc729..000000000 --- a/libc/arch-mips64/syscalls/__statfs.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__statfs) - .set push - .set noreorder - li $v0, __NR_statfs - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__statfs) -.hidden __statfs diff --git a/libc/arch-mips64/syscalls/__sync_file_range.S b/libc/arch-mips64/syscalls/__sync_file_range.S deleted file mode 100644 index eeb470d13..000000000 --- a/libc/arch-mips64/syscalls/__sync_file_range.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sync_file_range) - .set push - .set noreorder - li $v0, __NR_sync_file_range - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__sync_file_range) -.hidden __sync_file_range diff --git a/libc/arch-mips64/syscalls/__timer_create.S b/libc/arch-mips64/syscalls/__timer_create.S deleted file mode 100644 index 2fecc4de9..000000000 --- a/libc/arch-mips64/syscalls/__timer_create.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_create) - .set push - .set noreorder - li $v0, __NR_timer_create - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__timer_create) -.hidden __timer_create diff --git a/libc/arch-mips64/syscalls/__timer_delete.S b/libc/arch-mips64/syscalls/__timer_delete.S deleted file mode 100644 index be6ac6007..000000000 --- a/libc/arch-mips64/syscalls/__timer_delete.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_delete) - .set push - .set noreorder - li $v0, __NR_timer_delete - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__timer_delete) -.hidden __timer_delete diff --git a/libc/arch-mips64/syscalls/__timer_getoverrun.S b/libc/arch-mips64/syscalls/__timer_getoverrun.S deleted file mode 100644 index dfabba63e..000000000 --- a/libc/arch-mips64/syscalls/__timer_getoverrun.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_getoverrun) - .set push - .set noreorder - li $v0, __NR_timer_getoverrun - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__timer_getoverrun) -.hidden __timer_getoverrun diff --git a/libc/arch-mips64/syscalls/__timer_gettime.S b/libc/arch-mips64/syscalls/__timer_gettime.S deleted file mode 100644 index 49606c2a6..000000000 --- a/libc/arch-mips64/syscalls/__timer_gettime.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_gettime) - .set push - .set noreorder - li $v0, __NR_timer_gettime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__timer_gettime) -.hidden __timer_gettime diff --git a/libc/arch-mips64/syscalls/__timer_settime.S b/libc/arch-mips64/syscalls/__timer_settime.S deleted file mode 100644 index a61d92ca9..000000000 --- a/libc/arch-mips64/syscalls/__timer_settime.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_settime) - .set push - .set noreorder - li $v0, __NR_timer_settime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__timer_settime) -.hidden __timer_settime diff --git a/libc/arch-mips64/syscalls/__waitid.S b/libc/arch-mips64/syscalls/__waitid.S deleted file mode 100644 index bc4810cdc..000000000 --- a/libc/arch-mips64/syscalls/__waitid.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__waitid) - .set push - .set noreorder - li $v0, __NR_waitid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(__waitid) -.hidden __waitid diff --git a/libc/arch-mips64/syscalls/_exit.S b/libc/arch-mips64/syscalls/_exit.S deleted file mode 100644 index 638fdb178..000000000 --- a/libc/arch-mips64/syscalls/_exit.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(_exit) - .set push - .set noreorder - li $v0, __NR_exit_group - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(_exit) - -ALIAS_SYMBOL(_Exit, _exit) diff --git a/libc/arch-mips64/syscalls/acct.S b/libc/arch-mips64/syscalls/acct.S deleted file mode 100644 index abf4c26cb..000000000 --- a/libc/arch-mips64/syscalls/acct.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(acct) - .set push - .set noreorder - li $v0, __NR_acct - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(acct) diff --git a/libc/arch-mips64/syscalls/adjtimex.S b/libc/arch-mips64/syscalls/adjtimex.S deleted file mode 100644 index 716f46f10..000000000 --- a/libc/arch-mips64/syscalls/adjtimex.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(adjtimex) - .set push - .set noreorder - li $v0, __NR_adjtimex - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(adjtimex) diff --git a/libc/arch-mips64/syscalls/bind.S b/libc/arch-mips64/syscalls/bind.S deleted file mode 100644 index a0b43abe5..000000000 --- a/libc/arch-mips64/syscalls/bind.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(bind) - .set push - .set noreorder - li $v0, __NR_bind - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(bind) diff --git a/libc/arch-mips64/syscalls/capget.S b/libc/arch-mips64/syscalls/capget.S deleted file mode 100644 index 1fd3b43ec..000000000 --- a/libc/arch-mips64/syscalls/capget.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(capget) - .set push - .set noreorder - li $v0, __NR_capget - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(capget) diff --git a/libc/arch-mips64/syscalls/capset.S b/libc/arch-mips64/syscalls/capset.S deleted file mode 100644 index e1832025b..000000000 --- a/libc/arch-mips64/syscalls/capset.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(capset) - .set push - .set noreorder - li $v0, __NR_capset - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(capset) diff --git a/libc/arch-mips64/syscalls/chdir.S b/libc/arch-mips64/syscalls/chdir.S deleted file mode 100644 index c4dc3b7d4..000000000 --- a/libc/arch-mips64/syscalls/chdir.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(chdir) - .set push - .set noreorder - li $v0, __NR_chdir - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(chdir) diff --git a/libc/arch-mips64/syscalls/chroot.S b/libc/arch-mips64/syscalls/chroot.S deleted file mode 100644 index 788008737..000000000 --- a/libc/arch-mips64/syscalls/chroot.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(chroot) - .set push - .set noreorder - li $v0, __NR_chroot - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(chroot) diff --git a/libc/arch-mips64/syscalls/clock_adjtime.S b/libc/arch-mips64/syscalls/clock_adjtime.S deleted file mode 100644 index 365064764..000000000 --- a/libc/arch-mips64/syscalls/clock_adjtime.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(clock_adjtime) - .set push - .set noreorder - li $v0, __NR_clock_adjtime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(clock_adjtime) diff --git a/libc/arch-mips64/syscalls/clock_settime.S b/libc/arch-mips64/syscalls/clock_settime.S deleted file mode 100644 index fa63bade2..000000000 --- a/libc/arch-mips64/syscalls/clock_settime.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(clock_settime) - .set push - .set noreorder - li $v0, __NR_clock_settime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(clock_settime) diff --git a/libc/arch-mips64/syscalls/delete_module.S b/libc/arch-mips64/syscalls/delete_module.S deleted file mode 100644 index 41f033345..000000000 --- a/libc/arch-mips64/syscalls/delete_module.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(delete_module) - .set push - .set noreorder - li $v0, __NR_delete_module - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(delete_module) diff --git a/libc/arch-mips64/syscalls/dup.S b/libc/arch-mips64/syscalls/dup.S deleted file mode 100644 index b916cd593..000000000 --- a/libc/arch-mips64/syscalls/dup.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(dup) - .set push - .set noreorder - li $v0, __NR_dup - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(dup) diff --git a/libc/arch-mips64/syscalls/dup3.S b/libc/arch-mips64/syscalls/dup3.S deleted file mode 100644 index 975e76861..000000000 --- a/libc/arch-mips64/syscalls/dup3.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(dup3) - .set push - .set noreorder - li $v0, __NR_dup3 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(dup3) diff --git a/libc/arch-mips64/syscalls/epoll_create1.S b/libc/arch-mips64/syscalls/epoll_create1.S deleted file mode 100644 index 2cb913aab..000000000 --- a/libc/arch-mips64/syscalls/epoll_create1.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(epoll_create1) - .set push - .set noreorder - li $v0, __NR_epoll_create1 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(epoll_create1) diff --git a/libc/arch-mips64/syscalls/epoll_ctl.S b/libc/arch-mips64/syscalls/epoll_ctl.S deleted file mode 100644 index 2a8f731b1..000000000 --- a/libc/arch-mips64/syscalls/epoll_ctl.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(epoll_ctl) - .set push - .set noreorder - li $v0, __NR_epoll_ctl - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(epoll_ctl) diff --git a/libc/arch-mips64/syscalls/eventfd.S b/libc/arch-mips64/syscalls/eventfd.S deleted file mode 100644 index f8eaee720..000000000 --- a/libc/arch-mips64/syscalls/eventfd.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(eventfd) - .set push - .set noreorder - li $v0, __NR_eventfd2 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(eventfd) diff --git a/libc/arch-mips64/syscalls/execve.S b/libc/arch-mips64/syscalls/execve.S deleted file mode 100644 index 6f7d1d7e8..000000000 --- a/libc/arch-mips64/syscalls/execve.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(execve) - .set push - .set noreorder - li $v0, __NR_execve - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(execve) diff --git a/libc/arch-mips64/syscalls/fallocate.S b/libc/arch-mips64/syscalls/fallocate.S deleted file mode 100644 index 6685475ab..000000000 --- a/libc/arch-mips64/syscalls/fallocate.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fallocate) - .set push - .set noreorder - li $v0, __NR_fallocate - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(fallocate) - -ALIAS_SYMBOL(fallocate64, fallocate) diff --git a/libc/arch-mips64/syscalls/fchdir.S b/libc/arch-mips64/syscalls/fchdir.S deleted file mode 100644 index ba767467d..000000000 --- a/libc/arch-mips64/syscalls/fchdir.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchdir) - .set push - .set noreorder - li $v0, __NR_fchdir - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(fchdir) diff --git a/libc/arch-mips64/syscalls/fchown.S b/libc/arch-mips64/syscalls/fchown.S deleted file mode 100644 index edbc1f18c..000000000 --- a/libc/arch-mips64/syscalls/fchown.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchown) - .set push - .set noreorder - li $v0, __NR_fchown - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(fchown) diff --git a/libc/arch-mips64/syscalls/fchownat.S b/libc/arch-mips64/syscalls/fchownat.S deleted file mode 100644 index 219a32ea9..000000000 --- a/libc/arch-mips64/syscalls/fchownat.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchownat) - .set push - .set noreorder - li $v0, __NR_fchownat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(fchownat) diff --git a/libc/arch-mips64/syscalls/fcntl.S b/libc/arch-mips64/syscalls/fcntl.S deleted file mode 100644 index 25571f99b..000000000 --- a/libc/arch-mips64/syscalls/fcntl.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fcntl) - .set push - .set noreorder - li $v0, __NR_fcntl - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(fcntl) diff --git a/libc/arch-mips64/syscalls/fdatasync.S b/libc/arch-mips64/syscalls/fdatasync.S deleted file mode 100644 index b8f21c7b3..000000000 --- a/libc/arch-mips64/syscalls/fdatasync.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fdatasync) - .set push - .set noreorder - li $v0, __NR_fdatasync - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(fdatasync) diff --git a/libc/arch-mips64/syscalls/flock.S b/libc/arch-mips64/syscalls/flock.S deleted file mode 100644 index 0242f980f..000000000 --- a/libc/arch-mips64/syscalls/flock.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(flock) - .set push - .set noreorder - li $v0, __NR_flock - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(flock) diff --git a/libc/arch-mips64/syscalls/fremovexattr.S b/libc/arch-mips64/syscalls/fremovexattr.S deleted file mode 100644 index b328c67f7..000000000 --- a/libc/arch-mips64/syscalls/fremovexattr.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fremovexattr) - .set push - .set noreorder - li $v0, __NR_fremovexattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(fremovexattr) diff --git a/libc/arch-mips64/syscalls/fsync.S b/libc/arch-mips64/syscalls/fsync.S deleted file mode 100644 index 197159f3c..000000000 --- a/libc/arch-mips64/syscalls/fsync.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fsync) - .set push - .set noreorder - li $v0, __NR_fsync - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(fsync) diff --git a/libc/arch-mips64/syscalls/ftruncate.S b/libc/arch-mips64/syscalls/ftruncate.S deleted file mode 100644 index 09b06fad2..000000000 --- a/libc/arch-mips64/syscalls/ftruncate.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(ftruncate) - .set push - .set noreorder - li $v0, __NR_ftruncate - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(ftruncate) - -ALIAS_SYMBOL(ftruncate64, ftruncate) diff --git a/libc/arch-mips64/syscalls/getegid.S b/libc/arch-mips64/syscalls/getegid.S deleted file mode 100644 index 91928353c..000000000 --- a/libc/arch-mips64/syscalls/getegid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getegid) - .set push - .set noreorder - li $v0, __NR_getegid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getegid) diff --git a/libc/arch-mips64/syscalls/geteuid.S b/libc/arch-mips64/syscalls/geteuid.S deleted file mode 100644 index 5a5cbf907..000000000 --- a/libc/arch-mips64/syscalls/geteuid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(geteuid) - .set push - .set noreorder - li $v0, __NR_geteuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(geteuid) diff --git a/libc/arch-mips64/syscalls/getgid.S b/libc/arch-mips64/syscalls/getgid.S deleted file mode 100644 index c434419a8..000000000 --- a/libc/arch-mips64/syscalls/getgid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getgid) - .set push - .set noreorder - li $v0, __NR_getgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getgid) diff --git a/libc/arch-mips64/syscalls/getgroups.S b/libc/arch-mips64/syscalls/getgroups.S deleted file mode 100644 index 29ac8547c..000000000 --- a/libc/arch-mips64/syscalls/getgroups.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getgroups) - .set push - .set noreorder - li $v0, __NR_getgroups - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getgroups) diff --git a/libc/arch-mips64/syscalls/getitimer.S b/libc/arch-mips64/syscalls/getitimer.S deleted file mode 100644 index 445fb1dbc..000000000 --- a/libc/arch-mips64/syscalls/getitimer.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getitimer) - .set push - .set noreorder - li $v0, __NR_getitimer - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getitimer) diff --git a/libc/arch-mips64/syscalls/getpeername.S b/libc/arch-mips64/syscalls/getpeername.S deleted file mode 100644 index 0f081c8e8..000000000 --- a/libc/arch-mips64/syscalls/getpeername.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getpeername) - .set push - .set noreorder - li $v0, __NR_getpeername - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getpeername) diff --git a/libc/arch-mips64/syscalls/getpgid.S b/libc/arch-mips64/syscalls/getpgid.S deleted file mode 100644 index 7859ad4ea..000000000 --- a/libc/arch-mips64/syscalls/getpgid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getpgid) - .set push - .set noreorder - li $v0, __NR_getpgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getpgid) diff --git a/libc/arch-mips64/syscalls/getppid.S b/libc/arch-mips64/syscalls/getppid.S deleted file mode 100644 index c67ed1fbb..000000000 --- a/libc/arch-mips64/syscalls/getppid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getppid) - .set push - .set noreorder - li $v0, __NR_getppid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getppid) diff --git a/libc/arch-mips64/syscalls/getrandom.S b/libc/arch-mips64/syscalls/getrandom.S deleted file mode 100644 index b4f5ea86d..000000000 --- a/libc/arch-mips64/syscalls/getrandom.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrandom) - .set push - .set noreorder - li $v0, __NR_getrandom - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getrandom) diff --git a/libc/arch-mips64/syscalls/getresgid.S b/libc/arch-mips64/syscalls/getresgid.S deleted file mode 100644 index ba1aafe29..000000000 --- a/libc/arch-mips64/syscalls/getresgid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getresgid) - .set push - .set noreorder - li $v0, __NR_getresgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getresgid) diff --git a/libc/arch-mips64/syscalls/getresuid.S b/libc/arch-mips64/syscalls/getresuid.S deleted file mode 100644 index d9c40f940..000000000 --- a/libc/arch-mips64/syscalls/getresuid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getresuid) - .set push - .set noreorder - li $v0, __NR_getresuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getresuid) diff --git a/libc/arch-mips64/syscalls/getrlimit.S b/libc/arch-mips64/syscalls/getrlimit.S deleted file mode 100644 index ae1cc866e..000000000 --- a/libc/arch-mips64/syscalls/getrlimit.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrlimit) - .set push - .set noreorder - li $v0, __NR_getrlimit - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getrlimit) - -ALIAS_SYMBOL(getrlimit64, getrlimit) diff --git a/libc/arch-mips64/syscalls/getrusage.S b/libc/arch-mips64/syscalls/getrusage.S deleted file mode 100644 index 4c6d3f1d4..000000000 --- a/libc/arch-mips64/syscalls/getrusage.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrusage) - .set push - .set noreorder - li $v0, __NR_getrusage - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getrusage) diff --git a/libc/arch-mips64/syscalls/getsid.S b/libc/arch-mips64/syscalls/getsid.S deleted file mode 100644 index 6a7b84468..000000000 --- a/libc/arch-mips64/syscalls/getsid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsid) - .set push - .set noreorder - li $v0, __NR_getsid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getsid) diff --git a/libc/arch-mips64/syscalls/getsockname.S b/libc/arch-mips64/syscalls/getsockname.S deleted file mode 100644 index 742c4962a..000000000 --- a/libc/arch-mips64/syscalls/getsockname.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsockname) - .set push - .set noreorder - li $v0, __NR_getsockname - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getsockname) diff --git a/libc/arch-mips64/syscalls/getsockopt.S b/libc/arch-mips64/syscalls/getsockopt.S deleted file mode 100644 index 451006e55..000000000 --- a/libc/arch-mips64/syscalls/getsockopt.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsockopt) - .set push - .set noreorder - li $v0, __NR_getsockopt - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getsockopt) diff --git a/libc/arch-mips64/syscalls/getuid.S b/libc/arch-mips64/syscalls/getuid.S deleted file mode 100644 index 964d5a6a6..000000000 --- a/libc/arch-mips64/syscalls/getuid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getuid) - .set push - .set noreorder - li $v0, __NR_getuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getuid) diff --git a/libc/arch-mips64/syscalls/getxattr.S b/libc/arch-mips64/syscalls/getxattr.S deleted file mode 100644 index 23fc3d118..000000000 --- a/libc/arch-mips64/syscalls/getxattr.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getxattr) - .set push - .set noreorder - li $v0, __NR_getxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(getxattr) diff --git a/libc/arch-mips64/syscalls/init_module.S b/libc/arch-mips64/syscalls/init_module.S deleted file mode 100644 index 3b0205597..000000000 --- a/libc/arch-mips64/syscalls/init_module.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(init_module) - .set push - .set noreorder - li $v0, __NR_init_module - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(init_module) diff --git a/libc/arch-mips64/syscalls/inotify_add_watch.S b/libc/arch-mips64/syscalls/inotify_add_watch.S deleted file mode 100644 index 583b8bb52..000000000 --- a/libc/arch-mips64/syscalls/inotify_add_watch.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_add_watch) - .set push - .set noreorder - li $v0, __NR_inotify_add_watch - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(inotify_add_watch) diff --git a/libc/arch-mips64/syscalls/inotify_init1.S b/libc/arch-mips64/syscalls/inotify_init1.S deleted file mode 100644 index 5ccb9afe5..000000000 --- a/libc/arch-mips64/syscalls/inotify_init1.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_init1) - .set push - .set noreorder - li $v0, __NR_inotify_init1 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(inotify_init1) diff --git a/libc/arch-mips64/syscalls/inotify_rm_watch.S b/libc/arch-mips64/syscalls/inotify_rm_watch.S deleted file mode 100644 index 7f18c0f1f..000000000 --- a/libc/arch-mips64/syscalls/inotify_rm_watch.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_rm_watch) - .set push - .set noreorder - li $v0, __NR_inotify_rm_watch - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(inotify_rm_watch) diff --git a/libc/arch-mips64/syscalls/kill.S b/libc/arch-mips64/syscalls/kill.S deleted file mode 100644 index dcc440b83..000000000 --- a/libc/arch-mips64/syscalls/kill.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(kill) - .set push - .set noreorder - li $v0, __NR_kill - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(kill) diff --git a/libc/arch-mips64/syscalls/klogctl.S b/libc/arch-mips64/syscalls/klogctl.S deleted file mode 100644 index 62af663ab..000000000 --- a/libc/arch-mips64/syscalls/klogctl.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(klogctl) - .set push - .set noreorder - li $v0, __NR_syslog - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(klogctl) diff --git a/libc/arch-mips64/syscalls/lgetxattr.S b/libc/arch-mips64/syscalls/lgetxattr.S deleted file mode 100644 index 20e313416..000000000 --- a/libc/arch-mips64/syscalls/lgetxattr.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lgetxattr) - .set push - .set noreorder - li $v0, __NR_lgetxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(lgetxattr) diff --git a/libc/arch-mips64/syscalls/linkat.S b/libc/arch-mips64/syscalls/linkat.S deleted file mode 100644 index 425c41747..000000000 --- a/libc/arch-mips64/syscalls/linkat.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(linkat) - .set push - .set noreorder - li $v0, __NR_linkat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(linkat) diff --git a/libc/arch-mips64/syscalls/listen.S b/libc/arch-mips64/syscalls/listen.S deleted file mode 100644 index 8263ec3f6..000000000 --- a/libc/arch-mips64/syscalls/listen.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(listen) - .set push - .set noreorder - li $v0, __NR_listen - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(listen) diff --git a/libc/arch-mips64/syscalls/listxattr.S b/libc/arch-mips64/syscalls/listxattr.S deleted file mode 100644 index 5f04ffc66..000000000 --- a/libc/arch-mips64/syscalls/listxattr.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(listxattr) - .set push - .set noreorder - li $v0, __NR_listxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(listxattr) diff --git a/libc/arch-mips64/syscalls/llistxattr.S b/libc/arch-mips64/syscalls/llistxattr.S deleted file mode 100644 index 9663fd9c4..000000000 --- a/libc/arch-mips64/syscalls/llistxattr.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(llistxattr) - .set push - .set noreorder - li $v0, __NR_llistxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(llistxattr) diff --git a/libc/arch-mips64/syscalls/lremovexattr.S b/libc/arch-mips64/syscalls/lremovexattr.S deleted file mode 100644 index 905548abc..000000000 --- a/libc/arch-mips64/syscalls/lremovexattr.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lremovexattr) - .set push - .set noreorder - li $v0, __NR_lremovexattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(lremovexattr) diff --git a/libc/arch-mips64/syscalls/lseek.S b/libc/arch-mips64/syscalls/lseek.S deleted file mode 100644 index 1eee1fa8f..000000000 --- a/libc/arch-mips64/syscalls/lseek.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lseek) - .set push - .set noreorder - li $v0, __NR_lseek - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(lseek) - -ALIAS_SYMBOL(lseek64, lseek) diff --git a/libc/arch-mips64/syscalls/lsetxattr.S b/libc/arch-mips64/syscalls/lsetxattr.S deleted file mode 100644 index 38e3523f4..000000000 --- a/libc/arch-mips64/syscalls/lsetxattr.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lsetxattr) - .set push - .set noreorder - li $v0, __NR_lsetxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(lsetxattr) diff --git a/libc/arch-mips64/syscalls/madvise.S b/libc/arch-mips64/syscalls/madvise.S deleted file mode 100644 index 528370064..000000000 --- a/libc/arch-mips64/syscalls/madvise.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(madvise) - .set push - .set noreorder - li $v0, __NR_madvise - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(madvise) diff --git a/libc/arch-mips64/syscalls/mincore.S b/libc/arch-mips64/syscalls/mincore.S deleted file mode 100644 index c7f419a57..000000000 --- a/libc/arch-mips64/syscalls/mincore.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mincore) - .set push - .set noreorder - li $v0, __NR_mincore - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(mincore) diff --git a/libc/arch-mips64/syscalls/mkdirat.S b/libc/arch-mips64/syscalls/mkdirat.S deleted file mode 100644 index 2e1a45bbf..000000000 --- a/libc/arch-mips64/syscalls/mkdirat.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mkdirat) - .set push - .set noreorder - li $v0, __NR_mkdirat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(mkdirat) diff --git a/libc/arch-mips64/syscalls/mknodat.S b/libc/arch-mips64/syscalls/mknodat.S deleted file mode 100644 index 42d73c4ab..000000000 --- a/libc/arch-mips64/syscalls/mknodat.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mknodat) - .set push - .set noreorder - li $v0, __NR_mknodat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(mknodat) diff --git a/libc/arch-mips64/syscalls/mlock.S b/libc/arch-mips64/syscalls/mlock.S deleted file mode 100644 index dd6b784e9..000000000 --- a/libc/arch-mips64/syscalls/mlock.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mlock) - .set push - .set noreorder - li $v0, __NR_mlock - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(mlock) diff --git a/libc/arch-mips64/syscalls/mlockall.S b/libc/arch-mips64/syscalls/mlockall.S deleted file mode 100644 index a4debce7a..000000000 --- a/libc/arch-mips64/syscalls/mlockall.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mlockall) - .set push - .set noreorder - li $v0, __NR_mlockall - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(mlockall) diff --git a/libc/arch-mips64/syscalls/mmap.S b/libc/arch-mips64/syscalls/mmap.S deleted file mode 100644 index e380c7211..000000000 --- a/libc/arch-mips64/syscalls/mmap.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mmap) - .set push - .set noreorder - li $v0, __NR_mmap - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(mmap) - -ALIAS_SYMBOL(mmap64, mmap) diff --git a/libc/arch-mips64/syscalls/mount.S b/libc/arch-mips64/syscalls/mount.S deleted file mode 100644 index 4d2bca198..000000000 --- a/libc/arch-mips64/syscalls/mount.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mount) - .set push - .set noreorder - li $v0, __NR_mount - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(mount) diff --git a/libc/arch-mips64/syscalls/mprotect.S b/libc/arch-mips64/syscalls/mprotect.S deleted file mode 100644 index e1f3ab0ac..000000000 --- a/libc/arch-mips64/syscalls/mprotect.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mprotect) - .set push - .set noreorder - li $v0, __NR_mprotect - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(mprotect) diff --git a/libc/arch-mips64/syscalls/msync.S b/libc/arch-mips64/syscalls/msync.S deleted file mode 100644 index ec2d17527..000000000 --- a/libc/arch-mips64/syscalls/msync.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(msync) - .set push - .set noreorder - li $v0, __NR_msync - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(msync) diff --git a/libc/arch-mips64/syscalls/munlock.S b/libc/arch-mips64/syscalls/munlock.S deleted file mode 100644 index 95c4df10d..000000000 --- a/libc/arch-mips64/syscalls/munlock.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munlock) - .set push - .set noreorder - li $v0, __NR_munlock - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(munlock) diff --git a/libc/arch-mips64/syscalls/munlockall.S b/libc/arch-mips64/syscalls/munlockall.S deleted file mode 100644 index 986246177..000000000 --- a/libc/arch-mips64/syscalls/munlockall.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munlockall) - .set push - .set noreorder - li $v0, __NR_munlockall - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(munlockall) diff --git a/libc/arch-mips64/syscalls/munmap.S b/libc/arch-mips64/syscalls/munmap.S deleted file mode 100644 index 2ca802d72..000000000 --- a/libc/arch-mips64/syscalls/munmap.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munmap) - .set push - .set noreorder - li $v0, __NR_munmap - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(munmap) diff --git a/libc/arch-mips64/syscalls/nanosleep.S b/libc/arch-mips64/syscalls/nanosleep.S deleted file mode 100644 index 291bb00f4..000000000 --- a/libc/arch-mips64/syscalls/nanosleep.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(nanosleep) - .set push - .set noreorder - li $v0, __NR_nanosleep - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(nanosleep) diff --git a/libc/arch-mips64/syscalls/personality.S b/libc/arch-mips64/syscalls/personality.S deleted file mode 100644 index a85cd7695..000000000 --- a/libc/arch-mips64/syscalls/personality.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(personality) - .set push - .set noreorder - li $v0, __NR_personality - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(personality) diff --git a/libc/arch-mips64/syscalls/pipe2.S b/libc/arch-mips64/syscalls/pipe2.S deleted file mode 100644 index 96e25e299..000000000 --- a/libc/arch-mips64/syscalls/pipe2.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pipe2) - .set push - .set noreorder - li $v0, __NR_pipe2 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(pipe2) diff --git a/libc/arch-mips64/syscalls/prctl.S b/libc/arch-mips64/syscalls/prctl.S deleted file mode 100644 index 14b715525..000000000 --- a/libc/arch-mips64/syscalls/prctl.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(prctl) - .set push - .set noreorder - li $v0, __NR_prctl - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(prctl) diff --git a/libc/arch-mips64/syscalls/pread64.S b/libc/arch-mips64/syscalls/pread64.S deleted file mode 100644 index 74dada301..000000000 --- a/libc/arch-mips64/syscalls/pread64.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pread64) - .set push - .set noreorder - li $v0, __NR_pread64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(pread64) - -ALIAS_SYMBOL(pread, pread64) diff --git a/libc/arch-mips64/syscalls/preadv.S b/libc/arch-mips64/syscalls/preadv.S deleted file mode 100644 index 744b06ce3..000000000 --- a/libc/arch-mips64/syscalls/preadv.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(preadv) - .set push - .set noreorder - li $v0, __NR_preadv - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(preadv) - -ALIAS_SYMBOL(preadv64, preadv) diff --git a/libc/arch-mips64/syscalls/prlimit64.S b/libc/arch-mips64/syscalls/prlimit64.S deleted file mode 100644 index c60cf8e40..000000000 --- a/libc/arch-mips64/syscalls/prlimit64.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(prlimit64) - .set push - .set noreorder - li $v0, __NR_prlimit64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(prlimit64) - -ALIAS_SYMBOL(prlimit, prlimit64) diff --git a/libc/arch-mips64/syscalls/process_vm_readv.S b/libc/arch-mips64/syscalls/process_vm_readv.S deleted file mode 100644 index 38ff7eb2d..000000000 --- a/libc/arch-mips64/syscalls/process_vm_readv.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(process_vm_readv) - .set push - .set noreorder - li $v0, __NR_process_vm_readv - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(process_vm_readv) diff --git a/libc/arch-mips64/syscalls/process_vm_writev.S b/libc/arch-mips64/syscalls/process_vm_writev.S deleted file mode 100644 index c317cae92..000000000 --- a/libc/arch-mips64/syscalls/process_vm_writev.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(process_vm_writev) - .set push - .set noreorder - li $v0, __NR_process_vm_writev - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(process_vm_writev) diff --git a/libc/arch-mips64/syscalls/pwrite64.S b/libc/arch-mips64/syscalls/pwrite64.S deleted file mode 100644 index 1d6ac69b6..000000000 --- a/libc/arch-mips64/syscalls/pwrite64.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pwrite64) - .set push - .set noreorder - li $v0, __NR_pwrite64 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(pwrite64) - -ALIAS_SYMBOL(pwrite, pwrite64) diff --git a/libc/arch-mips64/syscalls/pwritev.S b/libc/arch-mips64/syscalls/pwritev.S deleted file mode 100644 index f3044f96e..000000000 --- a/libc/arch-mips64/syscalls/pwritev.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pwritev) - .set push - .set noreorder - li $v0, __NR_pwritev - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(pwritev) - -ALIAS_SYMBOL(pwritev64, pwritev) diff --git a/libc/arch-mips64/syscalls/quotactl.S b/libc/arch-mips64/syscalls/quotactl.S deleted file mode 100644 index 83735ac41..000000000 --- a/libc/arch-mips64/syscalls/quotactl.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(quotactl) - .set push - .set noreorder - li $v0, __NR_quotactl - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(quotactl) diff --git a/libc/arch-mips64/syscalls/read.S b/libc/arch-mips64/syscalls/read.S deleted file mode 100644 index b44e6af5a..000000000 --- a/libc/arch-mips64/syscalls/read.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(read) - .set push - .set noreorder - li $v0, __NR_read - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(read) diff --git a/libc/arch-mips64/syscalls/readahead.S b/libc/arch-mips64/syscalls/readahead.S deleted file mode 100644 index f111ac41a..000000000 --- a/libc/arch-mips64/syscalls/readahead.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readahead) - .set push - .set noreorder - li $v0, __NR_readahead - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(readahead) diff --git a/libc/arch-mips64/syscalls/readlinkat.S b/libc/arch-mips64/syscalls/readlinkat.S deleted file mode 100644 index 987943be8..000000000 --- a/libc/arch-mips64/syscalls/readlinkat.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readlinkat) - .set push - .set noreorder - li $v0, __NR_readlinkat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(readlinkat) diff --git a/libc/arch-mips64/syscalls/readv.S b/libc/arch-mips64/syscalls/readv.S deleted file mode 100644 index 04bf55c7d..000000000 --- a/libc/arch-mips64/syscalls/readv.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readv) - .set push - .set noreorder - li $v0, __NR_readv - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(readv) diff --git a/libc/arch-mips64/syscalls/recvfrom.S b/libc/arch-mips64/syscalls/recvfrom.S deleted file mode 100644 index 7c906ac4d..000000000 --- a/libc/arch-mips64/syscalls/recvfrom.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvfrom) - .set push - .set noreorder - li $v0, __NR_recvfrom - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(recvfrom) diff --git a/libc/arch-mips64/syscalls/recvmmsg.S b/libc/arch-mips64/syscalls/recvmmsg.S deleted file mode 100644 index 0c022cbf4..000000000 --- a/libc/arch-mips64/syscalls/recvmmsg.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvmmsg) - .set push - .set noreorder - li $v0, __NR_recvmmsg - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(recvmmsg) diff --git a/libc/arch-mips64/syscalls/recvmsg.S b/libc/arch-mips64/syscalls/recvmsg.S deleted file mode 100644 index a06bcdd49..000000000 --- a/libc/arch-mips64/syscalls/recvmsg.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvmsg) - .set push - .set noreorder - li $v0, __NR_recvmsg - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(recvmsg) diff --git a/libc/arch-mips64/syscalls/removexattr.S b/libc/arch-mips64/syscalls/removexattr.S deleted file mode 100644 index fb5d8de17..000000000 --- a/libc/arch-mips64/syscalls/removexattr.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(removexattr) - .set push - .set noreorder - li $v0, __NR_removexattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(removexattr) diff --git a/libc/arch-mips64/syscalls/renameat.S b/libc/arch-mips64/syscalls/renameat.S deleted file mode 100644 index 9a8ab459c..000000000 --- a/libc/arch-mips64/syscalls/renameat.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(renameat) - .set push - .set noreorder - li $v0, __NR_renameat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(renameat) diff --git a/libc/arch-mips64/syscalls/sched_get_priority_max.S b/libc/arch-mips64/syscalls/sched_get_priority_max.S deleted file mode 100644 index 89b364956..000000000 --- a/libc/arch-mips64/syscalls/sched_get_priority_max.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_get_priority_max) - .set push - .set noreorder - li $v0, __NR_sched_get_priority_max - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sched_get_priority_max) diff --git a/libc/arch-mips64/syscalls/sched_get_priority_min.S b/libc/arch-mips64/syscalls/sched_get_priority_min.S deleted file mode 100644 index 31c162da1..000000000 --- a/libc/arch-mips64/syscalls/sched_get_priority_min.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_get_priority_min) - .set push - .set noreorder - li $v0, __NR_sched_get_priority_min - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sched_get_priority_min) diff --git a/libc/arch-mips64/syscalls/sched_getparam.S b/libc/arch-mips64/syscalls/sched_getparam.S deleted file mode 100644 index a15aaf5fc..000000000 --- a/libc/arch-mips64/syscalls/sched_getparam.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_getparam) - .set push - .set noreorder - li $v0, __NR_sched_getparam - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sched_getparam) diff --git a/libc/arch-mips64/syscalls/sched_getscheduler.S b/libc/arch-mips64/syscalls/sched_getscheduler.S deleted file mode 100644 index 0e48a1671..000000000 --- a/libc/arch-mips64/syscalls/sched_getscheduler.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_getscheduler) - .set push - .set noreorder - li $v0, __NR_sched_getscheduler - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sched_getscheduler) diff --git a/libc/arch-mips64/syscalls/sched_rr_get_interval.S b/libc/arch-mips64/syscalls/sched_rr_get_interval.S deleted file mode 100644 index 8ee4fe74b..000000000 --- a/libc/arch-mips64/syscalls/sched_rr_get_interval.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_rr_get_interval) - .set push - .set noreorder - li $v0, __NR_sched_rr_get_interval - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sched_rr_get_interval) diff --git a/libc/arch-mips64/syscalls/sched_setaffinity.S b/libc/arch-mips64/syscalls/sched_setaffinity.S deleted file mode 100644 index a5056b49a..000000000 --- a/libc/arch-mips64/syscalls/sched_setaffinity.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setaffinity) - .set push - .set noreorder - li $v0, __NR_sched_setaffinity - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sched_setaffinity) diff --git a/libc/arch-mips64/syscalls/sched_setparam.S b/libc/arch-mips64/syscalls/sched_setparam.S deleted file mode 100644 index def1e4e39..000000000 --- a/libc/arch-mips64/syscalls/sched_setparam.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setparam) - .set push - .set noreorder - li $v0, __NR_sched_setparam - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sched_setparam) diff --git a/libc/arch-mips64/syscalls/sched_setscheduler.S b/libc/arch-mips64/syscalls/sched_setscheduler.S deleted file mode 100644 index 0178541ed..000000000 --- a/libc/arch-mips64/syscalls/sched_setscheduler.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setscheduler) - .set push - .set noreorder - li $v0, __NR_sched_setscheduler - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sched_setscheduler) diff --git a/libc/arch-mips64/syscalls/sched_yield.S b/libc/arch-mips64/syscalls/sched_yield.S deleted file mode 100644 index f69ac3c51..000000000 --- a/libc/arch-mips64/syscalls/sched_yield.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_yield) - .set push - .set noreorder - li $v0, __NR_sched_yield - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sched_yield) diff --git a/libc/arch-mips64/syscalls/sendfile.S b/libc/arch-mips64/syscalls/sendfile.S deleted file mode 100644 index b4d39944d..000000000 --- a/libc/arch-mips64/syscalls/sendfile.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendfile) - .set push - .set noreorder - li $v0, __NR_sendfile - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sendfile) - -ALIAS_SYMBOL(sendfile64, sendfile) diff --git a/libc/arch-mips64/syscalls/sendmmsg.S b/libc/arch-mips64/syscalls/sendmmsg.S deleted file mode 100644 index 2ecd7ef4d..000000000 --- a/libc/arch-mips64/syscalls/sendmmsg.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendmmsg) - .set push - .set noreorder - li $v0, __NR_sendmmsg - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sendmmsg) diff --git a/libc/arch-mips64/syscalls/sendmsg.S b/libc/arch-mips64/syscalls/sendmsg.S deleted file mode 100644 index d4f9735f3..000000000 --- a/libc/arch-mips64/syscalls/sendmsg.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendmsg) - .set push - .set noreorder - li $v0, __NR_sendmsg - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sendmsg) diff --git a/libc/arch-mips64/syscalls/sendto.S b/libc/arch-mips64/syscalls/sendto.S deleted file mode 100644 index e10abd595..000000000 --- a/libc/arch-mips64/syscalls/sendto.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendto) - .set push - .set noreorder - li $v0, __NR_sendto - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sendto) diff --git a/libc/arch-mips64/syscalls/setdomainname.S b/libc/arch-mips64/syscalls/setdomainname.S deleted file mode 100644 index 5e6b7c0cd..000000000 --- a/libc/arch-mips64/syscalls/setdomainname.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setdomainname) - .set push - .set noreorder - li $v0, __NR_setdomainname - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setdomainname) diff --git a/libc/arch-mips64/syscalls/setfsgid.S b/libc/arch-mips64/syscalls/setfsgid.S deleted file mode 100644 index 05d968127..000000000 --- a/libc/arch-mips64/syscalls/setfsgid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setfsgid) - .set push - .set noreorder - li $v0, __NR_setfsgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setfsgid) diff --git a/libc/arch-mips64/syscalls/setfsuid.S b/libc/arch-mips64/syscalls/setfsuid.S deleted file mode 100644 index 8097b778b..000000000 --- a/libc/arch-mips64/syscalls/setfsuid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setfsuid) - .set push - .set noreorder - li $v0, __NR_setfsuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setfsuid) diff --git a/libc/arch-mips64/syscalls/setgid.S b/libc/arch-mips64/syscalls/setgid.S deleted file mode 100644 index 7ba4874f3..000000000 --- a/libc/arch-mips64/syscalls/setgid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setgid) - .set push - .set noreorder - li $v0, __NR_setgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setgid) diff --git a/libc/arch-mips64/syscalls/setgroups.S b/libc/arch-mips64/syscalls/setgroups.S deleted file mode 100644 index f482d0d19..000000000 --- a/libc/arch-mips64/syscalls/setgroups.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setgroups) - .set push - .set noreorder - li $v0, __NR_setgroups - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setgroups) diff --git a/libc/arch-mips64/syscalls/sethostname.S b/libc/arch-mips64/syscalls/sethostname.S deleted file mode 100644 index 651df0e1d..000000000 --- a/libc/arch-mips64/syscalls/sethostname.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sethostname) - .set push - .set noreorder - li $v0, __NR_sethostname - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sethostname) diff --git a/libc/arch-mips64/syscalls/setitimer.S b/libc/arch-mips64/syscalls/setitimer.S deleted file mode 100644 index 35c2bda1d..000000000 --- a/libc/arch-mips64/syscalls/setitimer.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setitimer) - .set push - .set noreorder - li $v0, __NR_setitimer - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setitimer) diff --git a/libc/arch-mips64/syscalls/setns.S b/libc/arch-mips64/syscalls/setns.S deleted file mode 100644 index d640545d1..000000000 --- a/libc/arch-mips64/syscalls/setns.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setns) - .set push - .set noreorder - li $v0, __NR_setns - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setns) diff --git a/libc/arch-mips64/syscalls/setpgid.S b/libc/arch-mips64/syscalls/setpgid.S deleted file mode 100644 index 8c5f71e85..000000000 --- a/libc/arch-mips64/syscalls/setpgid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setpgid) - .set push - .set noreorder - li $v0, __NR_setpgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setpgid) diff --git a/libc/arch-mips64/syscalls/setpriority.S b/libc/arch-mips64/syscalls/setpriority.S deleted file mode 100644 index 5777a0cdd..000000000 --- a/libc/arch-mips64/syscalls/setpriority.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setpriority) - .set push - .set noreorder - li $v0, __NR_setpriority - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setpriority) diff --git a/libc/arch-mips64/syscalls/setregid.S b/libc/arch-mips64/syscalls/setregid.S deleted file mode 100644 index 03be155eb..000000000 --- a/libc/arch-mips64/syscalls/setregid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setregid) - .set push - .set noreorder - li $v0, __NR_setregid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setregid) diff --git a/libc/arch-mips64/syscalls/setresgid.S b/libc/arch-mips64/syscalls/setresgid.S deleted file mode 100644 index 555e92573..000000000 --- a/libc/arch-mips64/syscalls/setresgid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setresgid) - .set push - .set noreorder - li $v0, __NR_setresgid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setresgid) diff --git a/libc/arch-mips64/syscalls/setresuid.S b/libc/arch-mips64/syscalls/setresuid.S deleted file mode 100644 index 6884f380a..000000000 --- a/libc/arch-mips64/syscalls/setresuid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setresuid) - .set push - .set noreorder - li $v0, __NR_setresuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setresuid) diff --git a/libc/arch-mips64/syscalls/setreuid.S b/libc/arch-mips64/syscalls/setreuid.S deleted file mode 100644 index 4163765e9..000000000 --- a/libc/arch-mips64/syscalls/setreuid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setreuid) - .set push - .set noreorder - li $v0, __NR_setreuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setreuid) diff --git a/libc/arch-mips64/syscalls/setrlimit.S b/libc/arch-mips64/syscalls/setrlimit.S deleted file mode 100644 index 5cc8a52f0..000000000 --- a/libc/arch-mips64/syscalls/setrlimit.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setrlimit) - .set push - .set noreorder - li $v0, __NR_setrlimit - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setrlimit) - -ALIAS_SYMBOL(setrlimit64, setrlimit) diff --git a/libc/arch-mips64/syscalls/setsid.S b/libc/arch-mips64/syscalls/setsid.S deleted file mode 100644 index 542209623..000000000 --- a/libc/arch-mips64/syscalls/setsid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setsid) - .set push - .set noreorder - li $v0, __NR_setsid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setsid) diff --git a/libc/arch-mips64/syscalls/setsockopt.S b/libc/arch-mips64/syscalls/setsockopt.S deleted file mode 100644 index 8c3ce6209..000000000 --- a/libc/arch-mips64/syscalls/setsockopt.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setsockopt) - .set push - .set noreorder - li $v0, __NR_setsockopt - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setsockopt) diff --git a/libc/arch-mips64/syscalls/settimeofday.S b/libc/arch-mips64/syscalls/settimeofday.S deleted file mode 100644 index 9723dee44..000000000 --- a/libc/arch-mips64/syscalls/settimeofday.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(settimeofday) - .set push - .set noreorder - li $v0, __NR_settimeofday - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(settimeofday) diff --git a/libc/arch-mips64/syscalls/setuid.S b/libc/arch-mips64/syscalls/setuid.S deleted file mode 100644 index 4ed7a7c0a..000000000 --- a/libc/arch-mips64/syscalls/setuid.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setuid) - .set push - .set noreorder - li $v0, __NR_setuid - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setuid) diff --git a/libc/arch-mips64/syscalls/setxattr.S b/libc/arch-mips64/syscalls/setxattr.S deleted file mode 100644 index d837b5ec4..000000000 --- a/libc/arch-mips64/syscalls/setxattr.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setxattr) - .set push - .set noreorder - li $v0, __NR_setxattr - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(setxattr) diff --git a/libc/arch-mips64/syscalls/shutdown.S b/libc/arch-mips64/syscalls/shutdown.S deleted file mode 100644 index 3a616bdbb..000000000 --- a/libc/arch-mips64/syscalls/shutdown.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(shutdown) - .set push - .set noreorder - li $v0, __NR_shutdown - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(shutdown) diff --git a/libc/arch-mips64/syscalls/sigaltstack.S b/libc/arch-mips64/syscalls/sigaltstack.S deleted file mode 100644 index 13b539b24..000000000 --- a/libc/arch-mips64/syscalls/sigaltstack.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sigaltstack) - .set push - .set noreorder - li $v0, __NR_sigaltstack - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sigaltstack) diff --git a/libc/arch-mips64/syscalls/socketpair.S b/libc/arch-mips64/syscalls/socketpair.S deleted file mode 100644 index b95dabde7..000000000 --- a/libc/arch-mips64/syscalls/socketpair.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(socketpair) - .set push - .set noreorder - li $v0, __NR_socketpair - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(socketpair) diff --git a/libc/arch-mips64/syscalls/splice.S b/libc/arch-mips64/syscalls/splice.S deleted file mode 100644 index 9eae4d0e1..000000000 --- a/libc/arch-mips64/syscalls/splice.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(splice) - .set push - .set noreorder - li $v0, __NR_splice - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(splice) diff --git a/libc/arch-mips64/syscalls/swapoff.S b/libc/arch-mips64/syscalls/swapoff.S deleted file mode 100644 index c70d1bc99..000000000 --- a/libc/arch-mips64/syscalls/swapoff.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(swapoff) - .set push - .set noreorder - li $v0, __NR_swapoff - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(swapoff) diff --git a/libc/arch-mips64/syscalls/swapon.S b/libc/arch-mips64/syscalls/swapon.S deleted file mode 100644 index 879c68e45..000000000 --- a/libc/arch-mips64/syscalls/swapon.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(swapon) - .set push - .set noreorder - li $v0, __NR_swapon - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(swapon) diff --git a/libc/arch-mips64/syscalls/symlinkat.S b/libc/arch-mips64/syscalls/symlinkat.S deleted file mode 100644 index 2483993fa..000000000 --- a/libc/arch-mips64/syscalls/symlinkat.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(symlinkat) - .set push - .set noreorder - li $v0, __NR_symlinkat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(symlinkat) diff --git a/libc/arch-mips64/syscalls/sync.S b/libc/arch-mips64/syscalls/sync.S deleted file mode 100644 index 61cc1a3df..000000000 --- a/libc/arch-mips64/syscalls/sync.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sync) - .set push - .set noreorder - li $v0, __NR_sync - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sync) diff --git a/libc/arch-mips64/syscalls/syncfs.S b/libc/arch-mips64/syscalls/syncfs.S deleted file mode 100644 index 8eb2501cd..000000000 --- a/libc/arch-mips64/syscalls/syncfs.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(syncfs) - .set push - .set noreorder - li $v0, __NR_syncfs - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(syncfs) diff --git a/libc/arch-mips64/syscalls/sysinfo.S b/libc/arch-mips64/syscalls/sysinfo.S deleted file mode 100644 index 2c7acc73e..000000000 --- a/libc/arch-mips64/syscalls/sysinfo.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sysinfo) - .set push - .set noreorder - li $v0, __NR_sysinfo - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(sysinfo) diff --git a/libc/arch-mips64/syscalls/tee.S b/libc/arch-mips64/syscalls/tee.S deleted file mode 100644 index cd60f0b01..000000000 --- a/libc/arch-mips64/syscalls/tee.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(tee) - .set push - .set noreorder - li $v0, __NR_tee - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(tee) diff --git a/libc/arch-mips64/syscalls/tgkill.S b/libc/arch-mips64/syscalls/tgkill.S deleted file mode 100644 index 86d7d4b1d..000000000 --- a/libc/arch-mips64/syscalls/tgkill.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(tgkill) - .set push - .set noreorder - li $v0, __NR_tgkill - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(tgkill) diff --git a/libc/arch-mips64/syscalls/timerfd_create.S b/libc/arch-mips64/syscalls/timerfd_create.S deleted file mode 100644 index 80862171c..000000000 --- a/libc/arch-mips64/syscalls/timerfd_create.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_create) - .set push - .set noreorder - li $v0, __NR_timerfd_create - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(timerfd_create) diff --git a/libc/arch-mips64/syscalls/timerfd_gettime.S b/libc/arch-mips64/syscalls/timerfd_gettime.S deleted file mode 100644 index 4b17e122f..000000000 --- a/libc/arch-mips64/syscalls/timerfd_gettime.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_gettime) - .set push - .set noreorder - li $v0, __NR_timerfd_gettime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(timerfd_gettime) diff --git a/libc/arch-mips64/syscalls/timerfd_settime.S b/libc/arch-mips64/syscalls/timerfd_settime.S deleted file mode 100644 index 51c8cd732..000000000 --- a/libc/arch-mips64/syscalls/timerfd_settime.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_settime) - .set push - .set noreorder - li $v0, __NR_timerfd_settime - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(timerfd_settime) diff --git a/libc/arch-mips64/syscalls/times.S b/libc/arch-mips64/syscalls/times.S deleted file mode 100644 index 5922b672a..000000000 --- a/libc/arch-mips64/syscalls/times.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(times) - .set push - .set noreorder - li $v0, __NR_times - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(times) diff --git a/libc/arch-mips64/syscalls/truncate.S b/libc/arch-mips64/syscalls/truncate.S deleted file mode 100644 index a23223ba1..000000000 --- a/libc/arch-mips64/syscalls/truncate.S +++ /dev/null @@ -1,27 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(truncate) - .set push - .set noreorder - li $v0, __NR_truncate - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(truncate) - -ALIAS_SYMBOL(truncate64, truncate) diff --git a/libc/arch-mips64/syscalls/umask.S b/libc/arch-mips64/syscalls/umask.S deleted file mode 100644 index ca0ab490d..000000000 --- a/libc/arch-mips64/syscalls/umask.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(umask) - .set push - .set noreorder - li $v0, __NR_umask - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(umask) diff --git a/libc/arch-mips64/syscalls/umount2.S b/libc/arch-mips64/syscalls/umount2.S deleted file mode 100644 index 45d5c2e7a..000000000 --- a/libc/arch-mips64/syscalls/umount2.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(umount2) - .set push - .set noreorder - li $v0, __NR_umount2 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(umount2) diff --git a/libc/arch-mips64/syscalls/uname.S b/libc/arch-mips64/syscalls/uname.S deleted file mode 100644 index 3385cfa72..000000000 --- a/libc/arch-mips64/syscalls/uname.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(uname) - .set push - .set noreorder - li $v0, __NR_uname - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(uname) diff --git a/libc/arch-mips64/syscalls/unlinkat.S b/libc/arch-mips64/syscalls/unlinkat.S deleted file mode 100644 index 030f6430d..000000000 --- a/libc/arch-mips64/syscalls/unlinkat.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(unlinkat) - .set push - .set noreorder - li $v0, __NR_unlinkat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(unlinkat) diff --git a/libc/arch-mips64/syscalls/unshare.S b/libc/arch-mips64/syscalls/unshare.S deleted file mode 100644 index e58a7fcc9..000000000 --- a/libc/arch-mips64/syscalls/unshare.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(unshare) - .set push - .set noreorder - li $v0, __NR_unshare - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(unshare) diff --git a/libc/arch-mips64/syscalls/utimensat.S b/libc/arch-mips64/syscalls/utimensat.S deleted file mode 100644 index a524baa1f..000000000 --- a/libc/arch-mips64/syscalls/utimensat.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(utimensat) - .set push - .set noreorder - li $v0, __NR_utimensat - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(utimensat) diff --git a/libc/arch-mips64/syscalls/vmsplice.S b/libc/arch-mips64/syscalls/vmsplice.S deleted file mode 100644 index 5e97d869c..000000000 --- a/libc/arch-mips64/syscalls/vmsplice.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(vmsplice) - .set push - .set noreorder - li $v0, __NR_vmsplice - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(vmsplice) diff --git a/libc/arch-mips64/syscalls/wait4.S b/libc/arch-mips64/syscalls/wait4.S deleted file mode 100644 index 33b0e61fc..000000000 --- a/libc/arch-mips64/syscalls/wait4.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(wait4) - .set push - .set noreorder - li $v0, __NR_wait4 - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(wait4) diff --git a/libc/arch-mips64/syscalls/write.S b/libc/arch-mips64/syscalls/write.S deleted file mode 100644 index 0499094ac..000000000 --- a/libc/arch-mips64/syscalls/write.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(write) - .set push - .set noreorder - li $v0, __NR_write - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(write) diff --git a/libc/arch-mips64/syscalls/writev.S b/libc/arch-mips64/syscalls/writev.S deleted file mode 100644 index 5054af3f6..000000000 --- a/libc/arch-mips64/syscalls/writev.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(writev) - .set push - .set noreorder - li $v0, __NR_writev - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - move $t0, $ra - bal 2f - nop -2: - .cpsetup $ra, $t1, 2b - LA $t9, __set_errno_internal - .cpreturn - j $t9 - move $ra, $t0 - .set pop -END(writev) diff --git a/libc/arch-x86/syscalls/___clock_nanosleep.S b/libc/arch-x86/syscalls/___clock_nanosleep.S deleted file mode 100644 index 699874917..000000000 --- a/libc/arch-x86/syscalls/___clock_nanosleep.S +++ /dev/null @@ -1,45 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___clock_nanosleep) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_clock_nanosleep, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(___clock_nanosleep) -.hidden ___clock_nanosleep diff --git a/libc/arch-x86/syscalls/___close.S b/libc/arch-x86/syscalls/___close.S deleted file mode 100644 index b9ebdaaaf..000000000 --- a/libc/arch-x86/syscalls/___close.S +++ /dev/null @@ -1,30 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___close) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_close, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(___close) -.hidden ___close diff --git a/libc/arch-x86/syscalls/___faccessat.S b/libc/arch-x86/syscalls/___faccessat.S deleted file mode 100644 index b92b03d11..000000000 --- a/libc/arch-x86/syscalls/___faccessat.S +++ /dev/null @@ -1,40 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___faccessat) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_faccessat, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(___faccessat) -.hidden ___faccessat diff --git a/libc/arch-x86/syscalls/___fchmod.S b/libc/arch-x86/syscalls/___fchmod.S deleted file mode 100644 index 92e864c9d..000000000 --- a/libc/arch-x86/syscalls/___fchmod.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fchmod) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_fchmod, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(___fchmod) -.hidden ___fchmod diff --git a/libc/arch-x86/syscalls/___fchmodat.S b/libc/arch-x86/syscalls/___fchmodat.S deleted file mode 100644 index 81edf96fc..000000000 --- a/libc/arch-x86/syscalls/___fchmodat.S +++ /dev/null @@ -1,40 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fchmodat) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_fchmodat, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(___fchmodat) -.hidden ___fchmodat diff --git a/libc/arch-x86/syscalls/___fgetxattr.S b/libc/arch-x86/syscalls/___fgetxattr.S deleted file mode 100644 index 712728d11..000000000 --- a/libc/arch-x86/syscalls/___fgetxattr.S +++ /dev/null @@ -1,45 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fgetxattr) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_fgetxattr, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(___fgetxattr) -.hidden ___fgetxattr diff --git a/libc/arch-x86/syscalls/___flistxattr.S b/libc/arch-x86/syscalls/___flistxattr.S deleted file mode 100644 index a22ef3598..000000000 --- a/libc/arch-x86/syscalls/___flistxattr.S +++ /dev/null @@ -1,40 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___flistxattr) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_flistxattr, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(___flistxattr) -.hidden ___flistxattr diff --git a/libc/arch-x86/syscalls/___fsetxattr.S b/libc/arch-x86/syscalls/___fsetxattr.S deleted file mode 100644 index b90c9727d..000000000 --- a/libc/arch-x86/syscalls/___fsetxattr.S +++ /dev/null @@ -1,50 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fsetxattr) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_fsetxattr, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(___fsetxattr) -.hidden ___fsetxattr diff --git a/libc/arch-x86/syscalls/___mremap.S b/libc/arch-x86/syscalls/___mremap.S deleted file mode 100644 index 9d9bfcb17..000000000 --- a/libc/arch-x86/syscalls/___mremap.S +++ /dev/null @@ -1,50 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___mremap) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_mremap, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(___mremap) -.hidden ___mremap diff --git a/libc/arch-x86/syscalls/___rt_sigqueueinfo.S b/libc/arch-x86/syscalls/___rt_sigqueueinfo.S deleted file mode 100644 index e2997079a..000000000 --- a/libc/arch-x86/syscalls/___rt_sigqueueinfo.S +++ /dev/null @@ -1,40 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___rt_sigqueueinfo) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_rt_sigqueueinfo, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(___rt_sigqueueinfo) -.hidden ___rt_sigqueueinfo diff --git a/libc/arch-x86/syscalls/__accept4.S b/libc/arch-x86/syscalls/__accept4.S deleted file mode 100644 index 112a8a7e1..000000000 --- a/libc/arch-x86/syscalls/__accept4.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__accept4) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $18, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(__accept4) diff --git a/libc/arch-x86/syscalls/__brk.S b/libc/arch-x86/syscalls/__brk.S deleted file mode 100644 index bf2f1d22c..000000000 --- a/libc/arch-x86/syscalls/__brk.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__brk) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_brk, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(__brk) diff --git a/libc/arch-x86/syscalls/__clock_getres.S b/libc/arch-x86/syscalls/__clock_getres.S deleted file mode 100644 index 77b0aa901..000000000 --- a/libc/arch-x86/syscalls/__clock_getres.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__clock_getres) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_clock_getres, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(__clock_getres) diff --git a/libc/arch-x86/syscalls/__clock_gettime.S b/libc/arch-x86/syscalls/__clock_gettime.S deleted file mode 100644 index 0c0c1c409..000000000 --- a/libc/arch-x86/syscalls/__clock_gettime.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__clock_gettime) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_clock_gettime, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(__clock_gettime) diff --git a/libc/arch-x86/syscalls/__connect.S b/libc/arch-x86/syscalls/__connect.S deleted file mode 100644 index 5ea160ca3..000000000 --- a/libc/arch-x86/syscalls/__connect.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__connect) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $3, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(__connect) diff --git a/libc/arch-x86/syscalls/__epoll_pwait.S b/libc/arch-x86/syscalls/__epoll_pwait.S deleted file mode 100644 index 375076034..000000000 --- a/libc/arch-x86/syscalls/__epoll_pwait.S +++ /dev/null @@ -1,54 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__epoll_pwait) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - pushl %ebp - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ebp, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 32(%esp), %ebx - mov 36(%esp), %ecx - mov 40(%esp), %edx - mov 44(%esp), %esi - mov 48(%esp), %edi - mov 52(%esp), %ebp - movl $__NR_epoll_pwait, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebp - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__epoll_pwait) diff --git a/libc/arch-x86/syscalls/__exit.S b/libc/arch-x86/syscalls/__exit.S deleted file mode 100644 index 841c8cfc7..000000000 --- a/libc/arch-x86/syscalls/__exit.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__exit) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_exit, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(__exit) diff --git a/libc/arch-x86/syscalls/__fadvise64.S b/libc/arch-x86/syscalls/__fadvise64.S deleted file mode 100644 index d580a61c6..000000000 --- a/libc/arch-x86/syscalls/__fadvise64.S +++ /dev/null @@ -1,54 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fadvise64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - pushl %ebp - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ebp, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 32(%esp), %ebx - mov 36(%esp), %ecx - mov 40(%esp), %edx - mov 44(%esp), %esi - mov 48(%esp), %edi - mov 52(%esp), %ebp - movl $__NR_fadvise64_64, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebp - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__fadvise64) diff --git a/libc/arch-x86/syscalls/__fcntl64.S b/libc/arch-x86/syscalls/__fcntl64.S deleted file mode 100644 index c886411c3..000000000 --- a/libc/arch-x86/syscalls/__fcntl64.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fcntl64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_fcntl64, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(__fcntl64) diff --git a/libc/arch-x86/syscalls/__fstatfs64.S b/libc/arch-x86/syscalls/__fstatfs64.S deleted file mode 100644 index 2c9743528..000000000 --- a/libc/arch-x86/syscalls/__fstatfs64.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fstatfs64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_fstatfs64, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(__fstatfs64) diff --git a/libc/arch-x86/syscalls/__getcpu.S b/libc/arch-x86/syscalls/__getcpu.S deleted file mode 100644 index fde730633..000000000 --- a/libc/arch-x86/syscalls/__getcpu.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getcpu) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_getcpu, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(__getcpu) diff --git a/libc/arch-x86/syscalls/__getcwd.S b/libc/arch-x86/syscalls/__getcwd.S deleted file mode 100644 index dc0bdedc9..000000000 --- a/libc/arch-x86/syscalls/__getcwd.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getcwd) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_getcwd, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(__getcwd) diff --git a/libc/arch-x86/syscalls/__getdents64.S b/libc/arch-x86/syscalls/__getdents64.S deleted file mode 100644 index 4228da276..000000000 --- a/libc/arch-x86/syscalls/__getdents64.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getdents64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_getdents64, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(__getdents64) diff --git a/libc/arch-x86/syscalls/__getpid.S b/libc/arch-x86/syscalls/__getpid.S deleted file mode 100644 index aa5d34306..000000000 --- a/libc/arch-x86/syscalls/__getpid.S +++ /dev/null @@ -1,24 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getpid) - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - movl $__NR_getpid, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - ret -END(__getpid) diff --git a/libc/arch-x86/syscalls/__getpriority.S b/libc/arch-x86/syscalls/__getpriority.S deleted file mode 100644 index cf2fbc3f8..000000000 --- a/libc/arch-x86/syscalls/__getpriority.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getpriority) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_getpriority, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(__getpriority) diff --git a/libc/arch-x86/syscalls/__gettimeofday.S b/libc/arch-x86/syscalls/__gettimeofday.S deleted file mode 100644 index 4e24cdd69..000000000 --- a/libc/arch-x86/syscalls/__gettimeofday.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__gettimeofday) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_gettimeofday, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(__gettimeofday) diff --git a/libc/arch-x86/syscalls/__ioctl.S b/libc/arch-x86/syscalls/__ioctl.S deleted file mode 100644 index 218963884..000000000 --- a/libc/arch-x86/syscalls/__ioctl.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ioctl) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_ioctl, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(__ioctl) diff --git a/libc/arch-x86/syscalls/__llseek.S b/libc/arch-x86/syscalls/__llseek.S deleted file mode 100644 index 9213891e0..000000000 --- a/libc/arch-x86/syscalls/__llseek.S +++ /dev/null @@ -1,49 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__llseek) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR__llseek, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__llseek) diff --git a/libc/arch-x86/syscalls/__mmap2.S b/libc/arch-x86/syscalls/__mmap2.S deleted file mode 100644 index 0904a3d2d..000000000 --- a/libc/arch-x86/syscalls/__mmap2.S +++ /dev/null @@ -1,54 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__mmap2) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - pushl %ebp - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ebp, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 32(%esp), %ebx - mov 36(%esp), %ecx - mov 40(%esp), %edx - mov 44(%esp), %esi - mov 48(%esp), %edi - mov 52(%esp), %ebp - movl $__NR_mmap2, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebp - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__mmap2) diff --git a/libc/arch-x86/syscalls/__openat.S b/libc/arch-x86/syscalls/__openat.S deleted file mode 100644 index 03c03bd95..000000000 --- a/libc/arch-x86/syscalls/__openat.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__openat) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_openat, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__openat) diff --git a/libc/arch-x86/syscalls/__ppoll.S b/libc/arch-x86/syscalls/__ppoll.S deleted file mode 100644 index 1a55b0342..000000000 --- a/libc/arch-x86/syscalls/__ppoll.S +++ /dev/null @@ -1,49 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ppoll) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_ppoll, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__ppoll) diff --git a/libc/arch-x86/syscalls/__preadv64.S b/libc/arch-x86/syscalls/__preadv64.S deleted file mode 100644 index 5db22a32e..000000000 --- a/libc/arch-x86/syscalls/__preadv64.S +++ /dev/null @@ -1,49 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__preadv64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_preadv, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__preadv64) diff --git a/libc/arch-x86/syscalls/__pselect6.S b/libc/arch-x86/syscalls/__pselect6.S deleted file mode 100644 index 18327fd04..000000000 --- a/libc/arch-x86/syscalls/__pselect6.S +++ /dev/null @@ -1,54 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__pselect6) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - pushl %ebp - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ebp, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 32(%esp), %ebx - mov 36(%esp), %ecx - mov 40(%esp), %edx - mov 44(%esp), %esi - mov 48(%esp), %edi - mov 52(%esp), %ebp - movl $__NR_pselect6, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebp - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__pselect6) diff --git a/libc/arch-x86/syscalls/__ptrace.S b/libc/arch-x86/syscalls/__ptrace.S deleted file mode 100644 index a522e95ee..000000000 --- a/libc/arch-x86/syscalls/__ptrace.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ptrace) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_ptrace, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__ptrace) diff --git a/libc/arch-x86/syscalls/__pwritev64.S b/libc/arch-x86/syscalls/__pwritev64.S deleted file mode 100644 index 19f186566..000000000 --- a/libc/arch-x86/syscalls/__pwritev64.S +++ /dev/null @@ -1,49 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__pwritev64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_pwritev, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__pwritev64) diff --git a/libc/arch-x86/syscalls/__reboot.S b/libc/arch-x86/syscalls/__reboot.S deleted file mode 100644 index 711a4e6d2..000000000 --- a/libc/arch-x86/syscalls/__reboot.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__reboot) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_reboot, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__reboot) diff --git a/libc/arch-x86/syscalls/__rt_sigaction.S b/libc/arch-x86/syscalls/__rt_sigaction.S deleted file mode 100644 index ebc431d9c..000000000 --- a/libc/arch-x86/syscalls/__rt_sigaction.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigaction) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_rt_sigaction, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__rt_sigaction) diff --git a/libc/arch-x86/syscalls/__rt_sigpending.S b/libc/arch-x86/syscalls/__rt_sigpending.S deleted file mode 100644 index ecf29453a..000000000 --- a/libc/arch-x86/syscalls/__rt_sigpending.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigpending) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_rt_sigpending, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(__rt_sigpending) diff --git a/libc/arch-x86/syscalls/__rt_sigprocmask.S b/libc/arch-x86/syscalls/__rt_sigprocmask.S deleted file mode 100644 index cdd0f1036..000000000 --- a/libc/arch-x86/syscalls/__rt_sigprocmask.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigprocmask) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_rt_sigprocmask, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__rt_sigprocmask) diff --git a/libc/arch-x86/syscalls/__rt_sigsuspend.S b/libc/arch-x86/syscalls/__rt_sigsuspend.S deleted file mode 100644 index ef969493a..000000000 --- a/libc/arch-x86/syscalls/__rt_sigsuspend.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigsuspend) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_rt_sigsuspend, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(__rt_sigsuspend) diff --git a/libc/arch-x86/syscalls/__rt_sigtimedwait.S b/libc/arch-x86/syscalls/__rt_sigtimedwait.S deleted file mode 100644 index 820522177..000000000 --- a/libc/arch-x86/syscalls/__rt_sigtimedwait.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigtimedwait) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_rt_sigtimedwait, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__rt_sigtimedwait) diff --git a/libc/arch-x86/syscalls/__sched_getaffinity.S b/libc/arch-x86/syscalls/__sched_getaffinity.S deleted file mode 100644 index ba658afaa..000000000 --- a/libc/arch-x86/syscalls/__sched_getaffinity.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sched_getaffinity) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_sched_getaffinity, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(__sched_getaffinity) diff --git a/libc/arch-x86/syscalls/__set_thread_area.S b/libc/arch-x86/syscalls/__set_thread_area.S deleted file mode 100644 index 7fc04bd48..000000000 --- a/libc/arch-x86/syscalls/__set_thread_area.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__set_thread_area) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_set_thread_area, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(__set_thread_area) diff --git a/libc/arch-x86/syscalls/__set_tid_address.S b/libc/arch-x86/syscalls/__set_tid_address.S deleted file mode 100644 index 430115635..000000000 --- a/libc/arch-x86/syscalls/__set_tid_address.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__set_tid_address) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_set_tid_address, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(__set_tid_address) diff --git a/libc/arch-x86/syscalls/__sigaction.S b/libc/arch-x86/syscalls/__sigaction.S deleted file mode 100644 index 6b2b7f31e..000000000 --- a/libc/arch-x86/syscalls/__sigaction.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sigaction) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_sigaction, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(__sigaction) diff --git a/libc/arch-x86/syscalls/__signalfd4.S b/libc/arch-x86/syscalls/__signalfd4.S deleted file mode 100644 index ea817cf38..000000000 --- a/libc/arch-x86/syscalls/__signalfd4.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__signalfd4) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_signalfd4, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__signalfd4) diff --git a/libc/arch-x86/syscalls/__socket.S b/libc/arch-x86/syscalls/__socket.S deleted file mode 100644 index 06d1f1f12..000000000 --- a/libc/arch-x86/syscalls/__socket.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__socket) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $1, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(__socket) diff --git a/libc/arch-x86/syscalls/__statfs64.S b/libc/arch-x86/syscalls/__statfs64.S deleted file mode 100644 index 79e1f4bcf..000000000 --- a/libc/arch-x86/syscalls/__statfs64.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__statfs64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_statfs64, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(__statfs64) diff --git a/libc/arch-x86/syscalls/__sync_file_range.S b/libc/arch-x86/syscalls/__sync_file_range.S deleted file mode 100644 index f5bf3ec3d..000000000 --- a/libc/arch-x86/syscalls/__sync_file_range.S +++ /dev/null @@ -1,54 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sync_file_range) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - pushl %ebp - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ebp, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 32(%esp), %ebx - mov 36(%esp), %ecx - mov 40(%esp), %edx - mov 44(%esp), %esi - mov 48(%esp), %edi - mov 52(%esp), %ebp - movl $__NR_sync_file_range, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebp - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__sync_file_range) diff --git a/libc/arch-x86/syscalls/__timer_create.S b/libc/arch-x86/syscalls/__timer_create.S deleted file mode 100644 index 4e16b1c86..000000000 --- a/libc/arch-x86/syscalls/__timer_create.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_create) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_timer_create, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(__timer_create) diff --git a/libc/arch-x86/syscalls/__timer_delete.S b/libc/arch-x86/syscalls/__timer_delete.S deleted file mode 100644 index fea422ee7..000000000 --- a/libc/arch-x86/syscalls/__timer_delete.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_delete) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_timer_delete, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(__timer_delete) diff --git a/libc/arch-x86/syscalls/__timer_getoverrun.S b/libc/arch-x86/syscalls/__timer_getoverrun.S deleted file mode 100644 index e921073cd..000000000 --- a/libc/arch-x86/syscalls/__timer_getoverrun.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_getoverrun) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_timer_getoverrun, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(__timer_getoverrun) diff --git a/libc/arch-x86/syscalls/__timer_gettime.S b/libc/arch-x86/syscalls/__timer_gettime.S deleted file mode 100644 index 4e20356fd..000000000 --- a/libc/arch-x86/syscalls/__timer_gettime.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_gettime) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_timer_gettime, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(__timer_gettime) diff --git a/libc/arch-x86/syscalls/__timer_settime.S b/libc/arch-x86/syscalls/__timer_settime.S deleted file mode 100644 index 9b8af344e..000000000 --- a/libc/arch-x86/syscalls/__timer_settime.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_settime) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_timer_settime, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__timer_settime) diff --git a/libc/arch-x86/syscalls/__waitid.S b/libc/arch-x86/syscalls/__waitid.S deleted file mode 100644 index f134b42b5..000000000 --- a/libc/arch-x86/syscalls/__waitid.S +++ /dev/null @@ -1,49 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__waitid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_waitid, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(__waitid) diff --git a/libc/arch-x86/syscalls/_exit.S b/libc/arch-x86/syscalls/_exit.S deleted file mode 100644 index 1e89261c9..000000000 --- a/libc/arch-x86/syscalls/_exit.S +++ /dev/null @@ -1,31 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(_exit) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_exit_group, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(_exit) - -ALIAS_SYMBOL(_Exit, _exit) diff --git a/libc/arch-x86/syscalls/acct.S b/libc/arch-x86/syscalls/acct.S deleted file mode 100644 index 48c4c5cb6..000000000 --- a/libc/arch-x86/syscalls/acct.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(acct) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_acct, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(acct) diff --git a/libc/arch-x86/syscalls/adjtimex.S b/libc/arch-x86/syscalls/adjtimex.S deleted file mode 100644 index 1b0d8b164..000000000 --- a/libc/arch-x86/syscalls/adjtimex.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(adjtimex) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_adjtimex, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(adjtimex) diff --git a/libc/arch-x86/syscalls/bind.S b/libc/arch-x86/syscalls/bind.S deleted file mode 100644 index c1f84da7b..000000000 --- a/libc/arch-x86/syscalls/bind.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(bind) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $2, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(bind) diff --git a/libc/arch-x86/syscalls/capget.S b/libc/arch-x86/syscalls/capget.S deleted file mode 100644 index fafde37cf..000000000 --- a/libc/arch-x86/syscalls/capget.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(capget) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_capget, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(capget) diff --git a/libc/arch-x86/syscalls/capset.S b/libc/arch-x86/syscalls/capset.S deleted file mode 100644 index 28e533879..000000000 --- a/libc/arch-x86/syscalls/capset.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(capset) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_capset, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(capset) diff --git a/libc/arch-x86/syscalls/chdir.S b/libc/arch-x86/syscalls/chdir.S deleted file mode 100644 index 4b639eb71..000000000 --- a/libc/arch-x86/syscalls/chdir.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(chdir) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_chdir, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(chdir) diff --git a/libc/arch-x86/syscalls/chroot.S b/libc/arch-x86/syscalls/chroot.S deleted file mode 100644 index 8887f8626..000000000 --- a/libc/arch-x86/syscalls/chroot.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(chroot) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_chroot, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(chroot) diff --git a/libc/arch-x86/syscalls/clock_adjtime.S b/libc/arch-x86/syscalls/clock_adjtime.S deleted file mode 100644 index 4ccf1a634..000000000 --- a/libc/arch-x86/syscalls/clock_adjtime.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(clock_adjtime) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_clock_adjtime, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(clock_adjtime) diff --git a/libc/arch-x86/syscalls/clock_settime.S b/libc/arch-x86/syscalls/clock_settime.S deleted file mode 100644 index 62dc021f9..000000000 --- a/libc/arch-x86/syscalls/clock_settime.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(clock_settime) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_clock_settime, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(clock_settime) diff --git a/libc/arch-x86/syscalls/delete_module.S b/libc/arch-x86/syscalls/delete_module.S deleted file mode 100644 index b0c8ff97b..000000000 --- a/libc/arch-x86/syscalls/delete_module.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(delete_module) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_delete_module, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(delete_module) diff --git a/libc/arch-x86/syscalls/dup.S b/libc/arch-x86/syscalls/dup.S deleted file mode 100644 index 637cfae0e..000000000 --- a/libc/arch-x86/syscalls/dup.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(dup) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_dup, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(dup) diff --git a/libc/arch-x86/syscalls/dup3.S b/libc/arch-x86/syscalls/dup3.S deleted file mode 100644 index 4d08eab85..000000000 --- a/libc/arch-x86/syscalls/dup3.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(dup3) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_dup3, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(dup3) diff --git a/libc/arch-x86/syscalls/epoll_create1.S b/libc/arch-x86/syscalls/epoll_create1.S deleted file mode 100644 index 93d1c007b..000000000 --- a/libc/arch-x86/syscalls/epoll_create1.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(epoll_create1) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_epoll_create1, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(epoll_create1) diff --git a/libc/arch-x86/syscalls/epoll_ctl.S b/libc/arch-x86/syscalls/epoll_ctl.S deleted file mode 100644 index a2d8d27bb..000000000 --- a/libc/arch-x86/syscalls/epoll_ctl.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(epoll_ctl) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_epoll_ctl, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(epoll_ctl) diff --git a/libc/arch-x86/syscalls/eventfd.S b/libc/arch-x86/syscalls/eventfd.S deleted file mode 100644 index 89f9442f5..000000000 --- a/libc/arch-x86/syscalls/eventfd.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(eventfd) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_eventfd2, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(eventfd) diff --git a/libc/arch-x86/syscalls/execve.S b/libc/arch-x86/syscalls/execve.S deleted file mode 100644 index 7695635b9..000000000 --- a/libc/arch-x86/syscalls/execve.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(execve) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_execve, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(execve) diff --git a/libc/arch-x86/syscalls/fallocate64.S b/libc/arch-x86/syscalls/fallocate64.S deleted file mode 100644 index eabc642e5..000000000 --- a/libc/arch-x86/syscalls/fallocate64.S +++ /dev/null @@ -1,54 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fallocate64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - pushl %ebp - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ebp, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 32(%esp), %ebx - mov 36(%esp), %ecx - mov 40(%esp), %edx - mov 44(%esp), %esi - mov 48(%esp), %edi - mov 52(%esp), %ebp - movl $__NR_fallocate, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebp - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(fallocate64) diff --git a/libc/arch-x86/syscalls/fchdir.S b/libc/arch-x86/syscalls/fchdir.S deleted file mode 100644 index 57016449b..000000000 --- a/libc/arch-x86/syscalls/fchdir.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchdir) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_fchdir, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(fchdir) diff --git a/libc/arch-x86/syscalls/fchown.S b/libc/arch-x86/syscalls/fchown.S deleted file mode 100644 index 0d413891c..000000000 --- a/libc/arch-x86/syscalls/fchown.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchown) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_fchown32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(fchown) diff --git a/libc/arch-x86/syscalls/fchownat.S b/libc/arch-x86/syscalls/fchownat.S deleted file mode 100644 index 56b7777ca..000000000 --- a/libc/arch-x86/syscalls/fchownat.S +++ /dev/null @@ -1,49 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchownat) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_fchownat, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(fchownat) diff --git a/libc/arch-x86/syscalls/fdatasync.S b/libc/arch-x86/syscalls/fdatasync.S deleted file mode 100644 index 6ee9e1563..000000000 --- a/libc/arch-x86/syscalls/fdatasync.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fdatasync) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_fdatasync, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(fdatasync) diff --git a/libc/arch-x86/syscalls/flock.S b/libc/arch-x86/syscalls/flock.S deleted file mode 100644 index b65543d57..000000000 --- a/libc/arch-x86/syscalls/flock.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(flock) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_flock, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(flock) diff --git a/libc/arch-x86/syscalls/fremovexattr.S b/libc/arch-x86/syscalls/fremovexattr.S deleted file mode 100644 index 3511d5dc4..000000000 --- a/libc/arch-x86/syscalls/fremovexattr.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fremovexattr) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_fremovexattr, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(fremovexattr) diff --git a/libc/arch-x86/syscalls/fstat64.S b/libc/arch-x86/syscalls/fstat64.S deleted file mode 100644 index 16eca6947..000000000 --- a/libc/arch-x86/syscalls/fstat64.S +++ /dev/null @@ -1,36 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fstat64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_fstat64, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(fstat64) - -ALIAS_SYMBOL(fstat, fstat64) diff --git a/libc/arch-x86/syscalls/fstatat64.S b/libc/arch-x86/syscalls/fstatat64.S deleted file mode 100644 index 402cf6050..000000000 --- a/libc/arch-x86/syscalls/fstatat64.S +++ /dev/null @@ -1,46 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fstatat64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_fstatat64, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(fstatat64) - -ALIAS_SYMBOL(fstatat, fstatat64) diff --git a/libc/arch-x86/syscalls/fsync.S b/libc/arch-x86/syscalls/fsync.S deleted file mode 100644 index 53aeee6dc..000000000 --- a/libc/arch-x86/syscalls/fsync.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fsync) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_fsync, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(fsync) diff --git a/libc/arch-x86/syscalls/ftruncate64.S b/libc/arch-x86/syscalls/ftruncate64.S deleted file mode 100644 index 2fa792f60..000000000 --- a/libc/arch-x86/syscalls/ftruncate64.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(ftruncate64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_ftruncate64, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(ftruncate64) diff --git a/libc/arch-x86/syscalls/getegid.S b/libc/arch-x86/syscalls/getegid.S deleted file mode 100644 index cb1921ede..000000000 --- a/libc/arch-x86/syscalls/getegid.S +++ /dev/null @@ -1,24 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getegid) - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - movl $__NR_getegid32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - ret -END(getegid) diff --git a/libc/arch-x86/syscalls/geteuid.S b/libc/arch-x86/syscalls/geteuid.S deleted file mode 100644 index c08d3ae3f..000000000 --- a/libc/arch-x86/syscalls/geteuid.S +++ /dev/null @@ -1,24 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(geteuid) - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - movl $__NR_geteuid32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - ret -END(geteuid) diff --git a/libc/arch-x86/syscalls/getgid.S b/libc/arch-x86/syscalls/getgid.S deleted file mode 100644 index 9189ae9da..000000000 --- a/libc/arch-x86/syscalls/getgid.S +++ /dev/null @@ -1,24 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getgid) - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - movl $__NR_getgid32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - ret -END(getgid) diff --git a/libc/arch-x86/syscalls/getgroups.S b/libc/arch-x86/syscalls/getgroups.S deleted file mode 100644 index 8737d51b6..000000000 --- a/libc/arch-x86/syscalls/getgroups.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getgroups) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_getgroups32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(getgroups) diff --git a/libc/arch-x86/syscalls/getitimer.S b/libc/arch-x86/syscalls/getitimer.S deleted file mode 100644 index e08811491..000000000 --- a/libc/arch-x86/syscalls/getitimer.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getitimer) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_getitimer, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(getitimer) diff --git a/libc/arch-x86/syscalls/getpeername.S b/libc/arch-x86/syscalls/getpeername.S deleted file mode 100644 index 40bb814b7..000000000 --- a/libc/arch-x86/syscalls/getpeername.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getpeername) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $7, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(getpeername) diff --git a/libc/arch-x86/syscalls/getpgid.S b/libc/arch-x86/syscalls/getpgid.S deleted file mode 100644 index 9d362e873..000000000 --- a/libc/arch-x86/syscalls/getpgid.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getpgid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_getpgid, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(getpgid) diff --git a/libc/arch-x86/syscalls/getppid.S b/libc/arch-x86/syscalls/getppid.S deleted file mode 100644 index afb40a1cf..000000000 --- a/libc/arch-x86/syscalls/getppid.S +++ /dev/null @@ -1,24 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getppid) - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - movl $__NR_getppid, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - ret -END(getppid) diff --git a/libc/arch-x86/syscalls/getrandom.S b/libc/arch-x86/syscalls/getrandom.S deleted file mode 100644 index 2e8ebc955..000000000 --- a/libc/arch-x86/syscalls/getrandom.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrandom) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_getrandom, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(getrandom) diff --git a/libc/arch-x86/syscalls/getresgid.S b/libc/arch-x86/syscalls/getresgid.S deleted file mode 100644 index 131c101a6..000000000 --- a/libc/arch-x86/syscalls/getresgid.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getresgid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_getresgid32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(getresgid) diff --git a/libc/arch-x86/syscalls/getresuid.S b/libc/arch-x86/syscalls/getresuid.S deleted file mode 100644 index 94a876788..000000000 --- a/libc/arch-x86/syscalls/getresuid.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getresuid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_getresuid32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(getresuid) diff --git a/libc/arch-x86/syscalls/getrlimit.S b/libc/arch-x86/syscalls/getrlimit.S deleted file mode 100644 index c686f7c99..000000000 --- a/libc/arch-x86/syscalls/getrlimit.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrlimit) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_ugetrlimit, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(getrlimit) diff --git a/libc/arch-x86/syscalls/getrusage.S b/libc/arch-x86/syscalls/getrusage.S deleted file mode 100644 index 51d1df129..000000000 --- a/libc/arch-x86/syscalls/getrusage.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrusage) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_getrusage, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(getrusage) diff --git a/libc/arch-x86/syscalls/getsid.S b/libc/arch-x86/syscalls/getsid.S deleted file mode 100644 index a4568e630..000000000 --- a/libc/arch-x86/syscalls/getsid.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_getsid, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(getsid) diff --git a/libc/arch-x86/syscalls/getsockname.S b/libc/arch-x86/syscalls/getsockname.S deleted file mode 100644 index 0fd583643..000000000 --- a/libc/arch-x86/syscalls/getsockname.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsockname) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $6, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(getsockname) diff --git a/libc/arch-x86/syscalls/getsockopt.S b/libc/arch-x86/syscalls/getsockopt.S deleted file mode 100644 index fa6fccff7..000000000 --- a/libc/arch-x86/syscalls/getsockopt.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsockopt) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $15, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(getsockopt) diff --git a/libc/arch-x86/syscalls/getuid.S b/libc/arch-x86/syscalls/getuid.S deleted file mode 100644 index 11cc0c67c..000000000 --- a/libc/arch-x86/syscalls/getuid.S +++ /dev/null @@ -1,24 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getuid) - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - movl $__NR_getuid32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - ret -END(getuid) diff --git a/libc/arch-x86/syscalls/getxattr.S b/libc/arch-x86/syscalls/getxattr.S deleted file mode 100644 index 871362efa..000000000 --- a/libc/arch-x86/syscalls/getxattr.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getxattr) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_getxattr, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(getxattr) diff --git a/libc/arch-x86/syscalls/init_module.S b/libc/arch-x86/syscalls/init_module.S deleted file mode 100644 index 0147eeee7..000000000 --- a/libc/arch-x86/syscalls/init_module.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(init_module) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_init_module, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(init_module) diff --git a/libc/arch-x86/syscalls/inotify_add_watch.S b/libc/arch-x86/syscalls/inotify_add_watch.S deleted file mode 100644 index f19644018..000000000 --- a/libc/arch-x86/syscalls/inotify_add_watch.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_add_watch) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_inotify_add_watch, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(inotify_add_watch) diff --git a/libc/arch-x86/syscalls/inotify_init1.S b/libc/arch-x86/syscalls/inotify_init1.S deleted file mode 100644 index 7f0dcfbdf..000000000 --- a/libc/arch-x86/syscalls/inotify_init1.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_init1) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_inotify_init1, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(inotify_init1) diff --git a/libc/arch-x86/syscalls/inotify_rm_watch.S b/libc/arch-x86/syscalls/inotify_rm_watch.S deleted file mode 100644 index 595e05391..000000000 --- a/libc/arch-x86/syscalls/inotify_rm_watch.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_rm_watch) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_inotify_rm_watch, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(inotify_rm_watch) diff --git a/libc/arch-x86/syscalls/kill.S b/libc/arch-x86/syscalls/kill.S deleted file mode 100644 index 4ee56e6ca..000000000 --- a/libc/arch-x86/syscalls/kill.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(kill) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_kill, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(kill) diff --git a/libc/arch-x86/syscalls/klogctl.S b/libc/arch-x86/syscalls/klogctl.S deleted file mode 100644 index 3d0794262..000000000 --- a/libc/arch-x86/syscalls/klogctl.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(klogctl) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_syslog, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(klogctl) diff --git a/libc/arch-x86/syscalls/lgetxattr.S b/libc/arch-x86/syscalls/lgetxattr.S deleted file mode 100644 index 659b088c9..000000000 --- a/libc/arch-x86/syscalls/lgetxattr.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lgetxattr) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_lgetxattr, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(lgetxattr) diff --git a/libc/arch-x86/syscalls/linkat.S b/libc/arch-x86/syscalls/linkat.S deleted file mode 100644 index 644172db6..000000000 --- a/libc/arch-x86/syscalls/linkat.S +++ /dev/null @@ -1,49 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(linkat) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_linkat, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(linkat) diff --git a/libc/arch-x86/syscalls/listen.S b/libc/arch-x86/syscalls/listen.S deleted file mode 100644 index ce7c3a90b..000000000 --- a/libc/arch-x86/syscalls/listen.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(listen) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $4, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(listen) diff --git a/libc/arch-x86/syscalls/listxattr.S b/libc/arch-x86/syscalls/listxattr.S deleted file mode 100644 index 2fe799e75..000000000 --- a/libc/arch-x86/syscalls/listxattr.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(listxattr) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_listxattr, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(listxattr) diff --git a/libc/arch-x86/syscalls/llistxattr.S b/libc/arch-x86/syscalls/llistxattr.S deleted file mode 100644 index 666d87ede..000000000 --- a/libc/arch-x86/syscalls/llistxattr.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(llistxattr) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_llistxattr, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(llistxattr) diff --git a/libc/arch-x86/syscalls/lremovexattr.S b/libc/arch-x86/syscalls/lremovexattr.S deleted file mode 100644 index bda772b05..000000000 --- a/libc/arch-x86/syscalls/lremovexattr.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lremovexattr) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_lremovexattr, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(lremovexattr) diff --git a/libc/arch-x86/syscalls/lseek.S b/libc/arch-x86/syscalls/lseek.S deleted file mode 100644 index 9142b5c12..000000000 --- a/libc/arch-x86/syscalls/lseek.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lseek) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_lseek, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(lseek) diff --git a/libc/arch-x86/syscalls/lsetxattr.S b/libc/arch-x86/syscalls/lsetxattr.S deleted file mode 100644 index fa977b362..000000000 --- a/libc/arch-x86/syscalls/lsetxattr.S +++ /dev/null @@ -1,49 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lsetxattr) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_lsetxattr, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(lsetxattr) diff --git a/libc/arch-x86/syscalls/madvise.S b/libc/arch-x86/syscalls/madvise.S deleted file mode 100644 index 21f472e54..000000000 --- a/libc/arch-x86/syscalls/madvise.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(madvise) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_madvise, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(madvise) diff --git a/libc/arch-x86/syscalls/mincore.S b/libc/arch-x86/syscalls/mincore.S deleted file mode 100644 index 4179c9acf..000000000 --- a/libc/arch-x86/syscalls/mincore.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mincore) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_mincore, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(mincore) diff --git a/libc/arch-x86/syscalls/mkdirat.S b/libc/arch-x86/syscalls/mkdirat.S deleted file mode 100644 index 6a9d94cfe..000000000 --- a/libc/arch-x86/syscalls/mkdirat.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mkdirat) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_mkdirat, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(mkdirat) diff --git a/libc/arch-x86/syscalls/mknodat.S b/libc/arch-x86/syscalls/mknodat.S deleted file mode 100644 index a1fae7f85..000000000 --- a/libc/arch-x86/syscalls/mknodat.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mknodat) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_mknodat, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(mknodat) diff --git a/libc/arch-x86/syscalls/mlock.S b/libc/arch-x86/syscalls/mlock.S deleted file mode 100644 index 1c57ac07d..000000000 --- a/libc/arch-x86/syscalls/mlock.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mlock) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_mlock, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(mlock) diff --git a/libc/arch-x86/syscalls/mlockall.S b/libc/arch-x86/syscalls/mlockall.S deleted file mode 100644 index 9f54de33d..000000000 --- a/libc/arch-x86/syscalls/mlockall.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mlockall) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_mlockall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(mlockall) diff --git a/libc/arch-x86/syscalls/mount.S b/libc/arch-x86/syscalls/mount.S deleted file mode 100644 index 4a9f91a8f..000000000 --- a/libc/arch-x86/syscalls/mount.S +++ /dev/null @@ -1,49 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mount) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_mount, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(mount) diff --git a/libc/arch-x86/syscalls/mprotect.S b/libc/arch-x86/syscalls/mprotect.S deleted file mode 100644 index 5eec5501f..000000000 --- a/libc/arch-x86/syscalls/mprotect.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mprotect) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_mprotect, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(mprotect) diff --git a/libc/arch-x86/syscalls/msync.S b/libc/arch-x86/syscalls/msync.S deleted file mode 100644 index 7754da61d..000000000 --- a/libc/arch-x86/syscalls/msync.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(msync) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_msync, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(msync) diff --git a/libc/arch-x86/syscalls/munlock.S b/libc/arch-x86/syscalls/munlock.S deleted file mode 100644 index d2ae9f030..000000000 --- a/libc/arch-x86/syscalls/munlock.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munlock) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_munlock, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(munlock) diff --git a/libc/arch-x86/syscalls/munlockall.S b/libc/arch-x86/syscalls/munlockall.S deleted file mode 100644 index e709b8cb4..000000000 --- a/libc/arch-x86/syscalls/munlockall.S +++ /dev/null @@ -1,24 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munlockall) - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - movl $__NR_munlockall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - ret -END(munlockall) diff --git a/libc/arch-x86/syscalls/munmap.S b/libc/arch-x86/syscalls/munmap.S deleted file mode 100644 index 7ddc5aaae..000000000 --- a/libc/arch-x86/syscalls/munmap.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munmap) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_munmap, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(munmap) diff --git a/libc/arch-x86/syscalls/nanosleep.S b/libc/arch-x86/syscalls/nanosleep.S deleted file mode 100644 index 580f5e19d..000000000 --- a/libc/arch-x86/syscalls/nanosleep.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(nanosleep) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_nanosleep, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(nanosleep) diff --git a/libc/arch-x86/syscalls/personality.S b/libc/arch-x86/syscalls/personality.S deleted file mode 100644 index 3e003c4e0..000000000 --- a/libc/arch-x86/syscalls/personality.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(personality) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_personality, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(personality) diff --git a/libc/arch-x86/syscalls/pipe2.S b/libc/arch-x86/syscalls/pipe2.S deleted file mode 100644 index 8a9328129..000000000 --- a/libc/arch-x86/syscalls/pipe2.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pipe2) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_pipe2, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(pipe2) diff --git a/libc/arch-x86/syscalls/prctl.S b/libc/arch-x86/syscalls/prctl.S deleted file mode 100644 index 22b4a8323..000000000 --- a/libc/arch-x86/syscalls/prctl.S +++ /dev/null @@ -1,49 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(prctl) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_prctl, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(prctl) diff --git a/libc/arch-x86/syscalls/pread64.S b/libc/arch-x86/syscalls/pread64.S deleted file mode 100644 index 9002f1761..000000000 --- a/libc/arch-x86/syscalls/pread64.S +++ /dev/null @@ -1,49 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pread64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_pread64, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(pread64) diff --git a/libc/arch-x86/syscalls/prlimit64.S b/libc/arch-x86/syscalls/prlimit64.S deleted file mode 100644 index 13f66825e..000000000 --- a/libc/arch-x86/syscalls/prlimit64.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(prlimit64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_prlimit64, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(prlimit64) diff --git a/libc/arch-x86/syscalls/process_vm_readv.S b/libc/arch-x86/syscalls/process_vm_readv.S deleted file mode 100644 index e2cd044eb..000000000 --- a/libc/arch-x86/syscalls/process_vm_readv.S +++ /dev/null @@ -1,54 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(process_vm_readv) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - pushl %ebp - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ebp, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 32(%esp), %ebx - mov 36(%esp), %ecx - mov 40(%esp), %edx - mov 44(%esp), %esi - mov 48(%esp), %edi - mov 52(%esp), %ebp - movl $__NR_process_vm_readv, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebp - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(process_vm_readv) diff --git a/libc/arch-x86/syscalls/process_vm_writev.S b/libc/arch-x86/syscalls/process_vm_writev.S deleted file mode 100644 index de0d218fc..000000000 --- a/libc/arch-x86/syscalls/process_vm_writev.S +++ /dev/null @@ -1,54 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(process_vm_writev) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - pushl %ebp - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ebp, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 32(%esp), %ebx - mov 36(%esp), %ecx - mov 40(%esp), %edx - mov 44(%esp), %esi - mov 48(%esp), %edi - mov 52(%esp), %ebp - movl $__NR_process_vm_writev, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebp - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(process_vm_writev) diff --git a/libc/arch-x86/syscalls/pwrite64.S b/libc/arch-x86/syscalls/pwrite64.S deleted file mode 100644 index 753272993..000000000 --- a/libc/arch-x86/syscalls/pwrite64.S +++ /dev/null @@ -1,49 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pwrite64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_pwrite64, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(pwrite64) diff --git a/libc/arch-x86/syscalls/quotactl.S b/libc/arch-x86/syscalls/quotactl.S deleted file mode 100644 index 326cf87ee..000000000 --- a/libc/arch-x86/syscalls/quotactl.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(quotactl) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_quotactl, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(quotactl) diff --git a/libc/arch-x86/syscalls/read.S b/libc/arch-x86/syscalls/read.S deleted file mode 100644 index d4b69b599..000000000 --- a/libc/arch-x86/syscalls/read.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(read) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_read, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(read) diff --git a/libc/arch-x86/syscalls/readahead.S b/libc/arch-x86/syscalls/readahead.S deleted file mode 100644 index 8ce22bb8b..000000000 --- a/libc/arch-x86/syscalls/readahead.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readahead) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_readahead, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(readahead) diff --git a/libc/arch-x86/syscalls/readlinkat.S b/libc/arch-x86/syscalls/readlinkat.S deleted file mode 100644 index 8b74a4e20..000000000 --- a/libc/arch-x86/syscalls/readlinkat.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readlinkat) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_readlinkat, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(readlinkat) diff --git a/libc/arch-x86/syscalls/readv.S b/libc/arch-x86/syscalls/readv.S deleted file mode 100644 index a1cb08f86..000000000 --- a/libc/arch-x86/syscalls/readv.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readv) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_readv, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(readv) diff --git a/libc/arch-x86/syscalls/recvfrom.S b/libc/arch-x86/syscalls/recvfrom.S deleted file mode 100644 index cedd703e9..000000000 --- a/libc/arch-x86/syscalls/recvfrom.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvfrom) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $12, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(recvfrom) diff --git a/libc/arch-x86/syscalls/recvmmsg.S b/libc/arch-x86/syscalls/recvmmsg.S deleted file mode 100644 index 130332ae9..000000000 --- a/libc/arch-x86/syscalls/recvmmsg.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvmmsg) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $19, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(recvmmsg) diff --git a/libc/arch-x86/syscalls/recvmsg.S b/libc/arch-x86/syscalls/recvmsg.S deleted file mode 100644 index c8d2a08ac..000000000 --- a/libc/arch-x86/syscalls/recvmsg.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvmsg) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $17, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(recvmsg) diff --git a/libc/arch-x86/syscalls/removexattr.S b/libc/arch-x86/syscalls/removexattr.S deleted file mode 100644 index ab7891eea..000000000 --- a/libc/arch-x86/syscalls/removexattr.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(removexattr) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_removexattr, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(removexattr) diff --git a/libc/arch-x86/syscalls/renameat.S b/libc/arch-x86/syscalls/renameat.S deleted file mode 100644 index 40caaafd3..000000000 --- a/libc/arch-x86/syscalls/renameat.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(renameat) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_renameat, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(renameat) diff --git a/libc/arch-x86/syscalls/sched_get_priority_max.S b/libc/arch-x86/syscalls/sched_get_priority_max.S deleted file mode 100644 index 637c9ddf6..000000000 --- a/libc/arch-x86/syscalls/sched_get_priority_max.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_get_priority_max) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_sched_get_priority_max, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(sched_get_priority_max) diff --git a/libc/arch-x86/syscalls/sched_get_priority_min.S b/libc/arch-x86/syscalls/sched_get_priority_min.S deleted file mode 100644 index c38a3aaff..000000000 --- a/libc/arch-x86/syscalls/sched_get_priority_min.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_get_priority_min) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_sched_get_priority_min, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(sched_get_priority_min) diff --git a/libc/arch-x86/syscalls/sched_getparam.S b/libc/arch-x86/syscalls/sched_getparam.S deleted file mode 100644 index 09901bd8e..000000000 --- a/libc/arch-x86/syscalls/sched_getparam.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_getparam) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_sched_getparam, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(sched_getparam) diff --git a/libc/arch-x86/syscalls/sched_getscheduler.S b/libc/arch-x86/syscalls/sched_getscheduler.S deleted file mode 100644 index adc402307..000000000 --- a/libc/arch-x86/syscalls/sched_getscheduler.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_getscheduler) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_sched_getscheduler, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(sched_getscheduler) diff --git a/libc/arch-x86/syscalls/sched_rr_get_interval.S b/libc/arch-x86/syscalls/sched_rr_get_interval.S deleted file mode 100644 index 818f62e9b..000000000 --- a/libc/arch-x86/syscalls/sched_rr_get_interval.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_rr_get_interval) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_sched_rr_get_interval, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(sched_rr_get_interval) diff --git a/libc/arch-x86/syscalls/sched_setaffinity.S b/libc/arch-x86/syscalls/sched_setaffinity.S deleted file mode 100644 index b06d778e0..000000000 --- a/libc/arch-x86/syscalls/sched_setaffinity.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setaffinity) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_sched_setaffinity, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(sched_setaffinity) diff --git a/libc/arch-x86/syscalls/sched_setparam.S b/libc/arch-x86/syscalls/sched_setparam.S deleted file mode 100644 index dba5bc29e..000000000 --- a/libc/arch-x86/syscalls/sched_setparam.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setparam) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_sched_setparam, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(sched_setparam) diff --git a/libc/arch-x86/syscalls/sched_setscheduler.S b/libc/arch-x86/syscalls/sched_setscheduler.S deleted file mode 100644 index 466a42516..000000000 --- a/libc/arch-x86/syscalls/sched_setscheduler.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setscheduler) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_sched_setscheduler, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(sched_setscheduler) diff --git a/libc/arch-x86/syscalls/sched_yield.S b/libc/arch-x86/syscalls/sched_yield.S deleted file mode 100644 index b17b14e3b..000000000 --- a/libc/arch-x86/syscalls/sched_yield.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_yield) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_sched_yield, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(sched_yield) diff --git a/libc/arch-x86/syscalls/sendfile.S b/libc/arch-x86/syscalls/sendfile.S deleted file mode 100644 index e091706d0..000000000 --- a/libc/arch-x86/syscalls/sendfile.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendfile) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_sendfile, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(sendfile) diff --git a/libc/arch-x86/syscalls/sendfile64.S b/libc/arch-x86/syscalls/sendfile64.S deleted file mode 100644 index 317c4f429..000000000 --- a/libc/arch-x86/syscalls/sendfile64.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendfile64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_sendfile64, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(sendfile64) diff --git a/libc/arch-x86/syscalls/sendmmsg.S b/libc/arch-x86/syscalls/sendmmsg.S deleted file mode 100644 index c0097f815..000000000 --- a/libc/arch-x86/syscalls/sendmmsg.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendmmsg) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $20, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(sendmmsg) diff --git a/libc/arch-x86/syscalls/sendmsg.S b/libc/arch-x86/syscalls/sendmsg.S deleted file mode 100644 index 775ebeef3..000000000 --- a/libc/arch-x86/syscalls/sendmsg.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendmsg) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $16, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(sendmsg) diff --git a/libc/arch-x86/syscalls/sendto.S b/libc/arch-x86/syscalls/sendto.S deleted file mode 100644 index 2df5e4f87..000000000 --- a/libc/arch-x86/syscalls/sendto.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendto) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $11, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(sendto) diff --git a/libc/arch-x86/syscalls/setdomainname.S b/libc/arch-x86/syscalls/setdomainname.S deleted file mode 100644 index 8b6afe24a..000000000 --- a/libc/arch-x86/syscalls/setdomainname.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setdomainname) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_setdomainname, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(setdomainname) diff --git a/libc/arch-x86/syscalls/setfsgid.S b/libc/arch-x86/syscalls/setfsgid.S deleted file mode 100644 index af4ef8952..000000000 --- a/libc/arch-x86/syscalls/setfsgid.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setfsgid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_setfsgid, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(setfsgid) diff --git a/libc/arch-x86/syscalls/setfsuid.S b/libc/arch-x86/syscalls/setfsuid.S deleted file mode 100644 index 8001e4252..000000000 --- a/libc/arch-x86/syscalls/setfsuid.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setfsuid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_setfsuid, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(setfsuid) diff --git a/libc/arch-x86/syscalls/setgid.S b/libc/arch-x86/syscalls/setgid.S deleted file mode 100644 index c0ddec44f..000000000 --- a/libc/arch-x86/syscalls/setgid.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setgid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_setgid32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(setgid) diff --git a/libc/arch-x86/syscalls/setgroups.S b/libc/arch-x86/syscalls/setgroups.S deleted file mode 100644 index 7bd3bfcd1..000000000 --- a/libc/arch-x86/syscalls/setgroups.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setgroups) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_setgroups32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(setgroups) diff --git a/libc/arch-x86/syscalls/sethostname.S b/libc/arch-x86/syscalls/sethostname.S deleted file mode 100644 index 26ff1e787..000000000 --- a/libc/arch-x86/syscalls/sethostname.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sethostname) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_sethostname, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(sethostname) diff --git a/libc/arch-x86/syscalls/setitimer.S b/libc/arch-x86/syscalls/setitimer.S deleted file mode 100644 index 063847bd6..000000000 --- a/libc/arch-x86/syscalls/setitimer.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setitimer) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_setitimer, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(setitimer) diff --git a/libc/arch-x86/syscalls/setns.S b/libc/arch-x86/syscalls/setns.S deleted file mode 100644 index 28d838e4f..000000000 --- a/libc/arch-x86/syscalls/setns.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setns) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_setns, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(setns) diff --git a/libc/arch-x86/syscalls/setpgid.S b/libc/arch-x86/syscalls/setpgid.S deleted file mode 100644 index c5d0d2738..000000000 --- a/libc/arch-x86/syscalls/setpgid.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setpgid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_setpgid, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(setpgid) diff --git a/libc/arch-x86/syscalls/setpriority.S b/libc/arch-x86/syscalls/setpriority.S deleted file mode 100644 index 17c81c6fd..000000000 --- a/libc/arch-x86/syscalls/setpriority.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setpriority) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_setpriority, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(setpriority) diff --git a/libc/arch-x86/syscalls/setregid.S b/libc/arch-x86/syscalls/setregid.S deleted file mode 100644 index dd8101a02..000000000 --- a/libc/arch-x86/syscalls/setregid.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setregid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_setregid32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(setregid) diff --git a/libc/arch-x86/syscalls/setresgid.S b/libc/arch-x86/syscalls/setresgid.S deleted file mode 100644 index 6f6de5a00..000000000 --- a/libc/arch-x86/syscalls/setresgid.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setresgid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_setresgid32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(setresgid) diff --git a/libc/arch-x86/syscalls/setresuid.S b/libc/arch-x86/syscalls/setresuid.S deleted file mode 100644 index ab0059c2e..000000000 --- a/libc/arch-x86/syscalls/setresuid.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setresuid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_setresuid32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(setresuid) diff --git a/libc/arch-x86/syscalls/setreuid.S b/libc/arch-x86/syscalls/setreuid.S deleted file mode 100644 index 7fda62e9a..000000000 --- a/libc/arch-x86/syscalls/setreuid.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setreuid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_setreuid32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(setreuid) diff --git a/libc/arch-x86/syscalls/setrlimit.S b/libc/arch-x86/syscalls/setrlimit.S deleted file mode 100644 index 595633eac..000000000 --- a/libc/arch-x86/syscalls/setrlimit.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setrlimit) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_setrlimit, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(setrlimit) diff --git a/libc/arch-x86/syscalls/setsid.S b/libc/arch-x86/syscalls/setsid.S deleted file mode 100644 index 80ad8a98b..000000000 --- a/libc/arch-x86/syscalls/setsid.S +++ /dev/null @@ -1,24 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setsid) - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - movl $__NR_setsid, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - ret -END(setsid) diff --git a/libc/arch-x86/syscalls/setsockopt.S b/libc/arch-x86/syscalls/setsockopt.S deleted file mode 100644 index bca34e188..000000000 --- a/libc/arch-x86/syscalls/setsockopt.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setsockopt) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $14, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(setsockopt) diff --git a/libc/arch-x86/syscalls/settimeofday.S b/libc/arch-x86/syscalls/settimeofday.S deleted file mode 100644 index 31437d0d8..000000000 --- a/libc/arch-x86/syscalls/settimeofday.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(settimeofday) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_settimeofday, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(settimeofday) diff --git a/libc/arch-x86/syscalls/setuid.S b/libc/arch-x86/syscalls/setuid.S deleted file mode 100644 index 2461182ab..000000000 --- a/libc/arch-x86/syscalls/setuid.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setuid) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_setuid32, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(setuid) diff --git a/libc/arch-x86/syscalls/setxattr.S b/libc/arch-x86/syscalls/setxattr.S deleted file mode 100644 index 787891e78..000000000 --- a/libc/arch-x86/syscalls/setxattr.S +++ /dev/null @@ -1,49 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setxattr) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 28(%esp), %ebx - mov 32(%esp), %ecx - mov 36(%esp), %edx - mov 40(%esp), %esi - mov 44(%esp), %edi - movl $__NR_setxattr, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(setxattr) diff --git a/libc/arch-x86/syscalls/shutdown.S b/libc/arch-x86/syscalls/shutdown.S deleted file mode 100644 index 46e5c1855..000000000 --- a/libc/arch-x86/syscalls/shutdown.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(shutdown) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $13, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(shutdown) diff --git a/libc/arch-x86/syscalls/sigaltstack.S b/libc/arch-x86/syscalls/sigaltstack.S deleted file mode 100644 index 90eae16be..000000000 --- a/libc/arch-x86/syscalls/sigaltstack.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sigaltstack) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_sigaltstack, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(sigaltstack) diff --git a/libc/arch-x86/syscalls/socketpair.S b/libc/arch-x86/syscalls/socketpair.S deleted file mode 100644 index c9c759574..000000000 --- a/libc/arch-x86/syscalls/socketpair.S +++ /dev/null @@ -1,35 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(socketpair) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov $8, %ebx - mov %esp, %ecx - addl $16, %ecx - movl $__NR_socketcall, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(socketpair) diff --git a/libc/arch-x86/syscalls/splice.S b/libc/arch-x86/syscalls/splice.S deleted file mode 100644 index 2d82a3d83..000000000 --- a/libc/arch-x86/syscalls/splice.S +++ /dev/null @@ -1,54 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(splice) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - pushl %edi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edi, 0 - pushl %ebp - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ebp, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 32(%esp), %ebx - mov 36(%esp), %ecx - mov 40(%esp), %edx - mov 44(%esp), %esi - mov 48(%esp), %edi - mov 52(%esp), %ebp - movl $__NR_splice, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebp - popl %edi - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(splice) diff --git a/libc/arch-x86/syscalls/swapoff.S b/libc/arch-x86/syscalls/swapoff.S deleted file mode 100644 index d10a748c6..000000000 --- a/libc/arch-x86/syscalls/swapoff.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(swapoff) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_swapoff, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(swapoff) diff --git a/libc/arch-x86/syscalls/swapon.S b/libc/arch-x86/syscalls/swapon.S deleted file mode 100644 index dc7db646a..000000000 --- a/libc/arch-x86/syscalls/swapon.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(swapon) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_swapon, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(swapon) diff --git a/libc/arch-x86/syscalls/symlinkat.S b/libc/arch-x86/syscalls/symlinkat.S deleted file mode 100644 index 51b1330e4..000000000 --- a/libc/arch-x86/syscalls/symlinkat.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(symlinkat) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_symlinkat, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(symlinkat) diff --git a/libc/arch-x86/syscalls/sync.S b/libc/arch-x86/syscalls/sync.S deleted file mode 100644 index c75e9f974..000000000 --- a/libc/arch-x86/syscalls/sync.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sync) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_sync, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(sync) diff --git a/libc/arch-x86/syscalls/syncfs.S b/libc/arch-x86/syscalls/syncfs.S deleted file mode 100644 index c08688a10..000000000 --- a/libc/arch-x86/syscalls/syncfs.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(syncfs) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_syncfs, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(syncfs) diff --git a/libc/arch-x86/syscalls/sysinfo.S b/libc/arch-x86/syscalls/sysinfo.S deleted file mode 100644 index a40d6641a..000000000 --- a/libc/arch-x86/syscalls/sysinfo.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sysinfo) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_sysinfo, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(sysinfo) diff --git a/libc/arch-x86/syscalls/tee.S b/libc/arch-x86/syscalls/tee.S deleted file mode 100644 index 693ad1ea8..000000000 --- a/libc/arch-x86/syscalls/tee.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(tee) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_tee, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(tee) diff --git a/libc/arch-x86/syscalls/tgkill.S b/libc/arch-x86/syscalls/tgkill.S deleted file mode 100644 index 5cce4d8ee..000000000 --- a/libc/arch-x86/syscalls/tgkill.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(tgkill) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_tgkill, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(tgkill) diff --git a/libc/arch-x86/syscalls/timerfd_create.S b/libc/arch-x86/syscalls/timerfd_create.S deleted file mode 100644 index 335b7a6d9..000000000 --- a/libc/arch-x86/syscalls/timerfd_create.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_create) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_timerfd_create, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(timerfd_create) diff --git a/libc/arch-x86/syscalls/timerfd_gettime.S b/libc/arch-x86/syscalls/timerfd_gettime.S deleted file mode 100644 index 9dc1a2fbd..000000000 --- a/libc/arch-x86/syscalls/timerfd_gettime.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_gettime) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_timerfd_gettime, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(timerfd_gettime) diff --git a/libc/arch-x86/syscalls/timerfd_settime.S b/libc/arch-x86/syscalls/timerfd_settime.S deleted file mode 100644 index 477b5bb5f..000000000 --- a/libc/arch-x86/syscalls/timerfd_settime.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_settime) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_timerfd_settime, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(timerfd_settime) diff --git a/libc/arch-x86/syscalls/times.S b/libc/arch-x86/syscalls/times.S deleted file mode 100644 index 14fe22105..000000000 --- a/libc/arch-x86/syscalls/times.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(times) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_times, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(times) diff --git a/libc/arch-x86/syscalls/truncate.S b/libc/arch-x86/syscalls/truncate.S deleted file mode 100644 index dd999421e..000000000 --- a/libc/arch-x86/syscalls/truncate.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(truncate) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_truncate, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(truncate) diff --git a/libc/arch-x86/syscalls/truncate64.S b/libc/arch-x86/syscalls/truncate64.S deleted file mode 100644 index 35e4037d2..000000000 --- a/libc/arch-x86/syscalls/truncate64.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(truncate64) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_truncate64, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(truncate64) diff --git a/libc/arch-x86/syscalls/umask.S b/libc/arch-x86/syscalls/umask.S deleted file mode 100644 index 3333fac20..000000000 --- a/libc/arch-x86/syscalls/umask.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(umask) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_umask, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(umask) diff --git a/libc/arch-x86/syscalls/umount2.S b/libc/arch-x86/syscalls/umount2.S deleted file mode 100644 index 48e1eb507..000000000 --- a/libc/arch-x86/syscalls/umount2.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(umount2) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 16(%esp), %ebx - mov 20(%esp), %ecx - movl $__NR_umount2, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(umount2) diff --git a/libc/arch-x86/syscalls/uname.S b/libc/arch-x86/syscalls/uname.S deleted file mode 100644 index 9eea2c1ea..000000000 --- a/libc/arch-x86/syscalls/uname.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(uname) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_uname, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(uname) diff --git a/libc/arch-x86/syscalls/unlinkat.S b/libc/arch-x86/syscalls/unlinkat.S deleted file mode 100644 index e039a340d..000000000 --- a/libc/arch-x86/syscalls/unlinkat.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(unlinkat) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_unlinkat, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(unlinkat) diff --git a/libc/arch-x86/syscalls/unshare.S b/libc/arch-x86/syscalls/unshare.S deleted file mode 100644 index ae68d7e3d..000000000 --- a/libc/arch-x86/syscalls/unshare.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(unshare) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 12(%esp), %ebx - movl $__NR_unshare, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ebx - ret -END(unshare) diff --git a/libc/arch-x86/syscalls/utimensat.S b/libc/arch-x86/syscalls/utimensat.S deleted file mode 100644 index 43eebc76f..000000000 --- a/libc/arch-x86/syscalls/utimensat.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(utimensat) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_utimensat, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(utimensat) diff --git a/libc/arch-x86/syscalls/vmsplice.S b/libc/arch-x86/syscalls/vmsplice.S deleted file mode 100644 index 195b0bfd8..000000000 --- a/libc/arch-x86/syscalls/vmsplice.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(vmsplice) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_vmsplice, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(vmsplice) diff --git a/libc/arch-x86/syscalls/wait4.S b/libc/arch-x86/syscalls/wait4.S deleted file mode 100644 index 281d5f2c6..000000000 --- a/libc/arch-x86/syscalls/wait4.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(wait4) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - pushl %esi - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset esi, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 24(%esp), %ebx - mov 28(%esp), %ecx - mov 32(%esp), %edx - mov 36(%esp), %esi - movl $__NR_wait4, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %esi - popl %edx - popl %ecx - popl %ebx - ret -END(wait4) diff --git a/libc/arch-x86/syscalls/write.S b/libc/arch-x86/syscalls/write.S deleted file mode 100644 index e9e5f4e42..000000000 --- a/libc/arch-x86/syscalls/write.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(write) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_write, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(write) diff --git a/libc/arch-x86/syscalls/writev.S b/libc/arch-x86/syscalls/writev.S deleted file mode 100644 index 664990589..000000000 --- a/libc/arch-x86/syscalls/writev.S +++ /dev/null @@ -1,39 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(writev) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - - call __kernel_syscall - pushl %eax - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset eax, 0 - - mov 20(%esp), %ebx - mov 24(%esp), %ecx - mov 28(%esp), %edx - movl $__NR_writev, %eax - call *(%esp) - addl $4, %esp - - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(writev) diff --git a/libc/arch-x86_64/syscalls/___clock_nanosleep.S b/libc/arch-x86_64/syscalls/___clock_nanosleep.S deleted file mode 100644 index 3286eb274..000000000 --- a/libc/arch-x86_64/syscalls/___clock_nanosleep.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___clock_nanosleep) - movq %rcx, %r10 - movl $__NR_clock_nanosleep, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(___clock_nanosleep) -.hidden ___clock_nanosleep diff --git a/libc/arch-x86_64/syscalls/___close.S b/libc/arch-x86_64/syscalls/___close.S deleted file mode 100644 index 8607f0574..000000000 --- a/libc/arch-x86_64/syscalls/___close.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___close) - movl $__NR_close, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(___close) -.hidden ___close diff --git a/libc/arch-x86_64/syscalls/___faccessat.S b/libc/arch-x86_64/syscalls/___faccessat.S deleted file mode 100644 index e8fd3f585..000000000 --- a/libc/arch-x86_64/syscalls/___faccessat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___faccessat) - movl $__NR_faccessat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(___faccessat) -.hidden ___faccessat diff --git a/libc/arch-x86_64/syscalls/___fchmod.S b/libc/arch-x86_64/syscalls/___fchmod.S deleted file mode 100644 index 7bccbefb4..000000000 --- a/libc/arch-x86_64/syscalls/___fchmod.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fchmod) - movl $__NR_fchmod, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(___fchmod) -.hidden ___fchmod diff --git a/libc/arch-x86_64/syscalls/___fchmodat.S b/libc/arch-x86_64/syscalls/___fchmodat.S deleted file mode 100644 index 483ec7d50..000000000 --- a/libc/arch-x86_64/syscalls/___fchmodat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fchmodat) - movl $__NR_fchmodat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(___fchmodat) -.hidden ___fchmodat diff --git a/libc/arch-x86_64/syscalls/___fgetxattr.S b/libc/arch-x86_64/syscalls/___fgetxattr.S deleted file mode 100644 index 302fd77fb..000000000 --- a/libc/arch-x86_64/syscalls/___fgetxattr.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fgetxattr) - movq %rcx, %r10 - movl $__NR_fgetxattr, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(___fgetxattr) -.hidden ___fgetxattr diff --git a/libc/arch-x86_64/syscalls/___flistxattr.S b/libc/arch-x86_64/syscalls/___flistxattr.S deleted file mode 100644 index b4695cc90..000000000 --- a/libc/arch-x86_64/syscalls/___flistxattr.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___flistxattr) - movl $__NR_flistxattr, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(___flistxattr) -.hidden ___flistxattr diff --git a/libc/arch-x86_64/syscalls/___fsetxattr.S b/libc/arch-x86_64/syscalls/___fsetxattr.S deleted file mode 100644 index 125ef2065..000000000 --- a/libc/arch-x86_64/syscalls/___fsetxattr.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___fsetxattr) - movq %rcx, %r10 - movl $__NR_fsetxattr, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(___fsetxattr) -.hidden ___fsetxattr diff --git a/libc/arch-x86_64/syscalls/___mremap.S b/libc/arch-x86_64/syscalls/___mremap.S deleted file mode 100644 index cc6dee9c0..000000000 --- a/libc/arch-x86_64/syscalls/___mremap.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___mremap) - movq %rcx, %r10 - movl $__NR_mremap, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(___mremap) -.hidden ___mremap diff --git a/libc/arch-x86_64/syscalls/___rt_sigqueueinfo.S b/libc/arch-x86_64/syscalls/___rt_sigqueueinfo.S deleted file mode 100644 index 8c6b30b94..000000000 --- a/libc/arch-x86_64/syscalls/___rt_sigqueueinfo.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(___rt_sigqueueinfo) - movl $__NR_rt_sigqueueinfo, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(___rt_sigqueueinfo) -.hidden ___rt_sigqueueinfo diff --git a/libc/arch-x86_64/syscalls/__accept4.S b/libc/arch-x86_64/syscalls/__accept4.S deleted file mode 100644 index aa5beba40..000000000 --- a/libc/arch-x86_64/syscalls/__accept4.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__accept4) - movq %rcx, %r10 - movl $__NR_accept4, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__accept4) -.hidden __accept4 diff --git a/libc/arch-x86_64/syscalls/__arch_prctl.S b/libc/arch-x86_64/syscalls/__arch_prctl.S deleted file mode 100644 index 0a604f432..000000000 --- a/libc/arch-x86_64/syscalls/__arch_prctl.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__arch_prctl) - movl $__NR_arch_prctl, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__arch_prctl) -.hidden __arch_prctl diff --git a/libc/arch-x86_64/syscalls/__brk.S b/libc/arch-x86_64/syscalls/__brk.S deleted file mode 100644 index b6c0f2ff8..000000000 --- a/libc/arch-x86_64/syscalls/__brk.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__brk) - movl $__NR_brk, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__brk) -.hidden __brk diff --git a/libc/arch-x86_64/syscalls/__clock_getres.S b/libc/arch-x86_64/syscalls/__clock_getres.S deleted file mode 100644 index aff974e85..000000000 --- a/libc/arch-x86_64/syscalls/__clock_getres.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__clock_getres) - movl $__NR_clock_getres, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__clock_getres) -.hidden __clock_getres diff --git a/libc/arch-x86_64/syscalls/__clock_gettime.S b/libc/arch-x86_64/syscalls/__clock_gettime.S deleted file mode 100644 index ccacdb22d..000000000 --- a/libc/arch-x86_64/syscalls/__clock_gettime.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__clock_gettime) - movl $__NR_clock_gettime, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__clock_gettime) -.hidden __clock_gettime diff --git a/libc/arch-x86_64/syscalls/__connect.S b/libc/arch-x86_64/syscalls/__connect.S deleted file mode 100644 index d7531ad69..000000000 --- a/libc/arch-x86_64/syscalls/__connect.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__connect) - movl $__NR_connect, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__connect) -.hidden __connect diff --git a/libc/arch-x86_64/syscalls/__epoll_pwait.S b/libc/arch-x86_64/syscalls/__epoll_pwait.S deleted file mode 100644 index b486c4abc..000000000 --- a/libc/arch-x86_64/syscalls/__epoll_pwait.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__epoll_pwait) - movq %rcx, %r10 - movl $__NR_epoll_pwait, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__epoll_pwait) -.hidden __epoll_pwait diff --git a/libc/arch-x86_64/syscalls/__exit.S b/libc/arch-x86_64/syscalls/__exit.S deleted file mode 100644 index 99b11fc83..000000000 --- a/libc/arch-x86_64/syscalls/__exit.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__exit) - movl $__NR_exit, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__exit) -.hidden __exit diff --git a/libc/arch-x86_64/syscalls/__fadvise64.S b/libc/arch-x86_64/syscalls/__fadvise64.S deleted file mode 100644 index 8810d88d1..000000000 --- a/libc/arch-x86_64/syscalls/__fadvise64.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fadvise64) - movq %rcx, %r10 - movl $__NR_fadvise64, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__fadvise64) -.hidden __fadvise64 diff --git a/libc/arch-x86_64/syscalls/__fstatfs.S b/libc/arch-x86_64/syscalls/__fstatfs.S deleted file mode 100644 index b50e3553f..000000000 --- a/libc/arch-x86_64/syscalls/__fstatfs.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__fstatfs) - movl $__NR_fstatfs, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__fstatfs) -.hidden __fstatfs diff --git a/libc/arch-x86_64/syscalls/__getcpu.S b/libc/arch-x86_64/syscalls/__getcpu.S deleted file mode 100644 index 3903e9f3c..000000000 --- a/libc/arch-x86_64/syscalls/__getcpu.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getcpu) - movl $__NR_getcpu, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__getcpu) -.hidden __getcpu diff --git a/libc/arch-x86_64/syscalls/__getcwd.S b/libc/arch-x86_64/syscalls/__getcwd.S deleted file mode 100644 index d39c1d788..000000000 --- a/libc/arch-x86_64/syscalls/__getcwd.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getcwd) - movl $__NR_getcwd, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__getcwd) -.hidden __getcwd diff --git a/libc/arch-x86_64/syscalls/__getdents64.S b/libc/arch-x86_64/syscalls/__getdents64.S deleted file mode 100644 index b5eb94313..000000000 --- a/libc/arch-x86_64/syscalls/__getdents64.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getdents64) - movl $__NR_getdents64, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__getdents64) -.hidden __getdents64 diff --git a/libc/arch-x86_64/syscalls/__getpid.S b/libc/arch-x86_64/syscalls/__getpid.S deleted file mode 100644 index ec4316eeb..000000000 --- a/libc/arch-x86_64/syscalls/__getpid.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getpid) - movl $__NR_getpid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__getpid) -.hidden __getpid diff --git a/libc/arch-x86_64/syscalls/__getpriority.S b/libc/arch-x86_64/syscalls/__getpriority.S deleted file mode 100644 index 7c618a14b..000000000 --- a/libc/arch-x86_64/syscalls/__getpriority.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__getpriority) - movl $__NR_getpriority, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__getpriority) -.hidden __getpriority diff --git a/libc/arch-x86_64/syscalls/__gettimeofday.S b/libc/arch-x86_64/syscalls/__gettimeofday.S deleted file mode 100644 index 69b9b6ec7..000000000 --- a/libc/arch-x86_64/syscalls/__gettimeofday.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__gettimeofday) - movl $__NR_gettimeofday, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__gettimeofday) -.hidden __gettimeofday diff --git a/libc/arch-x86_64/syscalls/__ioctl.S b/libc/arch-x86_64/syscalls/__ioctl.S deleted file mode 100644 index 0eb34f048..000000000 --- a/libc/arch-x86_64/syscalls/__ioctl.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ioctl) - movl $__NR_ioctl, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__ioctl) -.hidden __ioctl diff --git a/libc/arch-x86_64/syscalls/__openat.S b/libc/arch-x86_64/syscalls/__openat.S deleted file mode 100644 index 14f53ca97..000000000 --- a/libc/arch-x86_64/syscalls/__openat.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__openat) - movq %rcx, %r10 - movl $__NR_openat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__openat) -.hidden __openat diff --git a/libc/arch-x86_64/syscalls/__ppoll.S b/libc/arch-x86_64/syscalls/__ppoll.S deleted file mode 100644 index 82b97dda3..000000000 --- a/libc/arch-x86_64/syscalls/__ppoll.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ppoll) - movq %rcx, %r10 - movl $__NR_ppoll, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__ppoll) -.hidden __ppoll diff --git a/libc/arch-x86_64/syscalls/__pselect6.S b/libc/arch-x86_64/syscalls/__pselect6.S deleted file mode 100644 index c11d8149b..000000000 --- a/libc/arch-x86_64/syscalls/__pselect6.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__pselect6) - movq %rcx, %r10 - movl $__NR_pselect6, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__pselect6) -.hidden __pselect6 diff --git a/libc/arch-x86_64/syscalls/__ptrace.S b/libc/arch-x86_64/syscalls/__ptrace.S deleted file mode 100644 index 729e00767..000000000 --- a/libc/arch-x86_64/syscalls/__ptrace.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__ptrace) - movq %rcx, %r10 - movl $__NR_ptrace, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__ptrace) -.hidden __ptrace diff --git a/libc/arch-x86_64/syscalls/__reboot.S b/libc/arch-x86_64/syscalls/__reboot.S deleted file mode 100644 index b462dc709..000000000 --- a/libc/arch-x86_64/syscalls/__reboot.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__reboot) - movq %rcx, %r10 - movl $__NR_reboot, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__reboot) -.hidden __reboot diff --git a/libc/arch-x86_64/syscalls/__rt_sigaction.S b/libc/arch-x86_64/syscalls/__rt_sigaction.S deleted file mode 100644 index 17c599597..000000000 --- a/libc/arch-x86_64/syscalls/__rt_sigaction.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigaction) - movq %rcx, %r10 - movl $__NR_rt_sigaction, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__rt_sigaction) -.hidden __rt_sigaction diff --git a/libc/arch-x86_64/syscalls/__rt_sigpending.S b/libc/arch-x86_64/syscalls/__rt_sigpending.S deleted file mode 100644 index b5b81bbbb..000000000 --- a/libc/arch-x86_64/syscalls/__rt_sigpending.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigpending) - movl $__NR_rt_sigpending, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__rt_sigpending) -.hidden __rt_sigpending diff --git a/libc/arch-x86_64/syscalls/__rt_sigprocmask.S b/libc/arch-x86_64/syscalls/__rt_sigprocmask.S deleted file mode 100644 index e8b3f2a4e..000000000 --- a/libc/arch-x86_64/syscalls/__rt_sigprocmask.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigprocmask) - movq %rcx, %r10 - movl $__NR_rt_sigprocmask, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__rt_sigprocmask) -.hidden __rt_sigprocmask diff --git a/libc/arch-x86_64/syscalls/__rt_sigsuspend.S b/libc/arch-x86_64/syscalls/__rt_sigsuspend.S deleted file mode 100644 index f6366a22f..000000000 --- a/libc/arch-x86_64/syscalls/__rt_sigsuspend.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigsuspend) - movl $__NR_rt_sigsuspend, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__rt_sigsuspend) -.hidden __rt_sigsuspend diff --git a/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S b/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S deleted file mode 100644 index 9bcb81155..000000000 --- a/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__rt_sigtimedwait) - movq %rcx, %r10 - movl $__NR_rt_sigtimedwait, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__rt_sigtimedwait) -.hidden __rt_sigtimedwait diff --git a/libc/arch-x86_64/syscalls/__sched_getaffinity.S b/libc/arch-x86_64/syscalls/__sched_getaffinity.S deleted file mode 100644 index 0ca6818aa..000000000 --- a/libc/arch-x86_64/syscalls/__sched_getaffinity.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sched_getaffinity) - movl $__NR_sched_getaffinity, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__sched_getaffinity) -.hidden __sched_getaffinity diff --git a/libc/arch-x86_64/syscalls/__set_tid_address.S b/libc/arch-x86_64/syscalls/__set_tid_address.S deleted file mode 100644 index 3dad6600e..000000000 --- a/libc/arch-x86_64/syscalls/__set_tid_address.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__set_tid_address) - movl $__NR_set_tid_address, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__set_tid_address) -.hidden __set_tid_address diff --git a/libc/arch-x86_64/syscalls/__signalfd4.S b/libc/arch-x86_64/syscalls/__signalfd4.S deleted file mode 100644 index b44bfe5b8..000000000 --- a/libc/arch-x86_64/syscalls/__signalfd4.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__signalfd4) - movq %rcx, %r10 - movl $__NR_signalfd4, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__signalfd4) -.hidden __signalfd4 diff --git a/libc/arch-x86_64/syscalls/__socket.S b/libc/arch-x86_64/syscalls/__socket.S deleted file mode 100644 index 0563d2ffb..000000000 --- a/libc/arch-x86_64/syscalls/__socket.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__socket) - movl $__NR_socket, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__socket) -.hidden __socket diff --git a/libc/arch-x86_64/syscalls/__statfs.S b/libc/arch-x86_64/syscalls/__statfs.S deleted file mode 100644 index 607a809db..000000000 --- a/libc/arch-x86_64/syscalls/__statfs.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__statfs) - movl $__NR_statfs, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__statfs) -.hidden __statfs diff --git a/libc/arch-x86_64/syscalls/__sync_file_range.S b/libc/arch-x86_64/syscalls/__sync_file_range.S deleted file mode 100644 index 6a2c43068..000000000 --- a/libc/arch-x86_64/syscalls/__sync_file_range.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__sync_file_range) - movq %rcx, %r10 - movl $__NR_sync_file_range, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__sync_file_range) -.hidden __sync_file_range diff --git a/libc/arch-x86_64/syscalls/__timer_create.S b/libc/arch-x86_64/syscalls/__timer_create.S deleted file mode 100644 index cb955a46e..000000000 --- a/libc/arch-x86_64/syscalls/__timer_create.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_create) - movl $__NR_timer_create, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__timer_create) -.hidden __timer_create diff --git a/libc/arch-x86_64/syscalls/__timer_delete.S b/libc/arch-x86_64/syscalls/__timer_delete.S deleted file mode 100644 index 7abc7d8cb..000000000 --- a/libc/arch-x86_64/syscalls/__timer_delete.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_delete) - movl $__NR_timer_delete, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__timer_delete) -.hidden __timer_delete diff --git a/libc/arch-x86_64/syscalls/__timer_getoverrun.S b/libc/arch-x86_64/syscalls/__timer_getoverrun.S deleted file mode 100644 index f2a0e24b4..000000000 --- a/libc/arch-x86_64/syscalls/__timer_getoverrun.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_getoverrun) - movl $__NR_timer_getoverrun, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__timer_getoverrun) -.hidden __timer_getoverrun diff --git a/libc/arch-x86_64/syscalls/__timer_gettime.S b/libc/arch-x86_64/syscalls/__timer_gettime.S deleted file mode 100644 index 62c2b4719..000000000 --- a/libc/arch-x86_64/syscalls/__timer_gettime.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_gettime) - movl $__NR_timer_gettime, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__timer_gettime) -.hidden __timer_gettime diff --git a/libc/arch-x86_64/syscalls/__timer_settime.S b/libc/arch-x86_64/syscalls/__timer_settime.S deleted file mode 100644 index 225fa8e37..000000000 --- a/libc/arch-x86_64/syscalls/__timer_settime.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__timer_settime) - movq %rcx, %r10 - movl $__NR_timer_settime, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__timer_settime) -.hidden __timer_settime diff --git a/libc/arch-x86_64/syscalls/__waitid.S b/libc/arch-x86_64/syscalls/__waitid.S deleted file mode 100644 index ff8a3c519..000000000 --- a/libc/arch-x86_64/syscalls/__waitid.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(__waitid) - movq %rcx, %r10 - movl $__NR_waitid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(__waitid) -.hidden __waitid diff --git a/libc/arch-x86_64/syscalls/_exit.S b/libc/arch-x86_64/syscalls/_exit.S deleted file mode 100644 index 1ab4d4f6d..000000000 --- a/libc/arch-x86_64/syscalls/_exit.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(_exit) - movl $__NR_exit_group, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(_exit) - -ALIAS_SYMBOL(_Exit, _exit) diff --git a/libc/arch-x86_64/syscalls/acct.S b/libc/arch-x86_64/syscalls/acct.S deleted file mode 100644 index a73970787..000000000 --- a/libc/arch-x86_64/syscalls/acct.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(acct) - movl $__NR_acct, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(acct) diff --git a/libc/arch-x86_64/syscalls/adjtimex.S b/libc/arch-x86_64/syscalls/adjtimex.S deleted file mode 100644 index 292b9f36e..000000000 --- a/libc/arch-x86_64/syscalls/adjtimex.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(adjtimex) - movl $__NR_adjtimex, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(adjtimex) diff --git a/libc/arch-x86_64/syscalls/bind.S b/libc/arch-x86_64/syscalls/bind.S deleted file mode 100644 index e5bc263c1..000000000 --- a/libc/arch-x86_64/syscalls/bind.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(bind) - movl $__NR_bind, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(bind) diff --git a/libc/arch-x86_64/syscalls/capget.S b/libc/arch-x86_64/syscalls/capget.S deleted file mode 100644 index 9ce158362..000000000 --- a/libc/arch-x86_64/syscalls/capget.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(capget) - movl $__NR_capget, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(capget) diff --git a/libc/arch-x86_64/syscalls/capset.S b/libc/arch-x86_64/syscalls/capset.S deleted file mode 100644 index 27767565e..000000000 --- a/libc/arch-x86_64/syscalls/capset.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(capset) - movl $__NR_capset, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(capset) diff --git a/libc/arch-x86_64/syscalls/chdir.S b/libc/arch-x86_64/syscalls/chdir.S deleted file mode 100644 index 269905c6a..000000000 --- a/libc/arch-x86_64/syscalls/chdir.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(chdir) - movl $__NR_chdir, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(chdir) diff --git a/libc/arch-x86_64/syscalls/chroot.S b/libc/arch-x86_64/syscalls/chroot.S deleted file mode 100644 index 713b1b370..000000000 --- a/libc/arch-x86_64/syscalls/chroot.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(chroot) - movl $__NR_chroot, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(chroot) diff --git a/libc/arch-x86_64/syscalls/clock_adjtime.S b/libc/arch-x86_64/syscalls/clock_adjtime.S deleted file mode 100644 index 0601930a5..000000000 --- a/libc/arch-x86_64/syscalls/clock_adjtime.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(clock_adjtime) - movl $__NR_clock_adjtime, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(clock_adjtime) diff --git a/libc/arch-x86_64/syscalls/clock_settime.S b/libc/arch-x86_64/syscalls/clock_settime.S deleted file mode 100644 index 26070a467..000000000 --- a/libc/arch-x86_64/syscalls/clock_settime.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(clock_settime) - movl $__NR_clock_settime, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(clock_settime) diff --git a/libc/arch-x86_64/syscalls/delete_module.S b/libc/arch-x86_64/syscalls/delete_module.S deleted file mode 100644 index 63f17adbd..000000000 --- a/libc/arch-x86_64/syscalls/delete_module.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(delete_module) - movl $__NR_delete_module, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(delete_module) diff --git a/libc/arch-x86_64/syscalls/dup.S b/libc/arch-x86_64/syscalls/dup.S deleted file mode 100644 index 5016f7708..000000000 --- a/libc/arch-x86_64/syscalls/dup.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(dup) - movl $__NR_dup, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(dup) diff --git a/libc/arch-x86_64/syscalls/dup3.S b/libc/arch-x86_64/syscalls/dup3.S deleted file mode 100644 index 9abd1686a..000000000 --- a/libc/arch-x86_64/syscalls/dup3.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(dup3) - movl $__NR_dup3, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(dup3) diff --git a/libc/arch-x86_64/syscalls/epoll_create1.S b/libc/arch-x86_64/syscalls/epoll_create1.S deleted file mode 100644 index d1e4bfce5..000000000 --- a/libc/arch-x86_64/syscalls/epoll_create1.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(epoll_create1) - movl $__NR_epoll_create1, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(epoll_create1) diff --git a/libc/arch-x86_64/syscalls/epoll_ctl.S b/libc/arch-x86_64/syscalls/epoll_ctl.S deleted file mode 100644 index f429b962a..000000000 --- a/libc/arch-x86_64/syscalls/epoll_ctl.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(epoll_ctl) - movq %rcx, %r10 - movl $__NR_epoll_ctl, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(epoll_ctl) diff --git a/libc/arch-x86_64/syscalls/eventfd.S b/libc/arch-x86_64/syscalls/eventfd.S deleted file mode 100644 index dcc510595..000000000 --- a/libc/arch-x86_64/syscalls/eventfd.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(eventfd) - movl $__NR_eventfd2, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(eventfd) diff --git a/libc/arch-x86_64/syscalls/execve.S b/libc/arch-x86_64/syscalls/execve.S deleted file mode 100644 index 947baa49c..000000000 --- a/libc/arch-x86_64/syscalls/execve.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(execve) - movl $__NR_execve, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(execve) diff --git a/libc/arch-x86_64/syscalls/fallocate.S b/libc/arch-x86_64/syscalls/fallocate.S deleted file mode 100644 index f6f891b29..000000000 --- a/libc/arch-x86_64/syscalls/fallocate.S +++ /dev/null @@ -1,18 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fallocate) - movq %rcx, %r10 - movl $__NR_fallocate, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(fallocate) - -ALIAS_SYMBOL(fallocate64, fallocate) diff --git a/libc/arch-x86_64/syscalls/fchdir.S b/libc/arch-x86_64/syscalls/fchdir.S deleted file mode 100644 index d005c14bb..000000000 --- a/libc/arch-x86_64/syscalls/fchdir.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchdir) - movl $__NR_fchdir, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(fchdir) diff --git a/libc/arch-x86_64/syscalls/fchown.S b/libc/arch-x86_64/syscalls/fchown.S deleted file mode 100644 index d5bdc7192..000000000 --- a/libc/arch-x86_64/syscalls/fchown.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchown) - movl $__NR_fchown, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(fchown) diff --git a/libc/arch-x86_64/syscalls/fchownat.S b/libc/arch-x86_64/syscalls/fchownat.S deleted file mode 100644 index ff05e9efa..000000000 --- a/libc/arch-x86_64/syscalls/fchownat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fchownat) - movq %rcx, %r10 - movl $__NR_fchownat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(fchownat) diff --git a/libc/arch-x86_64/syscalls/fcntl.S b/libc/arch-x86_64/syscalls/fcntl.S deleted file mode 100644 index f28195b5f..000000000 --- a/libc/arch-x86_64/syscalls/fcntl.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fcntl) - movl $__NR_fcntl, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(fcntl) diff --git a/libc/arch-x86_64/syscalls/fdatasync.S b/libc/arch-x86_64/syscalls/fdatasync.S deleted file mode 100644 index 27239b95d..000000000 --- a/libc/arch-x86_64/syscalls/fdatasync.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fdatasync) - movl $__NR_fdatasync, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(fdatasync) diff --git a/libc/arch-x86_64/syscalls/flock.S b/libc/arch-x86_64/syscalls/flock.S deleted file mode 100644 index 1bc667858..000000000 --- a/libc/arch-x86_64/syscalls/flock.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(flock) - movl $__NR_flock, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(flock) diff --git a/libc/arch-x86_64/syscalls/fremovexattr.S b/libc/arch-x86_64/syscalls/fremovexattr.S deleted file mode 100644 index 517094c85..000000000 --- a/libc/arch-x86_64/syscalls/fremovexattr.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fremovexattr) - movl $__NR_fremovexattr, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(fremovexattr) diff --git a/libc/arch-x86_64/syscalls/fstat64.S b/libc/arch-x86_64/syscalls/fstat64.S deleted file mode 100644 index a0d4fa1c1..000000000 --- a/libc/arch-x86_64/syscalls/fstat64.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fstat64) - movl $__NR_fstat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(fstat64) - -ALIAS_SYMBOL(fstat, fstat64) diff --git a/libc/arch-x86_64/syscalls/fstatat64.S b/libc/arch-x86_64/syscalls/fstatat64.S deleted file mode 100644 index 1984d68d1..000000000 --- a/libc/arch-x86_64/syscalls/fstatat64.S +++ /dev/null @@ -1,18 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fstatat64) - movq %rcx, %r10 - movl $__NR_newfstatat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(fstatat64) - -ALIAS_SYMBOL(fstatat, fstatat64) diff --git a/libc/arch-x86_64/syscalls/fsync.S b/libc/arch-x86_64/syscalls/fsync.S deleted file mode 100644 index e7ec6da7f..000000000 --- a/libc/arch-x86_64/syscalls/fsync.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(fsync) - movl $__NR_fsync, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(fsync) diff --git a/libc/arch-x86_64/syscalls/ftruncate.S b/libc/arch-x86_64/syscalls/ftruncate.S deleted file mode 100644 index 791746849..000000000 --- a/libc/arch-x86_64/syscalls/ftruncate.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(ftruncate) - movl $__NR_ftruncate, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(ftruncate) - -ALIAS_SYMBOL(ftruncate64, ftruncate) diff --git a/libc/arch-x86_64/syscalls/getegid.S b/libc/arch-x86_64/syscalls/getegid.S deleted file mode 100644 index 84ba24081..000000000 --- a/libc/arch-x86_64/syscalls/getegid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getegid) - movl $__NR_getegid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getegid) diff --git a/libc/arch-x86_64/syscalls/geteuid.S b/libc/arch-x86_64/syscalls/geteuid.S deleted file mode 100644 index 18a991ab2..000000000 --- a/libc/arch-x86_64/syscalls/geteuid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(geteuid) - movl $__NR_geteuid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(geteuid) diff --git a/libc/arch-x86_64/syscalls/getgid.S b/libc/arch-x86_64/syscalls/getgid.S deleted file mode 100644 index 5e4b0efea..000000000 --- a/libc/arch-x86_64/syscalls/getgid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getgid) - movl $__NR_getgid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getgid) diff --git a/libc/arch-x86_64/syscalls/getgroups.S b/libc/arch-x86_64/syscalls/getgroups.S deleted file mode 100644 index b5dd81c31..000000000 --- a/libc/arch-x86_64/syscalls/getgroups.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getgroups) - movl $__NR_getgroups, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getgroups) diff --git a/libc/arch-x86_64/syscalls/getitimer.S b/libc/arch-x86_64/syscalls/getitimer.S deleted file mode 100644 index c4bb1202a..000000000 --- a/libc/arch-x86_64/syscalls/getitimer.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getitimer) - movl $__NR_getitimer, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getitimer) diff --git a/libc/arch-x86_64/syscalls/getpeername.S b/libc/arch-x86_64/syscalls/getpeername.S deleted file mode 100644 index 0b212be92..000000000 --- a/libc/arch-x86_64/syscalls/getpeername.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getpeername) - movl $__NR_getpeername, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getpeername) diff --git a/libc/arch-x86_64/syscalls/getpgid.S b/libc/arch-x86_64/syscalls/getpgid.S deleted file mode 100644 index d1b0e8bf9..000000000 --- a/libc/arch-x86_64/syscalls/getpgid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getpgid) - movl $__NR_getpgid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getpgid) diff --git a/libc/arch-x86_64/syscalls/getppid.S b/libc/arch-x86_64/syscalls/getppid.S deleted file mode 100644 index e1cfee024..000000000 --- a/libc/arch-x86_64/syscalls/getppid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getppid) - movl $__NR_getppid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getppid) diff --git a/libc/arch-x86_64/syscalls/getrandom.S b/libc/arch-x86_64/syscalls/getrandom.S deleted file mode 100644 index c5e44a966..000000000 --- a/libc/arch-x86_64/syscalls/getrandom.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrandom) - movl $__NR_getrandom, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getrandom) diff --git a/libc/arch-x86_64/syscalls/getresgid.S b/libc/arch-x86_64/syscalls/getresgid.S deleted file mode 100644 index 0b7ea7a74..000000000 --- a/libc/arch-x86_64/syscalls/getresgid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getresgid) - movl $__NR_getresgid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getresgid) diff --git a/libc/arch-x86_64/syscalls/getresuid.S b/libc/arch-x86_64/syscalls/getresuid.S deleted file mode 100644 index 0d7a05438..000000000 --- a/libc/arch-x86_64/syscalls/getresuid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getresuid) - movl $__NR_getresuid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getresuid) diff --git a/libc/arch-x86_64/syscalls/getrlimit.S b/libc/arch-x86_64/syscalls/getrlimit.S deleted file mode 100644 index 00ed08a20..000000000 --- a/libc/arch-x86_64/syscalls/getrlimit.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrlimit) - movl $__NR_getrlimit, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getrlimit) - -ALIAS_SYMBOL(getrlimit64, getrlimit) diff --git a/libc/arch-x86_64/syscalls/getrusage.S b/libc/arch-x86_64/syscalls/getrusage.S deleted file mode 100644 index eef7fb8b4..000000000 --- a/libc/arch-x86_64/syscalls/getrusage.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getrusage) - movl $__NR_getrusage, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getrusage) diff --git a/libc/arch-x86_64/syscalls/getsid.S b/libc/arch-x86_64/syscalls/getsid.S deleted file mode 100644 index 022f959dd..000000000 --- a/libc/arch-x86_64/syscalls/getsid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsid) - movl $__NR_getsid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getsid) diff --git a/libc/arch-x86_64/syscalls/getsockname.S b/libc/arch-x86_64/syscalls/getsockname.S deleted file mode 100644 index 36fdcf75d..000000000 --- a/libc/arch-x86_64/syscalls/getsockname.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsockname) - movl $__NR_getsockname, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getsockname) diff --git a/libc/arch-x86_64/syscalls/getsockopt.S b/libc/arch-x86_64/syscalls/getsockopt.S deleted file mode 100644 index c1e11e7ce..000000000 --- a/libc/arch-x86_64/syscalls/getsockopt.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getsockopt) - movq %rcx, %r10 - movl $__NR_getsockopt, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getsockopt) diff --git a/libc/arch-x86_64/syscalls/getuid.S b/libc/arch-x86_64/syscalls/getuid.S deleted file mode 100644 index 93cd0f831..000000000 --- a/libc/arch-x86_64/syscalls/getuid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getuid) - movl $__NR_getuid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getuid) diff --git a/libc/arch-x86_64/syscalls/getxattr.S b/libc/arch-x86_64/syscalls/getxattr.S deleted file mode 100644 index 01378b0a7..000000000 --- a/libc/arch-x86_64/syscalls/getxattr.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(getxattr) - movq %rcx, %r10 - movl $__NR_getxattr, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(getxattr) diff --git a/libc/arch-x86_64/syscalls/init_module.S b/libc/arch-x86_64/syscalls/init_module.S deleted file mode 100644 index c005de434..000000000 --- a/libc/arch-x86_64/syscalls/init_module.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(init_module) - movl $__NR_init_module, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(init_module) diff --git a/libc/arch-x86_64/syscalls/inotify_add_watch.S b/libc/arch-x86_64/syscalls/inotify_add_watch.S deleted file mode 100644 index edf2930ac..000000000 --- a/libc/arch-x86_64/syscalls/inotify_add_watch.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_add_watch) - movl $__NR_inotify_add_watch, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(inotify_add_watch) diff --git a/libc/arch-x86_64/syscalls/inotify_init1.S b/libc/arch-x86_64/syscalls/inotify_init1.S deleted file mode 100644 index b1580182f..000000000 --- a/libc/arch-x86_64/syscalls/inotify_init1.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_init1) - movl $__NR_inotify_init1, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(inotify_init1) diff --git a/libc/arch-x86_64/syscalls/inotify_rm_watch.S b/libc/arch-x86_64/syscalls/inotify_rm_watch.S deleted file mode 100644 index f2fc10e5a..000000000 --- a/libc/arch-x86_64/syscalls/inotify_rm_watch.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(inotify_rm_watch) - movl $__NR_inotify_rm_watch, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(inotify_rm_watch) diff --git a/libc/arch-x86_64/syscalls/kill.S b/libc/arch-x86_64/syscalls/kill.S deleted file mode 100644 index fe93f34e6..000000000 --- a/libc/arch-x86_64/syscalls/kill.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(kill) - movl $__NR_kill, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(kill) diff --git a/libc/arch-x86_64/syscalls/klogctl.S b/libc/arch-x86_64/syscalls/klogctl.S deleted file mode 100644 index fb2aca364..000000000 --- a/libc/arch-x86_64/syscalls/klogctl.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(klogctl) - movl $__NR_syslog, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(klogctl) diff --git a/libc/arch-x86_64/syscalls/lgetxattr.S b/libc/arch-x86_64/syscalls/lgetxattr.S deleted file mode 100644 index 36202a212..000000000 --- a/libc/arch-x86_64/syscalls/lgetxattr.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lgetxattr) - movq %rcx, %r10 - movl $__NR_lgetxattr, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(lgetxattr) diff --git a/libc/arch-x86_64/syscalls/linkat.S b/libc/arch-x86_64/syscalls/linkat.S deleted file mode 100644 index d195e19a4..000000000 --- a/libc/arch-x86_64/syscalls/linkat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(linkat) - movq %rcx, %r10 - movl $__NR_linkat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(linkat) diff --git a/libc/arch-x86_64/syscalls/listen.S b/libc/arch-x86_64/syscalls/listen.S deleted file mode 100644 index 756b629dc..000000000 --- a/libc/arch-x86_64/syscalls/listen.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(listen) - movl $__NR_listen, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(listen) diff --git a/libc/arch-x86_64/syscalls/listxattr.S b/libc/arch-x86_64/syscalls/listxattr.S deleted file mode 100644 index d0b2112bc..000000000 --- a/libc/arch-x86_64/syscalls/listxattr.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(listxattr) - movl $__NR_listxattr, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(listxattr) diff --git a/libc/arch-x86_64/syscalls/llistxattr.S b/libc/arch-x86_64/syscalls/llistxattr.S deleted file mode 100644 index 49fb9694c..000000000 --- a/libc/arch-x86_64/syscalls/llistxattr.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(llistxattr) - movl $__NR_llistxattr, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(llistxattr) diff --git a/libc/arch-x86_64/syscalls/lremovexattr.S b/libc/arch-x86_64/syscalls/lremovexattr.S deleted file mode 100644 index 1e1bc30de..000000000 --- a/libc/arch-x86_64/syscalls/lremovexattr.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lremovexattr) - movl $__NR_lremovexattr, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(lremovexattr) diff --git a/libc/arch-x86_64/syscalls/lseek.S b/libc/arch-x86_64/syscalls/lseek.S deleted file mode 100644 index 69d60c21e..000000000 --- a/libc/arch-x86_64/syscalls/lseek.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lseek) - movl $__NR_lseek, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(lseek) - -ALIAS_SYMBOL(lseek64, lseek) diff --git a/libc/arch-x86_64/syscalls/lsetxattr.S b/libc/arch-x86_64/syscalls/lsetxattr.S deleted file mode 100644 index 965ee0325..000000000 --- a/libc/arch-x86_64/syscalls/lsetxattr.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(lsetxattr) - movq %rcx, %r10 - movl $__NR_lsetxattr, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(lsetxattr) diff --git a/libc/arch-x86_64/syscalls/madvise.S b/libc/arch-x86_64/syscalls/madvise.S deleted file mode 100644 index 75d47f64f..000000000 --- a/libc/arch-x86_64/syscalls/madvise.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(madvise) - movl $__NR_madvise, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(madvise) diff --git a/libc/arch-x86_64/syscalls/mincore.S b/libc/arch-x86_64/syscalls/mincore.S deleted file mode 100644 index 2d8a28a9d..000000000 --- a/libc/arch-x86_64/syscalls/mincore.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mincore) - movl $__NR_mincore, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(mincore) diff --git a/libc/arch-x86_64/syscalls/mkdirat.S b/libc/arch-x86_64/syscalls/mkdirat.S deleted file mode 100644 index 8a7601334..000000000 --- a/libc/arch-x86_64/syscalls/mkdirat.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mkdirat) - movl $__NR_mkdirat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(mkdirat) diff --git a/libc/arch-x86_64/syscalls/mknodat.S b/libc/arch-x86_64/syscalls/mknodat.S deleted file mode 100644 index a8859d464..000000000 --- a/libc/arch-x86_64/syscalls/mknodat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mknodat) - movq %rcx, %r10 - movl $__NR_mknodat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(mknodat) diff --git a/libc/arch-x86_64/syscalls/mlock.S b/libc/arch-x86_64/syscalls/mlock.S deleted file mode 100644 index d34b3ae31..000000000 --- a/libc/arch-x86_64/syscalls/mlock.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mlock) - movl $__NR_mlock, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(mlock) diff --git a/libc/arch-x86_64/syscalls/mlockall.S b/libc/arch-x86_64/syscalls/mlockall.S deleted file mode 100644 index 31ccaa058..000000000 --- a/libc/arch-x86_64/syscalls/mlockall.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mlockall) - movl $__NR_mlockall, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(mlockall) diff --git a/libc/arch-x86_64/syscalls/mmap.S b/libc/arch-x86_64/syscalls/mmap.S deleted file mode 100644 index 0c25473c4..000000000 --- a/libc/arch-x86_64/syscalls/mmap.S +++ /dev/null @@ -1,18 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mmap) - movq %rcx, %r10 - movl $__NR_mmap, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(mmap) - -ALIAS_SYMBOL(mmap64, mmap) diff --git a/libc/arch-x86_64/syscalls/mount.S b/libc/arch-x86_64/syscalls/mount.S deleted file mode 100644 index dcbd47399..000000000 --- a/libc/arch-x86_64/syscalls/mount.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mount) - movq %rcx, %r10 - movl $__NR_mount, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(mount) diff --git a/libc/arch-x86_64/syscalls/mprotect.S b/libc/arch-x86_64/syscalls/mprotect.S deleted file mode 100644 index 2ad4b250b..000000000 --- a/libc/arch-x86_64/syscalls/mprotect.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(mprotect) - movl $__NR_mprotect, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(mprotect) diff --git a/libc/arch-x86_64/syscalls/msync.S b/libc/arch-x86_64/syscalls/msync.S deleted file mode 100644 index 099dbbf07..000000000 --- a/libc/arch-x86_64/syscalls/msync.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(msync) - movl $__NR_msync, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(msync) diff --git a/libc/arch-x86_64/syscalls/munlock.S b/libc/arch-x86_64/syscalls/munlock.S deleted file mode 100644 index bb5940ca7..000000000 --- a/libc/arch-x86_64/syscalls/munlock.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munlock) - movl $__NR_munlock, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(munlock) diff --git a/libc/arch-x86_64/syscalls/munlockall.S b/libc/arch-x86_64/syscalls/munlockall.S deleted file mode 100644 index f9579dfdb..000000000 --- a/libc/arch-x86_64/syscalls/munlockall.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munlockall) - movl $__NR_munlockall, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(munlockall) diff --git a/libc/arch-x86_64/syscalls/munmap.S b/libc/arch-x86_64/syscalls/munmap.S deleted file mode 100644 index d1c580e44..000000000 --- a/libc/arch-x86_64/syscalls/munmap.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(munmap) - movl $__NR_munmap, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(munmap) diff --git a/libc/arch-x86_64/syscalls/nanosleep.S b/libc/arch-x86_64/syscalls/nanosleep.S deleted file mode 100644 index b19f7f5ee..000000000 --- a/libc/arch-x86_64/syscalls/nanosleep.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(nanosleep) - movl $__NR_nanosleep, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(nanosleep) diff --git a/libc/arch-x86_64/syscalls/personality.S b/libc/arch-x86_64/syscalls/personality.S deleted file mode 100644 index 6937e4c51..000000000 --- a/libc/arch-x86_64/syscalls/personality.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(personality) - movl $__NR_personality, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(personality) diff --git a/libc/arch-x86_64/syscalls/pipe2.S b/libc/arch-x86_64/syscalls/pipe2.S deleted file mode 100644 index d488c87ad..000000000 --- a/libc/arch-x86_64/syscalls/pipe2.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pipe2) - movl $__NR_pipe2, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(pipe2) diff --git a/libc/arch-x86_64/syscalls/prctl.S b/libc/arch-x86_64/syscalls/prctl.S deleted file mode 100644 index 4f3d2ae68..000000000 --- a/libc/arch-x86_64/syscalls/prctl.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(prctl) - movq %rcx, %r10 - movl $__NR_prctl, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(prctl) diff --git a/libc/arch-x86_64/syscalls/pread64.S b/libc/arch-x86_64/syscalls/pread64.S deleted file mode 100644 index eaa47b1b5..000000000 --- a/libc/arch-x86_64/syscalls/pread64.S +++ /dev/null @@ -1,18 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pread64) - movq %rcx, %r10 - movl $__NR_pread64, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(pread64) - -ALIAS_SYMBOL(pread, pread64) diff --git a/libc/arch-x86_64/syscalls/preadv.S b/libc/arch-x86_64/syscalls/preadv.S deleted file mode 100644 index 7771a4447..000000000 --- a/libc/arch-x86_64/syscalls/preadv.S +++ /dev/null @@ -1,18 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(preadv) - movq %rcx, %r10 - movl $__NR_preadv, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(preadv) - -ALIAS_SYMBOL(preadv64, preadv) diff --git a/libc/arch-x86_64/syscalls/prlimit64.S b/libc/arch-x86_64/syscalls/prlimit64.S deleted file mode 100644 index 737b863ab..000000000 --- a/libc/arch-x86_64/syscalls/prlimit64.S +++ /dev/null @@ -1,18 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(prlimit64) - movq %rcx, %r10 - movl $__NR_prlimit64, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(prlimit64) - -ALIAS_SYMBOL(prlimit, prlimit64) diff --git a/libc/arch-x86_64/syscalls/process_vm_readv.S b/libc/arch-x86_64/syscalls/process_vm_readv.S deleted file mode 100644 index 597649e9f..000000000 --- a/libc/arch-x86_64/syscalls/process_vm_readv.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(process_vm_readv) - movq %rcx, %r10 - movl $__NR_process_vm_readv, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(process_vm_readv) diff --git a/libc/arch-x86_64/syscalls/process_vm_writev.S b/libc/arch-x86_64/syscalls/process_vm_writev.S deleted file mode 100644 index 397c007fa..000000000 --- a/libc/arch-x86_64/syscalls/process_vm_writev.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(process_vm_writev) - movq %rcx, %r10 - movl $__NR_process_vm_writev, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(process_vm_writev) diff --git a/libc/arch-x86_64/syscalls/pwrite64.S b/libc/arch-x86_64/syscalls/pwrite64.S deleted file mode 100644 index edb60af49..000000000 --- a/libc/arch-x86_64/syscalls/pwrite64.S +++ /dev/null @@ -1,18 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pwrite64) - movq %rcx, %r10 - movl $__NR_pwrite64, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(pwrite64) - -ALIAS_SYMBOL(pwrite, pwrite64) diff --git a/libc/arch-x86_64/syscalls/pwritev.S b/libc/arch-x86_64/syscalls/pwritev.S deleted file mode 100644 index d3bd8facb..000000000 --- a/libc/arch-x86_64/syscalls/pwritev.S +++ /dev/null @@ -1,18 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(pwritev) - movq %rcx, %r10 - movl $__NR_pwritev, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(pwritev) - -ALIAS_SYMBOL(pwritev64, pwritev) diff --git a/libc/arch-x86_64/syscalls/quotactl.S b/libc/arch-x86_64/syscalls/quotactl.S deleted file mode 100644 index 427358aa2..000000000 --- a/libc/arch-x86_64/syscalls/quotactl.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(quotactl) - movq %rcx, %r10 - movl $__NR_quotactl, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(quotactl) diff --git a/libc/arch-x86_64/syscalls/read.S b/libc/arch-x86_64/syscalls/read.S deleted file mode 100644 index df70e7fef..000000000 --- a/libc/arch-x86_64/syscalls/read.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(read) - movl $__NR_read, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(read) diff --git a/libc/arch-x86_64/syscalls/readahead.S b/libc/arch-x86_64/syscalls/readahead.S deleted file mode 100644 index 38cb1c0b6..000000000 --- a/libc/arch-x86_64/syscalls/readahead.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readahead) - movl $__NR_readahead, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(readahead) diff --git a/libc/arch-x86_64/syscalls/readlinkat.S b/libc/arch-x86_64/syscalls/readlinkat.S deleted file mode 100644 index 9fd64e5a4..000000000 --- a/libc/arch-x86_64/syscalls/readlinkat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readlinkat) - movq %rcx, %r10 - movl $__NR_readlinkat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(readlinkat) diff --git a/libc/arch-x86_64/syscalls/readv.S b/libc/arch-x86_64/syscalls/readv.S deleted file mode 100644 index 2510c5612..000000000 --- a/libc/arch-x86_64/syscalls/readv.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(readv) - movl $__NR_readv, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(readv) diff --git a/libc/arch-x86_64/syscalls/recvfrom.S b/libc/arch-x86_64/syscalls/recvfrom.S deleted file mode 100644 index 6c0907884..000000000 --- a/libc/arch-x86_64/syscalls/recvfrom.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvfrom) - movq %rcx, %r10 - movl $__NR_recvfrom, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(recvfrom) diff --git a/libc/arch-x86_64/syscalls/recvmmsg.S b/libc/arch-x86_64/syscalls/recvmmsg.S deleted file mode 100644 index 78da69173..000000000 --- a/libc/arch-x86_64/syscalls/recvmmsg.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvmmsg) - movq %rcx, %r10 - movl $__NR_recvmmsg, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(recvmmsg) diff --git a/libc/arch-x86_64/syscalls/recvmsg.S b/libc/arch-x86_64/syscalls/recvmsg.S deleted file mode 100644 index 945f17b1a..000000000 --- a/libc/arch-x86_64/syscalls/recvmsg.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(recvmsg) - movl $__NR_recvmsg, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(recvmsg) diff --git a/libc/arch-x86_64/syscalls/removexattr.S b/libc/arch-x86_64/syscalls/removexattr.S deleted file mode 100644 index 9b476154e..000000000 --- a/libc/arch-x86_64/syscalls/removexattr.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(removexattr) - movl $__NR_removexattr, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(removexattr) diff --git a/libc/arch-x86_64/syscalls/renameat.S b/libc/arch-x86_64/syscalls/renameat.S deleted file mode 100644 index 3a94a75a8..000000000 --- a/libc/arch-x86_64/syscalls/renameat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(renameat) - movq %rcx, %r10 - movl $__NR_renameat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(renameat) diff --git a/libc/arch-x86_64/syscalls/sched_get_priority_max.S b/libc/arch-x86_64/syscalls/sched_get_priority_max.S deleted file mode 100644 index 1a0da2386..000000000 --- a/libc/arch-x86_64/syscalls/sched_get_priority_max.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_get_priority_max) - movl $__NR_sched_get_priority_max, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sched_get_priority_max) diff --git a/libc/arch-x86_64/syscalls/sched_get_priority_min.S b/libc/arch-x86_64/syscalls/sched_get_priority_min.S deleted file mode 100644 index 378587730..000000000 --- a/libc/arch-x86_64/syscalls/sched_get_priority_min.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_get_priority_min) - movl $__NR_sched_get_priority_min, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sched_get_priority_min) diff --git a/libc/arch-x86_64/syscalls/sched_getparam.S b/libc/arch-x86_64/syscalls/sched_getparam.S deleted file mode 100644 index 409b501b1..000000000 --- a/libc/arch-x86_64/syscalls/sched_getparam.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_getparam) - movl $__NR_sched_getparam, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sched_getparam) diff --git a/libc/arch-x86_64/syscalls/sched_getscheduler.S b/libc/arch-x86_64/syscalls/sched_getscheduler.S deleted file mode 100644 index 520050468..000000000 --- a/libc/arch-x86_64/syscalls/sched_getscheduler.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_getscheduler) - movl $__NR_sched_getscheduler, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sched_getscheduler) diff --git a/libc/arch-x86_64/syscalls/sched_rr_get_interval.S b/libc/arch-x86_64/syscalls/sched_rr_get_interval.S deleted file mode 100644 index 276feb166..000000000 --- a/libc/arch-x86_64/syscalls/sched_rr_get_interval.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_rr_get_interval) - movl $__NR_sched_rr_get_interval, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sched_rr_get_interval) diff --git a/libc/arch-x86_64/syscalls/sched_setaffinity.S b/libc/arch-x86_64/syscalls/sched_setaffinity.S deleted file mode 100644 index 1fb87e5b0..000000000 --- a/libc/arch-x86_64/syscalls/sched_setaffinity.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setaffinity) - movl $__NR_sched_setaffinity, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sched_setaffinity) diff --git a/libc/arch-x86_64/syscalls/sched_setparam.S b/libc/arch-x86_64/syscalls/sched_setparam.S deleted file mode 100644 index 91ca83bd9..000000000 --- a/libc/arch-x86_64/syscalls/sched_setparam.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setparam) - movl $__NR_sched_setparam, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sched_setparam) diff --git a/libc/arch-x86_64/syscalls/sched_setscheduler.S b/libc/arch-x86_64/syscalls/sched_setscheduler.S deleted file mode 100644 index 7fa499a57..000000000 --- a/libc/arch-x86_64/syscalls/sched_setscheduler.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_setscheduler) - movl $__NR_sched_setscheduler, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sched_setscheduler) diff --git a/libc/arch-x86_64/syscalls/sched_yield.S b/libc/arch-x86_64/syscalls/sched_yield.S deleted file mode 100644 index 8eb10f648..000000000 --- a/libc/arch-x86_64/syscalls/sched_yield.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sched_yield) - movl $__NR_sched_yield, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sched_yield) diff --git a/libc/arch-x86_64/syscalls/sendfile.S b/libc/arch-x86_64/syscalls/sendfile.S deleted file mode 100644 index c0fa4ee26..000000000 --- a/libc/arch-x86_64/syscalls/sendfile.S +++ /dev/null @@ -1,18 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendfile) - movq %rcx, %r10 - movl $__NR_sendfile, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sendfile) - -ALIAS_SYMBOL(sendfile64, sendfile) diff --git a/libc/arch-x86_64/syscalls/sendmmsg.S b/libc/arch-x86_64/syscalls/sendmmsg.S deleted file mode 100644 index cf4a78df8..000000000 --- a/libc/arch-x86_64/syscalls/sendmmsg.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendmmsg) - movq %rcx, %r10 - movl $__NR_sendmmsg, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sendmmsg) diff --git a/libc/arch-x86_64/syscalls/sendmsg.S b/libc/arch-x86_64/syscalls/sendmsg.S deleted file mode 100644 index 84566b52c..000000000 --- a/libc/arch-x86_64/syscalls/sendmsg.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendmsg) - movl $__NR_sendmsg, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sendmsg) diff --git a/libc/arch-x86_64/syscalls/sendto.S b/libc/arch-x86_64/syscalls/sendto.S deleted file mode 100644 index be3bace64..000000000 --- a/libc/arch-x86_64/syscalls/sendto.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sendto) - movq %rcx, %r10 - movl $__NR_sendto, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sendto) diff --git a/libc/arch-x86_64/syscalls/setdomainname.S b/libc/arch-x86_64/syscalls/setdomainname.S deleted file mode 100644 index 40d1a3358..000000000 --- a/libc/arch-x86_64/syscalls/setdomainname.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setdomainname) - movl $__NR_setdomainname, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setdomainname) diff --git a/libc/arch-x86_64/syscalls/setfsgid.S b/libc/arch-x86_64/syscalls/setfsgid.S deleted file mode 100644 index 22a36b202..000000000 --- a/libc/arch-x86_64/syscalls/setfsgid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setfsgid) - movl $__NR_setfsgid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setfsgid) diff --git a/libc/arch-x86_64/syscalls/setfsuid.S b/libc/arch-x86_64/syscalls/setfsuid.S deleted file mode 100644 index 0bd0c97c6..000000000 --- a/libc/arch-x86_64/syscalls/setfsuid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setfsuid) - movl $__NR_setfsuid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setfsuid) diff --git a/libc/arch-x86_64/syscalls/setgid.S b/libc/arch-x86_64/syscalls/setgid.S deleted file mode 100644 index 650f8e20c..000000000 --- a/libc/arch-x86_64/syscalls/setgid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setgid) - movl $__NR_setgid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setgid) diff --git a/libc/arch-x86_64/syscalls/setgroups.S b/libc/arch-x86_64/syscalls/setgroups.S deleted file mode 100644 index c798c1480..000000000 --- a/libc/arch-x86_64/syscalls/setgroups.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setgroups) - movl $__NR_setgroups, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setgroups) diff --git a/libc/arch-x86_64/syscalls/sethostname.S b/libc/arch-x86_64/syscalls/sethostname.S deleted file mode 100644 index 4bcd12df8..000000000 --- a/libc/arch-x86_64/syscalls/sethostname.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sethostname) - movl $__NR_sethostname, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sethostname) diff --git a/libc/arch-x86_64/syscalls/setitimer.S b/libc/arch-x86_64/syscalls/setitimer.S deleted file mode 100644 index c5fabb22b..000000000 --- a/libc/arch-x86_64/syscalls/setitimer.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setitimer) - movl $__NR_setitimer, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setitimer) diff --git a/libc/arch-x86_64/syscalls/setns.S b/libc/arch-x86_64/syscalls/setns.S deleted file mode 100644 index c2ae97d6c..000000000 --- a/libc/arch-x86_64/syscalls/setns.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setns) - movl $__NR_setns, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setns) diff --git a/libc/arch-x86_64/syscalls/setpgid.S b/libc/arch-x86_64/syscalls/setpgid.S deleted file mode 100644 index 4d4313c43..000000000 --- a/libc/arch-x86_64/syscalls/setpgid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setpgid) - movl $__NR_setpgid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setpgid) diff --git a/libc/arch-x86_64/syscalls/setpriority.S b/libc/arch-x86_64/syscalls/setpriority.S deleted file mode 100644 index 3c508c32a..000000000 --- a/libc/arch-x86_64/syscalls/setpriority.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setpriority) - movl $__NR_setpriority, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setpriority) diff --git a/libc/arch-x86_64/syscalls/setregid.S b/libc/arch-x86_64/syscalls/setregid.S deleted file mode 100644 index 181a8b903..000000000 --- a/libc/arch-x86_64/syscalls/setregid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setregid) - movl $__NR_setregid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setregid) diff --git a/libc/arch-x86_64/syscalls/setresgid.S b/libc/arch-x86_64/syscalls/setresgid.S deleted file mode 100644 index fe44786dd..000000000 --- a/libc/arch-x86_64/syscalls/setresgid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setresgid) - movl $__NR_setresgid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setresgid) diff --git a/libc/arch-x86_64/syscalls/setresuid.S b/libc/arch-x86_64/syscalls/setresuid.S deleted file mode 100644 index 58cd2ca10..000000000 --- a/libc/arch-x86_64/syscalls/setresuid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setresuid) - movl $__NR_setresuid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setresuid) diff --git a/libc/arch-x86_64/syscalls/setreuid.S b/libc/arch-x86_64/syscalls/setreuid.S deleted file mode 100644 index e25658b1e..000000000 --- a/libc/arch-x86_64/syscalls/setreuid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setreuid) - movl $__NR_setreuid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setreuid) diff --git a/libc/arch-x86_64/syscalls/setrlimit.S b/libc/arch-x86_64/syscalls/setrlimit.S deleted file mode 100644 index 3843ff9ae..000000000 --- a/libc/arch-x86_64/syscalls/setrlimit.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setrlimit) - movl $__NR_setrlimit, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setrlimit) - -ALIAS_SYMBOL(setrlimit64, setrlimit) diff --git a/libc/arch-x86_64/syscalls/setsid.S b/libc/arch-x86_64/syscalls/setsid.S deleted file mode 100644 index 01d9269ce..000000000 --- a/libc/arch-x86_64/syscalls/setsid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setsid) - movl $__NR_setsid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setsid) diff --git a/libc/arch-x86_64/syscalls/setsockopt.S b/libc/arch-x86_64/syscalls/setsockopt.S deleted file mode 100644 index 629fdf0d5..000000000 --- a/libc/arch-x86_64/syscalls/setsockopt.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setsockopt) - movq %rcx, %r10 - movl $__NR_setsockopt, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setsockopt) diff --git a/libc/arch-x86_64/syscalls/settimeofday.S b/libc/arch-x86_64/syscalls/settimeofday.S deleted file mode 100644 index ac5b9b1b4..000000000 --- a/libc/arch-x86_64/syscalls/settimeofday.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(settimeofday) - movl $__NR_settimeofday, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(settimeofday) diff --git a/libc/arch-x86_64/syscalls/setuid.S b/libc/arch-x86_64/syscalls/setuid.S deleted file mode 100644 index f335a76e8..000000000 --- a/libc/arch-x86_64/syscalls/setuid.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setuid) - movl $__NR_setuid, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setuid) diff --git a/libc/arch-x86_64/syscalls/setxattr.S b/libc/arch-x86_64/syscalls/setxattr.S deleted file mode 100644 index d7504231b..000000000 --- a/libc/arch-x86_64/syscalls/setxattr.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(setxattr) - movq %rcx, %r10 - movl $__NR_setxattr, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(setxattr) diff --git a/libc/arch-x86_64/syscalls/shutdown.S b/libc/arch-x86_64/syscalls/shutdown.S deleted file mode 100644 index a030c97b8..000000000 --- a/libc/arch-x86_64/syscalls/shutdown.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(shutdown) - movl $__NR_shutdown, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(shutdown) diff --git a/libc/arch-x86_64/syscalls/sigaltstack.S b/libc/arch-x86_64/syscalls/sigaltstack.S deleted file mode 100644 index 71ce53745..000000000 --- a/libc/arch-x86_64/syscalls/sigaltstack.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sigaltstack) - movl $__NR_sigaltstack, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sigaltstack) diff --git a/libc/arch-x86_64/syscalls/socketpair.S b/libc/arch-x86_64/syscalls/socketpair.S deleted file mode 100644 index dbcf50d23..000000000 --- a/libc/arch-x86_64/syscalls/socketpair.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(socketpair) - movq %rcx, %r10 - movl $__NR_socketpair, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(socketpair) diff --git a/libc/arch-x86_64/syscalls/splice.S b/libc/arch-x86_64/syscalls/splice.S deleted file mode 100644 index 1b2ec84ef..000000000 --- a/libc/arch-x86_64/syscalls/splice.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(splice) - movq %rcx, %r10 - movl $__NR_splice, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(splice) diff --git a/libc/arch-x86_64/syscalls/swapoff.S b/libc/arch-x86_64/syscalls/swapoff.S deleted file mode 100644 index df922a077..000000000 --- a/libc/arch-x86_64/syscalls/swapoff.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(swapoff) - movl $__NR_swapoff, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(swapoff) diff --git a/libc/arch-x86_64/syscalls/swapon.S b/libc/arch-x86_64/syscalls/swapon.S deleted file mode 100644 index 036b42213..000000000 --- a/libc/arch-x86_64/syscalls/swapon.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(swapon) - movl $__NR_swapon, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(swapon) diff --git a/libc/arch-x86_64/syscalls/symlinkat.S b/libc/arch-x86_64/syscalls/symlinkat.S deleted file mode 100644 index fdbced542..000000000 --- a/libc/arch-x86_64/syscalls/symlinkat.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(symlinkat) - movl $__NR_symlinkat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(symlinkat) diff --git a/libc/arch-x86_64/syscalls/sync.S b/libc/arch-x86_64/syscalls/sync.S deleted file mode 100644 index a4153fdab..000000000 --- a/libc/arch-x86_64/syscalls/sync.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sync) - movl $__NR_sync, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sync) diff --git a/libc/arch-x86_64/syscalls/syncfs.S b/libc/arch-x86_64/syscalls/syncfs.S deleted file mode 100644 index 12dee085e..000000000 --- a/libc/arch-x86_64/syscalls/syncfs.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(syncfs) - movl $__NR_syncfs, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(syncfs) diff --git a/libc/arch-x86_64/syscalls/sysinfo.S b/libc/arch-x86_64/syscalls/sysinfo.S deleted file mode 100644 index 754ef61ec..000000000 --- a/libc/arch-x86_64/syscalls/sysinfo.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(sysinfo) - movl $__NR_sysinfo, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(sysinfo) diff --git a/libc/arch-x86_64/syscalls/tee.S b/libc/arch-x86_64/syscalls/tee.S deleted file mode 100644 index 31d66dc84..000000000 --- a/libc/arch-x86_64/syscalls/tee.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(tee) - movq %rcx, %r10 - movl $__NR_tee, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(tee) diff --git a/libc/arch-x86_64/syscalls/tgkill.S b/libc/arch-x86_64/syscalls/tgkill.S deleted file mode 100644 index 9c46887ad..000000000 --- a/libc/arch-x86_64/syscalls/tgkill.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(tgkill) - movl $__NR_tgkill, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(tgkill) diff --git a/libc/arch-x86_64/syscalls/timerfd_create.S b/libc/arch-x86_64/syscalls/timerfd_create.S deleted file mode 100644 index 56b45e80b..000000000 --- a/libc/arch-x86_64/syscalls/timerfd_create.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_create) - movl $__NR_timerfd_create, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(timerfd_create) diff --git a/libc/arch-x86_64/syscalls/timerfd_gettime.S b/libc/arch-x86_64/syscalls/timerfd_gettime.S deleted file mode 100644 index 8c9b5d6ed..000000000 --- a/libc/arch-x86_64/syscalls/timerfd_gettime.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_gettime) - movl $__NR_timerfd_gettime, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(timerfd_gettime) diff --git a/libc/arch-x86_64/syscalls/timerfd_settime.S b/libc/arch-x86_64/syscalls/timerfd_settime.S deleted file mode 100644 index a524c0cbb..000000000 --- a/libc/arch-x86_64/syscalls/timerfd_settime.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(timerfd_settime) - movq %rcx, %r10 - movl $__NR_timerfd_settime, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(timerfd_settime) diff --git a/libc/arch-x86_64/syscalls/times.S b/libc/arch-x86_64/syscalls/times.S deleted file mode 100644 index 89502bdce..000000000 --- a/libc/arch-x86_64/syscalls/times.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(times) - movl $__NR_times, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(times) diff --git a/libc/arch-x86_64/syscalls/truncate.S b/libc/arch-x86_64/syscalls/truncate.S deleted file mode 100644 index 4b953a38b..000000000 --- a/libc/arch-x86_64/syscalls/truncate.S +++ /dev/null @@ -1,17 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(truncate) - movl $__NR_truncate, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(truncate) - -ALIAS_SYMBOL(truncate64, truncate) diff --git a/libc/arch-x86_64/syscalls/umask.S b/libc/arch-x86_64/syscalls/umask.S deleted file mode 100644 index acd37e80d..000000000 --- a/libc/arch-x86_64/syscalls/umask.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(umask) - movl $__NR_umask, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(umask) diff --git a/libc/arch-x86_64/syscalls/umount2.S b/libc/arch-x86_64/syscalls/umount2.S deleted file mode 100644 index 438aedb41..000000000 --- a/libc/arch-x86_64/syscalls/umount2.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(umount2) - movl $__NR_umount2, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(umount2) diff --git a/libc/arch-x86_64/syscalls/uname.S b/libc/arch-x86_64/syscalls/uname.S deleted file mode 100644 index 6f077dfd2..000000000 --- a/libc/arch-x86_64/syscalls/uname.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(uname) - movl $__NR_uname, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(uname) diff --git a/libc/arch-x86_64/syscalls/unlinkat.S b/libc/arch-x86_64/syscalls/unlinkat.S deleted file mode 100644 index 80f0251dd..000000000 --- a/libc/arch-x86_64/syscalls/unlinkat.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(unlinkat) - movl $__NR_unlinkat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(unlinkat) diff --git a/libc/arch-x86_64/syscalls/unshare.S b/libc/arch-x86_64/syscalls/unshare.S deleted file mode 100644 index 8316d20f7..000000000 --- a/libc/arch-x86_64/syscalls/unshare.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(unshare) - movl $__NR_unshare, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(unshare) diff --git a/libc/arch-x86_64/syscalls/utimensat.S b/libc/arch-x86_64/syscalls/utimensat.S deleted file mode 100644 index 3e438261c..000000000 --- a/libc/arch-x86_64/syscalls/utimensat.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(utimensat) - movq %rcx, %r10 - movl $__NR_utimensat, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(utimensat) diff --git a/libc/arch-x86_64/syscalls/vmsplice.S b/libc/arch-x86_64/syscalls/vmsplice.S deleted file mode 100644 index df775c6a0..000000000 --- a/libc/arch-x86_64/syscalls/vmsplice.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(vmsplice) - movq %rcx, %r10 - movl $__NR_vmsplice, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(vmsplice) diff --git a/libc/arch-x86_64/syscalls/wait4.S b/libc/arch-x86_64/syscalls/wait4.S deleted file mode 100644 index d392dc7dd..000000000 --- a/libc/arch-x86_64/syscalls/wait4.S +++ /dev/null @@ -1,16 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(wait4) - movq %rcx, %r10 - movl $__NR_wait4, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(wait4) diff --git a/libc/arch-x86_64/syscalls/write.S b/libc/arch-x86_64/syscalls/write.S deleted file mode 100644 index 145c7930e..000000000 --- a/libc/arch-x86_64/syscalls/write.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(write) - movl $__NR_write, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(write) diff --git a/libc/arch-x86_64/syscalls/writev.S b/libc/arch-x86_64/syscalls/writev.S deleted file mode 100644 index 8f8956f22..000000000 --- a/libc/arch-x86_64/syscalls/writev.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(writev) - movl $__NR_writev, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno_internal -1: - ret -END(writev) diff --git a/libc/async_safe/Android.bp b/libc/async_safe/Android.bp index fbaaad174..c28d53aff 100644 --- a/libc/async_safe/Android.bp +++ b/libc/async_safe/Android.bp @@ -10,6 +10,7 @@ cc_library_static { name: "libasync_safe", vendor_available: true, recovery_available: true, + native_bridge_supported: true, include_dirs: ["bionic/libc"], header_libs: ["libc_headers", "liblog_headers"], @@ -22,6 +23,7 @@ cc_library_static { cc_library_headers { name: "libasync_safe_headers", recovery_available: true, + native_bridge_supported: true, defaults: ["linux_bionic_supported"], export_include_dirs: ["include"], diff --git a/libc/bionic/bionic_allocator.cpp b/libc/bionic/bionic_allocator.cpp index da0f7d08b..168d6ba19 100644 --- a/libc/bionic/bionic_allocator.cpp +++ b/libc/bionic/bionic_allocator.cpp @@ -45,11 +45,11 @@ // // BionicAllocator is a general purpose allocator designed to provide the same -// functionality as the malloc/free/realloc libc functions. +// functionality as the malloc/free/realloc/memalign libc functions. // // On alloc: -// If size is >= 1k allocator proxies malloc call directly to mmap -// If size < 1k allocator uses SmallObjectAllocator for the size +// If size is > 1k allocator proxies malloc call directly to mmap. +// If size <= 1k allocator uses BionicSmallObjectAllocator for the size // rounded up to the nearest power of two. // // On free: @@ -57,10 +57,10 @@ // For a pointer allocated using proxy-to-mmap allocator unmaps // the memory. // -// For a pointer allocated using SmallObjectAllocator it adds +// For a pointer allocated using BionicSmallObjectAllocator it adds // the block to free_blocks_list in the corresponding page. If the number of -// free pages reaches 2, SmallObjectAllocator munmaps one of the pages keeping -// the other one in reserve. +// free pages reaches 2, BionicSmallObjectAllocator munmaps one of the pages +// keeping the other one in reserve. // Memory management for large objects is fairly straightforward, but for small // objects it is more complicated. If you are changing this code, one simple diff --git a/libc/bionic/grp_pwd.cpp b/libc/bionic/grp_pwd.cpp index dadda49cb..bd5c27dd1 100644 --- a/libc/bionic/grp_pwd.cpp +++ b/libc/bionic/grp_pwd.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include <android/api-level.h> #include <ctype.h> #include <errno.h> #include <grp.h> @@ -35,6 +36,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <sys/system_properties.h> #include <unistd.h> #include "private/android_filesystem_config.h" @@ -56,85 +58,31 @@ static GroupFile vendor_group("/vendor/etc/group", "vendor_"); // functions to share state, but <grp.h> functions can't clobber <passwd.h> // functions' state and vice versa. #include "bionic/pthread_internal.h" -static group_state_t* get_group_tls_buffer() { - return &__get_bionic_tls().group; -} - -static passwd_state_t* get_passwd_tls_buffer() { - return &__get_bionic_tls().passwd; -} static void init_group_state(group_state_t* state) { memset(state, 0, sizeof(group_state_t) - sizeof(state->getgrent_idx)); + state->group_.gr_name = state->group_name_buffer_; state->group_.gr_mem = state->group_members_; + state->group_.gr_mem[0] = state->group_.gr_name; } -static group_state_t* __group_state() { - group_state_t* result = get_group_tls_buffer(); - if (result != nullptr) { - init_group_state(result); - } +static group_state_t* get_group_tls_buffer() { + auto result = &__get_bionic_tls().group; + init_group_state(result); return result; } -static int do_getpw_r(int by_name, const char* name, uid_t uid, - passwd* dst, char* buf, size_t byte_count, - passwd** result) { - // getpwnam_r and getpwuid_r don't modify errno, but library calls we - // make might. - ErrnoRestorer errno_restorer; - *result = nullptr; - - // Our implementation of getpwnam(3) and getpwuid(3) use thread-local - // storage, so we can call them as long as we copy everything out - // before returning. - const passwd* src = by_name ? getpwnam(name) : getpwuid(uid); // NOLINT: see above. - - // POSIX allows failure to find a match to be considered a non-error. - // Reporting success (0) but with *result NULL is glibc's behavior. - if (src == nullptr) { - return (errno == ENOENT) ? 0 : errno; - } - - // Work out where our strings will go in 'buf', and whether we've got - // enough space. - size_t required_byte_count = 0; - dst->pw_name = buf; - required_byte_count += strlen(src->pw_name) + 1; - dst->pw_dir = buf + required_byte_count; - required_byte_count += strlen(src->pw_dir) + 1; - dst->pw_shell = buf + required_byte_count; - required_byte_count += strlen(src->pw_shell) + 1; - if (byte_count < required_byte_count) { - return ERANGE; - } - - // Copy the strings. - snprintf(buf, byte_count, "%s%c%s%c%s", src->pw_name, 0, src->pw_dir, 0, src->pw_shell); - - // pw_passwd and pw_gecos are non-POSIX and unused (always NULL) in bionic. - // Note: On LP32, we define pw_gecos to pw_passwd since they're both NULL. - dst->pw_passwd = nullptr; -#if defined(__LP64__) - dst->pw_gecos = nullptr; -#endif - - // Copy the integral fields. - dst->pw_gid = src->pw_gid; - dst->pw_uid = src->pw_uid; - - *result = dst; - return 0; +static void init_passwd_state(passwd_state_t* state) { + memset(state, 0, sizeof(passwd_state_t) - sizeof(state->getpwent_idx)); + state->passwd_.pw_name = state->name_buffer_; + state->passwd_.pw_dir = state->dir_buffer_; + state->passwd_.pw_shell = state->sh_buffer_; } -int getpwnam_r(const char* name, passwd* pwd, - char* buf, size_t byte_count, passwd** result) { - return do_getpw_r(1, name, -1, pwd, buf, byte_count, result); -} - -int getpwuid_r(uid_t uid, passwd* pwd, - char* buf, size_t byte_count, passwd** result) { - return do_getpw_r(0, nullptr, uid, pwd, buf, byte_count, result); +static passwd_state_t* get_passwd_tls_buffer() { + auto result = &__get_bionic_tls().passwd; + init_passwd_state(result); + return result; } static passwd* android_iinfo_to_passwd(passwd_state_t* state, @@ -144,11 +92,8 @@ static passwd* android_iinfo_to_passwd(passwd_state_t* state, snprintf(state->sh_buffer_, sizeof(state->sh_buffer_), "/system/bin/sh"); passwd* pw = &state->passwd_; - pw->pw_name = state->name_buffer_; pw->pw_uid = iinfo->aid; pw->pw_gid = iinfo->aid; - pw->pw_dir = state->dir_buffer_; - pw->pw_shell = state->sh_buffer_; return pw; } @@ -157,43 +102,23 @@ static group* android_iinfo_to_group(group_state_t* state, snprintf(state->group_name_buffer_, sizeof(state->group_name_buffer_), "%s", iinfo->name); group* gr = &state->group_; - gr->gr_name = state->group_name_buffer_; - gr->gr_gid = iinfo->aid; - gr->gr_mem[0] = gr->gr_name; + gr->gr_gid = iinfo->aid; return gr; } -static passwd* android_id_to_passwd(passwd_state_t* state, unsigned id) { +static const android_id_info* find_android_id_info(unsigned id) { for (size_t n = 0; n < android_id_count; ++n) { if (android_ids[n].aid == id) { - return android_iinfo_to_passwd(state, android_ids + n); + return &android_ids[n]; } } return nullptr; } -static passwd* android_name_to_passwd(passwd_state_t* state, const char* name) { +static const android_id_info* find_android_id_info(const char* name) { for (size_t n = 0; n < android_id_count; ++n) { if (!strcmp(android_ids[n].name, name)) { - return android_iinfo_to_passwd(state, android_ids + n); - } - } - return nullptr; -} - -static group* android_id_to_group(group_state_t* state, unsigned id) { - for (size_t n = 0; n < android_id_count; ++n) { - if (android_ids[n].aid == id) { - return android_iinfo_to_group(state, android_ids + n); - } - } - return nullptr; -} - -static group* android_name_to_group(group_state_t* state, const char* name) { - for (size_t n = 0; n < android_id_count; ++n) { - if (!strcmp(android_ids[n].name, name)) { - return android_iinfo_to_group(state, android_ids + n); + return &android_ids[n]; } } return nullptr; @@ -332,15 +257,9 @@ static id_t app_id_from_name(const char* name, bool is_group) { } else if (end[1] == 'i' && isdigit(end[2])) { // end will point to \0 if the strtoul below succeeds. appid = strtoul(end+2, &end, 10) + AID_ISOLATED_START; - } else { - for (size_t n = 0; n < android_id_count; n++) { - if (!strcmp(android_ids[n].name, end + 1)) { - appid = android_ids[n].aid; - // Move the end pointer to the null terminator. - end += strlen(android_ids[n].name) + 1; - break; - } - } + } else if (auto* android_id_info = find_android_id_info(end + 1); android_id_info != nullptr) { + appid = android_id_info->aid; + end += strlen(android_id_info->name) + 1; } // Check that the entire string was consumed by one of the 3 cases above. @@ -370,11 +289,8 @@ static void print_app_name_from_uid(const uid_t uid, char* buffer, const int buf if (appid >= AID_ISOLATED_START) { snprintf(buffer, bufferlen, "u%u_i%u", userid, appid - AID_ISOLATED_START); } else if (appid < AID_APP_START) { - for (size_t n = 0; n < android_id_count; n++) { - if (android_ids[n].aid == appid) { - snprintf(buffer, bufferlen, "u%u_%s", userid, android_ids[n].name); - return; - } + if (auto* android_id_info = find_android_id_info(appid); android_id_info != nullptr) { + snprintf(buffer, bufferlen, "u%u_%s", userid, android_id_info->name); } } else { snprintf(buffer, bufferlen, "u%u_a%u", userid, appid - AID_APP_START); @@ -391,25 +307,47 @@ static void print_app_name_from_gid(const gid_t gid, char* buffer, const int buf } else if (appid >= AID_CACHE_GID_START && appid <= AID_CACHE_GID_END) { snprintf(buffer, bufferlen, "u%u_a%u_cache", userid, appid - AID_CACHE_GID_START); } else if (appid < AID_APP_START) { - for (size_t n = 0; n < android_id_count; n++) { - if (android_ids[n].aid == appid) { - snprintf(buffer, bufferlen, "u%u_%s", userid, android_ids[n].name); - return; - } + if (auto* android_id_info = find_android_id_info(appid); android_id_info != nullptr) { + snprintf(buffer, bufferlen, "u%u_%s", userid, android_id_info->name); } } else { snprintf(buffer, bufferlen, "u%u_a%u", userid, appid - AID_APP_START); } } +static bool device_launched_before_api_29() { + // Check if ro.product.first_api_level is set to a value > 0 and < 29, if so, this device was + // launched before API 29 (Q). Any other value is considered to be either in development or + // launched after. + // Cache the value as __system_property_get() is expensive and this may be called often. + static bool result = [] { + char value[PROP_VALUE_MAX] = { 0 }; + if (__system_property_get("ro.product.first_api_level", value) == 0) { + return false; + } + int value_int = atoi(value); + return value_int != 0 && value_int < 29; + }(); + return result; +} + // oem_XXXX -> uid // Supported ranges: // AID_OEM_RESERVED_START to AID_OEM_RESERVED_END (2900-2999) // AID_OEM_RESERVED_2_START to AID_OEM_RESERVED_2_END (5000-5999) // Check OEM id is within range. static bool is_oem_id(id_t id) { - return (((id >= AID_OEM_RESERVED_START) && (id <= AID_OEM_RESERVED_END)) || - ((id >= AID_OEM_RESERVED_2_START) && (id <= AID_OEM_RESERVED_2_END))); + // Upgrading devices launched before API level 29 may not comply with the below check. + // Due to the difficulty in changing uids after launch, it is waived for these devices. + // The legacy range: + // AID_OEM_RESERVED_START to AID_EVERYBODY (2900-9996), excluding builtin AIDs. + if (device_launched_before_api_29() && id >= AID_OEM_RESERVED_START && id < AID_EVERYBODY && + find_android_id_info(id) == nullptr) { + return true; + } + + return (id >= AID_OEM_RESERVED_START && id <= AID_OEM_RESERVED_END) || + (id >= AID_OEM_RESERVED_2_START && id <= AID_OEM_RESERVED_2_END); } // Translate an OEM name to the corresponding user/group id. @@ -438,9 +376,6 @@ static passwd* oem_id_to_passwd(uid_t uid, passwd_state_t* state) { snprintf(state->sh_buffer_, sizeof(state->sh_buffer_), "/vendor/bin/sh"); passwd* pw = &state->passwd_; - pw->pw_name = state->name_buffer_; - pw->pw_dir = state->dir_buffer_; - pw->pw_shell = state->sh_buffer_; pw->pw_uid = uid; pw->pw_gid = uid; return pw; @@ -459,9 +394,7 @@ static group* oem_id_to_group(gid_t gid, group_state_t* state) { "oem_%u", gid); group* gr = &state->group_; - gr->gr_name = state->group_name_buffer_; - gr->gr_gid = gid; - gr->gr_mem[0] = gr->gr_name; + gr->gr_gid = gid; return gr; } @@ -489,9 +422,6 @@ static passwd* app_id_to_passwd(uid_t uid, passwd_state_t* state) { snprintf(state->sh_buffer_, sizeof(state->sh_buffer_), "/system/bin/sh"); passwd* pw = &state->passwd_; - pw->pw_name = state->name_buffer_; - pw->pw_dir = state->dir_buffer_; - pw->pw_shell = state->sh_buffer_; pw->pw_uid = uid; pw->pw_gid = uid; return pw; @@ -508,39 +438,31 @@ static group* app_id_to_group(gid_t gid, group_state_t* state) { print_app_name_from_gid(gid, state->group_name_buffer_, sizeof(state->group_name_buffer_)); group* gr = &state->group_; - gr->gr_name = state->group_name_buffer_; - gr->gr_gid = gid; - gr->gr_mem[0] = gr->gr_name; + gr->gr_gid = gid; return gr; } -passwd* getpwuid(uid_t uid) { // NOLINT: implementing bad function. - passwd_state_t* state = get_passwd_tls_buffer(); - if (state == nullptr) { - return nullptr; +passwd* getpwuid_internal(uid_t uid, passwd_state_t* state) { + if (auto* android_id_info = find_android_id_info(uid); android_id_info != nullptr) { + return android_iinfo_to_passwd(state, android_id_info); } - passwd* pw = android_id_to_passwd(state, uid); - if (pw != nullptr) { - return pw; - } // Handle OEM range. - pw = oem_id_to_passwd(uid, state); + passwd* pw = oem_id_to_passwd(uid, state); if (pw != nullptr) { return pw; } return app_id_to_passwd(uid, state); } -passwd* getpwnam(const char* login) { // NOLINT: implementing bad function. +passwd* getpwuid(uid_t uid) { // NOLINT: implementing bad function. passwd_state_t* state = get_passwd_tls_buffer(); - if (state == nullptr) { - return nullptr; - } + return getpwuid_internal(uid, state); +} - passwd* pw = android_name_to_passwd(state, login); - if (pw != nullptr) { - return pw; +passwd* getpwnam_internal(const char* login, passwd_state_t* state) { + if (auto* android_id_info = find_android_id_info(login); android_id_info != nullptr) { + return android_iinfo_to_passwd(state, android_id_info); } if (vendor_passwd.FindByName(login, state)) { @@ -550,13 +472,46 @@ passwd* getpwnam(const char* login) { // NOLINT: implementing bad function. } // Handle OEM range. - pw = oem_id_to_passwd(oem_id_from_name(login), state); + passwd* pw = oem_id_to_passwd(oem_id_from_name(login), state); if (pw != nullptr) { return pw; } return app_id_to_passwd(app_id_from_name(login, false), state); } +passwd* getpwnam(const char* login) { // NOLINT: implementing bad function. + passwd_state_t* state = get_passwd_tls_buffer(); + return getpwnam_internal(login, state); +} + +static int getpasswd_r(bool by_name, const char* name, uid_t uid, struct passwd* pwd, char* buf, + size_t buflen, struct passwd** result) { + ErrnoRestorer errno_restorer; + *result = nullptr; + char* p = + reinterpret_cast<char*>(__BIONIC_ALIGN(reinterpret_cast<uintptr_t>(buf), sizeof(uintptr_t))); + if (p + sizeof(passwd_state_t) > buf + buflen) { + return ERANGE; + } + passwd_state_t* state = reinterpret_cast<passwd_state_t*>(p); + init_passwd_state(state); + passwd* retval = (by_name ? getpwnam_internal(name, state) : getpwuid_internal(uid, state)); + if (retval != nullptr) { + *pwd = *retval; + *result = pwd; + return 0; + } + return errno; +} + +int getpwnam_r(const char* name, passwd* pwd, char* buf, size_t byte_count, passwd** result) { + return getpasswd_r(true, name, -1, pwd, buf, byte_count, result); +} + +int getpwuid_r(uid_t uid, passwd* pwd, char* buf, size_t byte_count, passwd** result) { + return getpasswd_r(false, nullptr, uid, pwd, buf, byte_count, result); +} + // All users are in just one group, the one passed in. int getgrouplist(const char* /*user*/, gid_t group, gid_t* groups, int* ngroups) { if (*ngroups < 1) { @@ -594,9 +549,6 @@ void endpwent() { passwd* getpwent() { passwd_state_t* state = get_passwd_tls_buffer(); - if (state == nullptr) { - return nullptr; - } if (state->getpwent_idx < 0) { return nullptr; } @@ -634,12 +586,12 @@ passwd* getpwent() { } static group* getgrgid_internal(gid_t gid, group_state_t* state) { - group* grp = android_id_to_group(state, gid); - if (grp != nullptr) { - return grp; + if (auto* android_id_info = find_android_id_info(gid); android_id_info != nullptr) { + return android_iinfo_to_group(state, android_id_info); } + // Handle OEM range. - grp = oem_id_to_group(gid, state); + group* grp = oem_id_to_group(gid, state); if (grp != nullptr) { return grp; } @@ -647,17 +599,13 @@ static group* getgrgid_internal(gid_t gid, group_state_t* state) { } group* getgrgid(gid_t gid) { // NOLINT: implementing bad function. - group_state_t* state = __group_state(); - if (state == nullptr) { - return nullptr; - } + group_state_t* state = get_group_tls_buffer(); return getgrgid_internal(gid, state); } static group* getgrnam_internal(const char* name, group_state_t* state) { - group* grp = android_name_to_group(state, name); - if (grp != nullptr) { - return grp; + if (auto* android_id_info = find_android_id_info(name); android_id_info != nullptr) { + return android_iinfo_to_group(state, android_id_info); } if (vendor_group.FindByName(name, state)) { @@ -667,7 +615,7 @@ static group* getgrnam_internal(const char* name, group_state_t* state) { } // Handle OEM range. - grp = oem_id_to_group(oem_id_from_name(name), state); + group* grp = oem_id_to_group(oem_id_from_name(name), state); if (grp != nullptr) { return grp; } @@ -675,10 +623,7 @@ static group* getgrnam_internal(const char* name, group_state_t* state) { } group* getgrnam(const char* name) { // NOLINT: implementing bad function. - group_state_t* state = __group_state(); - if (state == nullptr) { - return nullptr; - } + group_state_t* state = get_group_tls_buffer(); return getgrnam_internal(name, state); } @@ -724,9 +669,6 @@ void endgrent() { group* getgrent() { group_state_t* state = get_group_tls_buffer(); - if (state == nullptr) { - return nullptr; - } if (state->getgrent_idx < 0) { return nullptr; } @@ -734,7 +676,6 @@ group* getgrent() { size_t start = 0; ssize_t end = android_id_count; if (state->getgrent_idx < end) { - init_group_state(state); return android_iinfo_to_group(state, android_ids + state->getgrent_idx++); } @@ -742,7 +683,6 @@ group* getgrent() { end += AID_OEM_RESERVED_END - AID_OEM_RESERVED_START + 1; if (state->getgrent_idx < end) { - init_group_state(state); return oem_id_to_group( state->getgrent_idx++ - start + AID_OEM_RESERVED_START, state); } @@ -751,7 +691,6 @@ group* getgrent() { end += AID_OEM_RESERVED_2_END - AID_OEM_RESERVED_2_START + 1; if (state->getgrent_idx < end) { - init_group_state(state); return oem_id_to_group( state->getgrent_idx++ - start + AID_OEM_RESERVED_2_START, state); } diff --git a/libc/bionic/libc_init_common.cpp b/libc/bionic/libc_init_common.cpp index b229cda2f..1f099cfcc 100644 --- a/libc/bionic/libc_init_common.cpp +++ b/libc/bionic/libc_init_common.cpp @@ -232,6 +232,7 @@ static bool __is_unsafe_environment_variable(const char* name) { "LD_AOUT_LIBRARY_PATH", "LD_AOUT_PRELOAD", "LD_AUDIT", + "LD_CONFIG_FILE", "LD_DEBUG", "LD_DEBUG_OUTPUT", "LD_DYNAMIC_WEAK", @@ -242,6 +243,7 @@ static bool __is_unsafe_environment_variable(const char* name) { "LD_SHOW_AUXV", "LD_USE_LOAD_BIAS", "LIBC_DEBUG_MALLOC_OPTIONS", + "LIBC_HOOKS_ENABLE", "LOCALDOMAIN", "LOCPATH", "MALLOC_CHECK_", diff --git a/libc/bionic/pthread_mutex.cpp b/libc/bionic/pthread_mutex.cpp index f92184e50..37031ad6b 100644 --- a/libc/bionic/pthread_mutex.cpp +++ b/libc/bionic/pthread_mutex.cpp @@ -646,6 +646,15 @@ static inline __always_inline void NormalMutexUnlock(pthread_mutex_internal_t* m // we call wake, the thread we eventually wake will find an unlocked mutex // and will execute. Either way we have correct behavior and nobody is // orphaned on the wait queue. + // + // The pthread_mutex_internal_t object may have been deallocated between the + // atomic exchange and the wake call. In that case, this wake call could + // target unmapped memory or memory used by an otherwise unrelated futex + // operation. Even if the kernel avoids spurious futex wakeups from its + // point of view, this wake call could trigger a spurious wakeup in any + // futex accessible from this process. References: + // - https://lkml.org/lkml/2014/11/27/472 + // - http://austingroupbugs.net/view.php?id=811#c2267 __futex_wake_ex(&mutex->state, shared, 1); } } diff --git a/libc/bionic/scudo/Android.bp b/libc/bionic/scudo/Android.bp index 8b518bb62..9b77c0699 100644 --- a/libc/bionic/scudo/Android.bp +++ b/libc/bionic/scudo/Android.bp @@ -57,4 +57,7 @@ cc_library_shared { version_script: "exported64.map", }, }, + + // Like libc, disable native coverage for libscudo_wrapper. + native_coverage: false, } diff --git a/libc/bionic/threads.cpp b/libc/bionic/threads.cpp new file mode 100644 index 000000000..f59758013 --- /dev/null +++ b/libc/bionic/threads.cpp @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include <threads.h> + +#define __BIONIC_THREADS_INLINE /* Out of line. */ +#include <bits/threads_inlines.h> diff --git a/libc/include/android/api-level.h b/libc/include/android/api-level.h index a17585768..af7cde1e3 100644 --- a/libc/include/android/api-level.h +++ b/libc/include/android/api-level.h @@ -100,6 +100,9 @@ __BEGIN_DECLS /** Names the "Q" API level (29), for comparisons against __ANDROID_API__. */ #define __ANDROID_API_Q__ 29 +/** Names the "R" API level (30), for comparisons against __ANDROID_API__. */ +#define __ANDROID_API_R__ 30 + /** * Returns the `targetSdkVersion` of the caller, or `__ANDROID_API_FUTURE__` * if there is no known target SDK version (for code not running in the diff --git a/libc/include/android/legacy_threads_inlines.h b/libc/include/android/legacy_threads_inlines.h new file mode 100644 index 000000000..e73ef37c7 --- /dev/null +++ b/libc/include/android/legacy_threads_inlines.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#pragma once + +#include <sys/cdefs.h> + +#if __ANDROID_API__ < __ANDROID_API_R__ + +#define __BIONIC_THREADS_INLINE static __inline +#include <bits/threads_inlines.h> + +#endif diff --git a/libc/include/bits/fortify/poll.h b/libc/include/bits/fortify/poll.h index 718ee964c..660dfca01 100644 --- a/libc/include/bits/fortify/poll.h +++ b/libc/include/bits/fortify/poll.h @@ -37,15 +37,18 @@ int __ppoll64_chk(struct pollfd*, nfds_t, const struct timespec*, const sigset64 #if defined(__BIONIC_FORTIFY) #if __ANDROID_API__ >= __ANDROID_API_M__ +#define __bos_fd_count_trivially_safe(bos_val, fds, fd_count) \ + __bos_dynamic_check_impl_and((bos_val), >=, (sizeof(*fds) * (fd_count)), \ + (fd_count) <= __BIONIC_CAST(static_cast, nfds_t, -1) / sizeof(*fds)) + __BIONIC_FORTIFY_INLINE int poll(struct pollfd* const fds __pass_object_size, nfds_t fd_count, int timeout) __overloadable - __clang_error_if(__bos(fds) != __BIONIC_FORTIFY_UNKNOWN_SIZE && - __bos(fds) < sizeof(*fds) * fd_count, + __clang_error_if(__bos_unevaluated_lt(__bos(fds), sizeof(*fds) * fd_count), "in call to 'poll', fd_count is larger than the given buffer") { size_t bos_fds = __bos(fds); - if (bos_fds == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_fd_count_trivially_safe(bos_fds, fds, fd_count)) { return __call_bypassing_fortify(poll)(fds, fd_count, timeout); } return __poll_chk(fds, fd_count, timeout, bos_fds); @@ -54,12 +57,11 @@ int poll(struct pollfd* const fds __pass_object_size, nfds_t fd_count, int timeo __BIONIC_FORTIFY_INLINE int ppoll(struct pollfd* const fds __pass_object_size, nfds_t fd_count, const struct timespec* timeout, const sigset_t* mask) __overloadable - __clang_error_if(__bos(fds) != __BIONIC_FORTIFY_UNKNOWN_SIZE && - __bos(fds) < sizeof(*fds) * fd_count, + __clang_error_if(__bos_unevaluated_lt(__bos(fds), sizeof(*fds) * fd_count), "in call to 'ppoll', fd_count is larger than the given buffer") { size_t bos_fds = __bos(fds); - if (bos_fds == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_fd_count_trivially_safe(bos_fds, fds, fd_count)) { return __call_bypassing_fortify(ppoll)(fds, fd_count, timeout, mask); } return __ppoll_chk(fds, fd_count, timeout, mask, bos_fds); @@ -69,17 +71,18 @@ int ppoll(struct pollfd* const fds __pass_object_size, nfds_t fd_count, const st __BIONIC_FORTIFY_INLINE int ppoll64(struct pollfd* const fds __pass_object_size, nfds_t fd_count, const struct timespec* timeout, const sigset64_t* mask) __overloadable - __clang_error_if(__bos(fds) != __BIONIC_FORTIFY_UNKNOWN_SIZE && - __bos(fds) < sizeof(*fds) * fd_count, + __clang_error_if(__bos_unevaluated_lt(__bos(fds), sizeof(*fds) * fd_count), "in call to 'ppoll64', fd_count is larger than the given buffer") { size_t bos_fds = __bos(fds); - if (bos_fds == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_fd_count_trivially_safe(bos_fds, fds, fd_count)) { return __call_bypassing_fortify(ppoll64)(fds, fd_count, timeout, mask); } return __ppoll64_chk(fds, fd_count, timeout, mask, bos_fds); } #endif +#undef __bos_fd_count_trivially_safe + #endif /* __ANDROID_API__ >= __ANDROID_API_M__ */ #endif /* defined(__BIONIC_FORTIFY) */ diff --git a/libc/include/bits/fortify/socket.h b/libc/include/bits/fortify/socket.h index 3d070c526..35fad3dfd 100644 --- a/libc/include/bits/fortify/socket.h +++ b/libc/include/bits/fortify/socket.h @@ -37,18 +37,15 @@ ssize_t __recvfrom_chk(int, void*, size_t, size_t, int, struct sockaddr*, #if defined(__BIONIC_FORTIFY) -#define __recvfrom_bad_size "'recvfrom' called with size bigger than buffer" -#define __sendto_bad_size "'sendto' called with size bigger than buffer" - #if __ANDROID_API__ >= __ANDROID_API_N__ __BIONIC_FORTIFY_INLINE ssize_t recvfrom(int fd, void* const buf __pass_object_size0, size_t len, int flags, struct sockaddr* src_addr, socklen_t* addr_len) __overloadable - __clang_error_if(__bos(buf) != __BIONIC_FORTIFY_UNKNOWN_SIZE && __bos(buf) < len, - __recvfrom_bad_size) { + __clang_error_if(__bos_unevaluated_lt(__bos0(buf), len), + "'recvfrom' called with size bigger than buffer") { size_t bos = __bos0(buf); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_not_lt(bos, len)) { return __call_bypassing_fortify(recvfrom)(fd, buf, len, flags, src_addr, addr_len); } return __recvfrom_chk(fd, buf, len, bos, flags, src_addr, addr_len); @@ -59,11 +56,11 @@ ssize_t recvfrom(int fd, void* const buf __pass_object_size0, size_t len, int fl __BIONIC_FORTIFY_INLINE ssize_t sendto(int fd, const void* const buf __pass_object_size0, size_t len, int flags, const struct sockaddr* dest_addr, socklen_t addr_len) __overloadable - __clang_error_if(__bos0(buf) != __BIONIC_FORTIFY_UNKNOWN_SIZE && __bos0(buf) < len, - __sendto_bad_size) { + __clang_error_if(__bos_unevaluated_lt(__bos0(buf), len), + "'sendto' called with size bigger than buffer") { size_t bos = __bos0(buf); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_not_lt(bos, len)) { return __call_bypassing_fortify(sendto)(fd, buf, len, flags, dest_addr, addr_len); } return __sendto_chk(fd, buf, len, bos, flags, dest_addr, addr_len); @@ -73,7 +70,7 @@ ssize_t sendto(int fd, const void* const buf __pass_object_size0, size_t len, in __BIONIC_FORTIFY_INLINE ssize_t recv(int socket, void* const buf __pass_object_size0, size_t len, int flags) __overloadable - __clang_error_if(__bos0(buf) != __BIONIC_FORTIFY_UNKNOWN_SIZE && __bos0(buf) < len, + __clang_error_if(__bos_unevaluated_lt(__bos0(buf), len), "'recv' called with size bigger than buffer") { return recvfrom(socket, buf, len, flags, NULL, 0); } @@ -81,11 +78,9 @@ ssize_t recv(int socket, void* const buf __pass_object_size0, size_t len, int fl __BIONIC_FORTIFY_INLINE ssize_t send(int socket, const void* const buf __pass_object_size0, size_t len, int flags) __overloadable - __clang_error_if(__bos0(buf) != __BIONIC_FORTIFY_UNKNOWN_SIZE && __bos0(buf) < len, + __clang_error_if(__bos_unevaluated_lt(__bos0(buf), len), "'send' called with size bigger than buffer") { return sendto(socket, buf, len, flags, NULL, 0); } -#undef __recvfrom_bad_size -#undef __sendto_bad_size #endif /* __BIONIC_FORTIFY */ diff --git a/libc/include/bits/fortify/stat.h b/libc/include/bits/fortify/stat.h index b248aca90..30c836264 100644 --- a/libc/include/bits/fortify/stat.h +++ b/libc/include/bits/fortify/stat.h @@ -33,7 +33,6 @@ mode_t __umask_chk(mode_t) __INTRODUCED_IN(18); #if defined(__BIONIC_FORTIFY) -#define __umask_invalid_mode_str "'umask' called with invalid mode" #if __ANDROID_API__ >= __ANDROID_API_J_MR2__ /* Abuse enable_if to make this an overload of umask. */ @@ -41,11 +40,9 @@ __BIONIC_FORTIFY_INLINE mode_t umask(mode_t mode) __overloadable __enable_if(1, "") - __clang_error_if(mode & ~0777, __umask_invalid_mode_str) { + __clang_error_if(mode & ~0777, "'umask' called with invalid mode") { return __umask_chk(mode); } #endif /* __ANDROID_API__ >= __ANDROID_API_J_MR2__ */ -#undef __umask_invalid_mode_str - #endif /* defined(__BIONIC_FORTIFY) */ diff --git a/libc/include/bits/fortify/stdio.h b/libc/include/bits/fortify/stdio.h index 0b5700a0a..6e47dafee 100644 --- a/libc/include/bits/fortify/stdio.h +++ b/libc/include/bits/fortify/stdio.h @@ -57,8 +57,7 @@ int vsprintf(char* const __pass_object_size dest, const char* format, va_list ap __BIONIC_ERROR_FUNCTION_VISIBILITY int snprintf(char* dest, size_t size, const char* format) __overloadable - __enable_if(__bos(dest) != __BIONIC_FORTIFY_UNKNOWN_SIZE && - __bos(dest) < __builtin_strlen(format), + __enable_if(__bos_unevaluated_lt(__bos(dest), __builtin_strlen(format)), "format string will always overflow destination buffer") __errorattr("format string will always overflow destination buffer"); @@ -75,8 +74,7 @@ int snprintf(char* const __pass_object_size dest, size_t size, const char* forma __BIONIC_ERROR_FUNCTION_VISIBILITY int sprintf(char* dest, const char* format) __overloadable - __enable_if(__bos(dest) != __BIONIC_FORTIFY_UNKNOWN_SIZE && - __bos(dest) < __builtin_strlen(format), + __enable_if(__bos_unevaluated_lt(__bos(dest), __builtin_strlen(format)), "format string will always overflow destination buffer") __errorattr("format string will always overflow destination buffer"); @@ -91,16 +89,20 @@ int sprintf(char* const __pass_object_size dest, const char* format, ...) __over #endif /* __ANDROID_API__ >= __ANDROID_API_J_MR1__ */ #if __ANDROID_API__ >= __ANDROID_API_N__ +#define __bos_trivially_not_lt_mul(bos_val, size, count) \ + __bos_dynamic_check_impl_and(bos_val, >=, (size) * (count), \ + !__unsafe_check_mul_overflow(size, count)) + __BIONIC_FORTIFY_INLINE size_t fread(void* const __pass_object_size0 buf, size_t size, size_t count, FILE* stream) __overloadable __clang_error_if(__unsafe_check_mul_overflow(size, count), "in call to 'fread', size * count overflows") - __clang_error_if(__bos(buf) != __BIONIC_FORTIFY_UNKNOWN_SIZE && size * count > __bos(buf), + __clang_error_if(__bos_unevaluated_lt(__bos0(buf), size * count), "in call to 'fread', size * count is too large for the given buffer") { size_t bos = __bos0(buf); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_not_lt_mul(bos, size, count)) { return __call_bypassing_fortify(fread)(buf, size, count, stream); } return __fread_chk(buf, size, count, stream, bos); @@ -111,16 +113,17 @@ size_t fwrite(const void* const __pass_object_size0 buf, size_t size, size_t cou __overloadable __clang_error_if(__unsafe_check_mul_overflow(size, count), "in call to 'fwrite', size * count overflows") - __clang_error_if(__bos(buf) != __BIONIC_FORTIFY_UNKNOWN_SIZE && size * count > __bos(buf), + __clang_error_if(__bos_unevaluated_lt(__bos0(buf), size * count), "in call to 'fwrite', size * count is too large for the given buffer") { size_t bos = __bos0(buf); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_not_lt_mul(bos, size, count)) { return __call_bypassing_fortify(fwrite)(buf, size, count, stream); } return __fwrite_chk(buf, size, count, stream, bos); } +#undef __bos_trivially_not_lt_mul #endif /* __ANDROID_API__ >= __ANDROID_API_N__ */ #if __ANDROID_API__ >= __ANDROID_API_J_MR1__ @@ -128,11 +131,11 @@ __BIONIC_FORTIFY_INLINE char* fgets(char* const __pass_object_size dest, int size, FILE* stream) __overloadable __clang_error_if(size < 0, "in call to 'fgets', size should not be negative") - __clang_error_if(size > __bos(dest), + __clang_error_if(__bos_unevaluated_lt(__bos(dest), size), "in call to 'fgets', size is larger than the destination buffer") { size_t bos = __bos(dest); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_dynamic_check_impl_and(bos, >=, (size_t)size, size >= 0)) { return __call_bypassing_fortify(fgets)(dest, size, stream); } diff --git a/libc/include/bits/fortify/stdlib.h b/libc/include/bits/fortify/stdlib.h index d47c0b02a..0bb3d0d66 100644 --- a/libc/include/bits/fortify/stdlib.h +++ b/libc/include/bits/fortify/stdlib.h @@ -31,18 +31,16 @@ #endif #if defined(__BIONIC_FORTIFY) -#define __realpath_buf_too_small_str \ - "'realpath' output parameter must be NULL or a pointer to a buffer with >= PATH_MAX bytes" /* PATH_MAX is unavailable without polluting the namespace, but it's always 4096 on Linux */ #define __PATH_MAX 4096 char* realpath(const char* path, char* resolved) - __clang_error_if(__bos(resolved) != __BIONIC_FORTIFY_UNKNOWN_SIZE && - __bos(resolved) < __PATH_MAX, __realpath_buf_too_small_str) + __clang_error_if(__bos_unevaluated_lt(__bos(resolved), __PATH_MAX), + "'realpath' output parameter must be NULL or a pointer to a buffer " + "with >= PATH_MAX bytes") __clang_error_if(!path, "'realpath': NULL path is never correct; flipped arguments?"); /* No need for a definition; the only issues we can catch are at compile-time. */ #undef __PATH_MAX -#undef __realpath_buf_too_small_str #endif /* defined(__BIONIC_FORTIFY) */ diff --git a/libc/include/bits/fortify/string.h b/libc/include/bits/fortify/string.h index 14bb1335b..1e129868c 100644 --- a/libc/include/bits/fortify/string.h +++ b/libc/include/bits/fortify/string.h @@ -44,17 +44,25 @@ extern void* __memrchr_real(const void*, int, size_t) __RENAME(memrchr); __BIONIC_FORTIFY_INLINE void* memcpy(void* const dst __pass_object_size0, const void* src, size_t copy_amount) __overloadable - __clang_error_if(__bos0(dst) != __BIONIC_FORTIFY_UNKNOWN_SIZE && __bos0(dst) < copy_amount, + __clang_error_if(__bos_unevaluated_lt(__bos0(dst), copy_amount), "'memcpy' called with size bigger than buffer") { - return __builtin___memcpy_chk(dst, src, copy_amount, __bos0(dst)); + size_t bos_dst = __bos0(dst); + if (__bos_trivially_not_lt(bos_dst, copy_amount)) { + return __builtin_memcpy(dst, src, copy_amount); + } + return __builtin___memcpy_chk(dst, src, copy_amount, bos_dst); } __BIONIC_FORTIFY_INLINE void* memmove(void* const dst __pass_object_size0, const void* src, size_t len) __overloadable - __clang_error_if(__bos0(dst) != __BIONIC_FORTIFY_UNKNOWN_SIZE && __bos0(dst) < len, + __clang_error_if(__bos_unevaluated_lt(__bos0(dst), len), "'memmove' called with size bigger than buffer") { - return __builtin___memmove_chk(dst, src, len, __bos0(dst)); + size_t bos_dst = __bos0(dst); + if (__bos_trivially_not_lt(bos_dst, len)) { + return __builtin_memmove(dst, src, len); + } + return __builtin___memmove_chk(dst, src, len, bos_dst); } #endif /* __ANDROID_API__ >= __ANDROID_API_J_MR1__ */ @@ -62,10 +70,13 @@ void* memmove(void* const dst __pass_object_size0, const void* src, size_t len) __BIONIC_FORTIFY_INLINE char* stpcpy(char* const dst __pass_object_size, const char* src) __overloadable - __clang_error_if(__bos(dst) != __BIONIC_FORTIFY_UNKNOWN_SIZE && - __bos(dst) <= __builtin_strlen(src), + __clang_error_if(__bos_unevaluated_le(__bos(dst), __builtin_strlen(src)), "'stpcpy' called with string bigger than buffer") { - return __builtin___stpcpy_chk(dst, src, __bos(dst)); + size_t bos_dst = __bos(dst); + if (__bos_trivially_not_le(bos_dst, __builtin_strlen(src))) { + return __builtin_stpcpy(dst, src); + } + return __builtin___stpcpy_chk(dst, src, bos_dst); } #endif /* __ANDROID_API__ >= __ANDROID_API_L__ */ @@ -73,10 +84,13 @@ char* stpcpy(char* const dst __pass_object_size, const char* src) __BIONIC_FORTIFY_INLINE char* strcpy(char* const dst __pass_object_size, const char* src) __overloadable - __clang_error_if(__bos(dst) != __BIONIC_FORTIFY_UNKNOWN_SIZE && - __bos(dst) <= __builtin_strlen(src), + __clang_error_if(__bos_unevaluated_le(__bos(dst), __builtin_strlen(src)), "'strcpy' called with string bigger than buffer") { - return __builtin___strcpy_chk(dst, src, __bos(dst)); + size_t bos_dst = __bos(dst); + if (__bos_trivially_not_le(bos_dst, __builtin_strlen(src))) { + return __builtin_strcpy(dst, src); + } + return __builtin___strcpy_chk(dst, src, bos_dst); } __BIONIC_FORTIFY_INLINE @@ -92,11 +106,15 @@ char* strncat(char* const dst __pass_object_size, const char* src, size_t n) __o __BIONIC_FORTIFY_INLINE void* memset(void* const s __pass_object_size0, int c, size_t n) __overloadable - __clang_error_if(__bos0(s) != __BIONIC_FORTIFY_UNKNOWN_SIZE && __bos0(s) < n, + __clang_error_if(__bos_unevaluated_lt(__bos0(s), n), "'memset' called with size bigger than buffer") /* If you're a user who wants this warning to go away: use `(&memset)(foo, bar, baz)`. */ __clang_warning_if(c && !n, "'memset' will set 0 bytes; maybe the arguments got flipped?") { - return __builtin___memset_chk(s, c, n, __bos0(s)); + size_t bos = __bos0(s); + if (__bos_trivially_not_lt(bos, n)) { + return __builtin_memset(s, c, n); + } + return __builtin___memset_chk(s, c, n, bos); } #endif /* __ANDROID_API__ >= __ANDROID_API_J_MR1__ */ @@ -105,7 +123,7 @@ __BIONIC_FORTIFY_INLINE void* memchr(const void* const s __pass_object_size, int c, size_t n) __overloadable { size_t bos = __bos(s); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_ge(bos, n)) { return __builtin_memchr(s, c, n); } @@ -116,7 +134,7 @@ __BIONIC_FORTIFY_INLINE void* __memrchr_fortify(const void* const __pass_object_size s, int c, size_t n) __overloadable { size_t bos = __bos(s); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_ge(bos, n)) { return __memrchr_real(s, c, n); } @@ -177,24 +195,11 @@ size_t strlcat(char* const dst __pass_object_size, const char* src, size_t size) return __strlcat_chk(dst, src, size, bos); } -/* - * If we can evaluate the size of s at compile-time, just call __builtin_strlen - * on it directly. This makes it way easier for compilers to fold things like - * strlen("Foo") into a constant, as users would expect. -1ULL is chosen simply - * because it's large. - */ -__BIONIC_FORTIFY_INLINE -size_t strlen(const char* const s __pass_object_size) - __overloadable __enable_if(__builtin_strlen(s) != -1ULL, - "enabled if s is a known good string.") { - return __builtin_strlen(s); -} - __BIONIC_FORTIFY_INLINE size_t strlen(const char* const s __pass_object_size0) __overloadable { size_t bos = __bos0(s); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_gt(bos, __builtin_strlen(s))) { return __builtin_strlen(s); } diff --git a/libc/include/bits/fortify/unistd.h b/libc/include/bits/fortify/unistd.h index a07907baf..543c3c748 100644 --- a/libc/include/bits/fortify/unistd.h +++ b/libc/include/bits/fortify/unistd.h @@ -63,9 +63,12 @@ ssize_t __readlinkat_chk(int dirfd, const char*, char*, size_t, size_t) __INTROD __clang_error_if((what) > SSIZE_MAX, "in call to '" #fn "', '" #what "' must be <= SSIZE_MAX") #define __error_if_overflows_objectsize(what, objsize, fn) \ - __clang_error_if((objsize) != __BIONIC_FORTIFY_UNKNOWN_SIZE && (what) > (objsize), \ + __clang_error_if(__bos_unevaluated_lt((objsize), (what)), \ "in call to '" #fn "', '" #what "' bytes overflows the given object") +#define __bos_trivially_not_lt_no_overflow(bos_val, index) \ + __bos_dynamic_check_impl_and((bos_val), >=, (index), (bos_val) <= SSIZE_MAX) + #if __ANDROID_API__ >= __ANDROID_API_N__ __BIONIC_FORTIFY_INLINE char* getcwd(char* const __pass_object_size buf, size_t size) @@ -73,7 +76,7 @@ char* getcwd(char* const __pass_object_size buf, size_t size) __error_if_overflows_objectsize(size, __bos(buf), getcwd) { size_t bos = __bos(buf); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_not_lt(bos, size)) { return __call_bypassing_fortify(getcwd)(buf, size); } @@ -89,7 +92,7 @@ ssize_t pread(int fd, void* const __pass_object_size0 buf, size_t count, off_t o __error_if_overflows_objectsize(count, __bos0(buf), pread) { size_t bos = __bos0(buf); - if (count == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_not_lt_no_overflow(bos, count)) { return __PREAD_PREFIX(real)(fd, buf, count, offset); } @@ -103,7 +106,7 @@ ssize_t pread64(int fd, void* const __pass_object_size0 buf, size_t count, off64 __error_if_overflows_objectsize(count, __bos0(buf), pread64) { size_t bos = __bos0(buf); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_not_lt_no_overflow(bos, count)) { return __pread64_real(fd, buf, count, offset); } @@ -119,7 +122,7 @@ ssize_t pwrite(int fd, const void* const __pass_object_size0 buf, size_t count, __error_if_overflows_objectsize(count, __bos0(buf), pwrite) { size_t bos = __bos0(buf); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_not_lt_no_overflow(bos, count)) { return __PWRITE_PREFIX(real)(fd, buf, count, offset); } @@ -133,7 +136,7 @@ ssize_t pwrite64(int fd, const void* const __pass_object_size0 buf, size_t count __error_if_overflows_objectsize(count, __bos0(buf), pwrite64) { size_t bos = __bos0(buf); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_not_lt_no_overflow(bos, count)) { return __pwrite64_real(fd, buf, count, offset); } @@ -149,7 +152,7 @@ ssize_t read(int fd, void* const __pass_object_size0 buf, size_t count) __error_if_overflows_objectsize(count, __bos0(buf), read) { size_t bos = __bos0(buf); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_not_lt_no_overflow(bos, count)) { return __call_bypassing_fortify(read)(fd, buf, count); } @@ -165,7 +168,7 @@ ssize_t write(int fd, const void* const __pass_object_size0 buf, size_t count) __error_if_overflows_objectsize(count, __bos0(buf), write) { size_t bos = __bos0(buf); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_not_lt_no_overflow(bos, count)) { return __call_bypassing_fortify(write)(fd, buf, count); } @@ -181,7 +184,7 @@ ssize_t readlink(const char* path, char* const __pass_object_size buf, size_t si __error_if_overflows_objectsize(size, __bos(buf), readlink) { size_t bos = __bos(buf); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_not_lt_no_overflow(bos, size)) { return __call_bypassing_fortify(readlink)(path, buf, size); } @@ -195,7 +198,7 @@ ssize_t readlinkat(int dirfd, const char* path, char* const __pass_object_size b __error_if_overflows_objectsize(size, __bos(buf), readlinkat) { size_t bos = __bos(buf); - if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { + if (__bos_trivially_not_lt_no_overflow(bos, size)) { return __call_bypassing_fortify(readlinkat)(dirfd, path, buf, size); } @@ -203,6 +206,7 @@ ssize_t readlinkat(int dirfd, const char* path, char* const __pass_object_size b } #endif /* __ANDROID_API__ >= __ANDROID_API_M__ */ +#undef __bos_trivially_not_lt_no_overflow #undef __enable_if_no_overflow_ssizet #undef __error_if_overflows_objectsize #undef __error_if_overflows_ssizet diff --git a/libc/include/bits/glibc-syscalls.h b/libc/include/bits/glibc-syscalls.h index 52eff56e3..6940b3e1c 100644 --- a/libc/include/bits/glibc-syscalls.h +++ b/libc/include/bits/glibc-syscalls.h @@ -1,6 +1,5 @@ -/* Generated by gensyscalls.py. Do not edit. */ -#ifndef _BIONIC_BITS_GLIBC_SYSCALLS_H_ -#define _BIONIC_BITS_GLIBC_SYSCALLS_H_ +/* Generated file. Do not edit. */ +#pragma once #if defined(__NR__llseek) #define SYS__llseek __NR__llseek #endif @@ -61,12 +60,6 @@ #if defined(__NR_brk) #define SYS_brk __NR_brk #endif -#if defined(__NR_cachectl) - #define SYS_cachectl __NR_cachectl -#endif -#if defined(__NR_cacheflush) - #define SYS_cacheflush __NR_cacheflush -#endif #if defined(__NR_capget) #define SYS_capget __NR_capget #endif @@ -91,18 +84,33 @@ #if defined(__NR_clock_adjtime) #define SYS_clock_adjtime __NR_clock_adjtime #endif +#if defined(__NR_clock_adjtime64) + #define SYS_clock_adjtime64 __NR_clock_adjtime64 +#endif #if defined(__NR_clock_getres) #define SYS_clock_getres __NR_clock_getres #endif +#if defined(__NR_clock_getres_time64) + #define SYS_clock_getres_time64 __NR_clock_getres_time64 +#endif #if defined(__NR_clock_gettime) #define SYS_clock_gettime __NR_clock_gettime #endif +#if defined(__NR_clock_gettime64) + #define SYS_clock_gettime64 __NR_clock_gettime64 +#endif #if defined(__NR_clock_nanosleep) #define SYS_clock_nanosleep __NR_clock_nanosleep #endif +#if defined(__NR_clock_nanosleep_time64) + #define SYS_clock_nanosleep_time64 __NR_clock_nanosleep_time64 +#endif #if defined(__NR_clock_settime) #define SYS_clock_settime __NR_clock_settime #endif +#if defined(__NR_clock_settime64) + #define SYS_clock_settime64 __NR_clock_settime64 +#endif #if defined(__NR_clone) #define SYS_clone __NR_clone #endif @@ -268,6 +276,9 @@ #if defined(__NR_futex) #define SYS_futex __NR_futex #endif +#if defined(__NR_futex_time64) + #define SYS_futex_time64 __NR_futex_time64 +#endif #if defined(__NR_futimesat) #define SYS_futimesat __NR_futimesat #endif @@ -421,12 +432,24 @@ #if defined(__NR_io_pgetevents) #define SYS_io_pgetevents __NR_io_pgetevents #endif +#if defined(__NR_io_pgetevents_time64) + #define SYS_io_pgetevents_time64 __NR_io_pgetevents_time64 +#endif #if defined(__NR_io_setup) #define SYS_io_setup __NR_io_setup #endif #if defined(__NR_io_submit) #define SYS_io_submit __NR_io_submit #endif +#if defined(__NR_io_uring_enter) + #define SYS_io_uring_enter __NR_io_uring_enter +#endif +#if defined(__NR_io_uring_register) + #define SYS_io_uring_register __NR_io_uring_register +#endif +#if defined(__NR_io_uring_setup) + #define SYS_io_uring_setup __NR_io_uring_setup +#endif #if defined(__NR_ioctl) #define SYS_ioctl __NR_ioctl #endif @@ -580,9 +603,15 @@ #if defined(__NR_mq_timedreceive) #define SYS_mq_timedreceive __NR_mq_timedreceive #endif +#if defined(__NR_mq_timedreceive_time64) + #define SYS_mq_timedreceive_time64 __NR_mq_timedreceive_time64 +#endif #if defined(__NR_mq_timedsend) #define SYS_mq_timedsend __NR_mq_timedsend #endif +#if defined(__NR_mq_timedsend_time64) + #define SYS_mq_timedsend_time64 __NR_mq_timedsend_time64 +#endif #if defined(__NR_mq_unlink) #define SYS_mq_unlink __NR_mq_unlink #endif @@ -670,6 +699,9 @@ #if defined(__NR_personality) #define SYS_personality __NR_personality #endif +#if defined(__NR_pidfd_send_signal) + #define SYS_pidfd_send_signal __NR_pidfd_send_signal +#endif #if defined(__NR_pipe) #define SYS_pipe __NR_pipe #endif @@ -694,6 +726,9 @@ #if defined(__NR_ppoll) #define SYS_ppoll __NR_ppoll #endif +#if defined(__NR_ppoll_time64) + #define SYS_ppoll_time64 __NR_ppoll_time64 +#endif #if defined(__NR_prctl) #define SYS_prctl __NR_prctl #endif @@ -724,6 +759,9 @@ #if defined(__NR_pselect6) #define SYS_pselect6 __NR_pselect6 #endif +#if defined(__NR_pselect6_time64) + #define SYS_pselect6_time64 __NR_pselect6_time64 +#endif #if defined(__NR_ptrace) #define SYS_ptrace __NR_ptrace #endif @@ -775,6 +813,9 @@ #if defined(__NR_recvmmsg) #define SYS_recvmmsg __NR_recvmmsg #endif +#if defined(__NR_recvmmsg_time64) + #define SYS_recvmmsg_time64 __NR_recvmmsg_time64 +#endif #if defined(__NR_recvmsg) #define SYS_recvmsg __NR_recvmsg #endif @@ -826,6 +867,9 @@ #if defined(__NR_rt_sigtimedwait) #define SYS_rt_sigtimedwait __NR_rt_sigtimedwait #endif +#if defined(__NR_rt_sigtimedwait_time64) + #define SYS_rt_sigtimedwait_time64 __NR_rt_sigtimedwait_time64 +#endif #if defined(__NR_rt_tgsigqueueinfo) #define SYS_rt_tgsigqueueinfo __NR_rt_tgsigqueueinfo #endif @@ -850,6 +894,9 @@ #if defined(__NR_sched_rr_get_interval) #define SYS_sched_rr_get_interval __NR_sched_rr_get_interval #endif +#if defined(__NR_sched_rr_get_interval_time64) + #define SYS_sched_rr_get_interval_time64 __NR_sched_rr_get_interval_time64 +#endif #if defined(__NR_sched_setaffinity) #define SYS_sched_setaffinity __NR_sched_setaffinity #endif @@ -886,6 +933,9 @@ #if defined(__NR_semtimedop) #define SYS_semtimedop __NR_semtimedop #endif +#if defined(__NR_semtimedop_time64) + #define SYS_semtimedop_time64 __NR_semtimedop_time64 +#endif #if defined(__NR_send) #define SYS_send __NR_send #endif @@ -1123,9 +1173,6 @@ #if defined(__NR_syslog) #define SYS_syslog __NR_syslog #endif -#if defined(__NR_sysmips) - #define SYS_sysmips __NR_sysmips -#endif #if defined(__NR_tee) #define SYS_tee __NR_tee #endif @@ -1147,11 +1194,14 @@ #if defined(__NR_timer_gettime) #define SYS_timer_gettime __NR_timer_gettime #endif +#if defined(__NR_timer_gettime64) + #define SYS_timer_gettime64 __NR_timer_gettime64 +#endif #if defined(__NR_timer_settime) #define SYS_timer_settime __NR_timer_settime #endif -#if defined(__NR_timerfd) - #define SYS_timerfd __NR_timerfd +#if defined(__NR_timer_settime64) + #define SYS_timer_settime64 __NR_timer_settime64 #endif #if defined(__NR_timerfd_create) #define SYS_timerfd_create __NR_timerfd_create @@ -1159,9 +1209,15 @@ #if defined(__NR_timerfd_gettime) #define SYS_timerfd_gettime __NR_timerfd_gettime #endif +#if defined(__NR_timerfd_gettime64) + #define SYS_timerfd_gettime64 __NR_timerfd_gettime64 +#endif #if defined(__NR_timerfd_settime) #define SYS_timerfd_settime __NR_timerfd_settime #endif +#if defined(__NR_timerfd_settime64) + #define SYS_timerfd_settime64 __NR_timerfd_settime64 +#endif #if defined(__NR_times) #define SYS_times __NR_times #endif @@ -1219,6 +1275,9 @@ #if defined(__NR_utimensat) #define SYS_utimensat __NR_utimensat #endif +#if defined(__NR_utimensat_time64) + #define SYS_utimensat_time64 __NR_utimensat_time64 +#endif #if defined(__NR_utimes) #define SYS_utimes __NR_utimes #endif @@ -1255,4 +1314,3 @@ #if defined(__NR_writev) #define SYS_writev __NR_writev #endif -#endif /* _BIONIC_BITS_GLIBC_SYSCALLS_H_ */ diff --git a/libc/include/bits/seek_constants.h b/libc/include/bits/seek_constants.h index 6b8860689..6f3f22d75 100644 --- a/libc/include/bits/seek_constants.h +++ b/libc/include/bits/seek_constants.h @@ -39,3 +39,23 @@ #define SEEK_CUR 1 /** Seek relative to the end of the file. */ #define SEEK_END 2 + +#if defined(__USE_GNU) + +/** + * Seek to the first data (non-hole) location in the file + * greater than or equal to the given offset. + * + * See [lseek(2)](http://man7.org/linux/man-pages/man2/lseek.2.html). + */ +#define SEEK_DATA 3 + +/** + * Seek to the first hole (non-data) location in the file + * greater than or equal to the given offset. + * + * See [lseek(2)](http://man7.org/linux/man-pages/man2/lseek.2.html). + */ +#define SEEK_HOLE 4 + +#endif diff --git a/libc/include/bits/threads_inlines.h b/libc/include/bits/threads_inlines.h new file mode 100644 index 000000000..1130b3a55 --- /dev/null +++ b/libc/include/bits/threads_inlines.h @@ -0,0 +1,207 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#pragma once + +#include <threads.h> + +#include <errno.h> +#include <sched.h> +#include <stdlib.h> + +#if !defined(__BIONIC_THREADS_INLINE) +#define __BIONIC_THREADS_INLINE static __inline +#endif + +__BEGIN_DECLS + +static __inline int __bionic_thrd_error(int __pthread_code) { + switch (__pthread_code) { + case 0: return 0; + case ENOMEM: return thrd_nomem; + case ETIMEDOUT: return thrd_timedout; + case EBUSY: return thrd_busy; + default: return thrd_error; + } +} + +__BIONIC_THREADS_INLINE void call_once(once_flag* __flag, + void (*__function)(void)) { + pthread_once(__flag, __function); +} + + + +__BIONIC_THREADS_INLINE int cnd_broadcast(cnd_t* __cnd) { + return __bionic_thrd_error(pthread_cond_broadcast(__cnd)); +} + +__BIONIC_THREADS_INLINE void cnd_destroy(cnd_t* __cnd) { + pthread_cond_destroy(__cnd); +} + +__BIONIC_THREADS_INLINE int cnd_init(cnd_t* __cnd) { + return __bionic_thrd_error(pthread_cond_init(__cnd, NULL)); +} + +__BIONIC_THREADS_INLINE int cnd_signal(cnd_t* __cnd) { + return __bionic_thrd_error(pthread_cond_signal(__cnd)); +} + +__BIONIC_THREADS_INLINE int cnd_timedwait(cnd_t* __cnd, + mtx_t* __mtx, + const struct timespec* __timeout) { + return __bionic_thrd_error(pthread_cond_timedwait(__cnd, __mtx, __timeout)); +} + +__BIONIC_THREADS_INLINE int cnd_wait(cnd_t* __cnd, mtx_t* __mtx) { + return __bionic_thrd_error(pthread_cond_wait(__cnd, __mtx)); +} + + + +__BIONIC_THREADS_INLINE void mtx_destroy(mtx_t* __mtx) { + pthread_mutex_destroy(__mtx); +} + +__BIONIC_THREADS_INLINE int mtx_init(mtx_t* __mtx, int __type) { + int __pthread_type = (__type & mtx_recursive) ? PTHREAD_MUTEX_RECURSIVE + : PTHREAD_MUTEX_NORMAL; + __type &= ~mtx_recursive; + if (__type != mtx_plain && __type != mtx_timed) return thrd_error; + + pthread_mutexattr_t __attr; + pthread_mutexattr_init(&__attr); + pthread_mutexattr_settype(&__attr, __pthread_type); + return __bionic_thrd_error(pthread_mutex_init(__mtx, &__attr)); +} + +__BIONIC_THREADS_INLINE int mtx_lock(mtx_t* __mtx) { + return __bionic_thrd_error(pthread_mutex_lock(__mtx)); +} + +__BIONIC_THREADS_INLINE int mtx_timedlock(mtx_t* __mtx, + const struct timespec* __timeout) { + return __bionic_thrd_error(pthread_mutex_timedlock(__mtx, __timeout)); +} + +__BIONIC_THREADS_INLINE int mtx_trylock(mtx_t* __mtx) { + return __bionic_thrd_error(pthread_mutex_trylock(__mtx)); +} + +__BIONIC_THREADS_INLINE int mtx_unlock(mtx_t* __mtx) { + return __bionic_thrd_error(pthread_mutex_unlock(__mtx)); +} + + + +struct __bionic_thrd_data { + thrd_start_t __func; + void* __arg; +}; + +static inline void* __bionic_thrd_trampoline(void* __arg) { + struct __bionic_thrd_data __data = + *__BIONIC_CAST(static_cast, struct __bionic_thrd_data*, __arg); + free(__arg); + int __result = __data.__func(__data.__arg); + return __BIONIC_CAST(reinterpret_cast, void*, + __BIONIC_CAST(static_cast, uintptr_t, __result)); +} + +__BIONIC_THREADS_INLINE int thrd_create(thrd_t* __thrd, + thrd_start_t __func, + void* __arg) { + struct __bionic_thrd_data* __pthread_arg = + __BIONIC_CAST(static_cast, struct __bionic_thrd_data*, + malloc(sizeof(struct __bionic_thrd_data))); + __pthread_arg->__func = __func; + __pthread_arg->__arg = __arg; + int __result = __bionic_thrd_error(pthread_create(__thrd, NULL, + __bionic_thrd_trampoline, + __pthread_arg)); + if (__result != thrd_success) free(__pthread_arg); + return __result; +} + +__BIONIC_THREADS_INLINE thrd_t thrd_current(void) { + return pthread_self(); +} + +__BIONIC_THREADS_INLINE int thrd_detach(thrd_t __thrd) { + return __bionic_thrd_error(pthread_detach(__thrd)); +} + +__BIONIC_THREADS_INLINE int thrd_equal(thrd_t __lhs, thrd_t __rhs) { + return pthread_equal(__lhs, __rhs); +} + +__BIONIC_THREADS_INLINE void thrd_exit(int __result) { + pthread_exit(__BIONIC_CAST(reinterpret_cast, void*, + __BIONIC_CAST(static_cast, uintptr_t, __result))); +} + +__BIONIC_THREADS_INLINE int thrd_join(thrd_t __thrd, int* __result) { + void* __pthread_result; + if (pthread_join(__thrd, &__pthread_result) != 0) return thrd_error; + if (__result) { + *__result = __BIONIC_CAST(reinterpret_cast, intptr_t, __pthread_result); + } + return thrd_success; +} + +__BIONIC_THREADS_INLINE int thrd_sleep(const struct timespec* __duration, + struct timespec* __remaining) { + int __rc = nanosleep(__duration, __remaining); + if (__rc == 0) return 0; + return (errno == EINTR) ? -1 : -2; +} + +__BIONIC_THREADS_INLINE void thrd_yield(void) { + sched_yield(); +} + + + +__BIONIC_THREADS_INLINE int tss_create(tss_t* __key, tss_dtor_t __dtor) { + return __bionic_thrd_error(pthread_key_create(__key, __dtor)); +} + +__BIONIC_THREADS_INLINE void tss_delete(tss_t __key) { + pthread_key_delete(__key); +} + +__BIONIC_THREADS_INLINE void* tss_get(tss_t __key) { + return pthread_getspecific(__key); +} + +__BIONIC_THREADS_INLINE int tss_set(tss_t __key, void* __value) { + return __bionic_thrd_error(pthread_setspecific(__key, __value)); +} + +__END_DECLS diff --git a/libc/include/malloc.h b/libc/include/malloc.h index eba18a82b..aa046b94f 100644 --- a/libc/include/malloc.h +++ b/libc/include/malloc.h @@ -125,7 +125,8 @@ struct mallinfo { /** * [mallinfo(3)](http://man7.org/linux/man-pages/man3/mallinfo.3.html) returns - * information about the current state of the heap. + * information about the current state of the heap. Note that mallinfo() is + * inherently unreliable and consider using malloc_info() instead. */ struct mallinfo mallinfo(void); diff --git a/libc/include/paths.h b/libc/include/paths.h index 0cf2789af..58540d974 100644 --- a/libc/include/paths.h +++ b/libc/include/paths.h @@ -47,7 +47,7 @@ #define _PATH_CONSOLE "/dev/console" /** Default shell search path. */ -#define _PATH_DEFPATH "/sbin:/system/sbin:/product/bin:/apex/com.android.runtime/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin" +#define _PATH_DEFPATH "/product/bin:/apex/com.android.runtime/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin" /** Path to the directory containing device files. */ #define _PATH_DEV "/dev/" diff --git a/libc/include/setjmp.h b/libc/include/setjmp.h index 195f2515a..67d3c2f66 100644 --- a/libc/include/setjmp.h +++ b/libc/include/setjmp.h @@ -65,18 +65,18 @@ typedef long jmp_buf[_JBLEN]; __BEGIN_DECLS -int _setjmp(jmp_buf __env); -void _longjmp(jmp_buf __env, int __value); +int _setjmp(jmp_buf __env) __returns_twice; +__noreturn void _longjmp(jmp_buf __env, int __value); -int setjmp(jmp_buf __env); -void longjmp(jmp_buf __env, int __value); +int setjmp(jmp_buf __env) __returns_twice; +__noreturn void longjmp(jmp_buf __env, int __value); #define setjmp(__env) setjmp(__env) -int sigsetjmp(sigjmp_buf __env, int __save_signal_mask) - __INTRODUCED_IN_ARM(9) __INTRODUCED_IN_MIPS(12) __INTRODUCED_IN_X86(12); -void siglongjmp(sigjmp_buf __env, int __value) - __INTRODUCED_IN_ARM(9) __INTRODUCED_IN_MIPS(12) __INTRODUCED_IN_X86(12); +int sigsetjmp(sigjmp_buf __env, int __save_signal_mask) __returns_twice __INTRODUCED_IN_ARM(9) + __INTRODUCED_IN_MIPS(12) __INTRODUCED_IN_X86(12); +__noreturn void siglongjmp(sigjmp_buf __env, int __value) __INTRODUCED_IN_ARM(9) + __INTRODUCED_IN_MIPS(12) __INTRODUCED_IN_X86(12); __END_DECLS diff --git a/libc/include/sys/cdefs.h b/libc/include/sys/cdefs.h index a919a7922..dceb1165c 100644 --- a/libc/include/sys/cdefs.h +++ b/libc/include/sys/cdefs.h @@ -86,6 +86,7 @@ #define __noreturn __attribute__((__noreturn__)) #define __mallocfunc __attribute__((__malloc__)) #define __packed __attribute__((__packed__)) +#define __returns_twice __attribute__((__returns_twice__)) #define __unused __attribute__((__unused__)) #define __used __attribute__((__used__)) @@ -288,6 +289,30 @@ #define __pass_object_size __pass_object_size_n(__bos_level) #define __pass_object_size0 __pass_object_size_n(0) +/* Intended for use in unevaluated contexts, e.g. diagnose_if conditions. */ +#define __bos_unevaluated_lt(bos_val, val) \ + ((bos_val) != __BIONIC_FORTIFY_UNKNOWN_SIZE && (bos_val) < (val)) + +#define __bos_unevaluated_le(bos_val, val) \ + ((bos_val) != __BIONIC_FORTIFY_UNKNOWN_SIZE && (bos_val) <= (val)) + +/* Intended for use in evaluated contexts. */ +#define __bos_dynamic_check_impl_and(bos_val, op, index, cond) \ + (bos_val == __BIONIC_FORTIFY_UNKNOWN_SIZE || \ + (__builtin_constant_p(index) && bos_val op index && (cond))) + +#define __bos_dynamic_check_impl(bos_val, op, index) \ + __bos_dynamic_check_impl_and(bos_val, op, index, 1) + +#define __bos_trivially_ge(bos_val, index) __bos_dynamic_check_impl((bos_val), >=, (index)) + +#define __bos_trivially_gt(bos_val, index) __bos_dynamic_check_impl((bos_val), >, (index)) + +/* The names here are meant to match nicely with the __bos_unevaluated macros above. */ +#define __bos_trivially_not_lt __bos_trivially_ge +#define __bos_trivially_not_le __bos_trivially_gt + + #if defined(__BIONIC_FORTIFY) || defined(__BIONIC_DECLARE_FORTIFY_HELPERS) # define __BIONIC_INCLUDE_FORTIFY_HEADERS 1 #endif diff --git a/libc/include/sys/mman.h b/libc/include/sys/mman.h index 4073fbff7..89d6d07c3 100644 --- a/libc/include/sys/mman.h +++ b/libc/include/sys/mman.h @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #include <sys/types.h> -#include <asm/mman.h> +#include <linux/mman.h> __BEGIN_DECLS diff --git a/libc/include/threads.h b/libc/include/threads.h new file mode 100644 index 000000000..2c43b0b65 --- /dev/null +++ b/libc/include/threads.h @@ -0,0 +1,228 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#pragma once + +/** + * @file threads.h + * @brief C11 threads. + */ + +#include <sys/cdefs.h> + +#include <pthread.h> +#include <time.h> + +#define ONCE_FLAG_INIT PTHREAD_ONCE_INIT +#define TSS_DTOR_ITERATIONS PTHREAD_DESTRUCTOR_ITERATIONS + +/** The type for a condition variable. */ +typedef pthread_cond_t cnd_t; +/** The type for a thread. */ +typedef pthread_t thrd_t; +/** The type for a thread-specific storage key. */ +typedef pthread_key_t tss_t; +/** The type for a mutex. */ +typedef pthread_mutex_t mtx_t; + +/** The type for a thread-specific storage destructor. */ +typedef void (*tss_dtor_t)(void*); +/** The type of the function passed to thrd_create() to create a new thread. */ +typedef int (*thrd_start_t)(void*); + +/** The type used by call_once(). */ +typedef pthread_once_t once_flag; + +enum { + mtx_plain = 0x1, + mtx_recursive = 0x2, + mtx_timed = 0x4, +}; + +enum { + thrd_success = 0, + thrd_busy = 1, + thrd_error = 2, + thrd_nomem = 3, + thrd_timedout = 4, +}; + +#if !defined(__cplusplus) +#define thread_local _Thread_local +#endif + +__BEGIN_DECLS + +#if __ANDROID_API__ >= __ANDROID_API_R__ +// This file is implemented as static inlines before API level 30. + +/** Uses `__flag` to ensure that `__function` is called exactly once. */ +void call_once(once_flag* __flag, void (*__function)(void)); + + + +/** + * Unblocks all threads blocked on `__cond`. + */ +int cnd_broadcast(cnd_t* __cond); + +/** + * Destroys a condition variable. + */ +void cnd_destroy(cnd_t* __cond); + +/** + * Creates a condition variable. + */ +int cnd_init(cnd_t* __cond); + +/** + * Unblocks one thread blocked on `__cond`. + */ +int cnd_signal(cnd_t* __cond); + +/** + * Unlocks `__mutex` and blocks until `__cond` is signaled or `__timeout` occurs. + */ +int cnd_timedwait(cnd_t* __cond, mtx_t* __mutex, const struct timespec* __timeout); + +/** + * Unlocks `__mutex` and blocks until `__cond` is signaled. + */ +int cnd_wait(cnd_t* __cond, mtx_t* __mutex); + + + +/** + * Destroys a mutex. + */ +void mtx_destroy(mtx_t* __mutex); + +/** + * Creates a mutex. + */ +int mtx_init(mtx_t* __mutex, int __type); + +/** + * Blocks until `__mutex` is acquired. + */ +int mtx_lock(mtx_t* __mutex); + +/** + * Blocks until `__mutex` is acquired or `__timeout` expires. + */ +int mtx_timedlock(mtx_t* __mutex, const struct timespec* __timeout); + +/** + * Acquires `__mutex` or returns `thrd_busy`. + */ +int mtx_trylock(mtx_t* __mutex); + +/** + * Unlocks `__mutex`. + */ +int mtx_unlock(mtx_t* __mutex); + + + +/** + * Creates a new thread running `__function(__arg)`, and sets `*__thrd` to + * the new thread. + */ +int thrd_create(thrd_t* __thrd, thrd_start_t __function, void* __arg); + +/** + * Returns the `thrd_t` corresponding to the caller. + */ +thrd_t thrd_current(void); + +/** + * Tells the OS to automatically dispose of `__thrd` when it exits. + */ +int thrd_detach(thrd_t __thrd); + +/** + * Tests whether two threads are the same thread. + */ +int thrd_equal(thrd_t __lhs, thrd_t __rhs); + +/** + * Terminates the calling thread, setting its result to `__result`. + */ +void thrd_exit(int __result) __noreturn; + +/** + * Blocks until `__thrd` terminates. If `__result` is not null, `*__result` + * is set to the exiting thread's result. + */ +int thrd_join(thrd_t __thrd, int* __result); + +/** + * Blocks the caller for at least `__duration` unless a signal is delivered. + * If a signal causes the sleep to end early and `__remaining` is not null, + * `*__remaining` is set to the time remaining. + * + * Returns 0 on success, or -1 if a signal was delivered. + */ +int thrd_sleep(const struct timespec* __duration, struct timespec* __remaining); + +/** + * Request that other threads should be scheduled. + */ +void thrd_yield(void); + + + +/** + * Creates a thread-specific storage key with the associated destructor (which + * may be null). + */ +int tss_create(tss_t* __key, tss_dtor_t __dtor); + +/** + * Destroys a thread-specific storage key. + */ +void tss_delete(tss_t __key); + +/** + * Returns the value for the current thread held in the thread-specific storage + * identified by `__key`. + */ +void* tss_get(tss_t __key); + +/** + * Sets the current thread's value for the thread-specific storage identified + * by `__key` to `__value`. + */ +int tss_set(tss_t __key, void* __value); + +#endif + +__END_DECLS + +#include <android/legacy_threads_inlines.h> diff --git a/libc/include/unistd.h b/libc/include/unistd.h index 90173aa29..9000407c3 100644 --- a/libc/include/unistd.h +++ b/libc/include/unistd.h @@ -78,7 +78,7 @@ extern char** environ; __noreturn void _exit(int __status); pid_t fork(void); -pid_t vfork(void); +pid_t vfork(void) __returns_twice; pid_t getpid(void); pid_t gettid(void) __attribute_const__; pid_t getpgid(pid_t __pid); diff --git a/libc/kernel/README.TXT b/libc/kernel/README.md index 313dc0d0b..9036b9f55 100644 --- a/libc/kernel/README.TXT +++ b/libc/kernel/README.md @@ -1,11 +1,10 @@ -Bionic Kernel Header Files -========================== +# Bionic Kernel Header Files Bionic comes with a processed set of all of the uapi Linux kernel headers that can safely be included by userland applications and libraries. These clean headers are automatically generated by several scripts located -in the 'bionic/kernel/tools' directory. The tools process the original +in the `tools/` directory. The tools process the original unmodified kernel headers in order to get rid of many annoying declarations and constructs that usually result in compilation failure. @@ -18,36 +17,35 @@ They can be also included before or after any Bionic C library header. Description of the directories involved in generating the parsed kernel headers: - * 'external/kernel-headers/original/' + * `external/kernel-headers/original/` Contains the uapi kernel headers found in the android kernel. Note this also includes the header files that are generated by building the kernel sources. - * 'bionic/libc/kernel/uapi' + * `bionic/libc/kernel/uapi/` Contains the cleaned kernel headers and mirrors the directory structure - in 'external/kernel-headers/original/uapi/'. + in `external/kernel-headers/original/uapi/`. - * 'bionic/libc/kernel/tools' + * `bionic/libc/kernel/tools/` Contains various Python and shell scripts used to get and re-generate the headers. The tools to get/parse the headers: - * tools/generate_uapi_headers.sh + * `tools/generate_uapi_headers.sh` Checks out the android kernel and generates all uapi header files. copies all the changed files into external/kernel-headers. - * tools/clean_header.py + * `tools/clean_header.py` Prints the clean version of a given kernel header. With the -u option, this will also update the corresponding clean header file if its content has changed. You can also process more than one file with -u. - * tools/update_all.py + * `tools/update_all.py` Automatically update all clean headers from the content of - 'external/kernel-headers/original'. + `external/kernel-headers/original/`. -How To Update The Headers -========================= +## How To Update The Headers IMPORTANT IMPORTANT: @@ -56,15 +54,17 @@ NOT BREAK THE KERNEL <-> USER ABI, FOR EXAMPLE BY CHANGING THE SIZE OF A GIVEN TYPE. THIS TASK CANNOT BE EASILY AUTOMATED AT THE MOMENT. Download the Linux kernel source code: - +``` > mkdir kernel_src > cd kernel_src kernel_src> git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git +``` Then checkout the stable tag for the new kernel headers to import: - +``` kernel_src> cd linux-stable kernel_src/linux-stable> git checkout tags/vXXX +``` Before running the command to import the headers, make sure that you have done a lunch TARGET. The script uses a variable set by the lunch command @@ -72,16 +72,14 @@ to determine which directory to use as the destination directory. After running lunch, run this command to import the headers into the android source tree: - +``` bionic/libc/kernel/tools/generate_uapi_headers.sh --use-kernel-dir kernel_src +``` Next, run this command to copy the parsed files to bionic/libc/kernel/uapi: - +``` bionic/libc/kernel/tools/update_all.py - -Finally, run this command to regenerate the syscalls list: - - bionic/libc/tools/gensyscalls.py +``` After this, you will need to build/test the tree to make sure that these changes do not introduce any errors. diff --git a/libc/kernel/android/README.TXT b/libc/kernel/android/README.md index bc2efdee5..88062c0ec 100644 --- a/libc/kernel/android/README.TXT +++ b/libc/kernel/android/README.md @@ -2,7 +2,7 @@ The files under the uapi directory are android kernel uapi header files that exist in android kernels, but have not been upstreamed into the regular kernel. -None of these files will get updated automatically, and are frozen at their +None of these files are updated automatically, and are frozen at their current value. The files under the scsi directory are frozen copies of kernel scsi headers. @@ -12,6 +12,6 @@ maintainers manually copy-and-pasted these definitions into their own scsi headers and haven't substantially updated them in 15 years. The musl libc project has a similar set of definitions in its scsi headers. -These files are actually maintained in external/kernel-headers/modified/scsi. +These files are actually maintained in `external/kernel-headers/modified/scsi/`. Any modification should first be made there then copied into the scsi directory. diff --git a/libc/kernel/tools/update_all.py b/libc/kernel/tools/update_all.py index 0f30ecdae..9d5b02dee 100755 --- a/libc/kernel/tools/update_all.py +++ b/libc/kernel/tools/update_all.py @@ -4,7 +4,7 @@ import sys, cpp, kernel, glob, os, re, getopt, clean_header, subprocess, shutil from defaults import * from utils import * -def usage(): +def Usage(): print """\ usage: %(progname)s [kernel-original-path] [kernel-modified-path] @@ -24,7 +24,7 @@ def usage(): """ % { "progname" : os.path.basename(sys.argv[0]) } sys.exit(0) -def processFiles(updater, original_dir, modified_dir, src_rel_dir, update_rel_dir): +def ProcessFiles(updater, original_dir, modified_dir, src_rel_dir, update_rel_dir): # Delete the old headers before updating to the new headers. update_dir = os.path.join(get_kernel_dir(), update_rel_dir) shutil.rmtree(update_dir) @@ -64,15 +64,64 @@ def processFiles(updater, original_dir, modified_dir, src_rel_dir, update_rel_di update_path = os.path.join(update_rel_dir, rel_path) print "cleaning %s -> %s (%s)" % (src_str, update_path, state) + +# This lets us support regular system calls like __NR_write and also weird +# ones like __ARM_NR_cacheflush, where the NR doesn't come at the start. +def make__NR_name(name): + if name.startswith('__ARM_NR_'): + return name + else: + return '__NR_%s' % (name) + + +# Scan Linux kernel asm/unistd.h files containing __NR_* constants +# and write out equivalent SYS_* constants for glibc source compatibility. +def GenerateGlibcSyscallsHeader(updater): + libc_root = '%s/bionic/libc/' % os.environ['ANDROID_BUILD_TOP'] + + # Collect the set of all syscalls for all architectures. + syscalls = set() + pattern = re.compile(r'^\s*#\s*define\s*__NR_([a-z_]\S+)') + for unistd_h in ['kernel/uapi/asm-generic/unistd.h', + 'kernel/uapi/asm-arm/asm/unistd.h', + 'kernel/uapi/asm-arm/asm/unistd-common.h', + 'kernel/uapi/asm-arm/asm/unistd-eabi.h', + 'kernel/uapi/asm-arm/asm/unistd-oabi.h', + 'kernel/uapi/asm-x86/asm/unistd_32.h', + 'kernel/uapi/asm-x86/asm/unistd_64.h', + 'kernel/uapi/asm-x86/asm/unistd_x32.h']: + for line in open(os.path.join(libc_root, unistd_h)): + m = re.search(pattern, line) + if m: + nr_name = m.group(1) + if 'reserved' not in nr_name and 'unused' not in nr_name: + syscalls.add(nr_name) + + # Create a single file listing them all. + # Note that the input files include #if trickery, so even for a single + # architecture we don't know exactly which ones are available. + # https://b.corp.google.com/issues/37110151 + content = '/* Generated file. Do not edit. */\n' + content += '#pragma once\n' + + for syscall in sorted(syscalls): + nr_name = make__NR_name(syscall) + content += '#if defined(%s)\n' % nr_name + content += ' #define SYS_%s %s\n' % (syscall, nr_name) + content += '#endif\n' + + updater.editFile('%s/include/bits/glibc-syscalls.h' % libc_root, content) + + try: optlist, args = getopt.getopt(sys.argv[1:], '') except: # Unrecognized option sys.stderr.write("error: unrecognized option\n") - usage() + Usage() if len(optlist) > 0 or len(args) > 2: - usage() + Usage() if len(args) > 0: original_dir = args[0] @@ -91,10 +140,16 @@ if not os.path.isdir(modified_dir): panic("The kernel modified directory %s is not a directory\n" % modified_dir) updater = BatchFileUpdater() + # Process the original uapi headers first. -processFiles(updater, original_dir, modified_dir, "uapi", "uapi"), +ProcessFiles(updater, original_dir, modified_dir, "uapi", "uapi"), # Now process the special files. -processFiles(updater, original_dir, modified_dir, "scsi", os.path.join("android", "scsi", "scsi")) +ProcessFiles(updater, original_dir, modified_dir, "scsi", os.path.join("android", "scsi", "scsi")) updater.updateGitFiles() + +# Now re-generate the <bits/glibc-syscalls.h> from the new uapi headers. +updater = BatchFileUpdater() +GenerateGlibcSyscallsHeader(updater) +updater.updateGitFiles() diff --git a/libc/kernel/uapi/asm-arm/asm/unistd-common.h b/libc/kernel/uapi/asm-arm/asm/unistd-common.h index 824a7d30a..e7abfeb33 100644 --- a/libc/kernel/uapi/asm-arm/asm/unistd-common.h +++ b/libc/kernel/uapi/asm-arm/asm/unistd-common.h @@ -373,4 +373,30 @@ #define __NR_statx (__NR_SYSCALL_BASE + 397) #define __NR_rseq (__NR_SYSCALL_BASE + 398) #define __NR_io_pgetevents (__NR_SYSCALL_BASE + 399) +#define __NR_migrate_pages (__NR_SYSCALL_BASE + 400) +#define __NR_kexec_file_load (__NR_SYSCALL_BASE + 401) +#define __NR_clock_gettime64 (__NR_SYSCALL_BASE + 403) +#define __NR_clock_settime64 (__NR_SYSCALL_BASE + 404) +#define __NR_clock_adjtime64 (__NR_SYSCALL_BASE + 405) +#define __NR_clock_getres_time64 (__NR_SYSCALL_BASE + 406) +#define __NR_clock_nanosleep_time64 (__NR_SYSCALL_BASE + 407) +#define __NR_timer_gettime64 (__NR_SYSCALL_BASE + 408) +#define __NR_timer_settime64 (__NR_SYSCALL_BASE + 409) +#define __NR_timerfd_gettime64 (__NR_SYSCALL_BASE + 410) +#define __NR_timerfd_settime64 (__NR_SYSCALL_BASE + 411) +#define __NR_utimensat_time64 (__NR_SYSCALL_BASE + 412) +#define __NR_pselect6_time64 (__NR_SYSCALL_BASE + 413) +#define __NR_ppoll_time64 (__NR_SYSCALL_BASE + 414) +#define __NR_io_pgetevents_time64 (__NR_SYSCALL_BASE + 416) +#define __NR_recvmmsg_time64 (__NR_SYSCALL_BASE + 417) +#define __NR_mq_timedsend_time64 (__NR_SYSCALL_BASE + 418) +#define __NR_mq_timedreceive_time64 (__NR_SYSCALL_BASE + 419) +#define __NR_semtimedop_time64 (__NR_SYSCALL_BASE + 420) +#define __NR_rt_sigtimedwait_time64 (__NR_SYSCALL_BASE + 421) +#define __NR_futex_time64 (__NR_SYSCALL_BASE + 422) +#define __NR_sched_rr_get_interval_time64 (__NR_SYSCALL_BASE + 423) +#define __NR_pidfd_send_signal (__NR_SYSCALL_BASE + 424) +#define __NR_io_uring_setup (__NR_SYSCALL_BASE + 425) +#define __NR_io_uring_enter (__NR_SYSCALL_BASE + 426) +#define __NR_io_uring_register (__NR_SYSCALL_BASE + 427) #endif diff --git a/libc/kernel/uapi/asm-arm64/asm/ptrace.h b/libc/kernel/uapi/asm-arm64/asm/ptrace.h index 15fde2944..b8c046b12 100644 --- a/libc/kernel/uapi/asm-arm64/asm/ptrace.h +++ b/libc/kernel/uapi/asm-arm64/asm/ptrace.h @@ -105,5 +105,14 @@ struct user_pac_mask { __u64 data_mask; __u64 insn_mask; }; +struct user_pac_address_keys { + __uint128_t apiakey; + __uint128_t apibkey; + __uint128_t apdakey; + __uint128_t apdbkey; +}; +struct user_pac_generic_keys { + __uint128_t apgakey; +}; #endif #endif diff --git a/libc/kernel/uapi/asm-arm64/asm/unistd.h b/libc/kernel/uapi/asm-arm64/asm/unistd.h index 0648b02a5..2f7a85970 100644 --- a/libc/kernel/uapi/asm-arm64/asm/unistd.h +++ b/libc/kernel/uapi/asm-arm64/asm/unistd.h @@ -18,4 +18,6 @@ ****************************************************************************/ #define __ARCH_WANT_RENAMEAT #define __ARCH_WANT_NEW_STAT +#define __ARCH_WANT_SET_GET_RLIMIT +#define __ARCH_WANT_TIME32_SYSCALLS #include <asm-generic/unistd.h> diff --git a/libc/kernel/uapi/asm-generic/mman-common.h b/libc/kernel/uapi/asm-generic/mman-common.h index 6f688a177..b986825d1 100644 --- a/libc/kernel/uapi/asm-generic/mman-common.h +++ b/libc/kernel/uapi/asm-generic/mman-common.h @@ -25,9 +25,6 @@ #define PROT_NONE 0x0 #define PROT_GROWSDOWN 0x01000000 #define PROT_GROWSUP 0x02000000 -#define MAP_SHARED 0x01 -#define MAP_PRIVATE 0x02 -#define MAP_SHARED_VALIDATE 0x03 #define MAP_TYPE 0x0f #define MAP_FIXED 0x10 #define MAP_ANONYMOUS 0x20 diff --git a/libc/kernel/uapi/asm-generic/socket.h b/libc/kernel/uapi/asm-generic/socket.h index 7c52ccc42..bfc9ce2f0 100644 --- a/libc/kernel/uapi/asm-generic/socket.h +++ b/libc/kernel/uapi/asm-generic/socket.h @@ -18,6 +18,7 @@ ****************************************************************************/ #ifndef __ASM_GENERIC_SOCKET_H #define __ASM_GENERIC_SOCKET_H +#include <linux/posix_types.h> #include <asm/sockios.h> #define SOL_SOCKET 1 #define SO_DEBUG 1 @@ -42,8 +43,8 @@ #define SO_PEERCRED 17 #define SO_RCVLOWAT 18 #define SO_SNDLOWAT 19 -#define SO_RCVTIMEO 20 -#define SO_SNDTIMEO 21 +#define SO_RCVTIMEO_OLD 20 +#define SO_SNDTIMEO_OLD 21 #endif #define SO_SECURITY_AUTHENTICATION 22 #define SO_SECURITY_ENCRYPTION_TRANSPORT 23 @@ -53,16 +54,10 @@ #define SO_DETACH_FILTER 27 #define SO_GET_FILTER SO_ATTACH_FILTER #define SO_PEERNAME 28 -#define SO_TIMESTAMP 29 -#define SCM_TIMESTAMP SO_TIMESTAMP #define SO_ACCEPTCONN 30 #define SO_PEERSEC 31 #define SO_PASSSEC 34 -#define SO_TIMESTAMPNS 35 -#define SCM_TIMESTAMPNS SO_TIMESTAMPNS #define SO_MARK 36 -#define SO_TIMESTAMPING 37 -#define SCM_TIMESTAMPING SO_TIMESTAMPING #define SO_PROTOCOL 38 #define SO_DOMAIN 39 #define SO_RXQ_OVFL 40 @@ -90,4 +85,29 @@ #define SO_ZEROCOPY 60 #define SO_TXTIME 61 #define SCM_TXTIME SO_TXTIME +#define SO_BINDTOIFINDEX 62 +#define SO_TIMESTAMP_OLD 29 +#define SO_TIMESTAMPNS_OLD 35 +#define SO_TIMESTAMPING_OLD 37 +#define SO_TIMESTAMP_NEW 63 +#define SO_TIMESTAMPNS_NEW 64 +#define SO_TIMESTAMPING_NEW 65 +#define SO_RCVTIMEO_NEW 66 +#define SO_SNDTIMEO_NEW 67 +#if __BITS_PER_LONG == 64 || defined(__x86_64__) && defined(__ILP32__) +#define SO_TIMESTAMP SO_TIMESTAMP_OLD +#define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD +#define SO_TIMESTAMPING SO_TIMESTAMPING_OLD +#define SO_RCVTIMEO SO_RCVTIMEO_OLD +#define SO_SNDTIMEO SO_SNDTIMEO_OLD +#else +#define SO_TIMESTAMP (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMP_OLD : SO_TIMESTAMP_NEW) +#define SO_TIMESTAMPNS (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMPNS_OLD : SO_TIMESTAMPNS_NEW) +#define SO_TIMESTAMPING (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMPING_OLD : SO_TIMESTAMPING_NEW) +#define SO_RCVTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_RCVTIMEO_OLD : SO_RCVTIMEO_NEW) +#define SO_SNDTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_SNDTIMEO_OLD : SO_SNDTIMEO_NEW) +#endif +#define SCM_TIMESTAMP SO_TIMESTAMP +#define SCM_TIMESTAMPNS SO_TIMESTAMPNS +#define SCM_TIMESTAMPING SO_TIMESTAMPING #endif diff --git a/libc/kernel/uapi/asm-generic/unistd.h b/libc/kernel/uapi/asm-generic/unistd.h index 41138814a..70d9185c3 100644 --- a/libc/kernel/uapi/asm-generic/unistd.h +++ b/libc/kernel/uapi/asm-generic/unistd.h @@ -36,7 +36,9 @@ #define __NR_io_destroy 1 #define __NR_io_submit 2 #define __NR_io_cancel 3 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_io_getevents 4 +#endif #define __NR_setxattr 5 #define __NR_lsetxattr 6 #define __NR_fsetxattr 7 @@ -106,8 +108,10 @@ #define __NR_preadv 69 #define __NR_pwritev 70 #define __NR3264_sendfile 71 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_pselect6 72 #define __NR_ppoll 73 +#endif #define __NR_signalfd4 74 #define __NR_vmsplice 75 #define __NR_splice 76 @@ -126,9 +130,13 @@ #define __NR_sync_file_range 84 #endif #define __NR_timerfd_create 85 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_timerfd_settime 86 #define __NR_timerfd_gettime 87 +#endif +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_utimensat 88 +#endif #define __NR_acct 89 #define __NR_capget 90 #define __NR_capset 91 @@ -138,24 +146,34 @@ #define __NR_waitid 95 #define __NR_set_tid_address 96 #define __NR_unshare 97 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_futex 98 +#endif #define __NR_set_robust_list 99 #define __NR_get_robust_list 100 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_nanosleep 101 +#endif #define __NR_getitimer 102 #define __NR_setitimer 103 #define __NR_kexec_load 104 #define __NR_init_module 105 #define __NR_delete_module 106 #define __NR_timer_create 107 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_timer_gettime 108 +#endif #define __NR_timer_getoverrun 109 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_timer_settime 110 +#endif #define __NR_timer_delete 111 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_clock_settime 112 #define __NR_clock_gettime 113 #define __NR_clock_getres 114 #define __NR_clock_nanosleep 115 +#endif #define __NR_syslog 116 #define __NR_ptrace 117 #define __NR_sched_setparam 118 @@ -167,7 +185,9 @@ #define __NR_sched_yield 124 #define __NR_sched_get_priority_max 125 #define __NR_sched_get_priority_min 126 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_sched_rr_get_interval 127 +#endif #define __NR_restart_syscall 128 #define __NR_kill 129 #define __NR_tkill 130 @@ -177,7 +197,9 @@ #define __NR_rt_sigaction 134 #define __NR_rt_sigprocmask 135 #define __NR_rt_sigpending 136 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_rt_sigtimedwait 137 +#endif #define __NR_rt_sigqueueinfo 138 #define __NR_rt_sigreturn 139 #define __NR_setpriority 140 @@ -203,15 +225,19 @@ #define __NR_uname 160 #define __NR_sethostname 161 #define __NR_setdomainname 162 +#ifdef __ARCH_WANT_SET_GET_RLIMIT #define __NR_getrlimit 163 #define __NR_setrlimit 164 +#endif #define __NR_getrusage 165 #define __NR_umask 166 #define __NR_prctl 167 #define __NR_getcpu 168 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_gettimeofday 169 #define __NR_settimeofday 170 #define __NR_adjtimex 171 +#endif #define __NR_getpid 172 #define __NR_getppid 173 #define __NR_getuid 174 @@ -222,8 +248,10 @@ #define __NR_sysinfo 179 #define __NR_mq_open 180 #define __NR_mq_unlink 181 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_mq_timedsend 182 #define __NR_mq_timedreceive 183 +#endif #define __NR_mq_notify 184 #define __NR_mq_getsetattr 185 #define __NR_msgget 186 @@ -232,7 +260,9 @@ #define __NR_msgsnd 189 #define __NR_semget 190 #define __NR_semctl 191 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_semtimedop 192 +#endif #define __NR_semop 193 #define __NR_shmget 194 #define __NR_shmctl 195 @@ -285,15 +315,21 @@ #define __NR_rt_tgsigqueueinfo 240 #define __NR_perf_event_open 241 #define __NR_accept4 242 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_recvmmsg 243 +#endif #define __NR_arch_specific_syscall 244 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_wait4 260 +#endif #define __NR_prlimit64 261 #define __NR_fanotify_init 262 #define __NR_fanotify_mark 263 #define __NR_name_to_handle_at 264 #define __NR_open_by_handle_at 265 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_clock_adjtime 266 +#endif #define __NR_syncfs 267 #define __NR_setns 268 #define __NR_sendmmsg 269 @@ -319,11 +355,39 @@ #define __NR_pkey_alloc 289 #define __NR_pkey_free 290 #define __NR_statx 291 +#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_io_pgetevents 292 +#endif #define __NR_rseq 293 #define __NR_kexec_file_load 294 +#if __BITS_PER_LONG == 32 +#define __NR_clock_gettime64 403 +#define __NR_clock_settime64 404 +#define __NR_clock_adjtime64 405 +#define __NR_clock_getres_time64 406 +#define __NR_clock_nanosleep_time64 407 +#define __NR_timer_gettime64 408 +#define __NR_timer_settime64 409 +#define __NR_timerfd_gettime64 410 +#define __NR_timerfd_settime64 411 +#define __NR_utimensat_time64 412 +#define __NR_pselect6_time64 413 +#define __NR_ppoll_time64 414 +#define __NR_io_pgetevents_time64 416 +#define __NR_recvmmsg_time64 417 +#define __NR_mq_timedsend_time64 418 +#define __NR_mq_timedreceive_time64 419 +#define __NR_semtimedop_time64 420 +#define __NR_rt_sigtimedwait_time64 421 +#define __NR_futex_time64 422 +#define __NR_sched_rr_get_interval_time64 423 +#endif +#define __NR_pidfd_send_signal 424 +#define __NR_io_uring_setup 425 +#define __NR_io_uring_enter 426 +#define __NR_io_uring_register 427 #undef __NR_syscalls -#define __NR_syscalls 295 +#define __NR_syscalls 428 #if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT) #define __NR_fcntl __NR3264_fcntl #define __NR_statfs __NR3264_statfs diff --git a/libc/kernel/uapi/asm-mips/asm/mman.h b/libc/kernel/uapi/asm-mips/asm/mman.h index 7ca4a99b0..8664a8185 100644 --- a/libc/kernel/uapi/asm-mips/asm/mman.h +++ b/libc/kernel/uapi/asm-mips/asm/mman.h @@ -25,9 +25,6 @@ #define PROT_SEM 0x10 #define PROT_GROWSDOWN 0x01000000 #define PROT_GROWSUP 0x02000000 -#define MAP_SHARED 0x001 -#define MAP_PRIVATE 0x002 -#define MAP_SHARED_VALIDATE 0x003 #define MAP_TYPE 0x00f #define MAP_FIXED 0x010 #define MAP_RENAME 0x020 diff --git a/libc/kernel/uapi/asm-mips/asm/posix_types.h b/libc/kernel/uapi/asm-mips/asm/posix_types.h index 7ae19d2aa..30c9f322b 100644 --- a/libc/kernel/uapi/asm-mips/asm/posix_types.h +++ b/libc/kernel/uapi/asm-mips/asm/posix_types.h @@ -21,11 +21,5 @@ #include <asm/sgidefs.h> typedef long __kernel_daddr_t; #define __kernel_daddr_t __kernel_daddr_t -#if _MIPS_SZLONG == 32 -typedef struct { - long val[2]; -} __kernel_fsid_t; -#define __kernel_fsid_t __kernel_fsid_t -#endif #include <asm-generic/posix_types.h> #endif diff --git a/libc/kernel/uapi/asm-mips/asm/socket.h b/libc/kernel/uapi/asm-mips/asm/socket.h index 960b141dc..fe15ad1b7 100644 --- a/libc/kernel/uapi/asm-mips/asm/socket.h +++ b/libc/kernel/uapi/asm-mips/asm/socket.h @@ -18,6 +18,7 @@ ****************************************************************************/ #ifndef _UAPI_ASM_SOCKET_H #define _UAPI_ASM_SOCKET_H +#include <linux/posix_types.h> #include <asm/sockios.h> #define SOL_SOCKET 0xffff #define SO_DEBUG 0x0001 @@ -35,8 +36,8 @@ #define SO_RCVBUF 0x1002 #define SO_SNDLOWAT 0x1003 #define SO_RCVLOWAT 0x1004 -#define SO_SNDTIMEO 0x1005 -#define SO_RCVTIMEO 0x1006 +#define SO_SNDTIMEO_OLD 0x1005 +#define SO_RCVTIMEO_OLD 0x1006 #define SO_ACCEPTCONN 0x1009 #define SO_PROTOCOL 0x1028 #define SO_DOMAIN 0x1029 @@ -53,17 +54,11 @@ #define SO_DETACH_FILTER 27 #define SO_GET_FILTER SO_ATTACH_FILTER #define SO_PEERNAME 28 -#define SO_TIMESTAMP 29 -#define SCM_TIMESTAMP SO_TIMESTAMP #define SO_PEERSEC 30 #define SO_SNDBUFFORCE 31 #define SO_RCVBUFFORCE 33 #define SO_PASSSEC 34 -#define SO_TIMESTAMPNS 35 -#define SCM_TIMESTAMPNS SO_TIMESTAMPNS #define SO_MARK 36 -#define SO_TIMESTAMPING 37 -#define SCM_TIMESTAMPING SO_TIMESTAMPING #define SO_RXQ_OVFL 40 #define SO_WIFI_STATUS 41 #define SCM_WIFI_STATUS SO_WIFI_STATUS @@ -89,4 +84,29 @@ #define SO_ZEROCOPY 60 #define SO_TXTIME 61 #define SCM_TXTIME SO_TXTIME +#define SO_BINDTOIFINDEX 62 +#define SO_TIMESTAMP_OLD 29 +#define SO_TIMESTAMPNS_OLD 35 +#define SO_TIMESTAMPING_OLD 37 +#define SO_TIMESTAMP_NEW 63 +#define SO_TIMESTAMPNS_NEW 64 +#define SO_TIMESTAMPING_NEW 65 +#define SO_RCVTIMEO_NEW 66 +#define SO_SNDTIMEO_NEW 67 +#if __BITS_PER_LONG == 64 +#define SO_TIMESTAMP SO_TIMESTAMP_OLD +#define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD +#define SO_TIMESTAMPING SO_TIMESTAMPING_OLD +#define SO_RCVTIMEO SO_RCVTIMEO_OLD +#define SO_SNDTIMEO SO_SNDTIMEO_OLD +#else +#define SO_TIMESTAMP (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMP_OLD : SO_TIMESTAMP_NEW) +#define SO_TIMESTAMPNS (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMPNS_OLD : SO_TIMESTAMPNS_NEW) +#define SO_TIMESTAMPING (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMPING_OLD : SO_TIMESTAMPING_NEW) +#define SO_RCVTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_RCVTIMEO_OLD : SO_RCVTIMEO_NEW) +#define SO_SNDTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_SNDTIMEO_OLD : SO_SNDTIMEO_NEW) +#endif +#define SCM_TIMESTAMP SO_TIMESTAMP +#define SCM_TIMESTAMPNS SO_TIMESTAMPNS +#define SCM_TIMESTAMPING SO_TIMESTAMPING #endif diff --git a/libc/kernel/uapi/asm-mips/asm/unistd_n32.h b/libc/kernel/uapi/asm-mips/asm/unistd_n32.h index a72d9d28b..8bafcf0bc 100644 --- a/libc/kernel/uapi/asm-mips/asm/unistd_n32.h +++ b/libc/kernel/uapi/asm-mips/asm/unistd_n32.h @@ -350,4 +350,28 @@ #define __NR_statx (__NR_Linux + 330) #define __NR_rseq (__NR_Linux + 331) #define __NR_io_pgetevents (__NR_Linux + 332) +#define __NR_clock_gettime64 (__NR_Linux + 403) +#define __NR_clock_settime64 (__NR_Linux + 404) +#define __NR_clock_adjtime64 (__NR_Linux + 405) +#define __NR_clock_getres_time64 (__NR_Linux + 406) +#define __NR_clock_nanosleep_time64 (__NR_Linux + 407) +#define __NR_timer_gettime64 (__NR_Linux + 408) +#define __NR_timer_settime64 (__NR_Linux + 409) +#define __NR_timerfd_gettime64 (__NR_Linux + 410) +#define __NR_timerfd_settime64 (__NR_Linux + 411) +#define __NR_utimensat_time64 (__NR_Linux + 412) +#define __NR_pselect6_time64 (__NR_Linux + 413) +#define __NR_ppoll_time64 (__NR_Linux + 414) +#define __NR_io_pgetevents_time64 (__NR_Linux + 416) +#define __NR_recvmmsg_time64 (__NR_Linux + 417) +#define __NR_mq_timedsend_time64 (__NR_Linux + 418) +#define __NR_mq_timedreceive_time64 (__NR_Linux + 419) +#define __NR_semtimedop_time64 (__NR_Linux + 420) +#define __NR_rt_sigtimedwait_time64 (__NR_Linux + 421) +#define __NR_futex_time64 (__NR_Linux + 422) +#define __NR_sched_rr_get_interval_time64 (__NR_Linux + 423) +#define __NR_pidfd_send_signal (__NR_Linux + 424) +#define __NR_io_uring_setup (__NR_Linux + 425) +#define __NR_io_uring_enter (__NR_Linux + 426) +#define __NR_io_uring_register (__NR_Linux + 427) #endif diff --git a/libc/kernel/uapi/asm-mips/asm/unistd_n64.h b/libc/kernel/uapi/asm-mips/asm/unistd_n64.h index 5ea908acb..2191c2139 100644 --- a/libc/kernel/uapi/asm-mips/asm/unistd_n64.h +++ b/libc/kernel/uapi/asm-mips/asm/unistd_n64.h @@ -346,4 +346,8 @@ #define __NR_statx (__NR_Linux + 326) #define __NR_rseq (__NR_Linux + 327) #define __NR_io_pgetevents (__NR_Linux + 328) +#define __NR_pidfd_send_signal (__NR_Linux + 424) +#define __NR_io_uring_setup (__NR_Linux + 425) +#define __NR_io_uring_enter (__NR_Linux + 426) +#define __NR_io_uring_register (__NR_Linux + 427) #endif diff --git a/libc/kernel/uapi/asm-mips/asm/unistd_nr_n32.h b/libc/kernel/uapi/asm-mips/asm/unistd_nr_n32.h index 2b74f6352..3ef3a317b 100644 --- a/libc/kernel/uapi/asm-mips/asm/unistd_nr_n32.h +++ b/libc/kernel/uapi/asm-mips/asm/unistd_nr_n32.h @@ -19,5 +19,5 @@ #ifndef _UAPI_ASM_MIPS_UNISTD_NR_N32_H #define _UAPI_ASM_MIPS_UNISTD_NR_N32_H #define __NR_N32_Linux 6000 -#define __NR_N32_Linux_syscalls 333 +#define __NR_N32_Linux_syscalls 428 #endif diff --git a/libc/kernel/uapi/asm-mips/asm/unistd_nr_n64.h b/libc/kernel/uapi/asm-mips/asm/unistd_nr_n64.h index 22300b2b0..ececf3587 100644 --- a/libc/kernel/uapi/asm-mips/asm/unistd_nr_n64.h +++ b/libc/kernel/uapi/asm-mips/asm/unistd_nr_n64.h @@ -19,5 +19,5 @@ #ifndef _UAPI_ASM_MIPS_UNISTD_NR_N64_H #define _UAPI_ASM_MIPS_UNISTD_NR_N64_H #define __NR_64_Linux 5000 -#define __NR_64_Linux_syscalls 329 +#define __NR_64_Linux_syscalls 428 #endif diff --git a/libc/kernel/uapi/asm-mips/asm/unistd_nr_o32.h b/libc/kernel/uapi/asm-mips/asm/unistd_nr_o32.h index 02cbd2161..6fb35396d 100644 --- a/libc/kernel/uapi/asm-mips/asm/unistd_nr_o32.h +++ b/libc/kernel/uapi/asm-mips/asm/unistd_nr_o32.h @@ -19,5 +19,5 @@ #ifndef _UAPI_ASM_MIPS_UNISTD_NR_O32_H #define _UAPI_ASM_MIPS_UNISTD_NR_O32_H #define __NR_O32_Linux 4000 -#define __NR_O32_Linux_syscalls 369 +#define __NR_O32_Linux_syscalls 428 #endif diff --git a/libc/kernel/uapi/asm-mips/asm/unistd_o32.h b/libc/kernel/uapi/asm-mips/asm/unistd_o32.h index bc248dd40..8330a8839 100644 --- a/libc/kernel/uapi/asm-mips/asm/unistd_o32.h +++ b/libc/kernel/uapi/asm-mips/asm/unistd_o32.h @@ -386,4 +386,38 @@ #define __NR_statx (__NR_Linux + 366) #define __NR_rseq (__NR_Linux + 367) #define __NR_io_pgetevents (__NR_Linux + 368) +#define __NR_semget (__NR_Linux + 393) +#define __NR_semctl (__NR_Linux + 394) +#define __NR_shmget (__NR_Linux + 395) +#define __NR_shmctl (__NR_Linux + 396) +#define __NR_shmat (__NR_Linux + 397) +#define __NR_shmdt (__NR_Linux + 398) +#define __NR_msgget (__NR_Linux + 399) +#define __NR_msgsnd (__NR_Linux + 400) +#define __NR_msgrcv (__NR_Linux + 401) +#define __NR_msgctl (__NR_Linux + 402) +#define __NR_clock_gettime64 (__NR_Linux + 403) +#define __NR_clock_settime64 (__NR_Linux + 404) +#define __NR_clock_adjtime64 (__NR_Linux + 405) +#define __NR_clock_getres_time64 (__NR_Linux + 406) +#define __NR_clock_nanosleep_time64 (__NR_Linux + 407) +#define __NR_timer_gettime64 (__NR_Linux + 408) +#define __NR_timer_settime64 (__NR_Linux + 409) +#define __NR_timerfd_gettime64 (__NR_Linux + 410) +#define __NR_timerfd_settime64 (__NR_Linux + 411) +#define __NR_utimensat_time64 (__NR_Linux + 412) +#define __NR_pselect6_time64 (__NR_Linux + 413) +#define __NR_ppoll_time64 (__NR_Linux + 414) +#define __NR_io_pgetevents_time64 (__NR_Linux + 416) +#define __NR_recvmmsg_time64 (__NR_Linux + 417) +#define __NR_mq_timedsend_time64 (__NR_Linux + 418) +#define __NR_mq_timedreceive_time64 (__NR_Linux + 419) +#define __NR_semtimedop_time64 (__NR_Linux + 420) +#define __NR_rt_sigtimedwait_time64 (__NR_Linux + 421) +#define __NR_futex_time64 (__NR_Linux + 422) +#define __NR_sched_rr_get_interval_time64 (__NR_Linux + 423) +#define __NR_pidfd_send_signal (__NR_Linux + 424) +#define __NR_io_uring_setup (__NR_Linux + 425) +#define __NR_io_uring_enter (__NR_Linux + 426) +#define __NR_io_uring_register (__NR_Linux + 427) #endif diff --git a/libc/kernel/uapi/asm-x86/asm/kvm.h b/libc/kernel/uapi/asm-x86/asm/kvm.h index 4386f7676..10b129400 100644 --- a/libc/kernel/uapi/asm-x86/asm/kvm.h +++ b/libc/kernel/uapi/asm-x86/asm/kvm.h @@ -317,6 +317,7 @@ struct kvm_sync_regs { #define KVM_X86_QUIRK_LINT0_REENABLED (1 << 0) #define KVM_X86_QUIRK_CD_NW_CLEARED (1 << 1) #define KVM_X86_QUIRK_LAPIC_MMIO_HOLE (1 << 2) +#define KVM_X86_QUIRK_OUT_7E_INC_RIP (1 << 3) #define KVM_STATE_NESTED_GUEST_MODE 0x00000001 #define KVM_STATE_NESTED_RUN_PENDING 0x00000002 #define KVM_STATE_NESTED_EVMCS 0x00000004 diff --git a/libc/kernel/uapi/asm-x86/asm/unistd_32.h b/libc/kernel/uapi/asm-x86/asm/unistd_32.h index 4afa67649..bccc6f1b9 100644 --- a/libc/kernel/uapi/asm-x86/asm/unistd_32.h +++ b/libc/kernel/uapi/asm-x86/asm/unistd_32.h @@ -401,4 +401,38 @@ #define __NR_arch_prctl 384 #define __NR_io_pgetevents 385 #define __NR_rseq 386 +#define __NR_semget 393 +#define __NR_semctl 394 +#define __NR_shmget 395 +#define __NR_shmctl 396 +#define __NR_shmat 397 +#define __NR_shmdt 398 +#define __NR_msgget 399 +#define __NR_msgsnd 400 +#define __NR_msgrcv 401 +#define __NR_msgctl 402 +#define __NR_clock_gettime64 403 +#define __NR_clock_settime64 404 +#define __NR_clock_adjtime64 405 +#define __NR_clock_getres_time64 406 +#define __NR_clock_nanosleep_time64 407 +#define __NR_timer_gettime64 408 +#define __NR_timer_settime64 409 +#define __NR_timerfd_gettime64 410 +#define __NR_timerfd_settime64 411 +#define __NR_utimensat_time64 412 +#define __NR_pselect6_time64 413 +#define __NR_ppoll_time64 414 +#define __NR_io_pgetevents_time64 416 +#define __NR_recvmmsg_time64 417 +#define __NR_mq_timedsend_time64 418 +#define __NR_mq_timedreceive_time64 419 +#define __NR_semtimedop_time64 420 +#define __NR_rt_sigtimedwait_time64 421 +#define __NR_futex_time64 422 +#define __NR_sched_rr_get_interval_time64 423 +#define __NR_pidfd_send_signal 424 +#define __NR_io_uring_setup 425 +#define __NR_io_uring_enter 426 +#define __NR_io_uring_register 427 #endif diff --git a/libc/kernel/uapi/asm-x86/asm/unistd_64.h b/libc/kernel/uapi/asm-x86/asm/unistd_64.h index a11820041..ddac7db98 100644 --- a/libc/kernel/uapi/asm-x86/asm/unistd_64.h +++ b/libc/kernel/uapi/asm-x86/asm/unistd_64.h @@ -353,4 +353,8 @@ #define __NR_statx 332 #define __NR_io_pgetevents 333 #define __NR_rseq 334 +#define __NR_pidfd_send_signal 424 +#define __NR_io_uring_setup 425 +#define __NR_io_uring_enter 426 +#define __NR_io_uring_register 427 #endif diff --git a/libc/kernel/uapi/asm-x86/asm/unistd_x32.h b/libc/kernel/uapi/asm-x86/asm/unistd_x32.h index b5f3fb105..9c4ba12c4 100644 --- a/libc/kernel/uapi/asm-x86/asm/unistd_x32.h +++ b/libc/kernel/uapi/asm-x86/asm/unistd_x32.h @@ -306,6 +306,10 @@ #define __NR_statx (__X32_SYSCALL_BIT + 332) #define __NR_io_pgetevents (__X32_SYSCALL_BIT + 333) #define __NR_rseq (__X32_SYSCALL_BIT + 334) +#define __NR_pidfd_send_signal (__X32_SYSCALL_BIT + 424) +#define __NR_io_uring_setup (__X32_SYSCALL_BIT + 425) +#define __NR_io_uring_enter (__X32_SYSCALL_BIT + 426) +#define __NR_io_uring_register (__X32_SYSCALL_BIT + 427) #define __NR_rt_sigaction (__X32_SYSCALL_BIT + 512) #define __NR_rt_sigreturn (__X32_SYSCALL_BIT + 513) #define __NR_ioctl (__X32_SYSCALL_BIT + 514) diff --git a/libc/kernel/uapi/asm-x86/asm/vmx.h b/libc/kernel/uapi/asm-x86/asm/vmx.h index 83365f8df..0f7ede3b5 100644 --- a/libc/kernel/uapi/asm-x86/asm/vmx.h +++ b/libc/kernel/uapi/asm-x86/asm/vmx.h @@ -78,5 +78,6 @@ #define VMX_EXIT_REASONS { EXIT_REASON_EXCEPTION_NMI, "EXCEPTION_NMI" }, { EXIT_REASON_EXTERNAL_INTERRUPT, "EXTERNAL_INTERRUPT" }, { EXIT_REASON_TRIPLE_FAULT, "TRIPLE_FAULT" }, { EXIT_REASON_PENDING_INTERRUPT, "PENDING_INTERRUPT" }, { EXIT_REASON_NMI_WINDOW, "NMI_WINDOW" }, { EXIT_REASON_TASK_SWITCH, "TASK_SWITCH" }, { EXIT_REASON_CPUID, "CPUID" }, { EXIT_REASON_HLT, "HLT" }, { EXIT_REASON_INVD, "INVD" }, { EXIT_REASON_INVLPG, "INVLPG" }, { EXIT_REASON_RDPMC, "RDPMC" }, { EXIT_REASON_RDTSC, "RDTSC" }, { EXIT_REASON_VMCALL, "VMCALL" }, { EXIT_REASON_VMCLEAR, "VMCLEAR" }, { EXIT_REASON_VMLAUNCH, "VMLAUNCH" }, { EXIT_REASON_VMPTRLD, "VMPTRLD" }, { EXIT_REASON_VMPTRST, "VMPTRST" }, { EXIT_REASON_VMREAD, "VMREAD" }, { EXIT_REASON_VMRESUME, "VMRESUME" }, { EXIT_REASON_VMWRITE, "VMWRITE" }, { EXIT_REASON_VMOFF, "VMOFF" }, { EXIT_REASON_VMON, "VMON" }, { EXIT_REASON_CR_ACCESS, "CR_ACCESS" }, { EXIT_REASON_DR_ACCESS, "DR_ACCESS" }, { EXIT_REASON_IO_INSTRUCTION, "IO_INSTRUCTION" }, { EXIT_REASON_MSR_READ, "MSR_READ" }, { EXIT_REASON_MSR_WRITE, "MSR_WRITE" }, { EXIT_REASON_INVALID_STATE, "INVALID_STATE" }, { EXIT_REASON_MSR_LOAD_FAIL, "MSR_LOAD_FAIL" }, { EXIT_REASON_MWAIT_INSTRUCTION, "MWAIT_INSTRUCTION" }, { EXIT_REASON_MONITOR_TRAP_FLAG, "MONITOR_TRAP_FLAG" }, { EXIT_REASON_MONITOR_INSTRUCTION, "MONITOR_INSTRUCTION" }, { EXIT_REASON_PAUSE_INSTRUCTION, "PAUSE_INSTRUCTION" }, { EXIT_REASON_MCE_DURING_VMENTRY, "MCE_DURING_VMENTRY" }, { EXIT_REASON_TPR_BELOW_THRESHOLD, "TPR_BELOW_THRESHOLD" }, { EXIT_REASON_APIC_ACCESS, "APIC_ACCESS" }, { EXIT_REASON_EOI_INDUCED, "EOI_INDUCED" }, { EXIT_REASON_GDTR_IDTR, "GDTR_IDTR" }, { EXIT_REASON_LDTR_TR, "LDTR_TR" }, { EXIT_REASON_EPT_VIOLATION, "EPT_VIOLATION" }, { EXIT_REASON_EPT_MISCONFIG, "EPT_MISCONFIG" }, { EXIT_REASON_INVEPT, "INVEPT" }, { EXIT_REASON_RDTSCP, "RDTSCP" }, { EXIT_REASON_PREEMPTION_TIMER, "PREEMPTION_TIMER" }, { EXIT_REASON_INVVPID, "INVVPID" }, { EXIT_REASON_WBINVD, "WBINVD" }, { EXIT_REASON_XSETBV, "XSETBV" }, { EXIT_REASON_APIC_WRITE, "APIC_WRITE" }, { EXIT_REASON_RDRAND, "RDRAND" }, { EXIT_REASON_INVPCID, "INVPCID" }, { EXIT_REASON_VMFUNC, "VMFUNC" }, { EXIT_REASON_ENCLS, "ENCLS" }, { EXIT_REASON_RDSEED, "RDSEED" }, { EXIT_REASON_PML_FULL, "PML_FULL" }, { EXIT_REASON_XSAVES, "XSAVES" }, { EXIT_REASON_XRSTORS, "XRSTORS" } #define VMX_ABORT_SAVE_GUEST_MSR_FAIL 1 #define VMX_ABORT_LOAD_HOST_PDPTE_FAIL 2 +#define VMX_ABORT_VMCS_CORRUPTED 3 #define VMX_ABORT_LOAD_HOST_MSR_FAIL 4 #endif diff --git a/libc/kernel/uapi/drm/amdgpu_drm.h b/libc/kernel/uapi/drm/amdgpu_drm.h index baa2e44ab..53da9dd6c 100644 --- a/libc/kernel/uapi/drm/amdgpu_drm.h +++ b/libc/kernel/uapi/drm/amdgpu_drm.h @@ -158,11 +158,12 @@ union drm_amdgpu_vm { struct drm_amdgpu_vm_out out; }; #define AMDGPU_SCHED_OP_PROCESS_PRIORITY_OVERRIDE 1 +#define AMDGPU_SCHED_OP_CONTEXT_PRIORITY_OVERRIDE 2 struct drm_amdgpu_sched_in { __u32 op; __u32 fd; __s32 priority; - __u32 flags; + __u32 ctx_id; }; union drm_amdgpu_sched { struct drm_amdgpu_sched_in in; @@ -323,6 +324,7 @@ struct drm_amdgpu_gem_va { #define AMDGPU_CHUNK_ID_SYNCOBJ_IN 0x04 #define AMDGPU_CHUNK_ID_SYNCOBJ_OUT 0x05 #define AMDGPU_CHUNK_ID_BO_HANDLES 0x06 +#define AMDGPU_CHUNK_ID_SCHEDULED_DEPENDENCIES 0x07 struct drm_amdgpu_cs_chunk { __u32 chunk_id; __u32 length_dw; @@ -346,6 +348,7 @@ union drm_amdgpu_cs { #define AMDGPU_IB_FLAG_PREAMBLE (1 << 1) #define AMDGPU_IB_FLAG_PREEMPT (1 << 2) #define AMDGPU_IB_FLAG_TC_WB_NOT_INVALIDATE (1 << 3) +#define AMDGPU_IB_FLAG_RESET_GDS_MAX_WAVE_ID (1 << 4) struct drm_amdgpu_cs_chunk_ib { __u32 _pad; __u32 flags; diff --git a/libc/kernel/uapi/drm/drm_fourcc.h b/libc/kernel/uapi/drm/drm_fourcc.h index d95bda0f6..fd808535e 100644 --- a/libc/kernel/uapi/drm/drm_fourcc.h +++ b/libc/kernel/uapi/drm/drm_fourcc.h @@ -94,6 +94,9 @@ extern "C" { #define DRM_FORMAT_NV61 fourcc_code('N', 'V', '6', '1') #define DRM_FORMAT_NV24 fourcc_code('N', 'V', '2', '4') #define DRM_FORMAT_NV42 fourcc_code('N', 'V', '4', '2') +#define DRM_FORMAT_P010 fourcc_code('P', '0', '1', '0') +#define DRM_FORMAT_P012 fourcc_code('P', '0', '1', '2') +#define DRM_FORMAT_P016 fourcc_code('P', '0', '1', '6') #define DRM_FORMAT_YUV410 fourcc_code('Y', 'U', 'V', '9') #define DRM_FORMAT_YVU410 fourcc_code('Y', 'V', 'U', '9') #define DRM_FORMAT_YUV411 fourcc_code('Y', 'U', '1', '1') @@ -114,6 +117,7 @@ extern "C" { #define DRM_FORMAT_MOD_VENDOR_VIVANTE 0x06 #define DRM_FORMAT_MOD_VENDOR_BROADCOM 0x07 #define DRM_FORMAT_MOD_VENDOR_ARM 0x08 +#define DRM_FORMAT_MOD_VENDOR_ALLWINNER 0x09 #define DRM_FORMAT_RESERVED ((1ULL << 56) - 1) #define fourcc_mod_code(vendor,val) ((((__u64) DRM_FORMAT_MOD_VENDOR_ ##vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) #define DRM_FORMAT_MOD_INVALID fourcc_mod_code(NONE, DRM_FORMAT_RESERVED) @@ -157,12 +161,17 @@ extern "C" { #define AFBC_FORMAT_MOD_BLOCK_SIZE_MASK 0xf #define AFBC_FORMAT_MOD_BLOCK_SIZE_16x16 (1ULL) #define AFBC_FORMAT_MOD_BLOCK_SIZE_32x8 (2ULL) +#define AFBC_FORMAT_MOD_BLOCK_SIZE_64x4 (3ULL) +#define AFBC_FORMAT_MOD_BLOCK_SIZE_32x8_64x4 (4ULL) #define AFBC_FORMAT_MOD_YTR (1ULL << 4) #define AFBC_FORMAT_MOD_SPLIT (1ULL << 5) #define AFBC_FORMAT_MOD_SPARSE (1ULL << 6) #define AFBC_FORMAT_MOD_CBR (1ULL << 7) #define AFBC_FORMAT_MOD_TILED (1ULL << 8) #define AFBC_FORMAT_MOD_SC (1ULL << 9) +#define AFBC_FORMAT_MOD_DB (1ULL << 10) +#define AFBC_FORMAT_MOD_BCH (1ULL << 11) +#define DRM_FORMAT_MOD_ALLWINNER_TILED fourcc_mod_code(ALLWINNER, 1) #ifdef __cplusplus } #endif diff --git a/libc/kernel/uapi/drm/i915_drm.h b/libc/kernel/uapi/drm/i915_drm.h index b3fd9fdc1..d48a581a6 100644 --- a/libc/kernel/uapi/drm/i915_drm.h +++ b/libc/kernel/uapi/drm/i915_drm.h @@ -703,8 +703,19 @@ struct drm_i915_gem_context_param { #define I915_CONTEXT_MAX_USER_PRIORITY 1023 #define I915_CONTEXT_DEFAULT_PRIORITY 0 #define I915_CONTEXT_MIN_USER_PRIORITY - 1023 +#define I915_CONTEXT_PARAM_SSEU 0x7 __u64 value; }; +struct drm_i915_gem_context_param_sseu { + __u16 engine_class; + __u16 engine_instance; + __u32 flags; + __u64 slice_mask; + __u64 subslice_mask; + __u16 min_eus_per_subslice; + __u16 max_eus_per_subslice; + __u32 rsvd; +}; enum drm_i915_oa_format { I915_OA_FORMAT_A13 = 1, I915_OA_FORMAT_A29, diff --git a/libc/kernel/uapi/drm/nouveau_drm.h b/libc/kernel/uapi/drm/nouveau_drm.h index 54c3b9718..186ffcc58 100644 --- a/libc/kernel/uapi/drm/nouveau_drm.h +++ b/libc/kernel/uapi/drm/nouveau_drm.h @@ -112,11 +112,42 @@ struct drm_nouveau_gem_cpu_fini { #define DRM_NOUVEAU_NOTIFIEROBJ_ALLOC 0x05 #define DRM_NOUVEAU_GPUOBJ_FREE 0x06 #define DRM_NOUVEAU_NVIF 0x07 +#define DRM_NOUVEAU_SVM_INIT 0x08 +#define DRM_NOUVEAU_SVM_BIND 0x09 #define DRM_NOUVEAU_GEM_NEW 0x40 #define DRM_NOUVEAU_GEM_PUSHBUF 0x41 #define DRM_NOUVEAU_GEM_CPU_PREP 0x42 #define DRM_NOUVEAU_GEM_CPU_FINI 0x43 #define DRM_NOUVEAU_GEM_INFO 0x44 +struct drm_nouveau_svm_init { + __u64 unmanaged_addr; + __u64 unmanaged_size; +}; +struct drm_nouveau_svm_bind { + __u64 header; + __u64 va_start; + __u64 va_end; + __u64 npages; + __u64 stride; + __u64 result; + __u64 reserved0; + __u64 reserved1; +}; +#define NOUVEAU_SVM_BIND_COMMAND_SHIFT 0 +#define NOUVEAU_SVM_BIND_COMMAND_BITS 8 +#define NOUVEAU_SVM_BIND_COMMAND_MASK ((1 << 8) - 1) +#define NOUVEAU_SVM_BIND_PRIORITY_SHIFT 8 +#define NOUVEAU_SVM_BIND_PRIORITY_BITS 8 +#define NOUVEAU_SVM_BIND_PRIORITY_MASK ((1 << 8) - 1) +#define NOUVEAU_SVM_BIND_TARGET_SHIFT 16 +#define NOUVEAU_SVM_BIND_TARGET_BITS 32 +#define NOUVEAU_SVM_BIND_TARGET_MASK 0xffffffff +#define NOUVEAU_SVM_BIND_VALID_BITS 48 +#define NOUVEAU_SVM_BIND_VALID_MASK ((1ULL << NOUVEAU_SVM_BIND_VALID_BITS) - 1) +#define NOUVEAU_SVM_BIND_COMMAND__MIGRATE 0 +#define NOUVEAU_SVM_BIND_TARGET__GPU_VRAM (1UL << 31) +#define DRM_IOCTL_NOUVEAU_SVM_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_SVM_INIT, struct drm_nouveau_svm_init) +#define DRM_IOCTL_NOUVEAU_SVM_BIND DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_SVM_BIND, struct drm_nouveau_svm_bind) #define DRM_IOCTL_NOUVEAU_GEM_NEW DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_NEW, struct drm_nouveau_gem_new) #define DRM_IOCTL_NOUVEAU_GEM_PUSHBUF DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_PUSHBUF, struct drm_nouveau_gem_pushbuf) #define DRM_IOCTL_NOUVEAU_GEM_CPU_PREP DRM_IOW(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_PREP, struct drm_nouveau_gem_cpu_prep) diff --git a/libc/kernel/uapi/linux/auto_fs.h b/libc/kernel/uapi/linux/auto_fs.h index 9a9dd65c7..39d1ac832 100644 --- a/libc/kernel/uapi/linux/auto_fs.h +++ b/libc/kernel/uapi/linux/auto_fs.h @@ -24,7 +24,7 @@ #define AUTOFS_PROTO_VERSION 5 #define AUTOFS_MIN_PROTO_VERSION 3 #define AUTOFS_MAX_PROTO_VERSION 5 -#define AUTOFS_PROTO_SUBVERSION 4 +#define AUTOFS_PROTO_SUBVERSION 5 #if defined(__ia64__) || defined(__alpha__) typedef unsigned long autofs_wqt_t; #else diff --git a/libc/kernel/uapi/linux/batman_adv.h b/libc/kernel/uapi/linux/batman_adv.h index efec2bb57..9cad20a15 100644 --- a/libc/kernel/uapi/linux/batman_adv.h +++ b/libc/kernel/uapi/linux/batman_adv.h @@ -19,6 +19,7 @@ #ifndef _UAPI_LINUX_BATMAN_ADV_H_ #define _UAPI_LINUX_BATMAN_ADV_H_ #define BATADV_NL_NAME "batadv" +#define BATADV_NL_MCAST_GROUP_CONFIG "config" #define BATADV_NL_MCAST_GROUP_TPMETER "tpmeter" enum batadv_tt_client_flags { BATADV_TT_CLIENT_DEL = (1 << 0), @@ -37,6 +38,11 @@ enum batadv_mcast_flags_priv { BATADV_MCAST_FLAGS_QUERIER_IPV4_SHADOWING = (1 << 3), BATADV_MCAST_FLAGS_QUERIER_IPV6_SHADOWING = (1 << 4), }; +enum batadv_gw_modes { + BATADV_GW_MODE_OFF, + BATADV_GW_MODE_CLIENT, + BATADV_GW_MODE_SERVER, +}; enum batadv_nl_attrs { BATADV_ATTR_UNSPEC, BATADV_ATTR_VERSION, @@ -78,17 +84,39 @@ enum batadv_nl_attrs { BATADV_ATTR_DAT_CACHE_VID, BATADV_ATTR_MCAST_FLAGS, BATADV_ATTR_MCAST_FLAGS_PRIV, + BATADV_ATTR_VLANID, + BATADV_ATTR_AGGREGATED_OGMS_ENABLED, + BATADV_ATTR_AP_ISOLATION_ENABLED, + BATADV_ATTR_ISOLATION_MARK, + BATADV_ATTR_ISOLATION_MASK, + BATADV_ATTR_BONDING_ENABLED, + BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED, + BATADV_ATTR_DISTRIBUTED_ARP_TABLE_ENABLED, + BATADV_ATTR_FRAGMENTATION_ENABLED, + BATADV_ATTR_GW_BANDWIDTH_DOWN, + BATADV_ATTR_GW_BANDWIDTH_UP, + BATADV_ATTR_GW_MODE, + BATADV_ATTR_GW_SEL_CLASS, + BATADV_ATTR_HOP_PENALTY, + BATADV_ATTR_LOG_LEVEL, + BATADV_ATTR_MULTICAST_FORCEFLOOD_ENABLED, + BATADV_ATTR_NETWORK_CODING_ENABLED, + BATADV_ATTR_ORIG_INTERVAL, + BATADV_ATTR_ELP_INTERVAL, + BATADV_ATTR_THROUGHPUT_OVERRIDE, __BATADV_ATTR_AFTER_LAST, NUM_BATADV_ATTR = __BATADV_ATTR_AFTER_LAST, BATADV_ATTR_MAX = __BATADV_ATTR_AFTER_LAST - 1 }; enum batadv_nl_commands { BATADV_CMD_UNSPEC, - BATADV_CMD_GET_MESH_INFO, + BATADV_CMD_GET_MESH, + BATADV_CMD_GET_MESH_INFO = BATADV_CMD_GET_MESH, BATADV_CMD_TP_METER, BATADV_CMD_TP_METER_CANCEL, BATADV_CMD_GET_ROUTING_ALGOS, - BATADV_CMD_GET_HARDIFS, + BATADV_CMD_GET_HARDIF, + BATADV_CMD_GET_HARDIFS = BATADV_CMD_GET_HARDIF, BATADV_CMD_GET_TRANSTABLE_LOCAL, BATADV_CMD_GET_TRANSTABLE_GLOBAL, BATADV_CMD_GET_ORIGINATORS, @@ -98,6 +126,10 @@ enum batadv_nl_commands { BATADV_CMD_GET_BLA_BACKBONE, BATADV_CMD_GET_DAT_CACHE, BATADV_CMD_GET_MCAST_FLAGS, + BATADV_CMD_SET_MESH, + BATADV_CMD_SET_HARDIF, + BATADV_CMD_GET_VLAN, + BATADV_CMD_SET_VLAN, __BATADV_CMD_AFTER_LAST, BATADV_CMD_MAX = __BATADV_CMD_AFTER_LAST - 1 }; diff --git a/libc/kernel/uapi/linux/binfmts.h b/libc/kernel/uapi/linux/binfmts.h index 729008e3c..8c4fed03f 100644 --- a/libc/kernel/uapi/linux/binfmts.h +++ b/libc/kernel/uapi/linux/binfmts.h @@ -22,5 +22,5 @@ struct pt_regs; #define MAX_ARG_STRLEN (PAGE_SIZE * 32) #define MAX_ARG_STRINGS 0x7FFFFFFF -#define BINPRM_BUF_SIZE 128 +#define BINPRM_BUF_SIZE 256 #endif diff --git a/libc/kernel/uapi/linux/bpf.h b/libc/kernel/uapi/linux/bpf.h index 894b9f7a6..edae89389 100644 --- a/libc/kernel/uapi/linux/bpf.h +++ b/libc/kernel/uapi/linux/bpf.h @@ -20,6 +20,7 @@ #define _UAPI__LINUX_BPF_H__ #include <linux/types.h> #include <linux/bpf_common.h> +#define BPF_JMP32 0x06 #define BPF_ALU64 0x07 #define BPF_DW 0x18 #define BPF_XADD 0xc0 @@ -175,6 +176,7 @@ enum bpf_attach_type { #define BPF_ANY 0 #define BPF_NOEXIST 1 #define BPF_EXIST 2 +#define BPF_F_LOCK 4 #define BPF_F_NO_PREALLOC (1U << 0) #define BPF_F_NO_COMMON_LRU (1U << 1) #define BPF_F_NUMA_NODE (1U << 2) @@ -310,7 +312,7 @@ union bpf_attr { __u64 probe_addr; } task_fd_query; } __attribute__((aligned(8))); -#define __BPF_FUNC_MAPPER(FN) FN(unspec), FN(map_lookup_elem), FN(map_update_elem), FN(map_delete_elem), FN(probe_read), FN(ktime_get_ns), FN(trace_printk), FN(get_prandom_u32), FN(get_smp_processor_id), FN(skb_store_bytes), FN(l3_csum_replace), FN(l4_csum_replace), FN(tail_call), FN(clone_redirect), FN(get_current_pid_tgid), FN(get_current_uid_gid), FN(get_current_comm), FN(get_cgroup_classid), FN(skb_vlan_push), FN(skb_vlan_pop), FN(skb_get_tunnel_key), FN(skb_set_tunnel_key), FN(perf_event_read), FN(redirect), FN(get_route_realm), FN(perf_event_output), FN(skb_load_bytes), FN(get_stackid), FN(csum_diff), FN(skb_get_tunnel_opt), FN(skb_set_tunnel_opt), FN(skb_change_proto), FN(skb_change_type), FN(skb_under_cgroup), FN(get_hash_recalc), FN(get_current_task), FN(probe_write_user), FN(current_task_under_cgroup), FN(skb_change_tail), FN(skb_pull_data), FN(csum_update), FN(set_hash_invalid), FN(get_numa_node_id), FN(skb_change_head), FN(xdp_adjust_head), FN(probe_read_str), FN(get_socket_cookie), FN(get_socket_uid), FN(set_hash), FN(setsockopt), FN(skb_adjust_room), FN(redirect_map), FN(sk_redirect_map), FN(sock_map_update), FN(xdp_adjust_meta), FN(perf_event_read_value), FN(perf_prog_read_value), FN(getsockopt), FN(override_return), FN(sock_ops_cb_flags_set), FN(msg_redirect_map), FN(msg_apply_bytes), FN(msg_cork_bytes), FN(msg_pull_data), FN(bind), FN(xdp_adjust_tail), FN(skb_get_xfrm_state), FN(get_stack), FN(skb_load_bytes_relative), FN(fib_lookup), FN(sock_hash_update), FN(msg_redirect_hash), FN(sk_redirect_hash), FN(lwt_push_encap), FN(lwt_seg6_store_bytes), FN(lwt_seg6_adjust_srh), FN(lwt_seg6_action), FN(rc_repeat), FN(rc_keydown), FN(skb_cgroup_id), FN(get_current_cgroup_id), FN(get_local_storage), FN(sk_select_reuseport), FN(skb_ancestor_cgroup_id), FN(sk_lookup_tcp), FN(sk_lookup_udp), FN(sk_release), FN(map_push_elem), FN(map_pop_elem), FN(map_peek_elem), FN(msg_push_data), FN(msg_pop_data), FN(rc_pointer_rel), +#define __BPF_FUNC_MAPPER(FN) FN(unspec), FN(map_lookup_elem), FN(map_update_elem), FN(map_delete_elem), FN(probe_read), FN(ktime_get_ns), FN(trace_printk), FN(get_prandom_u32), FN(get_smp_processor_id), FN(skb_store_bytes), FN(l3_csum_replace), FN(l4_csum_replace), FN(tail_call), FN(clone_redirect), FN(get_current_pid_tgid), FN(get_current_uid_gid), FN(get_current_comm), FN(get_cgroup_classid), FN(skb_vlan_push), FN(skb_vlan_pop), FN(skb_get_tunnel_key), FN(skb_set_tunnel_key), FN(perf_event_read), FN(redirect), FN(get_route_realm), FN(perf_event_output), FN(skb_load_bytes), FN(get_stackid), FN(csum_diff), FN(skb_get_tunnel_opt), FN(skb_set_tunnel_opt), FN(skb_change_proto), FN(skb_change_type), FN(skb_under_cgroup), FN(get_hash_recalc), FN(get_current_task), FN(probe_write_user), FN(current_task_under_cgroup), FN(skb_change_tail), FN(skb_pull_data), FN(csum_update), FN(set_hash_invalid), FN(get_numa_node_id), FN(skb_change_head), FN(xdp_adjust_head), FN(probe_read_str), FN(get_socket_cookie), FN(get_socket_uid), FN(set_hash), FN(setsockopt), FN(skb_adjust_room), FN(redirect_map), FN(sk_redirect_map), FN(sock_map_update), FN(xdp_adjust_meta), FN(perf_event_read_value), FN(perf_prog_read_value), FN(getsockopt), FN(override_return), FN(sock_ops_cb_flags_set), FN(msg_redirect_map), FN(msg_apply_bytes), FN(msg_cork_bytes), FN(msg_pull_data), FN(bind), FN(xdp_adjust_tail), FN(skb_get_xfrm_state), FN(get_stack), FN(skb_load_bytes_relative), FN(fib_lookup), FN(sock_hash_update), FN(msg_redirect_hash), FN(sk_redirect_hash), FN(lwt_push_encap), FN(lwt_seg6_store_bytes), FN(lwt_seg6_adjust_srh), FN(lwt_seg6_action), FN(rc_repeat), FN(rc_keydown), FN(skb_cgroup_id), FN(get_current_cgroup_id), FN(get_local_storage), FN(sk_select_reuseport), FN(skb_ancestor_cgroup_id), FN(sk_lookup_tcp), FN(sk_lookup_udp), FN(sk_release), FN(map_push_elem), FN(map_pop_elem), FN(map_peek_elem), FN(msg_push_data), FN(msg_pop_data), FN(rc_pointer_rel), FN(spin_lock), FN(spin_unlock), FN(sk_fullsock), FN(tcp_sock), FN(skb_ecn_set_ce), FN(get_listener_sock), #define __BPF_ENUM_FN(x) BPF_FUNC_ ##x enum bpf_func_id { __BPF_FUNC_MAPPER(__BPF_ENUM_FN) __BPF_FUNC_MAX_ID, @@ -345,7 +347,8 @@ enum bpf_hdr_start_off { }; enum bpf_lwt_encap_mode { BPF_LWT_ENCAP_SEG6, - BPF_LWT_ENCAP_SEG6_INLINE + BPF_LWT_ENCAP_SEG6_INLINE, + BPF_LWT_ENCAP_IP, }; #define __bpf_md_ptr(type,name) union { type name; __u64 : 64; \ } __attribute__((aligned(8))) @@ -379,6 +382,8 @@ struct __sk_buff { __bpf_md_ptr(struct bpf_flow_keys *, flow_keys); __u64 tstamp; __u32 wire_len; + __u32 gso_segs; + __bpf_md_ptr(struct bpf_sock *, sk); }; struct bpf_tunnel_key { __u32 tunnel_id; @@ -405,6 +410,7 @@ enum bpf_ret_code { BPF_OK = 0, BPF_DROP = 2, BPF_REDIRECT = 7, + BPF_LWT_REROUTE = 128, }; struct bpf_sock { __u32 bound_dev_if; @@ -416,6 +422,34 @@ struct bpf_sock { __u32 src_ip4; __u32 src_ip6[4]; __u32 src_port; + __u32 dst_port; + __u32 dst_ip4; + __u32 dst_ip6[4]; + __u32 state; +}; +struct bpf_tcp_sock { + __u32 snd_cwnd; + __u32 srtt_us; + __u32 rtt_min; + __u32 snd_ssthresh; + __u32 rcv_nxt; + __u32 snd_nxt; + __u32 snd_una; + __u32 mss_cache; + __u32 ecn_flags; + __u32 rate_delivered; + __u32 rate_interval_us; + __u32 packets_out; + __u32 retrans_out; + __u32 total_retrans; + __u32 segs_in; + __u32 data_segs_in; + __u32 segs_out; + __u32 data_segs_out; + __u32 lost_out; + __u32 sacked_out; + __u64 bytes_received; + __u64 bytes_acked; }; struct bpf_sock_tuple { union { @@ -507,6 +541,8 @@ struct bpf_prog_info { __u32 jited_line_info_rec_size; __u32 nr_prog_tags; __aligned_u64 prog_tags; + __u64 run_time_ns; + __u64 run_cnt; } __attribute__((aligned(8))); struct bpf_map_info { __u32 type; @@ -714,4 +750,7 @@ struct bpf_line_info { __u32 line_off; __u32 line_col; }; +struct bpf_spin_lock { + __u32 val; +}; #endif diff --git a/libc/kernel/uapi/linux/btrfs.h b/libc/kernel/uapi/linux/btrfs.h index 0dae543d6..14cd6e845 100644 --- a/libc/kernel/uapi/linux/btrfs.h +++ b/libc/kernel/uapi/linux/btrfs.h @@ -458,6 +458,7 @@ enum btrfs_err_code { #define BTRFS_IOC_DEFRAG _IOW(BTRFS_IOCTL_MAGIC, 2, struct btrfs_ioctl_vol_args) #define BTRFS_IOC_RESIZE _IOW(BTRFS_IOCTL_MAGIC, 3, struct btrfs_ioctl_vol_args) #define BTRFS_IOC_SCAN_DEV _IOW(BTRFS_IOCTL_MAGIC, 4, struct btrfs_ioctl_vol_args) +#define BTRFS_IOC_FORGET_DEV _IOW(BTRFS_IOCTL_MAGIC, 5, struct btrfs_ioctl_vol_args) #define BTRFS_IOC_TRANS_START _IO(BTRFS_IOCTL_MAGIC, 6) #define BTRFS_IOC_TRANS_END _IO(BTRFS_IOCTL_MAGIC, 7) #define BTRFS_IOC_SYNC _IO(BTRFS_IOCTL_MAGIC, 8) diff --git a/libc/kernel/uapi/linux/devlink.h b/libc/kernel/uapi/linux/devlink.h index 7c55a0a26..972d8cc74 100644 --- a/libc/kernel/uapi/linux/devlink.h +++ b/libc/kernel/uapi/linux/devlink.h @@ -71,6 +71,18 @@ enum devlink_command { DEVLINK_CMD_REGION_NEW, DEVLINK_CMD_REGION_DEL, DEVLINK_CMD_REGION_READ, + DEVLINK_CMD_PORT_PARAM_GET, + DEVLINK_CMD_PORT_PARAM_SET, + DEVLINK_CMD_PORT_PARAM_NEW, + DEVLINK_CMD_PORT_PARAM_DEL, + DEVLINK_CMD_INFO_GET, + DEVLINK_CMD_HEALTH_REPORTER_GET, + DEVLINK_CMD_HEALTH_REPORTER_SET, + DEVLINK_CMD_HEALTH_REPORTER_RECOVER, + DEVLINK_CMD_HEALTH_REPORTER_DIAGNOSE, + DEVLINK_CMD_HEALTH_REPORTER_DUMP_GET, + DEVLINK_CMD_HEALTH_REPORTER_DUMP_CLEAR, + DEVLINK_CMD_FLASH_UPDATE, __DEVLINK_CMD_MAX, DEVLINK_CMD_MAX = __DEVLINK_CMD_MAX - 1 }; @@ -218,6 +230,32 @@ enum devlink_attr { DEVLINK_ATTR_REGION_CHUNK_DATA, DEVLINK_ATTR_REGION_CHUNK_ADDR, DEVLINK_ATTR_REGION_CHUNK_LEN, + DEVLINK_ATTR_INFO_DRIVER_NAME, + DEVLINK_ATTR_INFO_SERIAL_NUMBER, + DEVLINK_ATTR_INFO_VERSION_FIXED, + DEVLINK_ATTR_INFO_VERSION_RUNNING, + DEVLINK_ATTR_INFO_VERSION_STORED, + DEVLINK_ATTR_INFO_VERSION_NAME, + DEVLINK_ATTR_INFO_VERSION_VALUE, + DEVLINK_ATTR_SB_POOL_CELL_SIZE, + DEVLINK_ATTR_FMSG, + DEVLINK_ATTR_FMSG_OBJ_NEST_START, + DEVLINK_ATTR_FMSG_PAIR_NEST_START, + DEVLINK_ATTR_FMSG_ARR_NEST_START, + DEVLINK_ATTR_FMSG_NEST_END, + DEVLINK_ATTR_FMSG_OBJ_NAME, + DEVLINK_ATTR_FMSG_OBJ_VALUE_TYPE, + DEVLINK_ATTR_FMSG_OBJ_VALUE_DATA, + DEVLINK_ATTR_HEALTH_REPORTER, + DEVLINK_ATTR_HEALTH_REPORTER_NAME, + DEVLINK_ATTR_HEALTH_REPORTER_STATE, + DEVLINK_ATTR_HEALTH_REPORTER_ERR_COUNT, + DEVLINK_ATTR_HEALTH_REPORTER_RECOVER_COUNT, + DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS, + DEVLINK_ATTR_HEALTH_REPORTER_GRACEFUL_PERIOD, + DEVLINK_ATTR_HEALTH_REPORTER_AUTO_RECOVER, + DEVLINK_ATTR_FLASH_UPDATE_FILE_NAME, + DEVLINK_ATTR_FLASH_UPDATE_COMPONENT, __DEVLINK_ATTR_MAX, DEVLINK_ATTR_MAX = __DEVLINK_ATTR_MAX - 1 }; diff --git a/libc/kernel/uapi/linux/dm-ioctl.h b/libc/kernel/uapi/linux/dm-ioctl.h index 05847a701..3aa627d1f 100644 --- a/libc/kernel/uapi/linux/dm-ioctl.h +++ b/libc/kernel/uapi/linux/dm-ioctl.h @@ -102,9 +102,9 @@ enum { #define DM_TARGET_MSG _IOWR(DM_IOCTL, DM_TARGET_MSG_CMD, struct dm_ioctl) #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) #define DM_VERSION_MAJOR 4 -#define DM_VERSION_MINOR 39 +#define DM_VERSION_MINOR 40 #define DM_VERSION_PATCHLEVEL 0 -#define DM_VERSION_EXTRA "-ioctl(2018-04-03)" +#define DM_VERSION_EXTRA "-ioctl(2019-01-18)" #define DM_READONLY_FLAG (1 << 0) #define DM_SUSPEND_FLAG (1 << 1) #define DM_PERSISTENT_DEV_FLAG (1 << 3) diff --git a/libc/kernel/uapi/linux/elf.h b/libc/kernel/uapi/linux/elf.h index 9845bd389..8f2e6688c 100644 --- a/libc/kernel/uapi/linux/elf.h +++ b/libc/kernel/uapi/linux/elf.h @@ -356,6 +356,8 @@ typedef struct elf64_shdr { #define NT_ARM_SYSTEM_CALL 0x404 #define NT_ARM_SVE 0x405 #define NT_ARM_PAC_MASK 0x406 +#define NT_ARM_PACA_KEYS 0x407 +#define NT_ARM_PACG_KEYS 0x408 #define NT_ARC_V2 0x600 #define NT_VMCOREDD 0x700 #define NT_MIPS_DSP 0x800 diff --git a/libc/kernel/uapi/linux/errqueue.h b/libc/kernel/uapi/linux/errqueue.h index f4a244fc0..7959d2b1f 100644 --- a/libc/kernel/uapi/linux/errqueue.h +++ b/libc/kernel/uapi/linux/errqueue.h @@ -19,6 +19,7 @@ #ifndef _UAPI_LINUX_ERRQUEUE_H #define _UAPI_LINUX_ERRQUEUE_H #include <linux/types.h> +#include <linux/time_types.h> struct sock_extended_err { __u32 ee_errno; __u8 ee_origin; @@ -43,6 +44,9 @@ struct sock_extended_err { struct scm_timestamping { struct timespec ts[3]; }; +struct scm_timestamping64 { + struct __kernel_timespec ts[3]; +}; enum { SCM_TSTAMP_SND, SCM_TSTAMP_SCHED, diff --git a/libc/kernel/uapi/linux/ethtool.h b/libc/kernel/uapi/linux/ethtool.h index 25e1a9ee9..642af99f3 100644 --- a/libc/kernel/uapi/linux/ethtool.h +++ b/libc/kernel/uapi/linux/ethtool.h @@ -586,7 +586,22 @@ enum ethtool_link_mode_bit_indices { ETHTOOL_LINK_MODE_FEC_NONE_BIT = 49, ETHTOOL_LINK_MODE_FEC_RS_BIT = 50, ETHTOOL_LINK_MODE_FEC_BASER_BIT = 51, - __ETHTOOL_LINK_MODE_LAST = ETHTOOL_LINK_MODE_FEC_BASER_BIT, + ETHTOOL_LINK_MODE_50000baseKR_Full_BIT = 52, + ETHTOOL_LINK_MODE_50000baseSR_Full_BIT = 53, + ETHTOOL_LINK_MODE_50000baseCR_Full_BIT = 54, + ETHTOOL_LINK_MODE_50000baseLR_ER_FR_Full_BIT = 55, + ETHTOOL_LINK_MODE_50000baseDR_Full_BIT = 56, + ETHTOOL_LINK_MODE_100000baseKR2_Full_BIT = 57, + ETHTOOL_LINK_MODE_100000baseSR2_Full_BIT = 58, + ETHTOOL_LINK_MODE_100000baseCR2_Full_BIT = 59, + ETHTOOL_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT = 60, + ETHTOOL_LINK_MODE_100000baseDR2_Full_BIT = 61, + ETHTOOL_LINK_MODE_200000baseKR4_Full_BIT = 62, + ETHTOOL_LINK_MODE_200000baseSR4_Full_BIT = 63, + ETHTOOL_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT = 64, + ETHTOOL_LINK_MODE_200000baseDR4_Full_BIT = 65, + ETHTOOL_LINK_MODE_200000baseCR4_Full_BIT = 66, + __ETHTOOL_LINK_MODE_MASK_NBITS }; #define __ETHTOOL_LINK_MODE_LEGACY_MASK(base_name) (1UL << (ETHTOOL_LINK_MODE_ ##base_name ##_BIT)) #define SUPPORTED_10baseT_Half __ETHTOOL_LINK_MODE_LEGACY_MASK(10baseT_Half) @@ -664,6 +679,7 @@ enum ethtool_link_mode_bit_indices { #define SPEED_50000 50000 #define SPEED_56000 56000 #define SPEED_100000 100000 +#define SPEED_200000 200000 #define SPEED_UNKNOWN - 1 #define DUPLEX_HALF 0x00 #define DUPLEX_FULL 0x01 diff --git a/libc/kernel/uapi/linux/fanotify.h b/libc/kernel/uapi/linux/fanotify.h index 4c33fde5b..8b4494f5a 100644 --- a/libc/kernel/uapi/linux/fanotify.h +++ b/libc/kernel/uapi/linux/fanotify.h @@ -21,9 +21,16 @@ #include <linux/types.h> #define FAN_ACCESS 0x00000001 #define FAN_MODIFY 0x00000002 +#define FAN_ATTRIB 0x00000004 #define FAN_CLOSE_WRITE 0x00000008 #define FAN_CLOSE_NOWRITE 0x00000010 #define FAN_OPEN 0x00000020 +#define FAN_MOVED_FROM 0x00000040 +#define FAN_MOVED_TO 0x00000080 +#define FAN_CREATE 0x00000100 +#define FAN_DELETE 0x00000200 +#define FAN_DELETE_SELF 0x00000400 +#define FAN_MOVE_SELF 0x00000800 #define FAN_OPEN_EXEC 0x00001000 #define FAN_Q_OVERFLOW 0x00004000 #define FAN_OPEN_PERM 0x00010000 @@ -32,6 +39,7 @@ #define FAN_ONDIR 0x40000000 #define FAN_EVENT_ON_CHILD 0x08000000 #define FAN_CLOSE (FAN_CLOSE_WRITE | FAN_CLOSE_NOWRITE) +#define FAN_MOVE (FAN_MOVED_FROM | FAN_MOVED_TO) #define FAN_CLOEXEC 0x00000001 #define FAN_NONBLOCK 0x00000002 #define FAN_CLASS_NOTIF 0x00000000 @@ -42,6 +50,7 @@ #define FAN_UNLIMITED_MARKS 0x00000020 #define FAN_ENABLE_AUDIT 0x00000040 #define FAN_REPORT_TID 0x00000100 +#define FAN_REPORT_FID 0x00000200 #define FAN_ALL_INIT_FLAGS (FAN_CLOEXEC | FAN_NONBLOCK | FAN_ALL_CLASS_BITS | FAN_UNLIMITED_QUEUE | FAN_UNLIMITED_MARKS) #define FAN_MARK_ADD 0x00000001 #define FAN_MARK_REMOVE 0x00000002 @@ -67,6 +76,17 @@ struct fanotify_event_metadata { __s32 fd; __s32 pid; }; +#define FAN_EVENT_INFO_TYPE_FID 1 +struct fanotify_event_info_header { + __u8 info_type; + __u8 pad; + __u16 len; +}; +struct fanotify_event_info_fid { + struct fanotify_event_info_header hdr; + __kernel_fsid_t fsid; + unsigned char handle[0]; +}; struct fanotify_response { __s32 fd; __u32 response; diff --git a/libc/kernel/uapi/linux/fcntl.h b/libc/kernel/uapi/linux/fcntl.h index e98a67b2a..66f27b659 100644 --- a/libc/kernel/uapi/linux/fcntl.h +++ b/libc/kernel/uapi/linux/fcntl.h @@ -32,6 +32,7 @@ #define F_SEAL_SHRINK 0x0002 #define F_SEAL_GROW 0x0004 #define F_SEAL_WRITE 0x0008 +#define F_SEAL_FUTURE_WRITE 0x0010 #define F_GET_RW_HINT (F_LINUX_SPECIFIC_BASE + 11) #define F_SET_RW_HINT (F_LINUX_SPECIFIC_BASE + 12) #define F_GET_FILE_RW_HINT (F_LINUX_SPECIFIC_BASE + 13) diff --git a/libc/kernel/uapi/linux/fuse.h b/libc/kernel/uapi/linux/fuse.h index 3c3a124fc..4a76ae317 100644 --- a/libc/kernel/uapi/linux/fuse.h +++ b/libc/kernel/uapi/linux/fuse.h @@ -20,7 +20,7 @@ #define _LINUX_FUSE_H #include <stdint.h> #define FUSE_KERNEL_VERSION 7 -#define FUSE_KERNEL_MINOR_VERSION 28 +#define FUSE_KERNEL_MINOR_VERSION 29 #define FUSE_ROOT_ID 1 struct fuse_attr { uint64_t ino; @@ -97,6 +97,7 @@ struct fuse_file_lock { #define FUSE_ABORT_ERROR (1 << 21) #define FUSE_MAX_PAGES (1 << 22) #define FUSE_CACHE_SYMLINKS (1 << 23) +#define FUSE_NO_OPENDIR_SUPPORT (1 << 24) #define CUSE_UNRESTRICTED_IOCTL (1 << 0) #define FUSE_RELEASE_FLUSH (1 << 0) #define FUSE_RELEASE_FLOCK_UNLOCK (1 << 1) diff --git a/libc/kernel/uapi/linux/icmpv6.h b/libc/kernel/uapi/linux/icmpv6.h index fd035854f..ef73a7c18 100644 --- a/libc/kernel/uapi/linux/icmpv6.h +++ b/libc/kernel/uapi/linux/icmpv6.h @@ -90,6 +90,7 @@ struct icmp6hdr { #define ICMPV6_DHAAD_REPLY 145 #define ICMPV6_MOBILE_PREFIX_SOL 146 #define ICMPV6_MOBILE_PREFIX_ADV 147 +#define ICMPV6_MRDISC_ADV 151 #define ICMPV6_NOROUTE 0 #define ICMPV6_ADM_PROHIBITED 1 #define ICMPV6_NOT_NEIGHBOUR 2 diff --git a/libc/kernel/uapi/linux/if_bonding.h b/libc/kernel/uapi/linux/if_bonding.h index f77f8662f..a1fa959e6 100644 --- a/libc/kernel/uapi/linux/if_bonding.h +++ b/libc/kernel/uapi/linux/if_bonding.h @@ -69,4 +69,24 @@ struct ad_info { __u16 partner_key; __u8 partner_system[ETH_ALEN]; }; +enum { + BOND_XSTATS_UNSPEC, + BOND_XSTATS_3AD, + __BOND_XSTATS_MAX +}; +#define BOND_XSTATS_MAX (__BOND_XSTATS_MAX - 1) +enum { + BOND_3AD_STAT_LACPDU_RX, + BOND_3AD_STAT_LACPDU_TX, + BOND_3AD_STAT_LACPDU_UNKNOWN_RX, + BOND_3AD_STAT_LACPDU_ILLEGAL_RX, + BOND_3AD_STAT_MARKER_RX, + BOND_3AD_STAT_MARKER_TX, + BOND_3AD_STAT_MARKER_RESP_RX, + BOND_3AD_STAT_MARKER_RESP_TX, + BOND_3AD_STAT_MARKER_UNKNOWN_RX, + BOND_3AD_STAT_PAD, + __BOND_3AD_STAT_MAX +}; +#define BOND_3AD_STAT_MAX (__BOND_3AD_STAT_MAX - 1) #endif diff --git a/libc/kernel/uapi/linux/if_link.h b/libc/kernel/uapi/linux/if_link.h index 416c48ba8..8d0080baf 100644 --- a/libc/kernel/uapi/linux/if_link.h +++ b/libc/kernel/uapi/linux/if_link.h @@ -726,6 +726,7 @@ enum { enum { LINK_XSTATS_TYPE_UNSPEC, LINK_XSTATS_TYPE_BRIDGE, + LINK_XSTATS_TYPE_BOND, __LINK_XSTATS_TYPE_MAX }; #define LINK_XSTATS_TYPE_MAX (__LINK_XSTATS_TYPE_MAX - 1) diff --git a/libc/kernel/uapi/linux/igmp.h b/libc/kernel/uapi/linux/igmp.h index f5d116427..885b0f87f 100644 --- a/libc/kernel/uapi/linux/igmp.h +++ b/libc/kernel/uapi/linux/igmp.h @@ -73,6 +73,7 @@ struct igmpv3_query { #define IGMPV3_HOST_MEMBERSHIP_REPORT 0x22 #define IGMP_MTRACE_RESP 0x1e #define IGMP_MTRACE 0x1f +#define IGMP_MRDISC_ADV 0x30 #define IGMP_DELAYING_MEMBER 0x01 #define IGMP_IDLE_MEMBER 0x02 #define IGMP_LAZY_MEMBER 0x03 diff --git a/libc/kernel/uapi/linux/iio/types.h b/libc/kernel/uapi/linux/iio/types.h index 834a2eb64..e3f3ec4d7 100644 --- a/libc/kernel/uapi/linux/iio/types.h +++ b/libc/kernel/uapi/linux/iio/types.h @@ -53,6 +53,7 @@ enum iio_chan_type { IIO_GRAVITY, IIO_POSITIONRELATIVE, IIO_PHASE, + IIO_MASSCONCENTRATION, }; enum iio_modifier { IIO_NO_MOD, @@ -93,6 +94,12 @@ enum iio_modifier { IIO_MOD_VOC, IIO_MOD_LIGHT_UV, IIO_MOD_LIGHT_DUV, + IIO_MOD_PM1, + IIO_MOD_PM2P5, + IIO_MOD_PM4, + IIO_MOD_PM10, + IIO_MOD_ETHANOL, + IIO_MOD_H2, }; enum iio_event_type { IIO_EV_TYPE_THRESH, diff --git a/libc/kernel/uapi/linux/in.h b/libc/kernel/uapi/linux/in.h index 9ed00b43c..f1dab00eb 100644 --- a/libc/kernel/uapi/linux/in.h +++ b/libc/kernel/uapi/linux/in.h @@ -215,6 +215,7 @@ struct sockaddr_in { #define INADDR_UNSPEC_GROUP 0xe0000000U #define INADDR_ALLHOSTS_GROUP 0xe0000001U #define INADDR_ALLRTRS_GROUP 0xe0000002U +#define INADDR_ALLSNOOPERS_GROUP 0xe000006aU #define INADDR_MAX_LOCAL_GROUP 0xe00000ffU #endif #include <asm/byteorder.h> diff --git a/libc/kernel/uapi/linux/in6.h b/libc/kernel/uapi/linux/in6.h index 3627f52ad..2eb64d035 100644 --- a/libc/kernel/uapi/linux/in6.h +++ b/libc/kernel/uapi/linux/in6.h @@ -133,6 +133,7 @@ struct in6_flowlabel_req { #define IPV6_JOIN_ANYCAST 27 #define IPV6_LEAVE_ANYCAST 28 #define IPV6_MULTICAST_ALL 29 +#define IPV6_ROUTER_ALERT_ISOLATE 30 #define IPV6_PMTUDISC_DONT 0 #define IPV6_PMTUDISC_WANT 1 #define IPV6_PMTUDISC_DO 2 diff --git a/libc/kernel/uapi/linux/input-event-codes.h b/libc/kernel/uapi/linux/input-event-codes.h index 1ca3cb0f8..7bbb2340e 100644 --- a/libc/kernel/uapi/linux/input-event-codes.h +++ b/libc/kernel/uapi/linux/input-event-codes.h @@ -389,10 +389,12 @@ #define KEY_TITLE 0x171 #define KEY_SUBTITLE 0x172 #define KEY_ANGLE 0x173 -#define KEY_ZOOM 0x174 +#define KEY_FULL_SCREEN 0x174 +#define KEY_ZOOM KEY_FULL_SCREEN #define KEY_MODE 0x175 #define KEY_KEYBOARD 0x176 -#define KEY_SCREEN 0x177 +#define KEY_ASPECT_RATIO 0x177 +#define KEY_SCREEN KEY_ASPECT_RATIO #define KEY_PC 0x178 #define KEY_TV 0x179 #define KEY_TV2 0x17a diff --git a/libc/kernel/uapi/linux/io_uring.h b/libc/kernel/uapi/linux/io_uring.h new file mode 100644 index 000000000..fe2d0eb28 --- /dev/null +++ b/libc/kernel/uapi/linux/io_uring.h @@ -0,0 +1,100 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef LINUX_IO_URING_H +#define LINUX_IO_URING_H +#include <linux/fs.h> +#include <linux/types.h> +struct io_uring_sqe { + __u8 opcode; + __u8 flags; + __u16 ioprio; + __s32 fd; + __u64 off; + __u64 addr; + __u32 len; + union { + __kernel_rwf_t rw_flags; + __u32 fsync_flags; + __u16 poll_events; + }; + __u64 user_data; + union { + __u16 buf_index; + __u64 __pad2[3]; + }; +}; +#define IOSQE_FIXED_FILE (1U << 0) +#define IORING_SETUP_IOPOLL (1U << 0) +#define IORING_SETUP_SQPOLL (1U << 1) +#define IORING_SETUP_SQ_AFF (1U << 2) +#define IORING_OP_NOP 0 +#define IORING_OP_READV 1 +#define IORING_OP_WRITEV 2 +#define IORING_OP_FSYNC 3 +#define IORING_OP_READ_FIXED 4 +#define IORING_OP_WRITE_FIXED 5 +#define IORING_OP_POLL_ADD 6 +#define IORING_OP_POLL_REMOVE 7 +#define IORING_FSYNC_DATASYNC (1U << 0) +struct io_uring_cqe { + __u64 user_data; + __s32 res; + __u32 flags; +}; +#define IORING_OFF_SQ_RING 0ULL +#define IORING_OFF_CQ_RING 0x8000000ULL +#define IORING_OFF_SQES 0x10000000ULL +struct io_sqring_offsets { + __u32 head; + __u32 tail; + __u32 ring_mask; + __u32 ring_entries; + __u32 flags; + __u32 dropped; + __u32 array; + __u32 resv1; + __u64 resv2; +}; +#define IORING_SQ_NEED_WAKEUP (1U << 0) +struct io_cqring_offsets { + __u32 head; + __u32 tail; + __u32 ring_mask; + __u32 ring_entries; + __u32 overflow; + __u32 cqes; + __u64 resv[2]; +}; +#define IORING_ENTER_GETEVENTS (1U << 0) +#define IORING_ENTER_SQ_WAKEUP (1U << 1) +struct io_uring_params { + __u32 sq_entries; + __u32 cq_entries; + __u32 flags; + __u32 sq_thread_cpu; + __u32 sq_thread_idle; + __u32 resv[5]; + struct io_sqring_offsets sq_off; + struct io_cqring_offsets cq_off; +}; +#define IORING_REGISTER_BUFFERS 0 +#define IORING_UNREGISTER_BUFFERS 1 +#define IORING_REGISTER_FILES 2 +#define IORING_UNREGISTER_FILES 3 +#endif diff --git a/libc/kernel/uapi/linux/kernel-page-flags.h b/libc/kernel/uapi/linux/kernel-page-flags.h index afa03936e..d66cd7fe3 100644 --- a/libc/kernel/uapi/linux/kernel-page-flags.h +++ b/libc/kernel/uapi/linux/kernel-page-flags.h @@ -41,7 +41,7 @@ #define KPF_NOPAGE 20 #define KPF_KSM 21 #define KPF_THP 22 -#define KPF_BALLOON 23 +#define KPF_OFFLINE 23 #define KPF_ZERO_PAGE 24 #define KPF_IDLE 25 #define KPF_PGTABLE 26 diff --git a/libc/kernel/uapi/linux/limits.h b/libc/kernel/uapi/linux/limits.h index ad0e33ea2..101b7aa3e 100644 --- a/libc/kernel/uapi/linux/limits.h +++ b/libc/kernel/uapi/linux/limits.h @@ -16,8 +16,8 @@ *** **************************************************************************** ****************************************************************************/ -#ifndef _LINUX_LIMITS_H -#define _LINUX_LIMITS_H +#ifndef _UAPI_LINUX_LIMITS_H +#define _UAPI_LINUX_LIMITS_H #define NR_OPEN 1024 #define NGROUPS_MAX 65536 #define ARG_MAX 131072 diff --git a/libc/kernel/uapi/linux/lirc.h b/libc/kernel/uapi/linux/lirc.h index 4a8d0fff2..515d8ce90 100644 --- a/libc/kernel/uapi/linux/lirc.h +++ b/libc/kernel/uapi/linux/lirc.h @@ -127,5 +127,8 @@ enum rc_proto { RC_PROTO_XMP = 21, RC_PROTO_CEC = 22, RC_PROTO_IMON = 23, + RC_PROTO_RCMM12 = 24, + RC_PROTO_RCMM24 = 25, + RC_PROTO_RCMM32 = 26, }; #endif diff --git a/libc/kernel/uapi/linux/mdio.h b/libc/kernel/uapi/linux/mdio.h index 2617f2e76..14f1e7746 100644 --- a/libc/kernel/uapi/linux/mdio.h +++ b/libc/kernel/uapi/linux/mdio.h @@ -47,6 +47,7 @@ #define MDIO_AN_ADVERTISE 16 #define MDIO_AN_LPA 19 #define MDIO_PCS_EEE_ABLE 20 +#define MDIO_PMA_NG_EXTABLE 21 #define MDIO_PCS_EEE_WK_ERR 22 #define MDIO_PHYXS_LNSTAT 24 #define MDIO_AN_EEE_ADV 60 @@ -82,6 +83,8 @@ #define MDIO_PCS_CTRL1_CLKSTOP_EN 0x400 #define MDIO_CTRL1_SPEED10G (MDIO_CTRL1_SPEEDSELEXT | 0x00) #define MDIO_CTRL1_SPEED10P2B (MDIO_CTRL1_SPEEDSELEXT | 0x04) +#define MDIO_CTRL1_SPEED2_5G (MDIO_CTRL1_SPEEDSELEXT | 0x18) +#define MDIO_CTRL1_SPEED5G (MDIO_CTRL1_SPEEDSELEXT | 0x1c) #define MDIO_STAT1_LPOWERABLE 0x0002 #define MDIO_STAT1_LSTATUS BMSR_LSTATUS #define MDIO_STAT1_FAULT 0x0080 @@ -99,6 +102,7 @@ #define MDIO_PMA_SPEED_10 0x0040 #define MDIO_PCS_SPEED_10P2B 0x0002 #define MDIO_DEVS_PRESENT(devad) (1 << (devad)) +#define MDIO_DEVS_C22PRESENT MDIO_DEVS_PRESENT(0) #define MDIO_DEVS_PMAPMD MDIO_DEVS_PRESENT(MDIO_MMD_PMAPMD) #define MDIO_DEVS_WIS MDIO_DEVS_PRESENT(MDIO_MMD_WIS) #define MDIO_DEVS_PCS MDIO_DEVS_PRESENT(MDIO_MMD_PCS) @@ -107,6 +111,8 @@ #define MDIO_DEVS_TC MDIO_DEVS_PRESENT(MDIO_MMD_TC) #define MDIO_DEVS_AN MDIO_DEVS_PRESENT(MDIO_MMD_AN) #define MDIO_DEVS_C22EXT MDIO_DEVS_PRESENT(MDIO_MMD_C22EXT) +#define MDIO_DEVS_VEND1 MDIO_DEVS_PRESENT(MDIO_MMD_VEND1) +#define MDIO_DEVS_VEND2 MDIO_DEVS_PRESENT(MDIO_MMD_VEND2) #define MDIO_PMA_CTRL2_TYPE 0x000f #define MDIO_PMA_CTRL2_10GBCX4 0x0000 #define MDIO_PMA_CTRL2_10GBEW 0x0001 @@ -124,6 +130,8 @@ #define MDIO_PMA_CTRL2_1000BKX 0x000d #define MDIO_PMA_CTRL2_100BTX 0x000e #define MDIO_PMA_CTRL2_10BT 0x000f +#define MDIO_PMA_CTRL2_2_5GBT 0x0030 +#define MDIO_PMA_CTRL2_5GBT 0x0031 #define MDIO_PCS_CTRL2_TYPE 0x0003 #define MDIO_PCS_CTRL2_10GBR 0x0000 #define MDIO_PCS_CTRL2_10GBX 0x0001 @@ -169,6 +177,7 @@ #define MDIO_PMA_EXTABLE_1000BKX 0x0040 #define MDIO_PMA_EXTABLE_100BTX 0x0080 #define MDIO_PMA_EXTABLE_10BT 0x0100 +#define MDIO_PMA_EXTABLE_NBT 0x4000 #define MDIO_PHYXS_LNSTAT_SYNC0 0x0001 #define MDIO_PHYXS_LNSTAT_SYNC1 0x0002 #define MDIO_PHYXS_LNSTAT_SYNC2 0x0004 @@ -188,7 +197,11 @@ #define MDIO_PCS_10GBRT_STAT1_BLKLK 0x0001 #define MDIO_PCS_10GBRT_STAT2_ERR 0x00ff #define MDIO_PCS_10GBRT_STAT2_BER 0x3f00 +#define MDIO_AN_10GBT_CTRL_ADV2_5G 0x0080 +#define MDIO_AN_10GBT_CTRL_ADV5G 0x0100 #define MDIO_AN_10GBT_CTRL_ADV10G 0x1000 +#define MDIO_AN_10GBT_STAT_LP2_5G 0x0020 +#define MDIO_AN_10GBT_STAT_LP5G 0x0040 #define MDIO_AN_10GBT_STAT_LPTRR 0x0200 #define MDIO_AN_10GBT_STAT_LPLTABLE 0x0400 #define MDIO_AN_10GBT_STAT_LP10G 0x0800 @@ -204,6 +217,8 @@ #define MDIO_EEE_1000KX 0x0010 #define MDIO_EEE_10GKX4 0x0020 #define MDIO_EEE_10GKR 0x0040 +#define MDIO_PMA_NG_EXTABLE_2_5GBT 0x0001 +#define MDIO_PMA_NG_EXTABLE_5GBT 0x0002 #define MDIO_PMA_LASI_RX_PHYXSLFLT 0x0001 #define MDIO_PMA_LASI_RX_PCSLFLT 0x0008 #define MDIO_PMA_LASI_RX_PMALFLT 0x0010 diff --git a/libc/kernel/uapi/linux/mman.h b/libc/kernel/uapi/linux/mman.h index 0c9c39799..e4693742d 100644 --- a/libc/kernel/uapi/linux/mman.h +++ b/libc/kernel/uapi/linux/mman.h @@ -25,6 +25,9 @@ #define OVERCOMMIT_GUESS 0 #define OVERCOMMIT_ALWAYS 1 #define OVERCOMMIT_NEVER 2 +#define MAP_SHARED 0x01 +#define MAP_PRIVATE 0x02 +#define MAP_SHARED_VALIDATE 0x03 #define MAP_HUGE_SHIFT HUGETLB_FLAG_ENCODE_SHIFT #define MAP_HUGE_MASK HUGETLB_FLAG_ENCODE_MASK #define MAP_HUGE_64KB HUGETLB_FLAG_ENCODE_64KB diff --git a/libc/kernel/uapi/linux/mroute.h b/libc/kernel/uapi/linux/mroute.h index f0cb21b5a..7e0078f31 100644 --- a/libc/kernel/uapi/linux/mroute.h +++ b/libc/kernel/uapi/linux/mroute.h @@ -34,10 +34,15 @@ #define MRT_TABLE (MRT_BASE + 9) #define MRT_ADD_MFC_PROXY (MRT_BASE + 10) #define MRT_DEL_MFC_PROXY (MRT_BASE + 11) -#define MRT_MAX (MRT_BASE + 11) +#define MRT_FLUSH (MRT_BASE + 12) +#define MRT_MAX (MRT_BASE + 12) #define SIOCGETVIFCNT SIOCPROTOPRIVATE #define SIOCGETSGCNT (SIOCPROTOPRIVATE + 1) #define SIOCGETRPF (SIOCPROTOPRIVATE + 2) +#define MRT_FLUSH_MFC 1 +#define MRT_FLUSH_MFC_STATIC 2 +#define MRT_FLUSH_VIFS 4 +#define MRT_FLUSH_VIFS_STATIC 8 #define MAXVIFS 32 typedef unsigned long vifbitmap_t; typedef unsigned short vifi_t; diff --git a/libc/kernel/uapi/linux/mroute6.h b/libc/kernel/uapi/linux/mroute6.h index ccb38d991..e6c83e981 100644 --- a/libc/kernel/uapi/linux/mroute6.h +++ b/libc/kernel/uapi/linux/mroute6.h @@ -35,10 +35,15 @@ #define MRT6_TABLE (MRT6_BASE + 9) #define MRT6_ADD_MFC_PROXY (MRT6_BASE + 10) #define MRT6_DEL_MFC_PROXY (MRT6_BASE + 11) -#define MRT6_MAX (MRT6_BASE + 11) +#define MRT6_FLUSH (MRT6_BASE + 12) +#define MRT6_MAX (MRT6_BASE + 12) #define SIOCGETMIFCNT_IN6 SIOCPROTOPRIVATE #define SIOCGETSGCNT_IN6 (SIOCPROTOPRIVATE + 1) #define SIOCGETRPF (SIOCPROTOPRIVATE + 2) +#define MRT6_FLUSH_MFC 1 +#define MRT6_FLUSH_MFC_STATIC 2 +#define MRT6_FLUSH_MIFS 4 +#define MRT6_FLUSH_MIFS_STATIC 8 #define MAXMIFS 32 typedef unsigned long mifbitmap_t; typedef unsigned short mifi_t; diff --git a/libc/kernel/uapi/linux/ndctl.h b/libc/kernel/uapi/linux/ndctl.h index 742fbad59..e47091f13 100644 --- a/libc/kernel/uapi/linux/ndctl.h +++ b/libc/kernel/uapi/linux/ndctl.h @@ -157,5 +157,6 @@ struct nd_cmd_pkg { #define NVDIMM_FAMILY_HPE1 1 #define NVDIMM_FAMILY_HPE2 2 #define NVDIMM_FAMILY_MSFT 3 +#define NVDIMM_FAMILY_HYPERV 4 #define ND_IOCTL_CALL _IOWR(ND_IOCTL, ND_CMD_CALL, struct nd_cmd_pkg) #endif diff --git a/libc/kernel/uapi/linux/netfilter/nf_tables.h b/libc/kernel/uapi/linux/netfilter/nf_tables.h index 2bb7c863b..1043799a0 100644 --- a/libc/kernel/uapi/linux/netfilter/nf_tables.h +++ b/libc/kernel/uapi/linux/netfilter/nf_tables.h @@ -139,6 +139,7 @@ enum nft_rule_attributes { NFTA_RULE_USERDATA, NFTA_RULE_PAD, NFTA_RULE_ID, + NFTA_RULE_POSITION_ID, __NFTA_RULE_MAX }; #define NFTA_RULE_MAX (__NFTA_RULE_MAX - 1) @@ -413,6 +414,8 @@ enum nft_meta_keys { NFT_META_CGROUP, NFT_META_PRANDOM, NFT_META_SECPATH, + NFT_META_IIFKIND, + NFT_META_OIFKIND, }; enum nft_rt_keys { NFT_RT_CLASSID, @@ -922,10 +925,18 @@ enum nft_tunnel_keys { __NFT_TUNNEL_MAX }; #define NFT_TUNNEL_MAX (__NFT_TUNNEL_MAX - 1) +enum nft_tunnel_mode { + NFT_TUNNEL_MODE_NONE, + NFT_TUNNEL_MODE_RX, + NFT_TUNNEL_MODE_TX, + __NFT_TUNNEL_MODE_MAX +}; +#define NFT_TUNNEL_MODE_MAX (__NFT_TUNNEL_MODE_MAX - 1) enum nft_tunnel_attributes { NFTA_TUNNEL_UNSPEC, NFTA_TUNNEL_KEY, NFTA_TUNNEL_DREG, + NFTA_TUNNEL_MODE, __NFTA_TUNNEL_MAX }; #define NFTA_TUNNEL_MAX (__NFTA_TUNNEL_MAX - 1) diff --git a/libc/kernel/uapi/linux/nl80211.h b/libc/kernel/uapi/linux/nl80211.h index 29a7b66c3..a7f63096e 100644 --- a/libc/kernel/uapi/linux/nl80211.h +++ b/libc/kernel/uapi/linux/nl80211.h @@ -458,6 +458,7 @@ enum nl80211_attrs { NL80211_ATTR_FTM_RESPONDER_STATS, NL80211_ATTR_TIMEOUT, NL80211_ATTR_PEER_MEASUREMENTS, + NL80211_ATTR_AIRTIME_WEIGHT, __NL80211_ATTR_AFTER_LAST, NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST, NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1 @@ -628,6 +629,8 @@ enum nl80211_sta_info { NL80211_STA_INFO_RX_MPDUS, NL80211_STA_INFO_FCS_ERROR_COUNT, NL80211_STA_INFO_CONNECTED_TO_GATE, + NL80211_STA_INFO_TX_DURATION, + NL80211_STA_INFO_AIRTIME_WEIGHT, __NL80211_STA_INFO_AFTER_LAST, NL80211_STA_INFO_MAX = __NL80211_STA_INFO_AFTER_LAST - 1 }; @@ -675,6 +678,8 @@ enum nl80211_mpath_info { NL80211_MPATH_INFO_FLAGS, NL80211_MPATH_INFO_DISCOVERY_TIMEOUT, NL80211_MPATH_INFO_DISCOVERY_RETRIES, + NL80211_MPATH_INFO_HOP_COUNT, + NL80211_MPATH_INFO_PATH_CHANGE, __NL80211_MPATH_INFO_AFTER_LAST, NL80211_MPATH_INFO_MAX = __NL80211_MPATH_INFO_AFTER_LAST - 1 }; @@ -1304,6 +1309,8 @@ enum nl80211_ext_feature_index { NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT, NL80211_EXT_FEATURE_CAN_REPLACE_PTK0, NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER, + NL80211_EXT_FEATURE_AIRTIME_FAIRNESS, + NL80211_EXT_FEATURE_AP_PMKSA_CACHING, NUM_NL80211_EXT_FEATURES, MAX_NL80211_EXT_FEATURES = NUM_NL80211_EXT_FEATURES - 1 }; @@ -1375,6 +1382,7 @@ enum nl80211_crit_proto_id { #define NL80211_CRIT_PROTO_MAX_DURATION 5000 enum nl80211_rxmgmt_flags { NL80211_RXMGMT_FLAG_ANSWERED = 1 << 0, + NL80211_RXMGMT_FLAG_EXTERNAL_AUTH = 1 << 1, }; #define NL80211_VENDOR_ID_IS_LINUX 0x80000000 struct nl80211_vendor_cmd_info { diff --git a/libc/kernel/uapi/linux/pci_regs.h b/libc/kernel/uapi/linux/pci_regs.h index 8122fbb26..d75d200e9 100644 --- a/libc/kernel/uapi/linux/pci_regs.h +++ b/libc/kernel/uapi/linux/pci_regs.h @@ -739,6 +739,7 @@ #define PCI_ATS_CAP 0x04 #define PCI_ATS_CAP_QDEP(x) ((x) & 0x1f) #define PCI_ATS_MAX_QDEP 32 +#define PCI_ATS_CAP_PAGE_ALIGNED 0x0020 #define PCI_ATS_CTRL 0x06 #define PCI_ATS_CTRL_ENABLE 0x8000 #define PCI_ATS_CTRL_STU(x) ((x) & 0x1f) @@ -751,6 +752,7 @@ #define PCI_PRI_STATUS_RF 0x001 #define PCI_PRI_STATUS_UPRGI 0x002 #define PCI_PRI_STATUS_STOPPED 0x100 +#define PCI_PRI_STATUS_PASID 0x8000 #define PCI_PRI_MAX_REQ 0x08 #define PCI_PRI_ALLOC_REQ 0x0c #define PCI_EXT_CAP_PRI_SIZEOF 16 diff --git a/libc/kernel/uapi/linux/perf_event.h b/libc/kernel/uapi/linux/perf_event.h index bf517850a..90485885f 100644 --- a/libc/kernel/uapi/linux/perf_event.h +++ b/libc/kernel/uapi/linux/perf_event.h @@ -198,7 +198,7 @@ struct perf_event_attr { }; __u64 sample_type; __u64 read_format; - __u64 disabled : 1, inherit : 1, pinned : 1, exclusive : 1, exclude_user : 1, exclude_kernel : 1, exclude_hv : 1, exclude_idle : 1, mmap : 1, comm : 1, freq : 1, inherit_stat : 1, enable_on_exec : 1, task : 1, watermark : 1, precise_ip : 2, mmap_data : 1, sample_id_all : 1, exclude_host : 1, exclude_guest : 1, exclude_callchain_kernel : 1, exclude_callchain_user : 1, mmap2 : 1, comm_exec : 1, use_clockid : 1, context_switch : 1, write_backward : 1, namespaces : 1, __reserved_1 : 35; + __u64 disabled : 1, inherit : 1, pinned : 1, exclusive : 1, exclude_user : 1, exclude_kernel : 1, exclude_hv : 1, exclude_idle : 1, mmap : 1, comm : 1, freq : 1, inherit_stat : 1, enable_on_exec : 1, task : 1, watermark : 1, precise_ip : 2, mmap_data : 1, sample_id_all : 1, exclude_host : 1, exclude_guest : 1, exclude_callchain_kernel : 1, exclude_callchain_user : 1, mmap2 : 1, comm_exec : 1, use_clockid : 1, context_switch : 1, write_backward : 1, namespaces : 1, ksymbol : 1, bpf_event : 1, __reserved_1 : 33; union { __u32 wakeup_events; __u32 wakeup_watermark; @@ -230,7 +230,6 @@ struct perf_event_query_bpf { __u32 prog_cnt; __u32 ids[0]; }; -#define perf_flags(attr) (* (& (attr)->read_format + 1)) #define PERF_EVENT_IOC_ENABLE _IO('$', 0) #define PERF_EVENT_IOC_DISABLE _IO('$', 1) #define PERF_EVENT_IOC_REFRESH _IO('$', 2) @@ -327,8 +326,22 @@ enum perf_event_type { PERF_RECORD_SWITCH = 14, PERF_RECORD_SWITCH_CPU_WIDE = 15, PERF_RECORD_NAMESPACES = 16, + PERF_RECORD_KSYMBOL = 17, + PERF_RECORD_BPF_EVENT = 18, PERF_RECORD_MAX, }; +enum perf_record_ksymbol_type { + PERF_RECORD_KSYMBOL_TYPE_UNKNOWN = 0, + PERF_RECORD_KSYMBOL_TYPE_BPF = 1, + PERF_RECORD_KSYMBOL_TYPE_MAX +}; +#define PERF_RECORD_KSYMBOL_FLAGS_UNREGISTER (1 << 0) +enum perf_bpf_event_type { + PERF_BPF_EVENT_UNKNOWN = 0, + PERF_BPF_EVENT_PROG_LOAD = 1, + PERF_BPF_EVENT_PROG_UNLOAD = 2, + PERF_BPF_EVENT_MAX, +}; #define PERF_MAX_STACK_DEPTH 127 #define PERF_MAX_CONTEXTS_PER_STACK 8 enum perf_callchain_context { diff --git a/libc/kernel/uapi/linux/pkt_cls.h b/libc/kernel/uapi/linux/pkt_cls.h index 2018f0b8b..6db3a6d6e 100644 --- a/libc/kernel/uapi/linux/pkt_cls.h +++ b/libc/kernel/uapi/linux/pkt_cls.h @@ -59,9 +59,41 @@ enum { #define TC_ACT_JUMP __TC_ACT_EXT(1) #define TC_ACT_GOTO_CHAIN __TC_ACT_EXT(2) #define TC_ACT_EXT_OPCODE_MAX TC_ACT_GOTO_CHAIN -enum { +#define TCA_ACT_GACT 5 +#define TCA_ACT_IPT 6 +#define TCA_ACT_PEDIT 7 +#define TCA_ACT_MIRRED 8 +#define TCA_ACT_NAT 9 +#define TCA_ACT_XT 10 +#define TCA_ACT_SKBEDIT 11 +#define TCA_ACT_VLAN 12 +#define TCA_ACT_BPF 13 +#define TCA_ACT_CONNMARK 14 +#define TCA_ACT_SKBMOD 15 +#define TCA_ACT_CSUM 16 +#define TCA_ACT_TUNNEL_KEY 17 +#define TCA_ACT_SIMP 22 +#define TCA_ACT_IFE 25 +#define TCA_ACT_SAMPLE 26 +enum tca_id { TCA_ID_UNSPEC = 0, TCA_ID_POLICE = 1, + TCA_ID_GACT = TCA_ACT_GACT, + TCA_ID_IPT = TCA_ACT_IPT, + TCA_ID_PEDIT = TCA_ACT_PEDIT, + TCA_ID_MIRRED = TCA_ACT_MIRRED, + TCA_ID_NAT = TCA_ACT_NAT, + TCA_ID_XT = TCA_ACT_XT, + TCA_ID_SKBEDIT = TCA_ACT_SKBEDIT, + TCA_ID_VLAN = TCA_ACT_VLAN, + TCA_ID_BPF = TCA_ACT_BPF, + TCA_ID_CONNMARK = TCA_ACT_CONNMARK, + TCA_ID_SKBMOD = TCA_ACT_SKBMOD, + TCA_ID_CSUM = TCA_ACT_CSUM, + TCA_ID_TUNNEL_KEY = TCA_ACT_TUNNEL_KEY, + TCA_ID_SIMP = TCA_ACT_SIMP, + TCA_ID_IFE = TCA_ACT_IFE, + TCA_ID_SAMPLE = TCA_ACT_SAMPLE, __TCA_ID_MAX = 255 }; #define TCA_ID_MAX __TCA_ID_MAX @@ -267,12 +299,18 @@ enum { __TCA_FLOW_MAX }; #define TCA_FLOW_MAX (__TCA_FLOW_MAX - 1) +struct tc_basic_pcnt { + __u64 rcnt; + __u64 rhit; +}; enum { TCA_BASIC_UNSPEC, TCA_BASIC_CLASSID, TCA_BASIC_EMATCHES, TCA_BASIC_ACT, TCA_BASIC_POLICE, + TCA_BASIC_PCNT, + TCA_BASIC_PAD, __TCA_BASIC_MAX }; #define TCA_BASIC_MAX (__TCA_BASIC_MAX - 1) @@ -415,11 +453,16 @@ enum { TCA_FLOWER_KEY_FLAGS_FRAG_IS_FIRST = (1 << 1), }; #define TCA_FLOWER_MASK_FLAGS_RANGE (1 << 0) +struct tc_matchall_pcnt { + __u64 rhit; +}; enum { TCA_MATCHALL_UNSPEC, TCA_MATCHALL_CLASSID, TCA_MATCHALL_ACT, TCA_MATCHALL_FLAGS, + TCA_MATCHALL_PCNT, + TCA_MATCHALL_PAD, __TCA_MATCHALL_MAX, }; #define TCA_MATCHALL_MAX (__TCA_MATCHALL_MAX - 1) diff --git a/libc/kernel/uapi/linux/pkt_sched.h b/libc/kernel/uapi/linux/pkt_sched.h index dc0cd2faa..6adc01307 100644 --- a/libc/kernel/uapi/linux/pkt_sched.h +++ b/libc/kernel/uapi/linux/pkt_sched.h @@ -713,7 +713,7 @@ enum { }; #define TCA_PIE_MAX (__TCA_PIE_MAX - 1) struct tc_pie_xstats { - __u32 prob; + __u64 prob; __u32 delay; __u32 avg_dq_rate; __u32 packets_in; @@ -768,6 +768,7 @@ enum { TCA_CAKE_INGRESS, TCA_CAKE_ACK_FILTER, TCA_CAKE_SPLIT_GSO, + TCA_CAKE_FWMARK, __TCA_CAKE_MAX }; #define TCA_CAKE_MAX (__TCA_CAKE_MAX - 1) diff --git a/libc/kernel/uapi/linux/pmu.h b/libc/kernel/uapi/linux/pmu.h index 2c7ffeff8..d3d08b0dc 100644 --- a/libc/kernel/uapi/linux/pmu.h +++ b/libc/kernel/uapi/linux/pmu.h @@ -23,7 +23,9 @@ #define PMU_POWER_CTRL 0x11 #define PMU_ADB_CMD 0x20 #define PMU_ADB_POLL_OFF 0x21 +#define PMU_WRITE_XPRAM 0x32 #define PMU_WRITE_NVRAM 0x33 +#define PMU_READ_XPRAM 0x3a #define PMU_READ_NVRAM 0x3b #define PMU_SET_RTC 0x30 #define PMU_READ_RTC 0x38 diff --git a/libc/kernel/uapi/linux/prctl.h b/libc/kernel/uapi/linux/prctl.h index 5031e8d2c..9015e29bf 100644 --- a/libc/kernel/uapi/linux/prctl.h +++ b/libc/kernel/uapi/linux/prctl.h @@ -143,6 +143,7 @@ struct prctl_mm_map { #define PR_SPEC_ENABLE (1UL << 1) #define PR_SPEC_DISABLE (1UL << 2) #define PR_SPEC_FORCE_DISABLE (1UL << 3) +#define PR_SPEC_DISABLE_NOEXEC (1UL << 4) #define PR_PAC_RESET_KEYS 54 #define PR_PAC_APIAKEY (1UL << 0) #define PR_PAC_APIBKEY (1UL << 1) diff --git a/libc/kernel/uapi/linux/rds.h b/libc/kernel/uapi/linux/rds.h index 05da0cd24..951427f57 100644 --- a/libc/kernel/uapi/linux/rds.h +++ b/libc/kernel/uapi/linux/rds.h @@ -36,6 +36,9 @@ #define RDS_TRANS_TCP 2 #define RDS_TRANS_COUNT 3 #define RDS_TRANS_NONE (~0) +#define SIOCRDSSETTOS (SIOCPROTOPRIVATE) +#define SIOCRDSGETTOS (SIOCPROTOPRIVATE + 1) +typedef __u8 rds_tos_t; #define RDS_CMSG_RDMA_ARGS 1 #define RDS_CMSG_RDMA_DEST 2 #define RDS_CMSG_RDMA_MAP 3 @@ -82,6 +85,7 @@ struct rds_info_connection { __be32 faddr; __u8 transport[TRANSNAMSIZ]; __u8 flags; + __u8 tos; } __attribute__((packed)); struct rds6_info_connection { __u64 next_tx_seq; @@ -101,6 +105,7 @@ struct rds_info_message { __be16 lport; __be16 fport; __u8 flags; + __u8 tos; } __attribute__((packed)); struct rds6_info_message { __u64 seq; @@ -140,6 +145,7 @@ struct rds_info_tcp_socket { __u32 last_sent_nxt; __u32 last_expected_una; __u32 last_seen_una; + __u8 tos; } __attribute__((packed)); struct rds6_info_tcp_socket { struct in6_addr local_addr; @@ -163,6 +169,7 @@ struct rds_info_rdma_connection { __u32 max_send_sge; __u32 rdma_mr_max; __u32 rdma_mr_size; + __u8 tos; }; struct rds6_info_rdma_connection { struct in6_addr src_addr; @@ -174,6 +181,7 @@ struct rds6_info_rdma_connection { __u32 max_send_sge; __u32 rdma_mr_max; __u32 rdma_mr_size; + __u8 tos; }; enum rds_message_rxpath_latency { RDS_MSG_RX_HDR_TO_DGRAM_START = 0, diff --git a/libc/kernel/uapi/linux/sctp.h b/libc/kernel/uapi/linux/sctp.h index 66fde7048..18c5d2142 100644 --- a/libc/kernel/uapi/linux/sctp.h +++ b/libc/kernel/uapi/linux/sctp.h @@ -21,6 +21,9 @@ #include <linux/types.h> #include <linux/socket.h> typedef __s32 sctp_assoc_t; +#define SCTP_FUTURE_ASSOC 0 +#define SCTP_CURRENT_ASSOC 1 +#define SCTP_ALL_ASSOC 2 #define SCTP_RTOINFO 0 #define SCTP_ASSOCINFO 1 #define SCTP_INITMSG 2 diff --git a/libc/kernel/uapi/linux/serial_core.h b/libc/kernel/uapi/linux/serial_core.h index b9af467b1..791f5d7f6 100644 --- a/libc/kernel/uapi/linux/serial_core.h +++ b/libc/kernel/uapi/linux/serial_core.h @@ -60,6 +60,7 @@ #define PORT_SUNZILOG 38 #define PORT_SUNSAB 39 #define PORT_NPCM 40 +#define PORT_TEGRA_TCU 41 #define PORT_PCH_8LINE 44 #define PORT_PCH_2LINE 45 #define PORT_DZ 46 diff --git a/libc/kernel/uapi/linux/tc_act/tc_bpf.h b/libc/kernel/uapi/linux/tc_act/tc_bpf.h index c4963a565..48094d447 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_bpf.h +++ b/libc/kernel/uapi/linux/tc_act/tc_bpf.h @@ -19,7 +19,6 @@ #ifndef __LINUX_TC_BPF_H #define __LINUX_TC_BPF_H #include <linux/pkt_cls.h> -#define TCA_ACT_BPF 13 struct tc_act_bpf { tc_gen; }; diff --git a/libc/kernel/uapi/linux/tc_act/tc_connmark.h b/libc/kernel/uapi/linux/tc_act/tc_connmark.h index 32cc44b49..5fe979c61 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_connmark.h +++ b/libc/kernel/uapi/linux/tc_act/tc_connmark.h @@ -20,7 +20,6 @@ #define __UAPI_TC_CONNMARK_H #include <linux/types.h> #include <linux/pkt_cls.h> -#define TCA_ACT_CONNMARK 14 struct tc_connmark { tc_gen; __u16 zone; diff --git a/libc/kernel/uapi/linux/tc_act/tc_csum.h b/libc/kernel/uapi/linux/tc_act/tc_csum.h index 7de401921..1fcd00db3 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_csum.h +++ b/libc/kernel/uapi/linux/tc_act/tc_csum.h @@ -20,7 +20,6 @@ #define __LINUX_TC_CSUM_H #include <linux/types.h> #include <linux/pkt_cls.h> -#define TCA_ACT_CSUM 16 enum { TCA_CSUM_UNSPEC, TCA_CSUM_PARMS, diff --git a/libc/kernel/uapi/linux/tc_act/tc_gact.h b/libc/kernel/uapi/linux/tc_act/tc_gact.h index 11d85330d..ac96dff8b 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_gact.h +++ b/libc/kernel/uapi/linux/tc_act/tc_gact.h @@ -20,7 +20,6 @@ #define __LINUX_TC_GACT_H #include <linux/types.h> #include <linux/pkt_cls.h> -#define TCA_ACT_GACT 5 struct tc_gact { tc_gen; }; diff --git a/libc/kernel/uapi/linux/tc_act/tc_ife.h b/libc/kernel/uapi/linux/tc_act/tc_ife.h index 3193be062..346ebac0a 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_ife.h +++ b/libc/kernel/uapi/linux/tc_act/tc_ife.h @@ -21,7 +21,6 @@ #include <linux/types.h> #include <linux/pkt_cls.h> #include <linux/ife.h> -#define TCA_ACT_IFE 25 #define IFE_ENCODE 1 #define IFE_DECODE 0 struct tc_ife { diff --git a/libc/kernel/uapi/linux/tc_act/tc_ipt.h b/libc/kernel/uapi/linux/tc_act/tc_ipt.h index 89b070660..d578ce794 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_ipt.h +++ b/libc/kernel/uapi/linux/tc_act/tc_ipt.h @@ -19,8 +19,6 @@ #ifndef __LINUX_TC_IPT_H #define __LINUX_TC_IPT_H #include <linux/pkt_cls.h> -#define TCA_ACT_IPT 6 -#define TCA_ACT_XT 10 enum { TCA_IPT_UNSPEC, TCA_IPT_TABLE, diff --git a/libc/kernel/uapi/linux/tc_act/tc_mirred.h b/libc/kernel/uapi/linux/tc_act/tc_mirred.h index 2eb4f8187..af04d03c5 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_mirred.h +++ b/libc/kernel/uapi/linux/tc_act/tc_mirred.h @@ -20,7 +20,6 @@ #define __LINUX_TC_MIR_H #include <linux/types.h> #include <linux/pkt_cls.h> -#define TCA_ACT_MIRRED 8 #define TCA_EGRESS_REDIR 1 #define TCA_EGRESS_MIRROR 2 #define TCA_INGRESS_REDIR 3 diff --git a/libc/kernel/uapi/linux/tc_act/tc_nat.h b/libc/kernel/uapi/linux/tc_act/tc_nat.h index 093c7da23..14aeffb0d 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_nat.h +++ b/libc/kernel/uapi/linux/tc_act/tc_nat.h @@ -20,7 +20,6 @@ #define __LINUX_TC_NAT_H #include <linux/pkt_cls.h> #include <linux/types.h> -#define TCA_ACT_NAT 9 enum { TCA_NAT_UNSPEC, TCA_NAT_PARMS, diff --git a/libc/kernel/uapi/linux/tc_act/tc_pedit.h b/libc/kernel/uapi/linux/tc_act/tc_pedit.h index 93eb1dc56..cb8bd2250 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_pedit.h +++ b/libc/kernel/uapi/linux/tc_act/tc_pedit.h @@ -20,7 +20,6 @@ #define __LINUX_TC_PED_H #include <linux/types.h> #include <linux/pkt_cls.h> -#define TCA_ACT_PEDIT 7 enum { TCA_PEDIT_UNSPEC, TCA_PEDIT_TM, diff --git a/libc/kernel/uapi/linux/tc_act/tc_sample.h b/libc/kernel/uapi/linux/tc_act/tc_sample.h index 64f5d087e..7d9a32ed5 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_sample.h +++ b/libc/kernel/uapi/linux/tc_act/tc_sample.h @@ -21,7 +21,6 @@ #include <linux/types.h> #include <linux/pkt_cls.h> #include <linux/if_ether.h> -#define TCA_ACT_SAMPLE 26 struct tc_sample { tc_gen; }; diff --git a/libc/kernel/uapi/linux/tc_act/tc_skbedit.h b/libc/kernel/uapi/linux/tc_act/tc_skbedit.h index 30d529a05..5706d4df6 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_skbedit.h +++ b/libc/kernel/uapi/linux/tc_act/tc_skbedit.h @@ -19,7 +19,6 @@ #ifndef __LINUX_TC_SKBEDIT_H #define __LINUX_TC_SKBEDIT_H #include <linux/pkt_cls.h> -#define TCA_ACT_SKBEDIT 11 #define SKBEDIT_F_PRIORITY 0x1 #define SKBEDIT_F_QUEUE_MAPPING 0x2 #define SKBEDIT_F_MARK 0x4 diff --git a/libc/kernel/uapi/linux/tc_act/tc_skbmod.h b/libc/kernel/uapi/linux/tc_act/tc_skbmod.h index 5b34c28f3..0a53b0629 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_skbmod.h +++ b/libc/kernel/uapi/linux/tc_act/tc_skbmod.h @@ -19,7 +19,6 @@ #ifndef __LINUX_TC_SKBMOD_H #define __LINUX_TC_SKBMOD_H #include <linux/pkt_cls.h> -#define TCA_ACT_SKBMOD 15 #define SKBMOD_F_DMAC 0x1 #define SKBMOD_F_SMAC 0x2 #define SKBMOD_F_ETYPE 0x4 diff --git a/libc/kernel/uapi/linux/tc_act/tc_tunnel_key.h b/libc/kernel/uapi/linux/tc_act/tc_tunnel_key.h index bd5fb2469..4511b18d4 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_tunnel_key.h +++ b/libc/kernel/uapi/linux/tc_act/tc_tunnel_key.h @@ -19,7 +19,6 @@ #ifndef __LINUX_TC_TUNNEL_KEY_H #define __LINUX_TC_TUNNEL_KEY_H #include <linux/pkt_cls.h> -#define TCA_ACT_TUNNEL_KEY 17 #define TCA_TUNNEL_KEY_ACT_SET 1 #define TCA_TUNNEL_KEY_ACT_RELEASE 2 struct tc_tunnel_key { diff --git a/libc/kernel/uapi/linux/tc_act/tc_vlan.h b/libc/kernel/uapi/linux/tc_act/tc_vlan.h index b1b8ce7a6..ecd445d14 100644 --- a/libc/kernel/uapi/linux/tc_act/tc_vlan.h +++ b/libc/kernel/uapi/linux/tc_act/tc_vlan.h @@ -19,7 +19,6 @@ #ifndef __LINUX_TC_VLAN_H #define __LINUX_TC_VLAN_H #include <linux/pkt_cls.h> -#define TCA_ACT_VLAN 12 #define TCA_VLAN_ACT_POP 1 #define TCA_VLAN_ACT_PUSH 2 #define TCA_VLAN_ACT_MODIFY 3 diff --git a/libc/kernel/uapi/linux/time.h b/libc/kernel/uapi/linux/time.h index 96a7042c0..dbf105b74 100644 --- a/libc/kernel/uapi/linux/time.h +++ b/libc/kernel/uapi/linux/time.h @@ -19,6 +19,7 @@ #ifndef _UAPI_LINUX_TIME_H #define _UAPI_LINUX_TIME_H #include <linux/types.h> +#include <linux/time_types.h> #ifndef _STRUCT_TIMESPEC #define _STRUCT_TIMESPEC struct timespec { @@ -45,22 +46,6 @@ struct itimerval { struct timeval it_interval; struct timeval it_value; }; -#ifndef __kernel_timespec -struct __kernel_timespec { - __kernel_time64_t tv_sec; - long long tv_nsec; -}; -#endif -#ifndef __kernel_itimerspec -struct __kernel_itimerspec { - struct __kernel_timespec it_interval; - struct __kernel_timespec it_value; -}; -#endif -struct __kernel_old_timeval { - __kernel_long_t tv_sec; - __kernel_long_t tv_usec; -}; #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 diff --git a/libc/kernel/uapi/linux/time_types.h b/libc/kernel/uapi/linux/time_types.h new file mode 100644 index 000000000..425e6ae0f --- /dev/null +++ b/libc/kernel/uapi/linux/time_types.h @@ -0,0 +1,40 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI_LINUX_TIME_TYPES_H +#define _UAPI_LINUX_TIME_TYPES_H +#include <linux/types.h> +struct __kernel_timespec { + __kernel_time64_t tv_sec; + long long tv_nsec; +}; +struct __kernel_itimerspec { + struct __kernel_timespec it_interval; + struct __kernel_timespec it_value; +}; +#ifndef __kernel_old_timeval +struct __kernel_old_timeval { + __kernel_long_t tv_sec; + __kernel_long_t tv_usec; +}; +#endif +struct __kernel_sock_timeval { + __s64 tv_sec; + __s64 tv_usec; +}; +#endif diff --git a/libc/kernel/uapi/linux/timex.h b/libc/kernel/uapi/linux/timex.h index e574b4bc4..803eaece2 100644 --- a/libc/kernel/uapi/linux/timex.h +++ b/libc/kernel/uapi/linux/timex.h @@ -53,6 +53,46 @@ struct timex { int : 32; int : 32; }; +struct __kernel_timex_timeval { + __kernel_time64_t tv_sec; + long long tv_usec; +}; +struct __kernel_timex { + unsigned int modes; + int : 32; + long long offset; + long long freq; + long long maxerror; + long long esterror; + int status; + int : 32; + long long constant; + long long precision; + long long tolerance; + struct __kernel_timex_timeval time; + long long tick; + long long ppsfreq; + long long jitter; + int shift; + int : 32; + long long stabil; + long long jitcnt; + long long calcnt; + long long errcnt; + long long stbcnt; + int tai; + int : 32; + int : 32; + int : 32; + int : 32; + int : 32; + int : 32; + int : 32; + int : 32; + int : 32; + int : 32; + int : 32; +}; #define ADJ_OFFSET 0x0001 #define ADJ_FREQUENCY 0x0002 #define ADJ_MAXERROR 0x0004 diff --git a/libc/kernel/uapi/linux/tls.h b/libc/kernel/uapi/linux/tls.h index b6910af91..96bb3a56e 100644 --- a/libc/kernel/uapi/linux/tls.h +++ b/libc/kernel/uapi/linux/tls.h @@ -27,12 +27,21 @@ #define TLS_1_2_VERSION_MAJOR 0x3 #define TLS_1_2_VERSION_MINOR 0x3 #define TLS_1_2_VERSION TLS_VERSION_NUMBER(TLS_1_2) +#define TLS_1_3_VERSION_MAJOR 0x3 +#define TLS_1_3_VERSION_MINOR 0x4 +#define TLS_1_3_VERSION TLS_VERSION_NUMBER(TLS_1_3) #define TLS_CIPHER_AES_GCM_128 51 #define TLS_CIPHER_AES_GCM_128_IV_SIZE 8 #define TLS_CIPHER_AES_GCM_128_KEY_SIZE 16 #define TLS_CIPHER_AES_GCM_128_SALT_SIZE 4 #define TLS_CIPHER_AES_GCM_128_TAG_SIZE 16 #define TLS_CIPHER_AES_GCM_128_REC_SEQ_SIZE 8 +#define TLS_CIPHER_AES_GCM_256 52 +#define TLS_CIPHER_AES_GCM_256_IV_SIZE 8 +#define TLS_CIPHER_AES_GCM_256_KEY_SIZE 32 +#define TLS_CIPHER_AES_GCM_256_SALT_SIZE 4 +#define TLS_CIPHER_AES_GCM_256_TAG_SIZE 16 +#define TLS_CIPHER_AES_GCM_256_REC_SEQ_SIZE 8 #define TLS_SET_RECORD_TYPE 1 #define TLS_GET_RECORD_TYPE 2 struct tls_crypto_info { @@ -46,4 +55,11 @@ struct tls12_crypto_info_aes_gcm_128 { unsigned char salt[TLS_CIPHER_AES_GCM_128_SALT_SIZE]; unsigned char rec_seq[TLS_CIPHER_AES_GCM_128_REC_SEQ_SIZE]; }; +struct tls12_crypto_info_aes_gcm_256 { + struct tls_crypto_info info; + unsigned char iv[TLS_CIPHER_AES_GCM_256_IV_SIZE]; + unsigned char key[TLS_CIPHER_AES_GCM_256_KEY_SIZE]; + unsigned char salt[TLS_CIPHER_AES_GCM_256_SALT_SIZE]; + unsigned char rec_seq[TLS_CIPHER_AES_GCM_256_REC_SEQ_SIZE]; +}; #endif diff --git a/libc/kernel/uapi/linux/v4l2-controls.h b/libc/kernel/uapi/linux/v4l2-controls.h index 3c2d2b2ac..e8108dd10 100644 --- a/libc/kernel/uapi/linux/v4l2-controls.h +++ b/libc/kernel/uapi/linux/v4l2-controls.h @@ -439,6 +439,8 @@ enum v4l2_mpeg_video_h264_hierarchical_coding_type { }; #define V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING_LAYER (V4L2_CID_MPEG_BASE + 381) #define V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING_LAYER_QP (V4L2_CID_MPEG_BASE + 382) +#define V4L2_CID_MPEG_VIDEO_H264_CONSTRAINED_INTRA_PREDICTION (V4L2_CID_MPEG_BASE + 383) +#define V4L2_CID_MPEG_VIDEO_H264_CHROMA_QP_INDEX_OFFSET (V4L2_CID_MPEG_BASE + 384) #define V4L2_CID_MPEG_VIDEO_MPEG4_I_FRAME_QP (V4L2_CID_MPEG_BASE + 400) #define V4L2_CID_MPEG_VIDEO_MPEG4_P_FRAME_QP (V4L2_CID_MPEG_BASE + 401) #define V4L2_CID_MPEG_VIDEO_MPEG4_B_FRAME_QP (V4L2_CID_MPEG_BASE + 402) diff --git a/libc/kernel/uapi/linux/vbox_vmmdev_types.h b/libc/kernel/uapi/linux/vbox_vmmdev_types.h index 46b34864b..3b270295e 100644 --- a/libc/kernel/uapi/linux/vbox_vmmdev_types.h +++ b/libc/kernel/uapi/linux/vbox_vmmdev_types.h @@ -84,6 +84,30 @@ enum vmmdev_request_type { #else #define VMMDEVREQ_HGCM_CALL VMMDEVREQ_HGCM_CALL32 #endif +#define VMMDEV_REQUESTOR_USR_NOT_GIVEN 0x00000000 +#define VMMDEV_REQUESTOR_USR_DRV 0x00000001 +#define VMMDEV_REQUESTOR_USR_DRV_OTHER 0x00000002 +#define VMMDEV_REQUESTOR_USR_ROOT 0x00000003 +#define VMMDEV_REQUESTOR_USR_USER 0x00000006 +#define VMMDEV_REQUESTOR_USR_MASK 0x00000007 +#define VMMDEV_REQUESTOR_KERNEL 0x00000000 +#define VMMDEV_REQUESTOR_USERMODE 0x00000008 +#define VMMDEV_REQUESTOR_MODE_MASK 0x00000008 +#define VMMDEV_REQUESTOR_CON_DONT_KNOW 0x00000000 +#define VMMDEV_REQUESTOR_CON_NO 0x00000010 +#define VMMDEV_REQUESTOR_CON_YES 0x00000020 +#define VMMDEV_REQUESTOR_CON_MASK 0x00000030 +#define VMMDEV_REQUESTOR_GRP_VBOX 0x00000080 +#define VMMDEV_REQUESTOR_TRUST_NOT_GIVEN 0x00000000 +#define VMMDEV_REQUESTOR_TRUST_UNTRUSTED 0x00001000 +#define VMMDEV_REQUESTOR_TRUST_LOW 0x00002000 +#define VMMDEV_REQUESTOR_TRUST_MEDIUM 0x00003000 +#define VMMDEV_REQUESTOR_TRUST_MEDIUM_PLUS 0x00004000 +#define VMMDEV_REQUESTOR_TRUST_HIGH 0x00005000 +#define VMMDEV_REQUESTOR_TRUST_SYSTEM 0x00006000 +#define VMMDEV_REQUESTOR_TRUST_PROTECTED 0x00007000 +#define VMMDEV_REQUESTOR_TRUST_MASK 0x00007000 +#define VMMDEV_REQUESTOR_USER_DEVICE 0x00008000 enum vmmdev_hgcm_service_location_type { VMMDEV_HGCM_LOC_INVALID = 0, VMMDEV_HGCM_LOC_LOCALHOST = 1, diff --git a/libc/kernel/uapi/linux/version.h b/libc/kernel/uapi/linux/version.h index 43c04d14c..5905e81de 100644 --- a/libc/kernel/uapi/linux/version.h +++ b/libc/kernel/uapi/linux/version.h @@ -16,5 +16,5 @@ *** **************************************************************************** ****************************************************************************/ -#define LINUX_VERSION_CODE 327683 +#define LINUX_VERSION_CODE 327939 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) diff --git a/libc/kernel/uapi/linux/videodev2.h b/libc/kernel/uapi/linux/videodev2.h index 74e591d58..3bd71381f 100644 --- a/libc/kernel/uapi/linux/videodev2.h +++ b/libc/kernel/uapi/linux/videodev2.h @@ -44,6 +44,8 @@ enum v4l2_field { #define V4L2_FIELD_HAS_BOTTOM(field) ((field) == V4L2_FIELD_BOTTOM || (field) == V4L2_FIELD_INTERLACED || (field) == V4L2_FIELD_INTERLACED_TB || (field) == V4L2_FIELD_INTERLACED_BT || (field) == V4L2_FIELD_SEQ_TB || (field) == V4L2_FIELD_SEQ_BT) #define V4L2_FIELD_HAS_BOTH(field) ((field) == V4L2_FIELD_INTERLACED || (field) == V4L2_FIELD_INTERLACED_TB || (field) == V4L2_FIELD_INTERLACED_BT || (field) == V4L2_FIELD_SEQ_TB || (field) == V4L2_FIELD_SEQ_BT) #define V4L2_FIELD_HAS_T_OR_B(field) ((field) == V4L2_FIELD_BOTTOM || (field) == V4L2_FIELD_TOP || (field) == V4L2_FIELD_ALTERNATE) +#define V4L2_FIELD_IS_INTERLACED(field) ((field) == V4L2_FIELD_INTERLACED || (field) == V4L2_FIELD_INTERLACED_TB || (field) == V4L2_FIELD_INTERLACED_BT) +#define V4L2_FIELD_IS_SEQUENTIAL(field) ((field) == V4L2_FIELD_SEQ_TB || (field) == V4L2_FIELD_SEQ_BT) enum v4l2_buf_type { V4L2_BUF_TYPE_VIDEO_CAPTURE = 1, V4L2_BUF_TYPE_VIDEO_OUTPUT = 2, @@ -62,7 +64,7 @@ enum v4l2_buf_type { V4L2_BUF_TYPE_PRIVATE = 0x80, }; #define V4L2_TYPE_IS_MULTIPLANAR(type) ((type) == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) -#define V4L2_TYPE_IS_OUTPUT(type) ((type) == V4L2_BUF_TYPE_VIDEO_OUTPUT || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE || (type) == V4L2_BUF_TYPE_VIDEO_OVERLAY || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY || (type) == V4L2_BUF_TYPE_VBI_OUTPUT || (type) == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT || (type) == V4L2_BUF_TYPE_SDR_OUTPUT) +#define V4L2_TYPE_IS_OUTPUT(type) ((type) == V4L2_BUF_TYPE_VIDEO_OUTPUT || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE || (type) == V4L2_BUF_TYPE_VIDEO_OVERLAY || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY || (type) == V4L2_BUF_TYPE_VBI_OUTPUT || (type) == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT || (type) == V4L2_BUF_TYPE_SDR_OUTPUT || (type) == V4L2_BUF_TYPE_META_OUTPUT) enum v4l2_tuner_type { V4L2_TUNER_RADIO = 1, V4L2_TUNER_ANALOG_TV = 2, @@ -242,6 +244,10 @@ struct v4l2_pix_format { #define V4L2_PIX_FMT_YUV555 v4l2_fourcc('Y', 'U', 'V', 'O') #define V4L2_PIX_FMT_YUV565 v4l2_fourcc('Y', 'U', 'V', 'P') #define V4L2_PIX_FMT_YUV32 v4l2_fourcc('Y', 'U', 'V', '4') +#define V4L2_PIX_FMT_AYUV32 v4l2_fourcc('A', 'Y', 'U', 'V') +#define V4L2_PIX_FMT_XYUV32 v4l2_fourcc('X', 'Y', 'U', 'V') +#define V4L2_PIX_FMT_VUYA32 v4l2_fourcc('V', 'U', 'Y', 'A') +#define V4L2_PIX_FMT_VUYX32 v4l2_fourcc('V', 'U', 'Y', 'X') #define V4L2_PIX_FMT_HI240 v4l2_fourcc('H', 'I', '2', '4') #define V4L2_PIX_FMT_HM12 v4l2_fourcc('H', 'M', '1', '2') #define V4L2_PIX_FMT_M420 v4l2_fourcc('M', '4', '2', '0') diff --git a/libc/kernel/uapi/linux/xdp_diag.h b/libc/kernel/uapi/linux/xdp_diag.h new file mode 100644 index 000000000..f7d203f2b --- /dev/null +++ b/libc/kernel/uapi/linux/xdp_diag.h @@ -0,0 +1,73 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _LINUX_XDP_DIAG_H +#define _LINUX_XDP_DIAG_H +#include <linux/types.h> +struct xdp_diag_req { + __u8 sdiag_family; + __u8 sdiag_protocol; + __u16 pad; + __u32 xdiag_ino; + __u32 xdiag_show; + __u32 xdiag_cookie[2]; +}; +struct xdp_diag_msg { + __u8 xdiag_family; + __u8 xdiag_type; + __u16 pad; + __u32 xdiag_ino; + __u32 xdiag_cookie[2]; +}; +#define XDP_SHOW_INFO (1 << 0) +#define XDP_SHOW_RING_CFG (1 << 1) +#define XDP_SHOW_UMEM (1 << 2) +#define XDP_SHOW_MEMINFO (1 << 3) +enum { + XDP_DIAG_NONE, + XDP_DIAG_INFO, + XDP_DIAG_UID, + XDP_DIAG_RX_RING, + XDP_DIAG_TX_RING, + XDP_DIAG_UMEM, + XDP_DIAG_UMEM_FILL_RING, + XDP_DIAG_UMEM_COMPLETION_RING, + XDP_DIAG_MEMINFO, + __XDP_DIAG_MAX, +}; +#define XDP_DIAG_MAX (__XDP_DIAG_MAX - 1) +struct xdp_diag_info { + __u32 ifindex; + __u32 queue_id; +}; +struct xdp_diag_ring { + __u32 entries; +}; +#define XDP_DU_F_ZEROCOPY (1 << 0) +struct xdp_diag_umem { + __u64 size; + __u32 id; + __u32 num_pages; + __u32 chunk_size; + __u32 headroom; + __u32 ifindex; + __u32 queue_id; + __u32 flags; + __u32 refs; +}; +#endif diff --git a/libc/kernel/uapi/misc/fastrpc.h b/libc/kernel/uapi/misc/fastrpc.h new file mode 100644 index 000000000..6f99e6308 --- /dev/null +++ b/libc/kernel/uapi/misc/fastrpc.h @@ -0,0 +1,50 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef __QCOM_FASTRPC_H__ +#define __QCOM_FASTRPC_H__ +#include <linux/types.h> +#define FASTRPC_IOCTL_ALLOC_DMA_BUFF _IOWR('R', 1, struct fastrpc_alloc_dma_buf) +#define FASTRPC_IOCTL_FREE_DMA_BUFF _IOWR('R', 2, __u32) +#define FASTRPC_IOCTL_INVOKE _IOWR('R', 3, struct fastrpc_invoke) +#define FASTRPC_IOCTL_INIT_ATTACH _IO('R', 4) +#define FASTRPC_IOCTL_INIT_CREATE _IOWR('R', 5, struct fastrpc_init_create) +struct fastrpc_invoke_args { + __u64 ptr; + __u64 length; + __s32 fd; + __u32 reserved; +}; +struct fastrpc_invoke { + __u32 handle; + __u32 sc; + __u64 args; +}; +struct fastrpc_init_create { + __u32 filelen; + __s32 filefd; + __u32 attrs; + __u32 siglen; + __u64 file; +}; +struct fastrpc_alloc_dma_buf { + __s32 fd; + __u32 flags; + __u64 size; +}; +#endif diff --git a/libc/kernel/uapi/misc/habanalabs.h b/libc/kernel/uapi/misc/habanalabs.h new file mode 100644 index 000000000..c2e25de6d --- /dev/null +++ b/libc/kernel/uapi/misc/habanalabs.h @@ -0,0 +1,193 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef HABANALABS_H_ +#define HABANALABS_H_ +#include <linux/types.h> +#include <linux/ioctl.h> +#define GOYA_KMD_SRAM_RESERVED_SIZE_FROM_START 0x8000 +enum goya_queue_id { + GOYA_QUEUE_ID_DMA_0 = 0, + GOYA_QUEUE_ID_DMA_1, + GOYA_QUEUE_ID_DMA_2, + GOYA_QUEUE_ID_DMA_3, + GOYA_QUEUE_ID_DMA_4, + GOYA_QUEUE_ID_CPU_PQ, + GOYA_QUEUE_ID_MME, + GOYA_QUEUE_ID_TPC0, + GOYA_QUEUE_ID_TPC1, + GOYA_QUEUE_ID_TPC2, + GOYA_QUEUE_ID_TPC3, + GOYA_QUEUE_ID_TPC4, + GOYA_QUEUE_ID_TPC5, + GOYA_QUEUE_ID_TPC6, + GOYA_QUEUE_ID_TPC7, + GOYA_QUEUE_ID_SIZE +}; +#define HL_INFO_HW_IP_INFO 0 +#define HL_INFO_HW_EVENTS 1 +#define HL_INFO_DRAM_USAGE 2 +#define HL_INFO_HW_IDLE 3 +#define HL_INFO_VERSION_MAX_LEN 128 +struct hl_info_hw_ip_info { + __u64 sram_base_address; + __u64 dram_base_address; + __u64 dram_size; + __u32 sram_size; + __u32 num_of_events; + __u32 device_id; + __u32 reserved[3]; + __u32 armcp_cpld_version; + __u32 psoc_pci_pll_nr; + __u32 psoc_pci_pll_nf; + __u32 psoc_pci_pll_od; + __u32 psoc_pci_pll_div_factor; + __u8 tpc_enabled_mask; + __u8 dram_enabled; + __u8 pad[2]; + __u8 armcp_version[HL_INFO_VERSION_MAX_LEN]; +}; +struct hl_info_dram_usage { + __u64 dram_free_mem; + __u64 ctx_dram_mem; +}; +struct hl_info_hw_idle { + __u32 is_idle; + __u32 pad; +}; +struct hl_info_args { + __u64 return_pointer; + __u32 return_size; + __u32 op; + __u32 ctx_id; + __u32 pad; +}; +#define HL_CB_OP_CREATE 0 +#define HL_CB_OP_DESTROY 1 +struct hl_cb_in { + __u64 cb_handle; + __u32 op; + __u32 cb_size; + __u32 ctx_id; + __u32 pad; +}; +struct hl_cb_out { + __u64 cb_handle; +}; +union hl_cb_args { + struct hl_cb_in in; + struct hl_cb_out out; +}; +struct hl_cs_chunk { + __u64 cb_handle; + __u32 queue_index; + __u32 cb_size; + __u32 cs_chunk_flags; + __u32 pad[11]; +}; +#define HL_CS_FLAGS_FORCE_RESTORE 0x1 +#define HL_CS_STATUS_SUCCESS 0 +struct hl_cs_in { + __u64 chunks_restore; + __u64 chunks_execute; + __u64 chunks_store; + __u32 num_chunks_restore; + __u32 num_chunks_execute; + __u32 num_chunks_store; + __u32 cs_flags; + __u32 ctx_id; +}; +struct hl_cs_out { + __u64 seq; + __u32 status; + __u32 pad; +}; +union hl_cs_args { + struct hl_cs_in in; + struct hl_cs_out out; +}; +struct hl_wait_cs_in { + __u64 seq; + __u64 timeout_us; + __u32 ctx_id; + __u32 pad; +}; +#define HL_WAIT_CS_STATUS_COMPLETED 0 +#define HL_WAIT_CS_STATUS_BUSY 1 +#define HL_WAIT_CS_STATUS_TIMEDOUT 2 +#define HL_WAIT_CS_STATUS_ABORTED 3 +#define HL_WAIT_CS_STATUS_INTERRUPTED 4 +struct hl_wait_cs_out { + __u32 status; + __u32 pad; +}; +union hl_wait_cs_args { + struct hl_wait_cs_in in; + struct hl_wait_cs_out out; +}; +#define HL_MEM_OP_ALLOC 0 +#define HL_MEM_OP_FREE 1 +#define HL_MEM_OP_MAP 2 +#define HL_MEM_OP_UNMAP 3 +#define HL_MEM_CONTIGUOUS 0x1 +#define HL_MEM_SHARED 0x2 +#define HL_MEM_USERPTR 0x4 +struct hl_mem_in { + union { + struct { + __u64 mem_size; + } alloc; + struct { + __u64 handle; + } free; + struct { + __u64 hint_addr; + __u64 handle; + } map_device; + struct { + __u64 host_virt_addr; + __u64 hint_addr; + __u64 mem_size; + } map_host; + struct { + __u64 device_virt_addr; + } unmap; + }; + __u32 op; + __u32 flags; + __u32 ctx_id; + __u32 pad; +}; +struct hl_mem_out { + union { + __u64 device_virt_addr; + __u64 handle; + }; +}; +union hl_mem_args { + struct hl_mem_in in; + struct hl_mem_out out; +}; +#define HL_IOCTL_INFO _IOWR('H', 0x01, struct hl_info_args) +#define HL_IOCTL_CB _IOWR('H', 0x02, union hl_cb_args) +#define HL_IOCTL_CS _IOWR('H', 0x03, union hl_cs_args) +#define HL_IOCTL_WAIT_CS _IOWR('H', 0x04, union hl_wait_cs_args) +#define HL_IOCTL_MEMORY _IOWR('H', 0x05, union hl_mem_args) +#define HL_COMMAND_START 0x01 +#define HL_COMMAND_END 0x06 +#endif diff --git a/libc/kernel/uapi/mtd/ubi-user.h b/libc/kernel/uapi/mtd/ubi-user.h index 84055363c..866fbd2c9 100644 --- a/libc/kernel/uapi/mtd/ubi-user.h +++ b/libc/kernel/uapi/mtd/ubi-user.h @@ -27,6 +27,8 @@ #define UBI_IOCRMVOL _IOW(UBI_IOC_MAGIC, 1, __s32) #define UBI_IOCRSVOL _IOW(UBI_IOC_MAGIC, 2, struct ubi_rsvol_req) #define UBI_IOCRNVOL _IOW(UBI_IOC_MAGIC, 3, struct ubi_rnvol_req) +#define UBI_IOCRPEB _IOW(UBI_IOC_MAGIC, 4, __s32) +#define UBI_IOCSPEB _IOW(UBI_IOC_MAGIC, 5, __s32) #define UBI_CTRL_IOC_MAGIC 'o' #define UBI_IOCATT _IOW(UBI_CTRL_IOC_MAGIC, 64, struct ubi_attach_req) #define UBI_IOCDET _IOW(UBI_CTRL_IOC_MAGIC, 65, __s32) diff --git a/libc/kernel/uapi/rdma/bnxt_re-abi.h b/libc/kernel/uapi/rdma/bnxt_re-abi.h index 4e2962406..3e45dc3d7 100644 --- a/libc/kernel/uapi/rdma/bnxt_re-abi.h +++ b/libc/kernel/uapi/rdma/bnxt_re-abi.h @@ -20,6 +20,12 @@ #define __BNXT_RE_UVERBS_ABI_H__ #include <linux/types.h> #define BNXT_RE_ABI_VERSION 1 +#define BNXT_RE_CHIP_ID0_CHIP_NUM_SFT 0x00 +#define BNXT_RE_CHIP_ID0_CHIP_REV_SFT 0x10 +#define BNXT_RE_CHIP_ID0_CHIP_MET_SFT 0x18 +enum { + BNXT_RE_UCNTX_CMASK_HAVE_CCTX = 0x1ULL +}; struct bnxt_re_uctx_resp { __u32 dev_id; __u32 max_qp; @@ -27,6 +33,9 @@ struct bnxt_re_uctx_resp { __u32 cqe_sz; __u32 max_cqd; __u32 rsvd; + __aligned_u64 comp_mask; + __u32 chip_id0; + __u32 chip_id1; }; struct bnxt_re_pd_resp { __u32 pdid; diff --git a/libc/kernel/uapi/rdma/ib_user_verbs.h b/libc/kernel/uapi/rdma/ib_user_verbs.h index 3154b7a5c..25df6e2dd 100644 --- a/libc/kernel/uapi/rdma/ib_user_verbs.h +++ b/libc/kernel/uapi/rdma/ib_user_verbs.h @@ -201,6 +201,8 @@ struct ib_uverbs_ex_query_device_resp { struct ib_uverbs_tm_caps tm_caps; struct ib_uverbs_cq_moderation_caps cq_moderation_caps; __aligned_u64 max_dm_size; + __u32 xrc_odp_caps; + __u32 reserved; }; struct ib_uverbs_query_port { __aligned_u64 response; diff --git a/libc/kernel/uapi/rdma/mlx5-abi.h b/libc/kernel/uapi/rdma/mlx5-abi.h index 4c85c6cb5..f1ab1474e 100644 --- a/libc/kernel/uapi/rdma/mlx5-abi.h +++ b/libc/kernel/uapi/rdma/mlx5-abi.h @@ -164,6 +164,7 @@ enum mlx5_ib_query_dev_resp_flags { MLX5_IB_QUERY_DEV_RESP_FLAGS_CQE_128B_COMP = 1 << 0, MLX5_IB_QUERY_DEV_RESP_FLAGS_CQE_128B_PAD = 1 << 1, MLX5_IB_QUERY_DEV_RESP_PACKET_BASED_CREDIT_MODE = 1 << 2, + MLX5_IB_QUERY_DEV_RESP_FLAGS_SCAT2CQE_DCT = 1 << 3, }; enum mlx5_ib_tunnel_offloads { MLX5_IB_TUNNELED_OFFLOADS_VXLAN = 1 << 0, diff --git a/libc/kernel/uapi/rdma/mlx5_user_ioctl_cmds.h b/libc/kernel/uapi/rdma/mlx5_user_ioctl_cmds.h index dcc3d8527..88b84c29c 100644 --- a/libc/kernel/uapi/rdma/mlx5_user_ioctl_cmds.h +++ b/libc/kernel/uapi/rdma/mlx5_user_ioctl_cmds.h @@ -58,6 +58,13 @@ enum mlx5_ib_devx_obj_query_attrs { MLX5_IB_ATTR_DEVX_OBJ_QUERY_CMD_IN, MLX5_IB_ATTR_DEVX_OBJ_QUERY_CMD_OUT, }; +enum mlx5_ib_devx_obj_query_async_attrs { + MLX5_IB_ATTR_DEVX_OBJ_QUERY_ASYNC_HANDLE = (1U << UVERBS_ID_NS_SHIFT), + MLX5_IB_ATTR_DEVX_OBJ_QUERY_ASYNC_CMD_IN, + MLX5_IB_ATTR_DEVX_OBJ_QUERY_ASYNC_FD, + MLX5_IB_ATTR_DEVX_OBJ_QUERY_ASYNC_WR_ID, + MLX5_IB_ATTR_DEVX_OBJ_QUERY_ASYNC_OUT_LEN, +}; enum mlx5_ib_devx_query_eqn_attrs { MLX5_IB_ATTR_DEVX_QUERY_EQN_USER_VEC = (1U << UVERBS_ID_NS_SHIFT), MLX5_IB_ATTR_DEVX_QUERY_EQN_DEV_EQN, @@ -67,6 +74,7 @@ enum mlx5_ib_devx_obj_methods { MLX5_IB_METHOD_DEVX_OBJ_DESTROY, MLX5_IB_METHOD_DEVX_OBJ_MODIFY, MLX5_IB_METHOD_DEVX_OBJ_QUERY, + MLX5_IB_METHOD_DEVX_OBJ_ASYNC_QUERY, }; enum mlx5_ib_devx_umem_reg_attrs { MLX5_IB_ATTR_DEVX_UMEM_REG_HANDLE = (1U << UVERBS_ID_NS_SHIFT), @@ -82,11 +90,18 @@ enum mlx5_ib_devx_umem_methods { MLX5_IB_METHOD_DEVX_UMEM_REG = (1U << UVERBS_ID_NS_SHIFT), MLX5_IB_METHOD_DEVX_UMEM_DEREG, }; +enum mlx5_ib_devx_async_cmd_fd_alloc_attrs { + MLX5_IB_ATTR_DEVX_ASYNC_CMD_FD_ALLOC_HANDLE = (1U << UVERBS_ID_NS_SHIFT), +}; +enum mlx5_ib_devx_async_cmd_fd_methods { + MLX5_IB_METHOD_DEVX_ASYNC_CMD_FD_ALLOC = (1U << UVERBS_ID_NS_SHIFT), +}; enum mlx5_ib_objects { MLX5_IB_OBJECT_DEVX = (1U << UVERBS_ID_NS_SHIFT), MLX5_IB_OBJECT_DEVX_OBJ, MLX5_IB_OBJECT_DEVX_UMEM, MLX5_IB_OBJECT_FLOW_MATCHER, + MLX5_IB_OBJECT_DEVX_ASYNC_CMD_FD, }; enum mlx5_ib_flow_matcher_create_attrs { MLX5_IB_ATTR_FLOW_MATCHER_CREATE_HANDLE = (1U << UVERBS_ID_NS_SHIFT), diff --git a/libc/kernel/uapi/rdma/mlx5_user_ioctl_verbs.h b/libc/kernel/uapi/rdma/mlx5_user_ioctl_verbs.h index dc246e576..e83b9e2dd 100644 --- a/libc/kernel/uapi/rdma/mlx5_user_ioctl_verbs.h +++ b/libc/kernel/uapi/rdma/mlx5_user_ioctl_verbs.h @@ -32,4 +32,8 @@ enum mlx5_ib_uapi_flow_action_packet_reformat_type { MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L3_TUNNEL_TO_L2 = 0x2, MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TO_L3_TUNNEL = 0x3, }; +struct mlx5_ib_uapi_devx_async_cmd_hdr { + __aligned_u64 wr_id; + __u8 out_data[]; +}; #endif diff --git a/libc/kernel/uapi/rdma/rdma_netlink.h b/libc/kernel/uapi/rdma/rdma_netlink.h index 69805f121..7730edfc7 100644 --- a/libc/kernel/uapi/rdma/rdma_netlink.h +++ b/libc/kernel/uapi/rdma/rdma_netlink.h @@ -20,30 +20,24 @@ #define _UAPI_RDMA_NETLINK_H #include <linux/types.h> enum { - RDMA_NL_RDMA_CM = 1, - RDMA_NL_IWCM, + RDMA_NL_IWCM = 2, RDMA_NL_RSVD, RDMA_NL_LS, RDMA_NL_NLDEV, RDMA_NL_NUM_CLIENTS }; enum { - RDMA_NL_GROUP_CM = 1, - RDMA_NL_GROUP_IWPM, + RDMA_NL_GROUP_IWPM = 2, RDMA_NL_GROUP_LS, RDMA_NL_NUM_GROUPS }; #define RDMA_NL_GET_CLIENT(type) ((type & (((1 << 6) - 1) << 10)) >> 10) #define RDMA_NL_GET_OP(type) (type & ((1 << 10) - 1)) #define RDMA_NL_GET_TYPE(client,op) ((client << 10) + op) +#define IWPM_UABI_VERSION_MIN 3 +#define IWPM_UABI_VERSION 4 enum { - RDMA_NL_RDMA_CM_ID_STATS = 0, - RDMA_NL_RDMA_CM_NUM_OPS -}; -enum { - RDMA_NL_RDMA_CM_ATTR_SRC_ADDR = 1, - RDMA_NL_RDMA_CM_ATTR_DST_ADDR, - RDMA_NL_RDMA_CM_NUM_ATTR, + IWPM_FLAGS_NO_PORT_MAP = (1 << 0), }; enum { RDMA_NL_IWPM_REG_PID = 0, @@ -54,6 +48,7 @@ enum { RDMA_NL_IWPM_HANDLE_ERR, RDMA_NL_IWPM_MAPINFO, RDMA_NL_IWPM_MAPINFO_NUM, + RDMA_NL_IWPM_HELLO, RDMA_NL_IWPM_NUM_OPS }; struct rdma_cm_id_stats { @@ -87,18 +82,33 @@ enum { IWPM_NLA_MANAGE_MAPPING_UNSPEC = 0, IWPM_NLA_MANAGE_MAPPING_SEQ, IWPM_NLA_MANAGE_ADDR, - IWPM_NLA_MANAGE_MAPPED_LOC_ADDR, + IWPM_NLA_MANAGE_FLAGS, + IWPM_NLA_MANAGE_MAPPING_MAX +}; +enum { + IWPM_NLA_RMANAGE_MAPPING_UNSPEC = 0, + IWPM_NLA_RMANAGE_MAPPING_SEQ, + IWPM_NLA_RMANAGE_ADDR, + IWPM_NLA_RMANAGE_MAPPED_LOC_ADDR, + IWPM_NLA_MANAGE_MAPPED_LOC_ADDR = IWPM_NLA_RMANAGE_MAPPED_LOC_ADDR, IWPM_NLA_RMANAGE_MAPPING_ERR, IWPM_NLA_RMANAGE_MAPPING_MAX }; -#define IWPM_NLA_MANAGE_MAPPING_MAX 3 -#define IWPM_NLA_QUERY_MAPPING_MAX 4 #define IWPM_NLA_MAPINFO_SEND_MAX 3 +#define IWPM_NLA_REMOVE_MAPPING_MAX 3 enum { IWPM_NLA_QUERY_MAPPING_UNSPEC = 0, IWPM_NLA_QUERY_MAPPING_SEQ, IWPM_NLA_QUERY_LOCAL_ADDR, IWPM_NLA_QUERY_REMOTE_ADDR, + IWPM_NLA_QUERY_FLAGS, + IWPM_NLA_QUERY_MAPPING_MAX, +}; +enum { + IWPM_NLA_RQUERY_MAPPING_UNSPEC = 0, + IWPM_NLA_RQUERY_MAPPING_SEQ, + IWPM_NLA_RQUERY_LOCAL_ADDR, + IWPM_NLA_RQUERY_REMOTE_ADDR, IWPM_NLA_RQUERY_MAPPED_LOC_ADDR, IWPM_NLA_RQUERY_MAPPED_REM_ADDR, IWPM_NLA_RQUERY_MAPPING_ERR, @@ -114,6 +124,7 @@ enum { IWPM_NLA_MAPINFO_UNSPEC = 0, IWPM_NLA_MAPINFO_LOCAL_ADDR, IWPM_NLA_MAPINFO_MAPPED_ADDR, + IWPM_NLA_MAPINFO_FLAGS, IWPM_NLA_MAPINFO_MAX }; enum { @@ -130,6 +141,11 @@ enum { IWPM_NLA_ERR_MAX }; enum { + IWPM_NLA_HELLO_UNSPEC = 0, + IWPM_NLA_HELLO_ABI_VERSION, + IWPM_NLA_HELLO_MAX +}; +enum { RDMA_NL_LS_OP_RESOLVE = 0, RDMA_NL_LS_OP_SET_TIMEOUT, RDMA_NL_LS_OP_IP_RESOLVE, @@ -174,7 +190,9 @@ enum rdma_nldev_command { RDMA_NLDEV_CMD_UNSPEC, RDMA_NLDEV_CMD_GET, RDMA_NLDEV_CMD_SET, - RDMA_NLDEV_CMD_PORT_GET = 5, + RDMA_NLDEV_CMD_NEWLINK, + RDMA_NLDEV_CMD_DELLINK, + RDMA_NLDEV_CMD_PORT_GET, RDMA_NLDEV_CMD_RES_GET = 9, RDMA_NLDEV_CMD_RES_QP_GET, RDMA_NLDEV_CMD_RES_CM_ID_GET, @@ -252,6 +270,12 @@ enum rdma_nldev_attr { RDMA_NLDEV_ATTR_DRIVER_U32, RDMA_NLDEV_ATTR_DRIVER_S64, RDMA_NLDEV_ATTR_DRIVER_U64, + RDMA_NLDEV_ATTR_RES_PDN, + RDMA_NLDEV_ATTR_RES_CQN, + RDMA_NLDEV_ATTR_RES_MRN, + RDMA_NLDEV_ATTR_RES_CM_IDN, + RDMA_NLDEV_ATTR_RES_CTXN, + RDMA_NLDEV_ATTR_LINK_TYPE, RDMA_NLDEV_ATTR_MAX }; #endif diff --git a/libc/kernel/uapi/rdma/rdma_user_cm.h b/libc/kernel/uapi/rdma/rdma_user_cm.h index b2004910b..9042b6fa4 100644 --- a/libc/kernel/uapi/rdma/rdma_user_cm.h +++ b/libc/kernel/uapi/rdma/rdma_user_cm.h @@ -238,6 +238,9 @@ enum { RDMA_OPTION_ID_TOS = 0, RDMA_OPTION_ID_REUSEADDR = 1, RDMA_OPTION_ID_AFONLY = 2, + RDMA_OPTION_ID_ACK_TIMEOUT = 3 +}; +enum { RDMA_OPTION_IB_PATH = 1 }; struct rdma_ucm_set_option { diff --git a/libc/kernel/uapi/rdma/rdma_user_rxe.h b/libc/kernel/uapi/rdma/rdma_user_rxe.h index a57ed1ab2..e4a2f40a9 100644 --- a/libc/kernel/uapi/rdma/rdma_user_rxe.h +++ b/libc/kernel/uapi/rdma/rdma_user_rxe.h @@ -39,8 +39,7 @@ struct rxe_global_route { struct rxe_av { __u8 port_num; __u8 network_type; - __u16 reserved1; - __u32 reserved2; + __u8 dmac[6]; struct rxe_global_route grh; union { struct sockaddr_in _sockaddr_in; diff --git a/libc/kernel/uapi/sound/asound.h b/libc/kernel/uapi/sound/asound.h index e5473a5e4..abc81dde2 100644 --- a/libc/kernel/uapi/sound/asound.h +++ b/libc/kernel/uapi/sound/asound.h @@ -24,6 +24,7 @@ #include <sys/ioctl.h> #endif #include <stdlib.h> +#include <time.h> #define SNDRV_PROTOCOL_VERSION(major,minor,subminor) (((major) << 16) | ((minor) << 8) | (subminor)) #define SNDRV_PROTOCOL_MAJOR(version) (((version) >> 16) & 0xffff) #define SNDRV_PROTOCOL_MINOR(version) (((version) >> 8) & 0xff) diff --git a/libc/libc.map.txt b/libc/libc.map.txt index 88192239a..b36ee4c5d 100644 --- a/libc/libc.map.txt +++ b/libc/libc.map.txt @@ -1468,10 +1468,10 @@ LIBC_Q { # introduced=Q __system_properties_init; # apex # Used by libmemunreachable - malloc_backtrace; # apex - malloc_disable; # apex - malloc_enable; # apex - malloc_iterate; # apex + malloc_backtrace; # apex vndk + malloc_disable; # apex vndk + malloc_enable; # apex vndk + malloc_iterate; # apex vndk # Used by libandroid_net android_getaddrinfofornet; # apex @@ -1480,6 +1480,35 @@ LIBC_Q { # introduced=Q android_mallopt; # apex } LIBC_P; +LIBC_R { # introduced=R + global: + call_once; + cnd_broadcast; + cnd_destroy; + cnd_init; + cnd_signal; + cnd_timedwait; + cnd_wait; + mtx_destroy; + mtx_init; + mtx_lock; + mtx_timedlock; + mtx_trylock; + mtx_unlock; + thrd_create; + thrd_current; + thrd_detach; + thrd_equal; + thrd_exit; + thrd_join; + thrd_sleep; + thrd_yield; + tss_create; + tss_delete; + tss_get; + tss_set; +} LIBC_Q; + LIBC_PRIVATE { global: ___Unwind_Backtrace; # arm diff --git a/libc/malloc_debug/Android.bp b/libc/malloc_debug/Android.bp index bcbd7dac9..aae16f14d 100644 --- a/libc/malloc_debug/Android.bp +++ b/libc/malloc_debug/Android.bp @@ -3,8 +3,8 @@ // ============================================================== // Used by libmemunreachable cc_library_static { - name: "libc_malloc_debug_backtrace", + vendor_available: true, srcs: [ "backtrace.cpp", diff --git a/libc/malloc_debug/malloc_debug.cpp b/libc/malloc_debug/malloc_debug.cpp index 423363fa9..d2679ca4c 100644 --- a/libc/malloc_debug/malloc_debug.cpp +++ b/libc/malloc_debug/malloc_debug.cpp @@ -258,12 +258,19 @@ static void* InitHeader(Header* header, void* orig_pointer, size_t size) { return g_debug->GetPointer(header); } +extern "C" void __asan_init() __attribute__((weak)); + bool debug_initialize(const MallocDispatch* malloc_dispatch, bool* zygote_child, const char* options) { if (zygote_child == nullptr || options == nullptr) { return false; } + if (__asan_init != 0) { + error_log("malloc debug cannot be enabled alongside ASAN"); + return false; + } + InitAtfork(); g_zygote_child = zygote_child; diff --git a/libc/private/bionic_lock.h b/libc/private/bionic_lock.h index ec179d1b6..d70ba6c5c 100644 --- a/libc/private/bionic_lock.h +++ b/libc/private/bionic_lock.h @@ -72,6 +72,12 @@ class Lock { void unlock() { bool shared = process_shared; /* cache to local variable */ if (atomic_exchange_explicit(&state, Unlocked, memory_order_release) == LockedWithWaiter) { + // The Lock object may have been deallocated between the atomic exchange and the futex wake + // call, so avoid accessing any fields of Lock here. In that case, the wake call may target + // unmapped memory or trigger a spurious futex wakeup. The same situation happens with + // pthread mutexes. References: + // - https://lkml.org/lkml/2014/11/27/472 + // - http://austingroupbugs.net/view.php?id=811#c2267 __futex_wake_ex(&state, shared, 1); } } diff --git a/libc/system_properties/Android.bp b/libc/system_properties/Android.bp index 911afb129..8780ddae3 100644 --- a/libc/system_properties/Android.bp +++ b/libc/system_properties/Android.bp @@ -1,6 +1,7 @@ cc_library_static { name: "libsystemproperties", defaults: ["libc_defaults"], + native_bridge_supported: true, srcs: [ "context_node.cpp", "contexts_split.cpp", diff --git a/libc/tools/Android.bp b/libc/tools/Android.bp new file mode 100644 index 000000000..13179a0b8 --- /dev/null +++ b/libc/tools/Android.bp @@ -0,0 +1,4 @@ +filegroup { + name: "bionic-gensyscalls", + srcs: ["gensyscalls.py"] +} diff --git a/libc/tools/generate-NOTICE.py b/libc/tools/generate-NOTICE.py index 17429e132..72184454c 100755 --- a/libc/tools/generate-NOTICE.py +++ b/libc/tools/generate-NOTICE.py @@ -1,7 +1,5 @@ #!/usr/bin/env python # Run with directory arguments from any directory, with no special setup required. -# Or: -# for i in libc libdl libm linker libstdc++ ; do ./libc/tools/generate-NOTICE.py $i > $i/NOTICE ; done import ftplib import hashlib diff --git a/libc/tools/gensyscalls.py b/libc/tools/gensyscalls.py index 9a3b95e58..b307486d5 100755 --- a/libc/tools/gensyscalls.py +++ b/libc/tools/gensyscalls.py @@ -8,7 +8,6 @@ import atexit import commands import filecmp import glob -import logging import os.path import re import shutil @@ -20,39 +19,10 @@ import tempfile all_arches = [ "arm", "arm64", "mips", "mips64", "x86", "x86_64" ] +bionic_libc = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") -# temp directory where we store all intermediate files -bionic_temp = tempfile.mkdtemp(prefix="bionic_gensyscalls"); -# Make sure the directory is deleted when the script exits. -atexit.register(shutil.rmtree, bionic_temp) - -bionic_libc_root = os.path.join(os.path.dirname(os.path.abspath(__file__)), - "..") - -warning = "Generated by gensyscalls.py. Do not edit." - -DRY_RUN = False - -def make_dir(path): - path = os.path.abspath(path) - if not os.path.exists(path): - parent = os.path.dirname(path) - if parent: - make_dir(parent) - os.mkdir(path) - - -def create_file(relpath): - full_path = os.path.join(bionic_temp, relpath) - dir = os.path.dirname(full_path) - make_dir(dir) - return open(full_path, "w") - - -syscall_stub_header = "/* " + warning + " */\n" + \ +syscall_stub_header = \ """ -#include <private/bionic_asm.h> - ENTRY(%(func)s) """ @@ -97,7 +67,7 @@ END(%(func)s) # -# Arm64 assembler templates for each syscall stub +# Arm64 assembler template for each syscall stub # arm64_call = syscall_stub_header + """\ @@ -114,7 +84,7 @@ END(%(func)s) # -# MIPS assembler templates for each syscall stub +# MIPS assembler template for each syscall stub # mips_call = syscall_stub_header + """\ @@ -136,7 +106,7 @@ END(%(func)s) # -# MIPS64 assembler templates for each syscall stub +# MIPS64 assembler template for each syscall stub # mips64_call = syscall_stub_header + """\ @@ -199,7 +169,7 @@ END(%(func)s) # -# x86_64 assembler templates for each syscall stub +# x86_64 assembler template for each syscall stub # x86_64_call = """\ @@ -507,8 +477,6 @@ class SysCallsTxtParser: self.syscalls.append(t) - logging.debug(t) - def parse_open_file(self, fp): for line in fp: self.lineno += 1 @@ -518,182 +486,47 @@ class SysCallsTxtParser: self.parse_line(line) def parse_file(self, file_path): - logging.debug("parse_file: %s" % file_path) with open(file_path) as fp: self.parse_open_file(fp) -class State: - def __init__(self): - self.old_stubs = [] - self.new_stubs = [] - self.other_files = [] - self.syscalls = [] +def main(arch): + parser = SysCallsTxtParser() + parser.parse_file(os.path.join(bionic_libc, "SYSCALLS.TXT")) + for syscall in parser.syscalls: + syscall["__NR_name"] = make__NR_name(syscall["name"]) - def process_file(self, input): - parser = SysCallsTxtParser() - parser.parse_file(input) - self.syscalls = parser.syscalls - parser = None + if syscall.has_key("arm"): + syscall["asm-arm"] = add_footer(32, arm_eabi_genstub(syscall), syscall) - for syscall in self.syscalls: - syscall["__NR_name"] = make__NR_name(syscall["name"]) + if syscall.has_key("arm64"): + syscall["asm-arm64"] = add_footer(64, arm64_genstub(syscall), syscall) - if syscall.has_key("arm"): - syscall["asm-arm"] = add_footer(32, arm_eabi_genstub(syscall), syscall) + if syscall.has_key("x86"): + if syscall["socketcall_id"] >= 0: + syscall["asm-x86"] = add_footer(32, x86_genstub_socketcall(syscall), syscall) + else: + syscall["asm-x86"] = add_footer(32, x86_genstub(syscall), syscall) + elif syscall["socketcall_id"] >= 0: + E("socketcall_id for dispatch syscalls is only supported for x86 in '%s'" % t) + return - if syscall.has_key("arm64"): - syscall["asm-arm64"] = add_footer(64, arm64_genstub(syscall), syscall) + if syscall.has_key("mips"): + syscall["asm-mips"] = add_footer(32, mips_genstub(syscall), syscall) - if syscall.has_key("x86"): - if syscall["socketcall_id"] >= 0: - syscall["asm-x86"] = add_footer(32, x86_genstub_socketcall(syscall), syscall) - else: - syscall["asm-x86"] = add_footer(32, x86_genstub(syscall), syscall) - elif syscall["socketcall_id"] >= 0: - E("socketcall_id for dispatch syscalls is only supported for x86 in '%s'" % t) - return + if syscall.has_key("mips64"): + syscall["asm-mips64"] = add_footer(64, mips64_genstub(syscall), syscall) - if syscall.has_key("mips"): - syscall["asm-mips"] = add_footer(32, mips_genstub(syscall), syscall) - - if syscall.has_key("mips64"): - syscall["asm-mips64"] = add_footer(64, mips64_genstub(syscall), syscall) - - if syscall.has_key("x86_64"): - syscall["asm-x86_64"] = add_footer(64, x86_64_genstub(syscall), syscall) - - - # Scan Linux kernel asm/unistd.h files containing __NR_* constants - # and write out equivalent SYS_* constants for glibc source compatibility. - def gen_glibc_syscalls_h(self): - glibc_syscalls_h_path = "include/bits/glibc-syscalls.h" - logging.info("generating " + glibc_syscalls_h_path) - glibc_fp = create_file(glibc_syscalls_h_path) - glibc_fp.write("/* %s */\n" % warning) - glibc_fp.write("#ifndef _BIONIC_BITS_GLIBC_SYSCALLS_H_\n") - glibc_fp.write("#define _BIONIC_BITS_GLIBC_SYSCALLS_H_\n") - - # Collect the set of all syscalls for all architectures. - syscalls = set() - pattern = re.compile(r'^\s*#\s*define\s*__NR_([a-z_]\S+)') - for unistd_h in ["kernel/uapi/asm-generic/unistd.h", - "kernel/uapi/asm-arm/asm/unistd.h", - "kernel/uapi/asm-arm/asm/unistd-common.h", - "kernel/uapi/asm-arm/asm/unistd-eabi.h", - "kernel/uapi/asm-arm/asm/unistd-oabi.h", - "kernel/uapi/asm-mips/asm/unistd.h", - "kernel/uapi/asm-mips/asm/unistd_n32.h", - "kernel/uapi/asm-mips/asm/unistd_n64.h", - "kernel/uapi/asm-mips/asm/unistd_nr_n32.h", - "kernel/uapi/asm-mips/asm/unistd_nr_n64.h", - "kernel/uapi/asm-mips/asm/unistd_nr_o32.h", - "kernel/uapi/asm-mips/asm/unistd_o32.h", - "kernel/uapi/asm-x86/asm/unistd_32.h", - "kernel/uapi/asm-x86/asm/unistd_64.h", - "kernel/uapi/asm-x86/asm/unistd_x32.h"]: - for line in open(os.path.join(bionic_libc_root, unistd_h)): - m = re.search(pattern, line) - if m: - nr_name = m.group(1) - if 'reserved' not in nr_name and 'unused' not in nr_name: - syscalls.add(nr_name) - - # Write out a single file listing them all. Note that the input - # files include #if trickery, so even for a single architecture - # we don't know exactly which ones are available. - # https://code.google.com/p/android/issues/detail?id=215853 - for syscall in sorted(syscalls): - nr_name = make__NR_name(syscall) - glibc_fp.write("#if defined(%s)\n" % nr_name) - glibc_fp.write(" #define SYS_%s %s\n" % (syscall, nr_name)) - glibc_fp.write("#endif\n") - - glibc_fp.write("#endif /* _BIONIC_BITS_GLIBC_SYSCALLS_H_ */\n") - glibc_fp.close() - self.other_files.append(glibc_syscalls_h_path) - - - # Write each syscall stub. - def gen_syscall_stubs(self): - for syscall in self.syscalls: - for arch in all_arches: - if syscall.has_key("asm-%s" % arch): - filename = "arch-%s/syscalls/%s.S" % (arch, syscall["func"]) - logging.info(">>> generating " + filename) - fp = create_file(filename) - fp.write(syscall["asm-%s" % arch]) - fp.close() - self.new_stubs.append(filename) - - - def regenerate(self): - logging.info("scanning for existing architecture-specific stub files...") - - for arch in all_arches: - arch_dir = "arch-" + arch - logging.info("scanning " + os.path.join(bionic_libc_root, arch_dir)) - rel_path = os.path.join(arch_dir, "syscalls") - for file in os.listdir(os.path.join(bionic_libc_root, rel_path)): - if file.endswith(".S"): - self.old_stubs.append(os.path.join(rel_path, file)) - - logging.info("found %d stub files" % len(self.old_stubs)) - - if not os.path.exists(bionic_temp): - logging.info("creating %s..." % bionic_temp) - make_dir(bionic_temp) - - logging.info("re-generating stubs and support files...") - - self.gen_glibc_syscalls_h() - self.gen_syscall_stubs() - - logging.info("comparing files...") - adds = [] - edits = [] - - for stub in self.new_stubs + self.other_files: - tmp_file = os.path.join(bionic_temp, stub) - libc_file = os.path.join(bionic_libc_root, stub) - if not os.path.exists(libc_file): - # new file, git add it - logging.info("new file: " + stub) - adds.append(libc_file) - shutil.copyfile(tmp_file, libc_file) - - elif not filecmp.cmp(tmp_file, libc_file): - logging.info("changed file: " + stub) - edits.append(stub) - - deletes = [] - for stub in self.old_stubs: - if not stub in self.new_stubs: - logging.info("deleted file: " + stub) - deletes.append(os.path.join(bionic_libc_root, stub)) - - if not DRY_RUN: - if adds: - commands.getoutput("git add " + " ".join(adds)) - if deletes: - commands.getoutput("git rm " + " ".join(deletes)) - if edits: - for file in edits: - shutil.copyfile(os.path.join(bionic_temp, file), - os.path.join(bionic_libc_root, file)) - commands.getoutput("git add " + " ".join((os.path.join(bionic_libc_root, file)) for file in edits)) - - commands.getoutput("git add %s" % (os.path.join(bionic_libc_root, "SYSCALLS.TXT"))) - - if (not adds) and (not deletes) and (not edits): - logging.info("no changes detected!") - else: - logging.info("ready to go!!") + if syscall.has_key("x86_64"): + syscall["asm-x86_64"] = add_footer(64, x86_64_genstub(syscall), syscall) + + print("/* Generated by gensyscalls.py. Do not edit. */\n") + print("#include <private/bionic_asm.h>\n") + for syscall in parser.syscalls: + if syscall.has_key("asm-%s" % arch): + print(syscall["asm-%s" % arch]) -logging.basicConfig(level=logging.INFO) if __name__ == "__main__": - state = State() - state.process_file(os.path.join(bionic_libc_root, "SYSCALLS.TXT")) - state.regenerate() + main(sys.argv[1]) |