From nobody Wed Mar 22 16:24:37 2023 X-Original-To: dev-commits-src-main@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 4PhYhj5F4Wz411rB; Wed, 22 Mar 2023 16:24:37 +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 4PhYhj4m9Wz3Mnt; Wed, 22 Mar 2023 16:24:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679502277; 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=+BgQi+gWbsMzV+zH6CDV9uLx3vDqsuc4D4eG/Q7MyLc=; b=YEWS4AJaIzSYauC2O4jf0GtRkwed18B+/us80YSf+nANAJbUPO+UUui0yGH5wZy/4wsdwZ pvTAxp7zZdcay965DJds1uulsPY2ppuSD9k066hvNHZF0dn0mtwELw0azw/cw3HshoS4UU LcjXAUVr4ORkShl9NbzLKuA7CqDdNltJTRvIDE63+Ao5hs/zzI6ymrg/iHWxXL+yUXckPR iZ06sWRH1CbOS72GJKDADzxXhg9wxFo9mgQmXGefHpN3Dd+FKRFsbLfde/8c0TQTZdJn7R xDOB2EHzf366IgWGVK7GZ0DCLLmZCch+lKopNIYHxfGUSQWBJ8BRVFAO8snDGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679502277; 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=+BgQi+gWbsMzV+zH6CDV9uLx3vDqsuc4D4eG/Q7MyLc=; b=wMj1X9cuTW/k7NhMo4oteDF5bx003iEuYjo2TpdlA84Cs6ilez1V4PYy3nslnKUzrUBX9I kk8l+7Cvh69EEgDYuPBVnPd3SsSde8PSvyQ+aQaYtrZ0zTzasMDCcpA3dBwpLYFJNGFWKa 9OGn0APhnSbU9hJyvASEQo2Xipmtcv+R4iNXoNuazxqp5t3d0kA8Rc3sBskQ53yZ7nRvWa JVmXr6jzM0MZD0eYAD3fDzDi0edtYORe7E2y66ToSxLePlVJaBa1pN7f6kComwEYnIvNb9 w1M8T/ykBFssMhiyE4eEZ+IrfIr/mT2QyOUuz1USUEhH8sxCn8V8B3Osiv+2cw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679502277; a=rsa-sha256; cv=none; b=qvwaDlRvaGqOVVZW5LiATekEPxrVcGtVGvDT7BEC61gY7nc9CdBNcXfE26/tA29NIipwFt 54Omhbkn/OamzN14nmntOVcuwadysHwk6IrrEqRmNyY56h1eAXo//3n7LGgLiYma17R0pn DAtwHFCFbqt8uddV0XOXYOsWsUJtEk+i9ny5SNZbieozRI5OYnqe53/ucuof5G1FHb+h1S Yj+0O/kH8Qq0qA0jzV5W4aPm0vsAe8rroW7CCkSGibimjydjX7T4v4fB6EODWxbpp/79bI M2Iewu7Uw8liX5oiMC6Utns/4GNxjhU4RLRU5EN2Oneq1Inc626peFN5ltUkig== 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 4PhYhj3rpDz11G7; Wed, 22 Mar 2023 16:24:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32MGObXf007693; Wed, 22 Mar 2023 16:24:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32MGObJx007692; Wed, 22 Mar 2023 16:24:37 GMT (envelope-from git) Date: Wed, 22 Mar 2023 16:24:37 GMT Message-Id: <202303221624.32MGObJx007692@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: eb232cffc92d - main - amd64: reduce header pollution in _stdint.h List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eb232cffc92d3bb9776cf0ce0c9a9c30913f8cfa Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=eb232cffc92d3bb9776cf0ce0c9a9c30913f8cfa commit eb232cffc92d3bb9776cf0ce0c9a9c30913f8cfa Author: Brooks Davis AuthorDate: 2023-03-22 16:23:57 +0000 Commit: Brooks Davis CommitDate: 2023-03-22 16:23:57 +0000 amd64: reduce header pollution in _stdint.h In 38d1ac34ff82bd2aeb308b52a65b686060e52873 SIGATOMIC_{MIN,MAX} were defined in terms of LONG_{MIN,MAX}. Later, they were switched to __LONG_{MIN,MAX} in 78fe75bc280264e7471b3069e148cae32e8ae211 where an include of machine/_limits.h was added. Switch to using fixed width INT64_{MIN,MAX} and remove the header pollution. No functional change. Reviewed by: theraven, emaste Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D39196 --- sys/x86/include/_stdint.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/x86/include/_stdint.h b/sys/x86/include/_stdint.h index 1607db0de9b6..e891e2230b30 100644 --- a/sys/x86/include/_stdint.h +++ b/sys/x86/include/_stdint.h @@ -42,8 +42,6 @@ #ifndef _MACHINE__STDINT_H_ #define _MACHINE__STDINT_H_ -#include - #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) #define INT8_C(c) (c) @@ -171,8 +169,8 @@ #define PTRDIFF_MAX INT64_MAX /* Limits of sig_atomic_t. */ -#define SIG_ATOMIC_MIN __LONG_MIN -#define SIG_ATOMIC_MAX __LONG_MAX +#define SIG_ATOMIC_MIN INT64_MIN +#define SIG_ATOMIC_MAX INT64_MAX /* Limit of size_t. */ #define SIZE_MAX UINT64_MAX