From patchwork Wed Feb 21 22:33:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 876410 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-90454-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="pXoJBtpG"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zmshs1hLTz9sWF for ; Thu, 22 Feb 2018 09:33:48 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=tow6deyoC+ne7lGDKLvZLP7NeG5QExL0VehvPOqeixBe+dbeegfvX m10LwsUK3T/8x6MVw4zV9EuzP8DeSYb6sbF0DYe+Hxt13kv7ox+pe3sw5X6c5umk j0TeTZPDnSVdEIamUC18JmajSGhBeiycIgD1F5GjqgxesCJqyRFOBQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=iHYCZ2c/iLwWeHbX4MNEQmGwmcQ=; b=pXoJBtpGgVz9f5zNaFfcWEynnmnJ 7qCVp7Q2mHzMXECkAbzVsObWGz7/y3nd3EtV8pTEaIIxXetajMNUrp3thPgWbf9o muwEVUfSFgD1x7yBFBI3VGjBqvqJ7X/wanmButvPGVbqaSW+UZMTsvFIk0FWGRaj f1B+GulIpuuX4FQ= Received: (qmail 110522 invoked by alias); 21 Feb 2018 22:33:43 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 110506 invoked by uid 89); 21 Feb 2018 22:33:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy= X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: Add sysdep-cancel.h Date: Wed, 21 Feb 2018 23:33:36 +0100 Message-Id: <20180221223336.13890-1-samuel.thibault@ens-lyon.org> --- ChangeLog | 1 + sysdeps/mach/hurd/sysdep-cancel.h | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 sysdeps/mach/hurd/sysdep-cancel.h diff --git a/ChangeLog b/ChangeLog index 7f30e3dd10..3dbdbd4430 100644 --- a/ChangeLog +++ b/ChangeLog @@ -153,6 +153,7 @@ 2018-02-21 Samuel Thibault * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable. + * sysdeps/mach/hurd/sysdep-cancel.h: New file. 2018-02-20 Rical Jasan diff --git a/sysdeps/mach/hurd/sysdep-cancel.h b/sysdeps/mach/hurd/sysdep-cancel.h new file mode 100644 index 0000000000..ec55c7330f --- /dev/null +++ b/sysdeps/mach/hurd/sysdep-cancel.h @@ -0,0 +1,9 @@ +#include + +/* Always multi-thread (since there's at least the sig handler), but no + handling enabled. */ +#define SINGLE_THREAD_P (0) +#define RTLD_SINGLE_THREAD_P (0) +#define LIBC_CANCEL_ASYNC() 0 /* Just a dummy value. */ +#define LIBC_CANCEL_RESET(val) ((void)(val)) /* Nothing, but evaluate it. */ +#define LIBC_CANCEL_HANDLED() /* Nothing. */