From patchwork Wed Dec 16 01:51:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 41439 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 2A76C3861034; Wed, 16 Dec 2020 01:51:53 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from hera.aquilenet.fr (hera.aquilenet.fr [IPv6:2a0c:e300::1]) by sourceware.org (Postfix) with ESMTPS id 7E512386100F for ; Wed, 16 Dec 2020 01:51:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7E512386100F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=samuel.thibault@ens-lyon.org Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 8A90EDE7; Wed, 16 Dec 2020 02:51:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kMhr9fxtwuGb; Wed, 16 Dec 2020 02:51:49 +0100 (CET) Received: from function.youpi.perso.aquilenet.fr (unknown [IPv6:2a01:cb19:956:1b00:9eb6:d0ff:fe88:c3c7]) by hera.aquilenet.fr (Postfix) with ESMTPSA id D00111326; Wed, 16 Dec 2020 02:51:47 +0100 (CET) Received: from samy by function.youpi.perso.aquilenet.fr with local (Exim 4.94) (envelope-from ) id 1kpLyk-00H8dZ-G1; Wed, 16 Dec 2020 02:51:46 +0100 From: Samuel Thibault To: libc-alpha@sourceware.org Subject: [PATCH 0/2] Move sem_open/close/unlink to sysdeps/pthread Date: Wed, 16 Dec 2020 02:51:41 +0100 Message-Id: <20201216015143.4084732-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_NEUTRAL, TXREP autolearn=no 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: , Cc: commit-hurd@gnu.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" This first separates out the struct new_sem initialization to semaphoreP.h (no behavior change), so that sem_open/close/unlink can then simply be used as it is by various ports, since the rest of them is completely port-independant. Tested on i686-gnu, i686-linux-gnu, x86_64-linux-gnu Samuel Thibault (2): pthread: Move semaphore initialization for open to semaphoreP.h htl: Get sem_open/sem_close/sem_unlink support [BZ #25524] htl/Makefile | 4 +-- htl/semaphoreP.h | 49 ++++++++++++++++++++++++++ nptl/semaphoreP.h | 15 ++++++++ sysdeps/htl/sem-close.c | 31 ---------------- sysdeps/htl/sem-open.c | 31 ---------------- sysdeps/htl/sem-unlink.c | 31 ---------------- sysdeps/mach/hurd/i386/Makefile | 7 ---- {nptl => sysdeps/pthread}/sem_close.c | 0 {nptl => sysdeps/pthread}/sem_open.c | 12 +------ {nptl => sysdeps/pthread}/sem_unlink.c | 0 10 files changed, 67 insertions(+), 113 deletions(-) create mode 100644 htl/semaphoreP.h delete mode 100644 sysdeps/htl/sem-close.c delete mode 100644 sysdeps/htl/sem-open.c delete mode 100644 sysdeps/htl/sem-unlink.c rename {nptl => sysdeps/pthread}/sem_close.c (100%) rename {nptl => sysdeps/pthread}/sem_open.c (96%) rename {nptl => sysdeps/pthread}/sem_unlink.c (100%)