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: 25989 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. */