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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27102 invoked from network); 31 May 2023 09:24:06 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 31 May 2023 09:24:06 -0000 Received: (qmail 1164 invoked by uid 550); 31 May 2023 09:23:34 -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 1029 invoked from network); 31 May 2023 09:23:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=xSTJyaAi/J2cUDlbCI+erlvRxu8P3owUwIfOy2VbsLo=; b=dsYrLS5L9yS6AUbkwn+4mHcPBWF3EEJ2O6yGLI4TbcH5IgDFabC6cmml kQoQt1ISQBrF9pgUEA0pxj6fuUt9BOyYg9pfDUqG5C7Tlq47KzS5v3weR x1X/GE9c24iLa2kRgLoZ3SbI9vpiLA0um+vaiuoyLCG20lwHA3He5KD9f I=; 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,205,1681164000"; d="scan'208";a="57428744" From: Jens Gustedt To: musl@lists.openwall.com Date: Wed, 31 May 2023 11:22:55 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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