From nobody Sat Jul 06 16:03:04 2024 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 4WGZt049r1z5Qsqb; Sat, 06 Jul 2024 16:03:04 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WGZt01rPZz4l8c; Sat, 6 Jul 2024 16:03:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720281784; 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=7sfAh2yFmEoglyr8YYB6ZYIWc3mA9JOXVBJLvSmu0Do=; b=atvH3ibRmgYScvbySf/BDoQjUeyTQtmfUDHR9yxH6ubwzL1nLbTQKhn7srcVan9VmsqfBk o/x582aAzkoSajqHr5ubb5bHSQw+DCZtrohstPXI2knx1dL4S0tIPxbqdN+khIjWoyGcSR KW1eBNc/NQ5XeY29ZQCbFAUj2sNhh9eMckS92wTUQhv6haeMn2C5Uf4EjvhO8/FLhR3WIw y1BGgtvKThpyyrWSe0+40z8yTcwiu22PkFKijh2sOeaWvyrNMIK6sWyzGI6K1Kgs9fj2/5 N3fjlBoMF9VbY3eFDeMA15zEHjGwD1j36B8adKXKtwtRZQSpVh20piaiebWuQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720281784; a=rsa-sha256; cv=none; b=aoz/O4E0wxqXV90SuC+/lDFhcWovs2aJvcc9viXRIfyO/Z2aVZc2ZaEQx+N42sHHZHliGo +Io+5rIAoWYDCwGy91XEsQlEgKTz59Fl4guYHGSYFdyClEgIQPgJLiFKyQox2pfmtFNwZ1 +vZggRdkDgIAo8suf00w86gfTx0vPWKlNvlmeQTOHa5srajw6GQ3H/NxDFd6kb0dJCTgPt txI2vaf+9DGEe0FlJY6EKMcD8yBsubl60e8w4UegEcebU4Id3oMit++h61aTpA5+J4yX02 7BjRDT3d2RRpygzkeElocVLw7dEruwnkA7Hc3ulTTa+MOaZgcE+DNG7cAu3Fwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720281784; 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=7sfAh2yFmEoglyr8YYB6ZYIWc3mA9JOXVBJLvSmu0Do=; b=rnnHrFF2hPokd+Bpk85ZU+5sbN7rxf2ao5d7skQQ0AsVKrmXFeRpqvkP2wYy7eEMdMqejx AwVeSsY1xak6dZithp8a/EjO8s2x+XRxB5wzObaqgPnzqNyTmYjFUfsYjAw87rIa7URp86 JjKN62JPTrzTTr4EW6oBDufSZ2qA2ltyDZQurYC68epleHOLBMZr3rNj7MHvDUbLOZi+Pn zGpea1e0AsBzIWTu12RFbece5c9Z5NbgLGPxLDNxD4Y96r+ZewzcJIgQEaVNXRUKXCcgY+ f1FHJjuq+0AR9DUlj/on61RG26MgLNXwBXzmxejHYf1jabABiAJI5syn+vgukg== 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 4WGZt01S7nzmQ9; Sat, 6 Jul 2024 16:03:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 466G34LX020174; Sat, 6 Jul 2024 16:03:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 466G34mC020171; Sat, 6 Jul 2024 16:03:04 GMT (envelope-from git) Date: Sat, 6 Jul 2024 16:03:04 GMT Message-Id: <202407061603.466G34mC020171@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: 6d59c062d824 - main - cdefs.h: Retire __const and __signed 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: 6d59c062d8245a68e80b3a0bb2924ab49ab7dd49 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6d59c062d8245a68e80b3a0bb2924ab49ab7dd49 commit 6d59c062d8245a68e80b3a0bb2924ab49ab7dd49 Author: Warner Losh AuthorDate: 2024-07-06 16:02:25 +0000 Commit: Warner Losh CommitDate: 2024-07-06 16:02:25 +0000 cdefs.h: Retire __const and __signed These are no longer used in the base system. Once upon a time they were used to ease the transition from K&R to ANSI C. These days, we use both of these keywords in their bare form everywhere, even in our headers. Any uses of __const or __signed will be converted to their ANSI meaning in the compiler, but is beyond the scope of cdefs.h's charter. For pure K&R compilation, with an enforced only use K&R features and meanings, one needs to define NO_ANSI_KEYWORDS (though even that support is wobbly at best, being active only for !GCC or gcc-adjacent compilers which currently appears to be none). Sponsored by: Netflix Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D45860 --- sys/sys/cdefs.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index b92992c1b5c3..e08da15e1d91 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -124,8 +124,6 @@ #define __STRING(x) #x /* stringify without expanding x */ #define __XSTRING(x) __STRING(x) /* expand x, then stringify */ -#define __const const /* define reserved names to standard */ -#define __signed signed #define __volatile volatile #if defined(__cplusplus) #define __inline inline /* convert to C++ keyword */ @@ -141,9 +139,7 @@ #define __STRING(x) "x" #if !defined(__CC_SUPPORTS___INLINE) -#define __const /* delete pseudo-ANSI C keywords */ #define __inline -#define __signed #define __volatile /* * In non-ANSI C environments, new programs will want ANSI-only C keywords