From patchwork Mon Nov 9 20:18:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 40980 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9AE2B3894C14; Mon, 9 Nov 2020 20:18:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9AE2B3894C14 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1604953119; bh=uMLn7bQSbSrY5DO5TIIZ437bHNlYtUuOImxzyktvkFQ=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=DZz9kHIKve3B50pDXyz3nRvVK7e2JHRw47jkHXcok0Weca5OUBxwlCYoIR8yUVotQ jT+NTYjdJjBy1B+7O9Ly0dH73KKXvDCkYqdd1v0Z++HnZyyAfV/fD3NPe3BC6Owp2K J8HrieqlVf2ZbT8TSFnAbpNE1c1l4EAZlR/4RQUg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by sourceware.org (Postfix) with ESMTPS id B1C3F3857C56 for ; Mon, 9 Nov 2020 20:18:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B1C3F3857C56 Received: by mail-qt1-x830.google.com with SMTP id m65so6944902qte.11 for ; Mon, 09 Nov 2020 12:18:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=uMLn7bQSbSrY5DO5TIIZ437bHNlYtUuOImxzyktvkFQ=; b=bHPJZ23ZquT20PY3TUC7QlT0hD7Gkwn1Dd7upB5tnIfvvztxf4QO1IwO5xUkOYwjkJ GsnrbYX4g9Toe1axWwQOWtK0mvE47Ax2rDgJIeodr0BWNyHLE6uL7izwMLTYkTRIYy9l vUqkAIiDdhK9yY0ymdZ/ForucwhSL+2ocVnzo6s+Nc+NROlOMy6CYAzQaPd4FW6H9InT W1CCRC5JqyqL4Dxl7TI1eWiZuyChkKfkAC4O9zztdRBuYAj7Er3vR4U+020XipasiN2w ocDiUZ5uBoQGyp96eU8DQnaOn2sfcbQ3gum2QGM8ynmmHpaTEuAq1YezCskskc8FLXah yULw== X-Gm-Message-State: AOAM533RzFfcCIfo/b/i0/24IcaxBP/r0ybH95dgyNErqpc/rWcscao/ ifvyfrOYpkdZRIN42Sn3jkTBfQokqXwuqg== X-Google-Smtp-Source: ABdhPJzJuJ8bTdI7u8aJJxZODV6D/cvUgstljy8sQKah/Drllcqrn5yexCu+REs/fw6Ltaq24lPDVg== X-Received: by 2002:aed:29e7:: with SMTP id o94mr15131550qtd.16.1604953114522; Mon, 09 Nov 2020 12:18:34 -0800 (PST) Received: from localhost.localdomain ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id z2sm6843407qkl.22.2020.11.09.12.18.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 12:18:34 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH 00/23] Simplify internal Linux syscall Date: Mon, 9 Nov 2020 17:18:03 -0300 Message-Id: <20201109201826.120534-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" This refactor aims to remove and simplify the Linux internal syscall mechanism by using inline functions instead of macros and by removing the possible requirement to each architecture to define a __syscall_error routine to handle errno setting. Instead of issuing the following for syscalls that don't set the errno: int r = INTERNAL_SYSCALL_CALL (syscall, ...); if (! INTERNAL_SYSCALL_ERROR_P (r) || INTERNAL_SYSCALL_ERRNO (r) != ENOSYS) return INTERNAL_SYSCALL_ERRNO (r); r = INTERNAL_SYSCALL_CALL (fallback, ...); return INTERNAL_SYSCALL_ERRNO (r) ? -r : 0; It would be written as: int r = INTERNAL_SYSCALL_CALL (syscall, ...); if (! syscall_error (r) || -r != ENOSYS) return -r; return -INTERNAL_SYSCALL_CALL (fallback, ...); The error check can be even simplified to 'if -r != ENOSYS' now that INTERNAL_SYSCALL_CALL will return a value between [-4096UL, 0UL) in the case of failure. For syscall which sets the errno, instead of: int r = INTERNAL_SYSCALL_CALL (syscall, ...); if (! INTERNAL_SYSCALL_ERROR_P (r) || INTERNAL_SYSCALL_ERRNO (r) != ENOSYS) return INLINE_SYSCALL_ERROR_RETURN_VALUE (r); r = INTERNAL_SYSCALL_CALL (fallback, ...); [...] __glibc_unlikely (INTERNAL_SYSCALL_ERROR_P (sc_ret)) ? SYSCALL_ERROR_LABEL (INTERNAL_SYSCALL_ERRNO (sc_ret)) : sc_ret; It would be written as: int r = INTERNAL_SYSCALL_CALL (syscall, ...); if (! syscall_error (r) || -r != ENOSYS) return syscall_ret (r); r = INTERNAL_SYSCALL_CALL (fallback, ...); [...] return syscall_ret (r); The compiler should easily optimize the first syscall_ret to just call __syscall_error in first case. Another optimization is to avoid require each archicture to define an arch-specific __syscall_error for the case where calling an external symbols yields faster or more compact code (for instance on i386). Each architecture might define SYSCALL_ERROR_FUNC, which in turn will build and link to each library that issues syscall a local __syscall_error routine. I checked each architecture whether inline or outline __syscall_error results or not in a better code size and enable it accordingly. Some ABIs only enables for static case (x86_64), even when the gain is minimal. This is a first step to move the syscall to proper inline implementation instead of the macro hell and to move the auto-generation to use C generated instead of the assembly ones. Adhemerval Zanella (23): linux: Remove INTERNAL_SYSCALL_ERRNO linux: Replace INTERNAL_SYSCALL_ERROR_P macro with a inline function Remove tls.h inclusion from internal errno.h linux: Add syscall_ret and use it on INLINE_SYSCALL linux: Replace INLINE_SYSCALL_ERROR_RETURN_VALUE with __syscall_error linux: Use generic __syscall_error for aarch64 linux: Use generic __syscall_error for i386 linux: Use generic __syscall_error for arc linux: Use generic __syscall_error for powerpc linux: Use generic __syscall_error for sparc linux: Use generic __syscall_error for hppa linux: Use generic __syscall_error for arm linux: Use generic __syscall_error for x86_64 linux: Use generic __syscall_error for s390 linux: Use generic __syscall_error for sh linux: Use generic __syscall_error for microblaze linux: Use generic __syscall_error for ia64 linux: Use generic __syscall_error for m68k linux: Use generic __syscall_error for csky linux: Use generic __syscall_error for riscv linux: Use generic __syscall_error for nios2 linux: Use generic __syscall_error for alpha linux: Use generic __syscall_error for mips include/errno.h | 2 - io/lchmod.c | 4 +- malloc/reallocarray.c | 1 + misc/ustat.c | 1 + nptl/allocatestack.c | 6 +- nptl/nptl-init.c | 6 +- nptl/pthread_cancel.c | 4 +- nptl/pthread_getaffinity.c | 4 +- nptl/pthread_mutex_trylock.c | 3 +- nptl/pthread_setaffinity.c | 9 +- nptl/pthread_sigmask.c | 8 +- nss/nss_fgetent_r.c | 1 + posix/execl.c | 1 + posix/execle.c | 1 + posix/execlp.c | 1 + posix/spawn_faction_addchdir.c | 2 +- pwd/putpwent.c | 1 + signal/sigempty.c | 1 + signal/sigismem.c | 1 + sysdeps/arc/Versions | 3 - sysdeps/arc/nptl/tls.h | 2 +- sysdeps/csky/nptl/tls.h | 2 +- sysdeps/generic/internal-signals.h | 1 + sysdeps/ia64/nptl/Makefile | 5 - sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c | 3 - sysdeps/m68k/nptl/tls.h | 2 +- sysdeps/mach/hurd/mmap64.c | 1 + sysdeps/mach/hurd/waitid.c | 1 + sysdeps/microblaze/backtrace.c | 1 + sysdeps/mips/Makefile | 5 - sysdeps/mips/nptl/Makefile | 5 - sysdeps/mips/nptl/nptl-sysdep.S | 2 - sysdeps/mips/nptl/tls.h | 2 +- sysdeps/nptl/futex-internal.h | 1 + sysdeps/nptl/lowlevellock-futex.h | 7 +- sysdeps/powerpc/nofpu/sfp-machine.h | 2 +- sysdeps/powerpc/powerpc32/sysdep.h | 1 + sysdeps/powerpc/powerpc64/sysdep.h | 7 +- sysdeps/riscv/nptl/Makefile | 5 - sysdeps/riscv/nptl/nptl-sysdep.S | 2 - sysdeps/s390/nptl/Makefile | 5 - sysdeps/unix/alpha/Makefile | 8 +- sysdeps/unix/alpha/rt-sysdep.S | 1 - .../alpha/{sysdep.S => syscall_error_asm.S} | 8 +- sysdeps/unix/arm/sysdep.S | 62 ---------- sysdeps/unix/mips/mips32/sysdep.h | 5 +- sysdeps/unix/mips/mips64/sysdep.h | 3 +- sysdeps/unix/mips/rt-sysdep.S | 1 - sysdeps/unix/mips/sysdep.S | 99 --------------- sysdeps/unix/sh/sysdep.S | 115 ------------------ sysdeps/unix/sysv/linux/Makefile | 9 +- sysdeps/unix/sysv/linux/aarch64/sysdep.c | 33 ----- sysdeps/unix/sysv/linux/aarch64/sysdep.h | 2 + sysdeps/unix/sysv/linux/adjtime.c | 3 +- sysdeps/unix/sysv/linux/alpha/Makefile | 3 +- sysdeps/unix/sysv/linux/alpha/fxstat64.c | 2 +- sysdeps/unix/sysv/linux/alpha/lxstat64.c | 2 +- sysdeps/unix/sysv/linux/alpha/sysdep.h | 4 +- sysdeps/unix/sysv/linux/alpha/xstat64.c | 2 +- sysdeps/unix/sysv/linux/arc/sysdep.c | 33 ----- sysdeps/unix/sysv/linux/arc/sysdep.h | 19 +-- sysdeps/unix/sysv/linux/arm/sysdep.S | 33 ----- sysdeps/unix/sysv/linux/arm/sysdep.h | 2 + sysdeps/unix/sysv/linux/arm/tls.h | 2 +- sysdeps/unix/sysv/linux/clock_getcpuclockid.c | 1 + sysdeps/unix/sysv/linux/clock_nanosleep.c | 2 +- sysdeps/unix/sysv/linux/createthread.c | 6 +- sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S | 65 ---------- sysdeps/unix/sysv/linux/csky/sysdep.h | 2 + sysdeps/unix/sysv/linux/dl-origin.c | 2 +- sysdeps/unix/sysv/linux/dl-write.c | 5 +- sysdeps/unix/sysv/linux/faccessat.c | 10 +- sysdeps/unix/sysv/linux/fchmodat.c | 2 +- sysdeps/unix/sysv/linux/fcntl_nocancel.c | 5 +- sysdeps/unix/sysv/linux/fstatat.c | 8 +- sysdeps/unix/sysv/linux/fstatat64.c | 6 +- sysdeps/unix/sysv/linux/ftime.c | 1 + sysdeps/unix/sysv/linux/ftruncate64.c | 1 - sysdeps/unix/sysv/linux/futimens.c | 2 +- sysdeps/unix/sysv/linux/fxstat.c | 2 +- sysdeps/unix/sysv/linux/fxstat64.c | 2 +- sysdeps/unix/sysv/linux/fxstatat.c | 2 +- sysdeps/unix/sysv/linux/fxstatat64.c | 2 +- sysdeps/unix/sysv/linux/generic/chmod.c | 4 +- sysdeps/unix/sysv/linux/generic/chown.c | 4 +- sysdeps/unix/sysv/linux/generic/dl-origin.c | 2 +- sysdeps/unix/sysv/linux/generic/dup2.c | 3 +- .../unix/sysv/linux/generic/epoll_create.c | 5 +- .../unix/sysv/linux/generic/inotify_init.c | 5 +- sysdeps/unix/sysv/linux/generic/lchown.c | 4 +- sysdeps/unix/sysv/linux/generic/link.c | 3 +- sysdeps/unix/sysv/linux/generic/pipe.c | 3 +- sysdeps/unix/sysv/linux/generic/readlink.c | 2 +- sysdeps/unix/sysv/linux/generic/rmdir.c | 4 +- sysdeps/unix/sysv/linux/generic/symlink.c | 3 +- sysdeps/unix/sysv/linux/generic/unlink.c | 4 +- .../sysv/linux/generic/wordsize-32/fstatfs.c | 2 +- .../sysv/linux/generic/wordsize-32/overflow.h | 1 + .../sysv/linux/generic/wordsize-32/sendfile.c | 2 + .../sysv/linux/generic/wordsize-32/statfs.c | 2 +- sysdeps/unix/sysv/linux/getdents.c | 2 +- sysdeps/unix/sysv/linux/getentropy.c | 1 + sysdeps/unix/sysv/linux/getrlimit.c | 3 +- sysdeps/unix/sysv/linux/getrlimit64.c | 1 + sysdeps/unix/sysv/linux/gettimeofday.c | 7 +- .../unix/sysv/linux/hppa/____longjmp_chk.c | 2 +- sysdeps/unix/sysv/linux/hppa/clone.S | 6 +- sysdeps/unix/sysv/linux/hppa/sysdep.c | 29 ----- sysdeps/unix/sysv/linux/hppa/sysdep.h | 4 + sysdeps/unix/sysv/linux/i386/Makefile | 13 -- sysdeps/unix/sysv/linux/i386/brk.c | 2 +- sysdeps/unix/sysv/linux/i386/sysdep.c | 30 ----- sysdeps/unix/sysv/linux/i386/sysdep.h | 6 +- sysdeps/unix/sysv/linux/ia64/Makefile | 5 - sysdeps/unix/sysv/linux/ia64/rt-sysdep.S | 1 - sysdeps/unix/sysv/linux/ia64/syscall_error.c | 3 + sysdeps/unix/sysv/linux/ia64/sysdep.S | 58 --------- sysdeps/unix/sysv/linux/internal-signals.h | 1 + sysdeps/unix/sysv/linux/libc_fatal.c | 5 +- sysdeps/unix/sysv/linux/lxstat.c | 2 +- sysdeps/unix/sysv/linux/lxstat64.c | 2 +- .../unix/sysv/linux/m68k/____longjmp_chk.c | 2 +- sysdeps/unix/sysv/linux/m68k/getpagesize.c | 2 +- sysdeps/unix/sysv/linux/m68k/sysdep.S | 50 -------- sysdeps/unix/sysv/linux/m68k/sysdep.h | 11 +- sysdeps/unix/sysv/linux/microblaze/Makefile | 6 - sysdeps/unix/sysv/linux/microblaze/sysdep.S | 39 ------ sysdeps/unix/sysv/linux/microblaze/sysdep.h | 4 + sysdeps/unix/sysv/linux/mips/clone.S | 1 + sysdeps/unix/sysv/linux/mips/getcontext.S | 1 + .../unix/sysv/linux/mips/mips64/fxstatat64.c | 2 +- .../unix/sysv/linux/mips/mips64/n64/ioctl.S | 3 +- sysdeps/unix/sysv/linux/mips/mips64/syscall.S | 3 +- sysdeps/unix/sysv/linux/mips/setcontext.S | 1 + sysdeps/unix/sysv/linux/mips/swapcontext.S | 1 + sysdeps/unix/sysv/linux/mips/syscall_error.c | 3 + sysdeps/unix/sysv/linux/mips/vfork.S | 1 + sysdeps/unix/sysv/linux/mknodat.c | 3 +- sysdeps/unix/sysv/linux/mmap.c | 2 +- sysdeps/unix/sysv/linux/mmap64.c | 2 +- sysdeps/unix/sysv/linux/mq_open.c | 2 +- sysdeps/unix/sysv/linux/mq_unlink.c | 14 +-- .../unix/sysv/linux/netlink_assert_response.c | 1 + sysdeps/unix/sysv/linux/nios2/sysdep.S | 50 -------- sysdeps/unix/sysv/linux/nios2/sysdep.h | 2 + sysdeps/unix/sysv/linux/not-errno.h | 14 +-- sysdeps/unix/sysv/linux/nscd_setup_thread.c | 2 +- sysdeps/unix/sysv/linux/personality.c | 10 +- sysdeps/unix/sysv/linux/posix_fadvise.c | 19 ++- sysdeps/unix/sysv/linux/posix_fadvise64.c | 14 +-- sysdeps/unix/sysv/linux/posix_fallocate.c | 6 +- sysdeps/unix/sysv/linux/posix_fallocate64.c | 6 +- sysdeps/unix/sysv/linux/posix_madvise.c | 3 +- sysdeps/unix/sysv/linux/powerpc/Makefile | 7 -- .../unix/sysv/linux/powerpc/powerpc32/brk.S | 1 + .../unix/sysv/linux/powerpc/powerpc32/clone.S | 3 +- .../sysv/linux/powerpc/powerpc32/getcontext.S | 2 + .../linux/powerpc/powerpc32/makecontext.S | 2 +- .../powerpc/powerpc32/nofpu/getcontext.S | 2 +- .../powerpc/powerpc32/nofpu/setcontext.S | 2 +- .../powerpc/powerpc32/nofpu/swapcontext.S | 2 +- .../sysv/linux/powerpc/powerpc32/setcontext.S | 3 +- .../linux/powerpc/powerpc32/swapcontext.S | 3 +- sysdeps/unix/sysv/linux/powerpc/rt-sysdep.c | 1 - sysdeps/unix/sysv/linux/powerpc/sysdep.h | 2 + sysdeps/unix/sysv/linux/prlimit.c | 8 +- sysdeps/unix/sysv/linux/pthread_kill.c | 4 +- sysdeps/unix/sysv/linux/pthread_sigqueue.c | 5 +- sysdeps/unix/sysv/linux/readahead.c | 2 +- sysdeps/unix/sysv/linux/riscv/syscall.c | 2 +- sysdeps/unix/sysv/linux/riscv/sysdep.S | 51 -------- sysdeps/unix/sysv/linux/riscv/sysdep.h | 2 + sysdeps/unix/sysv/linux/s390/Makefile | 5 - sysdeps/unix/sysv/linux/s390/rt-sysdep.S | 1 - .../sysv/linux/s390/s390-32/____longjmp_chk.c | 2 +- .../sysv/linux/s390/s390-32/posix_fadvise64.c | 5 +- sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S | 74 ----------- sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c | 2 +- .../unix/sysv/linux/s390/s390-32/utmpx32.c | 2 +- .../sysv/linux/s390/s390-64/____longjmp_chk.c | 2 +- sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S | 75 ------------ sysdeps/unix/sysv/linux/s390/syscall_error.c | 5 + sysdeps/unix/sysv/linux/semop.c | 2 +- sysdeps/unix/sysv/linux/setegid.c | 2 +- sysdeps/unix/sysv/linux/seteuid.c | 2 +- sysdeps/unix/sysv/linux/setrlimit.c | 3 +- sysdeps/unix/sysv/linux/setrlimit64.c | 1 + sysdeps/unix/sysv/linux/settimezone.c | 1 + sysdeps/unix/sysv/linux/sh/localplt.data | 1 - sysdeps/unix/sysv/linux/sh/sysdep.S | 32 ----- sysdeps/unix/sysv/linux/sh/sysdep.h | 2 + sysdeps/unix/sysv/linux/shmat.c | 4 +- sysdeps/unix/sysv/linux/shmget.c | 3 +- sysdeps/unix/sysv/linux/socketcall.h | 2 + sysdeps/unix/sysv/linux/sparc/Makefile | 9 +- sysdeps/unix/sysv/linux/sparc/rt-sysdep.c | 1 - sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S | 1 + .../unix/sysv/linux/sparc/sparc32/syscall.S | 1 + .../unix/sysv/linux/sparc/sparc32/sysdep.h | 1 + sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S | 1 + sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S | 1 + .../unix/sysv/linux/sparc/sparc64/syscall.S | 1 + .../unix/sysv/linux/sparc/sparc64/sysdep.h | 1 + sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S | 1 + sysdeps/unix/sysv/linux/sparc/sysdep.c | 1 - sysdeps/unix/sysv/linux/sparc/sysdep.h | 2 + sysdeps/unix/sysv/linux/speed.c | 6 +- sysdeps/unix/sysv/linux/statx.c | 2 +- .../{powerpc/sysdep.c => syscall_error.c} | 16 +-- sysdeps/unix/sysv/linux/sysctl.c | 1 + sysdeps/unix/sysv/linux/sysdep-vdso.h | 26 +--- sysdeps/unix/sysv/linux/sysdep.h | 77 +++++++----- sysdeps/unix/sysv/linux/tcsendbrk.c | 2 +- sysdeps/unix/sysv/linux/tcsetattr.c | 2 +- sysdeps/unix/sysv/linux/timer_create.c | 4 +- sysdeps/unix/sysv/linux/times.c | 7 +- sysdeps/unix/sysv/linux/truncate64.c | 1 - sysdeps/unix/sysv/linux/ustat.c | 6 +- sysdeps/unix/sysv/linux/utimensat.c | 2 +- .../unix/sysv/linux/x86_64/syscall_error.c | 5 + sysdeps/unix/sysv/linux/x86_64/sysdep.S | 40 ------ sysdeps/unix/sysv/linux/x86_64/x32/times.c | 9 +- sysdeps/unix/sysv/linux/xmknod.c | 3 +- sysdeps/unix/sysv/linux/xmknodat.c | 3 +- sysdeps/unix/sysv/linux/xstat.c | 2 +- sysdeps/unix/sysv/linux/xstat64.c | 2 +- sysdeps/unix/sysv/linux/xstatconv.c | 13 +- sysdeps/unix/x86_64/sysdep.S | 49 -------- sysdeps/x86_64/stackinfo.h | 10 +- 229 files changed, 388 insertions(+), 1468 deletions(-) delete mode 100644 sysdeps/mips/nptl/nptl-sysdep.S delete mode 100644 sysdeps/riscv/nptl/nptl-sysdep.S delete mode 100644 sysdeps/unix/alpha/rt-sysdep.S rename sysdeps/unix/alpha/{sysdep.S => syscall_error_asm.S} (94%) delete mode 100644 sysdeps/unix/arm/sysdep.S delete mode 100644 sysdeps/unix/mips/rt-sysdep.S delete mode 100644 sysdeps/unix/mips/sysdep.S delete mode 100644 sysdeps/unix/sh/sysdep.S delete mode 100644 sysdeps/unix/sysv/linux/aarch64/sysdep.c delete mode 100644 sysdeps/unix/sysv/linux/arc/sysdep.c delete mode 100644 sysdeps/unix/sysv/linux/arm/sysdep.S delete mode 100644 sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S delete mode 100644 sysdeps/unix/sysv/linux/hppa/sysdep.c delete mode 100644 sysdeps/unix/sysv/linux/i386/sysdep.c delete mode 100644 sysdeps/unix/sysv/linux/ia64/rt-sysdep.S create mode 100644 sysdeps/unix/sysv/linux/ia64/syscall_error.c delete mode 100644 sysdeps/unix/sysv/linux/ia64/sysdep.S delete mode 100644 sysdeps/unix/sysv/linux/m68k/sysdep.S delete mode 100644 sysdeps/unix/sysv/linux/microblaze/sysdep.S create mode 100644 sysdeps/unix/sysv/linux/mips/syscall_error.c delete mode 100644 sysdeps/unix/sysv/linux/nios2/sysdep.S delete mode 100644 sysdeps/unix/sysv/linux/powerpc/rt-sysdep.c delete mode 100644 sysdeps/unix/sysv/linux/riscv/sysdep.S delete mode 100644 sysdeps/unix/sysv/linux/s390/rt-sysdep.S delete mode 100644 sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S delete mode 100644 sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S create mode 100644 sysdeps/unix/sysv/linux/s390/syscall_error.c delete mode 100644 sysdeps/unix/sysv/linux/sh/sysdep.S delete mode 100644 sysdeps/unix/sysv/linux/sparc/rt-sysdep.c delete mode 100644 sysdeps/unix/sysv/linux/sparc/sysdep.c rename sysdeps/unix/sysv/linux/{powerpc/sysdep.c => syscall_error.c} (77%) create mode 100644 sysdeps/unix/sysv/linux/x86_64/syscall_error.c delete mode 100644 sysdeps/unix/sysv/linux/x86_64/sysdep.S delete mode 100644 sysdeps/unix/x86_64/sysdep.S