From nobody Fri Feb 02 18:16:59 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TRPB35Y4fz59D5r; Fri, 2 Feb 2024 18:16:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TRPB34pg1z4fb4; Fri, 2 Feb 2024 18:16:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706897819; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/T5kwJ4Z+eomLF/evriD5TJ4e2t9kOnTTpXB20Xo/FY=; b=JeEr+4SgSy3BjcSGrjco0jPzypb3THvDLYai6bizeCRUsjNVUZd0ASPhTs4XPCFxULNK+Y DGcB06uyMPimUvqm1Rh06qy5pXr82IRGi7dhbk+IjIZ2FvUpR6qXRFLUOsQJ6J+DYh7NgE waWdZ56a0kswBkolwM4bwZy8KxoGhgdln7+hdyJsj0s5R91gBDPa80kLo/AZvyEm93nLGJ 1d1ioKNKLz/en1F19z5/GUnZm5s9COuejGMG9TXpywxuTm6dsobVNbYSadFCHpPUTeGzxa yg0IFV3XVf6gdi5/vi8HA5hFHSDchhz41i6/hGA+3Bk4HHn+NMq/4lpJFg85Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706897819; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/T5kwJ4Z+eomLF/evriD5TJ4e2t9kOnTTpXB20Xo/FY=; b=Enqj3HfY1diYgWwrGAnfWbrPcTN4IpwCG7lVbuq83fiDmssBE5W2X9/8zqdnaxZEsa/1vY cL4RfZxkGcduCh3XnTs3a8+4macyq7KYrIXM/g3Zpi5EeG4e5tEcYr5OntGTgBMwoatx03 b1YbhtwIq9QQsfNC3E784NBtut/zk4eyE1PBHz6swXwjH8A3YCtZzacyPVxQBFJfVuRcP2 516qF1prNgTfNYA99C8mSuF6sB9m6fw7SfZDF4WsE7C+JCuAJQg77nlMFL3Kku5Q1oc+2X vP7uFU9MABSIOJJAaKZPe8mDKhRMCDzsq0Wqjfn0XdXnOVsgWcgIG/67WDcKaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706897819; a=rsa-sha256; cv=none; b=umwkEnfLKZ/TAjKauaIvFm+UTBq82xl3KiK/dh+jNfz5YxaE7U0CcfTNMYi+oayYm2VN00 P5wo87XZaXaPpWDKrQblPs1dId7xv5ZamvOU01fXqpeicwTzYJFgY+vzBJKgFCQahzrRtx vq/4ScDjiAj5FvP+ytJ/IPMTqNAQ3m1PCL7eK4rRTxEXOtm41XbasXdpLj/luTtdvbFVUh U4tlak8uqwVnPgPWmf/SsxZpF2UOuvqm9fggFlT/AB/zMt0og+rIslkScY9iJ9hsqjX5hq JLEjLjfnrKTeR07iuIMDsKZf0+b2P/R09Wbo0hG/xR/P8KZAr99+ElNnHGyolg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TRPB33vpczh4W; Fri, 2 Feb 2024 18:16:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 412IGxlH070012; Fri, 2 Feb 2024 18:16:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 412IGxAl070009; Fri, 2 Feb 2024 18:16:59 GMT (envelope-from git) Date: Fri, 2 Feb 2024 18:16:59 GMT Message-Id: <202402021816.412IGxAl070009@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: c27a89971805 - main - stdlib.h: add __noexcept to prototypes List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c27a89971805b176dcfa5a234f2ea6f6109d0a70 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=c27a89971805b176dcfa5a234f2ea6f6109d0a70 commit c27a89971805b176dcfa5a234f2ea6f6109d0a70 Author: Lexi Winter AuthorDate: 2024-02-02 16:41:40 +0000 Commit: Warner Losh CommitDate: 2024-02-02 18:11:17 +0000 stdlib.h: add __noexcept to prototypes The noexcept specifier is required on these functions in C++: _Exit(), atexit(), quick_exit(), at_quick_exit(), abort(). MFC after: 2 weeks Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1085 --- include/stdlib.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/stdlib.h b/include/stdlib.h index ff8991d1fa94..f0687f01e6c7 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -84,9 +84,9 @@ extern int __mb_cur_max; extern int ___mb_cur_max(void); #define MB_CUR_MAX ((size_t)___mb_cur_max()) -_Noreturn void abort(void); +_Noreturn void abort(void) __noexcept; int abs(int) __pure2; -int atexit(void (* _Nonnull)(void)); +int atexit(void (* _Nonnull)(void)) __noexcept; double atof(const char *); int atoi(const char *); long atol(const char *); @@ -154,7 +154,7 @@ unsigned long long strtoull(const char * __restrict, char ** __restrict, int); #endif /* __LONG_LONG_SUPPORTED */ -_Noreturn void _Exit(int); +_Noreturn void _Exit(int) __noexcept; #endif /* __ISO_C_VISIBLE >= 1999 */ /* @@ -163,9 +163,9 @@ _Noreturn void _Exit(int); #if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L void * aligned_alloc(size_t, size_t) __malloc_like __alloc_align(1) __alloc_size(2); -int at_quick_exit(void (*)(void)); +int at_quick_exit(void (*)(void)) __noexcept; _Noreturn void - quick_exit(int); + quick_exit(int) __noexcept; #endif /* __ISO_C_VISIBLE >= 2011 */ /* * Extensions made by POSIX relative to C.