From nobody Fri Nov 15 02:02:07 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 4XqKym1d6sz5dQyd; Fri, 15 Nov 2024 02:02:08 +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 4XqKyl6C7Nz4ckR; Fri, 15 Nov 2024 02:02:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731636127; 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=LKRe5lH9NZTPIq6fnRRn80QKFC4sFUZ2eZeDKuOefUM=; b=uNZZEDoYuGUl/cJTGy+jpDE1JH+SIktTn2pEAhvUHO/qf0OgeefZGeLOJV+ZTupNphZ918 vzH6++54qD6mP49Fd1QwWABQqJN9xy67dNsXvwkB2MJMGbMZELErMDsTyvZ8HB6eV6IC5h SdEslF44OlELvi+rUlpYyHglLPrxf3QuDYYgc79RJxllLRLH+JusBdX3TICKVaGZQnkHAa 6qszrjuSGgyW1cFsOtHNmHBLLLTQcv8OcONogRYY+YcCnhEFgam4ZODxgxEdmtRT6TLROM Zbe+8iiC4bXvhdqUDznXpHkZc+1yIFiSkZmx2kZOYj77bPNUHe+3mARhhFiyEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731636127; 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=LKRe5lH9NZTPIq6fnRRn80QKFC4sFUZ2eZeDKuOefUM=; b=OZmX1b//6sxNzKaX0oYxgvlvKWiFocQeqQ2OkhDtdP7jS+SaPQpnX0ZmItyTUma6WGQ4cB PITOGq20tHlkL9yyQhX2KSSiSRpxZHUEdnlpJPj/0XcoAjWp8wjjFcAgWknE0APOTQJ6tp qxUWQ5J9kwHPnEyPBXu6uikYt0MCBLNyToTP6zEEwcPSVSR288m8ImC7F2ET2g+KvHB9CW eD6hhR78y2cRPj4fwrArbZ6T2AR080oL/hJQHMZ5JYNpXZNxp06PpsL3ZFFl8DrkVkeCia ynWSYcFqVu7s7lWIoSZXOGz37TUnRVfCtLqZRBfpTAhZBFbZ52vQW7SXwrLLtw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731636127; a=rsa-sha256; cv=none; b=L5pC5FOSqG9xusTs1FoNt6LC+ji5I9fBmqaUO4WwRFAmwotOVW7Q5YCrbkvQj9E/Rhw3rl B9LuLJ5FtuksdcACTFilJp7kA9Fvs/g8pBEqyFJOVLicJw8YmEw474vshMyMT+Q8/kOqG6 r24k7kq1adkc4Y2iPzoE3iE9PaIyplqjWj0fUfcsmlxQyAq6cenEuBbKS/A562sw0ZaqHZ jnrc3CM7Rc6g05Z9ghlFqt8BFuHnplF6TwPjQ8cBPBabEJnkVqN8jrKtkCDD/X1OUFUPyY asKCRFzc8T5HlAMKtWOL/fN5D03SDb9EeUKPvuHWH2x2twnZrrot7sq2pSdLFw== 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 4XqKyl5qKrz13SC; Fri, 15 Nov 2024 02:02:07 +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 4AF227eb047767; Fri, 15 Nov 2024 02:02:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AF227gT047764; Fri, 15 Nov 2024 02:02:07 GMT (envelope-from git) Date: Fri, 15 Nov 2024 02:02:07 GMT Message-Id: <202411150202.4AF227gT047764@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: dfce25edfb69 - main - cdesf: Support _POSIX_C_SOURCE 202405 for POSIX 2024 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: dfce25edfb696e19e532f44bcb8002ce21976a3e Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=dfce25edfb696e19e532f44bcb8002ce21976a3e commit dfce25edfb696e19e532f44bcb8002ce21976a3e Author: Warner Losh AuthorDate: 2024-11-14 23:52:27 +0000 Commit: Warner Losh CommitDate: 2024-11-15 01:57:28 +0000 cdesf: Support _POSIX_C_SOURCE 202405 for POSIX 2024 Allow applications to request a strict POSIX 2024 by setting _POSIX_C_SOURCE to 202405 or higher. The rest of the system needs tweaks to be compliant, so this is a work in progress. Sponsored by: Netflix Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D47575 --- sys/sys/cdefs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index bafceb8cb9cb..25248bd235b2 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -542,7 +542,10 @@ #define _POSIX_C_SOURCE 198808 #endif #ifdef _POSIX_C_SOURCE -#if _POSIX_C_SOURCE >= 200809 +#if _POSIX_C_SOURCE >= 202405 +#define __POSIX_VISIBLE 202405 +#define __ISO_C_VISIBLE 2017 +#elif _POSIX_C_SOURCE >= 200809 #define __POSIX_VISIBLE 200809 #define __ISO_C_VISIBLE 1999 #elif _POSIX_C_SOURCE >= 200112