From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20170 invoked from network); 24 May 2023 14:05:18 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 24 May 2023 14:05:18 -0000 Received: (qmail 32589 invoked by uid 550); 24 May 2023 14:01:45 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 31893 invoked from network); 24 May 2023 14:01:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=message-id:in-reply-to:references:from:date:to: resent-date:resent-from:subject:resent-message-id: resent-to; bh=xSTJyaAi/J2cUDlbCI+erlvRxu8P3owUwIfOy2VbsLo=; b=k34EDark87y01qcxfu44nbUon06dlFwivzpziQzqYI9Ht6kkncXUgrA6 SGauf+VVsqyv4spLpD6lUiOGclwPa/t0Usnqmrs4lWuOnCAP+cK32379M OEVVT4RZaro8/shor6F5nULB36vnYf2lPo7GoMHoiUaf7F54Yqf1m8UMH 4=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=jens.gustedt@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.00,189,1681164000"; d="scan'208";a="56883757" Message-Id: <97ee24cd7b61a011fe198f3e5e1fe71ed13badef.1684932861.git.Jens.Gustedt@inria.fr> In-Reply-To: References: From: Jens Gustedt Date: Wed, 19 Apr 2023 15:17:49 +0200 To: musl@lists.openwall.com Resent-Date: Wed, 24 May 2023 15:57:43 +0200 Resent-From: =?UTF-8?B?SuKCkeKCmeKCmw==?= Gustedt Resent-Message-ID: <20230524155743.20275396@inria.fr> Resent-To: musl@lists.openwall.com Subject: [musl] [C23 divers headers 08/17] C23: change the noreturn function in threads.h --- include/threads.h | 2 +- src/thread/thrd_exit.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/threads.h b/include/threads.h index 52ec3100..608ff2a3 100644 --- a/include/threads.h +++ b/include/threads.h @@ -41,7 +41,7 @@ enum { #define ONCE_FLAG_INIT 0 int thrd_create(thrd_t *, thrd_start_t, void *); -_Noreturn void thrd_exit(int); +__noreturn void thrd_exit(int); int thrd_detach(thrd_t); int thrd_join(thrd_t, int *); diff --git a/src/thread/thrd_exit.c b/src/thread/thrd_exit.c index 9b291ae3..fd094441 100644 --- a/src/thread/thrd_exit.c +++ b/src/thread/thrd_exit.c @@ -2,7 +2,7 @@ #include #include -_Noreturn void thrd_exit(int result) +__noreturn void thrd_exit(int result) { __pthread_exit((void*)(intptr_t)result); } -- 2.34.1