From patchwork Wed Oct 19 22:14:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 55231 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 EF9DC3858010 for ; Wed, 19 Oct 2022 22:15:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF9DC3858010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666217708; bh=qsLIOEEicd+sPQi7gL/nOQpX7+gyZGQNjwtEV/tVxRU=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=vu7SrLampl52TQZSZIa/Zn9t7Z8JkdFl5CLoeVCYxDuZxUPhMHMVi2/so1kJ9mUV2 1EwiEIeA9rjdztHxIXLDEmg8D2+2ZDVKtCUoeLG6IH6N13WPFCa6zK/2ln78YJIdFs FV1+grZHMaiN72sPX0/HeeuBnd1/A7R0L70BfIB8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id 9D1333858D32 for ; Wed, 19 Oct 2022 22:14:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9D1333858D32 Received: by mail-ot1-x332.google.com with SMTP id t4-20020a9d7f84000000b00661c3d864f9so10339966otp.10 for ; Wed, 19 Oct 2022 15:14:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qsLIOEEicd+sPQi7gL/nOQpX7+gyZGQNjwtEV/tVxRU=; b=VRboeA0as2oMu+qND82GpIZntgNnPqWhVSqaErF8OkMVKLHKP/578+90t9juV8FdMA pW+MAojC4bEI05F90u1OEiN/ENH/tTopkU9Trqdms2mBArKluo/wFYhk+/h4TueAPTtH M3jETKDDKHBpDbW6b4aqYYp7EQOlqOh/xmxQj171Voiy+TtfLy1P9oSksvm/HPk2HyEj Y5U8xyke4Gz7eR3CNDaSX8m/5/mhS3mKlN2x4lzBM7TWnEqbEkl0UISpGanVSvzFUusf v2qqXGMZUZLHyAl/2j/BY7RjJ+nxrU1fcuY2SQ0Db84xvrk1BZvVCi1pRJ+VnqMbIaDc 3Lzg== X-Gm-Message-State: ACrzQf1sNb2RkuyCmvsQZOPrgKLGbufm7/XxY6Obl4+4WkN4DDdHIZlh CCT8uQTS6GmDzKmKddshOtykGHTckXTpdxUC X-Google-Smtp-Source: AMsMyM6cT7y9cWPe1O8V2ZBqIrkVfc+l+0IYPSiuFWYRWUrE+yzDntc1GFjlmPB/ScloUjcNViXZWw== X-Received: by 2002:a05:6830:6518:b0:661:925c:cdfd with SMTP id cm24-20020a056830651800b00661925ccdfdmr5345629otb.170.1666217677542; Wed, 19 Oct 2022 15:14:37 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:7d19:f1c1:9fb4:472a:ab68]) by smtp.gmail.com with ESMTPSA id m9-20020aca5809000000b00353fe4fb4casm7137927oib.48.2022.10.19.15.14.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 15:14:37 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH 00/30] Remove Linux generic sysdep Date: Wed, 19 Oct 2022 19:14:03 -0300 Message-Id: <20221019221433.1082017-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-5.4 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.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" With recent BZ#29657, where struct stat were not adapted for 64 time because I forgot that generic folder is not always usedfor ports with default 64 bit time_t; it seems better to finish the generic integration and make the Linux default implementation the de-facto "generic" implementation. The patchset is mostly mechanic, the first part only moves syscall support from generic to default. The second part change the socket interface assumption to assume wire-up syscall (and adjust the architecture that still requires sockecall). The last part moves the generic headers to the default and finally remove the generic folder and Implies. Adhemerval Zanella (30): linux: Fix generic struct_stat for 64 bit time (BZ# 29657) linux: Consolidate dl-origin.c Linux: consolidate chmod implementation Linux: consolidate chown implementation Linux: consolidate dup2 implementation Lninux: consolidate epoll_create implementation Linux: consolidate inotify_init implementation Linux: consolidate lchown implementation Linux: consolidate link implementation Linux: consolidate mkdir implementation Linux: consolidate readlink implementation Linux: consolidate rmdir implementation Linux: consolidate symlink implementation Linux: consolidate unlink implementation Linux: consolidate sendfile implementation Linux: Move wordsize-32 Version to default Linux: consolidate ____longjmp_chk Linux: Assume and consolidate bind wire-up syscall Linux: Assume iand consolidate socket wire-up syscall Linux: Assume and consolidate socketpair wire-up syscall Linux: Assume and consolidate listen wire-up syscall Linux: Assume and consolidate getsockname wire-up syscall Linux: Assume and consolidate getpeername wire-up syscall Linux: Assume and consolidate shutdown wire-up syscall Linux: Remove unused generic Makefile Linux: Remove generic sysdep Linux: make generic xstatver.h the default one Linux: Make generic fcntl.h the default one Linux: Consolidate typesizes.h Linux: Remove generic Implies sysdeps/unix/sysv/linux/Versions | 3 + .../linux/{generic => }/____longjmp_chk.c | 6 +- sysdeps/unix/sysv/linux/aarch64/Implies | 1 - sysdeps/unix/sysv/linux/aarch64/sysdep.h | 3 +- sysdeps/unix/sysv/linux/arc/Implies | 2 - sysdeps/unix/sysv/linux/arc/sysdep.h | 4 +- sysdeps/unix/sysv/linux/arm/Versions | 3 - .../unix/sysv/linux/arm/bits/struct_stat.h | 139 ++++++++++++++++++ sysdeps/unix/sysv/linux/arm/bits/typesizes.h | 74 ++++++++++ .../sysv/linux/{generic => arm}/xstatver.h | 11 +- sysdeps/unix/sysv/linux/bind.c | 7 +- sysdeps/unix/sysv/linux/bits/fcntl.h | 56 ++++++- sysdeps/unix/sysv/linux/bits/struct_stat.h | 116 +++++++-------- .../sysv/linux/{generic => }/bits/typesizes.h | 0 sysdeps/unix/sysv/linux/{generic => }/chmod.c | 10 +- sysdeps/unix/sysv/linux/{generic => }/chown.c | 9 +- sysdeps/unix/sysv/linux/csky/Implies | 2 - .../{generic => csky}/bits/struct_stat.h | 28 ++-- sysdeps/unix/sysv/linux/csky/sysdep.h | 2 +- sysdeps/unix/sysv/linux/dl-origin.c | 14 +- sysdeps/unix/sysv/linux/{generic => }/dup2.c | 9 +- .../sysv/linux/{generic => }/epoll_create.c | 9 +- sysdeps/unix/sysv/linux/generic/Makefile | 3 - sysdeps/unix/sysv/linux/generic/README | 11 -- sysdeps/unix/sysv/linux/generic/bits/fcntl.h | 55 ------- sysdeps/unix/sysv/linux/generic/dl-origin.c | 79 ---------- sysdeps/unix/sysv/linux/generic/syscalls.list | 10 -- .../sysv/linux/generic/wordsize-32/Versions | 5 - sysdeps/unix/sysv/linux/getpeername.c | 7 +- sysdeps/unix/sysv/linux/getsockname.c | 7 +- sysdeps/unix/sysv/linux/hppa/Versions | 3 - .../unix/sysv/linux/hppa/bits/struct_stat.h | 139 ++++++++++++++++++ sysdeps/unix/sysv/linux/hppa/bits/typesizes.h | 74 ++++++++++ sysdeps/unix/sysv/linux/hppa/xstatver.h | 13 ++ sysdeps/unix/sysv/linux/i386/Versions | 4 - .../unix/sysv/linux/i386/kernel-features.h | 19 +-- sysdeps/unix/sysv/linux/ia64/bits/typesizes.h | 86 +++++++++++ .../sysv/linux/{generic => }/inotify_init.c | 9 +- sysdeps/unix/sysv/linux/kernel-features.h | 7 + .../unix/sysv/linux/{generic => }/lchown.c | 11 +- sysdeps/unix/sysv/linux/{generic => }/link.c | 9 +- sysdeps/unix/sysv/linux/listen.c | 7 +- .../unix/sysv/linux/loongarch/lp64/Implies | 1 - sysdeps/unix/sysv/linux/loongarch/sysdep.h | 3 +- sysdeps/unix/sysv/linux/lseek.c | 4 + sysdeps/unix/sysv/linux/lseek64.c | 4 + sysdeps/unix/sysv/linux/m68k/Versions | 3 - sysdeps/unix/sysv/linux/m68k/bits/typesizes.h | 74 ++++++++++ .../unix/sysv/linux/m68k/kernel-features.h | 19 +-- sysdeps/unix/sysv/linux/microblaze/Versions | 5 - .../sysv/linux/microblaze/bits/typesizes.h | 74 ++++++++++ .../sysv/linux/microblaze/kernel-features.h | 7 - sysdeps/unix/sysv/linux/mips/Versions | 3 - sysdeps/unix/sysv/linux/mips/bits/typesizes.h | 95 ++++++++++++ .../sysv/linux/mips/mips64/n64/sendfile64.c | 1 - .../sysv/linux/mips/mips64/n64/syscalls.list | 3 - sysdeps/unix/sysv/linux/{generic => }/mkdir.c | 15 +- sysdeps/unix/sysv/linux/nios2/Implies | 2 - .../unix/sysv/linux/nios2/bits/struct_stat.h | 135 +++++++++++++++++ sysdeps/unix/sysv/linux/nios2/sysdep.h | 2 +- sysdeps/unix/sysv/linux/or1k/Implies | 2 - sysdeps/unix/sysv/linux/or1k/sysdep.h | 3 +- .../unix/sysv/linux/powerpc/bits/typesizes.h | 95 ++++++++++++ .../unix/sysv/linux/powerpc/kernel-features.h | 7 - .../sysv/linux/powerpc/powerpc32/Versions | 3 - .../unix/sysv/linux/{generic => }/readlink.c | 9 +- sysdeps/unix/sysv/linux/riscv/rv32/Implies | 2 - sysdeps/unix/sysv/linux/riscv/rv64/Implies | 1 - sysdeps/unix/sysv/linux/riscv/sysdep.h | 3 +- sysdeps/unix/sysv/linux/{generic => }/rmdir.c | 9 +- .../unix/sysv/linux/s390/kernel-features.h | 19 +-- sysdeps/unix/sysv/linux/s390/s390-32/Versions | 3 - .../{generic/wordsize-32 => }/sendfile.c | 15 +- .../linux/{generic/sysdep.h => sendfile64.c} | 27 +++- sysdeps/unix/sysv/linux/sh/Versions | 3 - sysdeps/unix/sysv/linux/sh/bits/struct_stat.h | 139 ++++++++++++++++++ sysdeps/unix/sysv/linux/sh/bits/typesizes.h | 74 ++++++++++ sysdeps/unix/sysv/linux/sh/kernel-features.h | 7 - sysdeps/unix/sysv/linux/sh/xstatver.h | 13 ++ sysdeps/unix/sysv/linux/shutdown.c | 7 +- sysdeps/unix/sysv/linux/socket.c | 7 +- sysdeps/unix/sysv/linux/socketpair.c | 7 +- .../unix/sysv/linux/sparc/kernel-features.h | 10 +- .../unix/sysv/linux/sparc/sparc32/Versions | 3 - .../unix/sysv/linux/{generic => }/symlink.c | 9 +- sysdeps/unix/sysv/linux/syscalls.list | 2 - .../unix/sysv/linux/{generic => }/unlink.c | 9 +- .../unix/sysv/linux/wordsize-64/sendfile64.c | 1 - .../unix/sysv/linux/wordsize-64/syscalls.list | 1 - sysdeps/unix/sysv/linux/xstatver.h | 11 +- 90 files changed, 1549 insertions(+), 468 deletions(-) rename sysdeps/unix/sysv/linux/{generic => }/____longjmp_chk.c (90%) create mode 100644 sysdeps/unix/sysv/linux/arm/bits/struct_stat.h create mode 100644 sysdeps/unix/sysv/linux/arm/bits/typesizes.h rename sysdeps/unix/sysv/linux/{generic => arm}/xstatver.h (52%) rename sysdeps/unix/sysv/linux/{generic => }/bits/typesizes.h (100%) rename sysdeps/unix/sysv/linux/{generic => }/chmod.c (78%) rename sysdeps/unix/sysv/linux/{generic => }/chown.c (77%) rename sysdeps/unix/sysv/linux/{generic => csky}/bits/struct_stat.h (92%) rename sysdeps/unix/sysv/linux/{generic => }/dup2.c (83%) rename sysdeps/unix/sysv/linux/{generic => }/epoll_create.c (79%) delete mode 100644 sysdeps/unix/sysv/linux/generic/Makefile delete mode 100644 sysdeps/unix/sysv/linux/generic/README delete mode 100644 sysdeps/unix/sysv/linux/generic/bits/fcntl.h delete mode 100644 sysdeps/unix/sysv/linux/generic/dl-origin.c delete mode 100644 sysdeps/unix/sysv/linux/generic/syscalls.list delete mode 100644 sysdeps/unix/sysv/linux/generic/wordsize-32/Versions create mode 100644 sysdeps/unix/sysv/linux/hppa/bits/struct_stat.h create mode 100644 sysdeps/unix/sysv/linux/hppa/bits/typesizes.h create mode 100644 sysdeps/unix/sysv/linux/hppa/xstatver.h create mode 100644 sysdeps/unix/sysv/linux/ia64/bits/typesizes.h rename sysdeps/unix/sysv/linux/{generic => }/inotify_init.c (78%) rename sysdeps/unix/sysv/linux/{generic => }/lchown.c (75%) rename sysdeps/unix/sysv/linux/{generic => }/link.c (78%) create mode 100644 sysdeps/unix/sysv/linux/m68k/bits/typesizes.h delete mode 100644 sysdeps/unix/sysv/linux/microblaze/Versions create mode 100644 sysdeps/unix/sysv/linux/microblaze/bits/typesizes.h create mode 100644 sysdeps/unix/sysv/linux/mips/bits/typesizes.h delete mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n64/sendfile64.c delete mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list rename sysdeps/unix/sysv/linux/{generic => }/mkdir.c (79%) create mode 100644 sysdeps/unix/sysv/linux/nios2/bits/struct_stat.h create mode 100644 sysdeps/unix/sysv/linux/powerpc/bits/typesizes.h rename sysdeps/unix/sysv/linux/{generic => }/readlink.c (80%) rename sysdeps/unix/sysv/linux/{generic => }/rmdir.c (78%) rename sysdeps/unix/sysv/linux/{generic/wordsize-32 => }/sendfile.c (77%) rename sysdeps/unix/sysv/linux/{generic/sysdep.h => sendfile64.c} (55%) create mode 100644 sysdeps/unix/sysv/linux/sh/bits/struct_stat.h create mode 100644 sysdeps/unix/sysv/linux/sh/bits/typesizes.h create mode 100644 sysdeps/unix/sysv/linux/sh/xstatver.h rename sysdeps/unix/sysv/linux/{generic => }/symlink.c (78%) rename sysdeps/unix/sysv/linux/{generic => }/unlink.c (77%) delete mode 100644 sysdeps/unix/sysv/linux/wordsize-64/sendfile64.c