From nobody Fri Nov 15 02:02:06 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 4XqKyk5llwz5dRDT; Fri, 15 Nov 2024 02:02:06 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XqKyk5DHCz4d6f; Fri, 15 Nov 2024 02:02:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731636126; 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=FT+eGmF4qKVobzFxh9E9cXOabsJ8GTgDeVx1P64Hqh0=; b=JN/gI1JEqFILr0HISt3AxPcY/UID4W+Wkn8OS79i9tqfVEvGsn6w6j6ZZz88kFQlwCb/We Y6zYQDixDBvi8tBLBPQl4PywWQDdBuqSqM5yqdKoBlnsn8AuUfiO+wS1WOqniA/j9u2yBA f37YqBD+Czxsj4WRhVfQVw4zOouWHiOqAGuFWfq/rbg2T25rNRjInOnmb91KsyJtwmsmg4 epw3dKHKVg5+50Rdk4roGvhDgMf9R7QMLJTWYJSnWiEJV05w/0cc7dbI7sDCnnAhiEdqdY sjka2f0ud2BSfZ44sNpjW8v3N3uEyIZ4cnSRW4F9ycKxz+hxrRGbvD1JYaBpMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731636126; 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=FT+eGmF4qKVobzFxh9E9cXOabsJ8GTgDeVx1P64Hqh0=; b=QDhPNW3ZSfYYFi7U/EA/fEyIm6VLkrjclK29Z4dLNrFr0uZo0j2nsrH0xCVFA6pzznPIiQ Qeuh31z80WGcUON3OvRmoiWCYlxIDxOH4WoiRPrZfc/bg+XP6mpd/QZYe8G+RYFfhO98F+ bIx81hu8mro4zZupDPn03yLYHkWrfrEy3lKRyxiWlYJvkEagmks/XYjaGcyf582t3olOxN n7mRPkifTrj/G2jnMvvLu0TgygYE1FQkLvzRzjRNmu8gAsTIzdF5M1kq591Gk/yqTqF3NX vbNBu7o17rUFE1aMezGTE4W0kJuyNYe5BKHqMUq4ebckNcHh6w/G7Z1M5hvU3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731636126; a=rsa-sha256; cv=none; b=F/bLnbJXOGE4+ueXCOnBsrAacEpAP1ACzMXDTWqFk2oNKL2oMqfM5zAY2UpVuQKbHsYT27 jvUifDV5Y22IGXwTgm1dcRg25JAFaLKiJbiyV3ahPgKbXdsiUC/IvtAoiC/JvjD/6JCrNI Prf3zlLNG+0Wf/lgRkLcYfkNugTH0Cpk3euQsr4zAKiqp6RBZ84TMuUI1fmB2vF+9bMCDy GZCJO/qr1FGR4hLaGvdMlApeIJuRHIkLeM2ZYZ8icvRN/JUY8urGzJDkgjsj/XJy95d91c TSEi0sgfuhvhldJ2cqsS9JIRQ5b2ZOf8DiUQKSfh2bYp7a+3cQ9RuUSqju2Cmg== 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 4XqKyk4rBjz13Hq; Fri, 15 Nov 2024 02:02:06 +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 4AF226xx047708; Fri, 15 Nov 2024 02:02:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AF226al047705; Fri, 15 Nov 2024 02:02:06 GMT (envelope-from git) Date: Fri, 15 Nov 2024 02:02:06 GMT Message-Id: <202411150202.4AF226al047705@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: 94b666c663d2 - main - cdefs: Allow _XOPEN_SOURCE >= 800 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: 94b666c663d2fde93f438e9643e7b510b83ca10b Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=94b666c663d2fde93f438e9643e7b510b83ca10b commit 94b666c663d2fde93f438e9643e7b510b83ca10b Author: Warner Losh AuthorDate: 2024-11-14 23:52:19 +0000 Commit: Warner Losh CommitDate: 2024-11-15 01:57:27 +0000 cdefs: Allow _XOPEN_SOURCE >= 800 When the user asks for XOPEN_SOURCE >= 800, set __XSI_VISIBLE to 800 for POSIX 2024. Sponsored by: Netflix Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D47574 --- sys/sys/cdefs.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 6521a34595cb..bafceb8cb9cb 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -515,7 +515,11 @@ /* Deal with various X/Open Portability Guides and Single UNIX Spec. */ #ifdef _XOPEN_SOURCE -#if _XOPEN_SOURCE - 0 >= 700 +#if _XOPEN_SOURCE - 0 >= 800 +#define __XSI_VISIBLE 800 +#undef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 202405 +#elif _XOPEN_SOURCE - 0 >= 700 #define __XSI_VISIBLE 700 #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809