From patchwork Sun Jun 28 01:45:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 39811 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 BA3EF383F869; Sun, 28 Jun 2020 01:45:44 +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 D975D383F859 for ; Sun, 28 Jun 2020 01:45:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D975D383F859 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 149F91518; Sun, 28 Jun 2020 03:45:37 +0200 (CEST) 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 idGY3yaVuMZ5; Sun, 28 Jun 2020 03:45:36 +0200 (CEST) Received: from function (lfbn-bor-1-797-11.w86-234.abo.wanadoo.fr [86.234.239.11]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 906CE14C9; Sun, 28 Jun 2020 03:45:33 +0200 (CEST) Received: from samy by function with local (Exim 4.94) (envelope-from ) id 1jpMNq-001Ih0-RN; Sun, 28 Jun 2020 03:45:26 +0200 From: Samuel Thibault To: libc-alpha@sourceware.org Subject: [hurd,commited 0/3] More cancel work Date: Sun, 28 Jun 2020 03:45:23 +0200 Message-Id: <20200628014526.310138-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Status: No, score=-5.9 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" Samuel Thibault (3): htl: Fix includes for lockfile htl: Move cleanup handling to non-private libc-lock hurd: clean fd and port on thread cancel hurd/Makefile | 3 +- hurd/fd-cleanup.c | 33 +++++++++++++++ hurd/fd-read.c | 2 +- hurd/fd-write.c | 2 +- hurd/hurd.h | 1 + hurd/hurd/fd.h | 1 + hurd/hurd/port.h | 1 + hurd/port-cleanup.c | 13 +++++- sysdeps/htl/flockfile.c | 2 +- sysdeps/htl/ftrylockfile.c | 4 +- sysdeps/htl/funlockfile.c | 3 +- sysdeps/htl/libc-lock.h | 70 ++++++++++++++++++++++++++++++++ sysdeps/htl/libc-lockP.h | 33 --------------- sysdeps/hurd/include/hurd.h | 5 +++ sysdeps/hurd/include/hurd/fd.h | 41 +++++++++++++++++++ sysdeps/hurd/include/hurd/port.h | 24 +++++++++++ sysdeps/mach/hurd/recv.c | 12 +++--- sysdeps/mach/hurd/recvfrom.c | 12 +++--- sysdeps/mach/hurd/recvmsg.c | 12 +++--- sysdeps/mach/hurd/send.c | 8 ++-- sysdeps/mach/hurd/sendmsg.c | 2 +- sysdeps/mach/hurd/sendto.c | 2 +- 22 files changed, 219 insertions(+), 67 deletions(-) create mode 100644 hurd/fd-cleanup.c create mode 100644 sysdeps/htl/libc-lock.h